/* BTrip expedition: original composition, local assets, natural scrolling. */
.hero[data-narrative="1"] { isolation:isolate; }
.hero[data-narrative="1"] .hero-content { display:flex; flex-direction:column; justify-content:center; align-items:flex-start; padding-top:40px; padding-bottom:110px; gap:0; }
.expedition-logo { width:clamp(150px,20vw,270px); height:90px; object-fit:contain; object-position:left center; margin:0 0 28px; }
.hero[data-narrative="1"] .hero-content h1 { margin-block:12px 24px; }
.hero[data-narrative="1"] .hero-lead { margin-top:0; }
.hero[data-narrative="1"] .hero-scene-controls { border:1px solid #ffffff50; background:#0a141b70; backdrop-filter:blur(8px); }
/* Words have no overflow mask: keep the full glyph, including its final bearing. */
.expedition-word { display:inline-block; vertical-align:baseline; max-width:100%; overflow:visible; overflow-wrap:anywhere; }
.expedition-word-content { display:inline-block; max-width:100%; overflow:visible; }
.expedition-char { display:inline-block; overflow:visible; backface-visibility:hidden; -webkit-backface-visibility:hidden; }
.hero[data-narrative="1"].uses-gsap-type .hero-content > :not(.sr-only) { animation:none; }
.expedition-story h2, .hero-content h1 { overflow-wrap:anywhere; }
.expedition-story { position:relative; padding-block:clamp(72px,9vw,140px); background:#f3f2eb; }
.expedition-story::before { content:""; position:absolute; bottom:100%; inset-inline:0; height:26px; background:#f3f2eb; clip-path:polygon(0 100%,0 65%,18% 85%,40% 10%,61% 70%,82% 0,100% 65%,100% 100%); }
.expedition-story .wrap { width:min(var(--content),calc(100% - 48px)); margin-inline:auto; }
.expedition-story h2 { font-size:clamp(2.7rem,6.7vw,7rem); max-width:18ch; line-height:1.08; letter-spacing:-.035em; word-spacing:.06em; margin:32px 0 48px; text-wrap:balance; }
.expedition-story-bottom { display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:10%; }
.expedition-story-bottom p { font-size:clamp(1.05rem,1.6vw,1.35rem); line-height:1.7; max-width:42ch; margin:0 0 28px; }
.expedition-trail { width:85%; max-width:420px; color:var(--green); overflow:visible; }
.expedition-trail path { stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-dasharray:none; stroke-dashoffset:0; }
.expedition-trail circle { fill:var(--lime); stroke:currentColor; stroke-width:2; }

.expedition-gallery { position:relative; overflow:hidden; background:#f3f2eb; padding:100px 0 130px; }
.expedition-gallery-track { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:clamp(10px,1.5vw,28px); width:calc(100% - 48px); max-width:1800px; margin:auto; align-items:center; }
.expedition-frame { margin:0; height:clamp(300px,40vw,620px); overflow:hidden; }



.expedition-frame picture, .expedition-frame img { display:block; width:100%; height:100%; }
.expedition-frame img { object-fit:cover; }
.expedition-gallery.is-active .expedition-frame { will-change:transform; }
.narrative-routes { padding-block:90px; }
.narrative-routes .mo-ph__head { display:grid; grid-template-columns:1fr auto; align-items:end; margin-bottom:40px; gap:12px 30px; }
.narrative-routes .mo-ph__head .eyebrow { grid-column:1/-1; }
.narrative-routes .mo-ph__ch { min-width:0; }
.narrative-routes .mo-ph__pic { margin-bottom:24px; }
.narrative-routes .mo-ph__ch h3 { font-size:clamp(1.25rem,2vw,1.7rem); line-height:1.2; }
@media(max-width:767px) {
 .expedition-logo { width:170px; height:64px; margin-bottom:20px; }
 .hero[data-narrative="1"] .hero-content { padding-top:24px; }
 .expedition-story .wrap { width:calc(100% - 36px); }
 .expedition-story h2 { font-size:clamp(2.5rem,9.8vw,4.5rem); }
 .expedition-story-bottom { grid-template-columns:1fr; gap:30px; }
 .expedition-trail { width:65%; height:100px; }
 .expedition-gallery { padding:54px 0 100px; }
 .expedition-gallery-track { grid-template-columns:1fr 1fr; width:calc(100% - 36px); gap:14px; }
 .expedition-frame, .expedition-frame:nth-child(4) { height:clamp(210px,65vw,400px); }
 .narrative-routes .mo-ph__head { grid-template-columns:1fr; }
 .narrative-routes .mo-ph__list { grid-template-columns:1fr; gap:40px; }
}
@media(max-height:500px) and (orientation:landscape) { .expedition-logo { width:140px; height:45px; margin-bottom:12px; } }
@media(prefers-reduced-motion:reduce) {
 .expedition-frame { transform:none!important; will-change:auto!important; }
}

/* Route thumbnails keep their intrinsic proportions instead of the HTML fallback height. */
.narrative-routes .mo-ph__pic img { display:block; height:auto; aspect-ratio:3/2; }
.hero[data-narrative="1"] .hero-scene-controls { background:#0a141be8; }

/* Static fallback and the underlying mobile composition. */
@media(max-width:1024px) {
 .expedition-gallery { padding:40px 0 56px; }
 .expedition-gallery-track { grid-template-columns:repeat(2,minmax(0,1fr)); align-items:stretch; width:calc(100% - 36px); gap:16px; }
 .expedition-gallery .expedition-frame { margin:0; height:auto; aspect-ratio:3/4; transform:none; }
 .expedition-frame picture { transform:none; }
 .expedition-frame img { transform:none; }
 .expedition-gallery.is-active .expedition-frame { will-change:auto; }
 .expedition-gallery.is-active .expedition-frame picture { will-change:transform; }
}
@media(prefers-reduced-motion:reduce) {
 .expedition-frame picture { transform:none; will-change:auto!important; }
}
html[data-motion="off"] .expedition-frame picture { transform:none; }

.expedition-gallery:not([data-expedition-gallery]) .expedition-frame picture { transform:none; }

/* GSAP mobile scene: a compact, aligned composition held within one screen. */
@media(max-width:1024px) and (prefers-reduced-motion:no-preference) {
 .expedition-gallery.is-cinematic { height:100svh; min-height:320px; padding:calc(var(--scene-header,68px) + 16px) 0 24px; box-sizing:border-box; display:flex; align-items:center; }
 .is-cinematic .expedition-gallery-track { height:100%; max-height:1000px; gap:12px; grid-template-rows:1fr 1fr; }
 .expedition-gallery.is-cinematic .expedition-frame { min-height:0; height:100%; aspect-ratio:auto; }
 .expedition-gallery.is-cinematic .expedition-frame picture { transform:none; }
 .expedition-gallery.is-cinematic.is-active .expedition-frame { will-change:transform; }
}

/* GSAP owns only the photographic scene; typography never uses a clipping mask. */
.uses-gsap-gallery .expedition-frame, .uses-gsap-gallery .expedition-frame picture { transform:none; }

/* Phones: bounded opposing columns, no pin or separated exit. The small viewport
   keeps the full composition within Safari's visible area when its bars expand. */
@media(max-width:1024px) and (prefers-reduced-motion:no-preference) {
 .expedition-gallery.is-mobile-flow { padding:36px 0; }
 .is-mobile-flow .expedition-gallery-track { gap:12px; }
 /* Reserve both rows before lazy images load: half of (viewport - margins - gap), at 3:4. */
 .expedition-gallery.is-mobile-flow .expedition-frame { min-height:0; aspect-ratio:auto; height:calc(66.6667vw - 32px); height:min(calc(66.6667vw - 32px),calc((100svh - var(--scene-header,68px) - 84px) / 2)); }
 .expedition-gallery.is-mobile-flow.is-active .expedition-frame { will-change:transform; }
}

.hero.uses-gsap-photo .hero-scene-slide { transition:none; }
.hero[data-hero-scene].uses-gsap-photo.is-scene-ready .hero-scene-slide.is-loaded .hero-image { animation:none; }
@media(prefers-reduced-motion:reduce) {
 .expedition-word { transform:none!important; opacity:1!important; }
}

@media (orientation: landscape) and (max-width: 1366px) and (pointer: coarse),
       (orientation: landscape) and (max-width: 1024px) and (max-height: 540px) {
    /* Allow the opposing columns to move without clipping the outer photographs. */
    .expedition-gallery { padding-block: 20px; --scene-header: 72px; }
    .expedition-gallery-track { padding-inline: env(safe-area-inset-left) env(safe-area-inset-right); box-sizing: border-box; }
    .expedition-gallery-track {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(6px, 1vw, 14px);
        align-items: center;
    }
    .expedition-gallery .expedition-frame,
    .expedition-gallery .expedition-frame picture,
    .expedition-gallery .expedition-frame img {
        height: auto;
        min-height: 0;
        aspect-ratio: auto;
        transform: none;
    }
    .expedition-gallery .expedition-frame {
        height: min(32vw, max(80px, calc(100svh - var(--scene-header, 72px) - 40px)));
    }
    .expedition-gallery .expedition-frame picture,
    .expedition-gallery .expedition-frame img { height: 100%; }
    .expedition-gallery .expedition-frame img { object-fit: contain; }
    .expedition-story::before { content: none; }
}

@media (orientation: landscape) and (max-width: 1024px) and (max-height: 540px) {
    .expedition-gallery { --scene-header: 52px; }
}
