/* ============================================================
   AI HyperTest — marketing landing page
   Design: warm near-black ground, brass/gold + cool teal accents,
   Fraunces (display) + IBM Plex Sans (body) + IBM Plex Mono (data).
   ============================================================ */

/* ---------- Fonts (self-hosted) ---------- */
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/fraunces-variable.woff2') format('woff2-variations'),
       url('../fonts/fraunces-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/fraunces-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/plexsans-variable.woff2') format('woff2-variations'),
       url('../fonts/plexsans-variable.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/plexmono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/plexmono-500.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0f0c09;
  --bg-raised: #1b160f;
  --bg-raised-2: #241d15;
  --panel-line: rgba(245, 239, 228, 0.11);
  --panel-line-strong: rgba(245, 239, 228, 0.2);

  --ink: #f5efe4;
  --ink-dim: #b7ab97;
  --ink-faint: #857a68;

  --gold: #c9a15a;
  --gold-bright: #e7c584;
  --gold-dim: #8a713f;
  --gold-wash: rgba(201, 161, 90, 0.12);

  --teal: #57c9ba;
  --teal-dim: #2f6b64;
  --teal-wash: rgba(87, 201, 186, 0.12);

  --danger-line: rgba(245, 239, 228, 0.06);

  --font-display: 'Fraunces', ui-serif, Georgia, serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --max: 1180px;
  --pad: clamp(20px, 5vw, 64px);
  --section-pad: clamp(64px, 11vw, 156px);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

:root[data-theme="light"] {
  --bg: #0f0c09;
  --bg-raised: #1b160f;
}

/* This page commits deliberately to one dark, cinematic world — the
   hero video and section photography are graded warm-dark and would
   break under a forced light inversion, so both theme hooks above
   resolve to the same palette on purpose. */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@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;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }

a { color: inherit; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--gold-dim);
  display: inline-block;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 420;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}

em, .accent-word {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-bright);
}

.lede {
  font-size: clamp(17px, 1.7vw, 20px);
  color: var(--ink-dim);
  max-width: 54ch;
  line-height: 1.65;
}

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 15px 28px;
  border-radius: 3px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), background 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1206;
}
.btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  border-color: var(--panel-line-strong);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn svg { width: 15px; height: 15px; flex: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(180deg, rgba(15,12,9,0.85), rgba(15,12,9,0));
  transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(15,12,9,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  padding-top: 15px;
  padding-bottom: 15px;
  border-bottom-color: var(--panel-line);
}
.brand {
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.brand b { color: var(--gold-bright); font-weight: 600; }
.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a {
  font-size: 14px;
  text-decoration: none;
  color: var(--ink-dim);
  transition: color 0.25s var(--ease);
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-links .btn { padding: 11px 20px; font-size: 13.5px; }
.nav-menu-toggle { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,8,6,0.55) 0%, rgba(10,8,6,0.35) 32%, rgba(10,8,6,0.72) 76%, rgba(9,7,5,0.94) 100%),
    linear-gradient(90deg, rgba(9,7,5,0.85) 0%, rgba(9,7,5,0.35) 46%, rgba(9,7,5,0.15) 100%);
}
.hero-inner {
  position: relative;
  width: 100%;
  padding: 200px var(--pad) 84px;
  max-width: var(--max);
  margin: 0 auto;
}
.hero-inner .eyebrow { margin-bottom: 26px; }
.hero h1 {
  font-size: clamp(30px, 4.6vw, 58px);
  font-weight: 380;
  max-width: 17ch;
  color: var(--ink);
}
.hero h1 .accent-word { color: var(--gold-bright); }
.hero-sub {
  margin-top: 26px;
  font-size: clamp(16px, 1.5vw, 18.5px);
  color: var(--ink-dim);
  max-width: 56ch;
  line-height: 1.7;
}
.hero-actions {
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: clamp(20px, 4vw, 56px);
  border-top: 1px solid var(--panel-line);
  padding-top: 26px;
  max-width: 720px;
}
.hero-stats .stat-figure {
  font-family: var(--font-mono);
  font-size: clamp(19px, 2vw, 25px);
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.hero-stats .stat-label {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}
.guarantee-ribbon {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--panel-line);
  background: rgba(15,12,9,0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 16px var(--pad);
}
.guarantee-ribbon .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  text-align: center;
}
.guarantee-ribbon svg { width: 15px; height: 15px; flex: none; color: var(--teal); }

/* ---------- Sections (generic) ---------- */
section { position: relative; }
section[id], .hero[id] { scroll-margin-top: 84px; }
.section-pad { padding: var(--section-pad) 0; }
.section-head {
  max-width: 720px;
  margin-bottom: 56px;
}
.section-head h2 {
  margin-top: 20px;
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 380;
}
.section-head .lede { margin-top: 20px; }
.divider {
  height: 1px;
  background: var(--panel-line);
  border: none;
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.12s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.22s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.42s; }

/* ---------- Problem ---------- */
.problem { background: var(--bg); }
.problem-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: start;
}
.problem-points {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.problem-point {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--panel-line);
}
.problem-point:last-child { border-bottom: none; padding-bottom: 0; }
.problem-point p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.75;
}
.problem-point strong { color: var(--ink); font-weight: 600; }
.problem-callout {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--ink);
  line-height: 1.5;
  border-left: 2px solid var(--gold-dim);
  padding-left: 26px;
}

/* ---------- Solution (image pairing) ---------- */
.solution { background: var(--bg-raised); }
.solution-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.solution-media {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6);
}
.solution-media img { width: 100%; }
.solution-media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,12,9,0) 60%, rgba(15,12,9,0.5));
  pointer-events: none;
}
.solution-copy .lede { margin-top: 20px; max-width: 52ch; }
.solution-copy p:not(.lede) {
  margin-top: 20px;
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 54ch;
}

/* ---------- How it works (centerpiece) ---------- */
.pipeline { background: var(--bg); }
.pipeline .section-head { max-width: 640px; }
.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  position: relative;
}
.pipeline-connectors {
  position: absolute;
  top: 27px;
  left: 0;
  right: 0;
  height: 2px;
  z-index: 0;
  display: flex;
  align-items: center;
  padding: 0 calc(50% / 3);
}
.pipeline-line {
  position: relative;
  flex: 1;
  height: 1px;
  background: var(--panel-line);
  overflow: visible;
}
.pipeline-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s var(--ease);
}
.pipeline-flow.is-visible .pipeline-line::after { transform: scaleX(1); }
.pipeline-flow.is-visible .pipeline-line:nth-child(1)::after { transition-delay: 0.2s; }
.pipeline-flow.is-visible .pipeline-line:nth-child(2)::after { transition-delay: 0.6s; }

.pipeline-stage {
  position: relative;
  z-index: 1;
  padding: 0 22px 0 0;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.pipeline-flow.is-visible .pipeline-stage { opacity: 1; transform: none; }
.pipeline-flow.is-visible .pipeline-stage:nth-child(1) { transition-delay: 0.05s; }
.pipeline-flow.is-visible .pipeline-stage:nth-child(2) { transition-delay: 0.5s; }
.pipeline-flow.is-visible .pipeline-stage:nth-child(3) { transition-delay: 0.95s; }

.stage-node {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid var(--panel-line-strong);
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--gold-bright);
  margin-bottom: 26px;
}
.pipeline-stage:last-child .stage-node {
  background: var(--gold);
  color: #1a1206;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 6px var(--gold-wash), 0 0 40px 4px rgba(231,197,132,0.35);
}
.stage-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  display: block;
  margin-bottom: 10px;
}
.pipeline-stage h3 {
  font-size: 19px;
  font-weight: 560;
  font-family: var(--font-body);
  color: var(--ink);
  margin-bottom: 10px;
}
.pipeline-stage p {
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.65;
  padding-right: 8px;
}

/* fan-out cluster illustration under step 2 */
.fan-cluster {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  max-width: 150px;
}
.fan-cluster i {
  display: block;
  width: 100%;
  padding-top: 100%;
  border-radius: 2px;
  background: var(--bg-raised-2);
  border: 1px solid var(--panel-line);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease), background 0.5s var(--ease);
}
.pipeline-flow.is-visible .fan-cluster i {
  opacity: 1;
  transform: scale(1);
}
.fan-cluster i:nth-child(3n+1) { background: var(--gold-wash); border-color: var(--gold-dim); }

/* winner dot under step 3 */
.winner-dot-row {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.winner-dot-row .ghost-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--panel-line-strong);
}
.winner-dot-row .win-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 4px var(--gold-wash);
}

@media (min-width: 900px) {
  .pipeline-connectors { display: flex; }
}
@media (max-width: 899px) {
  .pipeline-connectors { display: none; }
  .pipeline-flow { grid-template-columns: 1fr; gap: 46px; }
  .pipeline-stage { padding-right: 0; padding-left: 26px; border-left: 1px solid var(--panel-line); }
  .pipeline-flow.is-visible .pipeline-stage { transition-delay: 0s !important; }
}

/* ---------- The Engine (under-the-hood animated flowchart) ---------- */
.engine { background: var(--bg-raised); }
.engine .section-head { max-width: 640px; }

.engine-diagram {
  position: relative;
  width: 100%;
  aspect-ratio: 100 / 40;
  margin: 56px 0 30px;
}
.engine-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.engine-svg-top {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}
.flow-path {
  fill: none;
  stroke: var(--gold-dim);
  stroke-width: 0.3;
  stroke-linecap: round;
  opacity: 0.5;
}
.loop-path {
  fill: none;
  stroke: var(--teal-dim);
  stroke-width: 0.22;
  stroke-linecap: round;
  stroke-dasharray: 1 1.6;
  opacity: 0.45;
}
/* The routes: always fully visible, drawn once on scroll-in and never
   redrawn per-cycle — they're the fixed rails the spawned lights travel
   along each time node 3 hands off, not an animation of their own. */
.route-lines path {
  fill: none;
  stroke: var(--gold-dim);
  stroke-width: 0.2;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
}
.route-lines path.champion {
  stroke: var(--gold-bright);
  stroke-width: 0.32;
}
.fan-dots circle {
  fill: var(--bg-raised-2);
  stroke: var(--panel-line-strong);
  stroke-width: 0.15;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.4);
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.fan-dots circle.champion {
  fill: var(--gold-bright);
  stroke: none;
  filter: drop-shadow(0 0 1.4px rgba(231, 197, 132, 0.9));
}
.engine-diagram.is-visible .route-lines path {
  opacity: 0.55;
}
.engine-diagram.is-visible .route-lines path.champion {
  opacity: 0.95;
}
.engine-diagram.is-visible .fan-dots circle {
  opacity: 1;
  transform: scale(1);
}
.travel-dot {
  fill: var(--gold-bright);
  filter: drop-shadow(0 0 2.4px rgba(231, 197, 132, 0.9));
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
/* the spawned route-lights: smaller than the main/loop light, champion
   routes get a brighter, bigger one — matching the champion waypoints. */
.route-dot {
  fill: var(--gold-bright);
  filter: drop-shadow(0 0 1.8px rgba(231, 197, 132, 0.85));
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.route-dot.champion {
  filter: drop-shadow(0 0 2.6px rgba(231, 197, 132, 0.95));
}
.loop-dot {
  fill: var(--teal);
  filter: drop-shadow(0 0 1.6px rgba(87, 201, 186, 0.8));
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
/* every dot's opacity above is set explicitly in JS, only once its
   motion animation actually begins — never via .is-visible alone,
   otherwise it sits visible at its unset (0,0) default when reduced
   motion skips starting the animation. */

.engine-nodes { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.engine-node {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  opacity: 0;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.engine-diagram.is-visible .engine-node {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}
.engine-node:nth-child(1) { transition-delay: 0s; }
.engine-node:nth-child(2) { transition-delay: 0.15s; }
.engine-node:nth-child(3) { transition-delay: 0.3s; }
.engine-node:nth-child(4) { transition-delay: 0.45s; }
.engine-node .stage-node {
  pointer-events: auto;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.engine-node-champion .stage-node {
  background: var(--gold);
  color: #1a1206;
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 6px var(--gold-wash), 0 0 40px 4px rgba(231, 197, 132, 0.35);
}

/* the "hit" trigger: fires when the travelling light reaches a node —
   a brief activation pulse, then it settles back as the light moves on. */
@keyframes node-hit-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(201, 161, 90, 0); }
  38% { transform: scale(1.2); box-shadow: 0 0 0 10px var(--gold-wash), 0 0 34px 9px rgba(231, 197, 132, 0.6); }
}
@keyframes node-hit-pulse-champion {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 6px var(--gold-wash), 0 0 40px 4px rgba(231, 197, 132, 0.35); }
  38% { transform: scale(1.2); box-shadow: 0 0 0 15px var(--gold-wash), 0 0 62px 15px rgba(231, 197, 132, 0.7); }
}
.stage-node.is-hit {
  animation: node-hit-pulse 0.75s var(--ease);
  border-color: var(--gold-bright);
}
.engine-node-champion .stage-node.is-hit {
  animation: node-hit-pulse-champion 0.75s var(--ease);
}

.engine-stages {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}
.engine-stage p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-dim);
  line-height: 1.65;
  padding-right: 8px;
}
.engine-stage::before { display: none; }

/* hover polish: hovering a stage card highlights its matching node */
.wrap:has(.engine-stage:nth-child(1):hover) .engine-diagram .engine-node:nth-child(1) .stage-node,
.wrap:has(.engine-stage:nth-child(2):hover) .engine-diagram .engine-node:nth-child(2) .stage-node,
.wrap:has(.engine-stage:nth-child(3):hover) .engine-diagram .engine-node:nth-child(3) .stage-node,
.wrap:has(.engine-stage:nth-child(4):hover) .engine-diagram .engine-node:nth-child(4) .stage-node {
  transform: scale(1.14);
  border-color: var(--gold-bright);
  box-shadow: 0 0 0 8px var(--gold-wash), 0 0 34px 6px rgba(201, 161, 90, 0.45);
}

@media (max-width: 899px) {
  .engine-diagram { display: none; }
  .engine-stages { grid-template-columns: 1fr; gap: 34px; counter-reset: enginestep; }
  .engine-stage {
    position: relative;
    padding-left: 50px;
    padding-bottom: 2px;
    border-left: 1px solid var(--panel-line);
  }
  .engine-stage::before {
    display: flex;
    align-items: center;
    justify-content: center;
    counter-increment: enginestep;
    content: counter(enginestep, decimal-leading-zero);
    position: absolute;
    left: -20px;
    top: -2px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-raised-2);
    border: 1px solid var(--panel-line-strong);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gold-bright);
  }
  .engine-stage:last-child::before {
    background: var(--gold);
    color: #1a1206;
    border-color: var(--gold-bright);
  }
}

/* ---------- Guarantee ---------- */
.guarantee { background: var(--bg-raised); }
.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}
.guarantee-copy h2 { font-size: clamp(28px, 3.4vw, 42px); }
.guarantee-copy .lede { margin-top: 22px; max-width: 50ch; }
.guarantee-copy p:not(.lede) {
  margin-top: 18px;
  color: var(--ink-dim);
  font-size: 15.5px;
  line-height: 1.75;
  max-width: 52ch;
}
.guarantee-media {
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--panel-line);
  box-shadow: 0 40px 90px -30px rgba(0,0,0,0.65);
}
.guarantee-media img { width: 100%; }

/* ---------- Proof ---------- */
.proof { background: var(--bg); }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--panel-line);
  border: 1px solid var(--panel-line);
}
.proof-card {
  background: var(--bg);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 236px;
}
.proof-card .industry {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.proof-card .headline-figure {
  font-family: var(--font-mono);
  font-size: clamp(26px, 2.6vw, 32px);
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}
.proof-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-dim);
  line-height: 1.6;
}
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .proof-grid { grid-template-columns: 1fr; }
}
.proof-closing {
  margin-top: 46px;
  max-width: 62ch;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.9vw, 22px);
  color: var(--ink);
  line-height: 1.6;
}
.proof-footnote {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--ink-faint);
  letter-spacing: 0.01em;
}

/* ---------- About ---------- */
.about { background: var(--bg-raised); }
.about-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: clamp(40px, 6vw, 90px);
}
.about-figure {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(46px, 6vw, 78px);
  color: var(--gold);
  line-height: 1;
}
.about-figure span {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 14px;
}
.about-figure-stats {
  margin-top: 64px !important;
  padding-top: 26px;
  border-top: 1px solid var(--panel-line);
  font-size: 13px !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  line-height: 1.7;
  color: var(--ink-dim) !important;
  max-width: 220px;
}
.about-figure-stats b {
  color: var(--gold-bright);
  font-weight: 500;
}
.about-copy p {
  color: var(--ink-dim);
  font-size: 16.5px;
  line-height: 1.8;
  max-width: 62ch;
}
.about-copy p + p { margin-top: 20px; }
.about-copy strong { color: var(--ink); font-weight: 600; }
.about-sign {
  margin-top: 30px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  font-size: 18px;
}

/* ---------- Final CTA ---------- */
.final-cta {
  background:
    radial-gradient(ellipse 700px 400px at 50% 0%, var(--gold-wash), transparent 70%),
    var(--bg);
  text-align: center;
  border-top: 1px solid var(--panel-line);
}
.final-cta .wrap { display: flex; flex-direction: column; align-items: center; }
.final-cta h2 {
  font-size: clamp(30px, 4.6vw, 54px);
  max-width: 16ch;
}
.final-cta .lede { margin: 22px auto 0; text-align: center; }
.final-cta .hero-actions { margin-top: 38px; justify-content: center; }
.final-cta-reassurance {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--panel-line);
  padding: 46px 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-inner .brand { font-size: 13px; }
.footer-links {
  display: flex;
  gap: 26px;
  font-size: 13px;
  color: var(--ink-faint);
}
.footer-links a { text-decoration: none; color: var(--ink-faint); transition: color 0.25s var(--ease); }
.footer-links a:hover { color: var(--gold-bright); }
.footer-note { font-size: 12.5px; color: var(--ink-faint); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .problem-grid, .solution-grid, .guarantee-grid, .about-grid {
    grid-template-columns: 1fr;
  }
  .solution-media { order: -1; }
  .about-figure { display: flex; align-items: baseline; gap: 16px; }
  .about-figure span { margin-top: 0; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-menu-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }
  .hero-inner { padding-top: 150px; }
  .hero-stats { grid-template-columns: repeat(2, auto); row-gap: 24px; }
  .guarantee-ribbon .wrap { font-size: 12px; }
}

/* subtle noise-free vignette used across photographic sections */
.frame-glow {
  position: absolute;
  inset: -1px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px var(--panel-line);
  border-radius: inherit;
}
