/* scview.io: "Instrument" direction. Light and dark are two palettes, not a filter. */
:root {
  color-scheme: light;
  --bg: #f7f7f5; --surface: #ffffff; --surface-2: #f0f0ec; --ink: #111214; --ink-2: #474a51; --muted: #686b74;
  --line: rgba(17, 18, 20, .09); --line-2: rgba(17, 18, 20, .16);
  --accent: #0d9488; --accent-text: #0f766e; --accent-soft: rgba(13, 148, 136, .10);
  --code-bg: #f3f3ef;
  --shadow: 0 1px 2px rgba(17, 18, 20, .04), 0 8px 24px -10px rgba(17, 18, 20, .12), 0 28px 56px -28px rgba(17, 18, 20, .16);
  --glow: radial-gradient(60% 60% at 50% 40%, rgba(13, 148, 136, .10), transparent 70%);
  --sans: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --gutter: clamp(16px, 3vw, 56px); --radius: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0b0d; --surface: #131418; --surface-2: #1b1d22; --ink: #f2f3f5; --ink-2: #b6b9c2; --muted: #8d909a;
    --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
    --accent: #2dd4bf; --accent-text: #5eead4; --accent-soft: rgba(45, 212, 191, .12); --code-bg: #0e0f12;
    --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -24px rgba(0, 0, 0, .7);
    --glow: radial-gradient(60% 60% at 50% 40%, rgba(45, 212, 191, .10), transparent 70%);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0b0d; --surface: #131418; --surface-2: #1b1d22; --ink: #f2f3f5; --ink-2: #b6b9c2; --muted: #8d909a;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .16);
  --accent: #2dd4bf; --accent-text: #5eead4; --accent-soft: rgba(45, 212, 191, .12); --code-bg: #0e0f12;
  --shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 24px 48px -24px rgba(0, 0, 0, .7);
  --glow: radial-gradient(60% 60% at 50% 40%, rgba(45, 212, 191, .10), transparent 70%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--accent-text); text-underline-offset: 3px; }
img { max-width: 100%; }
code, .mono { font-family: var(--mono); font-size: .88em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* layered copy: each block carries a plain and an expert version */
[data-for="expert"] { display: none; }
:root[data-audience="expert"] [data-for="bio"] { display: none; }
:root[data-audience="expert"] [data-for="expert"] { display: revert; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px var(--gutter);
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 18px; letter-spacing: -.01em; color: var(--ink); text-decoration: none; }
.logo i { width: 26px; height: 26px; border-radius: 7px; background: #0f766e; color: #fff; font: 700 11px var(--sans); font-style: normal; display: grid; place-items: center; }
.nav .links { display: flex; gap: 22px; font-size: 14.5px; margin-left: 10px; }
.nav .links a { color: var(--ink-2); text-decoration: none; }
.nav .links a:hover, .nav .links a[aria-current="page"] { color: var(--ink); }
.nav .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; color: var(--ink-2); font: 500 13px var(--sans); padding: 6px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .14); }
.seg .short { display: none; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); cursor: pointer; }
.icon-btn svg { width: 17px; height: 17px; }
.btn { display: inline-flex; gap: 8px; align-items: center; justify-content: center; padding: 10px 16px; border-radius: 12px; font: 550 14.5px var(--sans);
  text-decoration: none; color: var(--ink); border: 1px solid var(--line-2); background: var(--surface); transition: transform .2s, background .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: transparent; }
.btn.lg { padding: 13px 20px; font-size: 15.5px; border-radius: 14px; }

/* hero */
.hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 72px); align-items: center;
  padding: clamp(40px, 6vw, 96px) var(--gutter) clamp(32px, 4vw, 56px); }
.pill { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--ink-2); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px 5px 5px; box-shadow: var(--shadow); text-decoration: none; }
.pill b { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; border-radius: 999px; padding: 2px 9px; font-size: 12px; }
h1 { font-size: clamp(40px, 4.4vw, 92px); line-height: 1.0; letter-spacing: -.045em; font-weight: 680; margin: 24px 0 22px; }
h1 span { color: var(--muted); }
.lede { font-size: clamp(17px, 1.25vw, 21px); color: var(--ink-2); margin: 0 0 28px; max-width: 34em; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; padding: 0; margin: 22px 0 0; font-size: 13.5px; color: var(--muted); }
.facts li::before { content: '✓ '; color: var(--accent); font-weight: 700; }

.mapcard { position: relative; margin: 0; min-height: clamp(460px, 72vh, 860px); height: 100%; border-radius: 26px; overflow: hidden;
  background: var(--glow), var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mapcard canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }
.mapcard .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 60px 40px 90px; }
.map-top { position: absolute; z-index: 2; top: 18px; left: 20px; right: 20px; display: flex; justify-content: space-between; gap: 16px; pointer-events: none; }
.k { font: 500 12px var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.readout { font-size: 14.5px; color: var(--ink-2); text-align: right; max-width: 30em; }
.readout b { color: var(--ink); font-size: 1.35em; font-weight: 680; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.map-bottom { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; justify-content: space-between; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: 500 13px var(--sans); padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.legend { font-size: 12.5px; color: var(--ink-2); display: flex; gap: 4px 12px; flex-wrap: wrap; align-items: center;
  background: color-mix(in srgb, var(--surface) 88%, transparent); padding: 5px 11px; border-radius: 999px; }
.legend b { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 5px; vertical-align: 0; }
.legend .ramp { width: 72px; height: 7px; border-radius: 4px; display: inline-block; margin: 0 6px; vertical-align: 1px; }
.credit { position: absolute; z-index: 2; left: 20px; top: 42px; font-size: 12.5px; color: var(--muted); max-width: 26em; pointer-events: none; }
.lbl { position: absolute; z-index: 1; pointer-events: none; font: 500 11.5px var(--sans); color: var(--ink-2); transform: translate(-50%, -50%); white-space: nowrap;
  text-shadow: 0 0 4px var(--surface), 0 0 8px var(--surface), 0 0 2px var(--surface); transition: opacity .5s; }
.tip { position: fixed; z-index: 40; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 12.5px; line-height: 1.4; padding: 7px 10px; border-radius: 9px; display: none; transform: translate(14px, -50%); white-space: nowrap; }
.tip span { opacity: .7; }

.stage { padding: 0 var(--gutter); }
.frame { position: relative; margin: 0 auto; max-width: 2000px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
.frame .bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); font: 12px var(--mono); color: var(--muted); }
.frame .bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.frame .bar span { margin-left: 10px; }
.frame img { display: block; width: 100%; height: auto; }
.stage figcaption { text-align: center; color: var(--muted); font-size: 14px; margin: 14px auto 0; max-width: 60em; }

/* enlarge links: any figure opens full screen */
.zoom { display: block; cursor: zoom-in; color: inherit; }
.card .media .zoom { position: absolute; inset: 0; }
.zoom::after { content: '⤢  Enlarge'; position: absolute; top: 10px; right: 10px; z-index: 2; font: 500 12px var(--sans); color: #fff;
  background: rgba(17, 18, 20, .74); padding: 4px 10px; border-radius: 999px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
@media (hover: none) { .zoom::after { opacity: .85; } }

/* product tour carousel */
.tour-tabs { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin: 0 auto 16px; max-width: 2000px; }
.tour-tabs button { border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); font: 500 13.5px var(--sans); padding: 7px 14px; border-radius: 999px; cursor: pointer; }
.tour-tabs button[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tour .bar .addr { margin-left: 10px; }
.tour-play { margin-left: auto; width: 26px; height: 22px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.tour-play:hover { color: var(--ink); background: var(--line); }
.tour-play svg { width: 12px; height: 12px; }
.slides { position: relative; aspect-ratio: 16 / 10; background: #fff; overflow: hidden; }
.slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.slide.is-active { opacity: 1; visibility: visible; transition: opacity .45s ease; }
.slide .zoom { position: absolute; inset: 0; }
.slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.tour-nav { position: absolute; top: 50%; z-index: 3; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(17, 18, 20, .12);
  background: rgba(255, 255, 255, .9); color: #111214; font: 400 26px/1 var(--sans); cursor: pointer; box-shadow: 0 4px 16px rgba(0, 0, 0, .12); opacity: 0; transition: opacity .2s; }
.tour-nav.prev { left: 14px; } .tour-nav.next { right: 14px; }
.slides:hover .tour-nav, .tour-nav:focus-visible { opacity: 1; }
@media (hover: none) { .tour-nav { opacity: .9; width: 38px; height: 38px; } }
.tour-cap .hint { color: var(--muted); }
.no-js .tour-tabs, .no-js .tour-nav { display: none; }
@media (max-width: 640px) {
  .tour-tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; padding-bottom: 2px; }
  .tour-tabs button { flex: none; }
}
@media (prefers-reduced-motion: reduce) { .slide, .slide.is-active { transition: none; } }

/* full-screen viewer */
html.lb-open { overflow: hidden; }
.lb { padding: 0; border: 0; margin: 0; width: 100vw; height: 100vh; max-width: none; max-height: none; background: rgba(6, 7, 9, .94); color: #eef0f3; overflow: hidden; }
.lb::backdrop { background: rgba(6, 7, 9, .5); }
.lb .lb-stage { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 60px 76px 84px; overflow: auto; outline: none; }
.lb img { max-width: calc(100vw - 152px); max-height: calc(100vh - 144px); object-fit: contain; border-radius: 8px; background: #fff; box-shadow: 0 30px 90px rgba(0, 0, 0, .55); cursor: zoom-in; user-select: none; -webkit-user-drag: none; }
.lb.actual .lb-stage { display: block; padding: 60px 24px 84px; cursor: grab; }
.lb.actual .lb-stage.dragging { cursor: grabbing; }
.lb.actual img { max-width: none; max-height: none; cursor: zoom-out; }
.lb .lb-cap { position: fixed; left: 0; right: 0; bottom: 0; margin: 0; padding: 26px 80px 20px; text-align: center; font-size: 14.5px; line-height: 1.5; color: #c9ccd3;
  background: linear-gradient(transparent, rgba(6, 7, 9, .92) 45%); pointer-events: none; }
.lb .lb-cap small { display: block; color: #8b8f99; font-size: 12.5px; margin-top: 2px; }
.lb .lb-count { position: fixed; top: 22px; left: 24px; font: 500 13px var(--mono); color: #8b8f99; }
.lb button { position: fixed; z-index: 2; width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .08);
  color: #fff; font: 400 24px/1 var(--sans); cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: rgba(255, 255, 255, .18); }
.lb button svg { width: 18px; height: 18px; }
.lb .lb-x { top: 12px; right: 14px; }
.lb .lb-prev { left: 14px; top: calc(50% - 22px); } .lb .lb-next { right: 14px; top: calc(50% - 22px); }
.lb .lb-size { top: 12px; right: 66px; font-size: 12px; width: auto; padding: 0 14px; border-radius: 999px; font-family: var(--mono); }
@media (max-width: 640px) { .lb .lb-stage { padding: 56px 8px 96px; } .lb img { max-width: calc(100vw - 16px); max-height: calc(100vh - 152px); } .lb .lb-prev, .lb .lb-next { top: auto; bottom: 14px; } .lb .lb-cap { padding: 20px 64px 18px; } }

/* sections */
section { padding: clamp(56px, 6vw, 104px) var(--gutter); }
.head { margin-bottom: clamp(24px, 3vw, 40px); }
h2 { font-size: clamp(30px, 3.2vw, 56px); line-height: 1.05; letter-spacing: -.035em; font-weight: 660; margin: 8px 0 0; max-width: 22ch; }
.head p { color: var(--ink-2); max-width: 44em; margin: 12px 0 0; font-size: 17px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 20px; position: relative; }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); font: 600 12px var(--mono); color: var(--accent-text); }
.steps h3 { margin: 6px 0 4px; font-size: 18px; letter-spacing: -.015em; }
.steps p { margin: 0; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; grid-auto-flow: dense; }
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 24px; overflow: hidden; display: flex; flex-direction: column; min-height: 220px; }
.s3 { grid-column: span 3; } .s4 { grid-column: span 4; } .s5 { grid-column: span 5; } .s6 { grid-column: span 6; } .s7 { grid-column: span 7; } .s8 { grid-column: span 8; } .s12 { grid-column: span 12; }
.card h3 { font-size: 22px; letter-spacing: -.02em; margin: 6px 0 6px; font-weight: 630; line-height: 1.2; }
.card p { color: var(--ink-2); margin: 0; font-size: 15px; }
.card ul.x { margin: 4px 0 0; padding-left: 18px; color: var(--ink-2); font-size: 14px; }
.card ul.x li { margin: 3px 0; }
.card .media { margin: 18px -24px -24px; border-top: 1px solid var(--line); flex: 1; min-height: max(var(--mh, 280px), 16vw); position: relative; overflow: hidden; background: #fff; }
.card .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, top left); }
.card .media.contain img { object-fit: contain; padding: 12px; }
.stat { font-size: clamp(48px, 4.6vw, 84px); font-weight: 680; letter-spacing: -.045em; line-height: 1; margin: 18px 0 10px; font-variant-numeric: tabular-nums; }
.stat small { font-size: .38em; color: var(--muted); letter-spacing: -.01em; font-weight: 550; }
.stat.sm { font-size: clamp(36px, 3vw, 54px); margin: 14px 0 8px; }
.stat.pair { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.stat .vs { font-size: .36em; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.bar2 { display: grid; gap: 6px; margin: 4px 0 14px; }
.bar2 div { display: grid; grid-template-columns: 92px 1fr 44px; gap: 10px; align-items: center; font-size: 13px; color: var(--ink-2); }
.bar2 i { height: 10px; border-radius: 5px; background: var(--surface-2); position: relative; overflow: hidden; }
.bar2 i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--c); border-radius: 5px; }
.bar2 b { font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; }
.tally { display: grid; gap: 8px; margin: 16px 0 4px; font-size: 13px; color: var(--ink-2); }
.tally div { display: grid; grid-template-columns: 64px 1fr auto; gap: 10px; align-items: center; }
.tally span.sq { display: flex; flex-wrap: wrap; gap: 3px; }
.tally span.sq i { width: 12px; height: 12px; border-radius: 3px; background: var(--surface-2); border: 1px solid var(--line); }
.tally span.sq i.on { background: var(--accent); border-color: transparent; }
.tally b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bubble { background: var(--surface-2); border-radius: 14px; padding: 11px 14px; font-size: 14.5px; margin-top: 12px; color: var(--ink-2); }
.bubble.me { background: var(--ink); color: var(--bg); margin-left: 18%; }
.cite { font: 500 11.5px var(--mono); color: var(--accent-text); background: var(--accent-soft); padding: 1px 6px; border-radius: 6px; white-space: nowrap; }
pre { margin: 16px 0 0; padding: 14px 16px; background: var(--code-bg); border: 1px solid var(--line); border-radius: 12px; font: 12.5px/1.65 var(--mono); color: var(--ink-2); overflow-x: auto; }
pre .c { color: var(--muted); }
.note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }
.more { margin-top: auto; padding-top: 14px; font-weight: 550; font-size: 14.5px; text-decoration: none; }

/* validation rings */
.rings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1400px) { .rings { grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); } }
.ring { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: grid; grid-template-columns: 64px 1fr; gap: 6px 16px; align-items: center; }
.ring svg { width: 64px; height: 64px; grid-row: span 2; }
.ring svg .track { stroke: var(--surface-2); } .ring svg .fill { stroke: var(--accent); } .ring svg .ghost { stroke: var(--ink-2); }
.ring .val { font-size: 24px; font-weight: 680; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ring .what { font-size: 14.5px; color: var(--ink); font-weight: 550; }
.ring .ref { grid-column: 1 / -1; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.rings-foot { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; margin-top: 22px; color: var(--muted); font-size: 14.5px; }

.limits { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.limits div { border-top: 2px solid var(--ink); padding-top: 14px; }
.limits h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.limits p { margin: 0; color: var(--ink-2); font-size: 15px; }

.os { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.os .card { min-height: 0; }
.os code { display: block; margin-top: 14px; padding: 12px 14px; background: var(--code-bg); border: 1px solid var(--line); border-radius: 10px; font: 13px/1.7 var(--mono); white-space: pre-wrap; word-break: break-all; color: var(--ink); }
.reqs { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 24px; color: var(--ink-2); font-size: 14.5px; }
.reqs b { color: var(--ink); font-variant-numeric: tabular-nums; }

footer { padding: 40px var(--gutter) 48px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px 48px; color: var(--muted); font-size: 14px; }
footer h2 { max-width: none; margin: 0 0 8px; font: 600 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
footer p { margin: 0; }
footer a { color: var(--ink-2); }

/* validation page table */
.vgroup { margin-top: 40px; }
.vgroup h2 { font-size: 20px; letter-spacing: -.015em; margin: 0 0 10px; max-width: none; line-height: 1.3; }
table.vt { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.vt th { text-align: left; font: 500 11.5px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); }
.vt td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.vt tr:last-child td { border-bottom: 0; }
.vt .what { font-weight: 600; } .vt .what span { display: block; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.vt .agree { white-space: nowrap; font-weight: 680; font-variant-numeric: tabular-nums; }
.digits { display: inline-flex; gap: 2px; margin-left: 10px; vertical-align: -2px; }
.digits i { width: 4px; height: 13px; border-radius: 1px; background: var(--surface-2); }
.digits i.on { background: var(--accent); }
.vt .ref { color: var(--ink-2); } .vt .data { color: var(--muted); } .vt .src a { font: 12.5px var(--mono); white-space: nowrap; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease-out, transform .55s ease-out; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; } .reveal { opacity: 1; transform: none; transition: none; } .btn:hover { transform: none; }
}
@media (max-width: 1180px) {
  .hero { grid-template-columns: 1fr; }
  .mapcard { min-height: 520px; }
  .s3, .s4, .s5 { grid-column: span 6; } .s6, .s7, .s8 { grid-column: span 12; }
}
@media (max-width: 860px) { .nav .links { display: none; } }
@media (max-width: 640px) {
  .s3, .s4, .s5, .s6, .s7, .s8 { grid-column: span 12; }
  .seg .long { display: none; } .seg .short { display: inline; }
  .nav .btn.primary { display: none; }
  .mapcard { min-height: 560px; }
  .readout { display: none; }
  .credit { top: 40px; right: 20px; }
  .vt thead { display: none; } .vt, .vt tbody, .vt tr, .vt td { display: block; width: 100%; } .vt td { border: 0; padding: 4px 16px; } .vt tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}
