@font-face { font-family: 'Barlow Semi Condensed'; src: url(vendor/fonts/barlow-semi-condensed-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url(vendor/fonts/barlow-semi-condensed-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Barlow Semi Condensed'; src: url(vendor/fonts/barlow-semi-condensed-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(vendor/fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url(vendor/fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }

:root {
  --paper: #F4F1EA;
  --paper-2: #FBF9F4;
  --ink: #1F3A5F;
  --pale: #DCE6F0;
  --pale-2: #C7D6E5;
  --grey: #8A94A0;
  --orange: #E8641E;
  --hot-ink: #B8440C;
  --sans: 'Barlow Semi Condensed', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --m: 28px;
  --col: 468px;
  --tb: 104px;
  --p: 0;
}

* { box-sizing: border-box; }
html { background: var(--paper); scroll-snap-type: y proximity; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.45 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 1; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
a { color: inherit; }
p, h1, h2, ol, ul { margin: 0; padding: 0; }

.track { position: relative; height: 230vh; }
.snap { position: absolute; left: 0; top: 0; height: 1px; width: 1px; scroll-snap-align: start; }
.snap-end { top: calc(130vh - 0px); }
.stage { position: sticky; top: 0; height: 100svh; min-height: 620px; overflow: hidden; background: var(--paper); }

/* The sheet border with its reference ticks. */
.frame { position: absolute; inset: 12px; border: 1.5px solid var(--ink); pointer-events: none; z-index: 1;
  background:
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12.5%) top left / 100% 7px no-repeat,
    repeating-linear-gradient(90deg, var(--ink) 0 1px, transparent 1px 12.5%) bottom left / 100% 7px no-repeat,
    repeating-linear-gradient(0deg, var(--ink) 0 1px, transparent 1px 25%) top left / 7px 100% no-repeat,
    repeating-linear-gradient(0deg, var(--ink) 0 1px, transparent 1px 25%) top right / 7px 100% no-repeat; }
.progress { position: absolute; left: -1.5px; top: -3px; height: 3px; width: calc(100% + 3px); background: var(--ink); transform-origin: left; transform: scaleX(0); }
.zones { position: absolute; left: 30px; bottom: 22px; z-index: 6; display: flex; gap: 2px; font: 500 12px/1 var(--mono); }
.zones a { text-decoration: none; padding: 7px 9px; background: var(--paper); transition: background .2s, color .2s; }
.zones a:hover { background: var(--pale); }
.zones a.on { background: var(--ink); color: var(--paper); }

.drawing { position: absolute; left: 0; top: 0; width: 960px; height: 760px; transform-origin: 0 0; z-index: 2; user-select: none; -webkit-user-select: none; }
#scene { display: block; width: 100%; height: 100%; overflow: visible; }

/* Line weights and fills of the drawing. */
#scene polygon, #scene path, #scene ellipse, #scene circle { stroke: var(--ink); stroke-width: 1.15; stroke-linejoin: round; }
#scene line, #scene polyline { stroke: var(--ink); fill: none; }
.l { stroke-width: 1.1; }
.l-thin { stroke-width: .65; fill: none; }
.l-floor { stroke: var(--pale-2) !important; stroke-width: 1; }
.l-phantom { fill: none; stroke: var(--grey) !important; stroke-width: 1; stroke-dasharray: 11 4 2 4; }
.l-hot { stroke: var(--orange) !important; stroke-width: 2.2; }
.l-orange-dash { stroke: var(--orange) !important; stroke-width: 1; stroke-dasharray: 3 3; }
.f-paper { fill: var(--paper-2); }
.f-pale { fill: var(--pale); }
.f-pale2 { fill: var(--pale-2); }
.f-ink { fill: var(--ink); }
.f-pale-noline { fill: var(--pale); stroke: none !important; }
.f-hatch { fill: url(#hatch); }
.f-hatch-light { fill: url(#hatch-light); stroke-width: 1.3 !important; }
.f-road { fill: var(--pale); stroke-width: .9 !important; }
.f-open { fill: #fff; }
.f-spine { fill: var(--ink); }
.f-sign { fill: var(--paper-2); stroke: var(--grey) !important; transition: fill .4s; }
.t-floor { font: 600 15px var(--sans); fill: var(--ink); letter-spacing: .02em; }
.t-wall { font: 500 14px var(--sans); fill: var(--ink); }
.t-note { font: 500 12.5px var(--sans); fill: var(--ink); }
.t-elsewhere { font: 600 17px var(--sans); fill: var(--ink); }
.t-dim { font: 400 10.5px var(--mono); fill: var(--ink); }
.t-page { font: 500 9px var(--mono); fill: var(--hot-ink); }
.t-sign { font: 600 7.4px var(--sans); fill: transparent; transition: fill .4s; }
.sign-on .f-sign { fill: var(--orange); stroke: var(--orange) !important; }
.sign-on .t-sign { fill: #fff; }

#outside { transition: opacity .7s; }
#net-lines, #cloud { transition: opacity .7s, filter .7s; }
.offline #net-lines { opacity: .1; }
.offline #cloud { opacity: .14; }

.book { transition: transform .38s cubic-bezier(.2,.7,.2,1); }
.book.out { transform: translate(-30px, 17px); }
.book.out .f-spine { fill: var(--orange); }
#book-service .f-spine { transition: fill .3s; }
.rev-b #book-service .f-spine { fill: var(--ink); }
.shelf-hot #shelf polygon { stroke: var(--orange); }
.module { transition: transform .5s cubic-bezier(.3,.7,.2,1), opacity .35s; }
.module.out { transform: translate(-34px, 20px); opacity: 0; }
.lamp-glow { fill: var(--orange); fill-opacity: 0; stroke: none !important; transition: fill-opacity .4s; }
.lamp-on .lamp-glow { fill-opacity: .32; }
.lamp-on #lamp-shade { fill: var(--orange); }
.openbook { opacity: 0; transform: translateY(8px); transition: opacity .25s, transform .3s; pointer-events: none; }
.openbook.on { opacity: 1; transform: none; }

#routes { transition: opacity .4s; }
#routes.fading { opacity: 0; }
.route, .route-out { fill: none; stroke: var(--orange) !important; stroke-width: 2.4 !important; stroke-dasharray: 7 5; }
.route-out { stroke: var(--ink) !important; stroke-width: 1.6 !important; stroke-dasharray: 3 4; }
.route-mask { fill: none; stroke: #fff !important; stroke-width: 12 !important; }
.head-dot { fill: var(--orange); stroke: var(--paper-2) !important; stroke-width: 1.5 !important; }
.head-halo { fill: var(--orange); fill-opacity: .2; stroke: none !important; }
.head-out .head-dot { fill: var(--ink); }
.head-out .head-halo { fill: var(--ink); }
.tag-box { fill: var(--orange); stroke: none !important; }
.tag-text { font: 500 11px var(--mono); fill: #fff; }
.head-out .tag-box { fill: var(--ink); }

/* Plotted in, line by line. Timers lift the class, so nothing depends on a frame running. */
.plotting .plot polygon, .plotting .plot path, .plotting .plot line, .plotting .plot polyline, .plotting .plot circle, .plotting .plot ellipse {
  stroke-dasharray: 1; animation: plot .85s cubic-bezier(.4,.1,.3,1) both, fill-in .5s .45s both; }
.plotting .plot text { animation: fill-in .4s .6s both; }
@keyframes plot { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fill-in { from { fill-opacity: 0; } to { fill-opacity: 1; } }

/* Opening copy. */
.compare { position: absolute; left: 44px; top: 44px; width: min(760px, 60vw); z-index: 5; pointer-events: none; opacity: 0; transition: opacity .25s; }
.compare.on { opacity: 1; }
.compare-label { font: 600 clamp(32px, 3.6vw, 52px)/1.05 var(--sans); letter-spacing: -.012em; }
.compare-line { margin-top: 14px; font-size: 21px; line-height: 1.3; max-width: 26em; min-height: 1.3em; }
.skip { position: absolute; right: 30px; top: 28px; z-index: 7; font: 500 13px/1 var(--mono); padding: 8px 12px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--ink); transition: opacity .25s, background .15s; }
.skip:hover { background: var(--pale); }
.skip[hidden] { display: none; }

.hero { position: absolute; left: 44px; top: 42px; z-index: 4; right: 44px; pointer-events: none;
  opacity: calc(1 - var(--p) * 2.6); transform: translateY(calc(var(--p) * -46px)); }
.hero > * { transition: opacity .45s, transform .55s cubic-bezier(.2,.7,.2,1); }
.hero.wait > * { opacity: 0; transform: translateY(14px); }
.hero .sub { transition-delay: .12s; } .hero .cta { transition-delay: .2s; }
.eyebrow { font: 600 15px/1 var(--sans); font-variant-caps: all-small-caps; letter-spacing: .09em; }
.hero h1 { margin-top: 12px; font: 600 clamp(38px, 4.6vw, 70px)/1.03 var(--sans); letter-spacing: -.015em; }
.sub { margin-top: 18px; max-width: 19em; font-size: 20px; line-height: 1.32; }
.cta { pointer-events: auto; display: inline-block; margin-top: 18px; padding: 13px 20px 14px; background: var(--ink); color: var(--paper); font: 600 18px/1 var(--sans); text-decoration: none; transition: background .15s, transform .12s; }
.cta:hover { background: var(--orange); }
.cta:active { transform: translateY(1px); }

/* Detail A: the physical panel. */
.detail { user-select: none; -webkit-user-select: none; position: absolute; z-index: 4; right: calc(var(--m) + var(--col) + 14px); bottom: 52px; width: 412px;
  opacity: clamp(0, calc((var(--p) - .55) * 3.2), 1); transform: translateY(calc((1 - var(--p)) * 60px)); }
.detail-head { display: flex; align-items: center; gap: 7px; font: 600 14px/1.1 var(--sans); margin-bottom: 7px; }
.detail-head .mono { margin-left: auto; font-size: 11px; font-weight: 400; }
.balloon { display: inline-grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; box-shadow: inset 0 0 0 1.3px var(--ink); font: 500 11px var(--mono); }
.plate { display: grid; grid-template-columns: 76px 116px 1fr; gap: 12px; padding: 11px 13px 12px; background: var(--pale); box-shadow: inset 0 0 0 1.5px var(--ink), inset 0 0 0 5px var(--pale), inset 0 0 0 5.8px var(--ink); }
.ctl { display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; }
.ctl-name { font: 600 14px/1.1 var(--sans); margin-top: 6px; }
.ctl-state { font-size: 11px; line-height: 1.3; }
.ctl-line { font-size: 12.5px; line-height: 1.15; min-height: 2.3em; margin-top: 1px; }

.toggle { width: 54px; height: 82px; display: block; transition: transform .1s; }
.toggle svg { width: 100%; height: 100%; display: block; }
.tg-plate { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.5; }
.tg-screw { fill: var(--pale); stroke: var(--ink); stroke-width: 1; }
.tg-slot { fill: var(--ink); }
.tg-lever { transition: transform .16s cubic-bezier(.4,1.6,.5,1); }
.tg-arm { fill: var(--pale-2); stroke: var(--ink); stroke-width: 1.2; }
.tg-cap { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.toggle[aria-checked='false'] .tg-lever { transform: translateY(38px); }
.toggle[aria-checked='false'] .tg-arm { transform: translateY(-10px); }

.knob-wrap { display: flex; align-items: center; gap: 3px; }
.knob { width: 82px; height: 82px; touch-action: none; }
.knob svg { width: 100%; height: 100%; display: block; }
.knob-mark { font-size: 12px; font-weight: 500; opacity: .45; transition: opacity .2s; }
.knob-mark.on { opacity: 1; }
.kn-body { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.5; }
.kn-inner { fill: var(--pale); stroke: var(--ink); stroke-width: 1; }
.kn-pointer { fill: var(--ink); }
#knob-teeth rect { fill: var(--ink); }
.knob svg { transform: rotate(-50deg); transition: transform .36s cubic-bezier(.3,1.5,.5,1); }
.knob[aria-valuenow='1'] svg { transform: rotate(50deg); }

.ctl-drawers { align-items: stretch; gap: 5px; min-width: 0; }
.drawer { height: 42px; background: var(--ink); padding: 3px; }
.drawer-face { position: relative; height: 100%; display: flex; align-items: center; gap: 6px; padding: 0 5px 0 15px; background: var(--paper-2); transition: transform .25s; }
.drawer-pull { position: absolute; left: 5px; top: 50%; width: 5px; height: 17px; margin-top: -8.5px; background: var(--ink); }
.drawer-name { font: 500 12.5px/1 var(--sans); flex: 1; min-width: 0; text-align: left; }
.drawer.open .drawer-face { transform: translateX(-3px); }
.manual { display: flex; flex-direction: column; justify-content: center; width: 50px; height: 30px; padding: 0 5px; text-align: left; color: var(--paper); background: var(--ink); font: 500 8.5px/1.15 var(--mono); touch-action: none; transition: transform .14s; }
.manual b { font: 500 10.5px/1.1 var(--mono); }
button.manual:hover { transform: translateY(-2px); }
.manual.gone { visibility: hidden; }
.manual-old { background: var(--grey); }
.manual[hidden] { display: none; }
.publish { padding: 6px 8px 7px; background: var(--ink); color: var(--paper); font: 600 14px/1.1 var(--sans); transition: background .15s, transform .1s; }
.publish:hover:not(:disabled) { background: var(--orange); }
.publish:active:not(:disabled) { transform: translateY(1px); }
.publish:disabled { background: var(--pale-2); color: var(--ink); }
.ghost { position: fixed; left: 0; top: 0; z-index: 30; pointer-events: none; margin: 0; }

/* The assistant. */
.assistant { position: absolute; z-index: 5; right: var(--m); top: var(--m); bottom: calc(var(--m) + var(--tb) + 8px); width: var(--col);
  display: flex; flex-direction: column; background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--ink);
  opacity: clamp(0, calc((var(--p) - .35) * 3), 1); transform: translateX(calc((1 - var(--p)) * 72px)); }
.as-head { display: flex; align-items: center; gap: 8px; padding: 9px 13px; background: var(--pale); box-shadow: inset 0 0 0 1.5px var(--ink); flex: none; }
.as-head svg { width: 25px; height: 25px; flex: none; }
.ic-book { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.ic-light { stroke: var(--orange); stroke-width: 1.8; }
.as-head h2 { font: 600 19px/1 var(--sans); }
.as-state { margin-left: auto; font-size: 11.5px; }
.chips { flex: none; display: flex; flex-wrap: wrap; gap: 5px; padding: 10px 13px 8px; }
.chip { padding: 5px 9px 6px; font: 500 14.5px/1.12 var(--sans); text-align: left; background: var(--pale); transition: background .14s, color .14s, transform .1s; }
.chip:hover { background: var(--ink); color: var(--paper); }
.chip:active { transform: translateY(1px); }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.chips.busy .chip { opacity: .55; }
.talk { flex: 0 1 auto; min-height: 56px; overflow-y: auto; overscroll-behavior: contain; padding: 4px 13px 8px; font-size: 16.5px; line-height: 1.34; }
.hello { color: var(--ink); }
.q { font-weight: 600; margin-bottom: 3px; }
.a { min-height: 1.3em; }
.status { font: 400 13px/1.4 var(--mono); }
.src { display: inline; padding: 0 2px; font: 500 12px/1.3 var(--mono); color: var(--hot-ink); white-space: normal; text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.src:hover { background: var(--orange); color: #fff; }
.src.none { color: var(--ink); text-decoration: none; }
.updated { font-weight: 600; }
.mark { display: inline-block; margin-left: 4px; padding: 1px 4px; background: var(--orange); color: #fff; font: 500 10.5px/1.2 var(--mono); vertical-align: 1px; }
.person-btn, .send-btn { display: inline-block; margin-top: 8px; padding: 7px 12px 8px; background: var(--ink); color: var(--paper); font: 600 15.5px/1 var(--sans); transition: background .15s; }
.person-btn:hover, .send-btn:hover { background: var(--orange); }
.card { margin-top: 8px; padding: 9px 11px 11px; background: var(--pale); }
.card small { display: block; font: 400 11px/1.3 var(--mono); }
.card p { margin-top: 3px; }
.card .quiet { margin-top: 8px; font-size: 13px; line-height: 1.3; }

/* A spread of the manual, with the source line in orange. */
.spread { flex: none; margin: 2px 13px 8px; display: grid; grid-template-columns: 112px 1fr; background: #fff; box-shadow: inset 0 0 0 1px var(--ink); animation: open .3s both; }
.spread[hidden] { display: none; }
.spread svg { width: 100%; height: 100%; max-height: 128px; display: block; }
.spread-page { padding: 7px 10px 8px; box-shadow: inset 1px 0 0 var(--ink); min-width: 0; }
.spread-top { display: flex; justify-content: space-between; gap: 8px; font: 400 10.5px/1.3 var(--mono); }
.spread-text { margin-top: 4px; font-size: 15.5px; line-height: 1.28; }
.spread-text mark { background: none; color: inherit; box-shadow: inset 0 -1.5em 0 0 rgba(232,100,30,.22), inset 0 -2px 0 0 var(--orange); }
.spread-tabs { display: flex; gap: 3px; grid-column: 1 / -1; padding: 3px 5px; box-shadow: inset 0 1px 0 var(--ink); }
.spread-tabs button { font: 500 11px/1 var(--mono); padding: 3px 6px; }
.spread-tabs button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.prices { display: grid; grid-template-columns: 1fr auto; gap: 1px 14px; margin-top: 3px; font: 400 13px/1.35 var(--mono); }
.spread.off .prices { opacity: .4; }
@keyframes open { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ask { flex: none; display: flex; margin: auto 13px 0; box-shadow: inset 0 0 0 1.4px var(--ink); background: #fff; }
.ask input { flex: 1; min-width: 0; padding: 8px 10px; border: 0; background: none; outline: 0; font-size: 16px; }
.ask:focus-within { box-shadow: inset 0 0 0 2px var(--orange); }
.ask input::placeholder { color: var(--ink); opacity: .62; }
.ask button { padding: 0 16px; background: var(--ink); color: var(--paper); font-weight: 600; transition: background .15s; }
.ask button:hover { background: var(--orange); }
.stays { flex: none; padding: 4px 13px 7px; font-size: 13.5px; line-height: 1.2; }
.features { flex: none; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px 13px 7px; background: var(--pale); font-size: 12.5px; line-height: 1.12; transition: opacity .4s; }
.features li { display: flex; gap: 6px; align-items: baseline; transition: opacity .4s; }
.dot { flex: none; width: 7px; height: 7px; background: var(--ink); transform: translateY(-1px); transition: background .3s; }
.features.off { background: var(--paper); }
.features.off li { opacity: .5; text-decoration: line-through; text-decoration-thickness: 1px; }
.features.off .dot { background: var(--grey); }

/* The title block, in the corner of the sheet where it belongs. */
.titleblock { position: absolute; z-index: 5; right: var(--m); bottom: var(--m); width: var(--col); height: var(--tb);
  display: grid; grid-template-columns: 1.55fr .85fr .5fr .32fr; grid-template-rows: 52px 1fr; background: var(--paper-2); box-shadow: inset 0 0 0 1.5px var(--ink); }
.tb-cell { padding: 4px 7px; box-shadow: inset -.75px -.75px 0 var(--ink); min-width: 0; line-height: 1.12; }
.tb-cell small { display: block; font: 400 10.5px/1.2 var(--mono); }
.tb-cell b { font-weight: 500; font-size: 13.5px; }
.tb-title b { display: block; font: 600 15.5px/1.1 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-title span { font-size: 12px; }
.tb-rev b { font-size: 21px; line-height: 1.2; }
.tb-rev.hit b { color: var(--hot-ink); }
.tb-log { grid-column: 1 / 3; display: flex; flex-direction: column; overflow: hidden; }
.tb-log ol { list-style: none; font-size: 11px; line-height: 1.24; }
.tb-log li:not(:first-child) { opacity: .58; }
.tb-tools { grid-column: 3 / 5; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 3px 5px; }
.tb-tools button { font: 500 11px/1.1 var(--mono); text-align: left; padding: 3px 4px; transition: background .14s; }
.tb-tools button:hover { background: var(--pale); }
.tb-tools button[aria-checked='true'] { background: var(--ink); color: var(--paper); }

.notes { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: end; padding: 40px var(--m) 26px; background: var(--paper); }
.notes-field { max-width: 720px; padding: 10px 14px 13px; box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--paper-2); }
.notes-field small { display: block; font: 400 11px/1.3 var(--mono); }
.notes-field p { font-size: 21px; line-height: 1.25; margin-top: 3px; }
.credit { font-size: 15px; }
.credit a { text-underline-offset: 3px; }
.credit a:hover { color: var(--hot-ink); }

/* Pointer. */
.cross, .hand { position: fixed; left: 0; top: 0; z-index: 40; pointer-events: none; display: none; }
.pointer-fine .cross { display: block; opacity: 0; transition: opacity .12s; }
.cross.on { opacity: 1 !important; }
.cross i { position: absolute; background: var(--ink); }
.cross i:nth-child(1) { left: -46px; width: 92px; top: -.25px; height: .6px; }
.cross i:nth-child(2) { top: -46px; height: 92px; left: -.25px; width: .6px; }
.cross .ring { position: absolute; left: -7px; top: -7px; width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 1px var(--orange); transform: scale(.3); opacity: 0; transition: transform .15s, opacity .15s; }
.cross.hot .ring { transform: scale(1.5); opacity: 1; }
.cross span { position: absolute; left: 9px; top: 7px; font-size: 10px; white-space: nowrap; background: var(--paper); padding: 0 3px; }
.hand { width: 30px; height: 30px; margin: -5px 0 0 -12px; }
.pointer-fine .hand { display: block; opacity: 0; transition: opacity .1s; }
.hand.on { opacity: 1 !important; }
.hand path { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.hand.grab { transform-origin: 50% 60%; scale: .9; }
.hand.grab path { fill: var(--pale); }
.pointer-fine .drawing, .pointer-fine .detail, .pointer-fine .detail * { cursor: none; }

@media (max-width: 1340px) {
  :root { --col: 420px; }
}
@media (max-width: 1180px) {
  :root { --col: 400px; }
  .detail { width: 360px; right: calc(var(--m) + var(--col) + 10px); }
  .plate { grid-template-columns: 62px 100px 1fr; gap: 8px; padding: 9px; }
  .manual { width: 44px; }
}

/* Short laptop screens: the chips and the block tighten up. */
@media (max-height: 780px) and (min-width: 821px) {
  :root { --tb: 88px; }
  .titleblock { grid-template-rows: 44px 1fr; }
  .tb-log li:nth-child(n+2) { display: none; }
  .chip { font-size: 13.5px; padding: 4px 7px; }
  .chips { padding: 7px 13px 5px; gap: 4px; }
  .features { display: none; }
  .ctl-line { min-height: 0; font-size: 11.5px; }
  .plate { padding-block: 8px; grid-template-columns: 58px 108px 1fr; }
  .toggle { width: 42px; height: 62px; }
  .knob { width: 62px; height: 62px; }
  .ctl-name { margin-top: 3px; font-size: 13px; }
  .drawer { height: 35px; }
  .manual { height: 25px; }
  .publish { padding: 4px 6px 5px; }
  .ctl-drawers { gap: 4px; }
  .detail { bottom: 26px; }
  .detail-head { margin-bottom: 4px; }
  .tb-title span { display: none; }
}

/* Phone and small tablet: its own composition, the drawing sticks above the tool. */
@media (max-width: 820px) {
  :root { --m: 16px; }
  html { scroll-snap-type: none; }
  .track { height: auto; }
  .snap { display: none; }
  .stage { position: static; height: auto; min-height: 0; overflow: visible; display: flex; flex-direction: column; padding: 0 16px 16px; }
  .frame, .zones { display: none; }
  .hero { position: static; order: 1; opacity: 1; transform: none; padding-top: 22px; }
  .hero.wait > * { opacity: 1; transform: none; }
  .hero h1 { font-size: clamp(20px, 6.05vw, 44px); line-height: 1.1; }
  .sub { font-size: 18px; max-width: none; }
  .cta { display: none; }
  .compare { left: 16px; top: 8px; width: 62%; }
  .compare-label { font-size: 20px; }
  .compare-line { margin-top: 4px; font-size: 14px; line-height: 1.2; }
  .skip { display: none; }
  .drawing { position: sticky; top: 0; order: 2; width: calc(100vw) !important; height: calc(100vw * .79) !important; margin: 14px -16px 8px; transform: none !important; background: var(--paper); z-index: 8; box-shadow: 0 1px 0 var(--ink); }
  .detail { position: static; order: 3; width: 100%; opacity: 1; transform: none; margin-top: 8px; }
  .plate { grid-template-columns: 64px 100px 1fr; }
  .assistant { position: static; order: 4; width: 100%; opacity: 1; transform: none; margin-top: 16px; }
  .talk { min-height: 96px; max-height: none; overflow: visible; }
  .chip { font-size: 15.5px; padding: 8px 10px; }
  .ask input { padding: 12px; }
  .titleblock { position: static; order: 5; width: 100%; margin-top: 14px; }
  .notes { grid-template-columns: 1fr; padding: 6px 16px 24px; }
  #revb { pointer-events: none; }
}
@media (max-width: 400px) {
  .plate { grid-template-columns: 58px 92px 1fr; gap: 8px; padding: 9px; }
  .knob { width: 70px; height: 70px; }
  .manual { width: 42px; }
  .drawer-name { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .compare, .skip, .snap { display: none; }
}
/* Reduced motion on a large screen: nothing moves on scroll, so the sheet is laid out whole. */
@media (prefers-reduced-motion: reduce) and (min-width: 821px) {
  .track { height: auto; }
  .stage { position: relative; height: auto; overflow: visible; display: grid; grid-template-columns: minmax(0, 1fr) var(--col); gap: 16px 24px; padding: 32px var(--m) 32px; }
  .hero { position: static; grid-column: 1 / -1; opacity: 1; transform: none; visibility: visible !important; }
  .drawing { position: relative; grid-column: 1; grid-row: 2; width: 100% !important; height: auto !important; aspect-ratio: 960 / 760; transform: none !important; }
  .assistant { position: static; grid-column: 2; grid-row: 2 / span 2; opacity: 1; transform: none; width: auto; min-height: 640px; }
  .detail { position: static; grid-column: 1; grid-row: 3; opacity: 1; transform: none; }
  .titleblock { position: static; grid-column: 2; width: auto; }
  .zones { display: none; }
}
