/* Mobile-only refinements. Desktop layout, content and scroll behavior stay intact. */
@media screen and (max-width:640px){
 :root{--mobile-gutter:clamp(23px,6vw,38px)}
 html{width:100%;max-width:100%;min-width:0;overflow-x:hidden}
 body{width:100%;max-width:100%;min-width:0;margin:0;overflow-x:hidden;-webkit-text-size-adjust:100%;text-size-adjust:100%}
 body>main{width:100%;max-width:100%;min-width:0}
 body>main>section{width:100%;max-width:100%;min-width:0}
 main,section,article,form,header,footer{min-width:0}
 .header{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;column-gap:12px;row-gap:10px;padding:calc(20px + env(safe-area-inset-top,0px)) var(--mobile-gutter) 14px;background:linear-gradient(#07090D 65%,#07090De6 88%,transparent)}
 .header>.brand{grid-column:1;grid-row:1;width:112px;max-width:100%;justify-self:start}
 .header>.pill{grid-column:2;grid-row:1;min-height:44px;font-size:12px;padding:12px 16px;gap:13px;justify-self:end}
 .header .nav{grid-column:1/-1;grid-row:2;order:initial;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));width:100%;gap:2px;padding:4px;min-width:0}
 .header .nav a{display:flex;align-items:center;justify-content:center;min-width:0;min-height:44px;padding:10px 4px;font-size:12px;line-height:1.2;text-align:center}
 .pill{white-space:normal;text-align:center;line-height:1.4}
 h1,h2,h3{overflow-wrap:break-word;text-wrap:balance}
 p,li{overflow-wrap:break-word}
 /* The canvas remains full-screen; the scene fits its model to the phone width. */
 .hero{width:100%!important;max-width:100%;height:max(100svh,calc(760px + env(safe-area-inset-top,0px)));min-height:760px}
 .headline{top:calc(166px + env(safe-area-inset-top,0px));left:var(--mobile-gutter);right:var(--mobile-gutter);font-size:clamp(50px,15vw,84px);line-height:.94;letter-spacing:-.02em}
 .headline .line{white-space:nowrap}
 .hero .stage{inset:0;width:100%;height:100%}
 .hero .fallback{inset:32% 12% 34%}
 .hero .copy{left:var(--mobile-gutter);right:var(--mobile-gutter);bottom:112px;width:auto;max-width:none}
 .hero .copy p{font-size:15px;line-height:1.65;max-width:340px;margin:0 0 20px;text-wrap:pretty}
 .hero .copy>.pill{width:100%;min-height:54px;padding:17px 20px;font-size:14px;justify-content:space-between;gap:16px}
 .hero .discipline{top:auto;bottom:58px;left:var(--mobile-gutter);right:auto;font-size:8px;line-height:1.4;max-width:none}
 .hero .credit{left:var(--mobile-gutter);bottom:76px;font-size:9px;line-height:1.5}
 .hero .marquee{bottom:22px;padding:11px 0;font-size:8px}
 .second-section,.services,.process,.projects,.why-section,.contact-section{scroll-margin-top:150px}
 .manifesto{padding:94px var(--mobile-gutter) 58px;min-height:78svh}
 .manifesto-heading{font-size:clamp(36px,10.1vw,62px);line-height:1.15;letter-spacing:-.022em;text-wrap:pretty}
 .manifesto-tail{height:18svh}
 .problem{padding:20px var(--mobile-gutter) 48px}
 .problem-heading h2{font-size:clamp(36px,10.2vw,54px);line-height:1.08;margin-bottom:22px}
 .section-label{font-size:10px;line-height:1.6;margin-bottom:20px}
 .problem-subtitle{font-size:14px;line-height:1.75}
 .problem-layout{gap:22px;margin:22px 0 36px}
 .problem-object{min-height:245px}
 .hand-scene{width:240px;height:250px;max-width:86vw}
 .finger-glow{width:84px;height:84px}
 .problem-cards{gap:16px}
 .problem-card{padding:25px 23px;border-radius:21px}
 .card-number{font-size:11px;margin-bottom:17px}
 .problem-card h3{font-size:27px;line-height:1.12;margin-bottom:13px;text-wrap:pretty}
 .problem-card p{font-size:14px;line-height:1.75}
 .section-footer{max-width:none;font-size:9px;line-height:1.9;padding-top:20px}
 /* Put the services heading before the illustration, then stack the cards. */
 .services.is-stacked{padding:92px var(--mobile-gutter) 70px}
 .services.is-stacked .services-scene{display:flex;flex-direction:column}
 .services.is-stacked .services-intro{order:0;margin:0 0 12px;max-width:100%}
 .services.is-stacked .services-intro h2{font-size:clamp(64px,18vw,100px);line-height:.97;letter-spacing:-.025em;margin-bottom:23px}
 .services.is-stacked .services-intro p{font-size:15px;line-height:1.75;max-width:350px}
 .services.is-stacked .archangel-wrap{order:1;flex:none;height:clamp(220px,36svh,320px);width:100%;margin:0 0 20px}
 .services.is-stacked .services-rail{order:2;width:100%;min-width:0}
 .services.is-stacked .services-track{gap:20px}
 .services.is-stacked .service-card{min-height:0;height:auto;padding:27px 23px;border-radius:22px}
 .service-number{font-size:32px;margin-bottom:21px}
 .service-card h3{font-size:clamp(28px,8vw,35px);line-height:1.08;margin-bottom:17px;text-wrap:pretty}
 .service-description{font-size:14px;line-height:1.75;margin-bottom:23px}
 .service-label{font-size:10px;margin-bottom:9px}
 .service-ideal p{font-size:14px;line-height:1.7;margin-bottom:23px}
 .service-includes ul{font-size:13px;line-height:1.7;gap:8px;padding-left:18px;margin-bottom:20px}
 .service-note{font-size:11px;line-height:1.7}
 .service-cta{width:100%;min-height:50px;padding:15px 19px;margin-top:14px;justify-content:space-between;font-size:14px}
 .process.is-stacked{padding:88px var(--mobile-gutter) 70px}
 .process.is-stacked .process-copy h2{font-size:clamp(38px,10.4vw,57px);line-height:1.08;margin-bottom:38px;max-width:100%}
 .process.is-stacked .process-steps{gap:38px}
 .process-step-label{grid-template-columns:24px minmax(0,1fr);gap:13px}
 .process-step-number{font-size:11px;padding-top:4px}
 .process-step h3{font-size:25px;line-height:1.15;margin-bottom:12px;text-wrap:pretty}
 .process-step p{font-size:14px;line-height:1.75}
 .process.is-stacked .process-mobile-mock{height:clamp(350px,95vw,390px);margin-top:23px;border-radius:16px;max-width:100%}
 .process.is-stacked .process-closing{margin-top:42px;padding:25px 22px;border-radius:20px;gap:22px}
 .process-closing strong{font-size:30px;line-height:1.1}
 .process-closing .pill{width:100%;min-height:52px;justify-content:space-between;font-size:14px}
 .projects{padding:90px var(--mobile-gutter) 65px}
 .projects-heading{gap:28px;margin-bottom:42px}
 .projects-heading h2{font-size:clamp(43px,11.8vw,65px);line-height:1.04;margin-bottom:24px}
 .projects-eyebrow{font-size:10px;line-height:1.6;margin-bottom:22px}
 .projects-subtitle{font-size:14px;line-height:1.8}
 .projects-code-side{max-width:none;width:100%}
 .projects-code pre{font-size:11px;line-height:1.85;min-height:208px;padding:22px 17px}
 .projects-code-side .projects-editorial{font-size:9px;line-height:1.7;gap:4px}
 .projects-selection{gap:44px}
 .project-editorial-number,.project-card:first-child .project-editorial-number{font-size:36px;margin-bottom:14px}
 .project-category{font-size:9px;line-height:1.7;gap:9px 13px;margin-bottom:14px}
 .project-concept{font-size:8px;line-height:1.7}
 .project-name-row{gap:12px;align-items:flex-start}
 .project-name-row h3,.project-card:first-child .project-name-row h3,.project-card:nth-child(2) .project-name-row h3{font-size:clamp(32px,8.8vw,43px);line-height:1.08;min-width:0;text-wrap:pretty}
 .project-open{width:44px;height:44px;flex-shrink:0;font-size:30px}
 .project-info>p{font-size:14px;line-height:1.8;margin-top:15px}
 .projects-more{margin-top:54px;gap:20px}
 .projects-all{min-height:54px;font-size:13px;padding:16px 20px;justify-content:space-between}
 .project-dialog{width:calc(100vw - 32px);padding:18px;border-radius:14px}
 .project-dialog-header{gap:12px}.project-dialog h2{font-size:23px;line-height:1.15;min-width:0}
 .project-dialog-close{min-height:44px;flex-shrink:0;font-size:11px}
 .why-section{padding:90px var(--mobile-gutter) 64px}
 .why-eyebrow{font-size:9px;line-height:1.8;margin-bottom:24px}
 .why-intro h2{font-size:clamp(37px,10vw,57px);line-height:1.1;letter-spacing:-.025em}
 .why-title-first{margin-bottom:22px}
 .why-support{grid-template-columns:20px minmax(0,1fr);gap:13px;margin-top:28px}
 .why-support p{font-size:14px;line-height:1.8}
 .why-pillars{gap:29px;margin:43px 0 52px}
 .why-pillar,.why-pillar:nth-child(even){grid-template-columns:31px minmax(0,1fr) 16px;gap:13px;padding-top:24px}
 .why-pillar-number{font-size:28px;line-height:1.2}
 .why-pillar h3{font-size:27px;line-height:1.13;margin-bottom:14px;text-wrap:pretty}
 .why-pillar p{font-size:14px;line-height:1.8}
 .why-closing{gap:23px}.why-closing h3{font-size:clamp(34px,9.4vw,50px);line-height:1.1}
 .why-closing p{font-size:14px;line-height:1.8;margin-bottom:24px}
 .why-contact{width:100%;min-height:54px;font-size:14px;justify-content:space-between}
 .contact-section{padding:90px var(--mobile-gutter) calc(35px + env(safe-area-inset-bottom,0px))}
 .contact-layout{gap:34px}.contact-eyebrow{font-size:10px;margin-bottom:23px}
 .contact-intro h2{font-size:clamp(43px,11.5vw,63px);line-height:1.06;margin-bottom:24px}
 .contact-body{font-size:14px;line-height:1.8;margin-bottom:25px}
 .contact-availability{font-size:10px;line-height:1.7;margin-bottom:25px;align-items:center}
 .contact-direct{min-height:54px;font-size:13px;justify-content:space-between;padding:16px 20px}
 .contact-form{padding:26px 21px;border-radius:20px}
 .contact-form h3{font-size:30px;line-height:1.08;margin-bottom:28px}
 .contact-fields{gap:22px}.contact-field label{font-size:13px;line-height:1.5}
 .contact-field input,.contact-field select,.contact-field textarea{font-size:16px;line-height:1.5;width:100%;max-width:100%;min-height:50px;padding:13px 12px}
 .contact-field textarea{min-height:155px}.contact-form-note{font-size:12px;line-height:1.8;margin:22px 0}
 .contact-form-actions{display:flex;flex-direction:column;align-items:stretch;gap:11px}
 .contact-submit{flex:none;width:100%;min-height:52px;font-size:14px;justify-content:space-between}
 .contact-copy{min-height:44px;align-self:center;font-size:13px;padding:12px 4px}
 .contact-form-status{font-size:13px;line-height:1.75}.contact-privacy-note{font-size:11px;line-height:1.8}
 .contact-faq{gap:25px;margin:58px 0}.contact-faq h3{font-size:clamp(35px,10vw,50px);line-height:1.06}
 .contact-faq-item summary{min-height:60px;font-size:15px;line-height:1.6;padding:19px 0}.contact-faq-item p{font-size:14px;line-height:1.8}
 .contact-footer{padding-top:29px}.contact-footer-top{gap:23px}.contact-footer-nav{gap:5px 22px}.contact-footer-nav a{display:inline-flex;align-items:center;min-height:44px;font-size:13px}
 .contact-footer-brand p{font-size:12px;line-height:1.8}.contact-footer-bottom{font-size:9px;line-height:1.8;gap:12px;margin-top:25px}
 /* Catalog: one comfortable column and touch-sized filters, no page overflow. */
 .catalog{padding:calc(164px + env(safe-area-inset-top,0px)) var(--mobile-gutter) 55px}
 .breadcrumb{font-size:10px;line-height:1.6;margin-bottom:29px;gap:10px}
 .catalog-title-row{gap:25px}.eyebrow{font-size:10px;line-height:1.7;margin-bottom:23px}
 .catalog h1{font-size:clamp(54px,15.8vw,86px);line-height:.98;letter-spacing:-.03em}
 .catalog-lead{font-size:14px;line-height:1.8;max-width:none}
 .catalog-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:13px;margin-top:34px;padding:20px 0}
 .filters{flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;width:100%;max-width:100%;padding:3px 2px 9px;gap:8px}.filters::-webkit-scrollbar{display:none}
 .filter{flex-shrink:0;min-height:44px;padding:11px 16px;font-size:12px;white-space:nowrap}
 .search{width:100%;max-width:none;min-width:0;gap:10px}.search input{font-size:16px;min-height:48px;padding:12px 3px}
 .results{font-size:10px;line-height:1.6;margin-top:20px}
 .catalog-grid{gap:39px;margin:26px 0 51px}.catalog-item-title{gap:13px;align-items:flex-start}
 .catalog-item h2{font-size:clamp(30px,8.7vw,42px);line-height:1.08;min-width:0;text-wrap:pretty}
 .index{font-size:25px;flex-shrink:0;line-height:1.3}.category{font-size:9px;line-height:1.8;margin:20px 0 12px;letter-spacing:.04em}
 .catalog-item-description{font-size:14px;line-height:1.8;margin-top:15px}.concept-label{font-size:9px;line-height:1.8;margin-top:13px}
 .open-hint{min-height:40px;font-size:11px;padding:10px 13px;bottom:12px;right:12px}
 .catalog-closing{gap:24px;padding-top:33px}.catalog-closing h2{font-size:clamp(34px,9.8vw,47px);line-height:1.1}.catalog-closing>.pill{width:100%;min-height:54px;justify-content:space-between;font-size:14px}
 .catalog-footer{font-size:10px;line-height:1.8;gap:15px;margin-top:48px}.catalog-footer a{min-height:44px;display:flex;align-items:center}
 /* Keep the project's browser frame inside the available modal height. */
 .viewer{width:calc(100% - 24px);height:calc(100dvh - 24px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 24px);border-radius:12px}
 .viewer-layout{min-height:0}.viewer-topbar{align-items:flex-start;padding:17px 15px;gap:12px;flex-shrink:0}.viewer-topbar>div{min-width:0}.viewer-topbar h2{font-size:23px;line-height:1.08;text-wrap:pretty}
 .viewer-kicker{font-size:8px;line-height:1.6;margin-bottom:7px}.viewer-close{min-height:44px;padding:10px 12px;font-size:12px;flex-shrink:0}
 .viewer-sidebar{padding:12px 15px;max-height:85px;overflow:hidden;flex-shrink:0}.page-list{gap:8px;padding-bottom:3px;overscroll-behavior-x:contain;scrollbar-width:thin}
 .page-tab{font-size:12px;min-height:44px;gap:8px;padding:10px 12px;grid-template-columns:20px auto}
 .viewer-toolbar{padding:12px 15px;gap:10px;flex-shrink:0}.viewer-page-label{font-size:11px;line-height:1.6}.viewer-open-page{font-size:11px;min-height:25px}.viewer-toolbar-group{margin-left:auto}
 .viewer-tool{min-width:40px;min-height:40px;font-size:12px;padding:8px 11px}.viewer-stage{padding:12px;min-height:0;overscroll-behavior:contain}
 .viewer-sheet.is-live,.live-page,.live-page iframe{min-height:0;height:100%}
 .viewer-caption{font-size:10px;line-height:1.6;padding:12px 15px;flex-shrink:0}
}
