@media(max-width:1240px){
  :root{--shell:min(calc(100% - 44px),1400px)}
  .header-rail{padding-inline:22px;gap:18px}
  .site-nav{gap:16px}
  .site-nav a{font-size:.69rem}
  .brand small{display:none}
  .hero-grid,.page-hero-grid,.detail-hero-grid,.company-hero-grid,.contact-hero-grid,.guide-hero-grid{gap:55px}
  .field-card{min-height:420px}
  .article-shell{grid-template-columns:240px minmax(0,800px);gap:50px}
  .prep-grid{grid-template-columns:repeat(3,1fr)}
}
@media(max-width:1020px){
  body{padding-bottom:58px}
  .site-header{position:sticky;top:0}
  .header-rail{min-height:72px;grid-template-columns:auto auto 1fr}
  .nav-toggle{display:flex;align-items:center;gap:7px;justify-self:end;grid-column:3;font-size:.7rem}
  .header-cta{grid-column:2;grid-row:1}
  .site-nav{position:absolute;left:0;right:0;top:72px;background:var(--white);border-bottom:1px solid var(--line);box-shadow:var(--shadow);display:none;padding:20px 22px;grid-template-columns:1fr 1fr}
  .site-nav.is-open{display:grid}
  .site-nav a{padding:12px;border-bottom:1px solid var(--line)}
  .home-hero{background:var(--paper)}
  .hero-grid{grid-template-columns:1fr;padding-top:20px}
  .hero-copy{padding-bottom:20px}
  .hero-site-photo{height:600px;width:85%;margin-left:auto}
  .cutaway-shell{grid-template-columns:1fr}
  .entry-tabs{grid-template-columns:repeat(5,1fr);padding:0}
  .entry-tabs button{border-left:0;border-bottom:4px solid transparent;padding:15px 10px;grid-template-columns:1fr}
  .entry-tabs button[aria-selected=true]{border-left-color:transparent;border-bottom-color:var(--soil-2)}
  .pathway-grid,.symptom-grid,.method-grid,.city-program-grid,.scope-grid,.decision-grid,.boundary-grid,.faq-grid,.proof-gate>.shell,.contact-route>.shell{grid-template-columns:1fr;gap:50px}
  .symptom-intro{position:static}
  .field-grid,.system-track{grid-template-columns:1fr 1fr}
  .method-visual{height:560px;width:85%}
  .page-hero-grid,.detail-hero-grid,.company-hero-grid,.contact-hero-grid,.guide-hero-grid{grid-template-columns:1fr}
  .page-hero-grid>div:last-child,.company-hero-grid>div:last-child,.contact-hero-grid>div:last-child,.guide-hero-grid>div:last-child{height:480px;width:80%;margin-left:auto}
  .detail-photo{height:520px;width:80%;margin-left:auto}
  .process-terrace{grid-template-columns:1fr 1fr}
  .process-terrace li:nth-child(n){margin-top:0}
  .prep-grid{grid-template-columns:1fr 1fr}
  .guide-grid{grid-template-columns:1fr 1fr}
  .article-shell{grid-template-columns:1fr;width:var(--narrow)}
  .article-sidebar{position:static;max-height:none}
  .article-sidebar nav{grid-template-columns:1fr 1fr}
  .footer-grid{grid-template-columns:1.3fr 1fr 1fr}
  .footer-grid>div:last-child{grid-column:2}
  .mobile-actions{position:fixed;left:0;right:0;bottom:0;display:grid;grid-template-columns:1.2fr .8fr;height:58px;z-index:60;box-shadow:0 -8px 28px rgba(26,42,40,.18)}
  .mobile-actions a{display:grid;place-items:center;background:var(--lake);color:white;font-size:.72rem;font-weight:800}
  .mobile-actions a:last-child{background:var(--deep)}
}
@media(max-width:720px){
  :root{--shell:calc(100% - 30px)}
  body{font-size:15px}
  .section-pad{padding:76px 0}
  .header-rail{padding-inline:14px}
  .brand-mark{width:39px;height:39px}
  .brand strong{font-size:1.2rem}
  .header-cta{display:none}
  .header-rail{grid-template-columns:auto 1fr}
  .nav-toggle{grid-column:2}
  .site-nav{grid-template-columns:1fr}
  .home-hero{padding-top:55px}
  .hero-grid{display:flex;flex-direction:column}
  .hero-copy h1{font-size:clamp(2.8rem,12vw,4.2rem)}
  .hero-facts{grid-template-columns:1fr;gap:20px}
  .hero-site-photo{width:calc(100% - 18px);height:480px;min-height:0}
  .survey-tag{left:-14px}
  .grade-line{justify-content:flex-start;overflow:hidden;padding-inline:15px;white-space:nowrap}
  .entry-section{padding:75px 0}
  .section-heading{grid-template-columns:1fr;gap:22px}
  .cutaway-shell{width:100%}
  .entry-tabs{display:flex;overflow-x:auto}
  .entry-tabs button{min-width:130px}
  .cutaway-stage svg{height:420px;object-fit:cover;object-position:35%}
  .labels{display:none}
  .entry-readout{position:relative;right:auto;bottom:auto;width:auto;margin:0;border-top:1px solid var(--line)}
  .pathway-grid{gap:30px}
  .pathway-grid ul{grid-template-columns:1fr}
  .field-grid,.system-track,.guide-grid{grid-template-columns:1fr}
  .field-card{min-height:440px}
  .method-visual{width:calc(100% - 20px);height:480px}
  .city-program aside{padding:32px}
  .city-program aside>strong{font-size:4rem}
  .guide-image{height:230px}
  .final-cta{padding:80px 0}
  .page-hero,.detail-hero,.company-hero,.contact-hero,.guide-hero{padding:42px 0 65px}
  .page-hero-grid h1,.detail-heading h1,.company-hero h1,.contact-hero h1,.guide-hero h1{font-size:clamp(2.8rem,13vw,4.4rem)}
  .page-hero-grid>div:last-child,.company-hero-grid>div:last-child,.contact-hero-grid>div:last-child,.guide-hero-grid>div:last-child,.detail-photo{width:calc(100% - 18px);height:390px}
  .hero-register{gap:20px;align-items:flex-end}
  .hero-register span:last-child{text-align:right}
  .ledger-row{grid-template-columns:95px 38px 1fr;padding-inline:0;gap:14px}
  .ledger-photo{height:90px}
  .ledger-row>i,.ledger-row>div:nth-child(3)>span{display:none}
  .decision-bar .shell{align-items:flex-start;flex-direction:column}
  .scope-checks,.process-terrace,.prep-grid{grid-template-columns:1fr}
  .scope-checks>div{min-height:140px}
  .scope-stack{height:460px;padding:35px 25px}
  .boundary-grid{gap:35px}
  .related-grid{grid-template-columns:1fr}
  .guide-ledger article{grid-template-columns:1fr;padding:18px}
  .guide-ledger-image{height:220px}
  .article-sidebar nav{grid-template-columns:1fr}
  .article-content>section>p{font-size:1.06rem}
  .article-close{padding:30px}
  .company-sections>section{grid-template-columns:45px 1fr}
  .field-notes-grid>section{grid-template-columns:45px 1fr;padding:35px 0}
  .proof-gate ul{grid-template-columns:1fr}
  .contact-hero dl{grid-template-columns:1fr;gap:14px}
  .contact-route>.shell{width:100%}
  .contact-information{width:var(--shell);margin:auto}
  .form-grid,.form-grid.three{grid-template-columns:1fr}
  .assessment-form,.form-heading{padding:25px}
  .choice-row{display:grid}
  .footer-grid{grid-template-columns:1fr 1fr;gap:40px}
  .footer-brand{grid-column:1/-1}
  .footer-grid>div:last-child{grid-column:auto}
  .footer-legal{flex-direction:column}
  .status-page{padding-top:70px}
  .breadcrumbs{overflow:hidden}
  .breadcrumbs ol{white-space:nowrap}
  .breadcrumbs li:last-child{overflow:hidden;text-overflow:ellipsis}
  .breadcrumbs li:last-child{min-width:0;flex:1}
  .breadcrumbs li:last-child span{display:block;overflow:hidden;text-overflow:ellipsis}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*:before,*:after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}
}
@media print{
  .site-header,.site-footer,.mobile-actions,.button,.article-sidebar{display:none!important}
  body{background:white;color:black}
  .article-shell{display:block;width:100%}
  .article-content>section{break-inside:avoid}
  .site-picture img{max-height:400px;object-fit:cover}
}
