/* Mobile layout, independent of desktop photographic framing. */
@media(max-width:650px){
 html{scroll-padding-top:108px}
 body{font-size:16px}
 .header,.header.is-compact{padding:8px 20px 4px;gap:0 12px;display:grid;grid-template-columns:1fr auto}
 .header .brand,.header.is-compact .brand{grid-column:1;grid-row:1;width:136px;height:48px}
 .header .brand .logo-full{display:none}
 .header .brand .logo-compact,.header.is-compact .brand .logo-compact{width:136px;height:40px;opacity:1;transform:translateY(-50%)}
 .header .header-social,.header.is-compact .header-social{grid-column:2;grid-row:1;display:flex;gap:6px;padding:0;justify-content:flex-end;flex:none}
 .header-social a{display:grid;place-items:center;min-width:38px;min-height:44px}
 .header-social .social-label>span{display:none}
 .header-social .social-icon{width:22px;height:22px;flex-basis:22px}
 .header nav,.header.is-compact nav{grid-column:1/-1;grid-row:2;order:initial;display:flex;justify-content:space-between;width:100%;gap:8px;font-size:14px;padding:0}
 .header nav a{display:flex;align-items:center;min-height:40px}
 .section{padding:48px 22px;scroll-margin-top:8px}
 h2{font-size:38px}
 .hero{padding:0 22px 34px;min-height:0}
 .hero-art{height:clamp(260px,76vw,390px);aspect-ratio:auto;background:#031326}
 .hero-art .hero-slide{object-fit:cover;object-position:center 28%}
 .hero-art:after{height:95px;background:linear-gradient(to top,#031326,rgba(3,19,38,.64) 38%,transparent)}
 .hero-copy{padding-top:clamp(240px,70vw,360px);max-width:none}
 .hero h1{white-space:normal;font-size:clamp(30px,8.6vw,54px);line-height:1.1;letter-spacing:-.035em;-webkit-text-stroke:.7px;margin-bottom:16px;max-width:100%}
 .hero .intro{font-size:14px;line-height:1.7;max-width:320px;margin-bottom:0}
 .hero .actions{display:flex;flex-direction:column;align-items:flex-start;gap:16px;margin-top:22px}
 .hero .button{min-height:50px;padding:14px 22px;font-size:14px;gap:12px}
 .hero .text-link{display:inline-flex;align-items:center;min-height:36px;font-size:14px}
 .hero-slideshow-controls{top:calc(clamp(260px,76vw,390px) - 56px);gap:4px}
 .hero-slideshow-controls .slide-dot{width:30px;height:30px}
 .about{padding:290px 22px 44px;min-height:0;display:block}
 .about:before{inset:0 0 auto;width:100%;height:310px;background-image:url('assets/team-mascot.jpg');background-size:cover;background-position:center 40%;transform:none;mask-image:none}
 .about:after{inset:0 0 auto;height:320px;background:linear-gradient(to bottom,transparent 55%,rgba(245,243,236,.5) 78%,#f5f3ec 98%)}
 .about .about-copy{margin-left:0;max-width:none;text-align:left}
 .about .about-copy h2{margin-bottom:20px}
 .about .about-copy p{font-size:16px;line-height:1.75;max-width:none;margin:0 0 18px}
 .about .about-copy .lead{font-size:18px;line-height:1.6;font-weight:600}
 .about .social-stats{justify-content:flex-start;gap:32px;margin-top:26px}
 .stat-circle{width:108px;height:108px;font-size:32px}.stat-platform{font-size:15px}
 .section-heading{margin-bottom:28px}
 .section-heading>.text-link{margin-top:14px;font-size:14px}
 .offer-grid article,.offer-grid article:first-child{padding:24px 0}
 .offer-grid h3{font-size:22px;margin-bottom:12px}.offer-grid p{font-size:15px;line-height:1.7}
 .offer-grid a{font-size:14px;display:inline-flex;align-items:center;min-height:40px}
 .album-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
 .album{min-width:0}
 .album .album-heading{flex-direction:column;justify-content:flex-start;text-align:center;gap:10px;min-height:106px;margin-bottom:14px;font-size:14px;line-height:1.3}
 .album .album-heading .team-site-link{display:flex;flex-direction:column;align-items:center;gap:10px}
 .album .album-heading .team-logo{width:48px;height:48px;flex:0 0 48px}
 .album-cover .album-open{aspect-ratio:3/4;border-radius:9px}
 .album-cover .album-open>img{object-position:center 25%}
 .album-cover-caption{left:8px;right:8px;bottom:9px;font-size:11px;line-height:1.3;opacity:1;transform:none}
 .album-open:after{opacity:1;background:linear-gradient(to top,rgba(0,9,24,.8),transparent 65%)}
 .album-open[aria-expanded=true]{box-shadow:0 0 0 2px #d7c49b}
 .album-panel .basket-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:24px}
 .basket-photo-grid>a{aspect-ratio:1;min-width:0}
 .basket-photo-grid>a>img{width:100%;height:100%;object-fit:cover}
 .contact-grid{display:grid;grid-template-columns:1fr;gap:32px}
 .contact h2{font-size:36px;max-width:340px}
 .contact-grid p:not(.eyebrow){font-size:16px;line-height:1.7}
 .contact-direct{gap:10px;margin-top:22px}
 .contact-direct>a{font-size:18px;min-height:44px;gap:12px}
 .contact-links>a:has(.social-label){font-size:17px;padding:18px 0;min-height:58px}
 .company-footer{padding:26px 22px;gap:16px;font-size:12px;overflow-wrap:anywhere}
 footer{padding:22px;gap:10px;font-size:12px}
 .photo-viewer{padding:60px 10px 78px;height:100dvh;touch-action:pan-y}
 .viewer-frame img{max-height:calc(100% - 32px);border-radius:8px}
 .photo-viewer button{width:48px;height:48px}
 .viewer-close{right:14px;top:10px}
 .photo-viewer .viewer-prev,.photo-viewer .viewer-next{bottom:16px}
}
@media(min-width:651px) and (max-width:1000px){
 .header{padding-left:4%;padding-right:4%}.header-social{gap:12px}
 .about{padding:52px 5%}.about .about-copy{margin-left:46%}.about .about-copy .lead{font-size:20px}.about .about-copy p{font-size:16px}
 .album-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
 .album .album-heading{font-size:18px;gap:10px}.album .album-heading .team-logo{width:54px;height:54px;flex-basis:54px}
}

.hero-art{touch-action:pan-y pinch-zoom}.hero-art img{-webkit-user-drag:none;user-select:none}

/* Keep the top edge opaque in iOS in-app browsers and their safe areas. */
@media(max-width:650px){
 html,body{background:#031326}
 html{scroll-padding-top:calc(var(--mobile-header-height,101px) + 12px)}
 body{padding-top:var(--mobile-header-height,calc(101px + env(safe-area-inset-top,0px)))}
 .header,.header.is-compact{position:fixed;inset:0 0 auto;width:100%;padding-top:calc(8px + env(safe-area-inset-top,0px));padding-left:max(20px,env(safe-area-inset-left,0px));padding-right:max(20px,env(safe-area-inset-right,0px));background:#031326;isolation:isolate}
 .header:before{content:'';position:absolute;bottom:100%;left:0;right:0;height:max(120px,env(safe-area-inset-top,0px));background:#031326;pointer-events:none}
 .photo-viewer{padding-top:calc(60px + env(safe-area-inset-top,0px));padding-bottom:calc(78px + env(safe-area-inset-bottom,0px))}
 .viewer-close{top:calc(10px + env(safe-area-inset-top,0px))}
 .photo-viewer .viewer-prev,.photo-viewer .viewer-next{bottom:calc(16px + env(safe-area-inset-bottom,0px))}
}

/* In-app browsers may shift the visual viewport while collapsing their toolbar. */
@media(max-width:650px){
 html,body{overscroll-behavior-y:none}
 .header,.header.is-compact{top:var(--header-viewport-offset,0px)}
 .header:before{height:max(240px,env(safe-area-inset-top,0px))}
}
