/* Responsive launch pass. Keep the existing scroll timelines and visual styling. */
#request .ds-request-stage {
  /* Compact enough for laptop displays; when the form is taller, its native
     scroll remains available and the fixed header no longer covers its title. */
  padding-block-start: max(calc(var(--hero-bar-height, 70px) + 12px), 5svh);
}
#request .ds-request-panel :is(input, select, textarea, button) {
  scroll-margin-block: 10px 18px;
}
#request .ds-request-action .pill {
  min-block-size: 44px;
  max-inline-size: 100%;
}
#request #dsq-note {
  min-inline-size: 0;
  overflow-wrap: anywhere;
}
.ds-news-heading > h2,
#partners .story-lead,
.closing-atlas-copy p {
  overflow-wrap: break-word;
}
.closing-atlas-copy,
.closing-link-group,
.closing-meta > * {
  min-inline-size: 0;
}
.closing-meta > * {
  overflow-wrap: break-word;
}

/* Mid-size tablets need the route controls in the bottom row, not over the
   interactive centre of the globe. Keep the desktop hover layout otherwise. */
@media (min-width: 961px) and (max-width: 1180px) and (pointer: coarse) {
  .orbit-hero .planet {
    margin-inline-start: 0;
  }
  .orbit-hero .route-panel {
    position: static;
    inset: auto;
    transform: none;
    width: min(100%, 490px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .orbit-hero .orbit-base {
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
  }
  .orbit-hero .orbit-note {
    grid-row: 2;
    grid-column: 1 / -1;
    justify-self: start;
  }
  .orbit-hero .scroll-cue {
    grid-row: 1;
  }
}
/* 11–13 inch tablet portrait: a distinct image row with the copy beneath.
   Dynamic geometry is still measured by the existing hero observer. */
@media (min-width: 961px) and (max-width: 1180px) and (pointer: coarse) and (orientation: portrait) {
  .orbit-hero {
    --globe-row: min(51vw, 44svh, 540px);
    height: auto;
    min-height: 100svh;
    grid-template-rows: var(--hero-bar-height) var(--globe-row) 1fr auto;
  }
  .orbit-hero .planet {
    top: calc(var(--hero-bar-height) + var(--globe-row) * .54);
    left: 50%;
    width: min(78vw, 64svh, 770px);
  }
  .orbit-hero .orbit-copy {
    grid-row: 3;
    align-self: center;
    padding-block: 10px 14px;
  }
  .orbit-hero .orbit-base {
    grid-row: 4;
  }
  .orbit-copy h1 span {
    display: inline;
  }
  .orbit-intro {
    max-width: 48ch;
  }
  .orbit-hero::after {
    background: linear-gradient(0deg, #070b13 4%, #070b13dd 25%, #070b1360 41%, transparent 60%);
  }
}

/* Keep the dark quote form usable at tablet and fold widths without resetting
   native date/select controls or shrinking touch targets. */
@media (min-width: 761px) and (max-width: 1000px) {
  #request .ds-request-stage {
    padding-inline: clamp(20px, 4vw, 40px);
  }
  #request .ds-request-panel .request-contacts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (pointer: coarse) {
  #request .ds-request-panel :is(input, select, textarea),
  .ds-news-toggle {
    min-block-size: 44px;
  }
  #request .ds-request-panel :is(input, select, textarea) {
    font-size: max(1rem, 16px);
  }
  .closing-motion-toggle {
    width: 44px;
    height: 44px;
  }
}

/* A 320–360px cover display has insufficient width for long form labels
   and two news cards side by side. Use reading order rather than ellipses. */
@media (max-width: 390px) {
  .site-header .bar {
    gap: 6px;
  }
  .site-header .right {
    min-inline-size: 0;
    gap: 6px;
  }
  .site-header .top-link {
    max-inline-size: 112px;
    overflow-wrap: break-word;
  }
  .site-header .logo img {
    width: clamp(91px, 30vw, 115px);
  }
  .orbit-base .route-choice {
    font-size: clamp(.61rem, 2.8vw, .72rem);
    letter-spacing: .02em;
    padding-inline: 6px;
  }
  .orbit-copy .buttons {
    column-gap: 7px;
  }
  .orbit-copy .pill {
    padding-inline: 10px;
  }
  #request #dsq-request-fields > fieldset:first-of-type,
  #request .ds-request-panel .request-contacts {
    grid-template-columns: minmax(0, 1fr);
  }
  #request #dsq-request-fields label[for="dsq-cargo"],
  #request #dsq-request-fields #dsq-consolidation-row:not([hidden]) + label[for="dsq-cargo"],
  #request #dsq-request-fields label[for="dsq-service"],
  #request #dsq-request-contacts-note {
    grid-column: 1 / -1;
  }
  #request .ds-request-action {
    align-items: start;
    flex-direction: column;
  }
  #request #dsq-note {
    flex: 0 1 auto;
  }
  .ds-news-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: auto;
  }
  .ds-news-card {
    padding-inline-end: 29px;
  }
  .closing-atlas-copy p {
    max-inline-size: none;
  }
}

/* Wide, short windows (folded landscape, phones in landscape, laptop split
   view) cannot fit tall fixed scenes plus the site header at once. Let the
   hero own its natural content height while the later scroll scenes retain
   their existing short-viewport fallbacks. */
@media (min-width: 681px) and (max-height: 480px) {
  .orbit-hero {
    min-height: 0;
    height: max(100svh, 420px);
  }
  .orbit-copy {
    padding-block: 3px 11px;
  }
  .orbit-copy h1 {
    font-size: clamp(2.15rem, 5.15vw, 4.25rem);
    margin-block-start: 11px;
  }
  .orbit-intro {
    margin-block-start: 11px;
    max-inline-size: 41ch;
  }
  .orbit-copy .buttons {
    margin-block-start: 12px;
  }
  .orbit-copy .pill {
    min-block-size: 44px;
    padding-block: 7px;
  }
  .orbit-base {
    padding-block: 4px 11px;
  }
  .ds-news-layout {
    padding-block-start: calc(var(--hero-bar-height, 70px) + 20px);
  }
}
@media (min-width: 681px) and (max-height: 479px) {
  /* No cinematic handoff at this height: avoid an empty scroll runway. */
  .orbit-track {
    height: auto;
    min-height: 0;
    margin-block-end: 0;
  }
  .orbit-cover-spacer {
    height: 0;
  }
  .orbit-hero {
    position: relative;
  }
  .route-gallery {
    margin-top: 0;
  }
}

.ds-request-action .ds-intake-privacy{color:inherit;font-size:.77rem;line-height:1.35;text-underline-offset:.2em}
.ds-request-action .ds-intake-privacy[hidden]{display:none}
.ds-request-panel [aria-invalid="true"]{outline:2px solid #df997c;outline-offset:1px}

/* iOS: keep the hero in normal flow and confine dawn to the seam. Large
   masked sticky sheets are expensive and can cover the quote buttons. */
.ds-ios .orbit-track{height:auto;min-height:0;margin-block-end:0}
.ds-ios .orbit-cover-spacer{height:0}
.ds-ios .orbit-hero{position:relative;top:auto;min-height:100svh}
.ds-ios .route-gallery{margin-top:0;--dawn-rise:clamp(28px,5svh,62px)}
.ds-ios .lane-stage::before{
 -webkit-mask-image:none;mask-image:none;
 background:linear-gradient(to bottom,transparent,#263c55a6 42%,var(--lane-bg));
}
.ds-ios .lane-window{overflow-x:auto;touch-action:pan-x pan-y pinch-zoom}
.ds-ios .orbit-base{padding-bottom:calc(17px + clamp(28px,5svh,62px))}
