:root {
  --paper: #f7f8f5;
  --surface: #ffffff;
  --surface-soft: #f0f4f3;
  --ink: #0b1739;
  --muted: #5e6978;
  --line: #dce3ea;
  --blue: #1769c2;
  --blue-dark: #0b4b91;
  --blue-soft: #eaf3fc;
  --green: #0b8a5b;
  --green-dark: #086743;
  --green-soft: #e3f4ec;
  --coral: #e5484d;
  --amber: #d98500;
  --shadow: 0 24px 74px rgba(11, 23, 57, 0.11);
  --small-shadow: 0 12px 36px rgba(11, 23, 57, 0.07);
  --max: 1220px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  font-size: 1.125rem;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(23, 105, 194, 0.08), transparent 29rem),
    radial-gradient(circle at 93% 8%, rgba(11, 138, 91, 0.08), transparent 27rem),
    var(--paper);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { max-width: 100%; }
button, input, select { font: inherit; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  transform: translateY(-160%);
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 17px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  background: rgba(247, 248, 245, 0.92);
  background: color-mix(in srgb, var(--paper) 89%, transparent);
  backdrop-filter: blur(16px);
}

.wordmark {
  text-decoration: none;
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.wordmark span { color: var(--green); }

nav { display: flex; align-items: center; gap: 19px; }
nav a { color: var(--muted); text-decoration: none; font-size: 1rem; font-weight: 700; }
nav a:hover, nav a:focus-visible { color: var(--ink); }
.nav-paper { color: var(--blue); }

main {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 30px;
  align-items: center;
  padding: 56px 0 72px;
}
.hero-copy { width: min(100%, 1120px); margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  padding: 7px 13px;
  border: 1px solid #b7dfd0;
  border-radius: 999px;
  color: var(--green-dark);
  background: rgba(227, 244, 236, 0.74);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(11, 138, 91, 0.1);
}

h1, h2, .subtitle {
  font-family: "Source Serif 4", Georgia, serif;
  text-wrap: balance;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 6.1vw, 5.2rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.subtitle {
  max-width: 820px;
  margin: 14px auto 0;
  color: var(--blue-dark);
  font-size: clamp(1.45rem, 2.7vw, 2.25rem);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.thesis {
  max-width: 800px;
  margin: 0 auto;
  color: #364152;
  font-size: clamp(1.125rem, 1.7vw, 1.3rem);
}

.thesis em {
  color: var(--green);
  font-family: "Source Serif 4", Georgia, serif;
  font-weight: 600;
}

.technical-deck {
  max-width: 780px;
  margin: 10px auto 0;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.65;
}

.authors { margin-top: 24px; }
.authors p { margin: 0; }
.author-list { display: flex; justify-content: center; align-items: baseline; flex-wrap: wrap; gap: 5px 26px; font-size: 1.125rem; }
.author-list a { white-space: nowrap; }
.authors a { text-decoration: none; border-bottom: 1px solid transparent; font-weight: 600; }
.authors a:hover, .authors a:focus-visible { border-color: currentColor; }
.authors sup { color: var(--blue); font-size: 0.66em; }
.affiliations { display: flex; justify-content: center; flex-wrap: wrap; gap: 3px 22px; margin-top: 8px !important; color: var(--muted); font-size: 1rem; }
.affiliations > span { max-width: 100%; text-wrap: balance; }

.actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.hero-explanation { margin-top: 36px; }
.hero-concept { max-width: 900px; margin: 24px auto 10px; padding-bottom: 14px; }
.hero-concept-flow { display: grid; grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 1fr); align-items: stretch; }
.hero-concept-node { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; padding: 18px 12px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.8); }
.hero-concept-node strong { font-size: 1.125rem; line-height: 1.35; }
.hero-concept-node span { color: var(--muted); font-size: .9375rem; line-height: 1.5; text-wrap: balance; }
.hero-concept-latent { border-color: #b7cfe7; background: var(--blue-soft); }
.hero-concept-latent strong { color: var(--blue-dark); }
.hero-concept-adapter { border-color: #8fcab2; background: var(--green-soft); box-shadow: 0 6px 24px rgba(11,138,91,.08); }
.hero-concept-adapter strong { color: var(--green-dark); }
.hero-concept-arrow { display: grid; place-items: center; color: #687c8b; font-size: 1.6rem; line-height: 1; }
.hero-concept-feedback { position: relative; display: flex; justify-content: center; width: 70%; min-height: 30px; margin: 0 auto; border: 1.5px solid #559f83; border-top: 0; border-radius: 0 0 10px 10px; }
.hero-concept-feedback::before { position: absolute; top: -1px; left: -5px; width: 7px; height: 7px; border-top: 1.5px solid #559f83; border-left: 1.5px solid #559f83; transform: rotate(45deg); content: ""; }
.hero-concept-feedback span { position: relative; top: 15px; padding: 0 12px; color: var(--green-dark); background: var(--paper); font-size: .9375rem; line-height: 1.55; font-weight: 600; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 17px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 5px 18px rgba(11, 23, 57, 0.05);
}

.button.primary { color: #fff; border-color: var(--blue); background: var(--blue); }
.button.primary:hover, .button.primary:focus-visible { background: var(--blue-dark); }
.button.secondary { color: var(--green-dark); border-color: #b8d8cb; background: var(--green-soft); }
.button.secondary:hover, .button.secondary:focus-visible { border-color: var(--green); }
.button.quiet { cursor: default; color: var(--muted); }
.button.text-button { color: var(--blue); background: transparent; box-shadow: none; }
.soon { padding: 2px 6px; border-radius: 999px; background: #edf0f2; font-size: 0.9375rem; text-transform: uppercase; letter-spacing: 0.05em; }

.hero-media {
  margin: 0;
  overflow: hidden;
  padding: 10px 10px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.hero-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; overflow: hidden; border-radius: 11px; background: var(--ink); }
.hero-pair > div { position: relative; overflow: hidden; aspect-ratio: 832 / 480; background: #101522; }
.hero-pair img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-media figcaption { margin: 13px 9px 0; text-align: left; font-size: 0.9375rem; line-height: 1.5; }
figcaption { max-width: 880px; margin: 18px auto 0; color: var(--muted); text-align: center; font-size: 1rem; }
figcaption strong { color: var(--ink); }

.section { padding: 108px 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 820px; margin-bottom: 48px; }
.narrow-heading { max-width: 720px; }
.section-kicker, .mini-label {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(2.25rem, 5.4vw, 4.5rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.052em;
}
.section-heading > p:last-child:not(.section-kicker) { max-width: 740px; margin: 20px 0 0; color: var(--muted); font-size: 1.03rem; }

.paper-figure {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--small-shadow);
}
.paper-figure img { display: block; width: 100%; height: auto; border-radius: 11px; }
.method-figure figcaption, .physics-figure figcaption { margin-bottom: 6px; }
.method-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.method-chips span { padding: 7px 11px; border: 1px solid #c9d9e9; border-radius: 999px; color: #284667; background: #f1f6fb; font-size: 0.9375rem; font-weight: 750; }
.equation-card { margin-top: 20px; padding: 24px 28px; border: 1px solid var(--line); border-radius: 14px; background: #f5f8fb; text-align: center; }
.equation-card p { margin: 0; overflow-x: auto; color: var(--ink); font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1rem, 2.2vw, 1.45rem); white-space: nowrap; }
.equation-card > span { display: block; margin-top: 9px; color: var(--muted); font-size: 0.9375rem; }
.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.method-steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
}
.step-index { color: var(--blue); font-size: 0.9375rem; font-weight: 800; letter-spacing: 0.08em; }
.method-steps h3, .table-card h3, .efficiency-block h3, .human-card h3, .transfer-card h3, .scope-grid h3, .resource-card h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.25; }
.method-steps p { margin: 8px 0 0; color: var(--muted); font-size: 1rem; }

.result-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 22px; align-items: stretch; }
.table-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--small-shadow);
}
.table-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 25px 19px; }
.table-card-heading .mini-label { display: block; margin-bottom: 5px; }
.table-card h3 { font-size: 1.08rem; }
.metric-pill { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; color: var(--green-dark); background: var(--green-soft); font-size: 0.9375rem; font-weight: 800; }
.metric-pill.amber { color: #855300; background: #fff2d6; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
th, td { padding: 13px 25px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { color: var(--muted); background: #f7f9fa; font-size: 0.9375rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.ours-row td { color: var(--green-dark); background: var(--green-soft); }
.table-note { margin: 0; padding: 14px 25px; border-top: 1px solid var(--line); color: var(--muted); background: #fbfcfc; font-size: 0.9375rem; }

.result-callout {
  padding: 26px;
  border: 1px solid #b9d8cc;
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,255,255,.36), rgba(255,255,255,.36)),
    radial-gradient(circle at 90% 5%, rgba(11,138,91,.14), transparent 16rem),
    var(--green-soft);
}
.big-number { display: block; margin-top: 30px; color: var(--green-dark); font-family: "Source Serif 4", Georgia, serif; font-size: 3.6rem; line-height: 1; letter-spacing: -0.06em; }
.result-callout > p { margin: 16px 0 26px; color: #3f4d49; font-size: 1rem; }

.efficiency-block { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 24px 54px; align-items: end; margin-top: 68px; padding: 42px; border: 1px solid var(--line); border-radius: 20px; background: #f1f5f8; }
.efficiency-copy h3 { font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.65rem); }
.efficiency-copy > p:not(.section-kicker) { margin: 18px 0 0; color: var(--muted); font-size: 1rem; }
.efficiency-caution { align-self: end; margin: 0 0 4px; padding: 13px 15px; border-left: 3px solid var(--amber); color: var(--muted); background: rgba(255,255,255,.55); font-size: 0.9375rem; }

.gradient-explainer {
  grid-column: 1 / -1;
  overflow: hidden;
  margin-top: 13px;
  border: 1px solid #d7e0e6;
  border-radius: 16px;
  background: rgba(255,255,255,.88);
  box-shadow: var(--small-shadow);
}
.gradient-controls {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfc;
}
.gradient-explainer.is-enhanced .gradient-controls { display: flex; }
.route-mode-toggle { display: flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: #eef2f4; }
.route-mode-toggle button,
.route-replay {
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 800;
}
.route-mode-toggle button { padding: 7px 11px; }
.route-mode-toggle button[aria-pressed="true"] { color: var(--ink); background: #fff; box-shadow: 0 2px 7px rgba(11,23,57,.1); }
.route-mode-toggle button:hover,
.route-mode-toggle button:focus-visible,
.route-replay:hover,
.route-replay:focus-visible { color: var(--blue-dark); outline: none; }
.route-mode-toggle button:focus-visible,
.route-replay:focus-visible { box-shadow: 0 0 0 3px rgba(23,105,194,.18); }
.route-replay { padding: 7px 9px; color: var(--blue-dark); }
.route-replay span { display: inline-block; margin-right: 3px; font-size: 1rem; }
.route-key { display: flex; justify-content: flex-end; gap: 17px; padding: 11px 18px 0; color: var(--muted); font-size: 0.9375rem; }
.route-key span { display: inline-flex; align-items: center; gap: 6px; }
.route-key i { display: inline-block; width: 22px; height: 2px; border-radius: 999px; }
.forward-key { background: #74828d; }
.gradient-key { background: linear-gradient(90deg, var(--amber), var(--green)); }
.route-comparison { display: grid; gap: 12px; padding: 12px 16px 13px; }
.compute-route {
  --route-accent: var(--amber);
  --route-soft: #fff5e5;
  overflow-x: auto;
  padding: 16px 17px 13px;
  border: 1px solid color-mix(in srgb, var(--route-accent) 34%, var(--line));
  border-radius: 12px;
  background: linear-gradient(100deg, color-mix(in srgb, var(--route-soft) 72%, #fff), #fff 72%);
  scrollbar-width: thin;
}
.omr-route { --route-accent: var(--green); --route-soft: var(--green-soft); }
.route-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; min-width: 840px; margin-bottom: 13px; }
.route-heading > div { display: flex; align-items: baseline; gap: 9px; }
.route-heading strong { font-size: 1rem; line-height: 1.15; }
.route-heading strong em { margin-left: 4px; padding: 2px 6px; border-radius: 999px; color: #fff; background: var(--green); font-size: 0.9375rem; font-style: normal; letter-spacing: .06em; text-transform: uppercase; vertical-align: 2px; }
.route-heading div > span { color: var(--muted); font-size: 0.9375rem; }
.route-track { display: grid; align-items: center; min-width: 960px; }
.reward-track { grid-template-columns: minmax(168px,1fr) 32px minmax(148px,1fr) 32px minmax(168px,1.08fr) 32px minmax(148px,.94fr) 32px minmax(148px,.94fr); }
.omr-track { grid-template-columns: minmax(168px,1fr) 54px minmax(180px,1.15fr) 54px minmax(168px,1fr) 54px minmax(168px,1fr); }
.route-node {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 90px;
  padding: 12px 10px;
  border: 1px solid #9caab4;
  border-radius: 8px;
  background: #f8fafb;
  text-align: center;
}
.route-node strong { font-size: 0.9375rem; line-height: 1.25; }
.route-node span { margin-top: 2px; color: var(--muted); font-size: 0.9375rem; line-height: 1.25; }
.route-node sub { font-size: .68em; }
.route-node-cost { border-color: #d69845; background: #fff8ee; }
.route-node-adapter { border-color: var(--green); background: var(--green-soft); }
.route-loss { border-color: color-mix(in srgb, var(--route-accent) 62%, #72808c); }
.route-edge { position: relative; height: 2px; background: #7f8b94; }
.route-edge::after {
  position: absolute;
  top: 50%;
  right: -1px;
  width: 0;
  height: 0;
  transform: translateY(-50%);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid #7f8b94;
  content: "";
}
.route-edge::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 7px;
  height: 7px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--route-accent);
  opacity: 0;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--route-accent) 16%, transparent);
  content: "";
}
.gradient-explainer[data-mode="backward"] .route-edge { background: color-mix(in srgb, var(--route-accent) 62%, #94a0a9); }
.gradient-explainer[data-mode="backward"] .route-edge::after {
  right: auto;
  left: -1px;
  border-right: 8px solid var(--route-accent);
  border-left: 0;
}
.gradient-explainer[data-mode="backward"] .route-node { border-color: color-mix(in srgb, var(--route-accent) 56%, #9caab4); }
.gradient-explainer.is-playing .route-node { animation: route-node-pulse 520ms cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--route-order) * 95ms); }
.gradient-explainer.is-playing .route-edge { animation: route-edge-pulse 430ms ease both; animation-delay: calc(var(--route-order) * 95ms); }
.gradient-explainer.is-playing .route-edge::before { animation: route-dot-forward 430ms ease both; animation-delay: calc(var(--route-order) * 95ms); }
.gradient-explainer.is-playing[data-mode="backward"] .route-edge::before { animation-name: route-dot-backward; }
.route-footnote { display: flex; align-items: center; gap: 7px; min-width: 840px; margin: 11px 0 0; color: color-mix(in srgb, var(--route-accent) 76%, var(--ink)); font-size: 0.9375rem; font-weight: 750; }
.route-footnote span { padding: 2px 6px; border-radius: 5px; color: #fff; background: var(--route-accent); font-size: 0.9375rem; letter-spacing: .05em; text-transform: uppercase; }
.route-footnote b { margin-left: auto; padding: 5px 9px; border-radius: 6px; color: var(--green-dark); background: #d9f1e7; font-size: 0.9375rem; }
.route-status { margin: 0; padding: 11px 18px; border-top: 1px solid var(--line); color: var(--ink); background: #f5f8f8; text-align: center; font-size: 0.9375rem; font-weight: 750; }
.route-output-note { margin: 0; padding: 0 18px 12px; color: var(--muted); background: #f5f8f8; text-align: center; font-size: 0.9375rem; }

@keyframes route-node-pulse {
  0% { transform: translateY(0); box-shadow: none; }
  45% { transform: translateY(-2px); border-color: var(--route-accent); background: color-mix(in srgb, var(--route-soft) 78%, #fff); box-shadow: 0 7px 18px color-mix(in srgb, var(--route-accent) 20%, transparent); }
  100% { transform: translateY(0); }
}
@keyframes route-edge-pulse {
  0%, 100% { opacity: 1; }
  45% { height: 3px; background: var(--route-accent); }
}
@keyframes route-dot-forward {
  0% { left: 0; opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { left: calc(100% - 7px); opacity: 0; }
}
@keyframes route-dot-backward {
  0% { left: calc(100% - 7px); opacity: 0; }
  20%, 80% { opacity: 1; }
  100% { left: 0; opacity: 0; }
}
.efficiency-table { margin-top: 22px; }

.human-card {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 42px;
  align-items: center;
  margin-top: 22px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--small-shadow);
}
.human-card h3 { margin-top: 4px; font-size: 1.4rem; }
.human-copy > p:last-child { margin: 12px 0 0; color: var(--muted); font-size: 1rem; }
.preference-legend { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px 18px; margin-bottom: 12px; color: var(--muted); font-size: 1rem; font-weight: 500; }
.preference-legend > span { white-space: nowrap; }
.preference-legend strong { color: var(--ink); font-variant-numeric: tabular-nums; }
.preference-legend i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; }
.omr-dot { background: var(--green); }
.tie-dot { background: #cbd3d9; }
.pp-dot { background: var(--amber); }
.preference-bar { display: flex; overflow: hidden; min-height: 60px; border-radius: 10px; color: #fff; font-variant-numeric: tabular-nums; }
.preference-bar span { display: grid; place-items: center; min-width: 0; }
.pref-omr { background: var(--green); }
.pref-tie { color: #364152; background: #cbd3d9; }
.pref-pp { background: var(--amber); }
.preference-wrap > p { margin: 9px 0 0; color: var(--muted); text-align: right; font-size: 0.9375rem; }
.preference-wrap .adherence-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: #566170; }

.media-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 70px;
  align-items: end;
  max-width: none;
}
.media-heading > p:last-child {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1rem;
}
.video-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--small-shadow);
}
.featured-video { grid-column: 1 / -1; }
.comparison-browser { grid-column: 1 / -1; }
.video-shell {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  aspect-ratio: 832 / 480;
  background:
    radial-gradient(circle at center, rgba(23, 105, 194, 0.09), transparent 28rem),
    #e9eef3;
}
.sequence-shell { aspect-ratio: 4110 / 1380; }
.comparison-shell { aspect-ratio: 2680 / 990; }
.video-shell img,
.video-shell video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.video-shell video { background: #050a14; }
.video-status {
  position: absolute;
  right: 14px;
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #fff;
  background: rgba(11, 23, 57, 0.82);
  backdrop-filter: blur(10px);
  font-size: 0.9375rem;
  font-weight: 800;
}
.video-status i { color: #a8d2ff; font-size: 0.9375rem; font-style: normal; }
.video-caption {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding: 20px 22px 22px;
  border-top: 1px solid var(--line);
}
.video-caption .mini-label { display: block; margin-bottom: 4px; }
.video-caption h3 { margin: 0; font-size: 1.08rem; letter-spacing: -0.025em; }
.video-caption p { max-width: 480px; margin: 0; color: var(--muted); font-size: 0.9375rem; }
.comparison-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.comparison-toolbar .mini-label { display: block; margin-bottom: 2px; }
.comparison-toolbar strong { font-size: 1rem; }
.comparison-tabs { display: flex; gap: 7px; }
.comparison-tabs button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; cursor: pointer; font-size: 0.9375rem; font-weight: 800; }
.comparison-tabs button:hover, .comparison-tabs button:focus-visible { border-color: #8db7df; color: var(--blue-dark); }
.comparison-tabs button[aria-selected="true"] { color: #fff; border-color: var(--blue); background: var(--blue); }

/* Video comparisons: an academic viewing surface with one shared timeline. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }
.hero-pair video { display: block; width: 100%; height: auto; aspect-ratio: 832 / 480; object-fit: cover; background: #101d32; }
.hero-video-actions { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.hero-video-actions button { padding: 7px 12px; border: 1px solid #b8d6cc; border-radius: 7px; background: var(--green-soft); color: var(--green-dark); font-size: 1rem; font-weight: 700; cursor: pointer; }
.hero-video-actions a { color: var(--blue-dark); font-size: 1rem; text-underline-offset: 3px; }
.hero-video-card figcaption { font-size: clamp(1.0625rem,1.4vw,1.25rem); line-height: 1.65; }
.hero-video-card { padding: 0 0 17px; }
.hero-video-card > figcaption { max-width: none; margin: 22px 24px 6px; }
.teaser-explanation p { margin: 0; color: #344860; }
.teaser-explanation .teaser-caveat { margin-top: 12px; color: var(--muted); font-size: 1rem; line-height: 1.6; }
.teaser-explanation a { color: var(--blue-dark); text-underline-offset: 3px; }
.teaser-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; }
.teaser-heading .mini-label { display: block; margin: 0 0 5px; font-size: 0.9375rem; }
.teaser-heading h2 { margin: 0; font-size: 1.4rem; line-height: 1.3; letter-spacing: -.025em; }
.teaser-motion video { display: block; width: 100%; height: auto; aspect-ratio: 1280 / 534; background: #f8fafb; }
.teaser-playback, .teaser-links { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.hero-video-card .hero-video-actions { padding: 15px 24px; }
.teaser-stops { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 14px 24px; border-bottom: 1px solid var(--line); background: #f8fafb; }
.teaser-stops > span { margin-right: 5px; color: var(--muted); font-size: 1rem; }
.teaser-stops button { padding: 6px 10px; border: 1px solid #ccd7df; border-radius: 6px; color: #344860; background: white; font-size: 1rem; cursor: pointer; }
.teaser-stops button:hover { border-color: #b83b4b; color: #a32032; }
.teaser-stops button:focus-visible { outline: 3px solid #e4a5ad; outline-offset: 3px; }
@media (max-width: 600px) {
  .teaser-heading { align-items: flex-start; flex-direction: column; gap: 8px; padding: 17px; }
  .hero-video-card .hero-video-actions, .teaser-stops { padding: 13px 17px; }
  .hero-video-card > figcaption { margin-inline: 17px; }
  .teaser-stops > span { width: 100%; }
}
.media-heading { display: block; max-width: 920px; }
.media-heading > p:last-child { margin: 18px 0 0; font-size: 1rem; }
.highlight-showcase { margin-bottom: 44px; overflow: hidden; border: 1px solid #bfd5cd; border-radius: 16px; background: #fff; box-shadow: var(--small-shadow); }
.highlight-topline { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 23px 26px 17px; }
.highlight-topline .mini-label { display: block; margin-bottom: 7px; color: var(--green-dark); font-size: 0.9375rem; }
.highlight-topline h3 { margin: 0; font-size: 1.35rem; line-height: 1.35; letter-spacing: -.025em; }
.highlight-playback { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.highlight-speed { color: #536775; font-size: 1rem; white-space: nowrap; }
.highlight-toggle { padding: 8px 12px; border: 1px solid #9bcbb7; border-radius: 6px; color: var(--green-dark); background: var(--green-soft); font-size: 1rem; font-weight: 700; cursor: pointer; }
.highlight-choices { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 26px 20px; }
.highlight-choices button { padding: 8px 12px; border: 1px solid #cdd9de; border-radius: 7px; color: #4d6070; background: #f8fafb; font-size: 1rem; cursor: pointer; }
.highlight-choices button[aria-pressed="true"] { border-color: #086743; color: #fff; background: #086743; }
.highlight-motion { padding: 0 26px; background: #f8fafb; }
.highlight-motion video { display: block; width: 100%; max-width: 1072px; height: auto; margin: 0 auto; background: #f8fafb; }
.highlight-caption { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 28px; padding: 20px 26px 14px; border-top: 1px solid var(--line); }
.highlight-caption p { margin: 0; color: #41546a; font-size: 1rem; }
.highlight-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.highlight-links a, .highlight-links button { padding: 0; border: 0; color: var(--blue-dark); background: none; font-size: 1rem; font-weight: 650; white-space: nowrap; text-underline-offset: 3px; cursor: pointer; }
.highlight-links button { text-decoration: underline; }
.highlight-context { margin: 0; padding: 0 26px 22px; color: #647181; font-size: 1rem; }
.highlight-showcase button:focus-visible, .highlight-showcase a:focus-visible { outline: 3px solid #65bfa2; outline-offset: 3px; }
.full-gallery-heading { margin: 0 0 20px; }
.full-gallery-heading h3 { margin: 0; font-size: 1.4rem; letter-spacing: -.02em; }
.full-gallery-heading p { margin: 7px 0 0; color: var(--muted); font-size: 1rem; }
.comparison-gallery { overflow: hidden; border: 1px solid #cbd6df; border-radius: 18px; background: #fff; box-shadow: 0 18px 46px rgba(11,23,57,.1); }
.comparison-stage { overflow: hidden; color: #fff; background: #101c31; }
.scene-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 26px; }
.scene-category { margin: 0 0 3px; color: #9adfc3; font-size: 0.9375rem; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.scene-heading h3 { margin: 0; font-family: "Source Serif 4", Georgia, serif; font-size: clamp(1.6rem,2.4vw,2rem); line-height: 1.2; letter-spacing: -.02em; }
.scene-navigation { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.scene-navigation button { display: grid; place-items: center; width: 36px; height: 36px; border: 1px solid #40516a; border-radius: 50%; color: #e7edf5; background: transparent; cursor: pointer; }
.scene-navigation span { color: #c5cfdd; font-size: 1rem; font-variant-numeric: tabular-nums; }
.comparison-method-summary { padding: 0 24px 17px; color: #b9c8d9; font-size: 1rem; }
.scene-navigation .scene-next { display: inline-flex; align-items: center; gap: 12px; width: auto; min-width: 90px; height: 44px; padding: 0 16px; border-radius: 7px; font-size: 1rem; }
.more-comparisons .scene-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
.more-comparisons .scene-card-copy { padding: 14px; }
.more-comparisons .scene-card-copy strong { min-height: 2.6em; }
.more-comparisons .scene-card[aria-pressed="true"] { border-color: #d5dfe5; box-shadow: none; }
.comparison-dialog { width: min(1240px,calc(100vw - 40px)); max-height: calc(100dvh - 40px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 1px solid #53677b; border-radius: 16px; background: #fff; box-shadow: 0 24px 100px #0008; }
.comparison-dialog::backdrop { background: rgba(7,17,34,.8); }
body:has(.comparison-dialog[open]) { overflow: hidden; }
.dialog-toolbar { display: flex; justify-content: flex-end; position: sticky; top: 0; z-index: 2; padding: 10px 16px; color: #fff; background: #101c31; border-bottom: 1px solid #32445c; }
.dialog-toolbar button { padding: 7px 14px; border: 1px solid #4b5d74; border-radius: 6px; color: #fff; background: #1b2a41; font: inherit; font-size: 1rem; cursor: pointer; }
.dialog-toolbar button:focus-visible { outline: 3px solid #9fe9c9; outline-offset: 3px; }
.comparison-dialog .comparison-gallery { border: 0; border-radius: 0; box-shadow: none; }
.comparison-screens { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; padding: 0 14px; }
.comparison-screens:not([data-compare-layout="all"]) { grid-template-columns: repeat(2,minmax(0,1fr)); }
.method-screen { margin: 0; min-width: 0; overflow: hidden; border: 1px solid #4a5b71; border-radius: 8px; background: #1b2940; }
.method-screen figcaption { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 3px; min-height: 78px; padding: 12px 14px; text-align: left; }
.method-screen figcaption strong { font-size: 1rem; font-weight: 750; line-height: 1.3; }
.method-screen figcaption small { color: #b9c8d9; font-size: 0.9375rem; line-height: 1.3; }
.method-screen video { display: block; width: 100%; height: auto; aspect-ratio: 832 / 480; background: #09101c; }
.method-screen-ours { border-color: #50d2a0; background: #10392f; }
.method-screen-ours b { margin-left: 5px; padding: 2px 5px; border-radius: 3px; color: #0e3a28; background: #a3efce; font-size: 0.9375rem; font-weight: 700; }
.shared-transport { display: flex; align-items: center; gap: 13px; padding: 19px 22px 10px; }
.shared-transport button { flex-shrink: 0; min-height: 36px; padding: 6px 10px; border: 1px solid #42506a; border-radius: 6px; color: #e4ebf7; background: #1b2a41; cursor: pointer; font-size: 1rem; }
.shared-transport .transport-play { min-width: 110px; border-color: #8ee9c2; color: #0e3226; background: #a3efce; font-weight: 750; }
.shared-transport .transport-restart { width: 36px; padding: 0; font-size: 1.3rem; }
.shared-transport button:hover, .scene-navigation button:hover { filter: brightness(1.15); border-color: #8ad6be; }
.comparison-gallery button:focus-visible, .comparison-gallery a:focus-visible, .comparison-gallery select:focus-visible, .hero-video-actions button:focus-visible { outline: 3px solid #65bfa2; outline-offset: 3px; }
.timeline-label { display: flex; flex: 1; min-width: 50px; padding: 8px 0; }
.timeline-label input { width: 100%; height: 5px; margin: 0; cursor: pointer; accent-color: #7ee0b9; }
.shared-transport output { color: #ced8e8; font-size: 0.9375rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.speed-label select { min-height: 36px; padding: 4px 6px; border: 1px solid #42506a; border-radius: 6px; color: #e4ebf7; background: #1b2a41; font-size: 1rem; cursor: pointer; }
.playback-status { min-height: 1.5em; margin: 0; padding: 5px 22px 13px; color: #a8b8d0; text-align: center; font-size: 0.9375rem; }
.playback-status.has-error { color: #ffd899; }
.playback-status:empty { min-height: 0; padding: 0 0 8px; }
.scene-focus { display: flex; align-items: baseline; gap: 16px; padding: 18px 24px; border-top: 1px solid #32445c; background: #172740; }
.scene-focus > span { flex-shrink: 0; color: #9fe9c9; font-size: 0.9375rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; }
.scene-focus p { margin: 0; color: #edf3fb; font-size: 1rem; }
.scene-details { display: grid; grid-template-columns: 1fr; align-items: start; gap: 18px; padding: 23px 26px; border-bottom: 1px solid var(--line); }
.scene-reading .mini-label { display: block; color: var(--green-dark); font-size: 0.9375rem; }
.scene-reading p { margin: 6px 0 0; color: #46556a; font-size: 1rem; }
.scene-disclosure { border-top: 1px solid var(--line); background: #fff; }
.scene-disclosure summary { padding: 14px 0 0; color: var(--ink); font-size: 1rem; font-weight: 650; cursor: pointer; }
.scene-disclosure summary::marker { color: var(--green); }
.scene-detail-content { padding: 16px 0 0; }
.scene-detail-content blockquote { margin: 0; padding: 14px 0; border-block: 1px solid var(--line); color: #566374; font-size: 1rem; }
.scene-downloads { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 13px 0 0; color: var(--muted); font-size: 1rem; }
.scene-downloads a { color: var(--blue-dark); text-underline-offset: 3px; }
.gallery-browse { padding: 20px 26px; background: #f8fafb; }
.gallery-browse-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.gallery-browse-heading h3 { margin: 0; font-size: 1.05rem; letter-spacing: -.02em; }
.gallery-browse-heading > span { color: var(--muted); font-size: 1rem; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 18px; }
.gallery-filters button { padding: 7px 12px; border: 1px solid #ced9e0; border-radius: 999px; color: #4b5a6d; background: #fff; font-size: 1rem; cursor: pointer; }
.gallery-filters button span { padding-left: 4px; opacity: .75; font-size: 0.9375rem; }
.gallery-filters button[aria-pressed="true"] { border-color: var(--ink); color: #fff; background: var(--ink); }
.scene-grid { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; padding: 3px; }
.scene-card { min-width: 0; padding: 0; overflow: hidden; border: 1px solid #d5dfe5; border-radius: 10px; color: var(--ink); background: #fff; text-align: left; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.scene-card { scroll-snap-align: start; }
.scene-card:hover { border-color: #79afc1; box-shadow: 0 5px 17px rgba(11,23,57,.1); }
.scene-card[aria-pressed="true"] { border-color: var(--green); box-shadow: 0 0 0 2px var(--green); }
.scene-thumbnail { position: relative; display: block; aspect-ratio: 832 / 480; overflow: hidden; background: #18283b; }
.scene-thumbnail img { display: block; width: 100%; height: 100%; object-fit: cover; }
.scene-number { position: absolute; top: 7px; left: 7px; display: grid; place-items: center; width: 26px; height: 24px; border: 1px solid rgba(255,255,255,.35); border-radius: 4px; color: #fff; background: rgba(9,22,44,.85); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.scene-card-play { position: absolute; right: 9px; bottom: 8px; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(255,255,255,.4); border-radius: 50%; color: #fff; background: rgba(9,22,44,.7); font-size: 0.9375rem; }
.scene-card[aria-pressed="true"] .scene-card-play { background: var(--green); }
.scene-card-copy { display: block; padding: 12px 11px; }
.scene-card-copy strong { display: block; min-height: 2.6em; font-size: 1rem; font-weight: 700; line-height: 1.3; }
.scene-card-copy small { display: block; margin-top: 5px; color: var(--muted); font-size: 0.9375rem; line-height: 1.4; }
.gallery-protocol { margin: 0; padding: 16px 26px; border-top: 1px solid var(--line); color: var(--muted); background: #f8fafb; font-size: 1rem; }
.gallery-protocol a { color: var(--blue-dark); text-underline-offset: 3px; }
.comparison-stage:fullscreen { display: flex; flex-direction: column; justify-content: center; width: 100%; height: 100%; max-height: 100dvh; padding: clamp(8px,3vw,42px); border: 0; border-radius: 0; overflow-y: auto; }
.comparison-stage:fullscreen .comparison-screens { width: 100%; max-width: 2496px; margin-inline: auto; }

@media (max-width: 1100px) {
  .scene-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .more-comparisons .scene-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .scene-details { grid-template-columns: 1fr; gap: 19px; }
  .scene-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .highlight-topline { align-items: flex-start; flex-direction: column; gap: 15px; }
  .highlight-caption { grid-template-columns: 1fr; gap: 16px; }
  .highlight-links { flex-direction: row; flex-wrap: wrap; gap: 18px; }
  .shared-transport { flex-wrap: wrap; gap: 10px; padding: 15px 16px 8px; }
  .timeline-label { order: 1; flex-basis: calc(100% - 115px); }
  .shared-transport output { order: 2; }
  .transport-fullscreen { margin-left: auto; }
}
@media (max-width: 560px) {
  .more-comparisons .scene-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .comparison-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 10px; }
  .hero-video-actions { align-items: flex-start; flex-direction: column; gap: 8px; }
  .scene-heading { align-items: flex-start; flex-wrap: wrap; padding: 19px 17px; gap: 12px; }
  .scene-heading h3 { font-size: 1.45rem; }
  .scene-category { font-size: 0.9375rem; letter-spacing: 0; }
  .scene-navigation { gap: 7px; }
  .scene-navigation button { min-height: 44px; }
  .scene-navigation span { font-size: 0.9375rem; }
  .comparison-screens { grid-template-columns: 1fr; gap: 13px; }
  .comparison-screens:not([data-compare-layout="all"]) { grid-template-columns: 1fr; }
  .method-screen figcaption { min-height: 78px; }
  .scene-focus { align-items: flex-start; flex-direction: column; gap: 6px; padding: 16px 18px; }
  .gallery-browse-heading { align-items: flex-start; flex-direction: column; gap: 2px; }
  .scene-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .highlight-topline, .highlight-caption { padding: 18px; }
  .highlight-choices { padding: 0 18px 16px; }
  .highlight-motion { padding: 0; }
  .highlight-context { padding: 0 18px 18px; }
  .highlight-choices button { flex: 1 0 auto; text-align: left; }
  .scene-details, .gallery-browse { padding: 18px; }
  .gallery-protocol { padding: 15px 18px; }
  .gallery-filters { gap: 7px; }
  .gallery-filters button { padding: 6px 10px; }
  .scene-card-copy strong { min-height: 2.6em; }
  .comparison-stage:fullscreen { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-card { transition: none; }
}

.frame-label { position: absolute; top: 13px; left: 13px; z-index: 2; padding: 5px 9px; border-radius: 999px; color: #fff; background: rgba(11, 23, 57, 0.78); backdrop-filter: blur(8px); font-size: 0.9375rem; font-weight: 800; }
.omr-label { background: rgba(11, 138, 91, 0.86); }
.baseline-label { background: rgba(229, 72, 77, 0.84); }

.transfer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.transfer-card { position: relative; overflow: hidden; padding: 31px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--small-shadow); }
.transfer-card::after { position: absolute; top: -35px; right: -35px; width: 120px; height: 120px; border: 18px solid var(--blue-soft); border-radius: 50%; content: ""; }
.featured-transfer::after { border-color: var(--green-soft); }
.transfer-card h3 { margin-top: 3px; font-size: 1.35rem; }
.score-change { display: flex; align-items: center; gap: 13px; margin: 29px 0 15px; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: -0.06em; font-variant-numeric: tabular-nums; }
.score-change span { color: #8c96a3; }
.score-change i { color: #aeb7c0; font-size: 0.5em; font-style: normal; }
.score-change strong { color: var(--blue-dark); }
.featured-transfer .score-change strong { color: var(--green-dark); }
.transfer-card > p { max-width: 520px; margin: 0; color: var(--muted); font-size: 1rem; }
.physics-figure { margin-top: 22px; }

.adapter-note { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; padding: 26px 28px; border: 1px solid var(--line); border-radius: 15px; background: #f5f8f8; }
.adapter-note p { margin: 0; color: var(--muted); font-size: 1rem; }
.adapter-note strong { color: var(--ink); }
.fidelity-table { margin-top: 20px; }

.scope { padding-bottom: 84px; }
.scope-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: var(--line); }
.scope-grid > div { padding: 31px; background: rgba(255,255,255,.82); }
.scope-grid h3 { font-size: 1.1rem; }
.scope-grid p { margin: 12px 0 0; color: var(--muted); font-size: 1rem; }

.resource-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.resource-card { padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--small-shadow); }
.resource-card h3 { font-size: 1.28rem; }
.resource-card p { margin: 12px 0 22px; color: var(--muted); font-size: 1rem; }
.muted-resource { box-shadow: none; background: #f3f5f4; }
.status-chip { display: inline-block; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); background: #fff; font-size: 0.9375rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.bibtex-card { overflow: hidden; margin-top: 20px; border: 1px solid #253659; border-radius: 18px; color: #dce8ff; background: #0b1739; box-shadow: var(--shadow); }
.bibtex-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid #2d3c5d; font-size: 0.9375rem; font-weight: 800; }
.bibtex-head button { padding: 6px 10px; border: 1px solid #425273; border-radius: 7px; color: #e9f2ff; background: #18284b; cursor: pointer; font-size: 0.9375rem; font-weight: 750; }
.bibtex-head button:hover, .bibtex-head button:focus-visible { border-color: #7196c5; }
pre { margin: 0; padding: 24px; overflow-x: auto; font: 0.9375rem/1.7 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

footer {
  display: grid;
  grid-template-columns: 1fr 2fr auto;
  gap: 32px;
  align-items: center;
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 30px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}
footer div { display: flex; flex-direction: column; }
footer strong { color: var(--ink); }
footer p { margin: 0; text-align: center; }
footer a { color: var(--blue); text-decoration: none; font-weight: 750; }
.footer-links { align-items: flex-end; gap: 3px; white-space: nowrap; }

@media (max-width: 900px) {
  nav a:not(.nav-paper):not([href="#videos"]) { display: none; }
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 62px; }
  .hero-copy { max-width: 100%; }
  .efficiency-block, .human-card { grid-template-columns: 1fr; gap: 28px; }
  .method-steps { grid-template-columns: 1fr; }
  .result-layout { grid-template-columns: 1fr; }
  .result-callout { min-height: 0; }
  .efficiency-block { padding: 30px; }
  .human-card { padding: 27px; }
  .preference-legend { justify-content: flex-start; }
  .preference-wrap > p { text-align: left; }
  .media-heading { grid-template-columns: 1fr; gap: 20px; }
}

@media (max-width: 720px) {
  .site-header { width: min(calc(100% - 28px), var(--max)); }
  main, footer { width: min(calc(100% - 28px), var(--max)); }
  .hero { padding: 54px 0 72px; }
  h1 { font-size: clamp(2.75rem, 9.5vw, 4.2rem); }
  .affiliations { max-width: 100%; margin: 10px auto 0 !important; }
  .hero-concept { max-width: 430px; margin-top: 22px; padding-bottom: 0; }
  .hero-concept-flow { grid-template-columns: 1fr; }
  .hero-concept-arrow { min-height: 30px; transform: rotate(90deg); }
  .hero-concept-node { padding: 14px 12px; }
  .hero-concept-feedback { width: 100%; min-height: 0; margin-top: 14px; border: 0; }
  .hero-concept-feedback::before { display: none; }
  .hero-concept-feedback span { position: static; padding: 0; background: none; }
  .hero-concept-feedback span::before { margin-right: 6px; content: "↺"; }
  .hero-pair { grid-template-columns: 1fr; }
  .section { padding: 82px 0; }
  .section-heading { margin-bottom: 36px; }
  .paper-figure { padding: 6px; border-radius: 14px; }
  .equation-card { padding: 20px 18px; text-align: left; }
  .method-steps li { padding: 21px; }
  .table-card-heading { align-items: flex-start; flex-direction: column; gap: 10px; padding: 20px; }
  th, td { padding: 12px 18px; }
  .table-note { padding: 13px 18px; }
  .efficiency-block { margin-top: 46px; padding: 22px; }
  .gradient-controls { align-items: stretch; flex-direction: column; gap: 8px; }
  .route-mode-toggle { display: grid; grid-template-columns: 1fr 1fr; }
  .route-replay { align-self: flex-end; }
  .route-key { justify-content: flex-start; flex-wrap: wrap; }
  .route-comparison { padding: 10px; }
  .compute-route { padding: 14px 13px 12px; }
  .route-heading, .route-footnote { min-width: 960px; }
  .human-card { padding: 22px; }
  .preference-bar { min-height: 52px; }
  .video-grid { grid-template-columns: 1fr; }
  .featured-video { grid-column: auto; }
  .comparison-browser { grid-column: auto; }
  .comparison-toolbar { align-items: flex-start; flex-direction: column; gap: 12px; }
  .comparison-shell { display: block; overflow-x: auto; aspect-ratio: auto !important; }
  .comparison-shell img { width: 840px; max-width: none; height: auto; }
  .comparison-shell video { width: 100%; height: auto; }
  .video-caption { display: block; }
  .video-caption p { margin-top: 8px; }
  .transfer-grid, .adapter-note, .scope-grid, .resource-grid { grid-template-columns: 1fr; }
  .adapter-note { gap: 18px; padding: 23px; }
  .scope-grid { gap: 1px; }
  .transfer-card, .scope-grid > div, .resource-card { padding: 25px; }
  footer { grid-template-columns: 1fr; gap: 14px; }
  footer p { text-align: left; }
  .footer-links { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .gradient-explainer.is-playing .route-node,
  .gradient-explainer.is-playing .route-edge,
  .gradient-explainer.is-playing .route-edge::before { animation: none; }
}
