/* Hamburger mobile navigation — drawer is built from .nav-pill by mobile-nav.js */
.nav-burger{display:none;}
.mnav{display:none;}
@media (max-width:980px){
  .nav-pill{display:none;}
  .nav-inner>.btn{margin-left:auto;margin-right:12px;}
  .nav-burger{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:44px;height:44px;margin-right:-8px;padding:0;background:transparent;border:0;cursor:pointer;position:relative;z-index:1002;-webkit-tap-highlight-color:transparent;}
  .nav-burger span{display:block;width:24px;height:2px;border-radius:2px;background:#fff;transition:transform .3s ease,opacity .2s ease;}
  .nav-burger.open span:nth-child(1){transform:translateY(7px) rotate(45deg);}
  .nav-burger.open span:nth-child(2){opacity:0;}
  .nav-burger.open span:nth-child(3){transform:translateY(-7px) rotate(-45deg);}
  .nav-burger:focus-visible{outline:2px solid var(--gold,#c2a05f);outline-offset:2px;border-radius:8px;}

  .mnav{display:block;position:fixed;inset:0;overflow:hidden;z-index:1001;visibility:hidden;pointer-events:none;transition:visibility 0s .35s;}
  .mnav.open{visibility:visible;pointer-events:auto;transition:none;}
  .mnav-scrim{position:absolute;inset:0;background:rgba(8,26,46,.55);opacity:0;transition:opacity .3s ease;}
  .mnav.open .mnav-scrim{opacity:1;}
  .mnav-panel{position:absolute;top:0;right:0;bottom:0;width:min(86vw,360px);background:var(--navy-deep,#081a2e);color:#fff;padding:96px 28px 32px;overflow-y:auto;transform:translateX(100%);transition:transform .35s cubic-bezier(.2,.7,.2,1);display:flex;flex-direction:column;box-shadow:-24px 0 60px rgba(0,0,0,.35);}
  .mnav.open .mnav-panel{transform:none;}
  .mnav-panel a{color:#fff;text-decoration:none;}
  .mnav-row{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(255,255,255,.12);}
  .mnav-row>a{flex:1;padding:17px 0;font-size:18px;font-weight:500;}
  .mnav-row>a.active{color:var(--gold,#c2a05f);}
  .mnav-exp{width:44px;height:44px;margin-right:-10px;background:transparent;border:0;cursor:pointer;position:relative;}
  .mnav-exp::before{content:"";position:absolute;left:50%;top:50%;width:8px;height:8px;margin:-6px 0 0 -4px;border-right:2px solid rgba(255,255,255,.75);border-bottom:2px solid rgba(255,255,255,.75);transform:rotate(45deg);transition:transform .25s;}
  .mnav-item.open .mnav-exp::before{transform:rotate(-135deg);margin-top:-2px;}
  .mnav-sub{max-height:0;overflow:hidden;transition:max-height .3s ease;border-bottom:1px solid rgba(255,255,255,.12);}
  .mnav-item:not(.open) .mnav-sub{border-bottom-color:transparent;}
  .mnav-sub a{display:block;padding:11px 0 11px 16px;font-size:15px;color:rgba(255,255,255,.72);}
  .mnav-sub a:last-child{margin-bottom:10px;}
  .mnav-sub a:hover,.mnav-sub a:active{color:var(--gold,#c2a05f);}
  .mnav-foot{margin-top:auto;padding-top:28px;display:flex;flex-direction:column;gap:18px;}
  .mnav-foot .btn{text-align:center;display:block;}
  .mnav-lang{display:block;font-size:14px;color:rgba(255,255,255,.7);margin-bottom:14px;}
  .mnav-lang b{color:#fff;}
  body.mnav-lock{overflow:hidden;}
  body.mnav-lock header.nav{z-index:1002;}
  /* drawer open: the header sits above the drawer for the close button, so hide the logo that would straddle the drawer edge */
  header.nav .brand{transition:opacity .2s ease;}
  body.mnav-lock header.nav .brand{opacity:0;pointer-events:none;}
}
@media (prefers-reduced-motion: reduce){
  .mnav-panel,.mnav-scrim,.nav-burger span,.mnav-sub{transition:none;}
}

/* footer stacks on small screens so the page never scrolls sideways */
@media (max-width:560px){
  /* brand block on top, then the two link columns side by side */
  .foot-grid{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:36px 20px;padding-bottom:36px;}
  .foot-grid>div{grid-column:1/-1;}
  footer .about{max-width:none;margin-top:16px;}
  .foot-col h4{margin-bottom:14px;}
  .foot-col a,.foot-col p{font-size:14.5px;line-height:1.35;margin-bottom:14px;overflow-wrap:break-word;}
  .foot-bar .wrap{flex-wrap:wrap;gap:8px 20px;}
}

/* logo 40% smaller on mobile (46px -> 28px) */
@media (max-width:560px){
  .nav-inner>.btn{display:none;}
  .brand img.logo{height:28px;}
}

/* ==========================================================================
   Mobile Design System V1 — shared phone defaults (390px baseline).
   Phone only (<=560px). Desktop and tablet are untouched.
   Hero, project galleries and other special layouts keep their own rules.
   ========================================================================== */
@media (max-width:560px){
  /* page padding: 20px each side */
  .wrap,.nav-inner{width:calc(100% - 40px);}

  /* section padding: 64px (sections that sit flush with their neighbour keep their own) */
  section.arch,section.article,section.benefits,section.capital,section.cases,section.ctl,section.events,
  section.facts,section.news,section.partners,section.past,section.reqs,section.results,section.spon,
  section.sunlight,section.timeline,section.uscis,section.what,section.faq,section.projects,
  body>section:not([class]){padding-top:64px;padding-bottom:64px;}
  section.retail{padding-top:64px;}
  .closing .wrap,.route .wrap{padding-top:64px;padding-bottom:64px;}

  /* headings: H1 36/1.15 (home hero keeps its own 46px), H2 30/1.2, article sub-heads stay small */
  h1{font-size:36px!important;line-height:1.15!important;}
  .hero h1{font-size:46px!important;line-height:1.02!important;}
  h2{font-size:30px!important;line-height:1.2!important;}
  .sec h2{font-size:22px!important;line-height:1.3!important;}

  /* body copy 16/1.6 (captions, notes and other classed small text are left alone) */
  section p:not([class]),.lede,.hero-lede,.hero .sub{font-size:16px;line-height:1.6;}

  /* buttons: 48px tall */
  .btn{min-height:48px;}

  /* card grids: 16px gap */
  .pgrid,.cgrid,.sgrid,.ggrid{gap:16px!important;}
}
