/* The Story Library: the house.
   Layout: a fixed frame wraps every page; each story recolours it; scenes scroll inside.
   House colours are grey for now; each story's room colours come from its own settings file. */

:root {
  /* House palette: night (top of the home page) and day (after the shift) */
  --night: #1C1E24;
  --night-soft: #2A2D35;
  --day: #E7E6E2;
  --day-soft: #D7D5CF;
  --chalk: #F2F1EE;
  --ink: #17181C;

  --night-muted: #A3A5AD;
  --day-muted: #55575E;
  --frame-night: #545865;
  --frame-day: #A3A19B;
  --line-night: rgba(163, 165, 173, 0.35);
  --line-day: rgba(85, 87, 94, 0.3);

  /* Live tokens (the home page scrubs these from night to day) */
  --bg: #1C1E24;
  --bg-soft: #2A2D35;
  --fg: #F2F1EE;
  --muted: #A3A5AD;
  --frame: #545865;
  --frame-fg: #F2F1EE;
  --line: rgba(163, 165, 173, 0.35);

  /* Spine tones for the opening curtain */
  --spine-1: #2A2D35;
  --spine-2: #343741;
  --spine-3: #3F434E;

  /* Room fallbacks. Each story sets its own from its settings (room: in index.md) */
  --r-bg: #22252C;
  --r-soft: #2C3038;
  --r-fg: #F2F1EE;
  --r-muted: #A3A5AD;
  --r-accent: #C9C6BE;
  --r-frame: #545865;
  --r-frame-fg: #F2F1EE;
  --r-art-1: #2A2D35;
  --r-art-2: #343741;
  --r-art-3: #3F434E;
  --r-light: #D9D7D1;

  /* Type */
  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-read: "Newsreader", Georgia, "Times New Roman", serif;
  --f-label: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Frame geometry and motion */
  --fw: clamp(8px, 1.1vw, 14px);
  --tab-h: 44px;
  --gutter: calc(var(--fw) + clamp(16px, 4vw, 48px));
  --ease-door: cubic-bezier(0.7, 0, 0.2, 1);

  color-scheme: dark;
}

/* A story's room: the whole house takes on its colours */
html[data-page="story"] {
  --bg: var(--r-bg);
  --bg-soft: var(--r-soft);
  --fg: var(--r-fg);
  --muted: var(--r-muted);
  --frame: var(--r-frame);
  --frame-fg: var(--r-frame-fg);
  --line: color-mix(in srgb, var(--r-muted) 35%, transparent);
}
/* A chapter: the room's frame around plain pages */
html[data-page="chapter"] {
  --frame: var(--r-frame);
  --frame-fg: var(--r-frame-fg);
}

/* Cross-page transitions in browsers that support them */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: 0.7s; animation-timing-function: var(--ease-door); }
::view-transition-group(story-art) { animation-duration: 0.95s; }

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--f-display);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 4px; }
.skip { position: fixed; top: -100px; left: 16px; z-index: 70; padding: 10px 16px; border-radius: 8px; background: var(--fg); color: var(--bg); font-weight: 600; text-decoration: none; }
.skip:focus { top: calc(var(--tab-h) + 12px); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Side margins live on the content blocks, so full-width scenes never need to stretch past them */
.wrap { width: 100%; max-width: calc(1120px + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- The frame ---------- */
.frame {
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  border: var(--fw) solid var(--frame);
  view-transition-name: frame;
}
.tab {
  position: fixed;
  top: 0;
  z-index: 41;
  display: flex;
  align-items: center;
  background: var(--frame);
  color: var(--frame-fg);
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(var(--tab-h) + env(safe-area-inset-top, 0px));
  text-decoration: none;
}
.tab-left {
  left: 0;
  padding-inline: calc(var(--fw) + 10px) 20px;
  border-bottom-right-radius: 20px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  view-transition-name: tab-left;
}
.tab-mark {
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: calc(58px + env(safe-area-inset-top, 0px));
  justify-content: center;
  border-radius: 0 0 36px 36px;
  view-transition-name: tab-mark;
}
.tab-mark svg { width: 26px; height: auto; margin-top: 2px; }
.mark path { fill: none; stroke: currentColor; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.tab-right {
  right: 0;
  border: 0;
  padding-inline: 14px calc(var(--fw) + 10px);
  border-bottom-left-radius: 20px;
  font: inherit;
  cursor: pointer;
  view-transition-name: tab-right;
}
.tab-right svg { width: 26px; height: 26px; }
.is-leaving .frame, .is-leaving .tab, .is-leaving .menu { transition: background-color 0.45s ease, border-color 0.45s ease, color 0.45s ease; }

/* ---------- Menu ---------- */
.menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  width: min(360px, 86vw);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: calc(var(--tab-h) + env(safe-area-inset-top, 0px) + 40px) 32px calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--frame);
  color: var(--frame-fg);
  transform: translateX(105%);
  transition: transform 0.6s var(--ease-door);
  box-shadow: -24px 0 48px rgba(0, 0, 0, 0.25);
}
.menu.is-open { transform: none; }
.menu a { font-size: 28px; font-weight: 600; letter-spacing: -0.01em; text-decoration: none; padding: 6px 0; }
.menu a:hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-close { position: absolute; top: calc(env(safe-area-inset-top, 0px) + 8px); right: calc(var(--fw) + 10px); width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.menu .moment { margin-top: auto; color: inherit; opacity: 0.75; }

/* ---------- The veil (moment 1) ---------- */
.veil {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: var(--bg);
  animation: veil-out 0.8s ease 1.9s forwards;
}
.veil svg { width: min(110px, 26vw); height: auto; overflow: visible; }
.veil .draw {
  fill: none;
  stroke: var(--fg);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1.25s var(--ease-door) 0.15s forwards;
}
.veil .draw + .draw { animation-delay: 1s; animation-duration: 0.55s; }
html.veil-quick .veil { animation-delay: 0.2s; animation-duration: 0.5s; }
html.veil-quick .veil .draw { animation: none; stroke-dashoffset: 0; }
html.no-veil .veil { display: none; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes veil-out { to { opacity: 0; visibility: hidden; } }

/* ---------- Shared bits ---------- */
.moment {
  margin: 0;
  font-family: var(--f-label);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow { margin: 0; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid currentColor;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  background: transparent;
  color: inherit;
}
.btn-solid { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.btn svg { width: 18px; height: 18px; }
.band { padding-block: clamp(56px, 9vh, 104px); }
.band-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; margin-bottom: 24px; }
.band-link { font-size: 15px; font-weight: 600; color: var(--muted); text-underline-offset: 4px; }
.band-link:hover { color: var(--fg); }
.band-head h2 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; font-stretch: 108%; letter-spacing: -0.015em; text-wrap: balance; }

/* ---------- Room art ---------- */
.room-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.room-art .sky { fill: var(--r-bg); }
.room-art .light { fill: var(--r-light); }
.room-art .art-3 { fill: var(--r-art-3); }
.room-art .art-2 { fill: var(--r-art-2); }
.room-art .art-1 { fill: var(--r-art-1); }

/* ---------- Home: the opening curtain (moment 2) ---------- */
.scene { position: relative; overflow: hidden; }
.scene-open {
  height: 100vh;
  height: 100svh;
  min-height: 520px;
  display: grid;
  place-items: center;
  text-align: center;
}
.open-copy { position: relative; z-index: 2; display: grid; justify-items: center; gap: 18px; padding-inline: 24px; }
.wordmark { margin: 0; font-size: clamp(46px, 9.5vw, 136px); line-height: 0.92; font-weight: 800; font-stretch: 114%; letter-spacing: -0.025em; text-wrap: balance; }
.tagline { margin: 0; font-family: var(--f-read); font-style: italic; font-size: clamp(18px, 2.2vw, 24px); color: var(--muted); max-width: 30ch; }
.scroll-cue { display: grid; justify-items: center; gap: 10px; margin-top: 18px; font-family: var(--f-label); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.scroll-cue::after { content: ""; width: 1px; height: 44px; background: var(--muted); transform-origin: top; animation: cue 2.2s ease-in-out infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.spines { position: absolute; bottom: var(--fw); z-index: 1; display: flex; align-items: flex-end; gap: clamp(3px, 0.5vw, 7px); height: 80%; }
.spines-left { left: calc(var(--fw) + 2vw); }
.spines-right { right: calc(var(--fw) + 2vw); }
.spine { width: clamp(14px, 2.3vw, 34px); height: var(--h); background: var(--spine-1); border-radius: 3px 3px 0 0; transform-origin: 50% 100%; }
.spine:nth-child(3n + 2) { background: var(--spine-2); }
.spine:nth-child(3n) { background: var(--spine-3); }
.spine.lean { transform: rotate(var(--lean)); }

/* ---------- Home: window into a room (moments 3 to 5) ---------- */
.scene-window { padding-block: clamp(72px, 12vh, 150px) clamp(40px, 6vh, 72px); }
.window {
  position: relative;
  display: block;
  min-height: 380px;
  aspect-ratio: 16 / 7;
  max-width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: var(--r-bg);
  color: var(--r-fg);
  text-decoration: none;
  view-transition-name: story-art;
}
.window-copy { position: relative; z-index: 2; display: grid; gap: 10px; align-content: start; max-width: 520px; padding: clamp(24px, 4vw, 48px); }
.window-copy h2 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 0.98; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; text-wrap: balance; }
.window-copy p { margin: 0; font-family: var(--f-read); font-size: clamp(17px, 1.8vw, 21px); color: var(--r-muted); }
.window-copy .eyebrow { color: var(--r-accent); }
.window-copy .btn { justify-self: start; margin-top: 10px; background: var(--r-fg); color: var(--r-bg); border-color: var(--r-fg); }
.window:hover .btn { background: var(--r-accent); border-color: var(--r-accent); }

/* ---------- Home: chapters and countdown ---------- */
.countdown { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 20px 24px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 14px; }
.countdown-when { display: grid; gap: 2px; }
.countdown-when strong { font-size: 19px; font-weight: 600; }
.countdown-digits { display: flex; gap: 10px; }
.digit { display: grid; justify-items: center; min-width: 64px; padding: 8px 6px; border-radius: 10px; background: var(--bg-soft); }
.digit b { font-size: 28px; font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; line-height: 1.1; }
.digit span { font-family: var(--f-label); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.chapter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.chapter-card { display: grid; gap: 6px; align-content: start; min-height: 168px; padding: 18px; border-radius: 14px; background: var(--bg-soft); text-decoration: none; }
.chapter-card .num { font-size: 40px; font-weight: 800; font-stretch: 118%; line-height: 1; letter-spacing: -0.02em; }
.chapter-card .label { font-size: 13px; color: var(--muted); }
.chapter-card .title { font-size: 17px; font-weight: 600; }
.progress { height: 4px; margin-top: 8px; border-radius: 2px; background: var(--line); overflow: hidden; }
.progress i { display: block; height: 100%; width: var(--p); background: var(--fg); }
.chapter-card.locked { background: transparent; border: 1.5px dashed var(--line); color: var(--muted); }
.chapter-card.locked .num { color: var(--muted); }

/* ---------- Home: the shelf of doors ---------- */
.shelf { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 2vw, 24px); }
.niche { position: relative; display: grid; align-content: end; aspect-ratio: 2 / 3; max-width: 100%; padding: 16px; border-radius: 6px; border: 1.5px dashed var(--line); color: var(--muted); text-decoration: none; overflow: hidden; }
.niche b { font-size: 16px; font-weight: 700; color: var(--fg); }
.niche span { font-size: 13px; }
.niche-filled { border: 0; background: var(--r-bg); color: var(--r-muted); }
.niche-filled b { position: relative; z-index: 1; color: var(--r-fg); }
.niche-filled span { position: relative; z-index: 1; }

/* ---------- Home: signup ---------- */
.signup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 48px; align-items: end; padding: clamp(24px, 4vw, 48px); border-radius: 18px; background: var(--fg); color: var(--bg); }
.signup h2 { margin: 0; font-size: clamp(28px, 3.6vw, 44px); line-height: 1; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; text-wrap: balance; }
.signup p { margin: 10px 0 0; font-family: var(--f-read); font-size: 18px; }
.signup form { display: grid; gap: 8px; }
.signup label { font-size: 13px; font-weight: 600; }
.field-row { display: flex; flex-wrap: wrap; gap: 10px; }
.field-row input { flex: 1 1 220px; min-width: 0; min-height: 50px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--bg); background: transparent; color: var(--bg); font: inherit; font-size: 16px; }
.field-row input::placeholder { color: var(--bg); opacity: 0.55; }
.field-row .btn { border-color: var(--bg); background: var(--bg); color: var(--fg); }
.form-status { min-height: 1.5em; margin: 0; font-size: 14px; }

/* ---------- Footer ---------- */
.foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 32px calc(var(--fw) + 28px); font-size: 14px; color: var(--muted); }
.foot::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.foot-copy { margin: 0; max-width: 60ch; }
.foot-links a { color: var(--fg); text-underline-offset: 4px; }
.foot button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--fg); font: inherit; font-size: 14px; cursor: pointer; }

/* ---------- Story page: the room (moment 6) ---------- */
.story-hero { position: relative; min-height: clamp(460px, 82svh, 800px); overflow: hidden; display: grid; align-items: end; view-transition-name: story-art; background: var(--r-bg); }
.story-copy { position: relative; z-index: 2; display: grid; gap: 14px; max-width: 760px; padding: calc(var(--tab-h) + 64px) var(--gutter) clamp(48px, 8vh, 96px); }
.story-copy h1 { margin: 0; font-size: clamp(48px, 9vw, 120px); line-height: 0.9; font-weight: 800; font-stretch: 116%; letter-spacing: -0.025em; text-wrap: balance; color: var(--r-fg); }
.story-copy .hook { margin: 0; font-family: var(--f-read); font-size: clamp(19px, 2.2vw, 24px); color: var(--r-muted); max-width: 34ch; }
.story-copy .eyebrow { color: var(--r-accent); }
.story-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.story-actions .btn-solid { background: var(--r-fg); color: var(--r-bg); border-color: var(--r-fg); }
.story-actions .btn:not(.btn-solid) { color: var(--r-fg); }
.story-body { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); padding-block: clamp(56px, 9vh, 104px); }
.story-body h2 { margin: 0 0 14px; font-size: 24px; font-weight: 700; font-stretch: 108%; }
.story-body p { margin: 0 0 14px; font-family: var(--f-read); font-size: 19px; line-height: 1.6; color: var(--fg); max-width: 60ch; }
.about p { margin: 0 0 14px; }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; margin: 18px 0 0; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.toc { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a, .toc .toc-locked { display: grid; grid-template-columns: 5.5em minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 16px 4px; text-decoration: none; }
.toc a:hover .toc-title { text-decoration: underline; text-underline-offset: 4px; }
.toc-num { font-family: var(--f-label); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc-title { font-family: var(--f-read); font-size: 20px; }
.toc-state { font-size: 14px; color: var(--muted); }
.toc-locked { color: var(--muted); }
.opener { display: block; width: 72px; height: auto; margin: 0 0 18px; color: var(--muted); }
.opener path { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }

/* ---------- Reader page (moment 7) ---------- */
.reader-page {
  --bg: color-mix(in srgb, var(--r-accent) 9%, #F5F4F0);
  --bg-soft: color-mix(in srgb, var(--r-accent) 16%, #EBEAE5);
  --fg: #1B1C1F;
  --muted: #55575E;
  --line: rgba(85, 87, 94, 0.3);
  color-scheme: light;
}
.reader { max-width: calc(680px + 2 * var(--gutter)); margin-inline: auto; padding: calc(var(--tab-h) + 56px) var(--gutter) 72px; }
.reader-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-bottom: 40px; font-size: 14px; color: var(--muted); }
.reader-bar a { text-decoration: none; }
.reader-bar a:hover { text-decoration: underline; }
.reader h1 { margin: 6px 0 32px; font-size: clamp(32px, 5vw, 48px); line-height: 1.05; font-weight: 800; font-stretch: 112%; letter-spacing: -0.015em; text-wrap: balance; }
.chapter-text { font-family: var(--f-read); font-size: 20px; line-height: 1.7; hyphens: auto; }
.chapter-text p { margin: 0 0 1.1em; }
.chapter-text hr { border: 0; height: auto; margin: 2em 0; text-align: center; }
.chapter-text hr::before { content: "* * *"; letter-spacing: 0.6em; color: var(--muted); font-family: var(--f-display); font-size: 14px; }
.reader-bar span { font-variant-numeric: tabular-nums; }
.reader-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); }

/* ---------- Leaving through a door (browsers without view transitions) ---------- */
.is-leaving main { opacity: 0; transform: scale(0.985); transition: opacity 0.45s ease, transform 0.45s ease; }

/* ---------- Phones ---------- */
@media (max-width: 720px) {
  :root { --tab-h: 40px; }
  .tab-left { font-size: 13px; padding-inline: calc(var(--fw) + 8px) 14px; }
  .spine:nth-child(n + 7) { display: none; }
  .spines { height: 62%; }
  .chapter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .signup { grid-template-columns: minmax(0, 1fr); }
  .story-body { grid-template-columns: minmax(0, 1fr); }
  .digit { min-width: 54px; }
  .digit b { font-size: 22px; }
  .window { aspect-ratio: auto; min-height: 460px; }
  }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .veil { display: none; }
  .scroll-cue::after { animation: none; }
  .menu { transition: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
.band-title { margin: 8px 0 24px; font-size: clamp(32px, 5vw, 56px); line-height: 1; font-weight: 800; font-stretch: 112%; letter-spacing: -0.02em; text-wrap: balance; }
.niche-filled { transition: transform 0.45s var(--ease-door), box-shadow 0.45s ease; }
.niche-filled:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28); }
@media (prefers-reduced-motion: reduce) { .niche-filled { transition: none; } .niche-filled:hover { transform: none; } }
.window-copy .eyebrow { font-family: var(--f-display); font-size: 13px; }
.window-copy h2 + p { color: var(--r-fg); text-shadow: 0 1px 14px rgba(0, 0, 0, 0.65); }
.window::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(to right, rgba(10, 16, 32, 0.7), rgba(10, 16, 32, 0) 55%); }
/* Phones: thicker book spines, the leaning book on both sides, a larger name placed in the upper third */
@media (max-width: 720px) {
  .spine { width: 22px; }
  .spines { gap: 5px; }
  .spines-left .spine:nth-child(n + 5):not(.lean) { display: none; }
  .spines-right .spine:nth-child(n + 6) { display: none; }
  .spine:nth-child(n + 7).lean { display: block; }
  .scene-open { place-items: start center; padding-top: 26svh; }
  .wordmark { font-size: 15vw; }
}

/* Release gate wrappers: they hold content without affecting layout */
.state { display: contents; }
