/* The chapters. D's grid, type and worlds (base.css / the index's own stylesheet); only
   what a chapter adds is here. Every rule is scoped to main.ch so it can be added to the
   index's document on a page turn without touching the index. Shared chapter parts and
   chapter 01 (Sessions and production) first; chapter 04 (Archiving, main.ch4) at the end. */

/* ---------- cover (paper) ---------- */
.ch .cv { padding-block: clamp(118px, 11vw, 170px) calc(100vw / 24 * 3 + clamp(80px, 8vw, 130px)); }
.ch .cv-grid { align-items: start; }
.ch .cv-lbl { grid-column: 1 / 4; grid-row: 1; }
.ch .cv-no { grid-column: 1 / 4; grid-row: 2; margin-top: clamp(26px, 3vw, 48px); }
.ch .cv-title {
  grid-column: 4 / 13; grid-row: 2; margin: clamp(26px, 3vw, 48px) 0 0;
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%; text-transform: uppercase;
  font-size: clamp(40px, 7.4vw, 140px); line-height: .8; letter-spacing: -.045em;
}
.ch .cv-l { display: block; white-space: nowrap; width: max-content; }
.ch .cv-lede { grid-column: 4 / 10; grid-row: 3; margin: clamp(30px, 3.2vw, 52px) 0 0; font-size: clamp(24px, 2.3vw, 36px); line-height: 1.2; letter-spacing: -.01em; text-wrap: pretty; }
.ch .cv-toc { grid-column: 1 / 4; grid-row: 4; align-self: end; list-style: none; margin: 0 var(--g) 0 0; padding: 0; border-top: 1px solid var(--ink); }
.ch .cv-toc a { display: grid; grid-template-columns: 4.6em 1fr; padding: 10px 0 9px; border-bottom: 1px solid var(--rule); text-decoration: none; transition: padding-left .45s var(--ease); }
.ch .cv-toc a span { color: var(--accent); }
.ch .cv-toc a:hover { padding-left: 10px; }
.ch .cv-plate { grid-column: 4 / 13; grid-row: 4; margin-top: clamp(56px, 6vw, 96px); }
.ch .cv-plate .frame { aspect-ratio: 16 / 9; background: var(--paper); }

/* ---------- section heads (paper): number, then a wide headline on the grid ---------- */
.ch .ch-sec { padding-block: clamp(120px, 11vw, 180px) clamp(130px, 12vw, 200px); }
.ch .sh { align-items: start; margin-bottom: clamp(40px, 4.4vw, 72px); }
.ch .sh .lbl { grid-column: 1 / 4; padding-top: .6em; }
.ch .sh-t { grid-column: 4 / 13; margin: 0; font-family: var(--f-display); font-weight: 800; font-stretch: 125%; text-transform: uppercase; font-size: clamp(38px, 5.4vw, 96px); line-height: .84; letter-spacing: -.045em; text-wrap: balance; }
.ch .sh-cap { grid-column: 4 / 10; margin: clamp(20px, 2vw, 32px) 0 0; font-size: clamp(20px, 1.6vw, 25px); line-height: 1.35; text-wrap: pretty; }

/* ---------- 01.1 Listen (dark room) ---------- */
.ch .ls { --pin: 70svh; }
.ch .ls .stage { --ar: 1; background: #0d0a07; --ps: min(50cqh, 31cqw); --px: calc(100cqw - var(--m) - var(--ps) - 8cqw); --py: calc((100cqh - var(--ps) - 80px) / 2 + 3cqh); }
.ch .ls-back { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; display: block; filter: blur(26px) saturate(1.2); opacity: .6; pointer-events: none; }
.ch .ls .t {
  position: absolute; left: var(--tl, var(--m)); top: var(--ttop); margin: 0; white-space: nowrap; color: var(--bone);
  font-family: var(--f-display); font-weight: 800; font-stretch: 125%; text-transform: uppercase;
  font-size: 14.6cqw; line-height: .8; letter-spacing: -.035em; transform-origin: 5% 10%; opacity: .94;
}
.ch .ls .t .tw { display: inline-block; }
.ch .ls-plate { position: absolute; margin: 0; left: var(--px); top: var(--py); width: var(--ps); transform-origin: 50% 45%; }
.ch .ls-frame { position: relative; aspect-ratio: 1 / 1; background: #000; }
.ch .ls-frame img, .ch .ls-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ch .ls-frame video { opacity: 0; transition: opacity .3s; }
.ch .ls-frame.run video { opacity: 1; }
.ch .ls-wave { height: 30px; margin-top: 12px; }
.ch .ls-wave canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
.ch .ls-plate .cap { margin-top: 8px; }
.ch .ls .scrim {
  background:
    linear-gradient(180deg, #0d0a07 0, rgba(13, 10, 7, .7) 4%, rgba(13, 10, 7, 0) 16%),
    linear-gradient(0deg, #0d0a07 0, rgba(13, 10, 7, .7) 9%, rgba(13, 10, 7, 0) 26%);
}
.ch .ls .reg { top: calc(var(--ttop) - 26px); z-index: 7; }
.ch .ls-panel { gap: 18px; width: min(46ch, 40cqw); }
.ch .ls-h { margin: 0; font-family: var(--f-text); font-weight: 400; font-size: clamp(30px, 2.7vw, 44px); line-height: 1.04; letter-spacing: -.015em; color: var(--bone); }
.ch .ls-panel .prose { color: rgba(232, 230, 225, .86); }
.ch .ls-ctl { display: flex; align-items: center; gap: 18px; }
.ch .snd .lbl-t { display: inline; }
.ch .ls .ls-play, .ch .fac .fac-go { background: var(--bone); color: var(--ink); min-height: 40px; padding: 9px 17px 8px 14px; }
/* the strip takes the foot of the screen while it plays: the room's copy stands clear of it */
html.np-on .ch .ls-panel { bottom: calc(clamp(30px, 7cqh, 72px) + 40px); }
.ch .ls-play:focus-visible, .ch .fac-go:focus-visible { outline-color: var(--bone); }
.ch .ls-what { margin: 0; color: rgba(232, 230, 225, .78); }
.ch .ls-what summary { cursor: pointer; list-style: none; display: inline-flex; gap: 10px; align-items: center; min-height: 32px; }
.ch .ls-what summary::-webkit-details-marker { display: none; }
.ch .ls-what summary::before { content: "+"; font-size: 15px; line-height: 1; transition: transform .35s var(--ease); }
.ch .ls-what[open] summary::before { transform: rotate(45deg); }
.ch .ls-what p { margin: 4px 0 0; font-size: 17px; line-height: 1.4; max-width: 34em; }
.ch .ls-after { margin: 0; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.35; color: var(--bone); opacity: 0; transform: translate3d(0, 8px, 0); transition: opacity .6s var(--ease), transform .6s var(--ease); visibility: hidden; }
.ch .ls-after.on { opacity: 1; transform: none; visibility: visible; }
.ch .ls-after a { white-space: nowrap; text-decoration: none; border-bottom: 1px solid currentColor; margin-left: .4em; }
.ch .ls-after a:hover { border-color: var(--accent); }
.ch .room-lbl b { margin-right: 1.2em; }
.rm .ch .ls .stage { height: 100svh; }

/* ---------- 01.2 rates ---------- */
.ch .rt-wrap { grid-column: 4 / 13; }
.ch .rt { width: 100%; border-collapse: collapse; }
.ch .rt thead th { text-align: left; font-weight: 400; color: var(--ink-soft); padding: 0 0 12px; border-bottom: 1px solid var(--ink); }
.ch .rt th.pr, .ch .rt td.pr { text-align: right; }
.ch .rt tbody th, .ch .rt tbody td { padding: 22px 0 20px; border-bottom: 1px solid var(--rule); vertical-align: baseline; text-align: left; font-weight: 400; }
.ch .rt .svc { width: 33%; padding-right: var(--g); font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: clamp(19px, 1.7vw, 27px); letter-spacing: -.02em; line-height: 1.05; }
.ch .rt .what { padding-right: var(--g); font-size: clamp(17px, 1.3vw, 20px); line-height: 1.38; }
.ch .rt td.pr { white-space: nowrap; }

/* ---------- 01.3 records ---------- */
.ch .recs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ch .rec { border-bottom: 1px solid var(--rule); padding-block: clamp(28px, 3vw, 46px); align-items: start; }
.ch .rec-no { grid-column: 1 / 4; margin: 0; display: grid; gap: 12px; justify-items: start; padding-top: .45em; }
.ch .chip-s { display: inline-block; border: 1px solid var(--ink); padding: 6px 10px 5px; line-height: 1; }
.ch .rec-main { grid-column: 4 / 8; }
.ch .rec-t { margin: 0; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(26px, 2.6vw, 44px); line-height: .92; letter-spacing: -.03em; }
.ch .rec-t cite { font-style: normal; }
.ch .rec-by { margin: 14px 0 0; display: grid; gap: 2px; }
.ch .rec-by span { color: var(--ink-soft); }
.ch .rec-q { grid-column: 8 / 13; padding-left: var(--g); border-left: 1px solid var(--rule); display: grid; gap: 8px; }
.ch .rec-q blockquote { margin: 0; }
.ch .rec-q blockquote p { position: relative; margin: 0; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.38; text-wrap: pretty; }
.ch .rec-q blockquote p::before { content: "\201C"; position: absolute; right: 100%; }
.ch .rec-q blockquote p::after { content: "\201D"; }
.ch .rec-src { margin: 0 0 14px; color: var(--ink-soft); }
.ch .rec-src:last-child { margin-bottom: 0; }
.ch .rec-in { margin: 0; color: var(--ink-soft); }
.ch .rec-fac { grid-column: 8 / 13; }
.ch .rec-note { margin-top: clamp(26px, 2.6vw, 40px); }
.ch .rec-note p { grid-column: 4 / 10; margin: 0; font-size: clamp(18px, 1.35vw, 21px); line-height: 1.42; color: var(--ink-soft); text-wrap: pretty; }

/* ---------- facades: nothing third-party loads until it is pressed ---------- */
.ch .fac { position: relative; margin: 0; }
.ch .fac-box { position: relative; aspect-ratio: 16 / 9; background: var(--ink); color: var(--bone); display: grid; place-items: center; }
.ch .fac-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.ch .fac-t { position: absolute; left: 16px; top: 14px; right: 16px; margin: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; pointer-events: none; }
.ch .fac-t span:first-child { font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(16px, 1.4vw, 22px); letter-spacing: -.02em; line-height: 1; }
.ch .fac-t .mono { color: rgba(232, 230, 225, .6); }
.ch .fac.loaded .fac-t { display: none; }
.ch .fac .tri { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.ch .fac .cap { flex-wrap: wrap; row-gap: 2px; }

/* ---------- 01.5 sketches ---------- */
.ch .sketches { padding-bottom: calc(100vw / 24 * 3 + clamp(110px, 10vw, 170px)); }
.ch .sk { align-items: start; }
.ch .sk-text { grid-column: 4 / 8; display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.ch .sk-text > p:first-child { margin: 0; font-size: clamp(20px, 1.6vw, 25px); line-height: 1.38; text-wrap: pretty; }
.ch .sk-ctl { margin: 0; }
.ch .sk-fac { grid-column: 8 / 13; }
.ch .sk-fac .fac-box { aspect-ratio: auto; height: clamp(260px, 26vw, 400px); }

/* ---------- 01.6 contact (accent) ---------- */
.ch .ch-contact .c-p { grid-column: 1 / 7; }
.ch .cc-go { grid-column: 9 / 13; margin: 0; justify-self: end; align-self: end; }
.ch .cc-go .e-link:hover i { transform: translateX(4px); }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .ch .cv-lede { grid-column: 4 / 12; }
  .ch .rec-main { grid-column: 4 / 8; }
}

/* ---------- phone and portrait: the room re-frames ---------- */
@media (max-width: 760px), (max-aspect-ratio: 4/5) {
  .ch .ls .stage { --ps: min(56cqw, 29cqh); --px: calc((100cqw - var(--ps)) / 2); --py: calc(var(--ttop) + 16cqw); }
  html.np-on .ch .ls-panel { bottom: calc(22px + 56px); }
  .ch .ls .scrim { background: linear-gradient(0deg, #0d0a07 0, rgba(13, 10, 7, .94) 34%, rgba(13, 10, 7, .55) 44%, rgba(13, 10, 7, 0) 56%), linear-gradient(180deg, #0d0a07 0, rgba(13, 10, 7, .5) 7%, rgba(13, 10, 7, 0) 16%); }
  .ch .ls .reg { top: calc(var(--ttop) - 40px); }
  .ch .ls-panel { width: auto; gap: 12px; }
}
@media (max-width: 760px) {
  .ch .cv { padding-block: 96px calc(100vw / 12 * 3 + 64px); }
  .ch .cv-grid, .ch .sh, .ch .rec, .ch .sk, .ch .rec-note { display: flex; flex-direction: column; }
  .ch .cv-no { order: 1; font-size: 84px; margin-top: 22px; }
  .ch .cv-lbl { order: 0; }
  .ch .cv-title { order: 2; margin-top: 14px; font-size: 13.4vw; line-height: .84; }
  .ch .cv-lede { order: 3; margin-top: 26px; font-size: 24px; }
  .ch .cv-plate { order: 4; margin-top: 40px; width: 100%; }
  .ch .cv-toc { order: 5; margin: 40px 0 0; width: 100%; }
  .ch .cv-toc a { min-height: 44px; align-items: center; }
  .ch .ch-sec { padding-block: 92px 104px; }
  .ch .sh { gap: 14px; margin-bottom: 30px; }
  .ch .sh-t { font-size: 11.6vw; line-height: .88; }
  .ch .sh-cap { font-size: 19px; }
  .ch .ls-h { font-size: 27px; }
  .ch .ls .prose { font-size: 16.5px; line-height: 1.38; }
  .ch .ls-what p { font-size: 15.5px; }
  .ch .ls-after { font-size: 16.5px; }
  .ch .rt thead { display: none; }
  .ch .rt, .ch .rt tbody, .ch .rt tr { display: block; width: 100%; }
  .ch .rt tr { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; row-gap: 6px; padding: 18px 0 17px; border-bottom: 1px solid var(--rule); }
  .ch .rt tbody tr:first-child { border-top: 1px solid var(--ink); }
  .ch .rt tbody th, .ch .rt tbody td { display: block; padding: 0; border: 0; width: auto; }
  .ch .rt .svc { grid-column: 1; font-size: 20px; }
  .ch .rt td.pr { grid-column: 2; grid-row: 1; padding-top: .3em; }
  .ch .rt .what { grid-column: 1 / -1; font-size: 17px; padding-right: 0; }
  .ch .rec { gap: 16px; padding-block: 24px; }
  .ch .rec-no { display: flex; justify-content: space-between; align-items: center; padding-top: 0; }
  .ch .rec-q { padding-left: 14px; }
  .ch .rec-q blockquote p { font-size: 18.5px; margin-left: .4em; }
  .ch .sketches { padding-bottom: calc(100vw / 12 * 3 + 84px); }
  .ch .sk { gap: 30px; }
  .ch .sk-text > p:first-child { font-size: 19px; }
  .ch .sk-fac .fac-box { height: 300px; }
  .ch .rec-fac, .ch .sk-fac { width: 100%; }   /* not sized by the caption's length */
  .ch .cc-go { justify-self: start; }
}
/* the room's controls take the pointer (D's hud passes it through to the stage) */
.ch .ls .hud button, .ch .ls .hud details, .ch .ls .hud summary { pointer-events: auto; }

/* =====================================================================
   CHAPTER 04, ARCHIVING (main.ch4)
   ===================================================================== */

/* ---------- cover: the three prints as instant film, one row across the grid, as on the index
   (D's .pols: the cards, their wear and the ?pol variant live in base.css). The contents sit
   beside the lede, so the row has the whole width. ---------- */
.ch4 .cv-toc { grid-row: 3; }
.ch4 .cv-prints { grid-column: 1 / -1; grid-row: 4; margin-top: clamp(72px, 7vw, 120px); }

/* ---------- 04.1 Seneca Falls: raw and restored ---------- */
.ch4 .sn { padding-bottom: calc(100vw / 24 * 3 + clamp(110px, 10vw, 170px)); }
.ch4 .sn-grid { align-items: start; }
.ch4 .sn-ctl { grid-column: 1 / 4; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 34px; }
.ch4 .sn-play { min-height: 40px; padding: 9px 17px 8px 14px; }
.ch4 .sn-ab { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--ink); isolation: isolate; }
.ch4 .sn-v {
  appearance: none; -webkit-appearance: none; margin: 0; border: 0; background: none; cursor: pointer; position: relative; z-index: 1;
  font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--ink); white-space: nowrap;
  min-height: 38px; padding: 8px 15px 7px; border-radius: 999px; -webkit-tap-highlight-color: transparent; transition: color .2s steps(2, end);
}
.ch4 .sn-v[aria-pressed="true"] { color: var(--paper); }
.ch4 .sn-v:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* the knob moves in four steps: the switch speaks D's block language */
.ch4 .sn-knob { position: absolute; z-index: 0; left: 0; top: 0; bottom: 0; width: 50%; border-radius: 999px; background: var(--ink); transition: transform .24s steps(4, end); }
.ch4 .sn-ab[data-mode="restored"] .sn-knob { transform: translateX(100%); }
.ch4 .sn-hint { margin: 0; color: var(--ink-soft); }
.ch4 .sn-tc { color: var(--ink); }
.ch4 .sn-fig { grid-column: 4 / 13; margin: 0; }
.ch4 .sn-st { margin: 0 0 14px; display: flex; justify-content: space-between; align-items: baseline; gap: 4px 18px; flex-wrap: wrap; }
.ch4 .sn-mode::before { content: ""; display: inline-block; width: .7em; height: .7em; margin-right: .7em; background: var(--accent); vertical-align: -.02em; }
.ch4 .sn-floor { color: var(--ink-soft); }
.ch4 .sn-box { position: relative; height: clamp(150px, 15vw, 230px); --bh: clamp(150px, 15vw, 230px); }
.ch4 .sn-box canvas { display: block; width: 100%; height: 100%; cursor: pointer; }
/* one label over the longest pause: the same gap is hiss on the tape and silence once restored */
.ch4 .sn-gap { position: absolute; top: 2px; left: var(--gx, 41.4%); transform: translateX(-50%); white-space: nowrap; color: var(--ink-soft); pointer-events: none; line-height: 1.2; }
.ch4 .sn-gap::after { content: ""; position: absolute; left: 50%; top: calc(100% + 5px); width: 1px; height: calc(var(--bh) / 2 - 52px); background: currentColor; opacity: .6; }
.ch4 .sn-gap-res { display: none; }
.ch4 .sn[data-mode="restored"] .sn-gap-res { display: inline; }
.ch4 .sn[data-mode="restored"] .sn-gap-raw { display: none; }
.ch4 .sn-tx { margin: clamp(28px, 2.8vw, 44px) 0 0; max-width: 34em; }
.ch4 .sn-tx p { margin: 0; font-size: clamp(24px, 2.2vw, 34px); line-height: 1.22; letter-spacing: -.01em; text-wrap: pretty; }
.ch4 .sn-tx p::before { content: "\201C"; }
.ch4 .sn-tx p::after { content: "\201D"; }
.ch4 .sn-tx span { transition: color .3s; }
/* while it plays, the words not yet spoken wait in a lighter ink */
.ch4 .sn.playing .sn-tx span { color: rgba(19, 19, 18, .26); }
.ch4 .sn.playing .sn-tx span.on { color: var(--ink); }
.ch4 .sn-fig .cap2 { margin-top: clamp(22px, 2.2vw, 34px); }

/* ---------- 04.2 Locust Valley Library: the screening room ----------
   Without motion (and before the script runs) it is a grid of stills. The script adds .pin:
   the stage holds still for a short stretch while the strip runs sideways inside it. */
.ch4 .lv { position: relative; background: var(--ink); color: var(--bone); padding-bottom: var(--apron); --apron: calc(100vw / 24 * 3 + 40px); --lvpin: 170svh; }
.ch4 .lv > .stairs { z-index: 30; }
.ch4 .lv-stage { position: relative; padding: clamp(110px, 10vw, 160px) var(--m) clamp(40px, 4vw, 60px); }
.ch4 .lv-back, .ch4 .lv .dust, .ch4 .lv-yr { display: none; }
.ch4 .lv .room-lbl { position: static; }
.ch4 .lv-track { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px var(--g); }
.ch4 .lv-f .plate { margin: 0; }
.ch4 .lv-f .frame { aspect-ratio: 4 / 3; background: #0d0d0c; }
.ch4 .lv .cap2 .l3 { display: block; margin-top: 4px; color: var(--ink-soft); }
.ch4 .lv .cap .res { color: var(--bone); }
.ch4 .lv-panel { position: static; width: auto; max-width: 44ch; margin-top: 56px; }
.ch4 .lv-h { margin: 0; font-family: var(--f-text); font-weight: 400; font-size: clamp(30px, 2.7vw, 44px); line-height: 1.04; letter-spacing: -.015em; color: var(--bone); }
.ch4 .lv-panel .prose { color: rgba(232, 230, 225, .86); }
.ch4 .lv-panel .e-link { margin-top: 4px; }

.ch4 .lv.pin { height: calc(100svh + var(--lvpin) + var(--apron)); }
.ch4 .lv.pin .lv-stage {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; container-type: size; isolation: isolate; padding: 0;
  --fw: min(38cqw, 44cqh * 4 / 3); --fy: 40cqh;
}
.ch4 .lv.pin .lv-back { display: block; position: absolute; left: -8%; top: -8%; width: 116%; height: 116%; filter: blur(34px) saturate(1.15); opacity: .34; pointer-events: none; z-index: 0; }
.ch4 .lv.pin .dust { display: block; z-index: 1; }
.ch4 .lv.pin .reg { top: clamp(66px, 8cqh, 92px); z-index: 3; }
.ch4 .lv.pin .room-lbl { position: absolute; left: var(--m); top: clamp(84px, 11cqh, 118px); z-index: 3; }
.ch4 .lv.pin .lv-yr { display: flex; position: absolute; right: var(--m); bottom: clamp(30px, 7cqh, 72px); margin: 0; flex-direction: column; align-items: flex-end; gap: 12px; z-index: 3; }
.ch4 .lv.pin .lv-year { font-size: clamp(64px, 8.4cqw, 128px); color: var(--bone); }
.ch4 .lv-count { color: var(--ink-soft); }
.ch4 .lv.pin .lv-view { position: absolute; left: 0; right: 0; top: calc(var(--fy) - var(--fw) * .375); z-index: 2; }
.ch4 .lv.pin .lv-track { display: flex; gap: var(--g); margin: 0; width: max-content; will-change: transform; }
.ch4 .lv.pin .lv-f { width: var(--fw); flex: none; }
.ch4 .lv.pin .lv-panel { position: absolute; left: var(--m); bottom: clamp(30px, 7cqh, 72px); width: min(40ch, 28cqw); max-width: none; margin: 0; z-index: 3; }
html.np-on .ch4 .lv.pin .lv-panel, html.np-on .ch4 .lv.pin .lv-yr { bottom: calc(clamp(30px, 7cqh, 72px) + 40px); }
.ch4 .lv.pin .lv-panel a { pointer-events: auto; }

/* ---------- 04.3 what I digitize: numbered rows ---------- */
.ch4 .dg { padding-bottom: calc(100vw / 24 * 3 + clamp(110px, 10vw, 170px)); }
.ch4 .dg-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.ch4 .dg-row { border-bottom: 1px solid var(--rule); padding-block: clamp(20px, 2.1vw, 32px); align-items: baseline; }
.ch4 .dg-no { grid-column: 1 / 4; margin: 0; display: flex; gap: 16px; align-items: baseline; }
.ch4 .dg-t { grid-column: 4 / 8; margin: 0; font-family: var(--f-display); font-stretch: 125%; font-weight: 700; font-size: clamp(20px, 1.8vw, 28px); letter-spacing: -.02em; line-height: 1.05; }
.ch4 .dg-d { grid-column: 8 / 13; margin: 0; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.38; text-wrap: pretty; }
.ch4 .dg-stamp { padding: 5px 9px 4px; }
.ch4 .dg-sh { margin: clamp(84px, 8.4vw, 136px) 0 clamp(26px, 2.6vw, 40px); }
.ch4 .dg-h { grid-column: 4 / 13; margin: 0; font-family: var(--f-display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 3.3vw, 58px); line-height: .9; letter-spacing: -.04em; }
.ch4 .dg-del { grid-column: 4 / 13; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: var(--g); border-top: 1px solid var(--ink); }
.ch4 .dg-del li { padding-top: 16px; }
.ch4 .dg-del p { margin: 0; }
.ch4 .dg-del p + p { margin-top: 10px; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.38; text-wrap: pretty; }
.ch4 .dg-note { margin-top: clamp(64px, 6.4vw, 104px); }
.ch4 .dg-note a { text-decoration: none; border-bottom: 1px solid currentColor; }
.ch4 .dg-note a:hover { border-color: var(--accent); }
/* the rows are set in a stepped wipe as they arrive, and each step of the ledger is stamped */
.ch4.anim .dg-row, .ch4.anim .dg-del li { clip-path: inset(0 100% 0 0); }
.ch4.anim .dg-row.in, .ch4.anim .dg-del li.in { clip-path: inset(0 0 0 0); transition: clip-path .56s steps(7, end); }
.ch4.anim .dg-stamp { opacity: 0; transform: scale(1.3); }
.ch4.anim .in .dg-stamp { opacity: 1; transform: none; transition: opacity 0s .32s, transform .24s steps(3, end) .32s; }

/* ---------- tablet ---------- */
@media (max-width: 1100px) {
  .ch4 .sn-ctl { grid-column: 1 / 4; }
  .ch4 .dg-t { grid-column: 4 / 8; }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  .ch4 .cv-prints { order: 4; width: 100%; margin-top: 44px; }
  .ch4 .sn-grid { display: flex; flex-direction: column; gap: 26px; }
  .ch4 .sn-ctl { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding-top: 0; }
  .ch4 .sn-ab { order: 1; } .ch4 .sn-play { order: 0; } .ch4 .sn-tc { order: 2; } .ch4 .sn-hint { order: 3; flex-basis: 100%; }
  .ch4 .sn-v { min-height: 44px; padding-inline: 13px; }
  .ch4 .sn-play { min-height: 44px; }
  .ch4 .sn-fig { width: 100%; }
  .ch4 .sn-st { flex-direction: column; gap: 2px; }
  .ch4 .sn-box { height: 150px; --bh: 150px; }
  .ch4 .sn-tx p { font-size: 23px; line-height: 1.24; }
  .ch4 .sn-fig .cap2 .l1 { flex-wrap: wrap; }
  .ch4 .sn-fig .cap2 .l1 > span:first-child, .ch4 .sn-fig .cap2 .l2 > span:first-child { flex-basis: 100%; }
  .ch4 .lv { --apron: calc(100vw / 12 * 3 + 32px); --lvpin: 150svh; }
  .ch4 .lv-track { grid-template-columns: minmax(0, 1fr); }
  .ch4 .lv.pin .lv-stage { --fw: min(80cqw, 34cqh * 4 / 3); --fy: 33cqh; }
  .ch4 .lv.pin .room-lbl { top: 78px; }
  .ch4 .lv.pin .lv-yr { top: 66px; bottom: auto; flex-direction: row; align-items: baseline; gap: 12px; }
  .ch4 .lv.pin .lv-year { font-size: 40px; }
  .ch4 .lv.pin .lv-count { display: none; }
  .ch4 .lv.pin .lv-panel { right: var(--m); width: auto; bottom: 26px; }
  html.np-on .ch4 .lv.pin .lv-panel { bottom: calc(26px + 56px); }
  html.np-on .ch4 .lv.pin .lv-yr { bottom: auto; }
  .ch4 .lv-h { font-size: 27px; }
  .ch4 .lv .prose { font-size: 16.5px; line-height: 1.38; }
  .ch4 .lv .cap2 .l1 > span:first-child { min-width: 0; }
  .ch4 .dg-sh { margin: 72px 0 22px; display: block; }
  .ch4 .dg-h { font-size: 9.4vw; line-height: .92; }
  .ch4 .dg-row { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 8px; padding-block: 18px 17px; }
  .ch4 .dg-no, .ch4 .dg-t, .ch4 .dg-d { grid-column: 1; }
  .ch4 .dg-t { font-size: 21px; }
  .ch4 .dg-d { font-size: 17px; }
  .ch4 .dg-del { grid-template-columns: minmax(0, 1fr); row-gap: 18px; border-top: 0; }
  .ch4 .dg-del li { border-top: 1px solid var(--ink); padding-top: 12px; }
  .ch4 .dg-note { display: block; margin-top: 56px; }
}
/* the switch, the play control and the stage's link take the pointer */
.ch4 .sn-ctl button { pointer-events: auto; }
