@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --background: #0b1013;
  --panel: #11191e;
  --line: #29343b;
  --ink: #f4f7f6;
  --muted: #b3c0c5;
  --quiet: #9baab2;
  --accent: #ccfa88;
  --accent-ink: #172711;
  --display: "Space Grotesk", "Arial", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--background); color: var(--ink); font: 1rem/1.6 system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; }
button { cursor: pointer; }
button:disabled, select:disabled { cursor: default; opacity: .55; }
img, video { display: block; max-width: 100%; }
h1, h2, h3, p, figure, fieldset { margin: 0; }
fieldset { padding: 0; border: 0; min-width: 0; }
h1, h2, h3 { font-family: var(--display); line-height: 1.03; letter-spacing: -.045em; }
em { color: var(--accent); font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 96px, 1344px); margin-inline: auto; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: fixed; z-index: 20; top: 10px; left: 10px; padding: 12px 18px; background: var(--accent); color: var(--accent-ink); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgb(11 16 19 / .9);
  border-bottom: 1px solid rgb(191 223 222 / .12);
  backdrop-filter: blur(18px);
}
.nav { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; }
.brand { display: inline-flex; gap: 10px; align-items: center; width: fit-content; font: 700 1rem/1.1 var(--display); letter-spacing: -.035em; }
.brand img { flex: none; }
.nav nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 45px); }
.nav nav a, .footer > a:not(.brand) { color: var(--muted); font-size: .9rem; }
.nav nav a:hover, .footer > a:hover { color: var(--accent); }
.nav-paper { justify-self: end; }

.button, .icon-button, .play-button {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .62rem 1.02rem;
  font-weight: 650;
  font-size: .88rem;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.button-primary, .play-button { color: var(--accent-ink); background: var(--accent); }
.button-primary:hover, .play-button:not(:disabled):hover { background: #defeb6; }
.button-quiet, .icon-button { color: var(--ink); border-color: #45535b; background: rgb(15 22 26 / .67); }
.button-quiet:hover, .icon-button:not(:disabled):hover { background: #233136; border-color: var(--quiet); }
.icon-button { width: 44px; flex: none; padding: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.eyebrow { color: var(--accent); text-transform: uppercase; letter-spacing: .12em; font: 550 .78rem/1.4 var(--mono); }
.lede { color: var(--muted); max-width: 45ch; }

.project-home { --hero-header-height: 73px; }
.project-home .site-header {
  margin-bottom: calc(-1 * var(--hero-header-height));
  background: rgb(8 16 24 / .63);
  border-bottom-color: rgb(233 244 255 / .11);
  backdrop-filter: blur(10px);
}
.project-home .nav { min-height: calc(var(--hero-header-height) - 1px); }
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #08101a;
  border-bottom: 1px solid var(--line);
}
.hero-media {
  position: absolute;
  z-index: -2;
  inset: 0;
  filter: saturate(.86) contrast(1.06);
  background: #171f2b;
}
.hero-media > * {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-media video {
  opacity: 0;
  transition: opacity .55s ease-in-out;
}
.hero-media video[data-visible="true"] { opacity: 1; }
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 48%, rgb(7 15 24 / .66) 0%, rgb(7 15 24 / .45) 36%, transparent 76%),
    linear-gradient(180deg, rgb(7 15 24 / .38), transparent 27%, rgb(7 15 24 / .17) 62%, var(--background) 100%);
}
.hero-inner {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 24px;
  min-height: max(100svh, 34rem);
  padding-block: calc(var(--hero-header-height) + clamp(22px, 4vh, 52px)) clamp(20px, 3.2vh, 40px);
}
.hero-copy {
  align-self: center;
  text-align: center;
  color: #f6f9fb;
  text-shadow: 0 6px 38px rgb(3 12 21 / .70);
}
.hero h1 {
  font-size: clamp(3.2rem, 8.5vw, 8.9rem);
  line-height: .94;
  letter-spacing: -.058em;
  font-weight: 700;
}
.hero h1 em { color: #d7eacd; }
.hero-subtitle {
  margin: clamp(18px, 3vh, 35px) auto 0;
  max-width: 32ch;
  color: #e5edf5;
  font: 500 clamp(1.15rem, 2.25vw, 1.9rem)/1.26 var(--display);
  letter-spacing: -.02em;
  text-wrap: balance;
}
.hero-authors {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px clamp(12px, 2.2vw, 32px);
  margin: clamp(16px, 2.8vh, 28px) 0 0;
  padding: 0;
  list-style: none;
  font: 600 clamp(.95rem, 1.45vw, 1.2rem)/1.35 var(--display);
}
.hero-authors li { white-space: nowrap; }
.hero-authors sup { color: var(--accent); }
.hero .actions {
  justify-content: center;
  gap: 12px;
  margin-top: clamp(22px, 3.5vh, 38px);
  text-shadow: none;
}
.hero .actions .button {
  min-width: 140px;
  min-height: 52px;
  padding-inline: 22px;
  border-radius: 100px;
  font-size: .98rem;
}
.hero .button-quiet, .hero-toggle {
  border-color: rgb(233 244 255 / .44);
  background: rgb(9 17 26 / .60);
  backdrop-filter: blur(12px);
}
.hero .button-quiet:hover, .hero-toggle:hover {
  border-color: rgb(233 244 255 / .78);
  background: rgb(20 39 54 / .82);
}
.hero-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
}
.hero-credit { justify-self: start; color: #dbe7ef; line-height: 1.38; }
.hero-credit strong { display: block; font-family: var(--display); font-weight: 650; }
.hero-credit span { color: #bacad5; font-size: .83rem; }
.hero-credit:hover strong, .hero-explore:hover { color: var(--accent); }
.hero-explore { padding-block: 12px; color: #dbe7ef; font-size: .9rem; }
.hero-controls { display: flex; justify-self: end; align-items: center; gap: 8px; }
.hero-next { padding-inline: 13px; border-radius: 100px; }
.hero-toggle { border-radius: 50%; }
.play-glyph { width: 12px; height: 14px; display: inline-block; background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%); }
[data-playing="true"] .play-glyph { clip-path: polygon(0 0, 33% 0, 33% 100%, 0 100%, 0 0, 67% 0, 100% 0, 100% 100%, 67% 100%, 67% 0); }

.opening-metrics { display: grid; grid-template-columns: 1.4fr 1fr 1fr; border-bottom: 1px solid var(--line); }
.opening-metrics > div { min-width: 0; padding-block: 25px 26px; }
.opening-metrics > div + div { border-left: 1px solid var(--line); padding-left: clamp(21px, 5vw, 70px); }
.opening-metrics strong { display: block; font: 650 clamp(1.65rem, 3.2vw, 3rem)/1 var(--display); letter-spacing: -.055em; }
.opening-metrics strong span { color: var(--accent); margin-left: 3px; }
.opening-metrics p { margin-top: 8px; color: var(--muted); font-size: .9rem; line-height: 1.35; }

.section { padding-block: 99px; }
.section-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: end; margin-bottom: 29px; }
.section-heading h2 { margin-top: 11px; font-size: clamp(2.6rem, 5.7vw, 5.25rem); line-height: .96; letter-spacing: -.065em; }
.section-heading > p { justify-self: end; align-self: end; color: var(--muted); max-width: 39ch; margin-bottom: 3px; }
.teaser-section { padding-bottom: 0; }
.project-teaser { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.project-teaser video { width: 100%; height: auto; aspect-ratio: 16 / 9; background: #090d12; }
.project-teaser figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 17px; font-size: .89rem; color: var(--muted); }
.empty-state { color: var(--muted); min-height: 10rem; display: grid; place-content: center; padding: 1rem; border: 1px solid var(--line); border-radius: 20px; }

.comparison {
  background: radial-gradient(ellipse at 90% 105%, rgb(61 92 70 / .17), transparent 54%), var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(14px, 2.45vw, 34px);
  box-shadow: 0 30px 70px -52px #000;
}
.comparison:fullscreen { border: 0; border-radius: 0; overflow: auto; }
.scene-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(112px, 1fr);
  gap: 9px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #627861 transparent;
  padding: 4px 4px 11px;
  margin: -4px -4px 12px;
}
.scene-tile {
  min-width: 0;
  border: 1px solid #39474d;
  border-radius: 9px;
  background: #172127;
  padding: 3px;
  text-align: left;
  color: var(--muted);
  line-height: 1.2;
  transition: border-color .2s ease, color .2s ease;
}
.scene-tile:hover { border-color: #92a69b; color: var(--ink); }
.scene-tile[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); }
.scene-tile img { width: 100%; height: auto; aspect-ratio: 1.95; object-fit: cover; border-radius: 6px; }
.scene-tile span { display: block; font: 650 .84rem/1.1 var(--display); padding: 8px 5px; }
.comparison-tools { display: flex; justify-content: space-between; align-items: end; gap: 12px; padding-block: 8px 21px; border-bottom: 1px solid var(--line); }
.selects { display: flex; gap: 13px; align-items: end; min-width: 0; }
.selects label { display: grid; gap: 5px; min-width: 0; font-size: .82rem; color: var(--muted); }
select {
  color: var(--ink);
  background: linear-gradient(45deg, transparent 50%, var(--muted) 50%) right 14px center/5px 5px no-repeat,
    linear-gradient(135deg, var(--muted) 50%, transparent 50%) right 9px center/5px 5px no-repeat,
    #192329;
  border: 1px solid #3c4a51;
  border-radius: 8px;
  min-height: 42px;
  max-width: 100%;
  appearance: none;
  padding: .38rem 1.8rem .38rem .7rem;
  cursor: pointer;
  font-size: .88rem;
}
.segmented { display: flex; gap: 3px; border: 1px solid #38474e; border-radius: 10px; background: #0f1518; padding: 3px; }
.segmented button { min-height: 34px; color: var(--muted); background: transparent; border: 1px solid transparent; border-radius: 7px; padding: .2rem .78rem; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.segmented button:hover { color: var(--ink); }
.segmented button[aria-pressed="true"] { color: var(--ink); background: #26363b; border-color: #46565d; }

.clip-info { display: flex; justify-content: space-between; gap: 12px; align-items: end; margin-block: 21px 6px; }
.clip-meta { color: var(--quiet); font: 500 .82rem/1.25 var(--mono); }
.clip-info h3 { font-size: clamp(1.7rem, 4vw, 2.8rem); margin-top: 6px; }
.prompt { color: var(--muted); max-width: 100ch; margin-bottom: 16px; }
.fullscreen { background: #192329; }
.corners {
  display: block;
  width: 16px;
  height: 16px;
  background:
    conic-gradient(from 90deg at 2px 2px, transparent 90deg, currentColor 0) 0 0 / 6px 6px no-repeat,
    conic-gradient(from 180deg at 4px 2px, transparent 90deg, currentColor 0) 100% 0 / 6px 6px no-repeat,
    conic-gradient(from 0deg at 2px 4px, transparent 90deg, currentColor 0) 0 100% / 6px 6px no-repeat,
    conic-gradient(from 270deg at 4px 4px, transparent 90deg, currentColor 0) 100% 100% / 6px 6px no-repeat;
}
.video-grid { display: grid; gap: 9px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.video-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.video-grid.focus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.video-grid.focus .target, .video-grid.focus .sdvg { display: none; }
.video-card { position: relative; min-width: 0; overflow: hidden; border: 1px solid #53626b; border-radius: 10px; background: #080c0f; }
.video-card video { width: 100%; height: auto; aspect-ratio: 832 / 480; object-fit: contain; }
.video-card.ours { border-color: var(--accent); }
.video-label {
  position: absolute; left: 8px; top: 8px;
  padding: 4px 9px;
  background: rgb(10 16 19 / .92);
  border: 1px solid #65767c;
  border-radius: 5px;
  font: 650 .85rem/1.1 var(--display);
  color: #f4f7f6;
  pointer-events: none;
}
.video-card.ours .video-label { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.playback { display: flex; gap: 8px; align-items: center; margin-top: 13px; }
.play-button { min-width: 114px; border: 0; }
.playback .icon-button { font-size: 1.2rem; }
.playback output { min-width: 6.8ch; white-space: nowrap; color: var(--muted); font: 500 .8rem var(--mono); }
#seek {
  flex: 1;
  min-width: 48px;
  appearance: none;
  height: 6px;
  background: linear-gradient(90deg, var(--accent) var(--progress, 0%), #41505a var(--progress, 0%));
  border-radius: 10px;
  margin: 0 9px;
  cursor: pointer;
}
#seek::-webkit-slider-thumb { appearance: none; width: 15px; height: 15px; background: var(--accent); border: 0; border-radius: 100%; }
#seek::-moz-range-thumb { width: 15px; height: 15px; background: var(--accent); border: 0; border-radius: 100%; }
.jump-line { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 12px; margin-top: 15px; color: var(--muted); font-size: .85rem; }
.demo-stills { display: flex; gap: 6px; flex-wrap: wrap; }
.still-time { min-height: 34px; padding: .15rem .56rem; background: #1e292d; border: 1px solid #425354; border-radius: 6px; color: var(--ink); font: 550 .78rem var(--mono); }
.still-time:hover { border-color: var(--accent); color: var(--accent); }
.text-link { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
#demo-permalink { margin-left: auto; }
.play-status { min-height: 1.4em; margin-top: 10px; font-size: .82rem; color: var(--quiet); }
.demo-notes { display: grid; grid-template-columns: 1.2fr 1fr; align-items: start; gap: 18px 34px; padding: 19px 2px 0; color: var(--muted); }
.demo-notes h3 { font-size: 1.02rem; letter-spacing: -.02em; color: var(--ink); margin-bottom: 5px; }
.demo-notes p { font-size: .91rem; }
.source-details { padding: 0 0 0 16px; border-left: 1px solid var(--line); }
.source-details summary, .frame-details summary, .paper-abstract summary { cursor: pointer; color: var(--ink); font-weight: 650; font-size: .93rem; }
.source-details p { margin-top: 8px; }
.source-details ul { list-style: none; margin: 10px 0; padding: 0; }
.source-details li + li { margin-top: 9px; }
.source-details a { color: var(--accent); }
.source-details code { display: block; overflow-wrap: anywhere; font-size: .75rem; }
.frame-details { margin-top: 12px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; }
.frame-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.frame-grid figure { display: grid; gap: 5px; margin-top: 12px; }
.frame-grid figcaption { color: var(--muted); font: 550 .86rem/1.3 var(--mono); }
.frame-grid a { position: relative; border-radius: 6px; overflow: hidden; }
.frame-grid img { width: 100%; height: auto; }
.frame-grid a span { position: absolute; left: 5px; top: 5px; padding: 2px 6px; border-radius: 4px; background: #10181b; color: var(--ink); font-size: .78rem; }
.frame-grid a:last-child span { background: var(--accent); color: var(--accent-ink); }

.method-section { background: #0f171a; border-block: 1px solid #243236; }
.method-layout { display: grid; grid-template-columns: minmax(210px, .36fr) minmax(0, 1fr); gap: 14px; }
.method-tabs { display: grid; align-content: stretch; gap: 8px; }
.method-tabs button { display: grid; align-content: center; gap: 5px; min-width: 0; text-align: left; border: 1px solid #36454b; border-radius: 11px; background: #151e23; color: var(--ink); padding: 14px 18px; }
.method-tabs button:hover { border-color: var(--quiet); }
.method-tabs button[aria-selected="true"] { background: #223021; border-color: #789c54; }
.method-tabs button[aria-selected="true"] strong { color: var(--accent); }
.method-tabs strong { font: 650 1.22rem/1.1 var(--display); }
.method-tabs small { color: var(--muted); font-size: .87rem; line-height: 1.25; }
.method-panel { background: #111c20; border: 1px solid #36474a; border-radius: 15px; padding: clamp(19px, 3vw, 34px); }
.method-panel h3 { margin-top: 24px; font-size: clamp(1.5rem, 3.4vw, 2.6rem); }
.method-panel > p { margin-top: 8px; max-width: 66ch; color: var(--muted); }
.method-panel .component-detail { color: var(--quiet); font-size: .9rem; }
.method-visual { padding: clamp(12px, 2vw, 20px); border: 1px solid #334449; border-radius: 9px; background: #0c1418; }
.chunk-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .86rem; color: var(--muted); }
.chunk-legend span { display: flex; align-items: center; gap: 7px; }
.chunk-legend i { width: 10px; height: 10px; border-radius: 2px; background: #708e99; }
.chunk-legend span:last-child i { background: var(--accent); }
.chunk-track { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 5px; margin-top: 13px; }
.chunk-track i { display: grid; place-content: center; min-height: clamp(27px, 4.4vw, 49px); border: 1px solid #49616c; background: #283d45; border-radius: 4px; font: 600 .92rem var(--mono); color: #d8e7eb; }
.chunk-track .target { border-color: #8bac64; background: #435c38; color: #e5ffc8; }
[data-step="rankpulse"] .chunk-track .signal, [data-step="fusestep"] .chunk-track .resume { background: #d5f9f5; color: #172d2d; border-color: #d5f9f5; }
[data-step="rankpulse"] .chunk-track .burst, [data-step="statebridge"] .chunk-track .burst, [data-step="fusestep"] .chunk-track .burst { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
[data-step="statebridge"] .chunk-track i:nth-child(-n + 4) { border-style: dashed; }
.method-visual p { color: var(--muted); font-size: .86rem; margin-top: 9px; }
.paper-figures { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.paper-figure { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.paper-figure img { width: 100%; height: auto; padding: clamp(8px, 2vw, 24px); border-radius: 15px 15px 0 0; background: #fff; }
.paper-figure figcaption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 18px; padding: 10px clamp(12px, 2vw, 22px); }
.paper-figure h3 { font-size: clamp(1.15rem, 2.4vw, 1.65rem); line-height: 1.14; }
.paper-figure a { display: inline-flex; align-items: center; min-height: 44px; font-size: .9rem; }
.paper-cover { margin-block-start: clamp(24px, 5vw, 64px); }
.paper-cover .paper-cover-image { display: block; border-radius: 15px 15px 0 0; }

.result-panel { display: grid; grid-template-columns: 1.3fr .75fr; gap: 0; background: #131c20; border: 1px solid var(--line); border-radius: 17px; }
.benchmark, .benchmark-context { padding: clamp(18px, 3.4vw, 38px); }
.benchmark h3 { font-size: clamp(1.4rem, 2.9vw, 2.15rem); }
.benchmark figcaption p, .benchmark-context p { color: var(--muted); margin-top: 6px; }
.bar-row { margin-top: 19px; }
.bar-row > div:first-child { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; color: var(--muted); }
.bar-row strong { color: var(--ink); font: 620 .88rem var(--mono); white-space: nowrap; }
.bar-row .bar { height: 7px; background: #2c3941; border-radius: 5px; margin-top: 7px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 5px; width: var(--bar-width); background: #8397a2; }
.bar-row.ours .bar span { background: var(--accent); }
.bar-row.ours span { color: var(--accent); }
.benchmark-context { border-left: 1px solid var(--line); display: grid; align-content: center; gap: 13px; }
.benchmark-context > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px 10px; }
.benchmark-context strong { font: 650 2.15rem/.95 var(--display); letter-spacing: -.07em; }
.benchmark-context > div:first-child strong { color: var(--accent); }
.benchmark-context span, .result-note { color: var(--muted); font-size: .9rem; }
.result-note { margin-top: 12px; }

.paper-section { display: grid; grid-template-columns: 1fr .88fr; gap: 28px; border-top: 1px solid var(--line); padding-top: 48px; }
.paper-section h2 { font-size: clamp(2rem, 5vw, 4.4rem); margin: 9px 0; }
.paper-subtitle { color: var(--muted); max-width: 46ch; margin-bottom: 17px; }
.paper-abstract { margin-top: 14px; }
.paper-abstract p { color: var(--muted); margin-top: 8px; max-width: 62ch; }
.credits { align-self: end; }
.author-line { color: var(--ink); font-size: 1rem; font-weight: 650; }
.author-notes { color: var(--muted); margin-top: 6px; font-size: .875rem; }
.hero .author-notes { color: #e5edf5; }
.affiliations { color: var(--muted); margin-top: 8px; font-size: .88rem; line-height: 1.52; }
sup { font-size: .69em; margin-left: 1px; }
.footer { display: flex; align-items: center; gap: 18px 32px; border-top: 1px solid var(--line); padding-block: 26px 31px; }
.footer .brand { margin-right: auto; }
.demo-main { padding-top: clamp(32px, 7vw, 73px); padding-bottom: 60px; }
.demo-heading { margin-bottom: 23px; }
.demo-heading h1 { font-size: clamp(2.8rem, 7vw, 6rem); margin-top: 7px; line-height: .92; letter-spacing: -.075em; }
.demo-heading .lede { margin-top: 12px; max-width: 70ch; }
.demo-teaser-link { margin-top: 8px; }

@media (max-width: 1000px) {
  .wrap { width: calc(100% - 56px); }
  .video-grid, .video-grid[data-count="3"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding-block: 73px; }
  .teaser-section { padding-bottom: 0; }
}
@media (max-width: 680px) {
  html { scroll-padding-top: 112px; }
  .wrap { width: calc(100% - 36px); }
  .nav { min-height: auto; grid-template-columns: 1fr auto; gap: 7px 10px; padding-block: 9px 8px; }
  .nav nav { grid-column: 1 / -1; grid-row: 2; gap: 18px; }
  .nav nav a { padding: 3px 0; font-size: .83rem; }
  .nav-paper { grid-column: 2; grid-row: 1; min-height: 36px; font-size: .78rem; padding: .42rem .6rem; }
  .brand img { width: 28px; height: 28px; }
  .project-home { --hero-header-height: 90px; }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 5rem); }
  .hero h1 em { display: block; }
  .hero-subtitle { max-width: 29ch; font-size: clamp(1.02rem, 4.3vw, 1.4rem); }
  .hero .actions { gap: 6px; }
  .hero .actions .button { min-width: 0; min-height: 48px; padding-inline: clamp(8px, 5vw - 8px, 16px); font-size: .92rem; }
  .hero-footer { grid-template-columns: minmax(0, 1fr) auto; }
  .hero-explore { display: none; }
  .opening-metrics { grid-template-columns: 1.22fr .8fr 1fr; }
  .opening-metrics > div { padding-block: 16px; padding-right: 7px; }
  .opening-metrics > div + div { padding-left: clamp(6px, 2vw, 16px); }
  .opening-metrics strong { font-size: clamp(1.03rem, 5.3vw, 1.67rem); }
  .opening-metrics p { font-size: clamp(.7rem, 2.6vw, .84rem); margin-top: 6px; }
  .section { padding-block: 57px; }
  .teaser-section { padding-bottom: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 11px; margin-bottom: 19px; }
  .section-heading h2 { font-size: clamp(2.4rem, 10vw, 4rem); }
  .section-heading > p { justify-self: start; max-width: 54ch; }
  .comparison { border-radius: 14px; }
  .comparison-tools { flex-wrap: wrap; padding-bottom: 13px; }
  .selects { width: 100%; gap: 8px; }
  .selects label { flex: 1; }
  .selects select { font-size: .83rem; width: 100%; }
  .clip-info { margin-top: 15px; }
  .clip-meta { font-size: .73rem; }
  .video-label { font-size: .78rem; top: 4px; left: 4px; padding: 3px 5px; }
  .video-grid { gap: 6px; }
  .playback { display: grid; grid-template-columns: auto auto minmax(16px, 1fr) auto; gap: 6px; }
  .playback #seek { grid-column: 1 / 4; grid-row: 2; width: calc(100% - 13px); margin: 8px 5px; }
  .playback .rate-label { grid-column: 4; grid-row: 1; }
  .playback output { grid-column: 4; grid-row: 2; justify-self: end; text-align: right; }
  .play-button { min-width: 100px; }
  .jump-line { align-items: start; gap: 7px; }
  #demo-permalink { margin-left: 0; }
  .demo-notes, .method-layout, .result-panel, .paper-section { grid-template-columns: 1fr; }
  .frame-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .source-details { border: 0; padding: 0; }
  .method-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
  .method-tabs button { padding: 9px 5px; min-height: 44px; text-align: center; }
  .method-tabs strong { font-size: clamp(.77rem, 3.15vw, 1.02rem); }
  .method-tabs small { display: none; }
  .benchmark-context { border-left: 0; border-top: 1px solid var(--line); }
  .paper-section { gap: 22px; }
  .footer { flex-wrap: wrap; gap: 12px 18px; }
  .footer .brand { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
