@font-face {
  font-family: Cormorant;
  src: url("assets/serif-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Cormorant;
  src: url("assets/serif-italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("assets/sans-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
:root {
  --ivory: #f7f1e5;
  --gold: #f0d5a9;
  --ink: #20231c;
  --gutter: clamp(22px, 4.3vw, 90px);
  --serif: Cormorant, Georgia, serif;
  --sans: Manrope, Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
body { height: 100dvh; overflow: hidden; overscroll-behavior: none; margin: 0; background: var(--ink); color: var(--ivory); font: 14px var(--sans); -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
button, a { color: inherit; -webkit-tap-highlight-color: transparent; }
button { padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
a { text-decoration: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
h1, h2, p { margin: 0; }
h2 { font: 400 1em var(--serif); }
em { color: var(--gold); font-weight: 400; }
.header, .dialog-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px var(--gutter);
}
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 5;
  background: linear-gradient(to bottom, rgb(22 24 18 / .35), transparent);
}
.header::after, .dialog-bar::after {
  content: ""; height: 1px; position: absolute; bottom: 0; left: var(--gutter); right: var(--gutter);
  background: rgb(255 255 255 / .24);
}
.wordmark { font: 400 32px/1 var(--serif); letter-spacing: .16em; }
.header-actions, .header-actions button, .dialog-bar button { display: flex; align-items: center; }
.header-actions { gap: 32px; }
.header-actions button, .dialog-bar button { font-size: 12px; gap: 13px; min-height: 32px; }
.header-actions button:hover, .dialog-bar button:hover { color: var(--gold); }
.film-link span:first-child { font-size: 21px; }
.menu-icon { width: 20px; height: 7px; border-top: 1px solid; border-bottom: 1px solid; }
.journey { position: relative; height: 100dvh; }
.stage {
  position: relative; height: 100%; touch-action: none; overflow: hidden; isolation: isolate;
  background: #1b1d17;
}
.background-film, .rest-frame, .shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.background-film, .rest-frame { object-fit: cover; pointer-events: none; }
.shade {
  background: linear-gradient(0deg, rgb(18 21 16 / .64), transparent 56%),
    linear-gradient(90deg, rgb(26 29 21 / .18), transparent 58%);
  pointer-events: none;
}
.copy { position: absolute; left: var(--gutter); bottom: max(15%, 105px); max-width: 74vw; pointer-events: none; }
.collection-title {
  margin-bottom: 18px; font: 400 10px var(--sans); letter-spacing: .19em; text-transform: uppercase;
}
.copy h2 { font-size: clamp(62px, 7.1vw, 132px); line-height: .95; letter-spacing: -.045em; }
.copy p { font-size: clamp(12px, .95vw, 16px); line-height: 1.65; margin-top: 16px; max-width: 38em; }
.rail { position: absolute; right: var(--gutter); top: 49%; transform: translateY(-50%); display: grid; }
.rail button { min-height: 37px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.rail .rail-label { font-size: 10px; opacity: 0; }
.rail .index { font-size: 9px; font-variant-numeric: tabular-nums; opacity: .65; }
.rail .marker { width: 16px; height: 1px; background: var(--ivory); opacity: .62; }
.rail button:is([aria-current="step"], :hover, :focus-visible) .rail-label,
.rail button[aria-current="step"] .index { opacity: 1; }
.rail button[aria-current="step"] .marker { width: 34px; background: var(--gold); opacity: 1; }
.stage-bottom {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: 25px;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px;
}
.counter b { font: 30px var(--serif); }
.counter span { font-size: 9px; opacity: .7; margin-left: 8px; }
.next-moment { min-height: 44px; font-size: 10px; letter-spacing: .09em; }
.next-moment span { font-size: 19px; margin-left: 12px; }
.timecode { text-align: right; font-size: 10px; letter-spacing: .09em; font-variant-numeric: tabular-nums; }
.progress { height: 2px; position: absolute; inset: auto 0 0; background: rgb(255 255 255 / .25); }
.progress i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.media-status:not(:empty), .no-script {
  position: fixed; top: 100px; left: var(--gutter); padding: 10px 15px; border-radius: 2px;
  background: var(--ink); color: var(--ivory); font-size: 12px;
}
.no-script a { text-decoration: underline; }
dialog {
  margin: 0; padding: 0; border: 0; width: 100%; height: 100svh; max-width: none; max-height: none;
  color: var(--ivory); background: var(--ink);
}
dialog::backdrop { background: var(--ink); }
.dialog-bar { position: relative; }
.dialog-bar button span { font-size: 27px; }
.menu-content { padding: 42px var(--gutter); }
.menu-content h2 { margin-bottom: 30px; font-size: clamp(48px, 5.5vw, 96px); }
.chapter-menu { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px 22px; }
.chapter-menu button { display: block; text-align: left; }
.chapter-menu img { display: block; width: 100%; aspect-ratio: 2.75; object-fit: cover; }
.menu-caption { display: flex; gap: 12px; align-items: center; padding: 10px 0; font-size: 13px; }
.menu-caption small { color: var(--gold); font-size: 9px; }
.menu-caption i { margin-left: auto; font-style: normal; }
#film[open] { display: flex; flex-direction: column; }
#film-title { font-size: clamp(24px, 2.5vw, 40px); }
#film-player { width: 100%; min-height: 0; flex: 1; object-fit: contain; background: #11130f; }
.film-footer { display: flex; justify-content: space-between; padding: 12px var(--gutter) 0; gap: 12px; font-size: 12px; }
#film-status { color: var(--gold); }
.film-chapters { padding: 8px var(--gutter) 18px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.film-chapters button { padding: 8px 0; font-size: 11px; opacity: .68; }
.film-chapters button[aria-current="step"] { color: var(--gold); opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 700px) {
  .header, .dialog-bar { padding-block: 20px; }
  .wordmark { font-size: 27px; }
  .header-actions { gap: 21px; }
  .film-link span:last-child { display: none; }

  .copy { max-width: calc(100% - var(--gutter) * 2); bottom: max(17%, 110px); }
  .copy h2 { font-size: clamp(47px, 11.2vw, 72px); }
  .copy p { max-width: 28em; }
  .rail { top: 91px; right: var(--gutter); display: flex; transform: none; }
  .rail button { flex-direction: column; justify-content: center; min-width: 30px; gap: 5px; }
  .rail .rail-label { display: none; }
  .rail button[aria-current="step"] .marker { width: 20px; }
  .stage-bottom { bottom: 18px; }
  .timecode { font-size: 8px; }
  .next-moment { font-size: 9px; }
  .chapter-menu { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .chapter-menu img { aspect-ratio: 1.65; }
  .menu-caption { font-size: 11px; gap: 7px; }
}
@media (max-height: 520px) {
  .copy { bottom: 65px; }
  .copy h2 { font-size: clamp(36px, 6vw, 60px); }
  .collection-title { margin-bottom: 8px; }
  .copy p { margin-top: 8px; }
  .rail { top: 40%; }
  .rail button { min-height: 26px; }
  .stage-bottom { bottom: 4px; }
}

[hidden] { display: none !important; }
.loader {
  position: fixed; inset: 0; z-index: 20; display: grid; place-items: center;
  background: #141610; color: var(--ivory); transition: opacity 320ms ease;
}
.loader.is-leaving { opacity: 0; pointer-events: none; }
.loader-content { width: min(66vw, 350px); text-align: center; }
.loader-brand { font: 400 clamp(50px, 6vw, 96px)/1.1 var(--serif); letter-spacing: .12em; margin-left: .12em; }
.loader-track { height: 1px; background: #47473e; margin: 36px 0 16px; }
.loader-track i { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }
.loader-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 11px; letter-spacing: .1em; }
#load-percent { font-variant-numeric: tabular-nums; }
#retry-load { padding: 12px 0 5px; margin-top: 12px; border-bottom: 1px solid var(--gold); }
.background-film { opacity: 0; }
.stage.has-video .background-film { opacity: 1; }
.copy { transition: opacity 300ms ease, transform 350ms ease; }
body[data-phase="playing"] .copy { opacity: 0; transform: translateY(6px); }
body[data-phase="playing"] .next-moment { opacity: .45; }
button:disabled { cursor: default; }
@media(prefers-reduced-motion: reduce) {
  .copy, .loader { transition: none; }
}
