/* ============================================================
   DARST SYSTEMS — core stylesheet
   Mobile-first. Cinematic, engineered, golden rim light.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* INK — 5-step elevation */
  --ink-900:#040405; --ink-800:#060607; --ink-700:#0a0b0d; --ink-600:#0e1013; --ink-500:#13151a;
  --ink:var(--ink-800); --ink-2:#0b0c0e; --panel:var(--ink-600); --panel-2:var(--ink-500);

  /* GOLD ramp — shadow → hot */
  --gold-900:#5e4015; --gold-700:#8a6020; --gold-500:#c99239; --gold-300:#e7ba62; --gold-100:#f7e1a0;
  --gold:var(--gold-500); --gold-bright:var(--gold-300); --gold-deep:var(--gold-700);
  --gold-yellow:#ddbb3c;   /* darker, more-yellow gold — accent for "yet" + the rotating city name */
  --yellow:#e9b21e; --yellow-bright:#f4c544;   /* deep brass-gold yellow — header / primary-CTA accent */

  /* HAIRLINES */
  --line-1:rgba(255,255,255,.04); --line-2:rgba(255,255,255,.08);
  --line-3:rgba(255,255,255,.14); --line-gold:rgba(201,146,57,.32);
  --line:var(--line-2); --line-soft:var(--line-1); --smoke:rgba(255,255,255,.035);

  /* GLOW */
  --glow-soft:rgba(201,146,57,.12); --glow-mid:rgba(201,146,57,.28);
  --glow-hot:rgba(231,186,98,.5); --gold-glow:rgba(201,146,57,.35);

  /* TEXT */
  --text:#e9eaec; --muted:#9a9ea6; --faint:#7c818b;

  /* TYPE */
  --font-display:"Saira", system-ui, sans-serif; --font-body:"Inter", system-ui, sans-serif;
  --font-mono:"Spline Sans Mono","IBM Plex Mono",ui-monospace,"SFMono-Regular",monospace;
  --fs-mega:clamp(3.4rem,11vw,8rem); --fs-h2:clamp(2.1rem,6vw,3.6rem);
  --fs-h3:clamp(1rem,1.4vw,1.15rem); --fs-lead:clamp(1.05rem,1.6vw,1.25rem);
  --fs-body:.95rem; --fs-eyebrow:.72rem; --fs-index:.7rem;
  --fs-hud:.66rem; --fs-tick:.6rem;

  /* INSTRUMENTATION / RIBBON */
  --ribbon-w:1.5px; --ribbon-glow:rgba(231,186,98,.45); --p:0;

  /* SPACE */
  --wrap:1240px; --pad:22px; --section-y:clamp(38px,5.5vw,72px);
  --safe-t:env(safe-area-inset-top,0px); --safe-b:env(safe-area-inset-bottom,0px);
  --safe-l:env(safe-area-inset-left,0px); --safe-r:env(safe-area-inset-right,0px);

  /* EASINGS */
  --ease:cubic-bezier(.22,.61,.36,1); --ease-out:cubic-bezier(.16,1,.3,1);
  --ease-in:cubic-bezier(.5,0,.75,0); --ease-emph:cubic-bezier(.62,.05,.01,.99);
  --ease-spring:cubic-bezier(.34,1.56,.64,1); --ease-rim:cubic-bezier(.45,.05,.2,1);
  --ease-snap:cubic-bezier(.34,1.56,.64,1); /* mechanical snap — reserved for brackets/ticks/dock */

  /* DURATIONS */
  --t-xs:.18s; --t-sm:.32s; --t-md:.55s; --t-lg:.9s; --t-xl:1.2s; --t-hero:1.6s;

  /* ── MCU TIMEDOOR KIT ──────────────────────────────────────
     The house look: a gold-framed HUD "time door" — corner
     brackets, instrument readouts, hex glyph cells, reticles.
     Every component below reads these; retune the look here. */
  --td-line:var(--gold-300);            /* bracket / frame stroke at rest */
  --td-line-hot:var(--gold-100);        /* stroke when the door is "open" */
  --td-edge:var(--line-gold);           /* hairline frame border */
  --td-ink:linear-gradient(157deg, rgba(40,29,14,.5), rgba(10,9,11,.5) 72%); /* door surface */
  --td-bloom:var(--glow-mid);           /* warm core radial behind content */
  --td-glow:var(--glow-hot);            /* the hot edge glow on open */
  --td-bk-len:16px;                     /* bracket arm length */
  --td-bk-w:1px;                        /* bracket / frame stroke weight */
  --td-bk-inset:0px;                    /* bracket inset from the frame edge */
  --td-rest:.78;                        /* bracket opacity at rest */
}
@media (min-width:700px)  { :root { --pad:40px; } }
@media (min-width:1100px) { :root { --pad:56px; } }

/* ============================================================
   MCU TIMEDOOR KIT
   The reusable house look. Five primitives, one namespace (.td-):
     .td-door     — a framed "time door" surface (gold edge, core bloom)
     .td-corners  — 4 L-shaped HUD brackets, zero extra DOM
     .td-hud      — mono instrument readout label (CAP-01/05, X 0.000…)
     .td-hex      — hexagon glyph cell (the icon chips)
     .td-reticle  — centred crosshair for empty asset slots
     .td-ticks    — the + + + / - - - corner tick rows
   Compose freely. Add .is-open (or :hover on a .td-open element)
   to "open the door": brackets snap, edge ignites, core blooms.
   Tune everything from the --td-* tokens in :root.
   ============================================================ */

/* ---- surface: the door itself ---- */
.td-door { position: relative; isolation: isolate;
  background: var(--td-ink);
  border: var(--td-bk-w) solid var(--td-edge);
  box-shadow: inset 0 0 0 1px rgba(231,186,98,.06),
              inset 0 0 34px -12px var(--td-bloom),
              0 22px 48px -28px rgba(0,0,0,.7);
  transition: border-color var(--t-sm) var(--ease), box-shadow var(--t-md) var(--ease); }
/* warm core — a soft radial behind the content, the "energy" inside the door */
.td-door::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(120% 140% at 50% 118%, var(--td-bloom), transparent 70%);
  opacity: .6; transition: opacity var(--t-md) var(--ease); }
/* open state — edge ignites, core flares (shared by hover + .is-open) */
.td-door.is-open, .td-open:hover { border-color: var(--td-line);
  box-shadow: inset 0 0 0 1px rgba(231,186,98,.22),
              inset 0 0 48px -8px var(--td-bloom),
              0 0 30px -4px var(--td-glow), 0 26px 60px -26px rgba(0,0,0,.8); }
.td-door.is-open::before, .td-open:hover::before { opacity: 1; }

/* ---- corner brackets: 4 L-marks drawn from one element, no child nodes ----
   8 background segments (a horizontal + vertical arm per corner). Drop onto
   any positioned box, or use as a standalone overlay with .td-corners.overlay. */
.td-corners { position: relative; }
.td-corners.overlay { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.td-corners::after {
  content: ""; position: absolute; inset: var(--td-bk-inset); pointer-events: none; z-index: 4;
  --c: var(--td-line); --L: var(--td-bk-len); --w: var(--td-bk-w);
  background:
    linear-gradient(var(--c),var(--c)) 0      0      / var(--L) var(--w),
    linear-gradient(var(--c),var(--c)) 0      0      / var(--w) var(--L),
    linear-gradient(var(--c),var(--c)) 100%   0      / var(--L) var(--w),
    linear-gradient(var(--c),var(--c)) 100%   0      / var(--w) var(--L),
    linear-gradient(var(--c),var(--c)) 0      100%   / var(--L) var(--w),
    linear-gradient(var(--c),var(--c)) 0      100%   / var(--w) var(--L),
    linear-gradient(var(--c),var(--c)) 100%   100%   / var(--L) var(--w),
    linear-gradient(var(--c),var(--c)) 100%   100%   / var(--w) var(--L);
  background-repeat: no-repeat;
  opacity: var(--td-rest); filter: drop-shadow(0 0 4px var(--td-bloom));
  transition: opacity var(--t-xs) var(--ease), transform var(--t-sm) var(--ease-snap),
              filter var(--t-sm) var(--ease); }
/* open → brackets brighten, expand a touch, and the L-arms catch the hot glow */
.td-door.is-open .td-corners::after, .td-open:hover .td-corners::after,
.is-open > .td-corners::after, .td-corners.is-open::after {
  --c: var(--td-line-hot); opacity: 1; transform: scale(1.04);
  filter: drop-shadow(0 0 8px var(--td-glow)); }

/* ---- HUD readout: tiny mono instrument label ---- */
.td-hud { font-family: var(--font-mono); font-size: var(--fs-hud);
  text-transform: uppercase; letter-spacing: .14em; line-height: 1;
  color: var(--gold-300); opacity: .82; white-space: nowrap; }
.td-hud b { color: var(--gold-100); font-weight: 600; }
.td-hud.corner { position: absolute; top: 10px; left: 12px; z-index: 5; }
.td-hud.corner.tr { left: auto; right: 12px; }

/* ---- hex glyph cell: the hexagon icon chips ---- */
.td-hex { display: grid; place-items: center; width: 56px; height: 56px;
  color: var(--gold-300);
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  background:
    linear-gradient(rgba(40,29,14,.55), rgba(10,9,11,.55)) padding-box,
    radial-gradient(circle at 50% 60%, var(--td-bloom), transparent 70%) padding-box;
  box-shadow: inset 0 0 0 1.5px var(--td-line), inset 0 0 16px -6px var(--td-glow);
  filter: drop-shadow(0 0 6px var(--td-bloom));
  transition: box-shadow var(--t-sm) var(--ease), filter var(--t-sm) var(--ease); }
.td-hex svg, .td-hex img { width: 48%; height: 48%; }
.is-open .td-hex, .td-open:hover .td-hex {
  box-shadow: inset 0 0 0 1.5px var(--td-line-hot), inset 0 0 20px -4px var(--td-glow);
  filter: drop-shadow(0 0 9px var(--td-glow)); }

/* ---- reticle: centred crosshair for empty / pending asset slots ---- */
.td-reticle { position: absolute; top: 50%; left: 50%; width: 26px; height: 26px;
  transform: translate(-50%,-50%); pointer-events: none; z-index: 3; opacity: .8;
  --c: var(--td-line); --w: var(--td-bk-w);
  background:
    linear-gradient(var(--c),var(--c)) 50% 0   / var(--w) 100%,
    linear-gradient(var(--c),var(--c)) 0   50% / 100% var(--w);
  background-repeat: no-repeat;
  filter: drop-shadow(0 0 5px var(--td-glow)); }

/* ---- tick rows: the + + +  /  - - -  edge furniture ---- */
.td-ticks { display: flex; gap: .5em; font-family: var(--font-mono);
  font-size: var(--fs-tick); color: var(--gold-700); letter-spacing: .1em;
  user-select: none; }
.td-ticks.hot { color: var(--gold-300); }

/* respect reduced-motion — kill the snap/scale on the brackets */
@media (prefers-reduced-motion: reduce) {
  .td-door, .td-door::before, .td-corners::after, .td-hex { transition: none; }
  .td-door.is-open .td-corners::after, .td-open:hover .td-corners::after { transform: none; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body); background: var(--ink); color: var(--text);
  line-height: 1.65; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; }
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(--gold); color: #0a0a0a; }

/* ICON SAFETY NET — every JS-injected glyph is bounded by default, so a
   stray icon can never balloon to fill the viewport if a component sizing
   rule is missing (e.g. a stale-cache CSS/JS mismatch). Component rules
   (.value-icon, .pcard-glyph, .loc-chip-ico) override these as needed. */
[data-icon] { display: inline-grid; place-items: center; width: 1.5em; height: 1.5em; line-height: 0; flex: 0 0 auto; }
[data-icon] > svg { width: 100%; height: 100%; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad); }
.arr { display: inline-block; transition: transform .35s var(--ease); }
.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; }

/* focus */
:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; border-radius: 2px; }
.skip-link {
  position: fixed; top: -100px; left: 12px; z-index: 300; background: var(--gold);
  color: #0a0a0a; padding: .7em 1.2em; font-family: var(--font-display); font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; font-size: .8rem; transition: top .3s var(--ease);
}
.skip-link:focus { top: calc(12px + var(--safe-t)); }

/* ============================================================
   AMBIENT LAYERS
   ============================================================ */
.grain {
  /* NO mix-blend-mode: a full-viewport blend layer forced the compositor to re-blend its
     backdrop on EVERY paint beneath it (sparks, HUD blinks, scroll, reveals) and defeated
     layer caching site-wide. Plain low-alpha noise reads the same over near-black; `contain`
     keeps it a cheap, self-isolated, cacheable layer. */
  position: fixed; inset: 0; z-index: 8; pointer-events: none; opacity: .06; contain: layout paint style;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* grain is static now — the per-frame grain-shift repainted a full-viewport overlay layer */
@keyframes grain-shift { 0%{transform:translate(0,0)} 25%{transform:translate(-3%,2%)} 50%{transform:translate(2%,-3%)} 75%{transform:translate(-2%,-2%)} 100%{transform:translate(3%,2%)} }

.vignette {
  position: fixed; inset: 0; z-index: 8; pointer-events: none;
  background:
    radial-gradient(130% 100% at 50% 28%, transparent 52%, rgba(0,0,0,.6) 100%),
    radial-gradient(100% 80% at 50% 0%, rgba(120,80,30,.05), transparent 50%);
}
.leak {
  position: fixed; inset: -20% 0 auto 0; height: 60vh; z-index: 0; pointer-events: none;
  filter: blur(30px); opacity: .7;
  background:
    radial-gradient(50% 60% at calc(70% + var(--leak-x,0px)) 0%, var(--glow-mid), transparent 60%),
    conic-gradient(from 200deg at 75% -10%, transparent, rgba(231,186,98,.10), transparent 30%);
}
@media (prefers-reduced-motion: no-preference) { .leak { animation: leak-drift 14s var(--ease) infinite alternate; } }
@keyframes leak-drift { from{transform:translateX(-4%) scale(1);opacity:.55} to{transform:translateX(4%) scale(1.08);opacity:.8} }

.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 90; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%; will-change: transform;
  background: linear-gradient(90deg, var(--gold-700), var(--gold-300));
  box-shadow: 0 0 14px rgba(231,186,98,.7), inset 0 0 0 .5px rgba(0,0,0,.35); }

/* ============================================================
   BOOT LOADER
   ============================================================ */
.loader {
  position: fixed; inset: 0; z-index: 200; background: var(--ink-900);
  display: grid; place-items: center; clip-path: inset(0 0 0 0);
  transition: clip-path .5s var(--ease-emph);
}
.loader { transition: clip-path .5s var(--ease-emph), opacity .5s var(--ease-emph); }
.loader.done { clip-path: inset(0 0 100% 0); opacity: 0; pointer-events: none; }
.loader-inner { display: grid; justify-items: center; gap: 1.6rem; width: min(80vw, 280px); }
.loader-mark { width: 60px; height: 60px; color: var(--gold-300); }
.loader-mark svg { width: 100%; height: 100%; overflow: visible; }
.loader .lm-path { stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw 1s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
/* gold chevron fills in after the D outline draws — matches the final filled logo */
.loader .lm-arrow { fill: var(--gold-500); opacity: 1; }
@media (prefers-reduced-motion: no-preference) { .loader .lm-arrow { animation: lm-fill .5s var(--ease) .5s both; } }
@keyframes lm-fill { from { opacity: 0; } to { opacity: 1; } }
.loader-bar { width: 100%; height: 1px; background: var(--line-2); overflow: hidden; }
.loader-bar i { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--gold-700), var(--gold-300)); }
.loader-meta { display: flex; justify-content: space-between; width: 100%;
  font-family: var(--font-display); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.loader-count { color: var(--gold-300); }
body.booting { overflow: hidden; }

/* ============================================================
   REVEAL SYSTEM
   ============================================================ */
[data-reveal] {
  opacity: 0; transform: translate3d(0,24px,0) scale(.99); filter: blur(10px);
  /* fast enough to ALWAYS finish before the scroll-spark reaches the element (see main.js
     reveal-vs-spark math): slowest channel .42s + tight .042s stagger */
  transition: opacity .34s var(--ease-out), transform .42s var(--ease-out), filter .3s var(--ease-out);
  transition-delay: calc(var(--d,0) * 42ms);   /* reveal hint is set inline by JS on enter, cleared on transitionend */
}
[data-reveal].in { opacity: 1; transform: none; filter: blur(0); }
/* no-JS / load-failure fallback — never trap content hidden */
html:not(.js) [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; clip-path: none !important; }
html:not(.js) .loader { display: none; }
[data-reveal][data-reveal-dir="left"]  { transform: translate3d(-40px,0,0) scale(.985); }
[data-reveal][data-reveal-dir="right"] { transform: translate3d(40px,0,0) scale(.985); }
[data-reveal][data-reveal-dir="media"] {
  opacity: 0; filter: blur(14px); transform: scale(1.06); clip-path: inset(0 0 100% 0);
  /* media was the slowest (1.6s) and the tightest buffer — bring it under .5s so the spark never catches it */
  transition: opacity .4s var(--ease-out), transform .46s var(--ease-emph),
              filter .3s var(--ease-out), clip-path .46s var(--ease-emph);
}
[data-reveal][data-reveal-dir="media"].in { opacity: 1; filter: blur(0); transform: scale(1); clip-path: inset(0 0 0% 0); }
/* a door sliding open to the right — box grows from its left edge, content wipes in */
[data-reveal][data-reveal-dir="open-right"] {
  opacity: 0; filter: blur(4px); transform: none; clip-path: inset(0 100% 0 0);
  transition: opacity .3s var(--ease-out), filter .3s var(--ease-out),
              clip-path .62s var(--ease-out);
}
[data-reveal][data-reveal-dir="open-right"].in { opacity: 1; filter: blur(0); clip-path: inset(0 0 0 0); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-display); font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  font-size: .82rem; padding: 1.05em 1.7em; color: var(--text); overflow: hidden; isolation: isolate;
  min-height: 44px; transition: color .4s var(--ease), border-color .4s var(--ease), background .4s var(--ease);
}
.btn-sm { padding: .7em 1.1em; font-size: .72rem; min-height: 0; }
.btn:hover .arr { transform: translateX(5px); }

.btn-line { border: 1px solid var(--line-3); }
.btn-line::before { content:""; position:absolute; inset:0; z-index:-1;
  background: linear-gradient(120deg, var(--gold-deep), var(--gold)); transform: translateY(101%); transition: transform .5s var(--ease-out); }
.btn-line:hover { color: #120c04; border-color: var(--gold); }
.btn-line:hover::before { transform: translateY(0); }

.btn-ghost { border: 1px solid var(--line-2); color: var(--muted); }
.btn-ghost:hover { color: var(--gold-300); border-color: var(--line-gold); }

.btn-solid { background: linear-gradient(120deg, var(--gold-deep), var(--gold)); color: #140d03; border: 1px solid var(--gold); }
.btn-solid::before { content:""; position:absolute; inset:0; z-index:-1; opacity:0;
  background: linear-gradient(120deg, var(--gold), var(--gold-bright)); transition: opacity .4s var(--ease); }
.btn-solid:hover::before { opacity: 1; }

/* bold industrial-yellow primary — pops against the steel + dark hero */
.btn-yellow { background: var(--yellow); color: #1a1203; border: 1px solid var(--yellow); font-weight: 600; }
.btn-yellow::before { content:""; position:absolute; inset:0; z-index:-1; opacity:0;
  background: var(--yellow-bright); transition: opacity .35s var(--ease); }
.btn-yellow:hover { color: #1a1203; border-color: var(--yellow-bright); box-shadow: 0 8px 26px -10px rgba(233,178,30,.6); }
.btn-yellow:hover::before { opacity: 1; }
/* yellow outline — the secondary CTA: yellow border + text, fills yellow on hover */
.btn-yellow-line { border: 1px solid var(--yellow); color: var(--yellow); }
.btn-yellow-line::before { content:""; position:absolute; inset:0; z-index:-1; background: var(--yellow);
  transform: translateY(101%); transition: transform .5s var(--ease-out); }
.btn-yellow-line:hover { color: #1a1203; border-color: var(--yellow); }
.btn-yellow-line:hover::before { transform: translateY(0); }

.btn::after { content:""; position:absolute; top:0; left:-120%; width:60%; height:100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.18), transparent); transform: skewX(-18deg); pointer-events:none; }
.btn:hover::after { animation: shine .8s var(--ease) forwards; }
@keyframes shine { to { left: 140%; } }

/* ============================================================
   GOLDEN RIM-LIGHT IMAGE TREATMENT
   ============================================================ */
.rim { position: relative; overflow: hidden;
  filter: drop-shadow(0 26px 60px rgba(0,0,0,.6)) drop-shadow(0 0 50px rgba(201,146,57,.10)); }
.rim img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: brightness(.86) contrast(1.16) saturate(.92) sepia(.18);
  transition: filter .7s var(--ease), transform 1.2s var(--ease-out);
}
.rim:hover img { filter: brightness(1) contrast(1.12) saturate(1) sepia(.10); }
/* directional gold wash (key back-right) */
.rim::before {
  content:""; position:absolute; inset:0; z-index:2; pointer-events:none; mix-blend-mode:screen; opacity:.9;
  background:
    radial-gradient(60% 80% at calc(82% + var(--mx,0%)) calc(30% + var(--my,0%)), rgba(231,186,98,.55) 0%, rgba(201,146,57,.22) 30%, transparent 62%),
    linear-gradient(110deg, transparent 55%, rgba(231,186,98,.30) 88%, rgba(255,225,180,.45) 100%);
  transition: background .3s var(--ease-rim);
}
/* halo + inner contour */
.rim::after {
  content:""; position:absolute; inset:0; z-index:3; pointer-events:none;
  box-shadow: inset 0 0 0 1px rgba(231,186,98,.16), inset -18px 0 40px -20px rgba(231,186,98,.55), inset 0 -40px 60px -30px rgba(0,0,0,.9);
}
.rim--left::before {
  background:
    radial-gradient(60% 80% at calc(18% + var(--mx,0%)) calc(30% + var(--my,0%)), rgba(231,186,98,.55) 0%, rgba(201,146,57,.22) 30%, transparent 62%),
    linear-gradient(250deg, transparent 55%, rgba(231,186,98,.30) 88%, rgba(255,225,180,.45) 100%);
}
.rim--left::after { box-shadow: inset 0 0 0 1px rgba(231,186,98,.16), inset 18px 0 40px -20px rgba(231,186,98,.55), inset 0 -40px 60px -30px rgba(0,0,0,.9); }

.media-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 4;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  box-shadow: 0 0 18px var(--gold-bright); opacity: .85; animation: scan 5s var(--ease) infinite;
}
@keyframes scan { 0%{top:-2%;opacity:0} 12%{opacity:.9} 88%{opacity:.9} 100%{top:102%;opacity:0} }

/* panel surface */
.panel {
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent 40%), linear-gradient(180deg, var(--ink-600), var(--ink-700));
  border: 1px solid var(--line-2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 30px 60px -30px rgba(0,0,0,.7);
  transition: border-color .4s var(--ease), box-shadow .4s var(--ease), transform .5s var(--ease-out);
}
.panel:hover { border-color: var(--line-gold);
  box-shadow: inset 0 1px 0 rgba(231,186,98,.12), 0 30px 70px -28px rgba(0,0,0,.8), 0 0 0 1px var(--line-gold); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 80; padding-top: var(--safe-t);
  transition: background .5s var(--ease), border-color .5s var(--ease), backdrop-filter .5s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: none; border-bottom-color: transparent; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; transition: height .45s var(--ease); }
.site-header.scrolled .header-inner { height: 60px; }

.brand { display: inline-flex; align-items: center; gap: .6em; }
/* top-bar descriptor next to the logo */
.brand-group { display: flex; align-items: center; gap: 1rem; }
.brand-tag { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  white-space: nowrap; color: rgba(26,18,3,.7); padding-left: 1rem; border-left: 1px solid rgba(20,14,2,.32); }
@media (max-width: 1180px) { .brand-tag { display: none; } }
.brand-mark { width: 30px; height: 30px; color: var(--text); display: block; transition: width .5s var(--ease), height .5s var(--ease); }
.brand-mark svg, .brand-mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
/* bigger logo at the top of the page, elegantly shrinking once scrolled */
.site-header .brand-mark { width: 60px; height: 60px; }
.site-header.scrolled .brand-mark { width: 28px; height: 28px; }
/* anchor the brand left, set off the spark ribbon (≈8%) with some breathing room */
@media (min-width: 980px) { .site-header .header-inner { max-width: none; padding-left: clamp(64px, 11vw, 210px); } }
.site-header .brand-name { font-size: 1rem; transition: font-size .5s var(--ease); }
.site-header.scrolled .brand-name { font-size: .8rem; }
.brand-name { font-family: var(--font-display); font-weight: 600; letter-spacing: .26em; text-transform: uppercase; font-size: .82rem; }
.brand-name span { color: var(--gold); }
.brand-mark .mk-arrow { fill: var(--gold); }
.brand-mark .mk-d { color: var(--text); }

.nav-desktop { display: none; gap: 2.2rem; }
.navlink { position: relative; font-family: var(--font-display); font-weight: 500; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: .4em 0; transition: color .3s var(--ease); }
.navlink::after { content:""; position:absolute; left:0; bottom:-2px; height:1px; width:100%; background: var(--yellow);
  transform: scaleX(0); transform-origin: var(--uo, left); transition: transform .35s var(--ease); }
.navlink:hover, .navlink.is-active { color: var(--text); }
.navlink:hover::after, .navlink.is-active::after { transform: scaleX(1); }
/* Join Us — the primary recruit door: persistent gold underline marks it as the CTA */
.navlink-cta { color: var(--gold-300); font-weight: 600; }
.navlink-cta::after { background: var(--gold-300); transform: scaleX(1); transform-origin: left; opacity: .5; }
.navlink-cta:hover { color: var(--gold-100); }
.navlink-cta:hover::after { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: .8rem; }
.contact-btn { display: none; }

.sound-toggle { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; transition: border-color .3s, background .3s; }
.sound-toggle:hover { border-color: var(--gold); }
.sound-bars { display: flex; align-items: center; gap: 2.5px; height: 14px; }
.sound-bars i { width: 2px; height: 4px; background: var(--muted); border-radius: 2px; transition: background .3s; }
.sound-toggle[aria-pressed="true"] .sound-bars i { background: var(--gold); animation: eq 1s var(--ease) infinite; }
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(2){animation-delay:.15s}
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(3){animation-delay:.3s}
.sound-toggle[aria-pressed="true"] .sound-bars i:nth-child(4){animation-delay:.45s}
@keyframes eq { 0%,100%{height:4px} 50%{height:13px} }

.menu-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 1.6px; background: var(--text); transition: transform .4s var(--ease), opacity .3s; }
.menu-toggle.open span:nth-child(1){ transform: translateY(6.6px) rotate(45deg); }
.menu-toggle.open span:nth-child(2){ opacity: 0; }
.menu-toggle.open span:nth-child(3){ transform: translateY(-6.6px) rotate(-45deg); }

/* ── BRAND FLAG — yellow chamfered banner behind the brand; nav lives on the dark.
   Built as FIVE sliced pieces: 3 FIXED end/notch caps (native px width, never distort)
   and 2 STRETCH zones between them. Only the stretch zones absorb width — everything else
   stays 1:1. Mobile = a single full-width yellow bar; desktop activates the slices. ── */
.hdr-flag { position: absolute; inset: 0; z-index: 0; display: flex; overflow: hidden; pointer-events: none; background: var(--yellow); }
.hdr-flag > i { display: none; height: 100%; background: var(--yellow); }
.header-inner { position: relative; z-index: 1; }
.site-header .brand-name { color: #1a1203; }
.site-header .brand-name span { color: #5a4112; }
.hdr-brackets { display: none; }
/* phone: the WHOLE flag scales as one unit — full shape in % coords, no fixed pieces.
   The flag shrinks proportionally with the viewport; the controls now sit on the dark
   area beside the smaller flag, so they revert to the light default for contrast. */
@media (max-width: 979px) {
  .hdr-flag {
    -webkit-clip-path: polygon(0% 0%, 99.71% 0%, 97.36% 28.37%, 95.01% 28.37%, 93.84% 14.18%, 92.67% 14.18%, 56.3% 14.18%, 55.13% 14.18%, 51.61% 56.74%, 50.44% 56.74%, 14.08% 56.74%, 12.9% 56.74%, 12.9% 78.01%, 10.56% 99.29%, 0% 99.29%);
    clip-path: polygon(0% 0%, 99.71% 0%, 97.36% 28.37%, 95.01% 28.37%, 93.84% 14.18%, 92.67% 14.18%, 56.3% 14.18%, 55.13% 14.18%, 51.61% 56.74%, 50.44% 56.74%, 14.08% 56.74%, 12.9% 56.74%, 12.9% 78.01%, 10.56% 99.29%, 0% 99.29%);
  }
}
/* desktop: EXACT supplied shape — full-width top rail, left brand block, thin left spine */
@media (min-width: 980px) {
  .site-header { background: none; }
  .site-header.scrolled { background: none; border-bottom-color: transparent; }
  /* Stretch settings (authoritative): FIVE clip paths, only the TWO stretch zones stretch.
     Native canvas 1705px wide, sliced at the two spans 240-860px and 960-1580px:
       1 fixed  = native 0-240px    -> flex 0 0 240px  (left corner; shape-1-b-a-a)
       2 STRETCH= native 240-860px  -> flex 1          (shape-1-b-a-b; a plain strip)
       3 fixed  = native 860-960px  -> flex 0 0 100px  (middle notch; shape-1-b-b)
       4 STRETCH= native 960-1580px -> flex 1          (shape-1-a-b; a plain strip)
       5 fixed  = native 1580-1705px-> flex 0 0 125px  (right tab; shape-1-a-a)
     Each polygon is relative to ITS OWN slice box, so the 3 fixed pieces never distort;
     the 2 stretch zones share the extra width equally (both flex 1). */
  .hdr-flag > i:nth-child(1) { display: block; flex: 0 0 163px;
    -webkit-clip-path: polygon(100% 56.74%, 91.67% 56.74%, 91.67% 78.01%, 75% 99.29%, 0% 99.29%, 0% 0%, 100% 0%);
    clip-path: polygon(100% 56.74%, 91.67% 56.74%, 91.67% 78.01%, 75% 99.29%, 0% 99.29%, 0% 0%, 100% 0%); }
  .hdr-flag > i:nth-child(2) { display: block; flex: 1 1 0; margin-inline: -1px;
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 56.74%, 0% 56.74%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 56.74%, 0% 56.74%); }
  .hdr-flag > i:nth-child(3) { display: block; flex: 0 0 68px;
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 14.18%, 80% 14.18%, 20% 56.74%, 0% 56.74%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 14.18%, 80% 14.18%, 20% 56.74%, 0% 56.74%); }
  .hdr-flag > i:nth-child(4) { display: block; flex: 1 1 0; margin-inline: -1px;
    -webkit-clip-path: polygon(100% 14.18%, 0% 14.18%, 0% 0%, 100% 0%);
    clip-path: polygon(100% 14.18%, 0% 14.18%, 0% 0%, 100% 0%); }
  .hdr-flag > i:nth-child(5) { display: block; flex: 0 0 85px;
    -webkit-clip-path: polygon(0% 0%, 96% 0%, 64% 28.37%, 32% 28.37%, 16% 14.18%, 0% 14.18%);
    clip-path: polygon(0% 0%, 96% 0%, 64% 28.37%, 32% 28.37%, 16% 14.18%, 0% 14.18%); }
  .hdr-flag { background: none; }
  /* taller bar; pin content up into the brand-block band (the big logo drops into the spine) */
  #header .header-inner { height: 86px; align-items: flex-start; padding-top: 9px; padding-left: clamp(22px, 2.4vw, 48px); }
  #header.scrolled .header-inner { height: 70px; }
  .brand-group { align-self: flex-start; align-items: flex-start; }
  .site-header .brand { align-items: flex-start; }
  .site-header .brand-name, .site-header .brand-tag { margin-top: 6px; }
  .site-header .brand-name { font-size: .92rem; }
  .nav-desktop { margin-left: auto; align-self: flex-start; margin-top: 13px; gap: clamp(1.1rem, 1.6vw, 2.2rem); }
  .nav-desktop .navlink { font-size: clamp(.72rem, .9vw, .82rem); }
  .header-actions { margin-left: clamp(.9rem, 1.4vw, 1.8rem); align-self: flex-start; margin-top: 7px; }
}

/* DESKTOP NAV — sits in the flag's rightmost stretch zone (slice 4) and spans its width,
   scaling down as the window narrows; below 1200px it collapses to the hamburger.
   Slice-4 band on the full-width header: left = 50% + 73px (slice1 163 + slice3 68,
   re-centered), right = 85px (just inside the right tab). */
@media (min-width: 1200px) {
  .menu-toggle { display: none; }
  .nav-desktop {
    display: flex; position: absolute; margin: 0; top: 50%; transform: translateY(-50%);
    left: calc(50% + 73px); right: 85px;
    align-items: center; justify-content: center; gap: clamp(.9rem, 1.7vw, 2.4rem);
  }
  .nav-desktop .navlink { font-size: clamp(.62rem, .82vw, .82rem); white-space: nowrap; }
  .header-actions { align-self: center; margin-top: 0; }
}

/* mobile nav */
.mobile-nav { position: fixed; inset: 0; z-index: 70; background: linear-gradient(160deg, var(--ink-600), var(--ink-900));
  display: flex; align-items: center; padding: 0 var(--pad); clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease-out); pointer-events: none; }
.mobile-nav.open { clip-path: inset(0 0 0 0); pointer-events: auto; }
.mobile-nav nav { display: flex; flex-direction: column; gap: .8rem; width: 100%; }
.m-link { font-family: var(--font-display); font-weight: 500; font-size: 2rem; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); padding: .35em 0; border-bottom: 1px solid var(--line-soft); opacity: 0; transform: translateX(-20px);
  transition: color .3s, opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
.mobile-nav.open .m-link { opacity: 1; transform: none; }
.m-link:hover { color: var(--text); }
.m-cta { color: var(--gold); border-bottom: none; margin-top: .6rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center;
  padding-top: 120px; padding-bottom: 90px; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-bg::after { box-shadow: none; } /* let scrim handle darkening */
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, var(--ink) 8%, rgba(6,6,7,.55) 45%, transparent 78%),
    linear-gradient(0deg, var(--ink) 2%, transparent 35%); }
/* let the hero render show clean — drop the gold overlay wash + the top light-leak */
.leak { display: none; }
.hero-bg.rim::before { display: none; }
.hero-bg.rim::after { box-shadow: inset 0 -40px 70px -34px rgba(0,0,0,.92); }
.hero-bg.rim img { filter: brightness(.9) contrast(1.05) saturate(1.02); }
.hero-inner { position: relative; z-index: 2; }
/* keep hero content inside the framing rect (.hero-td, inset:10%) with breathing room — not flush to its edge */
@media (min-width: 761px) {
  .hero .hero-inner { max-width: none; padding-inline: calc(10% + clamp(24px, 3vw, 64px)); }
}
.hero-copy { max-width: 680px; text-align: left; }
/* hero eyebrow — an amber timedoor box (td-door + td-corners) that grows open to its right */
.hero-eyebrow { display: inline-flex; align-items: center; margin: 0 0 1.6rem;
  padding: .5rem 1.2rem; --td-bk-len: 11px; }
.he-text { font-family: var(--font-mono); font-size: clamp(.66rem, .85vw, .76rem); letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold-300); white-space: nowrap; }
/* headline accent — soft amber filament fading into the dark under HARDWARE */
.hero-accent { display: flex; align-items: center; gap: 12px; margin: .4rem 0 1.4rem; }
.hero-accent i { display: block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold-100); box-shadow: 0 0 9px 1px var(--glow-hot); }
.hero-accent b { display: block; width: 140px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-700) 65%, transparent);
  box-shadow: 0 0 10px -2px var(--gold-glow); }

.eyebrow, .section-eyebrow { display: inline-flex; align-items: center; gap: .7em;
  font-family: var(--font-display); font-weight: 500; font-size: var(--fs-eyebrow); letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.eyebrow-tick { width: 26px; height: 1px; background: var(--gold); display: inline-block; }
.section-eyebrow .ix { color: var(--gold-300); letter-spacing: .12em; }

.hero-title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.5rem, 5.6vw, 4.3rem); line-height: 1; letter-spacing: -.02em; margin: .35em 0 .5em; }
.hero-title .clip { display: block; overflow: hidden; padding-bottom: .04em; }
.hero-title .clip > span { display: block; }
.hero-title .dim { color: var(--faint); }

.hero-sub { color: var(--text); font-size: var(--fs-lead); max-width: 38ch; margin: 0 0 2rem; opacity: .92; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .7rem; justify-content: flex-start; margin-top: 1.6rem; }
/* three compact hero CTAs — neutral at rest, fill yellow + lift on hover (no magnetic wiggle) */
.hero-cta .btn { display: inline-flex; align-items: center; gap: .6em;
  padding: 1.15em 1.7em; font-size: .75rem; font-weight: 500; letter-spacing: .08em;
  border: 1px solid var(--line-gold); color: var(--gold-300);
  background: linear-gradient(158deg, rgba(22,17,9,.36), rgba(6,6,8,.46) 72%);
  box-shadow: inset 0 0 24px -16px var(--glow-mid);
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease-out), box-shadow .35s var(--ease); }
/* hover = the timedoor OPENS — a gold portal bloom + glowing edge, not a heavy fill (MCU/TVA feel) */
.hero-cta .btn::before { content:""; position:absolute; inset:0; z-index:-1; opacity:0;
  background: radial-gradient(130% 150% at 50% 125%, rgba(231,186,98,.26), transparent 72%);
  transition: opacity .4s var(--ease); }
.hero-cta .btn:hover { color: var(--gold-100); border-color: var(--gold-300); transform: translateY(-3px);
  box-shadow: inset 0 0 30px -12px var(--glow-mid), 0 0 28px -3px var(--glow-hot); }
.hero-cta .btn:hover::before { opacity: 1; }
.hero-cta .btn .td-c { position: absolute; width: 13px; height: 13px; border: var(--td-bk-w) solid var(--td-line);
  opacity: var(--td-rest); pointer-events: none; z-index: 2; box-shadow: 0 0 5px -1px var(--td-glow);
  transition: opacity .25s var(--ease), transform .3s var(--ease-snap), border-color .25s var(--ease), box-shadow .3s var(--ease); }
.hero-cta .btn .td-c:nth-of-type(1){ top: 5px; left: 5px; border-right: 0; border-bottom: 0; }
.hero-cta .btn .td-c:nth-of-type(2){ top: 5px; right: 5px; border-left: 0; border-bottom: 0; }
.hero-cta .btn .td-c:nth-of-type(3){ bottom: 5px; left: 5px; border-right: 0; border-top: 0; }
.hero-cta .btn .td-c:nth-of-type(4){ bottom: 5px; right: 5px; border-left: 0; border-top: 0; }
.hero-cta .btn:hover .td-c { border-color: var(--td-line-hot); opacity: 1; transform: scale(1.14); box-shadow: 0 0 9px var(--td-glow); }
/* small inline glyph leading each CTA — inherits the button's gold via currentColor */
.hero-cta .btn .btn-ic { flex: 0 0 auto; width: 15px; height: 15px; opacity: .92;
  filter: drop-shadow(0 0 4px var(--glow-mid));
  transition: transform .3s var(--ease-snap), opacity .25s var(--ease), filter .3s var(--ease); }
.hero-cta .btn:hover .btn-ic { opacity: 1; transform: scale(1.08); filter: drop-shadow(0 0 7px var(--glow-hot)); }
/* the PRIMARY hero door (Join Us) — a warm portal already glowing open, brackets lit at rest */
.hero-cta .btn.td-primary { color: var(--gold-100); border-color: var(--gold-300);
  background: linear-gradient(158deg, rgba(231,186,98,.20), rgba(40,29,14,.5) 75%);
  box-shadow: inset 0 0 30px -12px var(--glow-mid), 0 0 22px -6px var(--glow-hot); }
.hero-cta .btn.td-primary .td-c { opacity: 1; border-color: var(--td-line-hot); box-shadow: 0 0 7px var(--td-glow); }
.hero-cta .btn.td-primary:hover { transform: translateY(-3px);
  box-shadow: inset 0 0 34px -10px var(--glow-mid), 0 0 32px -3px var(--glow-hot); }

/* hero logo slide — big D mark with DARST / SYSTEMS set vertically beside it, gold rule + lead */
.hero-logo { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(1rem, 2vw, 1.7rem); }
.hero-lockup { display: flex; align-items: center; gap: 0; margin: 0; }
/* DARST / SYSTEMS as vertical spines (spun 180); DARST large, SYSTEMS small — each spread in JS to the mark's
   height so both fill the same length. letter-spacing here is just the pre-JS fallback. */
.lk-word { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; color: #fff;
  writing-mode: vertical-rl; transform: translateY(-2.5%) rotate(180deg); white-space: nowrap; line-height: 1; }
.lk-darst { font-size: clamp(2.5rem, 5.4vw, 4.2rem); margin-right: clamp(2px, .35vw, 5px); }
.lk-systems { font-size: clamp(1.15rem, 2.5vw, 1.95rem); }
/* pull the mark left by its ~11.7% transparent padding, then leave a small gap to SYSTEMS */
.hero-lockup .hero-logo-img { display: block; height: clamp(170px, 23vw, 300px); width: auto;
  margin-left: calc(clamp(170px, 23vw, 300px) * -0.117 + clamp(6px, 1vw, 12px)); filter: drop-shadow(0 8px 26px rgba(0,0,0,.6)); }
/* gold dot + fading rule under the lockup */
.lk-rule { position: relative; width: min(100%, 600px); height: 8px; }
.lk-rule::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--yellow); box-shadow: 0 0 9px 1px var(--glow-hot); }
.lk-rule::after { content: ""; position: absolute; left: 20px; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, var(--gold-300), var(--gold-700) 70%, transparent); }
/* yellow lead copy — mono, sentence case */
.lk-copy { font-family: var(--font-mono); color: var(--yellow); margin: 0; max-width: 60ch;
  font-size: clamp(.78rem, 1.05vw, .92rem); line-height: 1.7; letter-spacing: .02em; }

/* future scene — "The future is" gold + larger, "Hardware." white + bigger */
.hero-future { line-height: .92; }
.hero-future .hf-y { display: inline-block; color: var(--yellow); font-size: 1.06em; }
.hero-future .hf-w { display: inline-block; color: #fff; font-weight: 700; font-size: 1.5em; margin-top: .04em; }

/* hero framed as a timedoor — gold frame + corner brackets + coord/label readouts */
/* centered in the hero with a uniform 10% margin on all four sides */
.hero-td { position: absolute; inset: 10%; z-index: 4; pointer-events: none;
  border: 1px solid var(--line-gold); }
.hero-td .td-brackets i { width: 22px; height: 22px; border: var(--td-bk-w) solid var(--td-line); opacity: .9; }
.hero-td .td-brackets i:nth-child(1){ top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero-td .td-brackets i:nth-child(2){ top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.hero-td .td-brackets i:nth-child(3){ bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.hero-td .td-brackets i:nth-child(4){ bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.hero-td .td-coord { top: 10px; left: 14px; }
.hero-td .td-label { top: 13px; right: 10%; }
@media (max-width: 760px) { .hero-td { display: none; } }

/* hero scenes — grid-stacked + vertically centred; each slides up into place (timedoor) */
.hero-slides { display: grid; align-items: center; min-height: 8.4em; }
.hero-slide { grid-area: 1 / 1; opacity: 0; transform: translateY(26px); pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .6s var(--ease-out); }
.hero-slide.is-active { opacity: 1; transform: none; pointer-events: auto; }
.hero-slide .hero-title { margin-top: 0; }
/* scene 2 — explaining copy, then DISRUPT / ITERATE / DELIVER slam in one per second */
.hero-lead { font-family: var(--font-mono); font-size: clamp(.72rem, 1vw, .82rem); letter-spacing: .12em;
  text-transform: uppercase; color: var(--yellow); margin: 0 0 1.2rem; max-width: 44ch; line-height: 1.55; }
.slam-stack { display: flex; flex-direction: column; align-items: flex-start; gap: .02em; margin: 0 0 1.4rem; }
.slam-word { font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: -.035em;
  font-size: clamp(2.9rem, 7.2vw, 5.2rem); line-height: .94; transform-origin: 0 50%;
  /* brushed steel — cold metal against the warm gold UI */
  background: linear-gradient(174deg, #fdfdff 0%, #d6d7df 33%, #74757f 51%, #c2c3cd 66%, #fbfbff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0,0,0,.55)); }
.hero-slide.hero-build .slam-word { opacity: 0; }
.hero-slide.hero-build.is-active .slam-word { animation: slam-in .5s var(--ease-snap) both; animation-delay: var(--d, 0s); }
/* slams down, recoils, settles — a hard metal strike */
@keyframes slam-in {
  0%   { opacity: 0; transform: scale(1.9) translateY(-12px); filter: blur(3px) brightness(1.5) drop-shadow(0 2px 10px rgba(0,0,0,.55)); }
  44%  { opacity: 1; transform: scale(.9) translateY(3px);   filter: blur(0) brightness(2) drop-shadow(0 2px 10px rgba(0,0,0,.55)); }
  62%  { transform: scale(1.05) translateY(-2px);            filter: brightness(1.15) drop-shadow(0 2px 10px rgba(0,0,0,.55)); }
  80%  { transform: scale(.99) translateY(1px); }
  100% { opacity: 1; transform: scale(1) translateY(0);      filter: blur(0) brightness(1) drop-shadow(0 2px 10px rgba(0,0,0,.55)); }
}
@media (prefers-reduced-motion: reduce) { .hero-slide.hero-build .slam-word { opacity: 1; animation: none; } }
/* impact sparks thrown on each strike */
.hero-fx { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.hx-spark { position: absolute; width: 2px; height: 10px; border-radius: 1px; pointer-events: none;
  background: linear-gradient(#fff, #ffcf7a); box-shadow: 0 0 6px 1px var(--glow-hot);
  animation: hx-fly var(--life, 600ms) cubic-bezier(.15,.6,.25,1) forwards; }
@keyframes hx-fly {
  0%   { opacity: 1; transform: translate(0,0) rotate(var(--rot)) scaleY(1); }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scaleY(.25); }
}
.perf-2 .hero-fx { display: none; }
.hero-index li { cursor: default; }

/* RIGHT SLIDE COUNTER — hero-only scene index, built as an instrument rail that mirrors the
   left altimeter (.nav-tape) so the two gutters frame the hero. A dark backing plate keeps the
   gold rail/numerals legible over the bright yellow render; hairline rail + per-number tick +
   a glowing node + scaled gold numeral on the active slide. */
.hero-index { position: absolute; right: max(var(--pad), calc(22px + var(--safe-r))); top: 50%; transform: translateY(-50%); z-index: 2;
  display: none; flex-direction: column; gap: clamp(2.4rem, 7vh, 6.6rem); font-family: var(--font-mono); font-size: .6rem;
  color: var(--gold-300); letter-spacing: .16em; padding-right: 0; }
/* dark backing plate — sits behind the numerals so they never read yellow-on-yellow */
.hero-index::after { content:""; position:absolute; inset:-1.7rem -1.5rem -1.7rem -1.6rem; z-index:-1;
  background: linear-gradient(180deg, rgba(8,9,11,.74), rgba(8,9,11,.56));
  border: 1px solid var(--line-gold); -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
/* the rail — fades at both ends, same gold hairline as the left tape. ul has no right padding,
   so li and ul share a right edge: rail, ticks and dots all anchor at right:16px and line up. */
.hero-index::before { content:""; position:absolute; right:16px; top:-1.5rem; bottom:-1.5rem; width:1px;
  background: linear-gradient(180deg, transparent, var(--gold-500) 10%, var(--gold-300) 90%, transparent); }
/* each row sits left of the rail; main rows stack numeral over name, nested rows are a single small name */
.hero-index li { position: relative; padding-right: 26px; line-height: 1;
  display: flex; flex-direction: column; align-items: flex-end; gap: .18rem;
  transition: color .35s var(--ease); }
/* nested beats (Disrupt/Iterate/Deliver) — tighter cluster under METHOD; scales with the gap */
.hi-sub { margin-block: clamp(-2.7rem, -2.1vh, -.95rem); }
.hi-lab { font-size: .5rem; letter-spacing: .22em; color: var(--muted); opacity: .6; white-space: nowrap;
  transition: color .35s var(--ease), opacity .35s var(--ease); }
.hi-num { transform-origin: right bottom; transition: transform .35s var(--ease), text-shadow .35s var(--ease); }
/* nested beat label — smaller, dimmer, subordinate to the main rows */
.hi-slab { font-size: .46rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); opacity: .42; white-space: nowrap;
  transition: color .35s var(--ease), opacity .35s var(--ease); }
/* connector tick from each row to the rail */
.hero-index li::before { content:""; position:absolute; right:16px; bottom:0; transform: none;
  width: 7px; height: 1px; background: var(--gold-300); opacity: .45;
  transition: width .35s var(--ease), opacity .35s var(--ease), background .35s var(--ease); }
.hi-main::before { top:50%; bottom:auto; transform: translateY(-50%); }
.hi-sub::before { top:50%; bottom:auto; transform: translateY(-50%); width: 5px; }
/* a station dot ON the rail for every beat */
.hero-index li::after { content:""; position:absolute; right:16px; top:50%; transform: translate(50%, -50%);
  width: 4px; height: 4px; border-radius: 50%; background: var(--gold-500);
  transition: width .35s var(--ease), height .35s var(--ease), background .35s var(--ease), box-shadow .35s var(--ease); }
.hi-sub::after { width: 3px; height: 3px; background: var(--gold-700, var(--gold-500)); opacity: .8; }
/* active main row — gold, the numeral enlarges + glows, the name brightens */
.hero-index .hi-main.is-active { color: var(--gold-100); }
.hero-index .hi-main.is-active .hi-num { transform: scale(1.35); font-weight: 600; text-shadow: 0 0 10px var(--glow-hot); }
.hero-index .hi-main.is-active .hi-lab { color: var(--gold-300); opacity: 1; }
.hero-index .hi-main.is-active::before { width: 13px; opacity: 1; background: var(--gold-100); box-shadow: 0 0 6px var(--glow-hot); }
.hero-index .hi-main.is-active::after { width: 7px; height: 7px; background: var(--gold-100);
  box-shadow: 0 0 8px 2px var(--glow-hot), 0 0 16px 4px var(--glow-mid); }
/* active nested beat — brightens label + its rail dot */
.hero-index .hi-sub.is-beat .hi-slab { color: var(--gold-200, var(--gold-300)); opacity: 1; }
.hero-index .hi-sub.is-beat::before { width: 10px; opacity: 1; background: var(--gold-200, var(--gold-300)); }
.hero-index .hi-sub.is-beat::after { width: 5px; height: 5px; background: var(--gold-100); opacity: 1;
  box-shadow: 0 0 6px 1px var(--glow-hot); }

.scroll-cue { position: absolute; left: 50%; bottom: calc(20px + var(--safe-b)); transform: translateX(-50%); z-index: 3;
  display: grid; justify-items: center; gap: .6rem; color: var(--muted); }
.sc-label { font-family: var(--font-display); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; }
.sc-track { width: 22px; height: 36px; border: 1px solid var(--line-3); border-radius: 12px; display: grid; justify-items: center; padding-top: 7px; }
.sc-track i { width: 3px; height: 7px; background: var(--yellow); border-radius: 2px; animation: cue 1.6s var(--ease) infinite; }
@keyframes cue { 0%{transform:translateY(0);opacity:1} 70%{transform:translateY(12px);opacity:0} 100%{opacity:0} }

/* ============================================================
   SECTIONS — shared
   ============================================================ */
.section { position: relative; padding-block: var(--section-y); }
/* content sits ABOVE the ribbon (z:6); section backgrounds stay below it, so the
   gold thread weaves behind cards/copy/buttons but in front of background imagery */
.section > .wrap, .hero > .wrap, .showcase > .wrap { position: relative; z-index: 7; }
.section::before { content:""; position:absolute; inset:0 0 auto 0; height:1px; opacity:0;
  background: linear-gradient(90deg, transparent, var(--line-gold) 30%, var(--gold-300) 50%, var(--line-gold) 70%, transparent);
  transition: opacity .8s var(--ease); }
.section.lit::before { opacity: .5; }
/* numbered section tags — quiet, tight, tucked to the top edge (minimal push) */
.section-eyebrow { margin-bottom: .35rem; font-size: .56rem; letter-spacing: .22em; color: var(--faint); font-weight: 500; }
.section-eyebrow .ix { color: var(--gold-500); }
.row-h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: -.01em;
  font-size: var(--fs-h2); line-height: 1.02; margin-top: .1rem; }

/* ---- 01 Stats ---- */
.stats { background: linear-gradient(180deg, var(--ink), var(--ink-700)); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { background: linear-gradient(180deg, rgba(255,255,255,.02), transparent 50%), var(--ink-600); border: 1px solid var(--line-2); padding: 2rem 1.4rem; display: grid; gap: .6rem; }
.stat-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.6rem,9vw,4.2rem); line-height: 1; color: var(--gold-300); }
.stat-label { color: var(--muted); font-size: .86rem; max-width: 22ch; }
.stat-foot { margin-top: 2rem; color: var(--faint); font-family: var(--font-display); letter-spacing: .04em; text-transform: uppercase; font-size: .8rem; }

/* ---- 02 Capabilities ---- */
.capabilities { background: var(--ink-700); }
.row-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; flex-wrap: wrap; }
.row-head .section-eyebrow { margin-bottom: 0; }
/* short lead line beneath a section headline (e.g. the creed intro) */
.row-lead { margin-top: 1rem; max-width: 56ch; color: var(--muted); font-size: var(--fs-lead); line-height: 1.5; }
.value-grid { display: grid; gap: 14px; }
/* same as #industries: the ribbon drops straight DOWN onto the grid-centre split
   (RIBBON_X centre channel) — lift the copy + open a vertical standoff above the cards */
.capabilities { padding-top: clamp(22px, 3.2vw, 44px); }
.capabilities .value-grid { margin-top: clamp(3.4rem, 5.8vw, 4.6rem); }
/* capability cards styled as time doors — gold frame, inset bloom, warm core */
.value { position: relative; padding: 2rem 1.6rem 2.4rem; overflow: hidden; }
.value.panel { background: linear-gradient(157deg, rgba(40,29,14,.5), rgba(10,9,11,.5) 72%);
  border: 1px solid var(--line-gold);
  box-shadow: inset 0 0 0 1px rgba(231,186,98,.06), inset 0 0 34px -12px var(--glow-mid), 0 22px 48px -28px rgba(0,0,0,.7); }
.value.panel::before { content: ""; position: absolute; left: 2.6rem; top: 2.9rem; width: 92px; height: 92px;
  transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
  background: radial-gradient(circle, var(--glow-mid), transparent 68%); opacity: .7; }
/* no transform on hover — the cards are ribbon/spark anchors; moving them shifts the rails */
.value.panel:hover { border-color: var(--gold-300);
  box-shadow: inset 0 0 0 1px rgba(231,186,98,.22), inset 0 0 48px -8px var(--glow-mid), 0 26px 60px -26px rgba(0,0,0,.8); }
.value > .cap-id, .value > .value-icon, .value > .measure-rule, .value > h3, .value > p, .value > .value-arr { position: relative; z-index: 2; }
.value-icon { display: block; width: 36px; height: 36px; margin-bottom: 1.3rem; color: var(--gold-300);
  filter: drop-shadow(0 0 6px var(--glow-hot)); }
.value h3 { font-family: var(--font-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; font-size: var(--fs-h3); margin-bottom: .7rem; color: #fff; }
.value p { color: var(--muted); font-size: .9rem; }
.value-arr { margin-top: 1.2rem; display: inline-block; color: var(--gold-300); opacity: .55; transition: transform .4s var(--ease), opacity .4s; }
.value:hover .value-arr { opacity: 1; transform: translateX(5px); }
.value:hover .value-icon { filter: drop-shadow(0 0 8px var(--glow-hot)); }

/* ---- 03 Showcase ---- */
.showcase { position: relative; min-height: 88svh; display: flex; align-items: flex-end; overflow: hidden; padding-block: clamp(60px,9vw,110px); }
.showcase-bg { position: absolute; inset: 0; z-index: 0; }
/* rim-light hotspot sits back-right, so bias subject right to match */
.showcase-bg img { width: 100%; height: 110%; object-fit: cover; object-position: 65% center; }
.showcase-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(0deg, #0b0b0b 9%, rgba(11,11,11,.55) 40%, transparent 75%), linear-gradient(90deg, rgba(11,11,11,.7), transparent 60%); }
.showcase .wrap { position: relative; z-index: 2; }
.showcase-inner { max-width: 620px; }
.showcase-h2 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: -.01em;
  font-size: clamp(2.6rem,8vw,5rem); line-height: .98; margin: 1rem 0; }
.showcase-sub { color: var(--text); opacity: .9; font-size: var(--fs-lead); max-width: 46ch; margin-bottom: 1.4rem; }
.spec-rule { font-family: var(--font-display); letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; color: var(--gold-300); margin-bottom: 1.8rem; }
.spec-rule i { color: var(--faint); margin: 0 .4em; font-style: normal; }

/* ---- 04 Deep dive ---- */
.deep { background: #0b0b0b; }
.deep-h2 { margin-bottom: 3rem; }
.deep-rows { display: grid; gap: 0; margin-top: clamp(2.4rem, 4.4vw, 3.4rem); }
/* each subsection is a FULL-BLEED band: the bold portrait is the master-div BACKGROUND (cover,
   anchored per facing, edge-to-edge — no wrap, no padding). It sits BELOW the welding-ribbon (z6);
   the content rides in .deep-inner, lifted ABOVE the ribbon (z7), aligned to the page width. */
.deep-row { position: relative;
  background-image: var(--deep-bg); background-repeat: no-repeat; background-size: auto 100%; }
.deep-row[data-side="right"] { background-position: right center; }
.deep-row[data-side="left"]  { background-position: left center; }
/* ink wash over the dark side — travels WITH the bg, below the ribbon */
.deep-row::before { content:""; position:absolute; inset:0; z-index:1; pointer-events:none; }
.deep-row[data-side="right"]::before { background: linear-gradient(90deg, #0b0b0b 14%, rgba(11,11,11,.5) 46%, transparent 82%); }
.deep-row[data-side="left"]::before  { background: linear-gradient(270deg, #0b0b0b 14%, rgba(11,11,11,.5) 46%, transparent 82%); }
/* content aligned to the page width and lifted above the ribbon */
.deep-inner { position: relative; z-index: 7; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--pad);
  min-height: clamp(440px, 50vw, 640px); display: grid; align-items: center; column-gap: clamp(1.6rem, 4vw, 4rem); }
.deep-row[data-side="right"] .deep-inner { grid-template-columns: minmax(0, 23rem) minmax(0, 1fr); }
.deep-row[data-side="left"]  .deep-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 23rem); }
.deep-row[data-side="right"] .deep-media { grid-column: 1; }
.deep-row[data-side="right"] .deep-copy  { grid-column: 2; justify-self: start; }
.deep-row[data-side="left"]  .deep-copy  { grid-column: 1; justify-self: end; text-align: right; }
.deep-row[data-side="left"]  .deep-media { grid-column: 2; }
/* pin BOTH cells to the single grid row — otherwise the left-side rows (where .deep-media precedes
   .deep-copy in DOM but lives in col 2) sparse-pack the copy into a 2nd implicit row, which breaks
   the equal-halves split and the shared vertical midline the ribbon crosses. */
.deep-row .deep-media, .deep-row .deep-copy { grid-row: 1; }
/* the gold HUD copy-box — restored .deep-media frame (ribbon anchor + ignite FX), holds text */
.deep-row .deep-media { aspect-ratio: auto; align-self: stretch;
  margin-block: clamp(1.6rem, 3.4vw, 3.4rem); display: flex; align-items: center; }
.deep-media-copy { position: relative; z-index: 4; padding: clamp(1.6rem, 2.6vw, 2.8rem); }
.dmc-title { font-family: var(--font-mono); color: #fff; font-size: clamp(.95rem, 1.3vw, 1.15rem); letter-spacing: .01em; margin: 0 0 1.1rem; }
.dmc-body { font-family: var(--font-mono); color: var(--gold-300); font-size: clamp(.72rem, .92vw, .84rem); line-height: 1.7; opacity: .82; margin: 0; }
.deep-copy { max-width: 34ch; }
/* mobile: portrait as a scrimmed full backdrop; box + headline stack over it */
@media (max-width: 760px) {
  .deep-inner { display: flex; flex-direction: column; gap: 1.6rem; min-height: 0; padding-block: clamp(2rem,7vw,3rem); }
  .deep-row { background-position: center; }
  .deep-row::after { content:""; position:absolute; inset:0; background: rgba(6,6,7,.6); z-index:1; }
  .deep-row .deep-media { margin: 0; width: 100%; align-self: auto; min-height: 260px; }
  .deep-copy, .deep-row[data-side="left"] .deep-copy { max-width: none; text-align: left; justify-self: start; }
  .deep-copy { grid-template-rows: none; align-self: auto; gap: .6rem; }
  .deep-title { padding-bottom: 0; }
  .deep-copy > p { padding-top: 0; }
}
/* split the white copy around the band's vertical midline: title (number + headline) bottom-anchored
   in the upper half, body top-anchored in the lower half — the welding ribbon (anchored at the
   gold-box centre = midline) threads cleanly through the gap between them. */
.deep-copy { display: grid; grid-template-rows: 1fr 1fr; align-self: stretch; }
.deep-title { align-self: end; display: grid; gap: .4rem; padding-bottom: clamp(.9rem, 2vw, 1.8rem); }
.deep-ix { font-family: var(--font-display); color: var(--gold-300); letter-spacing: .12em; font-size: .8rem; }
.deep-copy h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .02em; font-size: clamp(1.4rem,3.4vw,2rem); }
.deep-copy > p { color: var(--muted); max-width: 46ch; margin: 0; align-self: start; padding-top: clamp(.9rem, 2vw, 1.8rem); }

/* ---- 05 Process ---- */
.process { background: linear-gradient(180deg, var(--ink), var(--ink-700)); }
.timeline { position: relative; display: grid; gap: 2.2rem; margin-top: 2.6rem; padding-left: 28px; }
/* the phase timeline just fades in — no slide-up / scale / blur (per request) */
.timeline[data-reveal] { transform: none; filter: none; }
.tl-track { position: absolute; left: 4px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); overflow: hidden; }
.tl-track i { position: absolute; inset: 0; transform: scaleY(0); transform-origin: 50% 0; background: linear-gradient(180deg, var(--gold-300), var(--gold-700)); transition: transform 1.2s var(--ease) .12s; }
.timeline.in .tl-track i { transform: scaleY(1); }
.tl-node { position: relative; display: grid; gap: .4rem; }
.tl-dot { position: absolute; left: -28px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--ink-500); border: 1px solid var(--line-3); transition: background .4s var(--ease) calc(var(--n) * .12s), border-color .4s var(--ease) calc(var(--n) * .12s), box-shadow .4s var(--ease) calc(var(--n) * .12s); }
.timeline.in .tl-dot { background: var(--gold-300); border-color: var(--gold-300); box-shadow: 0 0 12px var(--glow-hot); }
/* the spark strikes a phase dot → flare the dot + flash the connecting track */
@media (prefers-reduced-motion: no-preference) {
  .tl-track.lit { animation: tl-track-flash .7s var(--ease-out); }
  .tl-track.lit i { animation: tl-i-flash .7s var(--ease-out); }
}
@keyframes tl-track-flash { 0% { box-shadow: 0 0 16px 2px var(--glow-hot); } 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); } }
@keyframes tl-i-flash { 0% { filter: brightness(2.4) drop-shadow(0 0 9px var(--glow-hot)); } 100% { filter: brightness(1); } }
@media (prefers-reduced-motion: no-preference) { .tl-dot.zap { animation: tl-dot-flare .6s var(--ease-out); } }
@keyframes tl-dot-flare {
  0%   { background: #fff; transform: scale(1.8); box-shadow: 0 0 10px 3px #fff, 0 0 32px 9px var(--glow-hot), 0 0 60px 18px var(--glow-mid); }
  100% { background: var(--gold-300); transform: scale(1); box-shadow: 0 0 12px var(--glow-hot); }
}

/* deep-dive timedoors: zero-size centre anchor (spark zigzags through these) + glow on hit */
.deep-anchor { position: absolute; top: 50%; left: 50%; width: 0; height: 0; z-index: 0; pointer-events: none; }
/* end waypoint: same 9px height as a .tl-dot so buildRibbon centres it identically —
   keeps the line dead-level through the last dot instead of stepping up before the drop */
.tl-end { position: absolute; top: 0; right: 0; width: 0; height: 9px; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .deep-media.lit { animation: deep-flash 1.5s var(--ease-out); }
  .deep-media.lit img { animation: deep-img-flash 1.5s var(--ease-out); }
  .deep-media.lit::before { animation: deep-wash-flash 1.5s var(--ease-out); }
  .deep-media.lit .media-scan { animation: deep-scan-sweep .8s var(--ease-out); }
  .deep-media.lit .frame-brackets i { animation: deep-bracket-pop 1.2s var(--ease-out); }
}
/* shockwave ring (1st shadow expands + fades) + a hot bloom (2nd/3rd) blooming off the frame */
@keyframes deep-flash {
  0%   { box-shadow: 0 0 0 0 rgba(255,214,150,.95), 0 0 70px 10px var(--glow-hot), 0 0 140px 34px var(--glow-mid), inset 0 0 90px -8px var(--glow-mid); }
  10%  { box-shadow: 0 0 0 5px rgba(255,214,150,.8), 0 0 96px 18px var(--glow-hot), 0 0 160px 40px var(--glow-mid), inset 0 0 100px -4px var(--glow-mid); }
  60%  { box-shadow: 0 0 0 30px rgba(255,214,150,0), 0 0 64px 9px var(--glow-hot), 0 0 120px 22px var(--glow-mid), inset 0 0 60px -16px var(--glow-mid); }
  100% { box-shadow: 0 0 0 40px rgba(0,0,0,0), 0 0 0 0 rgba(0,0,0,0), 0 0 0 0 rgba(0,0,0,0), inset 0 0 0 0 rgba(0,0,0,0); }
}
/* image punches brighter + zooms in a touch, then settles back to the graded base.
   sepia() keeps the punch GOLD — over-brightening amber alone clips toward yellow-green */
@keyframes deep-img-flash {
  0%   { filter: brightness(1.5) contrast(1.12) saturate(1.18) sepia(.42); transform: scale(1.07); }
  16%  { filter: brightness(1.34) contrast(1.1) saturate(1.06) sepia(.32); transform: scale(1.055); }
  100% { filter: brightness(.86) contrast(1.16) saturate(.92) sepia(.18); transform: scale(1); }
}
@keyframes deep-wash-flash { 0% { opacity: 1; filter: brightness(1.4) sepia(.3) saturate(1.1); } 30% { opacity: 1; filter: brightness(1.22) sepia(.2); } 100% { opacity: .9; filter: brightness(1); } }
@keyframes deep-scan-sweep { 0% { top: -4%; opacity: 0; height: 5px; } 12% { opacity: 1; } 100% { top: 103%; opacity: 0; height: 5px; } }
@keyframes deep-bracket-pop {
  0%   { opacity: 1; transform: scale(1.6); border-color: #fff; box-shadow: 0 0 18px var(--glow-hot); }
  45%  { opacity: 1; transform: scale(1); box-shadow: 0 0 7px var(--glow-hot); }
  100% { opacity: .85; transform: scale(1); border-color: var(--gold-300); box-shadow: none; }
}
.tl-ix { font-family: var(--font-display); color: var(--gold-300); letter-spacing: .12em; font-size: .72rem; }
.tl-node h3 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: 1.15rem; }
.tl-node p { color: var(--muted); font-size: .9rem; max-width: 40ch; }
.process-foot { margin-top: 2.6rem; color: var(--text); opacity: .8; font-size: var(--fs-lead); max-width: 50ch; }

/* ---- 06 Prototypes ---- */
.prototypes { background: var(--ink-700); }
.sticky-head { position: relative; }
.row-link { font-family: var(--font-display); font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.row-link:hover { color: var(--gold); }
.row-link:hover .arr { transform: translateX(5px); }
.proto-grid { display: grid; gap: 18px; }
/* prototype cards as time doors — gold frame, inset bloom, white title */
.proto { position: relative; padding: 0 0 1.6rem; overflow: hidden; cursor: pointer; transform-style: preserve-3d; }
.proto.panel { background: linear-gradient(157deg, rgba(40,29,14,.4), rgba(10,9,11,.55) 72%);
  border: 1px solid var(--line-gold);
  box-shadow: inset 0 0 0 1px rgba(231,186,98,.06), inset 0 0 40px -14px var(--glow-mid), 0 22px 48px -28px rgba(0,0,0,.7); }
.proto.panel:hover { border-color: var(--gold-300);
  box-shadow: inset 0 0 0 1px rgba(231,186,98,.22), inset 0 0 52px -10px var(--glow-mid), 0 26px 60px -26px rgba(0,0,0,.8); }
.proto h3 { color: #fff; }
.proto-ix { position: absolute; top: 14px; left: 14px; z-index: 5; font-family: var(--font-display); font-size: .72rem; letter-spacing: .12em; color: var(--gold-300);
  background: rgba(6,6,7,.55); backdrop-filter: blur(4px); padding: .3em .6em; transition: transform .4s var(--ease); }
.proto:hover .proto-ix { transform: scale(1.1); }
.proto-art { aspect-ratio: 1200/900; margin-bottom: 1.3rem; background: #13110d; }
.proto-art img { filter: grayscale(.35) brightness(.82) contrast(1.12); }
.proto:hover .proto-art img { filter: grayscale(0) brightness(1) contrast(1.1); transform: scale(1.06); }
.proto-brackets i { position: absolute; width: 16px; height: 16px; border: var(--td-bk-w) solid var(--td-line); z-index: 4; opacity: 0; transition: opacity .4s var(--ease), inset .5s var(--ease); }
.proto-brackets i:nth-child(1){ top: 16px; left: 16px; border-right: 0; border-bottom: 0; }
.proto-brackets i:nth-child(2){ top: 16px; right: 16px; border-left: 0; border-bottom: 0; }
.proto-brackets i:nth-child(3){ bottom: 16px; left: 16px; border-right: 0; border-top: 0; }
.proto-brackets i:nth-child(4){ bottom: 16px; right: 16px; border-left: 0; border-top: 0; }
.proto:hover .proto-brackets i { opacity: .9; }
.proto-foot { margin-top: clamp(2rem, 3.4vw, 2.8rem); color: var(--gold-300); font-family: var(--font-display);
  font-weight: 600; letter-spacing: .02em; text-transform: uppercase; font-size: clamp(1.05rem, 2.4vw, 1.5rem);
  text-shadow: 0 0 16px var(--glow-mid); }
.proto h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; font-size: 1rem; margin: 0 1.4rem .5rem; }
.proto p { color: var(--muted); font-size: .88rem; margin: 0 1.4rem; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1rem 1.4rem 0; }
.chips b { font-family: var(--font-display); font-weight: 500; font-size: .62rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-300); border: 1px solid var(--line-gold); padding: .35em .7em; opacity: 0; transform: translateY(6px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.proto:hover .chips b { opacity: 1; transform: none; }
@media (max-width: 600px) { .proto-brackets i { width: 12px; height: 12px; } .proto-brackets i:nth-child(1),.proto-brackets i:nth-child(2){top:10px} .proto-brackets i:nth-child(3),.proto-brackets i:nth-child(4){bottom:10px} .proto-brackets i:nth-child(1),.proto-brackets i:nth-child(3){left:10px} .proto-brackets i:nth-child(2),.proto-brackets i:nth-child(4){right:10px} }

/* ---- 07 Who ---- */
.who { background: var(--ink); }
.who-grid { display: grid; gap: 40px; align-items: center; }
.who-title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: var(--fs-h2); line-height: 1.02; margin: 1rem 0 1.4rem; }
.who-title span { display: block; }
.who-lead { color: var(--muted); max-width: 46ch; margin-bottom: 1.6rem; }
.who-note { color: var(--muted); max-width: 48ch; margin: 0 0 1.8rem; font-size: .96rem; line-height: 1.55; }
.who-note { border-left: 2px solid var(--line-gold); padding-left: 1.1rem; }
.who-list { display: grid; gap: .85rem; margin-bottom: 2rem; }
.who-list li { display: flex; align-items: center; gap: .8em; color: var(--text); font-weight: 500; }
.who-list .arr { color: var(--gold); }
.who-visual { order: -1; }
.media-frame { position: relative; aspect-ratio: 640/720; background: #0c0d0f; }
.media-frame.tall { aspect-ratio: 1280/1440; }
.bp-tag { position: absolute; left: 14px; bottom: 12px; z-index: 4; font-family: var(--font-display); font-size: .7rem; letter-spacing: .2em; color: var(--gold-300); text-transform: uppercase; }

/* ---- 08 Testimonial ---- */
.testimonial { position: relative; overflow: hidden; background: var(--ink-700); }
.testimonial-bg { position: absolute; inset: 0 0 0 auto; width: 82%; z-index: 0; opacity: .45; }
@media (min-width: 880px) { .testimonial-bg { width: 60%; } }
.testimonial-bg img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-inner { position: relative; z-index: 2; max-width: 50ch; }
.quote { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.6rem,4.4vw,2.6rem); line-height: 1.2; margin: 1.2rem 0; }
.quote-by { color: var(--gold-300); font-family: var(--font-display); letter-spacing: .08em; text-transform: uppercase; font-size: .82rem; }
.quote-sub { color: var(--muted); margin-top: 1rem; }

/* ---- 09 Industries ---- */
.industries { background: var(--ink); }
/* the primary ribbon drops straight DOWN onto the grid-centre split point (data-rx=50);
   lift the copy and open a vertical standoff above the grid so the impact reads as an
   arrival from above, not a slide-in along the top */
.industries { padding-top: clamp(22px, 3.2vw, 44px); }
.industry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: clamp(3.4rem, 5.8vw, 4.6rem); }
.industry { position: relative; display: grid; gap: .5rem; }
.industry-art { aspect-ratio: 4/5; }
.industry-art img { filter: grayscale(.4) brightness(.8) contrast(1.1); }
.industry:hover .industry-art img { filter: grayscale(0) brightness(1); transform: scale(1.05); }
.industry-name { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; font-size: .92rem; margin-top: .4rem;
  position: relative; display: inline-block; }
.industry-name::after { content:""; position:absolute; left:0; bottom:-3px; height:1px; width:100%; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.industry:hover .industry-name::after { transform: scaleX(1); }
.industry-desc { color: var(--muted); font-size: .82rem; }

/* ---- CTA ---- */
/* ── CTA — the finale: the spark docks here and IGNITES the launch ──────── */
.cta-band { position: relative; overflow: hidden; }
#cta .sec-corner { display: none; }        /* no corner brackets competing with the dock */
/* kill the rim FRAME on the CTA bg — its 1px border read as corner brackets and the linear
   wash lit the top-right corner; keep only a soft cornerless radial glow + bottom shade */
#cta .cta-bg::after { box-shadow: inset 0 -40px 60px -30px rgba(0,0,0,.9); }
#cta .cta-bg::before { background: radial-gradient(72% 88% at 80% 52%, rgba(231,186,98,.30), transparent 72%); }
.cta-bg { position: absolute; inset: 0; z-index: 0; }
.cta-bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::after { content:""; position:absolute; inset:0; z-index:1; pointer-events:none;
  background: linear-gradient(90deg, var(--ink) 10%, rgba(6,6,7,.34) 52%, transparent 82%); }
/* warm launch horizon rising from the base — brightens on ignite */
.cta-horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 62%; z-index: 1; pointer-events: none;
  background: radial-gradient(135% 100% at 50% 150%, rgba(231,186,98,.40), rgba(201,146,57,.12) 42%, transparent 72%);
  opacity: .44; transition: opacity 1.1s var(--ease); }
/* charged energy bloom behind the headline (additive) */
.cta-glow { position: absolute; left: -6%; top: 50%; width: 64%; height: 130%; z-index: 1; pointer-events: none;
  transform: translateY(-50%); mix-blend-mode: screen;
  background: radial-gradient(48% 50% at 34% 50%, rgba(231,186,98,.18), transparent 66%);
  opacity: .42; transition: opacity 1.1s var(--ease); }
/* the spark docking is the payoff — the whole band brightens/ignites on arrival */
.cta-band.docked .cta-horizon { opacity: .85; }
.cta-band.docked .cta-glow { opacity: .9; }
.cta-band.docked .cta-title { text-shadow: 0 0 44px rgba(231,186,98,.34); }
@media (prefers-reduced-motion: no-preference) {
  .cta-horizon { animation: cta-horizon-breathe 6.5s var(--ease) infinite; }
  .cta-glow { animation: cta-glow-breathe 7.5s var(--ease) infinite; }
}
@keyframes cta-horizon-breathe { 0%,100% { background-position: 50% 0; filter: brightness(1); } 50% { filter: brightness(1.18); } }
@keyframes cta-glow-breathe { 0%,100% { transform: translateY(-50%) scale(1); } 50% { transform: translateY(-50%) scale(1.07); } }
.cta-inner { position: relative; z-index: 2; display: grid; gap: 28px; align-items: center; }
/* SOLIDIFY: the global reveal uses scale(.99); a fractional scale makes the decrypt box-lock
   (getBoundingClientRect) read a sub-pixel size, so the big decrypting headline snaps when it
   settles and shoves the copy below it. Rise + blur only here → the box-lock is exact, no shift. */
#cta [data-reveal] { transform: translate3d(0, 22px, 0); }
#cta [data-reveal].in { transform: none; }
.cta-title { font-family: var(--font-display); font-weight: 700; text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 4.4rem); line-height: .98; letter-spacing: -.012em; margin: .55rem 0 1.1rem;
  text-shadow: 0 0 24px rgba(231,186,98,.16); transition: text-shadow 1.1s var(--ease); }
.cta-sub { color: var(--text); opacity: .92; max-width: 46ch; font-size: var(--fs-lead); line-height: 1.5; }
/* credibility row — quiet, instrument-style proof points under the pitch */
.cta-meta { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 1.4rem; font-family: var(--font-mono);
  font-size: .64rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.cta-meta span { display: inline-flex; align-items: baseline; gap: .45em; }
.cta-meta b { color: var(--gold-300); font-weight: 500; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
/* inline brief form — embedded directly in the "Bring us the problem" band */
/* ── inline brief form, dressed in the time-door decorative spirit ───────── */
.cta-form-wrap { position: relative; }
.cta-door { position: relative; padding: 2.7rem clamp(1.2rem, 1.8vw, 1.6rem) 2.1rem;
  background: linear-gradient(158deg, rgba(22,17,9,.42), rgba(6,6,8,.52) 72%);
  border: 1px solid var(--line-gold); box-shadow: 0 34px 80px -38px rgba(0,0,0,.82); }
/* the form sits above the decorative grid/glow/bracket layers */
.cta-form { position: relative; z-index: 2; gap: 1rem; }
.cta-door .cp-form label { min-width: 0; }
.cta-door .cp-form input, .cta-door .cp-form textarea { width: 100%; min-width: 0; box-sizing: border-box; }
/* the door's coord chip reads as the panel title; status label nudged to clear the bracket */
.cta-door .td-coord { letter-spacing: .2em; text-transform: uppercase; }
.cta-door .td-label { top: 15px; }

/* full-width segmented intent toggle — Commission / License */
.cta-intent { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); margin-bottom: .25rem; }
.cta-intent .ci-opt { display: block; cursor: pointer; margin: 0; }
.cta-intent .ci-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.cta-intent .ci-opt span { display: flex; align-items: center; justify-content: center; padding: .72em .5em;
  font-family: var(--font-mono); font-size: .6rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--faint); transition: color .25s var(--ease), background .25s var(--ease); }
.cta-intent .ci-opt + .ci-opt span { border-left: 1px solid var(--line-2); }
.cta-intent .ci-opt input:checked + span { color: var(--ink-900); background: var(--gold); font-weight: 600;
  box-shadow: inset 0 0 18px -4px var(--glow-hot); }
.cta-intent .ci-opt input:focus-visible + span { outline: 2px solid var(--gold-300); outline-offset: -2px; }
.cta-form .cp-msg { margin-top: -.1rem; }
/* primary CTA: a steady pulsing beacon glow (replaces the magnetic wiggle) */
.cta-primary { box-shadow: 0 0 0 0 rgba(233,178,30,.5); }
@media (prefers-reduced-motion: no-preference) { .cta-primary { animation: cta-pulse 2.6s var(--ease) infinite; } }
.cta-primary:hover { animation-play-state: paused; }
@keyframes cta-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(233,178,30,.45), 0 0 16px 0 rgba(233,178,30,.25); }
  55%  { box-shadow: 0 0 0 7px rgba(233,178,30,0), 0 0 30px 5px rgba(233,178,30,.45); }
  100% { box-shadow: 0 0 0 0 rgba(233,178,30,0), 0 0 16px 0 rgba(233,178,30,.25); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--ink); border-top: 1px solid var(--line-soft); padding-block: 60px calc(40px + var(--safe-b)); position: relative; z-index: 1; }
.footer-grid { display: grid; gap: 40px; }
.foot-brand p { color: var(--muted); font-size: .9rem; margin-top: 1rem; max-width: 34ch; }
.foot-tag { font-family: var(--font-display); text-transform: uppercase; letter-spacing: .12em; color: var(--gold) !important; font-size: .78rem; }
.foot-tag span { color: var(--muted); }
.foot-col h4 { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; color: var(--faint); margin-bottom: 1.1rem; }
.foot-col a { display: block; color: var(--muted); font-size: .9rem; padding: .35em 0; transition: color .3s, transform .3s; }
.foot-col a:hover { color: var(--gold); transform: translateX(6px); }
.foot-connect p { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.news { display: flex; border: 1px solid var(--line); background: var(--ink-2); }
.news input { flex: 1; min-width: 0; background: none; border: none; color: var(--text); padding: .9em 1em; font-size: .9rem; outline: none; }
.news input::placeholder { color: var(--faint); }
.news input[aria-invalid="true"] { box-shadow: inset 0 0 0 1px #c0533a; }
.news button { width: 48px; min-height: 44px; background: var(--smoke); border-left: 1px solid var(--line); color: var(--gold); transition: background .3s; }
.news button:hover { background: var(--gold); color: #100a02; }
.news-msg { font-size: .8rem; color: var(--gold); min-height: 1.1em; margin-top: .6rem; }
.usa { margin-top: 2rem; }
.usa p { font-size: .82rem; color: var(--faint); }
/* ── FOOTER TURBOCHARGE — premium close: the system settling into a warm ground ── */
.site-footer { overflow: hidden;
  background: linear-gradient(180deg, var(--ink) 0%, #090a0c 56%, #0c0a07 100%);
  border-top: 1px solid var(--line-gold); }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58%; z-index: 0; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 152%, rgba(231,186,98,.11), transparent 68%); }
.site-footer::after { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--gold-500) 30%, var(--gold-300) 50%, var(--gold-500) 70%, transparent); opacity: .55; }
.site-footer > .wrap { position: relative; z-index: 1; }
/* ── footer rebuild: company+map | nav | contact, with a social/legal base bar ── */
.foot-shell { display: grid; gap: 0; }
@media (min-width: 1100px) {
  .foot-shell { grid-template-columns: minmax(240px, 1.4fr) 1fr 1fr minmax(230px, 1.3fr); align-items: stretch; }
}
.foot-left { display: grid; gap: 1.5rem; align-content: start; }
/* instrument-panel blocks separated by thin divider lines */
@media (min-width: 1100px) {
  .foot-block { padding: .1rem 2rem; }
  .foot-block:first-child { padding-left: 0; }
  .foot-block + .foot-block { border-left: 1px solid var(--line-soft); }
}
@media (max-width: 1099px) {
  .foot-block + .foot-block { border-top: 1px solid var(--line-soft); padding-top: 1.8rem; margin-top: 1.8rem; }
}
/* each block title carries a rule under it */
.foot-block h4 { padding-bottom: .75rem; border-bottom: 1px solid var(--line-soft); margin-bottom: 1.1rem; }
/* candidate-cities list under the map */
.fb-tag { display: block; font-family: var(--font-mono); font-size: .54rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-700); margin-bottom: .7rem; }
.fc-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.4rem; }
.fc-list li { display: flex; justify-content: space-between; gap: .5em; font-family: var(--font-mono); font-size: .68rem;
  letter-spacing: .04em; color: var(--muted); padding: .34em 0; border-bottom: 1px dotted var(--line-soft); }
.fc-list li i { font-style: normal; color: var(--faint); }
/* link columns fill their block height: links top, a faint block-code pinned to the bottom */
.foot-block.foot-col { display: flex; flex-direction: column; }
.foot-col[data-code]::after { content: attr(data-code); margin-top: auto; padding-top: 1.6rem;
  font-family: var(--font-mono); font-size: .54rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-700); }
/* contact proof chips pinned to the bottom of their block */
.foot-chips { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: auto; padding-top: 1.3rem; }
.foot-chips span { font-family: var(--font-mono); font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
  border: 1px solid var(--line-soft); border-radius: 4px; padding: .35em .6em; }
/* company block (right) — larger logo above the company information */
.foot-company { display: flex; flex-direction: column; }
.foot-brand-lg { margin-bottom: 1.4rem; gap: .68em; align-items: center; }
.foot-brand-lg .brand-mark { width: 46px; height: 46px; }
.foot-brand-lg .brand-name { font-size: 1.02rem; letter-spacing: .2em; }
.foot-addr { font-style: normal; display: grid; gap: .42rem; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.foot-addr .fa-name { color: var(--text); font-weight: 500; letter-spacing: .02em; font-size: .92rem; }
.foot-addr a { color: var(--muted); transition: color .3s; }
.foot-addr a[href^="mailto"] { color: var(--gold-300); }
.foot-addr a:hover { color: var(--gold-100); }
.foot-addr .fa-tbd { opacity: .55; font-style: italic; }
.foot-company-actions { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; margin-top: auto; padding-top: 1.6rem; }
.foot-company-actions .btn { margin: 0; }
/* subtle dot-matrix world map of the worldwide HQ search */
.foot-map { max-width: 300px; }
.fm-head { font-family: var(--font-mono); font-size: .56rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-300); display: flex; align-items: center; gap: .6em; margin-bottom: .7rem; }
.fm-live { width: 6px; height: 6px; border-radius: 50%; background: var(--gold-100); box-shadow: 0 0 8px 2px var(--glow-hot); flex: none; }
@media (prefers-reduced-motion: no-preference) { .fm-live { animation: live-blink 1.7s steps(1, end) infinite; } }
.fm-stage { position: relative; width: 100%; aspect-ratio: 300 / 113; border: 1px solid var(--line-soft); border-radius: 6px;
  overflow: hidden; background: radial-gradient(130% 150% at 50% 48%, rgba(201,146,57,.05), transparent 70%); }
.fm-dots { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; opacity: .68; }
.fm-pings { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fm-pin { r: 1.7px; fill: var(--gold-100); }
.fm-ring { r: 1px; fill: none; stroke: var(--gold-300); stroke-width: 1; opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .fm-ring { animation: fm-ping 2.6s ease-out infinite; } }
@keyframes fm-ping { 0% { r: 1px; opacity: .85; } 75% { r: 12px; opacity: 0; } 100% { r: 12px; opacity: 0; } }
/* company info under the map */
.foot-co .brand { margin-bottom: .9rem; }
.foot-co-line { color: var(--muted); font-size: .88rem; max-width: 32ch; line-height: 1.5; }
.foot-built { margin-top: .8rem; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--faint); }
/* contact column */
.foot-contact .foot-mail { display: inline-block; color: var(--gold-300); font-size: .98rem; margin-bottom: 1.1rem; transition: color .3s; }
.foot-contact .foot-mail:hover { color: var(--gold-100); }
.foot-contact .btn { margin: 0 0 1.1rem; }
.foot-shop { display: inline-flex; align-items: center; gap: .45em; color: var(--muted); font-family: var(--font-display);
  font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; transition: color .3s, transform .3s; }
.foot-shop:hover { color: var(--gold); transform: translateX(4px); }
/* base bar: social + legal */
.foot-base { margin-top: 52px; padding-top: 26px; border-top: 1px solid var(--line-soft);
  display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 16px 24px; }
.foot-social { display: flex; flex-wrap: wrap; gap: 10px; }
.foot-soc { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center;
  color: var(--faint); border: 1px solid var(--line-soft); border-radius: 7px;
  transition: color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease); }
.foot-soc svg { width: 16px; height: 16px; fill: currentColor; display: block; }
.foot-soc:hover { color: var(--gold-100); border-color: var(--line-gold); transform: translateY(-2px); background: rgba(231,186,98,.06); }
.foot-legal { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .04em; color: var(--faint); }
/* column headers → gold instrument labels with a glowing node tick */
.foot-col h4 { color: var(--gold-300); position: relative; padding-left: 15px; }
.foot-col h4::before { content: ""; position: absolute; left: 0; top: .2em; width: 6px; height: 6px; border-radius: 1px;
  background: var(--gold); box-shadow: 0 0 8px var(--glow-hot); }
.foot-brand .brand-name { text-shadow: 0 0 22px rgba(231,186,98,.22); }
.foot-tag { text-shadow: 0 0 20px rgba(231,186,98,.28); }
.news { transition: border-color .3s var(--ease), box-shadow .3s var(--ease); }
.news:focus-within { border-color: var(--gold-500); box-shadow: 0 0 0 1px rgba(231,186,98,.45), 0 0 22px -8px var(--glow-mid); }

/* ============================================================
   CONTACT PANEL
   ============================================================ */
.contact-panel { position: fixed; inset: 0; z-index: 150; visibility: hidden; }
.contact-panel.open { visibility: visible; }
.cp-scrim { position: absolute; inset: 0; background: rgba(3,3,4,.7); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s var(--ease); }
.contact-panel.open .cp-scrim { opacity: 1; }
.cp-sheet { position: absolute; top: 0; right: 0; bottom: 0; width: min(90vw, 560px); background: linear-gradient(180deg, var(--ink-600), var(--ink-800));
  border-left: 1px solid var(--line-gold); padding: clamp(28px,5vw,56px); padding-top: calc(clamp(28px,5vw,56px) + var(--safe-t)); padding-bottom: calc(clamp(28px,5vw,56px) + var(--safe-b));
  overflow-y: auto; transform: translateX(100%); transition: transform .55s var(--ease-emph); box-shadow: -40px 0 80px -20px rgba(0,0,0,.7); }
@media (max-width: 600px) { .cp-sheet { box-shadow: -24px 0 80px -20px rgba(0,0,0,.7); } }
.contact-panel.open .cp-sheet { transform: none; }
.cp-close { position: absolute; top: calc(18px + var(--safe-t)); right: calc(18px + var(--safe-r)); width: 44px; height: 44px; font-size: 1.6rem; color: var(--muted); z-index: 2; transition: color .3s, transform .3s; }
.cp-close:hover { color: var(--gold); transform: rotate(90deg); }
.cp-title { font-family: var(--font-display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.8rem,5vw,2.6rem); line-height: 1.02; margin: 1rem 0; }
.cp-lead { color: var(--muted); margin-bottom: 2rem; max-width: 42ch; }
.cp-form { display: grid; gap: 1.1rem; }
.cp-form label { display: grid; gap: .5rem; font-family: var(--font-display); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.cp-form label i { color: var(--faint); text-transform: none; letter-spacing: 0; font-style: normal; opacity: .7; }
.cp-form input, .cp-form textarea { font-family: var(--font-body); font-size: .95rem; letter-spacing: normal; text-transform: none; color: var(--text);
  background: var(--ink-800); border: 1px solid var(--line-2); padding: .9em 1em; outline: none; transition: border-color .3s; resize: vertical; }
.cp-form input:focus, .cp-form textarea:focus { border-color: var(--gold); }
.cp-form input[aria-invalid="true"], .cp-form textarea[aria-invalid="true"] { border-color: #c0533a; }
.cp-row { display: grid; gap: 1.1rem; }
.cp-form .btn { margin-top: .6rem; justify-content: center; }
.cp-msg { font-size: .85rem; color: var(--gold-300); min-height: 1.2em; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 600px) {
  .stat-grid { grid-template-columns: repeat(4, 1fr); }
  .value-grid { grid-template-columns: 1fr 1fr; }
  .proto-grid { grid-template-columns: 1fr 1fr; }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cp-row { grid-template-columns: 1fr 1fr; }
  /* 4 problem domains read evenly when their copy baselines align */
  .industry-desc { min-height: 4.2em; }
}
/* creed is 5 cards: in the 2-col tablet band the lone last card spans full width
   so the final row isn't a single orphan beside an empty cell */
@media (min-width: 600px) and (max-width: 979px) {
  .value-grid .value:last-of-type { grid-column: 1 / -1; }
}

@media (min-width: 880px) {
  .contact-btn { display: inline-flex; }
  .hero-index { display: flex; }
  .who-grid { grid-template-columns: 1fr 1fr; }
  .who-visual { order: 0; }
  /* timeline goes horizontal in lockstep with the 2-column layout */
  .timeline { grid-template-columns: repeat(4, 1fr); gap: 1.6rem; padding-left: 0; padding-top: 34px; }
  .tl-track { left: 0; right: 0; top: 4px; bottom: auto; width: auto; height: 1px; }
  .tl-track i { transform-origin: 0 50%; transform: scaleX(0); }
  .timeline.in .tl-track i { transform: scaleX(1); }
  .tl-dot { left: 0; top: -34px; }
}

@media (min-width: 980px) {
  .value-grid { grid-template-columns: repeat(5, 1fr); }
  .proto-grid { grid-template-columns: repeat(4, 1fr); }
  .industry-grid { grid-template-columns: repeat(4, 1fr); }
  .cta-inner { grid-template-columns: minmax(0, 1fr) minmax(440px, 540px); gap: clamp(32px, 4vw, 64px); align-items: center; }   /* copy | inline brief form */
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 50px; }
}

@media (min-width: 1100px) { .header-inner { height: 78px; } }

/* sticky prototype head on large, fine-pointer screens only */
@media (min-width: 980px) and (hover: hover) and (pointer: fine) {
  /* fully transparent so the centre ribbon drop is NEVER dimmed behind it; the head's
     text sits at the left/right edges (clear of the centre drop) and stays legible via shadow */
  .sticky-head { position: sticky; top: 90px; background: transparent; z-index: 6; padding-block: .4rem; }
}
.sticky-head .section-eyebrow, .sticky-head .row-link { text-shadow: 0 1px 7px rgba(6,6,7,.92), 0 0 3px rgba(6,6,7,.9); }

/* small-phone breathing room + touch targets */
@media (max-width: 380px) {
  .header-actions { gap: 1.1rem; }
  .news button { width: 40px; }
}

/* ============================================================
   SUB-PAGES (investors.html / builders.html) — reuse the homepage
   chrome + classes; these scope only the few new layout pieces.
   ============================================================ */
.subpage .sub-hero { padding-top: clamp(8rem, 16vh, 12rem); }
.subpage .sub-hero-h { font-size: clamp(2.6rem, 7vw, 5rem); line-height: .98; }
.subpage .sub-hero .house-copy { font-size: var(--fs-lead); margin-top: 1.4rem; }
.subpage .row-h2 em, .subpage .cta-title em, .subpage .house-h2 em { color: var(--gold-300); font-style: normal; }
.sub-ledger-flag { display: inline-flex; align-items: center; gap: .55rem; margin-top: 1.5rem;
  font-family: var(--font-mono); font-size: .76rem; letter-spacing: .05em; color: var(--gold-300); opacity: .92; }
.house-copy.wide { max-width: 64ch; }
.value-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 920px; gap: 18px; margin-top: 2rem; }
@media (max-width: 680px) { .value-grid.two { grid-template-columns: 1fr; } }
.value-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 2rem; }
@media (max-width: 900px) { .value-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .value-grid.four { grid-template-columns: 1fr; } }
.chips.fanout { gap: .5rem; margin-top: 1.7rem; }
.chips.fanout b { font-size: .7rem; padding: .5rem .85rem; }
.subpage .cta-band { min-height: 0; padding-block: clamp(3rem, 8vw, 6rem); }
.subpage .cta-inner { display: block; max-width: 760px; }
.subpage .cta-band .hero-cta { margin-top: 1.9rem; }
.subpage .process .timeline { margin-top: 2.4rem; }

/* ===== Whole-site reconstruction: new copy elements ===== */
/* hero legibility gloss — names the build domains in 5-second-skim range */
.lk-gloss { margin-top: .85rem; max-width: 48ch; font-family: var(--font-mono);
  font-size: clamp(.72rem, 1.04vw, .82rem); line-height: 1.7; letter-spacing: .015em;
  color: var(--gold-300); opacity: .88; }
/* #prototypes honesty cue — frames specs as design targets */
.proto-note { margin: 0 0 1.1rem; font-family: var(--font-mono); font-size: .66rem;
  letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300); opacity: .78; }
/* per-card build-status pill (CONCEPT / IN DESIGN) */
.proto-status { display: inline-block; margin: .1rem 1.4rem .5rem; font-family: var(--font-mono);
  font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-100);
  border: 1px solid var(--line-gold); padding: .26rem .5rem; border-radius: 2px; opacity: .92; }
/* #industries capability-first lead */
.industry-lead { max-width: 62ch; margin: 1.1rem 0 0; color: var(--text); opacity: .9;
  font-size: var(--fs-lead); line-height: 1.55; }

/* ============================================================
   INSTRUMENTATION LAYER — ribbon · HUD · gauges · measures · decrypt
   "From nothing, the website is constructed as you scroll,
    threaded by one gold ribbon."  (additive — see build-bible)
   ============================================================ */

/* main becomes the ribbon's stage */
#main { position: relative; }

/* ---- shared mono / instrument type ---- */
.mono, .ds-chip, .hud-cluster, .spec-tag, .stat-cap, .cap-id, .coord-chip,
.tl-tag, .sector-chip, .dim-val, .ruler-val, .gauge-read, .loader-meta, .term-tag {
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; letter-spacing: .04em;
}
/* decrypt: real text stays in the a11y tree (sr-only twin); glyphs are decorative */
[data-decrypt] { white-space: normal; }
.dec-glyph { display: inline-block; }
.dec-ch { transition: color .2s var(--ease-out); }

/* ============================================================
   THE GOLD RIBBON
   ============================================================ */
/* sits ABOVE section backgrounds/images (z below content z:7) so the thread weaves
   behind cards/buttons/copy but in front of background imagery */
.ribbon-stage {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  overflow: visible; contain: layout style;   /* screen blend dropped — gold-on-near-black reads the same without a full-page backdrop readback */
}
.ribbon-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ribbon-ghost { fill: none; stroke: rgba(231,186,98,.16); stroke-width: var(--ribbon-w); stroke-linecap: round; stroke-linejoin: miter; }
/* soft glow under the crisp line — a fat low-opacity stroke FAKES the blur with ZERO
   filter cost (animating dashoffset on a filtered path re-rasterised the full page each frame) */
.ribbon-glow {
  fill: none; stroke: var(--gold-500); stroke-width: calc(var(--ribbon-w) + 8px);
  stroke-linecap: round; stroke-linejoin: miter; opacity: .2;
}
.ribbon-path {
  fill: none; stroke: url(#ribbonGrad); stroke-width: var(--ribbon-w);
  stroke-linecap: round; stroke-linejoin: miter;   /* drop-shadows removed — the fat glow stroke + spark node carry the glow */
}
.ribbon-node, .ribbon-node-trail {
  position: absolute; top: 0; left: 0; border-radius: 50%; pointer-events: none;
  transform: translate3d(-100px,-100px,0); will-change: transform;
}
/* ── WELDING SPARK ───────────────────────────────────────────────────────
   The traveller is a round white-hot welding spark: brilliant core, hot
   orange halo, fast arc-flicker. JS owns the transform (position) and
   --node-energy; we only touch background/box-shadow/filter so nothing
   fights the per-frame translate. Embers shower off via .spark-particle. */
.ribbon-node {
  width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #fff0c6 34%, rgba(255,168,66,.55) 62%, transparent 80%);
  box-shadow:
    0 0 5px 2px rgba(255,255,255,.95),
    0 0 13px 4px var(--glow-hot),
    0 0 30px 9px var(--glow-mid),
    0 0 66px 20px rgba(201,146,57,.16);
  opacity: var(--node-energy,.7);
}
.ribbon-node-trail { width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,225,160,.7), transparent 72%); opacity: .5; filter: blur(2px); }
/* breathing aura — extra life around the core (pseudo rides the node, doesn't fight JS transform) */
.ribbon-node::after { content: ""; position: absolute; inset: -7px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,196,110,.5), transparent 68%); }
@media (prefers-reduced-motion: no-preference) {
  /* flicker removed: filter:brightness re-rasterised the shadowed node every frame.
     The compositor-friendly aura (transform/opacity) carries the life. */
  .ribbon-node::after { animation: spark-aura 1.25s var(--ease) infinite; }
}
@keyframes spark-aura { 0%, 100% { transform: scale(.65); opacity: .3; } 50% { transform: scale(1.4); opacity: .85; } }
/* rapid arc flicker — brightness wobble only (never transform) */
@keyframes spark-flicker { 0%{filter:brightness(.92)} 50%{filter:brightness(1.32)} 100%{filter:brightness(1.04)} }

/* sparks shed off the traveler while it moves (JS-spawned, one-shot, self-removing) */
/* glow baked into a radial-gradient instead of box-shadow: up to SPARK_CAP of these exist at
   once during a fast scroll, and a separate box-shadow raster per node was the per-particle
   paint cost. The gradient reads as the same hot ember in motion at zero shadow cost. */
.spark-particle { position: absolute; top: 0; left: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: radial-gradient(circle, #fff7e0 0%, #ffeec4 28%, rgba(231,186,98,.55) 52%, transparent 72%); pointer-events: none;
  animation: spark-fly var(--life, 750ms) var(--ease-out) forwards; }
@keyframes spark-fly {
  0%   { opacity: 1; transform: translate3d(var(--x), var(--y), 0) scale(1); }
  100% { opacity: 0; transform: translate3d(calc(var(--x) + var(--dx)), calc(var(--y) + var(--dy)), 0) scale(.2); }
}

/* ribbon-head: the bright molten leading edge that makes the line read as a magical thread */
.ribbon-head { fill: none; stroke: #fff1cf; stroke-width: calc(var(--ribbon-w) + 1.2px); stroke-linecap: round; opacity: .95; }

/* mobile vertical-rail fallback (set by JS when <=760 / coarse) */
.ribbon-rail { position: absolute; top: 0; bottom: 0; left: 10px; width: 0; z-index: 6; pointer-events: none; display: none; }
.ribbon-rail i { position: absolute; top: 0; left: 0; width: 1px; height: 100%;
  background: linear-gradient(180deg, var(--gold-300), var(--gold-700));
  transform: scaleY(var(--p,0)); transform-origin: 0 0; box-shadow: 0 0 6px var(--ribbon-glow); }
.ribbon-rail b { position: absolute; left: -2.5px; top: 0; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-100); box-shadow: 0 0 10px 2px var(--glow-hot); transform: translateY(-50%); }

/* ============================================================
   PERSISTENT HUD CLUSTERS (flight computer)
   ============================================================ */
.hud-cluster {
  position: fixed; z-index: 60; pointer-events: none; color: var(--gold-300);
  font-size: var(--fs-hud); text-transform: uppercase; letter-spacing: .12em; line-height: 1.5;
  opacity: 0; clip-path: inset(0 100% 0 0); transition: opacity .5s var(--ease), clip-path .55s var(--ease-emph);
}
.hud-cluster.up { opacity: .82; clip-path: inset(0 0 0 0); }
.hud-cluster .hud-row { display: flex; gap: .5em; align-items: baseline; white-space: nowrap; }
.hud-cluster .hud-k { color: var(--faint); }
.hud-cluster .hud-v { color: var(--gold-300); }
.hud-tl { top: calc(78px + var(--safe-t)); left: max(var(--pad), calc(14px + var(--safe-l))); padding-left: 10px; border-left: 1px solid var(--line-gold); }
.hud-br { bottom: calc(18px + var(--safe-b)); right: max(var(--pad), calc(14px + var(--safe-r))); padding-right: 10px; text-align: right; border-right: 1px solid var(--line-gold); }
.hud-br .hud-row { justify-content: flex-end; }
.hud-cluster .corner { position: absolute; width: 7px; height: 7px; border: 1px solid var(--gold); opacity: .8; }
.hud-tl .corner { top: -3px; left: -1px; border-right: 0; border-bottom: 0; }
.hud-br .corner { bottom: -3px; right: -1px; border-left: 0; border-top: 0; }
@media (max-width: 980px) { .hud-tl { display: none; } }
@media (max-width: 600px) { .hud-cluster { font-size: .58rem; } .hud-br .hud-sec { display: none; } }

/* ============================================================
   INSTRUMENT CHIPS / SPEC TAGS / COORD READOUTS
   ============================================================ */
.ds-chip, .spec-tag, .coord-chip, .sector-chip, .tl-tag, .term-tag {
  display: inline-flex; align-items: center; gap: .5em; font-size: var(--fs-hud);
  text-transform: uppercase; letter-spacing: .14em; color: var(--gold-300);
}
.spec-strip { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin: .9rem 1.4rem 0;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .64rem; letter-spacing: .1em;
  color: var(--muted); text-transform: uppercase; }
.spec-strip i { color: var(--gold-300); font-style: normal; margin-right: .35em; }
.coord-chip { position: absolute; z-index: 5; background: rgba(6,7,9,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  padding: .35em .6em; color: var(--gold-300); font-size: .58rem; letter-spacing: .08em;
  border: 1px solid var(--line-gold); }

/* ============================================================
   MEASUREMENT RULES + DIMENSION LINES
   ============================================================ */
.measure-rule { position: relative; display: block; height: 1px; background: var(--line-gold);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .52s var(--ease-out); }
.measure-rule.in { transform: scaleX(1); }
.measure-rule::before, .measure-rule::after { content:""; position: absolute; top: -3px; width: 1px; height: 7px; background: var(--gold-300); }
.measure-rule::before { left: 0; } .measure-rule::after { right: 0; }

.dim-line { position: absolute; z-index: 5; display: flex; align-items: center; gap: .5em;
  color: var(--gold-300); font-family: var(--font-mono); font-size: .56rem; letter-spacing: .08em; opacity: .8; }
.dim-line .dim-bar { display: block; height: 1px; flex: 1 1 auto; min-width: 24px; background: var(--gold-300);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .55s var(--ease-out) .1s; }
.dim-line[style*="row-reverse"] .dim-bar { transform-origin: 100% 50%; }
.dim-val { white-space: nowrap; }
.dim-line.in .dim-bar { transform: scaleX(1); }

/* ============================================================
   ARC GAUGES
   ============================================================ */
.gauge { position: relative; }
.gauge svg { display: block; overflow: visible; }
.gauge .g-track { fill: none; stroke: var(--line-2); }
.gauge .g-val { fill: none; stroke: var(--gold-300); stroke-linecap: round;
  filter: drop-shadow(0 0 4px var(--ribbon-glow)); }
.gauge .g-tick { stroke: var(--gold-100); }
.gauge .g-grad { stroke: var(--line-3); stroke-width: .8; }
.gauge .g-grad.maj { stroke: var(--gold-500); stroke-width: 1.2; }

/* stat panel instrument dressing */
.stat { position: relative; overflow: hidden; }
.stat-cap { display: block; font-size: .58rem; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); margin-bottom: .5rem; }
.stat .measure-rule { position: absolute; top: 0; left: 0; right: 0; }
.stat-gauge { position: absolute; right: 1rem; top: 1.2rem; width: 46px; height: 46px; opacity: .9; pointer-events: none; }
.stat-num { position: relative; z-index: 1; }

/* ============================================================
   01 — THE HOUSE + 02 LOCATION: ONE integrated unit. Manifesto + four
   time-door HUD cards up top; the location panel docked directly under.
   A spark ignites it, splits to trace all four cards, then reconverges
   and flows down into the location panel.
   ============================================================ */
.integrated { background: linear-gradient(180deg, var(--ink), var(--ink-700)); }
.integrated .wrap { position: relative; }

/* top block: framed shell around the manifesto + principles */
.house-top { position: relative; margin-inline: calc(var(--pad) * -1);
  padding: clamp(1.6rem, 3vw, 2.6rem) clamp(1.1rem, 2.4vw, 2.2rem); }
.house-shell { position: absolute; inset: 0; z-index: 0; pointer-events: none; border: 1px solid var(--line-gold); }
/* right-edge corner brackets only (sprucier: thicker, glowing) */
.hs-corner { position: absolute; width: 28px; height: 28px; }
.hs-corner.tr { top: -1px; right: -1px; border-top: 2px solid var(--gold-300); border-right: 2px solid var(--gold-300);
  filter: drop-shadow(0 0 4px var(--glow-mid)); }
.hs-corner.br { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold-300); border-right: 2px solid var(--gold-300);
  filter: drop-shadow(0 0 4px var(--glow-mid)); }
/* glow nodes where the gold ribbon enters (top) and exits (bottom) the frame */
.hs-node { position: absolute; right: -4px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--gold-100); box-shadow: 0 0 10px 2px var(--glow-hot), 0 0 22px 6px var(--glow-mid); }
.hs-node.top { top: -4px; } .hs-node.bot { bottom: -4px; }

.house-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: clamp(2.2rem, 4vw, 3.4rem);
  align-items: center; padding: clamp(.4rem, 1.6vw, 1rem) clamp(.4rem, 1.4vw, 1rem); }
@media (min-width: 940px) { .house-grid { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); } }

/* LEFT — the statement */
.house-h2 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: .98; }
.house-h2 em { font-style: normal; color: var(--gold-yellow); }
.house-rule { display: block; width: 58px; height: 2px; margin: 1.5rem 0 .2rem;
  background: linear-gradient(90deg, var(--gold-300), transparent); }
.house-copy { margin-top: 1.1rem; max-width: 42ch; color: var(--muted); font-size: var(--fs-lead); line-height: 1.5; }

/* RIGHT — ELITE · RAPID · DISRUPT · DELIVER: four points in ONE time-door box */
.principles-k { font-family: var(--font-mono); font-size: .58rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold-300); margin-bottom: 1rem; text-align: center; }
.principles-k .dec-glyph { color: var(--gold-300); }

/* THE TIME-DOOR CONTAINING BOX — corner brackets, blueprint grid, coordinate
   readout, warm glow + a measurement line. The four cards live inside, sharing
   their borders. The real ribbon spark threads through (cards are translucent). */
.timedoor { position: relative; padding: 2rem clamp(.7rem,1.2vw,1rem) 1.7rem;
  background: linear-gradient(158deg, rgba(22,17,9,.34), rgba(6,6,8,.46) 72%);
  border: 1px solid var(--line-gold); }
/* zero-size ribbon anchors pinned to the box top/bottom centre (main spark
   threads down the centre; the split overlay does the fork between cards) */
.td-anchor { position: absolute; width: 0; height: 0; pointer-events: none; }
.td-anchor.a-top { top: 0; left: 50%; }
.td-anchor.a-bot { bottom: 0; left: 50%; }

/* ── SIDE SPARKS — two nodes styled identically to the main ribbon spark.
   JS rides them on the main spark's Y, bowing them around the box outside
   and back; no delay, and the direction follows the spark (reverses on
   scroll-up). ── */
.ss-node { position: absolute; top: 0; left: 0; z-index: 8; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; pointer-events: none; opacity: 0; will-change: transform;
  transition: opacity .18s var(--ease);
  background: radial-gradient(circle, #ffffff 0%, #fff0c6 34%, rgba(255,168,66,.55) 62%, transparent 80%);
  /* smaller node + lighter glow (dropped the 30px outer halo) — calms the multibox split FX */
  box-shadow: 0 0 4px 1px rgba(255,255,255,.9), 0 0 10px 3px var(--glow-hot); }
.ss-node.on { opacity: .95; }
/* sub-spark: no per-frame brightness flicker (perf) */
@media (prefers-reduced-motion: reduce) { .ss-node { display: none; } }

/* glowing trail line drawn behind each sub-spark; fades out when the split idles */
.ss-trails { position: absolute; inset: 0; z-index: 6; width: 100%; height: 100%; pointer-events: none;
  overflow: visible; opacity: 0; transition: opacity .5s var(--ease); }
.ss-trails.on { opacity: 1; }
.ss-trail { fill: none; stroke: var(--gold-300); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
  /* single small drop-shadow (was a double filter that re-rasterised as the trail draws) */
  filter: drop-shadow(0 0 3px var(--glow-hot)); }
@media (prefers-reduced-motion: reduce) { .ss-trails { display: none; } }

/* ── ADAPTIVE PERFORMANCE TIERS ───────────────────────────────────────────
   Toggled by the JS frame-rate governor (html.perf-1 lite · html.perf-2 min)
   when a device is struggling. Each step drops the heaviest, least-visible GPU
   work first so the look stays close. Capable devices stay tier-0 (untouched).
   Higher specificity than the base rules, so order-independent. */
/* perf-1 (lite) — near-imperceptible: stop the per-frame grain repaint, drop the
   spark's breathing aura + faint outer halo, and kill costly backdrop blurs. */
.perf-1 .ribbon-node::after { display: none; }
.perf-1 .ribbon-node {
  box-shadow: 0 0 5px 2px rgba(255,255,255,.95), 0 0 13px 4px var(--glow-hot), 0 0 30px 9px var(--glow-mid); }
.perf-1 .coord-chip, .perf-1 .sector-chip { -webkit-backdrop-filter: none; backdrop-filter: none; }
.perf-1 .cta-horizon, .perf-1 .cta-glow { animation: none; }
/* perf-2 (min) — trim the spark/sub-spark glow to its bright core, remove the
   grain entirely, and drop the remaining big backdrop blurs (header, scrims). */
.perf-2 .grain { display: none; }
.perf-2 .ribbon-node {
  box-shadow: 0 0 5px 2px rgba(255,255,255,.95), 0 0 13px 4px var(--glow-hot), 0 0 26px 7px var(--glow-mid); }
.perf-2 .ss-node {
  box-shadow: 0 0 5px 2px rgba(255,255,255,.95), 0 0 13px 4px var(--glow-hot); }
.perf-2 .site-header.scrolled { -webkit-backdrop-filter: none; backdrop-filter: none; background: none; }
.perf-2 .hero-spec, .perf-2 .cp-scrim { -webkit-backdrop-filter: none; backdrop-filter: none; }
.perf-2 .cta-glow { display: none; }
.perf-2 .cta-primary { animation: none; box-shadow: 0 0 18px 2px rgba(231,186,98,.4); }

/* split containers (the methodology box + each card row) host the centre
   ribbon anchors and the two side sparks that bow around the outside */
[data-spark-split] { position: relative; }

/* IMPACT PULSE — a box the spark touches flashes brighter for a beat */
@media (prefers-reduced-motion: no-preference) {
  .zap { animation: zap-pulse .5s var(--ease-out); }
}
@keyframes zap-pulse {
  0%   { filter: brightness(1.4) drop-shadow(0 0 8px var(--glow-hot)); }
  100% { filter: brightness(1); }
}
/* SINGLE exterior flash — ONE glow pulse around the OUTSIDE of a whole card group when the
   welding spark first reaches it (replaces the per-card zap that repeated across every box) */
@media (prefers-reduced-motion: no-preference) {
  [data-spark-split].split-flash { animation: split-flash .6s var(--ease-out); }
}
@keyframes split-flash {
  0%   { box-shadow: 0 0 0 1px var(--glow-hot), 0 0 30px 6px var(--glow-mid); }
  100% { box-shadow: 0 0 0 0 rgba(0,0,0,0), 0 0 0 0 rgba(0,0,0,0); }
}
.td-grid { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .6;
  background-image: linear-gradient(rgba(201,146,57,.06) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(201,146,57,.06) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask: radial-gradient(140% 110% at 18% 12%, #000, transparent 82%);
          mask: radial-gradient(140% 110% at 18% 12%, #000, transparent 82%); }
.td-glow { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .55;
  background: radial-gradient(42% 52% at 84% 36%, var(--glow-mid), transparent 70%); }
.td-brackets i { position: absolute; width: 17px; height: 17px; z-index: 3; border: var(--td-bk-w) solid var(--td-line); opacity: .85; }
.td-brackets i:nth-child(1) { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.td-brackets i:nth-child(2) { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.td-brackets i:nth-child(3) { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.td-brackets i:nth-child(4) { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }
.td-coord { position: absolute; top: 9px; left: 12px; z-index: 3; font-family: var(--font-mono);
  font-size: .54rem; letter-spacing: .14em; color: var(--gold-300); padding: .25em .55em;
  border: 1px solid var(--line-gold); background: rgba(4,4,5,.55); }
.td-coord .dec-glyph, .td-label .dec-glyph { color: var(--gold-100); }
.td-label { position: absolute; top: 13px; right: 14px; z-index: 3; font-family: var(--font-mono);
  font-size: .52rem; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.td-reach { position: absolute; left: 14px; right: 14px; bottom: 8px; z-index: 3; height: 1px;
  background: repeating-linear-gradient(90deg, var(--gold-700) 0 6px, transparent 6px 12px); opacity: .6; }
.td-reach::after { content: "+"; position: absolute; right: -3px; top: -6px; color: var(--gold-300); font-size: .7rem; line-height: 1; }

/* four time-door cards, sharing borders inside the box. Each glows like a
   TVA aperture: gold frame, inset bloom, warm core behind the hex. */
.pcards { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr;
  border: 1px solid var(--line-gold); }
@media (min-width: 560px) { .pcards { grid-template-columns: 1fr 1fr; } }
.pcard { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(.7rem, 1.4vw, 1.05rem);
  align-items: start; padding: 1.5rem clamp(1.05rem, 1.6vw, 1.35rem) 1.6rem;
  background: linear-gradient(157deg, rgba(40,29,14,.5), rgba(10,9,11,.42) 72%);
  border-right: 1px solid var(--line-gold); border-bottom: 1px solid var(--line-gold);
  box-shadow: inset 0 0 0 1px rgba(231,186,98,.07), inset 0 0 34px -12px var(--glow-mid);
  transition: background .4s var(--ease), box-shadow .4s var(--ease); }
.pcard:nth-of-type(2n) { border-right: 0; }
.pcard:nth-of-type(n+3) { border-bottom: 0; }
@media (max-width: 559px) { .pcard { border-right: 0; } .pcard:last-of-type { border-bottom: 0; } }
/* warm refractive core, centered on the hex icon — the door's "opening light" */
.pcard::before { content: ""; position: absolute; left: clamp(2.2rem,3.4vw,3rem); top: 2.4rem; width: 96px; height: 96px;
  transform: translate(-50%, -50%); z-index: 0; pointer-events: none;
  background: radial-gradient(circle, var(--glow-mid), transparent 68%); opacity: .8; }
.pcard:hover { box-shadow: inset 0 0 0 1px rgba(231,186,98,.18), inset 0 0 40px -10px var(--glow-mid); }
.pcard:hover .hex { stroke: var(--gold-100); }
.pcard-ticks { position: absolute; left: 1.1rem; right: 1.1rem; bottom: .6rem; z-index: 2;
  display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono);
  font-size: .58rem; letter-spacing: .15em; color: var(--gold-500); }
.pcard-ticks::before { content: "+ + +"; }
.pcard-ticks::after { content: "— — —"; letter-spacing: .05em; opacity: .8; }
.pcard-n { position: absolute; top: .6rem; left: 1.1rem; z-index: 2; font-family: var(--font-mono);
  font-size: .54rem; letter-spacing: .16em; color: var(--gold-300); }
.pcard-ico { position: relative; z-index: 2; width: 54px; height: 58px; display: grid; place-items: center; margin: .1rem 0; }
.pcard-ico .hex { position: absolute; inset: 0; width: 100%; height: 100%; fill: none;
  stroke: var(--gold-300); stroke-width: 1.3; filter: drop-shadow(0 0 5px var(--glow-hot));
  transition: stroke .45s var(--ease), filter .45s var(--ease); }
.pcard-glyph { position: relative; width: 25px; height: 25px; color: var(--gold-100);
  display: grid; place-items: center; filter: drop-shadow(0 0 7px var(--glow-hot)); }
.pcard-glyph svg { width: 100%; height: 100%; }
.pcard-body { position: relative; z-index: 2; min-width: 0; padding-bottom: .55rem; }
.pcard-word { margin: 0 0 .4rem; font-family: var(--font-display); font-weight: 800; text-transform: uppercase;
  letter-spacing: -.01em; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: .95; color: #fff; }
.pcard-word .dec-glyph { color: var(--gold-100); }
.pcard-line { margin: 0; color: var(--muted); font-size: .8rem; line-height: 1.45; }
.pcard-line b { color: #fff; font-weight: 700; }

/* ============================================================
   02 — LOCATION: integrated panel under the house, skyline slideshow RIGHT
   ============================================================ */
/* docked directly under the house block — the two frames meet on ONE shared line */
.loc-block { position: relative; margin-inline: calc(var(--pad) * -1); margin-top: -1px; }
.loc-stage { position: relative; min-height: clamp(248px, 27vw, 360px); display: flex; align-items: center;
  overflow: hidden; border: 1px solid var(--line-gold); background: var(--ink-900); }
/* skyline lives on the RIGHT; a left fade blends it into the ink panel */
.loc-slides { position: absolute; top: 0; right: 0; bottom: 0; left: 36%; z-index: 0;
  -webkit-mask: linear-gradient(90deg, transparent, #000 26%); mask: linear-gradient(90deg, transparent, #000 26%); }
.loc-slide { position: absolute; inset: 0; background-size: cover; background-position: center;
  /* gradient stands in until a real skyline photo is dropped at the slug path */
  background-color: var(--ink-800); background-blend-mode: luminosity;
  opacity: 0; transform: scale(1.06); transition: opacity 1.1s var(--ease), transform 6s linear; }
.loc-slide::after { content: ""; position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 70% 60%, transparent, rgba(4,4,5,.45) 75%), linear-gradient(180deg, rgba(4,4,5,.45), rgba(4,4,5,.15) 45%, rgba(4,4,5,.7)); }
.loc-slide.on { opacity: .92; transform: scale(1); }
/* left-to-right ink scrim so the overlay copy always reads over the skyline */
.loc-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, var(--ink-900) 0%, rgba(4,4,5,.9) 34%, rgba(4,4,5,.35) 62%, rgba(4,4,5,.25) 100%); }

/* bespoke panel frame: corner brackets + registration plus */
.loc-frame { position: absolute; inset: 10px; z-index: 3; pointer-events: none; }
/* right-edge corner brackets only (sprucier: thicker, glowing, with a live dot) */
.loc-frame .lf { position: absolute; width: 18px; height: 18px; opacity: .9; filter: drop-shadow(0 0 4px var(--glow-mid)); }
.loc-frame .lf.tr { top: 0; right: 0; border-top: 2px solid var(--gold-300); border-right: 2px solid var(--gold-300); }
.loc-frame .lf.br { bottom: 0; right: 0; border-bottom: 2px solid var(--gold-300); border-right: 2px solid var(--gold-300); }
.loc-frame .lf::after { content: ""; position: absolute; right: -3px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-100); box-shadow: 0 0 8px 2px var(--glow-hot); }
.loc-frame .lf.tr::after { top: -3px; }
.loc-frame .lf.br::after { bottom: -3px; }
.lf-plus { position: absolute; right: 6px; bottom: 4px; width: 9px; height: 9px; opacity: .8; }
.lf-plus::before, .lf-plus::after { content: ""; position: absolute; background: var(--gold-300); }
.lf-plus::before { left: 50%; top: 0; width: 1px; height: 100%; transform: translateX(-50%); }
.lf-plus::after { top: 50%; left: 0; height: 1px; width: 100%; transform: translateY(-50%); }

.loc-overlay { position: relative; z-index: 4; width: 100%; padding: clamp(1.3rem, 3vw, 2.1rem) clamp(1.6rem, 4vw, 3.2rem); }
@media (min-width: 720px) { .loc-overlay { max-width: 62%; } }
.loc-overlay .section-eyebrow { margin-bottom: .4rem; }
/* tagline — the perpetual worldwide search */
.loc-tag { display: flex; align-items: center; gap: .55em; margin-bottom: 1rem; font-family: var(--font-mono);
  font-size: clamp(.86rem, 1.8vw, 1.18rem); font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-300); text-shadow: 0 0 18px rgba(231,186,98,.28); }
.loc-tag .dec-glyph { color: var(--gold-100); }
.loc-scan { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-100);
  box-shadow: 0 0 8px 2px var(--glow-hot); flex: none; }
@media (prefers-reduced-motion: no-preference) { .loc-scan { animation: scan-pulse 1.4s ease-in-out infinite; } }
@keyframes scan-pulse { 0%, 100% { transform: scale(1); box-shadow: 0 0 8px 2px var(--glow-hot); }
  50% { transform: scale(1.4); box-shadow: 0 0 16px 6px var(--glow-hot); } }
@media (prefers-reduced-motion: no-preference) {
  .loc-ell::after { content: ""; animation: loc-ell 1.6s steps(1) infinite; } }
.loc-ell::after { content: "..."; }
@keyframes loc-ell { 0%{content:"";} 25%{content:".";} 50%{content:"..";} 75%{content:"...";} }
.loc-k { display: block; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-bottom: .5rem; }
.loc-k .dec-glyph { color: var(--gold-300); }
.loc-readout { display: flex; flex-wrap: nowrap; align-items: baseline; gap: .2rem .55rem; }
.site-city { display: inline-block; font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: clamp(2.6rem, 6.6vw, 4.6rem); line-height: .92; letter-spacing: -.01em; text-transform: uppercase; color: var(--gold-yellow);
  white-space: nowrap; text-shadow: 0 0 40px rgba(221,187,60,.42); }
.site-city .dec-glyph { color: var(--gold-yellow); }
.loc-country { display: inline-block; font-family: var(--font-mono); font-weight: 700; letter-spacing: .14em;
  font-size: clamp(1rem, 2.2vw, 1.5rem); text-transform: uppercase; color: var(--gold-300);
  text-shadow: 0 0 26px rgba(231,186,98,.3); }
.loc-country .dec-glyph { color: var(--gold-yellow); }
/* flashing cursor sits AFTER the country, so city + country read as one location string */
.loc-country::after { content: "_"; margin-left: .06em; color: var(--gold-yellow); opacity: .85; font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .loc-country::after { animation: caret 1.05s steps(1) infinite; } }
@keyframes caret { 50% { opacity: 0; } }
.loc-rule { display: block; width: 70px; height: 2px; margin: 1rem 0 0;
  background: linear-gradient(90deg, var(--gold-300), transparent); }
.loc-line { margin: 1rem 0 0; max-width: 54ch; color: var(--text); font-size: var(--fs-body); line-height: 1.55; opacity: .92; }
.loc-line b { color: var(--gold-300); font-weight: 700; }
.loc-chip { display: inline-flex; align-items: center; gap: .55em; margin-top: 1.5rem; padding: .5em .85em;
  border: 1px solid var(--line-gold); background: rgba(4,4,5,.4); font-family: var(--font-mono);
  font-size: .56rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-300); }
.loc-chip-ico { width: 15px; height: 15px; display: grid; place-items: center; color: var(--gold-300); }
.loc-chip-ico svg { width: 100%; height: 100%; }
.loc-chip .dec-glyph { color: var(--gold-100); }
/* right-edge slide indicator dots */
.loc-dots { position: absolute; right: 18px; top: 50%; transform: translateY(-50%); z-index: 5;
  display: flex; flex-direction: column; gap: 9px; }
.loc-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-700); opacity: .5; transition: all .4s var(--ease); }
.loc-dot.on { background: var(--gold-100); opacity: 1; box-shadow: 0 0 7px 2px var(--glow-hot); transform: scale(1.15); }
@media (max-width: 560px) { .loc-dots { display: none; } }

/* hero corner spec instrument */
.hero-spec { position: absolute; right: 18px; left: auto; bottom: 14px; z-index: 3;
  display: none; align-items: center; gap: 1rem; padding: .9rem 1.1rem; width: 300px; box-sizing: border-box;
  background: linear-gradient(180deg, rgba(14,16,19,.66), rgba(8,9,11,.6)); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border: 1px solid var(--line-gold); }
.hero-spec::before { content:""; position:absolute; top:-1px; left:-1px; width:10px; height:10px; border-top:1px solid var(--gold); border-left:1px solid var(--gold); }
.hero-spec::after { content:""; position:absolute; bottom:-1px; right:-1px; width:10px; height:10px; border-bottom:1px solid var(--gold); border-right:1px solid var(--gold); }
.hero-gauge { width: 54px; height: 54px; flex: 0 0 auto; }
/* 3-position rotary KNOB inside the hero footprint box */
.hero-gauge svg { width: 100%; height: 100%; overflow: visible; display: block; }
/* tick marks — 3 major + 9 minor around the knob */
.hd-tick { stroke-linecap: round; }
.hd-major { stroke: var(--gold-300); stroke-width: 1.9; opacity: .7;
  transition: stroke .4s var(--ease), opacity .4s var(--ease); }
.hd-major.is-on { stroke: var(--gold-100); opacity: 1; filter: drop-shadow(0 0 3px var(--glow-hot)); }
.hd-minor { stroke: var(--gold-500); stroke-width: 1; opacity: .38; }
/* knob body — beveled rim + radial-gradient face */
.hd-rim { fill: none; stroke: rgba(228,206,150,.42); stroke-width: 1.1; }
.hd-face { stroke: rgba(0,0,0,.6); stroke-width: .5; }
/* recessed circular groove the indicator rides in */
.hd-groove { fill: none; stroke: #000; stroke-width: 2.1; opacity: .55; }
/* rotating indicator — yellow dot in the groove + a pointer toward the active major tick */
.hd-point { stroke: var(--yellow); stroke-width: 1.5; stroke-linecap: round; opacity: .9;
  filter: drop-shadow(0 0 2px var(--glow-hot)); }
.hd-ind { fill: var(--yellow); filter: drop-shadow(0 0 4px var(--glow-hot)); }
/* center cap */
.hd-hub { fill: #1a1c1f; stroke: rgba(228,206,150,.4); stroke-width: .6; }
.hd-hub2 { fill: var(--gold-300); opacity: .5; }

/* quiet per-section live readout — labeled (LABEL value), hugs an element edge, never in flow */
.ro-chip { position: absolute; z-index: 3; display: inline-flex; align-items: center; gap: .42em;
  font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .52rem;
  letter-spacing: .18em; text-transform: uppercase; opacity: .62;
  pointer-events: none; white-space: nowrap; }
.ro-chip .ro-live { width: 4px; height: 4px; border-radius: 50%; flex: 0 0 auto; background: var(--yellow);
  box-shadow: 0 0 5px 1px var(--glow-hot); animation: roPulse 2.4s var(--ease) infinite; }
.ro-chip .ro-k { color: var(--muted); opacity: .7; }                 /* what it is */
.ro-chip .ro-v { color: var(--gold-300); font-weight: 500; }         /* the live value (data-ro target) */
@keyframes roPulse { 0%,100% { opacity: .3 } 50% { opacity: 1 } }
/* a grouping: several readouts stacked along one edge */
.ro-group { position: absolute; z-index: 3; display: flex; flex-direction: column; gap: .4em; pointer-events: none; }
.ro-group .ro-chip { position: static; }
/* the house frame's client-footprint readout: a single quiet row tucked into the
   bottom-right corner of the box, clear of the headline and copy */
.ro-footer { flex-direction: row; align-items: center; gap: 1.4em;
  right: clamp(.7rem, 2vw, 1.5rem); bottom: clamp(.55rem, 1.4vw, 1rem); }
.site-footer { position: relative; }
.ro-host { position: relative; }   /* anchor host for an edge-tucked readout */
@media (max-width: 980px) { .ro-chip, .ro-group { display: none !important; } }
/* narrow laptops (<1200px): hide the right-edge HUD entirely so the hero stays clean
   and nothing collides — the full composition only renders where there's room for it */
@media (max-width: 1199px) { .hero-index, .hero-spec { display: none !important; } }
.hero-spec-text { display: grid; gap: .25rem; min-width: 0; }
.hero-spec .ds-chip { color: var(--gold-300); margin-bottom: .15rem; }
.spec-line { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 980px) { .hero-spec { display: flex; } }

/* showcase primary instrument */
.showcase-instr { position: absolute; right: max(var(--pad), calc(24px + var(--safe-r))); bottom: clamp(60px,9vw,110px); z-index: 3; display: none; flex-direction: column; align-items: flex-end; gap: .6rem; text-align: right; }
.showcase-gauge { width: 92px; height: 92px; }
.showcase-instr .gauge-read { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
.showcase-instr .spec-line { color: var(--muted); }
@media (min-width: 880px) { .showcase-instr { display: flex; } }
/* ambient "signal" ticker — vertical-scrolling robotics/space/AI headlines pinned to the
   RIGHT EDGE of every section (fixed). Rotated text keeps the strip thin; a stylistic FX. */
.rss-feed { position: absolute; top: 0; bottom: 0; right: max(10px, calc(10px + var(--safe-r))); width: 56px; z-index: 2;
  pointer-events: none; display: none; opacity: .4; }
@media (min-width: 1100px) { .rss-feed { display: block; } }
.rss-live { position: absolute; top: 14px; right: 24px; width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-100); box-shadow: 0 0 6px var(--glow-hot); }
@media (prefers-reduced-motion: no-preference) { .rss-live { animation: live-blink 1.7s steps(1, end) infinite; } }
.rss-window { position: absolute; top: 32px; bottom: 16px; left: 0; right: 0; overflow: hidden;
  display: flex; gap: 12px; justify-content: flex-end;
  -webkit-mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent);
  mask: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.rss-track { display: flex; flex-direction: column; align-items: center;
  animation: rss-scroll 55s linear infinite; animation-play-state: paused; }
/* animate AND promote only while the section is in view — static will-change kept 20 tracks
   (2 lanes x 10 feeds) layer-promoted off-screen, wasting GPU memory */
.rss-feed.rss-on .rss-track { animation-play-state: running; will-change: transform; }
@keyframes rss-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
@media (prefers-reduced-motion: reduce) { .rss-track { animation: none; } }
.rss-item { writing-mode: vertical-rl; text-orientation: mixed; white-space: nowrap; padding: 1.7em 0;
  font-family: var(--font-mono); font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.rss-item b { color: var(--gold-300); font-weight: 500; }

/* ============================================================
   CONSTRUCT-ON-REVEAL: brackets · icon draw · underline
   ============================================================ */
/* generic corner brackets that snap to corners on reveal */
.frame-brackets i, .proto-brackets i { position: absolute; width: 16px; height: 16px; border: var(--td-bk-w) solid var(--td-line); z-index: 4; }
.frame-brackets i { opacity: 0; transform: scale(.4); transform-origin: center; }
.frame-brackets.snap i { opacity: .85; transform: scale(1); transition: opacity .3s var(--ease), transform .3s var(--ease-snap); }
.frame-brackets.snap i:nth-child(2){ transition-delay: .05s; }
.frame-brackets.snap i:nth-child(3){ transition-delay: .10s; }
.frame-brackets.snap i:nth-child(4){ transition-delay: .15s; }
.frame-brackets i:nth-child(1){ top: 12px; left: 12px; border-right: 0; border-bottom: 0; }
.frame-brackets i:nth-child(2){ top: 12px; right: 12px; border-left: 0; border-bottom: 0; }
.frame-brackets i:nth-child(3){ bottom: 12px; left: 12px; border-right: 0; border-top: 0; }
.frame-brackets i:nth-child(4){ bottom: 12px; right: 12px; border-left: 0; border-top: 0; }

/* capability cards get a construction id + bracket + baseline rule + drawn icon */
.cap-id { position: absolute; top: 1.2rem; right: 1.2rem; font-size: .56rem; letter-spacing: .16em; color: var(--faint); }
.value > .frame-brackets i { width: 12px; height: 12px; }
.value .measure-rule { width: 34px; margin: .9rem 0 0; }
.value-icon svg path, .value-icon svg circle, .value-icon svg rect {
  stroke-dasharray: var(--dash, 0); stroke-dashoffset: var(--dash, 0);
  transition: stroke-dashoffset .6s var(--ease);
}
.value.in .value-icon svg path, .value.in .value-icon svg circle, .value.in .value-icon svg rect { stroke-dashoffset: 0; }

/* proto: brackets pop into their corners on first reveal (then hover amplifies) */
.proto-brackets i { opacity: 0; transform: scale(.35); transform-origin: center; }
.proto-art.in .proto-brackets i { opacity: .55; transform: scale(1); transition: opacity .34s var(--ease), transform .32s var(--ease-snap); }
.proto-art.in .proto-brackets i:nth-child(2) { transition-delay: .05s; }
.proto-art.in .proto-brackets i:nth-child(3) { transition-delay: .10s; }
.proto-art.in .proto-brackets i:nth-child(4) { transition-delay: .15s; }
.proto:hover .proto-brackets i { opacity: .95; transform: scale(1); }

/* timeline waypoint labels + ring pulse */
.tl-tag { display: block; font-size: .56rem; letter-spacing: .14em; color: var(--gold-300); opacity: .8; margin-bottom: .15rem; }
.tl-ring { position: absolute; left: -28px; top: 6px; width: 9px; height: 9px; border-radius: 50%; pointer-events: none; }
.timeline.in .tl-ring { animation: ring-pulse 1.1s var(--ease) calc(var(--n)*.12s) 1; }
@media (min-width: 880px) { .tl-ring { left: 0; top: -34px; } }
@keyframes ring-pulse { 0%{box-shadow:0 0 0 0 var(--glow-hot);opacity:.9} 100%{box-shadow:0 0 0 16px rgba(231,186,98,0);opacity:0} }

/* industries: sector chip + underline extends on reveal */
.sector-chip { position: absolute; top: 0; left: 0; z-index: 5; background: rgba(6,7,9,.5); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); padding: .3em .55em; font-size: .56rem; }
.industry.in .industry-name::after { transform: scaleX(1); }

/* who: vertical ruler + status cluster */
.who-ruler { position: absolute; left: 10px; top: 12%; bottom: 12%; width: 1px; background: var(--line-gold); z-index: 4;
  transform: scaleY(0); transform-origin: 50% 0; transition: transform .7s var(--ease-out); }
.who-ruler.in { transform: scaleY(1); }
.who-ruler i { position: absolute; left: -3px; width: 7px; height: 1px; background: var(--gold-300); }
.who-ruler i:nth-child(1){top:0} .who-ruler i:nth-child(2){top:25%} .who-ruler i:nth-child(3){top:50%} .who-ruler i:nth-child(4){top:75%} .who-ruler i:nth-child(5){bottom:0}
.status-cluster { position: absolute; left: 14px; bottom: 12px; z-index: 5; color: var(--gold-300); font-family: var(--font-mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; }

/* CTA ribbon terminus */
/* charged node where the ribbon terminates & the spark docks — sits on the ribbon channel (5%) */
.cta-term { position: absolute; z-index: 3; left: 5%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--gold-100); box-shadow: 0 0 14px 3px var(--glow-hot), 0 0 30px 8px var(--glow-mid); opacity: 0; transform: scale(.4); }
/* the CTA is the finale band — no cockpit edge rails competing with the dock */
.cta-band .edge-tag, .cta-band .edge-rail { display: none; }
.cta-band.docked .cta-term { opacity: 1; transform: scale(1); transition: opacity .5s var(--ease), transform .6s var(--ease-snap); }
.cta-band.docked .cta-term::after { content:""; position:absolute; inset:-6px; border-radius:50%; border:1px solid var(--gold-300);
  animation: ring-pulse 1.4s var(--ease) .1s 1; }
.term-tag { display: block; color: var(--gold-300); font-size: .6rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: .8rem; }

/* ============================================================
   COCKPIT EDGE INSTRUMENTS — vertical tags, tick rails, compass
   ============================================================ */
.compass { opacity: 0; transition: opacity .8s var(--ease); }
.compass.in { opacity: .6; }

/* PER-SECTION HUD PANEL — right-edge corner brackets + indicator lights + top bar */
.sec-frame { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.sec-corner { position: absolute; width: 16px; height: 16px; border: 2px solid var(--gold-300); opacity: .85;
  filter: drop-shadow(0 0 4px var(--glow-mid)); }
.sec-corner.tr { top: 14px; right: 14px; border-left: 0; border-bottom: 0; }
.sec-corner.br { bottom: 14px; right: 14px; border-left: 0; border-top: 0; }
/* "live" blinking telemetry light next to the SCROLL readout */
.sec-live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; vertical-align: middle; margin-right: .55em;
  background: var(--gold-100); box-shadow: 0 0 7px 1px var(--glow-hot); }
@media (prefers-reduced-motion: no-preference) { .sec-live { animation: live-blink 1.7s steps(1, end) infinite; } }
@keyframes live-blink { 0%, 52% { opacity: 1; } 58%, 100% { opacity: .22; } }
/* pushed down so the SCROLL readout clears the corner bracket */
.sec-bar { position: absolute; top: 26px; left: 40px; right: 30px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem; font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .54rem; letter-spacing: .16em; text-transform: uppercase; }
.sec-id { color: var(--faint); white-space: nowrap; justify-self: start; }
.sec-name { color: var(--gold-300); white-space: nowrap; justify-self: center; }
.sec-name .dec-glyph { color: var(--gold-300); }
.sec-pct { color: var(--gold-300); white-space: nowrap; justify-self: end; }
.sec-pct b { color: var(--faint); font-weight: 400; margin-right: .35em; }
.sec-pct em { font-style: normal; }
@media (max-width: 760px) { .sec-bar { left: 30px; right: 26px; font-size: .5rem; } .sec-bar .sec-id { display: none; } }

/* LEFT POSITION TAPE — fixed aircraft-altimeter section list */
.nav-tape { position: fixed; left: max(14px, var(--safe-l)); top: 16vh; height: 66vh; width: 78px; z-index: 60; pointer-events: none; font-family: var(--font-mono); }
.nt-rail { position: absolute; left: 8px; top: 0; bottom: 0; width: 1px; background: var(--line-gold); }
.nt-fill { position: absolute; left: 8px; top: 0; width: 1px; height: 0; background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); box-shadow: 0 0 6px var(--ribbon-glow); }
.nt-tick { position: absolute; left: 0; transform: translateY(-50%); display: flex; align-items: center; gap: 5px; opacity: .7; transition: opacity .3s var(--ease); }
.nt-tick i { width: 5px; height: 1px; background: var(--gold-300); margin-left: 5px; }
/* left-pointing arrow that lights when its section is active (replaces the number) */
.nt-arrow { width: 0; height: 0; flex: none; border-top: 3px solid transparent; border-bottom: 3px solid transparent;
  border-right: 5px solid var(--faint); transition: border-right-color .3s var(--ease), filter .3s var(--ease); }
.nt-tick u { font-size: .56rem; font-weight: 500; color: var(--muted); text-decoration: none; letter-spacing: .14em; }
.nt-tick.on { opacity: 1; }
.nt-tick.on i { width: 11px; background: var(--gold-100); box-shadow: 0 0 6px var(--glow-hot); }
.nt-tick.on .nt-arrow { border-right-color: var(--gold-100); filter: drop-shadow(0 0 4px var(--glow-hot)); }
.nt-tick.on u { color: var(--gold-300); }
.nt-marker { position: absolute; left: 1px; top: 0; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent;
  border-left: 7px solid var(--gold-100); transform: translateY(-50%); filter: drop-shadow(0 0 5px var(--glow-hot)); }
.nt-pct { position: absolute; left: 0; bottom: -1.7rem; font-size: .54rem; letter-spacing: .12em; color: var(--gold-300); }
@media (max-width: 980px) { .nav-tape { display: none; } }

/* the fixed corner HUD clusters are retired — the tape + section bars cover position/section */
.hud-cluster { display: none; }

/* hero compass heading tape (horizontal) — mounted ON the frame rect's top rail (.hero-td is inset:10%),
   so its baseline rests on that gold line instead of cutting across it */
.compass { position: absolute; left: 50%; top: 10%; transform: translate(-50%, -100%);
  width: min(1400px, 70vw); height: 24px; z-index: 3; pointer-events: none; overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  mask: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.compass .c-tick { position: absolute; bottom: 0; width: 1px; background: var(--gold-300); opacity: .5; }
.compass .c-lab { position: absolute; bottom: 13px; transform: translateX(-50%); font-family: var(--font-mono);
  font-size: .52rem; letter-spacing: .08em; color: var(--gold-300); }
/* heading needle — JS moves its left across the tape as the hero "slides" through (scroll) */
.compass .c-center { position: absolute; left: 0; bottom: 0; width: 2px; height: 100%; margin-left: -1px;
  background: var(--gold-100); box-shadow: 0 0 7px var(--glow-hot); transition: left .25s var(--ease-out); }
.compass .c-center::after { content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  border: 4px solid transparent; border-top-color: var(--gold-100); }

/* section divider hairline: add measured end-ticks */
.section::after { content:""; position:absolute; left:0; right:0; top:0; height:0; pointer-events:none; }
.section.lit::before { opacity: .55; }

/* scroll-cue gated so nothing animates idly during intro */
.scroll-cue i { animation: none; }
.scroll-cue.ready i { animation: cue 1.6s var(--ease) infinite; }

/* loader: route count/status through mono */
.loader-count, .loader-status { font-family: var(--font-mono); }

/* eyebrow tick draws as the first construction gesture */
.eyebrow-tick { transform: scaleX(0); transform-origin: left center; transition: transform .36s var(--ease-snap) .05s; }
.eyebrow.in .eyebrow-tick { transform: scaleX(1); }

/* no-JS: instruments that depend on a JS-added class still render finished */
html:not(.js) .eyebrow-tick,
html:not(.js) .measure-rule,
html:not(.js) .dim-line .dim-bar { transform: none; }
html:not(.js) .who-ruler { transform: scaleY(1); }
html:not(.js) .frame-brackets i { opacity: .8; transform: scale(1); }
html:not(.js) .hud-cluster { display: none; }
html:not(.js) .wv-v, html:not(.js) .wv-h { transform: none; }
html:not(.js) .loc-slide:first-child { opacity: .85; }

/* ============================================================
   INSTRUMENTATION — RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  /* below the 2-col breakpoint the curved path has no safe seam — swap to the edge rail */
  .ribbon-stage { display: none; }
  .ribbon-rail { display: block; }
  .dim-line { display: none; }
  .coord-chip { font-size: .52rem; }
  .stat-gauge { width: 38px; height: 38px; }
  /* cockpit edge chrome is desktop-only — the margins are too tight on phones */
  .edge-tag, .edge-rail, .compass { display: none; }
}
@media (max-width: 380px) {
  .hud-br { font-size: .54rem; }
  .ribbon-rail b { box-shadow: 0 0 8px 1px var(--glow-hot); }
  .spec-strip { gap: .3rem .6rem; }
}

/* ============================================================
   REDUCED MOTION — master clamp
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  [data-reveal] { opacity: 1 !important; filter: none !important; transform: none !important; clip-path: none !important; will-change: auto !important; }
  .media-scan, .leak, .ribbon-node, .ribbon-node-trail, .ribbon-head, .spark-particle { display: none !important; }
  /* instrument panel renders fully built & static */
  .measure-rule, .dim-line .dim-bar, .ribbon-rail i { transform: none !important; }
  .who-ruler { transform: scaleY(1) !important; }
  .frame-brackets i, .proto-brackets i { opacity: .8 !important; }
  .value-icon svg path, .value-icon svg circle, .value-icon svg rect { stroke-dashoffset: 0 !important; }
  .hud-cluster { opacity: .55 !important; clip-path: none !important; }
  .cta-term { opacity: 1 !important; transform: none !important; }
  .edge-tag, .edge-rail, .compass { opacity: .6 !important; }
  .edge-rail i { transform: none !important; }
  .wv-v, .wv-h { transform: none !important; }
  .loc-slide.on { transform: none !important; }
  .ribbon-path { stroke-dashoffset: 0 !important; }
  .gauge .g-val { stroke-dashoffset: var(--g-final, 0) !important; }
  .scroll-cue.ready i { animation: none !important; }
}
