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

:root {
  --ink: #0a0a0b;
}

html, body {
  height: 100%;
  overflow: hidden;
  background: var(--ink);
}

/* ── Full-viewport hero ──────────────────────────────────────────────── */

.hero {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* Poster image — visible immediately at load */
.hero__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 0;
}

/* Video — invisible until canplaythrough, then fades in over poster */
.hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  z-index: 1;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero__video.is-ready {
  opacity: 1;
}

/* Dark vignette overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse at center, transparent 30%, rgba(10,10,11,0.55) 100%),
    linear-gradient(to bottom,
      rgba(10,10,11,0.45) 0%,
      rgba(10,10,11,0.10) 35%,
      rgba(10,10,11,0.10) 65%,
      rgba(10,10,11,0.75) 100%
    );
}

