/* Shared responsive behavior for both review versions. */
html:has(dialog[open]){overflow:hidden}
.menu{height:100dvh;max-height:100dvh;overflow-y:auto;overscroll-behavior:contain;padding-top:max(20px,env(safe-area-inset-top));padding-bottom:max(24px,env(safe-area-inset-bottom))}
.menu-close{min-width:48px;min-height:48px;flex-shrink:0}
.header nav a,.desktop-nav a{min-height:44px;display:flex;align-items:center}
.motion-toggle,.replay-intro,.directory-clear{min-height:44px}
.service-hero-wrap .hero-motion-controls button{min-height:44px}
.career-photo-frame{overflow:clip}
.directory-groups button{min-height:44px}
.person,.person summary>span,.person h3,.job>div{min-width:0;overflow-wrap:anywhere}
.person summary{min-height:44px}
.person .plus{flex-shrink:0}
.footer-grid a,.footer-columns a{overflow-wrap:anywhere}
.talk-button{max-width:100%}
.hero-service-menu{display:none}

/* Touch users can choose any service immediately, independent of the orbit. */
@media(max-width:900px),(pointer:coarse){
 .hero-service-menu{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%;max-width:560px;justify-self:center;text-align:left}
 .hero-service-menu>p{grid-column:1/-1;font-size:14px;color:#b5e9f9;margin:0 0 4px}
 .hero-service-menu a{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 12px;min-height:58px;border:1px solid #9cdff34d;border-radius:5px;background:#10236355;color:#fff;font-size:14px;line-height:1.35}
 .hero-service-menu a>span{flex:none;color:#80e0f5}
 .hero-service-menu a:focus-visible{outline:2px solid #8feaff;outline-offset:3px}
 .hero-service-menu a:active{background:#24549b}
 .service-hero-wrap .hero-motion-controls button{min-height:44px;font-size:14px}
 .horizontal-controls button{width:44px;height:44px;flex:none}
 .horizontal-toolbar{flex-wrap:wrap}
 .horizontal-controls{margin-left:auto}
 .horizontal-viewport{scroll-padding-inline:0;overscroll-behavior-x:contain}
 .footer-grid a,.footer-columns a{min-height:44px;display:flex;align-items:center}
 .footer-bottom{align-items:center;flex-wrap:wrap}
 .footer-bottom>a,.comparison-links a{display:inline-flex;align-items:center;min-height:44px}
}

@media(max-width:900px){
 :root{--header:76px}
 .header,.site-header{height:var(--header);padding-inline:max(20px,env(safe-area-inset-left));gap:16px}
 .header{grid-template-columns:44px minmax(0,1fr)}
 .header>nav,.desktop-nav{display:none}
 .header .brand,.site-header .header-brand{width:165px;max-width:calc(100vw - 100px)}
 .menu{padding-inline:max(20px,env(safe-area-inset-left))}
 .menu nav{gap:8px;margin:28px 0}
 .menu nav a{font-size:clamp(27px,6vw,42px);line-height:1.2;min-height:44px;padding-block:6px}
 .menu-head{gap:16px}
 .menu .brand{max-width:calc(100% - 64px)}
 .directory-controls{grid-template-columns:minmax(0,1fr)}
 .directory-clear{justify-self:start;padding-block:10px}
 .chapter-contact #contact-form{min-width:0}
 .time-stops a,.story-chapters a,.year-nav a{min-height:44px;display:flex;align-items:center;justify-content:center}
}

@media(max-width:380px){
 .hero-service-menu{gap:8px}
 .hero-service-menu a{font-size:13px;padding:12px 10px}
 .horizontal-toolbar h2{font-size:25px}
 .horizontal-controls{gap:10px}
 .people-grid,.executives .people-grid,.team .people-grid{grid-template-columns:minmax(0,1fr)}
 .people-grid .person-image{max-height:420px;object-fit:cover}
 .person summary,.person h3{font-size:22px}
 .directory-heading{flex-wrap:wrap}
 .directory-heading h2{max-width:none}
 .chapter-contact #contact-form{padding:24px 20px}
 .time-instrument{grid-template-columns:48px minmax(0,1fr);gap:6px 8px;padding-inline:16px}
 .time-dial{width:48px}
 .time-stops{grid-template-columns:repeat(3,minmax(0,1fr))}
}

@media(max-height:500px){
 .menu nav{margin:20px 0;gap:4px}
 .menu nav a{font-size:28px;min-height:44px}
}

@media(hover:none){.people-moment .candid-team-image{filter:none}}

/* Keep the text and artwork in one shared row; phones get a full-width scene. */
@media(max-width:640px){
 .service-hero-wrap .hero-text{display:contents}
 .service-hero-wrap .hero-text .hero-bottom{margin-top:0}
 .service-hero-wrap .hero.service-hub-hero,body.service-scroll-enabled .service-hero-wrap .hero.service-hub-hero{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:20px;padding:24px max(20px,env(safe-area-inset-left)) 32px;min-height:0}
 .service-hero-wrap .hero-copy{grid-column:1;grid-row:1;text-align:center;align-self:center}
 .service-hero-wrap h1{font-size:clamp(28px,6.8vw,48px);max-width:640px;margin:auto;line-height:1.08}
 .service-hero-wrap h1 br{display:none}
 .service-hub-kicker{font-size:14px;margin-bottom:18px}
 .service-hero-wrap .hero-copy>.talk-button{margin-top:20px;min-height:50px;font-size:16px}
 .service-hero-wrap .logo-stage-track{height:clamp(330px,100vw,510px);min-height:0;grid-column:1;grid-row:2;width:100%;max-width:560px;align-self:stretch;margin:0 0 28px}
 .service-hero-wrap .logo-stage-track .logo-stage{height:100%;max-height:none}
 .service-hero-wrap .hero-bottom{grid-column:1;grid-row:4;max-width:560px;justify-self:center;display:flex;flex-direction:column;align-items:stretch;gap:16px;padding-top:24px;border-top:1px solid #ffffff33}
 .service-hero-wrap .hero-bottom>p{font-size:16px;line-height:1.55;max-width:none}
 .service-hero-wrap .hero-meta{width:100%;display:block}
 .service-hero-wrap .hero-motion-controls{justify-content:center;gap:8px 22px}
 .service-hub-all{font-size:12px}
 .service-hub[data-emblems=webgl] .hero-service-label{font-size:14px}
 .service-hero-wrap .hero h1 .line{overflow-wrap:normal}
}
