/* Homepage mobile P2 v13: compact 16:9 inline player and reliable touch controls. */
html {
  min-height: 100%;
  overflow-y: auto;
}

body,
main {
  min-height: 100%;
}

.hero > #heroCanvas {
  display: none !important;
}

.hero.section-panel {
  position: relative;
  min-height: min(94svh, 960px) !important;
  overflow: hidden !important;
  background: #09040f;
}

.hero > .hero-visual,
.hero .hero-frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.hero .hero-frame {
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #09040f !important;
  box-shadow: none !important;
  transform: none !important;
}

.hero .hero-frame .hero-autoplay-video {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 48% !important;
  opacity: 1 !important;
  background: #09040f;
  filter: none !important;
  mix-blend-mode: normal !important;
}

/* The source must keep its native brightness; edge blending cannot cover the video. */
.hero .hero-frame::after {
  display: none !important;
  content: none !important;
  background: none !important;
}

.hero > .hero-copy {
  opacity: 1 !important;
  transition: opacity 420ms ease !important;
}

.hero.is-video-playing > .hero-copy {
  opacity: 0.32 !important;
}

.hero.is-video-ended > .hero-copy {
  opacity: 1 !important;
}

.hero .hero-video-state-icon {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 50%;
  color: #fffdf4;
  background: rgba(8, 4, 16, 0.56);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.34), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  pointer-events: none;
  place-items: center;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero .hero-video-play-cue.is-active .hero-video-state-icon::after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 2px solid rgba(199, 79, 255, 0.96);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(190, 58, 255, 0.84), 0 0 34px rgba(136, 35, 246, 0.56);
  opacity: 0.58;
  pointer-events: none;
  animation: hero-play-purple-breathe 1.6s ease-in-out infinite;
}

@keyframes hero-play-purple-breathe {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.91);
    box-shadow: 0 0 12px rgba(190, 58, 255, 0.66), 0 0 24px rgba(136, 35, 246, 0.4);
  }

  50% {
    opacity: 1;
    transform: scale(1.13);
    box-shadow: 0 0 24px rgba(211, 93, 255, 0.98), 0 0 44px rgba(153, 42, 255, 0.72);
  }
}

.hero .hero-video-play-cue::before {
  display: none !important;
}

.hero .hero-video-state-icon svg {
  grid-area: 1 / 1;
  width: 31px;
  height: 31px;
  fill: currentColor;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.42));
  pointer-events: none;
}

.hero .hero-video-state-icon--play {
  color: #fff200;
  transform: translateX(1px);
}

.hero .hero-video-state-icon svg.hero-video-state-icon--play {
  filter: drop-shadow(0 0 5px rgba(255, 226, 0, 0.92)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5));
}

.hero .hero-video-state-icon--pause {
  display: none;
}

.hero .hero-video-play-cue.is-playing .hero-video-state-icon--play {
  display: none;
}

.hero .hero-video-play-cue.is-playing .hero-video-state-icon--pause {
  display: block;
}

.hero .hero-video-play-cue:hover .hero-video-state-icon,
.hero .hero-video-play-cue:focus-visible .hero-video-state-icon {
  border-color: rgba(255, 255, 255, 0.62);
  background: rgba(18, 10, 32, 0.66);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.4), 0 0 0 2px rgba(255, 255, 255, 0.08);
  transform: scale(1.04);
}

@media (min-width: 761px) {
  .hero > .hero-copy {
    transform: translate(-20px, 20px) !important;
  }

  .site-header {
    transition: background-color 420ms ease, border-color 420ms ease !important;
  }

  .site-header.is-hero-video-playing {
    opacity: 1;
    background: rgba(10, 7, 20, 0.6) !important;
    border-bottom-color: rgba(246, 230, 255, 0.04) !important;
  }

  .hero .hero-video-play-cue.is-playing.is-feedback-visible {
    opacity: 0.76;
    visibility: visible;
    transform: translate(-50%, -50%) scale(0.92);
  }
}

.hero .hero-video-play-cue {
  z-index: 42 !important;
  pointer-events: auto;
  opacity: 1;
  visibility: visible;
  animation: none !important;
  transition: opacity 240ms ease, visibility 240ms ease, transform 240ms ease !important;
}

.hero .hero-video-play-cue.is-active::before {
  animation: hero-play-glyph-pulse 1.35s ease-in-out infinite;
}

.hero .hero-video-play-cue:not(.is-active) {
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -50%) scale(0.88);
}

@keyframes hero-play-glyph-pulse {
  0%, 100% { filter: drop-shadow(0 0 10px rgba(244, 255, 47, 0.88)); transform: scale(0.96); }
  50% { filter: drop-shadow(0 0 26px rgba(244, 255, 47, 0.72)); transform: scale(1.08); }
}

.hero .hero-video-controls {
  z-index: 45 !important;
  display: flex !important;
  top: 101px !important;
  right: 9px !important;
  bottom: auto !important;
  gap: 5px !important;
}

.hero .hero-video-controls .hero-video-control {
  box-sizing: border-box;
  display: inline-flex !important;
  width: 42px !important;
  min-width: 42px !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 50% !important;
  color: #fff;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  pointer-events: auto !important;
  touch-action: manipulation;
}

.hero .hero-control-disc {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  pointer-events: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero .hero-control-disc--sound {
  border: 1px solid rgba(252, 255, 211, 0.9);
  color: #17110a;
  background: #e6ed20;
  box-shadow: 0 0 13px rgba(231, 242, 32, 0.38);
}

.hero .hero-control-disc--fullscreen {
  border: 1px solid rgba(255, 255, 255, 0.82);
  color: #fff;
  background: rgba(7, 2, 14, 0.78);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.hero .hero-control-icon {
  display: block;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.hero [data-hero-video-sound-toggle][aria-pressed="false"] .hero-control-icon--sound-on,
.hero [data-hero-video-sound-toggle][aria-pressed="true"] .hero-control-icon--sound-off,
.hero [data-hero-video-fullscreen][aria-pressed="false"] .hero-control-icon--collapse,
.hero [data-hero-video-fullscreen][aria-pressed="true"] .hero-control-icon--expand {
  display: none;
}

.hero .hero-video-control:hover .hero-control-disc,
.hero .hero-video-control:focus-visible .hero-control-disc {
  transform: scale(1.04);
}

.hero .hero-video-control:focus-visible {
  outline: 2px solid #f4ff2f !important;
  outline-offset: 2px;
}

.hero-frame:fullscreen {
  width: 100vw !important;
  height: 100vh !important;
  background: #000 !important;
}

.hero-frame:fullscreen .hero-autoplay-video,
.hero-autoplay-video:fullscreen {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 1 !important;
  filter: none !important;
  mix-blend-mode: normal !important;
}

.hero-frame:fullscreen .hero-video-controls {
  top: 9px !important;
  right: 9px !important;
}

@media (max-width: 760px) {
  html,
  body {
    max-width: 100%;
    overflow-x: clip !important;
  }

  .site-header {
    box-sizing: border-box;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0;
    padding: 12px 10px !important;
  }

  .site-header .brand {
    min-width: 0;
    flex: 0 1 auto;
  }

  .site-header .brand-logo {
    width: clamp(96px, 27vw, 118px) !important;
  }

  .site-header .header-tools {
    min-width: 0;
    flex: 1 1 auto;
    justify-content: flex-end;
    gap: 6px !important;
    margin-left: 0 !important;
  }

  .site-header .language-control {
    min-width: 0;
    padding: 5px 6px !important;
  }

  .site-header .language-control select {
    width: clamp(66px, 21vw, 84px) !important;
  }

  .site-header .welcome-voice-toggle {
    flex: 0 0 44px;
    width: 44px !important;
    min-width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
  }

  .site-header .commerce-cart-trigger {
    box-sizing: border-box;
    flex: 0 0 auto;
    min-width: 50px;
    min-height: 44px;
    padding: 7px 6px 7px 9px !important;
    gap: 5px;
  }

  .hero.section-panel {
    box-sizing: border-box;
    display: flex !important;
    flex-direction: column;
    align-items: stretch !important;
    justify-content: flex-start !important;
    gap: 18px;
    width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 92px 14px 40px !important;
    overflow: visible !important;
    isolation: isolate;
    background:
      radial-gradient(circle at 50% 15%, rgba(105, 41, 169, 0.2), transparent 42%),
      #09040f !important;
  }

  .hero::after {
    display: none !important;
    content: none !important;
  }

  .hero > .hero-visual {
    position: relative !important;
    inset: auto !important;
    z-index: 2 !important;
    order: 1;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 16 / 9;
    margin: 0 auto !important;
    pointer-events: auto !important;
  }

  .hero .hero-frame {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 1px solid rgba(220, 177, 255, 0.38) !important;
    border-radius: 18px !important;
    background: #09040f !important;
    box-shadow:
      0 18px 46px rgba(0, 0, 0, 0.38),
      0 0 34px rgba(116, 52, 179, 0.18) !important;
    pointer-events: auto !important;
    overflow: hidden !important;
  }

  .hero .hero-frame .hero-autoplay-video {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    opacity: 1 !important;
    filter: none !important;
    mix-blend-mode: normal !important;
  }

  .hero > .hero-copy {
    position: relative !important;
    inset: auto !important;
    z-index: 3 !important;
    order: 2;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 18px 16px 20px !important;
    border: 1px solid rgba(222, 190, 255, 0.14);
    border-radius: 18px;
    background: rgba(16, 7, 28, 0.72);
  }

  .hero .hero-copy h1 {
    font-size: clamp(35px, 10vw, 46px) !important;
    line-height: 0.96 !important;
  }

  .hero .hero-copy .lead {
    display: block !important;
    overflow: visible !important;
    color: rgba(246, 240, 250, 0.86) !important;
    font-size: 14px !important;
    line-height: 1.58 !important;
  }

  .hero .hero-video-play-cue {
    left: 50% !important;
    top: 50% !important;
    width: 72px !important;
    height: 72px !important;
  }

  .hero .hero-video-state-icon {
    width: 54px;
    height: 54px;
  }

  .hero .hero-video-state-icon svg {
    width: 28px;
    height: 28px;
  }

  .hero .hero-video-controls {
    z-index: 50 !important;
    top: 7px !important;
    right: 7px !important;
    bottom: auto !important;
    flex-direction: row !important;
    gap: 2px !important;
    pointer-events: auto !important;
  }

  .hero .hero-video-controls .hero-video-control {
    box-sizing: border-box;
    min-width: 44px !important;
    width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  .hero .hero-control-disc {
    width: 38px;
    height: 38px;
  }

  .hero .hero-frame figcaption,
  .hero .hero-hud,
  .hero > .hero-status {
    display: none !important;
  }

  .hero-frame:fullscreen,
  .hero-frame:-webkit-full-screen {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #000 !important;
    box-shadow: none !important;
  }

  .hero-frame:fullscreen .hero-autoplay-video,
  .hero-frame:-webkit-full-screen .hero-autoplay-video,
  .hero-autoplay-video:fullscreen,
  .hero-autoplay-video:-webkit-full-screen {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #000 !important;
  }

  .hero-frame:fullscreen figcaption,
  .hero-frame:fullscreen ~ .hero-hud,
  .hero-frame:-webkit-full-screen figcaption {
    display: none !important;
  }

  .hero-frame:fullscreen .hero-video-controls,
  .hero-frame:-webkit-full-screen .hero-video-controls {
    top: max(7px, env(safe-area-inset-top)) !important;
    right: max(7px, env(safe-area-inset-right)) !important;
  }
}

@media (max-width: 374px) {
  .site-header {
    gap: 5px !important;
    padding-inline: 8px !important;
  }

  .site-header .brand-logo {
    width: 94px !important;
  }

  .site-header .header-tools {
    gap: 4px !important;
  }

  .site-header .language-control select {
    width: 64px !important;
  }

  .site-header .commerce-cart-trigger {
    min-width: 48px;
    padding-inline: 7px !important;
  }

  .hero.section-panel {
    padding-inline: 12px !important;
  }
}

/* Landscape fullscreen on a phone can exceed the width breakpoint; keep coarse-pointer controls touch sized. */
@media (hover: none) and (pointer: coarse) {
  .hero-frame:fullscreen .hero-video-controls,
  .hero-frame:-webkit-full-screen .hero-video-controls {
    top: max(7px, env(safe-area-inset-top)) !important;
    right: max(7px, env(safe-area-inset-right)) !important;
    gap: 2px !important;
  }

  .hero-frame:fullscreen .hero-video-controls [data-hero-video-sound-toggle],
  .hero-frame:fullscreen .hero-video-controls [data-hero-video-fullscreen],
  .hero-frame:-webkit-full-screen .hero-video-controls [data-hero-video-sound-toggle],
  .hero-frame:-webkit-full-screen .hero-video-controls [data-hero-video-fullscreen] {
    box-sizing: border-box;
    min-width: 44px !important;
    width: 44px !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  .hero-frame:fullscreen .hero-control-disc,
  .hero-frame:-webkit-full-screen .hero-control-disc {
    width: 38px;
    height: 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero > .hero-copy,
  .hero .hero-video-play-cue {
    transition-duration: 0.01ms !important;
  }

  .hero .hero-video-play-cue.is-active::before {
    animation: none !important;
  }

  .hero .hero-video-play-cue.is-active .hero-video-state-icon::after {
    animation: none !important;
    opacity: 0.78;
  }
}

/* Keep the approved neon wordmark inside the existing header footprint. */
.site-header .brand-logo {
  height: clamp(51px, 3.75vw, 59px);
  object-fit: cover;
  object-position: center;
}

@media (max-width: 760px) {
  .site-header .brand-logo {
    height: clamp(33px, 9.37vw, 41px) !important;
  }
}

@media (max-width: 374px) {
  .site-header .brand-logo {
    height: 33px !important;
  }
}
