/* ==========================================================================
   HERO — dark, full-bleed, corner-anchored.
   Reference points: Spotify / SoundCloud / DJI. All three hold a dark image
   full-bleed and let the type sit small in a corner rather than centered, so
   the photograph does the talking and the words only orient you.

   The backdrop is the client's own photo — DJ Klitchko at the controller
   mid-event. It gets a mild unsharp pass in tools/prep-photos.mjs because a
   1290px source upscales past 1:1 on wide displays.
   ========================================================================== */

:root {
  --color-uplight:      #b0269e;  /* magenta wash, from the client's own uplighting */
  --color-uplight-deep: #3d1145;  /* shadow violet in the room corners */
  --color-uplight-soft: #c98fd6;
  --color-flyer-gold:   #ffbe1a;  /* from the DJ Klitchko flyer art */
}

.hero-section {
  position: relative;
  min-height: 94vh;
  display: flex;
  overflow: hidden;
  background-color: #06030a;
  border-bottom: none;
  padding: 0;
}

/* --- backdrop ----------------------------------------------------------- */

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Sit high in the frame. The footage is bottom-heavy — the lit controller
     fills the lower two-thirds — and the headline lives bottom-left, so
     favouring the calmer ballroom above keeps the type off the jog wheel. */
  object-position: 50% 34%;
  /* No CSS drift here: the shot already dollies. Stacking a scale animation on
     top of camera movement reads as drift-on-drift. */
  transform: scale(1.02);
}

/* No object-position override for phones: they're served a file already cropped
   to that column in ffmpeg (see tools/make-hero-loop.mjs), so it's framed at
   50% by definition and cover has almost nothing left to trim. */

/* Two scrims rather than one: a floor across the whole frame to hold the nav,
   and a deeper pool anchored bottom-left so the headline stays legible over
   whatever the photo happens to be doing there. */
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(135% 110% at 6% 106%,
      rgba(6, 3, 10, 0.96) 0%,
      rgba(6, 3, 10, 0.78) 36%,
      rgba(6, 3, 10, 0.34) 60%,
      rgba(6, 3, 10, 0) 82%),
    linear-gradient(to bottom,
      rgba(6, 3, 10, 0.62) 0%,
      rgba(6, 3, 10, 0.08) 26%,
      rgba(6, 3, 10, 0.34) 60%,
      rgba(6, 3, 10, 0.88) 86%,
      rgba(6, 3, 10, 0.95) 100%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --- layout: content in the corners, middle left empty ------------------- */

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-120) var(--spacing-24) var(--spacing-56);
  display: flex;
  align-items: flex-end;
}

.hero-corner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* --- type: small, quiet, one loud line ---------------------------------- */

.hero-status {
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: var(--spacing-16);
}

.hero-headline {
  font-family: var(--font-basel-classic-book);
  font-weight: var(--font-weight-regular);
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: var(--spacing-32);
}

.btn-stage {
  background: #fff;
  color: #0b0510;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: var(--font-weight-semibold);
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  -webkit-tap-highlight-color: transparent;
}

.btn-stage:hover {
  background: var(--color-flyer-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255, 190, 26, 0.3);
}

.btn-stage:active {
  transform: translateY(0) scale(0.97);
}


.hero-video::-webkit-media-controls,
.hero-video::-webkit-media-controls-start-playback-button,
.hero-video::-webkit-media-controls-play-button,
.hero-video::-webkit-media-controls-enclosure {
  display: none !important;
  -webkit-appearance: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* --- responsive --------------------------------------------------------- */

@media (max-width: 768px) {
  .hero-section { min-height: 86vh; }

  .hero-video {
    object-position: 50% 40%;
    transform: none; /* Zoom out on mobile: no artificial scale-up */
  }

  .hero-inner {
    padding-bottom: var(--spacing-40);
  }

}

@media (max-width: 480px) {
  .btn-stage { width: 100%; text-align: center; }
}

/* --- floor -------------------------------------------------------------- */

/* Playback itself is gated in main.js — CSS can't pause a video — so this only
   needs to hold the frame still. */
@media (prefers-reduced-motion: reduce) {
  .hero-video { transform: scale(1.02); }
}

.hero-section a:focus-visible {
  outline: 3px solid var(--color-flyer-gold);
  outline-offset: 3px;
}
