/* STILHED teaser. The palette comes from the trailer's poster frame: the night sky, moonlit snow, frost and the one
   warm tone, the lit windows. One typeface, Archivo, as in the trailer's titles: wide and light for the wordmark,
   plain for reading. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --night: #0b1016;
  --snow: #dfe6ee;
  --frost: #95a5b7;
  --prose: #c4cfdb;
  --window: #e8a65a;
  --measure: 36rem;
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--night);
  color: var(--snow);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
}

/* ---------- the hero: the trailer itself ---------- */

.hero {
  --player-accent: var(--window);
  --player-ink: var(--snow);
  position: relative;
  height: max(34rem, min(100svh, 56.25vw));
  overflow: hidden;
  background: var(--night);
}

.hero-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 62%;
  background: var(--night);
}

/* The poster fades into the page below; gone while the trailer plays. */
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(to bottom, transparent, var(--night));
  pointer-events: none;
}

.hero.is-playing::after {
  display: none;
}

.hero.is-playing .hero-video {
  object-fit: contain;
  background: #000;
}

.hero-overlay,
.after {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(2.5rem, 9vh, 6rem) var(--gutter) clamp(2rem, 8vh, 5rem);
  text-align: center;
}

.hero.is-playing .hero-overlay,
.hero.is-ended .hero-overlay {
  display: none;
}

.wordmark {
  margin: 0;
  /* Tracking adds space after the last letter too; the matching indent keeps the word optically centred. */
  padding-left: 0.34em;
  font-size: clamp(2.4rem, 8.5vw, 7.25rem);
  font-weight: 220;
  font-stretch: 125%;
  letter-spacing: 0.34em;
  line-height: 1;
  color: var(--snow);
  text-shadow: 0 0 2.5rem rgb(11 16 22 / 70%);
}

.tagline {
  margin: clamp(1rem, 2.4vh, 1.6rem) 0 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 400;
  font-stretch: 112%;
  letter-spacing: 0.06em;
  color: var(--frost);
}

.start {
  margin-top: auto;
}

.play {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1.6rem 0.85rem 1.25rem;
  border: 1px solid var(--window);
  border-radius: 2rem;
  background: rgb(11 16 22 / 62%);
  color: var(--snow);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.play:hover {
  background: var(--window);
  color: var(--night);
}

.play:focus-visible {
  outline: 3px solid var(--window);
  outline-offset: 4px;
}

.play-icon {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
}

.hint {
  margin: 0.9rem 0 0;
  font-size: 0.9375rem;
  color: var(--frost);
  text-shadow: 0 0 1rem rgb(11 16 22 / 90%);
}

/* After the trailer: the page answers. */
.after {
  justify-content: center;
  gap: 2rem;
  background: rgb(11 16 22 / 72%);
}

.after[hidden] {
  display: none;
}

.heard {
  margin: 0;
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 300;
  letter-spacing: 0.02em;
  animation: surface 1.6s ease-out both;
}

@keyframes surface {
  from {
    opacity: 0;
  }
}

/* ---------- the story ---------- */

.story,
.footer {
  max-width: calc(var(--measure) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.story {
  padding-top: clamp(2.5rem, 7vw, 5rem);
}

.hook {
  margin: 0 0 clamp(2rem, 5vw, 3rem);
  font-size: clamp(1.9rem, 4.6vw, 3.25rem);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.hook span {
  display: block;
}

/* The second line waits a beat, as it does in the trailer. */
.hook span + span {
  padding-left: 1.4em;
}

.prose p {
  margin: 0 0 1.15em;
  font-size: 1.1875rem;
  line-height: 1.65;
  color: var(--prose);
}

.status {
  margin: 2.5rem 0 0;
  font-size: 1.1875rem;
  font-weight: 500;
  color: var(--window);
}

.footer {
  margin-top: clamp(4rem, 10vw, 7rem);
  padding-top: 1.75rem;
  padding-bottom: 3.5rem;
  border-top: 1px solid rgb(149 165 183 / 18%);
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--frost);
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--snow);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

.footer a:focus-visible {
  outline: 3px solid var(--window);
  outline-offset: 3px;
}

@media (max-width: 40rem) {
  .hero {
    height: 82svh;
  }

  .hero-video {
    object-position: 50% 70%;
  }
}
