/* Blueprint: "eclipse aura". Pure black, film grain, white editorial type, one iridescent aura
   (drawn by a WebGL shader in app.js; a CSS fallback when WebGL or motion is off).
   Self-hosted fonts only (strict CSP, no CDNs). */
@font-face { font-family: "Geist"; src: url("/static/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/static/fonts/InstrumentSerif-Italic.woff2") format("woff2"); font-style: italic; font-weight: 400; font-display: swap; }

:root {
  --bg: #000;
  --surface: #070708;
  --surface-2: #0d0d10;
  --line: #19191d;
  --line-2: #2a2a31;
  --fg: #f4f2ee;
  --muted: #9b9aa3;      /* 7.9:1 on black */
  --faint: #76757e;      /* 4.9:1 on black */
  --accent: #c3b5ff;     /* lilac, 12:1 */
  --accent-2: #8fe9ff;   /* ice, 15:1 */
  --accent-ink: #000;
  --warn: #ffb547;
  --aura: linear-gradient(100deg, #7b2fff, #2e5bff 35%, #00d4ff 65%, #ff3d9a);
  --radius: 18px;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, "Times New Roman", serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 16px; line-height: 1.55; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
/* film grain over everything */
body::after {
  content: ""; position: fixed; inset: -50%; z-index: 50; pointer-events: none; opacity: .09; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 1.2 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
::selection { background: #fff; color: #000; }
a { color: var(--fg); text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--fg); }
:focus-visible { outline: 1.5px solid var(--fg); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 0; background: #fff; color: #000; padding: 8px 12px; z-index: 60; }
.skip:focus { left: 12px; top: 12px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; position: relative; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }
.ico { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }

/* --- nav: floating capsules --- */
.nav { position: fixed; top: 14px; left: 0; right: 0; z-index: 40; pointer-events: none; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.nav .wrap > * { pointer-events: auto; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 560; letter-spacing: -.02em; text-decoration: none; font-size: 17px; }
.logo-mark { width: 22px; height: 22px; border-radius: 50%; flex: none; position: relative; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 0 14px 2px rgba(123, 47, 255, .7), 0 0 26px 6px rgba(0, 212, 255, .28); }
.logo-mark::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; background: conic-gradient(from 210deg, #7b2fff, #2e5bff, #00d4ff, #ff3d9a, #7b2fff); -webkit-mask: radial-gradient(circle, transparent 9px, #000 10px); mask: radial-gradient(circle, transparent 9px, #000 10px); }
.nav .logo { padding: 8px 14px 8px 8px; border-radius: 999px; background: rgba(10, 10, 12, .55); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border: 1px solid rgba(255, 255, 255, .08); }
.nav-links { display: flex; gap: 2px; align-items: center; padding: 5px; border-radius: 999px; background: rgba(10, 10, 12, .55); backdrop-filter: blur(16px) saturate(160%); -webkit-backdrop-filter: blur(16px) saturate(160%); border: 1px solid rgba(255, 255, 255, .08); }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 8px 14px; border-radius: 999px; white-space: nowrap; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); background: rgba(255, 255, 255, .07); }
.nav-links a.nav-cta { color: #000; background: #fff; font-weight: 560; margin-left: 4px; }
.nav-links a.nav-cta:hover { background: #e9e6ff; color: #000; }
@media (max-width: 720px) { .nav-links a.nav-cta { display: none; } }
@media (max-width: 560px) { .nav-links a.hide-sm { display: none; } .nav-links a { padding: 8px 11px; } }

/* --- type --- */
.eyebrow { font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 18px; height: 1px; background: currentColor; opacity: .7; }
.eyebrow.plain::before { display: none; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1; margin: 0; font-weight: 500; }
.display { font-size: clamp(48px, 9.5vw, 132px); font-weight: 480; line-height: .92; letter-spacing: -.06em; margin: 22px 0 0; color: var(--fg); }
.display .dim { color: var(--muted); }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }
.display .serif { font-size: 1.08em; letter-spacing: -.035em; }
.h2 { font-size: clamp(36px, 5.6vw, 76px); font-weight: 460; letter-spacing: -.055em; line-height: .98; }
.h2 .serif { font-size: 1.06em; }
.h3 { font-size: 22px; font-weight: 520; letter-spacing: -.02em; }
.lead { font-size: clamp(17px, 1.9vw, 20px); color: var(--muted); max-width: 580px; margin: 24px 0 0; line-height: 1.5; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 10px; color: var(--muted); white-space: nowrap; }
.pill.on { color: #000; background: #fff; border-color: #fff; }
.pill.warn { color: var(--warn); border-color: #4a3818; }
.pill.ok { color: var(--accent); border-color: rgba(195, 181, 255, .3); }

/* --- buttons + input --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; font: 540 15.5px var(--sans); letter-spacing: -.01em; border-radius: 999px; padding: 15px 24px; min-height: 52px; transition: transform .2s, box-shadow .3s, background .2s; }
.btn-primary { color: #000; background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .6), 0 0 40px -6px rgba(143, 233, 255, .55), 0 0 80px -10px rgba(123, 47, 255, .55); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px #fff, 0 0 50px -4px rgba(143, 233, 255, .8), 0 0 100px -6px rgba(123, 47, 255, .8); }
.btn-primary[disabled] { opacity: .55; cursor: wait; transform: none; }
.btn-ghost { background: transparent; color: var(--fg); border: 1px solid var(--line-2); padding: 10px 18px; min-height: 42px; font-size: 14px; }
.btn-ghost:hover { border-color: var(--fg); }
.btn-sm { min-height: 38px; padding: 8px 16px; font-size: 14px; }

.box { position: relative; margin: 44px auto 0; max-width: 680px; border-radius: 999px; padding: 6px; background: rgba(8, 8, 10, .72); backdrop-filter: blur(20px) saturate(150%); -webkit-backdrop-filter: blur(20px) saturate(150%); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 20px 80px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
.box form { display: flex; gap: 6px; align-items: center; }
.box .field { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.box .field .ico { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.box input[type=text] { width: 100%; min-width: 0; background: transparent; color: var(--fg); border: 0; border-radius: 999px; font: 450 16px/1.2 var(--mono); padding: 16px 12px 16px 50px; outline: none; }
.box input[type=text]::placeholder { color: var(--faint); }
.box:focus-within { border-color: rgba(255, 255, 255, .3); box-shadow: 0 20px 80px -20px rgba(0, 0, 0, .9), 0 0 0 4px rgba(195, 181, 255, .12), inset 0 1px 0 rgba(255, 255, 255, .08); }
.box select { background: transparent; color: var(--fg); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 12px; font: 500 14px var(--sans); min-height: 44px; }
.box select option { background: #0d0d10; }
.box-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; align-items: center; margin-top: 18px; font-size: 13px; color: var(--faint); }
.chip { background: rgba(255, 255, 255, .03); border: 1px solid var(--line-2); color: var(--muted); border-radius: 999px; padding: 5px 12px; font: 12px var(--mono); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--fg); border-color: rgba(255, 255, 255, .5); }
.form-error { color: var(--warn); font-size: 15px; margin: 14px 0 0; text-align: center; }
.hidden { display: none !important; }
@media (max-width: 560px) {
  .box { border-radius: 22px; }
  .box form { flex-wrap: wrap; }
  .box form .btn-primary { flex: 1 1 100%; }
}

/* --- hero: the eclipse --- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 0 90px; overflow: hidden; isolation: isolate; }
.aura { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; display: block; }
/* CSS fallback (and first paint): a still eclipse */
.aura-fallback { position: absolute; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(circle at 50% 38%, #000 0 min(19vw, 170px), transparent calc(min(19vw, 170px) + 1px)),
    radial-gradient(circle at 50% 38%, rgba(255, 255, 255, .9) 0 calc(min(19vw, 170px) + 2px), transparent calc(min(19vw, 170px) + 6px)),
    conic-gradient(from 200deg at 50% 38%, rgba(123, 47, 255, .9), rgba(46, 91, 255, .8), rgba(0, 212, 255, .75), rgba(255, 61, 154, .8), rgba(123, 47, 255, .9));
  -webkit-mask: radial-gradient(circle at 50% 38%, #000 min(19vw, 170px), rgba(0, 0, 0, .55) calc(min(19vw, 170px) + 20px), transparent min(40vw, 470px));
          mask: radial-gradient(circle at 50% 38%, #000 min(19vw, 170px), rgba(0, 0, 0, .55) calc(min(19vw, 170px) + 20px), transparent min(40vw, 470px));
  filter: blur(2px); }
.has-gl .aura-fallback { opacity: 0; transition: opacity 1.4s; }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28%; z-index: -1; background: linear-gradient(transparent, #000); pointer-events: none; }
.hero-copy { position: relative; min-width: 0; }
.hero .display { text-shadow: 0 2px 40px rgba(0, 0, 0, .65); }
.hero .lead { margin: 44px auto 0; text-shadow: 0 1px 20px rgba(0, 0, 0, .95); color: #b9b8c0; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 999px; background: rgba(8, 8, 10, .6); backdrop-filter: blur(12px); font-size: 13px; color: var(--muted); text-decoration: none; }
.badge b { color: var(--fg); font-weight: 520; }
.badge .live { display: inline-flex; align-items: center; gap: 6px; font: 600 10px var(--mono); letter-spacing: .12em; color: #000; background: #fff; border-radius: 999px; padding: 4px 9px; }
.badge .live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #ff3d9a; box-shadow: 0 0 8px #ff3d9a; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); font: 10.5px var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--faint); display: grid; justify-items: center; gap: 10px; }
.scroll-cue::after { content: ""; width: 1px; height: 34px; background: linear-gradient(var(--faint), transparent); animation: cue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-height: 760px) { .scroll-cue { display: none; } }

/* --- progress --- */
.progress { margin: 18px auto 0; text-align: left; background: rgba(8, 8, 10, .8); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .1); border-radius: 20px; padding: 16px; max-width: 680px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 10px 6px; border-radius: 12px; color: var(--faint); transition: background .3s, color .3s; }
.steps .n { font: 500 11.5px var(--mono); border: 1px solid var(--line-2); border-radius: 50%; width: 28px; height: 28px; display: grid; place-items: center; }
.steps .t { font-weight: 500; color: inherit; }
.steps .m { display: block; font: 12.5px var(--mono); color: var(--muted); margin-top: 2px; word-break: break-word; }
.steps li.active { color: var(--fg); background: rgba(255, 255, 255, .04); }
.steps li.active .n { border-color: var(--accent-2); color: var(--accent-2); animation: pulse 1.2s ease-in-out infinite; }
.steps li.done { color: var(--fg); }
.steps li.done .n { background: #fff; color: #000; border-color: #fff; }
.steps li.error .n { border-color: var(--warn); color: var(--warn); }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(143, 233, 255, .12), 0 0 18px rgba(143, 233, 255, .4); } }

/* --- numbers row --- */
.ticker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (min-width: 820px) { .ticker { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tick { padding: 34px clamp(20px, 4vw, 56px) 30px; border-right: 1px solid var(--line); }
.tick:nth-child(2n) { border-right: 0; }
@media (min-width: 820px) { .tick:nth-child(2n) { border-right: 1px solid var(--line); } .tick:last-child { border-right: 0; } }
.tick .num { font: 400 clamp(56px, 7vw, 104px)/.9 var(--serif); font-style: italic; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: var(--fg); }
.tick .lab { margin-top: 14px; }

/* --- giant word marquee --- */
.words { overflow: hidden; padding: 64px 0; border-bottom: 1px solid var(--line); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.words-track { display: flex; align-items: center; gap: 48px; width: max-content; animation: marquee 70s linear infinite; }
.words span { font: 400 clamp(56px, 9vw, 140px)/1 var(--serif); font-style: italic; letter-spacing: -.03em; color: var(--fg); white-space: nowrap; }
.words span.o { color: transparent; -webkit-text-stroke: 1px rgba(244, 242, 238, .35); font-family: var(--sans); font-style: normal; font-weight: 500; letter-spacing: -.06em; }
.words i { width: 14px; height: 14px; border-radius: 50%; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 0 16px 3px rgba(123, 47, 255, .8), 0 0 30px 8px rgba(0, 212, 255, .3); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* marquee of hosts */
.marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: marquee 45s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee a { display: inline-flex; align-items: center; gap: 8px; font: 12.5px var(--mono); color: var(--muted); text-decoration: none; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; }
.marquee a:hover { color: var(--fg); border-color: var(--line-2); }
.marquee a span { color: var(--accent); }

/* --- sections --- */
.section { padding: 120px 0; position: relative; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 48px; }
.section-head .h2 { margin-top: 18px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; min-width: 0; }
.grid-2 { display: grid; gap: 16px; }
.grid-3 { display: grid; gap: 16px; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* spotlight: JS sets --mx/--my */
.spot { position: relative; overflow: hidden; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(195, 181, 255, .10), transparent 50%); }
.spot:hover::before { opacity: 1; }
.spot > * { position: relative; }

/* --- live scan section --- */
.live { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.live > * { min-width: 0; }
@media (min-width: 1000px) { .live { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; } }
.scan { position: relative; border-radius: 22px; background: #050506; border: 1px solid var(--line-2); overflow: hidden; min-width: 0; box-shadow: 0 50px 120px -40px rgba(123, 47, 255, .45), 0 30px 80px -40px rgba(0, 212, 255, .35); }
.scan-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.url { flex: 1; min-width: 0; font: 12px var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url b { color: var(--fg); font-weight: 500; }
.scan-view { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #000; }
.scan-view img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; filter: grayscale(1) contrast(1.1) brightness(.55); }
.scan-view::before { content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: color; background: linear-gradient(120deg, #7b2fff, #2e5bff 40%, #00d4ff 70%, #ff3d9a); opacity: .55; }
.scan-view::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; top: 0; z-index: 2; background: #fff; box-shadow: 0 0 18px 4px rgba(143, 233, 255, .9), 0 0 60px 14px rgba(123, 47, 255, .5); animation: scanline 4s cubic-bezier(.6, 0, .4, 1) infinite; }
@keyframes scanline { 0% { top: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.corner { position: absolute; width: 16px; height: 16px; z-index: 3; border-color: rgba(255, 255, 255, .8); border-style: solid; }
.corner.tl { top: 14px; left: 14px; border-width: 1px 0 0 1px; } .corner.tr { top: 14px; right: 14px; border-width: 1px 1px 0 0; }
.corner.bl { bottom: 14px; left: 14px; border-width: 0 0 1px 1px; } .corner.br { bottom: 14px; right: 14px; border-width: 0 1px 1px 0; }
.tags { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.tag { position: absolute; display: inline-flex; align-items: center; gap: 8px; max-width: 72%; font: 500 11.5px var(--mono); color: #fff; background: rgba(0, 0, 0, .78); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 6px 12px 6px 8px; backdrop-filter: blur(8px);
  opacity: 0; transform: translateY(6px); animation: tagin .7s cubic-bezier(.2, .7, .2, 1) forwards; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #8fe9ff, 0 0 18px #7b2fff; flex: none; }
.tag small { color: var(--muted); font-size: 10.5px; }
.tag:nth-child(1) { top: 14%; left: 6%; animation-delay: .4s; } .tag:nth-child(2) { top: 36%; right: 6%; animation-delay: 1.1s; }
.tag:nth-child(3) { top: 58%; left: 10%; animation-delay: 1.8s; } .tag:nth-child(4) { top: 78%; right: 9%; animation-delay: 2.5s; }
@keyframes tagin { to { opacity: 1; transform: none; } }
.scan-foot { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.scan-foot div { padding: 16px 18px; border-right: 1px solid var(--line); min-width: 0; }
.scan-foot div:last-child { border-right: 0; }
.scan-foot .v { font: 400 34px/1 var(--serif); font-style: italic; color: var(--fg); }
.scan-foot .l { font: 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.scan-link { position: absolute; inset: 0; z-index: 6; }
.findings h3 { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; letter-spacing: -.035em; font-weight: 480; margin-top: 16px; }

/* how it works: numbered editorial columns */
.howsteps { display: grid; gap: 0; border-top: 1px solid var(--line); counter-reset: s; }
@media (min-width: 900px) { .howsteps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.howsteps .card { background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 36px 24px 40px 0; display: flex; flex-direction: column; gap: 14px; }
@media (min-width: 900px) { .howsteps .card { border-bottom: 0; border-right: 1px solid var(--line); padding: 36px 28px 40px; } .howsteps .card:first-child { padding-left: 0; } .howsteps .card:last-child { border-right: 0; } }
.howsteps .card::after { counter-increment: s; content: "0" counter(s); order: -1; font: 400 64px/1 var(--serif); font-style: italic; color: var(--fg); }
.howsteps .ico-box { display: none; }
.howsteps h3 { font-size: 20px; margin: 18px 0 0; letter-spacing: -.02em; font-weight: 520; }
.howsteps p { margin: 0; color: var(--muted); font-size: 15px; }

/* preview / summary card */
.preview { display: grid; gap: 0; overflow: hidden; padding: 0; }
.preview-top { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.preview-body { padding: 22px; display: grid; gap: 24px; }
.preview h3 { font-size: clamp(22px, 3vw, 30px); line-height: 1.14; letter-spacing: -.03em; font-weight: 500; }
.bars { display: grid; gap: 14px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 6px 10px; font-size: 14px; }
.bar .track { grid-column: 1 / -1; height: 2px; background: var(--line-2); border-radius: 99px; overflow: hidden; }
.bar .fill { height: 100%; background: var(--aura); border-radius: 99px; box-shadow: 0 0 10px rgba(143, 233, 255, .6); transition: width 1.2s cubic-bezier(.2, .7, .2, 1); }
.bar.dim .fill { background: var(--faint); box-shadow: none; }

/* code / evidence */
.code { background: #050506; border: 1px solid var(--line); border-radius: 14px; padding: 16px; font: 12.5px/1.7 var(--mono); color: var(--muted); overflow-x: auto; white-space: pre; margin: 0; }
.code .k { color: var(--fg); }
.code .s { color: var(--accent-2); }
.evlist { display: grid; gap: 8px; }
.ev { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); scroll-margin-top: 90px; }
.ev:target { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(195, 181, 255, .12); }
.ev .id { font: 500 12.5px var(--mono); color: var(--accent); }
.ev .lab { font-size: 15px; word-break: break-word; }
.ev .src { font: 12px/1.5 var(--mono); color: var(--muted); word-break: break-all; margin-top: 4px; }
.ev .src b { color: var(--fg); font-weight: 500; }
.cite { display: inline-block; font: 500 10px/1 var(--mono); color: var(--accent); border: 1px solid rgba(195, 181, 255, .3); border-radius: 99px; padding: 3px 6px; margin-left: 4px; text-decoration: none; vertical-align: 3px; transition: background .2s, color .2s; }
.cite:hover { background: #fff; color: #000; border-color: #fff; }

/* gallery */
.gal { display: grid; gap: 28px 18px; }
@media (min-width: 640px) { .gal { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 980px) { .gal { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gcard { display: flex; flex-direction: column; gap: 10px; text-decoration: none; min-width: 0; }
.gthumb { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #050506; margin-bottom: 6px; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; filter: grayscale(1) brightness(.42) contrast(1.15); transition: transform .9s cubic-bezier(.2, .7, .2, 1), filter .6s; }
.gthumb::before { content: ""; position: absolute; inset: 0; z-index: 1; mix-blend-mode: color; background: linear-gradient(120deg, #7b2fff, #2e5bff 40%, #00d4ff 70%, #ff3d9a); opacity: .35; transition: opacity .6s; }
.gcard:hover .gthumb img { transform: scale(1.05); filter: grayscale(1) brightness(.7) contrast(1.1); }
.gcard:hover .gthumb::before { opacity: .7; }
.gthumb.contract { display: grid; place-items: center; background: radial-gradient(circle at 50% 50%, #000 0 22%, transparent 23%), radial-gradient(circle at 50% 50%, rgba(123, 47, 255, .55), rgba(0, 212, 255, .2) 38%, transparent 62%), #050506; }
.gthumb.contract::before { display: none; }
.gthumb .addr { font: 500 12.5px var(--mono); color: #fff; padding: 7px 12px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(0, 0, 0, .8); max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; position: relative; z-index: 2; }
.gthumb .kind { position: absolute; left: 12px; top: 12px; z-index: 2; background: rgba(0, 0, 0, .7); }
.gcard-host { font-weight: 500; font-size: 22px; letter-spacing: -.035em; word-break: break-word; }
.gcard p { margin: 0; color: var(--muted); font-size: 14.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard .meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }

/* CTA: a second, slowly turning eclipse */
.cta-panel { position: relative; overflow: hidden; text-align: center; padding: 150px 16px; isolation: isolate; }
.cta-panel::before { content: ""; position: absolute; left: 50%; top: 50%; width: min(86vw, 760px); aspect-ratio: 1; transform: translate(-50%, -50%); z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, #000 0 28%, rgba(255, 255, 255, .85) 28.6%, transparent 30.5%), conic-gradient(from 0deg, #7b2fff, #2e5bff, #00d4ff, #ff3d9a, #7b2fff);
  -webkit-mask: radial-gradient(circle, #000 28%, rgba(0, 0, 0, .6) 34%, transparent 70%); mask: radial-gradient(circle, #000 28%, rgba(0, 0, 0, .6) 34%, transparent 70%);
  filter: blur(1px); animation: spin 30s linear infinite; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.cta-panel .lead { margin: 18px auto 32px; color: #b9b8c0; }

/* result page */
.rhead { padding: 140px 0 32px; position: relative; isolation: isolate; }
.rhead::before { content: ""; position: absolute; left: 50%; top: -260px; width: 900px; max-width: 140vw; height: 600px; transform: translateX(-50%); z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(123, 47, 255, .32), rgba(0, 212, 255, .10) 55%, transparent); filter: blur(10px); }
.rhead .display { font-size: clamp(42px, 8vw, 112px); word-break: break-word; }
.rmeta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; align-items: center; }
.summary { display: grid; gap: 0; padding: 0; overflow: hidden; }
.summary-main { padding: 28px; }
.summary-side { padding: 24px; border-top: 1px solid var(--line); background: #040405; display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) { .summary-side { border-top: 0; border-left: 1px solid var(--line); } }
.summary h2 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.12; font-weight: 480; letter-spacing: -.04em; }
.means { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.means li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.means li::before { content: ""; width: 7px; height: 7px; margin-top: 9px; background: #fff; border-radius: 50%; box-shadow: 0 0 8px #8fe9ff, 0 0 16px #7b2fff; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.stat { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface); }
.stat .v { font: 400 40px/1 var(--serif); font-style: italic; color: var(--fg); }
.shot { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-2); display: block; }
.share-row { display: flex; gap: 8px; flex-wrap: wrap; }
.rsec { padding: 80px 0 8px; }
.rsec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.rsec-head .ico-box { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); flex: none; }
.rsec-head .ico-box .ico { width: 19px; height: 19px; }
.rsec-head h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 460; letter-spacing: -.05em; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.plain-list li { padding: 15px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.group { margin-bottom: 12px; }
.group summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .2s; }
.group summary:hover { border-color: var(--line-2); }
.group summary::-webkit-details-marker { display: none; }
.group[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.group summary .ico-box { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); }
.group .gtitle { font-weight: 520; }
.group .gplain { display: block; color: var(--muted); font-size: 14px; }
.group .count { font: 400 30px/1 var(--serif); font-style: italic; }
.dtable { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-top: 0; font-size: 14px; display: block; overflow-x: auto; }
.dtable tbody { display: table; width: 100%; }
.dtable td { padding: 10px 16px; border-top: 1px solid var(--line); vertical-align: top; }
.dtable td.d { font-family: var(--mono); font-size: 12.5px; word-break: break-all; }
.feat { display: flex; flex-direction: column; gap: 10px; }
.feat h3 { display: flex; align-items: center; gap: 10px; font-size: 20px; letter-spacing: -.025em; font-weight: 520; }
.feat h3 .ico { color: var(--accent); }
.feat p { margin: 0; color: var(--fg); }
.signals { display: flex; flex-wrap: wrap; gap: 6px; }
.signals code { font: 11.5px var(--mono); border: 1px solid var(--line-2); border-radius: 99px; padding: 2px 8px; color: var(--muted); word-break: break-all; }
.switch-row { display: grid; grid-template-columns: 1fr auto; gap: 8px 14px; align-items: start; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-family: var(--mono); word-break: break-all; }
details.more summary { cursor: pointer; color: var(--muted); font-size: 14px; padding: 8px 0; }
.note { border-left: 1px solid var(--fg); padding: 4px 0 4px 14px; color: var(--muted); }

/* footer: a giant outlined wordmark */
.foot { border-top: 1px solid var(--line); padding: 48px 0 0; margin-top: 40px; color: var(--muted); font-size: 14px; overflow: hidden; }
.foot .wrap { display: grid; gap: 16px; }
@media (min-width: 760px) { .foot .wrap { grid-template-columns: 1fr auto; } }
.foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.foot nav a { color: var(--muted); text-decoration: none; }
.foot nav a:hover { color: var(--fg); }
.foot .mega { grid-column: 1 / -1; font: 400 clamp(90px, 21vw, 320px)/.8 var(--serif); font-style: italic; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px rgba(244, 242, 238, .16); margin: 40px 0 -2vw; text-align: center; user-select: none; white-space: nowrap; }
.center-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 120px 0 80px; }
.prose { max-width: 720px; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { margin: 48px 0 14px; font-size: 32px; letter-spacing: -.04em; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th, .tbl td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl th { font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; } .mt18 { margin-top: 18px; } .mt24 { margin-top: 24px; }
.center { text-align: center; }
.cta-h { margin: 18px auto 0; max-width: 14ch; }
.mx-auto { margin-left: auto; margin-right: auto; }
.summary-side .shot { max-height: 280px; object-fit: cover; object-position: top; }
/* pages without the full-height hero still clear the floating nav */
main > section:first-child:not(.hero):not(.rhead) { padding-top: 130px; }
main > .center-page:first-child { padding-top: 140px; }

/* grid children must be allowed to shrink */
.preview, .summary { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .preview-body { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
@media (min-width: 900px) { .summary { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); } }
.preview-body > *, .summary > *, .rsec, .plain-list li, .ev > div { min-width: 0; }
main { overflow-wrap: anywhere; }
.tbl td, .tbl th { overflow-wrap: anywhere; }
.cite, .pill { overflow-wrap: normal; white-space: nowrap; }
.bar .track, .bar .fill { display: block; }

/* entrances */
.js .reveal { opacity: 0; transform: translateY(32px); filter: blur(6px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1), transform 1s cubic-bezier(.2, .7, .2, 1), filter 1s; }
.js .reveal.in { opacity: 1; transform: none; filter: none; }
.hero-copy > * { animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; } .hero-copy > :nth-child(3) { animation-delay: .24s; } .hero-copy > :nth-child(4) { animation-delay: .36s; } .hero-copy > :nth-child(5) { animation-delay: .48s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .tag { opacity: 1; transform: none; }
  .scan-view::after { display: none; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}
