/* 0-bro. Monochrome graphite, a single amber signal. A classified research lab. */

/* --- self-hosted fonts (latin subsets, OFL; preloaded in index.html) --- */
@font-face {
  font-family: "Fraunces"; font-style: normal; font-weight: 300 500; font-display: swap;
  src: url("/assets/fonts/fraunces-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Fraunces"; font-style: italic; font-weight: 300 400; font-display: swap;
  src: url("/assets/fonts/fraunces-italic-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Grotesk"; font-style: normal; font-weight: 300 700; font-display: swap;
  src: url("/assets/fonts/space-grotesk-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/space-mono-400.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Space Mono"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/space-mono-700.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #08080a;
  --bg-1: #0b0c0f;
  --bg-2: #101114;
  --panel: rgba(255, 255, 255, 0.022);
  --panel-2: rgba(255, 255, 255, 0.035);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.15);
  --bone: #ece9e2;
  --grey: #9a9aa6;
  --grey-dim: #61626c;
  --faint: #33343b;
  --signal: #e6ae5c;         /* the one hint of color */
  --signal-hot: #ffce85;
  --signal-glow: rgba(230, 174, 92, 0.5);
  --maxw: 1180px;
  --disp: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
::selection { background: rgba(230, 174, 92, 0.26); color: #fff; }

/* film grain + vignette + cursor spotlight, all fixed, non-interactive */
.fx { position: fixed; inset: 0; pointer-events: none; z-index: 90; }
.fx-grain {
  opacity: 0.5; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.42'/%3E%3C/svg%3E");
}
.fx-vignette { background: radial-gradient(120% 90% at 50% 22%, transparent 45%, rgba(0,0,0,0.55) 100%); }
.fx-spot {
  z-index: 89;
  background: radial-gradient(360px 360px at var(--mx, -100px) var(--my, -100px), rgba(230,174,92,0.05), transparent 70%);
  transition: background 0.12s linear;
}

/* --- layout --- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
section { position: relative; padding: 128px 0; }
section + section { border-top: 1px solid rgba(255,255,255,0.05); }

.eyebrow {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.34em;
  text-transform: uppercase; color: var(--signal);
  display: inline-flex; align-items: center; gap: 12px; margin: 0 0 26px;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: linear-gradient(90deg, var(--signal), transparent); }

h2.sec {
  font-family: var(--disp);
  font-optical-sizing: auto;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1.02; font-weight: 400; letter-spacing: -0.015em;
  margin: 0 0 24px; max-width: 17ch;
}
h2.sec em { font-style: italic; color: var(--signal); }
.lede { font-size: clamp(17px, 1.9vw, 20px); color: var(--grey); max-width: 60ch; margin: 0; }
.mono { font-family: var(--mono); }

/* --- top bar --- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(8,8,10,0.78), rgba(8,8,10,0));
}
.brand { font-family: var(--mono); font-weight: 700; letter-spacing: 0.02em; font-size: 15px; display: flex; align-items: center; gap: 11px; }
.brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px var(--signal-glow); animation: pulse 2.6s ease-in-out infinite; }
.navlinks { display: flex; gap: 30px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--grey); text-transform: uppercase; }
.navlinks a { position: relative; transition: color 0.2s; }
.navlinks a:hover { color: var(--bone); }
.navlinks a::after { content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px; background: var(--signal); transition: width 0.25s; }
.navlinks a:hover::after { width: 100%; }
@media (max-width: 760px) { .navlinks { display: none; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }

/* --- hero --- */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 0; border: 0; overflow: hidden; }
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.hero-fallback { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 0.6s; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(102deg, rgba(8,8,10,0.94) 0%, rgba(8,8,10,0.6) 32%, transparent 60%),
    linear-gradient(180deg, rgba(8,8,10,0.3) 0%, transparent 22%, transparent 58%, rgba(8,8,10,0.97) 100%);
}
.hero .wrap { position: relative; z-index: 3; }

.status-chip {
  display: inline-flex; align-items: center; gap: 11px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--grey); border: 1px solid var(--line); border-radius: 100px;
  padding: 8px 16px; margin-bottom: 34px; background: rgba(11,12,15,0.5);
}
.status-chip .live { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal-glow); animation: pulse 1.8s infinite; }

.wordmark {
  font-family: var(--disp); font-optical-sizing: auto;
  font-weight: 300; font-size: clamp(88px, 17vw, 240px);
  line-height: 0.82; letter-spacing: -0.05em; margin: 0; color: var(--bone);
}
.wordmark .z { font-style: italic; font-weight: 400; color: var(--signal); }
.tagline { font-family: var(--disp); font-size: clamp(21px, 3vw, 34px); font-weight: 300; font-style: italic; letter-spacing: -0.01em; margin: 30px 0 16px; max-width: 22ch; color: var(--bone); }
.subtag { font-size: clamp(15px, 1.7vw, 18px); color: var(--grey); max-width: 54ch; margin: 0 0 40px; }

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 14px 24px; border-radius: 2px; transition: transform 0.18s, box-shadow 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
  display: inline-flex; align-items: center; gap: 9px;
}
.btn-primary { background: var(--signal); color: #0a0a0c; font-weight: 700; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 34px var(--signal-glow); background: var(--signal-hot); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--bone); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }

.hero-meta { display: flex; gap: 40px; margin-top: 64px; flex-wrap: wrap; font-family: var(--mono); }
.hero-meta .m .v { font-size: 24px; font-weight: 700; color: var(--bone); letter-spacing: -0.01em; }
.hero-meta .m .k { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey-dim); margin-top: 4px; }

/* --- reveal --- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1), transform 0.8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; } .reveal.d3 { transition-delay: 0.24s; }

/* --- figure plate --- */
.plate { position: relative; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--bg-1); }
.plate img { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.15) contrast(1.04); opacity: 0.92; transition: transform 1.2s cubic-bezier(.2,.7,.2,1), opacity 0.6s; }
.plate:hover img { transform: scale(1.03); opacity: 1; }
.plate .cap { position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); background: rgba(8,8,10,0.55); padding: 5px 9px; border: 1px solid var(--line); backdrop-filter: blur(4px); }
.plate .cap b { color: var(--signal); font-weight: 400; }
.plate::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 90px rgba(0,0,0,0.6); pointer-events: none; }

/* live 3d field strip (mix section) */
.fieldstrip { position: relative; margin: 44px 0 0; aspect-ratio: 24 / 7; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: var(--bg-1); }
.fieldstrip canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; }
.mixfield-fallback { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: 0; filter: grayscale(0.15) contrast(1.04); transition: opacity 0.6s; }
.fieldstrip .cap { position: absolute; left: 14px; bottom: 12px; z-index: 2; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--grey); background: rgba(8,8,10,0.5); padding: 5px 9px; border: 1px solid var(--line); backdrop-filter: blur(4px); margin: 0; }
.fieldstrip .cap b { color: var(--signal); font-weight: 400; }
.fieldstrip::after { content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none; box-shadow: inset 0 0 100px rgba(0,0,0,0.7); }
@media (max-width: 640px) { .fieldstrip { aspect-ratio: 16 / 9; } }

/* two-column split (text + plate) */
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.split.rev { grid-template-columns: 0.85fr 1.15fr; }
.split.rev .col-text { order: 2; }
@media (max-width: 900px) { .split, .split.rev { grid-template-columns: 1fr; gap: 34px; } .split.rev .col-text { order: 0; } }

/* --- thesis tax table --- */
.tax { display: grid; gap: 14px; margin-top: 44px; }
.taxrow {
  display: grid; grid-template-columns: 46px 1fr 1fr; gap: 26px; align-items: start;
  padding: 26px 4px; border-top: 1px solid var(--line); transition: background 0.3s;
}
.taxrow:last-child { border-bottom: 1px solid var(--line); }
.taxrow:hover { background: rgba(255,255,255,0.012); }
.taxrow .n { font-family: var(--disp); font-size: 34px; color: var(--faint); font-weight: 300; line-height: 1; }
.taxrow .tax-name { color: var(--grey); }
.taxrow .tax-name b { color: var(--bone); font-weight: 500; }
.taxrow .fix { color: var(--bone); }
.taxrow .fix b { color: var(--signal); font-weight: 500; }
@media (max-width: 760px) { .taxrow { grid-template-columns: 34px 1fr; } .taxrow .fix { grid-column: 2; padding-top: 12px; border-top: 1px dashed var(--line); } }

/* --- the mix cards --- */
.mix { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
@media (max-width: 820px) { .mix { grid-template-columns: 1fr; } }
.card { position: relative; padding: 38px 36px 40px; background: var(--bg); transition: background 0.3s; overflow: hidden; }
.card:hover { background: var(--bg-1); }
.card .idx { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--grey-dim); text-transform: uppercase; }
.card .idx b { color: var(--signal); font-weight: 400; }
.card h3 { font-family: var(--disp); font-size: 26px; font-weight: 400; margin: 16px 0 8px; letter-spacing: -0.01em; }
.card .brain { font-family: var(--mono); font-size: 11.5px; color: var(--grey-dim); letter-spacing: 0.03em; margin-bottom: 16px; }
.card p { color: var(--grey); margin: 0; font-size: 15.5px; line-height: 1.66; }
.card::before { content: ""; position: absolute; left: 0; top: 0; height: 0; width: 2px; background: var(--signal); box-shadow: 0 0 18px var(--signal-glow); transition: height 0.4s cubic-bezier(.2,.7,.2,1); }
.card:hover::before { height: 100%; }

/* --- cortex (3d) section: tall scrub track, the scene pins while you scroll --- */
.cortex-sec { padding: 0; border: 0; height: 280vh; }
.cortex-pin { position: sticky; top: 0; height: 100vh; display: flex; align-items: center; overflow: hidden; }
#cortex { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.cortex-sec .fallback { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: 0; }
.cortex-pin::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(90% 90% at 70% 50%, transparent 30%, rgba(8,8,10,0.7) 100%); }
.cortex-sec .wrap { position: relative; z-index: 2; }
@media (max-width: 760px) { .cortex-sec { height: 220vh; } }
.cortex-sec .phase-label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--signal); margin-top: 20px; }

/* --- proof stat grid --- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 48px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }
.stat { padding: 32px 28px; background: var(--bg); }
.stat .big { font-family: var(--disp); font-size: clamp(38px, 5vw, 54px); font-weight: 300; letter-spacing: -0.02em; line-height: 1; color: var(--bone); }
.stat .big .u { font-size: 0.5em; color: var(--grey); font-family: var(--mono); }
.stat .lab { font-size: 14px; color: var(--grey); margin-top: 14px; line-height: 1.5; }
.stat .src { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--grey-dim); text-transform: uppercase; margin-top: 14px; }
.proof-note { margin-top: 28px; font-size: 13px; color: var(--grey-dim); font-family: var(--mono); line-height: 1.7; }

/* --- ladder --- */
.ladder { margin-top: 46px; }
.rung { display: grid; grid-template-columns: 96px 1fr auto; gap: 24px; align-items: baseline; padding: 24px 4px; border-top: 1px solid var(--line); transition: background 0.3s, padding-left 0.3s; }
.rung:last-child { border-bottom: 1px solid var(--line); }
.rung:hover { background: rgba(255,255,255,0.012); padding-left: 12px; }
.rung .id { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--bone); }
.rung .d h4 { font-family: var(--sans); margin: 0 0 5px; font-size: 17px; font-weight: 600; }
.rung .d p { margin: 0; color: var(--grey); font-size: 14.5px; }
.tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 12px; border-radius: 100px; white-space: nowrap; }
.tag.proven { color: var(--signal); border: 1px solid var(--signal-glow); background: rgba(230,174,92,0.06); }
.tag.gated { color: var(--grey); border: 1px solid var(--line-2); background: rgba(255,255,255,0.03); }
.tag.pending { color: var(--grey-dim); border: 1px solid var(--line); }
@media (max-width: 640px) { .rung { grid-template-columns: 62px 1fr; } .rung .tag { grid-column: 2; } }

/* --- compute --- */
.rig { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; margin-top: 46px; }
@media (max-width: 820px) { .rig { grid-template-columns: 1fr; } }
.rig .runs { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.runline { display: flex; justify-content: space-between; align-items: baseline; gap: 18px; padding: 20px 24px; background: var(--bg); font-family: var(--mono); }
.runline .name { color: var(--bone); font-size: 14px; }
.runline .name span { color: var(--grey-dim); font-size: 11px; display: block; text-transform: uppercase; letter-spacing: 0.1em; margin-top: 3px; }
.runline .fig { text-align: right; }
.runline .fig .t { color: var(--signal); font-weight: 700; font-size: 18px; }
.runline .fig .c { color: var(--grey); font-size: 13px; }
.rig .note { color: var(--grey); font-size: 15.5px; line-height: 1.7; }
.rig .note .callout { color: var(--signal); font-family: var(--mono); font-size: 12.5px; display: block; margin-top: 18px; padding: 14px 18px; border-left: 2px solid var(--signal); background: rgba(230,174,92,0.045); }

/* --- manifesto --- */
.manifesto { text-align: center; overflow: hidden; }
.manifesto .plate-bg { position: absolute; inset: 0; z-index: 0; background-size: cover; background-position: center; opacity: 0.18; filter: grayscale(0.4); }
.manifesto::after { content: ""; position: absolute; inset: 0; z-index: 1; background: radial-gradient(80% 80% at 50% 50%, transparent 30%, var(--bg) 100%); pointer-events: none; }
.manifesto .wrap { position: relative; z-index: 2; }
.manifesto .big-q { font-family: var(--disp); font-size: clamp(28px, 4.4vw, 52px); font-weight: 300; letter-spacing: -0.02em; line-height: 1.16; max-width: 20ch; margin: 0 auto 32px; }
.manifesto .big-q b { color: var(--signal); font-weight: 400; font-style: italic; }
.manifesto .sub { color: var(--grey); max-width: 54ch; margin: 0 auto 42px; }

/* --- footer --- */
footer { padding: 72px 0 80px; border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 34px; flex-wrap: wrap; }
.foot .col h5 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--grey-dim); margin: 0 0 16px; }
.foot .col a, .foot .col p { display: block; color: var(--grey); font-size: 14px; margin: 0 0 9px; transition: color 0.2s; }
.foot .col a:hover { color: var(--signal); }
.foot .sign { font-family: var(--disp); font-style: italic; font-size: 15px; color: var(--grey); }
.foot .sign b { color: var(--bone); font-weight: 400; font-style: normal; }

.secnum { position: absolute; top: 44px; right: 28px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em; color: var(--faint); z-index: 2; }

/* --- hero entrance choreography (once, on load) --- */
@keyframes hero-rise { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
#hero3d { animation: hero-fade 1.6s ease 0.05s backwards; }
.hero .status-chip { animation: hero-rise 0.7s cubic-bezier(.2,.7,.2,1) 0.1s backwards; }
.wordmark span { display: inline-block; animation: hero-rise 0.9s cubic-bezier(.2,.7,.2,1) backwards; }
.wordmark span:nth-child(1) { animation-delay: 0.16s; }
.wordmark span:nth-child(2) { animation-delay: 0.24s; }
.wordmark span:nth-child(3) { animation-delay: 0.32s; }
.hero .tagline { animation: hero-rise 0.8s cubic-bezier(.2,.7,.2,1) 0.46s backwards; }
.hero .subtag { animation: hero-rise 0.8s cubic-bezier(.2,.7,.2,1) 0.58s backwards; }
.hero .cta-row { animation: hero-rise 0.8s cubic-bezier(.2,.7,.2,1) 0.70s backwards; }
.hero .hero-meta { animation: hero-rise 0.8s cubic-bezier(.2,.7,.2,1) 0.84s backwards; }

/* --- tactile depth (pointer tilt, set by app.js on fine pointers only) --- */
.card, .stat, .plate { transform-style: preserve-3d; transition: background 0.3s, transform 0.55s cubic-bezier(.2,.7,.2,1); }
.card.tilt-on, .stat.tilt-on, .plate.tilt-on { transition: background 0.3s, transform 0.12s ease-out; }
.stat { position: relative; overflow: hidden; }
.card::after, .stat::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(460px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.07), transparent 60%);
}
.card.tilt-on::after, .stat.tilt-on::after { opacity: 1; }
.plate.tilt-on img { transform: translate3d(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 14px), 0) scale(1.06); opacity: 1; }

/* --- staggered child reveals --- */
@keyframes rise-in { from { opacity: 0; transform: translateY(24px); } }
.reveal:not(.in) :is(.card, .stat, .taxrow, .rung) { opacity: 0; }
.reveal.in :is(.card, .stat, .taxrow, .rung) { animation: rise-in 0.7s cubic-bezier(.2,.7,.2,1) backwards; }
.reveal.in :is(.card, .stat, .taxrow, .rung):nth-child(2) { animation-delay: 0.08s; }
.reveal.in :is(.card, .stat, .taxrow, .rung):nth-child(3) { animation-delay: 0.16s; }
.reveal.in :is(.card, .stat, .taxrow, .rung):nth-child(4) { animation-delay: 0.24s; }
.reveal.in :is(.card, .stat, .taxrow, .rung):nth-child(5) { animation-delay: 0.32s; }
.reveal.in :is(.card, .stat, .taxrow, .rung):nth-child(6) { animation-delay: 0.40s; }
.reveal.in :is(.card, .stat, .taxrow, .rung):nth-child(7) { animation-delay: 0.48s; }

/* --- reticle: instrument crosshair over the interactive canvases --- */
#mixfield, #cortex { cursor: none; }
.reticle {
  position: fixed; left: 0; top: 0; width: 26px; height: 26px; z-index: 95;
  pointer-events: none; opacity: 0; will-change: transform;
  border: 1px solid rgba(236, 233, 226, 0.55); border-radius: 50%;
  transition: opacity 0.22s, border-color 0.2s, box-shadow 0.2s;
}
.reticle::before, .reticle::after { content: ""; position: absolute; background: rgba(236, 233, 226, 0.55); transition: background 0.2s; }
.reticle::before { left: 50%; top: -7px; width: 1px; height: 38px; margin-left: -0.5px; }
.reticle::after { top: 50%; left: -7px; height: 1px; width: 38px; margin-top: -0.5px; }
.reticle.on { opacity: 1; }
.reticle.hot { border-color: var(--signal); box-shadow: 0 0 16px var(--signal-glow); }
.reticle.hot::before, .reticle.hot::after { background: var(--signal); }

/* --- proof sparklines: drawn when the stat grid reveals --- */
.spark { display: block; width: 120px; height: 26px; margin-top: 14px; overflow: visible; }
.spark path { fill: none; stroke: rgba(236, 233, 226, 0.35); stroke-width: 1.2; stroke-dasharray: var(--len, 300); stroke-dashoffset: var(--len, 300); }
.reveal.in .spark path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.3s cubic-bezier(.2,.7,.2,1) 0.55s; }
.spark circle { fill: var(--signal); opacity: 0; }
.reveal.in .spark circle { opacity: 1; transition: opacity 0.4s ease 1.75s; }

/* --- signal-trace spine: chart-recorder line down the left gutter --- */
.spine { position: absolute; top: 0; left: 0; width: 100%; z-index: -1; pointer-events: none; overflow: hidden; }
.spine svg { display: block; }
.spine-track { fill: none; stroke: rgba(236, 233, 226, 0.08); stroke-width: 1; }
.spine-trace { fill: none; stroke: rgba(236, 233, 226, 0.3); stroke-width: 1; }
.spine-pen { fill: var(--signal); filter: drop-shadow(0 0 6px rgba(230, 174, 92, 0.8)); transition: opacity 0.3s; }
@media (max-width: 1319px) { .spine { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal :is(.card, .stat, .taxrow, .rung) { opacity: 1 !important; }
  .cortex-sec { height: auto; min-height: 92vh; }
  .cortex-pin { position: relative; height: auto; min-height: 92vh; }
  .spine, .reticle { display: none !important; }
  .spark path { stroke-dashoffset: 0 !important; }
  .spark circle { opacity: 1 !important; }
}
