@font-face { font-family: "Inter Tight"; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-tight-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }
:root { --ink: #E6F1F2; --dim: rgba(230,241,242,.5); --line: rgba(230,241,242,.12); --glow: #6FF0DF; }
html, body { margin: 0; height: 100%; background: #010609; color: var(--ink); font: 15px/1.5 Inter, system-ui, sans-serif; overflow: hidden; }
#scene { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
.hud, .labels { position: fixed; inset: 0; pointer-events: none; transition: opacity 1.6s ease 1.2s; }
body:not(.in) .hud, body:not(.in) .labels { opacity: 0; }
.frame { position: absolute; inset: 14px; border: 1px solid var(--line); }
.frame i { position: absolute; width: 5px; height: 5px; background: var(--ink); opacity: .7; }
.frame i:nth-child(1) { left: -3px; top: -3px; } .frame i:nth-child(2) { right: -3px; top: -3px; }
.frame i:nth-child(3) { left: -3px; bottom: -3px; } .frame i:nth-child(4) { right: -3px; bottom: -3px; }
.brand { position: absolute; left: 34px; top: 30px; font: 500 14px Inter; pointer-events: auto; color: var(--ink); text-decoration: none; }
.brand::before { content: "\2190  "; opacity: .6; }
.meter { position: absolute; right: 34px; top: 30px; text-align: right; font: 500 12px/1.4 ui-monospace, "SF Mono", Menlo, monospace; color: var(--dim); }
.meter b { display: block; font: 300 34px/1 "Inter Tight"; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.title { position: absolute; left: 34px; bottom: 34px; max-width: min(34rem, 80vw); }
.title h1 { margin: 0; font: 250 clamp(38px, 5.4vw, 84px)/.95 "Inter Tight"; letter-spacing: -.04em; }
.title p { margin: 14px 0 0; color: var(--dim); max-width: 27rem; }
.crew { position: absolute; right: 34px; bottom: 34px; display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 12px; color: var(--dim); }
.crew li { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.crew .tk-bot { flex: none; }
.crew b { color: var(--ink); font-weight: 600; }
.labels { position: fixed; inset: 0; pointer-events: none; }
.label { position: absolute; left: 0; top: 0; white-space: nowrap; font: 600 13px/1.2 Inter; letter-spacing: -.005em; color: var(--ink); text-shadow: 0 0 12px rgba(0,20,30,.9); will-change: transform, opacity; }
.label small { display: block; font: 500 10.5px/1.4 ui-monospace, Menlo, monospace; color: var(--dim); }
.card { position: fixed; z-index: 3; min-width: 220px; max-width: 300px; padding: 14px 16px; border: 1px solid rgba(127,243,227,.35); background: rgba(2,18,26,.78); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-radius: 2px; pointer-events: auto; }
.card[hidden] { display: none; }
.card h2 { margin: 0 0 6px; font: 600 18px/1.2 "Inter Tight"; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--dim); font-size: 13px; }
.card a { display: inline-block; margin-top: 10px; color: var(--glow); font-weight: 600; text-decoration: none; }
.intro { position: fixed; inset: 0; z-index: 5; display: none; place-items: center; text-align: center; background: radial-gradient(ellipse at 50% 35%, rgba(11,74,92,.55), rgba(1,6,9,.96) 70%); transition: opacity 1.6s ease; }
.intro.gone { opacity: 0; pointer-events: none; }
.intro h2 { margin: 0; font: 200 clamp(40px, 7vw, 104px)/.95 "Inter Tight"; letter-spacing: -.045em; }
.intro p { margin: 18px auto 0; max-width: 30rem; color: var(--dim); }
.dive { position: relative; margin: 40px auto 0; width: 84px; height: 84px; border: 0; border-radius: 50%; background: none; color: var(--ink); font: 500 11px Inter; cursor: pointer; }
.dive svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.dive:focus-visible { outline: 2px solid var(--glow); outline-offset: 6px; }
@media (max-width: 700px) { .title h1 { font-size: 36px; } .crew, .title p { display: none; } .meter b { font-size: 26px; } }

.windows { display: inline-flex; gap: 10px; pointer-events: auto; }
.windows a { color: var(--dim); text-decoration: none; }
.windows a[aria-current] { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.meter { pointer-events: auto; }
.toggle { position: absolute; right: 34px; top: 104px; pointer-events: auto; min-height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: rgba(1,6,9,.5); color: var(--ink); font: 500 12px Inter; cursor: pointer; }
.toggle[hidden] { display: none; }
.list { position: fixed; z-index: 4; left: 34px; top: 74px; max-width: min(360px, calc(100vw - 68px)); max-height: calc(100vh - 340px); overflow: auto; padding: 10px 14px; border: 1px solid var(--line); background: rgba(1,6,9,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.list summary { cursor: pointer; font: 600 13px Inter; color: var(--ink); }
.list ol { margin: 8px 0 0; padding-left: 1.4em; display: grid; gap: 6px; font-size: 14px; }
.list a { color: var(--ink); }
.list small { color: var(--dim); }
.fallback { display: none; margin: 8px 0 0; color: var(--dim); font-size: 13px; }
.no-gl .fallback { display: block; }
.no-gl .intro, .no-gl #scene, .no-gl .labels, .no-gl .toggle { display: none; }
.no-gl .hud, .no-gl .labels { opacity: 1; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .intro { display: none; } .hud, .labels { transition: none; opacity: 1; } }
@media (max-width: 700px) { .list { top: auto; bottom: 120px; left: 16px; max-height: 40vh; } .brand { left: 22px; top: 22px; } .meter { right: 22px; top: 22px; } }
.gl .intro { display: grid; }
body:not(.gl) .hud, body:not(.gl) .labels { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .gl .intro { display: none; } }
