:root {
  --ink: #12161b; --paper: #efe6d3; --red: #cd2f25; --blue: #7f97a8; --muted: #98a1a9;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font-family: "Outfit", "Segoe UI", sans-serif; line-height: 1.6;
}
h1, h2 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 1rem; }
h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 4vw, 2.6rem); }
p { margin: 0 0 1rem; max-width: 62ch; }
img, video { max-width: 100%; }
.vr-meta, .vr-kicker, .vr-tag {
  font-family: "IBM Plex Mono", monospace; font-size: 0.78rem; letter-spacing: 0.08em; color: var(--blue);
}
.vr-section { padding: clamp(4rem, 9vw, 7.5rem) clamp(1.25rem, 6vw, 6rem); }
.vr-note { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); }

/* Nav */
.vr-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 40; display: flex; align-items: center;
  justify-content: space-between; padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  background: rgba(18, 22, 27, 0.82); backdrop-filter: blur(8px);
}
.vr-brand { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--paper);
  text-decoration: none; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; }
.vr-brand img { border-radius: 4px; }
.vr-ticketlink { font-family: "IBM Plex Mono", monospace; font-size: 0.8rem; color: var(--paper);
  text-decoration: none; position: relative; padding-bottom: 2px; }
.vr-ticketlink::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.vr-ticketlink:hover::after, .vr-ticketlink:focus-visible::after { transform: scaleX(1); }

/* Scrub journey */
.vr-scrub { height: 440vh; position: relative; }
.vr-scrub-sticky { position: sticky; top: 0; height: 100dvh; overflow: hidden; }
.vr-scrub-sticky video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vr-chapter {
  position: absolute; z-index: 2; left: clamp(1.25rem, 7vw, 7rem); bottom: 14vh; max-width: 34rem;
  opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.vr-chapter.is-on { opacity: 1; transform: translateY(0); }
.vr-chapter-right { left: auto; right: clamp(1.25rem, 7vw, 7rem); text-align: right; }
.vr-chapter .vr-body { color: var(--paper); text-shadow: 0 1px 10px rgba(0,0,0,0.6); }
.vr-chapter h1, .vr-chapter h2 { text-shadow: 0 2px 14px rgba(0,0,0,0.65); }
.vr-tag { display: inline-block; border: 1px solid var(--blue); padding: 0.2rem 0.55rem; border-radius: 3px; }

/* Boarding */
.vr-boarding-grid { display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.vr-player-frame { background: var(--paper); padding: 10px; border-radius: 6px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.45); transform: rotate(-0.8deg); }
.vr-player-frame video { display: block; width: 100%; border-radius: 2px; background: #000; }
.vr-stamp { font: 600 0.95rem "Outfit", sans-serif; letter-spacing: 0.04em; color: var(--paper);
  background: var(--red); border: 0; border-radius: 4px; padding: 0.85rem 1.5rem; cursor: pointer;
  box-shadow: 0 4px 0 #7c1c15; transition: transform 0.12s ease, box-shadow 0.12s ease; }
.vr-stamp:hover { transform: translateY(-1px); }
.vr-stamp:active { transform: scale(0.97) translateY(2px); box-shadow: 0 1px 0 #7c1c15; }

/* Board */
.vr-board { font-family: "IBM Plex Mono", monospace; font-size: 0.85rem;
  border-top: 1px solid rgba(239,230,211,0.25); }
.vr-board-row { display: grid; grid-template-columns: 2.2fr 0.8fr 0.8fr 0.8fr 1fr; gap: 0.75rem;
  align-items: center; padding: 0.85rem 0.25rem; border-bottom: 1px solid rgba(239,230,211,0.14); }
.vr-board-head { color: var(--blue); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.vr-board-row span { color: var(--muted); }
.vr-board-row .vr-route { color: var(--paper); }
.vr-status { font-style: normal; font-size: 0.72rem; letter-spacing: 0.1em; border: 1.5px solid var(--muted);
  color: var(--muted); padding: 0.2rem 0.5rem; border-radius: 3px; display: inline-block; transform: rotate(-2deg); }
.vr-live { border-color: var(--red); color: var(--red); }

/* Archive */
.vr-archive-grid { display: grid; grid-template-columns: minmax(0,6fr) minmax(0,5fr);
  gap: clamp(1.5rem, 4vw, 4rem); align-items: end; }
.vr-figure { margin: 0; transform: rotate(1deg); }
.vr-figure img { width: 100%; border-radius: 6px; border: 8px solid var(--paper);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45); display: block; }

/* Manifest */
.vr-manifest { display: flex; justify-content: center; }
.vr-card { background: var(--paper); color: var(--ink); border-radius: 8px;
  padding: clamp(2rem, 5vw, 3.5rem); max-width: 560px; width: 100%; transform: rotate(-0.5deg);
  box-shadow: 0 18px 50px rgba(0,0,0,0.5); }
.vr-card p { color: #3a4048; }
.vr-seal { display: inline-flex; align-items: center; justify-content: center; text-align: center;
  background: var(--red); color: var(--paper); text-decoration: none; border-radius: 999px;
  width: 128px; height: 128px; font: 600 0.8rem "Outfit", sans-serif; letter-spacing: 0.05em;
  line-height: 1.25; padding: 0 1rem; box-shadow: inset 0 0 0 4px rgba(239,230,211,0.55);
  transition: transform 0.25s ease; }
.vr-seal:hover { transform: rotate(6deg); }
.vr-seal:active { transform: rotate(0) scale(0.96); }

/* Footer */
.vr-footer { padding: 3rem clamp(1.25rem, 6vw, 6rem); border-top: 1px solid rgba(239,230,211,0.14);
  display: flex; flex-direction: column; gap: 0.4rem; align-items: flex-start; }
.vr-footer p { margin: 0; }

@media (max-width: 860px) {
  .vr-boarding-grid, .vr-archive-grid { grid-template-columns: 1fr; }
  .vr-archive-grid { align-items: start; }
  .vr-board-row { grid-template-columns: 1.6fr 0.9fr 1fr; }
  .vr-board-row span:nth-child(2), .vr-board-row span:nth-child(4) { display: none; }
  .vr-chapter { bottom: 10vh; }
  .vr-chapter-right { right: auto; left: clamp(1.25rem, 7vw, 7rem); text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .vr-scrub { height: auto; }
  .vr-scrub-sticky { position: static; height: auto; }
  .vr-scrub-sticky video { position: static; aspect-ratio: 16/9; height: auto; }
  .vr-chapter { position: static; opacity: 1; transform: none; max-width: 62ch;
    padding: 2rem clamp(1.25rem, 6vw, 6rem) 0; pointer-events: auto; }
  .vr-chapter-right { text-align: left; }
  .vr-ticketlink::after, .vr-stamp, .vr-seal { transition: none; }
}

/* Episode slot: poster-with-premiere-stamp state and YouTube-embed state */
.vr-poster-wrap { position: relative; }
.vr-poster-wrap img { display: block; width: 100%; border-radius: 2px; }
.vr-premiere-stamp {
  position: absolute; right: 6%; top: 8%;
  font-family: "IBM Plex Mono", monospace; font-size: clamp(0.7rem, 1.4vw, 0.95rem);
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--red);
  border: 3px solid var(--red); border-radius: 4px; padding: 0.35em 0.7em;
  transform: rotate(-8deg); background: rgba(239, 230, 211, 0.85);
}
.vr-embed-wrap { position: relative; aspect-ratio: 16 / 9; }
.vr-embed-wrap iframe {
  position: absolute; inset: 0; width: 100%; height: 100%;
  border: 0; border-radius: 2px; display: block;
}
a.vr-stamp { display: inline-block; text-decoration: none; }
a.vr-stamp[hidden] { display: none; }

/* Manifest form */
.vr-form { display: flex; gap: 0.9rem; align-items: flex-end; flex-wrap: wrap; }
.vr-trap { position: absolute; left: -9999px; height: 0; overflow: hidden; margin: 0; }
.vr-field { display: flex; flex-direction: column; gap: 0.35rem; flex: 1 1 220px; }
.vr-field label {
  font-family: "IBM Plex Mono", monospace; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink);
}
.vr-field input {
  border: 1.5px solid rgba(18, 22, 27, 0.45); background: #fff; color: var(--ink);
  border-radius: 4px; padding: 0.7rem 0.85rem; font: 1rem "Outfit", sans-serif;
}
.vr-field input:focus-visible { outline: 2px solid var(--red); outline-offset: 1px; }
.vr-field-error { font-size: 0.82rem; color: var(--red); margin: 0; }
button.vr-seal { border: 0; cursor: pointer; font-family: "Outfit", sans-serif; }
button.vr-seal:disabled { opacity: 0.7; cursor: wait; }
.vr-form-done { font-family: "IBM Plex Mono", monospace; color: var(--red); }
.vr-form[hidden] { display: none; }
.vr-field-error[hidden], .vr-form-done[hidden] { display: none; }
