/* Leap Consulting — v2
   Same identity (Leap blue, thin spaced Roboto display type, Playfair quotes, geometric backdrops),
   rebuilt around fluid type, a consistent grid and layouts designed per device. */

:root {
  --brand: #01a2dd;
  --brand-deep: #0b5674;
  --brand-ink: #0a4a63;
  --ink: #1d2327;
  --text: #3d4449;
  --muted: #6b7378;
  --line: #e3e7ea;
  --paper: #ffffff;
  --mist: #f4f6f7;

  --sans: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --serif: "Playfair Display", Georgia, serif;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1200px;
  --section-y: clamp(72px, 10vw, 140px);
  --header-h: 72px;

  --step--1: clamp(.82rem, .8rem + .1vw, .9rem);
  --step-0: clamp(1rem, .96rem + .2vw, 1.125rem);
  --step-1: clamp(1.15rem, 1.05rem + .45vw, 1.4rem);
  --step-2: clamp(1.4rem, 1.2rem + .9vw, 2rem);
  --step-3: clamp(1.8rem, 1.4rem + 1.8vw, 2.9rem);
  --step-4: clamp(2.3rem, 1.5rem + 3.6vw, 4.6rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--step-0)/1.7 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
h1, h2, h3 { margin: 0; color: var(--ink); }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type helpers */
.eyebrow {
  margin: 0 0 14px;
  color: var(--brand);
  font-size: var(--step--1); font-weight: 500;
  letter-spacing: .2em; text-transform: uppercase;
}
.eyebrow--light { color: rgba(255,255,255,.85); }
.section-title {
  font-size: var(--step-3); font-weight: 100; line-height: 1.15;
  letter-spacing: .06em; text-transform: uppercase;
}
.section-title em { font-family: var(--serif); font-style: italic; text-transform: none; letter-spacing: 0; font-weight: 400; }
.section-lede { max-width: 46ch; margin-top: 18px; font-size: var(--step-1); font-weight: 300; color: var(--text); }
.section-lede em { font-style: normal; color: var(--brand-deep); font-weight: 400; }
.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { text-align: center; }
.section-head--center .section-lede { margin-inline: auto; }
.section { padding-block: var(--section-y); }

/* Buttons */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink);
  font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.button:hover { background: var(--brand); border-color: var(--brand); }
.button--ghost { background: transparent; color: var(--ink); }
.button--ghost:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.button--small { min-height: 38px; padding: 0 18px; font-size: .72rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(255,255,255,.92);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  backdrop-filter: saturate(160%) blur(10px);
  transition: box-shadow .25s ease;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 20px rgba(0,0,0,.04); }
.site-header__inner { max-width: none; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { height: 52px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav ul { display: flex; gap: clamp(14px, 2vw, 30px); }
.site-nav ul a {
  position: relative; display: block; padding: 6px 0;
  color: var(--ink); text-decoration: none;
  font-size: .74rem; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
}
.site-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.site-nav ul a:hover::after, .site-nav ul a.is-active::after { transform: scaleX(1); }
.site-nav ul a.is-active { color: var(--brand-deep); }
.nav-toggle { display: none; }

/* Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(calc(100svh - var(--header-h)), 900px);
  display: flex; align-items: center;
  padding-block: clamp(80px, 12vw, 160px);
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background: url(images/Slide-1-80-1.jpg) center / cover no-repeat;
  height: calc(100% + var(--extra, 0px));
  transform: translate3d(0, var(--shift, 0px), 0);
}
.hero__title span { display: block; }
.hero__title {
  color: var(--brand-deep);
  font-size: var(--step-4); font-weight: 100; line-height: 1.08;
  letter-spacing: .12em; text-transform: uppercase;
}
.hero__lede { max-width: 40ch; margin: 28px 0 0; font-size: var(--step-1); font-weight: 300; color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; translate: -50% 0;
  width: 22px; height: 36px; border: 1px solid rgba(29,35,39,.35); border-radius: 12px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px;
  background: var(--brand-deep); border-radius: 2px; animation: nudge 2s ease-in-out infinite;
}
@keyframes nudge { 0%, 100% { transform: translateY(0); opacity: 1; } 60% { transform: translateY(10px); opacity: 0; } }

/* Brands strip */
.brands { border-block: 1px solid var(--line); padding-block: 22px; }
.brands .wrap { display: flex; align-items: center; gap: 28px; }
.brands__label { margin: 0; flex: none; color: var(--muted); font-size: var(--step--1); letter-spacing: .14em; text-transform: uppercase; }
.brands__list { display: flex; flex-wrap: wrap; gap: 8px 30px; }
.brands__list li { color: var(--ink); font-size: var(--step-0); font-weight: 300; letter-spacing: .04em; white-space: nowrap; }

/* About */
.about__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.statement {
  font-family: var(--serif); font-weight: 400; font-size: var(--step-3); line-height: 1.2;
  color: var(--brand-deep);
}
.about__body { font-size: var(--step-0); font-weight: 300; max-width: 60ch; }

/* Testimonials */
.testimonial {
  position: relative; overflow: hidden; isolation: isolate;
  padding-block: clamp(96px, 14vw, 200px);
}
.testimonial::before, .approach::before, .services::before {
  content: ""; position: absolute; inset: 0 0 auto; z-index: -2;
  height: calc(100% + var(--extra, 0px));
  background: var(--bg) var(--bg-pos, center) / cover no-repeat;
  transform: translate3d(0, var(--shift, 0px), 0);
}
.testimonial::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.35); }
.testimonial__inner { max-width: 960px; margin: 0 auto; text-align: center; }
.testimonial blockquote {
  margin: 0;
  color: var(--ink);
  font-family: var(--serif); font-size: var(--step-2); line-height: 1.45;
}
.testimonial blockquote::before {
  content: "“"; display: block; height: .6em; margin-bottom: .1em;
  color: var(--brand); font-size: 2.6em; line-height: 1;
}
.testimonial figcaption { margin-top: 28px; color: var(--muted); font-size: var(--step--1); letter-spacing: .04em; }
.testimonial figcaption strong { display: block; margin-bottom: 2px; color: var(--ink); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }

/* Work */
.work { background: var(--mist); }
.cases { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 2vw, 24px); }
.case {
  position: relative;
  padding: clamp(24px, 2.4vw, 34px);
  background: #fff;
  border-top: 2px solid var(--brand);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 10px 30px rgba(0,0,0,.04);
  transition: transform .3s ease, box-shadow .3s ease;
}
.case:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,.05), 0 18px 40px rgba(11,86,116,.12); }
.case__tag { margin-bottom: 18px; color: var(--muted); font-size: var(--step--1); letter-spacing: .12em; text-transform: uppercase; }
.case__title { margin-bottom: 12px; font-size: var(--step-1); font-weight: 500; line-height: 1.3; }
.case p:last-child { font-size: .98rem; font-weight: 300; }

/* Services */
.services { position: relative; overflow: hidden; isolation: isolate; }
.services__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 48px); }
.service { padding-top: 28px; border-top: 1px solid var(--line); }
.service__icon {
  display: grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 22px;
  border: 1px solid var(--brand); border-radius: 50%; color: var(--brand);
}
.service__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-bottom: 10px; font-size: var(--step-0); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; }
.service p { font-weight: 300; }

/* Approach */
.approach { position: relative; overflow: hidden; isolation: isolate; }
.approach::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.72); }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 3vw, 48px); counter-reset: step; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 16.66%; right: 16.66%; height: 1px;
  background: linear-gradient(90deg, var(--brand), var(--brand-deep));
}
.step { position: relative; text-align: center; }
.step__num {
  position: relative; display: inline-grid; place-items: center;
  width: 56px; height: 56px; margin-bottom: 20px;
  background: #fff; border: 1px solid var(--brand); border-radius: 50%;
  color: var(--brand); font-size: 1rem; font-weight: 500; letter-spacing: .06em;
}
.step h3 { margin-bottom: 8px; font-size: var(--step-1); font-weight: 400; }
.step p { max-width: 26ch; margin-inline: auto; font-weight: 300; }
.step em { color: var(--brand-deep); font-style: italic; }
.approach__body { max-width: 68ch; margin: clamp(40px, 5vw, 64px) auto 0; font-size: var(--step-0); font-weight: 300; text-align: center; }

/* Desktop: like the original, Services sits in the left half and How we do it in the right,
   leaving the other half as quiet background */
@media (min-width: 961px) {
  .services .wrap > * { margin-right: 46%; }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .approach::after { background: rgba(255,255,255,.3); }
  .approach .wrap > * { margin-left: 44%; }
  .approach .approach__body { max-width: none; margin-right: 0; }
}

/* Balanced line breaks: even lines for headings and short text, no lone last words in paragraphs */
h1, h2, h3, .eyebrow, .section-lede, .hero__lede, .statement, .book__sub,
.testimonial blockquote, .testimonial figcaption, .contact__lede, .case p, .service p, .step p { text-wrap: balance; }
p { text-wrap: pretty; }

/* Clive */
.clive__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.clive__photo { position: sticky; top: calc(var(--header-h) + 32px); }
.clive__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; }
.clive__body .section-title { margin-bottom: 24px; }
.clive__lede { font-family: var(--serif); font-size: var(--step-1); line-height: 1.55; color: var(--ink); }
.clive__body > p:not(.clive__lede):not(.eyebrow) { font-weight: 300; }
.more { margin-top: 8px; }
.more summary {
  display: inline-flex; align-items: center; gap: 10px; cursor: pointer; list-style: none;
  color: var(--brand-deep); font-size: .8rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
}
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: "+"; font-size: 1.2rem; font-weight: 300; transition: transform .2s ease; }
.more[open] summary { margin-bottom: 18px; }
.more[open] summary::after { transform: rotate(45deg); }
.more p { font-weight: 300; }

/* Book */
.book { position: relative; display: grid; align-items: center; min-height: clamp(520px, 52vw, 880px); background: #e6e6e6; overflow: hidden; }
.book__media {
  position: absolute; inset: 0;
  background: #e4e5e6 url(images/Spin_Book_Stack.webp) 20% 55% / cover no-repeat;
}
.book__inner { position: relative; display: flex; justify-content: flex-end; }
.book__card {
  width: min(540px, 100%);
  padding: clamp(28px, 3.5vw, 48px);
  background: rgba(255,255,255,.94);
  box-shadow: 0 20px 50px rgba(0,0,0,.08);
}
.book__card .section-title { font-size: var(--step-4); line-height: 1; }
.book__sub { margin-top: 10px; font-family: var(--serif); font-size: var(--step-1); line-height: 1.4; color: var(--ink); white-space: nowrap; }
.book__badge {
  display: inline-block; margin: 6px 0 0; padding: 6px 12px;
  border: 1px solid var(--line); color: var(--muted);
  font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase;
  white-space: nowrap;
}
.book__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Contact */
/* Flat Leap brand blue with white text */
.contact { position: relative; padding-block: clamp(96px, 13vw, 180px); text-align: center; color: #fff; background: var(--brand); }
.contact .eyebrow--light { color: #fff; }
.contact__title { color: #fff; font-size: var(--step-4); font-weight: 100; line-height: 1.1; letter-spacing: .04em; }
.contact__lede { margin: 18px auto 30px; white-space: nowrap; font-size: var(--step-1); font-weight: 300; color: #fff; }
.contact__phone {
  display: inline-block; padding: 14px 30px;
  border: 1px solid #fff;
  color: #fff; text-decoration: none;
  font-size: var(--step-2); font-weight: 300; letter-spacing: .08em;
  transition: background-color .2s ease, color .2s ease;
}
.contact__phone:hover { background: #fff; color: var(--brand); }

/* Footer */
.site-footer { padding-block: 32px; border-top: 1px solid var(--line); }
.site-footer__inner { display: flex; align-items: center; gap: 24px; }
.site-footer__logo { height: 34px; width: auto; }
.site-footer p { margin: 0 auto 0 0; color: var(--muted); font-size: var(--step--1); letter-spacing: .1em; text-transform: uppercase; }
.social { display: flex; gap: 10px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; color: var(--ink); transition: all .2s ease; }
.social a:hover { border-color: var(--brand); background: var(--brand); color: #fff; }
.social svg { width: 16px; height: 16px; fill: currentColor; }

/* Reveal on scroll (only when JS has opted in) */
.js-reveal .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: none; }

/* Large screens */
@media (min-width: 1600px) {
  :root { --max: 1320px; }
}

/* Laptop / small desktop */
@media (max-width: 1180px) {
  .site-nav ul { gap: 16px; }
  .site-nav ul a { font-size: .7rem; letter-spacing: .1em; }
  .cases { grid-template-columns: repeat(2, 1fr); }
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablet: switch to the drawer menu */
@media (max-width: 960px) {
  :root { --header-h: 64px; }
  .brand img { height: 44px; }
  .nav-toggle {
    display: grid; place-items: center;
    width: 44px; height: 44px; margin-right: -10px;
    background: none; border: 0; cursor: pointer; z-index: 2;
  }
  .nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block; width: 22px; height: 1.5px; background: var(--ink);
    transition: transform .25s ease, background-color .25s ease;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -7px; }
  .nav-toggle__bars::after { top: 7px; }
  .nav-open .nav-toggle__bars { background: transparent; }
  .nav-open .nav-toggle__bars::before { transform: translateY(7px) rotate(45deg); }
  .nav-open .nav-toggle__bars::after { transform: translateY(-7px) rotate(-45deg); }

  .site-nav {
    /* Absolute, not fixed: the header's backdrop-filter makes it the containing block either way */
    position: absolute; top: 100%; left: 0; right: 0;
    height: calc(100vh - var(--header-h));
    height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 12px var(--gutter) 40px;
    background: #fff;
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease, visibility 0s linear .25s;
    overflow-y: auto;
  }
  .nav-open .site-nav { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .nav-open { overflow: hidden; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 1rem; letter-spacing: .14em; }
  .site-nav ul a::after { display: none; }
  .site-nav__cta { margin-top: 28px; min-height: 52px; font-size: .8rem; }

  .about__grid, .clive__grid { grid-template-columns: 1fr; }
  .clive__photo { position: static; max-width: 560px; }
  .clive__photo img { aspect-ratio: 3 / 2; }
  .brands .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* Card overlaps only the tabletop under the book, never the cover */
  .book { min-height: 0; align-items: end; padding-top: calc(min(70vw, 560px) - 28px); }
  .book__media { inset: 0 0 auto; height: min(70vw, 560px); background-position: 28% 55%; }
  .book__inner { justify-content: center; padding-bottom: clamp(32px, 6vw, 64px); }
  .book__card { width: min(560px, 100%); }
}

/* Phones */
@media (max-width: 600px) {
  .hero { min-height: calc(100svh - var(--header-h)); align-items: flex-end; padding-block: 64px 96px; }
  .hero__bg { background-position: 70% center; }
  .hero__title { letter-spacing: .08em; }
  .hero .eyebrow__sep { display: none; }
  .hero .eyebrow__since { display: block; margin-top: 4px; color: var(--muted); }
  .hero__scroll { display: none; }
  .hero__actions .button { flex: 1 1 100%; }
  .brands__list { gap: 6px 18px; }
  .cases, .services__grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 0; }
  .steps::before { top: 28px; bottom: 28px; left: 28px; right: auto; width: 1px; height: auto; background: linear-gradient(180deg, var(--brand), var(--brand-deep)); }
  .step { display: grid; grid-template-columns: 56px 1fr; column-gap: 20px; text-align: left; padding-bottom: 28px; }
  .step__num { grid-row: span 2; margin: 0; }
  .step h3 { margin-top: 12px; }
  .step p { margin: 0; max-width: none; }
  .approach__body { text-align: left; }
  .testimonial blockquote { font-size: 1.3rem; }
  .book__actions .button { flex: 1 1 auto; }
  .contact__lede, .book__sub, .book__badge { white-space: normal; }
  .contact__phone { width: 100%; }
  .site-footer__inner { flex-wrap: wrap; }
  .site-footer p { order: 3; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
}
