/* Leave the still in place until the browser is drawing the film. */
.premium-card-image > .ambient-video,
.story-image > .ambient-video,
.hero-media > .ambient-video {
  opacity: 0;
  transition: opacity .55s ease;
}

.premium-card-image > .ambient-video.playing,
.story-image > .ambient-video.playing,
.hero-media > .ambient-video.playing {
  opacity: 1;
}

@media (max-width: 1024px) {
  /* The media fills the whole hero. Let the text determine the height when
     a short screen, longer translation or larger type needs more room. */
  .movis-page .hero {
    display: grid;
    align-items: end;
    isolation: isolate;
    height: auto;
    min-height: clamp(475px, 75svh, 760px);
    max-height: none;
  }

  .movis-page .home-hero { min-height: clamp(530px, 88svh, 860px); }

  .movis-page .hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
  }

  .movis-page .hero-media > :is(img, video) {
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: none;
  }

  .movis-page .hero .hero-shade {
    inset: 0;
    background:
      linear-gradient(to top, rgba(var(--movis-rgb-051210, 5, 18, 16), .86), rgba(var(--movis-rgb-051210, 5, 18, 16), .53) 37%, transparent 75%),
      linear-gradient(to bottom, rgba(var(--movis-rgb-051210, 5, 18, 16), .53), transparent 27%);
    pointer-events: none;
  }

  .movis-page .hero .hero-content {
    position: relative;
    inset: auto;
    padding: clamp(112px, 23svh, 180px) 6vw clamp(34px, 6svh, 62px);
  }

  .movis-page .hero .hero-content > .eyebrow {
    margin: 0 0 17px;
  }

  .movis-page .hero h1 {
    font-size: clamp(2.8rem, 8vw, 5.6rem);
    line-height: .97;
    margin: 0;
    overflow-wrap: anywhere;
    text-shadow: 0 2px 18px rgba(var(--movis-rgb-051210, 5, 18, 16), .28);
  }

  .movis-page .hero .hero-lower {
    margin-top: 20px;
    gap: 12px 24px;
  }

  .movis-page .hero .hero-copy p {
    font-size: clamp(15px, 2vw, 17px);
    line-height: 1.6;
    color: var(--ivory);
  }

  .movis-page .hero .side-note { display: none; }
  .movis-page .hero .hero-actions { margin-top: 19px; }
  .movis-page .hero .hero-actions a { min-height: 44px; }
  .movis-page .hero .scroll-cue { margin: 0; }
  .chapter-nav { scroll-margin-top: 95px; }
}

@media (max-width: 760px) {
  .movis-page .hero-media > video { object-position: 44% center; }
  .movis-page .hero-media > img[src*="client-alpine-traveller-20261007"] { object-position: 74% center; }
  .movis-page .hero-media > img[src*="client-photo-367652903-20261110"] { object-position: 42% center; }
  .movis-page .hero-media > img[src*="client-pool-20261001"] { object-position: 64% center; }
  .movis-page .hero .hero-lower { display: block; }

  .movis-page .nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 9px 5vw;
  }

  .movis-page .nav .client-wordmark { max-width: 100%; }
  .movis-page .nav .brand-art-header { width: clamp(116px, 39vw, 190px); height: auto; max-height: 44px; }
  .movis-page .nav-right { gap: 6px; }
  .movis-page .nav-right .menu-btn { min-width: 44px; justify-content: center; }
  .movis-page .nav-right .plan { display: inline-flex; align-items: center; min-height: 44px; font-size: 9px; padding: 0 8px; }
  .movis-page .menu-close { min-height: 44px; }
  .movis-page .inquiry-form :is(input, select, textarea) { font-size: 16px; }
  .movis-page .inquiry-form [type=checkbox] { min-width: 18px; min-height: 18px; }

  .route-escapes .premium-card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(34px, 10vw, 48px); }
  .route-escapes .premium-card { margin: 0; scroll-margin-top: 80px; }
  .route-escapes .premium-card-copy { padding-top: 20px; }
  .route-escapes .premium-card-copy h3 { margin-bottom: 12px; }
  .route-escapes .premium-card-copy p { margin-bottom: 12px; }
  .route-escapes .premium-card-copy .quiet-link { display: inline-flex; align-items: center; min-height: 44px; }
  .route-escapes .premium-card-image > span { bottom: 19px; align-items: end; gap: 12px; }
  .route-escapes .premium-card-image > span i { flex: none; }
  .route-escapes .escape-jump { gap: 0 20px; padding-block: 12px; margin-bottom: 32px; }
  .route-escapes .escape-jump a { min-height: 44px; }
}

.hero-phone-poster { display: none; }

@media (max-width: 760px) and (orientation: portrait) {
  .hero-phone-poster {
    display: block;
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
  }
  .movis-page .home-hero .hero-media > video[data-phone-src] { object-position: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-video { transition: none !important; }
}

/* Guest proof uses the same editorial scale and rules as the surrounding sections. */
.home-reviews {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px 11vw;
  padding: clamp(40px, 5vw, 78px) 5vw;
  background: var(--paper);
}

.home-reviews h2,
.guest-testimonials-intro h2 {
  margin: 16px 0 0;
  font: 400 clamp(2.5rem, 5vw, 5.4rem)/.97 var(--serif);
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.home-reviews-body > p { margin: 0 0 16px; max-width: 40ch; }
.home-reviews-body .quiet-link { margin: 0; }

.guest-testimonials.testimonials {
  grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr);
  gap: 32px 8vw;
}
.guest-testimonials-intro .source-note { max-width: 26ch; margin: 24px 0 0; line-height: 1.65; }
.guest-testimonials-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }
.guest-testimonial { margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.guest-testimonial:first-child { grid-column: 1 / -1; border-top: 0; padding-top: 0; }
.guest-testimonial figcaption { margin-top: 12px; font-weight: 600; }
.guest-testimonial figcaption span { font-weight: 400; line-height: 1.45; }
.guest-testimonials .guest-testimonial blockquote {
  margin: 0;
  font: 400 clamp(1.5rem, 2.3vw, 2.3rem)/1.15 var(--serif);
  overflow-wrap: anywhere;
}
.guest-testimonials .guest-testimonial:first-child blockquote { font-size: clamp(2rem, 3.4vw, 3.7rem); }
.guest-testimonials .quiet-link { margin-top: 28px; }

@media (max-width: 760px) {
  .home-reviews { grid-template-columns: minmax(0, 1fr); padding-inline: 6vw; gap: 20px; }
  .guest-testimonials.testimonials { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 480px) {
  .guest-testimonials-grid { grid-template-columns: minmax(0, 1fr); gap: 19px; }
}
