/* Homepage video feature: the full frame keeps its ratio with a small responsive margin. */
.homepage-video {
  width: 100%;
  margin: 0;
  background: #000;
  color: #fff;
}

.homepage-video-stage {
  position: relative;
  width: min(1200px, calc(100% - 96px));
  margin: 0 auto;
  aspect-ratio: 2350 / 1282;
  overflow: hidden;
  background: #000;
}

.homepage-video-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.homepage-video-next {
  position: relative;
  display: grid;
  width: 100%;
  height: clamp(64px, 7vw, 96px);
  place-items: center;
  color: #000;
  background: #fff;
  overflow: visible;
}

.homepage-video-next svg {
  width: clamp(72px, 9vw, 120px);
  height: auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: .8;
}

.homepage-video-next:focus-visible {
  outline: 2px solid #000;
  outline-offset: -6px;
}

.homepage-hero-burst {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 90;
}
.homepage-hero-burst i {
  position: absolute;
  left: var(--burst-x, 0px);
  top: var(--burst-y, 0px);
  width: calc(clamp(8px, .9vw, 14px) * var(--particle-size, 1));
  height: calc(clamp(10px, 1.1vw, 17px) * var(--particle-size, 1));
  opacity: 0;
  transform: translate(-50%, -50%);
}
.homepage-hero-burst i::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #c9362b;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.hero-group.is-bursting .homepage-hero-burst i {
  animation: homepage-particle-burst 3000ms cubic-bezier(.2, .45, .3, 1) var(--particle-delay) both;
}
.hero-group.is-bursting .homepage-hero-burst i::before {
  animation: homepage-particle-spin 3000ms linear var(--particle-delay) both;
}
@keyframes homepage-particle-burst {
  0% { opacity: 1; transform: translate(-50%, -50%) translate(0, 0); }
  65% { opacity: .9; }
  100% { opacity: 0; transform: translate(-50%, -50%) translate(var(--particle-x), var(--particle-y)); }
}
@keyframes homepage-particle-spin {
  from { transform: rotate(var(--particle-start-angle)); }
  to { transform: rotate(calc(var(--particle-start-angle) + var(--particle-spin))); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-group.is-bursting .homepage-hero-burst i,
  .hero-group.is-bursting .homepage-hero-burst i::before {
    animation: none;
  }
}

.homepage-video-audio {
  position: absolute;
  right: max(28px, env(safe-area-inset-right));
  bottom: max(44px, env(safe-area-inset-bottom));
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  padding: 10px;
  place-items: center;
  border: 1px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: #0008;
  cursor: pointer;
}

.homepage-video-audio:hover,
.homepage-video-audio:focus-visible {
  color: #000;
  background: #fff;
}

.audio-icon {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.audio-icon--off { display: block; }
.audio-icon--on { display: none; }
.homepage-video-audio[aria-pressed="true"] .audio-icon--off { display: none; }
.homepage-video-audio[aria-pressed="true"] .audio-icon--on { display: block; }

@media (max-width: 650px) {
  .homepage-video-stage {
    width: calc(100% - 32px);
  }

  .homepage-video-audio {
    right: max(20px, env(safe-area-inset-right));
    bottom: max(28px, env(safe-area-inset-bottom));
  }
}

@media (min-width: 651px) and (max-width: 1000px) {
  .homepage-video-stage {
    width: calc(100% - 64px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .homepage-video-media {
    scroll-behavior: auto;
  }
}


.hero-group { position: relative; }
.letter-motion-enabled #hero-title .title-motion-letter,
.letter-motion-enabled.title-motion-enabled [data-title-reveal] .title-motion-letter,
.letter-motion-enabled.title-motion-enabled [data-title-color] .title-motion-letter {
  visibility: hidden;
  transform: translate3d(0, .42em, 0);
  will-change: transform;
}

.letter-motion-enabled #hero-title .title-motion-letter,
.letter-motion-enabled.title-motion-enabled [data-title-reveal].is-title-visible .title-motion-letter,
.letter-motion-enabled.title-motion-enabled [data-title-color].is-title-visible .title-motion-letter {
  animation: title-letter-rise 720ms cubic-bezier(.22, 1, .36, 1)
    calc(var(--title-letter-index) * 26ms) forwards;
}

.letter-motion-enabled #hero-title .title-motion-letter {
  animation-name: hero-title-letter-rise;
  animation-duration: 960ms;
  animation-timing-function: cubic-bezier(.16, 1, .3, 1);
  animation-delay: calc(var(--title-letter-index) * 38ms);
}

@keyframes hero-title-letter-rise {
  from {
    visibility: visible;
    opacity: 0;
    transform: translate3d(0, .72em, 0) scale(.94);
  }

  to {
    visibility: visible;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.hero-actions {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 10px;
  max-width: 570px;
  margin-top: 32px;
}

.hero-purchase-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--display);
  font-size: 10px;
  line-height: 1.35;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.letter-motion-enabled .hero-actions .button {
  opacity: 0;
  animation: hero-action-enter 760ms cubic-bezier(.16, 1, .3, 1) calc(720ms + (var(--hero-action-index) * 120ms)) forwards;
}

.hero-actions .button:first-child { --hero-action-index: 0; }
.hero-actions .button:nth-child(2) { --hero-action-index: 1; }

@keyframes hero-action-enter {
  from {
    opacity: 0;
    transform: translateY(22px) scale(.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}


/* Scope purchase emphasis to homepage controls; preserve checkout styling. */
.header-commerce button, .mobile-commerce-actions button, .hero-actions .button { transition: none; }
.header-buy, .hero-actions .button-primary { background: #000; color: #fff; }
.header-buy:hover, .header-buy:focus-visible,
.header-subscribe:hover, .header-subscribe:focus-visible,
.mobile-commerce-buy:hover, .mobile-commerce-buy:focus-visible,
.hero-actions .button-primary:hover, .hero-actions .button-primary:focus-visible {
 background: #c9362b !important; border-color: #c9362b; color: #fff; box-shadow: none;
}
.hero-actions .button:focus-visible, .header-commerce button:focus-visible { outline: 2px solid #000; outline-offset: 3px; }
@media (max-width:650px) { .hero-actions { grid-template-columns:1fr; } }
@media (prefers-reduced-motion:reduce) { .letter-motion-enabled .hero-actions .button { opacity:1; animation:none; transform:none; } }
