:root {
  --bg: #f4f1ea;
  --bg-soft: #efe8dc;
  --surface: rgba(255, 255, 255, 0.8);
  --surface-strong: #ffffff;
  --ink: #111827;
  --ink-soft: #465063;
  --ink-mute: #6e7686;
  --line: rgba(17, 24, 39, 0.1);
  --accent: #0ea5b7;
  --accent-strong: #0b7285;
  --accent-glow: rgba(14, 165, 183, 0.16);
  --signal: #f59e0b;
  --night: #08111f;
  --night-soft: #0e1a2d;
  --night-card: rgba(16, 28, 47, 0.86);
  --radius-sm: 16px;
  --radius-md: 24px;
  --radius-lg: 36px;
  --shadow-sm: 0 10px 20px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 24px 48px rgba(15, 23, 42, 0.12);
  --shadow-lg: 0 36px 80px rgba(8, 17, 31, 0.22);
  --container: min(1200px, calc(100vw - 40px));
  --transition: 220ms ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

main section[id] {
  scroll-margin-top: 28px;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(14, 165, 183, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.14), transparent 24%),
    linear-gradient(180deg, #f7f3eb 0%, #f4f1ea 18%, #efe8dc 100%);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  display: block;
  max-width: 100%;
}

figure {
  margin: 0;
}

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

button {
  font: inherit;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.teaser-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100svh;
  padding: 8px 10px 12px;
  background:
    radial-gradient(circle at 18% 20%, rgba(127, 191, 0, 0.18), transparent 28%),
    radial-gradient(circle at 82% 18%, rgba(161, 214, 71, 0.12), transparent 24%),
    radial-gradient(circle at center, rgba(255, 255, 255, 0.04), transparent 54%),
    linear-gradient(180deg, #121912 0%, #1b2419 46%, #273024 100%);
}

.teaser-stage {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  width: min(calc((100svh - 34px) * 16 / 9), calc(100vw - 14px));
  height: min(calc(100svh - 34px), calc((100vw - 14px) * 9 / 16));
  border: 2px solid rgba(127, 191, 0, 0.88);
  border-radius: 32px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 28px 80px rgba(8, 11, 9, 0.22);
}

.teaser-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at center, rgba(5, 11, 20, 0.04), rgba(5, 11, 20, 0.18)),
    linear-gradient(180deg, rgba(5, 11, 20, 0.04), rgba(5, 11, 20, 0.14));
  pointer-events: none;
}

.teaser-grid {
  position: relative;
  z-index: 0;
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 0;
}

.teaser-tile {
  position: relative;
  overflow: hidden;
  background: #0a121f;
}

.teaser-tile::after,
.teaser-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 11, 20, 0.08), rgba(5, 11, 20, 0.26));
  pointer-events: none;
}

.teaser-tile video,
.teaser-overlay video {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center center;
  object-fit: cover;
}

.teaser-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  overflow: hidden;
  width: min(68%, 900px);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(127, 191, 0, 0.92);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(5, 11, 20, 0.24);
}

.teaser-overlay::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 2;
  border: 1px solid rgba(127, 191, 0, 0.7);
  border-radius: 16px;
  pointer-events: none;
}

.teaser-overlay-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 26px 24px;
  text-align: center;
  background: linear-gradient(180deg, rgba(5, 11, 20, 0.16), rgba(5, 11, 20, 0.58));
}

.teaser-kicker {
  margin: 0;
  color: rgba(239, 245, 255, 0.9);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.teaser-title {
  font-size: clamp(3.2rem, 6vw, 5.2rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: #ffffff;
}

.teaser-title-accent {
  color: #7fbf00;
}

.teaser-tagline {
  max-width: 760px;
  margin: 0;
  color: rgba(239, 245, 255, 0.92);
  font-size: clamp(1rem, 1.7vw, 1.3rem);
  font-weight: 500;
  line-height: 1.3;
}

.teaser-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 8px;
}

.teaser-actions .button-dark {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 17, 27, 0.72);
}

.teaser-scroll {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(239, 245, 255, 0.78);
  font-size: 0.88rem;
  backdrop-filter: blur(12px);
}

.hero-section {
  position: relative;
  overflow: clip;
  margin-top: 0;
  padding: 108px 0 88px;
  background:
    radial-gradient(circle at 15% 18%, rgba(127, 191, 0, 0.12), transparent 18%),
    radial-gradient(circle at 88% 14%, rgba(14, 165, 183, 0.12), transparent 18%),
    linear-gradient(180deg, #ffffff 0%, #fbfaf6 62%, #f3eee3 100%);
  color: var(--ink);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 88%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: start;
}

.eyebrow,
.kicker,
.stage-tag {
  font-family: "Space Grotesk", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
}

.eyebrow {
  margin: 0 0 18px;
  color: #7fbf00;
  text-align: center;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-copy {
  max-width: 1100px;
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  max-width: 1180px;
  margin: 0 auto 18px;
  font-size: clamp(2.55rem, 5.2vw, 4.7rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.hero-title-accent {
  color: #7fbf00;
}

.hero-title-rest {
  color: #3a3d45;
}

.hero-summary {
  max-width: 820px;
  margin: 0 auto 28px;
  color: #596273;
  font-size: 1.03rem;
}

.author-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 30px;
}

.author-line {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
}

.author-name {
  color: #3f4958;
  font-size: 1.15rem;
  font-weight: 500;
}

.author-affiliations {
  display: grid;
  gap: 6px;
  margin: -8px 0 30px;
}

.author-affiliations p {
  margin: 0;
  color: #596273;
  font-size: 0.98rem;
}

.hero-actions,
.paper-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-actions {
  justify-content: center;
}

.hero-note-label {
  display: inline-block;
  margin-bottom: 10px;
  color: #7fbf00;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-pipeline-header {
  margin: 56px auto 8px;
  text-align: center;
}

.hero-pipeline-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.hero-pipeline {
  width: calc(100% + 48px);
  max-width: 1248px;
  margin: 0 -24px 2px;
}

.hero-pipeline img {
  width: 100%;
  height: auto;
}

.hero-media-header {
  margin: 0 auto 10px;
  text-align: center;
}

.hero-media-header p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: var(--night);
  background: linear-gradient(135deg, #7de8f4 0%, #ffd39f 100%);
  box-shadow: 0 18px 30px rgba(7, 19, 34, 0.25);
}

.button-secondary {
  color: #eef5ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.button-dark {
  color: #ffffff;
  background: #3a3a3c;
  box-shadow: 0 10px 20px rgba(58, 58, 60, 0.2);
}

.button-dark:hover {
  background: #2f3135;
}

.button-ghost {
  color: #3a3d45;
  background: rgba(58, 58, 60, 0.08);
  border: 1px solid rgba(58, 58, 60, 0.12);
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0;
}

.metric-card {
  padding: 16px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.84);
}

.metric-card strong {
  display: block;
  margin-bottom: 4px;
  font-size: 1.35rem;
  color: var(--ink);
}

.metric-card span {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.hero-media {
  position: relative;
  max-width: 1180px;
  margin: 22px auto 0;
  min-height: auto;
}

.hero-panel {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.hero-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-panel-float {
  position: static;
  width: 100%;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #ffffff;
}

.hero-panel-overview {
  max-width: 980px;
  margin: 0 auto;
  border: 1px solid rgba(17, 24, 39, 0.08);
  background: #ffffff;
}

.hero-panel-overview video {
  height: auto;
  object-fit: contain;
}

.hero-media-footer {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 18px;
  margin-top: 8px;
}

.section-shell {
  padding: 88px 0;
}

.section-compact {
  padding-top: 64px;
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0));
}

.section-soft {
  background:
    radial-gradient(circle at top left, rgba(255, 211, 159, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(248, 244, 236, 0.9) 0%, rgba(255, 255, 255, 0.92) 36%, rgba(246, 249, 252, 0.9) 100%);
  box-shadow:
    inset 0 1px 0 rgba(17, 24, 39, 0.04),
    inset 0 -1px 0 rgba(17, 24, 39, 0.04);
}

.section-dark {
  color: #eff5ff;
  background:
    radial-gradient(circle at top right, rgba(110, 231, 242, 0.08), transparent 18%),
    linear-gradient(180deg, #08111f 0%, #0e1a2d 100%);
}

.section-paper {
  padding-bottom: 110px;
}

.section-paper .container {
  display: grid;
  gap: 20px;
}

.section-paper .section-heading,
.section-paper .paper-links,
.section-paper .bibtex-card {
  max-width: 1040px;
}

.section-paper .paper-links {
  margin-top: -4px;
}

.section-paper .button-secondary {
  color: #3a3d45;
  background: rgba(58, 58, 60, 0.08);
  border: 1px solid rgba(58, 58, 60, 0.12);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 32px;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent-strong);
}

.section-dark .kicker {
  color: #8ce5f3;
}

.section-heading h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4vw, 3.6rem);
  color: inherit;
}

.section-heading p,
.stage-card p,
.insight-card p,
.callout-card p,
.media-card figcaption {
  margin: 0;
  color: var(--ink-soft);
}

.section-dark .section-heading p,
.section-dark .callout-card p {
  color: rgba(239, 245, 255, 0.72);
}

.overview-grid,
.stage-grid,
.analysis-grid,
.result-callouts {
  display: grid;
  gap: 18px;
}

.content-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.content-list a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-weight: 700;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition), border-color var(--transition), background var(--transition);
}

.content-list a:hover {
  transform: translateY(-2px);
  border-color: rgba(14, 165, 183, 0.3);
  background: #ffffff;
}

.content-sidebar-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.34fr) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.content-sidebar {
  position: sticky;
  top: 24px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow-sm);
}

.content-sidebar-label {
  margin: 0 0 14px;
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.content-sidebar a {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 8px;
  color: var(--ink);
  transition: color var(--transition), transform var(--transition);
}

.content-sidebar a + a {
  border-top: 1px solid var(--line);
}

.content-sidebar a:hover {
  transform: translateX(2px);
  color: var(--accent-strong);
}

.content-sidebar-index {
  min-width: 28px;
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.content-sidebar-text {
  font-weight: 700;
  line-height: 1.35;
}

.content-main {
  display: grid;
  gap: 24px;
}

.content-sidebar-copy {
  margin: 0;
  max-width: 760px;
  color: var(--ink-soft);
  font-size: 1rem;
}

.overview-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.insight-card,
.stage-card,
.media-card,
.callout-card,
.bibtex-card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.insight-card::before,
.stage-card::before,
.callout-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  background: linear-gradient(90deg, #7de8f4 0%, #ffd39f 100%);
  opacity: 0.9;
}

.insight-index {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
}

.insight-card h3,
.stage-card h3,
.callout-card strong,
.bibtex-card h3 {
  margin-bottom: 12px;
}

.insight-card h3,
.stage-card h3,
.bibtex-card h3 {
  font-size: 1.42rem;
}

.feature-figure {
  margin: 0 0 28px;
  padding: 18px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.feature-figure-plain {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.feature-figure img,
.media-card img {
  border-radius: 20px;
}

.feature-figure-plain img {
  border-radius: 0;
}

.feature-figure figcaption,
.media-card figcaption {
  margin-top: 14px;
  font-size: 0.95rem;
}

.stage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stage-tag {
  margin: 0 0 14px;
  color: var(--signal);
}

.media-grid {
  display: grid;
  gap: 20px;
}

.media-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.video-showcase {
  display: grid;
  gap: 20px;
}

.featured-video-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--shadow-md);
}

.featured-video-card video,
.video-card video {
  display: block;
  width: 100%;
  border-radius: 22px;
  background: #050b14;
  box-shadow: var(--shadow-sm);
}

.featured-video-card figcaption {
  margin-top: 14px;
  color: var(--ink-soft);
}

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

.video-grid-recovery {
  margin-top: 24px;
}

.video-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.video-card-copy {
  margin-bottom: 14px;
}

.video-label {
  margin: 0 0 8px;
  color: var(--accent-strong);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.video-card h3 {
  margin-bottom: 8px;
  font-size: 1.35rem;
}

.video-card p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.media-card {
  padding: 18px;
}

.media-card-plain {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.media-card-plain img {
  border-radius: 0;
}

.media-card-hardware img {
  display: block;
  width: min(100%, 980px);
  margin: 0 auto;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.section-dark .feature-figure,
.section-dark .callout-card {
  background: var(--night-card);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.callout-card strong {
  display: block;
  font-size: 1.8rem;
  color: #ffffff;
}

.result-callouts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.analysis-grid {
  grid-template-columns: minmax(0, 1.26fr) minmax(300px, 0.74fr);
  align-items: start;
}

.section-shell#analysis .section-heading {
  margin-bottom: 20px;
}

.analysis-stack {
  display: grid;
  gap: 12px;
  align-items: start;
}

.media-card-analysis {
  padding: 0;
}

.media-card-analysis-primary {
  margin-top: -2px;
}

.media-card-analysis-primary img {
  width: 96%;
  max-width: none;
  margin-top: 0;
  margin-left: 0;
}

.media-card-analysis-primary figcaption {
  margin-top: 8px;
}

.media-card-analysis-secondary img {
  width: 124%;
  max-width: none;
  margin-left: 10%;
}

.media-card-analysis-secondary figcaption {
  margin-top: 10px;
}

.video-card-analysis {
  margin-top: 10px;
  padding: 18px;
}

.video-card-analysis video {
  width: min(100%, 640px);
}

.video-card-analysis-plain {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.media-card-wide {
  grid-column: 1 / -1;
}

.bibtex-card {
  background: linear-gradient(180deg, rgba(11, 21, 38, 0.98), rgba(14, 26, 45, 0.96));
  border-color: rgba(255, 255, 255, 0.08);
  color: #eff5ff;
  box-shadow: var(--shadow-lg);
}

.bibtex-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.copy-bibtex-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  color: #f7fbff;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

.copy-bibtex-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.copy-bibtex-btn.copied {
  background: rgba(125, 232, 244, 0.16);
}

#bibtex-code {
  margin: 0;
  padding: 22px;
  border-radius: 20px;
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.04);
  color: #e8f1ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.95rem;
  line-height: 1.65;
}

.site-footer {
  padding: 28px 0 40px;
  color: var(--ink-mute);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
}

.scroll-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(8, 17, 31, 0.88);
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition), background var(--transition);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--accent-strong);
}

body.js-enhanced .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms ease, transform 560ms ease;
}

body.js-enhanced .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .hero-grid,
  .results-layout,
  .media-grid-two {
    grid-template-columns: 1fr;
  }

  .hero-pipeline {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 2px;
  }

  .teaser-stage {
    width: calc(100vw - 18px);
    height: min(calc(100svh - 36px), calc((100vw - 18px) * 9 / 16));
  }

  .teaser-overlay {
    width: min(70%, 780px);
  }

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

  .content-sidebar-layout {
    grid-template-columns: 1fr;
  }

  .content-sidebar {
    position: static;
  }

  .hero-media {
    min-height: auto;
  }

  .media-card-analysis-secondary img {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 820px) {
  .teaser-hero {
    padding: 8px 8px 12px;
  }

  .teaser-stage {
    width: calc(100vw - 14px);
    height: min(calc(100svh - 30px), calc((100vw - 14px) * 9 / 16));
  }

  .teaser-overlay {
    width: min(78%, 660px);
  }

  .teaser-overlay-copy {
    padding: 22px 18px;
  }

  .hero-section {
    margin-top: 0;
    padding-top: 96px;
  }

  .metric-strip,
  .stage-grid,
  .result-callouts,
  .analysis-grid,
  .video-grid {
    grid-template-columns: 1fr;
  }

  .hero-media-footer {
    grid-template-columns: 1fr;
  }

  .section-shell {
    padding: 72px 0;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(1200px, calc(100vw - 24px));
  }

  .teaser-stage {
    width: calc(100vw - 8px);
    height: min(calc(100svh - 18px), calc((100vw - 8px) * 9 / 16));
  }

  .teaser-tile:not(.teaser-tile-mobile-keep) {
    display: none;
  }

  .teaser-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .teaser-overlay {
    width: 90%;
  }

  .teaser-overlay-copy {
    padding: 18px 14px;
  }

  .teaser-title {
    font-size: 2.8rem;
  }

  .teaser-tagline {
    font-size: 0.96rem;
  }

  .hero-title {
    font-size: 2.35rem;
  }

  .author-name {
    font-size: 1.02rem;
  }

  .author-line {
    gap: 10px 18px;
  }

  .overview-grid {
    grid-template-columns: 1fr;
  }

  .button,
  .copy-bibtex-btn {
    width: 100%;
  }

  .footer-inner {
    flex-direction: column;
  }
}
