:root {
  color-scheme: light;
  --paper: #f6f7f1;
  --white: #fff;
  --ink: #152823;
  --body: #3e514a;
  --muted: #50665c;
  --accent: #075843;
  --rule: #d2dbd3;
  --mint: #e7eee7;
  --sans: Inter, "Segoe UI", system-ui, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.58 var(--sans); }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid #157e65; outline-offset: 4px; }
img, video { display: block; width: 100%; }
img { height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h2 { font: 400 clamp(2rem, 4.5vw, 3.1rem)/1.04 var(--serif); letter-spacing: -.045em; }
h3 { font-size: 1.15rem; line-height: 1.3; }
sup { font-size: .68em; margin-left: .1em; }
figcaption { color: var(--muted); font-size: .86rem; line-height: 1.5; }
section[id] { scroll-margin-top: 22px; }
.wrap { width: min(1184px, calc(100% - 80px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; top: 8px; left: 8px; z-index: 10; padding: .7rem 1rem; background: var(--white); }

.masthead { border-bottom: 1px solid var(--rule); }
.masthead-inner { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink); font-weight: 760; letter-spacing: -.04em; }
.brand-mark { display: grid; width: 26px; height: 26px; place-items: center; border-radius: 6px; background: var(--accent); color: var(--white); font-weight: 600; }
.masthead nav { display: flex; gap: clamp(15px, 3vw, 36px); }
.masthead nav a, .header-paper { padding: .55rem 0; font-size: .88rem; font-weight: 650; text-decoration: none; color: var(--body); }
.masthead nav a:hover, .header-paper:hover { text-decoration: underline; text-underline-offset: 4px; }
.header-paper span { margin-left: 3px; }

.hero { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); align-items: center; gap: clamp(32px, 5vw, 72px); padding-block: clamp(54px, 7.6vw, 105px); }
.name { display: block; color: var(--accent); font: 400 clamp(4.35rem, 8.9vw, 7.6rem)/.92 var(--serif); letter-spacing: -.087em; margin-left: -.055em; }
.title-text { display: block; margin-top: 22px; font-size: clamp(1.27rem, 2.13vw, 1.83rem); line-height: 1.15; font-weight: 650; letter-spacing: -.035em; text-wrap: balance; }
.authors { margin-top: 22px; color: var(--ink); font-size: .95rem; font-weight: 590; }
.affiliations { display: flex; flex-wrap: wrap; gap: 0 13px; margin-top: 5px; color: var(--muted); font-size: .81rem; }
.affiliations span { white-space: nowrap; }
.author-note { margin-top: 4px; color: var(--muted); font-size: .8rem; }
.action-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; gap: 8px; justify-content: center; min-height: 43px; padding: .58rem .96rem; border: 1px solid var(--accent); border-radius: 6px; font-size: .89rem; font-weight: 690; text-decoration: none; }
.primary { background: var(--accent); color: var(--white); }
.primary:hover { background: #034834; }
.secondary { background: transparent; border-color: #aabdb2; color: var(--accent); }
.secondary:hover { background: var(--mint); }
.play-icon { font-size: .74rem; }

.hero-demo { min-width: 0; }
.media-card { padding: 12px; background: #e4ece4; border: 1px solid #cdd9d1; border-radius: 12px; }
.replay-labels, .transfer-labels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; color: var(--ink); font-size: .74rem; font-weight: 730; text-align: center; }
.replay-labels { margin-bottom: 10px; }
.replay-player { background: #e6ebe4; border-radius: 5px; aspect-ratio: 1472 / 522; }
.hero-demo figcaption { margin-top: 10px; }

.overview { background: #e8eee6; border-block: 1px solid var(--rule); }
.overview-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 35px; padding-block: 43px; }
.overview p, .section-heading p { color: var(--body); max-width: 78ch; }
.content-section { padding-block: clamp(44px, 6.8vw, 86px); }
.section-heading { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 35px; align-items: baseline; margin-bottom: 25px; }
.section-heading p { font-size: .98rem; }
.method-figure img { background: var(--white); border: 1px solid var(--rule); border-radius: 9px; padding: clamp(5px, 1.4vw, 16px); }
.method-figure figcaption { margin-top: 10px; }

.results-band { background: #edf1e9; border-block: 1px solid var(--rule); }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(22px, 4vw, 46px); }
.result { min-width: 0; }
.result h3 { margin-bottom: 10px; }
.result p { margin-top: 12px; color: var(--body); }
.result strong { color: var(--accent); }
.result .media-note { margin-top: 4px; color: var(--muted); font-size: .84rem; }
.result-media { display: flex; flex-direction: column; justify-content: center; min-height: 226px; background: var(--white); border: 1px solid var(--rule); border-radius: 9px; padding: 10px; overflow: hidden; }
.transfer-media { background: #f3f7f1; }
.transfer-labels { margin-bottom: 5px; }
.transfer-media video { aspect-ratio: 1496 / 498; border-radius: 5px; }
.full-player { aspect-ratio: 16 / 9; background: #dfe8e1; border: 1px solid var(--rule); border-radius: 10px; }

.citation-section { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 35px; border-top: 1px solid var(--rule); padding: 36px 0 55px; }
.code-box { min-width: 0; background: #e8eee6; border: 1px solid var(--rule); border-radius: 8px; }
.code-bar { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding: 6px 13px; border-bottom: 1px solid var(--rule); color: var(--muted); font-size: .84rem; font-weight: 650; }
.code-bar button { padding: .25rem .65rem; border: 1px solid #aabdb2; border-radius: 4px; background: transparent; color: var(--accent); font: inherit; cursor: pointer; }
.code-bar button:hover { background: var(--white); }
pre { margin: 0; padding: 14px 13px 17px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; font: .83rem/1.55 "Cascadia Code", Consolas, monospace; }
pre code { font: inherit; }
.footer { border-top: 1px solid var(--rule); }
.footer-inner { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 35px; align-items: start; padding-block: 26px; }
.footer p { color: var(--muted); font-size: .78rem; }

@media (max-width: 950px) {
  .wrap { width: calc(100% - 56px); }
  .hero { gap: 28px; }
  .overview-inner, .section-heading, .citation-section, .footer-inner { grid-template-columns: 180px minmax(0, 1fr); gap: 22px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .masthead-inner { min-height: 57px; gap: 14px; }
  .masthead nav { gap: 14px; }
  .header-paper { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 43px 35px; }
  .title-text { max-width: 460px; text-wrap: wrap; margin-top: 17px; }
  .authors { margin-top: 17px; }
  .action-row { margin-top: 20px; }
  .overview-inner, .section-heading, .citation-section, .footer-inner, .result-grid { grid-template-columns: 1fr; gap: 14px; }
  .overview-inner { padding-block: 32px; }
  .result-grid { gap: 28px; }
  .result-media { min-height: 0; }
}

@media (max-width: 370px) {
  .wrap { width: calc(100% - 28px); }
  .masthead nav { gap: 9px; }
  .replay-labels { font-size: .65rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
