/* ============================================================
   HeroVideo (.c-hero-video)
   Modal player replaced by an inline autoplaying video; ambient
   glows (glow-blue from base.css) kept 1:1.
   ============================================================ */

.c-hero-video {
  position: relative;
  width: 100%;
}

.c-hero-video__glow-wrap {
  pointer-events: none;
  position: absolute;
  inset: -48px -64px;
  z-index: -1;
}
.c-hero-video__glow {
  position: absolute;
  inset: 0;
  opacity: 0.7;
  filter: blur(80px);
}

.c-hero-video__frame {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  overflow: hidden;
  border-radius: 24px;
  background: var(--color-black);
}
.c-hero-video__video {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* click-to-play: the button holds the poster until the user starts it;
   hero-video.js flips .is-playing on the frame */
.c-hero-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border: 0;
  border-radius: 999px;
  background: rgba(249, 249, 249, 0.92);
  color: var(--color-black);
  cursor: pointer;
  box-shadow: none;
  transition: transform 0.2s ease, background-color 0.2s ease, opacity 0.2s ease;
}
.c-hero-video__play:hover {
  transform: translate(-50%, -50%) scale(1.06);
  background: var(--color-grey-50);
}
.c-hero-video__play svg { margin-left: 3px; }
.c-hero-video__frame.is-playing .c-hero-video__play {
  opacity: 0;
  pointer-events: none;
}
.c-hero-video__frame.is-playing .c-hero-video__video { cursor: pointer; }
.c-hero-video__ring {
  pointer-events: none;
  position: absolute;
  inset: 0;
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.10);
}

.c-hero-video__floor-glow {
  pointer-events: none;
  position: absolute;
  bottom: -48px;
  left: 32px;
  right: 32px;
  height: 64px;
  border-radius: 48px;
  background: rgba(0, 106, 255, 0.30);
  filter: blur(64px);
  opacity: 0.6;
  z-index: -1;
}

/* ---------- fullscreen lightbox ----------
   Click-to-play opens the video in a popup with sound (Sofia, 2026-07-25);
   built by hero-video.js, closed by ×, backdrop, or Escape. */
.c-hero-video-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.c-hero-video-modal.is-open { opacity: 1; }
/* closed or mid-fade the overlay must not eat clicks (children only
   become interactive once the root is open) */
.c-hero-video-modal:not(.is-open) { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .c-hero-video-modal { transition: none; }
}
.c-hero-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: color-mix(in oklab, var(--color-black) 88%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.c-hero-video-modal__panel {
  position: relative;
  width: min(1280px, 94vw);
}
.c-hero-video-modal__player {
  display: block;
  width: 100%;
  max-height: 84vh;
  border-radius: 16px;
  background: var(--color-black);
  box-shadow: none;
}
.c-hero-video-modal__close {
  position: absolute;
  top: -48px;
  right: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: none;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.c-hero-video-modal__close:hover {
  color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.6);
}
