/* Instrument controls for the studio gallery. */
@media (min-width: 901px) {
  #works #theater .ar-story-plate {min-height:0;aspect-ratio:auto;height:clamp(300px,47vh,505px);}
  #works #theater #stage > .ea-roastery.cf-roast {
    --edition-inset:clamp(19px,2.7vw,42px);min-height:0;height:auto;
    grid-template-rows:auto auto auto;align-content:center;
  }
  #works #theater #stage .cf-roast .ea-photobay {align-self:stretch;height:auto;margin:12px;}
  #works #theater #stage .cf-roast .ea-imprint {padding-top:16px;}
  #works #theater #stage .cf-roast .ea-specimen {padding-block:12px;}
  #works #theater #stage .cf-roast .ea-imprint h2 {font-size:clamp(32px,min(3.7vw,6.6vh),76px);}
  #works #theater #stage .cf-roast .ea-title {font-size:clamp(52px,min(6.3vw,10.5vh),132px);}
  #works #theater #stage .cf-roast .ea-notes {font-size:clamp(21px,min(2.45vw,3.95vh),47px);max-width:none;}
  #works #theater #stage .cf-roast .ea-selector {margin-bottom:16px;}
  #works #theater #stage .ea-specimen .wk-coffee-inline {margin:8px 0 0;padding:5px 12px 5px 6px;}
  #works #theater #stage .ea-specimen .wk-beans {width:66px;}
  #works #theater #stage .ea-roasts label {min-height:56px;padding:3px;font-size:16px;}
  #works #theater #stage .ea-roasts label::before {height:27px;}
  #works #theater #stage .ea-roastery {background-image:radial-gradient(ellipse at 68% 50%,#80543b80,transparent 62%),linear-gradient(110deg,#291c15eb,#39271ed9),url("../scenes/ember/roaster-stock.svg");background-size:auto,auto,520px;}
  #works #theater #stage .wk-valence {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);min-height:0;padding:12px;gap:12px;}
  #works #theater #stage .va-stage {min-height:0;height:auto;}
  #works #theater #stage .va-console {min-height:0;margin:0;}
  #works #theater #stage .vb-window {height:clamp(135px,21vh,215px);min-height:0;aspect-ratio:auto;}
  #works #theater #stage .vb-controls {padding:6px;}
  #works #theater #stage .vb-reading {display:grid;grid-template-columns:minmax(95px,32%) 1fr;align-items:center;gap:4px 12px;padding:8px;margin-top:6px;}
  #works #theater #stage .vb-reading .vb-optic-open {grid-column:1;grid-row:1 / span 2;}
  #works #theater #vesper-study {min-height:0;padding:12px;gap:8px;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);}
  #works #theater #vesper-study #light-plate {height:100%;min-height:0;max-height:none;}
  #works #theater #vesper-study .light-instrument {padding:10px;}
  #works #theater #vesper-study .wk-junction-index {margin:0;padding:9px;}
  #works #theater #vesper-study .wk-junction-image {height:clamp(76px,13vh,150px);min-height:0;object-fit:contain;}
  #works #theater #stage .mde-room .mde-switch {min-height:0;padding:6px 12px;}
  #works #theater #stage .mde-mini {padding:9px 12px;}
  #works #theater #stage .mde-head {margin:0 0 6px;}
  #works #theater #stage .mde-head h3 {font-size:30px;}
  #works #theater #stage .mde-record {padding:8px 12px;}
  #works #theater #stage .mde-mini .mde-data {grid-template-columns:1fr 1fr;gap:5px;}
  #works #theater #stage .mde-note {margin:5px 0;}
  #works #theater #stage .mde-settings {margin-top:6px;}
  #works #theater #stage .mde-room .fde-photometry {margin-top:6px;}
  #works #theater #stage .mde-room .mde-citation {margin-top:4px;padding-top:4px;}
  #works #theater #stage .cf-trail .nl-hero {height:clamp(75px,12vh,145px);padding:8px 20px;margin:0;}
  #works #theater #stage .cf-trail .nl-hero h2 {font-size:clamp(36px,4.8vh,59px);}
  #works #theater #stage .cf-trail .nl-book {padding:10px 18px;gap:5px 16px;}
  #works #theater #stage .fde-terrain .fde-relief {height:clamp(120px,20vh,245px);aspect-ratio:auto;min-height:0;}
  #works #theater #stage .cf-trail .nl-route-tabs button {min-height:60px;flex-direction:column;padding:3px 4px 5px;gap:2px;}
  #works #theater #stage .cf-trail .fde-waynote {padding:6px 9px;grid-template-columns:76px 1fr;}
  #works #theater #stage .cf-trail .nl-chart {height:64px;}
  #works #theater #stage .signal-proof {padding:10px 16px;}
  #works #theater #stage .signal-proof>header {margin:0 0 8px;padding:0;}
  #works #theater #stage .signal-proof>header h2 {font-size:34px;}
  #works #theater #stage .score-picker .score-artwork {min-height:0;height:100%;aspect-ratio:auto;}
  #works #theater #stage .score-picker .score-sheet {padding:10px 14px;}
  #works #theater #stage .score-sheet .score-transport {margin:4px auto;}
  #works #theater #stage .score-picker .score-list {margin-block:4px;}
  #works #theater #stage .score-picker .score-list button {min-height:40px;padding:2px 6px!important;}
  #works #theater #stage .score-picker .score-list img {height:28px;width:28px;}
  #works #theater #stage .cpe-service-board {padding:10px;gap:8px 14px;}
  #works #theater #stage .cpe-terminal {min-height:0;}
  #works #theater #stage .tt-daily {padding:10px;}
  #works #theater #stage .fde-stations {padding:8px;}
  #works #theater #stage .sm-cover {padding:12px;min-height:0;gap:8px 16px;}
  #works #theater #stage .sm-cover .sm-slot {padding:12px;}
}
@media (min-width:901px) {
  #works #theater #stage .wk-valence .vb-body {
    display:grid;grid-template:"road" auto "switch" auto "bulb" auto / minmax(0,1fr);
    align-content:start;gap:6px;padding:8px;
  }
  #works #theater #stage .vb-controls {display:contents;}
  #works #theater #stage .vb-dial-bank {grid-area:switch;}
  #works #theater #stage .vb-window {grid-area:road;width:100%;height:clamp(115px,19vh,205px);}
  #works #theater #stage .vb-window .vb-screen {width:100%;height:100%;aspect-ratio:auto;}
  #works #theater #stage .vb-reading {grid-area:bulb;grid-template-columns:minmax(100px,28%) minmax(0,1fr);margin:0;padding:4px;gap:10px;}
  #works #theater #stage .vb-reading .vb-optic-open {grid-area:auto;}
  #works #theater #stage .vb-caption {padding:4px;}
  #works #theater #stage .mde-mini canvas.mde-map {height:clamp(150px,calc(100dvh - 596px),350px);}
  #works #theater #stage .mde-room .mde-mini {padding:5px 10px;}
  #works #theater #stage .mde-mini .mde-platehead {min-height:0;padding:4px 10px;}
  #works #theater #stage .mde-mini .mde-controls {padding:3px 7px;}
  #works #theater #stage .mde-mini .mde-scale {padding:3px 9px;}
  #works #theater #stage .mde-mini .mde-data {margin-block:6px;}
  #works #theater #stage .mde-mini .mde-citation {padding-block:2px;}
  #works #theater #stage .score-room.score-picker {display:grid;grid-template-columns:minmax(0,.77fr) minmax(0,1.45fr);gap:12px;}
  #works #theater #stage .score-picker .score-sheet {
    display:grid;grid-template:"current list" auto "wave list" auto "play list" auto "loop loop" auto "notice notice" auto / minmax(0,1fr) minmax(0,.92fr);
    align-content:center;gap:7px 12px;
  }
  #works #theater #stage .score-picker .score-current {grid-area:current;}
  #works #theater #stage .score-picker .score-timeline {grid-area:wave;margin:0;}
  #works #theater #stage .score-picker .score-transport {grid-area:play;}
  #works #theater #stage .score-picker .score-loop-tools {grid-area:loop;}
  #works #theater #stage .score-picker .score-list {grid-area:list;align-self:center;}
  #works #theater #stage .score-picker .score-message {grid-area:notice;}
  #works #theater #stage .score-picker .score-title {font-size:clamp(29px,2.7vw,46px);}
  #works #theater #stage .score-picker .score-list button[data-score] {grid-template-columns:30px minmax(0,1fr) auto;gap:5px;}
  #works #theater #stage .score-picker .score-list .cue-wave {display:none;}
  #works #theater #stage .cpe-dispatch {padding-top:6px;}
  #works #theater #stage .cpe-service-board .fde-service-scroll {--cp-trace-height:78px;}
  #works #theater #stage .tt-daily {gap:5px;align-content:center;}
  #works #theater #stage .sm-cover {
    grid-template:"mast story" auto "art choose" auto "art reading" auto "sources gloss" auto / minmax(0,.9fr) minmax(0,1.1fr);
    gap:4px 18px;padding:9px 16px;
  }
  #works #theater #stage .sm-cover :is(.sm-slot,.sm-lab) {display:contents;}
  #works #theater #stage .sm-cover :is(.sm-cover-banner,.sm-cover-heading) {min-height:0;margin:0;padding:5px 0;}
  #works #theater #stage .sm-cover-heading h4 {font-size:clamp(30px,4vh,46px);}
  #works #theater #stage .sm-cover .sm-cover-art {min-height:0;height:auto;}
  #works #theater #stage .sm-cover .sm-controls {grid-area:choose;gap:4px;margin:0;padding:0;}
  #works #theater #stage .sm-cover .sm-reading {grid-area:reading;margin:0;}
  #works #theater #stage .sm-cover .sm-label-sources {grid-area:sources;align-self:center;margin:0;}
  #works #theater #stage .sm-cover .sm-gloss {grid-area:gloss;margin:0;}
  #works #theater #stage .sm-cover .sm-footnote {grid-area:notes;width:auto;max-width:none;margin:0;padding:3px 0;}
  #works #theater #stage .sm-cover .sm-table :is(th,td) {padding-block:3px;}
  #works #theater #stage .sm-cover .sm-interpret {margin:0;padding:5px 0;}
}
.project-base {display:contents;}
@media (min-width:901px) {
  #works #theater #stage .score-picker .score-current {grid-column:1 / -1;}
  #works #theater #stage .score-picker .score-list {grid-row:2 / span 2;}
  #works #theater #stage .score-picker .score-list .score-track {display:grid;}
  #works #theater #stage .score-picker .score-list .score-track b {font-size:16px;}
  #works #theater #stage .cpe-terminal .tt-image {height:100%;min-height:0;}
}
@media (min-width:901px) {
  #works #theater #stage .mo-optics {padding:8px 12px;}
  #works #theater #stage .mo-optics .mo-bench {
    display:grid;grid-template:"plate panel" auto "notes notes" auto / minmax(0,1fr) minmax(0,1fr);
    gap:8px 14px;
  }
  #works #theater #stage .mo-optics .mo-plate {grid-area:plate;}
  #works #theater #stage .mo-optics .md-panel {grid-area:panel;align-content:center;gap:6px;padding:4px;}
  #works #theater #stage .mo-optics .md-image {min-height:0;aspect-ratio:auto;height:clamp(150px,30vh,340px);}
  #works #theater #stage .mo-optics .fde-observations {grid-area:notes;display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr);gap:12px;align-items:center;margin:0;padding:5px 0;}
  #works #theater #stage .mo-optics .fde-observe-copy {display:grid;grid-template-columns:auto 1fr;gap:4px 12px;align-items:center;}
  #works #theater #stage .mo-optics .fde-observe-copy p {grid-row:1 / span 3;grid-column:2;margin:0;}
  #works #theater #stage .mo-optics .md-rights {margin-top:3px;padding:3px;}
  #works #theater #stage .mo-optics .md-targets img {height:clamp(32px,5vh,60px);}
  #works #theater #stage .mo-optics .md-titles h3 {font-size:clamp(26px,4vh,46px);}
}
@media (min-width:901px) and (max-height:740px) {
  #works #theater #stage .cf-roast .ea-photobay {margin:9px;}
  #works #theater #stage .mde-record {padding:5px 8px;}
  #works #theater #stage .mde-record .mde-settings summary {min-height:34px;padding-block:2px;}
  #works #theater #stage .mde-citation {font-size:10px;}
  #works #theater #stage .cpe-service-board .fde-platform img {height:clamp(44px,8vh,68px);}
}
@media (min-width:901px) {
  #works #theater #stage .cpe-service-board {grid-template-rows:minmax(175px,1fr) auto;--cp-padding:12px;}
  #works #theater #stage .cpe-service-board .cpe-week-panel {margin-top:0;}
  #works #theater #stage .sm-cover .sm-gloss .sm-footnote {margin-top:5px;}
}

@media (min-width:901px) {
  #works #theater #stage .cf-trail .nl-hero {
    height:auto;min-height:84px;display:flex;align-items:center;justify-content:flex-start;
    gap:24px;padding:12px 22px;
  }
  #works #theater #stage .cf-trail .nl-hero h2 {margin:2px 0 0;line-height:1;}
  #works #theater #stage .cf-trail .nl-location {margin:0;}
  #works #theater #vesper-study .wk-junction-index {
    display:grid;grid-template-columns:minmax(96px,.9fr) minmax(0,1fr);align-items:center;gap:10px;
  }
  #works #theater #vesper-study .wk-junction-image {width:100%;height:auto;}
  #works #theater #stage .mde-gallery .mo-optics .md-rights {padding-block:0;}
}
/* The gallery has one viewport-sized work surface; individual instruments own their layout. */
.project-shelf {display:none}
@media (min-width:901px) {
  #works:has(#gallery-visit:not([hidden])) {
    width:100%;max-width:none;box-sizing:border-box;margin-inline:auto;
    padding-inline:clamp(12px,1.55vw,64px);transition:none!important;
  }
  #works #gallery-visit:not([hidden]) {
    --edge:clamp(10px,1.1vw,24px);--toolbar:62px;--foot:82px;
    display:grid;grid-template:"toolbar" minmax(var(--toolbar),max-content) "theater" minmax(0,1fr) / minmax(0,1fr);
    box-sizing:border-box;width:100%;max-width:none;height:calc(100dvh - 32px);
    margin-inline:auto;scroll-margin-top:0;zoom:1;overflow-anchor:none;
  }
  #works #theater .project-base .project-scripture::before,
  #works #theater .project-base .project-scripture::after,
  #works #theater[data-project] .project-base #project-footer::before {display:none}
  #works #theater .project-base .verse-leaf {grid-template-columns:1fr;gap:3px}
  #works #gallery-visit .gallery-toolbar {
    grid-area:toolbar;display:flex;align-items:center;gap:var(--edge);
    height:auto;min-height:0;padding:0 0 8px;margin:0;box-sizing:border-box;
  }
  #works .gallery-toolbar .gallery-cue {text-align:left;max-width:none;flex:1;font-size:clamp(13px,.95vw,17px)}
  #works .gallery-toolbar #scene-entry {position:relative;display:flex;flex:0 1 max-content;max-width:50%;width:max-content;height:auto;min-width:0;margin:0;padding:0;background:transparent}
  #works .gallery-toolbar #scene-entry::before {content:none}
  #works #gallery-visit.gallery-arriving {animation:none}
  #works .gallery-toolbar #plate-open {
    display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:10px;padding:7px 14px;
    background:#c9b391 linear-gradient(125deg,#f1e3c9,#c9b391);color:#261e16;border:1px solid #f5e5c7;
    border-radius:6px;text-decoration:none;width:100%;min-width:0;height:auto;min-height:46px;box-sizing:border-box;
  }
  #works .gallery-toolbar #plate-open:focus-visible {outline:2px solid white;outline-offset:2px}
  #works .gallery-toolbar #plate-open:hover {background:#f4e7d0}
  #works .gallery-toolbar .entry-copy {display:grid;min-width:0;gap:2px;text-align:start;overflow-wrap:anywhere}
  #works .gallery-toolbar #plate-open .entry-copy small {display:block;color:inherit;font:700 11px/1.15 var(--sans);letter-spacing:.09em;text-transform:uppercase}
  #works .gallery-toolbar .entry-action {font:500 clamp(15px,1.15vw,21px)/1.17 var(--serif,Georgia,serif)}
  #works .gallery-toolbar .entry-mark {height:32px;width:34px;object-fit:contain}
  #works .gallery-toolbar .entry-direction {width:18px;filter:none}
  #works #theater.studio-theater {
    grid-area:theater;display:grid;grid-template-rows:minmax(0,1fr) minmax(var(--foot),max-content);
    min-width:0;min-height:0;height:100%;width:100%;margin:0;max-width:none;
    border:1px solid #ffffff35;border-radius:12px;overflow:clip;background:#100f0e;
  }
  #works #theater #project-window {
    min-height:0;height:100%;overflow:auto;
  }
  #works #theater #project-window .exhibit-deck,
  #works #theater #stage:not([hidden]) {
    width:100%;min-height:100%;height:100%;max-height:none;padding:0;margin:0;
    display:block;overflow:visible;
  }
  #works #theater #stage > :first-child:not([hidden]),#works #theater #vesper-study:not([hidden]) {
    min-height:100%;box-sizing:border-box;
  }
  #works #theater[data-project] .project-base {
    grid-row:2;position:relative;z-index:1;display:grid;box-sizing:border-box;
    grid-template:"prev verse next" 100% / minmax(136px,18%) minmax(0,1fr) minmax(136px,18%);
    align-items:center;gap:var(--edge);height:100%;padding:5px var(--edge);
    border-top:1px solid #ffffff26;background:linear-gradient(105deg,#211e1a,#131312 53%,#211e1a);
  }
  #works #theater[data-project] .project-base #project-footer {display:contents}
  #works #theater .project-base #back-project {grid-area:prev}
  #works #theater .project-base #next-project {grid-area:next}
  #works #theater .project-base .project-scripture {
    grid-area:verse;height:100%;padding:2px 0;background:transparent;border:0;display:grid;grid-template-columns:minmax(0,1fr);
    align-items:center;gap:10px;color:#f2e9da;--verse-accent:#d4bb92;
  }
  #works #theater .project-base .verse-leaf figcaption {color:#d4bb92}
  #works #theater .project-base .verse-leaf blockquote {font-size:clamp(14px,1.08vw,21px);line-height:1.18}
  #works #theater #project-position {display:none}
  #works #theater #stage .ar-gallery-story {grid-template-columns:minmax(0,1.8fr) minmax(292px,1fr);align-items:stretch;border-radius:0}
  #works #theater #stage .ar-story-plate {height:100%;min-height:0;aspect-ratio:auto;align-self:stretch}
  #works #theater #stage .ar-story-desk {
    justify-content:center;gap:clamp(8px,1.4vh,17px);padding:clamp(12px,1.6vw,34px);
    background:transparent;
  }
  #works #theater #stage > .ea-roastery.cf-roast {
    grid-template-columns:minmax(0,.94fr) minmax(0,1.06fr);
    grid-template-rows:auto 1fr auto;align-content:stretch;padding-block:clamp(10px,2vh,40px);
    background:linear-gradient(90deg,#21150ff2,#2a1a14bf 40%,#3221183b 75%),url("editions/ember/showcase.webp") center/cover;
  }
  #works #theater #stage .cf-roast .ea-photobay {margin:var(--edge);min-height:0}
  #works #theater #stage .cf-roast .ea-specimen {align-self:center}
  #works #theater #stage .ea-roasts label {min-height:clamp(58px,9vh,125px)}
  #works #theater #stage .ea-roasts label::before {height:clamp(32px,5.6vh,77px)}
  #works #theater #stage .ea-title {line-height:.98}
  #works #theater #stage .cf-trail {
    display:grid;height:100%;grid-template:"hero map" minmax(125px,1fr) "hero plot" 12px "route plot" auto "tabs plot" auto /
     minmax(0,.83fr) minmax(0,1.17fr);gap:10px clamp(14px,1.5vw,35px);padding:var(--edge);
    background:linear-gradient(100deg,#172d24d1,#18332bd9),url("editions/northline/bench.webp") center/cover;
  }
  #works #theater #stage .cf-trail .nl-book {display:contents}
  #works #theater #stage .cf-trail .nl-hero {grid-area:hero;height:100%;box-sizing:border-box;min-height:125px;display:grid;align-content:end;justify-content:start}
  #works #theater #stage .cf-trail .nl-brand {position:absolute;top:10px;left:14px;right:auto;transform:none;font-size:clamp(17px,1.45vw,30px)}
  #works #theater #stage .cf-trail .nl-routehead {grid-area:route;margin:0;padding:0}
  #works #theater #stage .cf-trail .nl-routehead h3 {font-size:clamp(32px,3vw,66px);line-height:1.06;margin:4px 0}
  #works #theater #stage .cf-trail .nl-route-tabs {grid-area:tabs;margin:0}
  #works #theater #stage .cf-trail .nl-plotbox {grid-area:plot;align-self:stretch;display:grid;align-content:center;margin:0;padding:10px 14px}
  #works #theater #stage .cf-trail .fde-terrain {
    grid-area:map;align-self:stretch;min-height:0;display:grid;grid-template-rows:auto minmax(90px,1fr) auto auto;
  }
  #works #theater #stage .cf-trail .fde-relief {height:100%;min-height:0;aspect-ratio:auto}
  #works #theater #stage .cf-trail .fde-waynote {min-height:76px;align-content:center}
  #works #theater #stage .wk-valence {
    position:relative; isolation:isolate; padding:var(--edge); gap:0;
    grid-template-columns:minmax(0,.36fr) minmax(0,.64fr);
    grid-template-rows:minmax(0,1fr); align-content:stretch;
    background:linear-gradient(110deg,#191a17,#262922 62%,#171915);
  }
  #works #theater #stage .wk-valence .va-stage {
    position:absolute; inset:0 auto 0 0; width:48%; height:auto; box-shadow:none;
    background-position:90% center;
    mask-image:linear-gradient(90deg,#000 65%,transparent 100%);
  }
  #works #theater #stage .wk-valence .va-stage::before {background-position:90% center}
  #works #theater #stage .wk-valence .va-stage::after {
    background:linear-gradient(145deg,#11120fb5,transparent 55%);
  }
  #works #theater #stage .wk-valence .va-editorial {left:6%;top:7%;width:67%}
  #works #theater #stage .wk-valence .va-editorial h2 {font-size:clamp(54px,5.2vw,100px)}
  #works #theater #stage .wk-valence .vb-instrument {
    grid-column:2; align-self:stretch; margin:0;
    display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; min-height:0;
  }
  #works #theater #stage .wk-valence .vb-body {
    flex:1; min-height:0; grid-template-rows:minmax(132px,1fr) auto auto;
    gap:clamp(6px,.8vh,12px); padding:clamp(8px,.8vw,15px);
  }
  #works #theater #stage .wk-valence .vb-window {height:100%;align-self:stretch}
  #works #theater #stage .wk-valence .vb-reading {grid-template-columns:clamp(125px,12vw,235px) minmax(0,1fr)}
  #works #theater #vesper-study:not([hidden]) {
    padding:var(--edge);gap:var(--edge);align-content:center;
    background:linear-gradient(90deg,#c6bca63d,#eee7d5db 65%),url("editions/vesper/showcase.webp") center/cover;
  }
  #works #theater #stage .signal-proof {
    display:grid;grid-template-rows:auto 1fr;gap:12px;padding:var(--edge);
    background:linear-gradient(100deg,#17120fc2,#17120f82),url("editions/signal/bench.webp") center/cover;
  }
  #works #theater #stage .signal-proof>header {margin:0}
  #works #theater #stage .score-room.score-picker {height:100%;align-items:stretch}
  #works #theater #stage .score-picker .score-sheet {align-content:center;background:linear-gradient(125deg,#363630f2,#181915f7)}
  #works #theater #stage .score-picker .score-timeline {margin-block:8px}
  #works #theater #stage .cpe-service-board {
    padding:var(--edge);gap:var(--edge);background:linear-gradient(105deg,#153323bf,#11211ac9),url("editions/civic/showcase.webp") center/cover;
  }
  #works #theater #stage .cpe-service-board .cpe-week-panel {margin-top:auto}
  #works #theater #stage .cpe-service-board .tt-daily {padding:var(--edge);justify-content:space-between;gap:8px}
  #works #theater #stage .cpe-service-board .fde-service-scroll {--cp-trace-height:clamp(76px,15vh,295px)}
  #works #theater #vesper-study .wk-junction-index {
    display:flex;flex-direction:column;justify-content:center;align-items:stretch;gap:8px;padding:var(--edge);
    background:linear-gradient(#fbf7eae0,#f2e8d4f2),url("editions/vesper/showcase.webp") center/cover;
  }
  #works #theater #vesper-study .wk-junction-image {flex:1 1 0;height:0;min-height:52px;max-height:48vh;object-fit:contain}
  #works #theater #vesper-study .wk-junction-index figcaption {width:100%;max-width:none}
  #works #theater #stage .cf-trail .nl-chart {height:clamp(50px,7.2vh,115px)}
  #works #theater #stage .cf-trail .nl-hero>div:last-child {position:absolute;inset:auto 14px 16px;z-index:1}
  #works #theater #stage .cf-trail .nl-hero h2 {font-size:clamp(34px,3.8vw,78px)}
  #works #theater #stage .sm-cover .sm-reading {
    padding:clamp(6px,1vh,17px) clamp(12px,1.6vw,32px);align-self:stretch;
    background:linear-gradient(112deg,#fff9eced,#f7efd9d6);border-block:1px solid #b3a17a;
  }
  #works #theater #stage .sm-cover .sm-table :is(td,th) {padding-block:clamp(3px,.74vh,14px)}
  #works #theater #stage .sm-cover .sm-reading .sm-interpret {padding-top:10px}
  #works #theater #stage .sm-cover .sm-cover-heading h4 {font-size:clamp(31px,2.5vw,62px)}

  #works #theater #stage .sm-cover {
    padding:var(--edge);gap:8px var(--edge);align-content:stretch;
    grid-template-rows:auto auto 1fr auto;
    background:linear-gradient(90deg,#ece2c9e0,#f4e8d0f5 60%,#efdfbbeb),url("editions/food/showcase.webp") center/cover;
  }
  #works #theater #stage .sm-cover .sm-cover-art {align-self:stretch;height:100%}
  #works #theater #stage .mde-room {padding:8px var(--edge)}
  #works #theater #stage .mde-mini canvas.mde-map {height:clamp(130px,calc(100dvh - 554px),66dvh)}
  #works #theater #stage .mo-optics .md-image {height:clamp(135px,calc(100dvh - 490px),60dvh)}
}
@media (min-width:1200px) {
  #works #gallery-visit:not([hidden]) {
    --shelf:clamp(174px,13.25vw,340px);
    grid-template:"toolbar toolbar" minmax(var(--toolbar),max-content) "shelf theater" minmax(0,1fr) / var(--shelf) minmax(0,1fr);
    column-gap:var(--edge);
  }
  #works .project-shelf {
    grid-area:shelf;display:grid;grid-template-rows:repeat(9,minmax(48px,1fr));gap:4px;align-self:stretch;
    min-height:0;overflow:auto;align-content:start;
  }
  #works .project-shelf a {
    display:grid;grid-template-columns:clamp(40px,3.9vw,82px) minmax(0,1fr);align-items:center;gap:9px;
    position:relative;min-height:0;overflow:hidden;isolation:isolate;text-decoration:none;
    border:1px solid #3a3732;border-radius:4px;background:linear-gradient(115deg,#25221e,#131311);color:#dfdbd2;
  }
  #works .project-shelf a[aria-current] {background:linear-gradient(115deg,#51473b,#302b25);border-color:#bca781;color:#fff6e4}
  #works .project-shelf a:focus-visible {outline:2px solid #fff;outline-offset:-3px}
  #works .project-shelf a:hover {border-color:#bca781}
  #works .project-shelf img {height:100%;min-height:0;width:100%;object-fit:cover}
  #works .project-shelf a:first-child img {object-fit:contain;padding:3px;box-sizing:border-box}
  #works .project-shelf span {display:grid;gap:4px;font:400 clamp(14px,1.05vw,24px)/1.03 var(--serif,Georgia,serif);padding-right:4px}
  #works .project-shelf small {color:#c6b79d;text-transform:uppercase;letter-spacing:.07em;font:600 clamp(8px,.62vw,12px)/1.1 var(--sans)}
  #works .gallery-toolbar .gallery-return {width:var(--shelf);justify-content:flex-start;box-sizing:border-box}
}
@media (min-width:901px) and (max-height:690px) {
  #works #gallery-visit:not([hidden]) {--toolbar:54px;--foot:70px;height:calc(100dvh - 25px);scroll-margin-top:0}
}

/* Compact project keys with a raised face and an inset direction medallion. */
#works #theater .project-base #project-footer :is(#back-project,#next-project) {
  --key-arrow:30px;
  display:grid; grid-template:"arrow direction" auto "arrow destination" auto / var(--key-arrow) minmax(0,auto);
  align-content:center;align-items:center;justify-content:start;align-self:center;
  width:min(100%,12.5rem); min-width:0; max-width:100%; min-height:60px;
  padding:6px 13px 6px 7px;gap:1px 9px;
  border:1px solid #766954;border-radius:11px;
  background:linear-gradient(175deg,#564c3dab,#2a241ec9 54%,#1e1a16e8),url("editions/surfaces/gunmetal.webp") center / 240px;
  color:#fff4df;text-align:left;
  box-shadow:inset 0 1px #fff0cc45,inset 0 -2px #090806aa,1px 3px 5px #09070561;
}
#works #theater .project-base #project-footer #next-project {
  grid-template-areas:"direction arrow" "destination arrow";grid-template-columns:minmax(0,auto) var(--key-arrow);
  padding-inline:13px 7px;text-align:right;
}
#works #theater .project-base #project-footer :is(#back-project,#next-project)::before {
  content:"";display:block;grid-area:arrow;width:var(--key-arrow);aspect-ratio:1;box-sizing:border-box;border-radius:50%;
  background:url("nav-chevron.svg") center / 66% auto no-repeat,linear-gradient(150deg,#1d1b18,#393026);
  border:1px solid #71634e;box-shadow:inset 1px 2px 3px #080704bd,0 1px #e1c29844;
}
#works #theater .project-base #project-footer #back-project::before {
  background-image:url("nav-chevron.svg"),linear-gradient(210deg,#1d1b18,#393026);
  transform:scaleX(-1);box-shadow:inset -1px 2px 3px #080704bd,0 1px #e1c29844;
}
#works #theater .project-base #project-footer .step-heading {
  grid-area:direction;display:block;color:#e4c89f;font:650 11px/1.2 var(--sans);letter-spacing:.035em;
}
#works #theater .project-base #project-footer .step-heading::before {content:none}
#works #theater .project-base #project-footer :is(#back-project,#next-project) b {
  grid-area:destination;min-width:0;overflow-wrap:anywhere;min-block-size:0;font:550 14px/1.18 var(--sans);color:#fff5e7;
}
#works #theater .project-base #project-footer :is(#back-project,#next-project):is(:hover,:focus-visible) {
  border-color:#e2c296;filter:brightness(1.12);
}
#works #theater .project-base #project-footer :is(#back-project,#next-project):focus-visible {outline:2px solid #ddb87c;outline-offset:2px}
#works #theater .project-base #project-footer :is(#back-project,#next-project):active {
  translate:0 1px;box-shadow:inset 0 2px 4px #0a0806bd,0 1px #d6be951f;
}
@media(min-width:901px) {
  #works #theater .project-base #project-footer :is(#back-project,#next-project) {
    height:auto;min-height:54px;box-sizing:border-box;
  }
  #works #theater .project-base #project-footer #next-project {justify-content:end}
  #works #theater #project-window {scrollbar-gutter:stable}
}
@media(max-width:520px) {
  #works #theater .project-base #project-footer :is(#back-project,#next-project) {
    --key-arrow:22px;column-gap:5px;padding-inline:6px;
  }
  #works #theater .project-base #project-footer :is(#back-project,#next-project) b {font-size:13px}
}
@media(forced-colors:active) {
  #works #theater .project-base #project-footer :is(#back-project,#next-project)::before {
    background:ButtonText;mask:url("nav-chevron.svg") center / contain no-repeat;forced-color-adjust:none;
  }
}

/* Keep the desktop folio open at one spread as the reader turns through samples. */
@media (min-width:901px) {
  #sample-book:has(.cabinet-contents[role=tablist]) {
    --book-gutter:clamp(12px,1.5vw,24px);
    display:grid;grid-template-rows:auto minmax(0,1fr);
    height:min(800px,calc(100dvh - 32px));scroll-margin-top:12px;
    overflow-anchor:none;
  }
  #sample-book .cabinet-index {display:flex;padding-block:7px}
  #sample-book .cabinet-index h3 {margin:0}
  #sample-book .cabinet-contents {grid-template-columns:repeat(6,minmax(0,1fr))}
  #sample-book .parts-samples {height:100%;min-height:0}
  #sample-book .parts-samples > [role=tabpanel] {height:100%;box-sizing:border-box}
  #sample-book .parts-samples > figure,
  #sample-book #playback-examples {display:grid;grid-template-rows:minmax(0,1fr) auto}
  #sample-book .parts-example > figcaption {padding:10px var(--book-gutter);gap:8px 20px;align-items:center}
  #sample-book .parts-example > figcaption h3 {font-size:clamp(20px,1.7vw,28px)}
  #sample-book .parts-example > figcaption p {max-width:80ch;font:400 14px/1.35 var(--sans)}

  #sample-book .way-studio {padding:var(--book-gutter)}
  #sample-book .way-display {display:grid;grid-template-rows:minmax(0,1fr) auto;height:100%;min-height:0}
  #sample-book .way-specimen {aspect-ratio:auto}
  #sample-book .print-studio {
    display:grid;grid-template-columns:minmax(0,1fr) minmax(210px,27%);gap:var(--book-gutter);padding:var(--book-gutter);
  }
  #sample-book .print-window {height:100%;aspect-ratio:auto}
  #sample-book .print-contact {margin:0;grid-template:repeat(3,minmax(0,1fr)) / repeat(2,minmax(0,1fr))}
  #sample-book .print-contact button {display:grid;grid-template:minmax(0,1fr) auto / 1fr;align-content:stretch;align-items:stretch}
  #sample-book .print-contact button img {width:100%;height:100%;aspect-ratio:auto}

  #sample-book #atmosphere-study {align-items:center;max-width:none}
  #sample-book #atmosphere-study .atmosphere-picture {width:100%;max-width:calc((min(800px,100dvh - 32px) - var(--cabinet-rail,80px) - 3px)*1672/941);place-self:center}
  #sample-book .pp-drafting-board {padding:var(--book-gutter);min-height:0}
  #sample-book .pp-sketch {max-height:calc(100dvh - 335px)}

  #sample-book #button-examples {display:grid;grid-template-columns:minmax(270px,.53fr) minmax(0,1fr)}
  #sample-book .button-specimens {
    display:grid;grid-template:"heading" auto "rack" auto "reading" auto / minmax(0,1fr);
    align-content:center;gap:12px;padding:var(--book-gutter)
  }
  #sample-book .button-specimens-rack {grid-template-columns:repeat(2,minmax(0,1fr));padding:clamp(12px,1vw,20px);gap:clamp(6px,.65vw,11px)}
  #sample-book .button-specimens-readout {min-height:3em;margin:0}
  #sample-book #playback-examples {min-width:0}
  #sample-book .listening-desk {min-height:0;height:100%;grid-template-columns:minmax(0,.68fr) minmax(0,1fr)}
  #sample-book .desk-jacket {
    position:static;isolation:auto;padding:14px 8%;background:transparent;
  }
  #sample-book .desk-environment {object-position:50% 46%}
  #sample-book .desk-jacket::before {
    background:linear-gradient(90deg,#21160d3b,#24180717 32%,#21160f77),
      linear-gradient(0deg,#140e0cde,transparent 52%);
  }
  #sample-book .desk-jacket::after {display:none}
  #sample-book .desk-sleeve {width:95%;align-self:center}
  #sample-book .desk-panel {padding:clamp(10px,1.5vw,24px);padding-left:0;background:none;box-shadow:none}
  #sample-book .desk-device {padding:22px 10px 14px}
  #sample-book .desk-glass {padding:clamp(10px,1.3vw,20px)}
  #sample-book .desk-track {font-size:clamp(23px,2.2vw,37px)}

  #sample-book .proof-desk {
    grid-template:"pointers bench objects" minmax(0,1fr) / minmax(0,1fr) minmax(0,2.65fr) minmax(0,1fr);
    padding:var(--book-gutter);gap:clamp(8px,1vw,18px);min-height:0
  }
  #sample-book .proof-workbench {display:grid;grid-template-rows:auto minmax(0,1fr);align-items:center;align-self:stretch;justify-self:center;max-width:810px;min-height:0}
  #sample-book .proof-tools {align-self:start;margin-bottom:10px}
  #sample-book .proof-anime-page {padding:14px}
  #sample-book .proof-camera-rig {display:grid;grid-template-columns:minmax(0,2.3fr) minmax(0,1fr);align-items:center}
  #sample-book .proof-camera-workbench {display:grid;grid-template-columns:minmax(0,1fr);align-content:center;gap:8px;padding:10px}
  #sample-book .proof-camera-detail {font-size:clamp(18px,1.7vw,26px)}
  #sample-book .proof-scene-stops {display:flex;flex-wrap:wrap}
  #sample-book .cursor-plates {grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:minmax(0,1fr)}
  #sample-book .cursor-specimen {padding:4px 3px 7px;min-height:0}
  #sample-book .cursor-sketch {min-height:0}
  #sample-book .cursor-sketch img {position:absolute;width:clamp(54px,6.5cqw,98px);height:100%;max-height:98px;max-width:95%;object-fit:contain}
  #sample-book .cursor-specimen .specimen-name {font-size:clamp(12px,1vw,17px);text-wrap:balance}
  #sample-book .proof-survey-spread {max-width:min(100%,calc((100dvh - 300px)*1.95));margin-inline:auto}
}

@media (min-width:901px) {
  #sample-book .print-studio, #sample-book #button-examples {grid-template-rows:minmax(0,1fr)}
  #sample-book .print-contact {min-height:0}
  #sample-book .proof-binding, #sample-book .proof-tools {width:100%;box-sizing:border-box}
}
@media (min-width:901px) and (max-height:700px) {
  #sample-book .proof-desk, #sample-book .button-specimens {padding:10px}
  #sample-book .proof-page {padding:12px}
  #sample-book .proof-page h4 {font-size:32px}
  #sample-book .proof-anime-page header {margin-bottom:8px}
  #sample-book .proof-film-frame {max-width:calc((100dvh - 388px)*1672/941);justify-self:center}
  #sample-book .proof-ink-field, #sample-book .proof-score {max-height:108px;margin-block:10px}
  #sample-book .proof-survey-spread {max-width:min(100%,calc((100dvh - 385px)*1.8))}
  #sample-book .button-specimens {gap:8px}
  #sample-book .button-specimens-rack {gap:5px;padding:6px}
  #sample-book .hardware-sample img {height:38px;object-fit:contain}
}

@media (min-width:901px) {
  @container (max-width:1250px) {
    #sample-book .cursor-plates {grid-template-columns:repeat(2,minmax(0,1fr))}
    #sample-book .cursor-specimen:last-child {grid-column:1/-1}
  }
}
