/* =============================================================================
   DHAN ASTRA — institutional showcase
   Near-black, champagne gold, sacred geometry, F1 blueprint.
   Cinzel (display) · Cormorant Garamond (serif) · Inter (sans) ·
   JetBrains Mono (data) · Tiro Devanagari Sanskrit (Sanskrit)
   ========================================================================== */
:root {
  --bg: #07070a; --bg-2: #0c0d12; --bg-3: #12141b; --bg-4: #181b24;
  --ink: #ece7dc; --ink-dim: #a39d92; --ink-faint: #8a857b;
  --gold: #d8b26e; --gold-hi: #f3dca0; --gold-deep: #a07c3a;
  --saffron: #e2873b; --red: #e5484d; --green: #5fbf8f; --blue: #7aa7d8;
  --line: rgba(216,178,110,0.18); --line-soft: rgba(236,231,220,0.08);
  --maxw: 1200px; --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --f-display: 'Cinzel', serif;
  --f-serif: 'Cormorant Garamond', Georgia, serif;
  --f-sans: 'Inter', system-ui, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, monospace;
  --f-dev: 'Tiro Devanagari Sanskrit', 'Nirmala UI', serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink); font-family: var(--f-sans); font-weight: 300;
  line-height: 1.6; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
@supports (overflow: clip) { body { overflow-x: clip; }
}
body.intro-lock { overflow: hidden; height: 100vh; }
[lang="sa"] { font-family: var(--f-dev); font-style: normal; }
em { font-style: italic; color: var(--gold-hi); }
code { font-family: var(--f-mono); font-size: 0.86em; color: var(--gold); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 2000; background: var(--gold); color: var(--bg);
  padding: 0.6rem 1rem; border-radius: 8px; font-family: var(--f-mono); font-size: 0.8rem; text-decoration: none; }
.skip:focus { top: 1rem; }
body::after { content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 0%, rgba(216,178,110,0.05), transparent 60%); }

/* ---------- intro ---------- */
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: radial-gradient(ellipse at center, #0b0b11 0%, #040406 72%);
  transition: opacity 1.1s var(--ease), visibility 1.1s; }
.intro.done { opacity: 0; visibility: hidden; pointer-events: none; }
#yantra { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.intro-glyph { position: relative; z-index: 2; text-align: center; opacity: 0; transform: scale(0.94);
  filter: blur(8px); transition: opacity 1.4s var(--ease), transform 2.2s var(--ease), filter 1.4s var(--ease); }
.intro-glyph.show { opacity: 1; transform: none; filter: none; }
.intro-glyph .sanskrit { font-size: clamp(2.6rem, 8vw, 5.4rem); color: var(--gold-hi); letter-spacing: 0.04em;
  text-shadow: 0 0 48px rgba(216,178,110,0.5); line-height: 1.3; }
.intro-word { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.3rem, 4vw, 2.5rem);
  letter-spacing: 0.42em; margin-right: -0.42em; margin-top: 0.4rem; }
.intro-sub { font-family: var(--f-mono); font-size: clamp(0.62rem, 1.4vw, 0.78rem); letter-spacing: 0.6em;
  margin-right: -0.6em; color: var(--gold); margin-top: 1rem; }
.intro-skip { position: absolute; bottom: 6%; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-dim); background: transparent; cursor: pointer; padding: 0.65rem 1.5rem;
  border: 1px solid var(--line); border-radius: 100px; transition: color .3s, border-color .3s, background .3s; }
.intro-skip:hover { color: var(--gold-hi); border-color: var(--gold); background: rgba(216,178,110,0.06); }

/* ---------- progress + nav ---------- */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-hi));
  transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(216,178,110,0.6); }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 1.1rem clamp(1.2rem, 4vw, 3rem);
  transition: background .4s, border-color .4s, padding .4s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7,7,10,0.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line); padding-top: 0.75rem; padding-bottom: 0.75rem; }
.nav-brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand-mark { font-size: 1.55rem; color: var(--gold); text-shadow: 0 0 18px rgba(216,178,110,0.45); line-height: 1; }
.brand-text { font-family: var(--f-display); font-weight: 600; letter-spacing: 0.28em; font-size: 0.86rem; }
.nav-links { display: flex; gap: clamp(0.8rem, 1.6vw, 1.7rem); }
.nav-links a { color: var(--ink-dim); text-decoration: none; font-size: 0.78rem; letter-spacing: 0.05em;
  position: relative; padding: 0.3rem 0; transition: color .3s; }
.nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0;
  background: var(--gold); transition: width .35s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  text-decoration: none; color: var(--bg); background: linear-gradient(135deg, var(--gold-hi), var(--gold-deep));
  padding: 0.6rem 1.3rem; border-radius: 100px; white-space: nowrap;
  box-shadow: 0 6px 24px rgba(216,178,110,0.22); transition: transform .3s var(--ease), box-shadow .3s; }
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(216,178,110,0.4); }
@media (max-width: 1080px) { .nav-links { display: none; } }

/* ---------- layout primitives ---------- */
main { position: relative; z-index: 2; }
.band { position: relative; max-width: var(--maxw); margin: 0 auto;
  padding: clamp(5rem, 11vw, 9rem) clamp(1.2rem, 4vw, 2rem); }
.section-head { max-width: 780px; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.kicker { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.1rem; }
.kicker [lang="sa"] { letter-spacing: 0.05em; font-size: 1.05em; text-transform: none; }
.section-head h2 { font-family: var(--f-serif); font-weight: 500; font-size: clamp(2.1rem, 5.4vw, 3.6rem);
  line-height: 1.06; letter-spacing: -0.01em; }
.section-lede { font-family: var(--f-serif); font-size: clamp(1.08rem, 2vw, 1.32rem); color: var(--ink-dim);
  margin-top: 1.2rem; line-height: 1.55; font-weight: 400; }
.btn { display: inline-block; font-family: var(--f-mono); font-size: 0.8rem; letter-spacing: 0.1em;
  text-decoration: none; padding: 0.95rem 1.8rem; border-radius: 100px; cursor: pointer; border: 0;
  transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s, border-color .3s; }
.btn-gold { color: var(--bg); background: linear-gradient(135deg, var(--gold-hi), var(--gold-deep));
  box-shadow: 0 8px 30px rgba(216,178,110,0.28); }
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 14px 40px rgba(216,178,110,0.45); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-hi); background: rgba(216,178,110,0.05); }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden;
  padding: 7rem clamp(1.2rem, 4vw, 3rem) 5rem; }
.hero-gl { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.hero-vignette { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgba(7,7,10,0.92) 0%, rgba(7,7,10,0.55) 46%, rgba(7,7,10,0) 72%),
              linear-gradient(0deg, var(--bg) 0%, transparent 22%); }
.hero-inner { position: relative; z-index: 3; max-width: 760px; }
.hero-eyebrow { font-family: var(--f-serif); font-style: italic; font-size: 1.08rem; color: var(--gold);
  margin-bottom: 1.5rem; }
.hero-title { font-family: var(--f-serif); font-weight: 500; font-size: clamp(2.7rem, 8vw, 5.6rem);
  line-height: 1.02; letter-spacing: -0.02em; }
.hero-lede { font-family: var(--f-serif); font-size: clamp(1.12rem, 2.2vw, 1.42rem); color: var(--ink-dim);
  max-width: 620px; margin-top: 1.8rem; line-height: 1.55; }
.hero-actions { display: flex; gap: 1rem; margin-top: 2.4rem; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(4, auto); gap: clamp(1.4rem, 4vw, 3.2rem); margin-top: 3.4rem; }
.stat { display: flex; flex-direction: column-reverse; }
.stat dd { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.9rem);
  color: var(--gold-hi); line-height: 1; font-variant-numeric: tabular-nums; }
.stat dt { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint); margin-top: 0.55rem; }
.hero .hero-eyebrow, .hero .hero-title, .hero .hero-lede, .hero .hero-actions, .hero .hero-stats { opacity: 0; transform: translateY(26px); }
body.ready .hero .hero-eyebrow, body.ready .hero .hero-title, body.ready .hero .hero-lede,
body.ready .hero .hero-actions, body.ready .hero .hero-stats { animation: riseIn 1.1s var(--ease) forwards; }
body.ready .hero .hero-title { animation-delay: .12s; } body.ready .hero .hero-lede { animation-delay: .26s; }
body.ready .hero .hero-actions { animation-delay: .4s; } body.ready .hero .hero-stats { animation-delay: .55s; }
@keyframes riseIn { to { opacity: 1; transform: none; } }
@media (max-width: 640px) { .hero-stats { grid-template-columns: repeat(2, auto); } }
.scroll-cue { position: absolute; bottom: 2.2rem; left: 50%; transform: translateX(-50%); z-index: 3;
  font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--ink-faint); text-align: center; }
.scroll-cue span { display: block; width: 1px; height: 42px; margin: 0 auto 0.6rem;
  background: linear-gradient(var(--gold), transparent); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0%, 100% { opacity: .3; transform: scaleY(.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- the astra (myth) ---------- */
.astra-myth { border-top: 1px solid var(--line-soft); }
.myth-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.myth-text p { font-family: var(--f-serif); font-size: clamp(1.1rem, 1.9vw, 1.3rem); color: var(--ink-dim);
  line-height: 1.65; margin-bottom: 1.2rem; }
.myth-text .myth-turn { color: var(--ink); border-left: 2px solid var(--gold); padding-left: 1.2rem; }
.shloka { text-align: center; padding: clamp(2rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 20px;
  background: radial-gradient(ellipse at 50% 0%, rgba(216,178,110,0.09), transparent 70%), var(--bg-2); }
.sl-dev { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--gold-hi); line-height: 1.6;
  text-shadow: 0 0 30px rgba(216,178,110,0.35); }
.sl-iast { font-family: var(--f-serif); font-style: italic; color: var(--gold); margin-top: 0.6rem; font-size: 1.05rem; }
.shloka figcaption { margin-top: 1.4rem; font-family: var(--f-serif); font-size: 1.25rem; }
.shloka cite { display: block; font-family: var(--f-mono); font-style: normal; font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.6rem; }
.sl-note { margin-top: 1.4rem; padding-top: 1.2rem; border-top: 1px solid var(--line-soft); color: var(--ink-dim); font-size: 0.92rem; }
@media (max-width: 860px) { .myth-grid { grid-template-columns: 1fr; } }

/* ---------- vows ---------- */
.vows-band { border-top: 1px solid var(--line-soft); }
.vows { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 3vw, 2.2rem); }
.vow { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border: 1px solid var(--line-soft);
  border-radius: 18px; padding: 2.3rem 2rem; display: flex; flex-direction: column;
  transition: border-color .4s, transform .4s var(--ease); }
.vow:hover { border-color: var(--line); transform: translateY(-4px); }
.vow-glyph { width: 74px; height: 74px; fill: none; stroke: var(--gold); stroke-width: 1.4; }
.vow-glyph .dot { fill: var(--gold-hi); stroke: none; filter: drop-shadow(0 0 6px rgba(243,220,160,0.8)); }
.vow-sk { margin-top: 1.4rem; color: var(--gold); font-size: 1.05rem; }
.vow h3 { font-family: var(--f-serif); font-weight: 500; font-size: 1.6rem; margin: 0.4rem 0 0.8rem; }
.vow p { color: var(--ink-dim); font-size: 0.97rem; flex: 1; }
.vow blockquote { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid var(--line-soft);
  color: var(--gold-hi); font-size: 1.3rem; }
.vow blockquote span { display: block; font-family: var(--f-serif); font-style: italic; color: var(--ink-faint);
  font-size: 0.95rem; margin-top: 0.3rem; }
@media (max-width: 900px) { .vows { grid-template-columns: 1fr; } }

/* ---------- THE CAR ---------- */
.car { border-top: 1px solid var(--line-soft); }
.car-head { padding-bottom: 2rem; }
.car-scrolly { position: relative; }
.car-graphic { position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: radial-gradient(ellipse at 40% 50%, rgba(18,24,38,0.9), var(--bg) 70%); }
.car-grid { position: absolute; inset: 0; opacity: 0.5;
  background-image: linear-gradient(rgba(122,167,216,0.07) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(122,167,216,0.07) 1px, transparent 1px);
  background-size: 48px 48px; mask-image: radial-gradient(ellipse at 45% 50%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 45% 50%, #000 30%, transparent 75%); }
.car-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.car-svg .cp path, .car-svg .cp rect { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round;
  stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.6s var(--ease), stroke .5s, opacity .5s; }
.car-svg.drawn .cp path, .car-svg.drawn .cp rect { stroke-dashoffset: 0; }
/* After the draw-in, drop the dash and keep hairlines constant under camera zoom. */
.car-svg.settled .cp path, .car-svg.settled .cp rect { stroke-dasharray: none; vector-effect: non-scaling-stroke; }
.car-svg .cp.detail path, .car-svg .cp .tread, .car-svg .cp.arm path { stroke-width: 1; stroke: rgba(216,178,110,0.55); }
.car-svg .cp.plate path { stroke-width: 3; }
.car-svg .cp.halo path { stroke: var(--gold-hi); stroke-width: 2.2; }
.car-svg .tyre .heat { opacity: 0; transition: opacity .6s; }
.car-svg .tyre .hub { fill: var(--gold); }
.car-svg .axis { stroke: rgba(122,167,216,0.35); stroke-width: 1; stroke-dasharray: 14 6 3 6; fill: none; vector-effect: non-scaling-stroke; }
.car-svg .lbl { font-family: var(--f-mono); font-size: 12px; letter-spacing: 2px; fill: rgba(122,167,216,0.75); }
.car-svg .lbl.dim { fill: rgba(122,167,216,0.45); }
.car-svg .xray { opacity: 0; transition: opacity .7s; }
.car-svg .xray circle, .car-svg .xray .block, .car-svg .xray rect { fill: rgba(216,178,110,0.06); stroke: var(--gold-hi);
  stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.car-svg .xray .flow { stroke: var(--saffron); stroke-width: 2; stroke-dasharray: 6 8; fill: none;
  vector-effect: non-scaling-stroke; }
.car-svg[data-active="pu"] .turbo .spin { animation: spin 0.6s linear infinite; }
.car-svg .turbo .spin path { stroke: var(--gold-hi); stroke-width: 1; vector-effect: non-scaling-stroke; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flowDash { to { stroke-dashoffset: -28; } }
/* streamlines, sensors, packets, pit wall */
.car-svg .stream path { fill: none; stroke: rgba(122,167,216,0.32); stroke-width: 1.1; stroke-dasharray: 10 18;
  vector-effect: non-scaling-stroke; }
.car-svg .stream { opacity: 0.18; transition: opacity .8s; }
@keyframes streamFlow { to { stroke-dashoffset: -56; } }
.car-svg .sensors, .car-svg .packets, .car-svg .pitwall, .car-svg .redflag, .car-svg .tag { opacity: 0; transition: opacity .6s; }
.car-svg .sensors .node { fill: var(--gold-hi); }
.car-svg .sensors .ping { fill: none; stroke: var(--gold-hi); stroke-width: 1; vector-effect: non-scaling-stroke;
  transform-box: fill-box; transform-origin: center; }
@keyframes ping { 0% { transform: scale(0.3); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
.car-svg .packets circle { fill: var(--gold-hi); filter: drop-shadow(0 0 4px rgba(243,220,160,0.9)); }
.car-svg .pitwall path { stroke: var(--gold); stroke-width: 2; vector-effect: non-scaling-stroke; }
.car-svg .pitwall text, .car-svg .tag { font-family: var(--f-mono); font-size: 13px; letter-spacing: 2px; fill: var(--gold-hi); }
.car-svg .redflag rect { fill: rgba(229,72,77,0.16); stroke: var(--red); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.car-svg .redflag text { font-family: var(--f-mono); font-size: 11px; letter-spacing: 1px; fill: #ff9a9d; }
#car-flap { transition: transform .9s var(--ease); transform-box: fill-box; transform-origin: 100% 50%; }
#carBody.return { animation: carReturn .9s var(--ease); }
@keyframes carReturn { from { transform: translateX(-1600px); } to { transform: none; } }

/* chapter states: dim everything, light the active part */
.car-svg[data-active]:not([data-active="all"]):not([data-active="launch"]) .cp { opacity: 0.22; }
.car-svg[data-active="sensors"] [data-part~="sensors"], .car-svg[data-active="pu"] [data-part~="pu"],
.car-svg[data-active="cockpit"] [data-part~="cockpit"], .car-svg[data-active="aero"] [data-part~="aero"],
.car-svg[data-active="tyres"] [data-part~="tyres"], .car-svg[data-active="drs"] [data-part~="drs"],
.car-svg[data-active="halo"] [data-part~="halo"] { opacity: 1 !important; filter: url(#carGlow); }
.car-svg[data-active="sensors"] [data-part~="sensors"] path { stroke: var(--gold-hi); }
.car-svg[data-active="pu"] .xray { opacity: 1; }
.car-svg[data-active="aero"] .stream { opacity: 1; }
.car-svg[data-active="aero"] .stream path { animation: streamFlow 1.4s linear infinite; }
.car-svg[data-active="sensors"] .sensors .ping { animation: ping 1.8s var(--ease) infinite; }
.car-svg[data-active="pu"] .xray .flow { animation: flowDash 0.9s linear infinite; }
.car-svg[data-active]:not([data-active="all"]):not([data-active="launch"]) .lbl { opacity: 0; }
.car-svg .lbl { transition: opacity .5s; }
.car-svg[data-active="aero"] .stream path { stroke: rgba(150,196,240,0.75); }
.car-svg[data-active="tyres"] .tyre .heat { opacity: 1; animation: heat 1.6s ease-in-out infinite alternate; }
@keyframes heat { from { opacity: .55; } to { opacity: 1; } }
.car-svg[data-active="drs"] #car-flap { transform: translateX(-8px) scaleX(1.25); }
.car-svg[data-active="drs"] .cp[data-part~="drs"] path { stroke: var(--gold-hi); }
.car-svg[data-active="halo"] .redflag { opacity: 1; }
.car-svg[data-active="cockpit"] .cp[data-part~="cockpit"] path, .car-svg[data-active="halo"] .cp[data-part~="halo"] path { stroke: var(--gold-hi); }
.car-svg[data-active="drs"] .tag { opacity: 1; }

/* HUD, start lights, chapter dots */
.car-hud { position: absolute; left: clamp(1.2rem, 4vw, 3rem); top: 5.4rem; display: flex; gap: 1rem; align-items: center;
  font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.18em; color: rgba(150,196,240,0.85); }
#carHudMode { padding: 0.25rem 0.6rem; border: 1px solid rgba(122,167,216,0.4); border-radius: 4px; color: var(--gold-hi); }
.lights { position: absolute; left: 50%; top: 13%; transform: translateX(-50%); display: flex; gap: 14px;
  opacity: 0; transition: opacity .5s; }
.car-graphic.grid-start .lights { opacity: 1; }
.lights i { width: 30px; height: 30px; border-radius: 50%; background: #1c0d0e; border: 2px solid #3a2224;
  box-shadow: inset 0 0 8px #000; transition: background .08s, box-shadow .08s; }
.lights i.on { background: radial-gradient(circle at 40% 35%, #ff8a8d, #e5484d 45%, #8e1d21);
  box-shadow: 0 0 22px rgba(229,72,77,0.9), 0 0 60px rgba(229,72,77,0.45); }
.lights-out { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(.9);
  font-family: var(--f-display); font-weight: 800; font-size: clamp(2.2rem, 7vw, 5.5rem); letter-spacing: 0.2em;
  color: var(--gold-hi); opacity: 0; pointer-events: none; text-shadow: 0 0 40px rgba(243,220,160,0.6); white-space: nowrap; }
.lights-out.show { animation: lightsOut 2.4s var(--ease) forwards; }
@keyframes lightsOut { 0% { opacity: 0; transform: translate(-50%,-50%) scale(1.25); filter: blur(10px); }
  18% { opacity: 1; transform: translate(-50%,-50%) scale(1); filter: none; } 70% { opacity: 1; } 100% { opacity: 0; } }
.car-dots { position: absolute; left: clamp(1.2rem, 4vw, 3rem); bottom: 2rem; display: flex; gap: 0.5rem; list-style: none; }
.car-dots li { font-family: var(--f-mono); font-size: 0.62rem; color: var(--ink-faint); padding: 0.2rem 0.45rem;
  border: 1px solid var(--line-soft); border-radius: 4px; transition: all .4s; }
.car-dots li.on { color: var(--bg); background: var(--gold); border-color: var(--gold); }

/* the scrolling chapter cards */
.car-steps { position: relative; z-index: 2; margin-top: -100vh; pointer-events: none; }
.car-step { min-height: 100vh; display: flex; align-items: center; justify-content: flex-end;
  padding: 6rem clamp(1.2rem, 4vw, 3rem); }
.car-step-last { min-height: 120vh; }
.cs-card { pointer-events: auto; width: min(440px, 100%); background: rgba(10,11,16,0.82);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 1.8rem 1.9rem; opacity: 0.25; background: rgba(10,11,16,0.93); transform: translateY(24px);
  transition: opacity .6s var(--ease), transform .6s var(--ease), border-color .6s; }
.car-step.active .cs-card { opacity: 1; transform: none; border-color: rgba(216,178,110,0.38); }
.cs-n { font-family: var(--f-display); font-weight: 700; font-size: 0.9rem; color: var(--gold); letter-spacing: 0.2em; }
.cs-f1, .cs-da { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  margin-top: 0.9rem; color: rgba(150,196,240,0.9); }
.cs-da { color: var(--gold-hi); }
.cs-f1 b, .cs-da b { display: inline-block; padding: 0.1rem 0.4rem; margin-right: 0.5rem; border-radius: 3px;
  background: rgba(122,167,216,0.16); color: #cfe3fa; font-weight: 500; }
.cs-da b { background: rgba(216,178,110,0.18); color: var(--gold-hi); }
.cs-card h3 { font-family: var(--f-serif); font-weight: 500; font-size: 1.6rem; line-height: 1.15; margin: 0.5rem 0 0.6rem; }
.cs-card p { font-size: 0.92rem; color: var(--ink-dim); }
.cs-becomes { font-family: var(--f-serif); font-style: italic; color: var(--ink-faint); margin: 0.9rem 0 0; font-size: 1rem;
  display: flex; align-items: center; gap: 0.6rem; }
.cs-becomes::before, .cs-becomes::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.cs-facts { list-style: none; margin-top: 1rem; display: grid; gap: 0.35rem; }
.cs-facts li { font-family: var(--f-mono); font-size: 0.74rem; color: var(--ink-dim); padding-left: 1rem; position: relative; }
.cs-facts li::before { content: '◆'; position: absolute; left: 0; color: var(--gold); font-size: 0.6rem; top: 0.15rem; }
.cs-facts b { color: var(--gold-hi); font-weight: 500; }
.cs-card .btn { margin-top: 1.4rem; }
@media (max-width: 980px) {
  .car-graphic { top: 56px; height: 44vh; z-index: 3; box-shadow: 0 18px 30px rgba(7,7,10,0.9); }
  .car-steps { margin-top: 0; }
  .car-step { min-height: 78vh; align-items: flex-start; justify-content: center; padding: 1.4rem 1rem 2rem; }
  .car-step-last { min-height: 90vh; }
  .cs-card { width: 100%; max-width: 560px; opacity: 0.35; }
  .car-hud { top: 0.8rem; font-size: 0.58rem; gap: 0.6rem; } .car-dots { display: none; }
  .lights { top: 8%; gap: 8px; } .lights i { width: 20px; height: 20px; }
}

/* ---------- race weekend ---------- */
.weekend { border-top: 1px solid var(--line-soft); }
.weekend-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.circuit-wrap { position: relative; border: 1px solid var(--line-soft); border-radius: 20px; padding: 1rem;
  background: radial-gradient(ellipse at 50% 40%, rgba(18,24,38,0.85), var(--bg-2)); position: sticky; top: 6rem; }
#circuit { width: 100%; height: auto; display: block; overflow: visible; }
#circuit .track-base { fill: none; stroke: #1c2030; stroke-width: 22; stroke-linejoin: round; }
#circuit .track-edge { fill: none; stroke: rgba(216,178,110,0.35); stroke-width: 1; stroke-dasharray: 2 6; }
#circuit .sector { fill: none; stroke: rgba(216,178,110,0.12); stroke-width: 22; stroke-linecap: butt; transition: stroke .5s; }
#circuit .sector.on { stroke: rgba(216,178,110,0.42); filter: drop-shadow(0 0 10px rgba(216,178,110,0.6)); }
#circuit .smark circle { fill: var(--bg); stroke: var(--gold-deep); stroke-width: 1.2; transition: all .4s; }
#circuit .smark text { font-family: var(--f-mono); font-size: 10px; fill: var(--ink-dim); }
#circuit .smark.on circle { fill: var(--gold); stroke: var(--gold-hi); }
#circuit .smark.on text { fill: var(--bg); font-weight: 600; }
#circuit .startline { stroke: var(--ink); stroke-width: 3; stroke-dasharray: 3 3; }
#circuit #trail circle { fill: var(--gold-hi); }
#lapCar { fill: #fff6dc; filter: drop-shadow(0 0 8px rgba(243,220,160,1)) drop-shadow(0 0 22px rgba(216,178,110,0.8)); }
.lap-hud { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 0.72rem;
  letter-spacing: 0.16em; color: var(--gold-hi); padding: 0.4rem 0.6rem 0; }
.phases { list-style: none; display: grid; gap: 0.7rem; counter-reset: ph; }
.phases li { border: 1px solid var(--line-soft); border-left: 2px solid var(--gold-deep); border-radius: 12px;
  padding: 1rem 1.2rem; background: var(--bg-2); cursor: pointer; transition: border-color .4s, background .4s, transform .4s var(--ease); }
.phases li.on { border-color: var(--line); border-left-color: var(--gold-hi); background: var(--bg-3); transform: translateX(6px); }
.phases b { font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.phases span { display: block; font-family: var(--f-serif); font-size: 1.3rem; margin-top: 0.2rem; }
.phases p { font-size: 0.86rem; color: var(--ink-dim); margin-top: 0.3rem; }
.weekend-quote { margin-top: 3rem; text-align: center; }
.weekend-quote div { font-size: clamp(1.5rem, 3vw, 2rem); color: var(--gold-hi); }
.weekend-quote figcaption { font-family: var(--f-serif); font-style: italic; color: var(--ink-dim); margin-top: 0.5rem; font-size: 1.1rem; }
@media (max-width: 900px) { .weekend-grid { grid-template-columns: 1fr; } .circuit-wrap { position: relative; top: 0; } }

/* ---------- ALTRON yantra ---------- */
.altron { border-top: 1px solid var(--line-soft); }
.altron-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: center; }
.ay-wrap { aspect-ratio: 1; max-width: 560px; width: 100%; margin: 0 auto; }
#altronYantra { width: 100%; height: 100%; overflow: visible; }
#altronYantra .ring path { fill: none; stroke: rgba(216,178,110,0.5); stroke-width: 0.28; stroke-linejoin: round; transition: stroke .45s, opacity .45s; cursor: pointer; }
#altronYantra.focus .ring { opacity: 0.32; transition: opacity .45s; }
#altronYantra .ring.on { opacity: 1; }
#altronYantra .ring.on path { stroke: var(--gold-hi); stroke-width: 0.5; filter: drop-shadow(0 0 1.2px rgba(243,220,160,0.9)); }
#altronYantra .bindu circle { fill: var(--gold-hi); }
#altronYantra .bindu .halo { fill: rgba(243,220,160,0.25); }
#altronYantra .bindu.on .halo { animation: bloom 1.6s ease-in-out infinite alternate; }
@keyframes bloom { from { r: 2.2; opacity: .5; } to { r: 4.2; opacity: 1; } }
.ay-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.2rem; }
.ay-tabs button, .lab-tabs button { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--ink-dim);
  background: transparent; border: 1px solid var(--line-soft); border-radius: 100px; padding: 0.45rem 0.85rem; cursor: pointer; transition: all .3s; }
.ay-tabs button:hover, .lab-tabs button:hover { color: var(--ink); border-color: var(--line); }
.ay-tabs button[aria-selected="true"], .lab-tabs button[aria-selected="true"] { color: var(--bg); background: var(--gold); border-color: var(--gold); }
.ay-card { border: 1px solid var(--line); border-radius: 18px; padding: 1.8rem; background: linear-gradient(180deg, var(--bg-2), var(--bg)); min-height: 290px; }
.ay-av { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--gold); }
.ay-card h3 { font-family: var(--f-serif); font-weight: 500; font-size: 1.9rem; margin: 0.5rem 0 0.6rem; }
.ay-card p { color: var(--ink-dim); font-size: 0.95rem; }
@media (max-width: 900px) { .altron-grid { grid-template-columns: 1fr; } }

/* taskforce roster */
.taskforce { margin-top: clamp(3rem, 7vw, 5rem); }
.tf-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.tf-head h3 { font-family: var(--f-serif); font-weight: 500; font-size: 1.7rem; }
.tf-head figure { text-align: right; }
.tf-head figure span { font-size: 1.25rem; color: var(--gold-hi); }
.tf-head figcaption { font-family: var(--f-serif); font-style: italic; color: var(--ink-faint); font-size: 0.95rem; }
.tf-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 0.6rem; }
.tf-grid li { border: 1px solid var(--line-soft); border-radius: 10px; padding: 0.75rem 0.9rem; background: var(--bg-2);
  display: flex; flex-direction: column; gap: 0.2rem; transition: border-color .3s, transform .3s var(--ease); }
.tf-grid li:hover { border-color: var(--line); transform: translateY(-2px); }
.tf-grid code { font-size: 0.78rem; color: var(--gold-hi); }
.tf-grid span { font-family: var(--f-mono); font-size: 0.64rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); }
.tf-grid li.dark { border-style: dashed; background: transparent; }
.tf-grid li.dark code { color: var(--ink-faint); }
.tf-note { margin-top: 1rem; color: var(--ink-faint); font-size: 0.85rem; max-width: 820px; }

/* ---------- mathematics ---------- */
.maths { border-top: 1px solid var(--line-soft); }
.eq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
.eq-card { border: 1px solid var(--line-soft); border-radius: 16px; padding: 1.7rem 1.8rem;
  background: linear-gradient(180deg, var(--bg-2), var(--bg)); display: flex; flex-direction: column;
  transition: border-color .4s, transform .4s var(--ease); }
.eq-card:hover { border-color: var(--line); transform: translateY(-3px); }
.eq-card h3 { font-family: var(--f-serif); font-weight: 500; font-size: 1.45rem; margin-bottom: 0.9rem; }
.eq { font-family: var(--f-serif); font-size: 1.32rem; color: var(--gold-hi); background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1rem; display: flex; align-items: center; flex-wrap: wrap; gap: 0.4rem; line-height: 1.4; }
.eq-sm { font-family: var(--f-mono); font-size: 0.82rem; display: block; line-height: 1.9; }
.frac { display: inline-flex; flex-direction: column; text-align: center; vertical-align: middle; margin: 0 0.15rem; }
.frac > span:first-child { border-bottom: 1px solid var(--gold); padding: 0 0.35rem 0.1rem; }
.frac > span:last-child { padding: 0.1rem 0.35rem 0; }
.eq sub, .eq sup { font-size: 0.65em; }
.eq, .readout dd, .classification td, .phases b, .stat dd, .r-stats dd { font-variant-numeric: lining-nums tabular-nums; font-feature-settings: 'lnum' 1; }
.eq-card p { color: var(--ink-dim); font-size: 0.9rem; flex: 1; }
.eq-card pre { margin-top: 1rem; background: #05060a; border: 1px solid var(--line-soft); border-radius: 8px; padding: 0.7rem 0.8rem; overflow-x: auto; }
.eq-card pre code { font-size: 0.74rem; color: #c9d7ea; white-space: pre; }
.src { font-family: var(--f-mono); font-size: 0.68rem; color: var(--ink-faint); margin-top: 0.7rem; letter-spacing: 0.04em; }
@media (max-width: 860px) { .eq-grid { grid-template-columns: 1fr; } }

/* ---------- research ---------- */
.research { border-top: 1px solid var(--line-soft); }
.r-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.4rem; }
.r-stats div { border: 1px solid var(--line-soft); border-radius: 14px; padding: 1.2rem 1.3rem; background: var(--bg-2); display: flex; flex-direction: column-reverse; }
.r-stats dd { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.r-stats dt { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.4rem; }
@media (max-width: 860px) { .r-stats { grid-template-columns: repeat(2, 1fr); } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-2); }
.classification { width: 100%; border-collapse: collapse; min-width: 760px; }
.classification caption { text-align: left; padding: 1rem 1.3rem; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--gold); border-bottom: 1px solid var(--line); }
.classification th, .classification td { padding: 0.85rem 1.1rem; text-align: left; border-bottom: 1px solid var(--line-soft); font-size: 0.86rem; vertical-align: top; }
.classification thead th { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); font-weight: 400; }
.classification tbody th { font-family: var(--f-serif); font-size: 1.08rem; font-weight: 500; color: var(--ink); }
.classification tbody th small { display: block; font-family: var(--f-sans); font-size: 0.78rem; color: var(--ink-faint); font-weight: 300; margin-top: 0.15rem; }
.classification td { font-family: var(--f-mono); color: var(--ink-dim); white-space: nowrap; }
.classification td:last-child { white-space: normal; color: var(--ink-faint); }
.classification tr:last-child th, .classification tr:last-child td { border-bottom: 0; }
.pill { display: inline-block; font-size: 0.66rem; letter-spacing: 0.12em; padding: 0.15rem 0.5rem; border-radius: 4px; margin-right: 0.6rem; font-weight: 600; }
.pill.dnf { background: rgba(226,135,59,0.14); color: var(--saffron); border: 1px solid rgba(226,135,59,0.35); }
.pill.dsq { background: rgba(229,72,77,0.12); color: #ff8f93; border: 1px solid rgba(229,72,77,0.35); }
.karna { margin: 2.4rem auto 0; max-width: 820px; text-align: center; }
.karna p { font-family: var(--f-serif); font-size: clamp(1.15rem, 2vw, 1.4rem); color: var(--ink-dim); font-style: italic; line-height: 1.6; }

/* ---------- operations ---------- */
.ops { border-top: 1px solid var(--line-soft); }
.pipe { position: relative; margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.pipe-svg { position: absolute; left: 0; right: 0; top: 0; width: 100%; height: 140px; pointer-events: none; }
.pipe-svg path { stroke: var(--line); stroke-width: 2; fill: none; }
.pipe-svg circle { fill: var(--gold-hi); filter: drop-shadow(0 0 6px rgba(243,220,160,0.9)); }
.pipe-svg circle.refused { fill: var(--saffron); }
.pipe-nodes { list-style: none; display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.5rem; position: relative; padding-top: 34px; }
.pipe-nodes li { text-align: center; border: 1px solid var(--line-soft); border-radius: 12px; padding: 0.9rem 0.4rem; background: var(--bg-2);
  transition: border-color .25s, box-shadow .25s, background .25s; min-height: 72px; }
.pipe-nodes li.lit { border-color: var(--gold); box-shadow: 0 0 22px rgba(216,178,110,0.22); background: var(--bg-3); }
.pipe-nodes b { display: block; font-family: var(--f-serif); font-size: 1.05rem; font-weight: 500; }
.pipe-nodes span { font-family: var(--f-mono); font-size: 0.62rem; color: var(--ink-faint); letter-spacing: 0.04em; }
@media (max-width: 900px) { .pipe-svg { display: none; } .pipe-nodes { grid-template-columns: repeat(2, 1fr); padding-top: 0; } }
.ops-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.day { list-style: none; position: relative; padding-left: 1.6rem; }
.day::before { content: ''; position: absolute; left: 5px; top: 0.4rem; bottom: 0.4rem; width: 1px; background: linear-gradient(var(--gold), var(--line-soft)); }
.day li { position: relative; padding: 0 0 1.6rem; }
.day li::before { content: ''; position: absolute; left: -1.6rem; top: 0.38rem; width: 11px; height: 11px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--gold); box-shadow: 0 0 10px rgba(216,178,110,0.4); }
.day time { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.14em; color: var(--gold); }
.day h4 { font-family: var(--f-serif); font-weight: 500; font-size: 1.35rem; margin: 0.15rem 0 0.3rem; }
.day p { color: var(--ink-dim); font-size: 0.9rem; }
.desk-card { border: 1px solid var(--line); border-radius: 20px; padding: 1.9rem; position: sticky; top: 6rem;
  background: radial-gradient(ellipse at 50% 0%, rgba(216,178,110,0.08), transparent 60%), var(--bg-2); }
.dc-k { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); }
.desk-card h3 { font-family: var(--f-serif); font-weight: 500; font-size: 1.7rem; margin: 0.4rem 0 0.7rem; line-height: 1.15; }
.desk-card > p { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 1rem; }
.dc-row { display: flex; justify-content: space-between; padding: 0.6rem 0; border-top: 1px solid var(--line-soft); font-size: 0.86rem; }
.dc-row span { color: var(--ink-dim); } .dc-row b { font-family: var(--f-mono); color: var(--gold-hi); font-weight: 500; }
.desk-card figure { margin-top: 1.2rem; padding-top: 1rem; border-top: 1px solid var(--line-soft); text-align: center; }
.desk-card figure span { color: var(--gold-hi); font-size: 1.2rem; }
.desk-card figcaption { font-family: var(--f-serif); font-style: italic; color: var(--ink-faint); margin-top: 0.3rem; }
@media (max-width: 900px) { .ops-grid { grid-template-columns: 1fr; } .desk-card { position: relative; top: 0; } }

/* ---------- engine room ---------- */
.lab { border-top: 1px solid var(--line-soft); }
.lab-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.4rem; }
.lab-tabs button { font-size: 0.76rem; padding: 0.6rem 1.1rem; }
.inst { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.4rem, 3vw, 2.4rem); border: 1px solid var(--line);
  border-radius: 22px; padding: clamp(1.4rem, 3vw, 2.2rem); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.inst[hidden] { display: none; }
.inst h3 { font-family: var(--f-serif); font-weight: 500; font-size: 1.6rem; line-height: 1.15; }
.inst-sub { color: var(--ink-faint); font-size: 0.88rem; margin: 0.4rem 0 1.4rem; }
.field { display: block; margin-bottom: 1.15rem; font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-dim); }
.field output { float: right; color: var(--gold-hi); text-transform: none; letter-spacing: 0; }
.field input[type=range] { display: block; width: 100%; margin-top: 0.55rem; -webkit-appearance: none; appearance: none; height: 3px; background: var(--line); border-radius: 2px; }
.field input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-hi), var(--gold-deep)); box-shadow: 0 0 12px rgba(216,178,110,0.55); }
.field input[type=range]::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--gold); cursor: pointer; }
.field.check { display: flex; gap: 0.6rem; align-items: center; text-transform: none; letter-spacing: 0.02em; font-size: 0.8rem; cursor: pointer; }
.field.check input { accent-color: var(--gold); width: 16px; height: 16px; }
@media (max-width: 900px) { .inst { grid-template-columns: 1fr; } }
.readout { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.6rem; margin: 1rem 0; }
.readout div { border: 1px solid var(--line-soft); border-radius: 10px; padding: 0.7rem 0.9rem; background: var(--bg); display: flex; flex-direction: column-reverse; }
.readout dd { font-family: var(--f-mono); font-size: 1.08rem; color: var(--gold-hi); font-variant-numeric: tabular-nums; }
.readout dt { font-family: var(--f-mono); font-size: 0.62rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.2rem; }
.readout .hl { border-color: var(--gold-deep); background: rgba(216,178,110,0.07); }
.readout .hl dd { font-size: 1.35rem; }
.verdict { border-radius: 10px; padding: 0.85rem 1rem; font-family: var(--f-mono); font-size: 0.78rem; line-height: 1.55; }
.verdict.ok { background: rgba(216,178,110,0.09); color: var(--gold-hi); border: 1px solid var(--gold-deep); }
.verdict.no { background: rgba(226,135,59,0.08); color: var(--saffron); border: 1px solid rgba(226,135,59,0.35); }
.verdict.refuse { background: rgba(255,255,255,0.03); color: var(--ink-dim); border: 1px dashed var(--ink-faint); }
.verdict.info { background: rgba(122,167,216,0.07); color: #bcd3ee; border: 1px solid rgba(122,167,216,0.3); }
.touch-viz { position: relative; height: 120px; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg); overflow: hidden; }
.tv-bar { position: absolute; top: 18px; height: 40px; transition: width .35s var(--ease); }
.tv-bar.bid { right: 50%; background: linear-gradient(270deg, rgba(95,191,143,0.5), rgba(95,191,143,0.05)); border-radius: 6px 0 0 6px; }
.tv-bar.ask { left: 50%; background: linear-gradient(90deg, rgba(229,72,77,0.5), rgba(229,72,77,0.05)); border-radius: 0 6px 6px 0; }
.tv-axis { position: absolute; left: 0; right: 0; bottom: 18px; height: 26px; border-top: 1px solid var(--line); }
.tv-axis span { position: absolute; top: 6px; font-family: var(--f-mono); font-size: 0.72rem; color: var(--ink-dim); }
.tv-axis span:first-child { left: 8%; transform: translateX(-50%); } .tv-axis span:last-child { left: 92%; transform: translateX(-50%); }
.tv-axis i { position: absolute; top: -14px; width: 2px; height: 26px; background: var(--gold-hi); box-shadow: 0 0 10px var(--gold-hi); transition: left .35s var(--ease), opacity .3s; }
.tv-axis i.mid { background: var(--ink-faint); box-shadow: none; height: 14px; top: -7px; }
.ucurve { width: 100%; height: auto; margin-bottom: 1rem; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg); }
.ucurve .grid { stroke: var(--line-soft); }
.ucurve text { font-family: var(--f-mono); font-size: 10px; fill: var(--ink-faint); }
.ucurve .curve { fill: none; stroke: var(--gold); stroke-width: 2; }
.ucurve .min { fill: var(--bg); stroke: var(--gold-hi); stroke-width: 1.5; }
.ucurve .minl { fill: var(--gold-hi); }
.ucurve .cur { fill: var(--saffron); filter: drop-shadow(0 0 6px rgba(226,135,59,0.9)); }
.fee-table { width: 100%; border-collapse: collapse; margin-bottom: 1rem; font-family: var(--f-mono); font-size: 0.8rem; }
.fee-table th { text-align: left; font-weight: 400; color: var(--ink-dim); padding: 0.45rem 0; border-bottom: 1px solid var(--line-soft); }
.fee-table td { text-align: right; color: var(--gold-hi); padding: 0.45rem 0; border-bottom: 1px solid var(--line-soft); font-variant-numeric: tabular-nums; }
.fee-table tr.sum th, .fee-table tr.sum td { color: var(--ink); border-top: 1px solid var(--line); }
.fee-table tr.net th, .fee-table tr.net td { font-size: 0.95rem; color: var(--gold-hi); border-bottom: 0; }
.big-n { text-align: center; padding: 1.6rem 1rem; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); margin-bottom: 1rem; }
.big-n span { display: block; font-family: var(--f-display); font-weight: 700; font-size: clamp(3rem, 8vw, 5rem); color: var(--gold-hi); line-height: 1; }
.big-n small { display: block; font-family: var(--f-mono); font-size: 0.74rem; color: var(--ink-faint); margin-top: 0.8rem; }
.buckets { display: flex; align-items: flex-end; gap: 3px; height: 130px; padding: 0.6rem; border: 1px solid var(--line-soft); border-radius: 12px; background: var(--bg); }
.buckets i { flex: 1; background: linear-gradient(0deg, var(--gold-deep), var(--gold-hi)); border-radius: 2px 2px 0 0; transition: height .25s; min-height: 3px; }
.buckets i.empty { background: var(--line-soft); }

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); text-align: center; position: relative; z-index: 2;
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.2rem, 4vw, 2rem) 3rem; max-width: var(--maxw); margin: 0 auto; }
.f-yantra { width: 64px; height: 64px; color: var(--gold); filter: drop-shadow(0 0 12px rgba(216,178,110,0.5)); }
.f-mark { font-size: 2.6rem; color: var(--gold-hi); text-shadow: 0 0 30px rgba(216,178,110,0.4); margin-top: 0.6rem; }
.f-tag { font-family: var(--f-display); letter-spacing: 0.3em; font-size: 0.86rem; color: var(--ink-dim); margin-top: 0.4rem; }
.f-note { font-family: var(--f-serif); font-style: italic; color: var(--ink-dim); max-width: 620px; margin: 1.4rem auto 0; font-size: 1.12rem; }
.f-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; text-align: left; margin-top: 3rem; }
.f-cols h4 { font-family: var(--f-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.6rem; font-weight: 500; }
.f-cols p { color: var(--ink-faint); font-size: 0.84rem; }
@media (max-width: 820px) { .f-cols { grid-template-columns: 1fr; } }
.f-fine { font-family: var(--f-mono); font-size: 0.66rem; color: var(--ink-faint); letter-spacing: 0.06em; margin-top: 2.6rem; line-height: 2; }

/* ---------- scroll reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(30px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal]:nth-child(2) { transition-delay: .07s; } [data-reveal]:nth-child(3) { transition-delay: .14s; }
[data-reveal]:nth-child(4) { transition-delay: .21s; } [data-reveal]:nth-child(5) { transition-delay: .28s; }
[data-reveal]:nth-child(6) { transition-delay: .35s; }

/* ---------- reduced motion ---------- */
@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; transform: none; }
  .hero .hero-eyebrow, .hero .hero-title, .hero .hero-lede, .hero .hero-actions, .hero .hero-stats { opacity: 1; transform: none; }
}

/* Grid children may shrink below their longest code line; code scrolls inside its own box. */
.eq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) { .eq-grid { grid-template-columns: minmax(0, 1fr); } }
.eq-card, .inst > *, .vow, .phases li, .ops-grid > *, .weekend-grid > *, .altron-grid > *, .myth-grid > *, .f-cols > * { min-width: 0; }
