/*
 * DDG V24 — corrective framing layer for the production V22 home.
 * The V22 cascade combined a 920px content box with viewport-derived
 * horizontal padding. On wide screens this left only ~255px for the H1,
 * made the hero almost 2,000px tall and forced the 16:10 film to cover that
 * abnormal height. Keep this layer isolated and loaded last for rollback.
 */

@media (min-width: 761px) {
  .home-full-v9 .luxury-hero,
  .home-full-v9 .luxury-hero__content {
    min-height: 100svh !important;
  }

  .home-full-v9 .luxury-hero__content {
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
  }

  .home-full-v9 .luxury-hero__content h1 {
    max-width: min(18ch, 980px) !important;
    font-size: clamp(3.75rem, 5.1vw, 5.9rem) !important;
    line-height: 0.92 !important;
    hyphens: none;
    overflow-wrap: normal;
    word-break: normal;
    text-wrap: balance;
  }

  .home-full-v9 .luxury-hero__subtitle {
    max-width: 660px !important;
  }

  .home-full-v10 .luxury-hero__video,
  .home-full-v10 .luxury-hero[data-cinematic-hero] .luxury-hero__video {
    object-position: 50% 46% !important;
    transform: none !important;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .home-full-v9 .luxury-hero__content {
    padding-inline: clamp(32px, 5vw, 52px) !important;
  }
}

@media (min-width: 981px) and (max-width: 1180px) {
  .home-full-v9 .luxury-hero__content {
    padding-inline: clamp(52px, 6vw, 78px) !important;
  }
}

@media (min-width: 1181px) {
  .home-full-v9 .luxury-hero__content {
    padding-inline: max(72px, calc((100vw - 1400px) / 2)) !important;
  }
}

@media (min-width: 761px) and (max-height: 760px) {
  .home-full-v9 .luxury-hero__content {
    padding-top: 120px !important;
    padding-bottom: 24px !important;
  }

  .home-full-v9 .luxury-hero__content h1 {
    max-width: min(18ch, 900px) !important;
    font-size: clamp(3.2rem, 4.8vw, 4.4rem) !important;
  }

  .home-full-v9 .luxury-hero__subtitle {
    margin-top: 12px;
    font-size: 1rem;
  }

  .home-full-v9 .luxury-hero__actions {
    margin-top: 16px;
  }

  .home-full-v9 .luxury-btn {
    min-height: 48px;
  }

  .home-full-v9 .luxury-hero__reassurance {
    display: none;
  }

  .home-full-v9 .luxury-hero__proof {
    margin-top: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-full-v10 .luxury-hero__video {
    transform: none !important;
  }
}
