/* ============================================================================
   SW EVENT TECHNOLOGY - EXPERIENTIAL MARKETING
   Dark visual system. Brand Guide v0.7 / 02.3 + Homepage ALPHA v1.1 inheritance.
   ========================================================================= */

:root {
  /* Dark mode palette - Brand Guide v0.7 / 02.3 */
  --deep:          #06080F;
  --surface:       #0C1018;
  --card:          #111520;
  --sw-blue:       #5887C6;
  --sky:           #80E1FF;
  --soft-white:    #EAEDF2;

  /* Derived */
  --blue-rgb:      88, 135, 198;
  /* The brand's deepened blue (--sw-blue-ink, #3968a7) as a triple, so the
     button fill can use it the way this file uses every other colour. Added
     2026-10-06 for contrast: see .btn below for why the fill had to move. */
  --blue-ink-rgb:  57, 104, 167;
  --sky-rgb:       128, 225, 255;
  --white-60:      rgba(234, 237, 242, 0.60);
  --white-42:      rgba(234, 237, 242, 0.42);
  --white-26:      rgba(234, 237, 242, 0.26);
  --hairline:      rgba(234, 237, 242, 0.10);
  --hairline-soft: rgba(234, 237, 242, 0.06);
  --glass:         rgba(12, 16, 24, 0.62);
  --glass-edge:    rgba(234, 237, 242, 0.12);

  --gutter:        clamp(20px, 4vw, 64px);
  --max-w:         1640px;
  --ease-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --ease-snap:     cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --nav-h:         64px;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  background: var(--deep);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
  color: var(--soft-white);
  background: var(--deep);
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--sw-blue); color: #fff; }

img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
a { color: var(--sky); text-decoration: none; }
/* The site's global.css carries a bare `a { text-decoration: underline }`. It is
   authored inside @layer base, but Tailwind flattens that layer at build time,
   so it ships unlayered and is linked AFTER this file — at equal specificity it
   would win on source order and underline every link on the page. :any-link
   raises this to 0,1,1 so the page keeps its own link treatment wherever it is
   mounted. Do not lower it back to a bare `a`. */
a:any-link { text-decoration: none; }

/* --- Focus: visible, Sky and white (spec §20) ------------------------------ */
:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 3px;
}

/* --- Type scale ----------------------------------------------------------- */
.display {
  font-weight: 800;
  font-size: clamp(38px, 6.4vw, 104px);
  line-height: 0.88;
  letter-spacing: -0.045em;
}
.h1 {
  font-weight: 800;
  font-size: clamp(30px, 4.2vw, 62px);
  line-height: 0.94;
  letter-spacing: -0.038em;
}
.h2 {
  font-weight: 700;
  font-size: clamp(22px, 2.3vw, 34px);
  line-height: 1.06;
  letter-spacing: -0.026em;
}
.h3 {
  font-weight: 700;
  font-size: clamp(17px, 1.35vw, 21px);
  line-height: 1.2;
  letter-spacing: -0.018em;
}
.lede {
  font-weight: 500;
  font-size: clamp(15px, 1.22vw, 19px);
  line-height: 1.52;
  color: var(--white-60);
}
.body-s {
  font-size: 14px;
  line-height: 1.6;
  color: var(--white-60);
}
/* Accent words inside display headlines.
   Upright, always. Brand Guide v0.5 retired the italic-plus-colour treatment —
   colour alone is the brand cue and the weight does the work. This file already
   states that rule for the heritage slogan further down; it applies to every
   accent word on the page, not just that one. */
.accent { color: var(--sky); font-style: normal; }
.accent-blue { color: var(--sw-blue); font-style: normal; }

/* --- Eyebrow: hairline rule + tracked uppercase label --------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--sky);
  white-space: nowrap;
}
.eyebrow::before {
  content: '';
  width: 34px;
  height: 1px;
  background: currentColor;
  opacity: 0.75;
  flex: 0 0 auto;
}
.eyebrow--plain::before { display: none; }

.label {
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--white-42);
}

/* --- Signature (three lines, sentence case, period each) ------------------ */
.signature {
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 2.05;
  /* MEASURED 2026-09-22 (job 18): the three spans read 3.62:1 at both 390
     and 1440 against the 4.5 reading-size floor (11px, so no large-text
     exemption). This rule alone moves off the shared --white-42 token;
     the token itself and its thirty other uses on this page are
     untouched, and nothing else about the page changes. */
  color: rgba(234, 237, 242, 0.62);
  border-left: 1px solid rgba(var(--blue-rgb), 0.45);
  padding-left: 16px;
}
.signature span { display: block; transition: color 0.4s var(--ease-out); }
.signature span.lit { color: var(--sky); }

/* --- Skip link ------------------------------------------------------------ */
.skip {
  position: fixed;
  top: 10px; left: 10px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--sky);
  color: #06080F;
  font-weight: 600;
  font-size: 13px;
  border-radius: var(--radius-md);
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease-out);
}
.skip:focus-visible { transform: translateY(0); }

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ============================================================================
   THE ROOM - one fixed canvas stack behind everything
   ========================================================================= */
#room {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: var(--deep);
}
#room canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
#roomPhoto { z-index: 1; }
#roomSignal { z-index: 2; }
#roomGrade {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 120% 90% at 50% 42%, transparent 0%, transparent 46%, rgba(6,8,15,0.55) 78%, rgba(6,8,15,0.88) 100%),
    linear-gradient(to bottom, rgba(6,8,15,0.55) 0%, transparent 22%, transparent 68%, rgba(6,8,15,0.92) 100%);
}
/* Pointer-following room light - the signal as cursor */
#roomScrim {
  position: absolute; inset: 0; z-index: 3;
  pointer-events: none;
  background: #06080F;
  opacity: 0;
  will-change: opacity;
}
#roomLight {
  position: absolute; inset: 0; z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
  background: radial-gradient(
    420px circle at var(--px, 50%) var(--py, 50%),
    rgba(var(--sky-rgb), 0.085) 0%,
    rgba(var(--blue-rgb), 0.05) 34%,
    transparent 72%);
}
body.pointer-in #roomLight { opacity: 1; }
#room canvas { contain: paint; }

/* Standby state - idle easter egg */
#room.standby #roomPhoto { filter: brightness(0.28) saturate(0.35); transition: filter 1.6s var(--ease-out); }
#roomPhoto { transition: filter 0.9s var(--ease-out); }

/* ============================================================================
   PAGE STACK
   ========================================================================= */
#page { position: relative; z-index: 5; }

.wrap {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* --- Glass plane --------------------------------------------------------- */
.glass {
  position: relative;
  background:
    linear-gradient(155deg, rgba(20, 26, 38, 0.80) 0%, rgba(9, 12, 20, 0.86) 58%, rgba(6, 8, 15, 0.90) 100%);
  border: 1px solid var(--glass-edge);
  border-radius: var(--corner-surface);
  box-shadow:
    0 26px 62px -34px rgba(0, 0, 0, 0.85),
    inset 0 1px 0 rgba(234, 237, 242, 0.07);
  overflow: hidden;
  isolation: isolate;
}
/* Small, rarely-repainted chrome keeps the real blur. */
.glass--blur, #nav .nav-inner, #board, #notes {
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  backdrop-filter: blur(20px) saturate(140%);
}
/* Adaptive opacity - JS raises this when the frame behind is bright */
.glass[data-dense="1"] { background: linear-gradient(155deg, rgba(16, 21, 32, 0.93) 0%, rgba(6, 8, 15, 0.95) 100%); }

/* Under-glass pointer glow */
.glow-host { --mx: 50%; --my: 50%; --gs: 0; position: relative; }
.glow-host > .glow-light {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    340px circle at var(--mx) var(--my),
    rgba(var(--sky-rgb), calc(var(--gs) * 0.16)) 0%,
    rgba(var(--blue-rgb), calc(var(--gs) * 0.09)) 38%,
    transparent 74%);
  transition: opacity 0.35s var(--ease-out);
  mix-blend-mode: screen;
}
.glow-host > * { position: relative; z-index: 1; }
.glow-host > .glow-light { z-index: 0; }

/* --- Buttons ------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.01em;
  color: #fff;
  /* MEASURED 2026-10-06: white on the old SW Blue fill read 4.33:1 against the
     4.5 floor at 14px. THE INK COULD NOT FIX IT. On that fill's own sampled
     range, rgb(75,115,168) to rgb(81,123,181), even pure black ink reaches
     only 4.32 — the fill sat almost exactly on the luminance where neither a
     light nor a dark ink clears 4.5. So the ground moves instead, to the
     brand's deepened blue (--sw-blue-ink). White now reads 5.99 at the light
     end of the gradient and 8.28 at the dark end. Still SW Blue, still a
     gradient, one step deeper. */
  background: linear-gradient(135deg, rgba(var(--blue-ink-rgb), 0.96) 0%, rgba(var(--blue-ink-rgb), 0.74) 100%);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 14px 44px -12px rgba(var(--blue-rgb), 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  cursor: pointer;
}
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 34%, rgba(255,255,255,0.42) 48%, rgba(255,255,255,0.62) 50%, rgba(255,255,255,0.42) 52%, transparent 66%);
  background-size: 220% 100%;
  background-position: 210% 0;
  animation: sweep 8s var(--ease-out) infinite;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 20px 56px -12px rgba(var(--blue-rgb), 0.75), inset 0 1px 0 rgba(255,255,255,0.34); }
.btn:active { transform: translateY(0); }
@keyframes sweep { 0%, 72% { background-position: 210% 0; } 100% { background-position: -110% 0; } }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 14px;
  color: var(--soft-white);
  background: rgba(234, 237, 242, 0.05);
  border: 1px solid var(--hairline);
  transition: background 0.3s var(--ease-out), border-color 0.3s var(--ease-out), transform 0.3s var(--ease-out);
}
.btn-ghost:hover { background: rgba(var(--sky-rgb), 0.08); border-color: rgba(var(--sky-rgb), 0.34); transform: translateY(-2px); }

/* Text link with underline that draws */
.link-draw {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sky);
  padding: 12px 0;
  position: relative;
}
.link-draw::after {
  content: '';
  position: absolute;
  left: 0; bottom: 8px;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0.22);
  transform-origin: left;
  transition: transform 0.5s var(--ease-out);
}
.link-draw:hover::after, .link-draw:focus-visible::after { transform: scaleX(1); }

/* --- Reveal on scroll ---------------------------------------------------- */
.rv {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease-out), transform 0.85s var(--ease-out);
}
.rv.in { opacity: 1; transform: none; }
.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
.rv-d4 { transition-delay: 0.32s; }
.rv-d5 { transition-delay: 0.40s; }

/* ============================================================================
   NAVIGATION - floating glass island + signal compass
   ========================================================================= */
#nav {
  position: fixed;
  top: 14px;
  left: 0; right: 0;
  z-index: 200;
  padding: 0 var(--gutter);
  pointer-events: none;
  opacity: 0;
  transform: translateY(-130%);
  /* visibility, not just opacity: an island that is faded out (or parked off
     screen on a phone) must not be in the tab order, or focus lands on seven
     controls nobody can see. It flips after the fade-out and before the fade-in. */
  visibility: hidden;
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out), visibility 0s linear 0.6s;
}
#nav.show { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 10px 0 22px;
  background: rgba(6, 8, 15, 0.72);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
  border: 1px solid var(--hairline);
  border-radius: var(--corner-control); /* the floating nav bar is a control */
  box-shadow: 0 22px 60px -24px rgba(0,0,0,0.9);
}
.nav-mark {
  display: flex;
  align-items: baseline;
  gap: 9px;
  min-height: 44px;
  padding: 12px 0;
  flex: 0 0 auto;
  min-width: 0;
}
.nav-mark b {
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.03em;
  color: var(--soft-white);
}
.nav-mark i {
  font-style: normal;
  font-weight: 600;
  font-size: 9.5px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--white-42);
  white-space: nowrap;
}
.nav-spacer { flex: 1 1 auto; }

/* Signal compass */
#compass {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
  padding: 4px;
  background: rgba(234, 237, 242, 0.035);
  border: 1px solid var(--hairline-soft);
  border-radius: var(--radius-md);
}
.cmp {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 15px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white-42);
  white-space: nowrap;
  transition: color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.cmp .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--white-26);
  flex: 0 0 auto;
  transition: background 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.cmp:hover { color: var(--soft-white); background: rgba(234,237,242,0.05); }
.cmp[data-visited="1"] .dot { background: rgba(var(--blue-rgb), 0.85); }
.cmp[aria-current="true"] { color: #06080F; background: var(--sky); }
.cmp[aria-current="true"] .dot { background: #06080F; box-shadow: 0 0 0 3px rgba(6,8,15,0.18); }

.nav-cta { flex: 0 0 auto; }
.nav-cta .btn { min-height: 40px; padding: 10px 20px; font-size: 12.5px; }

@media (max-width: 900px) {
  #nav { top: auto; bottom: 12px; }
  #nav.show { transform: none; }
  #nav { transform: translateY(130%); }
  .nav-inner { height: 56px; padding: 0 8px 0 16px; gap: 10px; }
  .nav-mark i { display: none; }
  .nav-cta { display: none; }
  #compass { flex: 1 1 auto; justify-content: space-between; }
  .cmp { padding: 0 10px; font-size: 10px; letter-spacing: 0.1em; height: 40px; }
}

/* ============================================================================
   SCENE 1 - HERO / OPENING SUPER SEQUENCE
   ========================================================================= */
#hero { position: relative; }
.hero-track { height: 460vh; }     /* the scroll runway for the six beats */
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  overflow: hidden;
}
.hero-copy {
  padding: 0 var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  align-self: center;
}
.hero-plane {
  max-width: 800px;
  padding: clamp(26px, 3.4vw, 52px);
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}
.hero-plane.in { opacity: 1; transform: none; }
.hero-plane .display { margin: 18px 0 20px; font-size: clamp(33px, 4.6vw, 74px); }
.hero-plane .lede { max-width: 46ch; }
.hero-plane .signature { margin-top: 26px; }

/* Beat readout - the room narrating itself */
.beat-rail {
  position: absolute;
  left: var(--gutter);
  top: 50%;
  transform: translateY(-50%);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 2px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
}
.beat-rail.on { opacity: 1; }
.beat-rail.hide { opacity: 0; }
.beat-rail li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 30px;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white-26);
  transition: color 0.4s var(--ease-out);
}
.beat-rail li::before {
  content: '';
  width: 18px; height: 1px;
  background: currentColor;
  transition: width 0.5s var(--ease-out), background 0.4s var(--ease-out);
}
.beat-rail li.on { color: var(--sky); }
.beat-rail li.on::before { width: 40px; }
.beat-rail li.done { color: rgba(var(--blue-rgb), 0.7); }

.hero-foot {
  position: relative;
  z-index: 6;
  padding: 0 var(--gutter) 32px;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.scroll-cue {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--white-42);
}
.scroll-cue .bar {
  width: 54px; height: 1px;
  background: var(--hairline);
  position: relative;
  overflow: hidden;
}
.scroll-cue .bar i {
  position: absolute; inset: 0;
  background: var(--sky);
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
.heritage {
  text-align: right;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--white-26);
  line-height: 1.9;
}
/* Heritage slogan. Brand Guide v0.7 section 03.3: "creativity" is set in Sky on
   dark, UPRIGHT. The italic treatment was retired at v0.5 and the colour alone
   is the brand cue. Do not reintroduce font-style: italic here. */
.heritage em { color: var(--sky); font-style: normal; }

@media (max-width: 900px) {
  .beat-rail { display: none; }
  .heritage { display: none; }
  .hero-track { height: 380vh; }
}

/* ============================================================================
   SCENE 2 - THE JUNCTION: three refractive walls
   ========================================================================= */
#junction { position: relative; padding: clamp(80px, 12vh, 150px) 0 clamp(70px, 10vh, 120px); }
.jx-head { max-width: 620px; margin-bottom: clamp(34px, 5vh, 60px); }
.jx-head .h1 { margin: 16px 0 14px; }

.walls {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.wall {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  min-height: clamp(320px, 46vh, 460px);
  padding: 26px;
  text-align: left;
  border-radius: var(--corner-surface);
  border: 1px solid rgba(234, 237, 242, 0.16);
  background:
    linear-gradient(to top, rgba(6,8,15,0.97) 0%, rgba(6,8,15,0.90) 34%, rgba(9,12,20,0.62) 66%, rgba(12,16,24,0.34) 100%);
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  transition: transform 0.55s var(--ease-out), border-color 0.45s var(--ease-out), box-shadow 0.55s var(--ease-out), opacity 0.45s var(--ease-out);
}
/* refractive facet */
.wall::before {
  content: '';
  position: absolute; inset: -30% -10%;
  z-index: -2;
  background:
    conic-gradient(from var(--fa, 210deg) at 34% 62%,
      rgba(var(--blue-rgb), 0.30) 0deg,
      rgba(var(--sky-rgb), 0.10) 62deg,
      rgba(6,8,15,0) 130deg,
      rgba(var(--blue-rgb), 0.20) 232deg,
      rgba(6,8,15,0) 320deg);
  filter: blur(18px);
  opacity: 0.5;
  transition: opacity 0.6s var(--ease-out), transform 0.9s var(--ease-out);
}
/* the vertical light seam that runs down the wall */
.wall::after {
  content: '';
  position: absolute;
  top: 0; left: 34px;
  width: 1px; height: 100%;
  z-index: -1;
  background: linear-gradient(to bottom, transparent, rgba(var(--sky-rgb), 0.55) 42%, transparent);
  transform: scaleY(0.12);
  transform-origin: top;
  transition: transform 0.7s var(--ease-out), opacity 0.5s var(--ease-out);
  opacity: 0.5;
}
.wall canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; opacity: 0.9; }
.wall:hover, .wall:focus-visible {
  transform: translateY(-6px);
  border-color: rgba(var(--sky-rgb), 0.42);
  box-shadow: 0 40px 90px -40px rgba(var(--blue-rgb), 0.55);
}
.wall:hover::before, .wall:focus-visible::before { opacity: 1; transform: rotate(6deg) scale(1.06); }
.wall:hover::after, .wall:focus-visible::after { transform: scaleY(1); opacity: 1; }
.walls[data-hovering="1"] .wall:not(:hover) { opacity: 0.62; }
.wall .wall-n {
  font-weight: 600; font-size: 10px; letter-spacing: 0.22em;
  /* MEASURED 2026-10-06: the three route labels read 2.12 to 2.17:1 against
     the 4.5 floor (10px, so no large-text exemption), on wall grounds from
     rgb(11,18,26) to rgb(28,45,58). --white-26 is 26% ink; composited over a
     ground that pale it lands almost on it, which is why every wall read the
     same whatever was painted behind it. --text-soft is the dark-ground body
     ink in the shared system and resolves here to 68% of the same white, so
     the hue does not move -- only the weight. Worst wall now 6.41. Like the
     .signature fix above, this rule alone leaves the shared --white-26 token;
     the token and its other uses on this page are untouched. */
  text-transform: uppercase; color: var(--text-soft);
}
.wall .wall-q { font-weight: 800; font-size: clamp(20px, 1.85vw, 28px); line-height: 1.08; letter-spacing: -0.028em; }
.wall .wall-d { font-size: 13.5px; line-height: 1.55; color: var(--white-60); max-width: 30ch; }
/* BASELINE-ALIGN THE THREE CARDS, and the cause is not the artwork. The canvas
   on each wall is position:absolute, so it takes no flow height. .wall is a
   flex column with justify-content: flex-end, so the block rises from the
   bottom and a SHORTER description starts lower. Measured at 1440 before this
   rule: cards one and two carry a three-line description, 63px, and card three
   a two-line one, 42px, so card three's label and heading sat exactly 21px
   below its neighbours (wall-n top 476 against 455). Reserving three lines
   evens the block without touching the design's bottom alignment. Only where
   the cards sit side by side: under 880px .walls is a single column and the
   reserve would just be dead space. */
@media (min-width: 881px) {
  .wall .wall-d { min-height: calc(1.55em * 3); }
}
.wall .wall-go {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 10.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--sky);
  opacity: 0; transform: translateX(-8px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}
.wall:hover .wall-go, .wall:focus-visible .wall-go { opacity: 1; transform: none; }
/* The visited state of the label above. The contrast gate CANNOT see this —
   it is a content state, and the gate lists it under NOT REACHED rather than
   passing it. Measured by hand 2026-10-06 on the worst wall ground,
   rgb(28,45,58): SW Blue at 0.9 read 3.39:1, so the state the gate cannot
   reach was failing while the state it can reach was being fixed.
   --eyebrow-ink-photo is the shared system's ink for a dark panel that paints
   something behind its text, which is exactly what a wall is: it has a canvas
   on it. Reads 8.25 on that ground, and stays blue, so visited still looks
   different from unvisited. */
.wall[data-visited="1"] .wall-n { color: var(--eyebrow-ink-photo); }

@media (max-width: 880px) {
  .walls { grid-template-columns: 1fr; }
  .wall { min-height: 220px; }
  .wall .wall-go { opacity: 1; transform: none; }
}

/* ============================================================================
   ROUTES
   ========================================================================= */
.route {
  display: none;
  position: relative;
  padding: clamp(60px, 9vh, 110px) 0;
}
.route.active { display: block; }
.route-head { max-width: 700px; margin-bottom: clamp(34px, 5vh, 56px); }
.route-head .h1 { margin: 16px 0 16px; }
.route-out {
  margin-top: clamp(40px, 6vh, 72px);
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  padding-top: 30px;
  border-top: 1px solid var(--hairline);
}
.route-out .h2 { max-width: 22ch; }

/* --- IDEA LAB: six activations, each a three-beat scrub ------------------- */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 16px;
}
.act {
  position: relative;
  border-radius: var(--corner-surface);
  border: 1px solid var(--hairline);
  background: var(--card);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s var(--ease-out), box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
.act:hover, .act:focus-within {
  border-color: rgba(var(--sky-rgb), 0.34);
  box-shadow: 0 34px 80px -40px rgba(var(--blue-rgb), 0.6);
  transform: translateY(-3px);
}
.act-view {
  position: relative;
  aspect-ratio: 3 / 2;
  background: #04060B;
  overflow: hidden;
  cursor: ew-resize;
  touch-action: pan-y;
}
.act-view img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  /* beat 1 (waiting) look; JS interpolates toward beat 3 */
  filter: brightness(var(--b, 0.34)) saturate(var(--s, 0.30)) contrast(1.04);
  transform: scale(var(--z, 1.06));
  transition: filter 0.12s linear, transform 0.5s var(--ease-out);
  will-change: filter, transform;
}
.act-view canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.act-beats {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 0 14px 14px;
  pointer-events: none;
}
.act-beats span {
  position: relative;
  padding-top: 11px;
  font-weight: 600; font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--white-26);
  transition: color 0.3s var(--ease-out);
}
.act-beats span::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 2px;
  height: 2px; border-radius: var(--corner-surface);
  background: rgba(234,237,242,0.10);
  overflow: hidden;
}
.act-beats span::after {
  content: '';
  position: absolute; top: 0; left: 0;
  height: 2px; border-radius: var(--corner-surface);
  width: calc(var(--f, 0) * 100%);
  background: var(--sky);
  box-shadow: 0 0 10px rgba(var(--sky-rgb), 0.7);
}
.act-beats span.on { color: var(--sky); }
.act-hint {
  position: absolute; top: 14px; right: 14px; z-index: 3;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  border-radius: var(--corner-surface);
  background: rgba(6,8,15,0.78);
  border: 1px solid var(--hairline);
  font-weight: 600; font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--white-60);
  opacity: 1; transition: opacity 0.4s var(--ease-out);
  pointer-events: none;
}
.act[data-touched="1"] .act-hint { opacity: 0; }

.act-body { padding: 20px 22px 22px; }
.act-body .h3 { margin-bottom: 10px; }
.act-scrub {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 44px;
  background: none; margin: 2px 0 0; cursor: ew-resize;
  display: block;
}
.act-scrub::-webkit-slider-runnable-track { height: 2px; background: rgba(234,237,242,0.12); border-radius: var(--corner-surface); }
.act-scrub::-moz-range-track { height: 2px; background: rgba(234,237,242,0.12); border-radius: var(--corner-surface); }
.act-scrub::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 14px; height: 14px; margin-top: -6px;
  border-radius: 50%; background: var(--sky);
  border: 3px solid #06080F;
  box-shadow: 0 0 0 1px rgba(var(--sky-rgb),0.5), 0 0 16px rgba(var(--sky-rgb),0.8);
}
.act-scrub::-moz-range-thumb {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--sky); border: 3px solid #06080F;
  box-shadow: 0 0 0 1px rgba(var(--sky-rgb),0.5), 0 0 16px rgba(var(--sky-rgb),0.8);
}

/* Annotations that write themselves in */
.annos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--hairline-soft);
}
.annos div {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--hairline-soft);
  transition: border-color 0.4s var(--ease-out);
}
.act.rv .annos div { opacity: 0; transform: translateY(6px); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out), border-color 0.4s var(--ease-out); }
.act.rv.in .annos div { opacity: 1; transform: none; }
.act.rv.in .annos div:nth-child(2) { transition-delay: 0.04s; }
.act.rv.in .annos div:nth-child(3) { transition-delay: 0.08s; }
.act.rv.in .annos div:nth-child(4) { transition-delay: 0.12s; }
.act.rv.in .annos div:nth-child(5) { transition-delay: 0.16s; }
.act.rv.in .annos div:nth-child(6) { transition-delay: 0.20s; }
.act.rv.in .annos div:nth-child(7) { transition-delay: 0.24s; }
.act.lit .annos div { border-color: rgba(var(--sky-rgb), 0.16); }
.annos dt, .annos b {
  font-weight: 600; font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--white-26); white-space: nowrap;
}
.annos i { font-style: normal; font-size: 12px; color: var(--soft-white); text-align: right; }

.act-save {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px; min-height: 44px;
  padding: 11px 18px; border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: rgba(234,237,242,0.03);
  font-weight: 600; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--soft-white);
  transition: all 0.35s var(--ease-out);
}
.act-save .tick {
  width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--white-26);
  display: grid; place-items: center;
  font-size: 9px; color: transparent;
  transition: all 0.3s var(--ease-out);
}
.act-save:hover { border-color: rgba(var(--sky-rgb), 0.4); background: rgba(var(--sky-rgb), 0.07); }
.act-save[aria-pressed="true"] { border-color: rgba(var(--sky-rgb), 0.55); background: rgba(var(--sky-rgb), 0.1); color: var(--sky); }
.act-save[aria-pressed="true"] .tick { background: var(--sky); border-color: var(--sky); color: #06080F; }

/* --- Working board (persistent floor rail) -------------------------------- */
#board {
  visibility: hidden;
  position: fixed;
  right: var(--gutter);
  bottom: 22px;
  z-index: 190;
  width: min(272px, calc(100vw - 2 * var(--gutter) - 60px));
  border-radius: var(--corner-surface);
  opacity: 0; transform: translateY(20px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}
#board.show { opacity: 1; transform: none; pointer-events: auto; }
.board-hd {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  width: 100%;
}
.board-hd .label { color: var(--sky); }
.board-hd .cnt { font-weight: 700; font-size: 12px; color: var(--soft-white); font-variant-numeric: tabular-nums; }
.board-slots { display: flex; gap: 5px; padding: 0 16px 14px; }
.board-slots i {
  flex: 1 1 0; height: 3px; border-radius: var(--corner-surface);
  background: rgba(234,237,242,0.10);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.board-slots i.on { background: var(--sky); box-shadow: 0 0 12px rgba(var(--sky-rgb), 0.8); }
.board-list { display: none; padding: 0 16px 16px; }
#board.open .board-list { display: block; }
.board-list li {
  list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--hairline-soft);
  font-size: 12.5px;
}
.board-list button {
  min-width: 44px; min-height: 44px;
  border-radius: 50%; color: var(--white-42);
  font-size: 14px; line-height: 1;
  transition: color 0.3s, background 0.3s;
}
.board-list button:hover { color: var(--sky); background: rgba(var(--sky-rgb),0.1); }
.board-empty { font-size: 12.5px; color: var(--white-42); padding-top: 10px; border-top: 1px solid var(--hairline-soft); }

@media (max-width: 900px) {
  #board { right: 12px; left: auto; bottom: 80px; width: 176px; }
  #board.open { width: min(300px, calc(100vw - 24px)); }
  .board-hd { padding: 12px 14px; }
  .board-slots { padding: 0 14px 12px; }
}

/* --- WORKSHOP: a live plan drawing -------------------------------------- */
.shop {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  align-items: stretch;
}
.plan-wrap {
  position: sticky;
  top: calc(var(--nav-h) + 30px);
  align-self: start;
  height: min(62vh, 560px);
  border-radius: var(--corner-surface);
  border: 1px solid var(--hairline);
  background: linear-gradient(160deg, #080B13 0%, #05070C 100%);
  overflow: hidden;
}
.plan-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.plan-tag {
  position: absolute; top: 16px; left: 18px; z-index: 2;
  font-weight: 600; font-size: 9.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--white-26);
}
.plan-state {
  position: absolute; bottom: 16px; left: 18px; right: 18px; z-index: 2;
  display: flex; flex-wrap: wrap; gap: 6px;
}
.plan-state span {
  padding: 6px 11px; border-radius: var(--corner-surface);
  background: rgba(6,8,15,0.7);
  border: 1px solid var(--hairline);
  font-weight: 600; font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--white-42);
}
.plan-state span.on { color: var(--sky); border-color: rgba(var(--sky-rgb),0.35); background: rgba(var(--sky-rgb),0.08); }

.stages { display: flex; flex-direction: column; gap: 10px; }
.stage {
  border-radius: var(--corner-surface);
  border: 1px solid var(--hairline);
  background: rgba(15, 19, 29, 0.86);
  padding: 16px 18px;
  transition: border-color 0.4s var(--ease-out), background 0.4s var(--ease-out), opacity 0.4s var(--ease-out);
}
.stage[data-locked="1"] { opacity: 0.42; }
.stage.current { border-color: rgba(var(--sky-rgb), 0.42); background: rgba(17,21,32,0.9); }
.stage-hd { display: flex; align-items: center; gap: 11px; margin-bottom: 12px; }
.stage-hd .n {
  width: 22px; height: 22px; flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid var(--white-26);
  display: grid; place-items: center;
  font-weight: 700; font-size: 10px; color: var(--white-42);
  transition: all 0.35s var(--ease-out);
}
.stage.done .stage-hd .n { background: var(--sw-blue); border-color: var(--sw-blue); color: #fff; }
.stage.current .stage-hd .n { border-color: var(--sky); color: var(--sky); box-shadow: 0 0 0 4px rgba(var(--sky-rgb),0.12); }
.stage-hd h4 { font-weight: 700; font-size: 14px; letter-spacing: -0.012em; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  min-height: 44px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline);
  background: rgba(234,237,242,0.025);
  font-size: 12.5px;
  color: var(--white-60);
  transition: all 0.3s var(--ease-out);
}
.chip:hover { color: var(--soft-white); border-color: rgba(var(--sky-rgb),0.32); background: rgba(var(--sky-rgb),0.06); transform: translateY(-1px); }
.chip[aria-pressed="true"], .chip.on {
  color: #06080F; background: var(--sky); border-color: var(--sky); font-weight: 600;
}
.chip.testing { color: var(--sky); border-color: rgba(var(--sky-rgb),0.5); background: rgba(var(--sky-rgb),0.08); }
.stage-note { font-size: 12px; color: var(--white-42); margin-top: 11px; line-height: 1.5; }

.brief {
  margin-top: 14px;
  border-radius: var(--corner-surface);
  border: 1px solid rgba(var(--blue-rgb), 0.28);
  background: rgba(var(--blue-rgb), 0.05);
  padding: 18px 20px;
}
.brief .label { color: var(--sky); }
.brief ol { margin: 12px 0 0; padding: 0; }
.brief li {
  list-style: none;
  display: flex; align-items: baseline; gap: 10px;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--white-42);
  transition: color 0.4s var(--ease-out);
}
.brief li::before {
  content: '';
  width: 5px; height: 5px; border-radius: 50%; flex: 0 0 auto;
  background: var(--white-26);
  transform: translateY(-2px);
  transition: background 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.brief li.on { color: var(--soft-white); }
.brief li.on::before { background: var(--sky); box-shadow: 0 0 10px rgba(var(--sky-rgb),0.8); }

@media (max-width: 1000px) {
  .shop { grid-template-columns: 1fr; }
  .plan-wrap { position: relative; top: auto; height: 320px; order: -1; }
}

/* --- CONTROL ROOM: arm the layers, run the show ------------------------- */
.ctrl {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 16px;
}
.layers { display: flex; flex-direction: column; gap: 6px; }
.layer {
  position: relative;
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 10px 18px 10px 14px;
  border-radius: var(--corner-surface);
  border: 1px solid var(--hairline);
  background: rgba(17,21,32,0.55);
  text-align: left;
  overflow: hidden;
  transition: all 0.35s var(--ease-out);
}
.layer::after {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: var(--sky);
  transform: scaleY(0); transform-origin: center;
  transition: transform 0.45s var(--ease-out);
}
.layer:hover { border-color: rgba(var(--sky-rgb),0.3); background: rgba(17,21,32,0.85); }
.layer .ln { font-weight: 700; font-size: 10px; color: var(--white-26); font-variant-numeric: tabular-nums; }
.layer .lt { font-weight: 600; font-size: 13.5px; }
.layer .lv {
  font-weight: 600; font-size: 9px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--white-26);
  transition: color 0.35s var(--ease-out);
}
.layer[aria-pressed="true"] { border-color: rgba(var(--sky-rgb),0.4); background: rgba(var(--sky-rgb),0.06); }
.layer[aria-pressed="true"]::after { transform: scaleY(1); }
.layer[aria-pressed="true"] .ln { color: var(--sky); }
.layer[aria-pressed="true"] .lv { color: var(--sky); }
.layer[data-fault="1"] { border-color: rgba(255, 176, 92, 0.55); background: rgba(255, 176, 92, 0.07); }
.layer[data-fault="1"]::after { background: #FFB05C; transform: scaleY(1); }
.layer[data-fault="1"] .lv { color: #FFB05C; }
.layer[data-recovered="1"] { border-color: rgba(var(--blue-rgb),0.5); }
.layer[data-recovered="1"]::after { background: var(--sw-blue); }
.layer[data-recovered="1"] .lv { color: var(--sw-blue); }

.chain-wrap {
  position: relative;
  border-radius: var(--corner-surface);
  border: 1px solid var(--hairline);
  background: linear-gradient(160deg, #080B13 0%, #05070C 100%);
  overflow: hidden;
  min-height: clamp(340px, 50vh, 520px);
}
.chain-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.chain-hd {
  position: absolute; top: 0; left: 0; right: 0; z-index: 2;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px;
}
.chain-hd .label { color: var(--white-26); }
.status {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--corner-surface);
  background: rgba(6,8,15,0.7);
  border: 1px solid var(--hairline);
  font-weight: 600; font-size: 9.5px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--white-42);
  transition: all 0.4s var(--ease-out);
}
.status .led { width: 6px; height: 6px; border-radius: 50%; background: var(--white-26); transition: all 0.4s; }
.status[data-s="armed"] { color: var(--sky); border-color: rgba(var(--sky-rgb),0.35); }
.status[data-s="armed"] .led { background: var(--sky); box-shadow: 0 0 10px rgba(var(--sky-rgb),0.9); }
.status[data-s="live"] { color: #06080F; background: var(--sky); border-color: var(--sky); }
.status[data-s="live"] .led { background: #06080F; }
.status[data-s="fault"] { color: #FFB05C; border-color: rgba(255,176,92,0.45); background: rgba(255,176,92,0.08); }
.status[data-s="fault"] .led { background: #FFB05C; box-shadow: 0 0 10px rgba(255,176,92,0.9); }
.chain-ft {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 2;
  padding: 16px 18px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  justify-content: space-between;
}
.chain-msg { font-size: 12.5px; color: var(--white-60); max-width: 44ch; line-height: 1.5; }
.chain-msg strong { color: var(--sky); font-weight: 600; }

.loadin { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.loadin span {
  padding: 7px 12px; border-radius: var(--corner-surface);
  border: 1px solid var(--hairline-soft);
  font-weight: 600; font-size: 9px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--white-26);
  transition: all 0.4s var(--ease-out);
}
.loadin span.on { color: var(--sw-blue); border-color: rgba(var(--blue-rgb),0.4); }

@media (max-width: 1000px) {
  .ctrl { grid-template-columns: 1fr; }
  .chain-wrap { min-height: 280px; }
}

/* ============================================================================
   CONVERGENCE + CTA
   ========================================================================= */
#converge { position: relative; padding: clamp(80px, 12vh, 160px) 0 0; }
.cv-room {
  position: relative;
  border-radius: var(--corner-surface);
  overflow: hidden;
  border: 1px solid var(--hairline);
  aspect-ratio: 16 / 9;
  background: #04060B;
}
.cv-room img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover;
  filter: brightness(0.5) saturate(0.7);
  transform: scale(1.04);
  transition: filter 1.6s var(--ease-out), transform 2.2s var(--ease-out);
}
.cv-room.lit img { filter: none; transform: scale(1); }
.cv-room canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.cv-room .cv-copy {
  position: absolute; inset: auto 0 0 0; z-index: 2;
  padding: clamp(24px, 4vw, 54px);
  background: linear-gradient(to top, rgba(6,8,15,0.92), transparent);
}
.cv-room .cv-copy .h1 { max-width: 20ch; }
.cv-pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.cv-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  pointer-events: auto;
}
.cv-pin i {
  display: block; width: 10px; height: 10px; border-radius: 50%;
  background: var(--sky);
  box-shadow: 0 0 0 4px rgba(var(--sky-rgb),0.18), 0 0 18px rgba(var(--sky-rgb),0.9);
  animation: pin 2.8s var(--ease-out) infinite;
}
@keyframes pin { 0%,100% { box-shadow: 0 0 0 4px rgba(var(--sky-rgb),0.18), 0 0 18px rgba(var(--sky-rgb),0.7); } 50% { box-shadow: 0 0 0 9px rgba(var(--sky-rgb),0.06), 0 0 26px rgba(var(--sky-rgb),1); } }
.cv-pin b {
  position: absolute; left: 18px; top: -8px;
  white-space: nowrap;
  padding: 6px 11px; border-radius: var(--corner-surface);
  background: rgba(6,8,15,0.92);
  border: 1px solid rgba(var(--sky-rgb),0.3);
  font-weight: 600; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sky);
  opacity: 0; transform: translateX(-6px);
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.cv-pin:hover b, .cv-pin:focus-within b { opacity: 1; transform: none; }

.summary {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 1px;
  background: var(--hairline-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--corner-surface);
  overflow: hidden;
}
.summary div { background: var(--deep); padding: 20px 22px; }
.summary .label { display: block; margin-bottom: 9px; }
.summary p { font-size: 13.5px; line-height: 1.55; color: var(--soft-white); }
.summary p.none { color: var(--white-26); }

/* --- Evidence strip ----------------------------------------------------- */
.evidence { margin-top: clamp(50px, 8vh, 96px); }
.ev-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 12px;
  margin-top: 24px;
}
.ev {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--corner-surface);
  border: 1px solid var(--hairline);
  overflow: hidden;
  background: var(--card);
}
.ev canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Direct child only. The caption spans live inside figcaption and set their
   own type: a descendant selector here absolutely positions all of them on
   top of each other. */
.ev > span {
  position: absolute; left: 14px; right: 14px; bottom: 13px; z-index: 2;
  font-weight: 600; font-size: 9px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--white-60);
}

/* --- Final CTA ---------------------------------------------------------- */
#cta { position: relative; padding: clamp(80px, 13vh, 170px) 0 clamp(60px, 9vh, 110px); }
.cta-plane { padding: clamp(30px, 5vw, 68px); }
.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: start;
}
.cta-plane .display { margin: 18px 0 22px; }
.cta-plane .lede { max-width: 40ch; }

.form-row { display: grid; gap: 12px; }
.field { position: relative; }
.field label {
  display: block; margin-bottom: 7px;
  font-weight: 600; font-size: 9.5px; letter-spacing: 0.17em;
  /* MEASURED 2026-10-06: Email, Name, Company and Project timing read 3.60 to
     3.63:1 against 4.5 on the form's own ground, rgb(8,10,19) to rgb(12,16,25)
     -- the glass plane over the page, not a declared colour. The "(required)"
     span inherits from this rule and was failing at 3.64 with them, so it is
     fixed here rather than separately. --text-soft, same white one step
     heavier: worst now 7.82. The shared --white-42 token is untouched. */
  text-transform: uppercase; color: var(--text-soft);
}
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 13px 16px;
  font: inherit; font-size: 14px;
  color: var(--soft-white);
  background: rgba(234,237,242,0.035);
  border: 1px solid var(--hairline);
  border-radius: var(--corner-control);
  transition: border-color 0.3s var(--ease-out), background 0.3s var(--ease-out);
}
.field textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus {
  border-color: rgba(var(--sky-rgb), 0.5);
  background: rgba(var(--sky-rgb), 0.05);
}
.field input::placeholder, .field textarea::placeholder { color: var(--white-26); }
.field select { appearance: none; cursor: pointer; }
/* MEASURED 2026-10-06: 3.60:1 against 4.5 on rgb(8,10,18) to rgb(8,11,20).
   Same move as the labels above, same reason, token untouched. */
.form-note { font-size: 12px; color: var(--text-soft); margin-top: 4px; line-height: 1.5; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 6px; }
.form-msg { font-size: 13px; color: var(--sky); }
.form-msg[data-err="1"] { color: #FFB05C; }

@media (max-width: 900px) { .cta-grid { grid-template-columns: 1fr; } }

/* --- Footer ------------------------------------------------------------- */
/* SCOPED 2026-10-22. This was a bare `footer` element selector, and what it
   styles is the SHARED site footer, not anything this page renders: the footer
   is a sibling of <main>, so it sits outside this page's slot entirely. It
   applied only because this sheet is global and only this page links it, and it
   won nothing by right -- at (0,0,1) it loses to any component rule, so it took
   effect purely because Footer.astro happens not to declare these four
   properties. It would also have matched any other <footer> this page gained.

   `body.experiential` is the nearest root containing both <main> and the
   footer; BaseLayout takes a bodyClass for it. The four declarations are
   unchanged, and the footer's computed padding is verified identical at 390,
   768 and 1440, so this is a scoping change and not a visual one. */
body.experiential footer {
  position: relative; z-index: 5;
  border-top: 1px solid var(--hairline);
  padding: 32px 0;
  background: var(--deep);
}
.ft {
  display: flex; flex-wrap: wrap; gap: 18px;
  align-items: center; justify-content: space-between;
  font-size: 12px; color: var(--white-26);
}
.ft nav { display: flex; flex-wrap: wrap; gap: 8px; }
.ft nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 12px; }
.ft nav a { color: var(--white-42); font-size: 12px; }
.ft nav a:hover { color: var(--sky); }

/* ============================================================================
   OPERATOR NOTES - discoverability panel for the hidden interactions
   ========================================================================= */
/* Lives in the navigation island, so it is operable wherever the island is. */
#notesBtn {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(234, 237, 242, 0.035);
  border: 1px solid var(--hairline-soft);
  color: var(--white-42);
  font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
  transition: color 0.3s var(--ease-out), border-color 0.3s var(--ease-out),
              background 0.3s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
#notes {
  visibility: hidden;
  position: fixed;
  right: var(--gutter); top: calc(var(--nav-h) + 26px); z-index: 196;
  width: min(348px, calc(100vw - 2 * var(--gutter)));
  border-radius: var(--corner-surface);
  padding: 20px 22px;
  opacity: 0; transform: translateY(-10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}

#notes .label { color: var(--sky); }
#notes ul { margin: 14px 0 0; padding: 0; }
#notes li {
  list-style: none;
  display: grid; grid-template-columns: 66px 1fr; gap: 12px;
  padding: 7px 0;
  border-top: 1px solid var(--hairline-soft);
  font-size: 12px; color: var(--white-60); line-height: 1.45;
}
#notes li b {
  font-weight: 600; font-size: 9px; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--white-26);
  padding-top: 2px;
}
#notes li.found b { color: var(--sky); }
#notes .found-cnt { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  #notes { left: 12px; right: 12px; top: auto; bottom: 136px; width: auto; transform: translateY(10px) scale(0.98); }
}

/* ============================================================================
   MOTION + LITE CONTROLS
   ========================================================================= */
#prefs {
  display: flex; gap: 6px; flex-wrap: wrap;
  margin: 12px 0 4px;
}
.pref {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 10px 16px;
  border-radius: var(--radius-md);
  background: rgba(234,237,242,0.04);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--hairline);
  font-weight: 600; font-size: 9.5px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--white-42);
  transition: all 0.35s var(--ease-out);
}
.pref:hover { color: var(--soft-white); border-color: rgba(var(--sky-rgb),0.3); }
.pref[aria-pressed="true"] { color: var(--sky); border-color: rgba(var(--sky-rgb),0.42); background: rgba(var(--sky-rgb),0.08); }


/* ============================================================================
   REDUCED MOTION - static, comprehensible, zero running loops
   ========================================================================= */
body.reduced *, body.reduced *::before, body.reduced *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}
body.reduced .rv { opacity: 1; transform: none; }
body.reduced .hero-plane { opacity: 1; transform: none; }
body.reduced .hero-track { height: auto; }
body.reduced .hero-stage { position: relative; height: auto; min-height: auto; padding: 132px 0 40px; }
body.reduced #roomLight { display: none; }
body.reduced .cv-pin i { animation: none; }
body.reduced .btn::before { display: none; }
body.reduced .act-view { cursor: default; }
body.reduced .act-view img { filter: brightness(0.92) saturate(0.98) contrast(1.02); transform: none; }
body.reduced #room { position: absolute; height: 100vh; }
body.reduced .annos div { opacity: 1; transform: none; }
body.reduced .plan-wrap, body.reduced .chain-wrap { min-height: 300px; }
