/* ============================================================
   FusionPowerStation.com — design system
   Sister of the Humanoid sites (Humanoid.Company "Departure Board",
   RentHumanoid, HumanoidOnline UI-D1). Combines concepts A–D.
     - dark board ground, warm cream text, ONE accent: ELECTRIC MINT
     - paper "data sheet" register for the drawings (concept B)
     - condensed uppercase display (Archivo), mono for every label
     - numbered GATE sections, zero radius, hairlines, no shadows
     - status is a typed token; UNKNOWN is a value, never a blank
   CONSTRAINTS
     - fonts self-hosted (OFL); CSP is 'self' — no inline style or script
     - dark ink on mint, never light; mint as text on paper uses --accent-ink
   ============================================================ */

@font-face { font-family: "Archivo"; src: url("../fonts/archivo-var-latin.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrainsmono-var-latin.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-var-latin.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-italic-var-latin.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }

:root {
  color-scheme: dark;
  --bg: #111110; --panel: #1A1A18; --hover: #22211D; --line: #2B2A26; --line-soft: #24231F; --deep: #0A0A09;
  --text: #EDE6D3; --mute: #BDB6A3; --dim: #8F8A7C;
  --paper: #EFEBE2; --paper-2: #F7F4EC; --ink: #131210; --ink-mute: #4A4A44;
  --accent: #3DFFB0;            /* ELECTRIC MINT — ink on it ≈ 16:1 */
  --accent-ink: #006B45;        /* mint as text on paper (AA) */
  --accent-glow: rgba(61, 255, 176, .45);
  --accent-soft: #A9F5D5;       /* pale mint tint for secondary labels on dark */
  --on-accent: #111110;
  --heat: #E0875A;              /* hot coolant loop only */
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --f-cond: "Archivo", "Arial Narrow", Arial, sans-serif;
  --f-serif: "Playfair Display", Georgia, serif;
  --track: .14em;
  --maxw: 1360px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { background: var(--bg); color: var(--text); font: 14px/1.6 var(--f-mono); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 4vw, 60px); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--accent); color: var(--on-accent); padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- type ---- */
.cond { font-family: var(--f-cond); font-weight: 900; font-stretch: 62%; text-transform: uppercase; line-height: .86; letter-spacing: -.01em; }
.serif { font-family: var(--f-serif); font-weight: 500; letter-spacing: -.02em; line-height: .98; }
.serif em { font-style: italic; color: var(--accent-ink); }
.label { font: 500 11px/1.4 var(--f-mono); letter-spacing: var(--track); text-transform: uppercase; color: var(--dim); }
.acc { color: var(--accent); }
.glow { text-shadow: 0 0 40px var(--accent-glow); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 24px; }
.mark { font: 900 21px/1 var(--f-cond); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.mark b { color: var(--accent); font-weight: 900; }
.nav { display: flex; gap: 22px; }
.nav a { font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; text-decoration: none; }
.nav a:hover { color: var(--accent); }
.readout { font: 600 13px/1 var(--f-mono); letter-spacing: .06em; color: var(--accent-soft); white-space: nowrap; }
.readout b { font: 600 24px/1 var(--f-mono); color: var(--accent); margin-left: 8px; font-variant-numeric: tabular-nums; }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); font: 600 11px var(--f-mono); letter-spacing: var(--track); text-transform: uppercase; padding: 10px 12px; cursor: pointer; margin-left: auto; }
.menu-btn[aria-expanded="true"] { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
@media (max-width: 1400px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0; background: var(--deep); border-bottom: 1px solid var(--line); padding: 8px clamp(20px, 4vw, 60px) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
}
@media (max-width: 640px) { .readout { display: none; } .mark { font-size: 17px; } }

/* ---- section heads ---- */
.gate { display: inline-block; background: var(--accent); color: var(--on-accent); font: 700 11px/1 var(--f-mono); letter-spacing: var(--track); padding: 6px 8px; text-transform: uppercase; }
.sec { padding: clamp(64px, 9vw, 120px) 0 0; }
.sec-head { display: grid; grid-template-columns: 1fr minmax(0, 380px); gap: 32px; align-items: end; margin: 14px 0 44px; }
.sec-head h2 { font-size: clamp(54px, 8.4vw, 124px); }
.sec-head p { color: var(--mute); font-size: 13px; }
@media (max-width: 900px) { .sec-head { grid-template-columns: 1fr; } }

.btn { display: inline-flex; gap: 10px; align-items: center; font: 700 12px/1 var(--f-mono); letter-spacing: var(--track); text-transform: uppercase; padding: 16px 18px; text-decoration: none; border: 1px solid var(--accent); cursor: pointer; }
.btn.solid { background: var(--accent); color: var(--on-accent); }
.btn.ghost { color: var(--accent); background: transparent; }
.btn:hover { filter: brightness(1.08); }

/* ---- status tokens ---- */
.tok { display: inline-flex; align-items: center; gap: 8px; font: 600 11px/1 var(--f-mono); letter-spacing: var(--track); text-transform: uppercase; white-space: nowrap; }
.tok::before { content: ""; width: 9px; height: 9px; border-radius: 50%; }
.tok.done::before { background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); }
.tok.plan::before { border: 1.5px solid var(--text); }
.tok.sim::before { border: 1.5px dashed var(--accent); }
.tok.unk { border: 1px solid var(--dim); padding: 4px 6px; color: var(--mute); background: repeating-linear-gradient(135deg, transparent 0 4px, rgba(143,138,124,.18) 4px 5px); }
.tok.unk::before { display: none; }

/* ============ HERO — text left, 3D tokamak right ============ */
.hero { min-height: calc(100vh - 64px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto 1fr auto; column-gap: 24px; padding-top: 28px; }
.hero .head { grid-column: 1 / -1; position: relative; z-index: 1; }
.hero .txt { align-self: center; position: relative; z-index: 1; }
/* the equation must stay on ONE row: size follows the viewport, never wraps */
.hero .head { container-type: inline-size; }
.hero h1 { font-size: 8.7cqw; white-space: nowrap; margin: 18px 0 0; }
.hero h1 .o { color: transparent; -webkit-text-stroke: 1.6px var(--text); }
.hero .lede p { color: var(--mute); max-width: 44ch; margin-bottom: 22px; }
.hero .ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.hero .art { align-self: center; min-width: 0; }
.hero .meta { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.hero .meta div { padding: 18px 20px 22px 0; min-width: 0; }
.hero .meta b { display: block; font: 900 38px/1 var(--f-cond); font-stretch: 62%; text-transform: uppercase; margin-top: 8px; }
@media (max-width: 1000px) {
  .hero { min-height: 0; grid-template-columns: 1fr; padding-top: 20px; }
  .hero .art { order: 1; margin: 6px -4% -10px; }
  .hero .txt { order: 2; } .hero .meta { order: 3; }
}
@media (max-width: 800px) { .hero .meta { grid-template-columns: 1fr 1fr; } .hero .meta b { font-size: 30px; } .hero h1 .o { -webkit-text-stroke-width: 1.2px; } }

/* ============ CONSOLE (concept A) ============ */
.console { border: 1px solid var(--line); background: radial-gradient(ellipse at 35% 50%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 60%), var(--deep); display: grid; grid-template-columns: 1.55fr 1fr; }
.console .viz { padding: 24px; border-right: 1px solid var(--line); position: relative; min-width: 0; }
.console .viz .label { position: absolute; top: 18px; left: 22px; }
.console .viz .label.r { left: auto; right: 22px; }
.panel-h { display: flex; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-h b { font: 900 18px var(--f-cond); font-stretch: 125%; text-transform: uppercase; }
.rows div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 13px 22px; border-bottom: 1px solid var(--line-soft); align-items: baseline; }
.rows dt { font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: var(--dim); }
.rows dd { font: 600 22px/1 var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; }
.rows dd small { font-size: 11px; color: var(--dim); margin-left: 6px; font-weight: 500; }
.rows dd.acc { color: var(--accent); }
.q { padding: 18px 22px; }
.q .bar { height: 12px; background: var(--panel); border: 1px solid var(--line); position: relative; margin: 10px 0 6px; }
.q .bar i { position: absolute; inset: 0 auto 0 0; width: 100%; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 8px); animation: fill 4s ease-out infinite alternate; }
@keyframes fill { from { width: 6% } to { width: 100% } }
.q .scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--dim); }
.note { font-size: 11px; color: var(--dim); padding: 12px 22px 18px; }
@media (max-width: 1000px) { .console { grid-template-columns: 1fr; } .console .viz { border-right: 0; border-bottom: 1px solid var(--line); } }
@media (max-width: 600px) { .console .viz .label.r { display: none; } }

/* ============ JOURNEY (concept C) ============ */
.story { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; }
.stage { position: sticky; top: 88px; height: calc(100vh - 120px); border: 1px solid var(--line); background: radial-gradient(ellipse at 50% 55%, color-mix(in srgb, var(--accent) 8%, transparent), transparent 65%), var(--deep); display: grid; grid-template-columns: 54px 1fr; }
.rail { border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: space-between; padding: 18px 0; align-items: center; }
.rail span { font-size: 10px; color: var(--dim); width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid transparent; transition: .3s; }
.rail span.on { color: var(--on-accent); background: var(--accent); }
.rail span.done { color: var(--accent); border-color: var(--line); }
.layers { position: relative; min-width: 0; }
.layer { position: absolute; inset: 0; padding: 48px 28px 28px; display: grid; place-items: center; opacity: 0; transform: translateY(16px) scale(.98); transition: opacity .55s, transform .55s; pointer-events: none; }
.layer.on { opacity: 1; transform: none; }
.layer > * { width: 100%; }
.stage .cap { position: absolute; top: 16px; left: 20px; right: 20px; display: flex; justify-content: space-between; z-index: 2; }
.steps .s { min-height: 88vh; display: flex; flex-direction: column; justify-content: center; padding: 40px 0; }
.steps .n { font: 900 150px/.8 var(--f-cond); font-stretch: 62%; color: transparent; -webkit-text-stroke: 1.5px var(--dim); transition: .4s; }
.steps .s.on .n { -webkit-text-stroke-color: var(--accent); }
.steps h3 { font-size: clamp(48px, 5.4vw, 84px); margin: 18px 0; }
.steps p { color: var(--mute); max-width: 46ch; font-size: 14.5px; }
.chip { margin-top: 24px; display: inline-flex; align-self: flex-start; border: 1px solid var(--line); }
.chip span { padding: 10px 12px; font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: var(--dim); }
.chip b { padding: 10px 14px; background: var(--panel); border-left: 1px solid var(--line); font-weight: 600; }
@media (max-width: 1000px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .stage { top: 64px; height: 46vh; z-index: 5; grid-template-columns: 40px 1fr; }
  .steps .s { min-height: 70vh; }
  .steps .n { font-size: 90px; }
}
.story.flat .stage { display: none; }
.story.flat .steps .s { min-height: 0; padding: 36px 0; border-bottom: 1px solid var(--line); }
.story.flat .steps .n { font-size: 72px; }
.layer.inline { position: static; opacity: 1; transform: none; pointer-events: auto; padding: 20px; margin-bottom: 22px; border: 1px solid var(--line); background: var(--deep); min-height: 240px; }
.layer.inline .therm { height: 220px; }
.layer.inline .sea-w { width: 100%; padding-bottom: 34px; }
/* stage art */
.sea-w { width: 86%; }
.sea { aspect-ratio: 1.3; position: relative; background-image: radial-gradient(circle, var(--dim) 1px, transparent 1.4px); background-size: 9px 9px; border: 1px solid var(--line); }
.sea .d { position: absolute; left: 61%; top: 38%; width: 18px; height: 18px; margin: -9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 40px 10px var(--accent-glow); animation: breathe 2s infinite; }
.sea .lbl { position: absolute; left: calc(61% + 26px); top: calc(38% - 8px); background: var(--deep); padding: 4px 8px; font-size: 11px; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.sea .foot { position: absolute; left: 0; right: 0; bottom: -34px; display: flex; justify-content: space-between; gap: 10px; }
.therm { display: flex; align-items: flex-end; gap: 18px; height: 70%; padding: 0 10px; }
.therm div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 10px; }
.therm i { display: block; height: .5%; background: repeating-linear-gradient(0deg, var(--line) 0 2px, transparent 2px 5px); border: 1px solid var(--dim); min-height: 3px; transition: height 1.4s cubic-bezier(.2,.8,.2,1) .2s; }
.therm .hot i { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 40px var(--accent-glow); }
.therm .sun i, .therm .hot i { height: 0; }
.layer.on .therm .sun i { height: 10%; } .layer.on .therm .hot i { height: 100%; }
.therm span { font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); text-align: center; }
.therm b { font: 900 26px/1 var(--f-cond); font-stretch: 62%; text-align: center; }
.therm .hot b { color: var(--accent); }
.homes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.homes path { fill: var(--panel); stroke: var(--text); stroke-width: 2; }
.homes rect { fill: var(--line); transition: fill .3s; }
.layer.on .homes rect { fill: var(--accent); }
.homes svg:nth-child(2) rect { transition-delay: .12s } .homes svg:nth-child(3) rect { transition-delay: .24s } .homes svg:nth-child(4) rect { transition-delay: .36s } .homes svg:nth-child(5) rect { transition-delay: .48s }
.homes svg:nth-child(6) rect { transition-delay: .6s } .homes svg:nth-child(7) rect { transition-delay: .72s } .homes svg:nth-child(8) rect { transition-delay: .84s } .homes svg:nth-child(9) rect { transition-delay: .96s } .homes svg:nth-child(10) rect { transition-delay: 1.08s }
.big-eq { font: 900 clamp(46px, 6.4vw, 104px)/.86 var(--f-cond); font-stretch: 62%; text-transform: uppercase; text-align: center; margin-bottom: 30px; }
.center { text-align: center; margin-top: 22px; }

/* ============ PAPER BAND (concept B) ============ */
.paper { --bg: var(--paper); --text: var(--ink); --mute: #3E3C36; --dim: #6B675C; --line: #CFC9BB; --line-soft: #DDD8CC; --panel: var(--paper-2); --hover: #E6E1D5; color-scheme: light; background: var(--paper); color: var(--ink); margin-top: clamp(64px, 9vw, 120px); padding-bottom: clamp(64px, 9vw, 110px); }
.paper .acc { color: var(--accent-ink); }
.paper .gate { color: var(--ink); }
.paper .tok.done::before { box-shadow: none; border: 1.5px solid var(--ink); }
.sheet-h { display: grid; grid-template-columns: 120px 1fr minmax(0, 380px); gap: 28px; align-items: end; border-bottom: 1.5px solid var(--ink); padding-bottom: 18px; }
.sheet-h .no { font: 900 112px/.8 var(--f-cond); font-stretch: 62%; -webkit-text-stroke: 1.5px var(--ink); color: transparent; }
.sheet-h h2 { font-size: clamp(42px, 5.6vw, 82px); }
.sheet-h p { color: var(--mute); font-size: 13px; }
.sheet-h .label { display: block; margin-bottom: 8px; }
.sheet { padding-top: clamp(56px, 7vw, 96px); }
@media (max-width: 900px) { .sheet-h { grid-template-columns: 1fr; gap: 12px; } .sheet-h .no { font-size: 70px; } }
.tblock { display: grid; grid-template-columns: 1.1fr 2.6fr .8fr .8fr .6fr; border: 1.5px solid var(--ink); }
.tblock > div { padding: 10px 14px; border-right: 1px solid var(--ink); }
.tblock > div:last-child { border-right: 0; background: var(--accent); }
.tblock .label { display: block; font-size: 9.5px; }
.tblock > div:last-child .label { color: var(--ink); }
.tblock b { font-weight: 600; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; }
@media (max-width: 900px) { .tblock { grid-template-columns: 1fr 1fr; } .tblock > div { border-bottom: 1px solid var(--ink); } }
.ga { display: grid; grid-template-columns: 1.6fr 1fr; border: 1.5px solid var(--ink); border-top: 0; }
.ga .fig { padding: 30px 20px; border-right: 1px solid var(--ink); min-width: 0; background-image: linear-gradient(var(--line-soft) 1px, transparent 1px), linear-gradient(90deg, var(--line-soft) 1px, transparent 1px); background-size: 24px 24px; }
.legend li { list-style: none; display: grid; grid-template-columns: 34px 1fr; gap: 10px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.legend li:last-child { border-bottom: 0; }
.legend .n { width: 26px; height: 26px; border: 1.5px solid var(--ink); border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.legend b { display: block; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.legend span { color: var(--mute); font-size: 12.5px; }
.legend i { font-style: normal; color: var(--accent-ink); font-weight: 600; }
@media (max-width: 1000px) { .ga { grid-template-columns: 1fr; } .ga .fig { border-right: 0; border-bottom: 1px solid var(--ink); } }
.rxgrid { display: grid; grid-template-columns: 1.2fr 1fr; border: 1.5px solid var(--ink); border-top: 0; }
.rxgrid > * { padding: 30px 28px; min-width: 0; }
.rxgrid > :first-child { border-right: 1px solid var(--ink); }
.emc { font-family: var(--f-serif); font-size: clamp(72px, 8vw, 130px); line-height: 1; font-style: italic; margin-bottom: 14px; }
.leader div { display: flex; gap: 10px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.leader span:nth-child(2) { flex: 1; border-bottom: 1px dotted var(--dim); transform: translateY(-4px); }
.leader b { font-weight: 600; white-space: nowrap; }
.leader .em b { color: var(--accent-ink); }
.rxgrid .fine { color: var(--mute); font-size: 12.5px; margin-top: 16px; }
@media (max-width: 1000px) { .rxgrid { grid-template-columns: 1fr; } .rxgrid > :first-child { border-right: 0; border-bottom: 1px solid var(--ink); } }
.temps { padding: 26px 0 10px; }
.temps .t { display: grid; grid-template-columns: 220px 1fr 180px; gap: 18px; align-items: center; padding: 12px 0; border-bottom: 1px dotted var(--line); }
.temps .bar { height: 26px; width: 3px; background: repeating-linear-gradient(135deg, var(--ink) 0 1.5px, transparent 1.5px 6px); border: 1.5px solid var(--ink); }
.temps .bar.w10 { width: 10%; } .temps .bar.w100 { width: 100%; background: var(--accent); }
.temps b { text-transform: uppercase; letter-spacing: .06em; font-weight: 600; font-size: 12.5px; }
.temps .t span:last-child { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.temps .hot span:last-child { color: var(--accent-ink); }
.temps + .label { margin-top: 12px; }
@media (max-width: 800px) { .temps .t { grid-template-columns: 1fr; gap: 6px; } .temps .t span:last-child { text-align: left; } }

/* ============ PLANT (concepts A + D) ============ */
.chain { display: grid; grid-template-columns: repeat(6, 1fr); border: 1px solid var(--line); }
.chain div { padding: 22px 18px 26px; border-right: 1px solid var(--line); position: relative; }
.chain div:last-child { border-right: 0; }
.chain div::after { content: "→"; position: absolute; right: -9px; top: 22px; background: var(--bg); color: var(--accent); z-index: 1; }
.chain div:last-child::after { display: none; }
.chain .n { color: var(--accent); font-size: 11px; letter-spacing: var(--track); }
.chain h3 { font: 900 30px/.9 var(--f-cond); font-stretch: 62%; text-transform: uppercase; margin: 12px 0 10px; }
.chain p { font-size: 12px; color: var(--mute); }
.chain .v { margin-top: 14px; font-weight: 600; font-size: 13px; color: var(--accent); }
@media (max-width: 1000px) { .chain { grid-template-columns: 1fr 1fr; } .chain div { border-bottom: 1px solid var(--line); } .chain div::after { display: none; } }
.plantbox { border: 1px solid var(--line); border-top: 0; background: var(--deep); padding: 36px 28px 20px; }

/* ============ FUEL (concept D) ============ */
.scale { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--line); background: var(--deep); margin-bottom: 28px; }
.scale .pel { border-right: 1px solid var(--line); display: grid; place-items: center; padding: 30px; gap: 14px; text-align: center; }
.scale .pel i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 30px 6px var(--accent-glow); }
.scale .pile { padding: 22px; min-width: 0; }
.scale .grid { display: grid; grid-template-columns: repeat(40, 1fr); gap: 3px; margin: 14px 0 10px; }
.scale .grid i { aspect-ratio: 1; background: var(--line); }
.scale .grid i:nth-child(-n+80) { background: var(--mute); }
.scale .k { display: flex; gap: 28px; flex-wrap: wrap; }
.scale .k span::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; vertical-align: -1px; }
.scale .k .o::before { background: var(--mute); } .scale .k .c::before { background: var(--line); }
@media (max-width: 800px) { .scale { grid-template-columns: 1fr; } .scale .pel { border-right: 0; border-bottom: 1px solid var(--line); } .scale .grid { grid-template-columns: repeat(20, 1fr); } }
.calc { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: start; }
.calc > * { min-width: 0; }
.pick { border: 1px solid var(--line); background: var(--deep); }
.pick legend { padding: 0; }
.pick .h, .pick label { display: grid; grid-template-columns: 34px 1fr 150px 110px; gap: 14px; align-items: center; padding: 15px 20px; border-bottom: 1px solid var(--line-soft); }
.pick .h { font-size: 10.5px; letter-spacing: var(--track); color: var(--dim); text-transform: uppercase; }
.pick .h span:nth-child(n+3) { text-align: right; }
.pick label { cursor: pointer; transition: background .15s; }
.pick label:hover { background: var(--hover); }
.pick input { appearance: none; width: 18px; height: 18px; border: 1.5px solid var(--dim); border-radius: 50%; display: grid; place-items: center; margin: 0; }
.pick input:checked { border-color: var(--accent); }
.pick input:checked::after { content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 50%; }
.pick label:has(input:checked) { background: var(--panel); box-shadow: inset 3px 0 0 var(--accent); }
.pick b { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.pick small { display: block; color: var(--dim); font-size: 11px; }
.pick .kwh, .pick .g { text-align: right; font-variant-numeric: tabular-nums; }
.pick .g { color: var(--accent); font-weight: 600; }
.qty { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; gap: 20px; flex-wrap: wrap; }
.qty .ctl { display: flex; border: 1px solid var(--line); }
.qty button { width: 44px; height: 44px; background: var(--panel); color: var(--text); border: 0; font: 600 18px var(--f-mono); cursor: pointer; }
.qty button:hover { color: var(--accent); }
.qty output { min-width: 80px; display: grid; place-items: center; font: 600 18px var(--f-mono); border-inline: 1px solid var(--line); }
.ticket { display: grid; grid-template-columns: 1fr 150px; filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); position: sticky; top: 90px; }
.ticket > * { min-width: 0; }
.rc { background: var(--paper); color: var(--ink); padding: 28px 26px 22px; -webkit-mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x; mask: radial-gradient(circle 7px at 50% 100%, transparent 98%, #000) 0 0 / 18px 100% repeat-x; }
.rc h3 { font: 900 22px var(--f-cond); font-stretch: 125%; text-transform: uppercase; display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.rc h3 small { font: 500 10px var(--f-mono); letter-spacing: .12em; color: var(--ink-mute); }
.rc .meta { font-size: 10.5px; color: var(--ink-mute); letter-spacing: .08em; text-transform: uppercase; border-bottom: 1.5px dashed var(--ink); padding: 10px 0 12px; display: flex; justify-content: space-between; gap: 10px; }
.rc .ln { display: flex; gap: 8px; align-items: baseline; padding: 9px 0; font-size: 12.5px; }
.rc .ln span:nth-child(2) { flex: 1; border-bottom: 1px dotted #9B968A; transform: translateY(-3px); }
.rc .ln b { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rc .ln.em b { color: var(--accent-ink); }
.rc .ln.print { animation: print .45s ease-out both; }
.rc .ln:nth-child(2) { animation-delay: .07s } .rc .ln:nth-child(3) { animation-delay: .14s } .rc .ln:nth-child(4) { animation-delay: .21s } .rc .ln:nth-child(5) { animation-delay: .28s }
.rc .ln:nth-child(6) { animation-delay: .35s } .rc .ln:nth-child(7) { animation-delay: .42s } .rc .ln:nth-child(8) { animation-delay: .49s }
@keyframes print { from { opacity: 0; transform: translateY(-6px); } }
.rc .tot { border-top: 1.5px dashed var(--ink); margin-top: 8px; padding-top: 14px; display: flex; justify-content: space-between; align-items: end; gap: 10px; }
.rc .tot .label { color: var(--ink-mute); }
.rc .tot strong { font: 900 54px/.9 var(--f-cond); font-stretch: 62%; }
.rc .barcode { height: 46px; margin-top: 18px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px); }
.rc .fine { font-size: 10px; color: var(--ink-mute); margin-top: 10px; line-height: 1.5; }
.stub { background: var(--accent); color: var(--on-accent); padding: 22px 16px; border-left: 2px dashed var(--bg); display: flex; flex-direction: column; justify-content: space-between; gap: 18px; }
.stub .label { color: rgba(17,17,16,.7); }
.stub b { font: 900 46px/.9 var(--f-cond); font-stretch: 62%; display: block; margin-top: 6px; overflow-wrap: anywhere; }
.stub .paid { border: 2px solid var(--on-accent); padding: 8px; text-align: center; font: 800 12px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; transform: rotate(-6deg); }
@media (max-width: 1000px) {
  .calc { grid-template-columns: 1fr; }
  .pick .h, .pick label { grid-template-columns: 30px minmax(0,1fr) 84px; padding-inline: 14px; }
  .pick .kwh, .pick .h span:nth-child(3) { display: none; }
  .ticket { position: static; grid-template-columns: 1fr 110px; }
  .stub b { font-size: 32px; }
}
@media (max-width: 600px) { .rc { padding-inline: 16px; } }

/* ============ CLEAN (concepts A + C) ============ */
.clean { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.clean > div { padding: 28px 24px 30px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.clean > div:last-child { border-right: 0; }
.clean .big { font: 900 76px/.85 var(--f-cond); font-stretch: 62%; text-transform: uppercase; color: var(--accent); }
.clean h3 { font: 900 26px var(--f-cond); font-stretch: 62%; text-transform: uppercase; margin-bottom: 8px; }
.clean p { color: var(--mute); font-size: 12.5px; }
.clean details { margin-top: auto; border-top: 1px solid var(--line); padding-top: 12px; }
.clean summary { cursor: pointer; font-size: 11px; letter-spacing: var(--track); text-transform: uppercase; color: var(--accent); list-style: none; }
.clean summary::before { content: "▸ "; } .clean details[open] summary::before { content: "▾ "; }
.clean details p { margin-top: 10px; }
@media (max-width: 1000px) { .clean { grid-template-columns: 1fr 1fr; } .clean > div { border-bottom: 1px solid var(--line); } }
@media (max-width: 600px) { .clean { grid-template-columns: 1fr; } .clean > div { border-right: 0; } }

/* ============ STATUS BOARD (concept A) ============ */
.board { border: 1px solid var(--line); background: var(--deep); }
.board .row { display: grid; grid-template-columns: 70px 80px 1.3fr 2fr .8fr 150px; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line-soft); align-items: center; }
.board .row.h { color: var(--dim); font-size: 10.5px; letter-spacing: var(--track); text-transform: uppercase; padding-block: 14px; }
.board .row:not(.h):hover { background: var(--hover); }
.board .code { display: inline-flex; gap: 3px; }
.board .code i { font-style: normal; width: 24px; height: 28px; display: grid; place-items: center; background: var(--panel); border: 1px solid var(--line); font-weight: 700; }
.board .row b { font-weight: 600; text-transform: uppercase; }
.board .row small { display: block; color: var(--dim); font-size: 11px; }
.board .row a { color: var(--mute); }
.board .row a:hover { color: var(--accent); }
.board .row sup { color: var(--accent); }
.board .foot-note { padding: 12px 22px; font-size: 11px; color: var(--dim); }
@media (max-width: 1000px) { .board .row { grid-template-columns: 60px minmax(0, 1fr); } .board .row > :nth-child(n+3) { grid-column: 2; } .board .row.h { display: none; } }

/* ============ GLOSSARY + SOURCES ============ */
.gloss { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.gloss div { padding: 20px 22px 22px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.gloss dt { font: 900 26px var(--f-cond); font-stretch: 62%; text-transform: uppercase; margin-bottom: 6px; }
.gloss dd { color: var(--mute); font-size: 12.5px; max-width: 42ch; }
@media (max-width: 1000px) { .gloss { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .gloss { grid-template-columns: 1fr; } }
.sources { counter-reset: s; border-top: 1px solid var(--line); }
.sources li { list-style: none; counter-increment: s; display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.sources li::before { content: "[" counter(s) "]"; color: var(--accent); font-weight: 600; }
.sources a { overflow-wrap: anywhere; }
.sources small { display: block; color: var(--dim); font-size: 11.5px; }

/* ---- partner / contact form ---- */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start; }
.contact > * { min-width: 0; }
.contact-note ul { list-style: none; border-top: 1px solid var(--line); }
.contact-note li { border-bottom: 1px solid var(--line); padding: 16px 0; color: var(--mute); font-size: 13px; }
.contact-note li b { display: block; font: 900 26px/1 var(--f-cond); font-stretch: 62%; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
.contact-note .fine { margin-top: 18px; font-size: 11px; color: var(--dim); }
.cform { border: 1px solid var(--line); background: var(--deep); padding: clamp(18px, 3vw, 32px); display: grid; gap: 18px; }
.cform label { display: grid; gap: 8px; }
.cform .label small { font-size: 10px; color: var(--dim); text-transform: none; letter-spacing: 0; margin-left: 6px; }
.cform input, .cform select, .cform textarea { width: 100%; background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 0; font: 14px/1.5 var(--f-mono); padding: 12px 14px; }
.cform select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.cform textarea { resize: vertical; min-height: 140px; }
.cform input:focus, .cform select:focus, .cform textarea:focus { border-color: var(--accent); outline: none; box-shadow: inset 3px 0 0 var(--accent); }
.cform .two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cform .btn { justify-self: start; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 1000px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .cform .two { grid-template-columns: 1fr; } }

/* ---- ticker + footer ---- */
.ticker { border-block: 1px solid var(--line); overflow: hidden; white-space: nowrap; padding: 12px 0; font-size: 12px; letter-spacing: var(--track); text-transform: uppercase; color: var(--accent); margin-top: 110px; }
.ticker span { display: inline-block; animation: tick 60s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }
.foot { padding: 56px 0 40px; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; font-size: 12px; color: var(--mute); }
.foot .mono { font: 900 92px/.8 var(--f-cond); font-stretch: 62%; color: var(--accent); margin-bottom: 14px; }
.foot h4 { font: 500 11px var(--f-mono); letter-spacing: var(--track); color: var(--dim); text-transform: uppercase; margin-bottom: 12px; }
.foot li { list-style: none; margin: 4px 0; }
.foot a { text-decoration: none; } .foot a:hover { color: var(--accent); }
.legal { border-top: 1px solid var(--line); padding: 18px 0 30px; font-size: 11px; color: var(--dim); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
@media (max-width: 900px) { .foot { grid-template-columns: 1fr 1fr; } .foot .mono { font-size: 70px; } }

/* ============ SVG DIAGRAM SKIN (dark + paper) ============ */
.dg { --s-line: var(--text); --s-soft: var(--line); --s-dim: var(--dim); --s-fill: var(--panel); --s-acc: var(--accent); }
.paper .dg { --s-line: var(--ink); --s-soft: #C9C3B5; --s-dim: #6B675C; --s-fill: var(--paper-2); --s-acc: var(--accent-ink); }
.dg text { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; fill: var(--s-dim); text-transform: uppercase; }
.dg .tl { fill: var(--s-line); } .dg .ta { fill: var(--s-acc); } .dg .tb { font-weight: 700; }
.dg .tk { fill: #111110; font-weight: 700; }
.dg .t18 { font-size: 18px; } .dg .t14 { font-size: 14px; letter-spacing: .02em; text-transform: none; }
.dg .fa { fill: var(--s-acc); } .dg .fl { fill: var(--s-line); } .dg .ff { fill: var(--s-fill); } .dg .fw { fill: #fff; } .dg .fn { fill: none; }
.dg .fh { fill: var(--heat); opacity: .5; }
.dg .sl { stroke: var(--s-line); } .dg .sf { stroke: var(--s-fill); } .dg .sd { stroke: var(--s-dim); }
.dg .st-w { stop-color: #fff; } .dg .st-a { stop-color: var(--s-acc); }
.dg .fm { fill: var(--accent); }
.dg .ln { fill: none; stroke: var(--s-line); stroke-width: 1.5; }
.dg .ln-dim { fill: none; stroke: var(--s-dim); stroke-width: 1; stroke-dasharray: 3 4; }
.dg .ln-acc { fill: none; stroke: var(--s-acc); stroke-width: 2; }
.dg .fill { fill: var(--s-fill); stroke: var(--s-line); stroke-width: 1.5; }
.dg .hatch { stroke: var(--s-line); stroke-width: 1.5; }
.dg .flow { fill: none; stroke: var(--s-acc); stroke-width: 3; stroke-dasharray: 10 8; animation: flow 1.2s linear infinite; }
.dg .flow.thin { stroke-width: 2.5; }
.dg .flow.hot { stroke: var(--heat); }
.dg .flow.cold { stroke: var(--s-dim); }
@keyframes flow { to { stroke-dashoffset: -36; } }
.dg .flux { fill: none; stroke: var(--s-acc); stroke-width: 1.2; stroke-dasharray: 2 7; animation: flow 2.4s linear infinite; opacity: .9; }
.dg .plasma { animation: breathe 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes breathe { 50% { opacity: .78; transform: scale(.985); } }
.dg .glowpulse { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .15; } }
.dg .spin { transform-box: fill-box; transform-origin: center; animation: spin 2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.dg .proton { fill: var(--s-acc); stroke: var(--s-line); stroke-width: 1; }
.dg .neutron { fill: var(--s-fill); stroke: var(--s-line); stroke-width: 1.5; }
/* D-T reaction loop (5 s) */
.rx g { transform-box: view-box; }
.rx-d { animation: rxd 5s ease-in infinite; } .rx-t { animation: rxt 5s ease-in infinite; }
.rx-flash { animation: rxf 5s ease-out infinite; transform-origin: 320px 150px; }
.rx-he { animation: rxhe 5s ease-out infinite; } .rx-n { animation: rxn 5s ease-out infinite; }
@keyframes rxd { 0% { transform: translateX(0); opacity: 1 } 36% { transform: translateX(225px); opacity: 1 } 39%, 100% { transform: translateX(225px); opacity: 0 } }
@keyframes rxt { 0% { transform: translateX(0); opacity: 1 } 36% { transform: translateX(-225px); opacity: 1 } 39%, 100% { transform: translateX(-225px); opacity: 0 } }
@keyframes rxf { 0%, 35% { transform: scale(0); opacity: 0 } 40% { transform: scale(1.2); opacity: 1 } 55%, 100% { transform: scale(.2); opacity: 0 } }
@keyframes rxhe { 0%, 38% { transform: translate(0, 0); opacity: 0 } 42% { opacity: 1 } 80% { transform: translate(-170px, -70px); opacity: 1 } 96%, 100% { transform: translate(-170px, -70px); opacity: 0 } }
@keyframes rxn { 0%, 38% { transform: translate(0, 0); opacity: 0 } 42% { opacity: 1 } 60% { transform: translate(250px, 80px); opacity: 1 } 96%, 100% { transform: translate(250px, 80px); opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .rx-he { transform: translate(-170px, -70px); opacity: 1 } .rx-n { transform: translate(250px, 80px); opacity: 1 } .rx-d, .rx-t, .rx-flash { opacity: 0 } }

/* ============ OTHER DESIGNS ============ */
.designs { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.designs article { padding: 24px 22px 28px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.designs article:last-child { border-right: 0; }
.designs svg { width: 100%; height: auto; margin-bottom: 10px; background: var(--deep); border: 1px solid var(--line-soft); padding: 10px; }
.designs h3 { font: 900 34px/.9 var(--f-cond); font-stretch: 62%; text-transform: uppercase; }
.designs p { color: var(--mute); font-size: 12.5px; }
@media (max-width: 1000px) { .designs { grid-template-columns: 1fr 1fr; } .designs article { border-bottom: 1px solid var(--line); } }
@media (max-width: 600px) { .designs { grid-template-columns: 1fr; } .designs article { border-right: 0; } }

.print-btn { background: none; border: 1px solid var(--line); color: var(--mute); font: 500 11px var(--f-mono); letter-spacing: var(--track); text-transform: uppercase; padding: 8px 10px; cursor: pointer; }
.print-btn:hover { color: var(--accent); border-color: var(--accent); }
.nojs-note { border: 1px dashed var(--dim); padding: 18px 20px; color: var(--mute); margin-top: 20px; }

/* ============ PRINT — a handout for schools ============ */
@media print {
  :root { --bg: #fff; --deep: #fff; --panel: #f3f3f0; --hover: #fff; --line: #bbb; --line-soft: #ddd; --text: #111; --mute: #333; --dim: #555; --paper: #fff; --paper-2: #fff; --accent: #006B45; --accent-glow: transparent; --on-accent: #fff; }
  @page { margin: 14mm; }
  body { font-size: 10.5pt; }
  .top, .skip, .ticker, .stage, .hero .art, .hero .ctas, .calc, .scale, .print-btn, .menu-btn, .q .bar, .clean summary, #contact { display: none !important; }
  .hero { min-height: 0; padding-top: 0; }
  .hero h1 { font-size: 64pt; }
  .hero h1 .o { -webkit-text-stroke-color: #111; }
  .glow { text-shadow: none; }
  .sec, .sheet { padding-top: 26pt; }
  .sec-head h2 { font-size: 44pt; }
  .story { display: block; }
  .steps .s { min-height: 0; padding: 10pt 0; break-inside: avoid; }
  .steps .n { font-size: 40pt; -webkit-text-stroke-color: #111; }
  .steps h3 { font-size: 26pt; margin: 6pt 0; }
  .paper { margin-top: 20pt; padding-bottom: 0; }
  .console, .ga, .rxgrid, .plantbox, .chain, .clean, .board, .designs, .gloss { break-inside: avoid; }
  .clean details > p { display: block; }
  .clean details:not([open]) > :not(summary) { display: block; }
  .gate { border: 1px solid #111; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555; overflow-wrap: anywhere; }
  .rx-he { transform: translate(-170px, -70px); opacity: 1 !important; animation: none !important; }
  .rx-n { transform: translate(250px, 80px); opacity: 1 !important; animation: none !important; }
  .rx-d, .rx-t, .rx-flash { opacity: 0 !important; animation: none !important; }
  * { animation: none !important; }
}
.sec-head .print-btn { margin-top: 14px; }
.err { font-size: clamp(54px, 8.4vw, 124px); }

/* ============ HERO ART: 3D tokamak cut-away ============ */
.hx { overflow: visible; }
.hx .h-wire { fill: none; stroke: var(--s-line); stroke-width: .8; opacity: .18; }
.hx .h-plasma { fill: var(--s-acc); opacity: .07; }
.hx .h-vessel { fill: none; stroke: var(--s-line); stroke-width: .7; opacity: .3; }
.hx .h-coil { fill: none; stroke: var(--s-line); stroke-linejoin: round; }
.hx .h-coil-in { fill: none; stroke: #151513; }
.hx .h-face { fill: #1D1C19; stroke: var(--s-line); stroke-width: 1.5; }
.hx .h-blanket { fill: none; stroke: var(--s-line); opacity: .85; }
.hx .h-glow { fill: none; stroke: var(--s-acc); opacity: .35; }
.hx .h-axis { fill: none; stroke: #fff; stroke-width: 1.2; opacity: .55; stroke-dasharray: 4 10; animation: axis 3s linear infinite; }
@keyframes axis { to { stroke-dashoffset: -140; } }
/* Plasma pulse v1 (?pulse=1): mint ↔ pale "Plasma" mint, 1 s, all in sync */
.hx.p1 .h-plasma { animation: pulse-fill 1s ease-in-out infinite; }
.hx.p1 .h-glow { animation: pulse-stroke 1s ease-in-out infinite; }
.hx.p1 .st-a { animation: pulse-stop 1s ease-in-out infinite; }
@keyframes pulse-fill { 0%, 100% { fill: var(--accent); } 50% { fill: var(--accent-soft); } }
@keyframes pulse-stroke { 0%, 100% { stroke: var(--accent); } 50% { stroke: var(--accent-soft); } }
@keyframes pulse-stop { 0%, 100% { stop-color: var(--accent); } 50% { stop-color: var(--accent-soft); } }

/* Plasma pulse v2 (default, owner-chosen 2026-11-06) "breathing": 2.5 s; at the peak the plasma turns pale-hot AND brighter,
   the halo widens, a brightness wave travels around the ring, the two cross-sections are out of step */
.hx.p2 .h-plasma { animation: flare-fill 2.5s ease-in-out infinite; }
.hx.p2 .h-glow { animation: flare-halo 2.5s ease-in-out infinite; }
.hx.p2 .h-floor { animation: flare-floor 2.5s ease-in-out infinite; }
.hx.p2 .st-a { animation: pulse-stop 2.5s ease-in-out infinite; }
.hx.p2 .h-core { animation: flare-core 2.5s ease-in-out infinite; }
.hx.p2 .c1 { animation-delay: -1.25s; }
.hx.p2 .w1 { animation-delay: -.21s } .hx.p2 .w2 { animation-delay: -.42s } .hx.p2 .w3 { animation-delay: -.63s } .hx.p2 .w4 { animation-delay: -.83s }
.hx.p2 .w5 { animation-delay: -1.04s } .hx.p2 .w6 { animation-delay: -1.25s } .hx.p2 .w7 { animation-delay: -1.46s } .hx.p2 .w8 { animation-delay: -1.67s }
.hx.p2 .w9 { animation-delay: -1.88s } .hx.p2 .w10 { animation-delay: -2.08s } .hx.p2 .w11 { animation-delay: -2.29s }
@keyframes flare-fill { 0%, 100% { fill: var(--accent); opacity: .06; } 50% { fill: var(--accent-soft); opacity: .12; } }
@keyframes flare-halo { 0%, 100% { stroke: var(--accent); opacity: .3; stroke-width: 34px; } 50% { stroke: var(--accent-soft); opacity: .75; stroke-width: 56px; } }
@keyframes flare-floor { 0%, 100% { opacity: .7; } 50% { opacity: 1; } }
@keyframes flare-core { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
.hx .h-ghost { fill: none; stroke: var(--s-line); opacity: .35; stroke-dasharray: 6 5; }
.hero h1 .arrow { font-family: var(--f-mono); font-weight: 700; font-stretch: 100%; font-size: .8em; vertical-align: .04em; text-shadow: 0 0 30px var(--accent-glow); }
.hero .claim { font: 600 15px/1.5 var(--f-mono); color: var(--accent-soft); margin: 0 0 20px; max-width: 46ch; }
.hero .claim a { color: var(--accent); text-decoration: none; }
.hero .txt { padding-bottom: 32px; }
h1 .inf { display: inline-block; width: 1.5em; height: .75em; vertical-align: .02em; margin-right: .12em; overflow: visible; filter: drop-shadow(0 0 14px var(--accent-glow)); }
.inf .inf-line { fill: none; stroke: var(--accent); stroke-width: 11; stroke-linejoin: round; }
.inf .inf-spark { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 9 91; animation: spark 2.5s linear infinite; opacity: .9; }
@keyframes spark { to { stroke-dashoffset: -100; } }
@media (max-width: 380px) { .mark { font-size: 14px; } .top .wrap { gap: 10px; } .menu-btn { padding: 9px 10px; } }

/* ---- language toggle (EN | ES) ---- */
.lang { display: flex; border: 1px solid var(--line); }
.lang a { font: 600 11px/1 var(--f-mono); letter-spacing: .1em; padding: 8px 9px; text-decoration: none; color: var(--mute); }
.lang a:hover { color: var(--accent); }
.lang a[aria-current="page"] { background: var(--accent); color: var(--on-accent); }
@media (max-width: 1400px) { .lang { margin-left: auto; order: 2; } .menu-btn { margin-left: 0; order: 3; } .readout { order: 4; } }
/* Spanish equation is longer: same one-row rule, smaller size */
html[lang="es"] .hero h1 { font-size: 7.4cqw; }
/* header fit with the language toggle */
.nav .nav-lang { display: none; }
@media (max-width: 900px) { .readout { display: none; } }
@media (max-width: 640px) { .top .lang { display: none; } .nav .nav-lang { display: block; color: var(--accent); } }
.sea .foot { flex-wrap: wrap; row-gap: 4px; }
@media (max-width: 400px) { .layer.inline .sea-w { padding-bottom: 54px; } }
.chip { flex-wrap: wrap; max-width: 100%; }
.chip b { border-left: 0; }
.story > *, .steps .s { min-width: 0; }
.therm div { min-width: 0; }
.therm span { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 400px) { .therm { gap: 8px; padding: 0; } .therm b { font-size: 20px; } .therm span { font-size: 9px; letter-spacing: .04em; } }
/* header spacing with the language toggle: everything must end inside the right margin */
.top .wrap { gap: 18px; }
.nav { gap: 12px; }
html[lang="es"] .nav { gap: 11px; }
html[lang="es"] .nav a { letter-spacing: .1em; }
.readout b { font-size: 22px; }
/* accents (Ó, Í) need a little more room between stacked display lines */
html[lang="es"] .cond { line-height: .95; }
html[lang="es"] .sec-head h2, html[lang="es"] .sheet-h h2 { line-height: 1.04; }
