/* Approved mobile-only film, copy and benefits sequence. Desktop is unchanged. */
@media (max-width:700px) {
  /* Allen-approved screenshot: normal page space, never a fixed white rail. */
  body .home-opening {
    padding-top:var(--space-xs);
    padding-bottom:calc(var(--space-2xl) + var(--space-s));
    min-height:calc(100svh - var(--gdb-opening-header, var(--mobile-home-header-fallback)));
    box-sizing:border-box;
    background:var(--white);
  }
  body .home-opening .editorial-hero.home-hero-wide.home-hero-overlay {
    display:flex;
    flex-direction:column;
    height:auto;
    min-height:0;
    aspect-ratio:auto;
    background:var(--white);
    overflow:visible;
  }
  body .home-opening .editorial-hero.home-hero-wide.home-hero-overlay .hero-photo.gdb-hero-video {
    order:0;
    position:relative;
    inset:auto;
    flex:none;
    width:100%;
    height:auto;
    aspect-ratio:var(--mobile-home-video-ratio);
    margin:0;
    overflow:hidden;
  }
  body .home-opening .home-hero-overlay .gdb-hero-video-stage {
    width:100%;
    height:auto;
    aspect-ratio:var(--mobile-home-video-ratio);
  }
  body .home-opening .home-hero-overlay .gdb-hero-video-stage::after {
    background:var(--mobile-hero-tint);
    opacity:1;
    backdrop-filter:none;
    mask-image:none;
  }
  body .home-opening .editorial-hero.home-hero-wide.home-hero-overlay .gdb-hero-video-poster,
  body .home-opening .editorial-hero.home-hero-wide.home-hero-overlay .gdb-hero-video-media {
    filter:none;
    object-fit:cover;
    object-position:center;
  }
  body .home-opening .editorial-hero.home-hero-wide.home-hero-overlay .hero-copy {
    order:1;
    position:relative;
    inset:auto;
    width:100%;
    padding:var(--space-l) var(--gutter) var(--space-m);
    margin:0;
    color:var(--ink-800);
    background:var(--white);
    text-shadow:none;
  }
  body .home-opening .editorial-hero.home-hero-wide.home-hero-overlay .hero-copy::after {
    content:"";
    position:absolute;
    left:var(--gutter);
    bottom:var(--space-2xs);
    width:var(--space-xl);
    height:var(--stroke-hairline);
    background:var(--accent-500);
    pointer-events:none;
  }
  body .home-opening .editorial-hero.home-hero-wide.home-hero-overlay .home-hero-eyebrow {
    margin:0 0 var(--space-2xs);
    color:var(--accent-text);
    font-size:var(--step--2);
    line-height:var(--leading-snug);
    letter-spacing:var(--tracking-widest);
  }
  body .home-opening .editorial-hero.home-hero-wide.home-hero-overlay h1 {
    margin:0 0 var(--space-xs);
    color:var(--ink-800);
    font-size:var(--step-3);
    line-height:var(--leading-snug);
    letter-spacing:var(--tracking-tight);
    text-wrap:balance;
  }
  body .home-opening .editorial-hero.home-hero-wide.home-hero-overlay .hero-service-summary {
    max-width:none;
    margin:0 0 var(--space-2xs);
    color:var(--ink-700);
    font-size:var(--step--1);
    line-height:var(--leading-normal);
  }
  body .home-opening .editorial-hero.home-hero-wide.home-hero-overlay .hero-lead {
    max-width:none;
    margin:0;
    color:var(--ink-600);
    font-size:var(--step-0);
    line-height:var(--leading-normal);
  }
  body .home-opening .home-values-section {
    margin:0;
    padding:var(--space-2xs) var(--space-s) var(--space-m);
    background:var(--white);
    color:var(--ink-800);
  }
}

/* Only the enquiry button floats above the page; no full-width mobile rail. */
@media (max-width:850px) {
  html:has(body.gdb-mobile-contact-page:not(.gdb-contact-destination)) {
    scroll-padding-bottom:calc(var(--space-xl) + var(--space-xs) * 3 + env(safe-area-inset-bottom, 0px));
  }
  body.gdb-mobile-contact-page:not(.gdb-contact-destination),
  body.gdb-newchrome-legacy.gdb-mobile-contact-page:not(.gdb-contact-destination) {
    padding-bottom:0;
  }
  body.gdb-mobile-contact-page:not(.gdb-contact-destination) .gdb-contact-widget {
    left:auto;
    right:max(var(--space-s), env(safe-area-inset-right, 0px));
    bottom:calc(var(--space-s) + env(safe-area-inset-bottom, 0px));
    width:max-content;
    max-width:calc(100% - var(--space-s) * 2);
    min-height:0;
    justify-content:flex-end;
    gap:0;
    padding:0;
    border:0;
    background:transparent;
    box-shadow:none;
    pointer-events:none;
  }
  body.gdb-mobile-contact-page .gdb-contact-widget .gdb-contact-prompt {
    display:none;
  }
  body.gdb-mobile-contact-page .gdb-contact-widget .gdb-contact-link {
    min-height:var(--space-xl);
    max-width:100%;
    box-shadow:none;
    pointer-events:auto;
  }
}
