/* ============================================================
   SFMambaNet project page — "spectral night".
   Palette from the SFMambaNet logo and the paper's figures: deep navy, electric blue,
   cyan and mint; green marks inliers, coral marks outliers (data only).
   Component patterns adapted from the CUA-Lite landing page (used with permission).
   ============================================================ */
@font-face { font-family: 'Urbanist'; src: url('../assets/fonts/Urbanist.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Geist Mono'; src: url('../assets/fonts/GeistMono.woff2') format('woff2'); font-weight: 400 600; font-display: swap; }

:root {
  --bg: #040919; --bg-2: #071029; --ink: #0a1533;
  --panel: rgba(14, 27, 64, .58); --panel-2: rgba(22, 40, 92, .5); --solid: #0b1638;
  --edge: rgba(130, 170, 255, .15); --edge-2: rgba(130, 170, 255, .3);
  --text: #e9efff; --muted: #a9b6da; --dim: #6f7ea8;
  --blue: #3e6bff; --cyan: #22d3ff; --mint: #4cf2b8; --violet: #8a63ff; --magenta: #e04ad0;
  --inl: #39ff8f; --out: #ff4f4f; --warn: #ffb03b;
  --grad: linear-gradient(115deg, #22d3ff 0%, #3e6bff 38%, #8a63ff 68%, #e04ad0 100%);
  --grad-mint: linear-gradient(115deg, #4cf2b8, #22d3ff 60%, #3e6bff);
  --sans: 'Urbanist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --ease: cubic-bezier(.33, 0, .15, 1); --spring: cubic-bezier(.2, 1.3, .3, 1);
  --fs-2xs: 10px; --fs-xs: 11px; --fs-sm: 12.5px; --fs-md: 14px; --fs-lg: 15px; --fs-xl: 16.5px;
  --maxw: 1180px; --r: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; overflow-x: clip; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.65; font-weight: 450; overflow-x: clip; -webkit-font-smoothing: antialiased; }
::selection { background: var(--cyan); color: #021225; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.nb { white-space: nowrap; }
.sep { color: var(--dim); }
code { font-family: var(--mono); font-size: .92em; color: var(--cyan); }

/* ---------- the sky: drifting aurora, a faint grid, grain ---------- */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background: radial-gradient(120% 80% at 50% -10%, #0c1a46 0%, var(--bg) 55%); }
.sky i { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; mix-blend-mode: screen; animation: drift 26s var(--ease) infinite alternate; }
.sky i:nth-child(1) { width: 60vw; height: 60vw; left: -18vw; top: -24vw; background: radial-gradient(circle, rgba(34, 211, 255, .45), transparent 65%); }
.sky i:nth-child(2) { width: 55vw; height: 55vw; right: -20vw; top: -10vw; background: radial-gradient(circle, rgba(138, 99, 255, .45), transparent 65%); animation-duration: 32s; animation-delay: -8s; }
.sky i:nth-child(3) { width: 50vw; height: 50vw; left: 25vw; top: 45vh; background: radial-gradient(circle, rgba(224, 74, 208, .25), transparent 65%); animation-duration: 38s; animation-delay: -14s; }
@keyframes drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(6vw, 4vh, 0) scale(1.15); } }
.sky::before { content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(130, 170, 255, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(130, 170, 255, .055) 1px, transparent 1px);
  background-size: 56px 56px; -webkit-mask-image: radial-gradient(90% 70% at 50% 0%, #000 30%, transparent 85%); mask-image: radial-gradient(90% 70% at 50% 0%, #000 30%, transparent 85%); }
.sky::after { content: ""; position: absolute; inset: -50%; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E"); }

.progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 200; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(34, 211, 255, .8); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 100; background: rgba(4, 9, 25, .55); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); border-bottom: 1px solid var(--edge); }
.nav-inner { max-width: var(--maxw); margin: 0 auto; padding: 12px 28px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 30px; height: 30px; filter: drop-shadow(0 0 10px rgba(34, 211, 255, .45)); }
.brand b { font-weight: 800; font-size: 18px; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links > a { color: var(--muted); font-size: var(--fs-md); font-weight: 550; transition: color .15s; }
.nav-links > a:hover { color: var(--text); }
.nav-sep { width: 1px; height: 15px; background: var(--edge-2); }
.nav-cta { display: flex; gap: 8px; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 108px; padding: 11px 22px; border-radius: 999px; font-family: var(--sans); font-weight: 700; font-size: var(--fs-lg); letter-spacing: .01em;
  border: 1px solid var(--edge-2); background: rgba(20, 36, 84, .45); color: var(--text); transition: transform .18s var(--ease), box-shadow .25s var(--ease), border-color .2s, background .2s; }
.btn:hover { transform: translateY(-2px); border-color: rgba(34, 211, 255, .6); background: rgba(30, 52, 120, .55); box-shadow: 0 10px 30px -12px rgba(34, 211, 255, .55); }
.btn.solid { border: 0; background: var(--grad); background-size: 160% 100%; color: #fff; box-shadow: 0 10px 34px -12px rgba(62, 107, 255, .9), inset 0 1px 0 rgba(255, 255, 255, .25); animation: gradPan 8s ease-in-out infinite alternate; }
.btn.solid:hover { box-shadow: 0 16px 40px -12px rgba(138, 99, 255, .95), inset 0 1px 0 rgba(255, 255, 255, .3); }
@keyframes gradPan { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.btn.sm { min-width: 0; padding: 7px 15px; font-size: var(--fs-md); }
.btn svg { width: 16px; height: 16px; flex: none; }
.cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 64px 0 28px; text-align: center; }
.chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--edge-2); background: rgba(16, 30, 72, .55); font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; transform: scale(.75); } }
.hero h1 { margin: 22px auto 10px; font-weight: 800; font-size: clamp(42px, 7.2vw, 96px); line-height: .98; letter-spacing: -.035em; }
.hero h1 .line { display: block; }
.w-smooth { background: var(--grad-mint); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 0 22px rgba(76, 242, 184, .35)); }
.w-erratic { color: var(--out); text-shadow: 0 0 24px rgba(255, 79, 79, .35); }
.w-smooth .ch, .w-erratic .ch { display: inline-block; white-space: pre; }
.js .w-smooth { background: none; }
.js .w-smooth .ch { background-image: var(--grad-mint); -webkit-background-clip: text; background-clip: text; color: transparent; animation: wave 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * -.12s); }
@keyframes wave { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-.07em); } }
.js .w-erratic .ch { animation: jitter 2.6s steps(1) infinite; animation-delay: calc(var(--i) * -.37s); }
@keyframes jitter { 0%, 100% { transform: none; } 8% { transform: translate(.03em, -.05em) rotate(3deg); } 16% { transform: translate(-.04em, .03em) rotate(-4deg); } 24% { transform: none; } 52% { transform: translate(.02em, .04em) rotate(2deg); } 60% { transform: none; } 78% { transform: translate(-.03em, -.03em) rotate(-2deg); } 86% { transform: none; } }
.hero .sub { margin: 6px auto 22px; max-width: 760px; font-size: clamp(18px, 2vw, 24px); font-weight: 600; line-height: 1.35; color: var(--text); }
.hero .sub b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.authors { max-width: 920px; margin: 0 auto; font-size: var(--fs-lg); font-weight: 550; color: var(--text); line-height: 1.7; }
.authors a { box-shadow: inset 0 -1px 0 var(--edge-2); transition: color .15s, box-shadow .15s; }
.authors a:hover { color: var(--cyan); box-shadow: inset 0 -1px 0 var(--cyan); }
.authors sup, .affils sup { font-family: var(--mono); font-size: 9.5px; color: var(--cyan); margin-left: 1px; }
.affils { max-width: 900px; margin: 8px auto 0; font-size: var(--fs-sm); color: var(--muted); line-height: 1.6; }
.affils .sep { margin: 0 4px; }
.notes { margin: 6px auto 26px; font-size: var(--fs-xs); color: var(--dim); }
.stats { list-style: none; margin: 34px auto 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 900px; }
.stat { position: relative; padding: 16px 14px 14px; border-radius: 14px; background: var(--panel); border: 1px solid var(--edge); text-align: left; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); opacity: .8; }
.stat b { display: block; font-size: 30px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.stat b small { font-size: 16px; font-weight: 700; margin-left: 1px; color: var(--muted); }
.stat > span { display: block; margin-top: 6px; font-size: var(--fs-sm); line-height: 1.35; color: var(--muted); }
.stat.hot b { background: var(--grad-mint); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- theater: real match lines over the real image pair ---------- */
.theater { position: relative; max-width: 1120px; margin: 40px auto 0; border-radius: 18px; overflow: hidden; text-align: left;
  background: linear-gradient(180deg, rgba(16, 30, 72, .8), rgba(8, 16, 40, .9)); border: 1px solid var(--edge-2);
  box-shadow: 0 40px 90px -40px rgba(34, 211, 255, .35), 0 0 0 1px rgba(255, 255, 255, .02) inset; }
.th-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px; border-bottom: 1px solid var(--edge); background: rgba(8, 16, 40, .6); }
.th-title { display: flex; flex-direction: column; line-height: 1.25; min-width: 150px; }
.th-title b { font-size: var(--fs-lg); font-weight: 700; }
.th-title span { font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.pills { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 3px; border-radius: 999px; background: rgba(4, 9, 25, .6); border: 1px solid var(--edge); }
.pill { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .04em; padding: 6px 12px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background .25s, box-shadow .25s; }
.pill:hover { color: var(--text); }
.pill.on { color: #031024; background: var(--grad-mint); box-shadow: 0 6px 18px -6px rgba(76, 242, 184, .7); font-weight: 600; }
.pill.on.bad { background: linear-gradient(115deg, #ff8a5b, #ff4f4f); box-shadow: 0 6px 18px -6px rgba(255, 79, 79, .7); color: #fff; }
.counts { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-family: var(--mono); font-size: var(--fs-sm); }
.counts span { display: inline-flex; align-items: center; gap: 7px; color: var(--muted); }
.counts i { width: 18px; height: 3px; border-radius: 2px; }
.counts .g i { background: var(--inl); box-shadow: 0 0 8px var(--inl); }
.counts .r i { background: var(--out); box-shadow: 0 0 8px var(--out); }
.counts b { color: var(--text); font-weight: 600; min-width: 3ch; display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }
.th-stage { position: relative; width: 100%; background: #02060f; }
.th-stage img { position: absolute; top: 0; height: 100%; object-fit: fill; user-select: none; -webkit-user-drag: none; }
.th-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.th-beam { position: absolute; top: 0; bottom: 0; width: 3px; left: 0; opacity: 0; pointer-events: none; background: linear-gradient(180deg, transparent, var(--cyan), transparent); box-shadow: 0 0 24px 6px rgba(34, 211, 255, .45); }
.th-beam.go { opacity: 1; }
.th-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 16px 12px; border-top: 1px solid var(--edge); font-size: var(--fs-xs); color: var(--dim); font-family: var(--mono); }
.th-foot b { color: var(--muted); font-weight: 500; }
.legend { display: inline-flex; gap: 14px; }
.legend span::before { content: ""; display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; border-radius: 2px; }
.legend .g::before { background: var(--inl); } .legend .r::before { background: var(--out); }

/* ---------- sections ---------- */
.section { position: relative; padding: 120px 0 20px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 16px; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase; color: var(--cyan); }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.section h2 { margin: 0 0 18px; font-weight: 800; font-size: clamp(32px, 4.6vw, 58px); line-height: 1.02; letter-spacing: -.03em; text-wrap: balance; }
.section h2 em { font-style: normal; background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradPan 6s ease-in-out infinite alternate; }
.lead { max-width: 680px; margin: 0 0 44px; font-size: var(--fs-xl); line-height: 1.65; color: var(--muted); text-wrap: pretty; }
.lead b { color: var(--text); font-weight: 650; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.q { display: block; margin-bottom: 8px; font-size: var(--fs-lg); font-weight: 600; color: var(--mint); }

.card { position: relative; border-radius: var(--r); background: var(--panel); border: 1px solid var(--edge); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.fx { isolation: isolate; transition: transform .3s var(--ease), border-color .25s, box-shadow .3s; }
.fx::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(34, 211, 255, .14), transparent 45%); }
.fx:hover { border-color: rgba(34, 211, 255, .38); box-shadow: 0 30px 60px -36px rgba(34, 211, 255, .45); }
.fx:hover::after { opacity: 1; }
.glow-border { position: relative; }
.glow-border::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; background: conic-gradient(from var(--ang, 0deg), transparent 0 60%, rgba(34, 211, 255, .9), rgba(138, 99, 255, .9), transparent 90%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spinAng 6s linear infinite; }
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spinAng { to { --ang: 360deg; } }
.fig-note { max-width: 860px; margin: 14px auto 0; font-family: var(--mono); font-size: var(--fs-xs); line-height: 1.7; color: var(--dim); text-align: center; }
.fig-note a { color: var(--muted); box-shadow: inset 0 -1px 0 var(--edge-2); }
.fig-note a:hover { color: var(--cyan); }
.tabs { display: inline-flex; flex-wrap: wrap; gap: 3px; padding: 4px; border-radius: 999px; background: rgba(4, 9, 25, .6); border: 1px solid var(--edge); }
.tab { font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; padding: 8px 14px; border-radius: 999px; border: 0; background: transparent; color: var(--muted); cursor: pointer; transition: color .15s, background .25s, box-shadow .25s; }
.tab:hover { color: var(--text); }
.tab.on { color: #fff; background: rgba(62, 107, 255, .35); box-shadow: inset 0 0 0 1px rgba(34, 211, 255, .55), 0 0 18px -4px rgba(34, 211, 255, .6); }

/* ---------- 01 · insight: the teaser, live ---------- */
.pair-card { max-width: 1000px; margin: 0 auto 18px; overflow: hidden; }
.scan { display: grid; grid-template-columns: 1.08fr 1fr 1fr; gap: 14px; max-width: 1120px; margin: 0 auto; }
.scan-panel { padding: 12px 12px 10px; overflow: hidden; }
.sp-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 2px 8px; }
.sp-head b { font-size: var(--fs-lg); font-weight: 700; }
.sp-head span { font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.sp-canvas { position: relative; width: 100%; aspect-ratio: 71.2 / 42.3; border-radius: 10px; overflow: hidden; background: #020610; }
.sp-canvas img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; opacity: .42; filter: saturate(0) brightness(.85); }
.sp-canvas canvas, .sp-canvas svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.sp-bar { height: 6px; margin: 8px 2px 0; border-radius: 3px; background: linear-gradient(90deg, #22c6f0, #5a5ae6, #be2896); position: relative; overflow: hidden; }
.sp-bar i { position: absolute; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, .85); }
.sp-bar u { position: absolute; top: -3px; bottom: -3px; width: 3px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px #fff; border-radius: 2px; text-decoration: none; }
.sp-cap { display: flex; justify-content: space-between; margin: 6px 2px 0; font-family: var(--mono); font-size: var(--fs-2xs); color: var(--dim); }
.scan-ctl { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 0 auto 20px; }
.scan-ctl .play { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: transparent; border: 1px solid var(--edge-2); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.scan-ctl .play:hover { color: var(--text); border-color: var(--cyan); }
.verdict { max-width: 1120px; margin: 16px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.verdict .card { padding: 18px 20px; }
.verdict .card > b { display: block; font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.02em; }
.verdict .card > b.g { color: var(--inl); text-shadow: 0 0 24px rgba(57, 255, 143, .35); }
.verdict .card > b.r { color: var(--out); text-shadow: 0 0 24px rgba(255, 79, 79, .35); }
.verdict .card > b.c { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.verdict .card > span { display: block; margin-top: 6px; font-size: var(--fs-md); color: var(--muted); line-height: 1.45; }

/* ---------- 02 · method ---------- */
.arch { max-width: 1120px; margin: 0 auto; padding: 18px 18px 8px; }
.arch svg { display: block; width: 100%; height: auto; overflow: visible; }
.strand { fill: none; stroke-width: 2.2; stroke-linecap: round; }
.strand.g { stroke: var(--inl); filter: drop-shadow(0 0 3px rgba(57, 255, 143, .6)); }
.strand.r { stroke: var(--out); filter: drop-shadow(0 0 3px rgba(255, 79, 79, .6)); }
.strand.bypass { stroke: url(#bypassGrad); stroke-width: 1.6; opacity: .75; }
.flow { stroke-dasharray: 6 10; animation: flow 1.4s linear infinite; }
.flow.slow { animation-duration: 2.4s; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.peel { stroke-dasharray: 4 8; animation: flow 1.4s linear infinite, peelFade 3s ease-in-out infinite; }
@keyframes peelFade { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }
.blk rect.box { stroke-width: 1.5; }
.blk text { font-family: var(--sans); font-weight: 800; fill: #fff; text-anchor: middle; pointer-events: none; }
.blk { cursor: pointer; transition: transform .3s var(--ease); transform-box: fill-box; transform-origin: center; }
.blk:hover, .blk.on { transform: translateY(-3px); }
.blk .halo { opacity: 0; transition: opacity .3s; }
.blk:hover .halo, .blk.on .halo { opacity: 1; }
.blk .wave { fill: none; stroke: rgba(255, 255, 255, .75); stroke-width: 1.6; stroke-dasharray: 3 3; animation: flow 1.6s linear infinite; }
.arch-label { font-family: var(--mono); font-size: 12px; fill: var(--muted); text-anchor: middle; }
.arch-label.r { fill: #ff8b8b; } .arch-label.g { fill: #7dffc0; } .arch-label.c { fill: var(--cyan); }
.arch-thumb { stroke: var(--edge-2); stroke-width: 1; }
.arch-hint { text-align: center; margin: 4px 0 0; font-family: var(--mono); font-size: var(--fs-xs); color: var(--dim); }
.blocks { max-width: 1120px; margin: 18px auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.blockcard { padding: 20px 20px 18px; }
.blockcard.on { border-color: rgba(34, 211, 255, .55); box-shadow: 0 0 0 1px rgba(34, 211, 255, .25), 0 30px 60px -36px rgba(34, 211, 255, .6); }
.bc-k { font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: .14em; text-transform: uppercase; color: var(--cyan); }
.blockcard h3 { margin: 6px 0 6px; font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.blockcard p { margin: 0 0 12px; font-size: var(--fs-md); line-height: 1.55; color: var(--muted); }
.pipe { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.pipe li { font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: .02em; color: var(--text); padding: 4px 8px; border-radius: 7px; background: rgba(62, 107, 255, .18); border: 1px solid rgba(62, 107, 255, .35); }
.pipe li.hl { background: rgba(138, 99, 255, .3); border-color: rgba(190, 150, 255, .6); box-shadow: 0 0 14px -4px rgba(138, 99, 255, .9); }
.pipe li.ok { background: rgba(57, 255, 143, .12); border-color: rgba(57, 255, 143, .4); }
.modules { max-width: 1120px; margin: 20px auto 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.module { padding: 20px 20px 16px; overflow: hidden; }
.module h3 { margin: 6px 0 4px; font-size: 22px; font-weight: 800; }
.module p { margin: 0 0 10px; font-size: var(--fs-md); line-height: 1.55; color: var(--muted); }
.module svg { display: block; width: 100%; height: auto; }
.mini-k { font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; fill: var(--dim); }
.tok { transition: transform 1s var(--ease); }
.eq { margin: 10px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(4, 9, 25, .55); border: 1px solid var(--edge); font-family: var(--mono); font-size: var(--fs-xs); line-height: 1.7; color: var(--muted); }
.eq b { color: var(--cyan); font-weight: 500; }
.cost { margin: 18px auto 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cost span { font-family: var(--mono); font-size: var(--fs-xs); color: var(--muted); padding: 6px 12px; border-radius: 999px; border: 1px solid var(--edge-2); background: rgba(16, 30, 72, .5); }
.cost b { color: var(--cyan); font-weight: 600; }

/* ---------- 03 · results ---------- */
.res-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 14px; align-items: start; }
.board { padding: 14px 14px 10px; }
.bd-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 4px 10px; }
.bd-head b { font-size: var(--fs-lg); }
.bd-head span { font-family: var(--mono); font-size: var(--fs-2xs); color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.bd-tabs { margin: 0 4px 10px; }
.bd-body { position: relative; }
.bd-row { position: absolute; left: 0; right: 0; height: 26px; display: grid; grid-template-columns: 26px minmax(110px, 150px) 1fr 60px; align-items: center; gap: 0 10px; padding: 0 6px; border-radius: 8px; transition: transform .7s var(--ease), opacity .4s, background .2s; }
.bd-row:hover { background: rgba(62, 107, 255, .14); }
.bd-rank { font-family: var(--mono); font-size: var(--fs-2xs); color: var(--dim); text-align: right; }
.bd-name { font-size: var(--fs-md); font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-track { height: 8px; border-radius: 4px; background: rgba(130, 170, 255, .08); overflow: hidden; }
.bd-fill { display: block; height: 100%; width: calc(var(--w, 0) * 100%); border-radius: 4px; background: linear-gradient(90deg, rgba(62, 107, 255, .5), rgba(62, 107, 255, .95)); transition: width .8s var(--ease); }
.bd-val { font-family: var(--mono); font-size: var(--fs-sm); text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.bd-row.ours .bd-name { color: #fff; font-weight: 800; }
.bd-row.ours .bd-fill { background: var(--grad-mint); box-shadow: 0 0 14px rgba(76, 242, 184, .55); }
.bd-row.ours { background: rgba(76, 242, 184, .08); }
.bd-row.ours .bd-val { color: var(--mint); font-weight: 600; }
.bd-row.base .bd-name { color: #cdd8ff; }
.bd-row.base .bd-fill { background: linear-gradient(90deg, rgba(138, 99, 255, .5), rgba(138, 99, 255, .95)); }
.bd-row.gray { opacity: .5; }
.bd-row.gray .bd-fill { background: rgba(169, 182, 218, .35); }
.bd-row.gone { opacity: 0; pointer-events: none; }
.bd-foot { margin: 8px 4px 2px; font-family: var(--mono); font-size: var(--fs-2xs); color: var(--dim); line-height: 1.6; }
.side-stack { display: grid; gap: 14px; }
.chart { padding: 14px 14px 12px; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.c-grid { stroke: rgba(130, 170, 255, .1); }
.c-tick { font-family: var(--mono); font-size: 10.5px; fill: var(--dim); }
.c-label { font-family: var(--sans); font-size: 12px; fill: var(--muted); }
.bub { cursor: pointer; transition: transform 1s var(--spring); transform-box: fill-box; transform-origin: center; }
.bub circle { fill-opacity: .3; stroke-width: 1.5; transition: fill-opacity .2s; }
.bub:hover circle { fill-opacity: .55; }
.bub text { font-family: var(--sans); font-size: 11.5px; font-weight: 700; fill: var(--text); text-anchor: middle; pointer-events: none; }
.bub text.v { font-family: var(--mono); font-weight: 500; font-size: 10px; fill: var(--muted); }
.star { fill: url(#starGrad); filter: drop-shadow(0 0 10px rgba(76, 242, 184, .8)); transform-box: fill-box; transform-origin: center; animation: starPulse 2.6s ease-in-out infinite; }
@keyframes starPulse { 50% { transform: scale(1.15) rotate(12deg); } }
.tip { position: absolute; z-index: 30; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); min-width: 180px; padding: 10px 12px; border-radius: 10px; background: rgba(3, 8, 22, .94); border: 1px solid var(--edge-2); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); font-size: var(--fs-xs); line-height: 1.55; color: var(--muted); opacity: 0; transition: opacity .15s; }
.tip.on { opacity: 1; }
.tip b { color: var(--text); font-size: var(--fs-sm); }
.tip code { color: var(--cyan); }
.heat { padding: 14px; overflow-x: auto; }
.hm { display: grid; grid-template-columns: minmax(96px, 1.2fr) repeat(6, minmax(46px, 1fr)); gap: 3px; min-width: 470px; }
.hm-h { font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: .08em; color: var(--dim); text-align: center; padding: 2px 0; }
.hm-h.ds { grid-column: span 3; color: var(--cyan); font-size: var(--fs-xs); }
.hm-h.ds.s { color: #b79bff; }
.hm-n { font-size: var(--fs-sm); color: var(--muted); padding: 0 6px; display: flex; align-items: center; white-space: nowrap; }
.hm-n.ours { color: #fff; font-weight: 800; }
.hm-c { position: relative; font-family: var(--mono); font-size: var(--fs-xs); text-align: center; padding: 7px 0; border-radius: 6px; color: #e9efff; background: color-mix(in srgb, var(--hm, #3e6bff) calc(var(--t) * 100%), #0a1433); transition: transform .2s var(--ease), box-shadow .2s; }
.hm-c:hover { transform: scale(1.12); z-index: 2; box-shadow: 0 0 0 1px rgba(255, 255, 255, .5), 0 8px 18px -6px rgba(0, 0, 0, .7); }
.hm-c.best { font-weight: 700; box-shadow: inset 0 0 0 1.5px rgba(76, 242, 184, .9); }
.hm-c.ours { background: color-mix(in srgb, #4cf2b8 calc(var(--t) * 100%), #0a1433); color: #021a12; font-weight: 600; }
.js .heat .hm-c { opacity: 0; transform: scale(.6); }
.js .heat.in .hm-c { opacity: 1; transform: none; transition: opacity .4s ease calc(var(--d) * 1ms), transform .5s var(--spring) calc(var(--d) * 1ms); }
.homo { padding: 14px; }
.ho-body { position: relative; }
.ho-row { position: absolute; left: 0; right: 0; top: 0; height: 26px; display: grid; grid-template-columns: minmax(96px, 120px) 1fr 54px; align-items: center; gap: 10px; transition: transform .7s var(--ease); }
.ho-n { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ho-t { position: relative; height: 14px; }
.ho-t::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(130, 170, 255, .16); }
.ho-t i { position: absolute; top: 50%; left: 0; height: 2px; margin-top: -1px; width: calc(var(--w, 0) * 100%); border-radius: 1px; background: linear-gradient(90deg, transparent, rgba(34, 211, 255, .75)); transition: width .8s var(--ease); }
.ho-t i::after { content: ""; position: absolute; right: -6px; top: -5px; width: 12px; height: 12px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px rgba(34, 211, 255, .8); }
.ho-axis { display: grid; grid-template-columns: minmax(96px, 120px) 1fr 54px; gap: 10px; margin: 0 0 4px; font-family: var(--mono); font-size: var(--fs-2xs); color: var(--dim); }
.ho-axis span { display: flex; justify-content: space-between; grid-column: 2; }
.ho-row.ours .ho-n { color: #fff; font-weight: 800; }
.ho-row.ours .ho-t i { background: linear-gradient(90deg, transparent, rgba(76, 242, 184, .85)); }
.ho-row.ours .ho-t i::after { background: var(--mint); box-shadow: 0 0 14px rgba(76, 242, 184, .95); }
.ho-v { font-family: var(--mono); font-size: var(--fs-sm); text-align: right; }
.ho-row.ours .ho-v { color: var(--mint); font-weight: 600; }
.ho-note { margin: 10px 2px 0; font-family: var(--mono); font-size: var(--fs-2xs); color: var(--dim); line-height: 1.6; }

.gallery { max-width: 1120px; margin: 26px auto 0; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.thumb { position: relative; flex: none; width: 150px; aspect-ratio: 2.68; border-radius: 10px; overflow: hidden; border: 1px solid var(--edge); background: #02060f; cursor: pointer; padding: 0; transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; }
.thumb img { position: absolute; top: 0; left: 0; height: 100%; width: 50%; object-fit: cover; filter: saturate(.8) brightness(.75); transition: filter .2s; }
.thumb img + img { left: 50%; }
.thumb span { position: absolute; left: 6px; bottom: 5px; right: 6px; text-align: left; font-family: var(--mono); font-size: 9.5px; color: #fff; text-shadow: 0 1px 4px #000; }
.thumb:hover { transform: translateY(-3px); border-color: rgba(34, 211, 255, .5); }
.thumb:hover img { filter: none; }
.thumb.on { border-color: var(--mint); box-shadow: 0 0 0 1px var(--mint), 0 10px 26px -10px rgba(76, 242, 184, .7); }
.thumb.on img { filter: none; }
.cmp-handle { position: absolute; top: 0; bottom: 0; left: var(--x, 50%); width: 0; z-index: 4; cursor: ew-resize; }
.cmp-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 16px rgba(34, 211, 255, .9); }
.cmp-handle span { position: absolute; top: 50%; left: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 8px 20px -6px rgba(0, 0, 0, .8); }
.cmp-handle span::before, .cmp-handle span::after { content: ""; position: absolute; top: 50%; margin-top: -5px; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.cmp-handle span::before { left: 7px; border-right: 6px solid #fff; } .cmp-handle span::after { right: 7px; border-left: 6px solid #fff; }
.cmp-tag { position: absolute; top: 10px; z-index: 3; font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: .06em; padding: 4px 9px; border-radius: 999px; background: rgba(3, 8, 22, .82); color: var(--text); border: 1px solid var(--edge-2); pointer-events: none; }
.cmp-tag.l { left: 10px; } .cmp-tag.r { right: 10px; border-color: rgba(76, 242, 184, .6); color: var(--mint); }
.cmp-stage { cursor: ew-resize; touch-action: pan-y; }

/* ---------- 04 · analysis ---------- */
.an-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.an-card { padding: 18px 18px 14px; }
.an-card h3 { margin: 4px 0 4px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.an-card p { margin: 0 0 12px; font-size: var(--fs-md); line-height: 1.55; color: var(--muted); }
.an-card .q { margin: 0; font-size: var(--fs-sm); }
.wf { display: grid; gap: 10px; }
.wf-row { display: grid; grid-template-columns: 112px 1fr; align-items: center; gap: 12px; }
.wf-n { font-size: var(--fs-sm); color: var(--muted); }
.wf-n.ours { color: #fff; font-weight: 800; }
.wf-t { position: relative; height: 26px; border-radius: 7px; background: rgba(130, 170, 255, .07); overflow: hidden; }
.wf-t i { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--w, 0) * 100%); border-radius: 7px; background: linear-gradient(90deg, rgba(62, 107, 255, .35), rgba(62, 107, 255, .85)); transition: width 1s var(--ease); }
.wf-t i.delta { left: calc(var(--from) * 100%); width: calc(var(--dw, 0) * 100%); background: linear-gradient(90deg, rgba(76, 242, 184, .6), rgba(76, 242, 184, .95)); box-shadow: 0 0 14px rgba(76, 242, 184, .6); transition: width 1s var(--ease) .5s; }
.wf-t b { position: absolute; right: 8px; top: 0; bottom: 0; display: flex; align-items: center; font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600; color: #fff; text-shadow: 0 1px 6px #000; }
.wf-t em { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; font-style: normal; font-family: var(--mono); font-size: var(--fs-2xs); color: #021a12; font-weight: 700; padding-left: 6px; opacity: 0; transition: opacity .4s 1.3s; }
.an-card.in .wf-t em { opacity: 1; }
.dots svg { display: block; width: 100%; height: auto; overflow: visible; }
.dp-lab { font-size: 12.5px; fill: var(--muted); }
.dp-lab.ours { fill: #fff; font-weight: 800; }
.dp-sub { font-family: var(--mono); font-size: 10px; fill: var(--dim); }
.dp-err { stroke-width: 2; stroke-linecap: round; }
.dp-pt { transition: transform 1s var(--spring); }
.dp-v { font-family: var(--mono); font-size: 10.5px; fill: var(--text); }
.energy { display: grid; gap: 10px; }
.en-row { display: grid; grid-template-columns: 150px 1fr 52px; align-items: center; gap: 12px; }
.en-n { font-size: var(--fs-sm); color: var(--muted); line-height: 1.3; }
.en-n small { display: block; font-family: var(--mono); font-size: var(--fs-2xs); color: var(--dim); }
.en-t { position: relative; height: 18px; border-radius: 6px; background: rgba(130, 170, 255, .07); overflow: hidden; }
.en-t i { position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--v, 0) * 100%); border-radius: 6px; transition: width 1.1s var(--ease) var(--rd2, 0s); }
.js .en-t i { width: 0; }
.js .in .en-t i { width: calc(var(--v, 0) * 100%); }
.en-sep { height: 1px; margin: 4px 0; background: var(--edge); }
.en-t i.lo { background: var(--grad-mint); box-shadow: 0 0 12px rgba(76, 242, 184, .5); }
.en-t i.hi { background: linear-gradient(90deg, #ff8a5b, var(--out)); }
.en-t i.ap { background: linear-gradient(90deg, rgba(255, 176, 59, .6), var(--warn)); }
.en-v { font-family: var(--mono); font-size: var(--fs-sm); text-align: right; }
.callout { max-width: 1120px; margin: 14px auto 0; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px; padding: 20px 24px; }
.callout .big { font-size: clamp(36px, 5vw, 56px); font-weight: 800; line-height: 1; letter-spacing: -.03em; background: var(--grad-mint); -webkit-background-clip: text; background-clip: text; color: transparent; }
.callout p { margin: 0; font-size: var(--fs-xl); line-height: 1.55; color: var(--muted); }
.callout p b { color: var(--text); }
.shuffle { position: relative; width: 280px; height: 34px; }
.shuffle i { position: absolute; left: 0; top: 0; width: 14px; height: 14px; border-radius: 4px; background: var(--c); transition: transform .7s var(--ease); box-shadow: 0 0 10px -2px var(--c); }
.shuffle-cap { margin-top: 8px; font-family: var(--mono); font-size: var(--fs-2xs); color: var(--dim); text-align: center; }

/* ---------- 05 · code + cite ---------- */
.code-grid { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.term { position: relative; border-radius: 14px; overflow: hidden; background: rgba(2, 6, 16, .88); border: 1px solid var(--edge-2); box-shadow: 0 26px 60px -36px rgba(34, 211, 255, .35); text-align: left; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--edge); }
.term-bar .d { width: 10px; height: 10px; border-radius: 50%; background: #2b3557; }
.term-bar .d:nth-child(1) { background: #ff5f57; } .term-bar .d:nth-child(2) { background: #febc2e; } .term-bar .d:nth-child(3) { background: #28c840; }
.term-title { margin-left: 8px; font-family: var(--mono); font-size: var(--fs-xs); color: var(--dim); }
.term-copy { margin-left: auto; font-family: var(--mono); font-size: var(--fs-2xs); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); background: transparent; border: 0; cursor: pointer; padding: 3px 4px; }
.term-copy:hover { color: var(--text); } .term-copy.done { color: var(--mint); }
.term pre { margin: 0; padding: 16px 18px; font-family: var(--mono); font-size: 12px; line-height: 1.75; color: #d7e0ff; white-space: pre; overflow-x: auto; }
.t-c { color: #5f6d96; } .t-k { color: #7cc4ff; } .t-s { color: var(--mint); } .t-f { color: #c9a7ff; }
.note { max-width: 1120px; margin: 14px auto 0; padding: 14px 18px; border-radius: 12px; border: 1px dashed rgba(255, 176, 59, .45); background: rgba(255, 176, 59, .06); font-size: var(--fs-md); line-height: 1.55; color: var(--muted); }
.note b { color: var(--warn); }
.cite { max-width: 860px; margin: 0 auto; }
.cite .term pre { font-size: 12px; }

.closing { padding: 110px 0 30px; text-align: center; }
.closing p { margin: 0 0 26px; font-weight: 800; font-size: clamp(28px, 4vw, 48px); line-height: 1.08; letter-spacing: -.03em; }
.footer { margin-top: 60px; border-top: 1px solid var(--edge); padding: 40px 0 36px; }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 30px; }
.foot p { margin: 12px 0 0; max-width: 420px; color: var(--dim); font-size: var(--fs-md); }
.foot-links { display: flex; flex-direction: column; gap: 10px; }
.foot-links a { color: var(--muted); font-size: var(--fs-md); font-weight: 550; }
.foot-links a:hover { color: var(--cyan); }
.foot-bottom { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--edge); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-family: var(--mono); font-size: var(--fs-xs); color: var(--dim); }
.foot-bottom a { color: var(--muted); box-shadow: inset 0 -1px 0 var(--edge-2); }
.foot-bottom a:hover { color: var(--cyan); }

/* ---------- additions for the page components ---------- */
.hero .lead-in { max-width: 700px; margin: -6px auto 22px; font-size: var(--fs-xl); line-height: 1.6; color: var(--muted); text-wrap: pretty; }
.hero .lead-in b { color: var(--text); font-weight: 650; }
.counts em { font-style: normal; color: var(--muted); }
.counts .who { color: var(--text); font-weight: 600; }
.counts .who.ours { color: var(--mint); }
.counts .vs { color: var(--dim); }
.pair-card .sp-head { padding: 12px 16px 0; }
.pair-card .th-stage { margin-top: 10px; }
.bd-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.bd-foot b { color: var(--text); font-weight: 600; }
.up { color: var(--mint) !important; }
.term.wide { grid-column: 1 / -1; }
.gal-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 20px; margin: 0 2px 12px; }
.gal-head h3 { margin: 0; font-size: 24px; font-weight: 800; letter-spacing: -.01em; }
.gal-head p { margin: 0; font-size: var(--fs-md); color: var(--muted); }
.gallery .theater { margin-top: 4px; }
.spec-band { fill: rgba(76, 242, 184, .07); }
.spec-band-edge { stroke: rgba(76, 242, 184, .45); stroke-dasharray: 4 5; }
.spec-unit { stroke: rgba(233, 239, 255, .45); stroke-dasharray: 3 6; }
.spec-axis { stroke: rgba(130, 170, 255, .25); }
.spec-tick { font-family: var(--mono); font-size: 21px; fill: var(--dim); }
.spec-lab { font-family: var(--mono); font-size: 21px; }
.spec-line { fill: none; stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; transition: opacity .35s ease; }
.spec-line.g { stroke: var(--inl); filter: drop-shadow(0 0 6px rgba(57, 255, 143, .6)); }
.spec-line.r { stroke: var(--out); filter: drop-shadow(0 0 6px rgba(255, 79, 79, .6)); }
.spec-wait .spec-line { opacity: .22; }
.wf-t em { left: calc(var(--from, 0) * 100%); }
.callout .vs-line { margin-top: 6px; font-family: var(--mono); font-size: var(--fs-xs); color: var(--dim); }
.callout .vs-line s { color: #ff8b8b; }
.big small { font-size: .42em; margin-left: 4px; -webkit-text-fill-color: var(--muted); }
.mod-lab { font-family: var(--mono); font-size: 11px; fill: var(--dim); letter-spacing: .06em; }
.mod-lab.hl { fill: var(--cyan); }
.chip-box { fill: rgba(22, 40, 92, .7); stroke: rgba(130, 170, 255, .3); transition: fill .3s, stroke .3s; }
.chip-g.on .chip-box { fill: rgba(62, 107, 255, .55); stroke: var(--cyan); }
.chip-g.gate .chip-box { fill: rgba(138, 99, 255, .28); stroke: rgba(190, 150, 255, .5); }
.chip-g.gate.on .chip-box { fill: rgba(138, 99, 255, .7); stroke: #d9c8ff; }
.chip-g text { font-family: var(--mono); font-size: 12px; fill: var(--text); text-anchor: middle; }
.chip-g.on text { fill: #fff; font-weight: 600; }
.ho-axis i { font-style: normal; }
.js .heat.in .hm-c:hover { transform: scale(1.12); }
.scan-ctl .play[hidden] { display: none; }
.verdict .card > span b { color: var(--text); font-weight: 700; }
.strand.base { stroke-dasharray: none; animation: none; opacity: .32; filter: none; }
.tok-lab { font-family: var(--mono); font-size: 11px; fill: var(--cyan); letter-spacing: .04em; }
.blockcard, .blk { -webkit-tap-highlight-color: transparent; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; transition-delay: var(--rd, 0s); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .scan { grid-template-columns: 1fr 1fr; }
  .scan .scan-panel:first-child { grid-column: 1 / -1; }
  .res-grid { grid-template-columns: 1fr; }
  .blocks { grid-template-columns: 1fr; }
  .modules, .an-grid, .code-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .arch { overflow-x: auto; }
  .arch svg { min-width: 720px; }
}
@media (max-width: 860px) {
  .nav-links > a, .nav-sep { display: none; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verdict { grid-template-columns: 1fr; }
  .section { padding: 80px 0 10px; }
  .counts { margin-left: 0; }
  .callout { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .nav-inner { padding: 10px 16px; }
  .brand b { font-size: 16px; }
  .nav-cta .btn.sm { padding: 6px 11px; font-size: 13px; }
  .hero { padding-top: 40px; }
  .scan { grid-template-columns: 1fr; }
  .th-bar { gap: 8px; }
  .pill { padding: 5px 9px; font-size: 10.5px; }
  .stat b { font-size: 24px; }
  .bd-row { grid-template-columns: 20px minmax(90px, 110px) 1fr 50px; gap: 0 6px; }
  .en-row { grid-template-columns: 110px 1fr 46px; }
  .wf-row { grid-template-columns: 86px 1fr; }
}
@media (max-width: 400px) { .nav-cta .btn.sm:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .sky i { animation: none; }
}
