/* consider.style sections: method (blocking plan), why, cue sheet, updates, proof, install, footer,
   plus night mode ("house lights down"). Loaded after styles.css; overrides its tokens in dark. */

/* ---------- night mode tokens ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #0F0E0C;
  --paper-deep: #181714;
  --ink: #ECE6DA;
  --ink-2: #BDB7AA;
  --ink-3: #928C80;
  --rule: #34312B;
  --btn-bg: #ECE6DA;
  --btn-fg: #0F0E0C;
  --btn-hover: #FFFFFF; --btn-depth: inset 0 1px 0 rgb(255 255 255 / 0.5), 0 1px 1px rgb(0 0 0 / 0.5), 0 4px 10px -3px rgb(0 0 0 / 0.6); --btn-depth-press: inset 0 1px 2px rgb(0 0 0 / 0.3), 0 1px 1px rgb(0 0 0 / 0.4);
  --light: 255 205 130;
  --spot-strength: 1;
  --pool-core: 0.5;
  --pool-mid: 0.22;
  --floor-halo: none;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #0F0E0C;
    --paper-deep: #181714;
    --ink: #ECE6DA;
    --ink-2: #BDB7AA;
    --ink-3: #928C80;
    --rule: #34312B;
    --btn-bg: #ECE6DA;
    --btn-fg: #0F0E0C;
    --btn-hover: #FFFFFF; --btn-depth: inset 0 1px 0 rgb(255 255 255 / 0.5), 0 1px 1px rgb(0 0 0 / 0.5), 0 4px 10px -3px rgb(0 0 0 / 0.6); --btn-depth-press: inset 0 1px 2px rgb(0 0 0 / 0.3), 0 1px 1px rgb(0 0 0 / 0.4);
    --light: 255 205 130;
    --spot-strength: 1;
    --pool-core: 0.5;
    --pool-mid: 0.22;
    --floor-halo: none;
  }
}
:root { --pool-core: 0.85; --pool-mid: 0.4; }

:root[data-theme="dark"] body { background-image: none; background-color: var(--paper); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body { background-image: none; background-color: var(--paper); } }
body { transition: background-color var(--dur-reveal) var(--ease-out), color var(--dur-reveal) var(--ease-out); }

/* hero night plate: an overlay on the stage, no hero markup involved.
   The image is only named once night is in play (theme.js sets night-seen before first paint when the page opens dark),
   so day visitors never fetch it; it stays named after a toggle back to light so the fade-out has something to fade. */
:root { --night-plate: image-set(url("/assets/plates/stage-plate-night-1600.webp") 1x, url("/assets/plates/stage-plate-night.webp") 2x); }
@media (max-width: 760px) { :root { --night-plate: image-set(url("/assets/plates/stage-plate-night-800.webp") 1x, url("/assets/plates/stage-plate-night-1200.webp") 2x, url("/assets/plates/stage-plate-night-1600.webp") 3x); } }
.stage::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: 50% calc(-1 * var(--plate-cut, 0px)) / cover no-repeat;
  opacity: 0; transition: opacity 700ms var(--ease-out);
}
:root.night-seen .stage::before { background-image: var(--night-plate); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage::before { background-image: var(--night-plate); } }
:root[data-theme="dark"] .stage::before { opacity: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stage::before { opacity: 1; } }

/* hero text that styles.css hard-codes for daylight */
:root[data-theme="dark"] .mark-name, :root[data-theme="dark"] .mark-artifact, :root[data-theme="dark"] .hero-sub, :root[data-theme="dark"] .hero-proof { color: var(--ink); }
:root[data-theme="dark"] .follow-spot { mix-blend-mode: screen; }
:root[data-theme="dark"] .mark { padding-block: 0.9rem; margin-block: -0.65rem; }
/* the lit mark reads dark ink on the warm pool, as a real follow-spot does */
:root[data-theme="dark"] .mark.is-lit .mark-name, :root[data-theme="dark"] .mark.is-lit .mark-artifact { color: #1A1A17; }
:root[data-theme="dark"] .mark.is-lit { width: calc(100% + 3.5rem); padding: 1.4rem 1.75rem; margin: -1.15rem -1.75rem; background: radial-gradient(closest-side, rgb(var(--light) / 0.95) 60%, rgb(var(--light) / 0) 100%); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark-name, :root:not([data-theme="light"]) .mark-artifact, :root:not([data-theme="light"]) .hero-sub, :root:not([data-theme="light"]) .hero-proof { color: var(--ink); }
  :root:not([data-theme="light"]) .mark { padding-block: 0.9rem; margin-block: -0.65rem; }
  :root:not([data-theme="light"]) .mark.is-lit .mark-name, :root:not([data-theme="light"]) .mark.is-lit .mark-artifact { color: #1A1A17; }
  :root:not([data-theme="light"]) .mark.is-lit { width: calc(100% + 3.5rem); padding: 1.4rem 1.75rem; margin: -1.15rem -1.75rem; background: radial-gradient(closest-side, rgb(var(--light) / 0.95) 60%, rgb(var(--light) / 0) 100%); }
}

/* ---------- theme toggle ---------- */
.theme-toggle {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem;
  margin-left: -0.5rem; background: none; border: 0; border-radius: 4px; cursor: pointer; color: var(--ink);
  transition: background-color var(--dur-quick) var(--ease-out), transform var(--dur-press) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .theme-toggle:hover { background: rgb(var(--light) / 0.35); } }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle[aria-pressed="true"] svg { transform: scaleX(-1); }
.theme-toggle svg { transition: transform var(--dur-fast) var(--ease-in-out); }

/* ---------- shared section rhythm ---------- */
body.home main > section:not(#hero) { padding-block: clamp(4rem, 9vw, 7.5rem); }
/* display sizes stay below the hero headline, which scales with the stage height */
body.home main > section:not(#hero) h2 { font-weight: 600; font-size: clamp(1.85rem, min(3.6vw, 4.85vh), 3.1rem); line-height: 1.06; max-width: 22ch; }
body.home main > section:not(#hero) + section:not(#hero) { border-top: 1px solid var(--rule); }
.text-link { font: 400 0.9375rem/1.4 var(--font-cue); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 0.3em; transition: text-decoration-color var(--dur-quick) var(--ease-out); display: inline-block; padding-block: 0.4rem; }
.text-link:hover { text-decoration-color: var(--ink); }

/* ---------- #how: the blocking plan ---------- */
.method-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: clamp(2rem, 3.5vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3.5rem); align-items: start; }
.plan { margin: 0; }
.bp-svg { width: 100%; height: auto; overflow: visible; color: var(--ink); }
.bp-stage rect, .bp-prosc { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bp-prosc { stroke: var(--ink-2); }
.bp-seats rect { fill: none; stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bp-audience { font: 400 17px var(--font-cue); letter-spacing: 0.24em; fill: var(--ink-2); }
.bp-route { fill: none; stroke: none; }
.bp-conn { fill: none; stroke: var(--ink-3); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bp-arrowhead { fill: none; stroke: var(--ink-3); stroke-width: 1.2; }
.bp-pool-core { stop-color: rgb(var(--light)); stop-opacity: var(--pool-core); }
.bp-pool-mid { stop-color: rgb(var(--light)); stop-opacity: var(--pool-mid); }
.bp-pool-edge { stop-color: rgb(var(--light)); stop-opacity: 0; }
.bp-pool { pointer-events: none; }

.bp-mark path { fill: none; stroke-width: 5; stroke-linecap: butt; transition: stroke var(--dur-light) var(--ease-out), opacity var(--dur-light) var(--ease-out); }
.bp-mark { cursor: pointer; transition: transform var(--dur-light) var(--ease-out); }
.bp-mark[data-n="1"] path, .bp-mark[data-n="4"] path { stroke: var(--tape-red); }
.bp-mark[data-n="2"] path, .bp-mark[data-n="5"] path { stroke: var(--tape-yellow); }
.bp-mark[data-n="3"] path, .bp-mark[data-n="6"] path { stroke: var(--tape-blue); }
.bp-no-lg { display: none; font: 700 22px var(--font-cue); fill: var(--ink-2); }

.bp-leader { stroke: var(--ink-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bp-label { font: 400 17px var(--font-cue); letter-spacing: 0.12em; fill: var(--ink); }
.bp-no { font-weight: 700; }
.bp-art { font: 400 17px var(--font-cue); fill: var(--ink-2); }

/* JS lights one mark; the rest keep their tape colour but sit in shade */
.plan.is-live .bp-mark:not(.is-active) path { opacity: 0.5; }
.plan.is-live .bp-note { transition: opacity var(--dur-light) var(--ease-out); }
.plan.is-live .bp-note:not(.is-active) .bp-art { fill: var(--ink-3); }
.plan.is-live .bp-note.is-active .bp-label { font-weight: 700; }
.plan.is-live .bp-note.is-active .bp-art { fill: var(--ink); }
.plan.is-live .bp-note.is-active .bp-leader { stroke: var(--ink); }
.plan.is-live .bp-note.is-active .bp-leader,
.plan.is-live .bp-note.is-active text { animation: bp-in var(--dur-reveal) var(--ease-out) both; }
.plan.is-live .bp-note.is-active .bp-label { animation-delay: 55ms; }
.plan.is-live .bp-note.is-active .bp-art { animation-delay: 110ms; }
@keyframes bp-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.plan.is-live .bp-note.is-active .bp-leader { animation-name: bp-line; }
@keyframes bp-line { from { opacity: 0; } to { opacity: 1; } }

/* tab folder: six tabs attached to the card; the active tab shares the card's border and merges into it */
.folder { container-type: inline-size; min-width: 0; }
.folder-bar { display: none; }
.method.is-live .folder-bar { display: flex; align-items: flex-end; gap: 0.5rem; }
.stage-nodes { display: flex; align-items: flex-end; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity;
  padding: 0 0 1px; margin-bottom: -1px; position: relative; z-index: 1; }
.stage-nodes::-webkit-scrollbar { display: none; }
.stage-node {
  position: relative; flex: 1 0 auto; justify-content: center; display: inline-flex; align-items: center; gap: 0.45rem; height: 2.5rem; padding: 0 0.65rem;
  scroll-snap-align: start; background: var(--paper-deep); color: var(--ink-2); cursor: pointer;
  border: 1px solid var(--rule); border-bottom: 0; border-right-width: 0; font: 400 var(--fs-cue)/1 var(--font-cue); white-space: nowrap;
  transition: color var(--dur-quick) var(--ease-out), background-color var(--dur-quick) var(--ease-out);
}
.stage-node:last-child { border-right-width: 1px; }
.stage-node .num { font: 700 var(--fs-cue)/1 var(--font-cue); letter-spacing: 0.04em; }
.stage-node .name { font: inherit; }
@media (hover: hover) and (pointer: fine) { .stage-node:hover { color: var(--ink); } }
.stage-node[aria-selected="true"] {
  height: calc(2.5rem + 1px); background: var(--paper); color: var(--ink); border-color: var(--ink); border-right-width: 1px; margin-inline: -1px 0; z-index: 2;
}
.stage-node[aria-selected="true"]:first-child { margin-left: 0; }
.stage-node:focus-visible { outline-offset: -3px; }
.stage-node[aria-selected="true"]::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--tape-red); }
.stage-node[data-stage="2"][aria-selected="true"]::before, .stage-node[data-stage="5"][aria-selected="true"]::before { background: var(--tape-yellow); }
.stage-node[data-stage="3"][aria-selected="true"]::before, .stage-node[data-stage="6"][aria-selected="true"]::before { background: var(--tape-blue); }
@container (max-width: 33rem) { .stage-node[aria-selected="false"] .name { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

@media (pointer: coarse) { .stage-node { height: 3rem; } .stage-node[aria-selected="true"] { height: calc(3rem + 1px); } }
.folder-foot { display: none; }
.method.is-live .folder-foot { grid-area: 2 / 1; display: flex; align-items: center; justify-content: space-between; margin-top: 1.25rem; padding-top: 0.25rem; border-top: 1px solid var(--rule); }
.folder-count { font: 400 var(--fs-meta)/1 var(--font-cue); color: var(--ink-2); letter-spacing: 0.04em; }
.folder-count b { color: var(--ink); font-weight: 700; }
.folder-step { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 3rem; padding: 0 0.6rem; background: none; border: 0; border-radius: 4px; color: var(--ink); cursor: pointer; font: 400 0.9375rem/1 var(--font-cue); transition: background-color var(--dur-quick) var(--ease-out), transform var(--dur-press) var(--ease-out); }
.folder-step:first-child { margin-left: -0.6rem; } .folder-step:last-child { margin-right: -0.6rem; }
@media (hover: hover) and (pointer: fine) { .folder-step:hover { background: rgb(var(--light) / var(--pool-mid)); } }
.folder-step:active { transform: scale(0.97); }

.stage-cards { margin-top: 1.5rem; display: grid; gap: 2.25rem; }
.method.is-live .stage-cards { margin-top: 0; gap: 0; border: 1px solid var(--ink); background: var(--paper); padding: 1.5rem; }
.method.is-live .stage-card { grid-area: 1 / 1; }
.method.is-live .stage-card.is-off { visibility: hidden; }
.stage-card h3 { font-size: var(--fs-h3); }
.stage-card > p { margin: 0.75rem 0 1.25rem; color: var(--ink-2); max-width: 42ch; }
.stage-card:focus-visible { outline-offset: 6px; }
.artifact { border-top: 1px solid var(--rule); padding-top: 0.9rem; }
.artifact-head { margin: 0 0 0.5rem; font: 700 0.9375rem/1.2 var(--font-cue); }
.artifact-fields { list-style: none; margin: 0; padding: 0; font: 400 0.9375rem/1.5 var(--font-body); color: var(--ink-2); }
.artifact-fields li::before { content: "· "; color: var(--ink-3); }
/* with JS only the active card shows */
.stage-card[data-enter] { animation: card-in var(--dur-fast) var(--ease-out) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(4px); filter: blur(2px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- #why ---------- */
.why-row { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); margin-top: clamp(2rem, 4vw, 3.5rem); }
.why-item { position: relative; z-index: 1; padding: 1.5rem 1.25rem; margin: -1.5rem -1.25rem; border-radius: 4px; outline-offset: 0; }
.why-item h3, .why-item p { transition: color var(--dur-fast) var(--ease-out); }
.why-item h3 { font-size: var(--fs-h3); }
.why-item p { margin: 0.8rem 0 0; color: var(--ink-2); max-width: 36ch; }
.why-pool {
  position: absolute; z-index: 0; top: -1.5rem; bottom: -1.5rem; left: 0; width: 0; opacity: 0; transform: translateX(var(--px, 0px)); pointer-events: none;
  background: radial-gradient(closest-side, rgb(var(--light) / var(--pool-core)), rgb(var(--light) / var(--pool-mid)) 60%, rgb(var(--light) / 0));
  transform-origin: center; border-radius: 50%;
  transition: transform var(--dur-light) var(--ease-in-out), opacity var(--dur-light) var(--ease-out);
}
/* the light comes up quickly and fades slowly; on first light it appears in place instead of sliding in from the edge */
.why-row.has-light .why-pool { opacity: 1; transition-duration: var(--dur-light), var(--dur-fast); }
.why-pool.is-placing { transition: opacity var(--dur-fast) var(--ease-out); }
/* shade by color, not opacity, so dimmed text keeps AA (ink-2 7.2:1, ink-3 5.1:1 on paper; 9.7 / 5.8 at night) */
.why-row.has-light .why-item:not(.is-lit) h3 { color: var(--ink-2); }
.why-row.has-light .why-item:not(.is-lit) p { color: var(--ink-3); }

/* ---------- #commands: cue sheet ---------- */
.cue-sheet { list-style: none; margin: clamp(2rem, 4vw, 3.5rem) 0 0; padding: 0; border-top: 1px solid var(--ink); }
.cue-sheet li { border-bottom: 1px solid var(--rule); }
@property --cue-lit { syntax: "<number>"; inherits: false; initial-value: 0; }
.cue-sheet a {
  display: grid; grid-template-columns: minmax(7rem, 12rem) minmax(0, 1fr) auto; align-items: baseline; gap: 1rem;
  padding: 0.95rem 0.5rem; text-decoration: none;
  /* the row's light fades up fast and down slow (a gradient cannot transition, its strength can) */
  background: linear-gradient(90deg, rgb(var(--light) / calc(var(--pool-mid) * var(--cue-lit))), rgb(var(--light) / 0) 70%);
  transition: --cue-lit 320ms var(--ease-out);
}
.cue-sheet a:focus-visible { --cue-lit: 1; transition-duration: 0s; }
.cmd-name { font: 700 1.0625rem/1.3 var(--font-cue); letter-spacing: 0.02em; }
.cmd-desc { color: var(--ink-2); }
.cmd-arrow { font-family: var(--font-cue); color: var(--ink-3); transition: transform var(--dur-quick) var(--ease-out), color var(--dur-quick) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .cue-sheet a:hover { --cue-lit: 1; transition-duration: var(--dur-quick); }
  .cue-sheet a:hover .cmd-arrow { transform: translateX(4px); color: var(--ink); }
}

/* ---------- #updates ---------- */
.updates-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.updates-wrap p { margin: 0 0 1rem; color: var(--ink-2); max-width: 46ch; }

/* ---------- #proof ---------- */
.proof-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(2rem, 4vw, 3.5rem); border-top: 1px solid var(--ink); }
.proof-figure { padding: 1.75rem clamp(1rem, 2vw, 2rem) 0.5rem 0; }
.proof-figure + .proof-figure { border-left: 1px solid var(--rule); padding-left: clamp(1rem, 2vw, 2rem); }
.proof-figure .value { margin: 0; font: 600 clamp(2.2rem, min(4.4vw, 5.2vh), 3.4rem)/1 var(--font-display); letter-spacing: -0.04em; font-variant-numeric: lining-nums; }
.proof-figure .label { margin: 1rem 0 0.75rem; font: 400 0.9375rem/1.55 var(--font-body); color: var(--ink-2); max-width: 34ch; }
.proof-note { margin: 2.5rem 0 0; max-width: 60ch; color: var(--ink-2); font-size: 0.9375rem; }
.proof-note a { overflow-wrap: anywhere; }

/* ---------- #install ---------- */
.install-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.copy-pill { display: flex; align-items: center; gap: 0.75rem; margin-top: 2rem; padding: 0.5rem 0.5rem 0.5rem 1.1rem; border: 1px solid var(--ink); border-radius: 4px; background: var(--paper-deep); max-width: 100%; }
.copy-pill code:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 2px; }
.copy-pill code { flex: 1; min-width: 0; font: 400 0.9375rem/1.4 var(--font-cue); overflow-x: auto; white-space: nowrap; }
.copy {
  flex: none; display: inline-flex; align-items: center; justify-content: center; gap: 0.4em; min-height: 3rem; padding: 0 1.1rem;
  font: 400 0.9375rem/1 var(--font-cue); background: var(--btn-bg); color: var(--btn-fg); border: 0; border-radius: 3px; cursor: pointer;
  transition: transform var(--dur-press) var(--ease-out), opacity var(--dur-quick) var(--ease-out);
}
.copy:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) { .copy:hover { opacity: 0.88; } }
.copy[data-copy-failed] { background: var(--accent); color: var(--accent-ink); }
.copy { position: relative; }
.copy-label { display: inline-flex; align-items: center; gap: 0.4em; }
.copy-label-out { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.copy-check { flex: none; }
.install-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; margin: 1.25rem 0 0; }
.host-notes { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.host-notes li { padding: 1.1rem 0; border-bottom: 1px solid var(--rule); }
.host-notes h3 { font: 700 var(--fs-meta)/1.3 var(--font-cue); letter-spacing: 0; } /* meta tier: the install pill stays the largest non-heading object in #install */
.host-notes p { margin: 0.35rem 0 0; color: var(--ink-2); font-size: 0.9375rem; }
code { font-family: var(--font-cue); font-size: 1em; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--rule); padding-block: 3rem 3.5rem; font-size: 0.9375rem; }
.site-footer .wrap { display: grid; gap: 1.1rem; }
.footer-tagline { margin: 0; font: 400 var(--fs-meta)/1 var(--font-cue); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-2); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 1.75rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 3rem; font: 400 0.9375rem/1 var(--font-cue); text-underline-offset: 0.3em; text-decoration-color: var(--rule); transition: text-decoration-color var(--dur-quick) var(--ease-out); }
.footer-links a:hover { text-decoration-color: var(--ink); }
.footer-credit { margin: 0; color: var(--ink-2); max-width: 60ch; }
.footer-credit a { display: inline-block; padding-block: 0.7rem; margin-block: -0.7rem; }

/* coffee link: plain outbound link, no widget */
.coffee-link { display: inline-flex; align-items: center; gap: 0.55rem; min-height: 3rem; padding: 0 1rem; border: 1px solid var(--ink); border-radius: 4px; color: var(--ink); text-decoration: none; font: 400 0.9375rem/1 var(--font-cue); transition: background-color var(--dur-quick) var(--ease-out), transform var(--dur-press) var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .coffee-link:hover { background: rgb(var(--light) / 0.4); } }
.coffee-link:active { transform: scale(0.97); }
.coffee-icon { flex: none; }
.coffee-arrow { font-size: 1em; }
.footer-coffee { margin: 0; display: flex; justify-content: center; padding-top: 0.5rem; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .method-grid, .updates-wrap, .install-grid { grid-template-columns: minmax(0, 1fr); }
  .why-row { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .why-pool { display: none; }
  .proof-row { grid-template-columns: minmax(0, 1fr); }
  .proof-figure { padding: 1.5rem 0; }
  .proof-figure + .proof-figure { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
  .proof-figure .label { max-width: 46ch; }
}
@media (max-width: 720px) {
  /* annotation text would shrink below legibility: numbers on the marks, names in the list below */
  .stage-nodes { scroll-snap-type: x mandatory; }
  .bp-notes { display: none; }
  .bp-no-lg { display: block; }
  .bp-audience { font-size: 24px; }
  .cue-sheet a { grid-template-columns: minmax(6rem, 8rem) minmax(0, 1fr); }
  .cmd-arrow { display: none; }
  .copy-pill code { font-size: var(--fs-cue); }
}
@media (max-width: 760px) { .site-nav { gap: 0.75rem; } }

@media (prefers-reduced-motion: reduce) {
  .plan.is-live .bp-note.is-active .bp-leader, .plan.is-live .bp-note.is-active text, .stage-card[data-enter] { animation: none; }
  .stage::before { transition: none; }
}

/* ---------- anchors: programmatic focus on a target stays quiet ---------- */
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }

/* ---------- elastic slider (hero), after Arc's elastic-slider ---------- */
.elastic { position: relative; width: min(24rem, 70vw); height: 2.75rem; touch-action: none; cursor: grab; user-select: none; }
.stage.is-dragging ~ .hero-below .elastic, .elastic:active { cursor: grabbing; }
.elastic .light-slider { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.el-track { position: absolute; left: 0; right: 0; top: 50%; height: 0; }
.el-line, .el-fill { position: absolute; left: 0; width: 100%; transform-origin: 0 50%; }
.el-line { top: -0.5px; height: 1px; background: var(--ink-3); transform: translateX(var(--stretch-x, 0px)) scaleX(var(--stretch, 1)); }
.el-fill { top: -1px; height: 2px; background: var(--ink); transform: scaleX(0.6); }
.el-tick { position: absolute; top: -5px; width: 1px; height: 10px; background: var(--ink-3); }
.el-tick:nth-of-type(1) { left: 0; } .el-tick:nth-of-type(2) { left: 20%; } .el-tick:nth-of-type(3) { left: 40%; }
.el-tick:nth-of-type(4) { left: 60%; } .el-tick:nth-of-type(5) { left: 80%; } .el-tick:nth-of-type(6) { left: 100%; }
.el-thumb { position: absolute; left: -8px; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); transform: translate(60%, -50%); transition: box-shadow var(--dur-quick) var(--ease-out); }
.light-slider:focus-visible ~ .el-track .el-thumb { outline: 2px solid var(--tape-blue); outline-offset: 3px; }
.stage.has-elastic .follow-spot { transition: none; }

/* phones, night: no follow-spot, so unlit labels step down in ink and the lit label (dark on the pool) leads */
@media (max-width: 760px) {
  :root[data-theme="dark"] .mark:not(.is-lit) :is(.mark-name, .mark-artifact) { color: #C9C6BD; }
}
@media (max-width: 760px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark:not(.is-lit) :is(.mark-name, .mark-artifact) { color: #C9C6BD; }
}

/* night, below 1280px: the lit pool stays inside its own grid column (no negative margin, no widening) so it never reaches a
   neighbour's label; above that the column gap is wider than the pool's overhang. The core holds ~55% and falls off to the
   column edge, and the lit label carries a warm halo so its dark ink keeps >= 4.5:1 where the falloff is thin. Unlit night
   labels carry a dark halo at every width so they hold >= 4.5:1 wherever a falloff does land behind them. */
:root[data-theme="dark"] .mark:not(.is-lit) :is(.mark-name, .mark-artifact) { text-shadow: 0 0 3px #000, 0 0 8px rgb(0 0 0 / 0.6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .mark:not(.is-lit) :is(.mark-name, .mark-artifact) { text-shadow: 0 0 3px #000, 0 0 8px rgb(0 0 0 / 0.6); } }
@media (max-width: 1279px) {
  :root[data-theme="dark"] .mark.is-lit { width: 100%; padding: 1.4rem 0; margin: -1.15rem 0; background: radial-gradient(closest-side, rgb(var(--light) / 1) 62%, rgb(var(--light) / 0.75) 85%, rgb(var(--light) / 0) 100%); }
  :root[data-theme="dark"] .mark.is-lit :is(.mark-name, .mark-artifact) { text-shadow: 0 0 4px rgb(var(--light) / 0.95), 0 0 8px rgb(var(--light) / 0.7); }
}
@media (max-width: 1279px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark.is-lit { width: 100%; padding: 1.4rem 0; margin: -1.15rem 0; background: radial-gradient(closest-side, rgb(var(--light) / 1) 62%, rgb(var(--light) / 0.75) 85%, rgb(var(--light) / 0) 100%); }
  :root:not([data-theme="light"]) .mark.is-lit :is(.mark-name, .mark-artifact) { text-shadow: 0 0 4px rgb(var(--light) / 0.95), 0 0 8px rgb(var(--light) / 0.7); }
}
/* tablet and small laptop: a little overhang is safe once the row is widened (styles.css) so no label is wider than its column */
@media (min-width: 761px) and (max-width: 1279px) {
  :root[data-theme="dark"] .mark.is-lit { width: calc(100% + 1rem); margin-inline: -0.5rem; }
}
@media (min-width: 761px) and (max-width: 1279px) and (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mark.is-lit { width: calc(100% + 1rem); margin-inline: -0.5rem; }
}
