/* ==========================================================================
   CV CENTRAL — LANDING
   Editorial × Technology design system.
   Consumed only by index.html. App pages use main.css / builder.css.

   Contents
   01  Tokens
   02  Reset & base
   03  Typography primitives
   04  Layout primitives (bands, grid, rules)
   05  Motion primitives
   06  Buttons & controls
   07  Navigation
   08  Product UI kit (shared with app visual language)
   09  Sections
   10  Footer
   11  Responsive
   ========================================================================== */

/* ==========================================================================
   01  TOKENS
   ========================================================================== */

:root {
  /* -- Surfaces ------------------------------------------------------- */
  --ink:        #08070C;
  --ink-2:      #0E0C15;
  --ink-3:      #16121F;
  --ink-4:      #1E1929;

  --paper:      #F1EEE7;
  --paper-2:    #FAF8F4;
  --paper-3:    #E4DFD4;

  /* -- Brand ---------------------------------------------------------- */
  --violet:      #5B2D8E;
  --violet-lit:  #8A5CD6;
  --violet-glow: #B08CF5;
  --lime:        #AAFF00;
  --lime-deep:   #7FBF00;

  /* -- Text on ink ---------------------------------------------------- */
  --on-ink:    #FFFFFF;
  --on-ink-2:  #C3BDD2;   /* secondary — deliberately bright, ~11:1 */
  --on-ink-3:  #948DA6;   /* tertiary  — ~6.5:1 */

  /* -- Text on paper -------------------------------------------------- */
  --on-paper:   #131019;
  --on-paper-2: #474156;
  --on-paper-3: #6A6380;

  /* -- Contextual aliases (flipped per band) --------------------------- */
  --bg:    var(--ink);
  --fg:    var(--on-ink);
  --fg-2:  var(--on-ink-2);
  --fg-3:  var(--on-ink-3);
  --rule:  rgba(255,255,255,0.10);
  --rule-soft: rgba(255,255,255,0.055);
  --accent: var(--lime);
  --surface: var(--ink-2);
  --surface-2: var(--ink-3);

  /* -- Type ------------------------------------------------------------ */
  --f-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --f-sans:    'Manrope', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --f-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Height-aware: the headline must stay huge without pushing the primary
     CTA below the fold on a short laptop viewport. */
  --t-hero:   clamp(3.1rem, min(12.4vw, 15.5vh), 11.5rem);
  --t-mega:   clamp(2.5rem, 8vw, 6.75rem);
  --t-large:  clamp(2rem, 5.2vw, 4rem);
  --t-mid:    clamp(1.5rem, 3.2vw, 2.5rem);
  --t-sub:    clamp(1.15rem, 2vw, 1.6rem);
  --t-lead:   clamp(1.02rem, 1.15vw, 1.25rem);
  --t-body:   1rem;
  --t-small:  0.875rem;
  --t-micro:  0.72rem;

  /* -- Space ----------------------------------------------------------- */
  --gutter:  clamp(1.25rem, 4.5vw, 5.5rem);
  --band-y:  clamp(5.5rem, 12vh, 11rem);
  --measure: 34ch;
  --max:     1560px;

  /* -- Motion ---------------------------------------------------------- */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io:   cubic-bezier(0.65, 0, 0.35, 1);
  --dur:       0.8s;

  --radius: 3px;
  --radius-lg: 6px;
}

/* Band contexts -------------------------------------------------------- */
.band--paper {
  --bg: var(--paper);
  --fg: var(--on-paper);
  --fg-2: var(--on-paper-2);
  --fg-3: var(--on-paper-3);
  --rule: rgba(19,16,25,0.14);
  --rule-soft: rgba(19,16,25,0.07);
  --accent: var(--violet);
  --surface: var(--paper-2);
  --surface-2: var(--paper-3);
}

.band--ink   { --bg: var(--ink); }
.band--ink-2 { --bg: var(--ink-2); }

/* ==========================================================================
   02  RESET & BASE
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Offset for the fixed masthead when jumping to #anchors */
  scroll-padding-top: 6rem;
  /* Contains stray horizontal overflow. Safe here — <html> is already the
     document scroller, so this does not create a new containing block that
     would break position:sticky further down the tree. */
  overflow-x: hidden;
}

body {
  background: var(--ink);
  color: var(--on-ink);
  font-family: var(--f-sans);
  font-size: var(--t-body);
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: -0.005em;
  /* clip, not hidden — `hidden` would make <body> a scroll container and
     kill the sticky pins in the analysis and journey sections. */
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

ul, ol { list-style: none; }

::selection { background: var(--lime); color: #08070C; }

:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 3px;
  border-radius: 2px;
}
.band--paper :focus-visible { outline-color: var(--violet); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: 0; left: 50%;
  transform: translate(-50%, -110%);
  z-index: 500;
  background: var(--lime); color: #08070C;
  font-weight: 700; font-size: var(--t-small);
  padding: 0.75rem 1.5rem;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: var(--ink-4); }
::-webkit-scrollbar-thumb:hover { background: var(--violet); }

/* ==========================================================================
   03  TYPOGRAPHY PRIMITIVES
   ========================================================================== */

.display {
  font-family: var(--f-display);
  font-weight: 600;
  font-variation-settings: 'SOFT' 0, 'WONK' 0;
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.t-hero  { font-size: var(--t-hero);  line-height: 0.86; letter-spacing: -0.045em; }
.t-mega  { font-size: var(--t-mega);  line-height: 0.9;  letter-spacing: -0.04em; }
.t-large { font-size: var(--t-large); line-height: 0.95; letter-spacing: -0.035em; }
.t-mid   { font-size: var(--t-mid);   line-height: 1.05; letter-spacing: -0.03em; }
.t-sub   { font-size: var(--t-sub);   line-height: 1.2;  letter-spacing: -0.02em; }

/* Italic accent — Fraunces' true italic carries the editorial voice */
.em {
  font-style: italic;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  color: var(--accent);
}
.em--quiet { font-style: italic; font-variation-settings: 'SOFT' 40, 'WONK' 1; color: var(--fg-3); }

.lead {
  font-size: var(--t-lead);
  line-height: 1.55;
  color: var(--fg-2);
  max-width: 46ch;
  letter-spacing: -0.011em;
}

.body-copy {
  font-size: var(--t-body);
  line-height: 1.7;
  color: var(--fg-2);
  max-width: 52ch;
}

.micro {
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}

.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* Section index — the editorial numbering rhythm */
.index {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-family: var(--f-mono);
  font-size: var(--t-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  padding-bottom: 1.25rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
  border-bottom: 1px solid var(--rule);
}
.index__num { color: var(--accent); font-weight: 700; }
.index__rule { flex: 1; min-width: 1rem; }
.index > span:not(.index__rule) { white-space: nowrap; }

/* The trailing descriptor is editorial garnish — it is the first thing to go
   when the row would otherwise wrap into itself. */
@media (max-width: 680px) {
  .index > span:last-child:not(.index__rule) { display: none; }
  .index { margin-bottom: clamp(2rem, 6vw, 3rem); }
}

/* ==========================================================================
   04  LAYOUT PRIMITIVES
   ========================================================================== */

.band {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding-block: var(--band-y);
  overflow: clip;
}
.band--flush { padding-block: 0; }
.band--tight { padding-block: clamp(3.5rem, 7vh, 6rem); }

.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 1180px; }

.grid12 {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 2rem);
}

.hairline { height: 1px; background: var(--rule); border: 0; }

/* Split heading + supporting copy — used across most sections */
.stack-head {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 4vw, 5rem);
  align-items: end;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}
.stack-head__aside { padding-bottom: 0.4rem; }

/* ==========================================================================
   05  MOTION PRIMITIVES
   ========================================================================== */

/* Every rule that HIDES content is scoped to .js — set by an inline script in
   the document head. Without JS the page renders fully, just without motion. */

/* Line-by-line masked reveal for display type */
.reveal-line { display: block; }
.js .reveal-line { overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.js .reveal-line > span {
  display: block;
  transform: translateY(105%);
  transition: transform 1.05s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .is-in .reveal-line > span,
.js .reveal-line.is-in > span { transform: translateY(0); }

/* Generic block reveal */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
  will-change: opacity, transform;
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

.js [data-reveal="fade"]  { transform: none; }
.js [data-reveal="left"]  { transform: translateX(-32px); }
.js [data-reveal="right"] { transform: translateX(32px); }
.js [data-reveal="scale"] { transform: scale(0.955); transform-origin: center bottom; }

/* Wipe reveal for panels/images.
   The clip lives on the CHILD, never on the observed element: clip-path on a
   target shrinks its own intersection rect to zero, so IntersectionObserver
   would never report it visible and the reveal would deadlock shut. */
.js [data-reveal="wipe"] { opacity: 1; transform: none; }
.js [data-reveal="wipe"] > * {
  clip-path: inset(0 0 100% 0);
  transition: clip-path 1.1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal="wipe"].is-in > * { clip-path: inset(0 0 0 0); }

/* Elements finished animating drop will-change */
.js [data-reveal].is-in,
.js .is-in .reveal-line > span { will-change: auto; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .reveal-line > span { transform: none !important; }
}

/* ==========================================================================
   06  BUTTONS & CONTROLS
   ========================================================================== */

.btn {
  --btn-bg: var(--lime);
  --btn-fg: #08070C;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--f-sans);
  font-size: var(--t-small);
  font-weight: 700;
  letter-spacing: -0.012em;
  padding: 1.05rem 1.9rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  border-radius: 100px;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.28s var(--ease), background 0.28s var(--ease), color 0.28s var(--ease);
  white-space: nowrap;
}
.btn::after {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: #FFFFFF;
  transform: translateY(101%);
  transition: transform 0.42s var(--ease);
}
.btn:hover::after, .btn:focus-visible::after { transform: translateY(0); }
.btn:active { transform: scale(0.975); }

.btn__arrow { transition: transform 0.32s var(--ease); flex-shrink: 0; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--lg { font-size: 1rem; padding: 1.25rem 2.4rem; }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--fg);
  box-shadow: inset 0 0 0 1px var(--rule);
}
/* --rule is tuned for hairlines; a button outline needs more presence */
.band--paper .btn--ghost { box-shadow: inset 0 0 0 1px rgba(19,16,25,0.26); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px transparent; }
.btn--ghost::after { background: var(--fg); }
.btn--ghost:hover, .btn--ghost:focus-visible { color: var(--bg); }

.btn--violet { --btn-bg: var(--violet); --btn-fg: #FFFFFF; }
.btn--violet::after { background: var(--violet-lit); }
.btn--violet:hover, .btn--violet:focus-visible { color: #FFFFFF; }

/* Quiet inline link with animated rule */
.link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: var(--t-small);
  font-weight: 600;
  color: var(--fg);
  padding-bottom: 2px;
}
.link::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.link:hover::after, .link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* Touch targets.
   These links sit at ~22px tall, which is under the 24px WCAG 2.2 minimum
   and well under the 44px comfortable-tap size. Expand the hit area with a
   pseudo-element rather than padding so nothing shifts visually. */
@media (pointer: coarse) {
  .link::before {
    content: '';
    position: absolute;
    inset: -0.7rem -0.5rem;
  }
  .brand { padding-block: 0.5rem; margin-block: -0.5rem; }
}

/* ==========================================================================
   07  NAVIGATION
   ========================================================================== */

.masthead {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem var(--gutter);
  color: #FFFFFF;
  transition: background 0.45s var(--ease), color 0.45s var(--ease),
              padding 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.masthead::before {
  content: '';
  position: absolute; inset: 0; z-index: -1;
  background: rgba(8,7,12,0.72);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.masthead.is-stuck { padding-block: 0.8rem; }
.masthead.is-stuck::before { opacity: 1; }
.masthead.is-stuck { box-shadow: 0 1px 0 rgba(255,255,255,0.08); }

/* Over a paper band the masthead flips to dark ink */
.masthead.is-inverted { color: var(--on-paper); }
.masthead.is-inverted::before { background: rgba(241,238,231,0.78); }
.masthead.is-inverted.is-stuck { box-shadow: 0 1px 0 rgba(19,16,25,0.12); }

.brand { display: inline-flex; align-items: center; gap: 0.6rem; flex-shrink: 0; }
.brand__mark { flex-shrink: 0; }
.brand__mark rect { transition: y 0.5s var(--ease), height 0.5s var(--ease); }
.brand:hover .brand__mark rect:nth-child(1) { y: 16; height: 18; }
.brand:hover .brand__mark rect:nth-child(2) { y: 8;  height: 26; }
.brand__word {
  font-family: var(--f-display);
  font-weight: 600;
  font-size: 1.16rem;
  letter-spacing: -0.03em;
}
.brand__word i { font-style: normal; color: var(--violet-glow); }
.masthead.is-inverted .brand__word i { color: var(--violet); }

.nav { display: flex; align-items: center; gap: clamp(1rem, 2.2vw, 2.25rem); }
.nav a {
  position: relative;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: -0.008em;
  opacity: 0.72;
  transition: opacity 0.25s var(--ease);
}
.nav a::after {
  content: '';
  position: absolute; left: 0; bottom: -5px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.38s var(--ease);
}
.nav a:hover, .nav a:focus-visible { opacity: 1; }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); transform-origin: left; }

.masthead__actions { display: flex; align-items: center; gap: 0.4rem; flex-shrink: 0; }
.masthead__actions .btn { padding: 0.72rem 1.35rem; font-size: 0.83rem; }
.masthead__login {
  font-size: 0.86rem; font-weight: 600;
  padding: 0.72rem 1rem;
  opacity: 0.75;
  transition: opacity 0.25s var(--ease);
}
.masthead__login:hover { opacity: 1; }

/* Scroll progress hairline */
.progress {
  position: fixed; inset: auto 0 auto 0; top: 0;
  z-index: 201;
  height: 2px;
  background: var(--lime);
  transform: scaleX(var(--scroll, 0));
  transform-origin: left;
  pointer-events: none;
}

/* Mobile menu ---------------------------------------------------------- */
.burger {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  flex-direction: column; gap: 5px;
  margin-right: -0.6rem;
}
.burger span {
  display: block; width: 19px; height: 1.5px;
  background: currentColor;
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0;
  z-index: 190;
  background: var(--ink);
  padding: 6.5rem var(--gutter) 2.5rem;
  display: flex; flex-direction: column;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.65s var(--ease);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.drawer.is-open { clip-path: inset(0 0 0 0); }
.drawer__nav { display: flex; flex-direction: column; border-top: 1px solid var(--rule-soft); }
.drawer__nav a {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 8vw, 2.9rem);
  line-height: 1;
  letter-spacing: -0.035em;
  color: #FFFFFF;
  padding: 1.05rem 0;
  border-bottom: 1px solid var(--rule-soft);
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), color 0.25s;
}
.drawer.is-open .drawer__nav a { opacity: 1; transform: none; }
.drawer__nav a:nth-child(1) { transition-delay: 0.10s; }
.drawer__nav a:nth-child(2) { transition-delay: 0.16s; }
.drawer__nav a:nth-child(3) { transition-delay: 0.22s; }
.drawer__nav a:nth-child(4) { transition-delay: 0.28s; }
.drawer__nav a:nth-child(5) { transition-delay: 0.34s; }
.drawer__nav a:active { color: var(--lime); }
.drawer__nav a span {
  font-family: var(--f-mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.16em; color: var(--on-ink-3);
}
.drawer__foot { margin-top: auto; padding-top: 2.5rem; display: grid; gap: 0.75rem; }
.drawer__foot .btn { justify-content: center; width: 100%; }

body.is-locked { overflow: hidden; }

/* ==========================================================================
   08  PRODUCT UI KIT
   Mirrors the real app: same violet/lime accents, same score ring,
   same chip + panel language as dashboard.html / cv-builder.html.
   ========================================================================== */

.ui {
  background: #100D18;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7);
  color: #FFFFFF;
  font-size: 0.85rem;
}
.band--paper .ui { box-shadow: 0 30px 70px -24px rgba(19,16,25,0.4); }

.ui__bar {
  display: flex; align-items: center; gap: 0.6rem;
  padding: 0.7rem 0.95rem;
  background: #0B0912;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.ui__dots { display: flex; gap: 5px; }
.ui__dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.14); }
.ui__title {
  font-family: var(--f-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #948DA6;
}
.ui__body { padding: 1.15rem; }

.ui-label {
  font-family: var(--f-mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: #948DA6;
}

.ui-chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 0.75rem; font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
  background: rgba(138,92,214,0.17);
  color: #C9AEF5;
  border: 1px solid rgba(138,92,214,0.32);
  white-space: nowrap;
}
.ui-chip--lime {
  background: rgba(170,255,0,0.13);
  color: var(--lime);
  border-color: rgba(170,255,0,0.3);
}
.ui-chip--miss {
  background: rgba(255,255,255,0.04);
  color: #8A8299;
  border-color: rgba(255,255,255,0.1);
  border-style: dashed;
}

/* Chips are used two ways: loose on a band, and inside a .ui product mock.
   The mock is always dark; a band may not be. Restyle for paper, then put
   the dark treatment back for chips that sit inside a mock. */
.band--paper .ui-chip {
  background: rgba(91,45,142,0.10);
  color: #4A2A73;
  border-color: rgba(91,45,142,0.28);
}
.band--paper .ui-chip--lime {
  background: rgba(127,191,0,0.18);
  color: #3A5500;
  border-color: rgba(127,191,0,0.5);
}
.band--paper .ui-chip--miss {
  background: transparent;
  color: var(--on-paper-3);
  border-color: rgba(19,16,25,0.22);
}
.band--paper .ui .ui-chip {
  background: rgba(138,92,214,0.17);
  color: #C9AEF5;
  border-color: rgba(138,92,214,0.32);
}
.band--paper .ui .ui-chip--lime {
  background: rgba(170,255,0,0.13);
  color: var(--lime);
  border-color: rgba(170,255,0,0.3);
}
.band--paper .ui .ui-chip--miss {
  background: rgba(255,255,255,0.04);
  color: #8A8299;
  border-color: rgba(255,255,255,0.1);
}

.ui-track { height: 4px; border-radius: 4px; background: rgba(255,255,255,0.09); overflow: hidden; }
.ui-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--violet), var(--lime));
  width: 0;
  transition: width 1.5s var(--ease);
}

/* Score ring — same geometry as the dashboard's .score-ring-sm */
.ring { position: relative; display: grid; place-items: center; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); overflow: visible; }
.ring__bg  { stroke: rgba(255,255,255,0.1); }
.ring__val {
  stroke: var(--lime);
  stroke-linecap: round;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.ring__num {
  position: absolute;
  font-family: var(--f-mono);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* Document mock ------------------------------------------------------- */
.doc {
  background: #FBFAF7;
  color: #14111C;
  padding: clamp(1.1rem, 2.2vw, 1.9rem);
  font-size: 0.78rem;
  line-height: 1.5;
}
.doc__name {
  font-family: var(--f-display);
  font-weight: 600; font-size: 1.35rem;
  letter-spacing: -0.03em; line-height: 1;
  margin-bottom: 0.25rem;
}
.doc__meta { font-family: var(--f-mono); font-size: 0.6rem; letter-spacing: 0.09em; color: #6A6380; text-transform: uppercase; }
.doc__rule { height: 1px; background: rgba(19,16,25,0.13); margin: 0.9rem 0; }
.doc__h {
  font-family: var(--f-mono); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--violet); margin-bottom: 0.5rem;
}
.doc__role { font-weight: 700; font-size: 0.82rem; letter-spacing: -0.01em; }
.doc__org { font-size: 0.72rem; color: #6A6380; margin-bottom: 0.4rem; }
.doc__li { display: flex; gap: 0.5rem; font-size: 0.735rem; color: #474156; margin-bottom: 0.28rem; }
.doc__li::before { content: '—'; color: #B0A9C0; flex-shrink: 0; }
.doc__block + .doc__block { margin-top: 0.85rem; }
.doc__tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.doc__tag {
  font-size: 0.66rem; font-weight: 600;
  padding: 0.16rem 0.45rem; border-radius: 3px;
  background: rgba(91,45,142,0.09); color: #4A3A66;
  border: 1px solid rgba(91,45,142,0.16);
  transition: background 0.5s var(--ease), color 0.5s var(--ease), border-color 0.5s var(--ease);
}
.doc__tag.is-hot {
  background: rgba(127,191,0,0.2);
  border-color: rgba(127,191,0,0.5);
  color: #3D5A00;
}

/* Highlighted (AI-rewritten) text run */
mark.hl {
  background: rgba(170,255,0,0.32);
  color: inherit;
  padding: 0 0.12em;
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

/* ==========================================================================
   09  SECTIONS
   ========================================================================== */

/* --- 09.1  HERO ------------------------------------------------------- */

#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: clamp(6.5rem, 12vh, 9rem);
  padding-bottom: clamp(1.5rem, 3vh, 2.5rem);
  background: var(--ink);
  overflow: clip;
}

.hero__aura {
  position: absolute;
  top: -22%; right: -14%;
  width: min(78vw, 900px); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 50%, rgba(138,92,214,0.24), rgba(138,92,214,0) 66%);
  pointer-events: none;
  animation: aura 16s var(--ease-io) infinite alternate;
}
.hero__aura--2 {
  top: auto; bottom: -30%; right: auto; left: -16%;
  width: min(60vw, 660px);
  background: radial-gradient(circle at 50% 50%, rgba(170,255,0,0.09), rgba(170,255,0,0) 68%);
  animation-duration: 21s; animation-direction: alternate-reverse;
}
@keyframes aura {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(-4%, 5%, 0) scale(1.12); }
}

/* Faint editorial grid */
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 72%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 22%, #000 72%, transparent);
}

.hero__inner { position: relative; z-index: 2; width: 100%; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.7rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  color: var(--on-ink-2);
}
.hero__eyebrow b { color: var(--lime); font-weight: 700; }
.hero__eyebrow-rest { white-space: nowrap; }
/* Below this the full string can't sit on one line, and the nowrap on the
   tail would force the lead-in to break mid-phrase instead. */
@media (max-width: 640px) { .hero__eyebrow-rest { display: none; } }
.pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 0 rgba(170,255,0,0.6);
  animation: pulse 2.4s var(--ease-io) infinite;
  flex-shrink: 0;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(170,255,0,0.5); }
  70%  { box-shadow: 0 0 0 9px rgba(170,255,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(170,255,0,0); }
}

.hero__title { margin-bottom: clamp(1.75rem, 3.5vw, 2.75rem); }
.hero__title .reveal-line > span { will-change: transform; }
.hero__title .em { color: var(--violet-glow); }

.hero__foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(1.75rem, 4vw, 4rem);
  align-items: end;
  padding-top: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 1px solid var(--rule-soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }

.hero__ticker {
  display: flex; flex-wrap: wrap; gap: 0.5rem 1.6rem;
  justify-content: flex-end;
  max-width: 32rem;
}
.hero__ticker li {
  display: flex; align-items: center; gap: 0.5rem;
  font-family: var(--f-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--on-ink-3);
}
.hero__ticker li::before {
  content: ''; width: 4px; height: 4px; border-radius: 50%;
  background: var(--violet-lit); flex-shrink: 0;
}

/* Hero live analysis panel */
.hero__panel {
  position: absolute;
  z-index: 3;
  right: var(--gutter);
  top: 50%;
  width: min(30vw, 360px);
  transform: translate3d(var(--mx, 0px), calc(-50% + var(--my, 0px)), 0);
  transition: transform 0.9s var(--ease);
}
.scan {
  position: relative;
  overflow: hidden;
}
.scan::after {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 34%;
  background: linear-gradient(to bottom, rgba(170,255,0,0) 0%, rgba(170,255,0,0.09) 62%, rgba(170,255,0,0.5) 96%, rgba(170,255,0,0.9) 100%);
  animation: scan 3.6s var(--ease-io) infinite;
  pointer-events: none;
}
@keyframes scan {
  0%   { transform: translateY(-110%); opacity: 0; }
  12%  { opacity: 1; }
  88%  { opacity: 1; }
  100% { transform: translateY(330%); opacity: 0; }
}

.verdict {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.95rem 1.15rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  background: #0B0912;
}
.verdict__num {
  font-family: var(--f-mono); font-size: 2rem; font-weight: 700;
  color: var(--lime); line-height: 1; letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.verdict__den { font-size: 0.8rem; color: #8A8299; }

.hero__scrollcue {
  position: absolute;
  /* Centred: the actions sit left, the capability list sits right */
  left: 50%; bottom: 1.6rem;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; align-items: center; gap: 0.6rem;
  font-family: var(--f-mono); font-size: 0.63rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--on-ink-3);
  pointer-events: none;
}
.hero__scrollcue i {
  display: block; width: 1px; height: 28px;
  background: linear-gradient(to bottom, var(--on-ink-3), transparent);
  animation: cue 2.2s var(--ease-io) infinite;
  transform-origin: top;
}
@keyframes cue { 0%,100% { transform: scaleY(0.35); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* --- 09.2  MARQUEE ---------------------------------------------------- */

.marquee {
  --speed: 46s;
  position: relative;
  display: flex;
  overflow: hidden;
  padding-block: 1.15rem;
  border-block: 1px solid var(--rule);
  background: var(--ink-2);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}
.marquee__row {
  display: flex; flex-shrink: 0; align-items: center;
  gap: clamp(1.5rem, 3vw, 3rem);
  padding-right: clamp(1.5rem, 3vw, 3rem);
  animation: marquee var(--speed) linear infinite;
}
.marquee:hover .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee__item {
  display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--f-mono); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.13em; text-transform: uppercase;
  color: var(--on-ink-2); white-space: nowrap;
}
.marquee__item i { color: var(--violet-lit); font-style: normal; }

/* --- 09.3  PROBLEM / FUNNEL ------------------------------------------- */

.funnel {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}

.dots {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: clamp(4px, 0.8vw, 9px);
  /* The block is square, so an uncapped width makes it taller than the
     viewport and the narrowing scrolls past unseen. */
  max-width: 30rem;
  margin-bottom: 1.5rem;
}
.dots i {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--violet-lit);
  transition: background 0.6s var(--ease), box-shadow 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: calc(var(--i) * 7ms);
}
/* Filtered-out cells recede but stay visible — the point of the graphic is
   the contrast between the field and what survives it, and a field you
   cannot see reads as an empty grid. */
.dots i.is-cut { background: rgba(255,255,255,0.075); }
.band--paper .dots i.is-cut { background: rgba(19,16,25,0.09); }
.dots i.is-live {
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(170,255,0,0.16);
  transform: scale(1.08);
}

.funnel__legend {
  display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem;
  font-family: var(--f-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--fg-3);
}
.funnel__legend span { display: flex; align-items: center; gap: 0.45rem; }
.funnel__legend i { width: 9px; height: 9px; border-radius: 2px; flex-shrink: 0; }

.stages { border-top: 1px solid var(--rule); }
.stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: baseline;
  padding: clamp(1.1rem, 2.4vw, 1.9rem) 0;
  border-bottom: 1px solid var(--rule);
  transition: opacity 0.5s var(--ease);
}
.stage__k {
  font-family: var(--f-mono); font-size: 0.66rem; font-weight: 700;
  letter-spacing: 0.15em; color: var(--fg-3);
  min-width: 2.4ch;
}
.stage__t {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.25rem, 2.4vw, 1.85rem);
  letter-spacing: -0.03em; line-height: 1.05;
  margin-bottom: 0.4rem;
}
.stage__p { font-size: 0.9rem; line-height: 1.6; color: var(--fg-2); max-width: 44ch; }
.stage.is-active .stage__k { color: var(--accent); }
.stage.is-active .stage__t { color: var(--fg); }

.pullquote {
  font-family: var(--f-display);
  font-weight: 500;
  font-style: italic;
  font-variation-settings: 'SOFT' 40, 'WONK' 1;
  font-size: clamp(1.35rem, 3vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.03em;
  max-width: 24ch;
  color: var(--fg);
}

/* --- 09.4  ANALYSIS (pinned CV) --------------------------------------- */

.pin { position: relative; }
/* The track supplies the scroll distance the sticky child holds for. */
.pin__track { height: 165svh; }
.pin__sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(5rem, 10vh, 7rem) clamp(2rem, 5vh, 4rem);
}
.pin__sticky > .shell { width: 100%; }

.analysis {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: 100%;
}

.metrics { display: grid; gap: 0.6rem; }
.metric {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.5rem 1rem;
  align-items: center;
  padding: clamp(0.85rem, 1.6vw, 1.15rem) clamp(1rem, 2vw, 1.4rem);
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease), border-color 0.6s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .metric { opacity: 0; transform: translateY(14px); }
.js .metric.is-in { opacity: 1; transform: none; }
.metric.is-in:nth-child(odd) { border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.metric__name { font-size: 0.86rem; font-weight: 600; letter-spacing: -0.01em; }
.metric__val {
  display: flex; align-items: baseline; gap: 0.5rem;
  font-family: var(--f-mono); font-size: 0.95rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.metric__from { color: var(--fg-3); text-decoration: line-through; text-decoration-thickness: 1px; font-size: 0.82rem; }
.metric__to { color: var(--accent); }
.metric__bar { grid-column: 1 / -1; }
.metric .ui-track { background: var(--rule); }
.band--paper .ui-fill { background: linear-gradient(90deg, var(--violet-lit), var(--violet)); }

.analysis__note {
  display: flex; gap: 0.85rem;
  margin-top: 1.1rem;
  padding: 1.05rem 1.25rem;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--violet) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--violet) 26%, transparent);
}
.analysis__note svg { flex-shrink: 0; color: var(--violet-lit); margin-top: 2px; }
.band--paper .analysis__note svg { color: var(--violet); }
.analysis__note p { font-size: 0.88rem; line-height: 1.6; color: var(--fg-2); }
.analysis__note strong { color: var(--fg); font-weight: 700; }

/* --- 09.5  ATS SEQUENCE ----------------------------------------------- */

.ats { display: grid; gap: clamp(2rem, 4vw, 3.5rem); }

.ats__rail {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.ats__step {
  position: relative;
  background: var(--bg);
  padding: clamp(1rem, 2vw, 1.4rem);
  min-height: clamp(7rem, 11vw, 8.5rem);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 0.9rem;
  transition: background 0.55s var(--ease), color 0.55s var(--ease);
}
.ats__step::before {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 2px;
  background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.7s var(--ease);
}
.ats__step.is-on::before { transform: scaleX(1); }
.ats__step.is-on { background: var(--surface); }
.ats__k {
  font-family: var(--f-mono); font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.16em; color: var(--fg-3);
  transition: color 0.4s var(--ease);
}
.ats__step.is-on .ats__k { color: var(--accent); }
.ats__t {
  font-size: 0.95rem; font-weight: 700; letter-spacing: -0.015em;
  line-height: 1.25; color: var(--fg-3);
  transition: color 0.4s var(--ease);
}
.ats__step.is-on .ats__t { color: var(--fg); }
.ats__icon { color: var(--fg-3); transition: color 0.4s var(--ease); }
.ats__step.is-on .ats__icon { color: var(--accent); }

.ats__readout {
  display: grid;
  grid-template-columns: auto minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.ats__delta {
  font-family: var(--f-mono);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700; line-height: 1;
  letter-spacing: -0.06em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}
.ats__delta small { font-size: 0.32em; color: var(--fg-3); letter-spacing: 0; margin-left: 0.35rem; }

/* --- 09.6  JOB MATCH --------------------------------------------------- */

.match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: stretch;
}
.match__col { display: flex; flex-direction: column; }
.match__mid {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; padding-block: 1rem;
}
.match__engine {
  width: clamp(56px, 7vw, 78px); aspect-ratio: 1;
  border-radius: 50%;
  display: grid; place-items: center;
  background: color-mix(in srgb, var(--violet) 16%, transparent);
  border: 1px solid color-mix(in srgb, var(--violet) 40%, transparent);
  color: var(--violet-lit);
  position: relative;
}
.band--paper .match__engine { color: var(--violet); }
.match__engine::before, .match__engine::after {
  content: ''; position: absolute; inset: -1px; border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--violet) 45%, transparent);
  animation: ripple 3.2s var(--ease-io) infinite;
}
.match__engine::after { animation-delay: 1.6s; }
@keyframes ripple {
  from { transform: scale(1); opacity: 0.8; }
  to   { transform: scale(1.75); opacity: 0; }
}
.match__flow {
  width: 1px; flex: 1; min-height: 40px;
  background: linear-gradient(to bottom, transparent, var(--rule), transparent);
}
.match__jd {
  font-size: 0.86rem; line-height: 1.75; color: var(--fg-2);
  padding: clamp(1rem, 2vw, 1.4rem);
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); flex: 1;
}
.match__jd b {
  font-weight: 600; color: var(--fg);
  background: color-mix(in srgb, var(--accent) 22%, transparent);
  padding: 0 0.18em; border-radius: 2px;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  transition: opacity 0.5s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .match__jd b { opacity: 0.25; }
.js .match.is-in .match__jd b { opacity: 1; }

.match__out {
  display: grid; gap: 0.55rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius-lg); flex: 1;
  align-content: start;
}
.match__row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--rule-soft);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
  transition-delay: var(--d, 0s);
}
.match__row:last-child { border-bottom: 0; }
.js .match__row { opacity: 0; transform: translateX(14px); }
.js .match.is-in .match__row { opacity: 1; transform: none; }
.match__row span { font-size: 0.84rem; font-weight: 600; }
.match__row .ui-chip { font-size: 0.68rem; }

/* --- 09.7  COVER LETTER ------------------------------------------------ */

.letter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.letter__inputs { display: grid; gap: 0.6rem; }
.letter__input {
  display: flex; align-items: center; gap: 0.9rem;
  padding: 0.95rem 1.15rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
  font-size: 0.88rem; font-weight: 600;
}
.letter__input i {
  display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: color-mix(in srgb, var(--violet) 18%, transparent);
  color: var(--violet-lit); flex-shrink: 0;
}
.band--paper .letter__input i { color: var(--violet); }
.letter__plus { text-align: center; font-family: var(--f-mono); color: var(--fg-3); font-size: 0.9rem; }

.letter__page {
  background: #FBFAF7;
  color: #14111C;
  padding: clamp(1.5rem, 3.2vw, 2.75rem);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px -24px rgba(0,0,0,0.55);
  font-size: clamp(0.82rem, 1vw, 0.92rem);
  line-height: 1.85;
  min-height: clamp(20rem, 40vh, 28rem);
}
.band--paper .letter__page { box-shadow: 0 24px 60px -26px rgba(19,16,25,0.35); border: 1px solid var(--paper-3); }
.letter__page p + p { margin-top: 0.9rem; }
.letter__page .sig { font-family: var(--f-display); font-size: 1.05rem; font-style: italic; font-variation-settings: 'SOFT' 40, 'WONK' 1; margin-top: 1.1rem; }
.type-out { display: inline; white-space: pre-line; }
/* Only shown while text is being typed in */
.caret { display: none; }
.js .caret {
  display: inline-block; width: 2px; height: 1em;
  background: var(--violet); vertical-align: text-bottom;
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.js .caret.is-done { display: none; }
.motion-off .caret { display: none; }

/* --- 09.8  INTERVIEW --------------------------------------------------- */

.interview {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 3.5vw, 3rem);
  align-items: start;
}
.qa { display: grid; gap: 0.9rem; }
.bubble {
  padding: clamp(1.1rem, 2.2vw, 1.6rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--rule);
  background: var(--surface);
}
.bubble--q {
  border-color: color-mix(in srgb, var(--violet) 40%, transparent);
  background: color-mix(in srgb, var(--violet) 11%, transparent);
}
.bubble--q p {
  font-family: var(--f-display);
  font-size: clamp(1.1rem, 2.1vw, 1.5rem);
  font-weight: 500; line-height: 1.25; letter-spacing: -0.025em;
  color: var(--fg);
}
.bubble__who {
  display: flex; align-items: center; gap: 0.55rem;
  margin-bottom: 0.7rem;
}
.bubble__who span {
  font-family: var(--f-mono); font-size: 0.62rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--fg-3);
}
.bubble--a p { font-size: 0.9rem; line-height: 1.7; color: var(--fg-2); }

.feedback { display: grid; gap: 0.5rem; align-content: start; }
.fb {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.fb__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.fb__dot--warn { background: #FFB020; }
.fb__t { font-size: 0.85rem; font-weight: 600; }
.fb__v { font-family: var(--f-mono); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; color: var(--fg-3); text-transform: uppercase; }
.star-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.35rem; }
.star-row .ui-chip { font-size: 0.68rem; }

/* --- 09.9  JOURNEY ----------------------------------------------------- */

#journey { padding-block: 0; }
.journey__pin {
  position: sticky; top: 0;
  height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
}
.journey__head {
  padding-inline: var(--gutter);
  padding-bottom: clamp(1.5rem, 3.5vh, 3rem);
  max-width: var(--max); margin-inline: auto; width: 100%;
}
.journey__track {
  display: flex;
  gap: clamp(1rem, 1.8vw, 1.75rem);
  padding-inline: var(--gutter);
  transform: translate3d(var(--x, 0px), 0, 0);
  will-change: transform;
}
.jcard {
  flex: 0 0 clamp(15rem, 26vw, 25rem);
  min-height: clamp(17rem, 42vh, 25rem);
  padding: clamp(1.4rem, 2.4vw, 2.1rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--ink-2);
  display: flex; flex-direction: column; justify-content: space-between;
  gap: 1.5rem;
  position: relative;
  overflow: hidden;
  transition: background 0.6s var(--ease), border-color 0.6s var(--ease), transform 0.6s var(--ease);
}
.jcard::before {
  content: '';
  position: absolute; inset: auto 0 0 0; height: 3px;
  background: linear-gradient(90deg, var(--violet), var(--lime));
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.8s var(--ease);
}
.jcard.is-on::before { transform: scaleX(1); }
.jcard.is-on { background: var(--ink-3); border-color: rgba(255,255,255,0.17); }
.jcard__n {
  font-family: var(--f-mono);
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 700; line-height: 0.85;
  letter-spacing: -0.06em;
  color: rgba(255,255,255,0.13);
  transition: color 0.6s var(--ease);
}
.jcard.is-on .jcard__n { color: var(--lime); }
.jcard__t {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.5rem, 2.8vw, 2.15rem);
  letter-spacing: -0.035em; line-height: 1;
  margin-bottom: 0.7rem;
}
.jcard__p { font-size: 0.88rem; line-height: 1.6; color: var(--on-ink-2); }
.jcard__link { margin-top: 1rem; font-size: 0.78rem; }

.journey__meter {
  margin: clamp(1.25rem, 3vh, 2.25rem) auto 0;
  max-width: var(--max); width: 100%;
  padding-inline: var(--gutter);
  display: flex; align-items: center; gap: 1rem;
}
.journey__meter .micro { flex-shrink: 0; }
.journey__bar { flex: 1; height: 2px; background: var(--rule); position: relative; border-radius: 2px; }
.journey__bar i {
  position: absolute; inset: 0 auto 0 0;
  background: var(--lime);
  transform: scaleX(var(--jp, 0)); transform-origin: left;
  transition: transform 0.12s linear;
}

/* Rail mode — the same track, scrolled by touch instead of by page scroll.
   Applied below 1024px and whenever reduced motion is requested. */
.journey__track.is-rail {
  transform: none;
  will-change: auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.journey__track.is-rail::-webkit-scrollbar { display: none; }
.journey__track.is-rail .jcard {
  scroll-snap-align: center;
  flex-basis: min(78vw, 20rem);
  min-height: 17rem;
}

/* --- 09.10  PRODUCTS ---------------------------------------------------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: center;
  padding-block: clamp(3rem, 7vw, 6rem);
  border-top: 1px solid var(--rule);
}
.product:nth-child(even) .product__copy { order: 2; }
.product__n {
  font-family: var(--f-mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.16em; color: var(--accent);
  margin-bottom: 1rem; display: block;
}
.product__t {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  letter-spacing: -0.04em; line-height: 0.98;
  margin-bottom: 1rem;
}
.product__p { font-size: 1rem; line-height: 1.65; color: var(--fg-2); max-width: 42ch; margin-bottom: 1.5rem; }
.product__list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.75rem; }
.product__list li {
  font-family: var(--f-mono); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.32rem 0.6rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  color: var(--fg-3);
}
.product__vis { position: relative; }

/* --- 09.11  PROOF ------------------------------------------------------- */

.proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.proof__card {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  display: flex; flex-direction: column; gap: 1.1rem;
  min-height: 14rem;
}
.proof__badge {
  align-self: flex-start;
  font-family: var(--f-mono); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  padding: 0.28rem 0.6rem; border-radius: 3px;
  background: color-mix(in srgb, var(--fg) 8%, transparent);
  color: var(--fg-3);
}
.proof__slot {
  flex: 1;
  display: grid; place-items: center;
  border-radius: var(--radius);
  background: repeating-linear-gradient(
    -45deg,
    transparent, transparent 7px,
    color-mix(in srgb, var(--fg) 4%, transparent) 7px,
    color-mix(in srgb, var(--fg) 4%, transparent) 14px
  );
  font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--fg-3);
  text-align: center; padding: 1.5rem 1rem;
}

.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
.principle { border-top: 1px solid var(--rule); padding-top: 1.25rem; }
.principle h3 {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.15rem, 1.9vw, 1.45rem);
  letter-spacing: -0.03em; line-height: 1.1; margin-bottom: 0.6rem;
}
.principle p { font-size: 0.9rem; line-height: 1.65; color: var(--fg-2); }

/* --- 09.12  PRICING ----------------------------------------------------- */

.plans { border-top: 1px solid var(--rule); }
.plan {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.1fr) auto;
  gap: clamp(1.25rem, 3vw, 3rem);
  align-items: start;
  padding: clamp(1.75rem, 3.5vw, 3rem) 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background 0.4s var(--ease);
}
.plan__head { display: flex; flex-direction: column; gap: 0.5rem; }
.plan__name {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.04em; line-height: 0.95;
}
.plan__price {
  font-family: var(--f-mono); font-size: clamp(1.1rem, 1.7vw, 1.35rem);
  font-weight: 700; letter-spacing: -0.03em; color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.plan__price em { font-style: normal; font-size: 0.72em; font-weight: 500; color: var(--fg-3); letter-spacing: 0; }
.plan__tag {
  align-self: flex-start;
  font-family: var(--f-mono); font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  padding: 0.25rem 0.55rem; border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 15%, transparent);
  color: var(--accent);
}
.plan__tag--quiet { background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg-3); }
.plan__for { font-size: 0.85rem; color: var(--fg-3); }
/* Grid, not wrap — 7–9 features flowing inline reads as a paragraph of
   fragments. Columns keep each one scannable as its own line. */
.plan__feats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11.5rem, 1fr));
  gap: 0.55rem 1.75rem;
  padding-top: 0.35rem;
}
.plan__feats li {
  display: flex; align-items: flex-start; gap: 0.5rem;
  font-size: 0.88rem; color: var(--fg-2); line-height: 1.45;
}
.plan__feats li::before { content: '+'; color: var(--accent); font-weight: 700; flex-shrink: 0; }
.plan__cta { display: flex; flex-direction: column; gap: 0.5rem; align-items: flex-end; }
.plan__note { font-size: 0.74rem; color: var(--fg-3); text-align: right; }
.plan--soon { opacity: 0.55; }
.plan--soon .plan__price { color: var(--fg-3); }

.assurances {
  display: flex; flex-wrap: wrap;
  gap: 0.75rem 2.5rem;
  margin-top: 2rem;
}
.assurance {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.84rem; color: var(--fg-2);
}
.assurance svg { color: var(--accent); flex-shrink: 0; }

/* --- 09.13  FINAL CTA --------------------------------------------------- */

#cta { position: relative; overflow: clip; text-align: center; padding-block: clamp(6rem, 16vh, 12rem); }
#cta .hero__aura { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); width: min(120vw, 1200px); }
.cta__inner { position: relative; z-index: 2; display: grid; justify-items: center; gap: 1.75rem; }
/* Lines are set explicitly in the markup — a ch-based max-width here would
   not wrap them, it would only let them overrun the box. */
.cta__title { max-width: 100%; }
.cta__title .em { color: var(--violet-glow); }
.cta__sub { max-width: 44ch; text-align: center; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }

/* ==========================================================================
   10  FOOTER
   ========================================================================== */

.site-foot {
  background: var(--ink);
  color: var(--on-ink);
  border-top: 1px solid var(--rule-soft);
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}
.foot__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-bottom: clamp(2.5rem, 5vw, 4rem);
}
.foot__brand p {
  font-size: 0.88rem; line-height: 1.65;
  color: var(--on-ink-2); max-width: 30ch; margin-top: 1rem;
}
.foot__col h3 {
  font-family: var(--f-mono); font-size: 0.63rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--on-ink-3); margin-bottom: 1.1rem;
}
.foot__col a {
  display: block; font-size: 0.9rem; color: var(--on-ink-2);
  padding: 0.32rem 0;
  transition: color 0.22s var(--ease);
}
/* Stacked link lists are the easiest place to mis-tap — give them room. */
@media (pointer: coarse) {
  .foot__col a { padding: 0.7rem 0; }
}
.foot__col a:hover { color: var(--lime); }
.foot__bottom {
  display: flex; flex-wrap: wrap; gap: 0.75rem 2rem;
  justify-content: space-between; align-items: center;
  border-top: 1px solid var(--rule-soft);
  padding-top: 1.75rem;
}
.foot__bottom p { font-size: 0.76rem; color: var(--on-ink-3); line-height: 1.5; }

/* ==========================================================================
   11  RESPONSIVE
   ========================================================================== */

@media (max-width: 1200px) {
  .hero__panel { width: min(34vw, 320px); }
  .analysis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

@media (max-width: 1024px) {
  :root { --band-y: clamp(4.5rem, 9vh, 7rem); }

  .nav { display: none; }
  .burger { display: flex; }
  .masthead__actions .masthead__login,
  .masthead__actions .btn { display: none; }

  .hero__panel { position: static; width: 100%; max-width: 26rem; transform: none; margin-top: 2.5rem; }
  .hero__foot { grid-template-columns: minmax(0, 1fr); }
  .hero__ticker { justify-content: flex-start; max-width: none; }
  .hero__scrollcue { display: none; }

  /* Stacked, the graphic would scroll away before the stages beneath it
     start activating. Pin it so the narrowing plays against the stage
     the reader is actually on. */
  .funnel { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .funnel__viz {
    position: sticky;
    /* Tucks just under the masthead so no sliver of scrolling text shows
       between the two. */
    top: 3.5rem;
    z-index: 2;
    background: var(--bg);
    padding-block: 1.15rem 1rem;
    margin-bottom: 0.5rem;
  }
  .dots { max-width: 17rem; gap: 4px; margin-bottom: 0.9rem; }
  /* The "illustrative, not measured data" note stays — it is what keeps the
     graphic honest, so it is not the thing that gets dropped for space. */
  .funnel__viz .micro { margin-top: 0.7rem !important; font-size: 0.66rem; }

  .analysis { grid-template-columns: minmax(0, 1fr); }
  .pin__track { height: auto; }
  .pin__sticky { position: static; min-height: 0; padding-block: clamp(2rem, 5vw, 3rem) 0; }

  .ats__rail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ats__readout { grid-template-columns: minmax(0, 1fr); text-align: left; gap: 1.5rem; }

  .match { grid-template-columns: minmax(0, 1fr); }
  .match__mid { flex-direction: row; padding-block: 0; }
  .match__flow { width: auto; height: 1px; flex: 1; min-height: 0;
                 background: linear-gradient(to right, transparent, var(--rule), transparent); }

  .letter { grid-template-columns: minmax(0, 1fr); }
  .interview { grid-template-columns: minmax(0, 1fr); }

  #journey { padding-block: var(--band-y); }
  .journey__pin { position: static; height: auto; display: block; }
  .journey__meter { display: none; }

  .product { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .product:nth-child(even) .product__copy { order: 0; }

  .proof { grid-template-columns: minmax(0, 1fr); }
  .principles { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }

  .plan { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .plan__cta { align-items: flex-start; }
  .plan__note { text-align: left; }

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

@media (max-width: 768px) {
  :root { --t-hero: clamp(2.9rem, 15vw, 5.5rem); }

  .stack-head { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 1.25rem; }

  /* The marquee immediately below lists all of this and more */
  .hero__ticker { display: none; }
  .hero__foot { padding-top: 1.25rem; }
  .hero__panel { margin-top: 2rem; }

  .plan__feats { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); }

  .dots { grid-template-columns: repeat(10, 1fr); gap: 4px; }
  .stage { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .stage__k { min-width: 0; }

  .ats__rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ats__step { min-height: 7.5rem; }

  .letter__page { min-height: 16rem; }
}

@media (max-width: 560px) {
  .ats__rail { grid-template-columns: minmax(0, 1fr); }
  .ats__step { min-height: 0; flex-direction: row; align-items: center; justify-content: flex-start; gap: 0.9rem; }
  .ats__step > div { display: flex; align-items: center; gap: 0.85rem; }

  .proof__card { min-height: 11rem; }
  .foot__grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .foot__bottom { flex-direction: column; align-items: flex-start; }

  .hero__actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* Wide screens — stop the type from over-stretching */
@media (min-width: 1800px) {
  :root { --max: 1680px; }
}

/* ==========================================================================
   12  REDUCED MOTION OVERRIDES
   Set by landing.js on <html> so structural behaviour (not just transitions)
   can be swapped out, which a media query alone cannot do.
   ========================================================================== */

.motion-off .scan::after,
.motion-off .pulse,
.motion-off .hero__aura,
.motion-off .hero__scrollcue i,
.motion-off .match__engine::before,
.motion-off .match__engine::after,
.motion-off .caret { animation: none; }

.motion-off .scan::after,
.motion-off .match__engine::before,
.motion-off .match__engine::after { display: none; }

.motion-off .marquee__row { animation: none; }
.motion-off .marquee { mask-image: none; -webkit-mask-image: none; }
.motion-off .marquee__row:nth-child(2) { display: none; }
.motion-off .marquee { overflow-x: auto; }

/* Pinned horizontal journey becomes the same snap rail phones get */
.motion-off .journey__pin { position: static; height: auto; display: block; }
.motion-off .journey__meter { display: none; }
.motion-off #journey { padding-block: var(--band-y); }

/* Sticky analysis panel releases — the content reads top to bottom */
.motion-off .pin__track { height: auto; }
.motion-off .pin__sticky { position: static; min-height: 0; padding-block: clamp(2rem, 5vw, 3rem) 0; }
