@font-face {
  font-family: "Bodoni Moda";
  src: url("assets/fonts/bodoni-moda.ttf") format("truetype");
  font-style: normal; font-weight: 400; font-display: swap;
}
:root {
  --ivory: #faf4e9; --ink: #241b17; --rust: #913c30;
  --coral: #ff8d78; --rule: #c6bba9; --gutter: clamp(20px,3.45vw,76px);
  --display: "Bodoni Moda",Georgia,serif;
}
* { box-sizing:border-box; }
html { color:var(--ink); background:var(--ivory); }
body,figure,h1,h2,p { margin:0; }
body { font-family:Georgia,"Times New Roman",serif; }
a { color:inherit; text-underline-offset:.2em; }
button,a { touch-action:manipulation; }
:focus-visible { outline:3px solid currentColor; outline-offset:4px; }
::selection { background:#99382d; color:white; }
.skip { position:absolute; left:1rem; top:-8rem; z-index:2; padding:.8rem 1rem; background:var(--ivory); color:var(--ink); }
.skip:focus { top:1rem; }
.hero { isolation:isolate; position:relative; min-height:600px; height:100vh; height:100svh; overflow:hidden; background:#21170f; color:var(--ivory); }
.hero-art { position:absolute; inset:0; z-index:-2; width:100%; height:100%; object-fit:cover; object-position:center; }
.hero::before { content:""; position:absolute; inset:0; z-index:-1; background:linear-gradient(to bottom,rgba(20,12,9,.3),transparent 18%,transparent 61%,rgba(20,12,9,.33)); pointer-events:none; }
.masthead { display:flex; align-items:center; justify-content:space-between; margin:0 var(--gutter); height:clamp(56px,6.7vh,80px); border-bottom:1px solid #ece1d094; }
.masthead a,.route a,.watch,footer a { text-decoration:none; }
.wordmark { font:400 clamp(27px,2.3vw,44px)/1 var(--display); letter-spacing:-.035em; }
nav { display:flex; align-items:center; gap:clamp(18px,4vw,74px); font-size:clamp(16px,1.65vw,31px); }
nav a,.route a { padding-block:8px; }
nav a:hover,.route a:hover,footer a:hover,.watch:hover { text-decoration:underline; }
.hero-copy { position:absolute; left:var(--gutter); bottom:16%; }
h1 { font:400 clamp(68px,7.2vw,150px)/.95 var(--display); letter-spacing:-.04em; }
.hero-copy p { margin:clamp(10px,1.7vh,22px) 0 .45em; font-size:clamp(20px,2vw,40px); line-height:1.23; }
.watch { display:inline-flex; align-items:center; gap:.55em; min-height:44px; font-size:clamp(20px,1.8vw,35px); color:var(--coral); }
.play-icon { width:0; height:0; border-top:.39em solid transparent; border-bottom:.39em solid transparent; border-left:.7em solid currentColor; }
.route { display:flex; align-items:center; gap:clamp(12px,1.1vw,26px); position:absolute; left:var(--gutter); right:var(--gutter); bottom:3.8%; font-size:clamp(16px,1.45vw,27px); }
.route a { font-style:italic; white-space:nowrap; }
.scene,.art-credit,.caption,figcaption span,table caption,th,td,.film-foot,footer { font-family:Arial,Helvetica,sans-serif; }
.scene { font-size:.8em; border-left:1px solid #e0d3be99; margin-left:.6em; padding-left:1.4em; letter-spacing:.035em; }
.art-credit { position:absolute; bottom:1.15%; right:var(--gutter); font-size:11px; color:#fff1e1; }
.paper { width:min(100% - var(--gutter)*2,1400px); margin-inline:auto; }
.byline { padding-block:clamp(26px,3vw,46px); border-bottom:1px solid var(--rule); }
.byline ul { list-style:none; margin:0; padding:0; }
.author-list { display:flex; flex-wrap:wrap; gap:.3em 1.25em; font:400 clamp(21px,2.1vw,32px)/1.25 var(--display); }
.author-list li { white-space:nowrap; }
.byline sup { color:var(--rust); font:500 .55em/1 Arial,Helvetica,sans-serif; }
.author-list sup { margin-left:.18em; }
.byline .affiliations { display:grid; gap:4px; margin-top:14px; font:15px/1.45 Arial,Helvetica,sans-serif; }
.affiliations li { display:grid; grid-template-columns:1ch 1fr; gap:.4em; }
.affiliations sup { font-size:.72em; padding-top:.25em; }
@media (max-width:700px) {
  .author-list { display:grid; grid-template-columns:repeat(2,max-content); gap:6px clamp(12px,4vw,28px); font-size:clamp(19px,5.4vw,24px); }
}
.section { padding:clamp(52px,7.5vw,110px) 0 clamp(40px,5.5vw,78px); border-bottom:1px solid var(--rule); scroll-margin-top:1rem; }
.section-intro { display:grid; grid-template-columns:1fr 1fr; gap:clamp(22px,5vw,88px); align-items:start; margin-bottom:clamp(26px,3.6vw,52px); }
.section h2 { font:400 clamp(48px,5.4vw,86px)/1.02 var(--display); letter-spacing:-.04em; }
.section p { font-size:clamp(17px,1.3vw,21px); line-height:1.55; max-width:64ch; }
.section p.lead { font-size:clamp(24px,2.2vw,35px); line-height:1.15; margin-bottom:.55em; }
.pair { display:grid; grid-template-columns:1fr 1fr; gap:clamp(10px,1.3vw,22px); }
figure img { width:100%; height:auto; display:block; background:#342d24; }
figcaption { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-top:10px; font-size:clamp(19px,1.7vw,27px); }
figcaption span,.section p.caption,table caption,.film-foot,footer { font-size:14px; }
figcaption span,.caption,table caption { color:#584b40; }
.section p.caption { margin-top:14px; max-width:none; }
.caption a { color:var(--rust); white-space:nowrap; }
table { border-collapse:collapse; width:100%; font-variant-numeric:tabular-nums; }
table caption { text-align:left; padding-bottom:12px; }
th,td { padding:15px 8px; border-bottom:1px solid var(--rule); text-align:right; }
th:first-child { text-align:left; padding-left:0; }
thead th { border-top:1px solid var(--ink); font-size:14px; }
tbody th { font-weight:400; }
.ours { color:var(--rust); }
.ours th,.ours td { font-weight:700; }
footer { display:flex; justify-content:space-between; align-items:center; gap:1rem; padding:26px 0 34px; }
dialog { padding:0; max-height:95svh; width:min(940px,94vw); border:1px solid #6e5e4c; color:var(--ivory); background:#211913; }
dialog::backdrop { background:#140e0bee; }
.film-head,.film-foot { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:14px 18px; }
.film-head h2 { font:400 clamp(24px,2.3vw,36px)/1.2 var(--display); }
.film-head button { background:none; color:inherit; font:inherit; cursor:pointer; padding:8px 12px; border:1px solid #a89887; }
video { width:100%; max-height:68svh; aspect-ratio:16/9; display:block; background:black; }
body:has(dialog[open]) { overflow:hidden; }
@media (max-width:700px) {
  .hero { min-height:560px; }
  .hero-art { object-position:72% center; }
  .hero::before { background:linear-gradient(to bottom,#170e0a99,transparent 18%,transparent 35%,#190f0ac9 68%,#190f0af0); }
  .masthead { height:62px; }
  nav { font-size:15px; gap:14px; }
  .hero-copy { right:var(--gutter); bottom:18%; }
  h1 { font-size:clamp(49px,10.9vw,75px); line-height:1.02; }
  .hero-copy p { max-width:24ch; }
  .route { bottom:4.4%; display:grid; grid-template-columns:auto 1fr auto; gap:0 12px; }
  .scene { grid-column:1/-1; margin:0; padding:0; border:0; font-size:12px; }
  .art-credit { bottom:4.4%; font-size:10px; }
  .section-intro { grid-template-columns:1fr; }
  .section h2 br { display:none; }
  .section h2 br::after { content:" "; }
  .pair { grid-template-columns:1fr; gap:20px; }
  th,td { padding:12px 4px; font-size:13px; }
  thead th { font-size:12px; }
}
@media (max-width:365px) { nav { gap:8px; font-size:14px; } .wordmark { font-size:24px; } }
@media (min-width:701px) and (max-height:620px) {
  .hero { min-height:440px; }
  h1 { font-size:clamp(62px,6vw,92px); }
}
h1 { -webkit-text-stroke:.009em currentColor; }
@media (max-width:700px) {
  .hero-art { object-position:96% center; }
  .masthead { gap:14px; }
  .masthead nav { font:500 13px/1.2 Arial,Helvetica,sans-serif; gap:clamp(9px,2.8vw,18px); white-space:nowrap; }
}
@media (max-width:365px) {
  .masthead { gap:8px; }
  .masthead nav { font-size:12px; gap:8px; }
}
@media (min-width:701px) {
  .masthead nav { align-self:stretch; align-items:stretch; width:28.6%; justify-content:space-between; gap:1vw; font-size:clamp(16px,1.48vw,29px); }
  .masthead nav a { display:flex; align-items:center; }
}
.masthead a[href="#results"] { position:relative; color:var(--coral); }
.masthead a[href="#results"]:is(:hover,:focus-visible)::after { content:""; position:absolute; left:0; right:0; bottom:-1px; height:2px; background:currentColor; }
.sr-only { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.track { --progress:var(--clock-position,24%); flex:1; min-width:0; width:100%; height:32px; margin:0; cursor:pointer; accent-color:var(--coral); appearance:none; background:transparent; }
.track::-webkit-slider-runnable-track { height:2px; background:linear-gradient(to right,var(--coral) var(--progress),#efe9ddbd var(--progress)); }
.track::-webkit-slider-thumb { appearance:none; border:0; border-radius:50%; background:var(--coral); height:12px; width:12px; margin-top:-5px; }
.track::-moz-range-track { height:2px; background:#efe9ddbd; }
.track::-moz-range-progress { height:2px; background:var(--coral); }
.track::-moz-range-thumb { border:none; border-radius:50%; background:var(--coral); height:12px; width:12px; }
.research-nav { padding:18px 0; border-bottom:1px solid var(--rule); display:flex; flex-wrap:wrap; gap:8px clamp(18px,3vw,48px); font:15px/1.5 Arial,Helvetica,sans-serif; }
.research-nav a { color:var(--rust); }
.gallery-controls { display:flex; flex-wrap:wrap; gap:18px; margin-bottom:22px; }
.gallery-controls[hidden] { display:none; }
.gallery-controls label { display:grid; gap:6px; font:14px/1.4 Arial,Helvetica,sans-serif; color:#584b40; }
.gallery-controls select { background:var(--ivory); color:var(--ink); font:17px Georgia,serif; padding:10px 28px 10px 10px; border:1px solid #857766; border-radius:0; }
.table-scroll { overflow-x:auto; margin-block:16px; }
.table-scroll table { min-width:560px; }
.table-scroll th,.table-scroll td { white-space:nowrap; }
.data-fold,.film-case { border-top:1px solid var(--rule); }
.data-fold:last-child,.film-case:last-child { border-bottom:1px solid var(--rule); }
.data-fold { margin-top:18px; }
summary { cursor:pointer; padding:16px 4px; color:var(--rust); font-size:clamp(17px,1.4vw,22px); }
summary:hover { text-decoration:underline; text-underline-offset:.2em; }
.film-case summary small { display:inline-block; margin-left:1.25em; font:14px/1.5 Arial,sans-serif; color:#584b40; }
.finding { margin-top:clamp(42px,5vw,74px); }
.finding h3 { font:400 clamp(29px,3vw,48px)/1.1 var(--display); margin:0 0 16px; }
.plots { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:15px; }
.plots img { background:transparent; }
.plots h4 { font:400 clamp(18px,1.45vw,23px)/1.2 Georgia,serif; margin:0 0 10px; }
.chart-key { display:flex; flex-wrap:wrap; gap:10px 20px; margin:26px 0 20px; font:14px Arial,sans-serif; }
.chart-key span::before { content:""; display:inline-block; width:18px; border-top:3px solid var(--series); margin-right:6px; vertical-align:middle; }
.case-body { padding-bottom:24px; }
.case-body p { margin:14px 0 8px; }
.case-body a { color:var(--rust); }
@media(max-width:700px) {
  .plots { grid-template-columns:1fr; gap:24px; }
  .plots figure { max-width:460px; }
  .film-case summary small { display:block; margin:4px 0 0 17px; }
  .research-nav { gap:5px 18px; }
  .gallery-controls { gap:12px; }
  .gallery-controls select { max-width:100%; }
}
.frame-crop { aspect-ratio:16/9; overflow:hidden; }
.frame-crop img { display:block; width:100%; height:100%; }
.benchmark:has([value="plaque"]:checked) .frame-crop img { transform:scale(2.6); transform-origin:2% 42%; }
.benchmark:has([value="pots"]:checked) .frame-crop img { transform:scale(2.3); transform-origin:36% 82%; }
.worked-example,.source-note { max-width:100%; margin:30px 0; }
.worked-example h3,.source-note h3,#comparison-name { font:400 clamp(24px,2.4vw,37px)/1.15 var(--display); margin:0 0 12px; }
.worked-example .pair { margin-top:18px; }
.score-key { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px; padding:16px 0; border-block:1px solid var(--rule); }
.score-key dt { font-weight:bold; }
.score-key dd { margin:6px 0 0; line-height:1.4; }
.score-value { white-space:nowrap; }
#comparison-name { margin-top:24px; }
.wall-example { display:grid; grid-template-columns:1fr 1fr 0.85fr; gap:16px; align-items:center; margin:24px 0; }
.wall-example p { font-size:17px; }
.source-note { background:#f1eadd; padding:clamp(17px,2.4vw,36px); }
.source-note p + p { margin-top:12px; }
.source-note a { color:var(--rust); }
.table-scroll tr > th:first-child { position:sticky; left:0; z-index:1; background:var(--ivory); padding-right:10px; }
.source-note .table-scroll tr > th:first-child { background:#f1eadd; }
.scroll-hint { font-style:italic; }
.film-jumps { display:flex; flex-wrap:wrap; gap:8px; padding:10px 18px 0; align-items:center; }
.film-jumps button { font:inherit; border:1px solid #a89887; padding:8px 12px; background:transparent; color:var(--ivory); cursor:pointer; }
.film-jumps output { font:14px/1.3 Arial,sans-serif; }
.film-jumps[hidden] { display:none; }
dialog { overflow:auto; }
@media (max-width:700px) {
 .detail-pair { grid-template-columns:1fr 1fr; gap:8px; }
 .detail-pair figcaption { display:grid; gap:2px; font-size:16px; }
 .detail-pair figcaption span { font-size:12px; }
 .wall-example { grid-template-columns:1fr 1fr; gap:8px; }
 .wall-example p { grid-column:1/-1; }
 .table-scroll tr > th:first-child { box-shadow:2px 0 var(--rule); }
}

.inspect-link { display:inline-flex; align-items:center; gap:.4em; margin-inline-start:clamp(14px,1.6vw,26px); padding:9px 0; color:var(--ivory); font-size:clamp(16px,1.28vw,22px); text-underline-offset:.22em; }
.benchmark { padding-top:clamp(28px,4vw,60px); }
.benchmark .section-intro { align-items:end; gap:12px 5vw; margin-bottom:clamp(18px,2vw,32px); }
.benchmark .section-intro .lead { margin:0; max-width:31ch; text-wrap:pretty; }
.inspect-layout { display:grid; gap:18px; align-items:start; }
.inspect-settings { display:grid; gap:16px; }
.inspect-settings fieldset { display:flex; flex-wrap:wrap; gap:0 14px; min-width:0; margin:0; padding:0; border:0; }
.inspect-settings fieldset[hidden] { display:none; }
.inspect-settings legend { padding:0; margin-bottom:2px; font:14px/1.4 Arial,sans-serif; color:#584b40; }
.inspect-settings label { display:inline-flex; align-items:center; gap:6px; min-height:44px; font-size:16px; cursor:pointer; }
.inspect-settings label:has(:checked) { color:var(--rust); text-decoration:underline; text-underline-offset:5px; }
.inspect-settings input { margin:0; accent-color:var(--rust); }
.inspect-settings .detail-controls { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:0; }
.detail-controls legend { margin-bottom:6px; }
.detail-controls label { position:relative; justify-content:center; text-align:center; min-width:0; padding:4px; border-block:1px solid var(--rule); font:15px/1.25 Arial,Helvetica,sans-serif; }
.detail-controls label:has(:checked) { border-bottom:2px solid var(--rust); background:#f1eadd; text-decoration:none; }
.detail-controls input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor:pointer; }
@media(hover:hover) {
 .detail-controls label:hover { background:#f1eadd; }
}
.detail-controls label:has(:focus-visible) { outline:2px solid var(--rust); outline-offset:-3px; }
@media(forced-colors:active) {
 .detail-controls label:has(:checked) { border-bottom:3px solid Highlight; }
}
.inspect-settings .inspect-note { margin-top:2px; padding-top:14px; border-top:1px solid var(--rule); }
.route-link { justify-self:start; display:inline-flex; align-items:center; min-height:44px; margin-top:-10px; color:var(--rust); }
.inspect-visual { min-width:0; }
@property --split { syntax:"<percentage>"; inherits:true; initial-value:50%; }
.detail-pair.wipe-view { --split:50%; position:relative; isolation:isolate; display:grid; grid-template-columns:minmax(0,1fr); gap:0; }
.wipe-view > figure { grid-area:1/1; min-width:0; }
.wipe-view > figure:first-child { z-index:1; clip-path:inset(0 calc(100% - var(--split)) 0 0); }
.wipe-view figcaption { display:none; }
.wipe-layer { position:absolute; z-index:2; inset:0; }
.wipe-line { position:absolute; top:0; bottom:0; left:clamp(1px,var(--split),calc(100% - 1px)); width:2px; transform:translateX(-50%); background:#fff9ee; box-shadow:0 0 0 1px #34251e77; pointer-events:none; }
.wipe-grip { position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:36px; height:36px; border:1px solid var(--ivory); border-radius:50%; background:#39271f; display:flex; align-items:center; justify-content:center; gap:3px; }
.wipe-grip::before,.wipe-grip::after { content:""; width:6px; height:6px; border:solid var(--ivory); border-width:0 1.5px 1.5px 0; transform:rotate(135deg); }
.wipe-grip::after { transform:rotate(-45deg); }
.wipe-layer { overflow:hidden; }
.wipe-layer:focus-within { outline:3px solid var(--rust); outline-offset:3px; }
.wipe-layer:focus-within .wipe-grip { background:var(--rust); }
.wipe-slider { position:absolute; inset:0; width:100%; height:100%; margin:0; opacity:0; appearance:none; cursor:ew-resize; touch-action:pan-y; }
.wipe-slider::-webkit-slider-thumb { appearance:none; width:1px; height:40px; }
.wipe-slider::-moz-range-thumb { width:1px; height:40px; border:0; }
.wipe-actions { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:6px 0; border-bottom:1px solid var(--rule); }
.wipe-actions button { font:inherit; font-size:clamp(16px,1.5vw,24px); min-height:44px; border:0; padding:2px 0; background:none; color:var(--rust); cursor:pointer; text-align:left; }
.wipe-actions button:last-child { text-align:right; }
.wipe-actions button:hover { text-decoration:underline; }
.wipe-actions small,#wipe-guide { color:#584b40; font:13px/1.4 Arial,sans-serif; }
.wipe-actions small { margin:0 .25em; }
.wipe-actions[hidden],.wipe-layer[hidden] { display:none; }
@media(min-width:901px) {
 .inspect-layout { grid-template-columns:minmax(0,1fr) clamp(245px,23%,320px); gap:clamp(24px,3vw,50px); }
}
@media(max-width:700px) {
 .wipe-actions small { display:block; margin:0; }
 #wipe-guide { font-size:12px; text-align:center; }
 .inspect-link { margin-inline-start:10px; }
}
@media(prefers-reduced-motion:no-preference) {
 .frame-crop img { transition:transform 380ms cubic-bezier(.16,1,.3,1),transform-origin 380ms cubic-bezier(.16,1,.3,1); }
 .inspect-link span,.play-icon { transition:transform 160ms ease-out; }
 .inspect-link:is(:hover,:focus-visible) span { transform:translateY(3px); }
 .watch:is(:hover,:focus-visible) .play-icon { transform:translateX(3px); }
 dialog[open] { animation:film-open 180ms ease-out; }
 @keyframes film-open { from { opacity:.55; transform:translateY(5px); } }
}

.route-clock { position:relative; display:flex; align-items:center; min-width:0; flex:1; }
.clock-readout { position:absolute; bottom:100%; left:clamp(24px,var(--clock-position,24%),calc(100% - 24px)); transform:translateX(-50%); opacity:0; pointer-events:none; padding:4px 7px; background:#291b13; color:var(--ivory); font:14px/1.2 Arial,sans-serif; font-variant-numeric:tabular-nums; }
.route-clock:focus-within .clock-readout,.route-clock:hover .clock-readout { opacity:1; }
@media(prefers-reduced-motion:no-preference) {
 .clock-readout { transition:opacity 120ms ease-out; }
 .route-clock .track { animation:draw-route 650ms cubic-bezier(.16,1,.3,1) both; }
 .route-clock.route-ready .track { animation:none; }
 @keyframes draw-route { from { clip-path:inset(0 92% 0 0); } to { clip-path:inset(0); } }
}

.paper-figure > a { display:block; cursor:zoom-in; }
.paper-figure figcaption { align-items:baseline; gap:12px 24px; }
.paper-figure figcaption span { max-width:82ch; line-height:1.55; }
.paper-figure figcaption a { flex-shrink:0; color:var(--rust); font:14px/1.55 Arial,sans-serif; }
.result-index { display:flex; flex-wrap:wrap; gap:4px 24px; font:16px/1.4 Arial,sans-serif; color:var(--rust); }
.result-block { margin-block:clamp(32px,4vw,60px); scroll-margin-top:24px; }
.result-block h3 { margin:0 0 12px; font:400 clamp(27px,3vw,44px)/1.12 var(--display); }
.result-block .table-scroll { margin-top:14px; }
.result-block thead th { white-space:normal; vertical-align:bottom; padding-inline:9px; }
.result-block tbody td { padding-inline:9px; }
.result-block .table-scroll th:first-child { padding-left:0; }
#table-3 table { min-width:1000px; }
#table-4 table { min-width:1050px; }
@media(max-width:700px) {
 .paper-figure figcaption { flex-wrap:wrap; gap:4px; }
 .paper-figure figcaption a { display:inline-flex; align-items:center; min-height:44px; }
}

.explainer { display:grid; grid-template-columns:minmax(250px,1fr) minmax(0,2.2fr); align-items:center; gap:clamp(26px,4vw,80px); }
.explainer-copy h2 { font-size:clamp(42px,4.2vw,68px); }
.explainer-copy > p { margin-top:16px; }
.explainer video { height:auto; max-height:none; }
.film-chapters { margin-top:20px; }
.film-chapters button { display:flex; width:100%; gap:14px; align-items:center; min-height:44px; padding:6px 0; border:0; border-top:1px solid var(--rule); background:transparent; text-align:left; font:inherit; color:var(--ink); cursor:pointer; }
.film-chapters time { color:var(--rust); font:14px Arial,sans-serif; font-variant-numeric:tabular-nums; }
.film-chapters button:hover { color:var(--rust); text-decoration:underline; }
@media(max-width:800px) {
 .explainer { display:flex; flex-direction:column; align-items:stretch; gap:14px; }
 .explainer-copy { display:contents; }
 .explainer-copy > p,.explainer-copy > p.caption { margin:0; }
 .film-chapters { order:1; margin:0; }
}

#comparisons .section-intro { margin-bottom:clamp(16px,2.6vw,38px); }
.model-toolbar { display:flex; align-items:center; flex-wrap:wrap; gap:8px 24px; border-block:1px solid var(--rule); padding-block:10px; margin-bottom:22px; }
.model-route { display:flex; gap:18px; align-items:center; flex-wrap:wrap; padding:0; margin:0; border:0; }
.model-route[hidden] { display:none; }
.model-route label { display:inline-flex; align-items:center; min-height:44px; gap:6px; font:17px Georgia,serif; cursor:pointer; }
.model-route input { margin:0; accent-color:var(--rust); }
.model-route label:has(:checked) { color:var(--rust); }
.section .model-cue { font:italic 17px/1.4 Georgia,serif; }
.model-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(24px,3vw,44px) clamp(20px,3vw,46px); }
.model-heading { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:4px; }
.model-film { display:inline-flex; gap:6px; align-items:center; min-height:44px; flex-shrink:0; color:var(--rust); font:14px/1.4 Arial,Helvetica,sans-serif; }
.model-film::before { content:""; border-block:4px solid transparent; border-left:6px solid currentColor; }
.model-example h3 { margin:0; font:400 clamp(22px,2vw,32px)/1.15 var(--display); }
.model-tile { width:100%; display:grid; grid-template-columns:1fr 1fr; gap:6px; text-align:left; border:0; padding:0; color:var(--ink); background:none; }
.model-tile:enabled { cursor:zoom-in; }
.visit-frame { min-width:0; display:grid; gap:5px; font:14px/1.4 Arial,Helvetica,sans-serif; }
.model-tile img,.model-pair img { width:100%; height:auto; display:block; aspect-ratio:16/9; }
@media(max-width:800px) { .model-grid { grid-template-columns:1fr; } }
#model-viewer { width:min(1260px,94vw); padding-bottom:18px; }
#model-scene { margin:0 18px 16px; color:var(--ivory); font:14px/1.5 Arial,sans-serif; }
.model-pair { display:grid; grid-template-columns:1fr 1fr; gap:12px; padding-inline:18px; }
.model-pair figcaption { margin:0 0 6px; font:15px/1.4 Arial,sans-serif; }
@media(max-width:600px) { .model-pair { grid-template-columns:1fr; } }

.route-wall { padding-bottom:clamp(28px,3vw,48px); margin-bottom:clamp(28px,3vw,48px); border-bottom:1px solid var(--rule); }
.route-wall[hidden],.wall-source[hidden] { display:none; }
.wall-heading { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:4px 16px; margin-bottom:8px; }
.wall-heading h3 { margin:0; font:400 clamp(28px,3vw,42px)/1.15 var(--display); }
.wall-heading label { font:14px/1.4 Arial,sans-serif; }
.wall-heading select,.wall-panes select { background:var(--ivory); color:var(--ink); font-size:16px; min-height:44px; cursor:pointer; }
.wall-heading select { border:1px solid var(--rule); padding:3px 6px; margin-left:4px; }
.wall-panes { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px 12px; }
.wall-panes[data-count="2"] { grid-template-columns:repeat(2,minmax(0,1fr)); }
.wall-panes[data-count="10"] { grid-template-columns:repeat(5,minmax(0,1fr)); }
.wall-panes figure { min-width:0; }
.wall-panes select { display:block; max-width:100%; font-family:Georgia,serif; padding:2px; border:0; }
.wall-panes canvas { display:block; width:100%; height:auto; background:#241b17; }
.wall-controls { display:flex; align-items:center; flex-wrap:wrap; gap:4px 14px; padding-block:10px; }
.wall-controls button { min-height:44px; cursor:pointer; font:15px/1.25 Arial,sans-serif; }
.wall-play { border:0; padding:7px 12px; color:var(--ivory); background:var(--ink); min-width:115px; }
.wall-seek { flex:1 1 100px; min-width:80px; height:44px; accent-color:var(--rust); }
.wall-time { font:14px/1.3 Arial,sans-serif; font-variant-numeric:tabular-nums; }
.wall-jumps { display:flex; gap:12px; }
.wall-jumps button { border:0; padding:0 3px; text-decoration:underline; text-underline-offset:.2em; background:transparent; color:var(--rust); }
.wall-message:empty { display:none; }
@media(max-width:800px) {
  .wall-panes,.wall-panes[data-count="10"] { grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 8px; }
  .wall-controls { gap:2px 8px; }
  .wall-heading { align-items:baseline; }
}
@media(max-width:700px) {
  .wall-panes[data-count="2"] { grid-template-columns:minmax(0,1fr); gap:12px; }
  .wall-controls { display:grid; grid-template-columns:auto minmax(0,1fr); gap:4px 12px; }
  .wall-seek { width:100%; min-width:0; }
  .wall-jumps { justify-content:flex-end; }
}

/* Keep the native control bar below the lower captions when viewers pause to compare a frame. */
#paper-film .film-screen { min-width:0; container-type:inline-size; }
@supports (height:1cqw) {
  .film-screen #paper-player { height:calc(56.25cqw + 48px); object-fit:contain; object-position:center top; background:#201f1b; }
  @media(max-width:800px) { .film-screen #paper-player { height:calc(56.25cqw + 56px); } }
  .film-screen #paper-player:fullscreen { width:100%; height:100%; object-position:center; background:black; }
}
