/* On mobile, the second section rises over the pinned opening scene. */
@media (max-width:700px) and (prefers-reduced-motion:no-preference){
  .hero-enhanced .hero-story{height:440svh}
  .hero-enhanced .journey{margin-top:-100svh;position:relative;z-index:2}
}
/* Keep the opening and its overlapping successor fitted to the visible mobile viewport. */
@media (max-width:700px){
  .hero-enhanced .hero-stage{height:100vh;height:100svh}
  .journey-ready .journey-screen{height:100vh;height:100svh;min-height:100vh;min-height:100svh}
  .hero-enhanced .journey{margin-top:-100vh;margin-top:-100svh}
  @supports (height:100dvh){
    .hero-enhanced .hero-stage{height:100dvh}
    .journey-ready .journey-screen{height:100dvh;min-height:100dvh}
    .hero-enhanced .journey{margin-top:-100dvh}
  }
}
/* On mobile, keep each outgoing scene visible while the next rises from below. */
.mobile-scene{display:contents}
@media(max-width:700px) and (prefers-reduced-motion:no-preference){
  .mobile-scenes-ready .journey-ready-placeholder{display:none}
  .mobile-scenes-ready.journey-ready .journey{height:calc(350svh + 100vh);height:calc(350svh + 100svh)}
  .mobile-scenes-ready .mobile-scene{display:block;position:relative;margin-top:-100vh;margin-top:-100svh;padding-bottom:100vh;padding-bottom:100svh}
  .mobile-scenes-ready .mobile-scene:last-child{padding-bottom:0}
  .mobile-scenes-ready .mobile-scene>.panel{position:sticky;top:var(--scene-sticky-top,0px);min-height:100vh;min-height:100svh;clip-path:inset(0 0 var(--scene-entry-clip,0px) 0)}
  @supports(height:100dvh){
    .mobile-scenes-ready.journey-ready .journey{height:calc(350svh + 100dvh)}
    .mobile-scenes-ready .mobile-scene{margin-top:-100dvh;padding-bottom:100dvh}
    .mobile-scenes-ready .mobile-scene:last-child{padding-bottom:0}
    .mobile-scenes-ready .mobile-scene>.panel{min-height:100dvh}
  }
}
@media(max-width:700px) and (prefers-reduced-motion:no-preference){
  .mobile-scenes-ready .journey{background:transparent}
  .mobile-scenes-ready .journey-screen{background:#15131b}
  .mobile-scenes-ready .mobile-scene{z-index:3;padding-bottom:0}
  .mobile-scenes-ready .mobile-scene:not(:last-child)::after{content:"";display:block;height:100vh;height:100svh}
  @supports(height:100dvh){
    .mobile-scenes-ready .mobile-scene{padding-bottom:0}
    .mobile-scenes-ready .mobile-scene:not(:last-child)::after{height:100dvh}
  }
}
@media(max-width:700px) and (prefers-reduced-motion:no-preference){
  .mobile-scenes-ready .mobile-scene,.mobile-scenes-ready .journey{pointer-events:none}
  .mobile-scenes-ready .mobile-scene>.panel,.mobile-scenes-ready .journey-screen{pointer-events:auto}
}
/* In a short landscape viewport, keep the complete step text readable. */
@media(max-width:700px) and (min-width:450px) and (max-height:520px) and (prefers-reduced-motion:no-preference){
  .mobile-scenes-ready .journey-screen{padding:70px 4% 10px;grid-template-columns:25% minmax(0,1fr);gap:5%}
  .mobile-scenes-ready .journey-photo{display:none}
  .mobile-scenes-ready .journey-panel{display:flex;align-items:center}
  .mobile-scenes-ready .journey-panel-copy{padding:0}
  .mobile-scenes-ready .journey-kicker{margin:0 0 5px;font-size:9px}
  .mobile-scenes-ready .journey-panel h2{font-size:20px;line-height:1.15;margin:0 0 7px}
  .mobile-scenes-ready .journey-desc{font-size:12px;line-height:1.4;margin:0}
  .mobile-scenes-ready .journey-desc br{display:none}
  .mobile-scenes-ready .journey-class-list,.mobile-scenes-ready .journey-detail{margin-top:6px}
  .mobile-scenes-ready .journey-class-list div,.mobile-scenes-ready .journey-detail p{font-size:11px;line-height:1.3;padding:4px 0}
  .mobile-scenes-ready .journey-note{font-size:9px;margin-top:6px}
  .mobile-scenes-ready .journey-nav-title{margin-bottom:8px}
  .mobile-scenes-ready .journey-nav a{min-height:45px}
  .mobile-scenes-ready .journey-nav a span{width:28px;height:28px;font-size:10px}
  .mobile-scenes-ready .journey-nav a strong{font-size:12px;line-height:28px}
  .mobile-scenes-ready .journey-nav li:not(:last-child):after{top:31px;left:13px}
  .mobile-scenes-ready .journey-review-slide blockquote{font-size:12px;line-height:1.4}
  .mobile-scenes-ready .journey-review-slide .journey-credit{margin-top:5px}
  .mobile-scenes-ready .journey-review-controls{margin-top:6px}
  .mobile-scenes-ready .journey-more{margin-top:5px}
}
/* Keep the complete step and review controls visible on very short portrait screens. */
@media(max-width:449px) and (max-height:520px) and (prefers-reduced-motion:no-preference){
  .mobile-scenes-ready .journey-screen{padding-top:72px;padding-bottom:12px}
  .mobile-scenes-ready .journey-photo{display:none}
  .mobile-scenes-ready .journey-panel{display:flex;align-items:center}
}
@media(max-width:449px) and (max-height:410px) and (prefers-reduced-motion:no-preference){
  .mobile-scenes-ready .journey-panel{display:block;overflow-y:auto;padding:8px 0}
}
