:root {
  color-scheme: dark;
  background: #0a1016;
  color: #fff;
  font-family: Arial, Helvetica, sans-serif;
  --accent-red: #dc143c;
}

* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }

.stage {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
}

.backdrop, .backdrop img, .film, .shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.backdrop img, .film { object-fit: cover; }
.backdrop { z-index: -4; }
.film { z-index: -3; opacity: 0; transition: opacity 400ms ease; }
.film.is-playing { opacity: 1; }
.shade {
  z-index: -2;
  background: radial-gradient(ellipse at center, #060e1780 0%, #060e171a 70%, #02070d4d 100%), #07101b4d;
}

.wordmark {
  position: relative;
  margin: 0;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.7rem, 1.8vw, 1.4rem);
  text-align: center;
  text-shadow: 0 2px 32px #0006;
  user-select: none;
}

.wordmark::after {
  content: "";
  position: absolute;
  top: calc(100% + clamp(1rem, 2vw, 1.75rem));
  left: 50%;
  transform: translateX(-50%);
  width: clamp(36px, 4.5vw, 56px);
  height: clamp(6px, 0.7vw, 8px);
  background: linear-gradient(to bottom, #fff 50%, var(--accent-red) 50%);
  border-radius: 1px;
  box-shadow: 0 2px 12px #0004;
}

.wordmark-name {
  font-size: clamp(3.5rem, 11vw, 9rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: -0.045em;
}

.wordmark-detail {
  padding-left: 0.46em;
  font-size: clamp(0.8rem, 2.1vw, 1.65rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.46em;
}

/* Keep the motion control discoverable on touch screens as well as keyboards. */
.motion-toggle {
  position: absolute;
  bottom: max(1rem, env(safe-area-inset-bottom));
  right: max(1rem, env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 10px;
  border: 1px solid #ffffff4d;
  border-radius: 50%;
  background: #08101c59;
  color: #fff;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 180ms ease;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:hover, .motion-toggle:focus-visible,
.motion-toggle.is-paused { opacity: 0.8; }
.motion-toggle:focus-visible { outline: 2px solid white; outline-offset: 4px; }
.motion-toggle svg { width: 22px; height: 22px; }
.play-icon, .is-paused .pause-icon { display: none; }
.is-paused .play-icon { display: block; }

@media (max-aspect-ratio: 1/1) {
  .wordmark { gap: 1rem; }
  .wordmark-name { font-size: clamp(3rem, 16vw, 7.5rem); }
  .wordmark-detail { font-size: clamp(0.75rem, 3.2vw, 1.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  .film, .motion-toggle { transition: none; }
}
