@font-face {
  font-family: 'Source Serif 4';
  src: url('assets/fonts/source-serif-4-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('assets/fonts/jetbrains-mono-variable.woff2') format('woff2');
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f6f6ef;
  --surface: #fffefa;
  --ink: #1a1714;
  --muted: #625d55;
  --line: #d8d4c9;
  --gold: #a7690b;
  --amber: #f2a81e;
  --blue: #2c6e8f;
  --blue-soft: #a9bfcb;
  --rust: #b45e3e;
  --serif: 'Source Serif 4', Georgia, serif;
  --mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 18px/1.68 var(--serif); font-optical-sizing: auto; }
button, input { font: inherit; }
a { color: inherit; text-underline-offset: .18em; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible, video:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }
img, video { display: block; max-width: 100%; }
img { width: 100%; height: auto; }
figure { margin: 0; }
sub, sup { line-height: 0; }
.skip-link { position: fixed; left: 18px; top: -100px; z-index: 100; padding: 10px 16px; background: var(--amber); color: var(--ink); font: 12px var(--mono); }
.skip-link:focus { top: 14px; }
.main-content { width: min(1120px, calc(100% - 80px)); margin: 0 auto; }

/* The film opening introduces the physical task before the paper sections. */
.page-header { position: relative; isolation: isolate; display: flex; align-items: center; width: 100vw; min-height: 760px; min-height: min(900px, 100svh); margin-left: calc(50% - 50vw); overflow: hidden; color: #fff; background: #121719; }
.hero-media, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; background: url('assets/hero-sweeping-pptx.webp') 35% center / cover no-repeat; }
.hero-media video { object-fit: cover; object-position: 35% center; }
.page-header::after { content: ''; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(5, 10, 12, .1) 0%, rgba(5, 10, 12, .3) 33%, rgba(5, 10, 12, .76) 65%, rgba(5, 10, 12, .9) 100%), linear-gradient(0deg, rgba(5, 10, 12, .65), transparent 32%); }
.hero-inner { width: min(1260px, calc(100% - 100px)); min-width: 0; margin: 0 auto; padding: 85px 0 100px 40%; }
.hero-kicker, .eyebrow { display: block; color: var(--gold); font: 600 11px/1.5 var(--mono); letter-spacing: .16em; text-transform: uppercase; }
.hero-kicker { color: #f9c661; margin-bottom: 18px; }
.hero-kicker span { margin: 0 9px; opacity: .55; }
.hero-text { margin: 0 0 10px; font-size: clamp(76px, 8.3vw, 126px); font-weight: 600; letter-spacing: -.055em; line-height: .95; }
.hero-text span { color: var(--amber); }
.sub-hero-text { max-width: 680px; margin: 0 0 22px; font-size: clamp(26px, 2.5vw, 38px); font-weight: 400; letter-spacing: -.022em; line-height: 1.18; text-wrap: balance; overflow-wrap: anywhere; }
.authors { max-width: 650px; color: #f1eee7; font: 14px/1.55 var(--serif); }
.authors p { margin: 0; }
.authors .author-names { font-size: 15px; line-height: 1.55; }
.authors a { text-decoration-thickness: 1px; }
.authors .author-affiliations, .authors .author-notes { display: flex; flex-wrap: wrap; gap: 2px 14px; margin-top: 7px; color: #d5d4ce; font: 10px/1.5 var(--mono); }
.quick-links { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0 25px; }
.resource-link { display: inline-flex; align-items: baseline; justify-content: center; gap: 8px; min-width: 104px; padding: 9px 15px; border: 1px solid #ffffff8a; border-radius: 2px; text-decoration: none; font: 600 12px/1.3 var(--mono); transition: background .2s, border-color .2s, color .2s; }
.resource-link:hover, .resource-link:focus-visible { border-color: var(--amber); background: var(--amber); color: var(--ink); }
.resource-link small { font-size: 9px; font-weight: 400; }
.pending-link { color: #d0d1cb; border-color: #ffffff4d; cursor: default; }
.pending-link:hover { background: transparent; border-color: #ffffff4d; color: #d0d1cb; }
.tldr { max-width: 680px; margin: 0; padding: 12px 18px; border-left: 3px solid var(--amber); background: #0b0e0c85; font-size: 17px; line-height: 1.47; }
.tldr strong { display: block; margin-bottom: 3px; color: #f8c36b; font: 600 10px/1.5 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.scroll-cue { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); color: #fff; text-decoration: none; white-space: nowrap; font: 600 10px/1.4 var(--mono); letter-spacing: .17em; text-transform: uppercase; }
.scroll-cue span { display: block; margin-top: 5px; text-align: center; font: 24px var(--serif); }

/* A compact contents rail becomes a horizontal section index on smaller screens. */
.toc { display: none; position: fixed; z-index: 20; top: 50%; left: 20px; transform: translateY(-50%); width: 190px; max-height: calc(100vh - 48px); overflow-y: auto; padding: 20px; border: 1px solid var(--line); background: #f6f6efed; backdrop-filter: blur(12px); box-shadow: 0 18px 50px #1a171414; }
.toc h3 { margin: 0 0 12px; color: var(--gold); font: 700 11px var(--mono); letter-spacing: .15em; text-transform: uppercase; }
.toc hr { height: 1px; border: 0; background: var(--line); }
.toc ul { list-style: none; padding: 0; margin: 14px 0 0; }
.toc li { margin: 0 0 8px; }
.toc a { text-decoration: none; font: 11px/1.5 var(--mono); color: #49453e; }
.toc a:hover, .toc a[aria-current='location'] { color: var(--gold); text-decoration: underline; }
.mobile-nav { position: sticky; top: 0; z-index: 15; display: flex; gap: 7px; width: 100vw; margin: 0 0 62px calc(50% - 50vw); padding: 12px max(40px, calc((100vw - 1120px)/2)); overflow-x: auto; scrollbar-width: thin; border-bottom: 1px solid var(--line); background: #f6f6eff2; backdrop-filter: blur(12px); }
.mobile-nav a { flex: none; padding: 7px 12px; border-radius: 2px; text-decoration: none; white-space: nowrap; color: #48443f; font: 600 11px/1.3 var(--mono); }
.mobile-nav a:hover, .mobile-nav a:focus-visible { background: var(--ink); color: #fff; }

.key-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 118px; padding: 30px 0; border-block: 1px solid var(--line); }
.key-results > div { padding: 8px 25px 8px 0; }
.key-results > div + div { padding-left: 30px; border-left: 1px solid var(--line); }
.key-results dt { font-size: clamp(51px, 6vw, 79px); font-weight: 600; letter-spacing: -.055em; line-height: 1; color: var(--ink); }
.key-results > div:first-child dt { color: var(--gold); }
.key-results dt small { font: 600 .27em var(--mono); letter-spacing: -.05em; }
.key-results dd { margin: 12px 0 0; color: var(--muted); font: 11px/1.55 var(--mono); }

/* Editorial sections */
.page-section { margin: 0 0 132px; scroll-margin-top: 92px; }
.section-heading { display: grid; grid-template-columns: 142px minmax(0, 1fr); gap: 20px; align-items: start; margin: 0 0 30px; padding-top: 27px; border-top: 1px solid var(--line); }
.section-heading .eyebrow { padding-top: 10px; }
.tagline { display: block; max-width: 850px; margin: 0; font-size: clamp(46px, 5.1vw, 69px); font-weight: 600; letter-spacing: -.047em; line-height: 1.05; text-wrap: balance; }
.section-intro { max-width: 840px; margin: 0 0 32px 162px; color: #3c3831; font-size: clamp(21px, 2.1vw, 25px); line-height: 1.45; }
.section-intro b { font-weight: 650; }
.figure-caption { margin: 16px 0 0; color: var(--muted); text-align: left; font: 11px/1.65 var(--mono); }
.figure-caption a { color: var(--gold); font-weight: 600; }
.demo-feature, .research-figure { padding: 14px; border: 1px solid var(--line); background: var(--surface); }
.demo-feature-video { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #101010; }
.demo-feature .figure-caption, .research-figure .figure-caption { padding: 0 3px 3px; }
.figure-open { display: block; width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: inherit; cursor: zoom-in; }
.figure-open::after { content: 'VIEW FULL SIZE ↗'; display: block; margin: 9px 0 2px; color: var(--gold); text-align: right; font: 600 9px var(--mono); letter-spacing: .1em; }

/* Task films and method cards */
.task-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.task-card { overflow: hidden; border: 1px solid var(--line); background: var(--surface); transition: box-shadow .25s, transform .25s; }
.task-card:hover { transform: translateY(-3px); box-shadow: 0 12px 34px #1a171417; }
.task-card video { width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #101010; }
.task-card figcaption { display: flex; flex-direction: column; gap: 5px; padding: 18px 21px 22px; }
.task-card figcaption strong { font-size: 25px; font-weight: 600; line-height: 1.15; }
.task-card figcaption span { color: var(--muted); font: 11px/1.5 var(--mono); }
.task-card:last-child { grid-column: 1/-1; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; }
.task-card:last-child video { height: 100%; }
.idea-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; margin-top: 20px; }
.idea-card { padding: 27px 25px 30px; border-top: 3px solid var(--amber); background: #eeede4; }
.idea-number { color: var(--gold); font: 600 12px var(--mono); }
.idea-card h3 { margin: 26px 0 12px; font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.15; }
.idea-card p { margin: 0; color: #514d46; font-size: 17px; line-height: 1.52; }

/* Result panels retain the existing scroll-triggered fills. */
.chart-panel { margin-bottom: 20px; padding: 31px 37px 34px; border: 1px solid var(--line); background: var(--surface); }
.chart-panel h3 { margin: 0 0 25px; font-size: 32px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; }
.bar-row { display: grid; grid-template-columns: 230px minmax(0, 1fr) 58px; align-items: center; gap: 16px; margin: 16px 0; font-size: 17px; line-height: 1.25; }
.bar-row > span { min-width: 0; }
.bar-track { height: 25px; overflow: hidden; background: #e9e9df; }
.bar-track i { display: block; width: var(--value); height: 100%; background: var(--blue-soft); }
.bar-row.highlight { font-weight: 650; }
.bar-row.highlight .bar-track i { background: var(--amber); }
.bar-row b { text-align: right; font: 700 15px var(--mono); }
.chart-note { margin: 27px 0 0; color: var(--muted); font: 11px/1.6 var(--mono); }
.chart-panel.bar-animate .bar-track i, .chart-panel.bar-animate .mini-bar i { transform: scaleX(0); transform-origin: left center; transition: transform 850ms cubic-bezier(.22,1,.36,1); transition-delay: var(--bar-delay, 0ms); }
.chart-panel.bar-animate.is-visible .bar-track i, .chart-panel.bar-animate.is-visible .mini-bar i { transform: scaleX(1); }
.task-chart h3 { margin-bottom: 8px; }
.chart-legend { display: flex; justify-content: flex-end; gap: 20px; margin-bottom: 25px; color: var(--muted); font: 10px var(--mono); }
.chart-legend span::before { content: ''; display: inline-block; width: 11px; height: 11px; margin-right: 7px; background: var(--blue-soft); vertical-align: -1px; }
.chart-legend .legend-dark::before { background: var(--amber); }
.task-result { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid #e6e2d8; font-size: 16px; }
.task-result strong { font-weight: 500; }
.paired-bars { display: grid; gap: 6px; }
.mini-bar { display: grid; grid-template-columns: minmax(0, 1fr) 45px; align-items: center; gap: 10px; height: 16px; }
.mini-bar i { display: block; width: var(--value); height: 12px; background: var(--amber); }
.mini-bar.muted i { background: var(--blue-soft); }
.mini-bar small { text-align: right; font: 10px var(--mono); }
.backbone-highlights { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-bottom: 23px; }
.backbone-highlights > div { display: flex; flex-wrap: wrap; gap: 5px 24px; padding: 25px 30px; color: #fff; background: var(--ink); }
.backbone-highlights > div:first-child { border-top: 4px solid var(--blue); }
.backbone-highlights > div:last-child { border-top: 4px solid var(--rust); }
.backbone-highlights strong { flex-basis: 100%; margin-bottom: 12px; font-size: 26px; font-weight: 600; }
.backbone-highlights span { font: 12px/1.6 var(--mono); }
.backbone-highlights b { color: #f8c661; }
.policy-clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; margin-top: 20px; }
.policy-clips figure { padding: 12px; border: 1px solid var(--line); background: var(--surface); }
.policy-clips video { width: 100%; aspect-ratio: 16/9; object-fit: contain; background: #101010; }
.policy-clips figcaption { margin: 12px 0 0; color: var(--muted); font: 11px/1.4 var(--mono); }
.contact-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; align-items: start; }
.contact-pair figure { padding: 12px; border: 1px solid var(--line); background: var(--surface); }
.contact-pair video { width: 100%; aspect-ratio: 4/3; object-fit: contain; background: #101010; }
.contact-pair figcaption { margin: 12px 0 0; color: var(--muted); font: 11px/1.4 var(--mono); }
.contact-trace { margin-top: 20px; }
.contact-trace + .figure-caption { margin-top: 18px; }
.takeaways { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; margin: 22px 0; }
.takeaways p { margin: 0; padding: 24px 25px; border-left: 3px solid var(--amber); background: #eeede4; font-size: 18px; line-height: 1.48; }
.takeaways b { color: var(--gold); }
.abstract-copy { max-width: 830px; margin-left: 162px; font-size: 20px; line-height: 1.68; }
.abstract-copy p { margin: 0 0 18px; }
.citation-note { margin: 0 0 15px; color: var(--muted); font: 11px/1.5 var(--mono); }
.bibtex-code { margin: 0; padding: 25px 30px; overflow-x: auto; border-left: 4px solid var(--amber); background: #1a1d1d; color: #f4f3ec; font: 12px/1.75 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }

.footer { padding: 45px 24px 52px; color: #dbdbd4; background: var(--ink); text-align: center; font: 11px/1.9 var(--mono); }
.footer strong { color: #fff; font: 600 30px/1.3 var(--serif); }
.footer a { color: #f7c460; }
#figure-dialog { width: min(1320px, 94vw); max-height: 92vh; padding: 18px; border: 1px solid var(--line); background: var(--paper); }
#figure-dialog::backdrop { background: #0a0c0dda; }
#dialog-image { width: 100%; height: auto; margin-top: 15px; }
#dialog-caption { color: var(--muted); font: 11px/1.6 var(--mono); }
.dialog-close { position: sticky; top: 0; display: block; margin-left: auto; padding: 7px 13px; border: 1px solid var(--ink); background: var(--paper); cursor: pointer; font: 11px var(--mono); }

@media (min-width: 1560px) {
  .toc { display: block; }
  .mobile-nav { display: none; }
  .key-results { margin-top: 70px; }
}
@media (max-width: 1100px) {
  .hero-inner { padding-left: 30%; }
  .main-content { width: min(100% - 56px, 1120px); }
  .mobile-nav { padding-inline: 28px; }
  .section-heading { grid-template-columns: 118px 1fr; }
  .section-intro, .abstract-copy { margin-left: 138px; }
  .bar-row, .task-result { grid-template-columns: 190px minmax(0, 1fr) 58px; }
  .task-result { grid-template-columns: 190px minmax(0, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .main-content { width: calc(100% - 36px); }
  .page-header { min-height: 760px; height: auto; align-items: flex-end; }
  .hero-media video { object-position: 28% center; }
  .page-header::after { background: linear-gradient(0deg, #080d0ff0 0%, #080d0fdb 43%, #080d0f58 100%); }
  .hero-inner { width: calc(100% - 38px); padding: 170px 0 85px; }
  .hero-text { font-size: clamp(70px, 16vw, 104px); }
  .hero-kicker { font-size: 9px; overflow-wrap: anywhere; }
  .sub-hero-text { font-size: clamp(25px, 6vw, 34px); text-wrap: wrap; }
  .authors .author-names { font-size: 12px; }
  .authors .author-affiliations, .authors .author-notes { font-size: 9px; }
  .quick-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 400px; }
  .resource-link { min-width: 0; }
  .tldr { font-size: 15px; }
  .scroll-cue { display: none; }
  .mobile-nav { margin-bottom: 40px; padding-inline: 18px; }
  .key-results { display: flex; gap: 0; margin-bottom: 85px; overflow-x: auto; scrollbar-width: thin; }
  .key-results > div { flex: 0 0 175px; padding: 5px 16px 5px 0; }
  .key-results > div + div { padding-left: 17px; }
  .key-results dt { font-size: 52px; }
  .key-results dd { font-size: 10px; }
  .page-section { margin-bottom: 88px; }
  .section-heading { display: block; padding-top: 22px; margin-bottom: 20px; }
  .section-heading .eyebrow { padding: 0; margin-bottom: 12px; }
  .tagline { font-size: clamp(41px, 10vw, 58px); }
  .section-intro, .abstract-copy { margin-left: 0; }
  .section-intro { font-size: 20px; }
  .demo-feature, .research-figure { padding: 8px; }
  .task-grid, .idea-grid, .backbone-highlights, .policy-clips, .contact-pair, .takeaways { grid-template-columns: 1fr; }
  .task-card:last-child { grid-column: auto; display: block; }
  .task-card:last-child video { height: auto; }
  .idea-card h3 { margin-top: 16px; }
  .chart-panel { padding: 20px 18px 24px; }
  .chart-panel h3 { font-size: 27px; }
  .bar-row { grid-template-columns: 118px minmax(0, 1fr) 42px; gap: 8px; font-size: 13px; }
  .bar-track { height: 19px; }
  .bar-row b { font-size: 11px; }
  .task-result { grid-template-columns: 110px minmax(0, 1fr); gap: 8px; font-size: 13px; }
  .mini-bar { grid-template-columns: minmax(0, 1fr) 34px; gap: 5px; }
  .mini-bar small { font-size: 9px; }
  .chart-legend { gap: 10px; font-size: 9px; }
  .backbone-highlights > div { padding: 22px; }
  .contact-pair video { aspect-ratio: 4/3; }
  .abstract-copy { font-size: 18px; }
  .bibtex-code { padding: 18px; font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-media video { display: none; }
  .resource-link, .task-card, .chart-panel.bar-animate .bar-track i, .chart-panel.bar-animate .mini-bar i { transition: none; }
  .chart-panel.bar-animate .bar-track i, .chart-panel.bar-animate .mini-bar i { transform: none; }
}
