/* Desktop: aligned content edges and readable, bounded layouts. */
:root{--page-width:1440px;--gutter:clamp(24px,4.8vw,69px)}
html{scroll-padding-top:112px}
.header{padding-inline:max(var(--gutter),calc((100% - var(--page-width))/2 + var(--gutter)))}
.header nav a{display:flex;align-items:center;min-height:44px}
.header nav a:hover:after{bottom:3px}
.hero{max-width:var(--page-width);margin-inline:auto;grid-template-columns:minmax(0,43fr) minmax(0,57fr)}
.hero-copy{padding-left:var(--gutter);padding-right:28px}
.hero h1{font-size:clamp(44px,4.5vw,65px)}
.section{padding-inline:var(--gutter)}
.about,.project-grid,.route-grid{min-width:0}
.about>* ,.project-grid>* ,.route-grid>*{min-width:0}
.actions{flex-wrap:wrap;gap:16px 24px}
.route-card{display:flex;flex-direction:column;align-items:flex-start}
.route-photo{height:auto;aspect-ratio:1.48}
.route-card>.text-link{margin-top:auto;min-height:44px;align-items:center}
.route-meta{width:100%;gap:12px;flex-wrap:wrap}
.contact,footer{padding-inline:max(var(--gutter),calc((100% - var(--page-width))/2 + var(--gutter)))}
.solid,.outline,.light,.filters button{min-height:44px}
footer a:not(.brand){min-height:44px;display:inline-flex;align-items:center}
dialog{max-height:88dvh;overscroll-behavior:contain;scrollbar-gutter:stable}
.close{position:sticky;top:12px;float:right;margin:12px 12px -56px 0;width:44px;height:44px;box-shadow:0 2px 12px #15251b20}
.detail-body{overflow-wrap:anywhere}
.detail-image{object-position:center 30%}
/* Medium screens retain two-column brand sections, with room for text. */
@media(min-width:761px) and (max-width:1100px){
 .header{height:80px;gap:22px}.header nav{gap:20px}.header-contact{padding:10px 16px;gap:16px}
 .hero,.hero-image{min-height:540px}.hero-copy{padding-top:54px}.hero h1{font-size:clamp(37px,4.6vw,50px)}
 .hero-sub{font-size:16px}.hero-note{margin-top:30px}
 .about{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr)}.about-copy{padding-right:25px}
 .about-image{height:370px}.project{height:330px}.project>div{left:24px;right:24px;bottom:24px}
 .route-grid{gap:20px}.route-card h3{font-size:24px}.route-card p{font-size:13px}
 footer{gap:18px}
}
/* Phone: compact opening, full-width photography, generous touch targets. */
@media(max-width:760px){
 :root{--gutter:clamp(20px,5.4vw,34px)}
 html{scroll-padding-top:88px}
 .header{height:72px;padding-inline:var(--gutter);gap:12px}
 .brand{width:86px}.brand img{height:32px}
 .header-contact{margin-left:auto;font-size:12px;gap:12px;padding:8px 12px;white-space:nowrap}
 .menu{display:flex;align-items:center;justify-content:center;flex-shrink:0;width:44px;height:44px;padding:0;background:none;font-size:26px}
 .header nav{display:none;position:absolute;inset:72px 0 auto;background:var(--paper);padding:16px var(--gutter) 24px;border-bottom:1px solid var(--line);box-shadow:0 10px 16px #1a302110;margin:0;gap:8px 20px}
 .header nav.open{display:grid;grid-template-columns:1fr 1fr}
 .header nav a{min-height:48px;padding:6px 8px;font-size:14px;border-bottom:1px solid var(--line)}
 .hero{display:flex;flex-direction:column;min-height:0}
 .hero-copy{padding:34px var(--gutter) 30px}
 .hero .eyebrow{font-size:9px;letter-spacing:2px}
 .hero h1{font-size:clamp(38px,10.7vw,58px);line-height:1.22;margin:20px 0 16px;letter-spacing:0}
 .hero-sub{font-size:16px}.hero-note{display:none}
 .actions{display:grid;grid-template-columns:auto auto;justify-content:start;align-items:center;gap:16px;margin-top:24px}
 .actions .solid{padding:12px 16px;gap:18px;font-size:13px}.actions .text-link{min-height:44px;align-items:center;gap:12px;font-size:12px}
 .hero-image{min-height:0;height:clamp(300px,84vw,460px);width:100%}
 .hero-image img{object-position:center 25%}
 .hero-image figcaption{right:var(--gutter);bottom:48px}.hero-image figcaption span{font-size:22px;letter-spacing:3px}
 .image-index{left:var(--gutter);bottom:18px;font-size:9px}
 .section{padding:48px var(--gutter) 0}
 h2{font-size:clamp(25px,6.4vw,34px);line-height:1.5}
 .section-label{font-size:12px;margin-bottom:14px}
 .about{display:flex;flex-direction:column;align-items:stretch;gap:26px}.about-copy{padding:0}
 .body-copy{font-size:15px;line-height:1.95;margin-top:18px}.secondary{max-width:none;font-size:14px}
 .about .text-link{margin-top:20px;min-height:44px;align-items:center}
 .about-image{height:auto;aspect-ratio:1.35}.about-image figcaption{font-size:18px;padding:38px 18px 16px}
 .section-top{display:block;margin-bottom:24px}.section-description{margin-top:12px;font-size:13px}
 .project-grid{grid-template-columns:1fr;gap:18px}.project{height:auto;aspect-ratio:1.14}
 .project>img{position:absolute;inset:0}.project>div{left:22px;right:22px;bottom:24px}
 .project h3{font-size:30px}.project p:not(.eyebrow){font-size:13px;line-height:1.8}.project-link{font-size:13px}
 .filters{flex-wrap:wrap;gap:6px;margin-bottom:24px;padding-bottom:16px}.filters button{font-size:13px;padding:8px 14px}
 #route-count{font-size:11px;white-space:nowrap}
 .route-grid{grid-template-columns:1fr;gap:28px}.route-photo{height:auto;aspect-ratio:1.4}
 .route-meta{font-size:12px;letter-spacing:0;margin-top:16px}.route-card h3{font-size:28px}
 .route-card p{max-width:none;font-size:14px;line-height:1.9;margin:8px 0 12px}
 .route-card .text-link{font-size:14px;min-height:44px;justify-content:space-between;width:100%;border:0}
 .duration{font-size:11px;padding:4px 10px}
 .contact{display:block;margin-top:48px;padding:36px var(--gutter)}.contact h2{font-size:clamp(26px,7vw,34px)}
 .contact button{margin-top:24px;width:100%;justify-content:space-between}.contact p:last-child{font-size:14px}
 footer{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 14px;padding:26px var(--gutter) max(26px,env(safe-area-inset-bottom));font-size:12px}
 footer .brand{grid-column:1}footer p{grid-column:2 / 4;width:auto;margin:0;font-size:11px;text-align:right;align-self:center}
 footer small{grid-column:1 / -1;width:auto;margin:8px 0 0;font-size:11px}
 dialog{width:100%;max-width:100%;max-height:92dvh;margin:auto 0 0;border-radius:16px 16px 0 0;padding-bottom:env(safe-area-inset-bottom)}
 .detail-image{height:230px}.detail-body{padding:24px var(--gutter) 30px}.detail-body h2{font-size:29px}.detail-body h3{font-size:23px}
 .detail-body p,.detail-body li{font-size:14px;line-height:1.9}.detail-body .detail-note{font-size:12px}.detail-body .solid{width:100%}
}
@media(max-width:360px){.header{gap:6px}.header-contact{padding:8px 10px;gap:8px}.brand{width:76px}.actions{gap:12px}.actions .solid{padding-inline:12px;gap:10px}.actions .text-link{gap:8px}#route-count{width:100%;margin-left:0}.hero h1{font-size:37px}}
@media(hover:none){.project:hover>img,.route-photo:hover img{transform:none}}
@media(max-height:500px) and (orientation:landscape){dialog{max-height:96dvh}.detail-image{height:160px}}
