/* ============================================================
   Voice of Life — styles v2
   Hero (video + wordmark) · Statement · globals
   Type: Playfair Display (display) + Crimson Pro (body)
   ============================================================ */

@font-face {
  font-family: "Michroma";
  src: url("../assets/fonts/Michroma-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --cream: #f4efe7;
  --cream-soft: rgba(244, 239, 231, 0.82);
  --ink: #1a1714;
  --ink-soft: #3d3730;
  --brass: #b98a44;
  --dusk: #e8892b;

  --font-serif: "Playfair Display", Georgia, serif;
  --font-body: "Crimson Pro", Georgia, serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ===== Nav — retired at client request; markup kept for later ===== */
.nav { display: none !important; }

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.6rem clamp(1.5rem, 4vw, 3.5rem);
  pointer-events: none; /* enabled by JS once visible */
}

.nav__wordmark {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav__cta {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid rgba(26, 23, 20, 0.25);
  border-radius: 999px;
  padding: 0.5em 1.3em;
  transition: border-color 0.4s ease, color 0.4s ease;
  cursor: default; /* placeholder until App Store URL exists */
}

.nav__cta:hover {
  border-color: var(--brass);
  color: var(--brass);
}

/* ===== S1 · Hero — video + wordmark ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100lvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero__media { position: absolute; inset: 0; }

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* very light veil so the wordmark holds against bright cloud */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 50%,
      rgba(244, 239, 231, 0.35) 0%,
      rgba(244, 239, 231, 0.12) 55%,
      rgba(244, 239, 231, 0) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* glow, halos and shadow are BAKED into the PNG — no runtime filters
   (iOS Safari renders animated filters as solid boxes) */
.hero__wordmark-wrap {
  position: relative;
  width: clamp(230px, 34vw, 420px);
}

/* plain image — always visible, no dependencies */
.hero__wordmark {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Scroll cue ===== */
.hero__scrollcue {
  position: absolute;
  bottom: 2.2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.hero__scrollcue-line {
  display: block;
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, transparent, var(--brass));
  transform-origin: top;
}

/* ===== S2 · Statement — pinned canvas scrub scene ===== */
.statement {
  position: relative;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  /* matches the explode-video's soft radial cream vignette */
  background: radial-gradient(ellipse 85% 75% at 50% 25%,
    #f9fcf6 0%, #f2f1e5 50%, #e9e4d8 100%);
  --vol-mesh: 0.225;
}

.statement__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1; /* solid mic sits ABOVE the plexus film */
}

/* plexus film (alpha webm), right side only —
   fades in as the pencil drifts right (GSAP drives opacity up to --vol-mesh) */
.statement__mesh {
  position: absolute;
  inset: 0;
  z-index: 0; /* behind the mic canvas */
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: multiply; /* white background disappears into the cream */
  -webkit-mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 68%);
  mask-image: linear-gradient(to left, rgba(0,0,0,1) 30%, rgba(0,0,0,0) 68%);
}

/* soft dark gradient over the mic side, fading right-to-left */
.statement::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(to left,
    rgba(26, 23, 20, var(--vol-grad, 0.23)) 0%,
    rgba(26, 23, 20, 0) 58%);
}

/* fine paper grain so the cream doesn't read as flat digital white */
.statement::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: var(--vol-grain, 0.035);
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
}

/* graphite plate — fades in as the dive completes */
.statement__dive {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  opacity: 0;
  pointer-events: none;
}

/* text block: left editorial column on desktop */
.statement__inner {
  position: absolute;
  z-index: 3;
  top: 50%;
  transform: translateY(-50%);
  left: clamp(1.5rem, 7vw, 7rem);
  max-width: min(34rem, 44vw);
  text-align: left;
}

.statement__headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
}

.statement__words {
  margin-top: 1.4rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--ink-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.3em 0.6em;
}

.statement__support {
  margin-top: 2.2rem;
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  font-weight: 400;
  color: var(--ink-soft);
}

.statement__subline {
  margin-top: 0.4rem;
  font-family: var(--font-body);
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: var(--ink-soft);
}

.statement__micro {
  margin-top: 2.2rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--brass);
}

/* tuned values (desktop) — from live tuning session 2026-07-08 */
@media (min-width: 761px) {
  .statement__headline {
    font-size: 90px;
    letter-spacing: -0.6px;
    line-height: 1.08;
  }
  .statement__words {
    font-size: 20.8px;
    letter-spacing: 0;
    line-height: 1.4;
    margin-top: 22px;
  }
  .statement__support {
    font-size: 22.5px;
    letter-spacing: -0.8px;
    line-height: 1.0;
    margin-top: 81px;
    font-weight: 300;
  }
  .statement__subline {
    font-size: 22.5px;
    letter-spacing: -0.8px;
    line-height: 0.9;
    margin-top: 3px;
    font-weight: 300;
  }
  .statement__micro {
    font-size: 33px;
    letter-spacing: -1.7px;
    line-height: 1.4;
    margin-top: 81px;
    font-weight: 300;
  }
}

/* mobile: mic in the upper half, text owns the lower half */
@media (max-width: 760px) {
  .statement__inner {
    left: 1.2rem;
    right: 1.2rem;
    max-width: none;
    top: auto;
    bottom: 9vh; /* clear of the iOS toolbar zone */
    transform: none;
    text-align: center;
  }
  .statement__headline { font-size: clamp(1.9rem, 8.5vw, 2.5rem); }
  .statement__words {
    justify-content: center;
    font-size: 0.95rem;
    gap: 0.25em 0.5em;
    margin-top: 0.9rem;
  }
  .statement__support { margin-top: 1.2rem; font-size: 1.05rem; }
  .statement__subline { margin-top: 0.35rem; font-size: 0.95rem; }
  .statement__micro { margin-top: 1.1rem; font-size: 1.05rem; letter-spacing: -0.3px; }

  /* compact nav: one line, no wrapping */
  .nav { padding: 1rem 1.1rem; }
  .nav__wordmark { font-size: 1rem; white-space: nowrap; }
  .nav__cta {
    font-size: 0.62rem;
    padding: 0.45em 0.9em;
    white-space: nowrap;
    letter-spacing: 0.05em;
  }
}

/* animated elements start hidden — JS reveals them */
.js .hero__wordmark-wrap,
.js .nav__wordmark,
.js .nav__cta,
.js .statement__headline,
.js .statement__word,
.js .statement__support,
.js .statement__subline,
.js .statement__micro {
  opacity: 0;
}

/* ===== Generic sections (stubs, styled per-section later) ===== */
.section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1.5rem;
}

.section__inner {
  max-width: 44rem;
  text-align: center;
}

.section__inner--narrow { max-width: 36rem; }

.section h2 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  line-height: 1.2;
  margin-bottom: 2rem;
}

.section p {
  font-weight: 300;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}

.turnline {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.2rem, 2.4vw, 1.6rem) !important;
  color: var(--brass);
  margin: 2.4rem 0 !important;
}

/* The Gap — inside the book. Pinned scene, three beats. */
.section--gap {
  position: relative;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  background: #000; /* pure black — continuous with the dive and the film */
  color: var(--cream);
}

.gap__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.gap__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #080706;
  opacity: 0;
  pointer-events: none;
}

.gap__glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: radial-gradient(ellipse 75% 60% at 50% 62%,
    rgba(185, 138, 68, 0.22) 0%, rgba(185, 138, 68, 0) 65%);
  opacity: 0;
  pointer-events: none;
}

.gap__beat {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  opacity: 0;
}

.gap__beat h2 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--cream);
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.65);
}

.gap__closeup {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--cream);
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.65);
}

.gap__turn {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.9rem, 4vw, 3.5rem);
  color: #e9c887; /* brighter brass so it lifts off the blur */
  text-shadow:
    0 0 16px rgba(233, 200, 135, 0.55),
    0 0 42px rgba(217, 179, 108, 0.35),
    0 0 90px rgba(217, 179, 108, 0.2),
    0 2px 22px rgba(0, 0, 0, 0.55);
}

.gap__support {
  margin-top: 1.6rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.65;
  max-width: 36rem;
  color: rgba(244, 239, 231, 0.85);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.55);
}

/* ===== S4 · The Problem — paper storm, native sticky ===== */
.problem {
  position: relative;
  background: #000;
  --prob-pool: 0.5;  /* radial darkness behind the words */
  --prob-dim: 0.3;   /* overall dim of the storm */
}

.problem__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
}

.problem__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.problem__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 64% 44% at 50% 50%,
      rgba(0, 0, 0, var(--prob-pool)) 0%, rgba(0, 0, 0, 0) 72%),
    linear-gradient(rgba(0, 0, 0, var(--prob-dim)), rgba(0, 0, 0, var(--prob-dim)));
}

.problem__beats {
  position: relative;
  margin-top: -100vh;
  margin-top: -100lvh;
}

.problem__beat {
  min-height: 100vh;
  min-height: 100lvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

.problem__beat h2 {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 20ch;
  color: var(--cream);
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.7);
}

.problem__scattered {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 20ch;
  color: rgba(244, 239, 231, 0.92);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.7);
}

/* the pivot: stillness after the storm */
.pivot {
  min-height: 100vh;
  min-height: 100lvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  background: #050505;
}

.pivot__line {
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 5.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 22ch;
  color: rgba(244, 239, 231, 0.94);
}

@media (prefers-reduced-motion: reduce) {
  .section--gap { height: auto; padding: 5rem 0; }
  .gap__canvas, .gap__glow { display: none; }
  .gap__veil { opacity: 0; }
  .gap__beat { position: relative; inset: auto; opacity: 1; padding: 3rem 1.5rem; }
}

/* ===== S5 · Research Convergence — intro beat + dealt cards ===== */

/* intro: native scroll, statement-adjacent voice but quieter (it is a
   sentence, not a one-thought statement — Apple-scale reserved for those) */
.theories-intro {
  min-height: 100vh;
  min-height: 100lvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
  background: #050505;
}

.theories-intro p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  line-height: 1.5;
  /* no max-width: the <br>s own the lockup (32ch was wrapping the em
     phrase mid-thought); portrait drops the first br and wraps free */
  color: rgba(244, 239, 231, 0.82);
}

@media (orientation: portrait) {
  .ti-br { display: none; }
}

.theories-intro p em {
  font-style: italic;
  color: var(--cream);
}

/* base = no-JS fallback: readable static column. The .js overrides below
   turn it into the pinned scene (same contract as the other cinematics). */
.theories {
  position: relative;
  background: #050505;
  color: var(--cream);
  padding: 5rem 1.5rem 6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.2rem;
}

.theories__header {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  text-align: center;
  color: rgba(244, 239, 231, 0.5);
}

/* --- trump cards: cream paper on the dark table --- */
.tcard {
  width: min(340px, 88vw);
  min-height: 500px;
  background: var(--cream);
  color: var(--ink);
  border-radius: 12px;
  padding: 1.9rem 1.8rem;
  display: flex;
  flex-direction: column;
  /* static baked shadow — never animated (iOS filter rule) */
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.5), 0 4px 16px rgba(0, 0, 0, 0.35);
}

/* per-card muted accent — individuality without a rainbow;
   the colour payoff stays reserved for the Framework reveal */
.tcard--sdt   { --acc: #b98a44; } /* brass */
.tcard--needs { --acc: #7e3b3b; } /* burgundy */
.tcard--wheel { --acc: #6e7045; } /* olive-gold */
.tcard--six   { --acc: #8a5a36; } /* umber */
.tcard--hp    { --acc: #4e5a66; } /* slate */

.tcard__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.6rem;
}

.tcard__rule {
  display: block;
  width: 2.6rem;
  height: 3px;
  background: var(--acc);
}

.tcard__num {
  font-family: "JetBrains Mono", monospace;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--acc);
}

.tcard__name {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.95rem;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

/* authors line + duotone medallions (warm-ink treatment baked into the
   webp files — see build log; regeneration recipe in section 7) */
.tcard__byline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.tcard__authors {
  margin-top: 0.55rem;
  font-family: var(--font-body);
  font-style: italic;
  font-weight: 400;
  font-size: 1.02rem;
  color: var(--ink-soft);
}

.tcard__medals {
  display: flex;
  flex-shrink: 0;
  margin-top: 0.55rem;
}

.tcard__medals img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--cream);
  outline: 1px solid rgba(26, 23, 20, 0.18);
}

.tcard__medals img + img { margin-left: -14px; }

.tcard__domains {
  list-style: none;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(26, 23, 20, 0.16);
}

.tcard__domains li {
  padding: 0.5em 0;
  border-bottom: 1px solid rgba(26, 23, 20, 0.09);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.3;
}

/* --- .js: the pinned scene --- */
.js .theories {
  height: 100vh;
  height: 100lvh;
  overflow: hidden;
  padding: 0;
  display: block;
}

/* the giant sliding line: architecture, not a spoken statement — Crimson,
   very low contrast. GSAP owns its transform (x slide + yPercent centring). */
.js .theories__header {
  position: absolute;
  top: 50%;
  left: 0;
  z-index: 0;
  width: max-content;
  white-space: nowrap;
  font-size: 24vw;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(244, 239, 231, 0.075);
  will-change: transform;
}

.js .theories .tcard {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2; /* later cards stack above earlier via DOM order */
  opacity: 0; /* placed + revealed by the scrub */
  will-change: transform;
}

@media (max-width: 760px) {
  /* portrait: a touch more presence so "patterns." registers on a phone —
     still texture, not reading copy (decided 12 Jul) */
  .js .theories__header { font-size: 34vw; color: rgba(244, 239, 231, 0.105); }
  .tcard { min-height: 460px; padding: 1.6rem 1.5rem; }
  .tcard__name { font-size: 1.7rem; }
}

/* --- the insight: conclusion beat inside the theories pin --- */
/* base = static fallback: a centred block after the card column */
.theories__insight {
  text-align: center;
  max-width: 40rem;
  margin-top: 2rem;
}

.theories__insight-headline {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(2rem, 4.2vw, 4.2rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--cream);
}

.theories__insight-subline {
  margin-top: 1.4rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  line-height: 1.6;
  max-width: 30ch;
  color: rgba(244, 239, 231, 0.75);
}

/* .js: right of the squared stack (pile centres ~20% from the left) */
.js .theories .theories__insight {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 42%;
  right: 6%;
  max-width: none;
  margin: 0;
  text-align: left;
  opacity: 0; /* placed + revealed by the scrub */
  will-change: transform, opacity;
}

/* one line where it fits; wraps naturally on narrower viewports */
.js .theories .theories__insight-subline { margin-left: 0; max-width: none; }

@media (max-width: 760px) {
  /* portrait: the pile sits mostly off-canvas — the statement owns centre */
  .js .theories .theories__insight {
    left: 1.2rem;
    right: 1.2rem;
    text-align: center;
  }
  .js .theories .theories__insight-subline { margin-left: auto; margin-right: auto; }
}

/* reduced motion: back to the static column (main.js exits early, so the
   scrub never runs — CSS must undo the .js scene layout) */
@media (prefers-reduced-motion: reduce) {
  .js .theories {
    height: auto;
    overflow: visible;
    padding: 5rem 1.5rem 6rem;
    display: flex;
  }
  .js .theories__header {
    position: static;
    width: auto;
    white-space: normal;
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    color: rgba(244, 239, 231, 0.5);
    transform: none !important;
  }
  .js .theories .tcard {
    position: static;
    opacity: 1;
    transform: none !important;
  }
  .js .theories .theories__insight {
    position: static;
    opacity: 1;
    text-align: center;
    max-width: 40rem;
    margin-top: 2rem;
    transform: none !important;
  }
  .js .theories .theories__insight-subline { margin-left: auto; margin-right: auto; }
}

/* ===== S6 · The Framework — reassembly · dimensions · the wheel ===== */
.framework {
  position: relative;
  background: #000;
  color: var(--cream);
  overflow: hidden;
}

/* the pinned scene must own a full viewport — all its children are
   absolute, so without this the section is 0-tall and the pin spacer
   comes up one viewport short (last ~13% of the timeline unreachable) */
.js .framework {
  height: 100vh;
  height: 100lvh;
}

/* base = no-JS/reduced-motion fallback: acts stack as readable blocks */
.framework .framework__act1,
.framework .dimpanel,
.framework .framework__act3 {
  position: relative;
  min-height: 60vh;
  padding: 4rem 1.5rem;
}

/* --- Act 1 · reassembly --- */
/* the film's background is cream (the S2 vignette is baked into the
   frames) — the act carries the statement scene's stage, text in ink */
.framework .framework__act1 {
  background: radial-gradient(ellipse 85% 75% at 50% 25%,
    #f9fcf6 0%, #f2f1e5 50%, #e9e4d8 100%);
}

.js .framework .framework__act1 {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 0;
  padding: 0;
}

.framework__canvas {
  display: none; /* JS-only cinematic */
}

.js .framework__canvas {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.framework__act1-text,
.framework__act1-title {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 60rem;
  margin: 0 auto;
}

.js .framework__act1-text {
  position: absolute;
  left: 50%;
  bottom: 9vh;
  transform: translateX(-50%);
  width: min(60rem, 92vw);
}

/* top-down shade: black at the top of the stage melting to clear by
   mid-screen — static, inside the iris clip, so it is present from the
   first pixel of the circle transition (client call 12 Jul) */
.framework__act1-shade { display: none; }

.js .framework__act1-shade {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 66vh;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0.44) 42%,
    rgba(0, 0, 0, 0.26) 64%,
    rgba(0, 0, 0, 0) 100%);
}

/* the headline crosses the mic's brass rings — anchored to the artwork,
   not floating at the top (client call 12 Jul) */
.js .framework__act1-title {
  position: absolute;
  left: 0;
  right: 0;
  top: 38vh;
  width: auto;
  max-width: none;
  padding: 0 3vw;
  z-index: 2;
}

/* Playfair returns — its first appearance since the statement scene.
   Base/static: ink on cream. Cinematic (.js): cream over the film,
   lifted by the pool + baked shadows (never animated — iOS rule). */
.framework__headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.js .framework__headline {
  color: #fff;
  /* tight, quiet — the gradient band does the heavy lifting */
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 2px 10px rgba(0, 0, 0, 0.22);
}

.framework__subline {
  margin-top: 1.1rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.05rem, 1.9vw, 1.35rem);
  color: var(--ink-soft);
}

/* --- Act 2 · dimension bands — accumulating strata (client call 12 Jul):
   each band rises from below to its third of the screen; the scroll ends
   on all three visible at once — the summary IS the final frame --- */
.js .framework .dimpanel {
  position: absolute;
  left: 0;
  right: 0;
  height: 33.4%;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  will-change: transform;
  border-top: 1px solid rgba(244, 239, 231, 0.14);
}

/* slots: Foundation is the base; later bands travel over earlier ones */
.js .dimpanel--foundation { top: 66.6%; z-index: 2; }
.js .dimpanel--core       { top: 33.3%; z-index: 3; }
.js .dimpanel--elevation  { top: 0;     z-index: 4; }

.dimpanel__bg {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.framework .dimpanel .dimpanel__bg { position: absolute; inset: 0; }

/* gentle edge pools so type holds AA on the artwork */
.dimpanel__scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to right,
    rgba(0, 0, 0, 0.45) 0%, rgba(0, 0, 0, 0.1) 45%,
    rgba(0, 0, 0, 0.02) 60%, rgba(0, 0, 0, 0.38) 100%);
}

.dimpanel__content {
  position: relative;
  z-index: 2;
}

.js .dimpanel__content {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 clamp(1.5rem, 6vw, 6rem);
}

.dimpanel__text { max-width: 34rem; }

.dimpanel__stage {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 2.8vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.5);
}

.dimpanel__line {
  margin-top: 0.45rem;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(0.98rem, 1.5vw, 1.25rem);
  color: rgba(244, 239, 231, 0.9);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.dimpanel__arenas {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  max-width: 46%;
}

.dimpanel__arenas li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(0.85rem, 1.2vw, 1rem);
  color: var(--cream);
  border: 1px solid rgba(244, 239, 231, 0.45);
  border-radius: 999px;
  padding: 0.32em 0.95em;
  background: rgba(0, 0, 0, 0.28);
  white-space: nowrap;
}

/* --- Act 3 · the compass wheel --- */
.js .framework .framework__act3 {
  position: absolute;
  inset: 0;
  z-index: 6;
  min-height: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000; /* opaque: the iris reveal wipes over the strata */
  /* initial hidden state (iris clip or opacity) is set by JS */
}

/* character behind the instrument: the elevation polygon baked DARK
   (multiply .28, sat .40 — a texture, not a colour statement), pooled
   darker behind the wheel so the dial keeps its contrast */
.framework__act3::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("../assets/img/wheel_bg.webp?v=1") center / cover no-repeat;
}

.framework__act3::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(circle at 50% 46%,
    rgba(0, 0, 0, 0.66) 0%, rgba(0, 0, 0, 0.2) 46%, rgba(0, 0, 0, 0.45) 100%);
}

.framework__act3 > * { position: relative; z-index: 1; }

/* the polygon film rides between the baked art (::before) and the
   radial pool (::after): same-z tree order does the layering */
.framework__act3 > .framework__poly {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24; /* whisper — dimmer than the bridge's 0.5 on purpose */
}

@media (prefers-reduced-motion: reduce) {
  .framework__act3 > .framework__poly { display: none; } /* art bg remains */
}

.wheel {
  display: block;
  width: min(980px, 92vw);
  height: auto;
}

.wheel__legend {
  list-style: none;
  display: none; /* portrait only */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.5rem;
  margin-top: 1.3rem;
  padding: 0 1.4rem;
}

.wheel__legend li {
  font-size: 0.92rem;
  color: rgba(244, 239, 231, 0.85);
  display: flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
}

.wheel__legend li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--dot);
  flex-shrink: 0;
}

.wheel__legend li span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(244, 239, 231, 0.45);
}

/* the bridge crowns the dial: headline voice, on through the sweep */
.framework__bridge {
  margin-bottom: 2rem;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(1.5rem, 2.5vw, 2.5rem);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-align: center;
  max-width: 56rem;
  padding: 0 1.5rem;
}

/* wheel internals (SVG built by JS) — instrument detailing */
.wheel text {
  font-family: "Crimson Pro", Georgia, serif;
}

.wheel .wheel__tick {
  stroke: rgba(244, 239, 231, 0.2);
  stroke-width: 1;
}

.wheel .wheel__tick--major {
  stroke: rgba(185, 138, 68, 0.55);
  stroke-width: 2;
}

.wheel .wheel__cross {
  stroke: rgba(185, 138, 68, 0.35);
  stroke-width: 1;
}

.wheel .wheel__segnum {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  fill: rgba(10, 9, 8, 0.5);
}

.wheel .wheel__hand-line {
  stroke: #d9b36c;
  stroke-width: 2.5;
  stroke-linecap: round;
}

.wheel .wheel__hand-tail {
  stroke: rgba(217, 179, 108, 0.5);
  stroke-width: 2;
  stroke-linecap: round;
}

.wheel .wheel__hand-pivot { fill: #d9b36c; }

.wheel .wheel__label {
  font-size: 19px;
  fill: rgba(244, 239, 231, 0.88);
}

.wheel .wheel__callout {
  stroke: rgba(244, 239, 231, 0.32);
  stroke-width: 1;
  fill: none;
}

.wheel .wheel__hub-num {
  font-size: 30px;
  fill: rgba(244, 239, 231, 0.92);
  letter-spacing: 0.04em;
}

.wheel .wheel__hub-sub {
  font-size: 12.5px; /* fits inside the brass hub circle (guide, 12 Jul) */
  fill: rgba(244, 239, 231, 0.55);
  letter-spacing: 0.06em;
}

/* --- the wheel, alive: tap/hover card + idle shine (12 Jul) --- */
.wheel--live .wheel__slicegroup { cursor: pointer; }
.wheel .wheel__shine { pointer-events: none; }

/* arena-tinted iOS glass (client call 12 Jul — the app leans heavily
   on glass morphism; the card links back to it). --wc-rgb / --wc-lite
   set per-arena by JS. The backdrop-filter is STATIC — we animate only
   transform/opacity of the card, never the blur (the iOS rule bans
   ANIMATED filters). Static box-shadow = fine (baked-shadow rule). */
.wheel-card {
  position: absolute;
  left: 50%;
  bottom: 3vh;
  transform: translateX(-50%);
  z-index: 2;
  opacity: 0;
  visibility: hidden;
  width: max-content;
  max-width: min(26rem, 92vw);
  padding: 0.95rem 1.25rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.30); /* glass edge highlight */
  border-radius: 16px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02) 45%),
    rgba(var(--wc-rgb, 185, 138, 68), 0.26);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  text-align: left;
}

/* no backdrop-filter → the tint carries the card on a solid dark base */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .wheel-card {
    background:
      linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 45%),
      linear-gradient(rgba(var(--wc-rgb, 185, 138, 68), 0.30),
                      rgba(var(--wc-rgb, 185, 138, 68), 0.30)),
      rgba(12, 11, 10, 0.92);
  }
}

/* bottom-half segments (4–7) deal the card to the TOP so it never
   covers the slice being read (iPhone round: bottom card hid 5+6);
   whichever line it covers instead (bridge/legend) dims while it's up */
.wheel-card--top {
  bottom: auto;
  top: 3vh;
}

/* header echoes the S5 trump cards: colour rule + number, stage right */
.wheel-card__top {
  display: flex;
  align-items: center;
  gap: 0.7em;
}

.wheel-card__rule {
  width: 34px;
  height: 2px;
  background: rgb(var(--wc-rgb, 185, 138, 68));
  flex-shrink: 0;
}

.wheel-card__num {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  color: rgb(var(--wc-lite, 217, 179, 108));
}

.wheel-card__stage {
  margin-left: auto;
  padding-left: 1.4em;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, 0.6);
}

.wheel-card__name {
  margin: 0.55em 0 0;
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  color: rgba(244, 239, 231, 0.96);
}

/* the persona's User Purpose, verbatim — one breath, serif voice */
.wheel-card__line {
  margin: 0.3em 0 0.7em;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 1.02rem;
  font-weight: 400;
  line-height: 1.4;
  color: rgba(244, 239, 231, 0.88);
}

/* where it sits: five rows, labels matching the S5 card titles exactly */
.wheel-card__fit {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wheel-card__fit li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.4em;
  padding: 0.3em 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
}

.wheel-card__fit span {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, 0.5);
  white-space: nowrap;
}

.wheel-card__fit em {
  font-style: normal;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 0.88rem;
  color: rgba(244, 239, 231, 0.92);
  text-align: right;
}

@media (max-width: 760px) {
  .js .framework__act1-text { bottom: 12vh; }
  .js .framework__act1-title { padding: 2.2rem 1rem; }
  /* portrait: crop the SVG viewBox to the dial (JS) + near-full width —
     the labels are hidden here, so the wheel owns the frame */
  .framework__act3::before { background-image: url("../assets/img/wheel_bg_p.webp?v=1"); }
  /* portrait strata: condensed column content per band */
  .js .dimpanel__content {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0.7rem;
    padding: 0 1.2rem;
  }
  .dimpanel__arenas { justify-content: flex-start; max-width: none; }
  .wheel { width: 94vw; }
  .wheel .wheel__label, .wheel .wheel__callout { display: none; }
  .js .framework .framework__act3 .wheel__legend { display: grid; }
  .framework__bridge { margin-top: 1.1rem; }
  /* card surfaces over the legend (legend dims to 0.15 while it's up) —
     it IS the segment label here, since callouts are hidden */
  .wheel-card { bottom: 2vh; width: 92vw; max-width: 94vw; }
  .wheel-card--top { bottom: auto; top: 2vh; }
}

/* phone landscape is NOT a designed target (portrait-first, per client
   12 Jul) — this guard just keeps the scene dignified if rotated. Scoped
   to landscape + short viewports only: it cannot touch portrait phones
   (wrong orientation) or desktop (taller than 520px). */
@media (orientation: landscape) and (max-height: 520px) {
  .wheel .wheel__label, .wheel .wheel__callout { display: none; }
  .js .framework .framework__act3 {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    column-gap: 2.4rem;
  }
  .framework__bridge { width: 100%; font-size: 1.1rem; margin-bottom: 0.6rem; }
  .wheel { width: auto; height: 62vh; }
  /* dial left, arena index right */
  .js .framework .framework__act3 .wheel__legend {
    display: grid;
    grid-template-columns: repeat(2, auto);
    gap: 0.3rem 1.3rem;
    margin-top: 0;
    padding: 0;
  }
  .wheel__legend li { font-size: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  .js .framework { height: auto; }
  .js .framework .framework__act1,
  .js .framework .dimpanel,
  .js .framework .framework__act3 {
    position: relative;
    inset: auto;
    top: auto;
    height: auto;
    min-height: 40vh;
    padding: 4rem 1.5rem;
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    -webkit-clip-path: none !important;
  }
  .js .framework__canvas { display: none; }
  .js .framework__act1-text,
  .js .framework__act1-title {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    padding: 0;
    background: none;
  }
  .js .framework__headline { color: var(--ink); text-shadow: none; }
  .js .framework__act1-shade { display: none; }
  .framework__act3::before, .framework__act3::after { display: none; }
  /* reduced motion keeps the tap cards (information, not motion) —
     in-flow below the wheel instead of floating over it */
  .wheel-card,
  .wheel-card--top {
    position: relative;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
    margin: 1.2rem auto 0;
  }
  .js .dimpanel__content { position: relative; inset: auto; padding: 0; }
  .js .dimpanel--foundation, .js .dimpanel--core, .js .dimpanel--elevation { z-index: auto; }
  .framework .dimpanel .dimpanel__bg { position: absolute; }
  .wheel .wheel__hand { display: none; }
}

/* ===== chapter rail (dots) — built by initRail() in main.js =====
   dark 1px ring + cream fill reads on cream AND black backgrounds;
   active dot goes brass. Labels are hover-only (desktop). */
.rail {
  position: fixed;
  right: max(14px, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail a {
  /* 22px tap target around an 8px dot */
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  position: relative;
}

.rail a span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(244, 239, 231, 0.6);
  box-shadow: 0 0 0 1px rgba(10, 9, 8, 0.4);
  transition: background 0.3s ease, transform 0.3s ease;
}

.rail a.is-active span {
  background: #d9b36c;
  transform: scale(1.5);
}

.rail a::after {
  content: attr(data-label);
  position: absolute;
  right: 26px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  color: rgba(244, 239, 231, 0.9);
  background: rgba(10, 9, 8, 0.78);
  padding: 0.35em 0.75em;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .rail a:hover::after { opacity: 1; }
  .rail a:hover span { transform: scale(1.3); }
  .rail a.is-active:hover span { transform: scale(1.5); }
}

@media (max-width: 760px) {
  .rail { right: max(8px, env(safe-area-inset-right)); gap: 4px; }
  .rail a span { width: 7px; height: 7px; }
}

/* nav flips light over dark sections */
.nav--light .nav__wordmark { color: var(--cream); }
.nav--light .nav__cta {
  color: rgba(244, 239, 231, 0.8);
  border-color: rgba(244, 239, 231, 0.3);
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .hero__wordmark-wrap,
  .js .nav__wordmark,
  .js .nav__cta,
  .js .statement__headline,
  .js .statement__word,
  .js .statement__support,
  .js .statement__subline,
  .js .statement__micro { opacity: 1; }
  .hero__scrollcue { display: none; }
  .nav { pointer-events: auto; }
}

/* ===== S7 · The Bridge — the exhale, then the app finally seen =====
   Near-black end to end (continuous with the wheel's act 3 behind it
   and the mountain CTA after it). Every animated property is
   transform/opacity/color; the bezel's backdrop-filter is STATIC
   (the wheel-card precedent). Solid background is a deliberate guard:
   no seam of wheel may show under the entrance. */

.bridge {
  position: relative;
  height: 100vh;
  height: 100lvh; /* pinned-scene rule: explicit height (v54 lesson) */
  overflow: hidden;
  background: #050505;
}

/* ambient stage (v68): the polygon field arrives WITH the phone — the
   exhale stays pure black. Opacity is JS-driven; the scrim keeps the
   film at whisper level so the content owns the frame. */
.bridge__bg {
  position: absolute;
  inset: 0;
}

.bridge__poly {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.bridge__bg-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(5, 5, 5, 0.30), rgba(5, 5, 5, 0.78) 80%),
    rgba(5, 5, 5, 0.30);
}

.bridge__exhale,
.bridge__app { z-index: 1; }

/* --- beat 1 · the exhale ------------------------------------------
   Base colour is FULL cream: without JS the line simply reads.
   initBridge splits the line spans into word/char spans and dims the
   chars; the scrub illuminates them — colour tween only. */
.bridge__exhale {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 1.5rem;
}

.bridge__line {
  font-family: var(--font-body); /* Crimson statement voice (client call) */
  font-weight: 400;
  font-size: clamp(2.2rem, 6vw, 5.5rem); /* the Apple-scale statement set */
  line-height: 1.15;
  letter-spacing: -0.015em;
  max-width: 16ch;
  color: rgba(244, 239, 231, 0.94);
}

.bridge__line > span { display: block; }
/* words are atomic — a char-split line must never break mid-word */
.bridge__line .bw { display: inline-block; }

/* --- beat 2 · one phone, three screens, three captions ------------ */
.bridge__app {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2.5rem, 6vw, 6rem);
  padding: 0 1.5rem;
}

/* the bezel: wheel-card glass, drawn in CSS (no baked frame asset).
   Aspect = screen 640×1308 + 10px padding all round. */
.bridge__phone {
  position: relative;
  margin: 0;
  height: min(78vh, 78lvh);
  aspect-ratio: 660 / 1328;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-top-color: rgba(255, 255, 255, 0.30); /* glass edge highlight */
  border-radius: clamp(30px, 4.6vh, 46px);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.02) 45%),
    rgba(18, 17, 15, 0.62);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5); /* static — baked-shadow rule */
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .bridge__phone {
    background:
      linear-gradient(165deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02) 45%),
      rgba(12, 11, 10, 0.94);
  }
}

.bridge__screens {
  position: absolute;
  inset: 10px;
  border-radius: clamp(20px, 3.4vh, 36px);
  overflow: hidden;
  background: #0c0b0a; /* behind the first screen while it lazy-loads */
}

/* screens stack; upper ones fade in OVER opaque lower ones (the
   object-over-opaque crossfade rule — no half-transparent dip) */
.bridge__screen {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bridge__captions {
  position: relative;
  width: min(27rem, 40vw);
  height: 12em; /* fixed slot: top-anchored captions share a baseline */
}

/* captions are numbered beats in the system, not labels (v68):
   brass rule + mono counter above a statement-scale line.
   TOP-anchored (v69): every caption's eyebrow + first line land on the
   same baseline whether the line wraps once or twice — centring made
   the one-liner float on a different line than the two-liners. */
.bridge__cap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
}

.bridge__cap-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.8em;
  margin-bottom: 0.9em;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  color: rgba(244, 239, 231, 0.55);
}

.bridge__cap-rule {
  width: 34px;
  height: 2px;
  background: var(--brass);
  flex-shrink: 0;
}

.bridge__cap-line {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.9rem, 3.2vw, 3.4rem);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: rgba(244, 239, 231, 0.94);
}

/* the phone's stage light: per-arena radial pools that live INSIDE the
   figure (inset overshoot → they track the phone at every viewport),
   crossfaded opacity-only as the screens swap */
.bridge__pool {
  position: absolute;
  inset: -46%;
  z-index: -1;
  pointer-events: none;
  opacity: 0;
}

.bridge__pool--home  { background: radial-gradient(closest-side, rgba(185, 138, 68, 0.30), rgba(185, 138, 68, 0) 70%); }
.bridge__pool--arena { background: radial-gradient(closest-side, rgba(157, 180, 20, 0.26), rgba(157, 180, 20, 0) 70%); }
.bridge__pool--next  { background: radial-gradient(closest-side, rgba(122, 99, 166, 0.34), rgba(122, 99, 166, 0) 70%); }

/* portrait: phone centred, the caption sits BELOW it (single line —
   it doubles as the screen's label) */
@media (orientation: portrait) {
  .bridge__app { flex-direction: column; gap: 1.6rem; }
  .bridge__phone { height: min(62vh, 62lvh); }
  .bridge__captions {
    order: 2;
    width: 100%;
    height: 6.4em;
    text-align: center;
  }
  .bridge__cap-eyebrow { justify-content: center; }
  .bridge__cap-line { font-size: clamp(1.5rem, 6.2vw, 2.1rem); }
}

/* phone-landscape guard (not a designed target — portrait-first):
   shrink the phone so bezel + caption still fit beside each other */
@media (orientation: landscape) and (max-height: 520px) {
  .bridge__phone { height: 80vh; }
  .bridge__captions { min-height: 4em; }
}

/* --- static / reduced motion: information, not motion -------------
   initBridge(true) adds the class and moves each caption in-flow
   after its screen — three labelled screenshots, no pin, no dimming */
.bridge--static { height: auto; padding: 4rem 0 2rem; }
.bridge--static .bridge__bg,
.bridge--static .bridge__pool { display: none; }
.bridge--static .bridge__cap-eyebrow { justify-content: center; }
.bridge--static .bridge__exhale { position: static; padding: 2rem 1.5rem 3.5rem; }
.bridge--static .bridge__app { position: static; display: block; padding: 0 1.5rem; }
.bridge--static .bridge__captions { display: none; } /* emptied by JS */
.bridge--static .bridge__phone {
  height: auto;
  aspect-ratio: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.bridge--static .bridge__screens {
  position: static;
  inset: auto;
  border-radius: 0;
  overflow: visible;
  background: none;
}
.bridge--static .bridge__screen {
  position: static;
  width: min(320px, 82vw);
  height: auto;
  margin: 0 auto 0.9rem;
  border-radius: 24px;
}
.bridge--static .bridge__cap {
  position: static;
  transform: none;
  text-align: center;
  margin: 0 auto 3rem;
  max-width: 30ch;
}

/* ===== S8 · Closing / CTA — dawn at the mountain =====
   Close calmly: native scroll, no pin. The mountain settles
   (scale 1.06 → 1, scrubbed over entry); content fades up in
   sequence. Static text-shadows only (baked-shadow rule). */

.cta {
  position: relative;
  min-height: 100vh;
  min-height: 100lvh;
  overflow: hidden;
  display: flex;
  background: #0b0908;
}

.cta__bg {
  position: absolute;
  inset: 0;
}

.cta__mountain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* top scrim earns the headline its contrast over the bright sky;
   bottom scrim seats the footer */
.cta__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(5, 5, 5, 0.62) 0%,
    rgba(5, 5, 5, 0.18) 34%,
    rgba(5, 5, 5, 0.10) 55%,
    rgba(11, 9, 8, 0.85) 100%);
}

.cta__content {
  position: relative;
  z-index: 1;
  margin: auto;
  text-align: center;
  padding: 12vh 1.5rem 14vh;
  max-width: 46rem;
}

.cta__headline {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: clamp(2.3rem, 4.6vw, 4.4rem);
  line-height: 1.14;
  letter-spacing: -0.01em;
  color: var(--cream);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.cta__line {
  margin-top: 1.1em;
  font-family: var(--font-body);
  font-weight: 300;
  font-size: clamp(1.25rem, 1.9vw, 1.7rem);
  line-height: 1.4;
  color: rgba(244, 239, 231, 0.88);
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.5);
}

.cta__actions {
  margin-top: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.2rem;
}

/* typographic store badge (no borrowed marks): pill, brass on hover */
.cta__badge {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1em;
  padding: 0.85em 1.7em 0.95em;
  border: 1px solid rgba(244, 239, 231, 0.45);
  border-radius: 14px;
  background: rgba(5, 5, 5, 0.35);
  text-decoration: none;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.cta__badge:hover {
  border-color: var(--brass);
  background: rgba(5, 5, 5, 0.55);
}

.cta__badge-small {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 239, 231, 0.65);
}

.cta__badge-big {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 1.45rem;
  color: var(--cream);
}

.cta__qr {
  margin: 0;
  width: 106px;
}

.cta__qr img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.cta__qr figcaption {
  margin-top: 0.55em;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.56rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  color: rgba(244, 239, 231, 0.6);
}

.cta__footer {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem clamp(1rem, 4vw, 3rem)
           calc(1.2rem + env(safe-area-inset-bottom, 0px));
}

.cta__foot-mark {
  font-family: var(--font-serif);
  font-size: 0.9rem;
  color: rgba(244, 239, 231, 0.7);
}

.cta__foot-nav { display: flex; gap: 1.6rem; }

.cta__foot-nav a {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(244, 239, 231, 0.55);
  text-decoration: none;
  transition: color 0.3s ease;
}

.cta__foot-nav a:hover { color: var(--cream); }

@media (orientation: portrait) {
  .cta__actions { flex-direction: column; gap: 1.6rem; }
  .cta__content { padding-bottom: 18vh; }
}

/* ===== The freeze (pivot) + the constellation (theories-intro) =====
   19 Jul: both quiet black beats get ambient lift. The freeze is a
   graded still of S4's falling paper — the world stopped mid-fall;
   the constellation is the ORIGINAL plexus film (light lines on
   black) at whisper level. Text keeps ownership via veils. */

.pivot { position: relative; overflow: hidden; }

.pivot__bg { position: absolute; inset: 0; }

/* pivot plexus (FINAL, 19 Jul): identical treatment to the
   theories-intro film — the two quiet beats are one continuous
   connected-lines world. Line returns to centre. */
.pivot__plexus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34; /* matched to .theories-intro__plexus — tune together */
}

.pivot__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%,
    rgba(5, 5, 5, 0.5), rgba(5, 5, 5, 0.12) 70%, rgba(5, 5, 5, 0) 100%);
}

.pivot__line { text-shadow: 0 2px 22px rgba(0, 0, 0, 0.65), 0 1px 6px rgba(0, 0, 0, 0.5); }

.pivot__line { position: relative; z-index: 1; }

.theories-intro { position: relative; overflow: hidden; }

.theories-intro__bg { position: absolute; inset: 0; }

.theories-intro__plexus {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.34; /* whisper level — static value, tune here */
}

.theories-intro__veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 50%,
    rgba(5, 5, 5, 0.5), rgba(5, 5, 5, 0.12) 70%, rgba(5, 5, 5, 0) 100%);
}

.theories-intro p { position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  .theories-intro__plexus,
  .pivot__plexus { display: none; } /* stillness beats dead video */
}

/* pre-launch badge: same pill, not a link (no placeholder store URLs) */
.cta__badge--soon { cursor: default; }
