:root {
  color-scheme: dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #000;
  color: #f5f5f2;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  height: 100%;
  background: #000;
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 2px solid #f5f5f2;
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.stage {
  position: relative;
  width: 100%;
  height: 100svh;
  overflow: hidden;
  background: #000;
}

.hero {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-fire {
  opacity: 0;
  transition: opacity 120ms ease-out;
}

.stage.firing .hero-fire,
.stage:has(#drive:hover) .hero-fire,
.stage:has(#drive:focus-visible) .hero-fire {
  opacity: 1;
}

.veil {
  position: absolute;
  inset: auto 0 0 0;
  height: 220px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86) 0%, rgba(0, 0, 0, 0.42) 48%, rgba(0, 0, 0, 0) 100%);
  pointer-events: none;
}

.action {
  position: absolute;
  left: 50%;
  bottom: 13vh;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  z-index: 2;
}

.lede {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: 0.01em;
  color: #b5b5b2;
  text-align: center;
  white-space: nowrap;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.85);
}

.action-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.drive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 148px;
  height: 52px;
  padding: 0 28px;
  border-radius: 4px;
  background: #f5f5f2;
  color: #080808;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 120ms ease-out;
}

.drive:hover {
  background: #fff;
}

.lab-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  height: 52px;
  padding: 0 24px;
  border-radius: 4px;
  border: 1px solid rgba(245, 245, 242, 0.34);
  background: rgba(8, 8, 8, 0.56);
  color: #f5f5f2;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  transition: background-color 120ms ease-out, border-color 120ms ease-out;
}

.lab-link:hover {
  background: rgba(245, 245, 242, 0.14);
  border-color: rgba(245, 245, 242, 0.72);
}

.bar {
  position: absolute;
  inset: auto 32px 24px 32px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  z-index: 2;
  font-size: 12px;
  line-height: 1;
  color: #8a8a88;
}

.watch {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #b5b5b2;
  font: inherit;
  letter-spacing: 0.02em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 120ms ease-out;
}

.watch:hover {
  color: #f5f5f2;
}

.watch svg {
  width: 9px;
  height: 11px;
  fill: currentColor;
  flex-shrink: 0;
}

.note {
  justify-self: center;
  margin: 0;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.handle {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 0;
  color: #8a8a88;
  text-decoration: none;
  white-space: nowrap;
  transition: color 120ms ease-out;
}

.handle:hover {
  color: #f5f5f2;
}

.x-icon {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex-shrink: 0;
}

.film-mode {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #000;
}

.film-close {
  position: absolute;
  top: 20px;
  right: 24px;
  z-index: 2;
  padding: 8px 14px;
  border: 1px solid rgba(245, 245, 242, 0.25);
  border-radius: 4px;
  background: rgba(8, 8, 8, 0.72);
  color: #f5f5f2;
  font: 500 12px/1 inherit;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.film-close:hover {
  border-color: rgba(245, 245, 242, 0.6);
  background: rgba(24, 24, 24, 0.9);
}

.film-mode video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.playback-error {
  position: absolute;
  bottom: 32px;
  margin: 0;
  padding: 10px 16px;
  border-radius: 4px;
  background: rgba(8, 8, 8, 0.9);
  color: #f5f5f2;
  font-size: 13px;
}

.playback-error a {
  color: #f5f5f2;
  text-underline-offset: 3px;
}

.not-found {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 24px;
}

.not-found h1 {
  margin: 0 0 12px;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.not-found .lede {
  text-align: left;
  margin-bottom: 24px;
}

@media (max-width: 720px) and (orientation: portrait), (max-width: 600px) {
  .veil {
    height: 290px;
  }

  .action {
    left: 20px;
    right: 20px;
    bottom: 102px;
    transform: none;
    gap: 14px;
  }

  .lede {
    font-size: 14px;
  }

  .drive {
    width: 100%;
    height: 56px;
  }

  .bar {
    inset: auto 20px 18px 20px;
    grid-template-columns: auto auto;
    justify-content: center;
    column-gap: 18px;
    row-gap: 14px;
    font-size: 11px;
  }

  .watch {
    grid-column: 1 / -1;
    justify-self: center;
    font-size: 13px;
    padding: 6px 0;
  }

  .note {
    justify-self: end;
  }

  .handle {
    justify-self: start;
    padding: 4px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-fire {
    transition: none;
  }

  .stage.firing .hero-fire,
  .stage:has(#drive:hover) .hero-fire,
  .stage:has(#drive:focus-visible) .hero-fire {
    opacity: 0;
  }
}
