:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #202c32;
  --muted: #5e6b70;
  --line: #dfE3dd;
  --accent: #086c63;
  --tint: #ecf2ee;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.65; }
a { color: var(--accent); text-underline-offset: 4px; }
button, select, input { font: inherit; }
button, select, input[type="checkbox"] { cursor: pointer; }
button:disabled, input:disabled { cursor: wait; opacity: .5; }
button, select, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #b06c21; outline-offset: 4px; }
::selection { background: #cde5dc; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; line-height: 1.12; }
h3 { font-size: 1.42rem; font-weight: 650; letter-spacing: -.025em; line-height: 1.3; }
.skip-link { position: absolute; left: 12px; top: -80px; padding: 10px; background: white; z-index: 10; }
.skip-link:focus { top: 12px; }
.site-header, .site-footer { max-width: 1280px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.site-header { min-height: 86px; padding: 18px 32px; border-bottom: 1px solid var(--line); }
.wordmark { color: var(--ink); font-size: 1.12rem; font-weight: 750; letter-spacing: -.045em; text-decoration: none; }
.wordmark-dot { color: var(--accent); }
nav { display: flex; gap: 30px; }
nav a { font-size: .9rem; color: var(--muted); text-decoration: none; }
nav a:hover { color: var(--accent); }
.hero { text-align: center; padding: 85px 24px 92px; }
.eyebrow { color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 20px; }
h1 { font-size: clamp(2.8rem, 5.2vw, 4.65rem); }
.hero-description { margin-top: 27px; color: var(--muted); font-size: 1.15rem; line-height: 1.65; }
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.button, .icon-button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; padding: 10px 18px; min-height: 44px; border: 1px solid #ccd3ce; border-radius: 7px; background: transparent; color: var(--ink); font-size: .875rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.button:hover, .icon-button:hover { background: #eef0eb; }
.button.primary { background: var(--accent); border-color: var(--accent); color: white; }
.button.primary:hover { background: #075950; }
.icon-button { padding: 8px 13px; font-size: 1.1rem; }
.experiment { max-width: 1280px; margin: auto; padding: 62px 32px 74px; border-top: 1px solid var(--line); }
.reading-width { max-width: 840px; margin-left: auto; margin-right: auto; }
h2 { font-size: clamp(2.4rem, 4.5vw, 3.45rem); }
.section-intro { font-size: 1.12rem; margin-top: 25px; }
.theory-prose { margin-top: 32px; font-size: 1.04rem; }
.theory-prose > p + p { margin-top: 20px; }
.theory-prose h3 { margin: 48px 0 20px; font-size: 1.5rem; }
.theory-prose ul { padding-left: 24px; margin: 18px 0 22px; }
.theory-prose li + li { margin-top: 8px; }
.theory-prose .katex { font-size: 1.08em; }
.equation { max-width: 100%; overflow-x: auto; margin: 23px 0; padding: 10px 4px 14px; }
.equation .katex-display { margin: 0; }
.equation .katex-display > .katex { text-align: left; }
.theory-callout { margin: 28px 0; padding: 20px 24px; border-left: 3px solid var(--accent); background: var(--tint); border-radius: 0 6px 6px 0; }
.theory-callout p + p { margin-top: 12px; }
.theory-takeaway { margin-bottom: 0; }
.method-page { max-width: 1280px; margin: auto; padding: 38px 32px 74px; }
.back-link { display: inline-block; font-size: .86rem; text-decoration: none; }
.method-heading { margin-top: 38px; }
.method-heading h1 { font-size: clamp(2.55rem, 4.5vw, 3.8rem); }
.method-content h2 { margin: 44px 0 18px; font: 650 1.5rem/1.3 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; letter-spacing: -.025em; }
.method-table { width: 100%; margin: 20px 0 26px; border-collapse: collapse; font-size: .92rem; }
.method-table th, .method-table td { padding: 12px 0; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.method-table th { width: 31%; padding-right: 20px; font-weight: 650; }
.method-content code { font-size: .85em; overflow-wrap: anywhere; }
.method-code { max-width: 100%; overflow-x: auto; margin: 24px 0; padding: 20px; background: var(--tint); border: 1px solid var(--line); border-radius: 6px; line-height: 1.6; }
.method-code code { overflow-wrap: normal; }
.method-sources { margin-top: 40px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .9rem; }
.method-sources summary { color: var(--accent); font-weight: 600; cursor: pointer; }
.method-sources p { margin-top: 18px; }
.method-sources ul { margin-bottom: 0; }
.method-return { margin-top: 32px; }
.method-return .button { white-space: normal; }
.result-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; font-size: .9rem; }
.fixed-comparison .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.fixed-comparison .sample-info { margin: 0; }
.frame-output { margin-left: auto; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.report-page > .reading-width { max-width: 1040px; }
.report-content p { margin: 18px 0; }
.report-content img { display: block; width: 100%; height: auto; margin: 28px 0 12px; border: 1px solid var(--line); border-radius: 6px; }
.report-toc { display: block; margin: 32px 0; padding: 18px 24px; background: var(--tint); border-radius: 6px; }
.report-toc ol { columns: 2; margin: 0; padding-left: 22px; }
.report-toc li { break-inside: avoid; padding-right: 12px; }
.report-toc a { color: var(--accent); font-size: .88rem; }
.table-scroll { max-width: 100%; overflow-x: auto; margin: 24px 0; }
.report-content table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .88rem; }
.report-content th, .report-content td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.report-content th { font-weight: 650; }
.rollout-results .findings h3 + p, .rollout-results .findings p + p { margin-top: 16px; }
.rollout-results figure + .report-content, .report-section figure + .report-content { margin-top: 32px; }
.rollout-results .archive-heading, .report-section .archive-heading { margin-top: 32px; }
.report-section .report-content h3 { margin-top: 40px; }
.report-section .report-content h3:first-child { margin-top: 0; }
.report-section .report-content h3 + p { margin-top: 14px; }
.report-section .report-content h4 { margin-top: 28px; font-size: 1.05rem; font-weight: 650; }
.report-section .report-content h4 + p { margin-top: 12px; }
.report-section .report-content h5 { margin-top: 26px; font-size: .95rem; font-weight: 650; letter-spacing: -.01em; color: var(--ink); }
.report-section .report-content h5 + p { margin-top: 10px; }
.report-section .data-links { grid-template-columns: repeat(2, 1fr); }
.report-section .report-content ul, .report-section .report-content ol { padding-left: 24px; margin: 18px 0; }
.report-section .report-content li + li { margin-top: 8px; }
.wide-width { max-width: 1216px; margin-left: auto; margin-right: auto; }
.plot.wide { max-width: 1216px; }
.video-scroll { max-width: 100%; overflow-x: auto; }
.video-scroll video { min-width: 860px; }
.gallery, .gallery-group { display: grid; gap: 26px; }
.gallery-group, .gallery-item { min-width: 0; }
.gallery-select { display: flex; align-items: center; gap: 8px; flex-shrink: 0; font-size: .74rem; font-weight: 650; color: var(--muted); }
.gallery-select select { min-height: 36px; font-size: .8rem; }
.gallery-item video { display: block; width: 100%; height: auto; background: #fff; border: 1px solid #e8e5df; border-radius: 8px; }
.gallery-label { margin-top: 9px; color: var(--muted); font-size: .78rem; }
.gallery-label a { text-decoration: none; }
.gallery-source { color: var(--muted); font-size: .78rem; }
.study-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.study-facts span { background: var(--tint); border-radius: 5px; padding: 5px 10px; font-size: .8rem; font-weight: 600; color: #3e5e56; }
.setup-note { color: var(--muted); font-size: .88rem; margin-top: 16px; }
.findings { margin-top: 42px; }
.finding-list { list-style: none; counter-reset: finding; padding: 0; margin: 15px 0 0; }
.finding-list li { position: relative; padding: 18px 0 18px 43px; border-bottom: 1px solid var(--line); counter-increment: finding; font-size: .97rem; }
.finding-list li::before { content: "0" counter(finding); position: absolute; left: 0; top: 20px; font-size: .74rem; color: var(--accent); font-weight: 700; }
.finding-list strong { font-weight: 650; }
.plot { max-width: 1030px; margin: 66px auto 0; }
.figure-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.figure-heading a { flex-shrink: 0; font-size: .8rem; text-decoration: none; }
.plot img { display: block; width: 100%; height: auto; background: #fffdfa; border: 1px solid #e8e5df; border-radius: 8px; }
figcaption { color: var(--muted); font-size: .86rem; margin-top: 14px; max-width: 850px; }
.figure-number { color: var(--ink); font-weight: 650; }
.comparison-section { margin-top: 84px; }
.comparison-heading h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 3.5vw, 2.7rem); font-weight: 400; }
.comparison-heading > p:last-child { margin-top: 17px; color: var(--muted); }
.viewer { margin-top: 30px; border: 1px solid #d8ded7; border-radius: 12px; background: #fff; overflow: hidden; box-shadow: 0 6px 22px #26372d05; }
.viewer-selection { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; padding: 20px 22px; border-bottom: 1px solid var(--line); }
.viewer-selection label { display: grid; gap: 5px; font-size: .74rem; font-weight: 650; color: var(--muted); }
select { min-height: 40px; padding: 6px 30px 6px 10px; border: 1px solid #cfd6d0; border-radius: 5px; color: var(--ink); background: #fff; font-size: .875rem; }
.sample-info { color: var(--muted); font-size: .8rem; margin: 0 0 7px auto; }
.video-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 20px; }
.video-card { min-width: 0; border-top: 3px solid var(--method-color, #71817b); }
.video-card h4 { min-height: 55px; display: flex; align-items: center; margin: 0; padding: 8px 0; font-size: .82rem; font-weight: 650; line-height: 1.35; }
.video-card video { display: block; width: 100%; aspect-ratio: 1; background: #f3f3ed; border-radius: 5px; object-fit: contain; }
.clip-link { display: inline-block; margin-top: 7px; font-size: .73rem; text-decoration: none; }
.method-link { display: inline-block; margin-top: 13px; font-size: .74rem; }
.score { margin-top: 10px; padding: 11px 0 12px; border-bottom: 1px solid var(--line); }
.score small { display: block; color: var(--muted); font-size: .69rem; line-height: 1.35; }
.score strong { display: block; font-size: 1.4rem; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.03em; line-height: 1.55; }
.score span { display: block; color: var(--muted); font-size: .68rem; }
.metric-details { font-size: .7rem; margin-top: 10px; }
.metric-details summary { cursor: pointer; color: var(--muted); }
.metric-details h5 { font-size: .72rem; margin: 12px 0 5px; }
.metric-details dl { display: grid; grid-template-columns: 1fr auto; gap: 3px 5px; margin: 0; }
.metric-details dt { color: var(--muted); }
.metric-details dd { margin: 0; font-variant-numeric: tabular-nums; }
.validity { color: var(--muted); line-height: 1.5; margin-top: 12px; }
.playback-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 18px; background: #f6f8f4; padding: 18px 22px; border-top: 1px solid var(--line); }
.playback-buttons { display: flex; gap: 7px; }
.speed-control, .loop-control { display: flex; align-items: center; gap: 7px; font-size: .8rem; color: var(--muted); }
.speed-control select { min-height: 36px; font-size: .8rem; }
input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
#frame-output { margin-left: auto; font-size: .8rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.frame-slider { width: 100%; margin: 3px 0; accent-color: var(--accent); cursor: pointer; }
.viewer-status { padding: 0 22px 12px; margin: 0; font-size: .8rem; background: #f6f8f4; color: var(--muted); }
.example-note { margin-top: 25px; border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; font-size: .92rem; }
[hidden] { display: none !important; }
.metric-note { color: var(--muted); font-size: .83rem; margin-top: 17px; }
.data-section { margin-top: 75px; }
.data-section > p:not(.eyebrow) { margin-top: 14px; color: var(--muted); font-size: .95rem; }
.data-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 23px; }
.data-links a { display: flex; flex-direction: column; gap: 8px; padding: 15px 18px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-size: .88rem; }
.data-links a:hover { background: var(--tint); }
.data-links small { font-size: .72rem; color: var(--muted); }
.site-footer { padding: 25px 32px 35px; border-top: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.site-footer a { text-decoration: none; }
.rail { display: none; }
/* The rail is fixed, so it needs a clear left gutter: main gets 228px of left
   padding, and the header and footer are widened by the same amount so their
   text still lines up with the sections'. */
@media (min-width: 1180px) and (min-height: 560px) {
  .rail { display: block; position: fixed; left: 6px; top: 50%; transform: translateY(-50%); width: 210px; z-index: 5; }
  .rail-svg { display: block; width: 210px; height: 416px; overflow: visible; }
  main { padding-left: 228px; }
  .site-header, .site-footer { max-width: 1508px; padding-left: 260px; }
}
.rail-node circle { fill: var(--accent); }
.rail-number { fill: #fff; font-size: 11.5px; font-weight: 700; }
.rail-number-small { font-size: 9.5px; }
.rail-glyph { font-size: 14px; font-weight: 700; }
.rail-label { fill: var(--ink); font-size: 11.5px; font-weight: 650; }
.rail-node.traj-theory circle { fill: var(--tint); stroke: #7ba699; stroke-width: 1.5; stroke-dasharray: 3.5 3.5; }
.rail-node.traj-theory .rail-number { fill: var(--accent); font-size: 9.5px; }
.rail-node.traj-theory .rail-label { fill: var(--muted); }
.rail-node .rail-ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; }
.rail-node.is-current .rail-ring { opacity: .45; }
.rail-node.is-current .rail-label { fill: var(--accent); }
.rail-node:hover .rail-label { text-decoration: underline; text-underline-offset: 3px; }
.rail-node:hover circle:not(.rail-ring) { fill: #075950; }
.rail-node.traj-theory:hover circle:not(.rail-ring) { fill: #d5e4dc; }
.traj { max-width: 1030px; margin: 0 auto; }
.traj svg { display: block; width: 100%; height: auto; overflow: visible; }
.traj svg.traj-tall { display: none; }
.traj-branch { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-opacity: .45; stroke-dasharray: 5 5; }
.traj-line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-opacity: .45; stroke-linecap: round; }
.traj-arrow { fill: var(--accent); fill-opacity: .45; }
.traj-node { cursor: pointer; }
.traj-node circle { fill: var(--accent); }
.traj-number { fill: #fff; font-size: 16px; font-weight: 700; }
.traj-label { fill: var(--ink); font-size: 16px; font-weight: 650; }
.traj-node:hover circle { fill: #075950; }
.traj-node:hover .traj-label { text-decoration: underline; text-underline-offset: 3px; }
.traj-theory circle { fill: var(--tint); stroke: #a9bfb7; stroke-width: 1.5; stroke-dasharray: 4 4; }
.traj-theory .traj-number { fill: var(--accent); }
.traj-theory:hover circle { fill: #dbe7e0; }
.overview-aside { color: var(--muted); font-size: .88rem; }
.overview-aside a { font-weight: 650; text-decoration: none; }
.overview-aside a:hover { text-decoration: underline; }
.todo-item + .todo-item { margin-top: 52px; padding-top: 40px; border-top: 1px solid var(--line); }
.todo-item .eyebrow { margin-bottom: 12px; }
.todo-item h3 { margin-bottom: 4px; }
.part-heading { margin-top: 82px; padding-top: 36px; border-top: 1px solid var(--line); }
.part-heading h3 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.2rem, 3.8vw, 2.95rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.15; }
.section-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; margin-top: 50px; padding-top: 22px; border-top: 1px solid var(--line); }
.section-controls p { color: var(--muted); font-size: .88rem; }
.section-controls-buttons { display: flex; gap: 10px; }
.section-details > summary { list-style: none; cursor: pointer; }
.section-details > summary::-webkit-details-marker { display: none; }
.summary-inner { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; }
.summary-text { flex: 1 1 auto; min-width: 0; }
.section-toggle { flex-shrink: 0; display: inline-flex; align-items: center; gap: 9px; margin-top: 7px; padding: 7px 13px; border: 1px solid #ccd3ce; border-radius: 7px; color: var(--muted); font-size: .78rem; font-weight: 650; }
.section-details > summary:hover .section-toggle { border-color: var(--accent); color: var(--accent); }
.toggle-chevron { width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.section-details[open] .toggle-chevron { transform: translateY(2px) rotate(-135deg); }
.section-details[open] .toggle-closed, .section-details:not([open]) .toggle-open { display: none; }
.experiment:has(.section-details:not([open])) { padding-bottom: 30px; }
@media (max-width: 1080px) {
  .site-header { flex-wrap: wrap; gap: 12px; }
  nav { flex-wrap: wrap; gap: 12px 20px; }
}
@media (max-width: 960px) {
  .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .video-card h4 { min-height: 52px; }
  .sample-info { flex-basis: 100%; margin: 0; }
}
@media (max-width: 600px) {
  .site-header { min-height: 72px; padding: 16px 20px; flex-wrap: wrap; gap: 12px; }
  nav { gap: 17px; }
  nav a { font-size: .8rem; }
  .hero { padding: 54px 20px 60px; }
  .hero-description { font-size: 1rem; }
  .hero-links { gap: 8px; }
  .hero-links .button { padding: 10px 13px; font-size: .78rem; gap: 9px; }
  .desktop-break { display: none; }
  .experiment { padding: 42px 20px 50px; }
  .section-intro { font-size: 1rem; }
  .theory-prose { font-size: 1rem; }
  .theory-prose h3 { margin-top: 36px; font-size: 1.3rem; }
  .theory-callout { padding: 16px 18px; }
  .method-page { padding: 26px 20px 50px; }
  .method-content h2 { font-size: 1.3rem; }
  .method-table { font-size: .83rem; }
  .method-table th { width: 37%; padding-right: 12px; }
  .equation { font-size: .94rem; }
  .figure-heading { display: block; }
  .figure-heading a { display: inline-block; margin-top: 8px; }
  .gallery-select { margin-top: 10px; }
  .plot { margin-top: 42px; }
  .comparison-section { margin-top: 54px; }
  .viewer-selection { padding: 15px; gap: 12px; }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 15px; gap: 20px 12px; }
  .fixed-comparison .video-grid { grid-template-columns: 1fr; }
  .fixed-comparison .video-card h4 { min-height: 0; }
  .report-toc ol { columns: 1; }
  .site-header nav { flex-wrap: wrap; }
  .playback-toolbar { padding: 15px; gap: 12px; }
  .playback-buttons { width: 100%; }
  .playback-buttons .primary { flex: 1; }
  .playback-toolbar .button { padding: 8px 12px; }
  .viewer-status { padding-left: 15px; padding-right: 15px; }
  .data-links { grid-template-columns: 1fr; }
  .data-links a { flex-direction: row; justify-content: space-between; }
  .site-footer { padding: 22px 20px; font-size: .7rem; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media (max-width: 820px) {
  .traj svg.traj-wide { display: none; }
  .traj svg.traj-tall { display: block; max-width: 340px; margin: 0 auto; }
  .traj-tall .traj-number, .traj-tall .traj-label { font-size: 15px; }
}
@media (max-width: 600px) {
  .traj { margin-top: 34px; }
  .summary-inner { flex-direction: column; gap: 16px; }
  .section-toggle { margin-top: 0; }
  .section-controls { margin-top: 36px; }
  .part-heading { margin-top: 48px; padding-top: 28px; }
  .section-controls-buttons { width: 100%; }
  .section-controls-buttons .button { flex: 1; }
}
