:root {
  --bg: #000;
  --yellow: #feb721;
  --cream: #e8e3e3;
  --white: #fefdfc;
  --page-ink: #070706;
  --font-head: "bebas-neue-pro", "Bebas Neue", sans-serif;
  --font-body: "aktiv-grotesk", "Host Grotesk", system-ui, sans-serif;
  --header-height: calc(38px + 2 * clamp(0.6rem, 1.5vw, 1rem));
  --ease-cinematic: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --page-inset: clamp(1rem, 2vw, 1.5rem);
}

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

html, body {
  background: var(--page-ink);
  color: var(--white);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body {
  min-height: 100dvh;
  overflow: hidden;
}

a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  height: 38px;
}
.logo-icon { height: 38px; width: auto; }
.logo-word { height: 30px; width: auto; }

.cta {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: #000;
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  padding: 0.65rem 1rem;
  white-space: nowrap;
}
.cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/assets/texture.svg") center / 160px 160px repeat;
  mix-blend-mode: multiply;
  opacity: 0.55;
  pointer-events: none;
}
.cta:hover { filter: brightness(1.05); }
.cta:active { transform: scale(0.98); }
button.cta {
  appearance: none;
  -webkit-appearance: none;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(0.6rem, 1.5vw, 1rem) clamp(1rem, 2vw, 1.5rem);
  background: transparent;
  opacity: 0;
  pointer-events: none;
}

.header-actions {
  position: relative;
  display: flex;
  align-items: center;
}

.header .cta {
  font-size: clamp(1.2rem, 1.8vw, 1.85rem);
  min-width: max-content;
  min-height: 0;
  flex-shrink: 0;
  padding: 0.55rem 1.05rem;
  line-height: 1;
}

.header .cta,
.cta-main {
  transition: transform 220ms var(--ease-out), filter 180ms ease;
}

.header .cta:hover,
.cta-main:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.slit {
  position: fixed;
  top: 50%;
  left: 0;
  z-index: 8;
  width: 100%;
  height: 2px;
  background: var(--yellow);
  transform: translateY(-50%) scaleX(0);
  transform-origin: center;
  pointer-events: none;
}

.scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  clip-path: inset(calc(50% - 1px) 0 calc(50% - 1px) 0);
}

.scene video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.06);
}

.scene-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.35) 70%, rgba(0, 0, 0, 0.12) 100%),
    linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 30%);
  pointer-events: none;
}

.scene-grain {
  position: absolute;
  inset: 0;
  background: url("/assets/texture.svg") center / 220px 220px repeat;
  mix-blend-mode: overlay;
  opacity: 0.14;
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  min-height: 100dvh;
  padding: 0 var(--page-inset);
}

.stage-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  max-width: 46rem;
  opacity: 0;
  transform: translate(-1.4rem, -30px);
}

.stage h1 {
  display: flex;
  flex-direction: column;
  margin: 0;
  color: var(--white);
  font-family: var(--font-head);
  font-size: clamp(64px, 8vw, 116px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 0.9;
  text-transform: uppercase;
  text-align: left;
  text-wrap: balance;
}

.title-line {
  white-space: nowrap;
}

.title-rated {
  color: #feb721;
}

.cta-main {
  min-width: 0;
  padding: 12px 22px;
  font-size: 1.75rem;
  line-height: 1;
}

.stage-foot {
  position: fixed;
  right: 48px;
  bottom: 52px;
  left: var(--page-inset);
  z-index: 14;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  opacity: 0;
  pointer-events: none;
}

.wired {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 14px;
  align-items: center;
  color: var(--white);
  text-decoration: none;
}

.wired-dq {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  margin-top: -0.08em;
  color: #feb721;
  font-family: var(--font-head);
  font-size: 86px;
  font-weight: 600;
  line-height: 0.75;
}

.wired-quote {
  grid-column: 2;
  grid-row: 1;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 26px;
  font-style: italic;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.wired-hbo,
.wired-close {
  color: #feb721;
  font-style: italic;
  font-weight: 700;
}

.wired-close {
  font-weight: 500;
}

.wired-meta {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 16px;
}

.wired img {
  height: 28px;
  width: auto;
}

.wired-more {
  display: inline-flex;
  align-items: center;
  gap: 0.28em;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  line-height: 1;
  transition: color 180ms ease;
}

.wired-arrow {
  width: 0.7rem;
  height: 0.7rem;
  color: currentColor;
  transition: color 180ms ease, transform 220ms var(--ease-out);
}

.wired:hover .wired-more,
.wired:focus-visible .wired-more {
  color: var(--white);
}

.wired:hover .wired-arrow,
.wired:focus-visible .wired-arrow {
  color: #feb721;
  transform: translate(2px, -2px);
}

.play {
  --mx: 0px;
  --my: 0px;
  --ix: 0px;
  --iy: 0px;
  position: relative;
  z-index: 14;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 18px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #161410;
  cursor: pointer;
}

.play-core {
  position: relative;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 0 0 0 7px rgba(0, 0, 0, 0.32);
  transform: translate3d(var(--mx), var(--my), 0);
  will-change: transform;
}

.play-ring {
  position: absolute;
  inset: -7px;
  border: 1px solid rgba(0, 0, 0, 0.38);
  border-radius: 50%;
  pointer-events: none;
}

.play svg {
  display: block;
  width: 46%;
  height: 46%;
  margin-left: 6%;
  fill: currentColor;
  transform: translate3d(var(--ix), var(--iy), 0);
  will-change: transform;
}

.play:hover .play-core,
.play:focus-visible .play-core {
  filter: brightness(1.06);
}

.play:focus-visible {
  outline: none;
}

.play:focus-visible .play-core {
  outline: 2px solid var(--white);
  outline-offset: 4px;
}

.play-label {
  color: var(--white);
  font-family: var(--font-head);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.viewer {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #050504;
  color: var(--white);
}

.viewer::backdrop {
  background: #050504;
}

.viewer[open] {
  display: grid;
  place-items: center;
}

.viewer video {
  width: 100%;
  height: 100%;
  max-height: 100dvh;
  object-fit: contain;
  background: #050504;
}

.viewer-close {
  position: absolute;
  top: clamp(0.7rem, 2vw, 1.2rem);
  right: clamp(0.7rem, 2vw, 1.2rem);
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.7rem;
  height: 2.7rem;
  color: var(--white);
  transition: background 180ms ease, transform 180ms var(--ease-out);
}

.viewer-close:hover,
.viewer-close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

.viewer-close:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.viewer-close svg {
  width: 1.2rem;
  height: 1.2rem;
}

html.is-lined .slit {
  animation: slitDraw 0.55s var(--ease-out) forwards;
}

html.is-open .slit {
  opacity: 0;
  transition: opacity 0.35s ease 0.15s;
}

html.is-open .scene {
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.55s var(--ease-cinematic);
}

html.is-open .scene video {
  transform: scale(1);
  transition: transform 4.5s var(--ease-out);
}

html.is-open .header {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.7s ease 1.05s;
}

html.is-open .stage-copy {
  opacity: 1;
  transform: translateY(-30px);
  transition:
    opacity 0.85s var(--ease-out) 1.15s,
    transform 0.85s var(--ease-out) 1.15s;
}

html.is-open .stage-foot {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.7s ease 1.25s;
}

html.is-watching .header,
html.is-watching .stage,
html.is-watching .stage-foot {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

@keyframes slitDraw {
  from { transform: translateY(-50%) scaleX(0); }
  to { transform: translateY(-50%) scaleX(1); }
}

@media (max-width: 639px) {
  body {
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  .header {
    align-self: flex-start;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    gap: 10px;
    padding-inline: 16px;
  }

  .header .logo {
    height: 28px;
    max-width: calc(100% - 7.5rem);
  }

  .header .logo-icon {
    height: 28px;
  }

  .header .logo-word {
    height: 22px;
  }

  .header-actions {
    position: relative;
    top: auto;
    right: auto;
    transform: none;
    flex: 0 0 auto;
  }

  .header .cta {
    flex-shrink: 0;
    min-width: max-content;
    background: #feb721;
    font-size: 0.95rem;
    padding: 0.38rem 0.62rem;
  }

  .scene-shade {
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.28) 42%, rgba(0, 0, 0, 0.62) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.42) 0%, rgba(0, 0, 0, 0.18) 100%);
  }

  .stage {
    flex: 1 1 auto;
    min-height: 0;
    padding: calc(var(--header-height) + 12px) 16px 12px;
  }

  .stage-copy {
    gap: 20px;
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  html.is-open .stage-copy {
    transform: none;
  }

  .stage h1 {
    width: 100%;
    font-size: clamp(2.35rem, 11.4vw, 3rem);
  }

  .cta-main {
    width: fit-content;
    max-width: 100%;
    padding: 10px 18px;
    font-size: 1.25rem;
  }

  .stage-foot {
    position: relative;
    right: auto;
    bottom: auto;
    left: auto;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 20px;
    margin: 0;
    padding: 0 16px calc(20px + env(safe-area-inset-bottom, 0px));
  }

  .wired {
    width: 100%;
    column-gap: 6px;
    row-gap: 10px;
  }

  .wired-dq {
    font-size: 52px;
    margin-top: 0;
  }

  .wired-quote {
    font-size: 1.25rem;
    line-height: 1.2;
    white-space: normal;
  }

  .wired-meta {
    flex-wrap: wrap;
    gap: 10px 12px;
  }

  .wired img {
    height: 20px;
  }

  .wired-more {
    font-size: 13px;
  }

  .play {
    width: auto;
    max-width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 12px;
  }

  .play-core {
    width: 56px;
    height: 56px;
    box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.32);
  }

  .play-ring {
    inset: -5px;
  }

  .play-label {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .slit { display: none; }

  html.is-intro .scene,
  html.is-lined .scene,
  html.is-open .scene {
    clip-path: none;
    transition: none;
  }

  html.is-intro .header,
  html.is-intro .stage-copy,
  html.is-intro .stage-foot,
  html.is-open .header,
  html.is-open .stage-copy,
  html.is-open .stage-foot {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: none;
  }

  .scene video,
  .wired-arrow,
  .header .cta,
  .cta-main,
  .play-core {
    transform: none;
    transition: none;
  }
}
