/* Mobile homepage: clear title hierarchy without enlarging reading or buttons. */
@media (max-width: 760px) {
  html body.home-page #main-content :is(h3, h4),
  html body.home-page #main-content :is(h3, h4) > a,
  html body.home-page #main-content .home-developing strong {
    font-size: 28px !important;
    line-height: 1.15;
    letter-spacing: -.025em;
  }
  html body.home-page #main-content :is(#frequency-title, #home-compass-title) {
    font-size: 28px !important;
    line-height: 1.08;
  }
  html body.home-page #main-content h3.hp-kicker {
    font-size: 15px !important;
    line-height: 1.5;
    letter-spacing: .02em;
  }
  html body.home-page #main-content #offer-rite-of-passage h3 { white-space: nowrap; }
}
@media (max-width: 760px) {
  html body.home-page #main-content #offer-rite-of-passage .passage-title-end { display: inline; }
  /* Partner names act as wordmarks within their compact logo grid. */
  html body.home-page #main-content .home-partners h3,
  html body.home-page #main-content .home-partners h3 > a { font-size: 18px !important; }
}
/* Keep the same hierarchy on the narrowest phone screens. */
@media (max-width: 359px) {
  html body.home-page #main-content :is(h3, h4),
  html body.home-page #main-content :is(h3, h4) > a,
  html body.home-page #main-content .home-developing strong { font-size: 24px !important; }
  html body.home-page #main-content #offer-rite-of-passage h3 { letter-spacing: -.04em; }
}

@media (max-width: 359px) {
  html body.home-page #main-content :is(#frequency-title, #home-compass-title) { font-size: 24px !important; }
}

/* Match the home labels, tighten the opening transition and share outer edges. */
@media(max-width:760px){
 html body.home-page #main-content .home-compass-label {font:400 15px/1.5 'Space Mono',monospace!important;letter-spacing:.02em}
 html body.home-page #main-content #movement {padding-bottom:24px!important}
 html body.home-page #main-content #movement+#voyages {padding-top:24px!important}
 html body.home-page #main-content #voyages .offer-actions a {font-size:18px!important;font-weight:400!important;line-height:1.3!important}
 html body.home-page #main-content #partners.home-partners {display:block}
 html body.home-page #main-content #partners .allies-rope {width:100%;margin-inline:0}
 html body.home-page #main-content #partners .partner-grid {width:100%;margin-inline:0;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:20px}
 html body.home-page #main-content #partners .partner-grid h3 {min-height:48px}
}

/* A balanced hero scale with three deliberate lines. */
html body.home-page main #top[data-screen-hero] #hero-title {
  font-size: clamp(64px, 5.8vw, 80px) !important;
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.04em;
}
html body.home-page main #top[data-screen-hero] #hero-title .hero-title-accent {
  color: var(--pink);
  white-space: nowrap;
}

@media (max-width: 1100px) {
  html body.home-page main #top[data-screen-hero] #hero-title { font-size: 64px !important; }
}
@media (max-width: 760px) {
  html body.home-page main #top[data-screen-hero] #hero-title { font-size: 46px !important; }
}

/* A wide crew photograph balances the shared table further down the page. */
html body.home-page main .home-opening .home-opening-photo {
  width: 88%;
  max-width: 1120px;
  margin: clamp(32px, 4vw, 52px) auto 48px 0;
  transform: rotate(-1.5deg);
}
html body.home-page main .home-opening .home-opening-photo > img:first-child {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 760px) {
  html body.home-page main .home-opening .home-opening-photo {
    width: 100%;
    margin: 28px 0 32px;
    transform: none;
  }
}

/* The illustrations sit at the water-side edges, clear of the crew. */
html body.home-page main .home-opening :is(.home-opening-photo, .home-world-photo) {
  position: relative;
  overflow: visible;
}
html body.home-page main .home-opening img.home-photo-whale {
  position: absolute;
  left: -4%;
  top: 36%;
  width: 24%;
  height: auto;
  max-width: 240px;
  filter: brightness(0);
  transform: rotate(1.5deg);
  pointer-events: none;
}
html body.home-page main .home-opening img.home-photo-bird {
  position: absolute;
  right: -3%;
  top: -12%;
  width: 14%;
  height: auto;
  max-width: 155px;
  transform: rotate(10deg) scaleX(-1);
  pointer-events: none;
}
@media (max-width: 760px) {
  html body.home-page main .home-opening img.home-photo-whale {
    left: -4%;
    transform: none;
  }
  html body.home-page main .home-opening img.home-photo-bird {
    right: -2%;
    width: 16%;
  }
}

/* On phones, introduce the Code before the photo, then show it in practice. */
@media (max-width: 760px) {
  html body.home-page main .home-opening { display: flex; flex-direction: column; }
  html body.home-page main .home-opening > .why-copy { order: 0; }
  html body.home-page main .home-opening > .home-compass { display: contents; }
  html body.home-page main .home-opening .home-compass-statement { order: 1; margin-top: 28px; }
  html body.home-page main .home-opening > .home-opening-photo { order: 2; margin: 28px 0 0; }
  html body.home-page main .home-opening .home-entry-routes { order: 3; width: 100%; margin: 32px 0 0; }
  html body.home-page main .home-opening .opening-code-name { order: 4; }
  html body.home-page main .home-opening .home-frequency { order: 5; }
  html body.home-page main .home-opening > .home-world-photo { order: 6; }
}
