/* ============================================================================
   PART TWO - components added during the build, plus the nav offset fix that
   the previous attempt got wrong.
   ========================================================================= */

/* THE NAV OFFSET FIX. --nav-h is remeasured if the island ever changes height.
   Every anchor target clears the island. This is the exact bug that broke the
   previous build. */
#page > section { scroll-margin-top: calc(var(--nav-h) + 26px); }
#converge, #cta { scroll-margin-top: calc(var(--nav-h) + 26px); }
#page { padding-bottom: 110px; }
@media (max-width: 900px) {
  #page > section { scroll-margin-top: 20px; }
  #page { padding-bottom: 150px; }
}

/* --- Nav strips: the island accretes control, then hands it back ---------- */
#strips { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
#strips.gone { opacity: 0; transform: translateX(10px); width: 0; overflow: hidden; }
.strip {
  display: flex; gap: 3px; align-items: center;
  padding: 6px 8px; border-radius: var(--corner-surface);
  border: 1px solid var(--hairline-soft);
  opacity: 0.34;
  transition: opacity 0.5s var(--ease-out), border-color 0.5s var(--ease-out);
}
.strip.on { opacity: 1; border-color: rgba(var(--blue-rgb), 0.3); }
.strip i {
  display: block; width: 4px; height: 12px; border-radius: var(--corner-surface);
  background: rgba(234, 237, 242, 0.14);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.strip i.lit { background: var(--sky); box-shadow: 0 0 8px rgba(var(--sky-rgb), 0.8); }
#strips.ripple .strip i { animation: rip 0.7s var(--ease-out) 1; }
#strips.ripple .strip:nth-child(2) i { animation-delay: 0.1s; }
#strips.ripple .strip:nth-child(3) i { animation-delay: 0.2s; }
@keyframes rip { 0%, 100% { background: rgba(234,237,242,0.14); } 40% { background: var(--sky); box-shadow: 0 0 12px rgba(var(--sky-rgb), 1); } }
@media (max-width: 1180px) { #strips { display: none; } }
.notes-sub { display: block; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--hairline-soft); }
#notes .pref { font-size: 11.5px; }

/* --- Hero extras --------------------------------------------------------- */
.hero-foot { padding-right: calc(var(--gutter) + 8px); }
.hero-hint {
  margin-top: 22px;
  font-weight: 600; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(var(--sky-rgb), 0.62);
}
/* The coarse line is the hidden one by default, so a device that answers no
   media query at all still reads the pointer line, which is the historical
   behaviour. (hover: none) and (pointer: coarse) are both tested because a
   device can report either on its own. */
.hero-hint__coarse { display: none; }
@media (hover: none), (pointer: coarse) {
  .hero-hint__fine { display: none; }
  .hero-hint__coarse { display: inline; }
}
#roomBloom {
  position: absolute; inset: 0; z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Static six-beat equivalent, shown in reduced and lite mode */
.beats-static { padding: 20px 0 60px; }
.beats-static ol { max-width: 720px; margin: 0; padding: 0; counter-reset: b; }
.beats-static li {
  list-style: none; counter-increment: b;
  display: grid; grid-template-columns: 30px 1fr; gap: 14px;
  padding: 13px 0;
  border-top: 1px solid var(--hairline-soft);
  font-size: 14.5px; line-height: 1.55; color: var(--white-60);
}
.beats-static li::before {
  content: counter(b, decimal-leading-zero);
  font-weight: 700; font-size: 12px; color: rgba(var(--blue-rgb), 0.9);
  padding-top: 4px; font-variant-numeric: tabular-nums;
}
.beats-static li b { color: var(--soft-white); font-weight: 600; }
.beats-static li > span { display: block; }

/* --- Asset honesty labels ------------------------------------------------
   These carry the "this is generated" and "this is not a quote" disclosures, so
   they are held at AA against Deep. A disclosure nobody can read is not one. */
.asset-note, .anno-note, .guard {
  display: block;
  font-weight: 500; font-size: 11.5px; letter-spacing: 0.005em;
  text-transform: none;
  color: rgba(234, 237, 242, 0.62);
  line-height: 1.55;
}
.asset-note--lit { color: rgba(var(--sky-rgb), 0.86); margin-top: 14px; }
.act-gen {
  position: absolute; left: 14px; top: 14px; z-index: 3;
  padding: 6px 11px; border-radius: var(--corner-surface);
  background: rgba(6, 8, 15, 0.82);
  border: 1px solid var(--hairline);
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(234, 237, 242, 0.66);
  pointer-events: none;
}
.stage-h { font-weight: 700; font-size: 14px; letter-spacing: -0.012em; }
#notes.show, #board.show { visibility: visible; }

.asset-note { margin-top: 18px; padding-left: 13px; border-left: 1px solid rgba(234,237,242,0.20); }
.anno-note { margin-top: 12px; font-size: 11.5px; }
.guard {
  margin-top: 13px; padding: 10px 13px;
  border-radius: var(--corner-surface);
  background: rgba(var(--blue-rgb), 0.07);
  border: 1px solid rgba(var(--blue-rgb), 0.22);
  color: rgba(var(--sky-rgb), 0.85);
  text-transform: none; letter-spacing: 0.01em; font-size: 11.5px; font-weight: 500;
}
.cv-copy .asset-note { border-left-color: rgba(var(--sky-rgb), 0.3); }

/* --- One machine diagram ------------------------------------------------- */
.lab-shared { margin-top: 18px; }
.lab-shared .glass { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border-radius: var(--corner-surface); }
.ls-copy { padding: clamp(24px, 3vw, 40px); }
.ls-copy .h2 { margin: 14px 0 12px; }
.ls-diagram { position: relative; min-height: 260px; border-left: 1px solid var(--hairline-soft); }
.ls-diagram canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
@media (max-width: 880px) {
  .lab-shared .glass { grid-template-columns: 1fr; }
  .ls-diagram { border-left: none; border-top: 1px solid var(--hairline-soft); min-height: 220px; }
}

/* --- Range controls, styled once and reused ------------------------------ */
.draw-scrub {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px; background: none; margin: 4px 0 10px; display: block; cursor: ew-resize;
}
.draw-scrub::-webkit-slider-runnable-track { height: 2px; background: rgba(234,237,242,0.12); border-radius: var(--corner-surface); }
.draw-scrub::-moz-range-track { height: 2px; background: rgba(234,237,242,0.12); border-radius: var(--corner-surface); }
.draw-scrub::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 16px; height: 16px; margin-top: -7px; border-radius: 50%;
  background: var(--sky); border: 4px solid #06080F;
  box-shadow: 0 0 0 1px rgba(var(--sky-rgb),0.5), 0 0 16px rgba(var(--sky-rgb),0.8);
}
.draw-scrub::-moz-range-thumb {
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--sky); border: 4px solid #06080F;
  box-shadow: 0 0 0 1px rgba(var(--sky-rgb),0.5), 0 0 16px rgba(var(--sky-rgb),0.8);
}
.draw-steps { display: flex; flex-wrap: wrap; gap: 5px; }
.draw-steps span {
  padding: 6px 11px; border-radius: var(--corner-surface);
  border: 1px solid var(--hairline-soft);
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--white-26);
  transition: all 0.4s var(--ease-out);
}
.draw-steps span.on { color: var(--sky); border-color: rgba(var(--sky-rgb),0.36); background: rgba(var(--sky-rgb),0.07); }

.brief-title {
  margin-top: 13px; padding-top: 12px;
  border-top: 1px solid rgba(var(--blue-rgb), 0.2);
  font-weight: 700; font-size: 15px; letter-spacing: -0.014em;
  color: var(--soft-white);
}

/* --- Control room extras ------------------------------------------------- */
.chain-btns { display: flex; gap: 9px; flex-wrap: wrap; }
.chain-btns .btn, .chain-btns .btn-ghost { min-height: 42px; padding: 11px 20px; font-size: 13px; }

.handoff { margin-top: clamp(34px, 5vh, 56px); }
.handoff-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.handoff-row span {
  padding: 9px 15px; border-radius: var(--corner-surface);
  border: 1px solid var(--hairline);
  background: rgba(234,237,242,0.025);
  font-size: 12.5px; color: var(--white-60);
  transition: all 0.4s var(--ease-out);
}
.handoff-row span:hover { color: var(--soft-white); border-color: rgba(var(--sky-rgb),0.3); }

.loadin-block { margin-top: clamp(30px, 4vh, 46px); max-width: 1080px; }
.li-hd { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.li-hd .label { color: var(--sky); }

/* --- Convergence extras ------------------------------------------------- */
.cv-head { max-width: 680px; margin-bottom: clamp(28px, 4vh, 46px); }
.cv-head .h1 { margin-top: 16px; }
.cv-room .cv-copy { padding-top: 90px; }
.summary .cv-all { background: rgba(var(--blue-rgb), 0.07); }
.summary .cv-all p { color: var(--sky); }
.ev-lede { margin-top: 14px; font-size: 14px; }

.cta-plane .display { font-size: clamp(30px, 3.9vw, 62px); }
.cta-plane .lede { max-width: 44ch; }

/* --- CTA cable ---------------------------------------------------------- */
.cta-plane { position: relative; }
.cta-cable { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.cta-grid { position: relative; z-index: 1; }

/* --- Board full state --------------------------------------------------- */
#board.full { border-color: rgba(255, 176, 92, 0.5); }
#board.full .cnt { color: #FFB05C; }

/* --- Notes nudge -------------------------------------------------------- */
#notesBtn:hover { color: var(--sky); border-color: rgba(var(--sky-rgb),0.4); background: rgba(var(--sky-rgb),0.07); }
#notesBtn.nudge { color: var(--sky); border-color: rgba(var(--sky-rgb),0.55); box-shadow: 0 0 0 5px rgba(var(--sky-rgb),0.10); }
#notes.show { opacity: 1; transform: none; pointer-events: auto; }
#board.open .board-list { max-height: 34vh; overflow-y: auto; }

/* --- Activation card: keep the frame honest at every width -------------- */
.act-view img { --b: 0.34; --s: 0.30; --z: 1.06; }
.lab-grid { align-items: start; }

/* --- Lite mode: fewer blurs, no glass glow ------------------------------ */
body.lite .glass, body.lite .nav-inner, body.lite #board, body.lite #notes {
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  background: rgba(9, 12, 19, 0.9);
}
body.lite .glow-host > .glow-light { display: none; }
body.lite #roomLight { display: none; }
body.lite .hero-track { height: 190vh; }

/* --- Reduced motion additions ------------------------------------------- */
body.reduced #roomBloom { display: none; }
body.reduced .beat-rail, body.reduced .hero-foot { display: none; }
body.reduced .hero-plane { max-width: 820px; }
body.reduced #strips { display: none; }
body.reduced .act-hint { display: none; }
body.reduced .act-beats span::after { width: 100%; }
body.reduced .act-beats span { color: var(--sky); }
body.reduced .cv-room img { filter: brightness(1) saturate(1.02); transform: none; }

/* --- Short viewport ----------------------------------------------------- */
@media (max-height: 700px) and (max-width: 1100px) {
  .hero-track { height: 100svh; }
  .hero-stage { height: 100svh; }
  .hero-plane { padding: 20px 22px; }
  .hero-plane .display { font-size: clamp(30px, 8vw, 44px); }
  .hero-plane .signature { display: none; }
}

/* --- Print: a readable document, never a dark slab ---------------------- */
@media print {
  #room, #nav, #board, #notes, .beat-rail, .scroll-cue, canvas { display: none !important; }
  body { background: #fff; color: #0D1B2A; }
  .glass { background: none; border-color: #ddd; box-shadow: none; }
  .route { display: block !important; }
  .accent { color: #5887C6; }
  .hero-track { height: auto; }
  .hero-stage { position: static; height: auto; }
}

/* ============================================================================
   v1.1 ADDITIONS
   ========================================================================= */

/* --- The scroll invitation: centred in the dark, breathing, and it leaves
       the moment the visitor takes the hint. -------------------------------- */
.scroll-invite {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.1s var(--ease-out);
}
.scroll-invite.on { opacity: 1; }
.si-word {
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.42em; text-transform: uppercase;
  color: rgba(var(--sky-rgb), 0.72);
  text-indent: 0.42em;
  animation: siBreathe 3.4s ease-in-out infinite;
}
.si-line {
  position: relative;
  width: 1px; height: 62px;
  background: linear-gradient(to bottom, rgba(var(--sky-rgb), 0.30), rgba(var(--sky-rgb), 0));
  overflow: hidden;
}
.si-line i {
  position: absolute; left: 0; top: 0;
  width: 1px; height: 22px;
  background: linear-gradient(to bottom, rgba(var(--sky-rgb), 0), var(--sky));
  animation: siFall 3.4s var(--ease-out) infinite;
}
@keyframes siBreathe {
  0%, 100% { opacity: 0.5; }
  46%      { opacity: 1; }
}
@keyframes siFall {
  0%       { transform: translateY(-24px); opacity: 0; }
  30%      { opacity: 1; }
  78%, 100%{ transform: translateY(62px); opacity: 0; }
}
body.reduced .scroll-invite { display: none; }

/* --- The junction attract loop: one wall at a time asks to be pressed ----- */
.wall::part(none) { }
.wall .wall-ring {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  border: 1px solid transparent;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.wall.attract .wall-ring { opacity: 1; }
/* the attract loop stops the moment the visitor engages */
.walls[data-engaged="1"] .wall.attract .wall-ring { animation: none; opacity: 0; }

.path-invite {
  margin-top: 26px;
  text-align: center;
  opacity: 0;
  transition: opacity 0.9s var(--ease-out);
}
.path-invite.on { opacity: 1; }
.path-invite span {
  display: inline-flex; align-items: center; gap: 16px;
  font-weight: 600; font-size: 17px;
  letter-spacing: 0.30em; text-transform: uppercase;
  color: rgba(234, 237, 242, 0.62);
  /* The scanner below blends with the letters and the two rules. Isolating the
     span keeps that blend inside this element instead of lighting up the venue
     behind it. */
  position: relative;
  isolation: isolate;
}
.path-invite span::before, .path-invite span::after {
  content: ''; width: 58px; height: 1px;
  background: linear-gradient(to right, rgba(234,237,242,0), rgba(var(--sky-rgb),0.55));
}
.path-invite span::after { background: linear-gradient(to left, rgba(234,237,242,0), rgba(var(--sky-rgb),0.55)); }

/* --- THE SCANNER ---------------------------------------------------------
   A single glow that runs the full assembly: in along the left rule, across
   every letter, out along the right rule, then back the other way. One element
   travelling once, rather than per-letter animations, so the light is
   continuous and the turnarounds ease the way a swinging lamp would.

   `screen` blending means it brightens whatever it passes over rather than
   covering it, so the letters themselves light up as the beam crosses them. */
.path-invite .pi-scan {
  position: absolute;
  top: -8px; bottom: -8px;
  left: 0;
  width: 132px;
  margin-left: -66px;
  pointer-events: none;
  z-index: 2;
  /* Two layers: a tight bright core, and a wide soft halo behind it so the beam
     reads as a lamp with throw rather than as a dot. */
  background:
    radial-gradient(ellipse 26% 54% at center,
      rgba(var(--sky-rgb), 1) 0%,
      rgba(var(--sky-rgb), 0.55) 45%,
      rgba(var(--sky-rgb), 0) 78%),
    radial-gradient(ellipse 50% 70% at center,
      rgba(var(--sky-rgb), 0.34) 0%,
      rgba(var(--sky-rgb), 0.12) 46%,
      rgba(var(--sky-rgb), 0) 76%);
  mix-blend-mode: screen;
  /* Ease at both ends: the beam decelerates into each turn and accelerates out,
     which is what makes it read as a swinging lamp rather than a sliding div.
     Travel stops just short of the ends because the two rules fade to nothing
     there, so the last few pixels have nothing to light. */
  animation: pi-sweep 2.6s cubic-bezier(0.42, 0, 0.58, 1) infinite alternate;
}
@keyframes pi-sweep {
  from { left: 6%; }
  to   { left: 94%; }
}

/* Once a route is being engaged the invitation has done its job: it dims, and
   the beam stops rather than continuing to pull the eye. */
.walls[data-engaged="1"] ~ .path-invite .pi-scan { animation-play-state: paused; opacity: 0.25; }

@media (prefers-reduced-motion: reduce) {
  .path-invite .pi-scan { animation: none; left: 50%; opacity: 0.5; }
}
/* At 390 the beam's halo runs past the right edge of the screen at the end of
   its sweep (right edge 411.5, page 411 wide, measured on main 2026-10-30), and
   a phone then lays the whole page out wider than the device. `clip`, not
   `hidden`: it cuts the overflow at the section's edges without making a
   scroll container, and leaves vertical overflow alone. The section is full
   width, so wider screens, where the beam never reaches the edge, look the
   same. */
#junction { overflow-x: clip; }
.walls[data-engaged="1"] ~ .path-invite { opacity: 0.34; }

/* --- Idea lab: three across, squarer frames, a shorter card --------------- */
.lab-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1120px) { .lab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px)  { .lab-grid { grid-template-columns: 1fr; } }

.act-view { aspect-ratio: 16 / 11; }
.act-body { padding: 15px 17px 17px; }
.act-body .h3 { font-size: 15.5px; margin-bottom: 7px; }
.act-body .body-s { font-size: 12.5px; line-height: 1.5; }
.act-scrub { height: 40px; margin: 0; }
.annos { margin-top: 11px; padding-top: 11px; gap: 0 14px; }
.annos div { padding: 4px 0; }
.annos b { font-size: 11px; letter-spacing: 0.14em; }
.annos i { font-size: 13px; }
.anno-note { margin-top: 9px; font-size: 12.5px; line-height: 1.45; }
.act-save { margin-top: 12px; min-height: 42px; padding: 9px 15px; font-size: 12.5px; }
.act-beats span { font-size: 11px; letter-spacing: 0.13em; }
.act-beats { padding: 0 12px 11px; }
.act-gen { font-size: 10.5px; padding: 5px 9px; left: 12px; top: 12px; }
.act-hint { font-size: 10.5px; padding: 5px 9px; top: 12px; right: 12px; }

/* --- The scrub handle asks to be dragged when a pointer comes near -------- */
.act-scrub, .draw-scrub { --pl: 0; }
.act-scrub::-webkit-slider-thumb {
  box-shadow:
    0 0 0 calc(1px + var(--pl) * 7px) rgba(128, 225, 255, calc(0.5 - var(--pl) * 0.30)),
    0 0 calc(16px + var(--pl) * 18px) rgba(128, 225, 255, calc(0.8 + var(--pl) * 0.2));
  transform: scale(calc(1 + var(--pl) * 0.30));
}
.act-scrub::-moz-range-thumb {
  box-shadow:
    0 0 0 calc(1px + var(--pl) * 7px) rgba(128, 225, 255, calc(0.5 - var(--pl) * 0.30)),
    0 0 calc(16px + var(--pl) * 18px) rgba(128, 225, 255, calc(0.8 + var(--pl) * 0.2));
  transform: scale(calc(1 + var(--pl) * 0.30));
}
.act[data-near="1"] .act-scrub::-webkit-slider-thumb { animation: thumbPulse 1.5s ease-in-out infinite; }
.act[data-near="1"] .act-scrub::-moz-range-thumb { animation: thumbPulse 1.5s ease-in-out infinite; }
@keyframes thumbPulse {
  0%, 100% { box-shadow: 0 0 0 2px rgba(128,225,255,0.45), 0 0 18px rgba(128,225,255,0.85); }
  50%      { box-shadow: 0 0 0 9px rgba(128,225,255,0.10), 0 0 30px rgba(128,225,255,1); }
}
body.reduced .act[data-near="1"] .act-scrub::-webkit-slider-thumb,
body.reduced .act[data-near="1"] .act-scrub::-moz-range-thumb { animation: none; }
/* a ring on the frame itself, so touch users get the same cue */
.act-body { position: relative; }
.act-grab {
  position: absolute; z-index: 4;
  top: 50%; margin: -19px 0 0 -19px;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(var(--sky-rgb), 0.34);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease-out);
}
.act[data-near="1"] .act-grab { opacity: 1; animation: grabPulse 1.5s ease-in-out infinite; }
@keyframes grabPulse {
  0%, 100% { transform: scale(0.82); border-color: rgba(128,225,255,0.42); }
  50%      { transform: scale(1.06); border-color: rgba(128,225,255,0.12); }
}
body.reduced .act-grab { display: none; }

/* --- THE VIEWER: one sticky frame, four views ----------------------------- */
.viewer {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
  align-self: start;
  display: flex; flex-direction: column;
  height: min(66vh, 620px);
  border-radius: var(--corner-surface);
  border: 1px solid var(--hairline);
  background: linear-gradient(160deg, #080B13 0%, #05070C 100%);
  overflow: hidden;
  isolation: isolate;
}
.vw-tabs {
  display: flex; gap: 2px; flex: 0 0 auto;
  padding: 8px 8px 0;
  border-bottom: 1px solid var(--hairline-soft);
  opacity: 0; max-height: 0; overflow: hidden;
  transition: opacity 0.5s var(--ease-out), max-height 0.5s var(--ease-out), padding 0.5s var(--ease-out);
}
.viewer[data-state="done"] .vw-tabs { opacity: 1; max-height: 60px; padding: 8px 8px 0; }
.vw-tab {
  flex: 1 1 0; min-height: 40px;
  padding: 10px 8px; border-radius: var(--corner-control) var(--corner-control) 0 0;
  font-weight: 600; font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--white-42);
  border-bottom: 2px solid transparent;
  transition: all 0.3s var(--ease-out);
  white-space: nowrap;
}
.vw-tab:hover { color: var(--soft-white); background: rgba(234,237,242,0.04); }
.vw-tab[aria-selected="true"] { color: var(--sky); border-bottom-color: var(--sky); background: rgba(var(--sky-rgb),0.06); }
.vw-body { position: relative; flex: 1 1 auto; min-height: 0; }
.vw-pane { position: absolute; inset: 0; opacity: 0; pointer-events: none; transition: opacity 0.45s var(--ease-out); }
.vw-pane.on { opacity: 1; pointer-events: auto; }
.vw-pane canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.vw-pane img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vw-scroll { overflow-y: auto; padding: 18px 20px; }
.vw-cap {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 30px 18px 14px;
  background: linear-gradient(to top, rgba(6,8,15,0.94), transparent);
  font-weight: 600; font-size: 12px; letter-spacing: 0.15em;
  text-transform: uppercase; color: rgba(234,237,242,0.66);
}

/* the render pass: it looks like the room is being drawn, because it is */
.vw-render {
  position: absolute; inset: 0; z-index: 6;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px;
  background: rgba(6,8,15,0.82);
  opacity: 0; pointer-events: none;
  transition: opacity 0.4s var(--ease-out);
}
.viewer[data-state="rendering"] .vw-render { opacity: 1; }
.vwr-label {
  font-weight: 600; font-size: 12.5px; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--sky);
}
.vwr-bar { display: block; width: min(280px, 60%); height: 2px; background: rgba(234,237,242,0.12); border-radius: var(--corner-surface); overflow: hidden; }
.vwr-bar i { display: block; height: 100%; width: 0%; background: var(--sky); box-shadow: 0 0 12px rgba(var(--sky-rgb),0.9); }
.vwr-step {
  font-weight: 500; font-size: 11.5px; color: var(--white-60);
  font-variant-numeric: tabular-nums; min-height: 1.4em;
}

.makerow { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.btn-make { align-self: flex-start; }
.btn-make[disabled] { opacity: 0.4; cursor: not-allowed; filter: saturate(0.4); }
.btn-make[disabled]::before { display: none; }
.btn-make.ready { animation: makeReady 2.4s var(--ease-out) infinite; }
@keyframes makeReady {
  0%, 100% { box-shadow: 0 14px 44px -12px rgba(88,135,198,0.6), inset 0 1px 0 rgba(255,255,255,0.28); }
  50%      { box-shadow: 0 14px 52px -10px rgba(128,225,255,0.85), 0 0 0 6px rgba(128,225,255,0.07), inset 0 1px 0 rgba(255,255,255,0.34); }
}
body.reduced .btn-make.ready { animation: none; }

/* --- Equipment outline --------------------------------------------------- */
.gear-hd { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; margin-bottom: 12px; }
.gear-hd .label { color: var(--sky); }
.gear-hd em { font-style: normal; font-size: 12px; color: var(--white-26); letter-spacing: 0.14em; text-transform: uppercase; }
.gear-grp { margin-bottom: 14px; }
.gear-grp > b {
  display: block; padding-bottom: 6px; margin-bottom: 6px;
  border-bottom: 1px solid var(--hairline-soft);
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--white-42);
}
.gear-row {
  display: grid; grid-template-columns: 1fr auto;
  gap: 12px; padding: 5px 0;
  font-size: 12.5px; color: var(--soft-white);
}
.gear-row span:last-child { color: var(--sky); font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: 600; font-size: 11.5px; }
.gear-row.dim span { color: var(--white-42); }
.gear-note {
  margin-top: 8px; padding-top: 10px;
  border-top: 1px solid var(--hairline-soft);
  font-size: 12.5px; line-height: 1.5; color: var(--white-42);
}

/* --- Build sequence ----------------------------------------------------- */
.buildseq ol { margin: 0; padding: 0; }
.buildseq li {
  list-style: none; position: relative;
  padding: 0 0 14px 26px;
  border-left: 1px solid var(--hairline);
  margin-left: 5px;
}
.buildseq li:last-child { border-left-color: transparent; padding-bottom: 0; }
.buildseq li::before {
  content: ''; position: absolute; left: -4.5px; top: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--deep); border: 1px solid rgba(var(--blue-rgb), 0.8);
}
.buildseq li.key::before { background: var(--sky); border-color: var(--sky); box-shadow: 0 0 10px rgba(var(--sky-rgb),0.8); }
.buildseq b { display: block; font-weight: 600; font-size: 12.5px; color: var(--soft-white); margin-bottom: 2px; }
.buildseq span { display: block; font-size: 11.5px; line-height: 1.5; color: var(--white-60); }
.buildseq .ph {
  font-weight: 600; font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--white-26); margin-bottom: 3px; display: block;
}

/* --- Pressure test, now its own block below the plan --------------------- */
.pressure {
  margin-top: clamp(30px, 4vh, 52px);
  padding: clamp(22px, 3vw, 34px);
  border-radius: var(--corner-surface);
  border: 1px solid var(--hairline);
  background: rgba(12, 16, 24, 0.6);
  opacity: 0.5;
  transition: opacity 0.6s var(--ease-out), border-color 0.6s var(--ease-out);
}
.pressure[data-ready="1"] { opacity: 1; border-color: rgba(var(--blue-rgb), 0.3); }
.pr-head { max-width: 62ch; margin-bottom: 16px; }
.pr-head .h2 { margin: 13px 0 10px; }
.probe-answer {
  margin-top: 14px; padding: 13px 16px;
  border-radius: var(--corner-surface);
  background: rgba(var(--sky-rgb), 0.06);
  border-left: 2px solid rgba(var(--sky-rgb), 0.5);
  font-size: 14px; line-height: 1.5; color: var(--soft-white);
}

/* --- The handoff, listed out -------------------------------------------
   Six narrow panels, each with its own accent through --ha and its own
   drawn mark, so a closed panel reads as a thing with contents rather than
   as a row of text. A chase runs the accent through them one at a time
   until the visitor opens one, at which point it has done its job. */
/* Three by two, never five and an orphan, and each panel only as tall as its
   own contents rather than stretched to match the tallest in its row. */
.ho-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 10px; margin-top: 14px;
  max-width: 1080px;
}
@media (max-width: 940px) { .ho-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .ho-grid { grid-template-columns: 1fr; } }
.ho-hint {
  margin: 12px 0 0;
  font-weight: 600; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--white-42);
  transition: opacity 0.6s var(--ease-out);
}
.handoff[data-opened="1"] .ho-hint { opacity: 0; }
.ho {
  --ha: var(--sky-rgb);
  position: relative;
  border-radius: var(--corner-surface);
  border: 1px solid rgba(var(--ha), 0.16);
  background: rgba(17, 21, 32, 0.66);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out),
              box-shadow 0.5s var(--ease-out), transform 0.4s var(--ease-out);
}
.ho:hover { border-color: rgba(var(--ha), 0.42); transform: translateY(-2px); }
.ho[open] { border-color: rgba(var(--ha), 0.44); background: rgba(17,21,32,0.92); }
.ho summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto auto;
  align-items: center; gap: 10px;
  min-height: 56px; padding: 12px 14px;
  cursor: pointer; list-style: none;
}
.ho summary::-webkit-details-marker { display: none; }
.ho summary::after {
  content: ''; flex: 0 0 auto;
  width: 7px; height: 7px;
  border-right: 1px solid rgba(var(--ha), 0.6); border-bottom: 1px solid rgba(var(--ha), 0.6);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.ho[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.ho-i {
  width: 19px; height: 19px; flex: 0 0 auto;
  fill: none; stroke: rgb(var(--ha)); stroke-width: 1.3;
  stroke-linecap: round; stroke-linejoin: round;
  color: rgb(var(--ha));
  opacity: 0.72;
  transition: opacity 0.4s var(--ease-out), transform 0.5s var(--ease-out);
}
.ho:hover .ho-i, .ho[open] .ho-i { opacity: 1; transform: scale(1.06); }
.ho-n { font-weight: 700; font-size: 12px; color: var(--white-26); font-variant-numeric: tabular-nums; }
.ho-t { font-weight: 600; font-size: 13px; line-height: 1.25; }
.ho-c {
  font-weight: 600; font-size: 11px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--white-26);
  justify-self: end; white-space: nowrap;
}
.ho[open] .ho-n, .ho[open] .ho-c { color: rgba(var(--ha), 0.85); }
.ho ul { margin: 0; padding: 0 14px 13px; }
.ho li {
  list-style: none; padding: 6px 0;
  border-top: 1px solid var(--hairline-soft);
  font-size: 11.5px; line-height: 1.5; color: var(--white-60);
}
.ho li b { color: rgb(var(--ha)); font-weight: 600; margin-right: 7px; }

/* The chase. One panel at a time, driven from JS so it can stop. */
.ho::after {
  content: ''; position: absolute; inset: -1px; border-radius: var(--corner-surface);
  border: 1px solid rgb(var(--ha));
  opacity: 0; pointer-events: none;
}
.ho[data-chase="1"]::after { animation: hoChase 900ms var(--ease-out) 1; }
@keyframes hoChase {
  0%   { opacity: 0;    box-shadow: 0 0 0 0 rgba(var(--ha), 0.28); }
  22%  { opacity: 0.85; box-shadow: 0 0 26px 0 rgba(var(--ha), 0.30); }
  100% { opacity: 0;    box-shadow: 0 0 0 0 rgba(var(--ha), 0); }
}
body.reduced .ho[data-chase="1"]::after { animation: none; }

/* Reading down the page opens them, one after another, so nobody scrolls
   past six closed boxes without seeing what is in them. */
.ho[data-auto="1"] { border-color: rgba(var(--ha), 0.3); }

@media (max-width: 1000px) {
  .viewer { position: relative; top: auto; height: 420px; order: -1; }
}

/* --- v1.1 fit and finish ------------------------------------------------- */
/* The junction, its three walls, and the invitation land in one viewport. */
#junction { padding: clamp(56px, 8vh, 104px) 0 clamp(48px, 7vh, 84px); }
.jx-head { margin-bottom: clamp(26px, 3.6vh, 44px); }
#jxH { font-size: clamp(28px, 3.5vw, 52px); }
.walls .wall { min-height: clamp(280px, 38vh, 400px); }
.path-invite { margin-top: 22px; }

/* The viewer releases from sticky before its tabs can tuck under the island. */
.viewer { height: min(58vh, 540px); }
@media (max-width: 1000px) { .viewer { height: 400px; } }

.act-scrub { position: relative; z-index: 5; }
.scrub-row { position: relative; }

/* --- Card compaction: three annotation columns, one note line ------------- */
.annos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 12px; }
.annos b { font-size: 10.5px; letter-spacing: 0.12em; }
.annos i { font-size: 12.5px; }
.annos div { padding: 3px 0; gap: 6px; }
.act-body .body-s {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; min-height: 2.9em;
}
.anno-note { font-size: 12px; line-height: 1.4; }
@media (max-width: 1320px) { .annos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Annotations as compact pills: seven facts, three tight rows, nothing hidden */
.act-view { aspect-ratio: 16 / 10; }
.annos { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 10px; padding-top: 10px; }
.annos div {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 3px 8px; border: 0;
  border-radius: var(--radius-xs);
  background: rgba(234, 237, 242, 0.035);
}
.annos b { font-size: 10px; letter-spacing: 0.11em; color: var(--white-26); }
.annos i { font-size: 12.5px; text-align: left; }
.act.lit .annos div { background: rgba(var(--sky-rgb), 0.07); }

/* ============================================================================
   v1.2 ADDITIONS
   ========================================================================= */

/* --- The scroll invitation: the hero face, breathing 10 to 40 --------------
   It sits a third of the way up from the bottom of the frame, not dead
   centre, so it reads as an instruction about where you are going rather
   than as the subject of the shot. */
.scroll-invite {
  gap: 22px;
  top: auto; bottom: 33%;
  transform: translateX(-50%);
}
@media (max-height: 620px) { .scroll-invite { bottom: 26%; } }
.si-word {
  font-weight: 800;
  font-size: clamp(30px, 4.4vw, 62px);
  line-height: 1;
  letter-spacing: -0.03em;
  text-transform: none;
  text-indent: 0;
  color: var(--soft-white);
  animation: siFade 4.6s ease-in-out infinite;
}
@keyframes siFade {
  0%, 100% { opacity: 0.10; }
  50%      { opacity: 0.40; }
}
.si-mouse {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  color: var(--soft-white);
  animation: siFade 4.6s ease-in-out infinite;
  animation-delay: 0.35s;
}
.si-mouse > svg { width: 22px; height: 34px; display: block; }
.si-wheel { animation: siWheel 4.6s ease-in-out infinite; }
@keyframes siWheel {
  0%, 100% { transform: translateY(0); }
  46%      { transform: translateY(5px); }
}
.si-chev { display: block; height: 15px; position: relative; width: 16px; }
.si-chev svg { position: absolute; left: 0; width: 16px; height: 9px; }
.si-chev svg:nth-child(1) { top: 0;   animation: siChev 4.6s ease-in-out infinite; }
.si-chev svg:nth-child(2) { top: 6px; animation: siChev 4.6s ease-in-out infinite; animation-delay: 0.22s; }
@keyframes siChev {
  0%, 100% { opacity: 0.18; transform: translateY(0); }
  50%      { opacity: 1;    transform: translateY(3px); }
}
body.reduced .si-word, body.reduced .si-mouse, body.reduced .si-wheel, body.reduced .si-chev svg { animation: none; opacity: 0.3; }
@media (max-height: 760px) { .si-word { font-size: clamp(24px, 3.4vw, 40px); } }

/* --- Pressure test: room for a real answer ------------------------------- */
.probe-answer { padding: 0; background: none; border: 0; margin-top: 16px; }
.pa-empty {
  font-size: 13.5px; color: var(--white-42);
  padding: 14px 16px; border-radius: var(--corner-surface);
  border: 1px dashed var(--hairline);
}
.pa-card {
  display: grid; gap: 0;
  border-radius: var(--corner-surface); overflow: hidden;
  border: 1px solid rgba(var(--sky-rgb), 0.26);
  background: rgba(var(--sky-rgb), 0.045);
}
.pa-hd {
  display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap;
  padding: 13px 17px;
  border-bottom: 1px solid rgba(var(--sky-rgb), 0.16);
}
.pa-hd b { font-weight: 700; font-size: 15px; letter-spacing: -0.014em; color: var(--soft-white); }
.pa-hd em {
  font-style: normal; font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(var(--sky-rgb), 0.9);
  padding: 4px 9px; border-radius: var(--radius-xs);
  border: 1px solid rgba(var(--sky-rgb), 0.3);
}
.pa-body { padding: 15px 17px 16px; }
.pa-lead { font-size: 14px; line-height: 1.6; color: var(--soft-white); }
.pa-detail { margin-top: 10px; font-size: 13px; line-height: 1.62; color: var(--white-60); }
.pa-ask {
  margin-top: 13px; padding-top: 12px;
  border-top: 1px solid var(--hairline-soft);
}
.pa-ask span {
  display: block; font-weight: 600; font-size: 11.5px;
  letter-spacing: 0.17em; text-transform: uppercase;
  color: var(--white-26); margin-bottom: 7px;
}
.pa-ask ul { margin: 0; padding: 0; }
.pa-ask li {
  list-style: none; position: relative;
  padding: 3px 0 3px 15px;
  font-size: 12.5px; line-height: 1.55; color: var(--white-60);
}
.pa-ask li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; border-radius: 50%;
  background: rgba(var(--blue-rgb), 0.85);
}
.pa-class {
  margin-top: 12px; padding: 9px 13px;
  border-radius: var(--corner-surface);
  background: rgba(6, 8, 15, 0.5);
  font-size: 12.5px; color: var(--soft-white);
}
.pa-class b { color: var(--sky); font-weight: 600; }

/* --- The working brief: three columns of something to read ---------------- */
.brief { padding: clamp(22px, 3vw, 32px); }
.brief-hd { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.brief-state {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--white-42);
}
.brief-state i {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--white-26);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.brief-state[data-s="part"] i { background: var(--sw-blue); }
.brief-state[data-s="done"] i { background: var(--sky); box-shadow: 0 0 10px rgba(var(--sky-rgb),0.9); }
.brief-state[data-s="done"] { color: var(--sky); }
.brief-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 22px 26px;
}
.brief-h {
  font-weight: 600; font-size: 12px; letter-spacing: 0.17em;
  text-transform: uppercase; color: var(--white-42);
  padding-bottom: 8px; margin-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.brief ol { margin: 0; padding: 0; counter-reset: bl; }
.brief li {
  list-style: none; counter-increment: bl;
  display: block; padding: 8px 0 8px 24px;
  position: relative;
  border-bottom: 1px solid var(--hairline-soft);
}
.brief li::before {
  content: ''; position: absolute; left: 0; top: 14px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--white-26);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.brief li.on::before { background: var(--sky); box-shadow: 0 0 9px rgba(var(--sky-rgb),0.8); }
.brief li b { display: block; font-weight: 600; font-size: 13px; color: var(--white-42); transition: color 0.4s var(--ease-out); }
.brief li.on b { color: var(--soft-white); }
.brief li span { display: block; margin-top: 2px; font-size: 12px; line-height: 1.5; color: var(--white-42); }
.brief li.on span { color: var(--white-60); }

.brief-dl { margin: 0; }
.brief-dl div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  padding: 6px 0; border-bottom: 1px solid var(--hairline-soft);
}
.brief-dl dt {
  font-weight: 600; font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--white-26); white-space: nowrap;
}
.brief-dl dd { margin: 0; font-size: 12.5px; color: var(--soft-white); text-align: right; }
.brief-dl dd.none { color: var(--white-26); }

.brief-q { margin: 0; padding: 0; }
.brief-q li {
  list-style: none; padding: 7px 0 7px 16px; position: relative;
  border-bottom: 1px solid var(--hairline-soft);
  font-size: 12.5px; line-height: 1.55; color: var(--white-60);
}
.brief-q li::before {
  content: '?'; position: absolute; left: 0; top: 7px;
  font-weight: 700; font-size: 13px; color: rgba(var(--sky-rgb), 0.7);
}
.brief .brief-title { margin-top: 20px; }

/* --- The session record on the completed room ----------------------------- */
.record { margin-top: 18px; }
.rec-hd { max-width: 62ch; margin-bottom: 18px; }
.rec-hd .h2 { margin: 13px 0 10px; }
.rec-rows { display: grid; gap: 8px; }
.rec {
  border-radius: var(--corner-surface);
  border: 1px solid var(--hairline);
  background: rgba(17, 21, 32, 0.6);
  overflow: hidden;
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out);
}
.rec[open] { border-color: rgba(var(--sky-rgb), 0.32); background: rgba(17,21,32,0.9); }
.rec[data-set="0"] { opacity: 0.62; }
.rec summary {
  display: grid;
  grid-template-columns: 26px minmax(0, 190px) minmax(0, 1fr) 18px;
  align-items: center; gap: 14px;
  min-height: 56px; padding: 12px 16px;
  cursor: pointer; list-style: none;
}
.rec summary::-webkit-details-marker { display: none; }
.rec-n { font-weight: 700; font-size: 12px; color: var(--white-26); font-variant-numeric: tabular-nums; }
.rec-k { font-weight: 600; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--white-42); }
.rec-v { font-size: 14px; color: var(--soft-white); }
.rec-v.none { color: var(--white-26); }
.rec[open] .rec-n, .rec[open] .rec-k { color: rgba(var(--sky-rgb), 0.85); }
.rec-x {
  width: 7px; height: 7px; justify-self: end;
  border-right: 1px solid var(--white-42); border-bottom: 1px solid var(--white-42);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.3s var(--ease-out), border-color 0.3s var(--ease-out);
}
.rec[open] .rec-x { transform: rotate(-135deg) translateY(-2px); border-color: var(--sky); }
.rec-body { padding: 0 16px 15px 56px; }
.rec-body p { font-size: 13px; line-height: 1.6; color: var(--white-60); max-width: 74ch; }
.rec-body ul { margin: 10px 0 0; padding: 0; }
.rec-body li {
  list-style: none; padding: 4px 0 4px 15px; position: relative;
  font-size: 12.5px; line-height: 1.55; color: var(--white-60);
}
.rec-body li::before {
  content: ''; position: absolute; left: 0; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: rgba(var(--blue-rgb), 0.85);
}
.rec-body li b { color: var(--soft-white); font-weight: 600; }
.rec-empty { margin-top: 14px; font-size: 13px; color: var(--white-42); }
.rec-empty[hidden] { display: none; }
@media (max-width: 760px) {
  .rec summary { grid-template-columns: 22px minmax(0, 1fr) 16px; }
  .rec-v { grid-column: 1 / -1; padding-left: 36px; }
  .rec-body { padding-left: 22px; }
}

/* --- Evidence: six rooms, titled in the house eyebrow format --------------
   Each frame carries its own accent through --ea, set per figure in the
   markup, so the six read as one family of six different jobs rather than
   six of the same thing. Everything else in the card derives from it. */
.ev-h { margin: 14px 0 12px; }
.ev-lede { max-width: 74ch; }
.ev-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1000px) { .ev-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .ev-strip { grid-template-columns: 1fr; } }
.ev {
  --ea: var(--sky-rgb);
  /* Crop receipts are bounded to 470 CSS px at canvas DPR 1, including the
     single-column layout immediately below the 640px breakpoint. */
  width: 100%; max-width: 470px; justify-self: center;
  aspect-ratio: 1 / 1;
  border-color: rgba(var(--ea), 0.16);
  transition: border-color 0.4s var(--ease-out), transform 0.5s var(--ease-out),
              box-shadow 0.5s var(--ease-out);
}
.ev canvas { filter: brightness(0.74) saturate(0.86); transition: filter 0.6s var(--ease-out); }
.ev:hover, .ev:focus-within {
  border-color: rgba(var(--ea), 0.5);
  transform: translateY(-3px);
  box-shadow: 0 26px 60px -26px rgba(var(--ea), 0.42);
}
.ev:hover canvas, .ev:focus-within canvas { filter: brightness(0.92) saturate(1); }
/* The forced-perspective room: its loop sits over the poster frame and shows
   only once it is actually playing, so a refused or slow play leaves the poster
   up rather than a black card. The caption's own gradients keep the text on
   dark over the moving picture. Reduced motion never starts it (app.js). */
.ev-v {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0;
  filter: brightness(0.92) saturate(1);
  transition: opacity 0.5s var(--ease-out);
}
.ev.ev-playing .ev-v { opacity: 1; }
body.reduced .ev-v { transition: none; }

/* The title sits at the top of the frame, in the eyebrow format the rest of
   the site uses: a hairline dash, then tracked uppercase in the accent. */
.ev figcaption {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 15px 16px 16px;
  /* The top band holds dark through the title, in px rather than %, so a
     two-line title on a short 390 card (4:3 then, about 255px; 4:5 since
     2026-10-31) is still on the dark part. At 0.80 fading to 0.22 by 26%
     the second line sat on the lit photograph: 3.24:1 and 4.44:1 at 390,
     measured once the panel left the
     path gate (2026-10-30) and was on screen for the contrast gate. */
  background:
    linear-gradient(to bottom, rgba(6,8,15,0.92) 0, rgba(6,8,15,0.90) 58px, rgba(6,8,15,0.0) 118px),
    linear-gradient(to top, rgba(6,8,15,0.95) 0%, rgba(6,8,15,0.82) 34%, rgba(6,8,15,0.0) 68%);
}
.ev-t {
  position: static; inset: auto;
  display: flex; align-items: center; gap: 11px;
  font-weight: 600; font-size: 12.5px; line-height: 1.3;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgb(var(--ea));
  text-shadow: 0 1px 10px rgba(6,8,15,0.9);
}
.ev-t::before {
  content: ''; flex: 0 0 auto;
  width: 22px; height: 1px;
  background: currentColor; opacity: 0.8;
  transition: width 0.5s var(--ease-out);
}
.ev:hover .ev-t::before, .ev:focus-within .ev-t::before { width: 34px; }
.ev-d {
  position: static; inset: auto;
  display: block; font-weight: 400; font-size: 12px; line-height: 1.55;
  text-transform: none;
  letter-spacing: 0.005em; color: rgba(234, 237, 242, 0.72);
  border-top: 1px solid rgba(var(--ea), 0.24);
  padding-top: 11px;
}
.ev-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
.ev-actions button { min-height: 44px; padding: 8px 12px; border: 1px solid rgba(var(--ea),0.65); border-radius: 9px; background: #0c1018; color: var(--soft-white); font: inherit; font-size: 12px; cursor: pointer; }
.ev-actions button:focus-visible { outline: 2px solid rgb(var(--ea)); outline-offset: 3px; }
.ev-actions button:disabled { cursor: default; opacity: 0.65; }
.ev-count { color: var(--soft-white); font-size: 11px; white-space: nowrap; }
@media (max-width: 1000px) { .ev { aspect-ratio: 4 / 5; } }
/* 4:5 on a phone, not 4:3: at 390 a 4:3 card is about 257px tall and the
   caption covered all but a sliver of each room's photographs (captures,
   2026-10-31). The 4:5 display box is the one SW-3 cleared for 641-1000. */
@media (max-width: 640px)  { .ev { aspect-ratio: 4 / 5; } .ev-d { font-size: 12.5px; } }
/* The accent has to hold over a lit photograph, not just over the card. */
.ev-t { text-shadow: 0 1px 3px rgba(6,8,15,1), 0 1px 14px rgba(6,8,15,0.95); }

/* --- The 360 walkthrough: click to load, never on arrival ----------------- */
.walk { position: absolute; inset: 0; overflow: hidden; }
.walk img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.42) saturate(0.7); }
.walk iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.walk-over {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 24px;
  text-align: center;
  background: radial-gradient(ellipse at center, rgba(6,8,15,0.42), rgba(6,8,15,0.86));
}
.walk[data-live="1"] .walk-over { display: none; }
.walk-play {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 14px 24px 14px 20px;
  border-radius: var(--radius-md);
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--blue-rgb), 0.96), rgba(var(--blue-rgb), 0.72));
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow: 0 16px 44px -12px rgba(var(--blue-rgb), 0.7);
  font-weight: 600; font-size: 14px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.walk-play svg { width: 18px; height: 18px; }
.walk-play:hover { transform: translateY(-2px); box-shadow: 0 22px 54px -12px rgba(var(--sky-rgb), 0.6); }
.wp-ring {
  position: absolute; inset: -6px; border-radius: var(--radius-md);
  border: 1px solid rgba(var(--sky-rgb), 0.34);
  animation: wpRing 2.8s var(--ease-out) infinite;
}
@keyframes wpRing {
  0%, 100% { transform: scale(0.97); opacity: 0.5; }
  50%      { transform: scale(1.03); opacity: 0.12; }
}
body.reduced .wp-ring { animation: none; }
.walk-note { max-width: 46ch; font-size: 12px; line-height: 1.55; color: rgba(234,237,242,0.62); }
.walk-badge {
  position: absolute; left: 12px; top: 12px; z-index: 3;
  padding: 5px 10px; border-radius: var(--radius-xs);
  background: rgba(6,8,15,0.82); border: 1px solid var(--hairline);
  font-weight: 600; font-size: 10.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(234,237,242,0.66);
  pointer-events: none;
}
/* The way back out. A third party viewer can refuse to be framed without
   saying so, so the escape hatch is always on screen while it is live. */
.walk-bar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  display: none; align-items: center; justify-content: space-between;
  gap: 16px; padding: 10px 14px;
  background: linear-gradient(to top, rgba(6,8,15,0.92), rgba(6,8,15,0.0));
}
.walk[data-live="1"] .walk-bar { display: flex; }
.walk-close {
  min-height: 44px; padding: 10px 16px;
  border-radius: var(--radius-md); border: 1px solid var(--hairline);
  background: rgba(6,8,15,0.78); color: rgba(234,237,242,0.82);
  font-weight: 600; font-size: 12px;
  transition: border-color 0.35s var(--ease-out), color 0.35s var(--ease-out);
}
.walk-close:hover { border-color: rgba(var(--sky-rgb),0.4); color: var(--soft-white); }
.walk-bar .link-draw { font-size: 12px; }

.vw-tab[hidden] { display: none; }

/* ==========================================================================
   v1.3 THE CONTROL ROOM: A RENDER THAT BUILDS
   Six passes of the same room from the same camera, cross-faded as layers go
   in, with the wiring drawn over the top on the canvas. The render occupies
   a fixed band so the signal path underneath always has clean ground.
   ======================================================================= */
.chain-wrap { min-height: clamp(400px, 58vh, 580px); --r3h: 54%; }
.r3 {
  position: absolute; left: 0; right: 0; top: 0; height: var(--r3h);
  overflow: hidden; z-index: 0;
  border-bottom: 1px solid var(--hairline);
}
.r3-f, .r3-v {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  opacity: 0; z-index: 1;
  transition: opacity 1.1s var(--ease-out);
}
.r3-f.on { opacity: 1; }
.r3-v { z-index: 2; }
.r3-v.on { opacity: 1; }
/* The floor of the render melts into the diagram below it, so the seam is a
   change of register rather than a hard cut. Kept light and kept to the
   bottom quarter: this sits over the LED wall and will eat it otherwise. */
.r3::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 24%;
  background: linear-gradient(to bottom, rgba(5,7,12,0) 0%, rgba(5,7,12,0.42) 58%, rgba(5,7,12,0.88) 100%);
  z-index: 3; pointer-events: none;
}
.r3-cap {
  position: absolute; left: 16px; bottom: 12px; z-index: 4;
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(var(--sky-rgb), 0.72);
  text-shadow: 0 1px 12px rgba(6,8,15,0.95);
  transition: color 0.5s var(--ease-out);
}
.r3-gen {
  /* Top left of the render band. Never set left and right together here:
     .act-gen already sets left and top, and an absolutely positioned badge
     with both edges pinned stretches into an opaque panel over the render. */
  z-index: 4;
}
#chainCv { z-index: 1; }
.chain-hd { z-index: 5; }
/* The footer left the frame, so it is a normal block again. */
.chain-ft {
  position: static; inset: auto;
  padding: 14px 2px 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  justify-content: space-between;
}
.chain-col { display: flex; flex-direction: column; min-width: 0; }
.chain-col .chain-wrap { flex: 1 1 auto; }

/* --- One control: Activate, and only when the room is actually complete --- */
.btn-act {
  display: inline-flex; align-items: center; gap: 11px;
  min-height: 46px; padding: 12px 22px;
  transition: opacity 0.4s var(--ease-out), filter 0.4s var(--ease-out),
              transform 0.35s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.btn-act[data-ready="0"] {
  filter: grayscale(0.85) brightness(0.62);
  box-shadow: none;
}
.btn-act[data-ready="0"]:hover { transform: none; }
.btn-act[data-ready="1"] { filter: none; }
.btn-act[data-ready="1"] .act-lamp { background: #06080F; box-shadow: 0 0 0 3px rgba(255,255,255,0.22); }
.act-lamp {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: rgba(255,255,255,0.34);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.btn-act[data-ready="1"]:not([data-live="1"]) .act-lamp { animation: actLamp 1.5s var(--ease-out) infinite; }
@keyframes actLamp {
  0%, 100% { box-shadow: 0 0 0 2px rgba(255,255,255,0.14); }
  50%      { box-shadow: 0 0 0 5px rgba(255,255,255,0.30); }
}
body.reduced .act-lamp { animation: none; }
.act-of {
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; opacity: 0.72;
  font-variant-numeric: tabular-nums;
}
.btn-act[data-live="1"] { background: linear-gradient(135deg, rgba(234,237,242,0.14), rgba(234,237,242,0.06)); }

/* The activation sweep: each layer takes its cue in order. */
.layer[data-go="1"] { border-color: rgba(var(--sky-rgb), 0.8); background: rgba(var(--sky-rgb), 0.14); }
.layer[data-go="1"] .lv { color: #fff; }
.layer[data-next="1"] { border-color: rgba(var(--sky-rgb), 0.26); }
.layer[data-next="1"] .ln { color: rgba(var(--sky-rgb), 0.6); }

@media (max-width: 1000px) {
  .chain-wrap { min-height: 420px; --r3h: 50%; }
}
body.reduced .chain-wrap { min-height: 420px; }

/* The status pill belongs to the render: it is the room's state. The frame
   label belongs to the diagram, so it moves to the diagram side of the seam. */
.chain-hd { top: 0; justify-content: flex-end; padding: 14px 16px; }
.chain-hd > .label { display: none; }
.chain-seam {
  position: absolute; left: 18px; top: calc(var(--r3h) + 12px); z-index: 5;
  font-weight: 600; font-size: 12px; letter-spacing: 0.20em;
  text-transform: uppercase; color: var(--white-26);
  pointer-events: none;
}

/* --- The build scrub: drawing to room, dragged ---------------------------
   SW's own venue visualisation, run as a frame sequence on a canvas so the
   drag is exact. A video would seek to the nearest keyframe and rubber-band. */
.bld {
  position: relative;
  /* auto side margins: the frame is capped at 1080px inside a wider wrap, so
     without these it sat hard left of a centred composition. */
  margin: 16px auto 2px;
  max-width: 1080px;
  aspect-ratio: 1040 / 580;
  border-radius: var(--corner-surface);
  border: 1px solid var(--hairline);
  background: #05070C;
  overflow: hidden;
}
.bld canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bld-gen { z-index: 3; }
.bld-cap {
  position: absolute; left: 16px; bottom: 14px; z-index: 3;
  font-weight: 600; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(var(--sky-rgb), 0.78);
  text-shadow: 0 1px 12px rgba(6,8,15,0.95);
}
.bld-hint {
  position: absolute; right: 16px; bottom: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 7px 13px; border-radius: var(--corner-surface);
  background: rgba(6,8,15,0.72); border: 1px solid rgba(var(--sky-rgb), 0.3);
  font-weight: 600; font-size: 11.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(var(--sky-rgb), 0.86);
  transition: opacity 0.7s var(--ease-out);
}
.bld-hint::after {
  content: ''; width: 26px; height: 1px;
  background: linear-gradient(to right, rgba(var(--sky-rgb),0.15), rgba(var(--sky-rgb),0.95));
  animation: bldSweep 2.2s var(--ease-out) infinite;
}
@keyframes bldSweep {
  0%, 100% { transform: translateX(-4px); opacity: 0.45; }
  50%      { transform: translateX(4px);  opacity: 1; }
}
body.reduced .bld-hint::after { animation: none; }
.bld[data-touched="1"] .bld-hint { opacity: 0; }
.li-state {
  font-weight: 600; font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--white-42);
  font-variant-numeric: tabular-nums;
}
.loadin-block .draw-scrub { margin-top: 2px; }

/* ==========================================================================
   v1.5 FORMATTING PASS
   ======================================================================= */

/* --- The real mark, not a text lockup ----------------------------------- */
/* The mark is now the shared <SwLogo> component, which owns its own sizing via
   --sw-logo-h and swaps the horizontal lockup for the block mark below 780px.
   The old rules here set an explicit height and width on .sw-logo and forced
   24x28 under the breakpoint, which would now squash the component's wrapper.
   All that is left is colour: the wordmark is filled with currentColor, so
   setting colour here still drives it, including the hover. */
.nav-mark {
  color: var(--soft-white);
  transition: color 0.4s var(--ease-out);
}
.nav-mark:hover { color: #fff; }

/* --- The hero whisper: the first thing said, barely said ----------------- */
.hero-whisper {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 6;
  margin: 0;
  width: max-content; max-width: 92vw;
  text-align: center;
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 54px);
  line-height: 1.1;
  letter-spacing: -0.028em;
  /* Was deep blue at twenty per cent, which measured 1.2:1 and read as a smudge
     rather than as a line of type. It is still the quietest thing in the hero,
     but it is now legible: the point is that it is READ and then leaves, not
     that it is nearly invisible. */
  /* L112, 17 Nov 2026: raised from rgba(138,178,232,0.66) (about 4.3:1 on the near-black ground) to the
     service pages' body-text ink, so the opening line reads at the same level as the copy that follows. */
  color: rgba(234, 237, 242, 0.72);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.2s var(--ease-out);
}
.hero-whisper.on { opacity: 1; }

/* The scroll invitation sits a quarter up from the bottom. */
.scroll-invite { bottom: 25%; }
@media (max-height: 620px) { .scroll-invite { bottom: 19%; } }

/* --- The junction attract: an outward pulse, one wall at a time ---------- */
.wall.attract .wall-ring { animation: wallRing 1.9s var(--ease-out) 1; }
@keyframes wallRing {
  0% {
    border-color: rgba(var(--sky-rgb), 0.85);
    box-shadow: 0 0 0 0 rgba(var(--sky-rgb), 0.42), inset 0 0 22px -10px rgba(var(--sky-rgb), 0.5);
    transform: scale(1);
  }
  70% {
    border-color: rgba(var(--sky-rgb), 0.10);
    box-shadow: 0 0 0 18px rgba(var(--sky-rgb), 0), inset 0 0 22px -10px rgba(var(--sky-rgb), 0);
    transform: scale(1.018);
  }
  100% {
    border-color: rgba(var(--sky-rgb), 0);
    box-shadow: 0 0 0 24px rgba(var(--sky-rgb), 0);
    transform: scale(1);
  }
}
body.reduced .wall.attract .wall-ring { animation: none; }

/* --- The handoff tiles sit in the middle of the column ------------------- */
.ho-grid { margin-left: auto; margin-right: auto; }
.handoff .pr-head { max-width: 1080px; margin-left: auto; margin-right: auto; }
.handoff .ho-hint { text-align: left; }

/* --- Your session: narrower, centred, and it opens itself --------------- */
.record { max-width: 880px; margin-left: auto; margin-right: auto; }
.rec-hd { max-width: 68ch; margin-left: auto; margin-right: auto; text-align: center; }
.rec-hd .eyebrow { justify-content: center; }
.rec-hd .body-s { margin-left: auto; margin-right: auto; }
.rec-rows { gap: 9px; }
.rec { transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), transform 0.4s var(--ease-out); }
.rec:hover { transform: translateY(-2px); }
.rec[data-auto="1"] { border-color: rgba(var(--sky-rgb), 0.26); }
.rec-empty { max-width: 60ch; margin-left: auto; margin-right: auto; text-align: center; }

/* --- The build move is now the completed room, for every route ----------- */
.loadin-block {
  max-width: 1080px;
  margin-left: auto; margin-right: auto;
  margin-top: clamp(22px, 3vh, 34px);
}
.li-lede {
  max-width: 68ch; margin: 0 auto 20px;
  text-align: center;
  font-size: 14.5px; line-height: 1.6; color: var(--white-60);
}
.cv-head { max-width: 940px; margin-left: auto; margin-right: auto; text-align: center; }
#cvH { font-size: clamp(28px, 3.4vw, 50px); }
.cv-head .eyebrow { justify-content: center; }
.bld {
  max-width: none;
  border-radius: var(--corner-surface);
  box-shadow: 0 40px 90px -50px rgba(0,0,0,0.9);
}
.loadin-block .loadin { justify-content: center; }
.loadin-block .stage-note { text-align: center; max-width: 62ch; margin-left: auto; margin-right: auto; }
.li-hd { justify-content: space-between; }

/* =======================================================================
   PINNED SCROLL-SCRUB — the room panel is held while the load-in runs

   Operator, 2026-09-02: "the viewport is supposed to freeze-frame and center
   on that animation video, so as you scroll, it kind of forces you to scroll
   through the whole animation of that show before continuing to scroll
   again."

   Two elements, one job each. The TRACK is tall and supplies the scroll
   distance; the STAGE sticks inside it and is what the visitor sees. Progress
   through the track drives the video's currentTime in app.js.

   --pin-len is the scroll cost of the whole animation. It is expressed in vh
   so the pin lasts a consistent number of "screens" of scrolling rather than
   a fixed pixel distance that means something different on every display.
   ======================================================================= */
.pin-track {
  position: relative;
  height: var(--pin-len, 300vh);
}
.pin-stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.pin-stage > .ctrl { width: 100%; }

/* REDUCED MOTION unwinds the mechanism entirely, in CSS alone: the track stops
   reserving scroll distance and the stage stops sticking, so the panel is a
   normal block in normal flow. app.js checks the same query and leaves the
   video on its original click-to-activate behaviour, so nobody is held in a
   pin whose scrub they have opted out of. */
@media (prefers-reduced-motion: reduce) {
  .pin-track { height: auto; }
  .pin-stage { position: static; min-height: 0; display: block; }
}

/* A short viewport cannot show the panel at all if the stage is a rigid 100vh,
   so below the panel's own minimum the pin is dropped rather than clipped. */
@media (max-height: 620px) {
  .pin-track { height: auto; }
  .pin-stage { position: static; min-height: 0; display: block; }

  flex-direction: column;
  justify-content: center;
  /* margin-block only. The base rule centres this block with auto side margins
     and a blanket `margin: 0` here wiped that out, which is what left the whole
     sequence ranged left inside the wrap. */
  margin-block: 0;
  margin-inline: auto;
}

/* Reduced motion, lite mode, and short viewports get no pin: the block simply
   sits in the flow at its natural height and the slider still works. A pinned
   section that cannot animate is just a very tall empty box. */

/* --- Tag bursts ----------------------------------------------------------
   Each tag flashes once as the sequence passes it. The spans are built once and
   toggled, never re-written, so an animation is never interrupted halfway. */
.loadin span {
  position: relative;
  transition: color 0.32s var(--ease-out), opacity 0.32s var(--ease-out);
}
.loadin span.burst::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  border: 1px solid var(--sky);
  animation: li-burst 0.62s var(--ease-out) forwards;
  pointer-events: none;
}
@keyframes li-burst {
  0%   { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(9);   opacity: 0;   }
}
@media (prefers-reduced-motion: reduce) {
  .loadin span.burst::after { animation: none; display: none; }
}

/* --- The path gate -------------------------------------------------------
   Until a route is chosen, the three route sections and the completed room are
   not in the page at all. This is what makes the junction a real fork rather
   than a decorative one, and it is also why the session record no longer shows
   a summary of choices nobody made.

   The call to action is deliberately NOT gated: someone who does not want to
   play should still be able to reach SW. */
#page[data-chosen="0"] .route,
#page[data-chosen="0"] #converge {
  display: none;
}
/* The invitation gets louder while it is the only way forward. */
#page[data-chosen="0"] .path-invite {
  animation: path-pulse 2.6s var(--ease-out) infinite;
}
@keyframes path-pulse {
  0%, 100% { opacity: 0.55; }
  50%      { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #page[data-chosen="0"] .path-invite { animation: none; opacity: 1; }
}

/* --- Pinned layout: everything has to fit one viewport ---------------------
   While the block is stuck, the whole composition has to be visible at once,
   because the tags underneath the image are the thing the sequence is lighting
   up. At its natural size the block runs past 100vh, which pushed the tags
   below the fold and clipped the lede off the top: the burst was firing where
   nobody could see it.

   The image is sized from viewport height rather than aspect ratio while
   pinned, and the supporting copy tightens, so image, slider, tags, and note
   all sit in frame together. */
@supports (position: sticky) {
  /* The whole composition centres on the frame: the stage tags, the note, the
     lede, and the label row all line up with it rather than ranging left. */
}

/* Pin off: restore the natural composition. */
@media (prefers-reduced-motion: reduce), (max-height: 620px) {
}

/* ============================================================================
   MOBILE ISLAND
   Added 10 August 2026.
   ========================================================================= */

/* The hamburger and its #navMenu panel are NOT here. They exist in the lost
   stratum at 8b2a366 (public/experiential/styles2.css) together with a full
   site nav — .nav-menu__site — and a contact CTA. They are omitted because
   this page has no such markup, and CSS for markup that does not exist is the
   same trap as a standing order for a reader that no longer exists: it reads
   as live configuration to whoever opens the file next.

   Porting them is a real enhancement, not a restoration: the panel links
   /locations, which currently has no built pages, so a blind port ships a 404.
   The guarded handler in app.js (`if (!btn || !panel) return;`) is left in
   place and is inert without them. */

/* --- The island on phones -------------------------------------------------
   At 390px the island could not fit the mark, the notes button, a three-item
   compass, and a call to action: the compass needed 267px in 228px, so BUILD
   was clipped and the CTA was pushed out of the pill entirely.

   The routes move into the menu, which is what the hamburger is for. The island
   keeps the three things worth having under a thumb: menu, mark, notes. */
@media (max-width: 900px) {
  #compass { display: none; }
  .nav-inner { gap: 12px; justify-content: space-between; padding: 0 12px; }
}

/* --- Back to all services -------------------------------------------------
   A second way out of the page, asked for by the operator on 2026-09-02. It
   sits beside the booking CTA but must not compete with it: no fill, no
   shadow, and the shine sweep that runs on .btn is switched off here, so the
   bar still has exactly one lit control. */
.nav-back { flex: 0 0 auto; }
.nav-back .btn-quiet {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 12.5px;
  color: rgba(234, 237, 242, 0.78);
  background: transparent;
  border: 1px solid var(--hairline);
  box-shadow: none;
}
.nav-back .btn-quiet::before { display: none; }
.nav-back .btn-quiet:hover {
  color: #fff;
  border-color: rgba(var(--sky-rgb), 0.55);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
  box-shadow: none;
}
/* Kept at every width: an exit that is present in the DOM but hidden on phones
   is not an exit. The label shortens instead. */
@media (max-width: 720px) {
  .nav-back .btn-quiet { padding: 10px 12px; font-size: 11.5px; }
}
