:root {
  color-scheme: light;
  --ink: #182331;
  --muted: #556273;
  --accent: #245cce;
  --line: #e1e7ee;
  --tint: #f5f8fc;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { margin: 0; font-size: 1rem; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
::selection { background: #dce8ff; }
figure, h1, h2, h3, p { margin: 0; }
img { display: block; width: 100%; height: auto; }
.container { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: absolute; left: 1rem; top: -8rem; background: white; padding: .75rem 1rem; z-index: 10; }
.skip-link:focus { top: 1rem; }
.site-header { border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 1.5rem; }
.wordmark { font-size: 1.45rem; font-weight: 800; letter-spacing: -.06em; }
.wordmark span { color: var(--accent); }
.nav-links { display: flex; flex-wrap: wrap; gap: 2rem; font-size: .875rem; font-weight: 500; color: var(--muted); }
.hero { padding-top: 60px; text-align: center; }
.eyebrow { color: var(--accent); font-size: .75rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; margin-bottom: 1.3rem; }
h1 { font-size: clamp(1.65rem, 3.2vw, 2.65rem); line-height: 1.24; font-weight: 600; letter-spacing: -.035em; text-wrap: balance; }
.project-name { color: var(--ink); font-weight: 700; }
.hero-description { color: var(--muted); font-size: 1.125rem; line-height: 1.7; margin: 1.5rem auto 0; max-width: 640px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .8rem; margin: 1.8rem 0; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 1.2rem; min-height: 48px; padding: .7rem 1.25rem; font-size: .875rem; font-weight: 600; border-radius: 7px; transition: background .15s, border-color .15s; }
.primary { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.primary:hover { background: #184baa; border-color: #184baa; color: #fff; }
.secondary { border: 1px solid var(--line); }
.secondary:hover { background: var(--tint); border-color: #b8c8e2; }
.feature-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 0; font-size: .875rem; color: var(--muted); }
.feature-tags li::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin: 0 .55rem .15rem 0; }
.teaser { margin-top: 54px; padding: 22px 22px 0; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.teaser img { max-width: 890px; margin-inline: auto; }
figcaption { font-size: .875rem; color: var(--muted); padding: 1.3rem 0; line-height: 1.6; }
.figure-label { color: var(--ink); font-weight: 600; }
.section { padding-block: 64px; }
h2 { font-size: clamp(1.65rem, 2.5vw, 2rem); line-height: 1.2; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }
.overview { display: block; }
.overview .prose { margin-top: 24px; max-width: 960px; }
.prose { color: var(--muted); }
.prose p + p { margin-top: 1rem; }
.prose strong { font-weight: 600; color: var(--ink); }
.method-section { background: var(--tint); border-block: 1px solid var(--line); }
.method-heading { display: block; }
.section-intro { max-width: 960px; margin-top: 18px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; padding: 0; list-style: none; margin: 48px 0; }
.steps li { border-top: 1px solid #c8d5e6; padding-top: 1.2rem; }
.step-number { font-size: .875rem; font-weight: 600; color: var(--accent); }
h3 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.4; margin: .65rem 0; }
.steps p { color: var(--muted); font-size: 1rem; }
.framework { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 20px 20px 0; }
.framework figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .3rem 1rem; }
.framework figcaption a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.resources { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; }
.resources .section-heading > p:last-child { margin-top: 1rem; color: var(--muted); max-width: 330px; }
.resource-list { margin: 0; }
.resource-list > div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
.resource-list > div:first-child { padding-top: .25rem; }
dt { font-weight: 600; }
dd { margin: 0; }
.status { color: var(--muted); font-size: .875rem; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 28px; border-top: 1px solid var(--line); }
.footer p, .footer > a:last-child { color: var(--muted); font-size: .875rem; }
.footer > a:last-child:hover { color: var(--accent); }
@media (max-width: 760px) {
  .container { width: calc(100% - 40px); }
  .nav { min-height: 72px; gap: 1rem; }
  .nav-links { gap: 1rem; }
  .hero { padding-top: 52px; }
  .desktop-break { display: none; }
  .hero-description { font-size: 1rem; }
  .teaser { margin-top: 38px; padding: 10px 10px 0; }
  .section { padding-block: 56px; }
  .overview, .resources { grid-template-columns: 1fr; gap: 28px; }
  .method-heading { display: block; }
  .section-intro { max-width: none; margin-top: 1.25rem; }
  .steps { grid-template-columns: 1fr; gap: 1.5rem; margin-block: 32px; }
  .framework { padding: 10px 10px 0; }
  .footer { flex-wrap: wrap; gap: .65rem 1.5rem; }
  .footer p { order: 3; flex-basis: 100%; }
}
@media (max-width: 380px) {
  .nav { flex-wrap: wrap; padding-block: 12px; }
  .nav-links { width: 100%; justify-content: space-between; }
  .hero-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
}

.result-grid, .task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 40px 0 28px; }
.result-card { border: 1px solid var(--line); border-radius: 12px; padding: 28px; }
.platform-label { color: var(--accent); font-size: .875rem; font-weight: 600; }
.result-card h3 { color: var(--muted); font-size: .95rem; font-weight: 400; margin: 20px 0; }
.metric { display: block; color: var(--ink); font-size: clamp(3rem, 5vw, 4.4rem); font-weight: 650; letter-spacing: -.05em; line-height: 1.1; }
.metric > span { font-size: .5em; }
.result-card > p:last-of-type, .task-grid p { color: var(--muted); }
.metric-details { margin: 24px 0 0; }
.metric-details > div { display: flex; gap: 24px; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); font-size: .875rem; }
.metric-details dt { font-weight: 400; color: var(--muted); }
.metric-details dd { white-space: nowrap; font-weight: 600; }
.evaluation-note { color: var(--muted); font-size: .875rem; max-width: 940px; }
.evaluation-note p + p { margin-top: 12px; }
.result-figure { margin-top: 36px; }
.result-takeaway { margin-top: 24px; color: var(--muted); }
.task-grid { gap: 48px; margin-bottom: 36px; }
@media (max-width: 760px) {
  .result-grid, .task-grid { grid-template-columns: 1fr; gap: 20px; }
  .result-card { padding: 22px; }
  .nav { flex-wrap: wrap; padding-block: 16px; }
  .nav-links { gap: .5rem 1rem; }
}

/* Video-first research overview. */
.video-shell { margin-top: 44px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #f9fbfd; scroll-margin-top: 24px; }
.video-shell video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.video-caption { display: flex; justify-content: space-between; gap: 12px; text-align: left; margin-top: 12px; color: var(--muted); font-size: .82rem; }
.video-caption a, .data-links a, .resource-list a { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.chapters { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 22px; }
.chapters button { font: inherit; text-align: left; padding: 12px; font-size: .75rem; color: var(--accent); background: var(--tint); border: 1px solid var(--line); border-radius: 6px; cursor: pointer; }
.chapters button span { display: block; font-size: .82rem; font-weight: 600; color: var(--ink); margin-top: 3px; }
.chapters button:hover { border-color: var(--accent); background: #edf3ff; }
button:focus-visible, summary:focus-visible, .table-wrap:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.video-status { font-size: .8rem; color: var(--muted); }
.video-status:empty { display: none; }
.coverage-strip { display: grid; grid-template-columns: 1fr 1fr 1.65fr 1fr; border-block: 1px solid var(--line); margin-top: 40px; padding: 26px 0; gap: 12px; }
.coverage-strip strong { display: block; font-size: 2rem; line-height: 1.3; letter-spacing: -.04em; }
.coverage-strip span { display: block; font-size: .78rem; color: var(--muted); margin-top: 6px; }
.confidence { color: var(--muted); font-size: .8rem; margin: -10px 0 18px; }
.comparison { margin-top: 22px; }
.bar-row { display: grid; grid-template-columns: 112px 1fr 48px; gap: 10px; align-items: center; margin-block: 10px; font-size: .75rem; }
.bar-row b { text-align: right; font-variant-numeric: tabular-nums; }
.bar-track { height: 9px; background: #edf0f5; border-radius: 2px; overflow: hidden; }
.bar-track i { display: block; height: 100%; background: #9aa8ba; }
.bar-track .ours { background: var(--accent); }
.table-wrap { overflow-x: auto; margin-block: 22px; }
table { border-collapse: collapse; width: 100%; font-size: .85rem; font-variant-numeric: tabular-nums; text-align: right; }
caption { text-align: left; color: var(--muted); font-size: .8rem; padding-bottom: 12px; }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); }
thead th { color: var(--muted); background: var(--tint); font-size: .75rem; font-weight: 500; }
th:first-child { text-align: left; }
.evidence { border-top: 1px solid var(--line); }
.study-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin: 36px 0 22px; }
.study-grid article { border-top: 2px solid var(--accent); padding-top: 18px; }
.study-index { font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; color: var(--accent); font-weight: 600; }
.study-grid p, .ablation-heading p, .insight-grid p { color: var(--muted); font-size: .9rem; }
.ablation-heading { margin: 40px 0 20px; }
.ablation { border-top: 1px solid var(--line); }
.ablation:last-of-type { border-bottom: 1px solid var(--line); }
.ablation summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: .95rem; }
.ablation summary span { float: right; font-size: .75rem; font-weight: 400; color: var(--muted); padding-left: 12px; }
.ablation .table-wrap { margin-top: 0; }
.default-row { background: #eef4ff; }
.insight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 28px; }
.insight-grid strong { color: var(--ink); }
.data-links { display: flex; flex-wrap: wrap; gap: 12px 24px; font-size: .8rem; margin-top: 28px; }
@media (max-width: 760px) {
  .hero { padding-top: 38px; }
  .chapters { grid-template-columns: repeat(3, 1fr); }
  .coverage-strip { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .coverage-strip strong { font-size: 1.6rem; }
  .video-caption { flex-direction: column; gap: 4px; }
  .study-grid, .insight-grid { grid-template-columns: 1fr; gap: 24px; }
  th, td { padding: 10px 12px; white-space: nowrap; }
  .bar-row { grid-template-columns: 106px 1fr 45px; gap: 8px; }
  .ablation summary { font-size: .85rem; }
  .ablation summary span { display: none; }
}

/* Keep technical detail available without interrupting the project narrative. */
.protocol-details { margin-top: 18px; color: var(--muted); font-size: .85rem; }
.protocol-details summary { cursor: pointer; color: var(--accent); padding-block: 8px; }
.protocol-details .evaluation-note { margin-top: 10px; }
.evaluation-details { margin-top: 24px; }
.evaluation-details > summary { padding-block: 16px; cursor: pointer; font-weight: 600; color: var(--accent); }

.detail-note { font-size: .85rem; color: var(--muted); margin: 12px 0 22px; }
.evaluation-details .data-links { margin-top: 12px; }
@media (max-width: 760px) {
  .evaluation-details { padding-inline: 14px; }
}

.experiment-gallery { margin-top: 42px; scroll-margin-top: 24px; }
.gallery-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.gallery-heading h3 { font-size: 1.5rem; }
.gallery-heading p, .gallery-note { font-size: .8rem; color: var(--muted); }
.gallery-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(240px, 1fr); gap: 28px; align-items: start; }
.gallery-screen { min-width: 0; }
.gallery-screen video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #e9eef4; border-radius: 8px; }
.gallery-screen h4 { margin: 16px 0 6px; font-size: 1rem; }
#experiment-description { font-size: .875rem; color: var(--muted); }
.gallery-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 14px; font-size: .8rem; color: var(--muted); }
.gallery-meta a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.clip-group + .clip-group { margin-top: 16px; }
.clip-group > p { font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.clip-group a { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: .78rem; line-height: 1.45; padding: 10px 12px; border: 1px solid transparent; border-radius: 6px; }
.clip-group a:hover { background: white; }
.clip-group a[aria-current="true"] { background: white; border-color: #b8c8e2; color: var(--accent); font-weight: 600; }
.clip-time { flex-shrink: 0; color: var(--muted); font-variant-numeric: tabular-nums; font-size: .72rem; }
.gallery-note { margin-top: 20px; }
#experiment-status { font-size: .8rem; color: var(--muted); }
@media (max-width: 760px) {
  .gallery-heading { display: block; }
  .gallery-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .clip-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .clip-group + .clip-group { margin-top: 0; }
}
@media (max-width: 420px) { .clip-list { grid-template-columns: 1fr; } }

.book-buttons { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; }
.book-buttons a { display: block; text-align: center; padding: 9px 3px; border-color: var(--line); background: #fff; font-size: .72rem; }
.book-buttons a[aria-current="true"] { background: #e8f0ff; border-color: var(--accent); }
@media (min-width: 421px) and (max-width: 760px) { .book-options { grid-column: 1 / -1; } }

/* Research results use comparable metrics and ordinary text hierarchy. */
.main-results th:nth-child(2),
.main-results td:nth-child(2) { text-align: left; }
.main-results tbody tr:nth-child(3) > * { border-bottom: 2px solid #b8c8d8; }
.ablation-summary { margin-top: 18px; max-width: 960px; color: var(--muted); }
.nav-links { column-gap: 1.4rem; }
