:root {
  --bg: #030406;
  --bg2: #0a0d12;
  --ink: #eef6f8;
  --dim: rgba(225, 238, 242, .56);
  --line: rgba(190, 240, 255, .14);
  --acc: #8ff6ff;
  --acc2: #2fd9ff;
  --sans: "Geist", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --w: 1240px;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) { --bg2: #0a0d12; }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; }
body { background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.dim { color: var(--dim); }
.k { color: var(--acc); margin-bottom: 16px; }
::selection { background: var(--acc); color: #001014; }
:focus-visible { outline: 1px solid var(--acc); outline-offset: 3px; }

/* boot */
.boot { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: grid; place-items: center; transition: opacity .9s, visibility .9s; }
.boot.done { opacity: 0; visibility: hidden; }
.boot-in { width: min(320px, 80vw); display: grid; gap: 14px; }
.boot-bar { height: 1px; background: var(--line); overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--acc); box-shadow: 0 0 12px var(--acc); transition: width .3s; }

/* top bar */
.top { position: fixed; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 22px max(24px, calc((100vw - var(--w)) / 2)); pointer-events: none; }
.top > * { pointer-events: auto; }
.mark { display: flex; align-items: baseline; gap: 14px; }
.mark b { font-weight: 700; font-size: 22px; letter-spacing: -.04em; }
.top nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.top nav > a { color: var(--dim); transition: color .2s; }
.top nav > a:hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; background: var(--ink); color: #021015; }
.pill.soon { background: rgba(143, 246, 255, .08); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.pill.soon::before, .btn.soon::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 10px var(--acc); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .25; } }

/* journey: scroll drives the camera */
.journey { position: relative; height: 640vh; }
.journey.past .caps, .journey.past .meter, .journey.past .hint, .journey.past .hud::after { opacity: 0; transition: opacity .5s; }
.hud::after { transition: opacity .5s; }
.stage { position: fixed; z-index: 0; top: 0; left: 0; width: 100%; height: 100vh; height: 100svh; overflow: hidden; }
#gl, .fallback { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fallback { object-fit: cover; }
.fallback[hidden] { display: none; }
.hud { position: absolute; inset: 0; pointer-events: none; }
.hud::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(0,0,0,.55)); }
.hud::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 46%; background: linear-gradient(0deg, rgba(3,4,6,.85), transparent); }
.caps { position: absolute; z-index: 2; left: max(24px, calc((100vw - var(--w)) / 2)); right: 24px; bottom: 15vh; max-width: 720px; }
.cap { position: absolute; left: 0; bottom: 0; width: 100%; opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .8s cubic-bezier(.2,.7,.2,1); }
.cap.on { opacity: 1; transform: none; }
.cap.on .row-btn { pointer-events: auto; }
h1, h2 { font-weight: 600; letter-spacing: -.05em; line-height: .98; }
.cap h1 { font-size: clamp(46px, 7.4vw, 112px); }
.cap h2 { font-size: clamp(38px, 5.6vw, 84px); }
.cap .sub { margin-top: 20px; max-width: 480px; color: var(--dim); font-size: clamp(16px, 1.4vw, 19px); }
.row-btn { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 999px; font-weight: 600; font-size: 15.5px; background: var(--ink); color: #021015; transition: transform .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 0 40px -6px rgba(143, 246, 255, .6); }
.btn.ghost { background: rgba(143, 246, 255, .06); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(143, 246, 255, .3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.btn.soon { background: rgba(143, 246, 255, .08); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); cursor: default; }
.meter { position: absolute; z-index: 2; right: max(24px, calc((100vw - var(--w)) / 2)); bottom: 15vh; display: flex; align-items: center; gap: 12px; color: var(--dim); }
.meter i { width: 120px; height: 1px; background: var(--line); }
.meter b { display: block; height: 100%; width: 0; background: var(--acc); box-shadow: 0 0 8px var(--acc); }
.meter #meter-p { width: 4ch; text-align: right; color: var(--ink); }
.hint { position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--dim); transition: opacity .5s; }
.hint span { width: 1px; height: 36px; background: linear-gradient(var(--acc), transparent); animation: drip 1.8s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.hint.gone { opacity: 0; }

/* sections */
main { position: relative; z-index: 3; }
/* the sections float in the room as glass panels */
main .sec { margin-top: 18vh; padding: 64px; max-width: calc(var(--w) - 48px); border-radius: 28px; border: 1px solid rgba(143, 246, 255, .16);
  background: linear-gradient(160deg, rgba(10, 22, 28, .62), rgba(3, 7, 10, .5)); backdrop-filter: blur(18px) saturate(1.25); -webkit-backdrop-filter: blur(18px) saturate(1.25);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .06); }
main .sec:first-child { margin-top: 10vh; }
.cell { background: rgba(4, 10, 14, .55); }
.foot { position: relative; z-index: 3; }
.foot-row, .fine { position: relative; text-shadow: 0 1px 12px rgba(0,0,0,.9); }
.foot::after { content: ""; position: absolute; z-index: -1; left: -50vw; right: -50vw; bottom: 0; height: 260px; background: linear-gradient(transparent, rgba(3,4,6,.75)); }
.sec { max-width: var(--w); margin: 0 auto; padding: 150px 24px 0; }
.sec h2 { font-size: clamp(36px, 4.8vw, 68px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 56px; border-top: 1px solid var(--line); }
.steps article { padding: 30px 30px 10px 0; }
.steps article + article { padding-left: 30px; border-left: 1px solid var(--line); }
.steps span { color: var(--acc); }
.steps h3 { font-size: 22px; letter-spacing: -.03em; font-weight: 600; margin: 48px 0 10px; }
.steps p { color: var(--dim); font-size: 15.5px; }
.m-head { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: end; }
.m-head p.dim { max-width: 440px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.cell { background: var(--bg2); padding: 26px 24px 28px; display: grid; gap: 8px; align-content: start; min-height: 170px; }
.cell span { color: var(--dim); }
.cell b { font-size: 38px; font-weight: 600; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.cell small { color: var(--dim); font-size: 13.5px; }
.cell b.live { color: var(--acc); text-shadow: 0 0 24px rgba(143, 246, 255, .5); }
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.proof .dim { margin-top: 18px; max-width: 440px; }
.card { border-radius: 18px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(143,246,255,.05), rgba(143,246,255,0)); padding: 8px 26px 24px; }
.r { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.r[hidden] { display: none; }
.r span { color: var(--dim); }
.r b { font-weight: 500; text-align: right; }
.ca { font-family: var(--mono); font-size: 13px; text-align: right; word-break: break-all; cursor: copy; }
.ca[data-ok]::after { content: " · copied"; color: var(--acc); }
.links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: 20px; font-size: 14.5px; }
.links:empty { display: none; }
.links a:not(.btn) { color: var(--dim); }
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 80px; }
.qs { border-top: 1px solid var(--line); }
.qs details { border-bottom: 1px solid var(--line); }
.qs summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: 19px; font-weight: 500; letter-spacing: -.015em; }
.qs summary::-webkit-details-marker { display: none; }
.qs summary::after { content: "+"; color: var(--acc); font-weight: 300; font-size: 24px; line-height: 1; transition: transform .3s; }
.qs details[open] summary::after { transform: rotate(45deg); }
.qs p { color: var(--dim); padding: 0 40px 26px 0; }
.foot { max-width: var(--w); margin: 170px auto 0; padding: 0 24px 40px; }
.big { font-weight: 700; font-size: clamp(110px, 27vw, 380px); letter-spacing: -.08em; line-height: .78; margin-bottom: 46px; background: linear-gradient(180deg, var(--ink) 30%, rgba(143,246,255,.15)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-row { display: flex; justify-content: space-between; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14.5px; }
.foot-row div { display: flex; gap: 24px; color: var(--dim); }
.foot-row div span { display: flex; gap: 24px; }
.foot-row a:hover { color: var(--ink); }
.fine { margin-top: 22px; font-size: 12.5px; color: var(--dim); max-width: 720px; }

/* terminal overlay */
.term { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: rgba(1, 3, 5, .6); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 20px; }
.term[hidden] { display: none; }
.term-in { width: min(760px, 100%); height: min(620px, 86vh); display: grid; grid-template-rows: auto 1fr auto; border-radius: 18px; border: 1px solid rgba(143,246,255,.25); background: rgba(4, 10, 14, .92); box-shadow: 0 0 80px -20px rgba(143,246,255,.35); overflow: hidden; }
.term-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); color: var(--acc); }
.term-top button { font-size: 24px; line-height: 1; color: var(--dim); }
.term-log { overflow-y: auto; padding: 22px 20px; display: grid; gap: 14px; align-content: start; font-size: 15.5px; }
.term-log p { white-space: pre-wrap; }
.term-log .me { color: var(--acc); }
.term-log .sys { color: var(--dim); font-family: var(--mono); font-size: 13px; }
.term-form { display: flex; gap: 10px; padding: 14px; border-top: 1px solid var(--line); }
.term-form input { flex: 1; height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0,0,0,.4); color: var(--ink); padding: 0 14px; font: inherit; }
.term-form button { height: 46px; padding: 0 20px; border-radius: 12px; background: var(--ink); color: #021015; font-weight: 600; }
.term-form [disabled] { opacity: .45; cursor: not-allowed; }

@media (max-width: 900px) {
  .steps, .m-head, .proof, .faq { grid-template-columns: 1fr; gap: 36px; }
  .steps { gap: 0; }
  .steps article, .steps article + article { padding: 26px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .steps h3 { margin-top: 18px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .sec { padding-top: 110px; }
}
@media (max-width: 640px) {
  main .sec { margin: 12vh 12px 0; padding: 34px 20px; border-radius: 22px; }
  .hide-s, .mark span { display: none; }
  .top { padding: 18px; }
  .caps { left: 18px; right: 18px; bottom: 120px; }
  .meter { left: 18px; right: auto; bottom: 64px; }
  .hint { display: none; }
  .sec, .foot { padding-left: 18px; padding-right: 18px; }
  .cell b { font-size: 30px; }
  .cell { min-height: 140px; padding: 20px 18px; }
  .foot-row { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* rules */
.page { max-width: 760px; margin: 0 auto; padding: 150px 24px 0; }
.page h1 { font-size: clamp(52px, 8vw, 90px); }
.page h2 { font-size: 19px; letter-spacing: -.01em; margin: 44px 0 8px; line-height: 1.3; }
.page p { color: var(--dim); }
.end-space { height: 22vh; }

/* ---- OMNIVOID: display type, HUD frame, telemetry, reticle ---- */
:root { --disp: "Michroma", "Geist", sans-serif; }
.mark b, h1, h2, .boot-mark, .cell b, .steps span, .meter #meter-p { font-family: var(--disp); font-weight: 400; }
.mark b { font-size: 17px; letter-spacing: .18em; }
h1, h2 { letter-spacing: -.01em; line-height: 1.12; text-transform: none; }
.cap h1 { font-size: clamp(32px, 4.9vw, 74px); max-width: 15ch; }
.cap h2 { font-size: clamp(26px, 3.7vw, 56px); max-width: 17ch; }
.sec h2 { font-size: clamp(26px, 3.2vw, 46px); }
.cell b { font-size: 26px; letter-spacing: 0; }
.steps span { font-size: 13px; letter-spacing: .1em; }
.k { letter-spacing: .22em; }
h1 .g, h2 .g { color: var(--acc); }

.boot-in { width: min(420px, 84vw); }
.boot-mark { font-family: var(--disp); font-size: 22px; letter-spacing: .4em; margin-bottom: 6px; }
.boot-log { display: grid; gap: 6px; min-height: 120px; align-content: end; color: var(--dim); font-size: 11.5px; }
.boot-log b { color: var(--acc); font-weight: 400; }

.frame i { position: fixed; z-index: 15; width: 22px; height: 22px; pointer-events: none; border-color: rgba(143, 246, 255, .55); border-style: solid; border-width: 0; }
.frame i:nth-child(1) { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.frame i:nth-child(2) { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.frame i:nth-child(3) { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.frame i:nth-child(4) { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }

.telemetry { position: fixed; z-index: 15; left: max(24px, calc((100vw - var(--w)) / 2)); bottom: 22px; display: flex; gap: 22px; font-size: 10.5px; color: var(--dim); pointer-events: none; }
.telemetry b { color: var(--acc); font-weight: 400; font-variant-numeric: tabular-nums; }
.telemetry span:first-child::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 8px var(--acc); vertical-align: 1px; animation: blink 1.6s infinite; }

.reticle { position: fixed; z-index: 60; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; pointer-events: none; border: 1px solid rgba(143, 246, 255, .6); border-radius: 50%; opacity: 0; transition: opacity .3s, width .25s, height .25s, margin .25s; }
.reticle::before, .reticle::after { content: ""; position: absolute; background: var(--acc); }
.reticle::before { left: 50%; top: -7px; bottom: -7px; width: 1px; transform: translateX(-.5px); opacity: .5; }
.reticle::after { top: 50%; left: -7px; right: -7px; height: 1px; transform: translateY(-.5px); opacity: .5; }
.reticle span { position: absolute; left: 30px; top: 30px; white-space: nowrap; font: 400 10px var(--mono); letter-spacing: .08em; color: var(--acc); }
.reticle.on { opacity: 1; }
.reticle.hot { width: 54px; height: 54px; margin: -27px 0 0 -27px; }

.snd { display: inline-flex; align-items: flex-end; gap: 2px; height: 36px; padding: 0 12px 12px; font: 400 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.snd i { width: 2px; height: 4px; background: currentColor; }
.snd i:nth-child(4) { margin-right: 8px; }
.snd[aria-pressed="true"] { color: var(--acc); }
.snd[aria-pressed="true"] i { animation: eq .9s infinite ease-in-out alternate; }
.snd i:nth-child(2) { animation-delay: .2s !important; } .snd i:nth-child(3) { animation-delay: .4s !important; } .snd i:nth-child(4) { animation-delay: .1s !important; }
@keyframes eq { to { height: 12px; } }

[data-decode] { font-variant-ligatures: none; }

@media (max-width: 640px) {
  .telemetry { left: 18px; bottom: 16px; gap: 14px; font-size: 9.5px; }
  .telemetry span:last-child { display: none; }
  .frame i { width: 14px; height: 14px; }
  .mark b { font-size: 14px; }
  .meter { bottom: 70px; }
}
@media (pointer: coarse) { .reticle { display: none; } }

/* Chrome on macOS paints a black box when a backdrop-filter sits inside a transformed,
   transparent caption above the WebGL canvas. Nothing over the stage uses it. */
.hud *, .hud *::before, .hud *::after { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; filter: none !important; }
.cap .btn.ghost, .cap .btn.soon { background: rgba(8, 20, 26, .82); }
.cap { will-change: opacity, transform; }
