/*
 * Hero — minimal presentation and full-motion playback.
 * Kept separate from legacy global styles so the hero can evolve independently.
 */
.hero {
  min-height: 0;
  padding: clamp(32px, 3vw, 48px) 0;
  --hero-surface: color-mix(in srgb, var(--blue) 6%, var(--paper));
  background: linear-gradient(90deg, var(--paper) 52%, var(--hero-surface) 52%);
}

.hero-inner {
  position: static;
  top: auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(32px, 3.3vw, 52px);
}

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

.hero .eyebrow {
  gap: 12px;
  margin-bottom: 24px;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.hero .eyebrow::before {
  content: "";
  width: 25px;
  height: 1px;
  flex: 0 0 25px;
  background: var(--champagne);
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 25px;
  font-size: clamp(64px, 8.3vw, 120px);
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.hero h1 em {
  display: block;
}

.hero-description {
  max-width: 460px;
  margin-bottom: 32px;
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-direction: row;
  gap: 0;
  align-items: center;
}

.hero .hero-actions .button {
  padding: 17px 26px;
  min-height: 52px;
  border-radius: 8px;
  font-size: 14px;
}

.hero-visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 620px;
  padding: 0;
  margin: 0;
}

.hero .video-frame {
  position: relative;
  height: clamp(560px, 46vw, 660px);
  min-height: 560px;
  border-radius: 210px 210px 18px 18px;
  background: #dce5e9;
  box-shadow: 0 20px 50px rgb(21 45 67 / 8%);
}

.hero .video-frame video,
.hero .hero-still {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 8%;
}

/* All three layers share the crop, so switching poses does not shift the portrait. */
.hero .hero-still {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
}

.hero .hero-still-final,
.hero [data-media-state="video"] .hero-still,
.hero [data-media-state="final"] .hero-still-initial {
  visibility: hidden;
}

.hero [data-media-state="final"] .hero-still-final {
  visibility: visible;
}

.hero [data-media-state="initial"] video,
.hero [data-media-state="final"] video {
  visibility: hidden;
}

.hero .motion-toggle[hidden] {
  display: none;
}

.hero .motion-toggle {
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  background: rgb(255 255 255 / 90%);
  box-shadow: 0 4px 20px rgb(21 45 67 / 14%);
  color: var(--navy);
  font-size: 19px;
  backdrop-filter: blur(8px);
}

.hero .motion-toggle:hover {
  background: white;
}

@media (max-width: 1180px) and (min-width: 801px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 30px;
  }

  .hero h1 {
    font-size: clamp(58px, 6.7vw, 83px);
  }

  .hero .video-frame {
    min-height: 505px;
    height: min(70svh, 635px);
    border-radius: 160px 160px 16px 16px;
  }
}

@media (max-width: 800px) {
  .hero {
    padding: 32px 0 46px;
    background: var(--paper);
  }

  .hero-inner {
    position: static;
    display: flex;
    flex-direction: column;
    gap: 30px;
    align-items: stretch;
    min-height: 0;
  }

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

  .hero .eyebrow {
    margin-bottom: 15px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .hero h1 {
    margin-bottom: 18px;
    font-size: clamp(52px, 9.5vw, 74px);
    line-height: 1;
  }

  .hero-description {
    margin-bottom: 22px;
    max-width: 490px;
    font-size: 16px;
    line-height: 1.65;
  }

  .hero-actions {
    flex-direction: row;
    align-items: start;
  }

  .hero .hero-actions .button {
    padding: 14px 22px;
    min-height: 50px;
    font-size: 14px;
  }

  .hero .hero-visual {
    align-self: center;
    width: 100%;
    max-width: 430px;
    padding: 0;
    margin: 0 auto;
  }

  .hero .video-frame {
    height: min(67svh, 540px);
    min-height: 410px;
    border-radius: 190px 190px 16px 16px;
  }

  .hero .video-frame video {
    object-position: center 8%;
  }

  .hero .motion-toggle {
    right: 14px;
    bottom: 14px;
    width: 44px;
    height: 44px;
  }
}

@media (min-width: 641px) and (max-width: 800px) {
  .hero {
    padding: 40px 0;
    background: linear-gradient(90deg, var(--paper) 52%, var(--hero-surface) 52%);
  }

  .hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 32px;
  }

  .hero h1 {
    font-size: clamp(48px, 7.8vw, 62px);
  }

  .hero .video-frame {
    min-height: 440px;
    height: 470px;
    border-radius: 150px 150px 16px 16px;
  }
}

@media (max-width: 420px) {
  .hero-inner {
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(47px, 12vw, 54px);
  }

  .hero-description {
    font-size: 15px;
  }

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

  .hero .video-frame {
    height: min(59svh, 465px);
    min-height: 340px;
    border-radius: 145px 145px 14px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero .motion-toggle {
    transition: none;
  }
}
