/* ==========================================================================
   CRUNCH42 — index3.css
   High-tech redraft of style.css. Same markup hooks (script.js is shared),
   recolored to the SchemeColor "Thanksgiving Design" palette plus black and
   white. Black is the stage; the palette is the signal.
   ========================================================================== */

:root {
  /* Palette: schemecolor.com/thanksgiving-design.php */
  --slate:   #3A4758;
  --sage:    #5F817D;
  --cream:   #EBE8BA;
  --apricot: #E5AE79;
  --rose:    #D47777;
  --plum:    #735B75;
  --black:   #000000;
  --white:   #FFFFFF;

  /* Surfaces: black, lifted toward slate */
  --bg:        var(--black);
  --surface:   #0B0E13;
  --surface-2: #121820;
  --line:        rgba(235,232,186,.09);
  --line-strong: rgba(235,232,186,.18);
  --hairline:    rgba(255,255,255,.38); /* control borders on black, 3:1+ */

  /* Text on black */
  --text:   var(--white);
  --text-2: #C7CBD1;   /* 12.4:1 */
  --muted:  #8D96A2;   /* 6.6:1 */

  /* Accessible accents on cream (#EBE8BA). Apricot and rose are decoration-only
     there; plum and slate carry text. */
  --on-cream-accent: var(--plum);   /* 4.8:1 */
  --on-cream-muted:  #4A5566;       /* 6.4:1 */

  /* Clickable = green. Buttons use the circuit-board green (#2A7F55);
     text links use tints of it that clear 4.5:1 on their background. */
  --link:          #4CAF7D;  /* on black, 7.7:1 */
  --link-hover:    #7FCCA3;  /* on black, 11:1 */
  --link-on-cream: #1F6B45;  /* on cream, 5.2:1 */
  --link-on-cream-hover: #154D31;

  /* script.js writes var(--coral) / var(--amber) into the form status line */
  --coral: var(--rose);
  --amber: var(--apricot);

  --radius: 6px;
  --shadow: 0 1px 2px rgba(0,0,0,.25), 0 12px 40px rgba(0,0,0,.35);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  /* Section channel. Each dark section re-points these, so the palette is
     felt as a rhythm down the page rather than as scattered accents.
     --acc is for fills and glows; --acc-text is a tint that clears 4.5:1 on
     black; --acc-ink is the text colour that sits on an --acc fill. */
  --acc: var(--apricot);
  --acc-text: var(--apricot);
  --acc-ink: var(--black);
  --acc-rgb: 229,174,121;
}
.why      { --acc: var(--sage); --acc-text: #A3C7C1;     --acc-ink: var(--black); --acc-rgb: 95,129,125; }  /* 11.6:1 */
.pricing  { --acc: var(--plum); --acc-text: #B597B7;     --acc-ink: var(--white); --acc-rgb: 115,91,117; --glow-rgb: 181,151,183; } /* 8.1:1 */
.results  { --acc: var(--rose); --acc-text: var(--rose); --acc-ink: var(--black); --acc-rgb: 212,119,119; }

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: auto; scroll-padding-top: 5rem; }

body {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--apricot); color: var(--black); }

:focus-visible {
  outline: 2px solid var(--apricot);
  outline-offset: 3px;
  border-radius: 3px;
}
.scene--light :focus-visible { outline-color: var(--plum); }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--apricot); color: var(--black);
  padding: 10px 18px; border-radius: var(--radius); font-weight: 600;
  transition: top .3s var(--ease); text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container,
.nav__inner {
  width: min(1200px, 92vw);
  margin-inline: auto;
}
@media (max-width: 640px) {
  .container,
  .nav__inner { width: calc(100% - 32px); }
}

.coral { color: var(--rose); }
/* The section's accent colour (was .amber, which only ever matched in the
   apricot sections): apricot by default, plum on cream, and the section
   channel tint inside section titles */
.accent { color: var(--apricot); }
.scene--light .accent { color: var(--on-cream-accent); }
.mono  { font-family: var(--font-mono); }

/* ---------- Shared tech textures ---------- */
/* Blueprint grid, faded out toward the edges so it reads as depth, not wallpaper */
.services::before,
.why::before,
.pricing::before,
.cta::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 0%, transparent 75%);
  opacity: .55;
}

/* Corner brackets: the HUD frame used on cards, portrait and console */
.service-card::before,
.price-card::before,
.console::before,
.about__portrait-frame::before {
  --c: var(--hud, rgba(229,174,121,.7));
  --s: 14px;
  content: ''; position: absolute; inset: 8px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(var(--c),var(--c)) top left    / var(--s) 1.5px no-repeat,
    linear-gradient(var(--c),var(--c)) top left    / 1.5px var(--s) no-repeat,
    linear-gradient(var(--c),var(--c)) top right   / var(--s) 1.5px no-repeat,
    linear-gradient(var(--c),var(--c)) top right   / 1.5px var(--s) no-repeat,
    linear-gradient(var(--c),var(--c)) bottom left / var(--s) 1.5px no-repeat,
    linear-gradient(var(--c),var(--c)) bottom left / 1.5px var(--s) no-repeat,
    linear-gradient(var(--c),var(--c)) bottom right/ var(--s) 1.5px no-repeat,
    linear-gradient(var(--c),var(--c)) bottom right/ 1.5px var(--s) no-repeat;
  transition: inset .45s var(--ease), opacity .35s;
}

/* Status LED */
.hud-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 3px rgba(95,129,125,.22), 0 0 12px rgba(95,129,125,.9);
  animation: ledPulse 2.4s ease-in-out infinite;
  margin-right: .6em; vertical-align: middle; transform: translateY(-1px);
}
@keyframes ledPulse { 50% { opacity: .45; box-shadow: 0 0 0 5px rgba(95,129,125,0), 0 0 4px rgba(95,129,125,.4); } }

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 150; pointer-events: none;
}
/* index3.js sets --page-acc to the channel of the section in view.
   Registered as a colour so every consumer morphs instead of switching. */
@property --page-acc { syntax: '<color>'; inherits: true; initial-value: #E5AE79; }
:root { transition: --page-acc .8s ease; }
.scroll-progress span {
  display: block; height: 100%; width: 0;
  background: var(--page-acc, var(--apricot));
  box-shadow: 0 0 10px var(--page-acc, var(--apricot));
  transition: background-color .6s, box-shadow .6s;
}

/* ---------- Telemetry rail (index3.js builds it; wide screens only) ---------- */
.rail { display: none; }
@media (min-width: 1480px) {
  .rail {
    display: block;
    position: fixed; left: 28px; top: 18vh; bottom: 18vh; z-index: 110;
    width: 60px; pointer-events: none;
    font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em;
  }
}
.rail__line { position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: rgba(141,150,162,.35); }
.rail__fill {
  position: absolute; left: 0; top: 0; width: 1px; height: 0;
  background: var(--page-acc, var(--apricot));
  box-shadow: 0 0 8px var(--page-acc, var(--apricot));
  transition: background-color .6s;
}
.rail__node {
  pointer-events: auto; cursor: pointer;
  /* hit area: the visible square is 9px, the target is 29px */
  position: absolute; left: 0; width: 9px; height: 9px; margin-top: -4px;
  border: 1px solid rgba(141,150,162,.7); background: var(--black);
  transition: background-color .4s, border-color .4s, box-shadow .4s;
}
.rail__node span {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: #8D96A2; transition: color .4s; white-space: nowrap;
}
.rail__node.is-past { border-color: var(--page-acc, var(--apricot)); }
.rail__node.is-on {
  background: var(--page-acc, var(--apricot)); border-color: var(--page-acc, var(--apricot));
  box-shadow: 0 0 0 3px rgba(0,0,0,.6), 0 0 12px var(--page-acc, var(--apricot));
}
.rail__node.is-on span { color: var(--page-acc, var(--apricot)); }
.rail__node::before { content: ''; position: absolute; inset: -10px; }
.rail__node.is-on span { font-size: .7rem; }
.rail__node b { font-weight: 500; display: none; margin-left: .5em; color: var(--white); }
.rail__node:hover b { display: inline; }
.rail__node:hover { border-color: var(--white); }
/* Overlay for the node-to-eyebrow trace index3.js draws as a section lights */
.rail-trace { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 109; pointer-events: none; overflow: visible; }
.rail-trace path { fill: none; stroke-width: 1.5; stroke-linecap: square; }
.rail-trace circle { transform-box: fill-box; transform-origin: center; }

/* Submit ping, the hero's ping ring in 2D */
.form__actions { position: relative; }
/* Grows by spread, not scale, so the stroke stays 1.5px all round.
   Apricot = sending, rose = the form has errors (same meaning as the hero). */
.ping-ring {
  --ring: 229,174,121;
  position: absolute; pointer-events: none; border-radius: var(--radius);
  animation: pingOut .9s var(--ease) forwards;
}
.ping-ring--error { --ring: 212,119,119; }
@keyframes pingOut {
  from { box-shadow: 0 0 0 0 rgba(var(--ring), .9), 0 0 0 1.5px rgba(var(--ring), .9); }
  to   { box-shadow: 0 0 0 22px rgba(var(--ring), 0), 0 0 0 23.5px rgba(var(--ring), 0); }
}
.rail__pulse {
  position: absolute; left: 1px; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%;
  background: var(--white); box-shadow: 0 0 10px 2px var(--page-acc, var(--apricot));
}

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: clamp(1rem, 3vw, 2.5rem); bottom: clamp(1rem, 3vw, 2.5rem);
  z-index: 140;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: var(--radius);
  color: var(--text-2);
  background: rgba(0,0,0,.6);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hairline);
  opacity: 0; visibility: hidden;
  transform: translateY(10px);
  transition: opacity .45s var(--ease), transform .45s var(--ease),
              visibility .45s, color .25s, border-color .25s, background .25s;
}
.to-top--on { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { color: var(--apricot); border-color: var(--apricot); }
.to-top svg { display: block; transition: transform .3s var(--ease); }
.to-top:hover svg { transform: translateY(-2px); }
@media (max-width: 640px) { .to-top { width: 44px; height: 44px; } }

/* Matches the live site: the custom cursor stays off */
.cursor { display: none !important; }

/* ---------- Eyebrow / titles ---------- */
.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: .9rem; font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--acc-text);
  margin-bottom: 1.4rem;
}
.eyebrow__idx {
  display: inline-flex; align-items: center; vertical-align: .1em;
  font-size: .78em; letter-spacing: .08em;
  color: var(--acc-ink); background: var(--acc);
  /* --glow-rgb lets a dark channel (plum) glow with its lighter tint */
  box-shadow: 0 0 16px rgba(var(--glow-rgb, var(--acc-rgb)), .4);
  padding: .2em .5em; border-radius: 3px;
  margin-right: .9em;
}
@media (max-width: 640px) { .eyebrow { letter-spacing: .12em; font-size: .8rem; } }
.eyebrow--light { color: var(--on-cream-accent); }
.eyebrow--light .eyebrow__idx { background: var(--plum); color: var(--white); }
.eyebrow--light .eyebrow__idx { box-shadow: none; }
.cta .eyebrow .hud-dot { margin-left: .1em; }
.section-title .accent { color: var(--acc-text); }
.scene--light .section-title .accent { color: var(--on-cream-accent); }

.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;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  margin-bottom: 1.6rem;
}
.section-title--ink { color: var(--black); }

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: .55em;
  font-family: var(--font-mono); font-weight: 700;
  font-size: .9rem; line-height: 1; letter-spacing: .06em;
  padding: 1.05em 1.6em;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1.5px solid transparent;
  text-transform: uppercase;
  transition: transform .35s var(--ease), background .25s, border-color .25s, box-shadow .35s var(--ease), color .25s;
  min-height: 44px;
  isolation: isolate; overflow: hidden;
}
.btn--sm { padding: .75em 1.2em; font-size: .78rem; }
/* Circuit-board green, matching the hero PCB's lit patch, deepened a touch
   so white text clears 4.5:1 (4.9:1) */
.btn--primary { background: #2A7F55; color: var(--white); }
/* Sweep of light across the face on hover */
.btn--primary::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(46,138,92,.7), 0 10px 36px rgba(46,138,92,.4);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:active { background: #226B47; transform: translateY(0); }
.btn--ghost {
  background: rgba(0,0,0,.35); color: var(--white);
  border-color: rgba(255,255,255,.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: var(--apricot); color: var(--apricot); transform: translateY(-2px); }
.btn__chev, .btn__arrow { display: inline-block; transition: transform .3s var(--ease); }
.btn:hover .btn__chev, .btn:hover .btn__arrow { transform: translateX(4px); }

.link {
  color: var(--link); text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat; background-position: 0 100%;
  background-size: 0% 1.5px;
  transition: background-size .35s var(--ease);
}
.link:hover { background-size: 100% 1.5px; color: var(--link-hover); }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  transition: transform .5s var(--ease), background .4s;
  background: rgba(0,0,0,.55);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.nav--hidden { transform: translateY(-100%); }
/* Over the cream sections (index3.js toggles this): a cream bar with ink
   text, instead of black glass that turns olive and drops links under AA */
.nav { transition: transform .5s var(--ease), background-color .4s, border-color .4s; }
.nav--light { background: rgba(235,232,186,.88); border-bottom-color: rgba(58,71,88,.18); }
.nav--light .nav__links a { color: var(--link-on-cream); }
.nav--light .nav__links a::before { color: var(--plum); }
.nav--light .nav__links a:hover,
.nav--light .nav__links a:hover::before { color: var(--link-on-cream-hover); }
.nav--light .nav__brand { color: var(--on-cream-muted); }
.nav--light .nav__wordmark { color: var(--black); }
.nav--light .nav__wordmark em { color: var(--plum); }
/* Apricot focus rings are 1.6:1 on cream; plum is 4.8:1 */
.nav--light :focus-visible { outline-color: var(--plum); }
.to-top--light { background: rgba(235,232,186,.88); color: var(--black); border-color: rgba(58,71,88,.35); }
.to-top--light:hover { color: var(--plum); border-color: var(--plum); }
.to-top--light:focus-visible { outline-color: var(--plum); }
.nav__links a, .nav__brand, .nav__wordmark, .nav__wordmark em { transition: color .3s; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1rem;
  transition: padding .4s var(--ease);
}
.nav--slim .nav__inner { padding-block: .55rem; }
.nav__brand {
  display: inline-flex; align-items: center; gap: .6rem;
  text-decoration: none; color: var(--muted);
  font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
}
.nav__brand .mark {
  display: block; flex: none;
  width: 34px; height: 34px;
  transition: width .4s var(--ease), height .4s var(--ease), transform .6s var(--ease);
}
.nav__brand:hover .mark { transform: rotate(-12deg); }
.nav--slim .nav__brand .mark { width: 28px; height: 28px; }
.footer .nav__brand .mark { width: 30px; height: 30px; }
@media (max-width: 480px) {
  .nav .nav__brand .mark { display: none; }
  .nav .nav__sub { display: none; }
}
.nav__wordmark {
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem;
  color: var(--white); letter-spacing: -0.03em; text-transform: none;
}
.nav__wordmark em { font-style: normal; color: var(--apricot); }
.nav__links { display: flex; gap: 1.6rem; }
.nav__links a {
  font-family: var(--font-mono); font-size: .76rem; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
  text-decoration: none; color: var(--link);
  padding-block: 4px; position: relative;
  transition: color .25s;
}
.nav__links a::before {
  content: '/'; color: var(--slate); margin-right: .35em;
  transition: color .25s;
}
.nav__links a:hover { color: var(--link-hover); }
.nav__links a:hover::before { color: var(--link-hover); }
@media (max-width: 920px) { .nav__links { display: none; } }
.nav__cta-short { display: none; }
@media (max-width: 640px) {
  .nav__cta-long { display: none; }
  .nav__cta-short { display: inline; }
}

/* ==========================================================================
   SCENES — shared
   ========================================================================== */
.scene { position: relative; }
.scene > .container { position: relative; z-index: 1; }
.scene--light {
  color: var(--black);
  background-color: var(--cream);
}
/* Datasheet ruling, kept out from behind the reading column by a mask */
.scene--light::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(58,71,88,.10) 1px, transparent 1px),
    linear-gradient(rgba(115,91,117,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(115,91,117,.05) 1px, transparent 1px);
  background-size: 100% 192px, 24px 24px, 24px 24px;
}
.about::before {
  -webkit-mask-image: linear-gradient(90deg, #000 0 30%, transparent 46% 100%);
          mask-image: linear-gradient(90deg, #000 0 30%, transparent 46% 100%);
}
.proof::before {
  -webkit-mask-image: radial-gradient(ellipse 60% 42% at 50% 66%, #000 20%, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 42% at 50% 66%, #000 20%, transparent 75%);
}
.proof .carousel { position: relative; z-index: 1; }
@media (max-width: 860px) {
  .about::before {
    -webkit-mask-image: linear-gradient(180deg, #000 0 22%, transparent 40% 100%);
            mask-image: linear-gradient(180deg, #000 0 22%, transparent 40% 100%);
  }
}

.ghost42 {
  position: absolute;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(20rem, 55vw, 46rem);
  line-height: .8; letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(95,129,125,.28);
  user-select: none; pointer-events: none;
  z-index: 0;
}

/* ==========================================================================
   01 · HERO
   Three layouts: board beside the copy (1024+), board under the copy
   (768-1023), and on phones the board slots in between headline and sub so
   it is on screen at load.
   ========================================================================== */
.hero {
  min-height: 100svh;
  display: flex; align-items: center;
  padding: 8rem 0 3rem;
  overflow: hidden;
  background: var(--black);
}
.hero__glow {
  position: absolute; top: 5%; right: -10vw;
  width: 75vw; height: 90vh; pointer-events: none;
  background:
    radial-gradient(ellipse at 55% 50%, rgba(46,138,92,.14) 0%, transparent 55%), /* green, under the PCB */
    radial-gradient(ellipse at 70% 70%, rgba(115,91,117,.22) 0%, transparent 60%);
  -webkit-mask-image: linear-gradient(180deg, #000 50%, transparent 92%);
          mask-image: linear-gradient(180deg, #000 50%, transparent 92%);
}
.hero__ghost42 { display: none; }
/* Belt and braces: the hero always lands on pure black, so it melts into
   the statement with no seam. z-index 0 and first in the hero, so it darkens
   the glow but sits under the board canvas (which fades itself with a mask)
   and under the page trace, which has to stay solid where it leaves the
   chip's 3D trace. */
.hero::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 140px;
  background: linear-gradient(0deg, #000, transparent);
  z-index: 0; pointer-events: none;
}

.hero__stage { position: absolute; inset: 0; z-index: 0; }
.hero__scene { position: absolute; inset: 0; }
.hero__scene canvas {
  display: block; width: 100% !important; height: 100% !important;
  touch-action: pan-y;
  cursor: grab;
}
.hero__scene canvas.is-dragging { cursor: grabbing; }
.hero__scene canvas.is-hot { cursor: pointer; }
.hero__fallback {
  position: absolute; right: 8vw; top: 50%; transform: translateY(-50%);
  width: min(34vw, 460px); opacity: .9;
  transition: opacity .6s;
}
.hero__stage.scene-ready .hero__fallback { opacity: 0; visibility: hidden; }

/* Left-hand scrim keeps the copy readable over the board. The bottom fade
   lives on the canvas as a mask, so nothing paints over the HUD. */
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.72) 32%, rgba(0,0,0,0) 62%);
}
.hero__scene {
  -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 20%);
          mask-image: linear-gradient(0deg, transparent 0%, #000 20%);
}

.hero__hud {
  position: absolute; right: clamp(1rem, 4vw, 3rem); bottom: 3rem; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: .5rem;
  font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--text-2);
  pointer-events: none;
  opacity: 0; transition: opacity 1s .8s;
}
.hero__stage.scene-ready ~ .hero__hud { opacity: 1; }
.hud-chip {
  color: var(--cream);
  border: 1px solid var(--line-strong); border-radius: 3px;
  padding: .35em .7em; background: rgba(0,0,0,.6);
}
.hud-hint {
  background: rgba(0,0,0,.6); padding: .3em .6em; border-radius: 3px;
}
.hint-touch { display: none; }
@media (hover: none) {
  .hint-mouse { display: none; }
  .hint-touch { display: inline; }
}

.hero > .hero__content {
  position: relative; z-index: 2;
  pointer-events: none;          /* empty space passes through to the canvas */
}
.hero__content > * { pointer-events: auto; max-width: 620px; }
.hero__eyebrow { opacity: 0; }
.hero__headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 11vw, 4.6rem);
  line-height: 1; letter-spacing: -0.04em;
  margin-bottom: 1.8rem;
}
.hero__headline .line { display: block; overflow: hidden; padding-bottom: .06em; }
/* Solid, not a clipped gradient: splitWords() turns each word into a
   transformed inline-block, which breaks background-clip:text on the em. */
.hero__headline em { font-style: normal; color: var(--apricot); }
.hero__headline .nb { white-space: nowrap; }
.hero__headline .word { display: inline-block; will-change: transform; }
.hero__sub {
  max-width: 46ch; color: var(--text-2);
  margin-bottom: 2.2rem; opacity: 0;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; opacity: 0; }
/* Blinking caret, used on the Proof section's prompt line */
.terminal__caret {
  width: 8px; height: 1.05em; background: var(--apricot);
  display: inline-block; vertical-align: -2px; margin-left: .15em;
  animation: caretBlink 1s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

/* Only on big screens: anywhere smaller it runs into the hero copy */
.scroll-cue {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: .6rem;
  z-index: 3;
}
.scroll-cue__line {
  width: 1px; height: 48px; overflow: hidden; position: relative;
  background: rgba(255,255,255,.14);
}
.scroll-cue__line::after {
  content: ''; position: absolute; left: 0; top: -50%;
  width: 100%; height: 50%;
  background: var(--apricot);
  animation: cueDrop 1.8s var(--ease) infinite;
}
@keyframes cueDrop { 0% { top: -50%; } 70%, 100% { top: 110%; } }
@media (min-width: 1500px) and (min-height: 901px) { .scroll-cue { display: flex; } }
.scroll-cue__label {
  font-family: var(--font-mono); font-size: .65rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--muted);
}

/* Narrow desktops: tighter copy column so the board keeps clear of it.
   index3-scene.js pushes the board right and back over the same range. */
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero__content > * { max-width: 520px; }
  .hero__headline { font-size: 3.6rem; }
}
/* Short desktop windows: keep the buttons above the fold */
@media (min-width: 1024px) and (max-height: 760px) {
  .hero { padding: 6rem 0 2.5rem; }
  .hero__headline { font-size: clamp(2.75rem, 8vh, 4.2rem); margin-bottom: 1.3rem; }
  .hero__sub { margin-bottom: 1.6rem; }
  .hero__cta { margin-bottom: 1.6rem; }
  .scroll-cue { display: none; }
}

/* Stacked: board under the copy, HUD under the board */
@media (max-width: 1023px) {
  .hero {
    flex-direction: column; align-items: stretch; justify-content: flex-start;
    padding: 7rem 0 2.5rem;
  }
  .hero::after { display: none; }
  .hero__stage {
    position: relative; inset: auto; order: 2;
    height: clamp(340px, 56vw, 520px);
    margin-top: -1rem;
  }
  .hero__scene {
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 80%, transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0%, #000 14%, #000 80%, transparent 100%);
  }
  .hero__content { order: 1; }
  .hero__fallback { right: 50%; transform: translate(50%, -50%); width: min(60vw, 320px); }
  .hero__hud {
    position: relative; right: auto; bottom: auto; order: 3;
    flex-direction: row; flex-wrap: wrap; justify-content: center; align-items: center;
    gap: .5rem .75rem;
    margin: -1.5rem auto 0; padding-inline: 16px;
  }
  .hud-hint {
    background: rgba(0,0,0,.6); padding: .35em .7em; border-radius: 3px;
  }
  .scroll-cue { display: none; }
  .hero__glow { right: auto; left: 0; top: 40%; width: 100vw; height: 60%; }
}

/* Phones: unwrap the copy so the board can sit right under the headline */
@media (max-width: 767px) {
  .hero { padding: 5.5rem 0 2rem; }
  .hero > .hero__content { display: contents; }
  .hero__content > * {
    position: relative; z-index: 2;
    width: calc(100% - 32px); max-width: none;
    margin-inline: auto;
  }
  .hero__eyebrow  { order: 1; }
  .hero__headline { order: 2; margin-bottom: 0; }
  .hero__stage    { order: 3; height: clamp(280px, 80vw, 360px); margin: -1rem 0 0; }
  .hero__hud      { order: 4; margin: -1.25rem auto 1.6rem; }
  .hero__sub      { order: 5; }
  .hero__cta      { order: 6; }
}
@media (max-width: 640px) {
  .hero__cta .btn { width: 100%; justify-content: center; }
  .eyebrow__tail { display: none; }
}

/* ==========================================================================
   02 · POSITIONING STATEMENT
   ========================================================================== */
/* Under 80vh, so the scrub's "bottom 80%" end lands just as the section settles
   under the nav and the swoosh finishes drawing in view */
.statement {
  min-height: 70vh;
  display: flex; align-items: center;
  padding: 10vh 0;
  background: radial-gradient(ellipse 60% 50% at 20% 50%, rgba(115,91,117,.18), transparent 70%), var(--black);
}
@media (max-width: 767px) {
  .statement { min-height: 52vh; padding: 6vh 0; }
}
/* Tall portrait tablets: 70vh is a lot of black around three lines */
@media (min-height: 960px) and (max-width: 1023px) {
  .statement { min-height: 50vh; padding: 8vh 0; }
}
.statement__line {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.4rem, 6.5vw, 6rem);
  line-height: 1.08; letter-spacing: -0.04em;
  max-width: 18ch;
  color: var(--cream);
}
.statement__line .word { display: inline-block; opacity: .12; will-change: opacity; }
.statement__underline-wrap { position: relative; display: inline; color: var(--apricot); }
@media (max-width: 640px) {
  .statement__underline-wrap {
    display: block; width: fit-content;
    white-space: nowrap;
    margin-top: 1.08em;
    margin-left: auto;
    margin-right: .5em;
  }
}
.underline-svg {
  position: absolute; left: 0; bottom: -.18em;
  width: 100%; height: .22em; overflow: visible;
}

/* ==========================================================================
   03 · SERVICES
   ========================================================================== */
.services { background: var(--black); }
.services__pin {
  position: relative; z-index: 1;
  padding: clamp(4.5rem, 9vh, 14vh) 0 0;
  display: flex; flex-direction: column; justify-content: center;
  height: 100vh;
  overflow: hidden;
}
.services__head { margin-bottom: clamp(1rem, 3vh, 4rem); }
@media (max-width: 640px) {
  .services__head .section-title span { display: inline-block; margin-top: .8em; }
}
.services__track {
  display: flex; gap: 1.5rem;
  padding-left: max(4vw, calc((100vw - 1200px) / 2));
  padding-right: 8vw;
  width: max-content;
  margin-bottom: 15px;
  will-change: transform;
  cursor: grab;
}
.services__track--grabbing { cursor: grabbing; user-select: none; }
.services__track--grabbing .service-card { -webkit-user-drag: none; }
.card { border-radius: var(--radius); box-shadow: var(--shadow); }
.service-card {
  position: relative;
  width: clamp(280px, 30vw, 400px);
  padding: 2.4rem 2.2rem 2.4rem;
  background:
    linear-gradient(180deg, rgba(58,71,88,.28) 0%, rgba(58,71,88,.06) 100%),
    var(--surface);
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease);
  overflow: hidden;
}
/* Scan line that sweeps down the card on hover */
.service-card::after {
  content: ''; position: absolute; left: 0; right: 0; top: -40%; height: 40%;
  background: linear-gradient(180deg, transparent, rgba(229,174,121,.08) 80%, rgba(229,174,121,.35) 100%);
  opacity: 0; pointer-events: none;
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(229,174,121,.45);
  box-shadow: 0 24px 48px rgba(0,0,0,.5), 0 0 40px rgba(229,174,121,.1);
}
.service-card:hover::before { inset: 4px; }
.service-card:hover::after { opacity: 1; animation: scanDown 1.4s var(--ease) forwards; }
@keyframes scanDown { to { top: 100%; } }
.service-card__index {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .18em;
  color: var(--muted);
}
/* The glyph sits on a little chip package: pins drawn with repeating gradients */
.service-card__glyph {
  position: relative;
  display: grid; place-items: center;
  width: 88px; height: 88px;
  margin: 1.6rem 0 1.6rem 10px;
  font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700;
  color: var(--apricot);
  background: var(--surface-2);
  border: 1px solid rgba(229,174,121,.5);
  border-radius: 6px;
  box-shadow: inset 0 0 18px rgba(229,174,121,.08);
}
.service-card__glyph--sm { font-size: 1.05rem; }
.service-card__glyph::before,
.service-card__glyph::after {
  content: ''; position: absolute; pointer-events: none;
  background: repeating-linear-gradient(90deg, var(--slate) 0 4px, transparent 4px 12px);
}
.service-card__glyph::before { left: 10px; right: 6px; top: -8px; bottom: -8px;
  -webkit-mask: linear-gradient(#000 0 7px, transparent 7px calc(100% - 7px), #000 calc(100% - 7px));
          mask: linear-gradient(#000 0 7px, transparent 7px calc(100% - 7px), #000 calc(100% - 7px)); }
.service-card__glyph::after { top: 10px; bottom: 6px; left: -8px; right: -8px;
  background: repeating-linear-gradient(180deg, var(--slate) 0 4px, transparent 4px 12px);
  -webkit-mask: linear-gradient(90deg, #000 0 7px, transparent 7px calc(100% - 7px), #000 calc(100% - 7px));
          mask: linear-gradient(90deg, #000 0 7px, transparent 7px calc(100% - 7px), #000 calc(100% - 7px)); }
.service-card:hover .service-card__glyph::before,
.service-card:hover .service-card__glyph::after {
  background-image: repeating-linear-gradient(90deg, var(--apricot) 0 4px, transparent 4px 12px);
}
.service-card:hover .service-card__glyph::after {
  background-image: repeating-linear-gradient(180deg, var(--apricot) 0 4px, transparent 4px 12px);
}
/* Pins power up in sequence on hover: top/bottom rows, then the sides */
.service-card:hover .service-card__glyph::before { animation: pinBoot .55s steps(5) both; }
.service-card:hover .service-card__glyph::after  { animation: pinBoot .55s .18s steps(5) both; }
@keyframes pinBoot { 0% { opacity: .15; } 40% { opacity: 1; } 60% { opacity: .35; } 100% { opacity: 1; } }
.service-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.55rem;
  letter-spacing: -0.03em; margin-bottom: .7rem;
}
.service-card p { color: var(--text-2); font-size: 1rem; }

/* Pinned side-scroll: the cards must fit the window with their bottom edge
   showing and ~10px of air under it. A visible border all round, and on
   shorter windows the card internals scale with height instead of the
   cards running off the bottom. */
@media (min-width: 861px) {
  /* Bottom-anchored: the cards sit 10px off the bottom, spare height above */
  .services__pin { padding-bottom: 10px; justify-content: flex-end; }
  .services__track { margin-bottom: 0; }
  .service-card { border-color: var(--line-strong); }
}
@media (min-width: 861px) and (max-height: 860px) {
  .services__head .section-title { font-size: min(6vw, 7.4vh); }
  .services__head { margin-bottom: 2.2vh; }
  .service-card { padding: 3vh 2rem; }
  .service-card__glyph {
    width: clamp(56px, 9vh, 88px); height: clamp(56px, 9vh, 88px);
    margin: 2.2vh 0 2.2vh 10px; font-size: clamp(1.1rem, 2.3vh, 1.5rem);
  }
  .service-card__glyph--sm { font-size: clamp(.8rem, 1.6vh, 1.05rem); }
  .service-card h3 { font-size: clamp(1.2rem, 2.8vh, 1.55rem); margin-bottom: .5rem; }
  .service-card p { font-size: clamp(.86rem, 1.95vh, 1rem); line-height: 1.5; }
}

@media (max-width: 860px) {
  .services__pin { height: auto; min-height: 0; padding: 5rem 0; }
  .services__track {
    width: auto; flex-direction: column;
    padding-inline: 16px;
  }
  .service-card { width: 100%; }
}

/* ==========================================================================
   04 · WHY
   ========================================================================== */
.why {
  padding: 16vh 0 12vh;
  background: linear-gradient(180deg, var(--black) 0%, var(--surface) 100%);
}
.why__layout {
  display: grid; grid-template-columns: minmax(0, 1fr);
  gap: 3rem;
  margin-top: 3.5rem;
}
.why__list {
  list-style: none;
  display: flex; flex-direction: column;
}
.why__item {
  position: relative;
  display: flex; gap: 2.5rem; align-items: baseline;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}
.why__item:first-child { border-top: 1px solid var(--line); }
/* Data line that lights along the rule on hover */
.why__item::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: linear-gradient(90deg, var(--acc), transparent);
  box-shadow: 0 0 10px rgba(var(--acc-rgb), .8);
  transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--ease);
}
.why__item:hover::after { transform: scaleX(1); }
.why__num {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--acc-text);
  min-width: 3ch;
  letter-spacing: .08em;
}
.why__num::before { content: '['; color: var(--slate); }
.why__num::after  { content: ']'; color: var(--slate); }
.why__item h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  letter-spacing: -0.03em; margin-bottom: .4rem;
  transition: color .3s;
}
.why__item:hover h3 { color: var(--acc-text); }
.why__item p { color: var(--text-2); max-width: 54ch; }

.counters {
  display: flex; flex-wrap: wrap; gap: 3.5rem;
  margin-top: 5rem;
}
@media (min-width: 641px) {
  .counters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
    background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
  .counter { background: var(--surface); padding: 1.6rem 1.6rem 1.8rem; }
}
.counter { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.counter__value {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  letter-spacing: -0.04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.counter__label {
  font-family: var(--font-mono); font-size: .74rem; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: .7rem;
  min-height: 2.6em;
  display: block;
  text-wrap: balance;
}
.counter__label::before { content: '// '; color: var(--sage); white-space: pre; }
@media (max-width: 640px) {
  .why__item { gap: 1.2rem; }
  .counters { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.5rem; }
  .counter__label { font-size: .68rem; letter-spacing: .14em; }
}

/* ==========================================================================
   05 · ABOUT (light)
   ========================================================================== */
.about { padding: 14vh 0; }
.about__grid {
  display: grid; grid-template-columns: minmax(280px, 440px) 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about__portrait { position: relative; }
.about__portrait-frame {
  --hud: var(--apricot);
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--black);
  box-shadow: 0 30px 60px -20px rgba(58,71,88,.55);
}
.about__portrait-frame img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.15) brightness(.92);
  transition: filter .8s var(--ease), transform .8s var(--ease);
  will-change: transform;
}
/* Duotone wash in slate to apricot */
.about__portrait-frame::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 1;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.08) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, rgba(58,71,88,.75) 0%, rgba(115,91,117,.45) 55%, rgba(229,174,121,.6) 100%);
  mix-blend-mode: color;
  opacity: .55;
  transition: opacity .6s;
}
.about__portrait:hover .about__portrait-frame::after { opacity: .3; }
.about__portrait:hover .about__portrait-frame img { transform: scale(1.03); }
.about__scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 2;
  background: var(--apricot);
  box-shadow: 0 0 14px 2px rgba(229,174,121,.7);
  animation: portraitScan 5s var(--ease) infinite;
  opacity: .8;
}
@keyframes portraitScan { 0% { top: 0; opacity: 0; } 10% { opacity: .8; } 60% { top: 100%; opacity: .8; } 70%, 100% { top: 100%; opacity: 0; } }
.about__portrait-fallback {
  position: absolute; inset: 0; display: none;
  align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--black) 0%, var(--slate) 100%);
}
.about__portrait-fallback span {
  font-family: var(--font-display); font-weight: 700; font-size: 5rem;
  color: rgba(255,255,255,.25);
}
.about__portrait.no-photo img { display: none; }

/* index3-portrait.js: the photo is drawn as a Three.js tile field on a fixed
   full-viewport canvas, so the tiles can fly in from (and out to) the screen
   edges. Under the nav (120) and rail (110). The renderer sets its CSS size
   to innerWidth x innerHeight, so no vh here (iOS toolbars would stretch it).
   Once the picture locks, it fades out and the real <img> takes over. */
.portrait-field {
  position: fixed; top: 0; left: 0;
  z-index: 105; pointer-events: none;
  display: none;
  transition: opacity .3s ease;
}
.portrait-field.is-on { display: block; }
.portrait-field.is-faded, .portrait-field.is-empty { opacity: 0; }
.portrait-field.is-faded { transition-delay: .3s; } /* wait for the <img> to be fully in */
.about__portrait.is-3d img { opacity: 0; transition: opacity .3s ease; }
.about__portrait.is-3d.is-locked img { opacity: 1; }
/* No fade until the tile field has drawn once: entering receiver mode at
   load must not animate the photo out (or back in) */
.about__portrait.is-3d:not(.is-ready) img,
.about__portrait.is-3d:not(.is-ready) .about__portrait-frame::after { transition: none; }
.portrait-field:not(.is-ready) { transition: none; }
.about__portrait.is-3d .about__portrait-frame { clip-path: none !important; } /* script.js's wipe-in is replaced by the tiles */
.about__portrait.is-3d .about__portrait-frame::after { opacity: 0; transition: opacity .3s ease; }
/* .portrait-brackets owns the corner brackets while the tile field is live */
.about__portrait.is-3d .about__portrait-frame::before { opacity: 0; }
/* The keyframes animate opacity, so the animation itself has to go */
.about__portrait.is-3d:not(.is-locked) .about__scan { animation: none; opacity: 0; }
.about__portrait.is-3d.is-locked .about__portrait-frame::after { opacity: .55; }
/* The slot the tiles land in: a HUD target on cream, not a black hole */
.about__portrait.is-3d .about__portrait-frame {
  background:
    linear-gradient(rgba(58,71,88,.14) 1px, transparent 1px) 0 0 / 5% 4%,
    linear-gradient(90deg, rgba(58,71,88,.14) 1px, transparent 1px) 0 0 / 5% 4%,
    rgba(58,71,88,.06);
  box-shadow: inset 0 0 0 1px rgba(58,71,88,.25);
  transition: box-shadow .4s var(--ease);
}
.about__portrait.is-3d.is-locked .about__portrait-frame { box-shadow: 0 30px 60px -20px rgba(58,71,88,.55); }
.about__lock {
  color: var(--plum); transition: color .3s;
  min-width: max-content; text-align: center;
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.about__lock.is-locked { color: var(--black); }
.about__lock.is-locked::before { content: '\25CF  '; color: var(--sage); }
/* Compact caption keyed to the portrait's own width (380px stacked on
   tablets as well as phones), not the viewport */
.about__portrait { container-type: inline-size; }
@container (max-width: 420px) {
  .about__portrait .about__tag { font-size: .62rem; letter-spacing: .1em; gap: .5rem; }
  .about__portrait .about__tag > span { white-space: nowrap; }
}
/* Bracket overlay from index3-portrait.js: same geometry as the frame's own */
.portrait-brackets {
  --c: var(--apricot); --s: 14px;
  position: fixed; top: 0; left: 0; z-index: 106; pointer-events: none;
  opacity: 0; transition: opacity .25s ease;
}
.portrait-brackets.is-on { opacity: 1; }
.portrait-brackets::before {
  content: ''; position: absolute; inset: 8px;
  background:
    linear-gradient(var(--c),var(--c)) top left    / var(--s) 1.5px no-repeat,
    linear-gradient(var(--c),var(--c)) top left    / 1.5px var(--s) no-repeat,
    linear-gradient(var(--c),var(--c)) top right   / var(--s) 1.5px no-repeat,
    linear-gradient(var(--c),var(--c)) top right   / 1.5px var(--s) no-repeat,
    linear-gradient(var(--c),var(--c)) bottom left / var(--s) 1.5px no-repeat,
    linear-gradient(var(--c),var(--c)) bottom left / 1.5px var(--s) no-repeat,
    linear-gradient(var(--c),var(--c)) bottom right/ var(--s) 1.5px no-repeat,
    linear-gradient(var(--c),var(--c)) bottom right/ 1.5px var(--s) no-repeat;
}
.about__portrait.no-photo .about__portrait-fallback { display: flex; }
.about__tag {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: .9rem;
  font-size: .7rem; letter-spacing: .16em; color: var(--on-cream-muted);
}
.about__copy p { color: var(--black); margin-bottom: 1.2rem; max-width: 58ch; }
.about__copy a { color: var(--link-on-cream); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.about__copy a:hover { color: var(--link-on-cream-hover); }
.pullquote {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  letter-spacing: -0.03em; line-height: 1.2;
  color: var(--plum);
  border-left: 3px solid var(--rose);
  padding-left: 1.4rem;
  margin: 2.2rem 0;
}
.about__promise { color: var(--on-cream-muted) !important; font-size: 1rem; }
.about__promise .mono { font-size: .75rem; letter-spacing: .14em; }

@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__portrait { max-width: 380px; }
}

/* ==========================================================================
   06 · TESTIMONIALS
   ========================================================================== */
.proof { padding: 8vh 0 16vh; }
.proof__note { color: var(--on-cream-muted); max-width: 60ch; margin-bottom: 4rem; font-family: var(--font-mono); font-size: .85rem; }

.carousel {
  position: relative;
  width: min(1200px, 92vw);
  margin-inline: auto;
}
.carousel__stage { position: relative; height: 400px; overflow: hidden; counter-reset: pkt; }
.carousel__stage--dragging { user-select: none; -webkit-user-select: none; }
.carousel__stage--dragging .tcard { cursor: grabbing; }
.tcard {
  position: absolute; top: 50%; left: 50%;
  width: min(560px, 84vw);
  transform: translate(-50%, -50%);
  counter-increment: pkt;
  background:
    linear-gradient(90deg, var(--plum), var(--rose)) top / 100% 3px no-repeat,
    #FBFAEC;
  border: 1px solid rgba(58,71,88,.18);
  border-radius: var(--radius);
  box-shadow: 0 24px 50px -24px rgba(58,71,88,.45);
  padding: 2.6rem 2.6rem 2.4rem;
  will-change: transform, filter, opacity;
  cursor: grab;
  touch-action: pan-y;
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: auto; /* let a finished inner scroll carry on to the page */
}
/* Card header: the number, right-aligned. 21 matches the number of cards
   in index3.html. */
.tcard::before {
  content: counter(pkt, decimal-leading-zero) ' / 21';
  display: block; text-align: right;
  font: 500 .66rem/1 var(--font-mono); letter-spacing: .16em;
  color: var(--on-cream-muted);
  padding-bottom: .9rem; margin-bottom: 1.5rem;
  border-bottom: 1px dashed rgba(58,71,88,.28);
}
@media (min-width: 641px) { .tcard { width: min(560px, 48vw); } }
.tcard__quote {
  font-family: var(--font-mono); font-weight: 700;
  font-size: 3rem; line-height: .5;
  color: var(--rose);
  display: block; margin-bottom: 1.2rem;
}
.tcard blockquote {
  font-size: 1.1rem; line-height: 1.6; color: var(--black);
  margin-bottom: 1.4rem;
}
.tcard figcaption {
  font-family: var(--font-mono); font-size: .78rem;
  color: var(--on-cream-muted); letter-spacing: .04em;
}
.tcard figcaption strong { color: var(--black); }
.tcard__progress {
  position: absolute; left: 2.6rem; right: 2.6rem; bottom: 1.2rem;
  height: 2px; background: rgba(58,71,88,.12); border-radius: 2px;
  overflow: hidden; opacity: 0; transition: opacity .3s;
}
.tcard--current .tcard__progress { opacity: 1; }
.tcard__progress span { display: block; height: 100%; width: 0; background: var(--plum); }

/* index3.js draws the signal strip */
.carousel__wave {
  display: block; width: min(720px, 100%); height: 36px;
  margin: 1.4rem auto 0;
}
.carousel__controls { display: flex; justify-content: center; gap: .75rem; margin-top: 2.5rem; }
.ctrl {
  width: 52px; height: 52px; border-radius: var(--radius);
  border: 1.5px solid var(--slate);
  background: var(--white); color: var(--black);
  font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .3s var(--ease), border-color .25s, background .25s, color .25s;
}
.ctrl:hover { border-color: var(--plum); color: var(--plum); transform: translateY(-2px); }
.ctrl:active { background: var(--black); color: var(--white); transform: translateY(0); }
.ctrl__pause-icon { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.ctrl__play-icon { display: none; font-size: .85rem; transform: translateX(1px); }
.ctrl--paused .ctrl__pause-icon { display: none; }
.ctrl--paused .ctrl__play-icon { display: inline; }
@media (max-width: 640px) and (prefers-reduced-motion: reduce) { .ctrl--pause { display: none; } }
@media (max-width: 640px) {
  /* index3.js fits the stage to the current card here, so nothing scrolls
     inside a card and short quotes don't float in empty space */
  .carousel__stage { transition: height .45s var(--ease); }
  /* Controls above the cards: the stage height follows each quote, so below
     it they would jump on every slide */
  .carousel { display: flex; flex-direction: column; }
  .carousel__controls { order: -1; margin: 0 0 .5rem; }
  /* At this width the blurred neighbours read as smudges at the edges */
  .tcard:not(.tcard--current) { opacity: 0 !important; }
  .proof__note { margin-bottom: 1.25rem; }
  .tcard blockquote { font-size: 1rem; line-height: 1.55; }
  .tcard { padding: 2.2rem 1.8rem 2.2rem; }
  .tcard__progress { left: 1.8rem; right: 1.8rem; }
}

/* ==========================================================================
   07 · PRICING
   ========================================================================== */
.pricing {
  background: linear-gradient(180deg, var(--black) 0%, var(--surface) 100%);
  padding: 14vh 0 12vh;
  overflow: hidden;
}
.pricing__intro { color: var(--text-2); max-width: 60ch; margin-bottom: 4rem; }
.pricing__grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 861px) { .pricing__grid { grid-template-columns: repeat(3, 1fr); } }
.pricing::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 60% 45% at 85% 30%, rgba(var(--glow-rgb), .18), transparent 70%),
    radial-gradient(ellipse 50% 40% at 10% 90%, rgba(var(--glow-rgb), .1), transparent 70%);
}
.price-card {
  --hud: rgba(var(--acc-rgb), .9);
  position: relative;
  display: flex; flex-direction: column;
  padding: 2.4rem 2.2rem 2.4rem;
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform .45s var(--ease), border-color .35s, box-shadow .45s var(--ease);
}
.price-card:hover {
  transform: translateY(-6px);
  border-color: rgba(var(--acc-rgb), .7);
  box-shadow: 0 24px 48px rgba(0,0,0,.5), 0 0 40px rgba(var(--acc-rgb), .18);
}
.price-card:hover::before { inset: 4px; }
.price-card__index { font-family: var(--font-mono); font-size: .74rem; letter-spacing: .18em; color: var(--muted); }
.price-card h3 {
  font-family: var(--font-display); font-weight: 700; font-size: 1.55rem;
  letter-spacing: -0.03em;
  margin: 1.6rem 0 .5rem;
}
.price-card__figure {
  font-family: var(--font-mono); font-weight: 700;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  line-height: 1; letter-spacing: -0.02em;
  color: var(--acc-text);
  margin-bottom: 1.2rem;
}
.price-card p:last-child { color: var(--text-2); font-size: 1rem; }
/* The one hard number: a plum-to-apricot edge, so the highlight belongs to
   the section's plum channel instead of fighting it */
.price-card--rate {
  --hud: var(--apricot);
  border-color: transparent;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(229,174,121,.14), transparent 60%) padding-box,
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--plum), var(--apricot)) border-box;
}
.price-card--rate:hover { border-color: transparent; box-shadow: 0 24px 48px rgba(0,0,0,.5), 0 0 48px rgba(229,174,121,.18); }
.price-card__amount { color: var(--apricot); font-size: clamp(2.4rem, 4.5vw, 3.4rem); }
.price-card__unit { font-family: var(--font-mono); font-weight: 500; font-size: 1rem; letter-spacing: .04em; color: var(--muted); }
.pricing__note { margin-top: 3rem; color: var(--text-2); max-width: 62ch; font-size: 1rem; }

/* ==========================================================================
   08 · RESULTS (console)
   ========================================================================== */
.results {
  background: var(--surface);
  padding: 10vh 0 12vh;
}
.console {
  --hud: rgba(var(--acc-rgb), .7);
  position: relative;
  margin-top: 2rem;
  background: var(--black);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px -24px rgba(var(--acc-rgb), .3), var(--shadow);
  overflow: hidden;
}
.console::before { inset: -1px; --s: 12px; }
.console__bar {
  display: flex; align-items: center; gap: 1rem;
  padding: .8rem 1.1rem;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
}
.console__dots { display: inline-flex; gap: 6px; }
.console__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--slate); }
.console__dots i:nth-child(1) { background: var(--rose); }
.console__dots i:nth-child(2) { background: var(--apricot); }
.console__dots i:nth-child(3) { background: var(--sage); }
.console__title { font-size: .74rem; color: var(--muted); letter-spacing: .06em; }
.results__list { list-style: none; padding: .6rem 1.4rem 1rem; counter-reset: ln; }
.results__line {
  counter-increment: ln;
  font-size: clamp(.9rem, 1.5vw, 1.08rem);
  color: var(--text-2);
  padding: 1rem 0;
  border-bottom: 1px dashed var(--line);
  display: flex; gap: 1em; align-items: baseline;
  opacity: 0; transform: translateY(24px);
}
.results__line:last-child { border-bottom: 0; }
.results__line::before {
  content: counter(ln, decimal-leading-zero);
  color: var(--muted); font-size: .8em; min-width: 2ch;
}
.results__line .ok-tag { color: var(--sage); font-weight: 700; white-space: pre; flex: none; }
.results__cursor {
  display: flex; gap: 1em; align-items: center;
  padding: 1rem 0 .4rem; color: var(--acc-text);
  font-size: clamp(.9rem, 1.5vw, 1.08rem);
}
.results__cursor .terminal__caret { background: var(--acc-text); }

/* ==========================================================================
   09 · CLOSING CTA
   ========================================================================== */
.cta {
  position: relative;
  min-height: 100vh;
  padding: 18vh 0 12vh;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0, var(--black) 18vh);
}
.cta__glow {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 120vw; height: 80vh; pointer-events: none;
  background:
    radial-gradient(ellipse at 30% 40%, rgba(229,174,121,.12) 0%, transparent 55%),
    radial-gradient(ellipse at 75% 30%, rgba(115,91,117,.2) 0%, transparent 55%);
  /* Starts at the section top and fades in, so it never meets Results on an edge */
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 40%);
          mask-image: linear-gradient(180deg, transparent, #000 40%);
}
.cta__ghost42 { right: -8vw; top: 6vw; -webkit-text-stroke: 1px rgba(229,174,121,.16); }
.cta__inner { position: relative; z-index: 2; }

@media (min-width: 1280px) { .cta__ghost42 { right: -14vw; } }
.cta__headline {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 7.4rem);
  line-height: 1; letter-spacing: -0.045em;
  margin-bottom: 1.6rem;
  max-width: 14ch;
}
.cta__headline .word { display: inline-block; }
.cta__headline .char { display: inline-block; will-change: transform, opacity; }
.cta__sub { color: var(--text-2); max-width: 52ch; margin-bottom: 3.5rem; }

/* ---------- Form ---------- */
.form {
  max-width: 780px;
  padding: clamp(1.4rem, 3vw, 2.2rem);
  background: rgba(11,14,19,.75);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

.field { position: relative; margin-bottom: 1.2rem; }
.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit; font-size: 1rem;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 1.2rem 1.1rem .55rem;
  transition: border-color .3s, background .3s, box-shadow .3s;
  appearance: none;
}
.field textarea { resize: vertical; min-height: 130px; }
.field label {
  position: absolute; left: 1.1rem; top: .92rem;
  color: var(--muted); font-size: 1rem;
  pointer-events: none;
  transition: transform .3s var(--ease), font-size .3s var(--ease), color .3s, letter-spacing .3s;
  transform-origin: left top;
}
.field__opt { font-size: .8em; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--apricot);
  box-shadow: 0 0 0 3px rgba(229,174,121,.16), 0 0 24px rgba(229,174,121,.12);
}
.field input:focus ~ label,
.field input:not(:placeholder-shown) ~ label,
.field textarea:focus ~ label,
.field textarea:not(:placeholder-shown) ~ label,
.field select:focus ~ label,
.field select:valid ~ label {
  transform: translateY(-0.55rem);
  font-family: var(--font-mono);
  font-size: .64rem;
  color: var(--apricot);
  letter-spacing: .14em; text-transform: uppercase;
}
.form--touched .field input:invalid,
.form--touched .field textarea:invalid { border-color: rgba(212,119,119,.8); }
.field__error {
  display: none;
  font-family: var(--font-mono); font-size: .78rem; line-height: 1.4;
  color: var(--rose);
  margin-top: .45rem; padding-left: .15rem;
}
.field__error--on { display: block; }
.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] { border-color: var(--rose); }

.form__actions { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.form__status { font-size: .8rem; color: var(--apricot); }
.grecaptcha-badge {
  visibility: hidden; opacity: 0;
  transition: opacity .35s var(--ease), visibility .35s;
  bottom: calc(clamp(1rem, 3vw, 2.5rem) + 90px) !important;
}
body.captcha-badge-on .grecaptcha-badge { visibility: visible; opacity: 1; }
.form__hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form button[type="submit"][disabled] { opacity: .55; pointer-events: none; }

.form-thanks {
  max-width: 780px; padding: clamp(2rem, 4vw, 3rem);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--surface);
}
.form-thanks[hidden] { display: none; }
.form-thanks__check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 62px; height: 62px; margin-bottom: 1.4rem; border-radius: var(--radius);
  color: var(--black); background: var(--sage);
}
.form-thanks__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .7rem; }
.form-thanks__body { color: var(--text-2); max-width: 46ch; }

.cta__direct { margin-top: 3rem; color: var(--text-2); font-size: 1rem; max-width: 56ch; }
.cta__direct .mono { font-size: .9rem; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--black);
  border-top: 1px solid var(--line);
  padding: 4rem 0 3rem;
  position: relative;
}
.footer::before {
  content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  width: min(420px, 60vw); height: 1px;
  background: linear-gradient(90deg, transparent, var(--apricot), transparent);
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: 1.8rem; text-align: center; }
.footer__strip { font-size: .7rem; letter-spacing: .22em; color: var(--muted); }
.footer__nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; }
.footer__nav a {
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--link); text-decoration: none; transition: color .25s;
}
.footer__nav a:hover { color: var(--link-hover); }
.footer__legal { font-size: .85rem; color: var(--muted); }
.footer__wink { display: block; margin-top: .6rem; font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; }

/* ==========================================================================
   REVEAL DEFAULTS (JS animates these in; keep visible without JS)
   ========================================================================== */
.js .reveal { opacity: 0; transform: translateY(36px); }
.js .why__item { opacity: 0; transform: translateY(40px); }

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .js .reveal, .js .why__item, .results__line,
  .hero__eyebrow, .hero__sub, .hero__cta {
    opacity: 1 !important; transform: none !important;
  }
  .statement__line .word { opacity: 1 !important; }
  .scroll-cue, .about__scan { display: none; }
  .terminal__caret {
    animation-duration: 1s !important;
    animation-iteration-count: infinite !important;
  }
}

/* ==========================================================================
   PAGE TRACE (index3-trace.js)
   One of the hero chip's traces, carried down the page behind the content
   to the contact form. Above section backgrounds, under every .container.
   ========================================================================== */
.page-trace {
  position: absolute; top: 0; left: 0; z-index: 0;
  pointer-events: none; overflow: visible;
  opacity: 0; transition: opacity .4s ease;
}
.page-trace.is-started { opacity: 1; }
.page-trace path { fill: none; stroke-linecap: square; stroke-linejoin: miter; }
/* Same colour as the 3D board's traces; width is set from the hand-off */
.pt-line { stroke: url(#ptStroke); stroke-width: 3; } /* slate, plum across the bio section */
/* The travelling pulse, drawn like the scene's: additive-looking sprites */
.pt-light { mix-blend-mode: screen; transition: opacity .3s; }
.pt-dot, .pt-halo { fill: url(#ptPulse); }
.pt-halo { opacity: .45; }
.pt-via { fill: var(--black); stroke: #46566B; stroke-width: 2; }
.pt-pad { fill: var(--black); stroke: #46566B; stroke-width: 2; opacity: 0; transition: opacity .3s, stroke .6s; }

/* Circuit complete: the whole run goes green, the tip lands on the pad */
.page-trace.is-live .pt-line { stroke: #2A7F55; }
.page-trace.is-live .pt-light { opacity: 0; }
.page-trace.is-live .pt-pad { opacity: 1; stroke: #4CAF7D; fill: #2A7F55; }

/* The form, powered: a double flash on arrival, then a steady green edge */
.form { transition: border-color .6s ease, box-shadow .6s ease; }
.form.is-energized, .form-thanks.is-energized {
  border-color: rgba(76,175,125,.55);
  box-shadow: 0 0 0 1px rgba(76,175,125,.2), 0 0 32px rgba(46,138,92,.12);
}
.form.is-flash, .form-thanks.is-flash { animation: formFlash 1.3s var(--ease); }
@keyframes formFlash {
  0%   { box-shadow: 0 0 0 0 rgba(76,175,125,0); border-color: var(--line); }
  12%  { box-shadow: 0 0 0 2px #4CAF7D, 0 0 60px rgba(46,138,92,.6); border-color: #7FCCA3; background-color: rgba(42,127,85,.16); }
  30%  { box-shadow: 0 0 0 1px rgba(76,175,125,.4), 0 0 24px rgba(46,138,92,.2); background-color: rgba(11,14,19,.75); }
  44%  { box-shadow: 0 0 0 2px #4CAF7D, 0 0 48px rgba(46,138,92,.5); border-color: #7FCCA3; background-color: rgba(42,127,85,.1); }
  100% { box-shadow: 0 0 0 1px rgba(76,175,125,.2), 0 0 32px rgba(46,138,92,.12); border-color: rgba(76,175,125,.55); }
}
@media (prefers-reduced-motion: reduce) {
  .form.is-flash, .form-thanks.is-flash { animation: none; }
}
