:root {
  color-scheme: light;
  --paper: #ffffff; --ink: #263244; --muted: #66758a; --line: #e2e8f0;
  --accent: #b55b32; --accent-light: #f1e6dc; --raw: #4682b4; --crc: #d55e00;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --copy-width: 960px;
  font-family: var(--sans); font-synthesis: none; -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility; scroll-behavior: smooth; scroll-padding-top: 88px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, a, input { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button, a { touch-action: manipulation; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: wait; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #ba633a; outline-offset: 5px; }
svg { display: block; }
button svg, a svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
img { max-width: 100%; }
h1, h2, h3, p { margin-top: 0; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; left: 16px; top: 16px; z-index: 100; padding: 15px; background: var(--ink); color: white; }
.site-header { height: 68px; border-bottom: 1px solid var(--line); background: #ffffffed; position: sticky; top: 0; z-index: 20; backdrop-filter: blur(16px); }
.nav-wrap, .site-footer { width: min(1376px, calc(100% - 72px)); margin-inline: auto; }
.nav-wrap { display: flex; height: 100%; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: block; min-width: 0; font-size: 16px; font-weight: 400; letter-spacing: -.2px; line-height: 1.4; }
.brand strong { font-size: 19px; font-weight: 750; }
.nav-wrap nav { display: flex; flex-shrink: 0; align-items: center; gap: 25px; font-size: 13px; font-weight: 550; }
.nav-link { color: #646b66; transition: color .2s; }
.nav-link:hover { color: var(--accent); }
.nav-code { border: 1px solid #cfd2c9; background: transparent; border-radius: 7px; padding: 9px 13px; display: flex; align-items: center; gap: 12px; font-size: 12px; }
.nav-code:hover { border-color: var(--accent); background: #f2ece4; }
.nav-code span:last-child { color: var(--muted); }
.hero { text-align: center; padding-top: 58px; padding-bottom: 62px; }
h1 { font-family: var(--sans); font-size: clamp(28px, 3vw, 42px); line-height: 1.22; letter-spacing: -1.45px; font-weight: 500; font-style: normal; margin: 0 auto; max-width: 1140px; text-wrap: balance; }
.hero-description { font-size: 20px; font-weight: 500; line-height: 1.5; color: var(--muted); margin: 23px auto 0; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 23px; }
.hero-resource-note { margin: 0; font-size: 16px; line-height: 1.6; color: var(--muted); text-wrap: balance; }
.button { min-height: 45px; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 7px; font-size: 13px; line-height: 1.2; font-weight: 600; border: 1px solid transparent; transition: background .2s, transform .2s, border-color .2s; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--ink); color: white; border-color: var(--ink); box-shadow: 0 2px 3px #1a242914; }
.button-primary:hover { background: #414840; }

.button-arrow { margin-left: 16px; opacity: .7; }
.hero-actions .button { min-height: 40px; padding: 9px 16px; font-size: 14px; }
.hero-actions .button-primary { background: #eef2f6; color: var(--ink); border-color: #dce3eb; box-shadow: none; }
.hero-actions .button-primary:hover { background: #e2e9f0; border-color: #c9d4e0; }
.hero-actions .button-arrow { margin-left: 4px; }

.section-title { font-size: clamp(28px, 2.7vw, 36px); line-height: 1.25; font-weight: 700; letter-spacing: -.65px; text-align: center; margin: 0 0 38px; }
.section-title::after { content: ''; display: block; width: 48px; height: 3px; margin: 18px auto 0; border-radius: 2px; background: var(--accent); }
.content-section { padding: 62px 0 66px; }
.section-tint { background: #f8fafc; border-block: 1px solid var(--line); }
.abstract-copy { max-width: var(--copy-width); margin-inline: auto; font-size: 16px; line-height: 1.85; color: #4b596d; text-align: justify; }
.abstract-copy p { margin-bottom: 18px; }
.abstract-copy p:last-child { margin-bottom: 0; }
.abstract-copy strong { font-weight: 600; color: var(--ink); }
.key-points { max-width: 1040px; margin: 28px auto 0; padding-left: 21px; color: #4b596d; font-size: 16px; line-height: 1.8; }
.key-points li { padding-left: 5px; margin-bottom: 12px; }
.key-points li:last-child { margin-bottom: 0; }
.key-points li::marker { color: var(--accent); }
.key-points strong { color: var(--ink); font-weight: 600; }
.key-points .figure-reference { color: var(--accent); white-space: nowrap; }
.section-copy { --copy-gutter: 20px; max-width: var(--copy-width); margin-inline: auto; text-align: justify; }
.section-copy .key-points { max-width: none; padding-left: 0; text-align: justify; list-style: none; }
.section-copy .key-points li { position: relative; padding-left: 0; text-wrap: pretty; }
.section-copy .key-points li::before { content: ''; position: absolute; left: calc(-1 * var(--copy-gutter)); top: .9em; width: .3em; height: .3em; border-radius: 50%; background: var(--accent); transform: translateY(-50%); }
.motivation-takeaway { display: grid; gap: 6px; margin: 34px calc(-1 * var(--copy-gutter)) 0; text-align: justify; }
.motivation-finding { padding: 10.8px var(--copy-gutter); background: #fcf5ee; }
.motivation-summary, .motivation-question { font-size: 20px; }
.motivation-summary { margin: 0; color: var(--ink); line-height: 1.5; font-weight: 450; letter-spacing: -.25px; text-wrap: pretty; }
.motivation-summary strong { font-weight: 650; }
.motivation-flow { justify-self: center; color: var(--muted); fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.motivation-question-block { padding: 10.8px var(--copy-gutter); background: #eef6ef; }
.motivation-question { margin: 0; color: var(--ink); line-height: 1.5; font-weight: 500; letter-spacing: -.3px; text-align: left; text-wrap: pretty; }
.motivation-question strong { color: #356447; font-weight: 650; }
.demos { padding-top: 10px; padding-bottom: 65px; }
.demo-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.demo-card { min-width: 0; }
.video-surface { position: relative; border-radius: 11px; overflow: hidden; background: #dfded7; aspect-ratio: 16/9; isolation: isolate; border: 1px solid #d9dbd0; }
.demo-video { width: 100%; height: 100%; display: block; object-fit: cover; }

.play-symbol { font-size: 10px; line-height: 1; }
.demo-caption { display: flex; gap: 10px; justify-content: center; align-items: center; padding: 17px 2px 0; }
.demo-caption h3 { margin: 0; }
.demo-actions { display: flex; justify-content: center; margin-top: 30px; }
.button-outline { background: var(--paper); border-color: #cfd6df; color: var(--ink); }
.button-outline:hover { border-color: var(--ink); background: #f8fafc; }
.demo-jump-arrow { flex-shrink: 0; margin-left: 5px; }

.paper-figure { margin: 0; }
.figure-scroll { overflow-x: auto; background: white; padding: 24px; border: 1px solid var(--line); border-radius: 10px; scrollbar-color: #b9c3d0 #f8fafc; scrollbar-width: thin; }
.figure-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.paper-figure img { display: block; width: 100%; height: auto; min-width: 900px; }
.paper-figure figcaption { display: none; margin-top: 12px; text-align: right; font-size: 10px; color: var(--muted); }
.demo-controls { display: flex; align-items: center; gap: 10px; padding-top: 12px; }
.demo-controls input { flex: 1; min-width: 20px; height: 24px; accent-color: var(--accent); cursor: pointer; }
.demo-controls output { font-size: 10px; font-variant-numeric: tabular-nums; color: #7b8375; white-space: nowrap; min-width: 63px; text-align: right; }

.analysis { padding-top: 48px; }
.calibration-case + .calibration-case { margin-top: 30px; }
.case-title { margin: 0 0 13px; color: var(--ink); font-size: 16px; line-height: 1.5; font-weight: 600; }
.case-panel { display: grid; grid-template-columns: 1fr 1.16fr; gap: 38px; padding: 27px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.case-visual { min-width: 0; align-self: center; }
.case-video-wrap { position: relative; aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: #e1e0db; }
.case-video-wrap video { width: 100%; height: 100%; object-fit: cover; display: block; }
.case-controls { display: flex; align-items: center; gap: 13px; padding-top: 15px; }
.round-play { background: var(--ink); color: white; border: 0; border-radius: 50%; width: 29px; height: 29px; min-width: 29px; display: grid; place-items: center; font-size: 9px; }
.round-play:disabled { opacity: .5; }
.case-controls input { min-width: 20px; flex: 1; accent-color: var(--accent); height: 20px; cursor: pointer; }
.case-controls output { font-size: 10px; font-variant-numeric: tabular-nums; color: #8b9285; min-width: 53px; text-align: right; }
.case-caption { font-size: 11px; line-height: 1.6; color: #878e81; margin: 13px 0 0; }
.case-chart { align-self: center; min-width: 0; }
.chart-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.chart-title { font-size: 12px; color: #697360; font-weight: 550; }
.chart-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 15px; font-size: 10px; color: #7e8874; }
.chart-legend span { display: flex; gap: 6px; align-items: center; white-space: nowrap; }
.legend-line { width: 15px; height: 2px; flex: none; display: block; }
.raw { background: var(--raw); } .calibrated { background: var(--crc); }
.reward-chart { aspect-ratio: 560/310; min-height: 0; }
.reward-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart-loading { font-size: 12px; color: var(--muted); padding-top: 80px; text-align: center; }
.chart-hint { display: flex; justify-content: center; gap: 10px; font-size: 10px; letter-spacing: .1px; color: #a0a596; margin: 5px 0 0; }
.chart-grid { stroke: #e7e9e1; stroke-width: 1; stroke-dasharray: 3 4; }
.chart-label { font-family: var(--sans); font-size: 11px; fill: #8a9481; }
.chart-label.axis-title { font-size: 10px; fill: #9ba290; }
.chart-path { fill: none; stroke-linejoin: round; stroke-linecap: round; stroke-width: 2.4; }
.chart-cursor { stroke: #9da58e; stroke-width: 1; stroke-dasharray: 3 3; }
.chart-dot { stroke: #fffefb; stroke-width: 2; }
.chart-hit-area { fill: transparent; cursor: crosshair; }
.no-script-note { font-size: 13px; color: var(--muted); line-height: 1.7; }
.no-script-note a { text-decoration: underline; }
.results-chart { max-width: 960px; margin: 0 auto 48px; }
.results-chart picture, .results-chart img { display: block; width: 100%; }
.results-chart img { height: auto; }
.results-chart figcaption { margin-top: 12px; color: var(--muted); font-size: 13px; line-height: 1.6; text-align: center; text-wrap: balance; }
.results-chart figcaption span { white-space: nowrap; }
.experiment-subtitle { font-size: 25px; line-height: 1.35; font-weight: 600; letter-spacing: -.4px; margin: 0 0 24px; }
.site-footer { display: flex; justify-content: space-between; gap: 25px; align-items: center; padding-top: 28px; padding-bottom: 30px; border-top: 1px solid var(--line); }
.footer-brand { min-width: 0; }
.footer-links { display: flex; align-items: center; gap: 21px; font-size: 10px; color: #717b66; }
.footer-links a:hover { color: var(--accent); }
@media (min-width:1600px) {
  .hero { padding-top: 76px; padding-bottom: 65px; }
}
@media (max-width:1100px) {
  .nav-wrap nav { gap: 18px; }
  .wrap { width: calc(100% - 64px); }
  .paper-figure figcaption { display: block; }

  .case-panel { gap: 24px; padding: 23px; }
}
@media (max-width:980px) {
  .nav-link { display: none; }
}
@media (min-width:761px) and (max-width:900px) {
  .case-panel { grid-template-columns: 1fr; }
  .case-visual, .case-chart { width: 100%; max-width: 560px; justify-self: center; }
}
@media (max-width:760px) {
  :root { scroll-padding-top: 78px; } .wrap { width: calc(100% - 40px); }
  .site-header { height: 62px; } .nav-wrap, .site-footer { width: calc(100% - 36px); }
  .brand { font-size: 12px; letter-spacing: 0; }
  .brand strong { font-size: 15px; }
  .nav-wrap { gap: 12px; }
  .nav-wrap nav { gap: 18px; } .nav-link { display: none; }
  .nav-code { padding: 8px 11px; font-size: 11px; }
  .hero { padding-top: 43px; padding-bottom: 43px; }
  h1 { font-size: clamp(25px,5.8vw,34px); letter-spacing: -.8px; line-height: 1.23; }
  .desktop-break { display: none; }
  .hero-description { font-size: 18px; line-height: 1.5; max-width: 350px; margin-top: 20px; }
  .hero-resource-note { font-size: 15px; }
  .hero-actions { margin-top: 23px; gap: 9px; } .button { font-size: 12px; padding: 11px 16px; min-height: 43px; }
  .button-arrow { margin-left: 8px; }
  .section-title { font-size: 27px; letter-spacing: -.5px; margin-bottom: 27px; }
  .section-title::after { margin-top: 14px; width: 40px; }
  .content-section { padding: 42px 0; }
  .abstract-copy { font-size: 15px; line-height: 1.85; }
  .key-points { margin-top: 23px; padding-left: 18px; font-size: 14px; line-height: 1.8; }
  .key-points li { padding-left: 3px; margin-bottom: 13px; }
  .section-copy { --copy-gutter: 14px; }
  .motivation-takeaway { margin-top: 28px; }
  .motivation-finding { padding-block: 8.4px; }
  .motivation-summary, .motivation-question { font-size: 17px; line-height: 1.55; letter-spacing: -.15px; }
  .motivation-question-block { padding-block: 8.4px; }
  .demo-grid { grid-template-columns: 1fr; gap: 25px; } .demo-caption { padding-top: 12px; }
  .demos { padding-bottom: 47px; } .video-surface { border-radius: 9px; }

  .figure-scroll { padding: 18px; }
  .demo-controls { gap: 9px; }

  .analysis { padding-top: 32px; }
  .calibration-case + .calibration-case { margin-top: 25px; }
  .case-title { font-size: 14px; margin-bottom: 11px; }
  .case-panel { display: flex; flex-direction: column; padding: 15px; gap: 27px; } .case-visual, .case-chart { width: 100%; }
  .case-controls { gap: 9px; padding-top: 13px; } .case-controls output { font-size: 9px; min-width: 48px; }
  .case-caption { font-size: 10px; line-height: 1.65; } .chart-top { margin-bottom: 12px; }
  .chart-title { font-size: 11px; } .chart-legend { font-size: 9px; gap: 12px; }
  .chart-label { font-size: 16px; } .chart-label.axis-title { font-size: 14px; }
  .chart-hint { font-size: 9px; margin-top: 9px; }
  .results-chart { margin-bottom: 34px; }
  .results-chart figcaption { margin-top: 10px; font-size: 11px; }
  .experiment-subtitle { font-size: 22px; }
  .site-footer { display: block; padding: 26px 0; }
  .footer-links { justify-content: space-between; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); gap: 16px; }
}
@media (max-width:360px) {
  .hero-actions { gap: 7px; } .button { padding-inline: 13px; }
}
@media (prefers-reduced-motion:reduce) {
  :root { scroll-behavior: auto; } *, *::before, *::after { animation: none!important; transition: none!important; }
}
