@font-face { font-family: "Hanken Grotesk"; src: url(/fonts/hanken.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/plex-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url(/fonts/plex-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --abyss: #04070c; --ice: #eef3f7; --frost: #9db1c4; --steel: #5d738a; --sounding: #bfe3ff;
  --safe: #7ee2b8; --caution: #f2c46b; --unsafe: #ff5d47;
  --tone: var(--sounding);
  --hair: rgba(157, 177, 196, .22); --hair2: rgba(157, 177, 196, .38);
  --u: 8px;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --mono: "Plex Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --wl: 50vh; --mark-y: 18vh;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--abyss); color: var(--ice); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font: 400 16px/1.5 var(--sans); min-height: 100vh; overflow-x: hidden; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
ol, ul { list-style: none; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 1px solid var(--sounding); outline-offset: 3px; }
.tag { display: flex; gap: 12px; align-items: baseline; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--frost); }
.tag b { font-weight: 500; color: var(--tone); }

/* ── Hero ─────────────────────────────────────────────── */
.hero { position: relative; height: 100svh; min-height: 680px; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#photo { z-index: 0; } #ascii { z-index: 1; }

.mark { position: absolute; z-index: 3; left: 0; right: 0; top: var(--mark-y); text-align: center; pointer-events: none;
  font: 500 clamp(72px, 15.5vw, 248px)/0.82 var(--sans); letter-spacing: -0.055em; color: var(--ice); white-space: nowrap; }
.mark-text { display: inline-block; transition: color .8s var(--ease), opacity .6s var(--ease); }
.mark .ch { display: inline-block; transform: translateY(60%); opacity: 0; filter: blur(8px); animation: rise 1.1s var(--ease) forwards; }
@keyframes rise { to { transform: none; opacity: 1; filter: none; } }
.hero[data-state="scanning"] .mark-text { opacity: .9; }
.hero[data-state="done"] .mark-text { color: var(--tone); }

/* Top bar */
.bar { position: absolute; z-index: 8; top: 0; left: 0; right: 0; height: 72px; display: flex; justify-content: space-between; align-items: center;
  padding: 0 40px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.logo img { display: block; border-radius: 8px; outline: 1px solid var(--hair2); outline-offset: -1px; }
.logo { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; opacity: 0; animation: fade .8s var(--ease) .1s forwards; }
.bar nav { display: flex; gap: 28px; align-items: center; opacity: 0; animation: fade .8s var(--ease) .2s forwards; }
.bar nav > a { text-decoration: none; color: var(--frost); padding: 12px 0; transition: color .2s; }
.bar nav > a:hover { color: var(--ice); }
.gh { display: inline-flex; align-items: center; gap: 8px; }
.gh svg { flex: none; }
@keyframes fade { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pin-wrap { position: relative; }
.pin { display: inline-flex; gap: 8px; align-items: center; height: 36px; padding: 0 14px; background: transparent; border: 1px solid var(--hair2); color: var(--ice);
  font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: border-color .2s, background .2s; }
.pin:hover { border-color: var(--ice); background: rgba(238, 243, 247, .06); }
.pin.done { border-color: var(--safe); color: var(--safe); }
.pin-tip { position: absolute; right: 0; top: calc(100% + 10px); width: max-content; max-width: 280px; padding: 12px 14px; background: #0a111a; border: 1px solid var(--hair2);
  font: 400 12px/1.5 var(--mono); letter-spacing: .02em; text-transform: none; color: var(--frost); opacity: 0; transform: translateY(-4px); transition: opacity .25s var(--ease), transform .25s var(--ease); }
.pin-tip.on { opacity: 1; transform: none; }
.pin-tip kbd { font: 500 12px/1 var(--mono); color: var(--ice); border: 1px solid var(--hair2); padding: 2px 6px; margin: 0 2px; }

.credit { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 10px; text-transform: none; letter-spacing: .02em; white-space: nowrap; }
.credit .cw { color: var(--frost); opacity: 0; animation: credit .8s var(--ease) 1.1s forwards; }
.credit .cw + a + .cw { animation-delay: 1.35s; }
.credit a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ice); padding: 4px 10px 4px 4px; border: 1px solid var(--hair2); border-radius: 999px;
  opacity: 0; animation: credit .8s var(--ease) 1.2s forwards; transition: border-color .2s, background .2s; }
.credit a:last-child { animation-delay: 1.45s; }
.credit a:hover { border-color: var(--ice); background: rgba(238, 243, 247, .06); }
.credit img { width: 24px; height: 24px; display: block; border-radius: 50%; }
.credit .vf { display: block; margin-left: -3px; flex: none; }
@keyframes credit { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

.crop { position: absolute; z-index: 5; width: 14px; height: 14px; border: 0 solid var(--steel); pointer-events: none; }
.crop.tl { top: 80px; left: 24px; border-width: 1px 0 0 1px; } .crop.tr { top: 80px; right: 24px; border-width: 1px 1px 0 0; }
.crop.bl { bottom: 24px; left: 24px; border-width: 0 0 1px 1px; } .crop.br { bottom: 24px; right: 24px; border-width: 0 1px 1px 0; }
.foot { position: absolute; z-index: 5; bottom: 30px; font: 400 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--frost); transition: opacity .4s; }
.foot.fl { left: 48px; } .foot.fr { right: 48px; }

/* Wire: the real hosts the page contacts, running off the right edge */
.wire { position: absolute; z-index: 4; right: -16px; top: calc(var(--wl) + 16px); bottom: 64px; width: min(30vw, 420px); overflow: hidden; text-align: right;
  font: 400 11px/16px var(--mono); color: var(--frost); white-space: pre; opacity: 0; transition: opacity .7s var(--ease);
  display: flex; flex-direction: column; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(270deg, transparent 0, #000 22%, #000 64%, transparent 100%), linear-gradient(transparent, #000 30%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(270deg, transparent 0, #000 22%, #000 64%, transparent 100%), linear-gradient(transparent, #000 30%); mask-composite: intersect; }
.wire span { display: block; height: 16px; flex: none; animation: logIn .3s var(--ease); }
.wire b { font-weight: 400; color: var(--steel); }
.wire i { font-style: normal; color: var(--sounding); }
.hero[data-state="scanning"] .wire { opacity: 1; }
.hero[data-state="done"] .foot { opacity: 0; pointer-events: none; }

/* Live stream: runs off the left edge on purpose */
.stream { position: absolute; z-index: 4; left: -16px; top: calc(var(--wl) + 16px); bottom: 64px; width: min(30vw, 420px); overflow: hidden;
  font: 400 11px/16px var(--mono); color: var(--steel); white-space: pre; opacity: 0; transition: opacity .7s var(--ease);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 64%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 22%, #000 64%, transparent 100%); }
.stream .ln { display: block; height: 16px; }
.stream .ln.real { color: var(--sounding); }
.stream .ln.real i { color: var(--frost); font-style: normal; }
.hero[data-state="scanning"] .stream { opacity: 1; }

/* Dock: form, live log, filmstrip */
.dock { position: absolute; z-index: 6; left: 50%; top: calc(var(--wl) + 36px); width: min(640px, calc(100vw - 48px)); transform: translateX(-50%);
  transition: opacity .35s var(--ease), transform .45s var(--ease); }
.hero[data-state="done"] .dock { opacity: 0; transform: translate(-50%, -10px); pointer-events: none; visibility: hidden; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
.lede { text-wrap: balance; font: 500 clamp(19px, 1.6vw, 24px)/1.25 var(--sans); letter-spacing: -0.01em; text-align: center; margin-bottom: 20px; transition: opacity .4s var(--ease), transform .4s var(--ease); }
.hero[data-state="scanning"] .lede { opacity: 0; transform: translateY(-6px); }
form { display: flex; height: 56px; background: rgba(4, 7, 12, .85); border: 1px solid var(--hair2); border-radius: 2px; transition: border-color .25s; }
form:focus-within { border-color: var(--ice); }
input { flex: 1; min-width: 0; background: transparent; border: 0; padding: 0 20px; font: 400 15px/1 var(--mono); outline: none; color: var(--ice); }
input::placeholder { color: var(--frost); opacity: .8; }
#go { flex: none; min-width: 136px; border: 0; background: var(--ice); color: var(--abyss); font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .25s, color .25s; }
#go:hover { background: #fff; }
#go:disabled { cursor: progress; background: rgba(191, 227, 255, .08); color: var(--sounding); border-left: 1px solid var(--hair2); }
.log { margin-top: 16px; height: 54px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; font: 400 12px/18px var(--mono); letter-spacing: .02em; }
.log > div { display: flex; gap: 12px; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; animation: logIn .35s var(--ease); transition: color .4s; }
.log > div:last-child { color: var(--ice); }
.log > div:nth-last-child(2) { color: var(--frost); }
.log > div i { font-style: normal; color: var(--steel); flex: none; }
.log > .hint { justify-content: center; color: var(--frost); }
.log:has(> .hint:only-child), .log:has(> .err:only-child) { justify-content: flex-start; }
.log > .err { color: var(--caution); justify-content: center; }
@keyframes logIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Report: set straight on the water, no box */
.report { position: absolute; z-index: 7; left: 50%; top: calc(var(--wl) + 60px); width: min(720px, calc(100vw - 48px)); transform: translateX(-50%);
  max-height: calc(100svh - var(--wl) - 92px); overflow: hidden; }
.report[hidden] { display: block !important; visibility: hidden; pointer-events: none; }
.report .rv { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.report.show .rv { opacity: 1; transform: none; }
.r-kicker { display: flex; gap: 14px; align-items: baseline; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--frost); }
.r-kicker b { font-weight: 500; color: var(--tone); }
.r-kicker b::before { content: ""; display: inline-block; width: 24px; height: 1px; background: var(--tone); vertical-align: middle; margin: -2px 12px 0 0; }
.r-head { margin-top: 18px; font: 500 clamp(30px, 3vw, 42px)/1.06 var(--sans); letter-spacing: -0.03em; text-wrap: balance; }
.r-line { margin-top: 12px; max-width: 56ch; color: var(--frost); font-size: 17px; line-height: 1.5; text-wrap: pretty; }
.r-list { margin-top: 24px; counter-reset: f; }
.r-list li { display: grid; grid-template-columns: 40px 1fr; gap: 0 8px; padding: 12px 0; border-top: 1px solid var(--hair); }
.r-list li:last-child { border-bottom: 1px solid var(--hair); }
.r-list .n { font: 500 12px/24px var(--mono); color: var(--sev, var(--frost)); }
.r-list .t { font-size: 17px; line-height: 24px; font-weight: 500; }
.r-list .d { grid-column: 2; color: var(--frost); font-size: 15px; line-height: 1.45; }
.r-list .more { grid-column: 2; font: 400 12px/1.5 var(--mono); color: var(--frost); letter-spacing: .04em; }
.r-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.r-meta { margin-top: 18px; font: 400 12px/1.6 var(--mono); color: var(--frost); letter-spacing: .04em; }
#again { flex: none; height: 44px; padding: 0 20px; background: var(--ice); color: var(--abyss); border: 0; font: 500 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
#again:hover { background: #fff; }

/* ── Under the waterline ───────────────────────────────── */
.under { position: relative; padding: 160px 48px 0; max-width: 1440px; margin: 0 auto; }
.u-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 0 24px; align-items: end; padding-bottom: 72px; }
.u-head .tag { grid-column: 1 / -1; margin-bottom: 28px; }
.u-head h2 { text-wrap: balance; grid-column: 1 / span 7; font: 500 clamp(44px, 5.6vw, 84px)/0.98 var(--sans); letter-spacing: -0.045em; }
.u-lede { grid-column: 9 / span 4; color: var(--frost); font-size: 17px; line-height: 1.55; padding-bottom: 8px; }
.u-body { display: grid; grid-template-columns: 5fr 7fr; border-top: 1px solid var(--hair); }
.section-art { position: relative; border-right: 1px solid var(--hair); padding: 40px 32px 32px 0; overflow: hidden; display: flex; flex-direction: column; justify-content: space-between; }
.section-art pre { font: 400 10px/11px var(--mono); color: var(--frost); white-space: pre; overflow: hidden; }
.section-art pre b { font-weight: 400; color: var(--sounding); }
.section-art pre i { font-style: normal; color: var(--steel); }
.section-art figcaption { margin-top: 24px; font: 400 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--steel); }
.u-list li { position: relative; display: grid; grid-template-columns: 88px 140px 1fr; gap: 24px; padding: 34px 0 34px 40px; border-bottom: 1px solid var(--hair); align-items: baseline; }
.u-list li:last-child { border-bottom: 0; }
.u-list li::before { content: ""; position: absolute; left: -32px; top: 43px; width: 56px; height: 1px; background: var(--hair2); transform-origin: left; transform: scaleX(0); transition: transform .8s var(--ease) .1s, background .3s; }
.u-list li::after { content: ""; position: absolute; left: -35px; top: 40px; width: 7px; height: 7px; border: 1px solid var(--frost); background: var(--abyss); opacity: 0; transition: opacity .3s .3s, border-color .3s; }
.u-list li.seen::before { transform: scaleX(1); } .u-list li.seen::after { opacity: 1; }
.u-list li:hover::before { background: var(--sounding); } .u-list li:hover::after { border-color: var(--sounding); }
.u-list .d { font: 400 12px/1 var(--mono); color: var(--steel); letter-spacing: .06em; }
.u-list h3 { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.u-list p { color: var(--frost); max-width: 52ch; }
.limits { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.limits div { padding: 32px 32px 36px 0; }
.limits div + div { padding-left: 32px; border-left: 1px solid var(--hair); }
.limits dt { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--frost); }
.limits dd { margin-top: 14px; font-size: 17px; line-height: 1.45; max-width: 34ch; }
.foot2 { display: flex; justify-content: space-between; gap: 24px; padding: 28px 0 40px; font: 400 11px/1.4 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--frost); }
.foot2 a { color: var(--ice); text-decoration: none; border-bottom: 1px solid var(--hair2); transition: border-color .2s; }
.foot2 a:hover { border-color: var(--ice); }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .9s var(--ease); }
.reveal.seen { opacity: 1; transform: none; }

/* ── Phone ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  .bar { padding: 0 16px; height: 64px; }
  .bar nav > a:not(.gh) { display: none; }
  .gh span { display: none; } .bar nav { gap: 14px; }
  .credit { top: 84px; gap: 6px; font-size: 11px; }
  .credit a { padding: 3px 8px 3px 3px; gap: 6px; } .credit img { width: 20px; height: 20px; } .credit .vf { width: 12px; height: 12px; }
  .pin { height: 44px; width: 44px; padding: 0; justify-content: center; } .pin span { display: none; }
  .gh { min-width: 44px; min-height: 44px; justify-content: center; }
  .credit a { position: relative; } .credit a::after { content: ""; position: absolute; inset: -9px -2px; }
  .logo { min-height: 44px; }
  .crop, .foot.fr { display: none; }
  .foot.fl { left: 16px; right: 16px; bottom: 18px; text-align: center; font-size: 10px; }
  .wire { display: none; }
  .stream { width: 72vw; left: -8px; font-size: 10px; }
  .hero[data-state="scanning"] .stream { opacity: .5; }
  .dock { top: calc(var(--wl) + 24px); width: calc(100vw - 32px); }
  .lede { font-size: 19px; margin-bottom: 14px; padding: 0 8px; }
  form { height: auto; flex-direction: column; }
  input { flex: none; height: 52px; font-size: 16px; }
  #go { height: 48px; min-width: 0; }
  #go:disabled { border-left: 0; border-top: 1px solid var(--hair2); }
  .log { font-size: 11px; } .log > .hint { text-align: center; white-space: normal; }
    .report { width: calc(100vw - 32px); top: calc(var(--wl) + 24px); max-height: calc(100svh - var(--wl) - 32px); }
  .r-top { flex-direction: column-reverse; align-items: stretch; gap: 18px; } #again { width: 100%; }
  .under { padding: 96px 20px 0; }
  .u-head { display: block; padding-bottom: 48px; }
  .u-head h2 { margin-bottom: 20px; }
  .u-body { grid-template-columns: 1fr; }
  .section-art { border-right: 0; border-bottom: 1px solid var(--hair); padding: 24px 0; }
  .section-art pre { font-size: 6px; line-height: 7px; }
  .u-list li { grid-template-columns: 56px 1fr; gap: 6px 16px; padding: 24px 0; }
  .u-list li p { grid-column: 2; }
  .u-list li::before, .u-list li::after { display: none; }
  .limits { grid-template-columns: 1fr; }
  .limits div, .limits div + div { padding: 24px 0; border-left: 0; }
  .limits div + div { border-top: 1px solid var(--hair); }
  .foot2 { flex-direction: column; gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .mark .ch, .reveal, .report .rv { transform: none; opacity: 1; filter: none; }
}
.logo { transition: color .2s; } .logo:hover { color: var(--sounding); }
form:hover { border-color: rgba(157, 177, 196, .7); }
