/* BlockForge landing page. One world, changing looks as you scroll: Game Boy green, golden hour,
   night, and back to the Game Boy picture at the end, like the One World film. */

@font-face {
  font-family: "Bricolage";
  src: url("../assets/fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}
@font-face {
  font-family: "Silkscreen";
  src: url("../assets/fonts/silkscreen-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --gb-0: #0f380f;
  --gb-1: #306230;
  --gb-2: #8bac0f;
  --gb-3: #9bbc0f;
  --ember: #2b1a12;     /* golden hour, in shadow */
  --dusk: #1d1630;
  --night: #120f24;
  --lantern: #ffb547;
  --parchment: #f4e9d4;

  --bg: var(--gb-3);
  --ink: var(--gb-0);
  --ink-soft: color-mix(in srgb, var(--ink) 74%, transparent);

  --display: "Bricolage", "Arial Narrow", system-ui, sans-serif;
  --body: "Bricolage", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Silkscreen", "Courier New", monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --section: clamp(72px, 11vh, 140px);
  --radius-frame: 22px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: clamp(17px, 1.05vw + 10px, 19px);
  line-height: 1.55;
  font-variation-settings: "opsz" 16;
  transition: background-color 900ms ease, color 900ms ease;
  overflow-x: hidden;
}
@media (prefers-reduced-motion: reduce) { body { transition: none; } }

img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lantern); outline-offset: 3px; border-radius: 6px; }

.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--parchment); color: #1a1408; border-radius: 10px; }
.skip:focus { top: 12px; }

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

h1, h2, h3 { font-family: var(--display); margin: 0; }
h2 {
  font-size: clamp(42px, 6.4vw, 104px);
  line-height: 0.92;
  font-weight: 760;
  font-stretch: 78%;
  font-variation-settings: "opsz" 96;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h3 {
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.05;
  font-weight: 700;
  font-stretch: 85%;
  font-variation-settings: "opsz" 48;
}
p { margin: 0; }
.lede { margin-top: 28px; max-width: 34em; color: var(--ink-soft); font-size: 1.08em; text-wrap: pretty; }

section { position: relative; padding: var(--section) 0; }

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  isolation: isolate;
  /* layered like a lens: a bright top rim, a darker belly, light pooling at the bottom edge */
  background:
    radial-gradient(140% 90% at 50% -30%, rgb(255 255 255 / 0.30), transparent 55%),
    radial-gradient(120% 70% at 50% 135%, rgb(255 255 255 / 0.20), transparent 60%),
    linear-gradient(160deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.03) 45%, rgb(255 255 255 / 0.08));
  -webkit-backdrop-filter: blur(16px) saturate(180%) brightness(1.06);
  backdrop-filter: blur(16px) saturate(180%) brightness(1.06);
  box-shadow:
    inset 0 1px 0.5px rgb(255 255 255 / 0.65),
    inset 0 -1px 1px rgb(255 255 255 / 0.12),
    inset 0 0 0 1px rgb(255 255 255 / 0.16),
    inset 0 -14px 24px -18px rgb(255 255 255 / 0.35),
    0 12px 32px -10px rgb(0 0 0 / 0.35);
}
.glass::after {
  /* the specular sheen follows the pointer (main.js sets --mx and --my) */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120px 80px at var(--mx, 30%) var(--my, 0%), rgb(255 255 255 / 0.32), transparent 70%);
  mix-blend-mode: soft-light;
  z-index: -1;
}
/* tinted glass keeps text readable over bright pictures */
.nav.glass { background-color: color-mix(in srgb, var(--bg) 58%, transparent); }
.glass.dark { background-color: rgb(16 12 34 / 0.42); }

@media (prefers-reduced-transparency: reduce) {
  .glass { backdrop-filter: none; -webkit-backdrop-filter: none; background: color-mix(in srgb, var(--bg) 82%, white); }
}

.frame-glass {
  margin: 0;
  position: relative;
  border-radius: var(--radius-frame);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgb(255 255 255 / 0.14),
    0 1px 0 0 rgb(255 255 255 / 0.30) inset,
    0 40px 80px -30px rgb(0 0 0 / 0.6);
  background: #000;
}
.frame-glass video, .frame-glass img, .frame-glass canvas { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  z-index: 50;
  top: max(14px, env(safe-area-inset-top));
  left: 0;
  right: 0;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 28px);
  padding: 7px 7px 7px 20px;
  border-radius: 999px;
  color: var(--ink);
  width: max-content;
  max-width: calc(100vw - 24px);
  transition: color 900ms ease;
}
.nav nav { display: flex; gap: clamp(8px, 1.6vw, 22px); font-size: 15px; }
.nav nav a { text-decoration: none; opacity: 0.86; }
.nav nav a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.wordmark { font-family: var(--pixel); font-size: 15px; letter-spacing: 0.02em; text-decoration: none; white-space: nowrap; }
.nav-cta {
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  transition: background-color 900ms ease, color 900ms ease;
  white-space: nowrap;
}
@media (max-width: 620px) {
  .nav nav { display: none; }
  .nav { padding-left: 16px; }
}

/* ---------- Hero ---------- */
.hero { padding: 0; height: 430vh; background: var(--gb-3); }
.hero-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--gb-3);
}
.hero-poster, .hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.hero-canvas { opacity: 0; }
.hero.ready .hero-canvas { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgb(24 12 6 / 0.72), rgb(24 12 6 / 0.15) 38%, transparent 60%);
  opacity: var(--shade, 0);
}
.hero-title {
  position: absolute;
  left: var(--gutter); right: var(--gutter);
  top: 15vh; top: 15svh;
  text-align: left;
  color: var(--gb-0);
  opacity: var(--title, 1);
  translate: 0 calc((1 - var(--title, 1)) * -40px);
}
.pixel-mark {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(40px, 6.2vw, 120px);
  line-height: 0.9;
  letter-spacing: -0.01em;
  /* the hard drop shadow of an 8 bit title screen */
  text-shadow: 0.06em 0.06em 0 var(--gb-2);
}
/* a Game Boy dialog box */
.gb-box {
  display: inline-block;
  font-family: var(--pixel);
  background: var(--gb-3);
  color: var(--gb-0);
  padding: 0.55em 0.9em 0.5em;
  box-shadow: 0 0 0 3px var(--gb-0), inset 0 0 0 3px var(--gb-2), 6px 6px 0 3px rgb(15 56 15 / 0.35);
}
.hero-soon { margin-top: clamp(18px, 2.4vw, 30px); font-size: clamp(14px, 1.3vw, 20px); }
.hero-line {
  position: absolute;
  left: var(--gutter);
  right: var(--gutter);
  bottom: clamp(48px, 11vh, 120px);
  max-width: 1240px;
  margin: 0 auto;
  color: var(--parchment);
  opacity: var(--line, 0);
  translate: 0 calc((1 - var(--line, 0)) * 24px);
}
.hero-line p {
  font-family: var(--display);
  font-size: clamp(42px, 5.2vw, 84px);
  line-height: 0.98;
  font-weight: 720;
  font-stretch: 80%;
  font-variation-settings: "opsz" 96;
  max-width: 15em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgb(30 12 4 / 0.45);
}
.hero-line p.hero-sub { margin-top: 0.35em; font-size: clamp(22px, 2.6vw, 40px); font-weight: 520; font-stretch: 88%; line-height: 1.12; max-width: 22em; opacity: 0.94; }
.hero-hint {
  position: absolute;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  margin: 0;
  font-size: 13px;
  opacity: var(--hint, 1);
}
.hero-hint span { display: inline-block; animation: hint 1.6s steps(2, jump-none) infinite; }
@keyframes hint { 50% { translate: 0 5px; } }
@media (prefers-reduced-motion: reduce) { .hero-hint span { animation: none; } }

@media (max-aspect-ratio: 1/1) {
  .hero-title { text-align: center; top: 14svh; }
  .hero .pixel-mark { font-size: min(11.6vw, 9vh); }
}

/* ---------- Sentence ---------- */
.sentence-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.sentence-film { aspect-ratio: 16 / 9; }
.script {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 8px;
  align-items: baseline;
  font-size: clamp(19px, 1.6vw, 23px);
}
.script-text { flex-basis: 100%; font-weight: 600; font-style: italic; margin-bottom: 6px; color: var(--parchment); }
.tag {
  font-size: 0.78em;
  padding: 4px 11px 5px;
  border-radius: 7px;
  background: rgb(255 181 71 / 0.14);
  color: var(--lantern);
  box-shadow: inset 0 0 0 1px rgb(255 181 71 / 0.35);
  white-space: nowrap;
}
.tag b { font-weight: 700; font-size: 0.82em; letter-spacing: 0.04em; margin-right: 0.35em; opacity: 0.8; }

/* ---------- Looks ---------- */
.looks-stage { margin-top: clamp(48px, 7vw, 88px); position: relative; }
.looks-view { aspect-ratio: 16 / 9; }
.looks-view img {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 420ms steps(6, jump-end);
  image-rendering: pixelated;
}
.looks-view img.on { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .looks-view img { transition: none; } }
.looks-switch {
  position: absolute;
  left: 50%;
  bottom: clamp(12px, 2.4vw, 28px);
  translate: -50% 0;
  display: flex;
  gap: 2px;
  padding: 5px;
  border-radius: 999px;
  color: #fff;
  max-width: calc(100% - 24px);
  overflow-x: auto;
  scrollbar-width: none;
}
.looks-switch button {
  border: 0;
  background: transparent;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 15px;
  white-space: nowrap;
  cursor: pointer;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
}
.looks-switch button[aria-selected="true"] {
  background: rgb(255 255 255 / 0.92);
  color: #1d1630;
  text-shadow: none;
}
.looks-more {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1.3fr 0.62fr 1.3fr;
  gap: clamp(14px, 2vw, 24px);
  align-items: end;
}
.looks-more figure, .life-grid figure { margin: 0; }
.looks-more video { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; background: #000; }
.looks-more .tall video { aspect-ratio: 9 / 16; }
figcaption { margin-top: 12px; font-size: 15px; color: var(--ink-soft); }

/* ---------- History ---------- */
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: end; }
.split-head .lede { margin-top: 0; }
.history-player { margin-top: clamp(40px, 6vw, 72px); aspect-ratio: 16 / 9; background: #070a12; }
.history-canvas { position: absolute; inset: 0; }
.history-meta {
  position: absolute;
  left: clamp(10px, 2vw, 22px);
  top: clamp(10px, 2vw, 22px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 14px;
  padding: 9px 16px;
  border-radius: 14px;
  color: #fff;
  font-size: 15px;
  max-width: calc(100% - 20px);
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.45);
}
.hm-name { font-family: var(--pixel); font-size: 15px; }
.hm-id { opacity: 0.75; font-variant-numeric: tabular-nums; }
.hm-era { padding: 1px 8px; border-radius: 6px; background: rgb(255 255 255 / 0.18); font-size: 13px; }
.hm-diff { font-variant-numeric: tabular-nums; }
.hm-diff .a { color: #9df29d; }
.hm-diff .c { color: #ffd27a; }
.history-controls { display: flex; align-items: flex-start; gap: 18px; margin-top: 22px; }
.history-play {
  flex: none;
  width: 52px; height: 52px;
  border: 0;
  border-radius: 50%;
  display: grid; place-items: center;
  color: #fff;
  cursor: pointer;
}
.history-play svg { width: 18px; height: 18px; fill: currentColor; }
.history-play .i-pause, .history-play.playing .i-play { display: none; }
.history-play.playing .i-pause { display: inline; }
.history-track { position: relative; flex: 1; padding-top: 14px; }
.history-range {
  -webkit-appearance: none; appearance: none;
  width: 100%;
  height: 24px;
  margin: 0;
  background: transparent;
  cursor: grab;
  position: relative;
  z-index: 2;
}
.history-range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #ffb547 var(--fill, 0%), rgb(255 255 255 / 0.18) var(--fill, 0%)); }
.history-range::-moz-range-track { height: 4px; border-radius: 4px; background: rgb(255 255 255 / 0.18); }
.history-range::-moz-range-progress { height: 4px; border-radius: 4px; background: #ffb547; }
.history-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px; margin-top: -9px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 4px rgb(255 181 71 / 0.35), 0 4px 10px rgb(0 0 0 / 0.4);
}
.history-range::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 6px; background: #fff; box-shadow: 0 0 0 4px rgb(255 181 71 / 0.35); }
.history-ticks { list-style: none; margin: 0; padding: 0; position: relative; height: 44px; }
.history-ticks li {
  position: absolute;
  top: 0;
  translate: -50% 0;
  font-family: var(--pixel);
  font-size: 11px;
  color: rgb(244 233 212 / 0.5);
  white-space: nowrap;
  padding-top: 12px;
  transition: color 200ms;
}
.history-ticks li::before {
  content: "";
  position: absolute;
  left: 50%; top: 0;
  width: 2px; height: 8px;
  background: currentColor;
}
.history-ticks li.past { color: rgb(244 233 212 / 0.8); }
.history-ticks li.now { color: var(--lantern); }
.history-ticks li:nth-child(even) { padding-top: 28px; }
.history-ticks li:nth-child(even)::before { height: 24px; }
.branches {
  margin-top: clamp(72px, 10vw, 140px);
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.branches figure { aspect-ratio: 16 / 9; }
.branches p { margin-top: 16px; color: var(--ink-soft); }

/* ---------- Life ---------- */
.life-grid {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 24px);
}
.life-grid video, .life-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; background: #000; }
.life-main { grid-column: 1 / span 12; aspect-ratio: 21 / 9; }
.life-talk { grid-column: 1 / span 7; aspect-ratio: 16 / 9; }
.life-cast { grid-column: 8 / span 5; aspect-ratio: auto; }
.life-cast img { object-fit: cover; aspect-ratio: 1460 / 1141; height: auto; }

/* ---------- Walk ---------- */
.walk-stage { margin-top: clamp(40px, 6vw, 72px); aspect-ratio: 16 / 9; }
.walk-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.walk-cover {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center; gap: 14px;
  background: radial-gradient(closest-side, rgb(10 8 20 / 0.45), transparent);
}
.walk-load {
  border: 0;
  cursor: pointer;
  padding: 18px 30px;
  border-radius: 999px;
  font-size: clamp(17px, 1.6vw, 21px);
  font-weight: 650;
  color: #fff;
  text-shadow: 0 1px 3px rgb(0 0 0 / 0.5);
}
.walk-note { font-size: 14px; color: rgb(255 255 255 / 0.82); text-shadow: 0 1px 3px rgb(0 0 0 / 0.7); }
.walk-keys { margin-top: 18px; font-size: 15px; color: var(--ink-soft); }

/* ---------- Agents ---------- */
.agents-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 96px);
  align-items: center;
}
.agents-grid p + p { margin-top: 18px; color: var(--ink-soft); max-width: 34em; }
.transcript {
  list-style: none;
  margin: 0;
  padding: clamp(20px, 2.6vw, 34px);
  border-radius: 26px;
  display: grid;
  gap: 12px;
  font-size: 16px;
  line-height: 1.4;
}
.transcript li { opacity: 0.25; transition: opacity 500ms ease, translate 500ms ease; translate: 0 4px; }
.transcript.run li.on, .transcript.static li { opacity: 1; translate: 0 0; }
.transcript .who { display: inline-block; min-width: 3.2em; color: #b6f0c9; font-weight: 600; }
.transcript li:first-child { padding-bottom: 10px; margin-bottom: 4px; border-bottom: 1px solid rgb(255 255 255 / 0.14); font-size: 17px; }
.transcript .call {
  display: block;
  font-family: var(--pixel);
  font-size: 12px;
  color: #b6f0c9;
  margin-bottom: 1px;
}
@media (prefers-reduced-motion: reduce) { .transcript li { transition: none; } }

/* ---------- Films ---------- */
.film-grid {
  margin-top: clamp(48px, 7vw, 88px);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(12px, 1.8vw, 22px);
}
.film {
  grid-column: span 4;
  position: relative;
  border: 0;
  padding: 0;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  background: #000;
  aspect-ratio: 16 / 10;
  text-align: left;
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.10), 0 24px 50px -24px rgb(0 0 0 / 0.7);
}
.film.big { grid-column: span 8; grid-row: span 2; aspect-ratio: auto; }
.film.tall { grid-row: span 2; aspect-ratio: auto; }
.film img { width: 100%; height: 100%; object-fit: cover; transition: scale 700ms cubic-bezier(.2,.7,.2,1); }
.film:hover img, .film:focus-visible img { scale: 1.04; }
.film .cap {
  position: absolute;
  left: 10px; bottom: 10px;
  padding: 7px 13px;
  border-radius: 999px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgb(0 0 0 / 0.5);
  display: flex; gap: 10px; align-items: baseline;
}
.film .cap small { font-weight: 400; opacity: 0.8; font-size: 13px; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .film img { transition: none; } }

/* ---------- Coming soon ---------- */
.soon {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-items: end;
  padding-bottom: clamp(64px, 10vh, 120px);
  overflow: hidden;
}
.soon-art {
  position: absolute; inset: 0;
  background: url("../assets/img/gb-night.webp") center / cover no-repeat;
  image-rendering: pixelated;
}
.soon-art::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, var(--gb-0) 8%, rgb(15 56 15 / 0.55) 45%, rgb(15 56 15 / 0) 75%);
}
.soon-inner { position: relative; color: var(--gb-3); }
.pixel-mark.small { font-size: clamp(38px, 7.5vw, 120px); text-shadow: 0.06em 0.06em 0 var(--gb-1); }
.soon-line { margin-top: 26px; max-width: 30em; font-size: 1.1em; color: #c7dc7c; }
.notify {
  margin-top: 34px;
  display: flex;
  max-width: 520px;
  padding: 6px;
  border-radius: 999px;
}
.notify input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  padding: 12px 18px;
  color: #f2f8d8;
  font-size: 17px;
}
.notify input::placeholder { color: rgb(242 248 216 / 0.6); }
.notify input:focus { outline: none; }
.notify:focus-within { box-shadow: 0 0 0 3px var(--lantern), 0 12px 32px -10px rgb(0 0 0 / 0.35); }
.notify button {
  border: 0;
  cursor: pointer;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--gb-3);
  color: var(--gb-0);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
}
.notify button:hover { background: #b5d42a; }
.notify-status { margin-top: 14px; min-height: 1.5em; font-size: 15px; color: #c7dc7c; }

/* ---------- Footer ---------- */
.foot { background: var(--gb-0); color: #8fae5a; padding: 28px 0 calc(28px + env(safe-area-inset-bottom)); font-size: 14px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; justify-content: space-between; }
.foot .wordmark { color: var(--gb-3); }

/* ---------- Lightbox ---------- */
.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  width: min(1200px, 94vw);
  max-height: 94vh;
  color: #fff;
}
.lightbox::backdrop { background: rgb(8 6 16 / 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox video { width: 100%; max-height: 80vh; border-radius: 16px; background: #000; }
.lightbox-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 14px; }
.lightbox-title { font-family: var(--display); font-weight: 700; font-size: 22px; font-stretch: 85%; }
.lightbox-close { border: 0; cursor: pointer; padding: 10px 20px; border-radius: 999px; color: #fff; }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .sentence-grid, .split-head, .agents-grid, .branches { grid-template-columns: 1fr; }
  .split-head .lede { margin-top: 4px; }
  .looks-more { grid-template-columns: 1fr 1fr; }
  .looks-more .tall { grid-row: span 2; grid-column: 2; }
  .looks-more figure:first-child { grid-column: 1; }
  .looks-more figure:last-child { grid-column: 1; }
  .film, .film.big { grid-column: span 6; grid-row: auto; aspect-ratio: 16 / 10; }
  .film.tall { grid-row: span 2; aspect-ratio: auto; }
  .life-main { aspect-ratio: 16 / 10; }
  .life-talk, .life-cast { grid-column: 1 / -1; }
  .history-ticks li { font-size: 0; padding-top: 0 !important; }
  .history-ticks li::before { height: 8px !important; }
  .history-ticks { height: 14px; }
}
@media (max-width: 560px) {
  .film, .film.big { grid-column: 1 / -1; }
  .film.tall { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 9 / 12; }
  .looks-switch button { padding: 8px 11px; font-size: 14px; }
  .notify { flex-direction: column; border-radius: 22px; gap: 6px; }
  .notify button { padding: 13px; }
}
