/* Narrow-screen refinements; desktop compositions remain intact. */
.story-controls,.department-toggle{display:none}
.department-options{display:contents}
@media(max-width:700px){
 .formula-story .fs-quotes-grid{scrollbar-width:none}
 .formula-story .fs-quotes-grid::-webkit-scrollbar{display:none}
 .story-controls{display:flex;align-items:center;gap:14px;margin:16px 0 0;color:var(--brand-text)}
 .story-progress{height:2px;background:color-mix(in srgb,var(--brand) 22%,transparent);flex:1;overflow:hidden}
 .story-progress span{display:block;width:var(--story-progress,33.33%);height:100%;background:var(--brand);transition:width .15s linear}
 .story-count{font-size:12px;font-variant-numeric:tabular-nums;letter-spacing:.08em}
 .story-controls button{display:grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border:1px solid currentColor;border-radius:50%;background:transparent;color:inherit;padding:0}
 .story-controls button:disabled{opacity:.25}
 .story-controls svg{width:18px;height:18px}
 .fs-instalcenter .bs-hero-video{object-position:27% center!important}
}
@media(max-width:760px){
 .team-dock{left:16px!important;right:16px!important;bottom:calc(var(--mobile-cta-space,66px) + 12px)!important;width:auto!important;max-width:none!important;transform:none!important;padding:0!important;display:block!important;overflow:visible!important;background:#fff;box-shadow:0 8px 35px #122b501c}
 .department-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;min-height:52px;padding:12px 17px;border:0;background:#fff;color:#234585;font:inherit;font-size:14px;text-align:left}
 .department-toggle svg{flex:0 0 16px;width:16px;height:16px;transition:transform .25s}
 .department-toggle[aria-expanded=true] svg{transform:rotate(180deg)}
 .department-options{display:none;position:absolute;bottom:calc(100% + 8px);left:0;right:0;background:#fff;padding:8px;max-height:calc(100svh - 210px);overflow:auto;box-shadow:0 -8px 35px #122b501c;border:1px solid #2345851a}
 .team-dock.is-expanded .department-options{display:grid;grid-template-columns:1fr}
 .team-dock .department-options a{display:block;padding:12px 14px;white-space:normal;font-size:14px}
 .team-dock .department-options a[aria-current]{background:#234585;color:white}
 .ep-main .history-timeline.has-scroll-history{transform:none!important;opacity:1!important}
 .has-scroll-history .mobile-history{position:sticky;top:90px;height:var(--history-stage-height);padding-bottom:0}
 .has-scroll-history .mobile-history:before{bottom:0}
 .has-scroll-history .mobile-history-moment{position:absolute;left:25px;right:0;top:0;padding:0;opacity:0;visibility:hidden;transform:translateY(22px);transition:opacity .45s ease,transform .6s cubic-bezier(.22,1,.36,1),visibility .45s}
 .has-scroll-history .mobile-history-moment.is-current{opacity:1;visibility:visible;transform:none}
 .has-scroll-history .mobile-history-year{font-size:30px;margin-bottom:12px}
 .has-scroll-history .mobile-history-photo{aspect-ratio:auto;height:clamp(110px,24svh,230px)}
 .has-scroll-history .mobile-history-copy{padding:18px}
 .has-scroll-history .mobile-history-copy h3{font-size:25px;margin-bottom:10px}
 .has-scroll-history .mobile-history-copy p{font-size:14px;line-height:1.65}
}
@media(max-width:380px){.has-scroll-history .mobile-history-moment{left:21px}.has-scroll-history .mobile-history-copy{padding:15px}.has-scroll-history .mobile-history-copy h3{font-size:23px}}
@media(prefers-reduced-motion:reduce){.story-progress span{transition:none}}
@media(max-width:760px){.ep-main .has-scroll-history .mobile-history{position:sticky;top:90px;height:var(--history-stage-height);padding-bottom:0}}
@media(max-width:760px){body:has(.has-scroll-history){overflow-x:clip;overflow-y:visible}}
/* One composed frame fades out before the next appears: no doubled years. */
@media(max-width:760px){
 .ep-main .has-scroll-history .mobile-history{transition:opacity .42s cubic-bezier(.22,1,.36,1);opacity:1}
 .ep-main .has-scroll-history .mobile-history.is-changing-year{opacity:0;transition-duration:.18s}
 .has-scroll-history .mobile-history-moment{transform:none;transition:none}
 .has-scroll-history .mobile-history-card{min-height:calc(var(--history-stage-height) - 48px)}
}

@media(max-width:760px){.ep-main .has-scroll-history .mobile-history-year{font-size:30px;line-height:1.2;margin-bottom:12px}}
/* Keep the mobile collage scroll-driven, with a balanced non-overlapping composition. */
@media(max-width:700px) and (prefers-reduced-motion:no-preference){
 body.fs-instalcenter{overflow-x:clip;overflow-y:visible}
 .fs-instalcenter .bs-collage{height:260svh;padding:0}
 .fs-instalcenter .bs-collage-sticky{position:sticky;top:0;height:100svh;overflow:hidden;display:grid;place-items:center}
 .fs-instalcenter .bs-collage-board{width:100%;aspect-ratio:.8}
 .fs-instalcenter .bs-photo-1{left:25%;top:35%;width:50%;height:30%}
 .fs-instalcenter .bs-photo-2{left:3%;top:3%;width:29%;height:27%}
 .fs-instalcenter .bs-photo-3{left:36%;top:3%;width:28%;height:27%}
 .fs-instalcenter .bs-photo-4{left:68%;top:3%;width:29%;height:27%}
 .fs-instalcenter .bs-photo-5{left:3%;top:37%;width:18%;height:25%}
 .fs-instalcenter .bs-photo-6{left:79%;top:37%;width:18%;height:25%}
 .fs-instalcenter .bs-photo-7{left:3%;top:70%;width:45%;height:27%}
 .fs-instalcenter .bs-photo-8{left:52%;top:70%;width:45%;height:27%}
}
