/* Blockline — public site.
   Tokens and brand pieces are carried over from the game
   (apps/web/app/globals.css: :root tokens, .menu-brand-mark, .menu-vignette,
   .menu-actions .primary) so the site and the game read as one thing.
   No web fonts: the same system stacks as the game, zero font requests. */

:root {
  --font-display: "Avenir Next", "Avenir", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Inter", "SF Pro Text", "Segoe UI", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;

  --navy-950: #071116;
  --navy-900: #0b171d;
  --navy-850: #102129;
  --navy-800: #142a33;
  --navy-700: #23404a;
  --cyan: #41c2c7;
  --cyan-soft: #80d9d7;
  --lime: #82bc31;
  --gold: #e7b13d;
  --coral: #df6848;
  --cream: #dfeeed;
  --text: #f2f5f3;
  --body: #c3d2d3;
  --muted: #9aacb1;
  --line: rgba(151, 198, 204, .22);
  --line-strong: rgba(121, 174, 180, .38);
  --art-panel: #1a2622; /* the art-lab backdrop the town-hall renders sit on */

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1200px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  color: var(--text);
  background: var(--navy-950);
  font: 400 17px/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--cyan-soft); text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); color: var(--text); }
p { margin: 0; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 8px;
  color: #062025; background: var(--cyan-soft); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ── Brand mark (the game's .menu-brand-mark) ──────────────────────────── */
.brand-mark {
  flex: none; width: 30px; height: 32px;
  display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 2px;
  transform: skewY(-12deg);
}
.brand-mark i { height: 60%; border-radius: 3px; background: var(--cream); box-shadow: 0 4px 10px rgba(0,0,0,.28); }
.brand-mark i:nth-child(2) { height: 100%; background: linear-gradient(#3db7bd 0 45%, var(--gold) 46%); }
.brand-mark i:nth-child(3) { height: 46%; background: var(--coral); }
.brand-mark-large { width: 54px; height: 57px; gap: 4px; }
.brand-mark-large i { border-radius: 4px; }

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-text { display: grid; gap: 6px; }
.brand-word { font: 900 20px/.85 var(--font-display); letter-spacing: .055em; }
.brand-text small { color: var(--cyan-soft); font: 700 10px/1 var(--font-display); letter-spacing: .16em; }

/* ── Buttons (the game's menu buttons, at readable sizes) ──────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px;
  border: 1px solid var(--line-strong); border-radius: 9px;
  color: #e4eeee; background: linear-gradient(135deg, rgba(12,38,48,.93), rgba(7,27,36,.91));
  box-shadow: 0 10px 28px rgba(1,10,14,.26);
  font: 750 16px/1 var(--font-display); letter-spacing: .02em; text-decoration: none; white-space: nowrap;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}
.btn:hover { border-color: rgba(104,216,220,.65); background: linear-gradient(135deg, rgba(18,59,68,.96), rgba(9,35,44,.95)); }
.btn-primary {
  color: #fff;
  border-color: rgba(68,207,212,.72);
  background: linear-gradient(135deg, rgba(15,120,132,.97), rgba(7,68,81,.96));
}
.btn-primary:hover { border-color: var(--cyan-soft); background: linear-gradient(135deg, rgba(20,138,150,.98), rgba(9,80,94,.97)); transform: translateY(-1px); }
.btn-quiet { min-height: 44px; padding: 0 14px; border-color: transparent; background: none; box-shadow: none; }
.btn-quiet:hover { background: rgba(65,194,199,.1); border-color: transparent; }
.btn-small { min-height: 44px; padding: 0 18px; font-size: 15px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── Header ────────────────────────────────────────────────────────────── */
.site-header {
  position: absolute; inset: 0 0 auto; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 22px var(--gutter);
}
.site-header .brand { margin-right: auto; }
.site-nav { display: flex; gap: 4px; }
.site-nav a {
  padding: 10px 12px; border-radius: 7px;
  color: var(--body); font: 650 15px/1 var(--font-display); text-decoration: none;
}
.site-nav a:hover { color: var(--text); background: rgba(65,194,199,.1); }
.header-actions { display: flex; align-items: center; gap: 6px; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
.hero {
  position: relative; isolation: isolate;
  min-height: max(640px, 100vh);
  min-height: max(640px, 100svh);
  display: flex; align-items: center;
  overflow: hidden; background: #07171f;
}
.hero-art, .hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-art img { object-fit: cover; object-position: 60% center; z-index: -2; }
.hero-vignette {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(3,18,28,.97) 0%, rgba(4,23,34,.9) 30%, rgba(5,24,34,.42) 55%, rgba(5,19,27,.06) 78%),
    linear-gradient(0deg, var(--navy-950) 0%, rgba(2,12,17,.6) 14%, transparent 34%, rgba(3,17,26,.35) 100%);
}
.hero-content {
  width: min(900px, 100%);
  padding: 140px var(--gutter) 110px;
}
.eyebrow {
  margin-bottom: 14px;
  color: var(--gold); font: 800 12px/1.2 var(--font-display); letter-spacing: .22em; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(42px, 5.6vw, 76px); font-weight: 800; line-height: 1.02; letter-spacing: -.028em;
  text-wrap: balance; text-shadow: 0 4px 24px rgba(0,0,0,.35);
}
.hero-intro { max-width: 34em; margin: 22px 0 32px; color: var(--body); font-size: 18px; }
.hero-note { margin-top: 18px; color: var(--muted); font-size: 15px; }

@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: arrive 1100ms var(--ease-out) both; }
  .hero-content { animation: rise 800ms 150ms var(--ease-out) both; }
}
@keyframes arrive { from { transform: scale(1.045); opacity: .4; } to { transform: scale(1.012); opacity: 1; } }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Sections ──────────────────────────────────────────────────────────── */
.section { width: min(var(--max), 100%); margin: 0 auto; padding: clamp(72px, 10vw, 128px) var(--gutter); }
.section h2 { font-size: clamp(30px, 4vw, 48px); font-weight: 800; line-height: 1.1; letter-spacing: -.022em; text-wrap: balance; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.lede { margin-top: 18px; color: var(--body); font-size: 18px; }

.frame {
  margin: 0; overflow: hidden;
  border: 1px solid var(--line); border-radius: 12px;
  background: var(--navy-900);
  box-shadow: 0 24px 60px rgba(0,0,0,.45);
}
.frame figcaption { padding: 12px 16px 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: 15px; line-height: 1.45; }

/* What you do */
.play { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.verbs { display: grid; gap: 26px; margin: 34px 0 0; }
.verbs dt { display: flex; align-items: center; gap: 10px; font: 800 20px/1.2 var(--font-display); }
.verbs dd { margin: 8px 0 0 20px; color: var(--body); }
.pip { width: 10px; height: 10px; border-radius: 3px; transform: skewY(-12deg); }
.pip-cyan { background: var(--cyan); }
.pip-gold { background: var(--gold); }
.pip-coral { background: var(--coral); }

/* ── The charter skyline (signature) ───────────────────────────────────── */
.charter { position: relative; }
.skyline {
  --lot: 290px; /* tallest tower + skew headroom */
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0 18px;
  border-top: 0;
}
.tower { display: grid; grid-template-rows: var(--lot) auto auto auto; align-content: start; }
.tower-body {
  --h: 1;
  position: relative; align-self: end;
  width: min(64px, 70%);
  height: calc(34px + var(--h) * 30px);
  border-radius: 5px;
  background: var(--cream);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
  transform: skewY(-12deg); transform-origin: bottom left;
}
/* Lit windows: a column pattern masked into rows. */
.tower-body::after {
  content: ""; position: absolute; inset: 12px 9px 10px;
  background: linear-gradient(90deg, rgba(7,17,22,.3) 0 30%, transparent 30% 70%, rgba(7,17,22,.3) 70%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 7px, transparent 7px 15px);
          mask: repeating-linear-gradient(180deg, #000 0 7px, transparent 7px 15px);
}
.t1 .tower-body { --h: 1; }
.t2 .tower-body { --h: 2; background: linear-gradient(#3db7bd 0 45%, var(--gold) 46%); }
.t3 .tower-body { --h: 3; background: var(--coral); }
.t4 .tower-body { --h: 4; }
.t5 .tower-body { --h: 5; background: linear-gradient(#3db7bd 0 45%, var(--gold) 46%); }
.t6 .tower-body { --h: 6; background: var(--coral); }
.t7 .tower-body { --h: 7; }
.t8 .tower-body { --h: 8; background: linear-gradient(#3db7bd 0 45%, var(--gold) 46%); }

.tower-num {
  margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line);
  color: var(--cyan-soft); font: 700 13px/1 var(--font-mono); letter-spacing: .08em;
}
.tower h3 { margin-top: 10px; font-size: 17px; font-weight: 800; line-height: 1.25; }
.tower p { margin-top: 8px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }

/* The towers rise when the skyline scrolls into view (JS adds .is-built). */
@media (prefers-reduced-motion: no-preference) {
  .js .skyline .tower-body { scale: 1 0; transition: scale 900ms var(--ease-out); }
  .js .skyline.is-built .tower-body { scale: 1 1; }
  .js .skyline .t2 .tower-body { transition-delay: 70ms; }
  .js .skyline .t3 .tower-body { transition-delay: 140ms; }
  .js .skyline .t4 .tower-body { transition-delay: 210ms; }
  .js .skyline .t5 .tower-body { transition-delay: 280ms; }
  .js .skyline .t6 .tower-body { transition-delay: 350ms; }
  .js .skyline .t7 .tower-body { transition-delay: 420ms; }
  .js .skyline .t8 .tower-body { transition-delay: 490ms; }
}

/* Town hall tiers */
.halls {
  margin: clamp(56px, 8vw, 96px) 0 0;
  border: 1px solid var(--line); border-radius: 14px;
  background: var(--art-panel);
  overflow: hidden;
}
.halls figcaption { padding: 22px 24px 0; color: var(--body); }
.halls figcaption strong { display: block; margin-bottom: 4px; color: var(--text); font: 800 20px/1.3 var(--font-display); }
.hall-row { list-style: none; margin: 0; padding: 8px 12px 20px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.hall-row li { display: grid; justify-items: center; gap: 2px; }
.hall-row img { width: 100%; }
.hall-row span { color: var(--muted); font: 600 13px/1.3 var(--font-mono); text-align: center; }

/* ── Features ──────────────────────────────────────────────────────────── */
.features { border-top: 1px solid var(--line); }
.feature-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.feature-grid li { padding: 28px 28px 30px; background: var(--navy-900); }
.feature-grid h3 { font-size: 20px; font-weight: 800; line-height: 1.25; }
.feature-grid p { margin-top: 10px; color: var(--body); font-size: 16px; }
.feature-advisers picture { display: block; margin-top: 18px; }
.feature-advisers img { width: 100%; border-radius: 8px; }

/* ── Screenshots ───────────────────────────────────────────────────────── */
.screens { padding-right: 0; }
.shots {
  list-style: none; margin: 0; padding: 0 var(--gutter) 24px 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: min(820px, 84%);
  gap: 20px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: thin; scrollbar-color: var(--navy-700) transparent;
}
.shots li { scroll-snap-align: start; }
.shots img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; }
.shots:focus-visible { outline-offset: 6px; }

/* ── Closing ───────────────────────────────────────────────────────────── */
.closing {
  display: grid; justify-items: center; gap: 18px; text-align: center;
  padding: clamp(80px, 11vw, 140px) var(--gutter);
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(65,194,199,.14), transparent 70%),
    var(--navy-950);
  border-top: 1px solid var(--line);
}
.closing .brand-mark { margin-bottom: 10px; }
.closing h2 { font-size: clamp(32px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.closing p { color: var(--body); font-size: 18px; }
.closing .cta-row { justify-content: center; margin-top: 8px; }

/* ── Footer ────────────────────────────────────────────────────────────── */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding: 28px var(--gutter) 36px;
  border-top: 1px solid var(--line);
  color: var(--muted); font-size: 15px;
}
.site-footer .brand-word { font-size: 16px; }
.site-footer .brand-mark { width: 24px; height: 26px; }
.site-footer p:first-of-type { margin-left: auto; }

/* ── 404 ───────────────────────────────────────────────────────────────── */
.not-found { min-height: 100svh; display: grid; place-content: center; justify-items: start; gap: 18px; padding: 120px var(--gutter); max-width: 720px; margin: 0 auto; }
.not-found h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; }
.not-found p:not(.eyebrow) { color: var(--body); font-size: 18px; }

/* ── Watch it grow (signature) ─────────────────────────────────────────── */
/* Without JS this is a plain section: a screenshot and the chapter list. With
   JS it becomes a tall scroll track; the stage sticks while site.js maps the
   scroll to --grow and the engine draws the city for that moment. */
.grow { position: relative; border-top: 1px solid var(--line); }
.grow-sticky { position: relative; overflow: hidden; }
.grow-stage {
  position: relative; aspect-ratio: 16 / 10; max-height: 80svh;
  background:
    radial-gradient(70% 70% at 64% 55%, rgba(44,133,168,.22), transparent 70%),
    radial-gradient(120% 90% at 60% 60%, #0e2531 0%, var(--navy-900) 55%, var(--navy-950) 100%);
}
.grow-fallback, .grow-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; }
.grow-fallback img { object-fit: cover; }
.grow-stage canvas { position: absolute; inset: 0; display: block; }
.grow-stage.is-live .grow-fallback { opacity: 0; transition: opacity 600ms ease; }
.grow-hud { padding: 40px var(--gutter) 64px; }
.grow-hud h2 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; line-height: 1.08; letter-spacing: -.022em; text-wrap: balance; }
.grow-chapters { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 22px; }
.grow-num { color: var(--cyan-soft); font: 700 13px/1 var(--font-mono); letter-spacing: .08em; }
.grow-chapters h3 { margin-top: 8px; font-size: 22px; font-weight: 800; line-height: 1.2; }
.grow-chapters p { margin-top: 8px; color: var(--body); }
.grow-stats, .grow-rail, .grow-hint, .grow-note, .pin { display: none; }

.js .grow { height: 640vh; }
.js .grow-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; }
.js .grow-stage { position: absolute; inset: 0; aspect-ratio: auto; max-height: none; }
.js .grow-stage::after { /* legibility shade under the HUD */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,17,22,.94) 0%, rgba(7,17,22,.7) 24%, rgba(7,17,22,0) 44%),
    linear-gradient(180deg, var(--navy-950) 0%, transparent 12%, transparent 88%, var(--navy-950) 100%);
}
.js .grow-hud {
  position: absolute; z-index: 2; left: var(--gutter); top: 50%; transform: translateY(-50%);
  width: min(400px, 34vw); padding: 0;
}
.js .grow-chapters { position: relative; display: block; min-height: 190px; margin-top: 26px; }
.js .grow-chapters li {
  position: absolute; inset: 0 0 auto;
  opacity: 0; transform: translateY(14px); visibility: hidden;
  transition: opacity 380ms var(--ease-out), transform 480ms var(--ease-out), visibility 0s 480ms;
}
.js .grow-chapters li.is-active { opacity: 1; transform: none; visibility: visible; transition-delay: 0s; }
.js .grow-stats { display: flex; gap: 28px; margin: 6px 0 0; }
.grow-stats div { display: grid; gap: 4px; }
.grow-stats dt { color: var(--muted); font: 700 11px/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase; }
.grow-stats dd { margin: 0; color: var(--text); font: 800 26px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.js .grow-rail {
  display: block; position: relative; height: 4px; margin-top: 22px; border-radius: 4px;
  background: repeating-linear-gradient(90deg, var(--line-strong) 0 calc(11.11% - 3px), transparent calc(11.11% - 3px) 11.11%);
}
.grow-rail span {
  position: absolute; inset: 0 auto 0 0; width: calc(var(--grow-progress, 0) * 100%); border-radius: 4px;
  background: linear-gradient(90deg, var(--cyan), var(--gold));
}
.js .grow-note {
  display: block; position: absolute; z-index: 2; right: var(--gutter); bottom: 22px;
  color: var(--muted); font: 600 13px/1.3 var(--font-mono);
}
.js .grow-hint {
  display: flex; align-items: center; gap: 10px; position: absolute; z-index: 2; left: 50%; bottom: 28px; transform: translateX(-50%);
  color: var(--cyan-soft); font: 800 12px/1 var(--font-display); letter-spacing: .2em; text-transform: uppercase;
  transition: opacity 300ms ease;
}
.grow-hint::after { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-3px); }
.grow:not([data-chapter="0"]) .grow-hint { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .grow-hint::after { animation: nudge 1.6s ease-in-out infinite; }
}
@keyframes nudge { 50% { translate: 0 4px; } }

/* Venue pins: positioned over their buildings by the engine. */
.js .grow-stage.is-live .pin {
  display: block; position: absolute; left: 0; top: 0; z-index: 1;
  opacity: 0; pointer-events: none; text-decoration: none;
  transition: opacity 300ms ease;
}
.grow-stage.is-live .pin.is-on { opacity: 1; pointer-events: auto; }
.js .grow-stage.is-live .pin:not(.is-on) { visibility: hidden; transition: opacity 300ms ease, visibility 0s 300ms; }
.pin span {
  display: block; translate: -50% calc(-100% - 8px);
  padding: 7px 11px 7px 26px; border-radius: 999px; white-space: nowrap;
  color: var(--text); background: rgba(7,17,22,.86); border: 1px solid rgba(128,217,215,.5);
  box-shadow: 0 8px 22px rgba(0,0,0,.35);
  font: 750 12.5px/1 var(--font-display); letter-spacing: .02em;
  position: relative;
}
.pin span::before {
  content: ""; position: absolute; left: 10px; top: 50%; width: 8px; height: 8px; margin-top: -4px;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(231,177,61,.6);
}
.pin span::after {
  content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; margin-left: -5px;
  background: inherit; border: inherit; border-width: 0 1px 1px 0; transform: rotate(45deg);
}
.pin:hover span, .pin:focus-visible span { border-color: var(--cyan-soft); background: rgba(14,52,62,.95); }
@media (prefers-reduced-motion: no-preference) {
  .pin.is-on span::before { animation: beacon 1.8s ease-out infinite; }
}
@keyframes beacon { 70% { box-shadow: 0 0 0 7px rgba(231,177,61,0); } 100% { box-shadow: 0 0 0 0 rgba(231,177,61,0); } }

/* ── Walk inside (venues) ──────────────────────────────────────────────── */
.venues { border-top: 1px solid var(--line); }
.venue {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4.5vw, 64px); align-items: center;
  margin-top: clamp(48px, 7vw, 96px);
}
.venue:nth-of-type(even) { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.venue:nth-of-type(even) .venue-shot { order: 2; }
.venue-shot { position: relative; margin: 0; }
.venue-shot .frame img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.venue-map {
  position: absolute; right: -14px; bottom: -22px; width: clamp(120px, 30%, 210px);
  padding: 8px 8px 6px; border: 1px solid var(--line-strong); border-radius: 12px;
  background: rgba(11,23,29,.92); box-shadow: 0 18px 40px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(8px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}
.venue:nth-of-type(even) .venue-map { right: auto; left: -14px; }
.venue-map:has(img.is-drawn) { opacity: 1; transform: none; }
.venue-map img { width: 100%; height: auto; aspect-ratio: 5 / 4; object-fit: contain; }
.venue-map span { display: block; margin-top: 2px; color: var(--muted); font: 600 11px/1.3 var(--font-mono); text-align: center; }
.venue-meta { display: flex; align-items: center; gap: 10px; color: var(--gold); font: 800 12px/1.2 var(--font-display); letter-spacing: .2em; text-transform: uppercase; }
.venue-copy h3 { margin-top: 12px; font-size: clamp(28px, 3vw, 38px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.venue-copy > p:not([class]) { margin-top: 14px; color: var(--body); font-size: 18px; }
.venue-facts { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.venue-facts li { position: relative; padding-left: 22px; color: var(--body); font-size: 16px; line-height: 1.55; }
.venue-facts li::before {
  content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 2px;
  background: var(--cyan); transform: skewY(-12deg);
}
.venue-games {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 22px;
  color: var(--text); font: 700 15px/1.3 var(--font-display);
}
.venue-games span, .venue-os {
  color: var(--muted); font: 700 11px/1 var(--font-display); letter-spacing: .18em; text-transform: uppercase;
}
.venue-games span { padding: 6px 9px; border: 1px solid var(--line); border-radius: 6px; }
.venue-os { margin-top: 14px; }
.venue-os strong { color: var(--cyan-soft); letter-spacing: .12em; }
.venues-more {
  margin-top: clamp(56px, 8vw, 96px); padding: 22px 26px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--navy-900);
  color: var(--body); font-size: 17px;
}
.venues-more strong { color: var(--text); }

/* ── Rise into view ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] { opacity: 0; transform: translateY(26px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); }
  .js [data-rise].is-risen { opacity: 1; transform: none; }
  .js .venue[data-rise] .venue-shot { transform: translateX(-18px) rotate(-.6deg); transition: transform 1000ms var(--ease-out); }
  .js .venue[data-rise]:nth-of-type(even) .venue-shot { transform: translateX(18px) rotate(.6deg); }
  .js .venue[data-rise].is-risen .venue-shot { transform: none; }

  /* Hero art drifts slower than the page (scroll-driven where supported). */
  @supports (animation-timeline: scroll()) {
    /* Scaled from the bottom edge so the top never uncovers: +12% height > 9vh drift. */
    .hero-art img { transform-origin: 50% 100%; animation: arrive 1100ms var(--ease-out) both, drift linear both; animation-timeline: auto, scroll(root); animation-range: normal, 0 100vh; }
    @keyframes drift { to { translate: 0 9vh; scale: 1.12; } }
  }
}


/* ── Content pages (generated by content/: guides, reference, charter…) ── */
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.footer-nav a { color: var(--body); text-decoration: none; }
.footer-nav a:hover { color: var(--text); text-decoration: underline; }

.site-header-solid { position: relative; border-bottom: 1px solid var(--line); background: var(--navy-900); }
.page-shell {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px;
  width: min(var(--max), 100%); margin: 0 auto; padding: 40px var(--gutter) 72px;
}
.page-shell.has-side { grid-template-columns: 240px minmax(0, 1fr); }
.page-main { min-width: 0; }

.side-nav { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; font-size: 15px; }
.side-nav-title { margin-bottom: 10px; font: 800 12px/1.2 var(--font-display); letter-spacing: .18em; text-transform: uppercase; }
.side-nav-title a { color: var(--gold); text-decoration: none; }
.side-nav ul { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.side-nav li a { display: block; padding: 7px 0 7px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--body); text-decoration: none; line-height: 1.35; }
.side-nav li a:hover { color: var(--text); }
.side-nav li a[aria-current="page"] { color: var(--text); border-left-color: var(--cyan); font-weight: 650; }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 18px; padding: 0; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }

.prose { max-width: 760px; color: var(--body); }
.prose h1 { font-size: clamp(32px, 4.2vw, 50px); font-weight: 800; letter-spacing: -.022em; line-height: 1.1; }
.prose h2 { margin: 48px 0 14px; font-size: clamp(23px, 2.4vw, 29px); font-weight: 800; letter-spacing: -.012em; line-height: 1.2; }
.prose h3 { margin: 30px 0 10px; font-size: 20px; font-weight: 750; line-height: 1.3; }
.prose p, .prose ul, .prose ol, .prose dl, .prose blockquote, .prose .table-wrap { margin: 0 0 18px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 6px; }
.prose li::marker { color: var(--cyan); }
.prose strong { color: var(--text); }
.prose code, .prose kbd { padding: 1px 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--navy-850); color: var(--cream); font: 600 .88em var(--font-mono); }
.prose .lead { margin: 18px 0 30px; color: var(--cream); font-size: 20px; line-height: 1.55; }
.page-meta { margin-top: 12px; color: var(--muted); font-size: 14px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.45; }
.prose caption { padding: 12px 14px; text-align: left; color: var(--muted); font: 700 12px/1.2 var(--font-display); letter-spacing: .14em; text-transform: uppercase; border-bottom: 1px solid var(--line); }
.prose th, .prose td { padding: 10px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose thead th { color: var(--muted); font: 700 13px/1.3 var(--font-display); background: var(--navy-900); }
.prose tbody th { color: var(--text); font-weight: 650; }
.prose tbody tr:last-child > * { border-bottom: 0; }

.tip { padding: 14px 18px; border-left: 3px solid var(--gold); border-radius: 0 8px 8px 0; background: rgba(231,177,61,.08); }
.tip strong { color: var(--gold); }
.page-note, .see-also { color: var(--muted); font-size: 15px; }

.briefing { margin-left: 0; margin-right: 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--navy-900); }
.briefing p { margin: 0 0 10px; color: var(--cream); font-size: 18px; font-style: italic; }
.briefing footer { color: var(--muted); font-size: 14px; }
.briefing footer::before { content: "— "; }

.card-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; list-style: none; padding: 0 !important; }
.card-list li { margin: 0; }
.card-list a { display: grid; gap: 6px; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--navy-900); color: var(--body); text-decoration: none; font-size: 15px; line-height: 1.5; transition: border-color 140ms ease, background 140ms ease; }
.card-list a:hover { border-color: rgba(104,216,220,.55); background: var(--navy-850); }
.card-list strong { font: 750 18px/1.3 var(--font-display); }

.post-list { list-style: none; padding: 0 !important; }
.post-list li { display: grid; gap: 4px; padding: 18px 0; border-top: 1px solid var(--line); }
.post-list time { color: var(--gold); font: 700 13px/1.2 var(--font-display); letter-spacing: .06em; }
.post-list a { text-decoration: none; }
.post-list a strong { color: var(--text); font: 750 20px/1.3 var(--font-display); }
.post-list a:hover strong { text-decoration: underline; }

.faq > div { padding: 18px 0; border-top: 1px solid var(--line); }
.faq dt { margin-bottom: 8px; color: var(--text); font: 750 18px/1.35 var(--font-display); }
.faq dd { margin: 0; }
.faq dd p:last-child { margin-bottom: 0; }

.entry { padding: 22px 0 6px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.entry h3 { margin-top: 0; }
.entry:target h3 { color: var(--cyan-soft); }
.entry-benefit { color: var(--lime); font-weight: 600; font-size: 15px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--line); font-size: 15px; }
.facts > div { padding: 10px 14px; background: var(--navy-900); }
.facts dt { color: var(--muted); font: 700 12px/1.3 var(--font-display); letter-spacing: .08em; text-transform: uppercase; }
.facts dd { margin: 4px 0 0; color: var(--text); }

.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); font-weight: 650; }
.page-cta { margin-top: 44px; padding: 22px 24px; border: 1px solid rgba(68,207,212,.4); border-radius: 12px; background: linear-gradient(135deg, rgba(15,120,132,.18), rgba(7,68,81,.12)); }
.page-cta p { margin-bottom: 14px; color: var(--cream); }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .site-nav { display: none; }
  .page-shell.has-side { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .page-shell.has-side .side-nav { position: static; order: 2; max-height: none; padding-top: 24px; border-top: 1px solid var(--line); }
  .venue, .venue:nth-of-type(even) { grid-template-columns: 1fr; }
  .venue:nth-of-type(even) .venue-shot { order: 0; }
  .play { grid-template-columns: 1fr; }
  .hero-vignette {
    background:
      linear-gradient(90deg, rgba(3,18,28,.96) 0%, rgba(4,23,34,.86) 50%, rgba(5,24,34,.55) 100%),
      linear-gradient(0deg, var(--navy-950) 0%, transparent 30%);
  }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .skyline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 18px; }
  .skyline { --lot: 200px; }
  .tower-body { height: calc(26px + var(--h) * 20px); }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .page-shell { padding-top: 24px; }
  .prose .lead { font-size: 18px; }
  .site-header { padding-top: 16px; padding-bottom: 16px; gap: 12px; }
  .brand-text small { display: none; }
  .brand-word { font-size: 17px; }
  .header-actions .btn-small { display: none; }
  .hero { align-items: flex-end; min-height: max(620px, 100svh); }
  .hero-art img { object-position: 72% center; }
  .hero-vignette {
    background:
      linear-gradient(0deg, var(--navy-950) 0%, rgba(4,20,29,.94) 42%, rgba(4,20,29,.55) 68%, rgba(4,20,29,.2) 100%);
  }
  .hero-content { padding-top: 110px; padding-bottom: 56px; }
  .hero-intro { font-size: 17px; margin: 18px 0 26px; }
  .cta-row .btn { flex: 1 1 100%; }

  .feature-grid { grid-template-columns: 1fr; }
  .feature-grid li { padding: 24px 20px; }

  /* The skyline becomes a street you read top to bottom. */
  .skyline { grid-template-columns: 1fr; gap: 0; }
  .tower { grid-template-columns: 56px 1fr; grid-template-rows: auto auto auto; column-gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
  .tower:last-child { border-bottom: 1px solid var(--line); }
  .tower-body { grid-column: 1; grid-row: 1 / span 3; align-self: end; width: 34px; height: calc(20px + var(--h) * 9px); border-radius: 4px; }
  .tower-body::after { inset: 7px 6px 6px; -webkit-mask-size: auto; }
  .tower-num { grid-column: 2; margin: 0; padding: 0; border: 0; }
  .tower h3, .tower p { grid-column: 2; }
  .tower h3 { margin-top: 6px; }

  .halls figcaption { padding: 20px 18px 0; }
  .hall-row { grid-template-columns: repeat(5, 62%); overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 12px 18px; }
  .hall-row li { scroll-snap-align: center; }

  .shots { grid-auto-columns: 88%; gap: 14px; }
  .site-footer p:first-of-type { margin-left: 0; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

/* Narrow stages: the city fills the top, the chapter card sits below it. */
@media (max-width: 899px) {
  .js .grow { height: 560vh; }
  .js .grow-stage::after {
    background: linear-gradient(180deg, var(--navy-950) 0%, transparent 10%, transparent 48%, rgba(7,17,22,.92) 64%, var(--navy-950) 100%);
  }
  .js .grow-hud { top: auto; bottom: 22px; transform: none; left: var(--gutter); right: var(--gutter); width: auto; }
  .js .grow-hud .eyebrow { margin-bottom: 8px; }
  .js .grow-hud h2 { font-size: 24px; }
  .js .grow-chapters { min-height: 132px; margin-top: 14px; }
  .grow-chapters h3 { font-size: 19px; }
  .grow-chapters p { font-size: 15px; line-height: 1.5; }
  .grow-stats dd { font-size: 20px; }
  .js .grow-rail { margin-top: 14px; }
  .js .grow-note, .js .grow-hint { display: none; }
  .pin span { font-size: 11px; padding: 6px 9px 6px 22px; }
  .pin span::before { left: 8px; width: 7px; height: 7px; margin-top: -3.5px; }
  .venue-map { right: 8px; bottom: -18px; width: 34%; }
  .venue:nth-of-type(even) .venue-map { left: auto; right: 8px; }
}
