:root {
  --background: #f8f9f6;
  --paper: #ffffff;
  --ink: #202d29;
  --muted: #65716b;
  --green: #176655;
  --line: #dde3dc;
  --warm: #e6b176;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 95px; }
body { margin: 0; color: var(--ink); background: var(--background); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--green); outline-offset: 5px; }
button:disabled { opacity: .65; cursor: wait; }
::selection { background: #d7e9db; }
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -70px; left: 20px; padding: 10px 20px; background: var(--green); color: white; z-index: 100; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(248, 249, 246, .96); }
.nav { display: flex; justify-content: space-between; align-items: center; min-height: 76px; gap: 20px; }
.wordmark { display: flex; align-items: center; gap: 12px; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; }
.brand-mark { color: var(--green); font-size: 29px; font-weight: 800; letter-spacing: -3px; line-height: 1; }
.brand-mark span { color: #8d9a82; }
.nav-links { display: flex; gap: 30px; font-size: 13px; font-weight: 500; }
.nav-links a:hover, .authors a:hover, .demo-caption a:hover, figcaption a:hover, .site-footer > a:last-child:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.hero { text-align: center; padding-top: 70px; padding-bottom: 52px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 11px; font-weight: 700; letter-spacing: 1.8px; text-transform: uppercase; margin: 0 0 18px; }
.hero .eyebrow { justify-content: center; }
.status-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 16px; font-size: clamp(40px, 5.8vw, 72px); line-height: 1.12; letter-spacing: -3.5px; font-weight: 650; }
h1 span { color: var(--green); }
.hero-subtitle { font-size: clamp(20px, 2.5vw, 29px); font-weight: 400; line-height: 1.4; letter-spacing: -.5px; margin-bottom: 29px; }
.authors { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px 23px; font-size: 15px; margin-bottom: 10px; }
sup { color: var(--green); font-size: 10px; padding-left: 2px; }
.affiliation { font-size: 14px; margin-bottom: 2px; }
.lab { color: var(--muted); font-size: 12px; margin-bottom: 5px; }
.correspondence { font-size: 11px; color: var(--muted); margin-bottom: 24px; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid var(--line); border-radius: 7px; padding: 10px 18px; font-size: 13px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.button-primary { background: var(--green); color: white; border-color: var(--green); }
.button-primary:hover { background: #124f42; }
.button-secondary { background: transparent; color: var(--ink); }
.button-secondary:hover { background: #edf0ea; border-color: #bccabc; }
.hero-intro { margin: 26px 0 0; font-size: 14px; color: var(--muted); line-height: 1.7; }
.section-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-topline h2 { font-size: 19px; font-weight: 600; letter-spacing: -.4px; margin: 0; }
.small-label { color: var(--muted); font-size: 10px; letter-spacing: 1.6px; }
.demo-frame { background: #151c19; border-radius: 12px; overflow: hidden; box-shadow: 0 16px 45px -28px #233e35; }
.demo-frame video { width: 100%; aspect-ratio: 16 / 9; display: block; object-fit: contain; }
.demo-caption { display: flex; justify-content: space-between; gap: 15px; padding-top: 13px; font-size: 12px; color: var(--muted); }
.demo-caption p { margin: 0; }
.demo-caption a { white-space: nowrap; }
.abstract-section { display: grid; grid-template-columns: 1fr 2fr; gap: 70px; padding-block: 80px; }
h2 { font-size: clamp(26px, 3.1vw, 35px); line-height: 1.25; letter-spacing: -1px; font-weight: 550; margin-bottom: 15px; }
.abstract-copy { font-size: 15px; color: var(--muted); line-height: 1.85; }
.abstract-copy p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }
.method-section { padding-block: 64px; background: #eff2ec; border-block: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 35px; margin-bottom: 30px; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 340px; flex-shrink: 0; font-size: 13px; color: var(--muted); margin: 0; }
.pipeline-figure { padding: 20px; margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.pipeline-figure img { display: block; width: 100%; height: auto; }
figcaption { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-top: 15px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.method-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 35px; margin-top: 35px; }
.method-details article { border-top: 1px solid #c7d0c4; padding-top: 18px; }
.step-number { color: var(--green); font-family: Georgia, serif; font-size: 19px; }
h3 { font-size: 17px; font-weight: 600; margin: 9px 0 10px; letter-spacing: -.3px; }
.method-details p { font-size: 13px; color: var(--muted); margin: 0; }
.results-section { padding-block: 75px; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.result-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.case-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 19px 0; }
.case-id { font-size: 11px; font-weight: 600; letter-spacing: 1.3px; color: var(--muted); }
.pair-tag { font-size: 10px; color: var(--green); background: #edf4ee; border-radius: 4px; padding: 2px 8px; }
.prompt-block { padding: 13px 19px 18px; }
.prompt-label { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 1.2px; color: var(--muted); display: block; margin-bottom: 5px; }
.prompt-text { font-size: 15px; line-height: 1.5; min-height: 45px; margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.prompt-text.is-placeholder { color: #939c95; font-style: italic; }
.prompt-original { color: #b45309; font-weight: 600; }
.prompt-edited { color: #c62828; font-weight: 600; }
.video-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 0 12px; }
.video-pair figure { margin: 0; min-width: 0; }
.video-pair video { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #17231d; border-radius: 5px; }
.video-pair figcaption { margin: 0; padding: 9px 1px; border: 0; font-size: 10px; letter-spacing: 1px; }
.edited-label { color: var(--green); font-weight: 600; }
.case-controls { display: flex; align-items: center; gap: 12px; padding: 8px 19px 17px; }
.pair-play { padding: 6px 13px; font-size: 11px; min-width: 98px; }
.restart-pair { padding: 5px 0; background: none; border: 0; font-size: 11px; color: var(--muted); cursor: pointer; }
.restart-pair:hover { color: var(--green); }
.pair-status { margin: 0; color: var(--muted); font-size: 11px; padding: 0 19px; }
.pair-status:not(:empty) { padding-bottom: 14px; }
.citation-section { padding-bottom: 60px; }
.citation-section .section-topline h2 { font-size: 28px; }
.citation-section .eyebrow { margin-bottom: 8px; }
pre { margin: 0; padding: 25px 30px; background: #edf0ea; border: 1px solid var(--line); border-radius: 9px; overflow-x: auto; font-size: 12px; line-height: 1.8; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
.copy-status { font-size: 12px; color: var(--green); min-height: 20px; margin: 8px 0 0; }
.site-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-block: 25px; font-size: 11px; color: var(--muted); }
.footer-title { font-weight: 650; color: var(--ink); }
.site-footer p { margin: 0; }
@media (min-width: 1500px) { .hero { padding-top: 85px; } }
@media (max-width: 850px) {
  .section-heading { align-items: start; flex-direction: column; gap: 16px; }
  .section-heading > p { max-width: none; flex-shrink: 1; }
  .abstract-section { gap: 32px; grid-template-columns: 1fr 1.8fr; }
  .method-details { gap: 20px; }
  .results-grid { gap: 18px; }
  .wordmark > span:last-child { display: none; }
}
@media (max-width: 620px) {
  .container { width: calc(100% - 36px); }
  .nav { min-height: 63px; }
  .nav-links { gap: 18px; font-size: 12px; }
  .hero { padding-top: 45px; padding-bottom: 35px; }
  .hero .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  h1 { font-size: clamp(33px, 8.2vw, 48px); letter-spacing: -1.7px; }
  .hero-subtitle { font-size: 20px; }
  .desktop-break { display: none; }
  .authors { font-size: 13px; gap: 5px 15px; }
  .lab { font-size: 11px; max-width: 300px; margin-inline: auto; }
  .hero-intro { font-size: 13px; }
  .small-label { font-size: 9px; letter-spacing: 1px; }
  .section-topline h2 { font-size: 17px; }
  .demo-caption { font-size: 10px; }
  .demo-frame { border-radius: 7px; }
  .abstract-section { display: block; padding-block: 48px; }
  .abstract-section h2 br { display: none; }
  .abstract-copy { font-size: 14px; margin-top: 20px; }
  .method-section { padding-block: 42px; }
  .pipeline-figure { padding: 10px; }
  figcaption { font-size: 10px; }
  .method-details { grid-template-columns: 1fr; gap: 24px; margin-top: 28px; }
  .method-details article { display: grid; grid-template-columns: 30px 1fr; column-gap: 12px; }
  .method-details h3 { margin: 1px 0 7px; }
  .method-details p { grid-column: 2; }
  .results-section { padding-block: 48px; }
  .results-grid { grid-template-columns: 1fr; gap: 22px; }
  .prompt-text { min-height: 0; }
  .citation-section { padding-bottom: 30px; }
  pre { padding: 18px; font-size: 11px; }
  .site-footer { flex-wrap: wrap; gap: 8px; }
  .site-footer p { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
