.hero-composition {
  background: var(--wine);
  min-height: min(100svh, 920px);
  overflow: hidden;
  position: relative;
}

.hero-composition::before {
  display: none;
}

.hero {
  background: transparent;
  display: block;
  min-height: 100%;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(150px, 17vh, 210px) clamp(24px, 8vw, 128px) clamp(72px, 10vh, 110px);
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero-shade {
  inset: 0;
  position: absolute;
}

.motion-showcase {
  background: transparent;
  bottom: 0;
  color: var(--wine);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0;
  top: 0;
  width: 54%;
  z-index: 1;
}

.motion-showcase::after {
  background: linear-gradient(90deg, var(--wine) 0%, oklch(28% 0.08 15 / 0.72) 14%, transparent 42%);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: 4;
}

.motion-heading {
  display: none;
}

.motion-heading h2 {
  font-size: clamp(2.7rem, 4vw, 4.8rem);
  letter-spacing: -0.065em;
  margin: 0;
}

.motion-stage {
  aspect-ratio: auto;
  background: var(--blush);
  border: 0;
  flex-shrink: 0;
  height: 100%;
  margin: 0;
  max-height: none;
  max-width: none;
  overflow: hidden;
  position: relative;
  width: 100%;
}

.hero-sequence,
.hero-frame-fallback,
.hero-final-still {
  height: 100%;
  inset: 0;
  object-fit: cover;
  position: absolute;
  width: 100%;
}

.hero-sequence {
  --hero-shift-x: 0%;
  transform: translate3d(var(--hero-shift-x), 0, 0) scale(1);
  transform-origin: center;
  z-index: 2;
}

.hero-frame-fallback {
  transform: translate3d(var(--hero-shift-x, 0%), 0, 0) scale(1);
  transform-origin: center;
  z-index: 1;
}

.hero-final-still {
  opacity: 0;
  transform: translate3d(var(--hero-shift-x, 0%), 0, 0) scale(1);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 3;
}

.motion-stage.final-moment .hero-final-still {
  opacity: 1;
}

.motion-stage.use-frame-fallback .hero-sequence {
  opacity: 0;
}

.hero-shade {
  background:
    linear-gradient(90deg, oklch(22% 0.075 15 / 0.88) 0%, oklch(28% 0.08 15 / 0.74) 31%, oklch(35% 0.06 15 / 0.24) 54%, transparent 77%),
    linear-gradient(0deg, oklch(18% 0.05 15 / 0.18), transparent 42%);
  z-index: -2;
}

.hero-copy {
  color: var(--cream);
  max-width: min(670px, 50vw);
  padding: 0;
}

.topbar .brand,
.topbar nav a,
.topbar .mini-cta {
  color: var(--cream);
  text-shadow: 0 1px 18px oklch(18% 0.05 15 / 0.34);
}

.topbar .mini-cta {
  border-bottom-color: var(--cream);
}

.hero-copy h1 {
  font-size: clamp(4.4rem, 7vw, 8rem);
  letter-spacing: -0.065em;
  text-shadow: 0 2px 32px oklch(18% 0.05 15 / 0.22);
}

.hero-copy .lead {
  color: oklch(97% 0.012 45 / 0.94);
  font-size: clamp(1rem, 1.2vw, 1.12rem);
  max-width: 55ch;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
}

.hero-highlights li {
  align-items: center;
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 8px;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero-highlights span {
  color: var(--gold);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-actions .button {
  margin-top: 0;
}

.button-ghost {
  background: oklch(98% 0.012 80 / 0.08);
  border: 1px solid oklch(98% 0.012 80 / 0.62);
  color: var(--cream);
}

.hero-side {
  color: var(--cream);
}

@media (max-width: 900px) {
  .hero-composition {
    display: block;
    min-height: auto;
  }

  .hero-composition::before {
    display: none;
  }

  .hero {
    background: var(--wine);
    min-height: 820px;
    padding: 142px 24px 80px;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-copy h1 {
    font-size: clamp(3.5rem, 10vw, 5.8rem);
  }

  .motion-heading h2 {
    font-size: clamp(2.7rem, 5vw, 5.8rem);
  }

  .motion-showcase {
    background: var(--cream);
    bottom: auto;
    padding: clamp(74px, 10vw, 110px) clamp(20px, 7vw, 72px) clamp(88px, 12vw, 128px);
    position: static;
    width: auto;
  }

  .motion-showcase::after {
    display: none;
  }

  .motion-heading {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(180px, 0.36fr) minmax(0, 0.64fr);
    margin: 0 auto clamp(34px, 5vw, 60px);
    max-width: 1120px;
    width: 100%;
  }

  .motion-stage {
    aspect-ratio: 16 / 9;
    border: 1px solid var(--line);
    height: auto;
    margin: 0 auto;
    max-height: 680px;
    max-width: 1120px;
    width: 100%;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, oklch(22% 0.075 15 / 0.88), oklch(28% 0.08 15 / 0.55) 70%, oklch(28% 0.08 15 / 0.22)),
      linear-gradient(0deg, oklch(18% 0.05 15 / 0.25), transparent 50%);
  }
}

@media (max-width: 580px) {
  .hero {
    min-height: 100svh;
    padding: 124px 20px 72px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-copy h1 {
    font-size: clamp(3.15rem, 15vw, 4.35rem);
    margin-bottom: 24px;
  }

  .hero-highlights {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    justify-content: space-between;
    width: 100%;
  }

  .motion-showcase {
    background: var(--cream);
    padding: 48px 0 72px;
  }

  .motion-heading {
    display: block;
    grid-template-columns: 1fr;
    padding: 0 20px;
  }

  .motion-heading h2 {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .motion-stage {
    aspect-ratio: 3 / 4;
    background: transparent;
    border: 0;
    max-height: none;
    max-width: none;
    width: 100%;
  }

  .hero-sequence,
  .hero-frame-fallback,
  .hero-final-still {
    --hero-shift-x: 0%;
  }

  .hero-shade {
    background: linear-gradient(90deg, oklch(22% 0.075 15 / 0.92), oklch(27% 0.08 15 / 0.76) 68%, oklch(30% 0.07 15 / 0.42));
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-sequence {
    animation: none;
    transform: translate3d(var(--hero-shift-x), 0, 0);
  }

}
