/* L1FT's figures retain the paper's blue/gray models and red supervision. */
:root { --blue:#2b6091; --pale-blue:#dfeaf7; --red:#bb493f; --gold:#bd872c; --ink:#172330; --muted:#53616e; --line:#dce3e9; }
main { font-size:17px; line-height:1.55; }
main > section { margin-top:58px; }
main > section:first-child { margin-top:30px; }
main h2 { margin:0 0 23px; font-size:1.65rem; line-height:1.3; }
main > section > p { max-width:1000px; margin:15px auto; }
main > section[aria-labelledby="abstract"] > p,
main > section[aria-labelledby="method"] > p { max-width:1300px; }
main > section[aria-labelledby="abstract"] .fig { max-width:1100px; }
.project-deck { width: fit-content; max-width: 100%; margin: 12px auto 20px; padding: 12px 22px; border: 1px solid #ccd8e2; border-radius: 12px; background: #f5f9fc; text-align: center; color: #283e4c; font-size: 1.05rem; line-height: 1.5; }
.project-tagline { width:fit-content; max-width:calc(100% - 44px); margin:14px auto 20px; padding:11px 22px; border:1px solid #bdcfe0; border-radius:12px; background:#f7fafc; color:#2b6091; text-align:center; font-size:1.15rem; font-weight:600; }
.sr-only { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip-path:inset(50%); white-space:nowrap; border:0!important; }
.motion-figure { margin:0; font-family:Arial,Helvetica,sans-serif; color:var(--ink); }
.animation-toolbar { display:flex; justify-content:flex-end; margin:0 0 6px; line-height:1; }
.animation-toolbar[hidden] { display:none; }
.animation-toggle { box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; width:32px; height:28px; padding:6px; border:1px solid #cbd4dc; border-radius:5px; background:#fff; color:var(--muted); cursor:pointer; }
.animation-toggle:hover { border-color:var(--blue); color:var(--blue); }
.animation-toggle:focus-visible { outline:2px solid var(--blue); outline-offset:3px; }
.animation-toggle.is-paused { background:#f5f9fc; border-color:#bdcfe0; color:var(--blue); }
.animation-toggle svg { display:block; width:14px; height:14px; fill:currentColor; }
.animation-toggle [data-playback-icon="play"],.animation-toggle.is-paused [data-playback-icon="pause"] { display:none; }
.animation-toggle.is-paused [data-playback-icon="play"] { display:block; }
.real-world-controls + .real-world-layout { margin-top:0; }
.figure-heading { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:16px; }
.figure-heading h2,.figure-heading h3 { margin:0; text-align:left; font:600 20px/1.35 Arial,sans-serif; }
.figure-eyebrow { margin:0 0 8px; color:var(--blue); font:600 13px/1.4 Arial,sans-serif; letter-spacing:.075em; text-transform:uppercase; }
button { font:14px/1.3 Arial,sans-serif; cursor:pointer; }
.hero-figure { position:relative; max-width:1100px; margin:18px auto; }
.hero-figure .figure-heading { position:static; justify-content:flex-end; margin:0 0 6px; }
.hero-figure #teaser-svg { overflow:hidden; }
.fine-tuning-note { display:flex; align-items:center; gap:18px; margin:6px 0 23px; text-align:center; font-size:14px; color:var(--blue); }
.fine-tuning-note::before,.fine-tuning-note::after { content:""; flex:1; height:1px; background:#bccfe0; }
.fine-tuning-note strong { display:block; font-size:16px; margin-bottom:3px; }
.inference-pair { display:grid; grid-template-columns:1fr 1fr; gap:32px; }
.inference-panel { min-width:0; border-bottom:1px solid var(--line); padding-bottom:14px; }
.panel-heading { display:flex; align-items:baseline; justify-content:space-between; gap:8px; }
.panel-heading h3 { margin:0; font-size:17px; font-weight:600; }
.panel-heading .method-tag { font-size:14px; color:var(--blue); }
.diagram-svg { display:block; width:100%; overflow:visible; }
.diagram-svg text { font-family:Arial,Helvetica,sans-serif; fill:var(--ink); }
.diagram-svg .math { font-family:"Times New Roman",serif; font-style:italic; }
.diagram-svg .secondary { fill:var(--muted); }
.diagram-svg .blue { fill:var(--blue); }
.diagram-svg .red { fill:var(--red); }
.diagram-svg .model { fill:#f0f0f0; stroke:#e4e7e9; stroke-width:1.2; }
.diagram-svg .action-model { fill:var(--pale-blue); stroke:#c8dced; stroke-width:1.2; }
.diagram-svg .loss { fill:#fff0ef; stroke:var(--red); stroke-width:1.3; }
.diagram-svg .flow { fill:none; }
.diagram-svg .gradient { fill:none; stroke:var(--red); stroke-width:2; stroke-dasharray:6 4; }
.diagram-svg .train-active { stroke:var(--red); stroke-width:2.5; }
.step-meter { display:grid; grid-template-columns:1fr auto; gap:12px; align-items:center; font-size:14px; }
.step-track { display:flex; gap:4px; }
.step-track i { display:block; height:5px; flex:1; background:#e5ebf0; }
.step-track i.done { background:var(--blue); }
.step-count { color:var(--blue); font-variant-numeric:tabular-nums; min-width:44px; text-align:right; }
.animation-caption { min-height:2.8em; margin:16px 0 0; font:16px/1.5 Arial,sans-serif; text-align:center; color:var(--ink); }
.motion-note { margin:8px 0 0; font:13px/1.5 Arial,sans-serif; color:var(--muted); text-align:center; }
.animation-progress { height:2px; margin-top:15px; background:#e6ebf0; }
.animation-progress span { display:block; height:100%; width:0; background:#8aaac6; }
.intro-copy { max-width:970px; margin:0 auto; }
.intro-copy p { line-height:1.65; }
.results-figure { max-width:1100px; margin:28px auto 0; }
.results-figure .figure-heading { margin-bottom:6px; }
.results-figure #summary-svg { overflow:hidden; }
.chart-pair { display:grid; grid-template-columns:1fr 1fr; gap:26px; }
.chart-label { margin:0; text-align:center; font-size:15px; font-weight:600; }
.chart-reading { margin:0 15px 10px; color:var(--muted); font:13px/1.5 Arial,sans-serif; text-align:center; }
.chart-svg { display:block; width:100%; }
.chart-svg text { font-family:Arial,Helvetica,sans-serif; fill:var(--ink); }
.chart-svg .grid { stroke:#e4e9ed; stroke-width:1; }
.chart-svg .axis { stroke:#87929b; stroke-width:1; }
.model-legend { display:flex; justify-content:center; flex-wrap:wrap; gap:12px 24px; font-size:14px; margin-top:7px; }
.model-legend span { display:flex; align-items:center; gap:7px; }
.legend-swatch { display:inline-block; width:13px; height:13px; }
.pipeline-figure { max-width:800px; margin:0 auto; }
.pipeline-figure #pipeline-svg { overflow:hidden; }
.pipeline-figure .animation-caption { margin-top:10px; }
section[aria-labelledby="real-world-quantitative-comparison"] { max-width:1000px; margin:0 auto; }
.real-world-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px; align-items:stretch; width:100%; max-width:1000px; margin:25px auto 38px; }
.real-world-side { display:flex; flex-direction:column; justify-content:space-between; min-width:0; }
.real-world-layout .paper-table-figure { margin:0; }
.real-world-layout .paper-table-figure figcaption { font-size:15px; line-height:1.45; }
.real-world-table .table-scroll { max-width:none; }
.real-world-table .paper-table { font-size:13.5px; }
.real-world-table .paper-table tbody td,.real-world-table .paper-table tbody th { padding-top:6px; padding-bottom:6px; }
.paper-table-3 td,.paper-table-3 th { transition:background-color .15s; }
.paper-table-3 .cup-focus { background:#edf3f9; }
.paper-table-3 tr.policy-focus > * { background:#f0f5fa; }
.real-chart-figure { min-width:0; display:flex; flex-direction:column; padding:0; }
.real-chart-figure .chart-svg { flex:none; overflow:hidden; }
.belt-figure { margin:24px 0 0; padding-top:18px; border-top:1px solid var(--line); }
.belt-figure .figure-heading { align-items:baseline; margin-bottom:10px; }
.belt-figure .figure-heading h3 { font-size:16px; }
.belt-speed { color:var(--ink); font-size:14px; white-space:nowrap; }
.belt-figure #belt-svg { overflow:hidden; }
.video-comparison { overflow:visible; margin:28px auto; }
.video-row { min-width:0; grid-template-columns:repeat(4,minmax(0,1fr)); gap:15px; }
.video-row-real { grid-template-columns:repeat(3,minmax(0,1fr)); }
.video-row video { background:#eef0f1; }
.video-row figcaption { font-size:15px; line-height:1.45; }
.video-intro { max-width:1000px; margin:30px auto 8px; font-size:16px; }
@media (max-width:1000px) {
  .inference-pair { grid-template-columns:1fr; gap:24px; max-width:680px; margin:auto; }
  .video-row { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .video-row-real { grid-template-columns:repeat(3,minmax(0,1fr)); }
}
@media (max-width:860px) {
  .real-world-layout { grid-template-columns:1fr; max-width:520px; gap:28px; }
  .real-world-side { gap:24px; }
  .belt-figure { margin-top:0; }
  .real-chart-figure { border-top:1px solid var(--line); padding-top:22px; }
}
@media (max-width:600px) {
  main > section { margin-top:40px; }
  main h2 { font-size:1.45rem; }
  main { font-size:16px; }
  .figure-heading { align-items:start; gap:10px; }
  .figure-heading h2,.figure-heading h3 { font-size:18px; }

  .fine-tuning-note { gap:8px; font-size:13px; }
  .fine-tuning-note strong { font-size:15px; }
  .panel-heading h3 { font-size:16px; }
  .panel-heading .method-tag { font-size:13px; }
  .animation-caption { font-size:15px; min-height:4.5em; }
  .chart-pair { grid-template-columns:1fr; gap:25px; }
  .model-legend { display:none; }
  .real-world-table .paper-table { font-size:13px; }
  .paper-table-3 { min-width:340px; }
  .real-world-layout { gap:25px; }
  .video-row-real { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .video-row-real figure:nth-child(1) { order:0; }
  .video-row-real figure:nth-child(4) { order:1; }
  .video-row-real figure:nth-child(2) { order:2; }
  .video-row-real figure:nth-child(5) { order:3; }
  .video-row-real figure:nth-child(3) { order:4; }
  .video-row-real figure:nth-child(6) { order:5; }
  .video-row figcaption { font-size:13px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*::before,*::after { scroll-behavior:auto!important; transition:none!important; }
}
