@font-face { font-family: "Cormorant Garamond"; font-weight: 600; font-display: swap; src: url("/trailer/fonts/cormorant-garamond-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/trailer/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 500; font-display: swap; src: url("/trailer/fonts/inter-latin-500-normal.woff2") format("woff2"); }

:root {
  --bg: #0b0807;
  --bg-2: #15100d;
  --ink: #f4ece1;
  --ink-2: #c9bba8;
  --gold: #d9b46d;
  --gold-hi: #f2dfb2;
  --gold-ink: #2a1d0b;
  --font-display: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #2a1c12 0%, var(--bg-2) 45%, var(--bg) 100%) fixed, var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1120px; margin: 0 auto; padding: 28px 16px 64px; }
.top { display: flex; justify-content: center; margin-bottom: 28px; }
.brand img { display: block; width: 180px; height: auto; }

.film {
  border-radius: 14px;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(217, 180, 109, 0.28);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(0, 0, 0, 0.4);
}
/* never taller than the screen (a phone on its side): the width follows the height left over under the logo */
.film { position: relative; max-width: min(100%, calc((100svh - 104px) * 16 / 9)); margin-inline: auto; }
@media (min-width: 1800px) {
  .wrap { max-width: 1440px; }
  .brand img { width: 220px; }
  .copy { max-width: 820px; }
  body { font-size: 19px; }
}
.film video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }

/* the big gold play button over the poster, until the trailer first plays */
.play {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: radial-gradient(circle at 50% 50%, rgba(11, 8, 7, 0.15) 0%, rgba(11, 8, 7, 0.45) 100%);
  cursor: pointer;
}
.play[hidden] { display: none; }
/* a gold ring with the play triangle centred in it (the triangle's path sits on its centroid, so it reads as centred) */
.play .ring {
  display: grid;
  place-items: center;
  width: clamp(72px, 11vw, 116px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2.5px solid var(--gold-hi);
  background: rgba(11, 8, 7, 0.38);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 0 36px rgba(217, 180, 109, 0.32), inset 0 0 22px rgba(217, 180, 109, 0.14), 0 14px 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}
.play .ring svg { width: 54%; height: 54%; fill: var(--gold-hi); }
.play:hover .ring { transform: scale(1.06); background: rgba(11, 8, 7, 0.5); box-shadow: 0 0 56px rgba(217, 180, 109, 0.45), inset 0 0 26px rgba(217, 180, 109, 0.2), 0 16px 44px rgba(0, 0, 0, 0.55); }
.play:active .ring { transform: scale(0.97); }
.play:focus-visible { outline: none; }
.play:focus-visible .ring { outline: 3px solid var(--gold-hi); outline-offset: 5px; }
@media (prefers-reduced-motion: reduce) { .play .ring { transition: none; } }

/* the player's controls, in the site's colours: shown once the trailer has started, faded while it plays and the pointer is still */
.controls {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  display: flex; align-items: center; gap: 12px;
  padding: 36px 18px 14px;
  background: linear-gradient(180deg, rgba(11, 8, 7, 0) 0%, rgba(11, 8, 7, 0.78) 62%, rgba(11, 8, 7, 0.9) 100%);
  transition: opacity 0.3s ease;
}
.controls[hidden] { display: none; }
.film:not(.started) .controls { opacity: 0; pointer-events: none; }
.film.playing:not(.awake) .controls { opacity: 0; }
.film.playing:not(.awake) { cursor: none; }
.cbtn {
  flex: none; display: grid; place-items: center;
  width: 38px; height: 38px; padding: 0; border-radius: 50%;
  border: 1.5px solid rgba(217, 180, 109, 0.45); background: rgba(11, 8, 7, 0.45);
  color: var(--gold-hi); cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease;
}
.cbtn svg { width: 19px; height: 19px; fill: currentColor; }
.cbtn:hover { border-color: var(--gold-hi); background: rgba(217, 180, 109, 0.14); }
.cbtn:active { transform: scale(0.94); }
.cbtn:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; }
.pp .i-pause, .film.playing .pp .i-play { display: none; }
.film.playing .pp .i-pause { display: block; }
.mute .i-muted, .film.muted .mute .i-vol { display: none; }
.film.muted .mute .i-muted { display: block; }
.time { flex: none; min-width: 78px; font: 500 13px/1 var(--font-ui); color: var(--ink-2); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

/* the position: a gold line to where it has played, the rest faint, a glowing gold handle */
.seek { --p: 0%; flex: 1; min-width: 0; height: 22px; margin: 0; background: transparent; cursor: pointer; -webkit-appearance: none; appearance: none; }
.seek::-webkit-slider-runnable-track { height: 4px; border-radius: 999px; background: linear-gradient(90deg, var(--gold) 0 var(--p), rgba(244, 236, 225, 0.18) var(--p) 100%); }
.seek::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; margin-top: -5px; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(217, 180, 109, 0.22), 0 0 14px rgba(217, 180, 109, 0.6); }
.seek::-moz-range-track { height: 4px; border-radius: 999px; background: rgba(244, 236, 225, 0.18); }
.seek::-moz-range-progress { height: 4px; border-radius: 999px; background: var(--gold); }
.seek::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--gold-hi); box-shadow: 0 0 0 4px rgba(217, 180, 109, 0.22), 0 0 14px rgba(217, 180, 109, 0.6); }
.seek:focus-visible { outline: none; }
.seek:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--gold-hi), 0 0 14px rgba(217, 180, 109, 0.6); }
.seek:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--gold-hi), 0 0 14px rgba(217, 180, 109, 0.6); }

/* full screen: the film fills it, black around the picture */
.film.is-fs { display: flex; align-items: center; border: 0; border-radius: 0; }
.film.is-fs video { width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; }

@media (max-width: 600px) {
  .controls { gap: 8px; padding: 28px 10px 10px; }
  .cbtn { width: 34px; height: 34px; }
  .time { min-width: 0; font-size: 12px; }
}

.copy { max-width: 680px; margin: 40px auto 0; text-align: center; }
.copy h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0.005em;
  margin: 0 0 16px;
  color: var(--gold-hi);
  text-wrap: balance;
}
.copy p { margin: 0 0 28px; color: var(--ink-2); text-wrap: pretty; }

.cta {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  color: var(--gold-ink);
  font-weight: 500;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(217, 180, 109, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover { transform: translateY(-1px); box-shadow: 0 12px 30px rgba(217, 180, 109, 0.35); }
.cta:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

@media (max-width: 600px) {
  .wrap { padding-top: 20px; }
  .brand img { width: 140px; }
  .film { border-radius: 10px; }
  .copy { margin-top: 28px; }
}
