/* Direction: DEEP CUT — an archive screening room. Abyss black, cold steel,
   brass salvage accent, condensed caption type burned over photographs. */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  color-scheme: dark;
  --canvas: #07090d;
  --surface: #0e131a;
  --surface-2: #161e27;
  --border: #253142;
  --border-strong: #515356;
  --ink: #edf2f8;
  --muted: #9fadbe;
  --accent: #c47a2d;
  --accent-hover: #cd8e4d;
  --accent-ink: #07090d;
  --accent-text: #e9ae63;
  --accent-strong: #eeb673;
  --accent-soft: #2a1d0e;
  --accent-border: #5c3c1b;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #0a2318;
  --success-strong: #499c68;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #2d190c;
  --warning-strong: #c57a40;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #2e0d10;
  --danger-strong: #d16969;
  --chart-1: #c47a2d;
  --chart-2: #9bb653;
  --chart-3: #1c9485;
  --chart-4: #4faced;
  --chart-5: #906bc0;
  --chart-6: #e9829f;

  --font-display: "Anton", Impact, Haettenschweiler, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --display-weight: 400;
  --display-tracking: -0.01em;
  --radius-card: 10px;
  --radius-btn: 6px;
  --radius-input: 6px;
  --card-pad: 1.25rem;
  --x-on-photo: #ffffff;
  --x-abyss: #02040a;
  --x-steel: #0a1017;
  --font-sans: "Inter", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="light"] {
  color-scheme: light;
  --canvas: #ffffff;
  --surface: #ffffff;
  --surface-2: #f3f3f3;
  --border: #dcdddd;
  --border-strong: #b5b5b6;
  --ink: #07090d;
  --muted: #6a6b6e;
  --accent: #c47a2d;
  --accent-hover: #a76826;
  --accent-ink: #07090d;
  --accent-text: #995f23;
  --accent-strong: #8d5720;
  --accent-soft: #f7ece2;
  --accent-border: #e4c3a1;
  --success: #15803d;
  --success-ink: #ffffff;
  --success-soft: #e3f0e8;
  --success-strong: #137638;
  --warning: #b45309;
  --warning-ink: #ffffff;
  --warning-soft: #f6eae1;
  --warning-strong: #a64c08;
  --danger: #b91c1c;
  --danger-ink: #ffffff;
  --danger-soft: #f7e4e4;
  --danger-strong: #b91c1c;
  --chart-1: #c47a2d;
  --chart-2: #7e9933;
  --chart-3: #00897b;
  --chart-4: #3c9ada;
  --chart-5: #825eb1;
  --chart-6: #d97491;
}

/* ---------- the film stage ---------- */
.stage { background: var(--x-abyss); }

.scene {
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease;
}
.scene.is-active {
  opacity: 1;
  visibility: visible;
}
.scene.is-active img {
  animation: kenburns 11s linear both;
  transform-origin: 55% 45%;
}
@keyframes kenburns {
  from { transform: scale(1.03); }
  to { transform: scale(1.14); }
}

.stage-scrim {
  background: linear-gradient(
    to top,
    rgba(2, 4, 10, 0.93) 0%,
    rgba(2, 4, 10, 0.6) 36%,
    rgba(2, 4, 10, 0.1) 64%,
    rgba(2, 4, 10, 0.55) 100%
  );
}
.stage-grain {
  background-image: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.04) 0px,
    rgba(255, 255, 255, 0.04) 1px,
    rgba(0, 0, 0, 0) 1px,
    rgba(0, 0, 0, 0) 3px
  );
  mix-blend-mode: soft-light;
}

.stage-badge {
  display: inline-block;
  padding: 0.22rem 0.55rem;
  margin-bottom: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-left: 3px solid var(--accent);
  background: rgba(2, 4, 10, 0.65);
}

.cap { display: none; }
.cap.is-on {
  display: block;
  animation: capIn 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
}
@keyframes capIn {
  from { transform: translateY(16px); }
  to { transform: translateY(0); }
}

.poster, .endcard { display: none; }
.poster.is-on, .endcard.is-on { display: flex; }

.vid-bar { touch-action: none; }
.vid-tick {
  position: absolute;
  top: -4px;
  width: 1px;
  height: 16px;
  background: rgba(255, 255, 255, 0.3);
}

/* a control swaps its glyph with the player state */
[data-vid] [data-when="on"] { display: none; }
[data-vid].is-on [data-when="on"] { display: inline-flex; }
[data-vid].is-on [data-when="off"] { display: none; }

#stage:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
#stage:fullscreen {
  width: 100vw;
  height: 100vh;
  aspect-ratio: auto;
  border-radius: 0;
}

.chapter.is-active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

/* ---------- page motion: rests visible, arrives from an offset ---------- */
[data-inview].is-in { animation: rise 620ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes rise {
  from { transform: translateY(18px); }
  to { transform: translateY(0); }
}

html.reduced-motion .scene.is-active img,
html.reduced-motion .cap.is-on,
html.reduced-motion [data-inview].is-in {
  animation: none;
}
