/* ─────────────────────────────────────────────
   TNIKPU — Latent Space
   Sacred editorial structure × spectral transmissions.
   Images rest in a quiet "latent" state and reveal
   their true colour when manifest (hover / toggle).
   ───────────────────────────────────────────── */

:root {
  --night: #0b0a10;
  --char: #15131b;
  --indigo: #1a1730;
  --violet: #3a2f5c;
  --parchment: #e8e2d4;
  --ivory: #f3eee4;
  --stone: #aca5b8;
  --stone-dim: #6f6980;

  /* spectral accents, pulled from the transmissions */
  --lilac: #c4b5ff;
  --ember: #ff8a6b;
  --aqua: #5fe0d0;
  --magenta: #d63fb4;
  --iris: linear-gradient(100deg, var(--lilac), var(--ember) 50%, var(--aqua));

  --line: rgba(232, 226, 212, .2);
  --line-strong: rgba(232, 226, 212, .42);

  --f-display: "Cormorant", Georgia, serif;
  --f-caps: "Cinzel", Georgia, serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--parchment);
  font-family: var(--f-display);
  font-size: 19px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--magenta); color: var(--ivory); }

/* ── print + signal texture ── */
.noise { position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .09; mix-blend-mode: overlay; }
.scan {
  position: fixed; inset: 0; z-index: 88; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
  mix-blend-mode: multiply;
}
.vignette { position: fixed; inset: 0; z-index: 89; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.6) 100%); }

/* ── type utilities ── */
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone); margin: 0; }
.small-serif { font-size: 15px; line-height: 1.4; color: var(--stone); margin: 0; }
.iris-text { background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── LATENT ⇄ MANIFEST ──
   The core idea: every transmission still rests in monochrome violet,
   and blooms into its real spectrum when you attend to it. */
.latent { position: relative; isolation: isolate; background: var(--violet); }
.latent img {
  filter: grayscale(1) contrast(1.15) brightness(.82);
  transition: filter 1.4s var(--ease), transform 1.6s var(--ease);
}
.latent::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(150,130,230,.35), rgba(26,23,48,.6));
  mix-blend-mode: multiply;
  transition: opacity 1.4s var(--ease);
}
:is(a, button, figure, li):hover > .latent img, .latent:hover img,
body.is-manifest .latent img { filter: none; }
:is(a, button, figure, li):hover > .latent::before, .latent:hover::before,
body.is-manifest .latent::before { opacity: 0; }

/* ── buttons ── */
.oval-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px;
  font-family: var(--f-caps); font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--parchment); background: none; border: 0; cursor: pointer; isolation: isolate;
}
.oval-btn::before, .oval-btn::after {
  content: ""; position: absolute; inset: 0; border: 1px solid var(--line-strong); border-radius: 50%;
  transition: transform .6s ease, border-color .4s;
}
.oval-btn::after { transform: rotate(-6deg) scale(1.04, .9); border-color: var(--line); }
.oval-btn:hover::before { transform: rotate(4deg); border-color: var(--ember); }
.oval-btn:hover::after { transform: rotate(-10deg) scale(1.08, .86); border-color: var(--aqua); }

/* ── state toggle ── */
.state-toggle { display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; cursor: pointer; padding: 6px 0; }
.state-toggle__label { font-family: var(--f-caps); font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--stone-dim); transition: color .4s; }
.state-toggle__label--l { color: var(--parchment); }
.state-toggle__track { position: relative; width: 44px; height: 20px; border: 1px solid var(--line-strong); border-radius: 20px; }
.state-toggle__dot {
  position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--parchment); transition: transform .6s var(--ease), background .6s;
}
body.is-manifest .state-toggle__dot { transform: translateX(24px); background: var(--iris); box-shadow: 0 0 12px rgba(255,138,107,.7); }
body.is-manifest .state-toggle__label--l { color: var(--stone-dim); }
body.is-manifest .state-toggle__label--m { background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── masthead ── */
.mast {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  border-bottom: 1px solid transparent;
  transition: background .5s, border-color .5s;
}
.mast.is-scrolled { background: rgba(11,10,16,.82); backdrop-filter: blur(6px); border-bottom-color: var(--line); }
.mast__mark { font-family: var(--f-caps); font-size: 15px; letter-spacing: .5em; }
.mast__nav { display: flex; gap: clamp(14px, 2.4vw, 36px); }
.mast__nav a { font-family: var(--f-caps); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--stone); transition: color .3s; }
.mast__nav a span { font-family: var(--f-display); font-style: italic; letter-spacing: 0; margin-right: 6px; color: var(--lilac); text-transform: none; font-size: 13px; }
.mast__nav a:hover { color: var(--ivory); }

/* ── plates ── */
.plate { position: relative; max-width: var(--max); margin: 0 auto; padding: clamp(80px, 12vw, 160px) var(--gutter); }
.plate + .plate::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: var(--line); }
.plate__head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(40px, 6vw, 80px); position: relative; z-index: 2; }
.plate__num { font-style: italic; font-weight: 300; font-size: 28px; color: var(--lilac); }
.plate__head h2 { margin: 0; font-weight: 300; font-size: clamp(44px, 7vw, 96px); line-height: .95; letter-spacing: -.01em; color: var(--ivory); }
.plate__head .rule { flex: 1; min-width: 40px; height: 1px; background: var(--line); align-self: center; }
.plate__head--center { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.plate__sub { margin: 10px 0 0; max-width: 34em; color: var(--stone); font-style: italic; font-size: 21px; }

/* ── arches ── */
.arch { position: relative; margin: 0; border-radius: 999px 999px 0 0; overflow: hidden; background: var(--indigo); }
.arch img, .arch canvas { width: 100%; height: 100%; object-fit: cover; display: block; }
.arch::after {
  content: ""; position: absolute; inset: 10px; z-index: 2;
  border: 1px solid rgba(243,238,228,.35); border-radius: inherit; border-bottom: 0; pointer-events: none;
}
img.letterboxed { scale: 1.34; }
figcaption { display: block; margin-top: 14px; font-size: 15px; color: var(--stone); }
figcaption > .mono { margin-right: 12px; }
.arch figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; margin: 0; padding: 40px 22px 18px; background: linear-gradient(transparent, rgba(0,0,0,.75)); color: var(--parchment); }

.field { transition: opacity .9s ease; touch-action: none; }
.field.is-fading { opacity: .15; }
.field--fallback { background: radial-gradient(circle at 40% 30%, var(--ember), var(--magenta) 30%, var(--violet) 60%, var(--night)); }

/* ═════ HERO ═════ */
.hero {
  min-height: 100vh; max-width: none;
  padding-top: 110px; padding-bottom: 60px;
  display: grid; grid-template-columns: 1fr minmax(280px, 520px) 1fr; grid-template-rows: 1fr auto;
  align-items: center; gap: 0 var(--gutter); overflow: hidden;
}
.frame-lines { position: absolute; inset: 86px var(--gutter) 28px; border: 1px solid var(--line); pointer-events: none; }
.frame-lines::before, .frame-lines::after { content: ""; position: absolute; width: 14px; height: 14px; border: 1px solid var(--line-strong); }
.frame-lines::before { top: -7px; left: -7px; }
.frame-lines::after { bottom: -7px; right: -7px; }

.hero__meta { align-self: start; padding-top: 40px; display: grid; gap: 10px; z-index: 3; }
.hero__meta--l { padding-left: 24px; }
.hero__meta--r { justify-items: end; text-align: right; padding-right: 24px; }
.glyph-row { margin: 8px 0 0; font-size: 20px; letter-spacing: .35em; color: var(--lilac); }

.hero__stage { position: relative; grid-column: 2; grid-row: 1; padding-top: 70px; }
.arch--hero { aspect-ratio: 3 / 4.3; box-shadow: 0 40px 120px -30px rgba(214,63,180,.35), 0 40px 80px -30px rgba(0,0,0,.8); }
.hero__curve { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 122%; overflow: visible; z-index: 3; }
.hero__curve text { fill: var(--parchment); font-family: var(--f-caps); font-size: 19px; letter-spacing: .3em; text-transform: uppercase; }

.spark { position: absolute; color: var(--ivory); z-index: 4; pointer-events: none; }
.spark--a { width: 34px; height: 34px; left: -60px; top: 32%; }
.spark--b { width: 22px; height: 60px; right: -50px; top: 46%; }
.spark--c { width: 42px; height: 42px; left: 26%; top: 22%; animation: twinkle 6s ease-in-out infinite; }
.orbit { position: absolute; left: -18%; width: 136%; top: 52%; z-index: 4; pointer-events: none; overflow: visible; }
.orbit ellipse { fill: none; stroke: var(--parchment); stroke-width: 1; opacity: .7; }

.hero__title {
  position: absolute; left: 50%; bottom: -0.36em; transform: translateX(-50%); margin: 0; z-index: 5;
  font-weight: 300; font-size: clamp(84px, 15vw, 230px); line-height: 1; letter-spacing: .04em;
  color: var(--ivory); white-space: nowrap; text-shadow: 0 6px 40px rgba(0,0,0,.5);
}
.hero__title span { font-style: italic; }
.hero__title .star-letter { font-style: normal; position: relative; }
.hero__title .star-letter::after {
  content: ""; position: absolute; top: .16em; right: -.08em; width: .14em; height: .14em; background: currentColor;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.hero__foot {
  grid-column: 1 / -1; grid-row: 2; z-index: 3;
  display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 120px 24px 24px;
}
.hero__lede { max-width: 26em; margin: 0; font-size: 21px; font-style: italic; }

/* ═════ I. TRAVELER ═════ */
.ghost {
  position: absolute; top: clamp(30px, 6vw, 80px); left: 50%; transform: translateX(-50%); margin: 0; z-index: 0;
  font-weight: 300; font-size: clamp(110px, 22vw, 320px); line-height: 1; color: rgba(232,226,212,.045);
  white-space: nowrap; pointer-events: none;
}
.traveler__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 5fr 6fr 3fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.arch--tall { aspect-ratio: 3 / 4.2; }
.traveler__text p { margin: 0 0 1.1em; max-width: 30em; }
.traveler__text .drop { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.25; color: var(--ivory); font-weight: 300; }
.traveler__text .drop::first-letter {
  float: left; font-family: var(--f-caps); font-size: 3.1em; line-height: .82; padding: 6px 12px 0 0;
  background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sig-line { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid var(--line); max-width: 30em; }
.sig-line svg { width: 16px; height: 16px; color: var(--ember); flex: none; }
.label-card { border: 1px solid var(--line); padding: 22px 20px 26px; background: rgba(21,19,27,.6); }
.label-card dl { margin: 18px 0 0; }
.label-card dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone-dim); }
.label-card dd { margin: 0 0 12px; font-size: 17px; font-style: italic; }
.label-card a { border-bottom: 1px solid var(--line-strong); }
.label-card a:hover { border-color: var(--aqua); }

/* ═════ II. SEVEN GATES ═════ */
.colonnade {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: clamp(8px, 1.4vw, 20px);
  align-items: end; margin-bottom: clamp(60px, 8vw, 110px);
}
.gate { display: grid; justify-items: center; gap: 6px; padding: 0; background: none; border: 0; cursor: pointer; text-align: center; }
.gate__arch {
  display: block; width: 100%; aspect-ratio: 1 / calc(2.6 * var(--h));
  border-radius: 999px 999px 0 0; overflow: hidden;
  outline: 1px solid var(--line); outline-offset: 5px;
  transition: outline-color .4s, transform .8s var(--ease);
}
.gate__arch img { width: 100%; height: 100%; object-fit: cover; }
.gate:hover .gate__arch { transform: translateY(-6px); }
.gate[aria-selected="true"] .gate__arch { outline-color: var(--ember); }
.gate[aria-selected="true"] .gate__arch img { filter: none; }
.gate[aria-selected="true"] .gate__arch::before { opacity: 0; }
.gate__num { margin-top: 14px; font-style: italic; font-size: 22px; color: var(--lilac); line-height: 1; }
.gate__glyph { font-size: 20px; line-height: 1; color: var(--parchment); }
.gate__name { font-family: var(--f-caps); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--stone); }
.gate[aria-selected="true"] .gate__name { color: var(--ivory); }

.gate-detail { display: grid; grid-template-columns: 6fr 5fr; gap: clamp(32px, 6vw, 90px); align-items: center; opacity: 0; transform: translateY(14px); }
.gate-detail.is-in { opacity: 1; transform: none; transition: opacity 1s ease, transform 1s var(--ease); }
.gate-detail__img { aspect-ratio: 4 / 3.6; }
.play-orb {
  position: absolute; z-index: 4; left: 50%; top: 55%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(11,10,16,.35); backdrop-filter: blur(4px);
  border: 1px solid rgba(243,238,228,.6); transition: transform .6s var(--ease), background .4s;
}
.play-orb svg { width: 22px; height: 22px; margin-left: 4px; }
.play-orb:hover { transform: translate(-50%, -50%) scale(1.08); background: rgba(214,63,180,.35); }
.gate-detail__glyph { font-size: 44px; line-height: 1; margin: 18px 0 6px; background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; }
.gate-detail__name { margin: 0; font-weight: 300; font-style: italic; font-size: clamp(44px, 5.5vw, 76px); line-height: 1; color: var(--ivory); }
.gate-detail__title { margin: 12px 0 22px; font-family: var(--f-caps); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.gate-detail__note { margin: 0 0 24px; max-width: 28em; font-size: 21px; line-height: 1.45; }
.gate-detail__meta { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; margin: 0 0 30px; padding-top: 18px; border-top: 1px solid var(--line); }
.gate-detail__meta dt { font-family: var(--f-mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--stone-dim); padding-top: 4px; }
.gate-detail__meta dd { margin: 0; font-style: italic; }

/* ═════ III. PROJECT XIII ═════ */
.xiii { max-width: none; background: #08070c; }
.xiii__inner { max-width: var(--max); margin: 0 auto; }
.xiii .plate__head b { font-weight: 400; color: var(--ember); }
.xiii__intro { max-width: 32em; font-size: 22px; color: var(--stone); margin: -30px 0 70px; }
.xiii__intro em { color: var(--parchment); }

.xiii-grid {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 44px) clamp(16px, 2vw, 28px);
}
/* first vision leads, like a catalogue frontispiece */
.xiii-grid .vision:first-child { grid-column: span 2; grid-row: span 2; }
.xiii-grid .vision:first-child .vision__frame { aspect-ratio: 4 / 4.4; }
.xiii-grid .vision:first-child .vision__title { font-size: 34px; }

.vision__btn { display: grid; width: 100%; padding: 0; background: none; border: 0; cursor: pointer; text-align: left; }
.vision__frame {
  display: block; position: relative; overflow: hidden; aspect-ratio: 3 / 4;
  border-radius: 999px 999px 0 0;
}
.vision__frame img { width: 100%; height: 100%; object-fit: cover; }
.vision__btn:hover .vision__frame img { transform: scale(1.05); }
.vision__play {
  position: absolute; z-index: 3; right: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 1px solid rgba(243,238,228,.55); background: rgba(11,10,16,.4);
  opacity: 0; transform: scale(.8); transition: opacity .4s, transform .5s var(--ease);
}
.vision__play svg { width: 14px; height: 14px; margin-left: 2px; }
.vision__btn:hover .vision__play { opacity: 1; transform: none; }
.vision__meta { display: flex; justify-content: space-between; margin: 16px 0 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.vision__title { display: block; font-size: 23px; line-height: 1.15; color: var(--ivory); }
.vision__sub { display: block; margin-top: 4px; font-style: italic; font-size: 15px; color: var(--stone); }

/* the eight frames still in latent space */
.vision__frame--void {
  border: 1px dashed var(--line-strong); border-bottom-style: solid;
  background:
    radial-gradient(circle at 50% 60%, rgba(196,181,255,.12), transparent 60%),
    linear-gradient(180deg, #12101a, #0b0a10);
  display: grid; place-items: center;
}
.vision__frame--void::before {
  content: ""; position: absolute; inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(214,63,180,.18), transparent 30%, rgba(95,224,208,.14), transparent 60%, rgba(255,138,107,.14), transparent);
  filter: blur(30px);
  animation: drift 24s linear infinite; animation-delay: calc(var(--d) * -1);
  opacity: .7;
}
.vision__numeral { position: relative; font-style: italic; font-weight: 300; font-size: clamp(36px, 4vw, 56px); color: rgba(232,226,212,.28); }
.vision--latent .vision__title { color: var(--stone-dim); font-style: italic; }
.vision--latent .vision__sub { color: var(--stone-dim); opacity: .7; }

/* ═════ IV. LATENT SPACE LAB ═════ */
.lab__grid { display: grid; grid-template-columns: 8fr 4fr; gap: clamp(24px, 4vw, 56px); align-items: start; }
.lab__window { margin: 0; position: relative; border: 1px solid var(--line-strong); padding: 12px; }
.lab__window canvas { width: 100%; aspect-ratio: 16 / 10; display: block; cursor: grab; }
.lab__window canvas:active { cursor: grabbing; }
.lab__readout { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; }
.lab__window::before, .lab__window::after { content: ""; position: absolute; width: 12px; height: 12px; border: 1px solid var(--line-strong); }
.lab__window::before { top: -6px; left: -6px; }
.lab__window::after { bottom: -6px; right: -6px; }

.lab__controls { display: grid; gap: 22px; padding: 22px; border: 1px solid var(--line); background: rgba(21,19,27,.6); }
.palettes { border: 0; margin: 0; padding: 0; display: grid; gap: 8px; }
.palettes legend { margin-bottom: 10px; }
.palettes label { display: grid; grid-template-columns: 56px 1fr; align-items: center; gap: 12px; cursor: pointer; font-style: italic; font-size: 18px; color: var(--stone); transition: color .3s; }
.palettes input { position: absolute; opacity: 0; }
.palettes label span { height: 12px; border-radius: 12px; background: var(--sw); opacity: .55; outline: 1px solid transparent; outline-offset: 3px; transition: opacity .3s, outline-color .3s; }
.palettes label:has(input:checked) { color: var(--ivory); }
.palettes label:has(input:checked) span { opacity: 1; outline-color: var(--line-strong); }
.palettes label:has(input:focus-visible) span { outline-color: var(--aqua); }
.slider { display: grid; gap: 6px; }
.slider input { width: 100%; accent-color: var(--ember); }
.lab__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.lab__hint { margin: 0; }

.stills { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.stills li { animation: arrive .8s var(--ease); }
.stills img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 999px 999px 0 0; border: 1px solid var(--line); }
.stills .mono { display: block; margin-top: 8px; font-size: 9px; }

/* ═════ TEMPLE ═════ */
.temple { display: grid; place-items: center; }
.temple__arch {
  position: relative; width: min(560px, 100%); padding: 120px clamp(24px, 6vw, 70px) 70px; text-align: center;
  border: 1px solid var(--line-strong); border-radius: 999px 999px 0 0;
  background: radial-gradient(ellipse at 50% 15%, rgba(214,63,180,.28), transparent 55%), radial-gradient(ellipse at 50% 30%, rgba(58,47,92,.6), transparent 75%);
}
.temple__arch::before { content: ""; position: absolute; inset: 12px 12px 0; border: 1px solid var(--line); border-bottom: 0; border-radius: inherit; }
.temple__star { width: 34px; height: 34px; color: var(--ember); position: absolute; top: 40px; left: 50%; transform: translateX(-50%); }
.temple h2 { margin: 18px 0; font-weight: 300; font-size: clamp(48px, 7vw, 80px); line-height: .95; color: var(--ivory); }
.temple h2 em { background: var(--iris); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .1em; }
.temple__arch > p:not(.mono) { color: var(--stone); font-style: italic; margin: 0 auto 36px; max-width: 22em; }

/* ═════ COLOPHON ═════ */
.colophon {
  border-top: 1px solid var(--line); max-width: var(--max); margin: 0 auto;
  padding: 60px var(--gutter) 50px; display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: end;
}
.colophon__mark { font-family: var(--f-caps); font-size: clamp(40px, 7vw, 92px); letter-spacing: .2em; line-height: 1; color: rgba(232,226,212,.85); }
.colophon__cols { display: grid; gap: 8px; max-width: 28em; justify-self: end; text-align: right; }
.colophon a:hover { color: var(--aqua); }

/* ═════ PLAYER ═════ */
.player {
  width: min(1100px, 94vw); padding: 0; border: 1px solid var(--line-strong);
  background: var(--night); color: var(--parchment);
}
.player::backdrop { background: rgba(5,4,8,.88); backdrop-filter: blur(6px); }
.player__frame { aspect-ratio: 16 / 9; background: #000; }
.player__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player__bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 18px; }

/* ── motion ── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 1.2s ease, transform 1.2s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@keyframes twinkle { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .4; transform: scale(.82); } }
@keyframes drift { to { transform: rotate(360deg); } }
@keyframes arrive { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .gate-detail { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ── responsive ── */
@media (max-width: 1080px) {
  .traveler__grid { grid-template-columns: 1fr 1fr; }
  .label-card { grid-column: 2; }
  .xiii-grid { grid-template-columns: repeat(3, 1fr); }
  .lab__grid { grid-template-columns: 1fr; }
  .stills { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
  body { font-size: 18px; }
  .mast__nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 100px; }
  .hero__meta { display: none; }
  .hero__stage { grid-column: 1; width: min(78vw, 420px); margin: 0 auto; }
  .hero__curve text { font-size: 16px; letter-spacing: .22em; }
  .hero__foot { flex-direction: column; align-items: start; padding: 110px 8px 8px; }
  .spark--a { left: -26px; } .spark--b { right: -22px; }
  .frame-lines { inset: 80px 10px 14px; }

  .traveler__grid { grid-template-columns: 1fr; }
  .label-card { grid-column: auto; }
  .arch--tall, .gate-detail__img { max-width: 440px; width: 100%; margin-inline: auto; }

  /* the colonnade scrolls sideways inside itself, never the page */
  .colonnade { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 14px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .colonnade::-webkit-scrollbar { display: none; }
  .gate { flex: 0 0 28vw; scroll-snap-align: center; }
  .gate-detail { grid-template-columns: 1fr; }

  .xiii-grid { grid-template-columns: repeat(2, 1fr); }
  .xiii-grid .vision:first-child .vision__title { font-size: 26px; }
  .vision__title { font-size: 19px; }
  .stills { grid-template-columns: repeat(3, 1fr); }
  .colophon { grid-template-columns: 1fr; }
  .colophon__cols { justify-self: start; text-align: left; }
}
