/* SignalFeed design system. Every color pair meets WCAG 2.1 AA contrast in both themes. */
:root {
  color-scheme: dark;
  --bg: #05070d; --bg-soft: #0b0f1a; --bg-card: rgba(255,255,255,.035); --ink: #f2f5fb; --ink-2: #c3cbdb; --muted: #949fb5;
  --line: rgba(255,255,255,.09); --line-strong: rgba(255,255,255,.18); --accent: #8fb0ff; --accent-2: #6ff0d2; --accent-ink: #05070d; --accent-soft: rgba(143,176,255,.12);
  --ok: #5fdcab; --bad: #ff8f85; --warn: #f7c46c;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px rgba(0,0,0,.45);
  --radius: 16px; --maxw: 1180px; --readw: 720px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.65 var(--font); font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
img, svg { max-width: 100%; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--bg); color: var(--ink); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 18px; }
.brand svg { width: 28px; height: 28px; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 15px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--bg-soft); }
.nav .btn { min-height: 38px; padding: 7px 14px; color: var(--accent-ink); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* Hero */
.hero { padding: 72px 0 48px; background: radial-gradient(1200px 400px at 80% -10%, var(--accent-soft), transparent 70%); border-bottom: 1px solid var(--line); }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.07; letter-spacing: -.025em; margin: 14px 0 18px; max-width: 16ch; }
.lede { font-size: clamp(18px, 2vw, 20px); color: var(--ink-2); max-width: 60ch; margin: 0 0 28px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 14px; }
.facts li::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 9px; vertical-align: 2px; }

/* Sections */
section.block { padding: 64px 0; }
section.block.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 30px; }
.section-head h2 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.02em; line-height: 1.15; margin: 8px 0 10px; }
.section-head p { color: var(--ink-2); margin: 0; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.01em; }
.card p { margin: 0 0 12px; color: var(--ink-2); font-size: 16px; }
.card .price { font-weight: 700; color: var(--ink); font-size: 15px; }
.card ul { margin: 0 0 14px; padding-left: 20px; color: var(--ink-2); font-size: 15px; }
a.card { display: block; color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: var(--accent); transform: translateY(-2px); }
a.card .more { color: var(--accent); font-weight: 600; font-size: 15px; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }

/* Checker */
.tool { background: var(--bg-card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 28px; }
.drop { border: 2px dashed var(--line-strong); border-radius: 12px; padding: 30px 20px; text-align: center; background: var(--bg-soft); }
.drop input[type=file] { position: absolute; opacity: 0; width: 1px; height: 1px; }
.drop input[type=file]:focus-visible + label { outline: 3px solid var(--accent); outline-offset: 3px; }
.drop label { cursor: pointer; }
.status { color: var(--muted); font-size: 15px; margin: 12px 0 0; }
#results h2 { font-size: 20px; margin: 26px 0 8px; }
.result-table td.ok { color: var(--ok); font-weight: 700; }
.result-table td.bad { color: var(--bad); font-weight: 700; }
.result-table td.warn { color: var(--warn); font-weight: 700; }
#results span.ok { color: var(--ok); font-weight: 700; }
#results span.bad { color: var(--bad); font-weight: 700; }

/* Tables */
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 14px 0 22px; }
th, td { text-align: left; vertical-align: top; padding: 11px 14px; border-bottom: 1px solid var(--line); }
tr:last-child th, tr:last-child td { border-bottom: 0; }
thead th { background: var(--bg-soft); font-size: 13px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
tbody th { font-weight: 600; }
caption { text-align: left; color: var(--muted); font-size: 14px; padding: 0 0 8px; caption-side: top; }
.table-scroll { overflow-x: auto; }

/* Article */
.article-head { padding: 52px 0 26px; border-bottom: 1px solid var(--line); background: radial-gradient(900px 300px at 85% -20%, var(--accent-soft), transparent 70%); }
.crumbs { font-size: 14px; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--muted); }
.article-head h1 { font-size: clamp(30px, 4.2vw, 44px); line-height: 1.12; letter-spacing: -.022em; margin: 0 0 12px; max-width: 24ch; }
.article-meta { color: var(--muted); font-size: 14px; }
.article { display: grid; grid-template-columns: minmax(0, var(--readw)) 280px; gap: 56px; padding-top: 36px; padding-bottom: 72px; }
@media (max-width: 980px) { .article { grid-template-columns: minmax(0, 1fr); gap: 0; } .aside { order: 2; } }
.prose { min-width: 0; }
.prose h2 { font-size: 25px; letter-spacing: -.015em; line-height: 1.25; margin: 40px 0 10px; }
.prose h3 { font-size: 19px; margin: 28px 0 6px; }
.prose p, .prose li { color: var(--ink-2); }
.prose strong { color: var(--ink); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--accent); }
.prose .note, .note { color: var(--muted); font-size: 15px; }
.callout { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--bg-soft); border-radius: 10px; padding: 14px 18px; margin: 18px 0; }
.prose .cta, .cta-card { background: var(--ink); color: #eef2fa; border-radius: var(--radius); padding: 26px 28px; margin: 40px 0 10px; box-shadow: var(--shadow); }
.prose .cta h2, .cta-card h2 { color: #ffffff; margin: 0 0 8px; font-size: 22px; }
.prose .cta p, .cta-card p { color: #d6dcea; margin: 0; }
.prose .cta a, .cta-card a { color: #b9c8ff; font-weight: 600; }
@media (prefers-color-scheme: dark) { .prose .cta, .cta-card { background: var(--bg-card); border: 1px solid var(--line-strong); } }
.aside { position: sticky; top: 88px; align-self: start; display: grid; gap: 16px; }
.aside .card h2 { font-size: 15px; margin: 0 0 10px; letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
.aside .card ul { list-style: none; padding: 0; margin: 0; font-size: 15px; }
.aside .card li { margin: 8px 0; }
code { font-family: var(--mono); font-size: .9em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 40px 0; font-size: 14px; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
.site-footer a { color: var(--ink-2); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }

/* ---------- Futuristic layer ---------- */
body { background: var(--bg); }
.site-header { background: rgba(5,7,13,.55); border-bottom: 1px solid var(--line); }
.site-header .wrap { height: 68px; }
.brand { font-weight: 600; letter-spacing: .01em; }
.btn-primary { background: #f2f5fb; color: #05070d; }
.btn-primary:hover { background: #ffffff; filter: none; }
.btn-ghost { color: var(--ink); border-color: var(--line-strong); background: rgba(255,255,255,.03); }
.btn-ghost:hover { background: rgba(255,255,255,.08); }
.nav .btn { color: #05070d; }

.hero-x { position: relative; min-height: min(100vh, 920px); display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); isolation: isolate; }
.hero-x canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-x::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(5,7,13,.94) 0%, rgba(5,7,13,.78) 38%, rgba(5,7,13,.15) 70%, rgba(5,7,13,0) 100%),
  linear-gradient(180deg, rgba(5,7,13,0) 70%, var(--bg)); }
.hero-x .wrap { width: 100%; padding-top: 80px; padding-bottom: 80px; }
.hero-x h1 { font-size: clamp(42px, 7vw, 92px); line-height: 1.0; letter-spacing: -.035em; font-weight: 600; margin: 18px 0 22px; max-width: 13ch; }
.hero-x h1 .grad { background: linear-gradient(90deg, #ffffff, #8fb0ff 55%, #6ff0d2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-x .lede { font-size: clamp(18px, 2vw, 21px); max-width: 54ch; color: var(--ink-2); }
.eyebrow { color: var(--accent-2); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

.statbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.statbar div { padding: 28px 24px; border-right: 1px solid var(--line); }
.statbar div:last-child { border-right: 0; }
.statbar b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.02em; color: var(--ink); }
.statbar span { color: var(--muted); font-size: 14px; }

section.block { padding: 110px 0; position: relative; }
section.block.alt { background: var(--bg-soft); }
.section-head h2 { font-size: clamp(32px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -.03em; font-weight: 600; }
.section-head { max-width: 760px; margin-bottom: 44px; }
.card { background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.card .num { font-family: var(--mono); font-size: 13px; color: var(--accent-2); letter-spacing: .08em; }
a.card:hover { border-color: var(--line-strong); background: linear-gradient(180deg, rgba(143,176,255,.10), rgba(255,255,255,.02)); }
.ribbon { position: absolute; left: 0; right: 0; bottom: -100px; height: 200px; pointer-events: none; opacity: .55; z-index: 0; }
section.block > .wrap { position: relative; z-index: 1; }
.ribbon svg { width: 100%; height: 100%; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; padding: 18px 0 18px 56px; border-top: 1px solid var(--line); position: relative; color: var(--ink-2); }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 18px; font-family: var(--mono); color: var(--accent-2); font-size: 14px; }
.steps li strong { color: var(--ink); display: block; font-size: 18px; margin-bottom: 2px; }

.tool { background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line-strong); }
.drop { background: rgba(255,255,255,.02); border-color: var(--line-strong); }

.article-head { background: radial-gradient(900px 340px at 85% -20%, rgba(143,176,255,.18), transparent 70%), var(--bg); }
.prose .cta, .cta-card { background: linear-gradient(135deg, rgba(143,176,255,.16), rgba(111,240,210,.08)); border: 1px solid var(--line-strong); color: var(--ink); }
.prose .cta p, .cta-card p { color: var(--ink-2); }
.prose .cta a, .cta-card a { color: var(--accent); }
thead th { background: rgba(255,255,255,.04); }

.fx .reveal { opacity: 0; transform: translateY(28px); transition: opacity .55s cubic-bezier(.2,.7,.2,1), transform .55s cubic-bezier(.2,.7,.2,1); }
.fx .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .fx .reveal { opacity: 1; transform: none; transition: none; }
  a.card:hover { transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- HUD / spacecraft layer ---------- */
.mono { font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; font-size: 12px; color: var(--muted); }
.hud { position: absolute; inset: 88px 24px 24px; pointer-events: none; z-index: 0; }
.hud::before, .hud::after, .hud > i::before, .hud > i::after { content: ""; position: absolute; width: 22px; height: 22px; border: 1px solid rgba(143,176,255,.55); }
.hud::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud::after { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud > i::before { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud > i::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud .tl, .hud .tr, .hud .bl, .hud .br { position: absolute; }
.hud .tl { top: 6px; left: 34px; } .hud .tr { top: 6px; right: 34px; text-align: right; }
.hud .bl { bottom: 6px; left: 34px; } .hud .br { bottom: 6px; right: 34px; text-align: right; }
.hud .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); margin-right: 8px; vertical-align: 1px; animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
@media (max-width: 700px) { .hud .tr, .hud .br { display: none; } }
.scan { position: absolute; left: 0; right: 0; height: 120px; top: -120px; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(111,240,210,.06) 70%, rgba(111,240,210,.18) 99%, transparent);
  animation: scan 9s linear infinite; }
@keyframes scan { to { transform: translateY(1100px); } }
section.block::before { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: linear-gradient(rgba(143,176,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(143,176,255,.045) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%); }
.card { position: relative; }
.card::before, .card::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid transparent; transition: border-color .25s; }
.card::before { top: -1px; left: -1px; border-top-color: var(--accent-2); border-left-color: var(--accent-2); border-top-left-radius: var(--radius); }
.card::after { bottom: -1px; right: -1px; border-bottom-color: var(--accent); border-right-color: var(--accent); border-bottom-right-radius: var(--radius); }
.section-head .eyebrow::before, .eyebrow::before { width: 18px; }
.statbar b { font-family: var(--font); }
.statbar span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; }
.btn-primary { box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 0 24px rgba(143,176,255,.35); }
@media (prefers-reduced-motion: reduce) { .scan, .hud .dot { animation: none; } .scan { display: none; } }

/* ---------- Scroll-driven background stage (Apple-style tone shift) ---------- */
html { background: #05070d; }
body { background: transparent; }
.bg-stage { position: fixed; inset: 0; z-index: -10; pointer-events: none;
  background: radial-gradient(1100px 760px at var(--gx, 25%) var(--gy, 20%), var(--glow, rgba(37,65,178,.22)), transparent 62%),
              radial-gradient(900px 700px at calc(100% - var(--gx, 25%)) calc(100% - var(--gy, 20%)), var(--glow2, rgba(20,150,130,.10)), transparent 60%),
              var(--stage, #05070d); }
section.block.alt { background: rgba(255,255,255,.025); }
.hero-x::after { background: linear-gradient(90deg, rgba(5,7,13,.92) 0%, rgba(5,7,13,.74) 38%, rgba(5,7,13,.12) 70%, rgba(5,7,13,0) 100%), linear-gradient(180deg, transparent 75%, rgba(5,7,13,.35)); }
.article-head { background: radial-gradient(900px 340px at 85% -20%, rgba(143,176,255,.16), transparent 70%); }
.site-footer { background: rgba(0,0,0,.25); }

/* ---------- Scrollytelling: laptop reveal ---------- */
.story { position: relative; height: 340vh; }
.story-sticky { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); align-items: center; gap: 48px; max-width: var(--maxw); margin: 0 auto; padding: 80px 24px 40px; }
@media (max-width: 900px) { .story { height: 300vh; } .story-sticky { grid-template-columns: 1fr; gap: 20px; padding-top: 84px; align-content: center; } }
.stage3d { perspective: 1600px; perspective-origin: 50% 30%; position: relative; }
.stage3d::before { content: ""; position: absolute; inset: 10% 5% -10%; background: radial-gradient(closest-side, rgba(111,240,210,calc(.25 * var(--lid, 0))), rgba(143,176,255,calc(.18 * var(--lid, 0))) 50%, transparent 75%); filter: blur(30px); z-index: -1; }
.laptop { width: min(820px, 100%); margin: 0 auto; transform: rotateX(calc(14deg - var(--lid, 0) * 8deg)) scale(calc(.86 + var(--lid, 0) * .14)); transform-style: preserve-3d; }
.lid { position: relative; aspect-ratio: 16 / 10; transform-origin: 50% 100%; transform: rotateX(calc(-96deg + var(--lid, 0) * 96deg)); transform-style: preserve-3d;
  background: linear-gradient(160deg, #2b3448, #121826); border-radius: 22px 22px 6px 6px; padding: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.08); }
.screen { position: relative; width: 100%; height: 100%; border-radius: 10px; overflow: hidden; background: #070b16; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); opacity: calc(.15 + var(--lid, 0) * .85); }
.base { height: 18px; width: 116%; margin-left: -8%; background: linear-gradient(180deg, #3a4459, #161c2b 70%); border-radius: 2px 2px 22px 22px; box-shadow: 0 30px 50px rgba(0,0,0,.55); position: relative; }
.base::after { content: ""; position: absolute; left: 42%; right: 42%; top: 0; height: 6px; background: #0e1320; border-radius: 0 0 8px 8px; }
/* screen UI */
.ui-bar { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 12px; background: #0d1324; border-bottom: 1px solid rgba(255,255,255,.06); font: 10px var(--mono); color: #8c97ae; letter-spacing: .08em; }
.ui-bar i { width: 8px; height: 8px; border-radius: 50%; background: #2a3550; display: inline-block; }
.ui-bar b { margin-left: 10px; font-weight: 500; }
.ui { position: absolute; inset: 26px 0 0; display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; padding: 14px; }
.doc { position: relative; background: #f4f6fb; border-radius: 6px; padding: 16px 16px 10px; overflow: hidden; }
.doc .ln { height: 7px; border-radius: 4px; background: #c9d0de; margin: 7px 0; }
.doc .ln.h { height: 12px; width: 70%; background: #8a95ab; margin: 0 0 12px; }
.doc .ln.s { width: 55%; }
.doc .tbl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 10px 0; }
.doc .tbl span { height: 9px; background: #d9dfeb; border-radius: 2px; }
.doc .tbl span.th { background: #a9b3c7; }
.doc .fig { height: 46px; border-radius: 4px; background: linear-gradient(135deg, #b9c6e6, #cfe8e0); margin: 8px 0; }
.chip { position: absolute; font: 600 9px/1 var(--mono); letter-spacing: .06em; color: #04121a; background: #6ff0d2; padding: 4px 6px; border-radius: 4px; box-shadow: 0 0 0 1px rgba(4,18,26,.2), 0 4px 14px rgba(111,240,210,.45);
  opacity: clamp(0, calc(var(--tags, 0) * 6 - var(--i)), 1); transform: translateY(calc((1 - clamp(0, calc(var(--tags, 0) * 6 - var(--i)), 1)) * 8px)); }
.chip.b { background: #8fb0ff; box-shadow: 0 0 0 1px rgba(4,18,26,.2), 0 4px 14px rgba(143,176,255,.45); }
.outline { position: absolute; border: 1.5px solid rgba(111,240,210,.9); border-radius: 4px; opacity: clamp(0, calc(var(--tags, 0) * 6 - var(--i)), 1); }
.sweep { position: absolute; left: 0; right: 0; height: 40px; top: calc(var(--tags, 0) * 110% - 20%); background: linear-gradient(180deg, transparent, rgba(111,240,210,.35), transparent); opacity: calc(var(--tags, 0) * (1 - var(--verify, 0))); }
.panel { background: #0d1324; border: 1px solid rgba(255,255,255,.07); border-radius: 6px; padding: 10px; display: flex; flex-direction: column; gap: 6px; font: 9.5px/1.2 var(--mono); color: #c3cbdb; }
.panel .t { color: #8c97ae; letter-spacing: .08em; text-transform: uppercase; font-size: 9px; margin-bottom: 2px; }
.row { display: flex; justify-content: space-between; gap: 6px; padding: 6px 7px; border-radius: 4px; background: rgba(255,255,255,.035);
  opacity: clamp(0, calc(var(--verify, 0) * 7 - var(--i)), 1); transform: translateX(calc((1 - clamp(0, calc(var(--verify, 0) * 7 - var(--i)), 1)) * 14px)); }
.row em { font-style: normal; color: #5fdcab; }
.row em.r { color: #f7c46c; }
.score { margin-top: auto; padding: 8px; border-radius: 6px; background: linear-gradient(135deg, rgba(143,176,255,.18), rgba(111,240,210,.12)); text-align: center; color: #f2f5fb; font-size: 11px; opacity: clamp(0, calc(var(--verify, 0) * 3 - 2), 1); }
/* captions */
.captions { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.captions li { padding-left: 18px; border-left: 2px solid var(--line-strong); color: var(--muted); transition: color .3s, border-color .3s; }
.captions li .k { display: block; font: 12px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.captions li strong { display: block; color: var(--ink-2); font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -.015em; margin-bottom: 4px; }
.captions li.on { border-left-color: var(--accent-2); color: var(--ink-2); }
.captions li.on .k { color: var(--accent-2); }
.captions li.on strong { color: var(--ink); }
@media (max-width: 900px) { .captions li:not(.on) { display: none; } }
@media (prefers-reduced-motion: reduce) { .story { height: auto; } .story-sticky { position: relative; height: auto; } .captions li:not(.on) { display: block; } }

/* ---------- Cinematic hero video ---------- */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3;
  filter: saturate(.75) contrast(1.12) brightness(.82); transform: scale(calc(1.04 + var(--hs, 0) * .18)); transform-origin: 60% 40%;
  will-change: transform; }
.hero-x { background: #05070d; }
.hero-x canvas#field { opacity: .55; mix-blend-mode: screen; }
.hero-x::after { background:
  linear-gradient(90deg, rgba(5,7,13,.93) 0%, rgba(5,7,13,.78) 34%, rgba(5,7,13,.30) 62%, rgba(5,7,13,.10) 100%),
  radial-gradient(1000px 600px at 75% 40%, rgba(143,176,255,.10), transparent 70%),
  linear-gradient(180deg, rgba(5,7,13,.35) 0%, transparent 25%, transparent 70%, rgba(5,7,13,.9) 100%); }
.hero-x .wrap { filter: blur(calc(var(--hs, 0) * 3px)); opacity: calc(1 - var(--hs, 0) * .9); }
.vid-toggle { position: absolute; right: 28px; bottom: 28px; z-index: 2; width: 38px; height: 38px; display: grid; place-items: center; padding: 0;
  color: var(--ink); background: rgba(5,7,13,.45); border: 1px solid rgba(255,255,255,.22); border-radius: 50%; cursor: pointer; backdrop-filter: blur(6px);
  opacity: .6; transition: opacity .2s, background .2s; }
.vid-toggle:hover, .vid-toggle:focus-visible { opacity: 1; background: rgba(5,7,13,.8); }
.vid-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.vid-toggle .i-play { display: none; }
.vid-toggle.paused .i-play { display: block; }
.vid-toggle.paused .i-pause { display: none; }
@media (max-width: 700px) { .vid-toggle { bottom: 18px; right: 16px; } }
@media (prefers-reduced-motion: reduce) { .hero-video { transform: none; } .hero-x .wrap { filter: none; opacity: 1; } }

/* ---------- Cinematic article banner (every landing page) ---------- */
.article-head.cine { position: relative; overflow: hidden; isolation: isolate; min-height: min(62vh, 560px); display: flex; align-items: flex-end; padding: 120px 0 44px; background: #05070d; }
.article-head.cine .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; filter: saturate(.7) contrast(1.12) brightness(.72); transform: scale(calc(1.04 + var(--hs, 0) * .12)); }
.article-head.cine canvas#field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; opacity: .45; mix-blend-mode: screen; }
.article-head.cine::after { content: ""; position: absolute; inset: 0; z-index: -1; background:
  linear-gradient(90deg, rgba(5,7,13,.94) 0%, rgba(5,7,13,.8) 40%, rgba(5,7,13,.35) 75%, rgba(5,7,13,.2) 100%),
  linear-gradient(180deg, rgba(5,7,13,.2) 0%, transparent 40%, rgba(5,7,13,.92) 100%); }
.article-head.cine .wrap { width: 100%; }
.article-head.cine h1 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.03em; }

.email-alt { margin: 12px 0 0; font-size: 14px; color: var(--muted, #9aa4b8); }
.email-alt .email-copy { color: var(--text, #e8ecf4); font-family: "JetBrains Mono", ui-monospace, Menlo, monospace; user-select: all; -webkit-user-select: all; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.06); }

/* Mobile fixes 2026-11-18: HUD labels overlapped the hero eyebrow; header CTA wrapped to two lines */
@media (max-width: 700px) {
  .hud .tl, .hud .bl { display: none; }
  .site-header .wrap { gap: 10px; }
  .site-header .btn { white-space: nowrap; min-height: 40px; padding: 8px 12px; font-size: 14px; }
  .brand { font-size: 17px; white-space: nowrap; }
}
@media (max-width: 380px) { .site-header .btn { padding: 8px 10px; font-size: 13px; } }
/* Laptop mock: keep title bar on one line, never clip panels badly (also under large text settings) */
.ui-bar { white-space: nowrap; overflow: hidden; }
.ui-bar b { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.panel { overflow: hidden; min-width: 0; }
.row { white-space: nowrap; min-width: 0; }
.row > span, .row > em { overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 700px) {
  .lid { aspect-ratio: 4 / 3.4; padding: 10px; border-radius: 16px 16px 5px 5px; }
  .ui { gap: 8px; padding: 10px; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .doc { padding: 12px 10px 8px; }
  .panel { padding: 8px; gap: 5px; font-size: 9px; }
  .row { padding: 5px 6px; }
}
.ui { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
@media (max-width: 700px) { .ui { grid-template-columns: minmax(0,1fr) minmax(0,1fr); } .laptop, .stage3d { max-width: 100%; min-width: 0; } }
/* Header survives large text settings: wrap instead of overflowing */
@media (max-width: 700px) { .site-header .wrap { flex-wrap: wrap; height: auto; min-height: 64px; padding-top: 8px; padding-bottom: 8px; row-gap: 6px; } .site-header .nav { margin-left: auto; } }
