/* Shared mobile composition; loaded after page-specific styles. */
@media(max-width:900px){
  :root{--site-header-height:76px}
  html{scroll-padding-top:calc(var(--site-header-height) + 16px)}
  body,body.atelier{min-width:0;font-size:17px}
  .wrap{padding-left:5%;padding-right:5%;box-sizing:border-box}
  .top,.atelier .top{height:76px;gap:12px}
  .top .brand,.atelier .top .brand{font-size:22px;letter-spacing:1px;gap:10px}
  .top .brand small{font-size:8px!important;letter-spacing:.8px}
  .top .mobile{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;min-height:46px;font-size:23px;border:1px solid #8eac713d}
  .top nav,.atelier .top nav{top:var(--site-header-height);padding:14px 5% 22px;gap:4px;max-height:calc(100dvh - var(--site-header-height) - env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;border-radius:0 0 24px 24px;box-sizing:border-box;z-index:20}
  .top nav>a{display:flex;align-items:center;min-height:50px;padding:12px 16px;box-sizing:border-box;border-radius:14px;font-size:17px;line-height:1.4}
  .top nav>a.selected{background:#c1ef9126}
  .top nav>.btn{margin-top:10px;justify-content:space-between;min-height:54px;padding:15px 20px}
  .atelier-hero-grid,.st-hero-grid,.q-hero-grid,.b-hero-grid,.p-hero-grid{grid-template-columns:minmax(0,1fr);min-height:0;padding-top:32px;padding-bottom:32px;gap:30px}
  .atelier-hero-grid>*,.st-hero-grid>*,.q-hero-grid>*,.b-hero-grid>*,.p-hero-grid>*{min-width:0}
  .atelier-headline h1,.st-hero h1,.q-hero h1,.b-hero h1,.p-hero h1{font-size:clamp(42px,8.7vw,62px);line-height:1.1;letter-spacing:-1.7px;margin:22px 0}
  .atelier-headline h1 em{letter-spacing:inherit}
  .atelier-headline>p,.studio-page .st-hero p,.qualification-page .q-hero p,.bureau-page .b-hero p,.project-page .p-hero p{font-size:18px!important;line-height:1.65!important;max-width:620px;margin-bottom:24px}
  .atelier-headline .actions,.st-actions,.b-hero-actions{display:flex;flex-wrap:wrap;gap:18px;align-items:center;margin-top:24px}
  .atelier-headline .actions{flex-direction:row}
  .btn{box-sizing:border-box;min-height:52px;max-width:100%;white-space:normal;line-height:1.4}
  .btn>span{flex-shrink:0}
  .hero-credentials{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:620px;gap:20px;padding-top:20px}
  .hero-credentials>span{font-size:14px;line-height:1.5;min-width:0}
  .hero-credentials small{font-size:13px;line-height:1.5}
  .atelier .hero-object{width:100%;max-width:620px;min-height:0;padding-bottom:0;margin:0 auto;transform:none;box-sizing:border-box;border-radius:26px}
  .atelier .hero-object>img{width:100%;display:block;min-height:0;max-height:none;height:auto;aspect-ratio:1.5;object-fit:contain;border-radius:24px 24px 0 0}
  .atelier .hero-object .object-caption{position:relative;inset:auto;display:flex;align-items:center;gap:16px;min-height:92px;padding:17px 20px;border-radius:0 0 25px 25px;box-sizing:border-box}
  .atelier .hero-object .object-caption>span:first-child{font-size:18px;max-width:none;white-space:nowrap;margin:0}
  .atelier .hero-object .object-caption>div{min-width:0;font-size:11px;line-height:1.5}
  .atelier .hero-object .object-caption small{font-size:11px;line-height:1.5;margin-top:5px}
  .atelier-hero-bottom,.st-hero-strip,.b-hero-foot{font-size:12px;line-height:1.6;padding-top:18px;padding-bottom:18px;gap:12px}
  .st-hero-object,.st-method-object{width:100%;max-width:560px;box-sizing:border-box;padding:10px;margin:auto}
  .st-hero-image>img{height:auto;aspect-ratio:1.4;object-fit:cover}
  .q-hero figure{max-width:620px;width:100%;margin:0 auto}
  .q-hero figure img{height:auto;aspect-ratio:1.5;border-radius:25px}
  .q-hero figcaption{font-size:12px;line-height:1.6;padding:12px 2px}
  .q-hero-tags{gap:8px;margin-top:22px}
  .q-hero-tags span{font-size:13px;padding:7px 12px}
  .b-composition{width:100%;max-width:470px;min-height:470px;margin:0 auto}
  .p-visual{max-width:490px;width:100%;margin:8px auto 0;box-sizing:border-box;padding:0 12px;gap:10px}
  .p-document{width:330px;max-width:calc(100% - 24px);box-sizing:border-box;padding:26px;margin:18px 0}
  .p-doc-brand{gap:8px;flex-wrap:wrap}
  .p-doc-brand strong{font-size:22px;letter-spacing:.4px}
  .p-doc-brand .mark{flex-shrink:0;width:22px;height:22px}
  .p-doc-brand>span{font-size:9px;letter-spacing:.6px}
  .p-doc-title{font-size:30px}
  .p-spec{font-size:10px;letter-spacing:.7px;padding:12px 15px;gap:9px;flex-wrap:wrap;justify-content:center}
  .p-orbit{width:min(370px,100%);height:auto;aspect-ratio:1}
  .orbit-two{width:min(280px,80%)}
  .families-heading,.journey-intro,.atelier-team,.st-intro,.b-intro,.b-section-heading,.q-heading,.q-media,.p-section-heading{grid-template-columns:minmax(0,1fr);gap:20px}
  .st-service,.b-practice,.b-team,.st-crosslinks,.st-collaboration,.p-workspace{grid-template-columns:minmax(0,1fr);gap:26px}
  .st-service#validation .st-photo,.st-service#industrialisation .st-photo{order:initial}
  .st-photo img,.b-practice img,.q-media img{width:100%;height:auto;aspect-ratio:1.45;object-fit:cover}
  .p-sidebar{position:static;order:2}
  .p-missions{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .p-form-panel{padding:26px;border-radius:26px}
  .p-form-section .form{grid-template-columns:minmax(0,1fr)}
  .p-form-section .field{grid-column:1/-1}
  .project-page .p-form-section .checks{grid-template-columns:minmax(0,1fr)}
  .qualification-page .q-nav,.st-nav,.st-method-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;grid-auto-rows:1fr}
  .qualification-page .q-nav>a,.st-nav a{justify-content:center;text-align:center;min-height:48px;font-size:14px;line-height:1.4;padding:12px;box-sizing:border-box;min-width:0;overflow-wrap:break-word}
  .st-phase,.st-service,.q-section,.b-team,.p-start{scroll-margin-top:calc(var(--site-header-height) + 18px)}
  .st-checks,.technical-scope,.q-card,.st-phase-content,.p-form-panel,.b-person{min-width:0}
  .st-technical,.q-ref,.b-career-note,.p-spec,.footline{overflow-wrap:anywhere}
  input,select,textarea{font-size:16px!important}
  textarea{min-height:160px}
  summary{min-height:48px;box-sizing:border-box;touch-action:manipulation}
  a,button,select{-webkit-tap-highlight-color:#a3cd7b30}
  button,a.btn{touch-action:manipulation}
  .footline{padding-bottom:calc(24px + env(safe-area-inset-bottom,0px))}
}
@media(max-width:600px){
  .atelier-headline h1,.st-hero h1,.q-hero h1,.b-hero h1,.p-hero h1{font-size:clamp(40px,10.5vw,55px)}
  .atelier-headline .actions,.st-hero .st-actions,.b-hero-actions{flex-direction:column;align-items:stretch;gap:18px}
  .atelier-headline .btn,.st-hero .btn,.b-hero-actions .btn,.q-hero .btn,.p-hero .btn{width:100%;justify-content:space-between}
  .atelier-textlink,.st-hero .st-link,.b-hero-actions .b-text-link{min-height:44px;display:flex;align-items:center}
  .hero-credentials{gap:14px}
  .atelier .hero-object .object-caption{padding:16px;gap:13px}
  .atelier .hero-object .object-caption>span:first-child{font-size:16px}
  .st-phase{grid-template-columns:minmax(0,1fr);gap:12px;padding:26px 0 12px}
  .st-phase:before{display:none}
  .st-phase-marker{width:44px;height:44px;font-size:22px;margin:0}
  .st-phase-content{padding:23px;border-radius:24px}
  .st-phase h2{font-size:30px;line-height:1.22}
  .st-phase-grid{grid-template-columns:minmax(0,1fr);gap:22px}
  .st-phase .st-photo img{height:auto;aspect-ratio:1.4}
  .st-gate-line{grid-template-columns:minmax(0,1fr);gap:10px}
  .st-hero-strip{font-size:12px}
  .st-process-card{padding:20px;gap:14px}
  .st-process-card strong{font-size:23px;line-height:1.25}
  .st-process-card small{font-size:10px;line-height:1.5}
  .st-photo figcaption,.st-visual-note{font-size:12px!important;line-height:1.6}
  .q-grid.q-two,.q-process{grid-template-columns:minmax(0,1fr)}
  .q-card,.b-person,.b-commitments article{padding:23px}
  .q-sources{padding:23px}
  .q-ref{font-size:14px!important;line-height:1.5}
  .p-mission{padding:20px;gap:10px}
  .p-mission strong{font-size:23px}
  .p-mission>span:last-child{font-size:15px;line-height:1.55}
  .p-mission-top{margin-bottom:4px}
  .p-export{padding:20px}
  .p-export-actions .btn{padding:16px;font-size:15px!important;gap:12px}
  .p-preview{min-height:48px}
  .p-form-intro h2{font-size:32px}
  .p-summary{padding:25px}
  .p-form-section>legend{font-size:19px}
  .p-form-section .checks label{min-height:54px}
  .b-person h2{font-size:39px}
  .st-final,.b-final{padding:34px 24px}
  .st-final h2,.b-final h2{font-size:34px;line-height:1.2}
  .footline a{display:inline-flex;align-items:center;min-height:44px}
}
@media(max-width:380px){
  .top .brand,.atelier .top .brand{font-size:20px;gap:8px}
  .atelier-headline h1,.st-hero h1,.q-hero h1,.b-hero h1,.p-hero h1{font-size:39px;letter-spacing:-1.4px}
  .p-missions{grid-template-columns:minmax(0,1fr)}
  .p-mission{display:flex;align-items:stretch}
  .p-mission-top{justify-content:space-between}
  .p-form-panel,.st-phase-content{padding:20px}
  .p-document{padding:21px;max-width:calc(100% - 20px)}
  .p-doc-brand strong{font-size:19px}
  .p-doc-brand>span{font-size:8px}
  .p-doc-title{font-size:28px}
  .hero-credentials{grid-template-columns:minmax(0,1fr)}
}
@media(hover:none){
  .hero-object:hover{transform:none}
  .p-mission:hover{transform:none;box-shadow:none}
  .p-mission:active,.btn:active{filter:brightness(.95)}
}

/* Section navigation belongs in document flow, below each introduction. */
@media(max-width:900px){
.st-nav,.st-method-nav,.qualification-page .q-nav{
  position:static;inset:auto;z-index:auto;width:100%;max-width:100%;min-width:0;
  box-sizing:border-box;align-items:stretch;background:transparent;
}
.st-nav>a,.qualification-page .q-nav>a{max-width:100%;white-space:normal}
}
