/* One reference canvas for every layer: 1672 x 941, with the CV at
   (92, 285), sized 548 x 313.142857. Resize/reposition the scene, never
   the logo independently, to keep it anchored in the ribbon opening. */
/* Crop the oversized artwork without creating a focus-scrollable container. */
.hero { overflow: clip; }
.hero .hero-visual { container-type: size; }
.hero .hero-scene {
  position: absolute;
  z-index: 1;
  width: max(100cqw, 177.6833156cqh);
  aspect-ratio: 1672 / 941;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.hero .hero-scene > .hero-art,
.hero .hero-scene > .hero-video,
.hero .hero-scene > .hero-logo-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
  transform: none;
}
.hero .hero-scene > .hero-logo-layer { opacity: 1; }

/* Fit the whole reference width in narrow windows. A dim, blurred poster
   softly extends the scene beyond its top/bottom edges in tall viewports. */
@media (max-width: 1599px), (max-aspect-ratio: 16/9) {
  .hero { min-height: max(740px, 100svh); }
  .hero .hero-visual { inset: 0; transform: none; will-change: auto; }
  .hero .hero-visual::before {
    content: '';
    position: absolute;
    inset: -24px;
    background: url('./hero-video-poster-v2.webp') center / cover no-repeat;
    filter: blur(24px);
    opacity: .24;
  }
  .hero .hero-scene {
    width: 100%;
    mask-image: linear-gradient(180deg, transparent, #000 10%, #000 90%, transparent),
      linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent);
    mask-composite: intersect;
  }
  .hero .hero-content { padding-top: 132px; padding-bottom: 140px; }
  .hero .hero-slides,
  .hero .hero-actions { width: 55%; max-width: 710px; }
  .hero .hero-title { font-size: clamp(36px, 5.5vw, 76px); }
  .hero .hero-slide-copy { font-size: clamp(16px, 1.35vw, 18px); }
  .hero .hero-copy-break { display: none; }
  .hero .hero-actions { gap: clamp(12px, 2vw, 24px); }
}

/* Move the entire composition below the copy on small screens. The factors
   come from the shared reference coordinates, including the empty space
   around the mark; the background and logo still have one scale and origin. */
@media (max-width: 800px) {
  .hero { min-height: 100svh; }
  .hero .hero-content {
    align-self: flex-start;
    padding-top: 126px;
    padding-bottom: calc(180px + min(36.6vw, 172px));
  }
  .hero .hero-slides,
  .hero .hero-actions { width: 100%; max-width: none; }
  .hero .hero-title { font-size: clamp(38px, 8vw, 60px); }
  .hero .hero-scene {
    --scene-mark-width: min(64vw, 300px);
    width: calc(var(--scene-mark-width) * 3.05109489);
    left: calc(50% - var(--scene-mark-width) * .66788321);
    top: auto;
    bottom: calc(132px - var(--scene-mark-width) * .62565172);
    transform: none;
  }
  .hero:after {
    background: linear-gradient(180deg, #0b1220ed 0%, #0b1220dc 48%, #0b122022 74%, #0b1220bb 100%);
  }
  .hero .hero-bottom { bottom: 26px; padding-top: 16px; justify-content: center; }
  .hero .hero-slide-controls { width: 100%; max-width: 470px; }
  .hero .scroll-cue { display: none; }
}

@media (max-width: 480px) {
  .hero .hero-title { font-size: clamp(26px, 9.4vw, 43px); }
  .hero .hero-actions { gap: 12px; }
  .hero .hero-actions .button {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    padding-inline: 10px;
    gap: 8px;
    font-size: 15px;
    white-space: nowrap;
  }
}
