/* ============================================================
   Conversn — dark, minimal, liquid glass
   Background is black to match the logo. The logomark keeps its own
   gradients: silver C, blue n. Do not restyle it.
   Canela on display type only; Playfair stands in until licensed.
   ============================================================ */

@font-face {
  font-family: "Canela";
  src: url("/fonts/Canela-Light.woff2") format("woff2"), url("/fonts/Canela-Light.woff") format("woff");
  font-weight: 300; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Canela";
  src: url("/fonts/Canela-Regular.woff2") format("woff2"), url("/fonts/Canela-Regular.woff") format("woff");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Canela";
  src: url("/fonts/Canela-Medium.woff2") format("woff2"), url("/fonts/Canela-Medium.woff") format("woff");
  font-weight: 500; font-style: normal; font-display: swap;
}

:root {
  /* ---- Brand palette ---- */
  --black:      #000000;
  --grey:       #6e6e6e;
  --white:      #ffffff;
  --skin:       #c79a7c;
  --sand:       #d2ac79;
  --hair:       #3b2416;
  --eye-blue:   #6f92b8;
  --sky-blue:   #7ec5ec;
  --ocean-blue: #1e5fa8;

  /* ---- Applied roles (dark) ---- */
  --bg:        var(--black);
  --ink:       #ffffff;
  --ink-2:     rgba(233, 239, 246, 0.74);
  --muted:     rgba(233, 239, 246, 0.50);
  --muted-2:   rgba(233, 239, 246, 0.34);
  --line:      rgba(255, 255, 255, 0.10);
  --line-2:    rgba(255, 255, 255, 0.20);
  --accent:    var(--sky-blue);

  /* Glass */
  --glass-fill: linear-gradient(150deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.05) 42%, rgba(255,255,255,0.025) 100%);
  --glass-blur: blur(28px) saturate(180%);

  /* Two typefaces only. Canela is the brand face and carries display type;
     Inter carries everything functional. A third face — the monospace that
     used to sit on every label — read as generic dev-tooling, not brand. */
  --font-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Canela", "Playfair Display", Georgia, "Times New Roman", serif;

  /* Tracking is size-specific: large type needs negative, small type
     positive. One global letter-spacing is wrong at one end or the other. */
  --track-display: -0.032em;
  --track-title:   -0.024em;
  --track-heading: -0.018em;
  --track-body:    -0.005em;
  --track-label:    0.11em;

  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-soft:   cubic-bezier(0.16, 1, 0.3, 1);

  --maxw: 1240px;
  --pad: clamp(1.25rem, 5vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--black);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: var(--track-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Leading tightens as size grows; tracking goes more negative with it. */
h1, h2 { margin: 0; font-weight: 400; letter-spacing: var(--track-title); line-height: 1.08; }
h3     { margin: 0; font-weight: 500; letter-spacing: var(--track-heading); line-height: 1.28; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.serif { font-family: var(--font-serif); font-weight: 400; }

/* Small caps label. Positive tracking and a weight bump keep it legible at
   this size — §15: build hierarchy from weight + size + leading together. */
.label {
  font-family: var(--font-sans);
  font-size: 0.72rem; font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--track-label);
  line-height: 1.4;
  color: var(--muted);
}

.skip-link { position: absolute; left: -999px; top: 0; z-index: 200; background: var(--white); color: #000; padding: 0.6rem 1rem; border-radius: 6px; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 500;
  letter-spacing: var(--track-body);
  padding: 0.8rem 1.5rem;
  border-radius: 100px;
  border: 1px solid transparent;
  background: var(--white); color: #000;
  cursor: pointer;
  transition: transform 160ms var(--ease-out), background 300ms ease, box-shadow 400ms var(--ease-soft);
}
.btn:hover { box-shadow: 0 10px 34px -10px rgba(126, 197, 236, 0.6); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--sky-blue); outline-offset: 3px; }
.btn__arrow { transition: transform 400ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) { .btn:hover .btn__arrow { transform: translateX(3px); } }

/* No shine sweep. A light streak crossing a button on hover is decoration
   that doesn't communicate anything — §16 Craft: every element earns it. */

/* Glass button */
.btn--ghost {
  background: rgba(255,255,255,0.06); color: var(--ink);
  border-color: var(--line-2);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn--ghost:hover { background: rgba(255,255,255,0.11); box-shadow: none; }

.cta-note { color: var(--muted); font-size: 0.82rem; }
.cta-row { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; margin-top: 2.4rem; }

/* ---------- Nav ---------- */
/* The whole bar is a glass surface: translucent, saturated, with a specular
   top edge and a hairline base. */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: linear-gradient(165deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.05) 55%, rgba(255,255,255,0.03) 100%);
  backdrop-filter: blur(30px) saturate(190%); -webkit-backdrop-filter: blur(30px) saturate(190%);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.38),
    inset 0 -1px 0 rgba(255,255,255,0.05);
  transition: border-color 300ms ease, background 400ms ease;
}
.nav.is-scrolled { border-bottom-color: rgba(255,255,255,0.18); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }

/* ---------- Menu button + liquid-glass menu ---------- */
.menubtn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 1.1rem; border-radius: 100px;
  font-family: var(--font-sans); font-size: 0.88rem; font-weight: 500;
  color: var(--ink); cursor: pointer;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(18px) saturate(180%); -webkit-backdrop-filter: blur(18px) saturate(180%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
  transition: transform 200ms var(--ease-soft), background 320ms ease;
}
.menubtn:hover { background: rgba(255,255,255,0.12); }
.menubtn:active { transform: scale(0.97); }
.menubtn:focus-visible { outline: 2px solid var(--sky-blue); outline-offset: 3px; }
.menubtn__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 15px; }
.menubtn__bars i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 320ms var(--ease-soft); }
.menubtn[aria-expanded="true"] .menubtn__bars i:first-child { transform: translateY(2.75px) rotate(45deg); }
.menubtn[aria-expanded="true"] .menubtn__bars i:last-child { transform: translateY(-2.75px) rotate(-45deg); }

.menu { position: fixed; inset: 0; z-index: 90; }
.menu__scrim {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 420ms var(--ease-soft);
}
/* Apple-style material: translucent, saturated, with a specular top edge. */
/* Full-page material — the menu takes the whole viewport, links centred.
   §12: materialize rather than fade, so blur and scale arrive together. */
.menu__panel {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: var(--pad);
  background: linear-gradient(165deg, rgba(255,255,255,0.09) 0%, rgba(255,255,255,0.04) 48%, rgba(255,255,255,0.02) 100%);
  backdrop-filter: blur(44px) saturate(200%); -webkit-backdrop-filter: blur(44px) saturate(200%);
  opacity: 0; transform: scale(1.04);
  transition: opacity 440ms var(--ease-soft), transform 660ms var(--ease-soft);
}
.menu.is-open .menu__scrim { opacity: 1; }
.menu.is-open .menu__panel { opacity: 1; transform: none; }

.menu__list { display: flex; flex-direction: column; align-items: center; text-align: center; }
.menu__list a {
  display: block; padding: 0.42rem 0.8rem;
  font-family: var(--font-serif); font-weight: 400;
  font-size: clamp(2rem, 5.6vw, 3.4rem);
  line-height: 1.16; letter-spacing: var(--track-title);
  color: var(--ink);
  opacity: 0; transform: translateY(16px);
  transition: opacity 540ms var(--ease-soft), transform 540ms var(--ease-soft), color 240ms ease;
}
.menu.is-open .menu__list a { opacity: 1; transform: none; }
.menu.is-open .menu__list li:nth-child(1) a { transition-delay: 60ms; }
.menu.is-open .menu__list li:nth-child(2) a { transition-delay: 110ms; }
.menu.is-open .menu__list li:nth-child(3) a { transition-delay: 160ms; }
.menu.is-open .menu__list li:nth-child(4) a { transition-delay: 210ms; }
.menu.is-open .menu__list li:nth-child(5) a { transition-delay: 260ms; }
.menu__list a:hover { color: var(--sky-blue); }

/* Compounded with .spec — a bare .menu__cta ties on specificity and loses
   on source order, since .spec is declared later in the file. */
.spec.menu__cta {
  margin-top: 2.4rem; width: auto; gap: 0.55rem;
  padding: 1rem 2rem; border-radius: 14px;
  font-size: 1rem;
  background: linear-gradient(170deg, #bde4fa 0%, var(--sky-blue) 50%, #3f8dcb 100%);
  color: #04182c;
  opacity: 0; transform: translateY(14px);
  transition: opacity 480ms var(--ease-soft) 340ms, transform 480ms var(--ease-soft) 340ms;
}
.menu.is-open .menu__cta { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .menu__scrim, .menu__panel, .menu__list a, .menu__cta { transition: none; }
}

/* ---------- Logomark ----------
   The real logo is /assets/logo.png. The type-based .logo__mark is ONLY a
   stand-in, shown when that file is missing (html.no-logo-file). */
.logo { display: inline-flex; align-items: center; gap: 0.62rem; }
/* The supplied PNG is trimmed to the mark, so height alone sizes it. */
.logo__img { height: clamp(28px, 3.4vw, 38px); width: auto; display: block; }
/* Styling only — the display toggle lives in the two rules below it, and
   must not be re-declared here or the fallback shows alongside the real
   logo. That is exactly what happened once the PNG landed. */
.logo__mark {
  font-family: var(--font-serif);
  font-size: 1.85rem; line-height: 1;
  align-items: baseline;
  letter-spacing: -0.1em;
}
.logo__mark { display: none; }
.no-logo-file .logo__mark { display: inline-flex; }
.logo__c {
  background: linear-gradient(155deg, #ffffff 0%, #f2f5f9 38%, #c2ccd8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo__n {
  margin-left: -0.12em;
  background: linear-gradient(180deg, #a9dcf7 0%, #7ec5ec 42%, #1e5fa8 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo__word { font-family: var(--font-sans); font-weight: 500; font-size: 1rem; letter-spacing: var(--track-title); color: var(--ink); }
.logo__dot { color: var(--sky-blue); }

/* ---------- Specular button ----------
   A 1px border lit by a highlight that tracks the pointer. The glow lives
   in a masked ring (border-box minus content-box) so only the edge lights
   up, and it fades in by proximity rather than only on hover. */
.spec {
  --mx: 50%; --my: 50%; --on: 0;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 18px;
  background: #525252;
  color: #f5f5f5;
  font-family: var(--font-sans); font-size: 0.92rem; font-weight: 500;
  letter-spacing: var(--track-body);
  cursor: pointer; overflow: hidden;
  transition: transform 160ms var(--ease-out), background 400ms ease;
}
.spec > span { position: relative; z-index: 2; }
.spec:active { transform: scale(0.97); }
.spec:focus-visible { outline: 2px solid var(--sky-blue); outline-offset: 3px; }

/* the lit edge */
.spec::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; z-index: 1; pointer-events: none;
  background: radial-gradient(
    circle at var(--mx) var(--my),
    rgba(255,255,255,1) 0%,
    rgba(255,255,255,0.55) 10%,
    rgba(255,255,255,0) 40%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: var(--on);
  transition: opacity 350ms var(--ease-soft);
}
/* resting hairline so the shape reads before the pointer arrives */
.spec::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; z-index: 0; pointer-events: none;
  background: rgba(255,255,255,0.16);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.spec--quiet { background: transparent; color: var(--ink-2); }
.spec--quiet:hover { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .spec::before { transition: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(3rem, 9vh, 6rem) 0 clamp(3rem, 8vh, 5rem);
  overflow: hidden;
  text-align: center;
}

/* DarkVeil canvas. Desaturated and dimmed so the CPPN's colour reads as
   dark smoke against the black page rather than an aurora. */
/* DarkVeil renders as-is — no filtering. */
.darkveil-canvas {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 1200ms var(--ease-soft);
}
.darkveil-canvas.is-ready { opacity: 1; }
/* Just enough to blend the hero into the black page below it. */
.hero__veilfade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, transparent 78%, #000 100%);
}

.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; }
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.1rem, 4.4vw, 3.9rem);
  line-height: 1.12; letter-spacing: var(--track-title); font-weight: 400;
  color: #ffffff;
  background: linear-gradient(170deg, #ffffff 0%, #f2f5f9 52%, #cdd6e0 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero__sub {
  margin-top: 1.6rem; font-size: 1rem; font-weight: 500;
  color: rgba(255,255,255,0.7); letter-spacing: var(--track-body);
}

/* Warm CTA — the reference's gold, taken from the brand's sand/skin tones
   rather than an off-palette yellow. */
.cta-gold {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 2.2rem;
  padding: 0.95rem 1.9rem; border-radius: 12px;
  font-family: var(--font-sans); font-size: 0.98rem; font-weight: 600;
  letter-spacing: var(--track-body); color: #04182c;
  background: linear-gradient(170deg, #bde4fa 0%, var(--sky-blue) 50%, #3f8dcb 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.7),
    0 12px 34px -14px rgba(126,197,236,0.9);
  transition: transform 180ms var(--ease-out), box-shadow 420ms var(--ease-soft);
}
.cta-gold:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,0.75), 0 18px 46px -14px rgba(126,197,236,1); }
.cta-gold:active { transform: scale(0.97); }
.cta-gold:focus-visible { outline: 2px solid var(--sky-blue); outline-offset: 3px; }
.cta-gold > span { position: relative; z-index: 1; }
/* One primary button across the site — §16 Familiarity. These instances
   carry an arrow rather than a wrapped span. */
.cta-gold { gap: 0.55rem; margin-top: 0; }
.cta-gold .btn__arrow { transition: transform 400ms var(--ease-soft); }
@media (hover: hover) and (pointer: fine) {
  .cta-gold:hover .btn__arrow { transform: translateX(3px); }
}
.hero .cta-gold { margin-top: 2.2rem; }

.hero__scroll {
  position: absolute; left: 50%; bottom: clamp(1.5rem, 4vh, 2.5rem);
  transform: translateX(-50%); z-index: 2;
  display: inline-flex; align-items: center; gap: 0.55rem;
}
/* soft brand light behind the hero, echoing the logo's blue */
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 700px; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48% 46% at 50% 34%, rgba(30, 95, 168, 0.32), transparent 70%),
    radial-gradient(32% 34% at 66% 26%, rgba(126, 197, 236, 0.16), transparent 72%);
}
.hero__grid { position: relative; z-index: 1; }
.hero__title {
  font-family: var(--font-serif);
  font-size: clamp(2.2rem, 3.7vw, 3.4rem);
  line-height: 1.05; letter-spacing: var(--track-display); font-weight: 400;
  color: #ffffff;
  background: linear-gradient(170deg, #ffffff 0%, #f0f4f9 50%, #c3cedb 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* The headline animates per word (below); the rest of the stack follows. */
.js .hero__sub,
.js .hero .cta-gold { animation: heroIn 1000ms var(--ease-soft) both; }
.js .hero__sub      { animation-delay: 620ms; }
.js .hero .cta-gold { animation-delay: 760ms; }

/* A transformed descendant will not render the parent's background-clip:text,
   so the blend has to live on each word rather than the heading. */
.js .hero__title { -webkit-text-fill-color: currentColor; background: none; }
.js .hero__title .word > i {
  background: linear-gradient(168deg, #ffffff 0%, #f1f5fa 46%, #c2ceda 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero__sub, .js .hero .cta-gold { animation: none; }
}
.hero__scroll svg { animation: nudge 2.4s var(--ease-in-out) infinite; }
@keyframes nudge { 0%,100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll svg { animation: none; } }

/* ---------- Pairs-with strip ---------- */
.pairs { padding: clamp(2.5rem, 6vh, 4rem) 0 clamp(3rem, 7vh, 4.5rem); text-align: center; }
.pairs__label { margin-bottom: 1.8rem; color: var(--muted-2); }
/* Marquee. The track holds the list twice (the copy is cloned in JS), so
   translating exactly -50% lands on an identical frame and the loop is
   seamless. Edges fade so items arrive and leave rather than pop. */
.pairs__viewport {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.pairs__track {
  --pairs-gap: clamp(2rem, 4.5vw, 3.6rem);
  display: flex; align-items: center; width: max-content;
  gap: var(--pairs-gap);
  animation: pairsLoop 42s linear infinite;
}
/* One period is NOT half the track. With N items duplicated, the track holds
   2N−1 gaps, not 2N — so half its width falls one half-gap short and the loop
   jumps. The period is 50% + gap/2. */
@keyframes pairsLoop {
  to { transform: translateX(calc(-50% - var(--pairs-gap) / 2)); }
}
@media (hover: hover) and (pointer: fine) {
  .pairs__viewport:hover .pairs__track { animation-play-state: paused; }
}
.pairs__track li {
  display: inline-flex; align-items: center; gap: 0.6rem; flex: none;
  font-size: clamp(0.92rem, 1.4vw, 1.08rem); font-weight: 500;
  letter-spacing: var(--track-heading);
  color: rgba(255,255,255,0.46);
  transition: color 320ms ease;
}
.pairs__track li svg { flex: none; opacity: 0.72; transition: opacity 320ms ease; }
@media (hover: hover) and (pointer: fine) {
  .pairs__track li:hover { color: rgba(255,255,255,0.95); }
  .pairs__track li:hover svg { opacity: 1; }
}
/* §14: a slow looping translation is exactly the kind of motion to drop. */
@media (prefers-reduced-motion: reduce) {
  .pairs__track { animation: none; width: 100%; flex-wrap: wrap; justify-content: center; }
  .pairs__viewport { -webkit-mask-image: none; mask-image: none; }
}

/* ---------- Hero word reveal ---------- */
.word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.12em; }
.word > i { display: inline-block; font-style: inherit; will-change: transform, opacity; }
.js [data-words] .word > i { transform: translateY(105%); opacity: 0; }
.js [data-words].is-in .word > i {
  transform: translateY(0); opacity: 1;
  transition: transform 1000ms var(--ease-soft), opacity 800ms var(--ease-soft);
  transition-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .js [data-words] .word > i { transform: none; opacity: 1; transition: none; }
}

/* ---------- TextAnimate: slideUp, by word ---------- */
.ta__word { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; }
.ta__inner { display: inline-block; will-change: transform, opacity; }
.js .ta__inner { transform: translateY(110%); opacity: 0; }
.js .ta.is-in .ta__inner {
  transform: translateY(0); opacity: 1;
  transition: transform 900ms var(--ease-soft), opacity 700ms var(--ease-soft);
  transition-delay: var(--d, 0ms);
}
@media (prefers-reduced-motion: reduce) {
  .js .ta__inner { transform: none; opacity: 1; }
  .js .ta.is-in .ta__inner { transition: none; }
}

/* ---------- Sections ---------- */
/* Everything is centre-aligned — nothing sits flush left. */
.section { position: relative; padding: clamp(5rem, 12vh, 8rem) 0; text-align: center; }
/* §12: a soft edge where regions meet, not a hard rule. A 1px line across
   every section is the single loudest "template" tell. */
.section--line::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(680px, 80%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.13), transparent);
}
.section__label { margin-bottom: 1.6rem; }
/* Display headings carry a blend rather than one flat colour — white through
   to a cool grey, so long lines have depth instead of reading as a slab. */
.section__title, .options__close, .closing__title, .maths__lead, .point__title {
  background: linear-gradient(168deg, #ffffff 0%, #eef3f9 42%, #b9c6d5 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section__title {
  font-family: var(--font-serif); font-size: clamp(2.2rem, 5.2vw, 3.6rem);
  max-width: 22ch; margin-inline: auto; letter-spacing: var(--track-title);
}
.section__lead { margin-top: 1.3rem; color: var(--ink-2); font-size: 1.15rem; max-width: 52ch; margin-inline: auto; }

/* ---------- Funnel chart ----------
   Each stage is a bar whose height is proportional to how many people are
   left, wrapped in three concentric halo rings. Bars grow in staggered.
   No counts or percentages — the shape carries the point. */
.fchart { margin: clamp(2.4rem, 5vw, 3.4rem) 0 0; }
.fchart__svg { display: block; width: 100%; height: auto; overflow: visible; }

.fseg { transform-origin: center; }
.fseg__body { fill: url(#fgrad); transition: fill 400ms ease; }
.fseg--goal .fseg__body { fill: url(#fgoal); }
.fseg__ring {
  stroke: rgba(126, 197, 236, 0.55);
  stroke-width: 1;
  opacity: 0;
  transition: opacity 700ms var(--ease-soft);
  transition-delay: var(--d, 0ms);
}
.fseg--goal .fseg__ring { stroke: rgba(169, 220, 247, 0.75); }

/* Entrance: each segment wipes in left to right, in sequence, so the funnel
   fills the way traffic actually moves through it. */
.fseg {
  clip-path: inset(0 100% 0 0);
  transition: clip-path 780ms var(--ease-soft);
  transition-delay: var(--d, 0ms);
}
.fchart.is-in .fseg { clip-path: inset(0 0 0 0); }
.fseg__ring { opacity: var(--o, 0.3); }

@media (hover: hover) and (pointer: fine) {
  .fseg:hover .fseg__body { fill: url(#fgoal); }
  .fseg:hover .fseg__ring { opacity: calc(var(--o, 0.3) * 2); }
}

/* Callouts: a pointer line up to the segment, then a glass label box. */
.fchart__labels {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem; margin-top: 0.2rem;
}
.fchart__labels li { display: flex; flex-direction: column; align-items: center; }
.fcall__arrow { position: relative; width: 1px; height: 26px; background: rgba(255,255,255,0.22); }
.fcall__arrow::before {
  content: ""; position: absolute; top: 0; left: 50%;
  width: 6px; height: 6px; margin-left: -3px;
  border-left: 1px solid rgba(255,255,255,0.45);
  border-top: 1px solid rgba(255,255,255,0.45);
  transform: rotate(45deg);
}
/* §12 vibrancy: text sitting on a translucent surface needs more contrast
   than the same text on a flat one — flat grey goes mushy over glass. */
.fcall__box {
  margin-top: 0.55rem; padding: 0.5rem 0.75rem;
  border-radius: 10px; text-align: center; line-height: 1.35;
  font-size: 0.64rem; color: rgba(255,255,255,0.88);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22);
}
.fcall__box--goal {
  color: #ffffff;
  border-color: rgba(126,197,236,0.45);
  background: rgba(126,197,236,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 0 24px -8px rgba(126,197,236,0.8);
}
/* A footnote is not a label — uppercase small caps here reads as a heading
   and pulls more attention than a disclaimer should have. */
.fchart__note, .spot__note {
  margin-top: 1.5rem;
  text-transform: none; letter-spacing: var(--track-body);
  font-size: 0.84rem; font-weight: 400;
  color: var(--muted-2);
}

/* Worked example under the funnel */
.maths {
  margin: clamp(2rem, 4vw, 3rem) auto 0; text-align: center;
  max-width: 46rem; padding: clamp(1.4rem, 3vw, 2rem);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,0.09), rgba(255,255,255,0.03));
  backdrop-filter: blur(22px) saturate(180%); -webkit-backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.28);
}
.maths__lead { font-family: var(--font-serif); font-size: clamp(1.3rem, 2.6vw, 1.8rem); letter-spacing: var(--track-title); }
.maths__body { margin-top: 0.9rem; color: var(--ink-2); font-size: 1.08rem; line-height: 1.55; }
.maths__hl { color: var(--sky-blue); }
.maths__kicker { margin-top: 1rem; color: var(--ink); font-size: 1.02rem; }

@media (prefers-reduced-motion: reduce) {
  .fseg { clip-path: none; transition: none; }
}
@media (max-width: 640px) {
  .fchart__labels { gap: 0.25rem; }
  .fcall__arrow { height: 16px; }
  .fcall__box { font-size: 0.55rem; padding: 0.35rem 0.3rem; letter-spacing: 0; }
}

/* ---------- Options ---------- */
.branch__title {
  font-family: var(--font-serif); text-align: center;
  font-size: clamp(1.9rem, 4.6vw, 3.1rem); letter-spacing: var(--track-title);
  margin-top: 1.2rem;
}
/* Dashed branch from the headline down into each card. The dashes drift
   downward so the connector reads as flow rather than decoration. */
.branch { display: block; width: 100%; height: auto; color: rgba(255, 255, 255, 0.30); margin: 0.4rem 0 0.2rem; }
/* The dash drift only runs once the connector is on screen. Fade-in itself
   is handled by .reveal on the <svg>. */
.branch__path { animation: branchFlow 2.6s linear infinite paused; }
.branch.is-visible .branch__path { animation-play-state: running; }
@keyframes branchFlow { to { stroke-dashoffset: -26; } }
/* The svg is a reveal target; don't let the blur soften the hairlines. */
.js .branch { filter: none !important; }
@media (prefers-reduced-motion: reduce) { .branch__path { animation: none; } }

.options { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2.2vw, 1.6rem); }
/* A left/right split has nothing to point at once the cards stack. */
@media (max-width: 760px) {
  .branch { display: none; }
  .branch__title { margin-bottom: 1.8rem; }
}
.option {
  padding: clamp(1.7rem, 2.6vw, 2.3rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.022);
  transition: transform 600ms var(--ease-soft), border-color 500ms ease, background 500ms ease;
}
.option--primary { background: rgba(126, 197, 236, 0.045); border-color: rgba(126, 197, 236, 0.22); }
@media (hover: hover) and (pointer: fine) {
  .option:hover { transform: translateY(-4px); border-color: var(--line-2); }
  .option--primary:hover { border-color: rgba(126, 197, 236, 0.45); }
}
/* Cards arrive one after the other, following the branch. */
.js .option:nth-child(1) { transition-delay: 0ms; }
.js .option:nth-child(2) { transition-delay: 130ms; }

.option { text-align: center; }
.option__tag { display: block; margin-bottom: 1.1rem; color: var(--sand); }
.option--primary .option__tag { color: var(--sky-blue); }
.option__title {
  font-size: clamp(1.2rem, 2.1vw, 1.5rem); font-weight: 500;
  margin-bottom: 1.7rem; letter-spacing: var(--track-heading); line-height: 1.25;
  max-width: 20ch; margin-inline: auto;
}
.option__list li {
  display: flex; gap: 0.85rem; align-items: flex-start; justify-content: center;
  color: var(--ink-2); font-size: 1.02rem; line-height: 1.45; margin-bottom: 1.1rem;
  max-width: 34ch; margin-inline: auto; text-align: left;
}
.option__list li:last-child { margin-bottom: 0; }
.option__icon {
  flex-shrink: 0; margin-top: 0.16em;
  width: 20px; height: 20px; border-radius: 50%;
  display: grid; place-items: center;
}
/* Warm sand for the old way, brand blue for the fix — the palette does the
   work that red/green would do elsewhere. */
.option__icon--x { background: rgba(199, 154, 124, 0.16); color: var(--skin); }
.option__icon--check {
  background: rgba(126, 197, 236, 0.16); color: var(--sky-blue);
  box-shadow: 0 0 14px -4px rgba(126, 197, 236, 0.8);
}

.options__close {
  margin-top: clamp(2.6rem, 5vw, 3.6rem); text-align: center;
  font-family: var(--font-serif); font-size: clamp(1.7rem, 4.2vw, 2.7rem); letter-spacing: var(--track-title);
}
.options__cta { justify-content: center; margin-top: 1.8rem; }
.options__note { text-align: center; margin-top: 0.9rem; }

/* ---------- Call ---------- */
/* Four cards rather than a bordered list — the numerals carry the rhythm
   and each point gets a heading you can scan. */
.call {
  margin-top: clamp(2.6rem, 5vw, 3.6rem);
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.9rem, 1.8vw, 1.3rem);
  text-align: left;
}
.call__card {
  position: relative; overflow: hidden;
  padding: clamp(1.6rem, 2.6vw, 2.2rem);
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.09);
  background: linear-gradient(165deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  transition: transform 560ms var(--ease-soft), border-color 460ms ease, background 460ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .call__card:hover {
    transform: translateY(-4px);
    border-color: rgba(126,197,236,0.28);
    background: linear-gradient(165deg, rgba(255,255,255,0.085), rgba(255,255,255,0.02));
  }
}
.call__num {
  display: block; font-family: var(--font-serif);
  font-size: clamp(2rem, 3.4vw, 2.7rem); line-height: 1;
  letter-spacing: var(--track-title);
  background: linear-gradient(170deg, var(--sky-blue), var(--ocean-blue));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1.1rem;
}
.call__head {
  font-family: var(--font-sans); font-size: 1.12rem; font-weight: 500;
  color: var(--ink); margin-bottom: 0.5rem; letter-spacing: var(--track-heading);
}
.call__card p { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }

@media (max-width: 760px) { .call { grid-template-columns: 1fr; } }

/* ---------- Closing ---------- */
.closing { text-align: center; padding: clamp(5rem, 14vh, 9rem) 0; border-top: 1px solid var(--line); position: relative; overflow: hidden; }
.closing::before {
  content: ""; position: absolute; inset: auto -10% -60% -10%; height: 420px; z-index: 0; pointer-events: none;
  background: radial-gradient(40% 60% at 50% 100%, rgba(30,95,168,0.42), transparent 70%);
}
.closing > * { position: relative; z-index: 1; }
.closing__title { font-family: var(--font-serif); font-size: clamp(2rem, 6vw, 4rem); letter-spacing: var(--track-display); max-width: 16ch; margin: 0 auto; }
.closing .cta-row { justify-content: center; }

/* ---------- Footer ---------- */
.social {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.86rem; font-weight: 500; color: var(--muted);
  transition: color 260ms ease;
}
.social:hover { color: var(--sky-blue); }

.footer { border-top: 1px solid var(--line); padding: 2.5rem 0; text-align: center; }
.footer__inner { display: flex; align-items: center; justify-content: center; gap: 1.4rem; flex-wrap: wrap; }

/* ---------- Reveal ---------- */
.reveal { opacity: 1; transform: none; }
.js .reveal {
  opacity: 0; transform: translateY(18px); filter: blur(6px);
  transition: opacity 900ms var(--ease-soft), transform 900ms var(--ease-soft), filter 700ms var(--ease-soft);
}
.js .reveal.is-visible { opacity: 1; transform: none; filter: blur(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal, .js .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

@media (hover: hover) and (pointer: fine) {
  .option, .call li { transition: transform 500ms var(--ease-soft); }
  .option:hover { transform: translateY(-3px); }
  .call li:hover { transform: translateX(4px); }
}


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  /* Hero collapses to a single column: mark, headline, lines, buttons. */
  .hero { min-height: 78vh; padding-top: clamp(2rem, 6vh, 3.5rem); }
  .hero__scroll { display: none; }
  /* Let the headline wrap naturally — the desktop line breaks land badly
     once the column is this narrow. */
  .hero__title br { display: none; }
  .hero__title { max-width: 18ch; }

  .options { grid-template-columns: 1fr; }
  .option + .option { border-left: 0; }
}
@media (max-width: 520px) {
  .cta-gold { width: 100%; }
  .cta-row { width: 100%; justify-content: center; }
  .cta-row .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: center; }
}
