/* ==========================================================================
   PhysVideo — Pure-Black Cinema Theme
   Original v5 angled video-reel Hero + compact interactive stage, 40-case
   explorer, native 19-row results table & paper plates unified on pure dark.
   Zero opacity:0 content hiding; zero animated headline numbers.
   ========================================================================== */

:root {
  --bg: #06080B;
  --bg-alt: #0A0E13;
  --surface: #0F151C;
  --surface-hi: #141C26;
  --surface-2: #0B1017;
  --border: #1F2A37;
  --border-strong: #314154;

  --heading: #F3F7FB;
  --text: #C9D6E2;
  --muted: #8FA1B5;
  --faint: #66788C;

  --accent: #5FD3C4;
  --accent-ink: #8FE3D7;
  --accent-2: #7FB3F0;
  --accent-wash: rgba(95, 211, 196, 0.14);
  --accent-2-wash: rgba(127, 179, 240, 0.13);
  --t2v: #9AACBE;

  --code-bg: #070C12;
  --code-fg: #CFDCE9;

  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.45), 0 6px 20px rgba(0, 0, 0, 0.36);
  --shadow-2: 0 4px 14px rgba(0, 0, 0, 0.52), 0 24px 60px rgba(0, 0, 0, 0.58);

  --maxw: 1280px;
  --pad: clamp(16px, 3vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  background: var(--bg);
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16.5px;
  line-height: 1.64;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; padding: 0; }
a { color: var(--accent-ink); text-underline-offset: 0.18em; }
a:hover { color: var(--heading); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
  left: 16px; top: 16px; z-index: 90;
  background: var(--surface); color: var(--heading);
  border: 1px solid var(--accent); border-radius: 10px;
  padding: 10px 14px; text-decoration: none; font-weight: 650;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

/* ── Top Navigation Bar (Original v5 Dark Glass) ── */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(6, 8, 11, 0.66);
  backdrop-filter: saturate(1.5) blur(12px);
  -webkit-backdrop-filter: saturate(1.5) blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.topbar.scrolled {
  background: rgba(6, 8, 11, 0.88);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}
.topbar__in {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; height: 60px;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 16px; letter-spacing: -0.02em;
  color: var(--heading); text-decoration: none; white-space: nowrap; flex: none;
}
.brand:hover { color: var(--accent-ink); }
.brand__mark { width: 22px; height: 22px; flex: none; }
.topnav { display: flex; align-items: center; gap: 4px; min-width: 0; }
.topnav a {
  color: #9AA9BA; text-decoration: none;
  font-size: 14px; font-weight: 560;
  padding: 6px 11px; border-radius: 8px;
  transition: color 0.2s, background 0.2s; white-space: nowrap;
}
.topnav a:hover { color: #FFFFFF; background: rgba(255, 255, 255, 0.07); }
.topnav a.active { color: #7DD7CB; background: rgba(95, 211, 196, 0.14); }
.progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ── Hero: Original v5 Pure-Black Angled Video-Reel Hero ── */
.hero.xh {
  position: relative; overflow: hidden;
  min-height: min(94vh, 920px);
  margin-top: -61px;
  display: flex; align-items: center;
  padding: 148px 0 118px;
  background: var(--bg); color: var(--text);
}
.reel {
  position: absolute; inset: -14% -10% -14% 30%; z-index: 0;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  transform: rotate(-7deg); pointer-events: none;
}
.reel-row { display: flex; gap: 16px; width: max-content; }
.reel-row.r1 { animation: pan1 46s ease-in-out infinite alternate; }
.reel-row.r2 { animation: pan2 52s ease-in-out infinite alternate; margin-left: -180px; }
.reel-row.r3 { animation: pan1 58s ease-in-out infinite alternate; margin-left: -60px; }
@keyframes pan1 { from { transform: translateX(0); } to { transform: translateX(-220px); } }
@keyframes pan2 { from { transform: translateX(-200px); } to { transform: translateX(20px); } }
.rtile {
  position: relative; width: 330px; aspect-ratio: 832 / 480;
  border-radius: 16px; overflow: hidden;
  background: #0B0F14; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.58); flex: none;
}
.rtile img, .rtile video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block;
}
/* Still image beneath is always opacity:1; live video smoothly fades in on top */
.rtile video { opacity: 0; transition: opacity 0.8s; }
.rtile video.on { opacity: 1; }

.hero-shade {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(6, 8, 11, 0.97) 0%, rgba(6, 8, 11, 0.92) 34%, rgba(6, 8, 11, 0.55) 58%, rgba(6, 8, 11, 0.24) 78%, rgba(6, 8, 11, 0.55) 100%),
    linear-gradient(180deg, rgba(6, 8, 11, 0.6) 0%, transparent 22%, transparent 74%, var(--bg) 100%);
}
.hero.xh .wrap { position: relative; z-index: 2; width: 100%; }
.hero-in { max-width: 690px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; color: #A9B7C6;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px; padding: 6px 14px; margin: 0 0 22px;
  backdrop-filter: blur(6px);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: pulse 2.6s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(95, 211, 196, 0.6); }
  70%, 100% { box-shadow: 0 0 0 8px transparent; }
}

.hero.xh h1 {
  margin: 0 0 20px; color: #F6F9FC;
  font-size: clamp(38px, 5.1vw, 70px);
  font-weight: 850; letter-spacing: -0.045em; line-height: 1.02;
  max-width: 16ch;
}
.hero.xh h1 .grad {
  background: linear-gradient(100deg, #5FD3C4 5%, #7FB3F0 70%, #A9C9F7 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero.xh .lede {
  margin: 0 0 26px; font-size: clamp(17.5px, 1.8vw, 20.5px);
  line-height: 1.55; color: #B8C5D3; max-width: 50ch;
}
.authors {
  margin: 0 0 6px; font-size: 17px; font-weight: 620; color: #EEF3F8;
  display: flex; flex-wrap: wrap; gap: 4px 20px;
}
.authors a {
  color: #EEF3F8; text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat;
  transition: background-size 0.3s var(--ease);
}
.authors a:hover { background-size: 100% 2px; color: #FFFFFF; }
.authors sup, .affils sup { font-size: 0.62em; font-weight: 600; color: #8D9CAD; margin-left: 1px; }
.affils { margin: 0 0 26px; font-size: 15px; color: #8D9CAD; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 15px; font-weight: 650;
  border-radius: 11px; padding: 10px 17px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06); color: #EEF3F8;
  transition: transform 0.2s var(--ease), box-shadow 0.2s, border-color 0.2s, color 0.2s, background 0.2s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--accent-ink); box-shadow: var(--shadow-1); }
.btn-primary { background: #F3F7FB; color: #06080B; border-color: #F3F7FB; }
.btn-primary:hover { background: #FFFFFF; color: #06080B; border-color: #FFFFFF; }
.btn-soon { background: transparent; color: #7F8FA2; border-color: rgba(255, 255, 255, 0.15); border-style: dashed; cursor: default; }
.btn-soon:hover { transform: none; box-shadow: none; border-color: rgba(255, 255, 255, 0.15); color: #7F8FA2; }
.btn-soon .soon { font-weight: 500; font-size: 13px; opacity: 0.85; }

.cue {
  position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: #7F8FA2; text-decoration: none;
}
.cue:hover { color: var(--accent-ink); }
.cue i {
  width: 1px; height: 40px;
  background: linear-gradient(#7F8FA2, transparent);
  position: relative; overflow: hidden;
}
.cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%;
  background: #E6EDF5; animation: drip 2.2s ease-in-out infinite;
}
@keyframes drip { to { top: 100%; } }

/* ── Pure-Black Section Architecture ── */
section.band {
  position: relative;
  padding: clamp(52px, 5.5vw, 76px) 0;
  background: var(--bg);
  color: var(--text);
}
section.band--alt { background: var(--bg-alt); }
section.band + section.band { border-top: 1px solid var(--border); }
section.band--glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(900px 460px at 88% 4%, rgba(58, 123, 200, 0.11), transparent 70%),
    radial-gradient(760px 420px at 4% 32%, rgba(20, 143, 134, 0.09), transparent 70%);
}
section.band > .wrap { position: relative; z-index: 1; }

.sec-head { margin-bottom: 24px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 10px;
}
.kicker__n {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0; font-weight: 500; color: var(--muted);
}
.kicker::after { content: ""; width: 34px; height: 1px; background: currentColor; opacity: 0.45; }
.sec-head h2 {
  color: var(--heading); font-weight: 800; letter-spacing: -0.028em;
  font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; max-width: 30ch;
}
.sec-lede {
  margin-top: 10px; font-size: 15.5px; line-height: 1.6;
  color: var(--muted); max-width: 80ch;
}

/* ── 01 Video Split-Curtain Slider (Whitebox Sim ↔ PhysVideo) ── */
.curtain-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(0, 0.88fr);
  gap: clamp(16px, 2.2vw, 24px);
  align-items: stretch;
}
.vcurtain-wrap { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vcurtain-stage {
  position: relative;
  aspect-ratio: 832 / 480;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #040609;
  border: 1px solid rgba(95, 211, 196, 0.42);
  box-shadow: 0 0 0 1px rgba(95, 211, 196, 0.16), 0 18px 46px rgba(0, 0, 0, 0.56);
  user-select: none;
  touch-action: pan-y;
}
.vcurtain-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #040609;
  pointer-events: none;
}
.vcurtain-clip {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--split, 50%));
  will-change: clip-path;
  pointer-events: none;
}
.vcurtain-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--split, 50%);
  width: 2.5px;
  background: linear-gradient(180deg, rgba(127, 179, 240, 0.95), var(--accent), rgba(127, 179, 240, 0.95));
  box-shadow: 0 0 18px rgba(95, 211, 196, 0.72), 0 0 2px rgba(6, 8, 11, 0.95);
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 3;
}
.vcurtain-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(6, 8, 11, 0.92);
  border: 2px solid var(--accent);
  color: var(--accent-ink);
  display: grid;
  place-items: center;
  box-shadow: 0 0 0 4px rgba(95, 211, 196, 0.22), 0 8px 24px rgba(0, 0, 0, 0.65);
  transition: transform 0.16s var(--ease), box-shadow 0.16s, background 0.16s, color 0.16s;
}
.vcurtain-stage:hover .vcurtain-knob,
.vcurtain-stage.is-dragging .vcurtain-knob {
  transform: translate(-50%, -50%) scale(1.08);
  background: var(--accent);
  color: #06080B;
  box-shadow: 0 0 0 6px rgba(95, 211, 196, 0.3), 0 10px 28px rgba(0, 0, 0, 0.75);
}
.vcurtain-knob svg { width: 19px; height: 19px; }

.vcurtain-label {
  position: absolute;
  top: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 5px 11px;
  border-radius: 999px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  pointer-events: none;
  white-space: nowrap;
}
.vcurtain-label i { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.vcurtain-label--left {
  left: 12px;
  background: rgba(11, 16, 23, 0.84);
  color: #E3ECF5;
  border: 1px solid rgba(140, 165, 195, 0.45);
}
.vcurtain-label--left i { background: #8FA8C6; }
.vcurtain-label--right {
  right: 12px;
  background: rgba(9, 25, 26, 0.86);
  color: #DDFBF7;
  border: 1px solid rgba(95, 211, 196, 0.7);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.vcurtain-label--right i { background: var(--accent); }

.vcurtain-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: ew-resize;
  z-index: 5;
}
.vcurtain-range::-webkit-slider-runnable-track { background: transparent; border: 0; height: 100%; }
.vcurtain-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 44px;
  height: 100%;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.vcurtain-range::-moz-range-track { background: transparent; border: 0; height: 100%; }
.vcurtain-range::-moz-range-thumb { width: 44px; height: 100%; background: transparent; border: 0; }
.vcurtain-range:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.vcurtain-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.scrub-wrap { flex: 1; min-width: 140px; display: flex; align-items: center; }
.vcurtain-scrub {
  width: 100%;
  height: 6px;
  margin: 0;
  border-radius: 999px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) var(--prog, 0%), rgba(255, 255, 255, 0.10) var(--prog, 0%));
}
.vcurtain-scrub::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #F4F8FC;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}
.vcurtain-scrub::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #F4F8FC;
  border: 2px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.split-presets {
  display: inline-flex;
  gap: 3px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}
.split-presets button {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.16s, color 0.16s;
}
.split-presets button:hover { color: var(--heading); }
.split-presets button[aria-pressed="true"] { background: var(--accent); color: #06080B; }

.curtain-aside {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  min-width: 0;
}
.curtain-aside__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.curtain-tag {
  font-size: 11.5px;
  font-weight: 720;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--accent-wash);
  color: var(--accent-ink);
  border: 1px solid rgba(95, 211, 196, 0.38);
}
.curtain-meta {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--muted);
}
.curtain-aside h3 {
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 780;
  letter-spacing: -0.02em;
  line-height: 1.22;
  color: var(--heading);
}
.curtain-aside__note {
  font-size: 13.4px;
  line-height: 1.5;
  color: var(--text);
}
.curtain-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.curtain-fact {
  background: rgba(6, 8, 11, 0.56);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 10px;
}
.curtain-fact__k {
  font-size: 10.2px;
  font-weight: 680;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.curtain-fact__v {
  margin-top: 2px;
  font-size: 15.8px;
  font-weight: 780;
  color: var(--heading);
  font-variant-numeric: tabular-nums;
}
.curtain-fact__v span {
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  margin-left: 3px;
}
.curtain-aside__prompt {
  font-size: 12.1px;
  line-height: 1.46;
  color: var(--muted);
  padding: 8px 11px;
  border-radius: 10px;
  background: rgba(6, 8, 11, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.curtain-aside__prompt strong {
  color: var(--accent);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-right: 4px;
}
.curtain-aside__legend {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--muted);
}
.curtain-aside__legend span { display: inline-flex; align-items: center; gap: 6px; }
.curtain-aside__legend i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.sw-sim { background: #8FA8C6; }
.sw-ours { background: var(--accent); }

/* ── 02 Synchronized Cinema Stage ── */
.cinema-stage {
  background: rgba(15, 21, 28, 0.88);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(16px, 2.1vw, 24px);
  box-shadow: var(--shadow-2);
}
.stage-top {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 18px; flex-wrap: wrap;
  padding-bottom: 14px; margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.stage-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent);
}
.stage-kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.case-tabs { display: flex; flex-wrap: wrap; gap: 7px; }
.case-tabs button {
  font-family: inherit; font-size: 13px; font-weight: 620;
  padding: 6px 13px; border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03); color: #AEBBCA;
  cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.case-tabs button:hover { color: #FFFFFF; border-color: #3C4E63; }
.case-tabs button[aria-pressed="true"] {
  background: var(--heading); color: var(--bg); border-color: var(--heading);
}

.dual-stage { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.vid-panel { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.vid-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  font-size: 13.5px; font-weight: 640; color: var(--text);
}
.vid-panel__head .dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  margin-right: 7px; background: var(--t2v);
}
.vid-panel--ours .vid-panel__head { color: var(--heading); }
.vid-panel--ours .vid-panel__head .dot { background: var(--accent); }
.vid-badge {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; padding: 2px 8px; border-radius: 999px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--border);
  white-space: nowrap;
}
.vid-panel--ours .vid-badge {
  background: var(--accent-wash); color: var(--accent-ink);
  border-color: rgba(95, 211, 196, 0.4);
}
.clip {
  position: relative; aspect-ratio: 832 / 480; width: 100%;
  border-radius: 13px; overflow: hidden;
  background: #040609; border: 1px solid var(--border);
}
.vid-panel--ours .clip {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px rgba(95, 211, 196, 0.35), 0 12px 32px rgba(0, 0, 0, 0.45);
}
.clip video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: block; background: #040609;
}

.stage-controls {
  display: flex; align-items: center; gap: 10px;
  margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--border);
}
.ctrl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: inherit; font-size: 13px; font-weight: 640;
  padding: 6px 13px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.05); color: var(--heading);
  border: 1px solid var(--border-strong); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.ctrl-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.ctrl-btn svg { width: 13px; height: 13px; }
.tl-track { flex: 1; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.tl-fill {
  display: block; height: 100%; width: 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.tl-time {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; color: var(--muted); min-width: 72px; text-align: right;
  font-variant-numeric: tabular-nums;
}

.stage-specs {
  display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 12px 20px; align-items: center; margin-top: 14px;
  padding: 13px 16px; border-radius: 12px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.stage-prompt { font-size: 13.8px; line-height: 1.55; color: var(--text); }
.stage-prompt strong {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent); margin-right: 6px;
}
.spec-chips { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.spec-chip {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; padding: 4px 9px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); white-space: nowrap;
}
.spec-chip b { color: var(--accent-ink); font-weight: 600; }

/* ── Static Headline KPI Strip (Never Animated, Original v5 Bento Aesthetics) ── */
.kpi-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.kpi-card {
  position: relative; overflow: hidden;
  background: rgba(15, 21, 28, 0.86);
  border: 1px solid var(--border); border-radius: 18px;
  padding: 20px 22px 18px; box-shadow: var(--shadow-1);
}
.kpi-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.kpi-card__k {
  display: flex; align-items: center; gap: 7px;
  font-size: 11.8px; font-weight: 700; letter-spacing: 0.09em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 8px;
}
.kpi-card__k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.kpi-card__v {
  font-weight: 820; font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.08; letter-spacing: -0.035em; color: var(--heading);
  margin: 0 0 8px; font-variant-numeric: tabular-nums;
}
.kpi-card__v .em { color: var(--accent); }
.kpi-card__v .vs { font-size: 0.46em; font-weight: 620; color: var(--muted); margin: 0 5px; letter-spacing: 0; }
.kpi-card__v .lo { color: var(--t2v); }
.kpi-card__cap { font-size: 13.8px; line-height: 1.52; color: var(--muted); }

/* ── 02 Compact 40-Case Dark Video Explorer ── */
.explorer-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 18px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  font-family: inherit; font-size: 13.5px; font-weight: 620;
  color: #AEBBCA; background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 14px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 7px;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.fchip:hover { border-color: #3C4E63; color: #FFFFFF; }
.fchip .ct {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; color: #718397;
}
.fchip[aria-pressed="true"] { background: var(--heading); color: var(--bg); border-color: var(--heading); }
.fchip[aria-pressed="true"] .ct { color: #4A5B6E; }

.wall { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.case-card {
  position: relative; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; cursor: pointer; display: flex; flex-direction: column;
  transition: transform 0.25s var(--ease), border-color 0.2s, box-shadow 0.25s var(--ease);
}
.case-card:hover, .case-card:focus-visible {
  transform: translateY(-3px); border-color: rgba(95, 211, 196, 0.6);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(95, 211, 196, 0.22);
}
.case-card__thumbs { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #05070A; }
.thumb { position: relative; aspect-ratio: 832 / 480; overflow: hidden; background: #05070A; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb .t-lbl {
  position: absolute; left: 6px; top: 6px; font-size: 10px; font-weight: 720;
  letter-spacing: 0.03em; padding: 2px 7px; border-radius: 999px;
  background: rgba(6, 8, 11, 0.78); color: #E2EAF2;
}
.thumb--ours .t-lbl { background: rgba(20, 143, 134, 0.9); color: #FFFFFF; }
.case-card__body { padding: 10px 12px 11px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.case-card__meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.case-ev { font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; color: var(--accent); }
.case-open { font-size: 11.5px; font-weight: 600; color: var(--muted); }
.case-card:hover .case-open { color: var(--heading); }
.case-prompt {
  font-size: 12.5px; line-height: 1.45; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

.wall-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; margin-top: 16px;
  font-size: 13.5px; color: var(--muted);
}
.wall-btn {
  font-family: inherit; font-size: 13px; font-weight: 650;
  padding: 8px 15px; border-radius: 10px;
  background: rgba(255, 255, 255, 0.05); color: var(--heading);
  border: 1px solid var(--border-strong); cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.wall-btn:hover { border-color: var(--accent); color: var(--accent-ink); background: var(--accent-wash); }

/* ── 03 Abstract & Sealed Split Meter Box ── */
.abstract-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 24px 36px; align-items: start; }
.abstract-body { font-size: 16.2px; line-height: 1.72; color: var(--text); }
.meter-box {
  background: rgba(15, 21, 28, 0.88);
  border: 1px solid var(--border); border-radius: 18px;
  padding: 20px 22px; box-shadow: var(--shadow-1);
}
.meter-box h3 {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--heading); margin-bottom: 16px;
}
.meter { margin-bottom: 14px; }
.meter:last-of-type { margin-bottom: 0; }
.meter__row { display: flex; justify-content: space-between; gap: 10px; font-size: 13.8px; color: var(--text); margin-bottom: 6px; }
.meter__row b { color: var(--heading); font-variant-numeric: tabular-nums; }
.meter__track { height: 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; }
.meter__fill { height: 100%; border-radius: 6px; width: var(--pct, 0%); background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.meter--soft .meter__fill { background: linear-gradient(90deg, #4B93C9, var(--accent-2)); }
.meter--t2v .meter__fill { background: var(--t2v); }
.meter-foot { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--border); font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.meter-foot b { color: var(--heading); }

/* ── 04 Method 4-Step Cards ── */
.method-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.mstep {
  position: relative; overflow: hidden;
  background: rgba(15, 21, 28, 0.86);
  border: 1px solid var(--border); border-radius: 16px;
  padding: 18px 18px 16px; box-shadow: var(--shadow-1);
}
.mstep::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.mstep__n {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11.5px; font-weight: 600; color: var(--accent); margin-bottom: 6px;
}
.mstep h3 { font-weight: 740; font-size: 16.5px; letter-spacing: -0.012em; color: var(--heading); margin-bottom: 6px; }
.mstep p { font-size: 13.8px; line-height: 1.56; color: var(--muted); }

/* ── Paper Figure Plates Mounted on Pure Dark (Original v5 Pattern) ── */
.figgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.figgrid--6040 { grid-template-columns: minmax(0, 1.32fr) minmax(0, 0.88fr); }
.figgrid > *, .dual-stage > *, .abstract-grid > *, .stage-specs > * { min-width: 0; }

figure.plate {
  min-width: 0; max-width: 100%;
  background: transparent; border: 0; padding: 0; position: relative;
}
.fig-mount {
  position: relative;
  background: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px; padding: clamp(10px, 1.4vw, 16px);
  box-shadow: var(--shadow-2);
  transition: border-color 0.25s;
}
.fig-mount:hover { border-color: rgba(95, 211, 196, 0.5); }
.figscroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 6px; }
.figscroll img { width: 100%; min-width: 100%; height: auto; cursor: zoom-in; background: #FFFFFF; }
figure.plate figcaption {
  margin-top: 12px; font-size: 13.8px; line-height: 1.58; color: var(--muted);
}
figure.plate figcaption b { color: var(--heading); }
.fig-lbl {
  display: inline-block; font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.03em; color: var(--accent-ink);
  background: var(--accent-wash); border-radius: 6px;
  padding: 2px 8px; margin-right: 7px;
}
.zoom-btn {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 32px; height: 32px; border-radius: 9px;
  display: grid; place-items: center;
  background: rgba(6, 8, 11, 0.74); color: #F3F7FB;
  border: 1px solid rgba(255, 255, 255, 0.18); cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.zoom-btn:hover { background: var(--accent); color: #06080B; border-color: var(--accent); }
.zoom-btn svg { width: 15px; height: 15px; }
.swipe-hint { display: none; margin-top: 8px; font-size: 12.5px; color: var(--muted); }

/* ── 05 Native HTML 19-Row Main Results Table (Pure-Black Dark Glass) ── */
.table-card {
  min-width: 0; max-width: 100%;
  background: rgba(15, 21, 28, 0.9);
  border: 1px solid var(--border); border-radius: 20px;
  box-shadow: var(--shadow-2); overflow: hidden; margin-bottom: 26px;
}
.table-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 18px; flex-wrap: wrap;
  padding: 16px 20px; background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.table-head h3 { font-weight: 750; font-size: 17.5px; letter-spacing: -0.015em; color: var(--heading); }
.col-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.col-pills button {
  font-family: inherit; font-size: 12.5px; font-weight: 620;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03);
  color: #AEBBCA; cursor: pointer; transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.col-pills button:hover { color: #FFFFFF; border-color: #3C4E63; }
.col-pills button[aria-pressed="true"] { background: var(--heading); color: var(--bg); border-color: var(--heading); }

.table-sub {
  padding: 11px 20px; font-size: 13.2px; line-height: 1.55; color: var(--muted);
  border-bottom: 1px solid var(--border); background: rgba(11, 16, 23, 0.55);
}
.table-sub b { color: var(--heading); }
.table-sub .arr { color: var(--accent); font-weight: 700; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.ptab { width: 100%; border-collapse: collapse; font-size: 13.5px; font-variant-numeric: tabular-nums; }
table.ptab th, table.ptab td {
  padding: 9px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: right; white-space: nowrap; color: var(--text);
}
table.ptab th {
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em;
  color: var(--heading); background: var(--surface-2);
}
table.ptab tr.grp-row th {
  text-align: center; font-size: 11.2px; text-transform: uppercase;
  letter-spacing: 0.09em; color: var(--muted);
  background: #080C11; border-bottom: 1px solid var(--border);
}
table.ptab th.col-l, table.ptab td.col-l { text-align: left; }
table.ptab td.grp-cell {
  text-align: left; font-size: 11.2px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--muted); vertical-align: top;
  border-right: 1px solid var(--border); background: rgba(8, 12, 17, 0.5);
}
table.ptab tr.sec-div td { border-top: 1px solid var(--border-strong); }
table.ptab tr.is-ours td:not(.grp-cell) {
  background: rgba(95, 211, 196, 0.08); color: var(--heading); font-weight: 640;
}
table.ptab tbody tr:hover td:not(.grp-cell) { background: rgba(127, 179, 240, 0.09); }
table.ptab tr.is-ours:hover td:not(.grp-cell) { background: rgba(95, 211, 196, 0.14); }
table.ptab .na { color: var(--faint); }
table.ptab .gain {
  display: inline-block; margin-left: 5px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px; font-weight: 600; color: var(--accent); vertical-align: 1px;
}
table.ptab .gain--grey { color: #7C8FA4; }
table.ptab .ours-tag {
  display: inline-block; margin-left: 7px; padding: 1px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 750; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--accent); color: #06080B; vertical-align: 1px;
}
table.ptab .best-cell { font-weight: 800; color: var(--accent-ink); }

table.ptab[data-hi="indep"] .c-indep,
table.ptab[data-hi="verified"] .c-verified,
table.ptab[data-hi="test"] .c-test,
table.ptab[data-hi="unseen"] .c-unseen,
table.ptab[data-hi="hard"] .c-hard,
table.ptab[data-hi="unmeas"] .c-unmeas,
table.ptab[data-hi="calls"] .c-calls { background-color: rgba(95, 211, 196, 0.15); }
table.ptab[data-hi="indep"] th.c-indep,
table.ptab[data-hi="verified"] th.c-verified,
table.ptab[data-hi="test"] th.c-test,
table.ptab[data-hi="unseen"] th.c-unseen,
table.ptab[data-hi="hard"] th.c-hard,
table.ptab[data-hi="unmeas"] th.c-unmeas,
table.ptab[data-hi="calls"] th.c-calls { background-color: rgba(95, 211, 196, 0.22); color: var(--accent-ink); }

/* ── 06 Segmented Tabs (Qualitative Figures) ── */
.tabbar {
  display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px;
  border-radius: 12px; background: var(--surface-2);
  border: 1px solid var(--border); margin-bottom: 20px;
}
.tabbar button {
  font-family: inherit; font-size: 13.8px; font-weight: 620;
  color: var(--muted); background: transparent; border: 0;
  padding: 8px 15px; border-radius: 9px; cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.tabbar button:hover { color: var(--heading); }
.tabbar button[aria-selected="true"] {
  color: var(--heading); background: var(--surface-hi);
  box-shadow: var(--shadow-1);
}
.tabpanel[hidden] { display: none; }

/* ── 07 BibTeX & Footer ── */
.codebox { position: relative; }
.codebox pre {
  margin: 0; background: var(--code-bg); color: var(--code-fg);
  border: 1px solid var(--border); border-left: 3px solid var(--accent);
  border-radius: 14px; padding: 20px 22px; overflow-x: auto;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; line-height: 1.7; box-shadow: var(--shadow-1);
}
.copy-btn {
  position: absolute; top: 12px; right: 12px;
  font-family: inherit; font-size: 12.8px; font-weight: 620;
  padding: 6px 12px; border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08); color: #D3E0EC; cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.16); color: #FFFFFF; }
.copy-btn.copied { background: var(--accent); color: #06080B; border-color: var(--accent); }
.cite-note { margin-top: 12px; font-size: 14px; color: var(--muted); }

footer {
  background: var(--bg); color: var(--muted);
  border-top: 1px solid var(--border);
  padding: 34px 0 46px; font-size: 14px;
}
.foot-in { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }
footer a { color: var(--text); text-decoration-color: rgba(201, 214, 226, 0.35); }
footer a:hover { color: var(--accent-ink); }

/* ── Back to Top & Dark Modals ── */
.totop {
  position: fixed; right: 20px; bottom: 20px; z-index: 45;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--surface); color: var(--heading);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-2);
  text-decoration: none; opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ease), border-color 0.2s, color 0.2s;
}
.totop.show { opacity: 1; transform: none; pointer-events: auto; }
.totop:hover { border-color: var(--accent); color: var(--accent-ink); }
.totop svg { width: 18px; height: 18px; }

dialog.lb {
  width: min(96vw, 1660px); max-width: none; max-height: 94vh;
  padding: 0; border: 1px solid var(--border-strong); border-radius: 18px;
  background: var(--surface); color: var(--text);
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.72); overflow: hidden;
}
dialog.lb::backdrop { background: rgba(3, 5, 8, 0.84); backdrop-filter: blur(6px); }
.lb-body { max-height: 94vh; overflow: auto; padding: 18px; }
.lb-body img { display: block; width: 100%; height: auto; background: #FFFFFF; border-radius: 10px; }
.lb-cap { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.lb-close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: rgba(15, 21, 28, 0.92);
  color: var(--heading); font-size: 22px; line-height: 1; cursor: pointer;
}
.lb-close:hover { border-color: var(--accent); color: var(--accent-ink); }

dialog.cbox {
  width: min(96vw, 1380px); max-width: none; max-height: 94vh;
  padding: 0; border: 1px solid var(--border-strong); border-radius: 20px;
  background: var(--bg-alt); color: var(--text);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.75); overflow: hidden;
}
dialog.cbox::backdrop { background: rgba(3, 5, 8, 0.85); backdrop-filter: blur(8px); }
.cb-head {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px; border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.cb-ev {
  font-size: 12.5px; font-weight: 720; padding: 3px 11px; border-radius: 999px;
  background: var(--accent); color: #06080B;
}
.cb-cnt {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px; color: var(--muted);
}
.cb-sp { flex: 1; }
.cb-btn {
  width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04);
  color: var(--heading); cursor: pointer; font-size: 19px;
}
.cb-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.cb-btn svg { width: 16px; height: 16px; }
.cb-body { padding: 18px; overflow: auto; max-height: calc(94vh - 64px); }
.cb-prompt {
  margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: var(--text);
  padding: 12px 15px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
}

/* ── Responsive Breakpoints (Tablet & Mobile 390px) ── */
@media (max-width: 1060px) {
  .curtain-grid { grid-template-columns: 1fr; }
  .abstract-grid, .figgrid, .figgrid--6040 { grid-template-columns: 1fr; }
  .method-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wall { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stage-specs { grid-template-columns: 1fr; }
  .spec-chips { justify-content: flex-start; }
  .kpi-strip { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .reel { inset: auto -40% -8% -20%; height: 58%; transform: rotate(-7deg); opacity: 0.45; }
  .hero-shade {
    background: linear-gradient(180deg, rgba(6, 8, 11, 0.94) 0%, rgba(6, 8, 11, 0.86) 55%, rgba(6, 8, 11, 0.5) 80%, var(--bg) 100%);
  }
  .dual-stage { grid-template-columns: 1fr; }
  .figscroll img { min-width: 640px; }
  .swipe-hint { display: block; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .topbar__in { height: 54px; gap: 10px; }
  .brand__txt { display: none; }
  .topnav {
    overflow-x: auto; scrollbar-width: none; max-width: 100%;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent);
    mask-image: linear-gradient(90deg, #000 88%, transparent);
  }
  .topnav::-webkit-scrollbar { display: none; }
  .topnav a { font-size: 13px; padding: 5px 8px; }
  .hero.xh { padding: 108px 0 84px; min-height: auto; margin-top: -55px; }
  .hero.xh h1 { font-size: clamp(32px, 8.8vw, 44px); max-width: none; }
  .rtile { width: 220px; border-radius: 12px; }
  .cue { display: none; }
  .method-steps { grid-template-columns: 1fr; }
  .wall { grid-template-columns: 1fr; }
  .vcurtain-label { font-size: 9.8px; padding: 3.5px 7.5px; top: 8px; gap: 5px; }
  .vcurtain-lbl-ext { display: none; }
  .vcurtain-label--left { left: 8px; }
  .vcurtain-label--right { right: 8px; }
  .vcurtain-knob { width: 34px; height: 34px; }
  .vcurtain-knob svg { width: 15px; height: 15px; }
  .split-presets { display: none; }
  .zoom-btn { display: none; }
  table.ptab th, table.ptab td { padding: 7px 8px; font-size: 12.2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
