:root{
  /* paper sections */
  --sheet:#F7F7F4; --ink:#17191C; --graphite:#585D63; --line:#C9CBC6; --line-soft:#E4E5E1;
  --duct:#1E4A72; --rev:#B8151F; --space:#060A12; --glow:#BFD6F5; --max:1200px;
  --mono:"JetBrains Mono",ui-monospace,Menlo,monospace;
  /* the stage reel (site/DESIGN.md section 2) */
  --st-bg:#0C0D0F; --st-ink:#F3EEE6; --st-ink-2:rgba(243,238,230,.78); --st-ink-3:rgba(243,238,230,.55);
  --st-ink-4:rgba(243,238,230,.40); --st-line:rgba(243,238,230,.18); --st-ghost:rgba(243,238,230,.08);
  --acc-1:#F0CFA9; --acc-2:#E39A66; --pill:#E8C197; --pill-ink:#1E150D; --plan-line:#9CC0E6;
  --clash:#EF6A5E;
  --serif:"Instrument Serif",Georgia,serif; --sans:"Archivo",system-ui,sans-serif;
  --gut:clamp(16px,3.8vw,72px); --hud-h:clamp(64px,8vh,80px); --nav-h:clamp(56px,8vh,72px); --gap:clamp(20px,2.5vw,48px); --inset-w:clamp(180px,18vw,300px);
  /* how far the left of the strip stands off the bottom once the stage readout is open: what a panel above it must clear */
  --hud-stack:clamp(112px,13.4vh,140px);
}
*{box-sizing:border-box}
html{background:var(--st-bg)}
body{margin:0;color:var(--ink);font-family:var(--sans);font-size:17px;line-height:1.55;-webkit-font-smoothing:antialiased;overflow-x:hidden}
a{color:inherit}
a:focus-visible,button:focus-visible,label:focus-within{outline:2px solid var(--acc-1);outline-offset:3px}
main{position:relative;z-index:1}
/* read by screen readers and search engines, not drawn */
.sr-only{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.btn{display:inline-block;padding:13px 20px;background:var(--ink);color:var(--sheet);text-decoration:none;font:600 15px var(--sans);border:1.5px solid var(--ink);cursor:pointer}
.btn:hover{background:var(--sheet);color:var(--ink)}
.btn.light{background:var(--st-ink);border-color:var(--st-ink);color:var(--st-bg)}
.btn.light:hover{background:transparent;color:var(--st-ink)}

/* ------------------------------------------------------------------ the stage reel */
#stages{position:relative;background:var(--st-bg);color:var(--st-ink)}
.pin{position:relative;overflow:hidden;color:var(--st-ink)}
.stage{position:relative;min-height:100vh;min-height:100svh}
.still{position:absolute;inset:0;display:block;z-index:1;opacity:var(--fade,1);transform:scale(var(--push,1));transform-origin:50% 50%}
.still img{width:100%;height:100%;display:block;object-fit:cover;object-position:50% 50%;background:var(--st-bg)}
.stage.live .still{will-change:transform,opacity}
/* a still that did not load leaves the dark frame, never a broken-image box */
.still.missing img{visibility:hidden}
/* side scrim on the headline side, fading with its still */
.stage::before{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;opacity:var(--fade,1);
  background:linear-gradient(90deg,rgba(12,13,15,.45),rgba(12,13,15,0) 42%)}
.stage.right::before{background:linear-gradient(270deg,rgba(12,13,15,.45),rgba(12,13,15,0) 42%)}
/* top and bottom scrims on the frame */
.pin::after{content:"";position:absolute;inset:0;z-index:2;pointer-events:none;
  background:linear-gradient(180deg,rgba(12,13,15,.35),rgba(12,13,15,0) 12%,rgba(12,13,15,0) 70%,rgba(12,13,15,.70) 100%)}

/* full motion: the pin holds one viewport, the section is the scroll budget (120vh a stage + 100vh) */
html.js:not(.motion-reduce) #stages{height:calc(var(--n,8) * 120vh + 100vh)}
html.js:not(.motion-reduce) .pin{position:sticky;top:0;height:100vh;height:100svh}
html.js:not(.motion-reduce) .stage{position:absolute;inset:0;min-height:0}
html.js:not(.motion-reduce) .stage + .stage{visibility:hidden}

/* nav, inside the pinned frame */
#nav{position:absolute;top:0;left:0;right:0;height:var(--nav-h);display:flex;align-items:center;gap:14px;padding:0 var(--gut);z-index:6}
.mark{font-weight:700;font-variation-settings:"wdth" 112;font-size:17px;letter-spacing:-.01em;text-decoration:none;color:var(--st-ink);white-space:nowrap}
#nav .rule{width:1px;height:16px;background:var(--st-line)}
.tagline,.demo-tag{font:400 clamp(10px,.7vw,11px) var(--mono);text-transform:uppercase;letter-spacing:.14em;color:var(--st-ink-3);white-space:nowrap}
#nav nav{display:flex;gap:clamp(18px,2.2vw,36px);margin:0 auto;padding:0 12px}
#nav nav a{font:500 clamp(13px,.9vw,14px) var(--sans);color:var(--st-ink-2);text-decoration:none;transition:color .2s}
#nav nav a:hover{color:var(--st-ink)}
.nav-demo{margin-left:0}
.pill{font:500 clamp(11px,.75vw,12px) var(--mono);text-transform:uppercase;letter-spacing:.12em;padding:9px 16px;border-radius:999px;background:var(--pill);color:var(--pill-ink);text-decoration:none;white-space:nowrap;margin-left:12px;transition:background .2s}
.pill:hover{background:var(--acc-1)}

/* headline block */
/* The eyebrow sits at one height on every stage: a three-line headline grows downward from it. */
.cap{position:absolute;left:var(--gut);top:31%;width:min(44vw,720px);z-index:3;margin:0}
.cap small{display:flex;width:fit-content;align-items:center;gap:12px;font:500 clamp(11px,.75vw,13px) var(--mono);text-transform:uppercase;letter-spacing:.18em;color:var(--st-ink-3)}
.cap small .rule{width:28px;height:1px;background:var(--st-line)}
.cap h2{width:fit-content;margin:clamp(14px,2.6vh,28px) 0 clamp(14px,2.2vh,22px);font-weight:500;font-variation-settings:"wdth" 100;font-size:clamp(38px,5vw,96px);line-height:1.04;letter-spacing:-.02em;color:var(--st-ink)}
.cap h2 em{font:italic 400 1.08em var(--serif);color:var(--acc-1);background:linear-gradient(100deg,var(--acc-1),var(--acc-2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;padding-right:.08em}
.cap p{margin:0;font-size:clamp(15px,1.15vw,18px);line-height:1.5;color:var(--st-ink-2);max-width:34ch}
.stage.right .cap{left:auto;right:var(--gut);text-align:right}
.stage.right .cap small{justify-content:flex-end}
.stage.right .cap small,.stage.right .cap h2,.stage.right .cap p{margin-left:auto}
/* counts written in from the model */
.cap p b{font-weight:500;color:var(--st-ink)}
/* the line under the copy: a state tag (first routing) or the stage's own figures */
.cap .note{margin-top:clamp(12px,2vh,20px);max-width:none;font:500 clamp(10px,.72vw,11.5px)/1.7 var(--mono);text-transform:uppercase;letter-spacing:.12em;color:var(--st-ink-3)}
.cap .note:empty{display:none}
.cap .note.tag{display:inline-flex;align-items:center;gap:10px;padding:5px 11px 5px 10px;border:1px solid var(--st-line);border-radius:3px;background:rgba(12,13,15,.4);color:var(--st-ink-2);line-height:1.5;white-space:nowrap}
.cap .note.tag::before{content:"";flex:none;width:6px;height:6px;border:1px solid var(--clash);transform:rotate(45deg)}

/* stage 4: the clash test by test, low on the side the headline leaves free */
.clashes{position:absolute;left:var(--gut);bottom:max(15.5%,calc(var(--hud-stack) + 14px));width:clamp(270px,22vw,400px);z-index:3;margin:0;padding:12px 14px 11px;border:1px solid var(--st-line);border-radius:4px;background:rgba(12,13,15,.62);font:400 clamp(10.5px,.76vw,12px)/1.3 var(--mono);color:var(--st-ink-2)}
.clashes[hidden]{display:none}
.clashes p{margin:0}
.clashes-h{display:flex;justify-content:space-between;gap:12px;padding-bottom:9px;font-size:clamp(10px,.7vw,11px);text-transform:uppercase;letter-spacing:.14em;color:var(--st-ink-3)}
.clashes ol{list-style:none;margin:0;padding:0}
.clashes li{position:relative;display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding:6px 0 7px;border-top:1px solid var(--st-line);white-space:nowrap}
.clashes li::after{content:"";position:absolute;left:0;bottom:-1px;height:1px;width:calc(var(--share,0) * 100%);background:var(--clash);z-index:1}
.clashes b{font-weight:500;color:var(--st-ink);font-variant-numeric:tabular-nums}
.clashes-f{display:flex;justify-content:space-between;align-items:baseline;gap:12px;padding-top:9px;border-top:1px solid var(--st-line);text-transform:uppercase;letter-spacing:.14em;font-size:clamp(10px,.7vw,11px);color:var(--st-ink-3)}
.clashes-f>b{font:500 clamp(17px,1.4vw,22px)/1 var(--sans);letter-spacing:0;color:var(--clash)}
.clashes-f span b{color:var(--st-ink-2)}
.clashes-n{padding-top:6px;text-transform:uppercase;letter-spacing:.14em;font-size:clamp(10px,.7vw,11px);color:var(--st-ink-3)}
.clashes-n:empty{display:none}
.clashes-n b{color:var(--st-ink-2)}

/* stage 7: one tag per spool, hung on the still by page.js (text from the model, place from the
   render). A tag sits level with its spool with a short leader to a dot on the pipe; its edge
   takes the colour that spool is drawn in. */
.spooltags{position:absolute;inset:0;z-index:3;pointer-events:none}
.spooltags[hidden],.spooltags.off{display:none}
.spooltags svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.spooltags path{fill:none;stroke:rgba(243,238,230,.6);stroke-width:1}
.spooltags circle{fill:var(--st-ink);stroke:rgba(12,13,15,.75);stroke-width:1.5}
.spooltags ol{list-style:none;margin:0;padding:0}
.spooltags li{position:absolute;left:0;top:0;display:flex;flex-direction:column;gap:3px;padding:6px 10px 6px 9px;border:1px solid var(--st-line);border-right:2px solid var(--tint,var(--acc-1));border-radius:3px;background:rgba(12,13,15,.78);font:500 11.5px/1.1 var(--mono);letter-spacing:.02em;white-space:nowrap;color:var(--st-ink)}
.spooltags li.flip{border-right:1px solid var(--st-line);border-left:2px solid var(--tint,var(--acc-1))}
.spooltags li b{font-weight:500}
.spooltags li span{font-weight:400;font-size:10.5px;color:var(--st-ink-2)}
.spooltags.tight li{flex-direction:row;align-items:baseline;gap:9px;padding:4px 8px 4px 7px}

/* stage 8: the split. Copy in a column on the left, the shop sheet in a frame on the right,
   the still dimmed behind both. */
.stage.split::before{background:linear-gradient(90deg,rgba(12,13,15,.84),rgba(12,13,15,.66) 45%,rgba(12,13,15,.6))}
.stage.split .cap{top:max(14%,calc(var(--nav-h) + 20px));width:calc(28% - var(--gut))}
.stage.split .cap h2{font-size:clamp(34px,4.2vw,84px)}
.stage.split .cap p{max-width:none}
.pitches{list-style:none;margin:clamp(14px,2.4vh,26px) 0 0;padding:0;border-top:1px solid var(--st-line)}
.pitches li{position:relative;padding:9px 0 9px 20px;border-bottom:1px solid var(--st-line);font-size:clamp(14px,1.05vw,17px);line-height:1.35;color:var(--st-ink)}
.pitches li::before{content:"";position:absolute;left:2px;top:calc(9px + .675em - 3px);width:6px;height:6px;background:var(--acc-1);transform:rotate(45deg)}
/* the one contact route, on the sign-off stage */
.cap .cta{display:inline-block;margin-top:clamp(12px,2vh,20px);padding:9px 16px;border-radius:999px;background:var(--pill);color:var(--pill-ink);font:500 clamp(11.5px,.85vw,13px) var(--mono);letter-spacing:.06em;text-decoration:none;white-space:nowrap;transition:background .2s}
.cap .cta:hover{background:var(--acc-1)}
.cap .cta:focus-visible{outline:2px solid var(--acc-1);outline-offset:3px}
.tb-mail a{color:inherit;overflow-wrap:anywhere}
.cap .demo-note{margin-top:clamp(12px,2vh,20px);font:400 clamp(10px,.7vw,11px)/1.6 var(--mono);text-transform:uppercase;letter-spacing:.12em;color:var(--st-ink-3)}
.sheet-frame{position:absolute;left:30%;right:2%;top:max(7%,calc(var(--nav-h) / 2 + 26px));bottom:20%;z-index:3;margin:0;display:flex;flex-direction:column;border:1px solid rgba(243,238,230,.26);border-radius:6px;background:rgba(9,10,13,.88);box-shadow:0 30px 90px rgba(0,0,0,.5);overflow:hidden}
.sheet-bar{flex:none;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px 16px 9px;border-bottom:1px solid var(--st-line)}
.sheet-id{font:400 clamp(10px,.7vw,11px) var(--mono);text-transform:uppercase;letter-spacing:.14em;color:var(--st-ink-3);white-space:nowrap}
.sheet-main{flex:1 1 0;min-height:0;display:flex}
.sheet-plan{flex:1 1 0;min-width:0;display:flex;flex-direction:column;border-right:1px solid var(--st-line)}
.sheet-frame .sheet{flex:1 1 0;min-height:0;width:100%;display:block;padding:clamp(6px,1.2vh,14px) clamp(8px,1vw,16px)}
/* the schedules, filled from the model: every main on the level under the plan, the hangers beside it */
.sched{flex:none;border-collapse:collapse;font:400 clamp(10px,.72vw,11.5px)/1.25 var(--mono);color:var(--st-ink-2);white-space:nowrap}
.sched caption{text-align:left;padding:9px 12px 6px;font-size:clamp(10px,.7vw,11px);text-transform:uppercase;letter-spacing:.14em;color:var(--st-ink-3)}
.sched th{padding:3px 12px 4px;text-align:left;font-weight:400;font-size:clamp(9.5px,.66vw,10.5px);text-transform:uppercase;letter-spacing:.1em;color:var(--st-ink-3);border-bottom:1px solid var(--st-line)}
.sched td{padding:2.5px 12px;border-bottom:1px solid rgba(243,238,230,.07)}
.sched tr:last-child td{border-bottom:0}
.sched .key{font-weight:500;color:var(--st-ink)}
.sched .n{text-align:right;color:var(--st-ink);font-variant-numeric:tabular-nums}
.sched th:last-child{text-align:right}
#run-schedule th:last-child{text-align:left}
#run-schedule{width:100%;border-top:1px solid var(--st-line)}
#hanger-schedule{align-self:flex-start}
/* the run mark is the key to the linework: the colour its line is drawn in */
.sched .key.sa,.sched .key.ra{color:#8fb8e8}
.sched .key.chws,.sched .key.chwr{color:#5fc9c8}
.sched .key.hws,.sched .key.hwr{color:#e0a35c}
.sched .key.cw{color:#7fcf8e}
.sched .key.san{color:#a893e0}
.sched .key.fp{color:#ef6a5e}
.sched .key.el{color:#d8c45a}
.sheet-tb{flex:none;display:grid;grid-template-columns:minmax(0,2.2fr) auto minmax(0,2fr) auto auto;border-top:1px solid var(--st-line);font:400 clamp(11px,.8vw,12.5px)/1.3 var(--mono);color:var(--st-ink-2)}
.sheet-tb div{padding:8px 16px 9px;border-right:1px solid var(--st-line);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* the line that states the check is never cut: it wraps */
.sheet-tb .status{white-space:normal;overflow:visible}
.sheet-tb div:last-child{border-right:0}
.sheet-tb small{display:block;margin-bottom:3px;font-size:clamp(9.5px,.66vw,10.5px);text-transform:uppercase;letter-spacing:.14em;color:var(--st-ink-3)}
.sheet-tb b{font:600 clamp(13px,.95vw,15px) var(--sans);font-variation-settings:"wdth" 110;color:var(--st-ink)}

/* ghost numeral and center mark */
.ghost{position:absolute;left:3%;top:55%;transform:translateY(-50%);z-index:2;pointer-events:none;font:600 55vh/1 var(--sans);font-variation-settings:"wdth" 100;letter-spacing:-.04em;color:transparent;-webkit-text-stroke:1px var(--st-ghost);user-select:none}
.ghost{transition:-webkit-text-stroke-color .4s}
.pin.cap-left .ghost{-webkit-text-stroke-color:rgba(243,238,230,.035)}
.reticle{position:absolute;left:49%;top:46%;width:36px;height:36px;margin:-18px 0 0 -18px;border:1px solid rgba(243,238,230,.3);border-radius:50%;z-index:3;pointer-events:none}
.reticle::before{content:"";position:absolute;inset:-7px;background:linear-gradient(rgba(243,238,230,.3),rgba(243,238,230,.3)) 50% 0/1px 9px no-repeat,linear-gradient(rgba(243,238,230,.3),rgba(243,238,230,.3)) 50% 100%/1px 9px no-repeat,linear-gradient(rgba(243,238,230,.3),rgba(243,238,230,.3)) 0 50%/9px 1px no-repeat,linear-gradient(rgba(243,238,230,.3),rgba(243,238,230,.3)) 100% 50%/9px 1px no-repeat}
.reticle::after{content:"";position:absolute;left:50%;top:50%;width:2px;height:2px;margin:-1px 0 0 -1px;border-radius:50%;background:var(--st-ink)}
.reticle{transition:opacity .4s}
.pin.at-sheet .reticle{opacity:0}

/* HUD strip. Left: the stage readout above the three counters. Center: the rail. Right: the inset. */
#hud{position:absolute;left:0;right:0;bottom:0;min-height:var(--hud-h);padding:0 var(--gut) clamp(12px,1.8vh,18px);display:grid;grid-template-columns:1fr auto 1fr;column-gap:var(--gap);align-items:end;z-index:6}
.hud-left{grid-column:1;display:flex;flex-direction:column;align-items:flex-start}
/* the label rides above the counters whenever the nav cannot carry it (narrow, reduced motion, no JS) */
.hud-demo{display:none;margin:0 0 10px}
.rail-slot{grid-column:2}
.counters{display:flex;gap:clamp(16px,1.8vw,32px);margin:0}
.counters div{display:flex;flex-direction:column;gap:5px}
.counters dt{font:400 clamp(10px,.7vw,11px) var(--mono);text-transform:uppercase;letter-spacing:.15em;color:var(--st-ink-3);white-space:nowrap}
.counters dd{margin:0;font:500 clamp(17px,1.4vw,22px)/1.1 var(--sans);font-variant-numeric:tabular-nums;color:var(--st-ink)}
.counters [data-c="placed"]{min-width:4.2ch}
.counters [data-c="complete"]{min-width:3.4ch}
.counters [data-c="stage"]{min-width:7ch} /* page.js resizes this to the longest stage name */
/* The stage readout: open clashes, coordinated, hangers, hanger conflicts, spools. The row is
   closed until the first of them exists (stage 4), then opens above the counters. It adds no
   width to the left column, so the rail never moves; a cell whose counter does not exist yet
   keeps its place, hidden, so the others never shift. */
.gauges-wrap{display:grid;grid-template-rows:1fr;width:0;min-width:100%;opacity:0;visibility:hidden;transition:grid-template-rows .45s cubic-bezier(.3,.1,.2,1),opacity .35s,visibility 0s .45s}
.gauges-wrap.on{opacity:1;visibility:visible;transition:grid-template-rows .45s cubic-bezier(.3,.1,.2,1),opacity .35s .1s,visibility 0s}
.gauges-clip{min-height:0}
.gauges{width:max-content;padding-bottom:clamp(12px,1.7vh,16px)}
.gauges div{min-width:3.6ch;transition:none}
.gauges .off{visibility:hidden}
.gauges .alert dd{color:var(--clash)}
.gauges dt .s{display:none}
@supports (overflow:clip){
  .gauges-wrap{grid-template-rows:0fr}
  .gauges-wrap.on{grid-template-rows:1fr}
  .gauges-clip{overflow-x:visible;overflow-y:clip}
}
.rail-slot{position:relative;justify-self:center;align-self:end}
.hud-eyebrow{display:none}
/* the fade only exists once the visitor has scrolled: on first paint the rail starts hidden under the
   hint, and a transition there would run 1 to 0 while the page loads */
#rail{list-style:none;margin:0;padding:0;display:flex;gap:clamp(8px,1vw,16px);transition:none}
.rail-slot.scrolled #rail{transition:opacity .6s,visibility .6s}
#rail li{display:block}
#rail button,#rail .soon>span{display:flex;flex-direction:column;align-items:center;gap:7px;background:none;border:0;padding:0;font:500 clamp(10.5px,.72vw,11.5px) var(--mono);text-transform:uppercase;letter-spacing:.05em;color:rgba(243,238,230,.58);cursor:pointer;white-space:nowrap;transition:color .3s}
#rail button:hover{color:var(--st-ink-2)}
#rail i{display:block;width:7px;height:7px;border:1px solid var(--st-line);transform:rotate(45deg);transition:background .3s,border-color .3s}
#rail .on button{color:var(--st-ink)}
#rail .on i{background:var(--acc-1);border-color:var(--acc-1)}
#rail .soon>span{color:rgba(243,238,230,.34);cursor:default}
.scroll-hint{position:absolute;left:50%;bottom:0;transform:translateX(-50%);font:500 clamp(10px,.7vw,11px) var(--mono);text-transform:uppercase;letter-spacing:.18em;color:var(--st-ink-3);white-space:nowrap;opacity:0;transition:opacity .4s;pointer-events:none}
.rail-slot.at-start #rail{opacity:0;visibility:hidden}
.rail-slot.at-start .scroll-hint{opacity:1}

/* plan inset, above the strip at the right. It gives way to the framed sheet on the sheet stage. */
.inset{position:absolute;right:var(--gut);bottom:clamp(12px,1.8vh,18px);width:var(--inset-w);margin:0;z-index:7;display:flex;flex-direction:column;gap:7px}
.pin.at-sheet .inset{opacity:0;pointer-events:none;visibility:hidden}
.inset .sheet{width:100%;aspect-ratio:16/9;display:block;border:1px solid var(--st-line);border-radius:4px;background:rgba(12,13,15,.55)}
.inset figcaption{font:400 clamp(10px,.7vw,11px) var(--mono);text-transform:uppercase;letter-spacing:.12em;color:var(--st-ink-3)}
.layers{display:flex;gap:clamp(10px,1vw,16px)}
.layers button{background:none;border:0;padding:0 0 2px;font:500 clamp(10px,.7vw,11px) var(--mono);text-transform:uppercase;letter-spacing:.1em;color:var(--st-ink-3);cursor:pointer;border-bottom:1px solid transparent;transition:color .2s,border-color .2s}
.layers button[aria-pressed="true"]{color:var(--st-ink);border-bottom-color:var(--acc-1)}
html.js:not(.motion-reduce) .inset{opacity:0;visibility:hidden}
/* the strip reserves the inset's width, so the rail centers between the counters and the plan */
@media (min-width:901px){html.js:not(.motion-reduce) #hud{padding-right:calc(var(--gut) + var(--inset-w) + var(--gap))}}

/* plan linework, drawn on dark */
.sheet path,.sheet rect,.sheet circle{fill:none}
.sheet .grid{stroke:rgba(156,192,230,.45);stroke-width:.6;stroke-dasharray:14 3 2 3}
.sheet .bub{stroke:var(--plan-line);stroke-width:.9}
.sheet .col{fill:var(--plan-line);stroke:none}
.sheet .sys{stroke:var(--plan-line)}
.sheet .edge{stroke-width:1.15}
.sheet .pipe{stroke-width:1.5}
.sheet .joint{stroke-width:1}
.sheet .sa,.sheet .ra{stroke:#8fb8e8}
.sheet .chws,.sheet .chwr{stroke:#5fc9c8}
.sheet .hws,.sheet .hwr{stroke:#e0a35c}
.sheet .cw{stroke:#7fcf8e}
.sheet .san{stroke:#a893e0}
.sheet .fp{stroke:#ef6a5e}
.sheet .el{stroke:#d8c45a}
/* a mechanical sheet: plumbing, fire protection, and tray are background, drawn light */
.sheet .cw,.sheet .san,.sheet .fp,.sheet .el{stroke-opacity:.5;stroke-width:1}
.sheet .equip{stroke:var(--plan-line);stroke-width:1;fill:rgba(156,192,230,.08)}
.sheet .hgr{stroke:var(--acc-1);stroke-width:.8}
.sheet .lead{stroke:var(--plan-line);stroke-width:.6}
.sheet .scale{stroke:rgba(156,192,230,.7);stroke-width:.9}
.sheet .north{fill:rgba(156,192,230,.7);stroke:none}
/* --k is the lettering scale sheet.js draws at (1 on the inset): text only, never linework */
.sheet text{font-family:var(--mono);fill:var(--plan-line);font-size:calc(9.5px * var(--k,1))}
.sheet .bubt{text-anchor:middle;font-size:calc(11px * var(--k,1));font-weight:700}
.sheet .dim{text-anchor:middle;font-size:calc(9px * var(--k,1));fill:rgba(156,192,230,.7)}
.sheet .tag,.sheet .note{paint-order:stroke;stroke:rgba(9,10,13,.9);stroke-width:3px;stroke-linejoin:round}
.sheet .tag{font-weight:700;font-size:calc(10px * var(--k,1))}
.sheet .note{fill:rgba(156,192,230,.78);font-size:calc(9px * var(--k,1))}
.sheet.hide-str .L-str,.sheet.hide-duct .L-duct,.sheet.hide-pipe .L-pipe,.sheet.hide-hgr .L-hgr{visibility:hidden}
/* The draw-on. page.js puts .play on a sheet when it should draw (the inset at load, the framed
   sheet each time its stage arrives) and .wait on the framed sheet while it is off stage. */
@media (prefers-reduced-motion:no-preference){
  html:not(.motion-reduce) .sheet.play path[pathLength]{stroke-dashoffset:1;animation:draw 1.8s .15s cubic-bezier(.3,.1,.2,1) forwards}
  html:not(.motion-reduce) .sheet.play .sys[pathLength]{stroke-dasharray:1;animation-delay:.5s}
  html:not(.motion-reduce) .sheet.play .grid{animation:none;stroke-dashoffset:0}
  html:not(.motion-reduce) .sheet.play .hgr,html:not(.motion-reduce) .sheet.play .joint,html:not(.motion-reduce) .sheet.play .lead,html:not(.motion-reduce) .sheet.play .tag,html:not(.motion-reduce) .sheet.play .note{opacity:0;animation:appear .5s 1.9s forwards}
  html:not(.motion-reduce) .sheet.wait .sys[pathLength]{stroke-dasharray:1;stroke-dashoffset:1}
  html:not(.motion-reduce) .sheet.wait .hgr,html:not(.motion-reduce) .sheet.wait .joint,html:not(.motion-reduce) .sheet.wait .lead,html:not(.motion-reduce) .sheet.wait .tag,html:not(.motion-reduce) .sheet.wait .note{opacity:0}
}
@keyframes draw{to{stroke-dashoffset:0}}
@keyframes appear{to{opacity:1}}

/* static modes: no JS, or reduced motion. The articles stack; the nav rides the top of the
   screen and the HUD the bottom for as long as the reel is in view. */
html:not(.js) .ghost,html:not(.js) .reticle,html.motion-reduce .ghost,html.motion-reduce .reticle{display:none}
/* no JS: nothing is counted and nothing is drawn, so what would hold a count or a drawing is gone
   (the rail slot too: an empty slot left a hairline under the label) */
html:not(.js) .counters,html:not(.js) .gauges-wrap,html:not(.js) .inset,html:not(.js) .rail-slot,html:not(.js) .sheet-frame,html:not(.js) .clashes,html:not(.js) .readout,html:not(.js) #clash-tests{display:none}
/* no JS: the strip is only the label, so the label lives there at every width */
html:not(.js) .hud-demo{display:block}
html:not(.js) .nav-demo{display:none}
/* no JS: the live model never mounts, so the control that would start it stays hidden */
html:not(.js) #viewer-activate,html:not(.js) .pill{display:none}
html:not(.js) .viewer-fallback{display:block}
html:not(.js) .pin,html.motion-reduce .pin{overflow:visible}
html:not(.js) #nav,html.motion-reduce #nav{position:sticky;margin-bottom:calc(-1 * var(--nav-h));background:linear-gradient(180deg,rgba(12,13,15,.9),rgba(12,13,15,.62) 60%,rgba(12,13,15,0))}
html:not(.js) #hud,html.motion-reduce #hud{position:sticky;bottom:0;padding-top:28px;height:auto;background:linear-gradient(180deg,rgba(12,13,15,0),rgba(12,13,15,.82) 45%)}
html:not(.js) #hud{min-height:0}
html:not(.js) .hud-demo{margin-bottom:0}
html:not(.js) .pin::after,html.motion-reduce .pin::after{display:none}
/* each stacked article carries the frame's top and bottom scrims itself. Without JS that goes for
   the last one too: no sheet arrives, so its still is not dimmed for one (the rule under these
   dims it only under reduced motion). */
html:not(.js) .stage::before,html.motion-reduce .stage::before{background:linear-gradient(180deg,rgba(12,13,15,.35),rgba(12,13,15,0) 12%,rgba(12,13,15,0) 70%,rgba(12,13,15,.70) 100%),linear-gradient(90deg,rgba(12,13,15,.45),rgba(12,13,15,0) 42%)}
html:not(.js) .stage.right::before,html.motion-reduce .stage.right::before{background:linear-gradient(180deg,rgba(12,13,15,.35),rgba(12,13,15,0) 12%,rgba(12,13,15,0) 70%,rgba(12,13,15,.70) 100%),linear-gradient(270deg,rgba(12,13,15,.45),rgba(12,13,15,0) 42%)}
html.motion-reduce .stage.split::before{background:linear-gradient(90deg,rgba(12,13,15,.84),rgba(12,13,15,.66) 45%,rgba(12,13,15,.6))}
/* no JS: no sheet takes the right of the last stage, so its copy gets the full caption width */
@media (min-width:901px){html:not(.js) .stage.split .cap{width:min(44vw,720px)}}
html.motion-reduce .inset{position:static;width:var(--inset-w);justify-self:end;grid-column:3;opacity:1}
html.motion-reduce .pin.at-sheet .inset{visibility:hidden}
html.motion-reduce .still{transform:none}
html.motion-reduce .gauges-wrap{transition:none}

/* ------------------------------------------------------------------ the live model */
#controls{background:var(--st-bg);color:var(--st-ink);padding:clamp(56px,8vh,96px) var(--gut) clamp(40px,6vh,72px)}
.controls-head{max-width:720px;margin:0 0 clamp(20px,3vh,32px)}
.controls-head small{display:block;font:500 clamp(11px,.75vw,13px) var(--mono);text-transform:uppercase;letter-spacing:.18em;color:var(--st-ink-3);margin-bottom:14px}
.controls-head h2{margin:0 0 14px;font-weight:500;font-variation-settings:"wdth" 100;font-size:clamp(32px,3.6vw,64px);line-height:1.04;letter-spacing:-.02em}
.controls-head h2 em{font:italic 400 1.08em var(--serif);color:var(--acc-1);background:linear-gradient(100deg,var(--acc-1),var(--acc-2));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;padding-right:.08em}
.controls-head p{margin:0;color:var(--st-ink-2);font-size:clamp(15px,1.15vw,18px);max-width:52ch}
.viewer{position:relative;width:100%;aspect-ratio:16/10;max-height:86vh;background:var(--st-bg);border:1px solid var(--st-line);border-radius:6px;overflow:hidden}
.viewer canvas{position:absolute;inset:0;width:100%;height:100%;display:block;opacity:0;transition:opacity .5s}
.viewer .poster{position:absolute;inset:0;display:block;transition:opacity .5s}
.viewer .poster img{width:100%;height:100%;display:block;object-fit:cover}
#viewer-activate{position:absolute;left:50%;bottom:9%;transform:translateX(-50%);z-index:3;box-shadow:0 8px 30px rgba(0,0,0,.4)}
.viewer[data-state="loading"] #viewer-activate{opacity:.6;pointer-events:none}
.viewer[data-state="live"] canvas,.viewer[data-state="active"] canvas{opacity:1}
.viewer[data-state="live"] .poster,.viewer[data-state="active"] .poster{opacity:0;pointer-events:none}
.viewer[data-state="live"] canvas{cursor:pointer}
.viewer[data-state="active"] canvas{cursor:grab}
.viewer[data-state="active"] canvas:active{cursor:grabbing}
.viewer[data-state="active"] #viewer-activate,.viewer[data-state="nogl"] #viewer-activate{display:none}
.viewer .panel{display:none}
.viewer[data-state="active"] .panel:not([hidden]){display:block}
.viewer-fallback{display:none;position:absolute;left:50%;bottom:9%;transform:translateX(-50%);margin:0;padding:8px 14px;background:rgba(12,13,15,.8);border:1px solid var(--st-line);font:400 13px var(--mono);color:var(--st-ink-2);max-width:min(90%,46ch);text-align:center}
.viewer[data-state="nogl"] .viewer-fallback{display:block}
.panel{position:absolute;left:18px;top:18px;width:250px;padding:16px;background:rgba(12,13,15,.86);border:1px solid var(--st-line);font-size:14px;color:var(--st-ink);z-index:4}
.panel b{font-weight:600}
.panel p{margin:4px 0 12px;color:var(--st-ink-3);font-size:13px}
#filters{display:grid;gap:5px;margin-bottom:14px;font-size:13px}
#filters label{display:flex;align-items:center;gap:7px;cursor:pointer}
#filters i{width:12px;height:12px;display:inline-block}
.panel.props{left:auto;right:18px;width:280px}
.props dl{margin:10px 0 0;display:grid;grid-template-columns:auto 1fr;gap:5px 14px;font-size:13px}
.props dt{color:var(--st-ink-3)}
.props dd{margin:0;font-family:var(--mono);font-size:12px}
#controls .demo{margin:14px 0 0;font:400 clamp(10px,.7vw,11px) var(--mono);text-transform:uppercase;letter-spacing:.14em;color:var(--st-ink-3)}

/* ------------------------------------------------------------------ title block */
.tb{display:grid;grid-template-columns:2.4fr 1fr 1fr 1.1fr .6fr .8fr;border-top:1.5px solid var(--ink);font-size:12px;line-height:1.3;background:var(--sheet);color:var(--ink);position:relative;z-index:1}
.tb div{padding:9px 14px;border-right:.5px solid var(--ink);min-height:54px}
.tb div:last-child{border-right:0}
.tb small{display:block;color:var(--graphite);font-size:10.5px;margin-bottom:4px}
.tb b{font-size:14px;font-weight:700;font-variation-settings:"wdth" 112;display:block}
.stamp{color:var(--rev);font-family:var(--mono);font-size:11px;font-weight:700}

/* ------------------------------------------------------------------ the paper sheet */
.sheet-body{position:relative;background:var(--sheet);border:1.5px solid var(--ink);margin:14px;outline:14px solid var(--sheet)}
.sheet-body::before{content:"";position:absolute;inset:5px;border:.5px solid var(--ink);pointer-events:none}
.sheet-body section{max-width:var(--max);margin:0 auto;padding:clamp(48px,7vw,88px) clamp(20px,5vw,56px);border-bottom:.5px solid var(--line)}
.sheet-body section:last-of-type{border-bottom:0}
.sheet-body section h2{margin:0 0 30px;font-weight:700;font-variation-settings:"wdth" 110;font-size:clamp(24px,3vw,34px);line-height:1.1;letter-spacing:-.02em}
.cols{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2.6fr);gap:40px}
.schedule{width:100%;border-collapse:collapse;border-top:1.5px solid var(--ink)}
.schedule thead th{font:500 11px var(--mono);color:var(--graphite);padding:9px 14px 9px 0;text-align:left;border-bottom:.5px solid var(--ink)}
.schedule tbody th,.schedule tbody td{text-align:left;vertical-align:top;padding:20px 18px 20px 0;border-bottom:.5px solid var(--line)}
.schedule tbody th{width:27%;font-size:clamp(17px,1.7vw,20px);line-height:1.15;letter-spacing:-.01em}
.schedule tbody td{color:var(--graphite);font-size:15.5px}
.schedule .k{font-family:var(--mono);font-size:12px;color:var(--rev);width:44px}
.pains,.terms{list-style:none;margin:0;padding:0;border-top:1.5px solid var(--ink)}
.pains{display:grid;grid-template-columns:1fr 1fr;column-gap:32px}
.pains li,.terms li{padding:16px 0;border-bottom:.5px solid var(--line);color:var(--graphite)}
.pains b,.terms b{color:var(--ink);font-weight:600;display:block;margin-bottom:4px}
.lede{font-size:clamp(18px,1.8vw,22px);line-height:1.45;max-width:48ch;margin:0 0 24px}
.spec{width:100%;border-collapse:collapse;border-top:1.5px solid var(--ink)}
.spec th,.spec td{text-align:left;vertical-align:top;padding:12px 0;border-bottom:.5px solid var(--line);font-size:15.5px}
.spec th{width:130px;font:500 12px/1.8 var(--mono);color:var(--duct);padding-right:16px}
.spec td{color:var(--graphite)}
.readout{display:grid;grid-template-columns:repeat(3,1fr);border-top:1.5px solid var(--ink);border-left:.5px solid var(--line)}
.readout div{padding:16px;border-right:.5px solid var(--line);border-bottom:.5px solid var(--line)}
.readout b{display:block;font-family:var(--mono);font-size:clamp(26px,3.2vw,42px);font-weight:500;letter-spacing:-.03em}
.readout span{font-size:13px;color:var(--graphite)}
.readout i{font-style:normal}
.tests{list-style:none;margin:16px 0 0;padding:0;font-family:var(--mono);font-size:12px;color:var(--graphite);columns:2;column-gap:32px}
.tests li{display:flex;justify-content:space-between;padding:4px 0;border-bottom:.5px solid var(--line-soft);break-inside:avoid}
.scope{margin:18px 0 0;max-width:62ch;font-size:14.5px;line-height:1.5;color:var(--graphite)}
.roles{list-style:none;margin:0;padding:0;border-top:1.5px solid var(--ink)}
.roles li{display:grid;grid-template-columns:6.5em 1fr;gap:16px;padding:12px 0;border-bottom:.5px solid var(--line);font-size:15px}
.roles li span:first-child{color:var(--graphite);font-variant-numeric:tabular-nums}
.roles b{font-weight:600}
.roles em{font-style:normal;color:var(--graphite)}
.sheet-body>.tb{margin:0 5px 5px}

/* ------------------------------------------------------------------ laptops and short windows */
/* below this the nav cannot carry the demonstration label next to the links; the HUD takes it */
@media (max-width:1360px) and (min-width:901px){
  .nav-demo{display:none}
  .hud-demo{display:block}
  :root{--hud-stack:clamp(138px,16.4vh,166px)}
}
/* the rail and the inset share the strip; when the eight labels no longer fit, the rail keeps its
   eight stops as dots and names the active one above them */
@media (max-width:1400px) and (min-width:901px){
  :root{--inset-w:clamp(178px,14vw,220px)}
  /* the four toggles stay inside the smaller inset */
  .inset .layers{gap:6px;justify-content:space-between}
  .inset .layers button{letter-spacing:.04em}
}
@media (max-width:1300px) and (min-width:901px){
  .rail-slot{display:flex;flex-direction:column;align-items:center;gap:9px}
  .hud-eyebrow{display:block;font:500 11px var(--mono);text-transform:uppercase;letter-spacing:.16em;color:var(--st-ink-3)}
  .rail-slot.at-start .hud-eyebrow{opacity:0}
  #rail{gap:10px}
  #rail button span,#rail .soon>span>span{display:none}
}
/* a browser window is shorter than the screen it sits on (1920x937, 1536x730, 1440x789): the
   headline is sized by height as well as width, and the caption rises as the window shortens, so
   its last line stays above the readout and the inset */
@media (min-width:901px){
  .cap h2{font-size:clamp(38px,min(5vw,8.9vh),96px)}
  .cap p{font-size:clamp(15px,min(1.15vw,2vh),18px)}
}
@media (max-height:999px) and (min-width:901px){
  .cap{top:max(calc(var(--nav-h) + 20px),calc(31vh - (1000px - 100vh) * .36))}
  .cap h2{margin:clamp(10px,1.8vh,22px) 0}
}
/* stage 8 carries four pitch lines: below 800 px tall they close up and the demonstration note
   goes (the nav or the readout still carries the label) */
@media (max-height:800px) and (min-width:901px){
  .stage.split .cap p{font-size:14px;line-height:1.45}
  .pitches{margin-top:10px}
  .pitches li{padding-top:5px;padding-bottom:5px;font-size:13px}
  .pitches li::before{top:calc(5px + .65em - 3px)}
  .cap .demo-note{display:none}
}
/* the contact link under the pitches needs the demonstration note's room below 880 px tall, and
   closes up in the shortest windows */
@media (max-height:880px) and (min-width:901px){.cap .demo-note{display:none}}
@media (max-height:700px) and (min-width:901px){.cap .cta{margin-top:8px;padding:6px 14px}.stage.split .cap h2{margin:8px 0}}
/* short windows: the headline rises and the inset shrinks so neither reaches the other */
@media (max-height:700px) and (min-width:901px){
  .cap{top:19%}
  .cap h2{margin:12px 0;font-size:clamp(32px,3.9vw,60px)}
  .cap p{font-size:15px}
  .cap .note{margin-top:10px}
  :root{--inset-w:clamp(178px,14vw,220px)}
  .inset .layers{gap:6px;justify-content:space-between}
  .inset .layers button{letter-spacing:.04em}
  .stage.split .cap{top:calc(var(--nav-h) + 8px)}
  .stage.split .cap h2{font-size:clamp(30px,3.4vw,54px)}
  .stage.split .cap p{font-size:14px;line-height:1.45}
  .pitches{margin-top:10px}
  .pitches li{padding-top:6px;padding-bottom:6px;font-size:13.5px}
  .pitches li::before{top:calc(6px + .675em - 3px)}
  .cap .demo-note{display:none}
  .sheet-frame{bottom:calc(var(--hud-stack) + 14px)}
  .clashes{padding:9px 12px 8px}
  .clashes li{padding:4px 0 5px}
}

/* The run schedule under the plan needs the room: without it the plan takes the frame, and the
   hanger schedule stays beside it. */
@media (max-height:780px) and (min-width:901px),(max-width:1240px) and (min-width:901px){
  #run-schedule{display:none}
}
@media (max-width:1100px) and (min-width:901px){
  .sched{font-size:10px}
  .sched th,.sched td{padding-left:8px;padding-right:8px}
}

/* ------------------------------------------------------------------ phones */
@media (max-width:900px){
  :root{--hud-stack:178px}
  #nav{gap:10px}
  #nav nav,#nav .rule,.tagline,.nav-demo{display:none}
  .pill{margin-left:auto}
  .cap{left:4%;right:4%;top:max(9%,calc(var(--nav-h) + 8px));width:auto;text-align:left}
  /* the copy carries its own scrim on a phone, where the still's busiest part runs behind it */
  .stage:not(.split) .cap::before{content:"";position:absolute;inset:-12px -4.3% -22px;z-index:-1;pointer-events:none;background:linear-gradient(180deg,rgba(12,13,15,.5),rgba(12,13,15,.5) 60%,rgba(12,13,15,0))}
  .cap h2{font-size:34px}
  .cap p{font-size:14px;max-width:30ch}
  .stage.right .cap{left:4%;right:4%;text-align:left}
  .stage.right .cap small{justify-content:flex-start}
  .stage.right .cap small .rule{order:-1}
  .stage.right .cap small,.stage.right .cap h2,.stage.right .cap p{margin-left:0}
  .stage::before,.stage.right::before{background:linear-gradient(180deg,rgba(12,13,15,.55),rgba(12,13,15,0) 46%)}
  .pin::after{background:linear-gradient(180deg,rgba(12,13,15,0) 60%,rgba(12,13,15,.82) 100%)}
  .cap .note{margin-top:12px;font-size:10px;letter-spacing:.1em}
  /* stage 7: the tags on the still say what the figures line would */
  .stage[data-stage="7"] .cap .note{display:none}
  .spooltags li,.spooltags.tight li{flex-direction:row;align-items:baseline;gap:8px;padding:3px 7px 3px 6px;font-size:10.5px}
  .spooltags li span{font-size:10px}
  .ghost,.reticle,.inset{display:none!important}
  #hud{height:auto;min-height:16svh;padding:0 4% 14px;display:flex;flex-direction:column;align-items:stretch;justify-content:flex-end;gap:12px}
  .hud-left{align-items:stretch}
  .hud-demo{display:block;margin-bottom:12px}
  .counters{gap:0;justify-content:space-between;align-items:flex-end}
  .counters div{flex:none}
  .counters dt{white-space:nowrap;letter-spacing:.1em}
  .counters dd{font-size:18px}
  /* the readout keeps four places on a phone: conflicts gives its place to spools on the spool stage */
  .gauges-wrap{width:auto;min-width:0}
  .gauges{width:auto;padding-bottom:12px}
  .gauges dt .l{display:none}
  .gauges dt .s{display:inline}
  .gauges [data-g="spools"]{display:none}
  #hud.is-spools .gauges [data-g="spools"]{display:flex}
  #hud.is-spools .gauges [data-g="hangerConflicts"]{display:none}
  /* stage 4: the list sits across the frame, just above the strip */
  .clashes{left:4%;right:4%;width:auto;bottom:calc(var(--hud-stack) + 10px);padding:9px 12px 8px;font-size:11px;background:rgba(12,13,15,.74)}
  .clashes li{padding:4px 0 5px}
  .clashes-h{padding-bottom:6px}
  .clashes-f{padding-top:6px}
  .clashes-n{display:none}
  /* stage 8 stacks: copy, then the sheet in the room left above the strip */
  .stage.split{display:flex;flex-direction:column;padding:max(9svh,calc(var(--nav-h) + 8px)) 4% calc(var(--hud-stack) + 10px)}
  .stage.split .cap{position:relative;left:auto;right:auto;top:auto;width:auto;flex:none}
  .stage.split .cap h2{font-size:34px}
  .stage.split .cap p{max-width:34ch}
  .pitches{margin-top:12px}
  .pitches li{padding:6px 0 6px 18px;font-size:13.5px}
  .pitches li::before{top:calc(6px + .675em - 3px)}
  .cap .demo-note{display:none}
  .sheet-frame{position:relative;left:auto;right:auto;top:auto;bottom:auto;flex:1 1 0;min-height:0;max-height:300px;margin-top:14px;box-shadow:none}
  .sheet-bar,.sched{display:none}
  .sheet-plan{border-right:0}
  .sheet-frame .sheet{padding:6px}
  .sheet-tb{grid-template-columns:minmax(0,1fr) auto auto;font-size:10.5px}
  .sheet-tb div{padding:5px 9px 6px}
  .sheet-tb small{font-size:9px;letter-spacing:.1em;margin-bottom:2px}
  .sheet-tb b{font-size:12px}
  .sheet-tb .status,.sheet-tb .pts{display:none}
  .rail-slot{width:100%;justify-self:stretch;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--st-line);padding-top:12px}
  .hud-eyebrow{display:block;font:500 11px var(--mono);text-transform:uppercase;letter-spacing:.16em;color:var(--st-ink-3)}
  .scroll-hint{left:auto;right:0;transform:none;bottom:auto}
  .rail-slot.at-start .hud-eyebrow{opacity:1}
  #rail{gap:9px}
  #rail button span,#rail .soon>span>span{display:none}
  #rail i{width:5px;height:5px;transform:none;border-radius:50%}
  /* a dot is small; the button around it is what a thumb hits */
  #rail{gap:0}
  #rail button{padding:12px 7px;margin:-12px 0}
  #controls{padding:48px 4% 32px}
  .viewer{aspect-ratio:4/5;max-height:none}
  /* the live model on a phone: the canvas stays clear. The title and Done ride the top edge, and
     the trades are one row of chips along the bottom that scrolls sideways. */
  .viewer[data-state="active"] #viewer-panel{display:grid;grid-template-columns:1fr auto;grid-template-rows:auto 1fr auto;align-items:start;left:0;right:0;top:0;bottom:0;width:auto;padding:10px;background:none;border:0;pointer-events:none}
  #viewer-panel>b{grid-column:1;grid-row:1;justify-self:start;align-self:center;padding:7px 11px;background:rgba(12,13,15,.86);border:1px solid var(--st-line);font-size:13px;pointer-events:auto}
  #viewer-panel>p{display:none}
  #viewer-release{grid-column:2;grid-row:1;padding:8px 16px;font-size:14px;pointer-events:auto}
  #filters{grid-column:1/-1;grid-row:3;display:flex;gap:6px;margin:0 -10px;padding:0 10px;overflow-x:auto;scrollbar-width:none;pointer-events:auto}
  #filters::-webkit-scrollbar{display:none}
  #filters label{flex:none;padding:7px 11px;background:rgba(12,13,15,.86);border:1px solid var(--st-line);border-radius:999px;white-space:nowrap;font-size:12.5px}
  .panel.props{top:auto;bottom:58px;left:10px;right:10px;width:auto;max-height:42%;overflow:auto;padding:12px 14px}
  .cols{grid-template-columns:1fr;gap:6px}
  .tb{grid-template-columns:1fr 1fr 1fr}
  .tb .wide{grid-column:1/-1;border-right:0;border-bottom:.5px solid var(--ink)}
  .tb div{padding:6px 10px;min-height:0}
  .schedule thead{display:none}
  .schedule,.schedule tbody,.schedule tr,.schedule tbody th,.schedule tbody td{display:block;width:auto}
  .schedule tbody th,.schedule tbody td{padding:4px 0;border:0}
  .schedule tr{padding:14px 0;border-bottom:.5px solid var(--line)}
  .pains{grid-template-columns:1fr}
  .readout{grid-template-columns:1fr 1fr}
  .tests{columns:1}
  .sheet-body{margin:8px;outline-width:8px}
}

/* a short phone (a phone browser with its bars showing): stage 4 lets the list's own heading say
   "first routing", stage 7 gives its copy line's room to the tags on the still, and stage 8
   gives the pitches' room to the sheet (they are the headlines of the stages before it) */
@media (max-width:900px) and (max-height:700px){
  .cap .note.beside-list{display:none}
  .stage[data-stage="7"] .cap p{display:none}
  .pitches{display:none}
}
/* the narrowest phones: the clash list keeps the frame to itself under the headline, and the
   readout labels close up */
@media (max-width:350px){
  .stage[data-stage="4"] .cap p{display:none}
  .gauges dt{letter-spacing:.04em;font-size:9.5px}
  .counters dt{letter-spacing:.06em}
}

@supports selector(label:has(input)){
  @media (max-width:900px){
    #filters label{position:relative}
    #filters input{position:absolute;opacity:0;pointer-events:none}
    #filters label:has(input:not(:checked)){opacity:.5}
    #filters label:has(input:not(:checked)) i{background:none!important;outline:1px solid var(--st-ink-3);outline-offset:-1px}
    #filters label:has(input:focus-visible){outline:2px solid var(--acc-1);outline-offset:2px}
  }
}

/* a phone turned sideways: the headline shrinks, the copy line goes, and the strip packs tight,
   so the still keeps the middle of the frame. After the phone block, which it refines. */
@media (max-width:900px) and (max-height:500px){
  .cap h2{font-size:28px;margin:10px 0}
  .cap p{display:none}
  #hud{min-height:0;gap:8px;padding-bottom:10px}
  .hud-demo{margin-bottom:6px}
  .rail-slot{padding-top:8px}
  :root{--hud-stack:150px}
  .cap .note,.clashes,.pitches,.stage.split .cap p,.sheet-frame{display:none}
  .gauges{padding-bottom:8px}
}
