/* ---- Design tokens (Claude-like light) -------------------------------- */
:root {
  color-scheme: light;
  --bg: #faf9f5;
  --bg-soft: #f4f3ee;
  --fg: #141413;
  --fg-muted: #5c5b57;
  --rule: #e8e6dc;
  --border: #e5e4df;
  --accent: #2b5d8b;
  --accent-soft: rgba(43, 93, 139, 0.10);
  --accent-bright: #2b5d8b;
  --radius: 7px;
  --shadow-media: 0 4px 20px rgba(20, 20, 19, 0.08);
  --serif: "Source Serif 4", Charter, "Iowan Old Style", Georgia, serif;
  --sans: var(--serif);
  --container: 1200px;
  --pad-y: clamp(44px, 5vw, 72px);
  --t-fast: 150ms ease;
}

/* ---- Reset ------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body { overflow-x: hidden; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; }
ol, ul { padding: 0; margin: 0; list-style: none; }
a { color: var(--accent-bright); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---- Layout primitives ------------------------------------------------ */
.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.container.narrow {
  max-width: 900px;
}
.section {
  padding-block: var(--pad-y);
  border-top: 1px solid var(--rule);
  scroll-margin-top: 64px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--fg-muted);
  margin: 0 0 14px;
}
.serif-h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.6rem, 2.4vw, 2.05rem);
  line-height: 1.25;
  letter-spacing: -0.005em;
  margin: 0 0 12px;
  color: var(--fg);
}
.section-subtitle {
  color: var(--fg-muted);
  margin: 0 0 36px;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.65;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.section-subtitle-tight {
  margin-bottom: 20px;
}
.section-header { margin-bottom: 32px; }
.subsection-title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 36px 0 16px;
  color: var(--fg);
}
.prose {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.75;
  color: var(--fg);
  margin: 0 0 18px;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.muted { color: var(--fg-muted); }

/* ---- Sticky site nav -------------------------------------------------- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  overflow: visible;
  background: rgba(250, 249, 245, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-100%);
  transition: transform 240ms ease;
}
.site-nav.visible,
.site-nav.is-open {
  transform: translateY(0);
}
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 52px;
  min-width: 0;
  position: relative;
}
.site-nav-brand {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--fg);
  white-space: nowrap;
}
.site-nav-brand:hover {
  color: var(--accent-bright);
  text-decoration: none;
}
.site-nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  padding: 10px 8px;
  border: 1px solid var(--rule);
  border-radius: 8px;
  background: transparent;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}
.site-nav-toggle:hover {
  border-color: var(--fg-muted);
}
.site-nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--fg);
  border-radius: 1px;
  transition: transform 200ms ease, opacity 200ms ease;
}
.site-nav.is-open .site-nav-toggle span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.site-nav.is-open .site-nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-nav.is-open .site-nav-toggle span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}
.site-nav-links {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  min-width: 0;
}
.site-nav-links::-webkit-scrollbar { display: none; }
.site-nav-links a {
  color: var(--fg-muted);
  font-size: 0.86rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 999px;
  white-space: nowrap;
  transition: color var(--t-fast), background var(--t-fast);
}
.site-nav-links a:hover {
  color: var(--fg);
  text-decoration: none;
}
.site-nav-links a.active {
  color: var(--fg);
  background: var(--accent-soft);
}

/* ---- Hero ------------------------------------------------------------- */
.hero {
  padding-block: clamp(36px, 4vw, 64px) clamp(40px, 5vw, 72px);
}
.title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(1.85rem, 3.6vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.title-logo {
  height: 1.25em;
  width: auto;
  flex-shrink: 0;
}
.title-lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  font-weight: 500;
  color: var(--fg-muted);
  line-height: 1.35;
  margin: 0 0 28px;
}
.venue-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.venue-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px 5px 10px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
a.venue-pill {
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
a.venue-pill-main:hover { background: #234d74; }
a.venue-pill-ws:hover { border-color: var(--fg-muted); box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08); }
.venue-pill svg {
  width: 15px;
  height: 15px;
  flex: none;
}
.venue-pill-main {
  background: var(--accent);
  color: #fff;
}
.venue-pill-ws {
  background: #fff;
  color: var(--fg);
  border: 1px solid #d9d7cf;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.venue-pill-ws svg { color: #c08a1e; }
.venue-pill-detail {
  color: var(--fg-muted);
  font-weight: 500;
}
@media (max-width: 480px) {
  .venue-pill { font-size: 0.85rem; padding: 5px 11px 5px 9px; gap: 6px; }
  .venue-pill svg { width: 13px; height: 13px; }
}
.authors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 28px;
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.authors li { display: inline; }
.authors sup { font-size: 0.68em; color: var(--fg-muted); margin-left: 2px; letter-spacing: 0.02em; }
.authors .author-name {
  font-weight: 500;
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.authors .author-name:hover {
  color: var(--accent-bright);
  border-bottom-color: var(--accent-bright);
  text-decoration: none;
}
.affil {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  color: var(--fg-muted);
  font-size: 0.92rem;
  margin: 0 0 8px;
}
.affil a { color: var(--fg-muted); }
.affil a:hover { color: var(--accent-bright); }
.affil sup { font-size: 0.85em; }
.affil-sep { color: var(--rule); }
.hero-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
  color: var(--fg-muted);
  font-size: 0.82rem;
  margin: 0 0 24px;
}

.logos {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 40px;
  margin: 0 0 32px;
  flex-wrap: wrap;
}
.logos a {
  display: flex;
  align-items: center;
  line-height: 0;
}
.logos img {
  height: 50px;
  width: auto;
  object-fit: contain;
  display: block;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 12px;
  align-items: center;
  margin-bottom: 48px;
}
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--fg);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 9px 18px 9px 15px;
  box-shadow: 0 1px 2px rgba(20, 20, 19, 0.05);
  transition: border-color var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.action:hover {
  text-decoration: none;
  border-color: var(--fg-muted);
  box-shadow: 0 2px 8px rgba(20, 20, 19, 0.08);
}
.action svg {
  color: var(--fg-muted);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: color var(--t-fast);
}
.action.primary {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}
.action.primary svg { color: var(--bg); }
.action.primary:hover { background: #33322f; border-color: #33322f; }

.teaser {
  margin: 0 auto;
  padding: 0;
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.teaser img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
}
.tldr {
  margin-top: 16px;
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.65;
  color: var(--fg-muted);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
  width: 100%;
}
.tldr b { color: var(--fg); font-weight: 600; }

.key-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
  margin: 32px auto 0;
}
.key-result {
  padding: 22px 24px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.key-result-number {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 600;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.key-result-number span {
  display: block;
  margin-bottom: 6px;
  color: var(--fg-muted);
  font-size: 0.73rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.key-result h2 {
  margin: 0 0 6px;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.35;
}
.key-result > p:last-child {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* ---- Figure plates ---------------------------------------------------- */
.figure-plate {
  margin: 0;
  padding: clamp(14px, 2vw, 26px);
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-media);
  display: flex;
  flex-direction: column;
}
.figure-plate img {
  width: 100%;
  height: auto;
  display: block;
  margin-block: auto;
}
.pipeline-plate {
  margin-top: 0;
}
.figure-caption {
  margin: 16px 2px 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.7;
  color: var(--fg-muted);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.delta-encoder-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 56px;
}
.delta-encoder-text p {
  margin: 0 0 16px;
  color: var(--fg-muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.delta-encoder-text p:last-child { margin-bottom: 0; }
.delta-encoder-text b { color: var(--fg); font-weight: 600; }

/* ---- Ghost button / BibTeX -------------------------------------------- */
.ghost-btn {
  border: 1px solid var(--rule);
  background: transparent;
  color: var(--fg-muted);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.86rem;
  font-weight: 500;
  transition: border-color var(--t-fast), color var(--t-fast), background var(--t-fast);
}
.ghost-btn:hover {
  border-color: var(--fg-muted);
  color: var(--fg);
}
.bibtex-block { position: relative; }
.bibtex-block pre {
  margin: 0;
  padding: 22px 24px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  font-family: var(--serif);
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--fg);
  white-space: pre;
  max-width: 100%;
  box-sizing: border-box;
}
.bibtex-block pre code {
  font-family: inherit;
  color: inherit;
  background: transparent;
  padding: 0;
  border: 0;
}
.bibtex-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--bg);
}
.bibtex-copy.copied {
  color: var(--accent-bright);
  border-color: var(--accent);
}

/* ---- Scroll reveal ---------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  }
  .reveal.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* ---- Footer ----------------------------------------------------------- */
footer {
  border-top: 1px solid var(--rule);
  padding-block: 36px 56px;
}
.footer-line {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--fg-muted);
}
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: baseline;
}
.footer-legal a {
  color: var(--fg-muted);
}
.footer-legal a:hover {
  color: var(--fg);
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 900px) {
  .benchmark-btn-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .benchmark-btn-group .benchmark-btn:nth-child(11),
  .benchmark-btn-group .benchmark-btn:nth-child(12),
  .benchmark-btn-group .benchmark-btn:nth-child(13) {
    grid-column: auto;
  }
  .delta-encoder-row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 36px;
  }
  .container { padding-inline: 16px; }
}

@media (max-width: 1100px) {
  .efficiency-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 700px) {
  .efficiency-grid { grid-template-columns: 1fr; }
  .efficiency-panel { padding-inline: 16px; }
  .efficiency-grid .efficiency-chart-container { height: 340px; }
}

@media (max-width: 1100px) {
  .site-nav-toggle { display: flex; }
  .site-nav-inner { position: relative; }
  .site-nav-links {
    display: none;
    position: absolute;
    top: 52px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px 16px 16px;
    background: rgba(250, 249, 245, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--rule);
    overflow: visible;
  }
  .site-nav.is-open .site-nav-links { display: flex; }
  .site-nav-links a {
    padding: 12px 14px;
    border-radius: 8px;
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .key-results { gap: 10px; }
  .key-result { padding: 16px; }
  .hero {
    padding-block: 28px 36px;
  }
  .title {
    font-size: clamp(1.7rem, 6vw, 2.15rem);
    gap: 12px;
  }
  .title-lead {
    font-size: clamp(1rem, 3.4vw, 1.2rem);
    white-space: normal;
  }
  .authors {
    font-size: 0.95rem;
    gap: 4px 16px;
  }
  .affil { font-size: 0.86rem; }
  .hero-notes { font-size: 0.76rem; }
  .serif-h2 { font-size: clamp(1.35rem, 4vw, 1.7rem); }
  .prose, .section-subtitle, .tldr, .figure-caption {
    text-align: start;
    hyphens: none;
  }
  .section { padding-block: 36px; }

  .actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }
  .action { font-size: 0.92rem; }

  .benchmark-btn-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .benchmark-btn-group .benchmark-btn:nth-child(11),
  .benchmark-btn-group .benchmark-btn:nth-child(12),
  .benchmark-btn-group .benchmark-btn:nth-child(13) {
    grid-column: auto;
  }
  .benchmark-btn {
    padding: 6px 8px;
    font-size: 0.78rem;
    white-space: normal;
    line-height: 1.25;
    min-height: 2.4em;
  }


  .benchmark-chart-container,
  #scalingChartContainer {
    height: 320px;
    max-width: 100%;
  }
  .logos { gap: 20px; }
  .logos img { height: 36px; }
  .figure-plate { padding: 10px; }
  .action { min-width: 0; }
}

@media (max-width: 600px) {
  .benchmark-btn-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px 4px;
  }
  .key-results { grid-template-columns: 1fr; max-width: 480px; }
  .key-result { padding: 18px 20px; }
  .benchmark-chart-container,
  #scalingChartContainer {
    height: 300px;
  }
}

@media (max-width: 480px) {
  .benchmark-btn {
    padding: 6px 4px;
    font-size: 0.72rem;
  }
  body { font-size: 15.5px; }
  .container { padding-inline: 12px; }
  .hero { padding-block: 24px 28px; }
  .title { font-size: clamp(1.6rem, 8vw, 2rem); gap: 10px; }
  .title-logo { height: 1.1em; }
  .title-lead { font-size: 0.95rem; }
  .authors { font-size: 0.88rem; gap: 2px 12px; }
  .affil { font-size: 0.8rem; }
  .serif-h2 { font-size: 1.28rem; }
  .prose { font-size: 0.95rem; }
  .section { padding-block: 28px; scroll-margin-top: 56px; }

  .action { font-size: 0.86rem; padding: 8px 12px; }

  .benchmark-chart-container,
  #scalingChartContainer {
    height: 280px;
  }

  .bibtex-copy {
    position: static;
    margin-bottom: 12px;
  }
  .bibtex-block pre {
    padding: 14px 12px;
    font-size: 0.72rem;
  }
  .logos { gap: 16px; }
  .logos img { height: 28px; }
  .footer-legal {
    flex-direction: column;
    gap: 6px;
  }
  .footer-legal .affil-sep { display: none; }
}

@media (max-width: 375px) {
  .benchmark-btn {
    padding: 5px 3px;
    font-size: 0.68rem;
  }
  .container { padding-inline: 10px; }
  .title { font-size: 1.5rem; }
  .title-lead { font-size: 0.88rem; }
  .authors { font-size: 0.8rem; }
  .affil, .hero-notes { font-size: 0.74rem; }
  .serif-h2 { font-size: 1.18rem; }
  .benchmark-chart-container,
  #scalingChartContainer {
    height: 240px;
  }
  .bibtex-block pre { font-size: 0.64rem; padding: 10px 8px; }
  .logos { gap: 12px; }
  .logos img { height: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* ---- CrossOver additions ---------------------------------------------- */
.key-claim {
  color: var(--accent);
  font-weight: 600;
}
.term-modality {
  color: var(--fg);
  font-weight: 600;
}

/* Video embed */
.video-plate {
  margin: 0;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-media);
}
.video-plate iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Side-by-side figure + text (inference pipeline) */
.split-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 56px;
}
.split-text h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
  font-weight: 600;
}
.split-text p {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.7;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.split-text b { color: var(--fg); font-weight: 600; }

/* Results carousel */
.carousel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-media);
  padding: clamp(14px, 2vw, 26px);
}
.carousel-viewport {
  overflow: hidden;
  max-width: 620px;
  margin: 0 auto;
}
.carousel-track {
  display: flex;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-slide {
  flex: 0 0 100%;
  margin: 0;
}
.carousel-slide img {
  width: 100%;
  height: auto;
}
.carousel-slide figcaption {
  margin-top: 12px;
  text-align: center;
  color: var(--fg-muted);
  font-size: 0.92rem;
  font-weight: 500;
}
.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 16px;
}
.carousel-arrow {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-size: 1.35rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--t-fast), opacity var(--t-fast);
}
.carousel-arrow:hover:not(:disabled) { border-color: var(--fg-muted); }
.carousel-arrow:disabled { opacity: 0.35; cursor: default; }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--rule);
  transition: background var(--t-fast), width var(--t-fast);
}
.carousel-dot.is-active {
  background: var(--fg);
  width: 22px;
}

@media (max-width: 900px) {
  .split-row {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 36px;
  }
}
@media (max-width: 768px) {
  .split-text p { text-align: start; hyphens: none; }
  .carousel { padding: 10px; }
}

/* Teaser GIF has a white background: blend it into the page colour */
.teaser-transparent img {
  mix-blend-mode: multiply;
  border-radius: 0;
}

.carousel-slide figcaption.caption-failure {
  color: #c0392b;
  font-weight: 600;
}

/* Six resource buttons: two per row on small screens so labels fit */
@media (max-width: 600px) {
  .actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.venue-pill-ws svg { color: var(--fg-muted); }
.venue-pill { white-space: nowrap; }

/* Transparent figures: no white card, white image backgrounds blend into the page */
.figure-plate,
.carousel {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}
.figure-plate img,
.carousel-slide img {
  mix-blend-mode: multiply;
}
.carousel-viewport { max-width: 1000px; }
.carousel-nav { margin-top: 10px; }
/* The sliding track's transform isolates blending, so give it the page colour to multiply against */
.carousel-track { background: var(--bg); }
.carousel-track { align-items: flex-start; }
.carousel-viewport { transition: height 450ms cubic-bezier(0.22, 1, 0.36, 1); }
@media (max-width: 360px) {
  .venue-pill { white-space: normal; border-radius: 12px; }
}
/* Each slide needs the backdrop: the track box only spans the first slide */
.carousel-slide { background: var(--bg); }
.venue-row-after { margin: -14px 0 28px; }
.venue-pill-small { font-size: 0.8rem; padding: 3px 11px 3px 9px; gap: 6px; box-shadow: none; }
.venue-pill-small svg { width: 12px; height: 12px; }
.logos img.logo-wide { height: 28px; }
@media (max-width: 768px) { .logos img.logo-wide { height: 22px; } }
@media (max-width: 480px) { .logos img.logo-wide { height: 17px; } }
@media (max-width: 900px) {
  .split-row .figure-plate { max-width: 560px; width: 100%; margin: 0 auto; }
}

/* Whole page in Source Serif 4, matching sayands.github.io */
:root { --display: var(--serif); }
/* Medium weight reads heavy in a sans; use regular for running text */
.prose, .section-subtitle, .tldr, .figure-caption, .split-text p, .affil, .hero-notes { font-weight: 400; }
.title,
.serif-h2,
.subsection-title,
.split-text h3,
.site-nav-brand {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.005em;
}

/* One colour for all running text */
:root { --fg-body: #45443f; }
.prose, .section-subtitle, .tldr, .figure-caption, .split-text p {
  color: var(--fg-body);
}

/* Title logo: about the height of the capitals, not taller than the text */
.title-logo, .title .title-logo { height: 0.95em; }

/* ---- GuideFlow3D additions --------------------------------------------- */
/* Logo doubles as the "G" of GuideFlow3D */
.title-word { display: inline-flex; align-items: baseline; }
.title-g { height: 0.98em; width: auto; align-self: center; margin-right: 0.02em; transform: translateY(-0.02em); }

/* Teaser video has a white background: blend into the page */
.teaser video { width: 100%; height: auto; display: block; mix-blend-mode: multiply; }

/* Dark scene-editing video */
.media-plate {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  box-shadow: var(--shadow-media);
}
.media-plate video { width: 100%; height: auto; display: block; }

/* Results carousels */
.results-block { margin-bottom: 8px; }
.results-hint { margin: -20px 0 18px; color: var(--fg-muted); font-size: 0.9rem; }

/* Concurrent works */
.works-list { display: grid; gap: 12px; max-width: 900px; }
.works-list li { color: var(--fg-body); font-size: 1rem; line-height: 1.65; }
.works-list a { font-weight: 600; }

/* Notes (ethics, acknowledgements) */
.note-title { margin: 0 0 6px; font-weight: 600; font-size: 1rem; color: var(--fg); }
.note + .note { margin-top: 24px; }

/* The ENPC logo is portrait: give it more height so its text stays legible */
.logos img.logo-tall { height: 66px; }
@media (max-width: 768px) { .logos img.logo-tall { height: 48px; } }
@media (max-width: 480px) { .logos img.logo-tall { height: 38px; } }
