/* interperson.ai — the Desk & the Celestial Observatory.
   Home page (body[data-page="home"]) lives in the Galactic Night Observatory (#05070E deep cosmos, #ECE9E1 bone ink,
   #D9B56D celestial brass-gold, #B84A3B oxblood sun, hairline rules, scrollytelling transitions).
   Auxiliary pages (/i/, /c/, /p/, /mac/, /privacy/) keep warm paper for fast utility reading.
   System serifs only (New York via ui-serif on Apple devices): the CSP allows no third-party fonts. */
:root {
  --paper: #F6F2EA;
  --paper-deep: #EFE9DD;
  --ink: #1B1A2E;          /* indigo-black ink */
  --ink-soft: #4A463F;     /* 8.4:1 on paper */
  --oxblood: #8E2B1F;      /* 7.6:1 on paper */
  --rule: rgba(27, 26, 46, 0.32);
  --night: #05070E;
  --night-elevated: rgba(14, 18, 32, 0.76);
  --night-card: rgba(18, 23, 39, 0.72);
  --night-paper: rgba(246, 242, 234, 0.96);
  --bone: #ECE9E1;
  --bone-soft: rgba(236, 233, 225, 0.72);
  --bone-dim: rgba(236, 233, 225, 0.46);
  --bone-rule: rgba(236, 233, 225, 0.18);
  --bone-rule-strong: rgba(236, 233, 225, 0.34);
  --gold: #D9B56D;
  --gold-soft: rgba(217, 181, 109, 0.22);
  --oxblood-night: #C85242;
  --serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --measure: 34rem;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--paper);
  background-image: repeating-linear-gradient(135deg, rgba(27, 26, 46, 0.018) 0 1px, transparent 1px 7px);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.6;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  font-kerning: normal;
  text-rendering: optimizeLegibility;
}

.page {
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 16vh 16px 3rem;
}

.kicker, .smallcaps {
  font-variant-caps: all-small-caps;
  letter-spacing: 0.09em;
  color: var(--ink-soft);
}
.kicker { margin: 0 0 1rem; font-size: 1.05rem; }

h1, h2, h3, h4, h5 { font-weight: 400; overflow-wrap: anywhere; text-wrap: balance; }
h1 {
  margin: 0 0 1.25rem;
  font-size: 1.95rem;
  line-height: 1.18;
  letter-spacing: -0.005em;
}
h1 em, h2 em, h3 em { font-style: italic; }

p { margin: 0 0 1rem; overflow-wrap: anywhere; }
.lede { font-size: 1.18rem; }
.lede:empty { display: none; }
.quiet { color: var(--ink-soft); font-size: 1rem; font-style: italic; }
.beta { font-style: italic; color: var(--ink-soft); }

.rule {
  border: 0;
  border-top: 0.5px solid var(--rule);
  margin: 2rem 0;
}

.cta { display: flex; flex-direction: column; align-items: flex-start; gap: 0.75rem; }
.cta p { margin: 0; }

a { color: inherit; text-decoration-thickness: 0.5px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 1px; }
.cta .quiet a, .folio a { display: inline-flex; align-items: center; min-height: 44px; }

/* One primary action: filled oxblood. */
.action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  max-width: 100%;
  padding: 0.65rem 1.65rem;
  border: 0;
  border-radius: 2px;
  background: var(--oxblood);
  color: #FBF8F2;
  font: inherit;
  font-size: 1.12rem;
  font-variant-caps: all-small-caps;
  letter-spacing: 0.11em;
  text-decoration: none;
  cursor: pointer;
}
.action:hover { background: #7A2419; }

.choices { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 0; }
.choice {
  min-height: 48px;
  padding: 0.6rem 1.3rem;
  border: 0.5px solid var(--ink);
  border-radius: 2px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}
.choice:hover { background: var(--paper-deep); }
.choice[aria-pressed="true"] { border-color: var(--oxblood); color: var(--oxblood); }
button:disabled { opacity: 0.55; cursor: progress; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--paper);
  color: var(--ink);
  border: 0.5px solid var(--ink);
  z-index: 100;
}
.skip:focus { top: 0.75rem; }

.folio {
  width: calc(100% - 32px);
  max-width: calc(var(--measure) - 32px);
  margin: 0 auto;
  padding: 0.75rem 0 1.75rem;
  border-top: 0.5px solid var(--rule);
  font-size: 0.95rem;
  text-align: center;
  position: relative;
  z-index: 2;
}
.folio a { text-decoration: none; }
.folio-sep { margin: 0 0.6em; color: var(--ink-soft); }

/* ============================================================================
   HOME — GALACTIC OBSERVATORY & SCROLLYTELLING THEME
   ============================================================================ */

body[data-page="home"],
body[data-page="story"] {
  --measure: 76rem;
  color-scheme: dark;
  background-color: var(--night);
  background-image: none;
  color: var(--bone);
}

body[data-page="home"] .kicker,
body[data-page="home"] .smallcaps,
body[data-page="story"] .kicker,
body[data-page="story"] .smallcaps {
  color: var(--bone-soft);
}

body[data-page="home"] .quiet,
body[data-page="home"] .beta,
body[data-page="story"] .quiet,
body[data-page="story"] .beta {
  color: var(--bone-soft);
}

/* ---- Full-Viewport Galactic Backdrop ------------------------------------ */
.cosmos-stage {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(ellipse 85% 60% at 72% 28%, rgba(184, 74, 59, 0.09) 0%, transparent 65%),
    radial-gradient(ellipse 70% 55% at 22% 75%, rgba(217, 181, 109, 0.06) 0%, transparent 65%),
    radial-gradient(circle at 50% 50%, #090D1A 0%, #04050A 100%);
}

.cosmos-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.cosmos-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 45%, transparent 45%, rgba(3, 4, 9, 0.68) 100%);
}

.cosmos-grain {
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(135deg, rgba(236, 233, 225, 0.014) 0 1px, transparent 1px 7px);
}

.cosmos-hud {
  position: fixed;
  bottom: 1.1rem;
  right: 1.5rem;
  z-index: 25;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.4rem 0.9rem;
  background: rgba(8, 11, 21, 0.92);
  border: 0.5px solid var(--bone-rule-strong);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--bone-soft);
  pointer-events: none;
}
.hud-sep { color: var(--bone-dim); }
.hud-live { color: var(--gold); display: inline-flex; align-items: center; gap: 0.4rem; }
.hud-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--oxblood-night);
  box-shadow: 0 0 8px var(--oxblood-night);
}

/* ---- Sticky Celestial Masthead ------------------------------------------ */
body[data-page="home"] .masthead,
body[data-page="story"] .masthead {
  position: sticky;
  top: 0;
  z-index: 30;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0.85rem clamp(1rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  background: rgba(5, 7, 14, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 0.5px solid var(--bone-rule);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--bone);
  font-size: 1.18rem;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.sun-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--oxblood-night);
  box-shadow: 0 0 0 4px rgba(200, 82, 66, 0.22), 0 0 14px rgba(200, 82, 66, 0.65);
}

.masthead-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.35rem;
}

.nav-link {
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  color: var(--bone-soft);
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}
.nav-link:hover,
.nav-link.is-current {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.masthead-right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.masthead-note { font-size: 0.88rem; color: var(--bone-dim); }
.masthead-cta {
  padding: 0.35rem 0.85rem;
  border: 0.5px solid var(--gold);
  border-radius: 2px;
  color: var(--gold);
  font-size: 0.86rem;
  letter-spacing: 0.11em;
  text-decoration: none;
}
.masthead-cta:hover {
  background: var(--gold-soft);
}

/* ---- Main Home Layout --------------------------------------------------- */
.home {
  position: relative;
  z-index: 2;
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 clamp(16px, 3.5vw, 40px);
}

.folio-mark {
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

/* ---- Full-Screen Pinned Scrollytelling Scenes --------------------------- */
.scrolly-scene {
  min-height: calc(100vh - 3.6rem);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 6vh, 4.5rem) 0;
  border-top: 0.5px solid var(--bone-rule);
  position: relative;
}

.scrolly-scene-hero {
  border-top: 0;
}

.scrolly-panel {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scrolly-inner {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
}

/* ---- Hero Section ------------------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(1.25rem, 3vw, 2.75rem);
  align-items: center;
  width: 100%;
}

/* ---- Thesis Scrollytell Stage ------------------------------------------- */
.thesis-stage {
  max-width: 68rem;
  margin: 0 auto;
  text-align: center;
  padding: clamp(2rem, 4vh, 3.5rem) 0;
}

.thesis-heading {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.75rem, 2vh, 1.4rem);
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #FBF8F2;
}

.thesis-beat {
  display: block;
  color: #FBF8F2;
}

.thesis-beat-second {
  color: #FBF8F2;
}

.thesis-heading em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
  text-shadow: 0 0 38px rgba(217, 181, 109, 0.3);
}

.hero h1 {
  font-size: clamp(3rem, 5.2vw, 4.5rem);
  line-height: 1.03;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  color: var(--bone);
}
.hero h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.hero-sub {
  font-size: clamp(1.42rem, 2.3vw, 1.85rem);
  line-height: 1.32;
  color: var(--bone);
  margin: 0 0 2rem;
  max-width: 29rem;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}

body[data-page="home"] .action,
body[data-page="story"] .action {
  background: var(--oxblood-night);
  color: #FBF8F2;
  box-shadow: 0 0 28px rgba(200, 82, 66, 0.32);
}
body[data-page="home"] .action:hover,
body[data-page="story"] .action:hover {
  background: #D85E4D;
}

.action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.6rem 1.35rem;
  border: 0.5px solid var(--bone-rule-strong);
  border-radius: 2px;
  color: var(--bone);
  text-decoration: none;
  font-size: 0.98rem;
  letter-spacing: 0.11em;
  background: rgba(236, 233, 225, 0.04);
}
.action-secondary:hover {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(217, 181, 109, 0.08);
}

/* ---- Initial Screen Scroll Cue Chevron ---------------------------------- */
.scroll-cue {
  position: absolute;
  bottom: clamp(1.1rem, 2.8vh, 2.1rem);
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--gold);
  text-decoration: none;
  opacity: 0.88;
  padding: 0.35rem 0.75rem;
  z-index: 8;
  transition: opacity 180ms ease, color 180ms ease;
}

.scroll-cue:hover {
  opacity: 1;
  color: #FBF8F2;
}

.scroll-cue-label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: var(--bone-soft);
}

.scroll-cue-chevron {
  width: 1.55rem;
  height: 0.9rem;
  overflow: visible;
  filter: drop-shadow(0 0 10px rgba(217, 181, 109, 0.45));
}

.scroll-cue-chevron path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (prefers-reduced-motion: no-preference) {
  .scroll-cue-chevron {
    animation: scroll-chevron-bounce 1.85s cubic-bezier(0.45, 0, 0.55, 1) infinite;
  }

  @keyframes scroll-chevron-bounce {
    0%, 100% {
      transform: translateY(0);
      opacity: 0.75;
    }
    50% {
      transform: translateY(7px);
      opacity: 1;
    }
  }
}

/* ---- Visual Feature Cards (What It Does For You) ------------------------ */
.visual-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 2.5vw, 2rem);
}

.visual-features-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.v-card {
  background: var(--night-card);
  border: 0.5px solid var(--bone-rule-strong);
  border-radius: 4px;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}

.v-graphic {
  background: radial-gradient(circle at 50% 50%, rgba(217, 181, 109, 0.08) 0%, rgba(5, 7, 14, 0.78) 100%);
  border-bottom: 0.5px solid var(--bone-rule);
  padding: 0.85rem 0.9rem 0.65rem;
}

.feat-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}
.g-hairline { stroke: rgba(236, 233, 225, 0.16); stroke-width: 0.75; }
.g-sun-halo { fill: rgba(200, 82, 66, 0.22); transform-box: fill-box; transform-origin: center; }
.g-sun { fill: #C85242; }
.g-check { fill: none; stroke: #FBF8F2; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.g-arc { fill: none; stroke: var(--gold); stroke-width: 1.25; stroke-dasharray: 5 5; }
.g-star-ring { fill: rgba(217, 181, 109, 0.14); stroke: var(--gold); stroke-width: 0.9; stroke-dasharray: 3.5 2.5; transform-box: fill-box; transform-origin: center; }
.g-avatar-ring { fill: rgba(217, 181, 109, 0.12); stroke: rgba(217, 181, 109, 0.55); stroke-width: 0.9; }
.g-star-gold { fill: var(--gold); transform-box: fill-box; transform-origin: center; }
.g-star-bone { fill: var(--bone); transform-box: fill-box; transform-origin: center; }
.g-note-box { fill: rgba(13, 18, 32, 0.92); stroke: rgba(236, 233, 225, 0.26); stroke-width: 0.85; }
.g-vignette-box { fill: rgba(6, 9, 18, 0.95); stroke: rgba(217, 181, 109, 0.35); stroke-width: 0.75; }
.g-memory-box { stroke: var(--gold); stroke-width: 1.05; }
.g-pill-oxblood { fill: #C85242; }
.g-pill-text-bright { fill: #FBF8F2; font-family: var(--serif); font-size: 11.5px; }
.g-svg-label { fill: var(--gold); font-family: var(--serif); font-size: 13px; font-style: italic; }
.g-svg-kicker { fill: var(--gold); font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.11em; }
.g-svg-quote { fill: var(--bone); font-family: var(--serif); font-size: 13px; font-style: italic; }
.g-svg-seal { fill: #E56F5E; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.11em; }
.g-svg-title { fill: var(--bone); font-family: var(--serif); font-size: 14.5px; }
.g-svg-title-lg { fill: #FBF8F2; font-family: var(--serif); font-size: 16.5px; }
.g-svg-sub { fill: rgba(236, 233, 225, 0.72); font-family: var(--serif); font-size: 12px; font-style: italic; }
.g-slot { fill: rgba(236, 233, 225, 0.06); stroke: rgba(236, 233, 225, 0.28); stroke-width: 0.85; }
.g-slot-win { fill: rgba(200, 82, 66, 0.22); stroke: #C85242; stroke-width: 1.25; }
.g-slot-text { fill: rgba(236, 233, 225, 0.85); font-family: var(--serif); font-size: 11.5px; }
.g-slot-win-text { fill: #FBF8F2; font-family: var(--serif); font-size: 13px; }
.g-eyepiece { fill: rgba(217, 181, 109, 0.05); stroke: var(--gold); stroke-width: 0.9; stroke-dasharray: 4 3; }
.g-orbit-faint { fill: none; stroke: rgba(236, 233, 225, 0.16); stroke-width: 0.7; transform-box: fill-box; transform-origin: center; }
.g-constellation { fill: rgba(217, 181, 109, 0.1); stroke: var(--gold); stroke-width: 0.95; }
.g-timeline { stroke: rgba(236, 233, 225, 0.34); stroke-width: 1; stroke-dasharray: 3.5 3.5; }

@media (prefers-reduced-motion: no-preference) {
  .anim-arc-flow {
    animation: svg-arc-flow 3.6s linear infinite;
  }
  .anim-halo-pulse {
    animation: svg-halo-pulse 3.4s ease-in-out infinite;
  }
  .anim-ring-expand {
    animation: svg-ring-expand 4.4s ease-out infinite;
  }
  .anim-ring-spin {
    animation: svg-ring-spin 14s linear infinite;
  }
  .anim-star-twinkle {
    animation: svg-star-twinkle 3.2s ease-in-out infinite;
  }
  .anim-card-float-1 {
    animation: svg-card-float 4.8s ease-in-out infinite;
  }
  .anim-card-float-2 {
    animation: svg-card-float 4.8s ease-in-out -2.4s infinite;
  }
  .anim-card-lock {
    animation: svg-card-lock 4.2s ease-in-out infinite;
  }
  .anim-bucket-row-1 {
    animation: svg-card-float 5.4s ease-in-out infinite;
  }
  .anim-bucket-row-2 {
    animation: svg-card-lock 4.6s ease-in-out -1.2s infinite;
  }
  .anim-bucket-row-3 {
    animation: svg-card-float 5.4s ease-in-out -2.7s infinite;
  }
  .anim-memory-breathe {
    transform-box: fill-box;
    transform-origin: center;
    animation: svg-memory-breathe 5s ease-in-out infinite;
  }
  .anim-delay-1 { animation-delay: -1.2s; }
  .anim-delay-2 { animation-delay: -2.4s; }

  @keyframes svg-arc-flow {
    to { stroke-dashoffset: -30; }
  }
  @keyframes svg-halo-pulse {
    0%, 100% { transform: scale(0.92); opacity: 0.65; }
    50% { transform: scale(1.22); opacity: 1; }
  }
  @keyframes svg-ring-expand {
    0% { transform: scale(0.55); opacity: 0.7; }
    100% { transform: scale(1.32); opacity: 0; }
  }
  @keyframes svg-ring-spin {
    to { transform: rotate(360deg); }
  }
  @keyframes svg-star-twinkle {
    0%, 100% { transform: scale(0.88); opacity: 0.6; }
    50% { transform: scale(1.25); opacity: 1; }
  }
  @keyframes svg-card-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2.5px); }
  }
  @keyframes svg-card-lock {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 0 rgba(200, 82, 66, 0)); }
    50% { transform: translateY(-2px); filter: drop-shadow(0 0 10px rgba(200, 82, 66, 0.35)); }
  }
  @keyframes svg-memory-breathe {
    0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 0 rgba(217, 181, 109, 0)); }
    50% { transform: translateY(-2.5px); filter: drop-shadow(0 0 12px rgba(217, 181, 109, 0.25)); }
  }
}

.v-copy {
  padding: 1.65rem 1.75rem 1.95rem;
}
.v-copy .numeral {
  color: var(--gold);
  font-size: 0.92rem;
  margin-bottom: 0.45rem;
}
.v-copy h3 {
  font-size: clamp(1.48rem, 1.9vw, 1.68rem);
  line-height: 1.2;
  color: var(--bone);
  margin: 0 0 0.65rem;
}
.v-copy p {
  margin: 0;
  font-size: clamp(1.1rem, 1.25vw, 1.2rem);
  line-height: 1.52;
  color: var(--bone-soft);
}

/* Full-screen vertical scrollytelling layout for the 4 Core Pillars */
.visual-features-scrolly {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.pillars-static-head {
  padding: clamp(2.5rem, 5vh, 3.5rem) 0 0.75rem;
}

.pillars-static-inner {
  padding-bottom: 0.65rem;
  border-bottom: 0.5px solid var(--bone-rule);
}

.pillars-static-head .kicker {
  margin: 0;
  color: var(--gold);
  font-size: clamp(0.92rem, 1.15vw, 1.06rem);
  letter-spacing: 0.16em;
}

.v-card.v-stage {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(2rem, 4vw, 3.75rem);
  align-items: center;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 0;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.v-stage .v-copy {
  padding: 0;
  max-width: 33rem;
}

.v-stage .v-copy .kicker {
  color: var(--gold);
  margin-bottom: 0.55rem;
}

.v-stage .v-copy .numeral {
  display: inline;
  font-family: var(--serif);
  font-size: 0.96em;
  letter-spacing: 0.01em;
  color: #FBF8F2;
  margin-right: 0.14em;
  margin-bottom: 0;
}

.v-stage .v-copy h3 {
  font-size: clamp(2.15rem, 3.5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--bone);
  margin: 0 0 1rem;
}

.v-stage .v-copy h3 .gold-em {
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
  text-shadow: 0 0 28px rgba(217, 181, 109, 0.24);
}

.v-stage .v-copy p:not(.kicker) {
  font-size: clamp(1.22rem, 1.6vw, 1.45rem);
  line-height: 1.48;
  color: var(--bone-soft);
}

.v-stage .v-copy p:not(.kicker) .gold-em {
  color: var(--gold);
  font-weight: 400;
  text-shadow: 0 0 22px rgba(217, 181, 109, 0.16);
}

.star-word {
  position: relative;
  display: inline-block;
  padding-right: 0.42em;
}

.star-sparkle {
  position: absolute;
  font-style: normal;
  line-height: 1;
  pointer-events: none;
  color: #FBF8F2;
  text-shadow: 0 0 10px var(--gold), 0 0 18px rgba(217, 181, 109, 0.9);
}

.star-sparkle-1 {
  top: -0.34em;
  right: -0.04em;
  font-size: 0.66em;
}

.star-sparkle-2 {
  bottom: 0.06em;
  right: -0.32em;
  font-size: 0.5em;
  color: var(--gold);
}

.v-stage .v-graphic {
  padding: clamp(1rem, 2vw, 1.5rem);
  background: radial-gradient(circle at 50% 50%, rgba(217, 181, 109, 0.09) 0%, rgba(8, 12, 24, 0.78) 100%);
  border: 0.5px solid var(--bone-rule-strong);
  border-radius: 6px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* ---- Unbounded Hero Sky Stage ------------------------------------------- */
.hero-sky-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 34rem;
  margin: -2.25rem -0.5rem -2.75rem auto;
  overflow: visible;
  mask-image: radial-gradient(circle at 50% 50%, #000 66%, transparent 98%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 66%, transparent 98%);
}

.hero-sky-stage .sky-live {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: pan-y;
}

.sky-readout {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: rgba(5, 7, 14, 0.84);
  border: 0.5px solid var(--bone-rule);
  border-radius: 3px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  pointer-events: none;
}
.readout-kicker {
  display: block;
  font-size: 0.78rem;
  color: var(--gold);
  margin-bottom: 0.15rem;
}
.readout-line {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.38;
  color: var(--bone);
}

.plate-controls {
  margin-top: 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.time-scrubber {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}
.scrubber-label {
  font-size: 0.82rem;
  margin-right: 0.3rem;
  color: var(--bone-dim);
}
.plate figcaption {
  margin: 0;
  font-size: 0.92rem;
  color: var(--bone-soft);
  text-align: center;
}
.plate figcaption .smallcaps { margin-right: 0.25em; color: var(--gold); }

.sky-ground { fill: #070A14; }
.orbit { fill: none; stroke: var(--bone); stroke-opacity: 0.13; stroke-width: 0.6; }
.orbit-outer { stroke-opacity: 0.34; stroke: var(--gold); }
.tick { stroke: var(--gold); stroke-opacity: 0.38; stroke-width: 0.6; fill: none; }
.dust circle { fill: var(--bone); fill-opacity: 0.42; }
.figure { fill: none; stroke: var(--bone); stroke-opacity: 0.34; stroke-width: 0.6; }
.star { fill: var(--bone); }
.halo { fill: #C85242; fill-opacity: 0.2; }
.sun { fill: #C85242; }
.leader { fill: none; stroke: var(--gold); stroke-opacity: 0.6; stroke-width: 0.6; }
.label {
  fill: var(--bone);
  font-family: var(--serif);
  font-size: 13px;
  font-style: italic;
  letter-spacing: 0.02em;
}
.label-you { font-style: normal; font-variant-caps: all-small-caps; letter-spacing: 0.14em; fill-opacity: 0.85; }

/* ---- Scrollytelling Chapters & Pinned Stage Choreography ---------------- */
.chapter {
  border-top: 0.5px solid var(--bone-rule);
  padding: clamp(4.5rem, 10vh, 7rem) 0;
  position: relative;
}

.chapter-panel {
  width: 100%;
}

.chapter-head {
  max-width: 46rem;
  margin-bottom: clamp(1.75rem, 3.5vh, 2.75rem);
}
.chapter-head .kicker {
  color: var(--gold);
  margin-bottom: 0.45rem;
}
.chapter-head h2 {
  font-size: clamp(2.2rem, 3.8vw, 3.2rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 0;
  color: var(--bone);
}
.chapter-head h2 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.chapter-head-line {
  display: block;
}
.chapter-head-gold {
  display: block;
  margin-top: 0.22em;
  color: var(--gold);
  font-style: italic;
  font-weight: 400;
  text-shadow: 0 0 32px rgba(217, 181, 109, 0.26);
}
.chapter-deck {
  font-size: 1.18rem;
  line-height: 1.65;
  color: var(--bone-soft);
  margin: 0.75rem 0 0;
}

.pop-radar,
.pop-item-1,
.pop-item-2,
.pop-item-3 {
  transform-box: fill-box;
  transform-origin: center;
}

/* Scroll-pinned stage & pop-in transition states */
@media (prefers-reduced-motion: no-preference) {
  body.scrolly-ready .scrolly-scene {
    height: 112vh;
    min-height: 112vh;
    border-top: 0;
    padding: 0;
  }

  body.scrolly-ready .scrolly-scene-thesis {
    height: 175vh;
    min-height: 175vh;
  }

  body.scrolly-ready .scrolly-panel {
    position: fixed;
    inset: 3.6rem 0 0 0;
    z-index: 4;
    padding: clamp(1rem, 2.5vh, 2rem) clamp(16px, 3.5vw, 40px);
    opacity: 0;
    transform: translateY(46px) scale(0.95);
    pointer-events: none;
    transition:
      opacity 560ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }

  body.scrolly-ready .scrolly-scene.is-active > .scrolly-panel {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    z-index: 6;
  }

  body.scrolly-ready .scrolly-scene.is-past > .scrolly-panel {
    opacity: 0;
    transform: translateY(-42px) scale(0.96);
    pointer-events: none;
    z-index: 3;
  }

  /* Static section header above the 4 "What It Does For You" pillar stages */
  body.scrolly-ready .pillars-static-head {
    position: fixed;
    top: clamp(4.25rem, 6.5vh, 5.35rem);
    left: 0;
    right: 0;
    z-index: 7;
    padding: 0 clamp(16px, 3.5vw, 40px);
    pointer-events: none;
    opacity: 0;
    transform: translateY(-12px);
    transition:
      opacity 440ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 440ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }

  body.scrolly-ready[data-chapter="3"] .pillars-static-head,
  body.scrolly-ready[data-chapter="4"] .pillars-static-head,
  body.scrolly-ready[data-chapter="5"] .pillars-static-head,
  body.scrolly-ready[data-chapter="6"] .pillars-static-head {
    opacity: 1;
    transform: translateY(0);
  }

  body.scrolly-ready .visual-features-scrolly .scrolly-panel {
    padding-top: clamp(3.4rem, 6.8vh, 4.75rem);
  }

  .star-sparkle-1 {
    animation: word-star-sparkle 2.4s ease-in-out infinite;
  }

  .star-sparkle-2 {
    animation: word-star-sparkle 2.4s ease-in-out -1.2s infinite;
  }

  @keyframes word-star-sparkle {
    0%, 100% {
      transform: scale(0.75) rotate(0deg);
      opacity: 0.55;
    }
    50% {
      transform: scale(1.28) rotate(18deg);
      opacity: 1;
    }
  }

  /* Two-beat pop-in on the big central Thesis screen */
  body.scrolly-ready .thesis-beat {
    opacity: 0;
    transform: translateY(42px) scale(0.9);
    filter: blur(5px);
    transition:
      opacity 620ms cubic-bezier(0.22, 1.25, 0.36, 1),
      transform 620ms cubic-bezier(0.22, 1.25, 0.36, 1),
      filter 480ms ease;
    will-change: opacity, transform, filter;
  }

  body.scrolly-ready .thesis-beat.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }

  /* Staggered pop-in for copy, graphic frame, radar & inner graphic items */
  body.scrolly-ready .scrolly-scene .pop-head,
  body.scrolly-ready .scrolly-scene .pop-graphic,
  body.scrolly-ready .scrolly-scene .pop-radar,
  body.scrolly-ready .scrolly-scene .pop-item-1,
  body.scrolly-ready .scrolly-scene .pop-item-2,
  body.scrolly-ready .scrolly-scene .pop-item-3 {
    opacity: 0;
    transform: translateY(28px) scale(0.88);
    transition:
      opacity 580ms cubic-bezier(0.22, 1.26, 0.36, 1),
      transform 580ms cubic-bezier(0.22, 1.26, 0.36, 1);
    will-change: opacity, transform;
  }

  body.scrolly-ready .scrolly-scene.is-active .pop-head {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 40ms;
  }

  body.scrolly-ready .scrolly-scene.is-active .pop-graphic {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 110ms;
  }

  body.scrolly-ready .scrolly-scene.is-active .pop-radar {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 180ms;
  }

  body.scrolly-ready .scrolly-scene.is-active .pop-item-1 {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 250ms;
  }

  body.scrolly-ready .scrolly-scene.is-active .pop-item-2 {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 390ms;
  }

  body.scrolly-ready .scrolly-scene.is-active .pop-item-3 {
    opacity: 1;
    transform: translateY(0) scale(1);
    transition-delay: 530ms;
  }

  .tw { animation: twinkle 5.5s ease-in-out infinite; }
  .tw2 { animation-delay: -1.8s; animation-duration: 6.5s; }
  .tw3 { animation-delay: -3.6s; animation-duration: 7.5s; }
  @keyframes twinkle { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
  .action, .choice, .action-secondary, .lens-pill, .epoch-btn {
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 220ms ease;
  }
}

/* ---- Chapter I: Instrument Duet & Anti-Manifesto ------------------------ */
.instrument-duet {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3.5vw, 2.75rem);
  margin-bottom: 3rem;
}

.folio-card {
  padding: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--night-card);
  border: 0.5px solid var(--bone-rule-strong);
  border-radius: 3px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
}
.folio-card .roman {
  color: var(--gold);
}
.folio-card h3 {
  font-size: 1.5rem;
  color: var(--bone);
  margin-bottom: 0.85rem;
}
.folio-card p {
  color: var(--bone-soft);
  font-size: 1.05rem;
}
.folio-card .card-footnote {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 0.5px solid var(--bone-rule);
  color: var(--bone);
  font-size: 0.98rem;
}

.anti-manifesto {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
  padding: 2rem;
  background: rgba(10, 13, 24, 0.64);
  border-top: 0.5px solid var(--bone-rule-strong);
  border-bottom: 0.5px solid var(--bone-rule-strong);
}
.anti-label {
  display: block;
  color: var(--oxblood-night);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}
.anti-col p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--bone-soft);
}

/* ---- Chapter II: Ally's Coaching Loop ----------------------------------- */
.loop-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.loop-step {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
  padding: 1.75rem 2rem;
  background: var(--night-card);
  border: 0.5px solid var(--bone-rule);
  border-left: 2px solid var(--gold);
  border-radius: 3px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.step-meta .numeral {
  color: var(--gold);
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.step-tag {
  font-size: 0.85rem;
  color: var(--bone-dim);
}
.step-body h3 {
  font-size: 1.38rem;
  color: var(--bone);
  margin-bottom: 0.55rem;
}
.step-body p {
  margin: 0;
  color: var(--bone-soft);
  font-size: 1.04rem;
}

.step-specimen {
  padding: 1.1rem 1.25rem;
  background: rgba(246, 242, 234, 0.06);
  border: 0.5px solid var(--bone-rule-strong);
  border-radius: 2px;
}
.specimen-kicker {
  margin: 0 0 0.4rem;
  font-size: 0.8rem;
  color: var(--gold);
}
.specimen-quote {
  margin: 0;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--bone);
}
.specimen-action {
  display: inline-block;
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--oxblood-night);
}

.mockup-frame {
  background: #141824;
  border: 0.5px solid var(--bone-rule-strong);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}
.mockup-frame-dark {
  background: #070A14;
}

.mockup-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.2rem;
  background: rgba(5, 7, 14, 0.75);
  border-bottom: 0.5px solid var(--bone-rule);
  font-size: 0.82rem;
}
.chrome-dots {
  display: inline-flex;
  gap: 6px;
}
.chrome-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(236, 233, 225, 0.22);
}
.chrome-dots span:first-child { background: var(--oxblood-night); }
.chrome-title { color: var(--bone-soft); }
.chrome-search, .chrome-toggle {
  padding: 0.15rem 0.65rem;
  border: 0.5px solid var(--bone-rule);
  border-radius: 3px;
  color: var(--bone-dim);
  font-size: 0.78rem;
}

.mockup-today-grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 2rem;
  padding: 1.75rem 2rem;
}
.mockup-greeting {
  font-size: 1.25rem;
  line-height: 1.45;
  color: var(--bone);
  padding-bottom: 1.2rem;
  margin-bottom: 1.2rem;
  border-bottom: 0.5px solid var(--bone-rule);
}
.mockup-section {
  margin-bottom: 1.5rem;
}
.mockup-section:last-child { margin-bottom: 0; }
.mockup-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 0.5px solid var(--bone-rule);
  padding-bottom: 0.35rem;
  margin-bottom: 0.75rem;
}
.mockup-sec-head h4 {
  margin: 0;
  font-size: 1.05rem;
  color: var(--gold);
}
.mockup-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr auto;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 0.5px solid rgba(236, 233, 225, 0.08);
  font-size: 0.96rem;
}
.row-time, .row-lane {
  font-size: 0.78rem;
  color: var(--bone-dim);
}
.row-main { margin: 0; color: var(--bone); }
.chip {
  display: inline-block;
  padding: 0.05rem 0.48rem;
  border: 0.5px solid var(--bone-rule-strong);
  border-radius: 999px;
  font-size: 0.86rem;
  background: rgba(236, 233, 225, 0.06);
}
.inline-feedback {
  margin-left: 0.4rem;
  font-size: 0.84rem;
  color: var(--bone-dim);
}
.row-btn {
  padding: 0.22rem 0.65rem;
  border: 0.5px solid var(--bone-rule-strong);
  border-radius: 2px;
  font-size: 0.78rem;
  color: var(--bone);
  white-space: nowrap;
}
.row-btn-primary {
  background: var(--oxblood-night);
  border-color: var(--oxblood-night);
  color: #FBF8F2;
}

.today-intel-col {
  border-left: 0.5px solid var(--bone-rule);
  padding-left: 1.75rem;
}
.dispatch-card, .remember-card {
  padding: 1rem;
  background: rgba(236, 233, 225, 0.04);
  border: 0.5px solid var(--bone-rule);
  border-radius: 3px;
  font-size: 0.95rem;
}
.dispatch-author { margin-bottom: 0.4rem; }
.dispatch-text { font-style: italic; margin-bottom: 0.5rem; }
.dispatch-nudge { margin: 0; font-size: 0.85rem; color: var(--gold); }

/* Sky Panel Mockup */
.mockup-sky-view {
  padding: 1.5rem 2rem 2rem;
}
.telescope-bar {
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  border-bottom: 0.5px solid var(--bone-rule);
  font-size: 0.98rem;
  color: var(--bone-soft);
}
.pointed-group {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}
.eyepiece-stage {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.2rem;
  align-items: center;
}
.eyepiece-ring {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  border: 1px dashed var(--gold);
  box-shadow: 0 0 0 8px rgba(217, 181, 109, 0.06), inset 0 0 36px rgba(217, 181, 109, 0.14);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.eyepiece-readout {
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--gold);
  margin-bottom: 0.6rem;
}
.eyepiece-stars {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
}
.ep-star {
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(236, 233, 225, 0.1);
  border: 0.5px solid var(--gold);
  font-size: 0.82rem;
  color: var(--bone);
}
.eyepiece-caption h4 {
  font-size: 1.75rem;
  margin: 0 0 0.5rem;
  color: var(--bone);
}
.ep-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* Story Panel Mockup */
.mockup-story-atlas {
  padding: 1.5rem 2rem 2rem;
}
.story-ruler {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-bottom: 0.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 0.5px solid var(--bone-rule-strong);
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--bone-dim);
}
.ruler-now { color: var(--oxblood-night); text-align: right; }
.story-lane {
  display: grid;
  grid-template-columns: 10rem 1fr;
  gap: 1.5rem;
  align-items: start;
  padding-bottom: 1.4rem;
  margin-bottom: 1.25rem;
  border-bottom: 0.5px solid var(--bone-rule);
}
.lane-gutter {
  display: flex;
  flex-direction: column;
}
.lane-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.moment-card {
  padding: 1rem;
  background: rgba(236, 233, 225, 0.04);
  border: 0.5px solid var(--bone-rule);
  border-radius: 3px;
}
.moment-card.is-selected {
  border: 1.5px solid var(--gold);
  background: rgba(217, 181, 109, 0.08);
}
.seal-badge {
  display: inline-block;
  font-size: 0.74rem;
  color: var(--oxblood-night);
  margin-bottom: 0.3rem;
}
.moment-card h5 {
  margin: 0 0 0.35rem;
  font-size: 1.08rem;
  color: var(--bone);
}
.moment-card p { margin: 0; font-size: 0.86rem; }

.story-strands {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.strand-row {
  display: grid;
  grid-template-columns: 14rem 1fr;
  align-items: center;
  gap: 1rem;
}
.strand-row.is-dim { opacity: 0.42; }
.strand-line {
  height: 1px;
  background: var(--bone-rule-strong);
  display: flex;
  justify-content: space-around;
  align-items: center;
}
.strand-line .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bone-soft);
}
.strand-line .dot.is-linked {
  width: 10px;
  height: 10px;
  background: var(--gold);
  box-shadow: 0 0 8px var(--gold);
}

/* ---- Chapter IV: Craft Grid --------------------------------------------- */
.craft-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem clamp(2rem, 4vw, 3.5rem);
}
.craft-card {
  padding: 1.75rem 2rem;
  background: var(--night-card);
  border: 0.5px solid var(--bone-rule);
  border-top: 1.5px solid var(--bone-rule-strong);
  border-radius: 3px;
}
.craft-card .numeral {
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.craft-card h3 {
  font-size: 1.35rem;
  color: var(--bone);
  margin-bottom: 0.65rem;
}
.craft-card p {
  margin: 0;
  color: var(--bone-soft);
  font-size: 1.02rem;
}
.craft-card code, .vault-node code {
  font-family: var(--mono);
  font-size: 0.86em;
  color: var(--gold);
}

/* ---- Chapter V: Encrypted Relay Vault Diagram --------------------------- */
.vault-diagram {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.65fr) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 2rem;
}
.vault-node {
  padding: 1.8rem 2rem;
  background: var(--night-card);
  border: 0.5px solid var(--bone-rule-strong);
  border-radius: 4px;
}
.node-badge {
  display: inline-block;
  color: var(--gold);
  font-size: 0.82rem;
  margin-bottom: 0.4rem;
}
.vault-node h3 {
  font-size: 1.4rem;
  color: var(--bone);
  margin-bottom: 0.85rem;
}
.vault-node ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--bone-soft);
  font-size: 0.98rem;
}
.vault-node li { margin-bottom: 0.5rem; }

.vault-bridge {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  padding: 0 0.5rem;
}
.bridge-line {
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--oxblood-night), var(--gold));
  position: relative;
}
.bridge-cipher {
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--gold);
}
.bridge-sub {
  font-size: 0.85rem;
  line-height: 1.35;
}

.privacy-callout {
  text-align: center;
  font-size: 1.05rem;
  color: var(--gold);
}

/* ---- Chapter VI: Rooms & Closing ---------------------------------------- */
.room-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.75rem, 4vw, 3.25rem);
}
.room {
  padding: 2rem 2.2rem;
  background: var(--night-card);
  border: 0.5px solid var(--bone-rule-strong);
  border-radius: 3px;
}
.room h3 {
  font-size: 1.3rem;
  color: var(--bone);
  letter-spacing: 0.12em;
  margin-bottom: 0.75rem;
}
.room p { color: var(--bone-soft); }
.room-specs {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0.9rem 0 0;
  border-top: 0.5px solid var(--bone-rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.82rem;
  color: var(--gold);
}

.closing {
  text-align: center;
  padding: clamp(2.5rem, 6vh, 4.5rem) 0;
}
.story-closing {
  border-top: 0.5px solid var(--bone-rule-strong);
  padding: clamp(4.5rem, 10vh, 7rem) 0;
}
.closing .kicker { color: var(--gold); }
.closing h2 {
  font-size: clamp(2.5rem, 4.5vw, 3.6rem);
  margin-bottom: 1.1rem;
  color: var(--bone);
}
.closing h2::before {
  content: "✦";
  display: block;
  margin-bottom: 0.8rem;
  font-size: 1.2rem;
  color: var(--oxblood-night);
}
.closing-lede {
  max-width: 38rem;
  margin: 0 auto 2.2rem;
  color: var(--bone-soft);
  font-size: 1.18rem;
}
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.1rem;
}

.closing-download {
  padding: 0.75rem 1.95rem;
  font-size: 1.16rem;
  box-shadow: 0 0 36px rgba(200, 82, 66, 0.55), 0 0 0 1px rgba(217, 181, 109, 0.42);
}

.closing-story {
  padding: 0.7rem 1.65rem;
  font-size: 1.04rem;
  border: 1px solid var(--gold);
  color: var(--gold);
  background: rgba(217, 181, 109, 0.12);
  box-shadow: 0 0 24px rgba(217, 181, 109, 0.22);
}

.closing-story:hover {
  background: rgba(217, 181, 109, 0.22);
  color: #FBF8F2;
  border-color: #FBF8F2;
  box-shadow: 0 0 32px rgba(217, 181, 109, 0.42);
}

@media (prefers-reduced-motion: no-preference) {
  body.scrolly-ready .scrolly-scene-closing.is-active .closing-download {
    animation: download-cta-highlight 1.8s cubic-bezier(0.22, 1, 0.36, 1) 420ms 1 both;
  }

  body.scrolly-ready .scrolly-scene-closing.is-active .closing-story {
    animation: story-cta-pulse 1.6s cubic-bezier(0.22, 1, 0.36, 1) 950ms 2;
  }

  @keyframes download-cta-highlight {
    0% {
      transform: scale(1);
      box-shadow: 0 0 28px rgba(200, 82, 66, 0.32);
    }
    45% {
      transform: scale(1.06);
      box-shadow: 0 0 48px rgba(200, 82, 66, 0.78), 0 0 0 2px var(--gold);
    }
    100% {
      transform: scale(1);
      box-shadow: 0 0 36px rgba(200, 82, 66, 0.55), 0 0 0 1px rgba(217, 181, 109, 0.42);
    }
  }

  @keyframes story-cta-pulse {
    0%, 100% {
      transform: scale(1);
      box-shadow: 0 0 24px rgba(217, 181, 109, 0.22), 0 0 0 0 rgba(217, 181, 109, 0.55);
      background: rgba(217, 181, 109, 0.12);
    }
    50% {
      transform: scale(1.07);
      box-shadow: 0 0 42px rgba(217, 181, 109, 0.65), 0 0 0 8px rgba(217, 181, 109, 0);
      background: rgba(217, 181, 109, 0.26);
    }
  }
}

body[data-page="home"] .folio,
body[data-page="story"] .folio {
  border-top-color: var(--bone-rule);
  color: var(--bone-soft);
  padding-bottom: 3.5rem;
}

body[data-page="home"] .folio,
body[data-page="story"] .folio,
body[data-page="privacy"] .folio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  min-height: 3.5rem;
}

/* ---- Responsive Breakpoints --------------------------------------------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .hero-sky-stage { max-width: 22rem; width: 100%; margin: -0.75rem auto -1.25rem; }
  .visual-features-three { grid-template-columns: minmax(0, 1fr); }
  .v-card.v-stage { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .v-stage .v-copy h3 { font-size: clamp(1.75rem, 5vw, 2.25rem); margin-bottom: 0.5rem; }
  .v-stage .v-copy p:not(.kicker) { font-size: 1.06rem; }
  .loop-step { grid-template-columns: minmax(0, 1fr); }
  .mockup-today-grid { grid-template-columns: minmax(0, 1fr); }
  .today-intel-col { border-left: 0; border-top: 0.5px solid var(--bone-rule); padding-left: 0; padding-top: 1.5rem; }
  .vault-diagram { grid-template-columns: minmax(0, 1fr); gap: 0.85rem; margin-bottom: 0; }
  .vault-node { padding: 1.15rem 1.35rem; }
  .eyepiece-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; }
  .ep-actions { justify-content: center; }
  .story-lane { grid-template-columns: minmax(0, 1fr); }
  .lane-cards { grid-template-columns: minmax(0, 1fr); }
  .cosmos-hud { display: none; }
}

@media (max-width: 820px) {
  .visual-features,
  .instrument-duet,
  .anti-manifesto,
  .craft-grid,
  .room-pair,
  .hero-pillars {
    grid-template-columns: minmax(0, 1fr);
  }
  .masthead-nav { display: none; }
  .mockup-row { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .strand-row { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 440px) {
  .page { padding-top: 10vh; }
  h1 { font-size: 1.65rem; }
  .action, .action-secondary { width: 100%; }
  .hero h1 { font-size: 2.25rem; }
  .masthead-note, .hero .kicker { font-size: 0.84rem; letter-spacing: 0.06em; }
  body[data-page="home"] .folio,
  body[data-page="story"] .folio,
  body[data-page="privacy"] .folio { flex-direction: column; gap: 0; }
  body[data-page="home"] .folio-sep,
  body[data-page="story"] .folio-sep,
  body[data-page="privacy"] .folio-sep { display: none; }
}

/* ---- Story Page (/story/) — Personal Essay in the Observatory ----------- */
.story-body,
.story-main,
.story-essay {
  color: var(--bone);
}

.story-main {
  max-width: 54rem;
}

.story-essay {
  padding: clamp(3rem, 7vh, 5.5rem) 0 clamp(2.5rem, 5vh, 4rem);
  max-width: 40rem;
  margin: 0 auto;
}

.story-head {
  text-align: center;
  margin-bottom: clamp(2.2rem, 4.5vh, 3.2rem);
}

.story-head .kicker {
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.story-head h1 {
  font-size: clamp(2.75rem, 5vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: #FBF8F2;
  margin: 0 0 1.1rem;
}

.story-head h1 em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}

.story-deck {
  font-size: clamp(1.32rem, 2.1vw, 1.6rem);
  line-height: 1.42;
  font-style: italic;
  color: #FBF8F2;
  margin: 0 auto;
  max-width: 32rem;
}

.story-polaroid {
  margin: 0 auto clamp(2.4rem, 5vh, 3.4rem);
  max-width: 20rem;
  padding: 0.75rem;
  background: var(--night-card);
  border: 0.5px solid var(--gold);
  border-radius: 5px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(217, 181, 109, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.story-polaroid-bottom {
  max-width: 32rem;
  margin: clamp(2.4rem, 5vh, 3.2rem) auto 0;
}

.story-polaroid-frame {
  border-radius: 3px;
  overflow: hidden;
  border: 0.5px solid var(--bone-rule-strong);
  background: #080B14;
}

.story-polaroid-frame img {
  display: block;
  width: 100%;
  height: auto;
}

.story-prose {
  font-size: clamp(1.16rem, 1.35vw, 1.26rem);
  line-height: 1.72;
  color: #ECE9E1;
}

.story-prose p {
  margin: 0 0 1.4rem;
  color: #ECE9E1;
}

.story-divider {
  border: 0;
  height: 1px;
  margin: 2.4rem auto;
  max-width: 8rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0.65;
}

.story-pullquote {
  margin: 2.3rem 0;
  padding: 1.5rem 1.85rem;
  background: var(--night-card);
  border: 0.5px solid var(--bone-rule-strong);
  border-left: 2px solid var(--gold);
  border-radius: 4px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.story-pullquote p {
  margin: 0;
  font-size: clamp(1.22rem, 1.6vw, 1.4rem);
  line-height: 1.52;
  font-style: italic;
  color: #FBF8F2;
}

.story-signoff {
  margin: 2.4rem 0 2.8rem;
  padding-top: 1.4rem;
  border-top: 0.5px solid var(--bone-rule);
}

.story-signoff-salutation {
  margin: 0 0 0.2rem !important;
  color: var(--bone-soft);
  font-size: 1.12rem;
}

.story-signoff-name {
  margin: 0 !important;
  font-size: 1.65rem;
  font-style: italic;
  color: var(--gold);
}

.story-thanks {
  padding: 1.4rem 1.65rem;
  background: rgba(14, 18, 32, 0.68);
  border: 0.5px solid var(--bone-rule);
  border-radius: 4px;
}

.story-thanks .kicker {
  margin-bottom: 0.5rem;
}

.story-thanks p:last-child {
  margin: 0;
  line-height: 1.58;
  color: rgba(236, 233, 225, 0.82);
}

.story-thanks strong {
  color: #FBF8F2;
  font-weight: 400;
}

/* ---- Auxiliary Pages (/p/, /mac/download, /privacy/) -------------------- */
.name-row { display: flex; flex-direction: column; gap: 0.35rem; margin: 0.5rem 0 1rem; }
.name-row input {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 0.5px solid var(--rule);
  padding: 0.35rem 0;
  max-width: 16rem;
}
.name-row input:focus { outline: none; border-bottom: 1.5px solid var(--oxblood); }
.choice[aria-pressed="true"] { color: var(--oxblood); border-color: var(--oxblood); }
.choice:disabled { opacity: 0.4; }

.cta input[type="password"], .cta input[type="email"] {
  font: inherit;
  min-height: 48px;
  width: min(100%, 18rem);
  padding: 0.4rem 0.1rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}
.cta input[type="password"]:focus, .cta input[type="email"]:focus { outline: none; border-bottom: 1.5px solid var(--oxblood); }

body[data-page="privacy"] { --measure: 44rem; }
.policy { padding-top: clamp(2.2rem, 6vh, 3.8rem); }
.policy h1 { font-size: clamp(2rem, 3.6vw, 2.7rem); line-height: 1.1; letter-spacing: -0.012em; }
.policy section { border-top: 0.5px solid var(--rule); padding-top: 1.6rem; margin-top: 2.2rem; }
.policy h2 { margin: 0 0 1rem; font-size: 1.5rem; line-height: 1.2; }
.policy h3 { margin: 1.8rem 0 0.6rem; font-size: 1.25rem; font-style: italic; }
.policy ul { margin: 0 0 1rem; padding-left: 1.2rem; }
.policy li { margin-bottom: 0.55rem; overflow-wrap: anywhere; }
.policy li::marker { color: var(--ink-soft); }
.policy strong { font-weight: 600; }
.contents { margin: 2rem 0 0; padding: 1.1rem 0 0.4rem; border-top: 0.5px solid var(--rule); }
.contents h2 { margin: 0 0 0.6rem; font-size: 1rem; }
.contents ol { margin: 0; padding-left: 1.4rem; columns: 2 14rem; column-gap: 2rem; font-size: 1rem; }
.contents li { margin-bottom: 0.2rem; break-inside: avoid; }
.contents a { display: inline-block; min-height: 32px; padding: 0.2rem 0; }
