/* NOCTIS · the page is composed around a living singularity (blackhole.js).
   Ink on void, one rose accent for live state and focus. Panels are thin hairlines, never glass,
   so the plasma behind stays the only light source. Only transform, opacity and clip-path animate. */
@font-face { font-family: "Instrument Sans"; src: url("/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --void: #04050a;
  --ink: #ece8f1;
  --ink-2: #c9c3d4;
  --mute: #a39db2;
  --faint: #8b85a0;
  --line: rgba(236, 232, 241, 0.1);
  --line-2: rgba(236, 232, 241, 0.2);
  --panel: rgba(8, 8, 16, 0.62);
  --rose: #e9799a;
  --sans: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --pad: clamp(20px, 4vw, 64px);
  --r: 14px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; scrollbar-color: #2a2636 var(--void); }
body { margin: 0; color: var(--ink); font: 400 16px/1.6 var(--sans); letter-spacing: -0.005em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
::selection { background: rgba(233, 121, 154, 0.32); color: #fff; }
::-webkit-scrollbar { width: 10px; } ::-webkit-scrollbar-track { background: var(--void); } ::-webkit-scrollbar-thumb { background: #241f30; border-radius: 10px; border: 3px solid var(--void); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; caret-color: var(--rose); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.03em; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
dl, dd, ol, ul { margin: 0; padding: 0; }
code, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: 0; }
.num { font-feature-settings: "zero" 0; }
.muted { color: var(--mute); }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 1.5px solid var(--rose); outline-offset: 3px; border-radius: 6px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: var(--void); transition: top 0.3s var(--ease); }
.skip:focus { top: 16px; }

/* ---------- the singularity layer ---------- */
#void { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: -2; display: block; }
.still { position: fixed; inset: 0; z-index: -3; background:
  radial-gradient(circle at 66% 46%, #000 0 9vmin, rgba(255, 196, 214, 0.55) 9.4vmin, rgba(160, 52, 112, 0.5) 11vmin, rgba(84, 30, 92, 0.35) 17vmin, rgba(26, 22, 58, 0.5) 30vmin, transparent 60vmin),
  radial-gradient(ellipse at 30% 80%, rgba(40, 30, 80, 0.4), transparent 60%), var(--void); }
.gl .still { display: none; }
.nogl #void { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 24px; border-radius: 999px; font-weight: 550; font-size: 15px; letter-spacing: -0.01em; white-space: nowrap; transition: transform 0.35s var(--ease), background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.35s var(--ease); }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.btn-ink { background: var(--ink); color: var(--void); }
.btn-ink:hover:not([disabled]) { background: #fff; box-shadow: 0 16px 36px -16px rgba(0, 0, 0, 0.8); }
.btn-line { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink); }
.btn-line:hover:not([disabled]) { box-shadow: inset 0 0 0 1px rgba(236, 232, 241, 0.45); background: rgba(236, 232, 241, 0.04); }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.copy { height: 30px; padding: 0 12px; border-radius: 999px; font: 500 12px/1 var(--mono); color: var(--mute); box-shadow: inset 0 0 0 1px var(--line); transition: color 0.25s, box-shadow 0.25s; }
.copy:hover:not([disabled]) { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.copy[disabled] { opacity: 0.4; cursor: default; }
.link { color: var(--mute); font-size: 13.5px; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-2); }
.link:hover { color: var(--ink); }

/* ---------- nav ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: 76px; padding: 0 var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; transition: background-color 0.5s var(--ease); }
.nav::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(rgba(4, 5, 10, 0.78), rgba(4, 5, 10, 0)); opacity: 0; transition: opacity 0.5s var(--ease); pointer-events: none; }
.nav.scrolled::after { opacity: 1; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; letter-spacing: 0.22em; justify-self: start; }
.mark { width: 32px; height: 32px; margin: -3px 0; color: var(--ink); }
.links { position: relative; display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(8, 8, 16, 0.45); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.links a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; font-size: 13.5px; color: var(--mute); transition: color 0.35s var(--ease); }
.links a:hover, .links a.on { color: var(--ink); }
.links-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: rgba(236, 232, 241, 0.08); box-shadow: inset 0 0 0 1px var(--line); opacity: 0; transition: opacity 0.4s var(--ease); }
.nav-end { justify-self: end; display: flex; align-items: center; gap: 8px; }
.icon-btn, .lang { display: grid; place-items: center; height: 38px; min-width: 38px; padding: 0 12px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); font: 500 12px/1 var(--mono); transition: box-shadow 0.3s, color 0.3s; }
.icon-btn { padding: 0; } .icon-btn svg { width: 15px; height: 15px; }
.icon-btn:hover, .lang:hover { color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }

/* ---------- shared section rhythm ---------- */
main > section { position: relative; padding: 0 var(--pad); }
h2 { font-size: clamp(2.3rem, 4.6vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; }
h3 { font-size: 18px; font-weight: 550; letter-spacing: -0.015em; }
.panel { background: var(--panel); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); padding: 26px; }
.p-top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 22px; }
.state { font: 500 12px/1 var(--mono); color: var(--faint); }
.state.ok { color: var(--ink-2); }
.state.ok::before, .live-dot { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); margin-right: 8px; vertical-align: 0.15em; }
.note { min-height: 1.4em; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.fine { margin-top: 14px; font-size: 13px; color: var(--faint); max-width: 46ch; }
.kv > div { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); align-items: baseline; }
.kv dt { color: var(--mute); font-size: 13.5px; }
.kv dd { font-size: 14.5px; min-width: 0; }

/* ---------- hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: grid; grid-template-rows: 1fr auto; padding-top: 120px !important; padding-bottom: 28px !important; }
.hero-in { align-self: center; max-width: 640px; }
.hero-title { font-size: clamp(3rem, 7vw, 6rem); line-height: 0.96; letter-spacing: -0.04em; font-weight: 500; }
.hero-title, .beyond-title { will-change: transform, opacity; backface-visibility: hidden; }
.hero-sub { margin-top: 28px; max-width: 46ch; font-size: clamp(16px, 1.25vw, 18px); color: var(--ink-2); line-height: 1.6; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.copyrows { margin-top: 44px; max-width: 560px; }
.copyrows > div { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.copyrows > div:last-child { border-bottom: 1px solid var(--line); }
.copyrows dt { font-size: 13px; color: var(--mute); }
.copyrows code { display: block; font-size: 13px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.telemetry { display: flex; flex-wrap: wrap; gap: 10px 40px; align-items: baseline; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }
.telemetry > div { display: flex; gap: 10px; align-items: baseline; }
.telemetry dt { color: var(--faint); }
.telemetry dd { color: var(--ink-2); }
.tl-status { margin-right: auto; }

/* ---------- singularity ---------- */
.sing { height: 260vh; padding: 0 !important; }
.sing-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: clip; }
.clock { position: absolute; left: var(--hx, 50%); top: var(--hy, 50%); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 8px; text-align: center; pointer-events: none; }
.clock-time { font-size: clamp(2.6rem, 6.5vmin, 5rem); font-weight: 300; letter-spacing: -0.02em; line-height: 1; color: #fff; }
.clock-label { font-size: 12.5px; color: var(--ink-2); max-width: 22ch; }
/* the disc runs behind these: a soft dark halo keeps them legible without a box */
.clock, .beyond-title, .beyond p { text-shadow: 0 0 18px rgba(4, 5, 10, 0.85), 0 0 4px rgba(4, 5, 10, 0.6); }
.sing-copy { position: absolute; left: var(--pad); bottom: 12vh; max-width: 430px; }
.sing-copy p { margin-top: 22px; color: var(--ink-2); font-size: 16.5px; }
.sing-facts { position: absolute; right: var(--pad); bottom: 12vh; display: grid; gap: 18px; text-align: right; }
.sing-facts dt { font-size: 13px; color: var(--mute); }
.sing-facts dd { font-size: 20px; margin-top: 4px; }

/* ---------- protocol ---------- */
.proto { padding-top: 22vh !important; }
.proto-head, .mine-head, .net-head { max-width: 1280px; margin: 0 0 0 auto; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 24px 60px; align-items: end; }
.proto-head p, .mine-head p, .net-head p { color: var(--ink-2); max-width: 46ch; font-size: 16.5px; }
.proto-grid { max-width: 1280px; margin: 64px 0 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.spec > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); position: relative; }
.spec > div:last-child { border-bottom: 1px solid var(--line); }
.spec dt { color: var(--mute); font-size: 14px; }
.spec dd { font-size: 15px; }
.supply { margin: 0; }
.supply svg { width: 100%; height: auto; display: block; overflow: visible; }
.supply figcaption { margin-top: 14px; font-size: 13px; color: var(--mute); max-width: 52ch; }
.sv-grid { stroke: var(--line); stroke-width: 1; }
.sv-axis { fill: var(--faint); font: 11px var(--mono); }
.sv-cap { stroke: var(--line-2); stroke-dasharray: 3 5; }
.sv-line { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.sv-area { fill: url(#sv-fill); }
.sv-dot { fill: var(--rose); }
.sv-tag { fill: var(--ink-2); font: 11px var(--mono); }
.howto { max-width: 1280px; margin: 120px 0 0 auto; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px 48px; }
.howto h3 { grid-column: 1 / -1; font-size: clamp(1.4rem, 2vw, 1.8rem); font-weight: 500; letter-spacing: -0.025em; }
.steps { list-style: none; counter-reset: s; display: grid; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); grid-row: span 2; font: 500 13px/1.6 var(--mono); color: var(--faint); }
.steps b { font-weight: 550; }
.steps p { color: var(--ink-2); font-size: 15px; }
.session { margin: 0; border-radius: var(--r); background: rgba(3, 3, 8, 0.82); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.session figcaption { display: flex; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13px; }
.session pre { margin: 0; padding: 20px; min-height: 290px; font: 13px/1.85 var(--mono); color: var(--ink-2); white-space: pre-wrap; }
.session .c { color: var(--ink); } .session .g { color: var(--rose); } .session .t { color: var(--mute); }
.session .cursor { display: inline-block; width: 8px; height: 1.1em; vertical-align: -0.2em; background: var(--ink-2); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- mining ---------- */
.mine { padding-top: 40vh !important; }
.console { max-width: 1280px; margin: 64px 0 0 auto; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); grid-template-areas: "acc miner" "acc shop"; gap: 16px; }
.p-access { grid-area: acc; align-self: start; } .p-miner { grid-area: miner; } .p-shop { grid-area: shop; }
.wallets { list-style: none; display: grid; gap: 8px; margin-top: 14px; }
.wallets button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.25s, background-color 0.25s; text-align: left; }
.wallets button:hover { box-shadow: inset 0 0 0 1px var(--line-2); background: rgba(236, 232, 241, 0.03); }
.wallets img { width: 22px; height: 22px; border-radius: 6px; }
.keyline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.keyline code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.cmds { list-style: none; margin-top: 22px; display: grid; }
.cmds li { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.cmds span { font-size: 12.5px; color: var(--mute); }
.cmds code { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 16px; padding: 12px 14px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--ink-2); }
.check.due { box-shadow: inset 0 0 0 1px rgba(233, 121, 154, 0.55); color: var(--ink); }
.tag { font: 600 11px/1 var(--mono); padding: 5px 8px; border-radius: 999px; color: var(--void); background: var(--ink); }
.bal { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 16px; }
.bal-main { grid-column: 1 / -1; }
.bal dt { font-size: 13px; color: var(--mute); }
.bal dd { margin-top: 4px; font-size: 16px; }
.bal-main dd .num { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 300; letter-spacing: -0.02em; }
.unit { color: var(--mute); font-size: 14px; }
.wd { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.wd h4 { font-size: 16px; font-weight: 550; margin-bottom: 12px; }
.wd-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
.wd-row input { height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: rgba(3, 3, 8, 0.7); box-shadow: inset 0 0 0 1px var(--line); font: 14px var(--mono); outline: none; transition: box-shadow 0.25s; min-width: 0; }
.wd-row input:focus { box-shadow: inset 0 0 0 1px rgba(233, 121, 154, 0.6); }
.wd-row input::placeholder { color: var(--faint); }
.wd-list { list-style: none; margin-top: 10px; display: grid; gap: 6px; font-size: 13px; color: var(--mute); }
.wd-list a { text-decoration: underline; text-underline-offset: 3px; }
.shop-lead { color: var(--ink-2); font-size: 15px; margin-bottom: 18px; max-width: 48ch; }
.p-shop .btn { margin-top: 18px; }

/* ---------- network ---------- */
.net { padding-top: 34vh !important; }
.netstats { max-width: 1280px; margin: 64px 0 0 auto; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.netstats > div { padding: 18px 18px 0 0; }
.netstats > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.netstats dt { font-size: 13px; color: var(--mute); }
.netstats dd { margin-top: 6px; font-size: clamp(17px, 1.6vw, 22px); }
.activity { max-width: 1280px; margin: 56px 0 0 auto; }
.bars { height: 120px; display: grid; grid-template-columns: repeat(60, minmax(0, 1fr)); gap: 3px; align-items: end; }
.bars i { display: block; height: 100%; border-radius: 2px; background: var(--ink-2); transform-origin: bottom; transform: scaleY(var(--v, 0.02)); opacity: 0.85; transition: transform 0.8s var(--ease); }
.bars i.empty { background: var(--line-2); opacity: 1; }
.bars i.now { background: var(--rose); }
.activity figcaption { display: flex; justify-content: space-between; margin-top: 12px; font-size: 13px; color: var(--mute); }
.tables { max-width: 1280px; margin: 64px 0 0 auto; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; }
.tbl-wrap h3 { margin-bottom: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 450; color: var(--faint); font-size: 12.5px; padding: 0 10px 10px 0; }
.tbl td { padding: 11px 10px 11px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tbl th:last-child, .tbl td:last-child { text-align: right; padding-right: 0; }
.tbl tr.click { cursor: pointer; transition: background-color 0.2s; }
.tbl tr.click:hover td { color: var(--ink); }
.tbl tr.me td { color: var(--ink); }
.tbl em { font-style: normal; font-size: 11px; color: var(--rose); margin-left: 6px; }
.tbl td.empty { text-align: left; color: var(--faint); font-family: var(--sans); }
.tbl tr.detail td { padding: 0 0 14px; border-top: 0; white-space: normal; }
.payouts { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 18px; padding: 14px 16px; border-radius: 12px; background: rgba(3, 3, 8, 0.7); box-shadow: inset 0 0 0 1px var(--line); font-size: 12.5px; }
.payouts b { grid-column: 1 / -1; font-family: var(--sans); font-weight: 550; color: var(--ink); margin-bottom: 4px; }
.burns { max-width: 1280px; margin: 56px 0 0 auto; }
.burn-total { margin: 10px 0 14px; font-size: 22px; }
.burns ul { list-style: none; display: grid; gap: 6px; font: 13px var(--mono); color: var(--mute); }

/* ---------- faq ---------- */
.faq { padding-top: 22vh !important; max-width: calc(1280px + 2 * var(--pad)); margin-left: auto; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; }
.qa details { border-top: 1px solid var(--line); }
.qa details:last-child { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.015em; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-top: 8px; border-right: 1.5px solid var(--mute); border-bottom: 1.5px solid var(--mute); transform: rotate(45deg); transition: transform 0.45s var(--ease); }
.qa details[open] summary::after { transform: rotate(-135deg); }
.qa .ans { overflow: hidden; }
.qa .ans p { padding: 0 40px 22px 0; color: var(--ink-2); font-size: 15.5px; max-width: 64ch; }

/* ---------- beyond ---------- */
.beyond { min-height: 120vh; display: grid; align-content: center; justify-items: center; text-align: center; gap: 26px; padding-top: 30vh !important; padding-bottom: 20vh !important; }
.beyond-title { font-size: clamp(3rem, 8vw, 6rem); line-height: 0.96; letter-spacing: -0.04em; }
.beyond p { color: var(--ink-2); font-size: 17px; }

.foot { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; padding: 28px var(--pad) 36px; border-top: 1px solid var(--line); font-size: 13px; }
.brand-sm { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; letter-spacing: 0.22em; }
.mark-sm { width: 22px; height: 22px; margin: -2px 0; }
.foot-links { margin-left: auto; display: flex; gap: 22px; color: var(--mute); }
.foot-links a:hover { color: var(--ink); }

/* ---------- motion defaults (GSAP takes over when present) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .proto-head, .mine-head, .net-head, .proto-grid, .howto, .tables, .faq { grid-template-columns: minmax(0, 1fr); }
  .console { grid-template-columns: minmax(0, 1fr); grid-template-areas: "acc" "miner" "shop"; }
  .netstats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .netstats > div:nth-child(4) { border-left: 0; padding-left: 0; }
}
@media (max-width: 860px) {
  .links { display: none; }
  .nav { grid-template-columns: 1fr auto; }
}
@media (max-width: 640px) {
  :root { --pad: 20px; }
  .nav { height: 64px; }
  .nav-end .btn { display: none; }
  .hero { padding-top: 96px !important; }
  .hero-in { align-self: end; padding-bottom: 28px; }
  .telemetry { gap: 8px 22px; }
  .tl-status { width: 100%; }
  .copyrows > div { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .sing-copy { left: var(--pad); right: var(--pad); bottom: 8vh; }
  /* the hole sits high on phones: the facts run as one row beneath it */
  .sing-facts { top: 38svh; bottom: auto; left: var(--pad); right: var(--pad); grid-template-columns: repeat(3, 1fr); gap: 12px; text-align: left; padding: 10px 12px; border-radius: 14px; background: rgba(8, 6, 16, 0.58); border: 1px solid rgba(255, 255, 255, 0.08); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .sing-facts dt { font-size: 11px; white-space: nowrap; }
  .sing-facts dd { font-size: 14px; white-space: nowrap; }
  .spec > div { grid-template-columns: 104px minmax(0, 1fr); }
  .kv > div { grid-template-columns: 96px minmax(0, 1fr); }
  .netstats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .netstats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .netstats > div:nth-child(4) { border-left: 1px solid var(--line); padding-left: 18px; }
  .bars { gap: 2px; height: 90px; }
  .tbl th:nth-child(4), .tbl td:nth-child(4) { display: none; }
  .tbl-wrap:first-child .tbl th:nth-child(4), .tbl-wrap:first-child .tbl td:nth-child(4) { display: none; }
  .wd-row { grid-template-columns: minmax(0, 1fr) auto; }
  .wd-row #wd-go { grid-column: 1 / -1; }
  .panel { padding: 20px; }
  .cmds li { grid-template-columns: minmax(0, 1fr) auto; }
  .cmds span { grid-column: 1 / -1; }
  .foot-links { margin-left: 0; }
}

/* the disc sits behind all content now: a soft dark halo keeps running text legible where plasma passes under it */
main p, main h2, main dt, main dd, .spec, .steps { text-shadow: 0 0 14px rgba(4, 5, 10, 0.9), 0 0 3px rgba(4, 5, 10, 0.7); }

/* ---- opening: the mark settles, then falls into the real horizon ---- */
#intro { position: fixed; inset: 0; z-index: 200; background: #04050a; pointer-events: none; animation: intro-out .7s ease 3.2s forwards; }
.intro-mark { position: absolute; left: 50%; top: 50%; width: 92px; height: 92px; margin: -46px 0 0 -46px; color: var(--ink); opacity: 0; will-change: transform, opacity; }
.intro-mark svg { width: 100%; height: 100%; display: block; }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
.hero-sub { translate: 0 calc(var(--rise, 0) * 1px); }
.cta { translate: 0 calc(var(--rise, 0) * 1.35px); }
.copyrows { translate: 0 calc(var(--rise, 0) * 1.7px); }
.hero-title > span { display: inline-block; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: reduce) { #intro { display: none; } }
