/* ==========================================================================
   DiffusionPOND — Augen Frosted Two-Tone Academic Project Page (v3)
   - Widescreen Cinema Hero Showcase (14B 720p + 33B AV + 1.3B live video wall)
   - Augen Frosted Glass Floating Left Sidebar (fades in cleanly below Hero wall)
   - Strict Inter typographic scale (62px -> 36px -> 20px -> 17px -> 14px)
   - Zero pill-tag soup, zero uppercase mono kickers, crisp 0.5px hairlines
   - Symmetric centered 860px academic reading column with generous right whitespace
   ========================================================================== */

@font-face {
  font-family: "CMU Serif";
  src: url("assets/fonts/cmunrm.woff") format("woff");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  src: url("assets/fonts/cmunti.woff") format("woff");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "CMU Serif";
  src: url("assets/fonts/cmunbx.woff") format("woff");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Augen Two-Tone Studio Palette */
  --bg-hero: #faf9f5;
  --bg-white: #ffffff;
  --bg-light: #f3f3f1;
  --bg-dark: #0f1012;
  --bg-dark-elev: #15161a;
  --bg-cinema: #090a0c;

  /* Ink Contrast Scale */
  --ink: #111214;
  --ink-body: rgba(17, 18, 20, 0.80);
  --ink-muted: rgba(17, 18, 20, 0.54);
  --ink-faint: rgba(17, 18, 20, 0.36);

  --ink-light: #f3f4f6;
  --ink-light-body: rgba(243, 244, 246, 0.78);
  --ink-light-muted: rgba(243, 244, 246, 0.50);
  --ink-light-faint: rgba(243, 244, 246, 0.32);

  /* Scientific Cobalt Accent */
  --cobalt: #0071e3;
  --cobalt-light: #6eb8ff;
  --cobalt-tint: rgba(0, 113, 227, 0.08);
  --pos: #157347;
  --neg: #c9302c;

  /* Architectural Hairlines */
  --rule: rgba(17, 18, 20, 0.14);
  --rule-soft: rgba(17, 18, 20, 0.08);
  --rule-dark: rgba(255, 255, 255, 0.15);
  --rule-dark-soft: rgba(255, 255, 255, 0.08);

  /* Unified Dynamics Card System */
  --card-bg: #ffffff;
  --card-border: rgba(17, 18, 20, 0.11);
  --card-header-bg: linear-gradient(180deg, #f3f2ed 0%, #eae8e1 100%);
  --card-header-border: rgba(17, 18, 20, 0.09);
  --card-header-inset: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --card-recessed: #f2f1ec;
  --card-shadow:
    0 1px 2px rgba(17, 18, 20, 0.04),
    0 18px 46px -14px rgba(17, 18, 20, 0.10),
    0 4px 12px -4px rgba(17, 18, 20, 0.04);
  --card-shadow-sm:
    0 1px 2px rgba(17, 18, 20, 0.04),
    0 12px 28px -12px rgba(17, 18, 20, 0.085),
    0 3px 8px -3px rgba(17, 18, 20, 0.04);

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-math: "CMU Serif", "STIX Two Math", "Times New Roman", serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Balanced 3-Zone Editorial Grid */
  --margin-x: clamp(20px, 3vw, 44px);
  --gutter: clamp(24px, 2.8vw, 44px);
  --rail-w: 196px;
  --content-max: 860px;
  --max-w: 1440px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.0625rem; /* 17px base prose */
  line-height: 1.68;
  color: var(--ink);
  background: var(--bg-hero);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

:focus-visible {
  outline: 1.5px solid var(--cobalt);
  outline-offset: 3px;
}

img,
video,
svg,
canvas {
  display: block;
  max-width: 100%;
}

/* ==========================================================================
   Zero-Dependency Computer Modern Math
   ========================================================================== */
.math {
  font-family: var(--font-math);
  font-size: 1.05em;
  white-space: nowrap;
}

.math i,
.math .it,
.math-display i,
.math-display .it {
  font-style: italic;
}

.math .vec,
.math-display .vec {
  font-weight: 700;
  font-style: normal;
}

.math .op,
.math-display .op {
  font-style: normal;
  font-weight: 400;
}

.math .gr,
.math-display .gr {
  font-family: "Times New Roman", "STIX Two Math", Georgia, serif;
  font-style: italic;
}

.math .ov,
.math-display .ov {
  position: relative;
  display: inline-block;
  line-height: 1;
}

.math .ov::before,
.math-display .ov::before {
  content: "";
  position: absolute;
  left: 0.04em;
  right: 0.04em;
  top: -0.05em;
  border-top: 1px solid currentColor;
}

.math sub .ov::before,
.math-display sub .ov::before {
  top: -0.1em;
  border-top-width: 0.85px;
}

.math sub,
.math sup,
.math-display sub,
.math-display sup {
  font-size: 0.72em;
  line-height: 0;
}

.math-display {
  font-family: var(--font-math);
  font-size: 1.06rem;
  line-height: 1.82;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
}

.math-display .math-line {
  white-space: nowrap;
}

.math .frac,
.math-display .frac {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  vertical-align: middle;
  margin: 0 0.18em;
  font-size: 0.88em;
  line-height: 1.15;
}

.math .frac > span:first-child,
.math-display .frac > span:first-child {
  border-bottom: 1px solid currentColor;
  padding: 0 0.2em 0.08em;
}

.math .frac > span:last-child,
.math-display .frac > span:last-child {
  padding: 0.08em 0.2em 0;
}

/* ==========================================================================
   Top Minimal Header Bar (Inline at y=0, zero sticky clutter)
   ========================================================================== */
.top-header {
  width: 100%;
  background: var(--bg-hero);
  border-bottom: 0.5px solid var(--rule-soft);
}

.top-header__inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 15px var(--margin-x);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.top-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-logo {
  display: block;
  height: 23px;
  width: auto;
  flex: none;
  object-fit: contain;
  user-select: none;
}

.brand-logo--sm {
  height: 17px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.top-nav a {
  font-size: 0.86rem;
  color: var(--ink-muted);
  transition: color 0.18s ease;
}

.top-nav a:hover {
  color: var(--ink);
}

/* ==========================================================================
   Frosted Glass Floating Left Sidebar (Desktop >= 1180px)
   Smoothly appears ONLY after scrolling past the full-bleed Hero Cinema Wall
   ========================================================================== */
.side-nav {
  position: fixed;
  top: 50%;
  left: max(18px, calc((100vw - var(--max-w)) / 2 + 18px));
  width: 192px;
  z-index: 90;
  border-radius: 13px;
  padding: 14px 12px 12px;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  pointer-events: none;
  transform: translate(-10px, -50%);
  transition:
    opacity 0.28s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.side-nav.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(0, -50%);
}

.side-nav[data-theme="light"] {
  background: rgba(255, 255, 255, 0.86);
  color: var(--ink);
  border: 0.6px solid var(--card-border);
  box-shadow: var(--card-shadow-sm);
}

.side-nav[data-theme="dark"] {
  background: rgba(22, 23, 28, 0.84);
  color: var(--ink-light);
  border: 0.6px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.36);
}

.side-nav__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 0 2px 9px;
  margin-bottom: 9px;
  border-bottom: 0.5px solid rgba(17, 18, 20, 0.09);
}

.side-nav[data-theme="dark"] .side-nav__head {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.side-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 560;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.side-nav__brand svg {
  width: 12px;
  height: 12px;
  flex: none;
}

.side-nav__pct {
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.48;
  flex: none;
}

.side-nav__bar {
  width: 100%;
  height: 2px;
  background: rgba(17, 18, 20, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 9px;
}

.side-nav[data-theme="dark"] .side-nav__bar {
  background: rgba(255, 255, 255, 0.12);
}

.side-nav__bar-fill {
  height: 100%;
  width: 0%;
  background: var(--cobalt);
  transition: width 0.08s linear;
}

.side-nav[data-theme="dark"] .side-nav__bar-fill {
  background: var(--cobalt-light);
}

.side-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.side-nav__link {
  display: block;
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 0.81rem;
  font-weight: 420;
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
  opacity: 0.62;
  transition: opacity 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.side-nav__link:hover {
  opacity: 1;
  background: rgba(17, 18, 20, 0.045);
}

.side-nav[data-theme="dark"] .side-nav__link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.side-nav__link.is-active {
  opacity: 1;
  font-weight: 550;
  background: rgba(0, 113, 227, 0.09);
  color: var(--cobalt);
}

.side-nav[data-theme="dark"] .side-nav__link.is-active {
  background: rgba(0, 113, 227, 0.24);
  color: var(--cobalt-light);
}

.side-nav__sublist {
  list-style: none;
  margin: 2px 0 4px 10px;
  padding-left: 10px;
  border-left: 0.5px solid rgba(17, 18, 20, 0.14);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.side-nav[data-theme="dark"] .side-nav__sublist {
  border-left-color: rgba(255, 255, 255, 0.16);
}

.side-nav__sublink {
  display: block;
  padding: 4px 6px;
  font-size: 0.78rem;
  opacity: 0.50;
  line-height: 1.3;
  transition: opacity 0.18s ease, color 0.18s ease;
}

.side-nav__sublink:hover {
  opacity: 1;
}

.side-nav__sublink.is-active {
  opacity: 1;
  font-weight: 500;
  color: var(--cobalt);
}

.side-nav[data-theme="dark"] .side-nav__sublink.is-active {
  color: var(--cobalt-light);
}

/* Mobile / Tablet Floating Top Capsule (< 1180px only) */
.mobile-nav-wrap {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 100;
  display: none;
  justify-content: center;
  padding: 0 12px;
  pointer-events: none;
}

.mobile-nav {
  pointer-events: auto;
  height: 38px;
  max-width: 100%;
  padding: 0 14px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  scrollbar-width: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.mobile-nav::-webkit-scrollbar {
  display: none;
}

.mobile-nav-wrap[data-theme="light"] .mobile-nav {
  background: rgba(250, 249, 245, 0.90);
  color: var(--ink);
  border: 0.5px solid rgba(17, 18, 20, 0.14);
}

.mobile-nav-wrap[data-theme="dark"] .mobile-nav {
  background: rgba(20, 21, 25, 0.88);
  color: var(--ink-light);
  border: 0.5px solid rgba(255, 255, 255, 0.16);
}

.mobile-nav__link {
  font-size: 0.82rem;
  white-space: nowrap;
  opacity: 0.58;
}

.mobile-nav__link.is-active {
  opacity: 1;
  font-weight: 500;
  color: var(--cobalt);
}

.mobile-nav-wrap[data-theme="dark"] .mobile-nav__link.is-active {
  color: var(--cobalt-light);
}

/* ==========================================================================
   Editorial Grid & Bands
   ========================================================================== */
.band {
  position: relative;
  width: 100%;
  padding: clamp(60px, 6vw, 92px) 0;
}

.band--hero {
  background: var(--bg-hero);
  color: var(--ink);
  padding: clamp(36px, 3.8vw, 56px) 0 clamp(56px, 5.2vw, 76px);
}

.band--white {
  background: var(--bg-white);
  color: var(--ink);
  border-top: 0.5px solid var(--rule-soft);
}

.band--ivory {
  background: var(--bg-hero);
  color: var(--ink);
  border-top: 0.5px solid var(--rule-soft);
}

.band--light {
  background: var(--bg-light);
  color: var(--ink);
  border-top: 0.5px solid var(--rule-soft);
}

.band--dark {
  background: var(--bg-dark);
  color: var(--ink-light);
}

.swiss-grid {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--margin-x);
  display: grid;
  grid-template-columns: minmax(var(--rail-w), 1fr) minmax(0, var(--content-max)) minmax(100px, 1fr);
  column-gap: var(--gutter);
  align-items: start;
}

.col-main {
  grid-column: 2 / 3;
  min-width: 0;
}

/* ==========================================================================
   Disciplined Typographic Hierarchy (Single Family: Inter)
   ========================================================================== */
.eyebrow {
  margin: 0 0 10px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
}

.band--dark .eyebrow {
  color: var(--ink-light-muted);
}

.eyebrow__num {
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}

.band--dark .eyebrow__num {
  color: var(--cobalt-light);
}

.h1 {
  margin: 0;
  font-size: clamp(2.15rem, 4.6vw, 3.9rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
}

.hero-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: clamp(10px, 1.35vw, 18px);
  max-width: 100%;
}

.hero-mascot {
  display: block;
  flex: 0 0 auto;
  height: clamp(50px, 5.8vw, 78px);
  width: auto;
  transform: translateY(-3px);
  filter: drop-shadow(0 5px 10px rgba(17, 18, 20, 0.085));
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  user-select: none;
}

.hero-mascot:hover {
  transform: translateY(-6px) rotate(-1.6deg);
}

.h1-sub {
  margin: 14px auto 0;
  font-size: clamp(1.18rem, 1.88vw, 1.68rem);
  font-weight: 350;
  letter-spacing: -0.022em;
  line-height: 1.34;
  color: var(--ink-body);
  max-width: 1140px;
}

.h2 {
  margin: 0;
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.16;
}

.h2-accent {
  color: var(--cobalt);
  font-weight: 500;
}

.h3 {
  margin: 0;
  font-size: clamp(1.16rem, 1.35vw, 1.3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.prose {
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.72;
  color: var(--ink-body);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.band--dark .prose {
  color: var(--ink-light-body);
}

.prose strong {
  color: var(--ink);
  font-weight: 500;
}

.band--dark .prose strong {
  color: var(--ink-light);
}

.caption {
  margin: 0;
  font-size: 0.9rem; /* 14.4px */
  line-height: 1.6;
  color: var(--ink-muted);
}

.band--dark .caption {
  color: var(--ink-light-muted);
}

.caption strong {
  color: var(--ink);
  font-weight: 500;
}

.band--dark .caption strong {
  color: var(--ink-light);
}

/* Clean Minimal Bullet List (Bold Lead-in + Subtle Dash) */
.clean-bullets {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.clean-bullets li {
  position: relative;
  padding-left: 20px;
  font-size: 0.99rem;
  line-height: 1.66;
  color: var(--ink-body);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.band--dark .clean-bullets li {
  color: var(--ink-light-body);
}

.clean-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 1.5px;
  background: var(--cobalt);
}

.band--dark .clean-bullets li::before {
  background: var(--cobalt-light);
}

.clean-bullets strong {
  color: var(--ink);
  font-weight: 500;
}

.band--dark .clean-bullets strong {
  color: var(--ink-light);
}

/* ==========================================================================
   HERO HEADER + FULL-BLEED WIDESCREEN CINEMA SHOWCASE WALL
   ========================================================================== */
.hero-head {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 var(--margin-x);
  text-align: center;
}

.hero-authors {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 16px;
  font-size: 0.94rem;
  color: var(--ink);
}

.hero-authors sup,
.hero-affils sup {
  font-size: 0.68em;
  color: var(--cobalt);
  margin-left: 1px;
}

.hero-affils {
  margin-top: 6px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: 0.875rem;
  color: var(--ink-muted);
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 17px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
}

.btn--cobalt {
  background: var(--cobalt);
  color: #ffffff;
}

.btn--cobalt:hover {
  background: #005ec0;
}

.btn--outline {
  border: 0.75px solid rgba(17, 18, 20, 0.22);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
}

.btn--outline:hover {
  border-color: var(--ink);
  background: #ffffff;
}

.btn--soft {
  border: 0.75px solid rgba(17, 18, 20, 0.12);
  color: var(--ink-muted);
  font-weight: 400;
}

.btn--soft:hover {
  color: var(--ink);
  border-color: rgba(17, 18, 20, 0.30);
}

.btn--resource {
  padding: 7.5px 15px 7.5px 12px;
  gap: 7px;
  font-size: 0.855rem;
  font-weight: 500;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f7f6f2 100%);
  border: 0.65px solid rgba(17, 18, 20, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 1px 2.5px rgba(17, 18, 20, 0.06);
  transition: transform 0.16s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.btn--resource:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  border-color: rgba(17, 18, 20, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 4px 12px -3px rgba(17, 18, 20, 0.12);
}

.btn--resource:active {
  transform: translateY(0) scale(0.98);
}

.btn__ico {
  width: 16px;
  height: 16px;
  flex: none;
  display: block;
  object-fit: contain;
}

.btn__ico--hf {
  width: 18px;
  height: 17px;
}

/* FULL-BLEED WIDESCREEN CINEMA VIDEO SHOWCASE BAND */
.cinema-wall {
  margin-top: clamp(28px, 3vw, 42px);
  width: 100%;
  min-height: clamp(460px, 58vh, 780px);
  display: flex;
  align-items: center;
  background: var(--bg-cinema);
  border-top: 0.5px solid rgba(17, 18, 20, 0.14);
  border-bottom: 0.5px solid rgba(17, 18, 20, 0.14);
  padding: clamp(38px, 5.2vh, 84px) 0 clamp(34px, 4.8vh, 76px);
  color: var(--ink-light);
}

.cinema-wall__inner {
  width: 100%;
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 var(--margin-x);
}

.cinema-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.36fr) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
}

/* Left Main 16:9 Cinema Feature Stage (Default: 3:33 PR Film; Click right tile for Split Compare) */
.cinema-main {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: #0b0c0e;
  aspect-ratio: 16 / 9;
  border: 0.6px solid rgba(255, 255, 255, 0.14);
  user-select: none;
  touch-action: pan-y;
}

.cinema-main.is-comparing {
  cursor: ew-resize;
}

.cinema-promo-stage,
.cinema-clip-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.cinema-main.is-promo-mode .cinema-clip-stage {
  display: none;
}

.cinema-main:not(.is-promo-mode) .cinema-promo-stage {
  display: none;
}

.cinema-promo-stage {
  background: #faf9f5;
}

.cinema-promo-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #faf9f5;
}

.cinema-promo-cover {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  padding: 16px 18px;
  cursor: pointer;
  transition: opacity 0.22s ease;
}

.cinema-promo-stage.is-started .cinema-promo-cover {
  opacity: 0;
  pointer-events: none;
}

.cinema-promo-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6.5px 14px 6.5px 8px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #ffffff;
  background: rgba(15, 16, 18, 0.86);
  border: 0.6px solid rgba(255, 255, 255, 0.20);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 6px 18px rgba(15, 16, 18, 0.22);
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease, box-shadow 0.18s ease;
}

.cinema-promo-cta__icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--cobalt);
  color: #ffffff;
  padding-left: 1.5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.cinema-promo-cover:hover .cinema-promo-cta {
  transform: translateY(-1.5px);
  background: rgba(15, 16, 18, 0.95);
  box-shadow: 0 10px 24px rgba(15, 16, 18, 0.28);
}

.cinema-clip-stage video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.cinema-overlay-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cinema-back-btn {
  background: rgba(15, 16, 18, 0.68);
  border-color: rgba(255, 255, 255, 0.28);
}

.cinema-main__after {
  clip-path: inset(0 0 0 0%);
  transition: clip-path 0.2s ease;
}

.cinema-main.is-comparing .cinema-main__after {
  transition: none;
}

.cinema-gradient {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  background: linear-gradient(to top, rgba(9, 10, 12, 0.86) 0%, rgba(9, 10, 12, 0.32) 55%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.cinema-caption-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 14px;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
}

.cinema-caption-overlay__title {
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: #ffffff;
  line-height: 1.25;
}

.cinema-caption-overlay__sub {
  margin-top: 2px;
  font-size: 0.84rem;
  color: rgba(243, 244, 246, 0.78);
}

.cinema-compare-toggle {
  flex-shrink: 0;
  padding: 6px 13px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  border: 0.5px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(12px);
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.cinema-compare-toggle:hover {
  background: rgba(255, 255, 255, 0.24);
}

.cinema-compare-toggle.is-active {
  background: var(--cobalt);
  border-color: var(--cobalt);
}

/* Split compare divider (shown only when user enables Split vs Baseline) */
.split-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1.5px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.6);
  pointer-events: none;
  z-index: 4;
  display: none;
}

.cinema-main.is-comparing .split-divider {
  display: block;
}

.split-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(15, 16, 18, 0.86);
  border: 1.5px solid #ffffff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}

.split-edge-label {
  position: absolute;
  top: 14px;
  z-index: 4;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  backdrop-filter: blur(12px);
  pointer-events: none;
  display: none;
}

.cinema-main.is-comparing .split-edge-label {
  display: inline-block;
}

.split-edge-label--before {
  left: 14px;
  background: rgba(15, 16, 18, 0.76);
  color: #ffffff;
}

.split-edge-label--after {
  right: 14px;
  background: rgba(0, 113, 227, 0.92);
  color: #ffffff;
}

/* Right Dual-Column Infinite Auto-Scrolling Rollout Feed (Height-locked to Left 16:9 Stage) */
.cinema-feed {
  position: relative;
  min-height: 0;
}

.cinema-feed__shell {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #090a0c;
}

.cinema-feed__cols {
  height: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cinema-feed__col {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 7px;
  background: #17191e;
  border: 0.75px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.45);
}

.cinema-feed__track {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 0 18px;
  --sprocket-pitch: 20px;
  will-change: transform;
}

/* 35mm Cinema Sprocket Perforations (warm backlit lightbox punch-through, 1:1 synced with frames) */
.cinema-feed__track::before,
.cinema-feed__track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 10px;
  pointer-events: none;
  z-index: 2;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='20' viewBox='0 0 10 20'%3E%3Crect x='1' y='4.5' width='8' height='11' rx='2' fill='rgba(246,243,235,0.72)' stroke='rgba(0,0,0,0.45)' stroke-width='0.8'/%3E%3C/svg%3E");
  background-repeat: repeat-y;
  background-size: 10px var(--sprocket-pitch);
  background-position: 0 0;
}

.cinema-feed__track::before {
  left: 4px;
}

.cinema-feed__track::after {
  right: 4px;
}

.cinema-feed__fade-top,
.cinema-feed__fade-bot {
  position: absolute;
  left: 0;
  right: 0;
  height: 32px;
  pointer-events: none;
  z-index: 3;
}

.cinema-feed__fade-top {
  top: 0;
  background: linear-gradient(to bottom, rgba(9, 10, 12, 0.90) 0%, rgba(9, 10, 12, 0.28) 55%, transparent 100%);
}

.cinema-feed__fade-bot {
  bottom: 0;
  background: linear-gradient(to top, rgba(9, 10, 12, 0.92) 0%, rgba(9, 10, 12, 0.30) 55%, transparent 100%);
}

.mosaic-tile {
  position: relative;
  flex: none;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  overflow: hidden;
  background: #07080a;
  border: 0.6px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.mosaic-tile:hover {
  border-color: rgba(255, 255, 255, 0.46);
}

.mosaic-tile.is-active {
  border-color: var(--cobalt-light);
  box-shadow: inset 0 0 0 1px var(--cobalt-light), 0 0 0 1px rgba(110, 184, 255, 0.24);
}

.mosaic-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mosaic-tile__grad {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44%;
  background: linear-gradient(to top, rgba(9, 10, 12, 0.86) 0%, rgba(9, 10, 12, 0.22) 60%, transparent 100%);
  pointer-events: none;
}

.mosaic-tile__info {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  z-index: 2;
}

.mosaic-tile__title {
  display: block;
  font-size: 0.81rem;
  font-weight: 500;
  color: #ffffff;
  line-height: 1.24;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Cinema Bar Footer */
.cinema-foot {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--ink-light-muted);
}

.cinema-foot__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.cinema-link {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--cobalt-light);
}

.cinema-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Headline Metrics + Abstract (Below Cinema Wall, inside centered 860px grid) */
.hero-summary {
  padding-top: clamp(44px, 4.4vw, 64px);
}

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 40px;
  border-bottom: 0.5px solid var(--rule);
}

.metric-col {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.metric-col__tick {
  width: 16px;
  height: 1.5px;
  background: var(--cobalt);
  margin-bottom: 4px;
}

.metric-col__num {
  font-size: clamp(1.8rem, 2.4vw, 2.2rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.metric-col__label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
}

.metric-col__note {
  font-size: 0.82rem;
  line-height: 1.48;
  color: var(--ink-muted);
}

.abstract-block {
  margin-top: 0;
}

.abstract-head {
  margin-bottom: 22px;
}

.abstract-lead {
  margin: 0;
  font-size: clamp(1.48rem, 2.25vw, 1.94rem);
  font-weight: 450;
  letter-spacing: -0.028em;
  line-height: 1.24;
  color: var(--ink);
  max-width: 780px;
}

.abstract-lead__accent {
  color: var(--cobalt);
  font-weight: 500;
}

.abstract-no-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.abstract-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  line-height: 1.2;
}

.abstract-chip--no {
  background: rgba(17, 18, 20, 0.035);
  border: 0.6px solid rgba(17, 18, 20, 0.10);
  color: var(--ink-muted);
}

.abstract-chip--no::before {
  content: "×";
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(201, 48, 44, 0.78);
  line-height: 1;
}

.abstract-chip--yes {
  background: rgba(0, 113, 227, 0.08);
  border: 0.6px solid rgba(0, 113, 227, 0.24);
  color: var(--cobalt);
}

.abstract-chip--yes::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cobalt);
}

/* Interactive Push-Pull Co-Evolution Glance Card (Aligned to Dynamics Card System) */
.pond-glance {
  margin: 22px 0 26px;
  background: var(--card-bg);
  border: 0.6px solid var(--card-border);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.pond-glance__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 20px;
  background: var(--card-header-bg);
  border-bottom: 0.5px solid var(--card-header-border);
  box-shadow: var(--card-header-inset);
}

.pond-glance__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.79rem;
  font-weight: 500;
  color: #5b6068;
}

.pond-glance__eyebrow svg {
  color: var(--cobalt);
  flex-shrink: 0;
}

.pond-glance__eq-pill {
  display: inline-flex;
  align-items: center;
  padding: 3.5px 11px;
  border-radius: 7.5px;
  background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%);
  border: 0.5px solid rgba(17, 18, 20, 0.10);
  box-shadow:
    0 1px 2.5px rgba(17, 18, 20, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.84rem;
}

.pond-glance__flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 74px minmax(0, 1.08fr) 74px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  padding: 20px 20px 18px;
}

.glance-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  padding: 13px 10px 12px;
  border-radius: 10px;
  border: 0.6px solid rgba(17, 18, 20, 0.09);
  background: var(--card-recessed);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.glance-node__tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.005em;
}

.glance-node__sym {
  font-size: 1.48rem;
  line-height: 1.15;
  margin: 2px 0;
  color: var(--ink);
}

.glance-node__sub {
  font-size: 0.76rem;
  color: var(--ink-muted);
}

.glance-node--neg {
  background: rgba(201, 48, 44, 0.038);
  border-color: rgba(201, 48, 44, 0.22);
}
.glance-node--neg .glance-node__sym { color: var(--neg); }

.glance-node--on {
  background: rgba(0, 113, 227, 0.048);
  border-color: rgba(0, 113, 227, 0.30);
}
.glance-node--on .glance-node__sym { color: var(--cobalt); }

.glance-node--pos {
  background: rgba(21, 115, 71, 0.04);
  border-color: rgba(21, 115, 71, 0.24);
}
.glance-node--pos .glance-node__sym { color: var(--pos); }

.glance-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.glance-arrow__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.glance-arrow svg {
  width: 100%;
  height: 14px;
  display: block;
}

.glance-arrow--push { color: rgba(201, 48, 44, 0.82); }
.glance-arrow--pull { color: rgba(21, 115, 71, 0.88); }

.pond-glance__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 20px;
  background: #f7f6f2;
  border-top: 0.5px solid var(--card-header-border);
}

.pond-glance__note {
  margin: 0;
  font-size: 0.855rem;
  line-height: 1.5;
  color: var(--ink-body);
}

.pond-glance__note strong {
  color: var(--ink);
  font-weight: 600;
}

.pond-glance__link {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cobalt);
  white-space: nowrap;
  padding: 4.5px 11px;
  border-radius: 7.5px;
  background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%);
  border: 0.5px solid rgba(0, 113, 227, 0.22);
  box-shadow:
    0 1px 2px rgba(17, 18, 20, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.pond-glance__link:hover {
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow: 0 2px 6px rgba(0, 113, 227, 0.12);
}

.abstract-prose {
  font-size: 1.015rem;
  line-height: 1.75;
}

/* 3-Column Editorial Pillar Cards (Aligned to Dynamics Card System) */
.abstract-pillars {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.abstract-pillar {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 0.6px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow-sm);
}

.abstract-pillar__top {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 15px;
  background: var(--card-header-bg);
  border-bottom: 0.5px solid var(--card-header-border);
  box-shadow: var(--card-header-inset);
}

.abstract-pillar__num {
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--cobalt);
}

.abstract-pillar__title {
  font-size: 0.89rem;
  font-weight: 560;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
}

.abstract-pillar__body {
  margin: 0;
  padding: 12px 15px 13px;
  font-size: 0.85rem;
  line-height: 1.56;
  color: var(--ink-body);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* ==========================================================================
   SECTION 01: MOTIVATION (Clean Light Editorial Spec Rows & Glossary)
   ========================================================================== */
.spec-list {
  margin-top: 32px;
  border-top: 0.5px solid var(--rule);
}

.spec-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 18px;
  padding: 26px 0;
  border-bottom: 0.5px solid var(--rule-soft);
}

.spec-row__meta {
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ink-muted);
}

.spec-row > .spec-row__meta {
  padding-top: 5px;
}

.spec-row__num {
  display: block;
  color: var(--cobalt);
  font-weight: 550;
  font-variant-numeric: tabular-nums;
  margin-bottom: 2px;
}

.spec-row__title {
  margin: 0;
  font-size: clamp(1.22rem, 1.55vw, 1.45rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--ink);
}

.spec-row__body {
  margin: 10px 0 0;
  font-size: 0.99rem;
  line-height: 1.7;
  color: var(--ink-body);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.spec-row__figures {
  margin: 12px 0 0;
  font-size: 0.88rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.spec-row__figures .neg { color: var(--neg); font-weight: 500; }
.spec-row__figures .pos { color: var(--pos); font-weight: 500; }

/* 3-Column Strip (Clean Hairline Top, No Heavy Boxes) */
.three-col-strip {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 32px;
}

.strip-item {
  padding-top: 14px;
  border-top: 0.5px solid var(--rule);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.band--dark .strip-item {
  border-top-color: var(--rule-dark);
}

.strip-item__idx {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--cobalt);
  font-variant-numeric: tabular-nums;
}

.band--dark .strip-item__idx {
  color: var(--cobalt-light);
}

.strip-item__title {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.strip-item__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.58;
  color: var(--ink-muted);
  text-align: left;
  text-wrap: pretty;
}

.band--dark .strip-item__desc {
  color: var(--ink-light-muted);
}

/* 04 Bracketed Core Objects (Augen Signature — Light Paper) */
.glossary-section {
  margin-top: 48px;
  padding-top: 36px;
  border-top: 0.5px solid var(--rule);
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  column-gap: 32px;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 36px;
}

.glossary-term {
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.glossary-term .br {
  color: var(--cobalt);
  font-weight: 300;
}

.glossary-name {
  display: block;
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.glossary-desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.58;
  color: var(--ink-muted);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* ==========================================================================
   SECTION 02: METHOD (Light Editorial + Frosted Interactive Lab)
   ========================================================================== */
.method-figure {
  margin: 34px 0 0;
}

.method-figure__frame {
  background: var(--card-bg);
  border: 0.6px solid var(--card-border);
  border-radius: 14px;
  padding: clamp(16px, 2vw, 26px);
  box-shadow: var(--card-shadow);
}

.method-figure figcaption {
  margin-top: 14px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.pond-lab {
  margin-top: 46px;
  background: var(--card-bg);
  border: 0.6px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

/* Harmonize CMU Serif math contrast inside the lab so symbols match Inter stroke density */
.pond-lab .math {
  color: inherit;
  font-size: 1.02em;
}

.pond-lab__header {
  background: var(--card-header-bg);
  border-bottom: 0.5px solid var(--card-header-border);
  box-shadow: var(--card-header-inset);
}

.pond-lab__head-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding: 20px 24px 13px;
}

.pond-lab__head-top .h3 {
  font-size: 1.24rem;
  font-weight: 560;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.pond-lab__head-top .caption {
  font-size: 0.86rem;
  color: #5b6068;
}

/* Classic Archival Folder Tab Rail */
.lab-folder-rail {
  padding: 2px 20px 0;
  border-bottom: 0.6px solid rgba(17, 18, 20, 0.13);
  overflow-x: auto;
  scrollbar-width: none;
}

.lab-folder-rail::-webkit-scrollbar {
  display: none;
}

.lab-modes {
  display: inline-flex;
  align-items: flex-end;
  gap: 5px;
  min-width: max-content;
}

.lab-mode {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px 9px;
  font-size: 0.85rem;
  font-weight: 450;
  color: var(--ink-muted);
  background: rgba(255, 255, 255, 0.44);
  border: 0.6px solid rgba(17, 18, 20, 0.10);
  border-bottom: none;
  border-radius: 9px 9px 0 0;
  box-shadow: inset 0 -4px 6px -4px rgba(17, 18, 20, 0.08);
  white-space: nowrap;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.lab-mode:hover:not(.is-active) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(17, 18, 20, 0.16);
}

.lab-mode.is-active {
  z-index: 2;
  color: var(--ink);
  font-weight: 500;
  background: #ffffff;
  border-color: rgba(17, 18, 20, 0.14);
  padding-top: 9px;
  padding-bottom: 10px;
  margin-bottom: -1px;
  box-shadow: 0 -2px 10px rgba(17, 18, 20, 0.035);
}

/* Crisp top cobalt index stripe on active folder ear */
.lab-mode.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  top: 0;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--cobalt);
}

.lab-folder-ico {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.62;
  transition: opacity 0.16s ease, color 0.16s ease;
}

.lab-folder-ico .ico-open {
  display: none;
}

.lab-mode.is-active .lab-folder-ico {
  color: var(--cobalt);
  opacity: 1;
}

.lab-mode.is-active .lab-folder-ico .ico-closed {
  display: none;
}

.lab-mode.is-active .lab-folder-ico .ico-open {
  display: inline;
  fill: rgba(0, 113, 227, 0.10);
}

.lab-mode__num {
  font-size: 0.72rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
  opacity: 0.72;
}

.lab-mode.is-active .lab-mode__num {
  color: var(--cobalt);
  opacity: 1;
}

/* Inner Sheet Bar: seamless continuation of active white folder */
.pond-lab__head-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 22px;
  background: #ffffff;
}

.lab-datasets {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 9px;
  background: #f2f1ec;
  border: 0.5px solid rgba(17, 18, 20, 0.07);
  box-shadow: inset 0 1px 2px rgba(17, 18, 20, 0.055);
}

.lab-ds {
  position: relative;
  font-size: 0.805rem;
  font-weight: 450;
  color: #5a5e66;
  padding: 4.5px 11px;
  border-radius: 6.5px;
  border: 0.5px solid transparent;
  background: transparent;
  transition: color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.lab-ds:hover:not(:disabled):not(.is-active) {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
}

.lab-ds.is-active {
  color: var(--ink);
  font-weight: 550;
  background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%);
  border-color: rgba(17, 18, 20, 0.09);
  box-shadow:
    0 1px 2.5px rgba(17, 18, 20, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.lab-ds:disabled {
  opacity: 0.34;
  cursor: not-allowed;
}

.pond-lab__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lab-step-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-body);
  font-variant-numeric: tabular-nums;
}

.lab-step-badge .step-cur {
  color: var(--ink);
  font-weight: 600;
}

.lab-step-badge .step-tot {
  color: var(--ink-muted);
  font-weight: 400;
}

.lab-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(17, 18, 20, 0.24);
  flex: none;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.lab-step-badge.is-playing .lab-live-dot {
  background: var(--cobalt);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16);
  animation: labPulse 1.8s ease-in-out infinite;
}

.lab-step-badge.is-static .lab-live-dot {
  display: none;
}

@keyframes labPulse {
  0%, 100% { box-shadow: 0 0 0 2.5px rgba(0, 113, 227, 0.18); }
  50% { box-shadow: 0 0 0 5px rgba(0, 113, 227, 0.04); }
}

/* Tactile Precision Transport Control Capsule */
.lab-transport {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2.5px;
  border-radius: 999px;
  background: #f1f0eb;
  border: 0.6px solid rgba(17, 18, 20, 0.10);
  box-shadow: inset 0 1px 2px rgba(17, 18, 20, 0.06);
}

.lab-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5.5px;
  min-width: 74px;
  height: 27px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  font-size: 0.79rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: #ffffff;
  background: linear-gradient(180deg, #1b86f2 0%, #006ad6 100%);
  border: 0.6px solid rgba(0, 96, 200, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 1px 2px rgba(0, 113, 227, 0.28),
    0 4px 10px -3px rgba(0, 113, 227, 0.34);
  transition: transform 0.12s ease, background 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.lab-play-btn:hover {
  background: linear-gradient(180deg, #278ef6 0%, #0071e3 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    0 2px 5px rgba(0, 113, 227, 0.32),
    0 6px 12px -3px rgba(0, 113, 227, 0.36);
}

.lab-play-btn:active {
  transform: scale(0.96);
}

.lab-play-btn.is-playing {
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f6f5f2 100%);
  border-color: rgba(17, 18, 20, 0.14);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 1px 2.5px rgba(17, 18, 20, 0.08);
}

.lab-play-btn.is-playing:hover {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
  border-color: rgba(17, 18, 20, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 2px 5px rgba(17, 18, 20, 0.10);
}

.lab-play-btn__ico {
  width: 10px;
  height: 10px;
  flex: none;
  fill: currentColor;
}

.lab-play-btn .ico-pause {
  display: none;
}

.lab-play-btn.is-playing .ico-play {
  display: none;
}

.lab-play-btn.is-playing .ico-pause {
  display: inline;
  fill: var(--cobalt);
}

.lab-reset-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: var(--ink-muted);
  background: transparent;
  border: 0.6px solid transparent;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease, transform 0.12s ease;
}

.lab-reset-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.lab-reset-btn:hover {
  color: var(--ink);
  background: #ffffff;
  border-color: rgba(17, 18, 20, 0.11);
  box-shadow: 0 1px 2px rgba(17, 18, 20, 0.06);
}

.lab-reset-btn:hover svg {
  transform: rotate(-36deg);
}

.lab-reset-btn:active {
  transform: scale(0.93);
}

.pond-lab__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
}

.pond-lab__stage {
  padding: 18px 20px 15px;
  border-right: 0.5px solid rgba(17, 18, 20, 0.09);
  background: linear-gradient(180deg, #fbfaf7 0%, #f5f4ef 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 11px;
  min-width: 0;
}

.lab-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 9px;
  overflow: hidden;
  border: 0.6px solid rgba(17, 18, 20, 0.11);
  background: #fafbfd;
  box-shadow:
    0 1px 3px rgba(17, 18, 20, 0.05),
    0 6px 18px -8px rgba(17, 18, 20, 0.08);
}

#pond2dCanvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: crosshair;
}

.lab-hover-tip {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  padding: 6px 10px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.6px solid rgba(17, 18, 20, 0.13);
  box-shadow: 0 8px 22px rgba(17, 18, 20, 0.12);
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Single-Row Harmonious Interactive Legend Strip */
.pond-lab__legend {
  padding-top: 9px;
  border-top: 0.5px solid rgba(17, 18, 20, 0.08);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 2px;
}

.lab-leg-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 4px;
  border-radius: 5px;
  border: 0.5px solid transparent;
  background: transparent;
  font-size: 0.715rem;
  font-weight: 450;
  color: #3d4149;
  white-space: nowrap;
  transition: opacity 0.15s ease, background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.lab-leg-btn:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(17, 18, 20, 0.10);
}

.lab-leg-btn.is-off {
  opacity: 0.34;
  text-decoration: line-through;
}

.lab-leg-swatch {
  display: inline-block;
  flex: none;
}

.lab-leg-swatch--dot {
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
}

.lab-leg-swatch--dotted {
  width: 10px;
  height: 0;
  border-top: 2px dotted #4b5563;
}

.lab-leg-swatch--dashed {
  width: 10px;
  height: 0;
  border-top: 2px dashed #7b3294;
}

.lab-leg-swatch--line {
  width: 10px;
  height: 2px;
  border-radius: 1px;
}

.lab-leg-swatch--shade {
  width: 9px;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(135deg, #fff3e6, #f4a261);
  border: 0.5px solid rgba(217, 95, 2, 0.35);
}

.pond-lab__controls {
  padding: 18px 22px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #ffffff;
  min-width: 0;
}

.lab-ctrl-block {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.lab-ctrl-block[hidden] {
  display: none !important;
}

.slider-block__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.slider-block__label {
  font-size: 0.84rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.slider-block__meta {
  font-size: 0.76rem;
  font-weight: 450;
  font-variant-numeric: tabular-nums;
  color: #636871;
}

/* Precision Instrument Progress Scrubber */
.lab-scrubber {
  position: relative;
  height: 22px;
  display: flex;
  align-items: center;
  user-select: none;
}

.lab-scrubber__track {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #ecebe6;
  box-shadow:
    inset 0 1px 2px rgba(17, 18, 20, 0.12),
    0 0.5px 0 rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.lab-scrubber__fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: calc(9px + (100% - 18px) * var(--ratio, 0));
  border-radius: 999px;
  background: linear-gradient(90deg, #4fa2f7 0%, #0071e3 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.lab-scrubber__notch {
  position: absolute;
  top: 50%;
  left: calc(9px + (100% - 18px) * var(--r, 0));
  width: 1.5px;
  height: 4px;
  transform: translate(-50%, -50%);
  border-radius: 1px;
  background: rgba(17, 18, 20, 0.16);
  pointer-events: none;
}

.lab-scrubber__thumb {
  position: absolute;
  top: 50%;
  left: calc(9px + (100% - 18px) * var(--ratio, 0));
  width: 18px;
  height: 18px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #ffffff 0%, #f3f2ee 100%);
  border: 0.8px solid rgba(17, 18, 20, 0.16);
  box-shadow:
    0 1px 3px rgba(17, 18, 20, 0.18),
    0 3px 8px rgba(0, 113, 227, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  pointer-events: none;
  z-index: 2;
  transition: transform 0.14s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.16s ease, border-color 0.16s ease;
}

/* Precision Cobalt Core Dot inside Knob */
.lab-scrubber__thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle at 35% 30%, #48a0ff 0%, #0071e3 65%, #005bbd 100%);
  box-shadow: 0 0.5px 1px rgba(0, 113, 227, 0.35);
}

.lab-scrubber:hover .lab-scrubber__thumb {
  transform: translate(-50%, -50%) scale(1.1);
  border-color: rgba(0, 113, 227, 0.42);
  box-shadow:
    0 0 0 4px rgba(0, 113, 227, 0.11),
    0 2px 5px rgba(17, 18, 20, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.lab-scrubber:active .lab-scrubber__thumb,
.lab-scrubber:has(.lab-scrubber__input:focus-visible) .lab-scrubber__thumb {
  transform: translate(-50%, -50%) scale(1.06);
  border-color: var(--cobalt);
  box-shadow:
    0 0 0 5px rgba(0, 113, 227, 0.18),
    0 2px 6px rgba(0, 113, 227, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.lab-scrubber__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 3;
}

.lab-ticks {
  position: relative;
  height: 20px;
  margin-top: -4px;
}

.lab-ticks button {
  position: absolute;
  top: 0;
  left: calc(9px + (100% - 18px) * var(--r, 0));
  transform: translateX(-50%);
  padding: 5px 3px 0;
  font-size: 0.72rem;
  font-weight: 450;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  transition: color 0.16s ease;
}

.lab-ticks button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 3.5px;
  transform: translateX(-50%);
  background: rgba(17, 18, 20, 0.18);
  transition: background 0.16s ease, height 0.16s ease;
}

.lab-ticks button.is-passed {
  color: var(--ink-body);
}

.lab-ticks button.is-passed::before {
  background: rgba(0, 113, 227, 0.45);
}

.lab-ticks button.is-current {
  color: var(--cobalt);
  font-weight: 600;
}

.lab-ticks button.is-current::before {
  background: var(--cobalt);
  height: 4.5px;
}

.lab-ticks button:hover {
  color: var(--cobalt);
}

/* Unified Machined Recessed Tray for Mixture Weight Selector */
.lab-seg-tray {
  padding: 3px;
  border-radius: 9px;
  background: #f2f1ec;
  border: 0.5px solid rgba(17, 18, 20, 0.07);
  box-shadow: inset 0 1px 2px rgba(17, 18, 20, 0.055);
}

.lab-seg-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3px;
}

.lab-seg {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  padding: 6px 4px;
  border-radius: 6.5px;
  border: 0.5px solid transparent;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 500;
  color: #5a5e66;
  font-variant-numeric: tabular-nums;
  transition: background 0.16s ease, color 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.lab-seg span {
  font-size: 0.69rem;
  font-weight: 400;
  color: #7c8089;
  transition: color 0.16s ease;
}

.lab-seg:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.lab-seg.is-active {
  background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%);
  border-color: rgba(17, 18, 20, 0.09);
  color: var(--ink);
  font-weight: 600;
  box-shadow:
    0 1px 3px rgba(17, 18, 20, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.lab-seg.is-active span {
  color: var(--cobalt);
  font-weight: 500;
}

.lab-eq-box {
  padding: 10px 13px;
  background: #faf9f5;
  border: 0.6px solid rgba(17, 18, 20, 0.08);
  border-radius: 8px;
  box-shadow: inset 0 1px 2px rgba(17, 18, 20, 0.025);
}

.lab-eq-box .math-line {
  white-space: normal;
  font-size: 0.92rem;
  line-height: 1.5;
}

.weight-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}

.weight-bar-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 38px;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: #555961;
  font-variant-numeric: tabular-nums;
}

.lab-bar-num {
  text-align: right;
  font-weight: 550;
  color: var(--ink);
}

.weight-bar-track {
  height: 5px;
  background: #ecebe6;
  border-radius: 999px;
  box-shadow: inset 0 1px 1.5px rgba(17, 18, 20, 0.09);
  overflow: hidden;
}

.weight-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.14s ease;
}

.weight-bar-fill--attract { background: linear-gradient(90deg, #16b589, #009e73); }
.weight-bar-fill--contrast { background: linear-gradient(90deg, #ee7722, #d95f02); }

.lab-anatomy-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  padding-top: 4px;
  font-size: 0.785rem;
  color: #5e636c;
  font-variant-numeric: tabular-nums;
}

.lab-anatomy-meta strong {
  color: var(--ink);
  font-weight: 550;
}

.lab-chart-block {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-top: 12px;
  border-top: 0.5px solid rgba(17, 18, 20, 0.08);
  min-height: 0;
}

.lab-chart-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 10px;
}

.lab-chart-title {
  font-size: 0.83rem;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
}

.lab-chart-hint {
  font-size: 0.72rem;
  color: #7c8089;
  white-space: nowrap;
}

.lab-chart-frame {
  position: relative;
  flex: 1 1 auto;
  min-height: 150px;
  border-radius: 8px;
  border: 0.6px solid rgba(17, 18, 20, 0.09);
  box-shadow: inset 0 1px 2px rgba(17, 18, 20, 0.025);
  background: #faf9f5;
  overflow: hidden;
}

#pond2dChart {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  cursor: ew-resize;
}

/* Unified Single-Piece Telemetry Readout Bar */
.lab-readout-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  background: #faf9f5;
  border: 0.6px solid rgba(17, 18, 20, 0.09);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.lab-readout-strip.is-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.lab-metric-pill {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 8px 7px;
  background: transparent;
  border-right: 0.5px solid rgba(17, 18, 20, 0.08);
  min-width: 0;
}

.lab-metric-pill:last-child {
  border-right: none;
}

/* Crisp 2px top color stripe per distribution */
.lab-metric-pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--pill-col, rgba(17, 18, 20, 0.2));
  opacity: 0.78;
}

.lab-metric-pill__k {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  font-weight: 500;
  color: #4b4f58;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lab-metric-pill__dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
  flex: none;
}

.lab-metric-pill__v {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.lab-metric-pill__sub {
  font-size: 0.68rem;
  color: #6a6f79;
  font-variant-numeric: tabular-nums;
}

.decomp-note {
  margin: 0;
  padding: 2px 0 2px 11px;
  border-left: 2px solid rgba(17, 18, 20, 0.12);
  font-size: 0.815rem;
  line-height: 1.6;
  color: #464b54;
}

/* Hairline Accordions */
.accordion-list {
  margin-top: 32px;
  border-top: 0.5px solid var(--rule);
}

.accordion-item {
  border-bottom: 0.5px solid var(--rule);
}

.accordion-trigger {
  width: 100%;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  text-align: left;
}

.accordion-trigger__left {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.accordion-idx {
  font-size: 0.84rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.accordion-title {
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.accordion-plus {
  color: var(--cobalt);
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  transition: transform 0.2s ease;
}

.accordion-item.is-open .accordion-plus {
  transform: rotate(45deg);
}

.accordion-body {
  display: none;
  padding: 4px 0 24px 32px;
}

.accordion-item.is-open .accordion-body {
  display: block;
}

.eq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.eq-col__label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 8px;
}

.algo-pre {
  margin: 0;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--bg-dark);
  color: var(--ink-light);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  overflow-x: auto;
  box-shadow: var(--card-shadow-sm);
}

.algo-pre .cm { color: var(--ink-light-muted); }
.algo-pre .kw { color: var(--cobalt-light); }

.meme-split {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.meme-split img {
  border-radius: 12px;
  background: var(--card-bg);
  border: 0.6px solid var(--card-border);
  box-shadow: var(--card-shadow-sm);
  padding: 8px;
}

/* ==========================================================================
   Unified Minimal Underline Tabs
   ========================================================================== */
.text-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  border-bottom: 0.5px solid var(--rule);
}

.band--dark .text-tabs {
  border-bottom-color: var(--rule-dark);
}

.text-tab {
  position: relative;
  padding: 10px 0;
  font-size: 0.92rem;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink-muted);
  transition: color 0.18s ease;
}

.text-tab:hover,
.text-tab.is-active {
  color: var(--ink);
}

.text-tab.is-active {
  font-weight: 500;
}

.text-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.5px;
  height: 1.5px;
  background: var(--cobalt);
}

.band--dark .text-tab {
  color: var(--ink-light-muted);
}

.band--dark .text-tab:hover,
.band--dark .text-tab.is-active {
  color: var(--ink-light);
}

.band--dark .text-tab.is-active::after {
  background: var(--cobalt-light);
}

/* ==========================================================================
   SECTION 03: VISUAL & AUDIO DEMOS (Clean Light Editorial Gallery)
   ========================================================================== */
.demo-block {
  padding-top: 52px;
  margin-top: 52px;
  border-top: 0.5px solid var(--rule);
}

.demo-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}

.demo-controls {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sync-link {
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-muted);
  transition: color 0.18s ease;
}

.sync-link:hover { color: var(--cobalt); }

.prompt-line {
  margin: 14px 0 18px;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--ink-muted);
  font-style: italic;
}

.prompt-line strong {
  font-style: normal;
  font-weight: 500;
  color: var(--ink);
  margin-right: 6px;
}

.video-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.video-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.media-well {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border-radius: 12px;
  overflow: hidden;
  border: 0.6px solid var(--card-border);
  box-shadow: var(--card-shadow-sm);
}

.media-well--ours {
  border-color: rgba(0, 113, 227, 0.45);
  box-shadow:
    0 1px 2px rgba(0, 113, 227, 0.08),
    0 14px 32px -12px rgba(0, 113, 227, 0.16),
    inset 0 2px 0 0 var(--cobalt);
}

.media-well__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0b0c0e;
  overflow: hidden;
}

.media-well__frame--13b { aspect-ratio: 832 / 480; }
.media-well__frame--h3 { aspect-ratio: 1344 / 768; }

.media-well__frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-well__meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  background: var(--card-header-bg);
  border-top: 0.5px solid var(--card-header-border);
  box-shadow: var(--card-header-inset);
}

.media-well__name {
  font-size: 0.88rem;
  font-weight: 550;
  color: var(--ink);
}

.media-well--ours .media-well__name { color: var(--cobalt); font-weight: 600; }

.media-well__nfe {
  font-size: 0.8rem;
  color: #5b6068;
  font-variant-numeric: tabular-nums;
}

.h3-wave-wrap {
  padding: 10px 14px 12px;
  background: var(--card-bg);
  border-top: 0.5px solid var(--card-header-border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h3-wave-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 7.5px;
  font-size: 0.78rem;
  font-weight: 500;
  background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%);
  border: 0.6px solid rgba(17, 18, 20, 0.12);
  box-shadow:
    0 1px 2px rgba(17, 18, 20, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  color: var(--ink-body);
  transition: all 0.16s ease;
}

.audio-btn:hover {
  border-color: rgba(17, 18, 20, 0.30);
  color: var(--ink);
}

.audio-btn.is-audible {
  background: var(--cobalt);
  border-color: var(--cobalt);
  box-shadow: 0 1px 4px rgba(0, 113, 227, 0.25);
  color: #ffffff;
}

.h3-scores {
  display: flex;
  gap: 12px;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  color: var(--ink-muted);
}

.h3-scores strong { color: var(--ink); font-weight: 550; }
.media-well--ours .h3-scores strong { color: var(--cobalt); }

.h3-wave-canvas {
  width: 100%;
  height: 42px;
  cursor: pointer;
}

/* ==========================================================================
   SECTION 04: QUANTITATIVE RESULTS (Tactile 4-Card Switcher + Booktabs + SVGs)
   ========================================================================== */
.bench-switcher {
  margin-top: 26px;
  padding: 6px;
  border-radius: 14px;
  background: #eeede7;
  border: 0.6px solid rgba(17, 18, 20, 0.10);
  box-shadow: inset 0 1px 2.5px rgba(17, 18, 20, 0.06);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.bench-tab-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 4px;
  padding: 12px 13px 11px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.54);
  border: 0.6px solid rgba(17, 18, 20, 0.08);
  color: var(--ink-muted);
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.16s ease, color 0.18s ease;
}

.bench-tab-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2.5px;
  background: transparent;
  transition: background-color 0.18s ease;
}

.bench-tab-card:hover:not(.is-active) {
  background: rgba(255, 255, 255, 0.90);
  border-color: rgba(17, 18, 20, 0.18);
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(17, 18, 20, 0.06);
}

.bench-tab-card.is-active {
  background: linear-gradient(180deg, #ffffff 0%, #fcfbf9 100%);
  border-color: rgba(0, 113, 227, 0.36);
  color: var(--ink);
  box-shadow:
    0 1px 2px rgba(17, 18, 20, 0.06),
    0 6px 18px -6px rgba(0, 113, 227, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.bench-tab-card.is-active::before {
  background: var(--cobalt);
}

.bench-tab-card__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 2px;
}

.bench-tab-card__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1.5px 6.5px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  background: rgba(17, 18, 20, 0.07);
  color: var(--ink-muted);
  transition: background-color 0.18s ease, color 0.18s ease;
}

.bench-tab-card.is-active .bench-tab-card__num {
  background: var(--cobalt);
  color: #ffffff;
}

.bench-tab-card__ico {
  width: 14px;
  height: 14px;
  color: var(--ink-faint);
  flex: none;
  transition: color 0.18s ease;
}

.bench-tab-card:hover .bench-tab-card__ico {
  color: var(--ink-muted);
}

.bench-tab-card.is-active .bench-tab-card__ico {
  color: var(--cobalt);
}

.bench-tab-card__title {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.25;
}

.bench-tab-card__meta {
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}

.bench-tab-card.is-active .bench-tab-card__meta {
  color: var(--cobalt);
  font-weight: 500;
}

.bench-panel {
  display: none;
  margin-top: 28px;
}

.bench-panel.is-active {
  display: block;
}

.bench-stack {
  display: flex;
  flex-direction: column;
  gap: 40px;
  min-width: 0;
}

.bench-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.table-section {
  overflow-x: auto;
  min-width: 0;
}

.table-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.table-title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
}

.table-note {
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.acad-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
}

.acad-table thead th {
  font-weight: 500;
  text-align: right;
  padding: 9px 7px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 0.75px solid var(--ink);
  color: var(--ink);
  white-space: nowrap;
}

.acad-table thead th:first-child { text-align: left; padding-left: 4px; }

.acad-table tbody td {
  text-align: right;
  padding: 8px 7px;
  border-bottom: 0.5px solid var(--rule-soft);
  color: var(--ink-body);
  white-space: nowrap;
}

.acad-table tbody td:first-child { text-align: left; padding-left: 4px; }
.acad-table tbody tr:last-child td { border-bottom: 1.5px solid var(--ink); }

.acad-table tr.group-row td {
  background: rgba(17, 18, 20, 0.035);
  font-style: italic;
  font-size: 0.8rem;
  color: var(--ink-muted);
  text-align: left;
  padding: 6px 6px;
}

.acad-table tr.ours-row td {
  background: var(--cobalt-tint);
  color: var(--ink);
  font-weight: 500;
}

.acad-table .best { font-weight: 600; color: var(--ink); }
.acad-table .second { text-decoration: underline; text-underline-offset: 2px; }
.delta-pos { color: var(--pos); font-weight: 500; }
.delta-neg { color: var(--neg); font-weight: 500; }

.chart-block {
  position: relative;
  min-width: 0;
}

.bench-panel .chart-block {
  background: var(--card-bg);
  border: 0.6px solid var(--card-border);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: var(--card-shadow-sm);
}

/* Side-by-side Multi-step & Few-step RL Training Curve Cards */
.curve-suite-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.curve-suite-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 0.6px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow-sm);
  min-width: 0;
}

.curve-suite__head {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 16px;
  background: var(--card-header-bg);
  border-bottom: 0.5px solid var(--card-header-border);
  box-shadow: var(--card-header-inset);
}

.curve-suite__title {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 560;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.curve-suite__sub {
  font-size: 0.76rem;
  color: #5b6068;
}

.curve-suite__legend {
  padding: 8px 16px;
  min-height: 48px;
  align-content: center;
  background: #faf9f5;
  border-bottom: 0.5px solid var(--rule-soft);
  margin-bottom: 0;
  gap: 4px 12px;
  font-size: 0.74rem;
}

.curve-suite__stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.curve-subplot {
  padding: 10px 9px 8px;
  border-right: 0.5px solid var(--rule-soft);
  border-bottom: 0.5px solid var(--rule-soft);
  min-width: 0;
}

.curve-subplot:nth-child(2n) {
  border-right: 0;
}

.curve-subplot:nth-last-child(-n+2) {
  border-bottom: 0;
}

.curve-subplot__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 4px;
  min-height: 20px;
}

.curve-subplot__title {
  font-size: 0.76rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.curve-subplot .ablation-zoom-btn {
  padding: 2px 6px;
  font-size: 0.66rem;
  gap: 3px;
}

.curve-subplot .ablation-zoom-btn svg {
  width: 9.5px;
  height: 9.5px;
}

.chart-block__title {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  margin-bottom: 4px;
}

.chart-block__sub {
  font-size: 0.86rem;
  line-height: 1.52;
  color: var(--ink-muted);
  margin-bottom: 14px;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 10px;
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.chart-legend-item { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend-swatch { width: 14px; height: 2.5px; border-radius: 1px; }
.chart-svg-wrap { position: relative; width: 100%; }
.chart-svg-wrap svg { width: 100%; height: auto; overflow: visible; }

.chart-tooltip {
  position: absolute;
  pointer-events: none;
  z-index: 10;
  background: rgba(17, 18, 20, 0.94);
  color: #ffffff;
  padding: 8px 11px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.chart-tooltip.is-visible { opacity: 1; }

.gain-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}

.gain-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 14px;
  font-size: 0.88rem;
}

.gain-row__name { font-weight: 500; line-height: 1.3; }
.gain-row__obj { display: block; font-size: 0.78rem; font-weight: 400; color: var(--ink-muted); }
.gain-track { position: relative; height: 20px; border-bottom: 0.5px solid var(--rule); }
.gain-span { position: absolute; top: 50%; height: 2.5px; transform: translateY(-50%); background: var(--cobalt); }
.gain-dot { position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); }
.gain-dot--before { background: #ffffff; border: 1.5px solid var(--ink-muted); }
.gain-dot--after { background: var(--cobalt); }
.gain-delta { text-align: right; font-variant-numeric: tabular-nums; font-size: 0.86rem; font-weight: 500; color: var(--pos); }

.order-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 8px;
}

.order-col {
  background: var(--card-bg);
  border: 0.6px solid var(--card-border);
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: var(--card-shadow-sm);
}
.order-col--ours {
  border-color: rgba(0, 113, 227, 0.36);
  box-shadow:
    0 1px 2px rgba(0, 113, 227, 0.06),
    0 12px 28px -12px rgba(0, 113, 227, 0.14),
    inset 0 2px 0 0 var(--cobalt);
}
.order-col__title { font-size: 0.94rem; font-weight: 560; margin-bottom: 8px; color: var(--ink); }
.order-col--ours .order-col__title { color: var(--cobalt); }
.order-col__nums { font-size: 0.9rem; line-height: 1.75; color: var(--ink-body); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   SECTION 05: ABLATIONS (All-Visible 2x3 Dynamics Card Grid)
   ========================================================================== */
.ablation-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.ablation-chart-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 0.6px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--card-shadow-sm);
}

.ablation-card__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  padding: 10px 18px;
  background: var(--card-header-bg);
  border-bottom: 0.5px solid var(--card-header-border);
  box-shadow: var(--card-header-inset);
}

.ablation-card__head-left {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}

.ablation-zoom-btn {
  margin-left: auto;
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--cobalt);
  background: linear-gradient(180deg, #ffffff 0%, #faf9f6 100%);
  border: 0.5px solid rgba(0, 113, 227, 0.24);
  box-shadow:
    0 1px 2px rgba(17, 18, 20, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.ablation-zoom-btn:hover {
  border-color: rgba(0, 113, 227, 0.52);
}

.ablation-zoom-btn.is-zoomed {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0, 113, 227, 0.24);
}

.ablation-zoom-btn svg {
  width: 11px;
  height: 11px;
  flex: none;
}

.chart-mag-group {
  cursor: pointer;
}

.chart-mag-group:hover .chart-mag-frame {
  stroke: rgba(0, 113, 227, 0.78);
}

.ablation-card__num {
  font-size: 0.76rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--cobalt);
}

.ablation-card__title {
  font-size: 0.94rem;
  font-weight: 560;
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.3;
}

.ablation-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 14px 18px 16px;
}

.ablation-card__sub {
  margin: 0 0 12px;
  font-size: 0.83rem;
  line-height: 1.54;
  color: var(--ink-muted);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.ablation-card__body .chart-legend {
  gap: 5px 14px;
  font-size: 0.76rem;
  margin-bottom: 8px;
}

.ablation-card__body .chart-svg-wrap {
  margin-top: auto;
}

/* ==========================================================================
   SECTION 06: CITATION & OBSIDIAN FOOTER
   ========================================================================== */
.closing-statement {
  font-size: clamp(1.24rem, 1.72vw, 1.54rem);
  font-weight: 300;
  letter-spacing: -0.024em;
  line-height: 1.38;
  color: var(--ink-light);
  max-width: none;
  margin: 0 0 28px;
}

.closing-statement span { color: var(--cobalt-light); }

.bibtex-wrap {
  background: var(--bg-dark-elev);
  border: 0.6px solid var(--rule-dark);
  border-radius: 12px;
  overflow: hidden;
}

.bibtex-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  border-bottom: 0.5px solid var(--rule-dark-soft);
}

.bibtex-label { font-size: 0.84rem; font-weight: 500; color: var(--ink-light-muted); }

.copy-btn {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--cobalt-light);
}

.copy-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

.bibtex-code {
  margin: 0;
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.65;
  color: var(--ink-light-body);
  overflow-x: auto;
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 0.5px solid var(--rule-dark-soft);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--ink-light-muted);
}

.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a:hover { color: #ffffff; }

/* ==========================================================================
   Cinema Lightbox Modal for 3:33 Blueprint v2 Narrated Film
   ========================================================================== */
.film-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(9, 10, 12, 0.84);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.film-modal.is-open {
  display: flex;
}

.film-modal__dialog {
  width: 100%;
  max-width: 1060px;
  background: #111216;
  border: 0.6px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.55);
}

.film-modal__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.12);
  color: var(--ink-light);
}

.film-modal__title {
  font-size: 0.9rem;
  font-weight: 500;
}

.film-modal__close {
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--ink-light-body);
  border: 0.5px solid rgba(255, 255, 255, 0.22);
}

.film-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.film-modal__video {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #faf9f5;
}

.film-modal__video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1180px) {
  .side-nav { display: none !important; }
  .top-nav { display: none; }
  .mobile-nav-wrap { display: flex; }
  .top-header { padding-top: 46px; }
  .swiss-grid {
    max-width: 860px;
    grid-template-columns: minmax(0, 1fr);
  }
  .col-main { grid-column: 1 / -1; }
  .cinema-grid { grid-template-columns: minmax(0, 1fr); }
  .cinema-feed { height: 380px; }
  .pond-lab__grid,
  .bench-split,
  .ablation-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .pond-lab__stage {
    border-right: 0;
    border-bottom: 0.5px solid var(--rule);
  }
}

@media (max-width: 760px) {
  body { font-size: 1rem; }
  .prose,
  .clean-bullets li,
  .spec-row__body,
  .abstract-pillar__body,
  .strip-item__desc,
  .glossary-desc,
  .ablation-card__sub,
  .method-figure figcaption {
    text-align: left;
    hyphens: none;
    -webkit-hyphens: none;
  }
  .metrics-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }
  .bench-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .curve-suite-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .curve-suite__legend {
    min-height: 0;
  }
  .spec-row,
  .glossary-section,
  .glossary-grid,
  .three-col-strip,
  .abstract-pillars,
  .video-grid-3,
  .video-grid-2,
  .eq-grid,
  .order-compare,
  .meme-split {
    grid-template-columns: minmax(0, 1fr);
  }
  .pond-glance__flow {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    padding: 16px 14px;
  }
  .glance-arrow {
    flex-direction: row;
    justify-content: center;
    gap: 8px;
  }
  .glance-arrow svg {
    width: 28px;
    transform: rotate(90deg);
  }
  .pond-glance__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .spec-row,
  .glossary-section { row-gap: 10px; }
  .accordion-body { padding-left: 0; }
  .cinema-caption-overlay {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .split-edge-label {
    font-size: 0.7rem;
    padding: 3px 8px;
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .gain-row { grid-template-columns: 96px minmax(0, 1fr) 64px; }
  .pond-lab__head-top,
  .pond-lab__head-bar {
    padding-left: 14px;
    padding-right: 14px;
  }
  .lab-folder-rail {
    padding-left: 12px;
    padding-right: 12px;
  }
  .lab-mode {
    padding: 7px 11px 8px;
    font-size: 0.81rem;
    gap: 5px;
  }
  .lab-mode.is-active {
    padding-top: 8px;
    padding-bottom: 9px;
  }
  .lab-datasets {
    gap: 4px;
  }
  .lab-ds {
    padding: 4px 8px;
    font-size: 0.79rem;
  }
  .lab-chart-title {
    white-space: normal;
  }
  .pond-lab__stage,
  .pond-lab__controls {
    padding: 14px 16px;
  }
  .lab-readout-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .lab-readout-strip.is-four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lab-metric-pill {
    border-bottom: 0.5px solid rgba(17, 18, 20, 0.08);
  }
}
