:root {
  --red: #f02a35;
  --white: #f6f7f3;
  --display: "Barlow Condensed", sans-serif;
  --mono: "Space Mono", monospace;
}

* { box-sizing: border-box; }

html,
body { width: 100%; height: 100%; }

html { background: #050608; }

body {
  margin: 0;
  overflow: hidden;
  background: #050608;
  color: var(--white);
  font-family: var(--mono);
}

a,
button { font: inherit; }

.splash {
  position: relative;
  width: 100%;
  height: 100vh;
  height: 100svh;
  height: 100dvh;
  overflow: hidden;
  isolation: isolate;
  background: #050608;
}

.splash-video,
.fallback,
.shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.fallback {
  z-index: 0;
  background: #050608 url("assets/library/2026-08-01/web/HighresScreenshot00004.png") center / cover no-repeat;
  opacity: 1;
  transition: opacity .2s ease;
}

.splash-video {
  z-index: 1;
  display: block;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

.video-playing .fallback {
  opacity: 0;
}

.shade {
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(3, 4, 6, .68) 0%, rgba(3, 4, 6, .2) 46%, transparent 72%),
    linear-gradient(0deg, rgba(3, 4, 6, .68) 0%, transparent 46%);
}

.splash-copy {
  position: absolute;
  left: max(clamp(1.25rem, 4vw, 4.5rem), env(safe-area-inset-left));
  top: max(clamp(1.25rem, 4vh, 3.5rem), env(safe-area-inset-top));
  bottom: auto;
  width: min(850px, calc(100% - 2.5rem));
  z-index: 3;
}

h1,
p { margin: 0; }

h1 {
  display: flex;
  flex-direction: column;
  width: max-content;
  max-width: 100%;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  line-height: .66;
  letter-spacing: -.055em;
  text-transform: uppercase;
  transform: skewX(-3deg);
  text-shadow: 0 3px 28px rgba(0, 0, 0, .35);
}

h1 span { font-size: clamp(6rem, 15vw, 15rem); }

h1 strong {
  margin-left: .4em;
  color: var(--red);
  font-size: clamp(3.8rem, 8.6vw, 8.6rem);
  letter-spacing: -.025em;
}

.splash-copy > p {
  margin-top: clamp(1.15rem, 2.4vh, 1.8rem);
  font-size: clamp(.72rem, .9vw, .92rem);
  font-weight: 700;
  letter-spacing: .055em;
  text-transform: uppercase;
  text-shadow: 0 2px 14px #000;
}

.splash-copy > .studio-credit {
  margin-top: .5rem;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(.58rem, .72vw, .7rem);
  letter-spacing: .08em;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: 1.4rem;
}

.action {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.05rem;
  border: 1px solid rgba(255, 255, 255, .8);
  background: rgba(3, 4, 6, .28);
  color: var(--white);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  transition: background .18s ease, color .18s ease, border-color .18s ease;
}

.action:hover,
.action:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #050608;
}

.action-primary {
  border-color: var(--red);
  background: var(--red);
}

.video-controls {
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: flex;
  gap: .45rem;
  z-index: 4;
}

.video-controls button {
  min-width: 74px;
  min-height: 42px;
  padding: .6rem .75rem;
  border: 1px solid rgba(255, 255, 255, .42);
  background: rgba(3, 4, 6, .42);
  color: rgba(255, 255, 255, .84);
  font-size: .53rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.video-controls button:hover,
.video-controls button:focus-visible {
  border-color: #fff;
  color: #fff;
}

@media (max-width: 760px) {
  .splash-video { object-position: center center; }

  .shade {
    background:
      linear-gradient(0deg, rgba(3, 4, 6, .88) 0%, rgba(3, 4, 6, .42) 42%, transparent 72%),
      linear-gradient(90deg, rgba(3, 4, 6, .2), transparent 65%);
  }

  .splash-copy {
    left: max(1rem, env(safe-area-inset-left));
    right: max(1rem, env(safe-area-inset-right));
    top: max(1rem, env(safe-area-inset-top));
    bottom: auto;
    width: auto;
  }

  h1 span { font-size: clamp(4.8rem, 23vw, 8rem); }
  h1 strong { margin-left: .17em; font-size: clamp(3rem, 14.5vw, 5rem); }

  .splash-copy > p {
    max-width: 28rem;
    font-size: clamp(.67rem, 2.8vw, .8rem);
    line-height: 1.45;
  }

  .actions { gap: .45rem; }
  .action { flex: 1 1 calc(50% - .25rem); min-height: 50px; }
  .action-primary { flex-basis: 100%; }

  .video-controls {
    right: max(1rem, env(safe-area-inset-right));
    bottom: max(.8rem, env(safe-area-inset-bottom));
  }

  .video-controls button { min-height: 44px; }
}

@media (max-width: 390px), (max-height: 680px) {
  h1 span { font-size: clamp(4rem, 20vw, 6rem); }
  h1 strong { font-size: clamp(2.6rem, 13vw, 4rem); }
  .splash-copy > p { margin-top: .85rem; }
  .actions { margin-top: 1rem; }
}

@media (orientation: landscape) and (max-height: 520px) {
  .splash-copy {
    top: max(.75rem, env(safe-area-inset-top));
    bottom: auto;
  }
  h1 span { font-size: clamp(4.2rem, 14vw, 7.5rem); }
  h1 strong { font-size: clamp(2.8rem, 8vw, 4.5rem); }
  .splash-copy > p { margin-top: .75rem; }
  .actions { margin-top: .85rem; }
  .video-controls { top: max(1rem, env(safe-area-inset-top)); bottom: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; }
}
