/* Direction a5-lit, 17 Nov 2026. Static CSS, no outside requests.
   Values marked KIT CHANGE are proposals listed in DIRECTION.md; nothing here is applied to 04 Brand. */

@font-face {
  font-family: "Funnel Display";
  src: url("fonts/FunnelDisplay-Variable-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("fonts/AtkinsonHyperlegibleNext-Variable-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark; /* :root, not only html: a host reset on :root would otherwise force light controls */
  /* Colour. KIT CHANGE: dark is the default ground; orange #FF4B1A is an interface colour. */
  --ground: #0E0C0A;
  --ground-2: #14120F;   /* kit dark */
  --paper: #FAF7F2;      /* kit paper, text on dark */
  --soft: #A69F95;       /* secondary text on dark */
  --dim: #8E867C;        /* second half of two-tone headings on dark */
  --edge: #7D756C;       /* control edges on dark */
  --line: rgba(250, 247, 242, 0.14); /* decorative hairlines only */
  --orange: #FF4B1A;
  --orange-hi: #FF6A40;
  /* No flat blue (owner, 17 Nov 2026): blue #617BFF lives only inside orange-to-blue gradients (the light, the logo). */
  --focus: #FF4B1A;      /* focus ring on dark: 5.83 on ground, 5.59 on kit dark */
  --err: #FF8A70;
  --stock: #F2F1ED;      /* paper sections */
  --ink: #1B1814;        /* kit ink */
  --ink-2: #4A443D;      /* secondary text on stock */
  --dim-p: #6E675F;      /* two-tone second half on stock */
  --focus-p: #C2370E;    /* focus ring on stock: deep orange, 4.83 */
  --mk-p: #C2370E;       /* the eyebrow slash on stock (decorative) */
  --ember-ink: #CC2C00;  /* orange text on stock (the questionnaire on paper): 4.73 */

  --font-display: "Funnel Display", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Atkinson Hyperlegible Next", system-ui, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);

  /* Phone first */
  --gutter: 20px;
  --gx: var(--gutter);
  --nav-top: 10px;
  --nav-h: 56px;
  --tag: 11.6vw; /* sized for "Be the captain." / "We're the crew." inside the frame inset (18 Nov 2026) */
  --h1: 6.6vw;
  --h2: 11.4vw;
  --h2xl: 13vw;
  --h3: 7vw;
  --body-l: 18px;
  --body: 17px;
  --sec-pad: 96px;

  /* The light (hero): band reserved under the copy, crest gap above the band floor, rise on scroll */
  --band: 180px;
  --gap: 58px;
  --rise: 44px;
  --fade: 64px;
  --planet: 980px;
  --halo-w: 180vw;
  --halo-h: 300px;
  /* Hero motion: load-in drop, the highlight's swing either side of the crest, and its half-width (both in degrees of the planet) */
  --intro: 110px;
  --sweep: 22deg;
  --hl: 9deg;
  /* Pinned sunrise (18 Nov 2026): how far the light climbs over the hero, then a little more as it settles */
  --climb: 26svh;
  --settle: 3svh;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--ground);
  color: var(--paper);
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--nav-top) + var(--nav-h) + 16px);
  scrollbar-color: var(--edge) var(--ground);
  scrollbar-gutter: stable; /* so locking the page for the pop-up never shifts it */
}
body {
  margin: 0;
  overflow-x: clip;
  background: var(--ground);
  color: var(--paper); /* set here too: a host page can style body, and html alone then loses */
  font-family: var(--font-body);
  font-size: var(--body);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { max-width: 100%; }
::selection { background: var(--orange); color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.paper :focus-visible { outline-color: var(--focus-p); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -80px; z-index: 100;
  padding: 10px 18px; border-radius: 999px;
  background: var(--paper); color: var(--ink); font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }
.nobr { white-space: nowrap; }

.wrap { width: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: var(--sec-pad); }

/* Display voice: Funnel Display 600, tracking tightens as size grows (from direction A) */
.tagline, h1, .h2, h3, .svc-t, .pt-n, .step-n, .btn, .q summary, .signoff {
  font-family: var(--font-display);
  font-weight: 600;
  font-kerning: normal;
}

/* Eyebrow: a slash marker and a label above every section */
.eyebrow {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-body);
  font-size: 14px; font-weight: 700; line-height: 1.2;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--soft);
}
.mk { color: var(--orange); }
.paper .eyebrow { color: var(--dim-p); }
.paper .mk { color: var(--mk-p); }

/* Two-tone headings: bright first half, muted second half */
.h2 {
  margin-top: 20px;
  font-size: var(--h2);
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-wrap: balance;
  max-width: 15ch;
}
.h2 .dim { color: var(--dim); }
.h2 .hi { color: var(--orange); }
.split > span { display: block; }
.paper .h2 { color: var(--ink); }
.paper .h2 .dim { color: var(--dim-p); }
.lead {
  margin-top: 24px;
  font-size: var(--body-l);
  line-height: 1.45;
  color: var(--soft);
  max-width: 40ch;
  text-wrap: pretty;
}

/* Buttons: one filled, one quiet */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border: 1.5px solid transparent; border-radius: 999px;
  font-size: 17px; line-height: 1; letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer;
  transition: translate 200ms var(--ease), scale 200ms var(--ease), background-color 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.btn-primary, .btn.primary { background: var(--orange); color: var(--ink); }
.btn-primary:hover, .btn.primary:hover { background: var(--orange-hi); }
.btn-quiet, .btn.secondary { background: transparent; color: var(--paper); border-color: var(--soft); } /* soft, not edge: it sits over the light */
.btn-quiet:hover, .btn.secondary:hover { border-color: var(--paper); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 16px; }
.arw-i {
  width: 18px; height: 18px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  transition: translate 220ms var(--ease);
}
.btn-quiet:hover .arw-i, .btn-quiet:focus-visible .arw-i, .more:hover .arw-i, .more:focus-visible .arw-i { translate: 4px 0; }
/* Quiet text link with the arrow */
.more-wrap { margin-top: clamp(36px, 4vw, 56px); }
.more {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--paper); font-weight: 700; border-radius: 4px;
  text-decoration: underline; text-decoration-color: var(--edge); text-decoration-thickness: 1px; text-underline-offset: 0.3em;
  transition: text-decoration-color 160ms var(--ease);
}
.more:hover { text-decoration-color: var(--paper); }

/* Floating pill nav */
.nav-wrap {
  position: fixed; top: var(--nav-top); left: 0; right: 0; z-index: 50;
  padding-inline: 10px;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  max-width: 1160px; height: var(--nav-h); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 6px 0 18px;
  background: var(--ground-2);
  border: 1px solid rgba(250, 247, 242, 0.12);
  border-radius: 999px;
  box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.8);
}
.brand { display: block; border-radius: 6px; }
.brand img { display: block; width: 132px; height: auto; }
.nav-links { display: none; }
.nav-links a {
  color: var(--soft); text-decoration: none; font-size: 16px; font-weight: 600;
  padding: 8px 2px; border-radius: 4px;
  transition: color 160ms var(--ease);
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--paper); }

/* Hero */
.hero {
  position: relative; isolation: isolate; overflow: clip;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-top) + var(--nav-h) + 24px) var(--gutter) var(--band);
  text-align: center;
  /* The frame (from study/h3-plain-framed.html, 17 Nov 2026): inset at the sides and bottom, the top clears the nav */
  --fi: clamp(20px, 2.8vw, 40px);
  --ft: max(var(--fi), calc(var(--nav-top) + var(--nav-h) + 12px));
  --mount: clamp(64px, 15vmin, 150px);
}
/* Four photo-corner mounts (the symbol's mounts at screen scale), one Dusk gradient across all four (one masked layer per mount) */
.frame {
  position: absolute; z-index: -1; pointer-events: none;
  inset: var(--ft) var(--fi) var(--fi);
  --tl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M30 0H100L0 100V30A30 30 0 0 1 30 0Z'/%3E%3C/svg%3E");
  --tr: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M70 0H0L100 100V30A30 30 0 0 0 70 0Z'/%3E%3C/svg%3E");
  --bl: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M30 100H100L0 0V70A30 30 0 0 0 30 100Z'/%3E%3C/svg%3E");
  --br: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath d='M70 100H0L100 0V70A30 30 0 0 1 70 100Z'/%3E%3C/svg%3E");
  --pull-d: 22vmin; /* how far each mount pulls out along its own diagonal (each axis) by 70% of the hero scrolled */
}
/* Each mount is the frame's full size with the same gradient, so the four still read as one Dusk sweep */
.fc {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(120deg, #FF4B1A, #617BFF);
  -webkit-mask: var(--m) var(--at) / var(--mount) no-repeat;
  mask: var(--m) var(--at) / var(--mount) no-repeat;
}
.fc-tl { --m: var(--tl); --at: top left; --dx: -1; --dy: -1; }
.fc-tr { --m: var(--tr); --at: top right; --dx: 1; --dy: -1; }
.fc-bl { --m: var(--bl); --at: bottom left; --dx: -1; --dy: 1; }
.fc-br { --m: var(--br); --at: bottom right; --dx: 1; --dy: 1; }
/* Film grain over the hero ground (greyscale fractal noise, 7%) */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 240px 240px;
}
.hero-in { display: flex; flex-direction: column; align-items: center; }
/* The hero line: two set lines, the last in orange. The pill above it was removed on 18 Nov 2026. */
.tagline {
  font-size: var(--tag);
  line-height: 0.92;
  letter-spacing: -0.04em;
}
.tl { display: block; white-space: nowrap; }
.tl-hi { color: var(--orange); }
.hero h1 {
  margin-top: 22px;
  max-width: 26em;
  font-size: var(--h1);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ctas {
  margin-top: 26px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
}

/* The light. One source: an orange rim rising from below, its cool edge falling into soft blue.
   Static default = the final, risen state (fallback for no scroll timelines and for reduced motion). */
.light {
  position: absolute; inset: 0; z-index: -1;
  overflow: hidden; pointer-events: none;
  /* fade out before the section edge so the planet never shows a cut line */
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - var(--fade)), transparent);
}
/* Layers, each animating its own transform or opacity so nothing fights: .rig takes the scroll rise, .lift the load-in,
   .glow the scroll brightening, .halo the breathing, .sweep the highlight running along the rim. */
.rig {
  position: absolute; left: 50%;
  top: calc(100% - var(--band) + var(--gap));
  width: 0; height: 0;
}
/* Hero: the light sits inside the frame, its crest at the same place on the page as without the frame */
.hero .light { inset: var(--ft) var(--fi) var(--fi); }
.hero .rig { top: calc(100% + var(--fi) - var(--band) + var(--gap)); }
.lift { position: absolute; inset: 0; }
.glow {
  position: absolute;
  width: var(--halo-w); height: var(--halo-h);
  left: calc(var(--halo-w) / -2); top: calc(var(--halo-h) / -2);
}
.halo {
  position: absolute; inset: 0;
  background: radial-gradient(closest-side,
    rgba(255, 214, 196, 0.95) 0%,
    rgba(255, 110, 60, 0.85) 9%,
    rgba(255, 75, 26, 0.5) 22%,
    rgba(255, 75, 26, 0.16) 44%,
    rgba(97, 123, 255, 0.12) 66%,
    rgba(97, 123, 255, 0) 100%);
}
.planet {
  position: absolute;
  width: var(--planet); aspect-ratio: 1;
  left: calc(var(--planet) / -2); top: 0;
  border-radius: 50%;
  background: var(--ground);
  box-shadow: inset 0 30px 60px -36px rgba(255, 75, 26, 0.75), inset 0 3px 10px -3px rgba(255, 180, 150, 0.6);
}
.planet::before, .planet::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: linear-gradient(90deg,
    rgba(97, 123, 255, 0) 18%, #617BFF 30%, #FF4B1A 42%, #FFE2D4 50%,
    #FF4B1A 58%, #617BFF 70%, rgba(97, 123, 255, 0) 82%) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
}
.planet::after { border-width: 6px; filter: blur(10px); opacity: 0.9; }
/* The travelling highlight: the same rim, lit only in a short arc (white-hot core, orange, blue fringe), turned about the
   planet's centre so it follows the curve. Hidden unless the loop runs. */
.sweep { position: absolute; inset: 0; border-radius: 50%; opacity: 0; }
.sweep::before, .sweep::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from calc(var(--hl) * -1),
    rgba(97, 123, 255, 0), rgba(97, 123, 255, 0.35) calc(var(--hl) * 0.3), #FF4B1A calc(var(--hl) * 0.65),
    #FFE2D4 var(--hl), #FF4B1A calc(var(--hl) * 1.35), rgba(97, 123, 255, 0.35) calc(var(--hl) * 1.7),
    rgba(97, 123, 255, 0) calc(var(--hl) * 2)) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) padding-box exclude, linear-gradient(#000 0 0);
}
.sweep::after { inset: -8px; border-width: 14px; filter: blur(14px); } /* bloom straddling the rim, spilling a little light upward */

/* Pause motion: a quiet icon button, bottom right of the hero above the mount. Shown only while the loop can run (site.js). */
.motion {
  position: absolute; right: calc(var(--fi) + 12px); bottom: calc(var(--fi) + var(--mount) + 12px); z-index: 1;
  width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center;
  border: 1.5px solid var(--soft); border-radius: 50%;
  background: var(--ground-2); color: var(--paper); cursor: pointer;
  box-shadow: 0 0 0 3px var(--ground); /* the edge always meets ground, even where the rim crosses the button (phones) */
  transition: scale 100ms var(--ease), border-color 180ms var(--ease);
}
.motion:hover { border-color: var(--paper); }
.motion svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.motion .i-play { display: none; fill: currentColor; }
.motion[aria-pressed="true"] .i-pause { display: none; }
.motion[aria-pressed="true"] .i-play { display: inline; }

/* Points: plain text items on hairlines (landing: the six stages; services: How we work) */
.pts { margin-top: clamp(40px, 5vw, 72px); display: grid; gap: 32px var(--gutter); }
.pt { border-top: 1px solid var(--line); padding-top: 18px; }
.pt-n { display: block; margin-bottom: 14px; font-size: 20px; line-height: 1; letter-spacing: 0.02em; color: var(--orange); }
.pt h3 { font-size: clamp(24px, 2.1vw, 32px); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.pt p { margin-top: 8px; color: var(--soft); max-width: 32ch; text-wrap: pretty; }

/* Who it is for: one line between How it works and Book a call */
.strip { padding-block: clamp(36px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.strip p {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 2.4vw, 36px); line-height: 1.15; letter-spacing: -0.02em;
  text-align: center; text-wrap: balance;
}

/* Services page: a plain page header (no frame, no light), then six stage rows on hairlines */
.page-head { padding: calc(var(--nav-top) + var(--nav-h) + clamp(56px, 8vw, 128px)) 0 clamp(48px, 6vw, 96px); }
.svc-list { border-bottom: 1px solid var(--line); }
.svc-row { display: grid; gap: 16px; border-top: 1px solid var(--line); padding: 28px 0 32px; }
.svc-t { font-size: var(--h3); line-height: 1.05; letter-spacing: -0.02em; text-wrap: balance; }
.svc-line { font-size: var(--body-l); font-weight: 700; line-height: 1.35; }
.svc-inc { margin-top: 14px; }
.svc-inc li { position: relative; padding: 6px 0 6px 22px; color: var(--soft); max-width: 52ch; text-wrap: pretty; }
.svc-inc li::before { content: ""; position: absolute; left: 0; top: calc(6px + 0.72em); width: 10px; height: 2px; background: var(--orange); }

/* How it works: paper section, big figures and hairlines */
.paper { background: var(--stock); color: var(--ink); }
.paper .lead { color: var(--ink-2); max-width: 48ch; text-wrap: balance; }
.steps { margin-top: clamp(48px, 6vw, 96px); display: grid; gap: 44px; }
.step { border-top: 1px solid var(--ink); padding-top: 18px; }
.step-n {
  display: block;
  font-size: clamp(112px, 14vw, 216px);
  line-height: 0.8;
  letter-spacing: -0.04em;
}
.step h3 { margin-top: 26px; font-size: clamp(26px, 2.3vw, 36px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
.step p { margin-top: 10px; color: var(--ink-2); max-width: 30ch; font-size: var(--body-l); text-wrap: pretty; }

/* Questions: paper, details and summary */
.qs { margin-top: 40px; border-top: 1px solid var(--ink); }
.q { border-bottom: 1px solid var(--ink); }
.q summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0;
  list-style: none; cursor: pointer;
  font-size: clamp(20px, 1.8vw, 28px); line-height: 1.2; letter-spacing: -0.015em;
  border-radius: 6px;
}
.q summary::-webkit-details-marker { display: none; }
.q-i {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round;
  transition: rotate 220ms var(--ease);
}
.q[open] .q-i { rotate: 45deg; }
.q summary:hover .q-t { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
.q p { padding: 0 0 26px; max-width: 52ch; color: var(--ink-2); font-size: var(--body-l); text-wrap: pretty; }

/* Closing band (services) */
.final { text-align: center; }
.final-in { display: flex; flex-direction: column; align-items: center; }
.h2-xl { font-size: var(--h2xl); max-width: none; margin-inline: auto; }
.final .ctas { margin-top: 36px; }

/* Book a call */
.book { padding-top: clamp(72px, 8vw, 128px); }
.bk-card {
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px 20px;
}
/* Questionnaire (Book a call, 18 Nov 2026): one question at a time (quiz.js adds .qz-on), big tap targets, then where we
   would start and the contact card. Without scripts every question shows as one plain form. */
.qz-title { max-width: 17ch; }
.quiz { margin-top: clamp(36px, 4vw, 64px); }
.qz-bar { display: flex; align-items: center; gap: 16px; min-height: 48px; }
.qz-back {
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 6px 0 0;
  background: none; border: 0; border-radius: 4px; cursor: pointer;
  color: var(--paper); font: 700 16px/1 var(--font-body);
}
.qz-back:hover { text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 0.3em; }
.qz-line { flex: 1; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.qz-line > span { display: block; height: 100%; background: var(--orange); transform: scaleX(0.25); transform-origin: left; transition: transform 200ms var(--ease); }
.qz-count { font-size: 15px; font-weight: 700; color: var(--soft); font-variant-numeric: tabular-nums; }
.qz-step { min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
/* Questions and result headings take focus only so screen readers announce each step; they are not controls,
   so no visible ring (18 Nov 2026). Every real control keeps its focus ring. */
.qz-q:focus, [data-done-title]:focus { outline: none; }
.qz-q {
  padding: 0; max-width: 24ch;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 3vw, 44px); line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance;
}
.qz-hint { margin-top: 10px; color: var(--soft); }
.qz-opts { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.qz-opt, .qz-else { position: relative; }
/* the real input covers its button face, so a tap anywhere on it is a tap on the input */
.qz-opt input, .qz-else input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.qz-opt span {
  display: flex; align-items: center; justify-content: center; height: 100%; min-height: 64px; padding: 12px 14px;
  border: 1.5px solid var(--edge); border-radius: 18px; background: var(--ground-2);
  font-family: var(--font-display); font-weight: 600; font-size: 18px; line-height: 1.15; text-align: center; text-wrap: balance;
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease), translate 200ms var(--ease), scale 150ms var(--ease);
}
.qz-opt:hover span { border-color: var(--paper); }
.qz-opt input:checked + span { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.qz-opt input:focus-visible + span, .qz-else input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 3px; }
.qz-else { display: inline-flex; margin-top: 14px; }
.qz-else span {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 4px; border-radius: 4px;
  font-weight: 700; text-decoration: underline; text-decoration-color: var(--edge); text-underline-offset: 0.3em;
}
.qz-else input:checked + span { color: var(--orange); text-decoration-color: var(--orange); }
.qz-next { margin-top: 24px; }
.qz-next:disabled { opacity: 0.45; cursor: not-allowed; }
/* Step 5 as one block (18 Nov 2026): heading, the answer, the matched stages as small chips, one quiet link */
.qz-chips { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.qz-chips li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--ground-2);
  font-family: var(--font-display); font-weight: 600; font-size: 15px;
}
.qz-chips .pt-n { display: inline; margin: 0; font-size: 15px; }
/* The result (18 Nov 2026): name, diagnosis, hook, two buttons; Learn more opens the rest in place */
.qz-result .eyebrow { margin-top: 4px; }
.qz-res-name {
  margin-top: 14px; color: var(--orange);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 5.4vw, 80px); line-height: 0.95; letter-spacing: -0.035em;
}
.qz-res-diag { margin-top: 14px; max-width: 34ch; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.25; text-wrap: balance; }
.qz-res-hook { margin-top: 10px; color: var(--soft); font-size: var(--body); }
.qz-cta { margin-top: 20px; font-weight: 700; font-size: var(--body-l); }
.qz-acts { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.qz-cta:not([hidden]) + .qz-acts { margin-top: 12px; }
.qz-chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: rotate 250ms var(--ease); }
.qz-learn[aria-expanded="true"] .qz-chev { rotate: 180deg; }
.qz-more-panel {
  display: grid; grid-template-rows: 0fr; opacity: 0; visibility: hidden;
  transition: grid-template-rows 250ms var(--ease), opacity 250ms var(--ease), visibility 0s linear 250ms;
}
.qz-more-panel.is-open { grid-template-rows: 1fr; opacity: 1; visibility: visible; transition: grid-template-rows 250ms var(--ease), opacity 250ms var(--ease), visibility 0s; }
.qz-more-in { min-height: 0; overflow: hidden; }
.qz-fix { margin-top: 16px; max-width: 60ch; }
.qz-fix-l { font-weight: 700; }
.qz-book-2 { margin: 20px 0 4px; }
/* Expert detail in the panel: small labels, short blocks, generous spacing */
.qz-expert { margin-top: 28px; display: grid; gap: 22px; max-width: 72ch; }
.qz-lbl { margin-bottom: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.qz-30 { display: grid; gap: 10px; }
.qz-30 li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; line-height: 1.4; }
.qz-30 strong { font-weight: 700; }
.qz-win { padding: 14px 16px; border-left: 3px solid var(--orange); border-radius: 0 14px 14px 0; background: rgba(255, 75, 26, 0.08); }
.qz-expert + .qz-chips { margin-top: 24px; }
.book .qz-lbl { color: var(--ink-2); }
.book .qz-30 li { border-color: rgba(27, 24, 20, 0.2); }
.book .qz-win { border-left-color: var(--ember-ink); background: rgba(204, 44, 0, 0.06); }
/* The short answer above the stages: types on (motion allowed), an honest attribution line, Find out more links */
.qz-ai { padding-top: 22px; max-width: 60ch; }
.qz-ai-text { font-size: var(--body-l); line-height: 1.5; }
.qz-ai-by { margin-top: 10px; font-size: 14px; color: var(--soft); }
.qz-grid { margin-top: 36px; display: grid; gap: 24px; align-items: start; }
.quiz.qz-on .qz-step:not(.is-current) { display: none; }
.quiz:not(.qz-on) :is(.qz-bar, .qz-plan) { display: none; }
.quiz:has([data-done]:not([hidden])) :is(.qz-bar, .qz-plan) { display: none; }
@media (min-width: 760px) {
  .qz-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: var(--gutter); }
}
@media (min-width: 900px) {
  .qz-opts { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
  .qz-30 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .qz-opt span { min-height: 88px; font-size: 20px; }
}

/* The questionnaire on paper (owner, 18 Nov 2026: "change that to the same white as the how it works maybe?"; an orange
   ground was tried first and taken off: "i feel like the orange is disturbing"). Same ground and treatment as How it
   works (.paper): ink text; any orange text becomes ember-ink #CC2C00 (4.73 on the stock); orange buttons keep their
   fill with a #CC2C00 edge (4.73, over the 3:1 a control edge needs); the contact and calendar cards stay dark.
   Scoped to #book, so the same form in the pop-up stays dark. */
.book :is(.bk-card, .cal) { color: var(--paper); }
.book :focus-visible { outline-color: var(--ink); }
.book :is(.bk-card, .cal) :focus-visible { outline-color: var(--focus); }
.book .mk, .book .h2 .hi, .book .qz-res-name, .book .qz-chips .pt-n { color: var(--ember-ink); }
.book :is(.qz-back, .qz-else span) { color: var(--ink); }
.book :is(.qz-count, .qz-hint, .qz-ai-by, .qz-res-hook) { color: var(--ink-2); }
.book .qz-line { background: rgba(27, 24, 20, 0.16); }
.book .qz-line > span { background: var(--ember-ink); }
.book .qz-opt span { border-color: var(--ink); background: transparent; color: var(--ink); }
.book .qz-opt:hover span { border-color: var(--ink); background: rgba(27, 24, 20, 0.06); }
.book .qz-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.book :is(.qz-opt, .qz-else) input:focus-visible + span { outline-color: var(--ink); }
.book .qz-else span { text-decoration-color: var(--ink); }
.book .qz-else input:checked + span { color: var(--ember-ink); text-decoration-color: var(--ember-ink); }
.book :is(.qz-plan .btn.primary, .qz-next) { border-color: var(--ember-ink); }
.book .qz-learn { color: var(--ink); border-color: var(--ink); }
.book .qz-learn:hover { border-color: var(--ink); background: rgba(27, 24, 20, 0.06); }
.book .qz-chips li { background: transparent; border-color: rgba(27, 24, 20, 0.28); }

/* Questionnaire pop-up, phone card and chip (18 Nov 2026). The dialog is native (showModal): focus stays inside,
   Escape closes, the page behind is inert; .qz-lock stops it scrolling without shifting the layout. */
html.qz-lock { overflow: hidden; }
.qz-dlg {
  width: min(1120px, calc(100vw - 48px)); max-width: none; max-height: calc(100dvh - 48px);
  margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain;
  border: 1px solid var(--line); border-radius: 28px; background: var(--ground); color: var(--paper);
}
.qz-dlg::backdrop { background: rgba(8, 7, 6, 0.74); }
.qz-dlg-in { padding: 0 clamp(20px, 3vw, 44px) clamp(28px, 3vw, 44px); }
.qz-dlg-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 0 12px; background: var(--ground);
}
.qz-dlg .quiz { margin-top: 0; }
.qz-x {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1.5px solid var(--soft); border-radius: 50%; background: var(--ground-2); color: var(--paper); cursor: pointer;
  transition: translate 200ms var(--ease), scale 200ms var(--ease), border-color 200ms var(--ease);
}
.qz-x:hover { border-color: var(--paper); }
.qz-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.qz-card {
  position: fixed; z-index: 45; left: 12px; right: 12px; bottom: 12px;
  display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 10px;
  padding: 12px 12px 12px 18px; border: 1px solid rgba(250, 247, 242, 0.16); border-radius: 20px;
  background: var(--ground-2); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.9);
}
.qz-card p { font-weight: 700; font-size: 15px; line-height: 1.3; }
.qz-chip {
  position: fixed; z-index: 45; right: 24px; bottom: 24px;
  display: flex; align-items: center; gap: 2px; padding: 4px;
  border: 1px solid rgba(250, 247, 242, 0.16); border-radius: 999px;
  background: var(--ground-2); box-shadow: 0 14px 32px -14px rgba(0, 0, 0, 0.8);
}
.qz-chip-go {
  min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; cursor: pointer; white-space: nowrap;
  background: var(--orange); color: var(--ink); font: 600 16px/1 var(--font-display);
  transition: translate 200ms var(--ease), scale 200ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease);
}
.qz-chip-go:hover { background: var(--orange-hi); }
.qz-x-sm { border-color: transparent; background: none; }
/* the chip steps aside while the questionnaire is on screen and while anyone types */
.qz-chip.is-away, body:has(:is(input, textarea, select):focus) .qz-chip { display: none; }
@media (max-width: 760px) {
  .qz-dlg { width: 100%; height: calc(100dvh - 8px); max-height: none; margin: auto 0 0; border-bottom: 0; border-radius: 22px 22px 0 0; }
  .qz-chip { right: auto; left: 50%; bottom: 16px; translate: -50% 0; }
}
@keyframes qz-pop { from { opacity: 0; transform: translateY(12px); } }
@keyframes qz-up { from { opacity: 0; transform: translateY(32px); } }
@media (prefers-reduced-motion: no-preference) {
  .qz-dlg[open] { animation: qz-pop 220ms var(--ease); }
  .qz-dlg[open]::backdrop { animation: qz-fade 220ms var(--ease); }
  .qz-card:not([hidden]) { animation: qz-up 240ms var(--ease); }
  .qz-chip:not([hidden]) { animation: qz-pop 200ms var(--ease); }
}
@keyframes qz-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: no-preference) and (max-width: 760px) {
  .qz-dlg[open] { animation: qz-up 240ms var(--ease); }
}

/* Booking calendar PREVIEW (18 Nov 2026): a placeholder for a Google Calendar appointment schedule, drawn in our style.
   Inert: the days and times only look like controls. */
.cal {
  margin: 0;
  background: var(--ground-2);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px 20px 24px;
}
.cal-head { display: flex; flex-wrap: wrap; gap: 10px 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cal-meta { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; line-height: 1.3; }
.cal-meta svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--orange); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cal-body { display: grid; gap: 20px; margin-top: 20px; }
.cal-m, .cal-d { font-family: var(--font-display); font-weight: 600; }
.cal-m { font-size: 26px; line-height: 1.1; letter-spacing: -0.02em; }
.cal-wk, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; text-align: center; }
.cal-wk { margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--soft); }
.cal-grid { margin-top: 10px; }
.cal-d {
  display: grid; place-items: center;
  width: 100%; max-width: 40px; aspect-ratio: 1; margin-inline: auto;
  border: 1.5px solid transparent; border-radius: 50%;
  font-size: 16px; line-height: 1; color: var(--dim);
}
.cal-d.is-open { color: var(--paper); border-color: var(--orange); }
.cal-d.is-picked { color: var(--ink); background: var(--orange); border-color: var(--orange); }
.cal-dl { font-weight: 700; line-height: 1.3; }
.cal-slots { margin-top: 12px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cal-s {
  display: flex; align-items: center; justify-content: center; min-height: 40px;
  border: 1.5px solid var(--soft); border-radius: 999px;
  font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums;
}
.cal-off { margin-top: 22px; color: var(--soft); }
.cal-note { margin-top: 22px; display: flex; gap: 10px; align-items: center; font-size: 15px; line-height: 1.4; color: var(--soft); }
.cal-note::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.cal-embed { display: block; width: 100%; height: 680px; border: 0; border-radius: 28px; }
/* Contact card (18 Nov 2026): heading, then name, email and phone (email and phone side by side from 1100px) */
.bk-ct { font-size: clamp(24px, 2vw, 30px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.bk-sub { margin: 6px 0 22px; color: var(--soft); }

.field + .field, .hp + .field { margin-top: 20px; }
.field label { display: block; margin-bottom: 8px; font-size: 16px; font-weight: 700; line-height: 1.3; }
.optional { font-weight: 400; color: var(--soft); }
.input {
  display: block; width: 100%; min-height: 52px;
  padding: 12px 16px;
  background: var(--ground); color: var(--paper);
  border: 1.5px solid var(--edge); border-radius: 14px;
  font: 400 17px/1.4 var(--font-body);
  transition: border-color 160ms var(--ease);
}
.input:hover { border-color: var(--soft); }
.input::placeholder { color: var(--dim); opacity: 1; } /* 5.44 on the ground */
.input:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-color: var(--paper); }
.input[aria-invalid="true"] { border-color: var(--err); }
.textarea { min-height: 128px; resize: vertical; }
.field-error { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; color: var(--err); font-size: 15px; }
.field-error svg { flex: none; margin-top: 2px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.check { display: flex; gap: 14px; align-items: flex-start; }
.check input {
  appearance: none; -webkit-appearance: none;
  flex: none; width: 26px; height: 26px; margin: 0;
  border: 2px solid var(--soft); border-radius: 7px;
  background: var(--ground);
  cursor: pointer;
}
.check input:checked {
  border-color: var(--orange);
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B1814' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.check[data-invalid] input { border-color: var(--err); }
.check label { margin: 2px 0 0; font-weight: 400; cursor: pointer; }
.preview-note { margin-top: 20px; display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--soft); }
.preview-note::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
[data-submit] { margin-top: 22px; width: 100%; }
.form-error { margin-top: 14px; color: var(--err); }
.notice { margin-top: 22px; font-size: 15px; line-height: 1.5; color: var(--soft); }
.notice a, .bk-done a { color: var(--paper); text-decoration-thickness: 1px; text-underline-offset: 0.25em; }
.bk-done h3 { font-size: 32px; line-height: 1.1; letter-spacing: -0.02em; }
.bk-done p { margin-top: 12px; color: var(--soft); }
.bk-done .btn { margin-top: 24px; }
.preview-flag { margin-bottom: 14px; color: var(--orange); font-weight: 700; font-size: 15px; }

/* Footer */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line); color: var(--soft); font-size: 15px; }
/* The brand line as the sign-off */
.signoff {
  margin: 8px 0 clamp(32px, 4vw, 56px);
  font-size: clamp(36px, 11.6vw, 152px); line-height: 0.92; letter-spacing: -0.04em;
  color: var(--dim);
  text-wrap: balance;
}
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 32px; }
.foot ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--paper); text-decoration-color: var(--edge); text-underline-offset: 0.3em; transition: text-decoration-color 160ms var(--ease); }
.foot a:hover { text-decoration-color: var(--paper); }

/* Tablet and desktop */
@media (min-width: 760px) {
  :root {
    --gutter: clamp(32px, 4vw, 64px);
    --nav-top: 14px;
    --nav-h: 60px;
    --tag: clamp(64px, min(11vw, 13.8vh), 156px); /* 18 Nov 2026: up from 12.6vh / 150px to fill the place the pill left */
    --h1: clamp(26px, 2.6vw, 40px);
    --h2: clamp(48px, 6.4vw, 104px);
    --h2xl: clamp(56px, 8.4vw, 136px);
    --h3: clamp(28px, 3vw, 46px);
    --body-l: clamp(18px, 1.35vw, 21px);
    --body: 18px;
    --sec-pad: clamp(112px, 12vw, 200px);
    --band: 230px;
    --gap: 72px;
    --rise: 72px;
    --fade: 90px;
    --planet: clamp(1800px, 200vw, 3400px);
    --halo-w: 118vw;
    --halo-h: 460px;
    --intro: 160px;
    --sweep: 18deg;
    --hl: 4deg;
    --climb: 24svh;
  }
  .nav { padding-left: 24px; }
  .brand img { width: 150px; }
  .ctas { gap: 12px; }

  .pts { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .svc-row {
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter);
    padding: clamp(32px, 3.4vw, 56px) 0 clamp(36px, 3.8vw, 60px);
  }
  .svc-head { grid-column: 1 / span 5; }
  .svc-body { grid-column: 7 / -1; }

  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }

  .faq-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; }
  .faq-grid > :first-child { grid-column: 1 / span 5; }
  .qs { grid-column: 6 / -1; margin-top: 0; }

  .bk-card { padding: clamp(28px, 3vw, 44px); }
  .cal { padding: clamp(24px, 2.4vw, 36px); }
  [data-submit] { width: auto; }
}
@media (min-width: 900px) {
  /* Links sit as a group just left of Book a call (owner, 18 Nov 2026); 16px nav gap + 14px = the 30px link gap */
  .nav-links { display: flex; gap: 30px; margin-left: auto; margin-right: 14px; }
  .pts:not(.pts-4) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .pts-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .bk-contact [data-fields] { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .bk-contact [data-fields] > * { grid-column: 1 / -1; }
  .bk-contact [data-submit] { justify-self: start; }
  .bk-contact [data-fields] > :is([data-field="email"], [data-field="phone"]) { grid-column: auto; }
}

/* Motion. Scroll-driven (CSS scroll timelines, no scroll listeners), plus the hero light's load-in and ambient loop.
   With reduced motion everything keeps its static default: the light risen and full, no loop.
   Without scroll-timeline support the scroll parts stay static. */
@keyframes lit-rise { from { translate: 0 var(--rise); } }
@keyframes lit-glow { from { opacity: 0.72; scale: 0.9 0.78; } }
/* Hero light, time-based: rises in on load, then breathes and a highlight runs along the rim. Brightest frame = the
   static risen light plus the highlight at the crest (measured in DIRECTION.md). */
@keyframes lit-intro { from { translate: 0 var(--intro); opacity: 0; } }
@keyframes lit-breathe { 50% { opacity: 0.78; scale: 0.95 0.9; } }
@keyframes rim-sweep {
  0% { rotate: calc(var(--sweep) * -1); opacity: 0; }
  22%, 78% { opacity: 1; }
  100% { rotate: var(--sweep); opacity: 0; }
}

/* Hero load-in (18 Nov 2026): the two hook lines, h1, then each button rise 20px and fade in, 70ms apart, done by 830ms */
@keyframes hero-in { from { opacity: 0; translate: 0 20px; } }
/* Buttons arrive (owner, 18 Nov 2026: "the buttons also gotta have fluid movement not just snap to the screen") */
@keyframes btn-in { from { opacity: 0; translate: 0 28px; scale: 0.96; } }
@keyframes nav-in { from { opacity: 0; translate: 0 -8px; } }
@keyframes qz-pick { 50% { scale: 0.96; } }
@keyframes qz-in { from { opacity: 0; translate: 16px 0; } }
@keyframes qz-char { from { opacity: 0; } }
/* Corners on scroll (owner spec, 18 Nov 2026): each mount pulls out along its own outward diagonal and fades, tied to the
   scroll both ways */
@keyframes corner-out { to { opacity: 0; translate: calc(var(--dx) * var(--pull-d)) calc(var(--dy) * var(--pull-d)); } }
/* Pinned sunrise, one property set per layer. The 77% stop is where the climb ends and the settle begins
   (40% of the hero's exit over a 0 to 52% range). */
@keyframes sun-climb {
  0% { translate: 0 var(--rise); }
  77% { translate: 0 calc(var(--climb) * -1); }
  100% { translate: 0 calc((var(--climb) + var(--settle)) * -1); }
}
@keyframes sun-glow {
  0% { opacity: 0.72; scale: 0.9 0.78; }
  77% { opacity: 1; scale: 1.18 1.1; }
  100% { opacity: 0; scale: 1.4 1.16; }
}
@keyframes sun-arc { 77% { opacity: 1; scale: 1.08; } 100% { opacity: 0; scale: 1.12; } }
@keyframes sun-ember { from { opacity: 0; scale: 0.8 0.7; } }
@keyframes sun-dusk { from { opacity: 0; } }
@keyframes sun-out { 66% { opacity: 1; } to { opacity: 0; } }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  .hero .lift { animation: lit-intro 1.2s var(--ease) both; }
  /* The loops run only once site.js has shown the Pause motion button (.motion-on), and stop while .is-paused. */
  .hero.motion-on .halo { animation: lit-breathe 8s ease-in-out infinite; }
  .hero.motion-on .sweep { animation: rim-sweep 10s cubic-bezier(0.45, 0, 0.55, 1) infinite; }
  .hero.is-paused :is(.lift, .halo, .sweep) { animation-play-state: paused; }
  .hero :is(.tl, h1) { animation: hero-in 550ms var(--ease) calc(var(--i, 0) * 70ms) both; }
  .hero .tl-hi { --i: 1; }
  .hero h1 { --i: 2; }
  /* after the h1, 90ms apart, done by about 1.2s; backwards fill only, so hover and press take over at rest */
  .hero .ctas > .btn { animation: btn-in 700ms cubic-bezier(0.22, 1, 0.36, 1) 400ms backwards; }
  .hero .ctas > :last-child { animation-delay: 490ms; }
  .nav .btn-primary { animation: nav-in 500ms var(--ease) 150ms backwards; }
  /* the load-in waits for the fonts (a script in the page head lifts this at fonts ready, 600ms at most) */
  html.is-loading :is(.hero .tl, .hero h1, .hero .ctas > .btn, .nav .btn-primary) { animation-play-state: paused; }
  /* hover lift, glow and press (14b); hover only where there is a real hover, press everywhere */
  @media (hover: hover) {
    :is(.btn, .qz-chip-go, .qz-x):hover { translate: 0 -2px; }
    :is(.btn-primary, .btn.primary, .qz-chip-go):hover { box-shadow: 0 10px 30px -10px rgba(255, 75, 26, 0.6); }
    .qz-opt:hover span { translate: 0 -2px; }
  }
  :is(.btn, .qz-chip-go, .qz-x, .motion):active { scale: 0.97; transition-duration: 100ms; }
  .qz-opt:active span { scale: 0.97; }
  .qz-opt input:checked + span { animation: qz-pick 150ms var(--ease); }
  .quiz.qz-on .qz-step.is-current { animation: qz-in 200ms var(--ease); } /* each new question slides in */
  .qz-type > span { animation: qz-char 1ms linear both; animation-delay: calc(var(--i) * var(--step, 5ms)); } /* the answer types on over 1.2s */
  @supports (animation-timeline: scroll()) {
    .hero .rig { animation: lit-rise auto linear both; animation-timeline: scroll(root block); animation-range: 0 75vh; }
    .hero .glow { animation: lit-glow auto linear both; animation-timeline: scroll(root block); animation-range: 0 75vh; }
  }
  /* Corner pull. The mounts may leave the hero now, so it no longer clips them; What we do is positioned so it still
     paints over them. Without scroll timelines site.js sets --pull (0 to 1) from an IntersectionObserver instead. */
  .hero { overflow: clip visible; } /* the mounts may pull out below the hero; sideways they stop at the screen edge */
  .what { position: relative; }
  .fc {
    will-change: translate, opacity;
    opacity: calc(1 - var(--pull, 0));
    translate: calc(var(--dx) * var(--pull, 0) * var(--pull-d)) calc(var(--dy) * var(--pull, 0) * var(--pull-d));
  }
  /* exit-crossing 0% to 100% of the hero = scrolled from the top until its bottom edge passes the top of the screen */
  @supports (animation-timeline: view()) {
    /* inset 0: measured against the whole screen, not the scroll-padding under the nav */
    .hero { view-timeline: --hero block; view-timeline-inset: 0; }
    .fc { animation: corner-out linear both; animation-timeline: --hero; animation-range: exit-crossing 0% exit-crossing 70%; }
  }
}

/* Pinned sunrise (owner, 18 Nov 2026): the light stays at the bottom of the screen while the hero and What we do scroll
   over it. Over the hero it climbs, widens and brightens; then the rim and the hot glow give way to a soft wide ember
   that eases to Dusk blue behind What we do; it is gone before How it works. Only on screens tall enough for the whole
   hero (shorter ones would put the light under the buttons); otherwise the static risen light above. */
@media (prefers-reduced-motion: no-preference) and (min-height: 700px) {
  @supports (animation-timeline: view()) and (timeline-scope: none) {
    body { background: none; } /* html carries the ground; the pinned light (z-index -1 at the root) shows through */
    main { timeline-scope: --what; }
    .what { view-timeline: --what block; view-timeline-inset: 0; }
    .hero { isolation: auto; } /* so the light, frame and grain stack at the root, under all page content */
    /* the grain stops at the hero's bottom edge; fade it so no seam crosses the pinned light */
    .hero::after {
      -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 280px), transparent);
      mask-image: linear-gradient(to bottom, #000 calc(100% - 280px), transparent);
    }
    .hero .light {
      position: fixed; inset: var(--ft) 0 var(--fi);
      animation: sun-out linear both; animation-timeline: --what; animation-range: cover 0% exit 0%;
    }
    .hero .rig { animation: sun-climb linear both; animation-timeline: --hero; animation-range: exit-crossing 0% exit-crossing 52%; }
    .hero .glow { animation: sun-glow linear both; animation-timeline: --hero; animation-range: exit-crossing 0% exit-crossing 52%; }
    .hero .planet {
      transform-origin: 50% 0; /* the crest stays put while the arc widens */
      animation: sun-arc linear both; animation-timeline: --hero; animation-range: exit-crossing 0% exit-crossing 52%;
    }
    /* Pre-blurred washes, no filter: the ember under the rig, the Dusk blue over it (opaque ground, so it crossfades) */
    .hero .light::before, .hero .light::after { content: ""; position: absolute; inset: 0; }
    /* the ember is scaled, so its box overhangs the screen and the gradient reaches zero inside it (no edge shows) */
    .hero .light::before {
      inset: -20% -40%;
      background: radial-gradient(ellipse 50% 46% at 50% 55%,
        rgba(255, 75, 26, 0.18), rgba(255, 75, 26, 0.09) 40%, rgba(97, 123, 255, 0.045) 70%, rgba(97, 123, 255, 0));
      animation: sun-ember linear both; animation-timeline: --hero; animation-range: exit-crossing 40% exit-crossing 62%;
    }
    .hero .light::after {
      background: radial-gradient(ellipse 80% 52% at 50% 60%,
        rgba(97, 123, 255, 0.18), rgba(97, 123, 255, 0.08) 45%, rgba(97, 123, 255, 0) 80%), var(--ground);
      animation: sun-dusk linear both; animation-timeline: --hero; animation-range: exit-crossing 56% exit-crossing 86%;
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .arw-i, .more, .q-i, .input, .nav-links a, .foot a, .motion, .qz-opt span, .qz-line > span, .qz-x, .qz-chip-go, .qz-chev, .qz-more-panel { transition: none; }
}
