/* Mobile is a deliberate touch layout. Desktop rules are left intact. */
.mobile-hint{display:none}
@media(max-width:820px){
 :root{--pad:22px;--nav:68px}
 html{scroll-padding-top:84px}
 body{font-size:15px}
 .section,#philosophy,#fit,#process,#levels{padding:64px 0}
 .section .shell{width:100%;max-width:640px}
 .kicker,#levels .kicker,.philosophy-heading .kicker{font-size:10px;line-height:1.5;letter-spacing:.12em;margin-bottom:16px}
 .display,#fit .display,#levels .display,.philosophy-heading .display,.process-heading .display{font-size:clamp(36px,8.9vw,56px);line-height:1.14;letter-spacing:-.035em}
 .lead,#fit .lead,#levels .lead,.philosophy-heading .lead{font-size:16px;line-height:1.65;margin:20px 0 0;max-width:44ch}
 .nav{height:68px;padding:0 22px;background:rgba(12,23,29,.2)}
 .brand,.brand img{width:86px}
 .menu-btn{width:44px;height:44px;margin-right:-8px}
 .navlinks{inset:68px 0 0;height:calc(100dvh - 68px);max-height:none;background:#111f26;color:#f3f7f8;padding:32px 28px max(32px,env(safe-area-inset-bottom));justify-content:flex-start;align-items:stretch;gap:0;transform:none;visibility:hidden;opacity:0;pointer-events:none;transition:opacity .2s,visibility .2s;overflow-y:auto}
 .navlinks.open{visibility:visible;opacity:1;pointer-events:auto}
 .navlinks>a{font-size:25px;line-height:1.3;letter-spacing:-.02em;text-transform:none;padding:18px 0;min-height:64px;border-bottom:1px solid #ffffff20;opacity:1}
 .navlinks>a.nav-cta{margin-top:24px;min-height:54px;width:100%;font-size:15px;font-weight:600;padding:16px!important;background:#92c8d6;color:#12252d;border:1px solid #92c8d6;border-radius:3px}
 .menu-open .nav{background:#111f26;color:#fff}.menu-open .brand .logo-light{opacity:1}.menu-open .brand .logo-dark{opacity:0}
 .hero{min-height:min(780px,100svh);align-items:center}
 .hero-inner{margin:0 auto;padding:124px 22px 126px;max-width:640px}
 .hero h1{font-size:clamp(48px,12vw,78px);line-height:1.1;margin:24px 0 28px;letter-spacing:-.045em}
 .hero h1 em{line-height:1.12}.hero h1 em:after{display:none}
 .hero .kicker{max-width:none;font-size:9px;letter-spacing:.14em;margin:0}
 .hero-copy{font-size:15px;line-height:1.7;margin:0;max-width:39ch;color:#d3e0e6}
 .hero-actions{display:grid;grid-template-columns:1fr;gap:10px;margin-top:28px;max-width:400px}
 .hero-actions .btn{min-height:50px;font-size:11px;border-radius:3px;width:100%}
 .scroll-invitation{bottom:22px;left:22px;right:22px;padding-top:14px;font-size:8px;letter-spacing:.1em;gap:12px}
 .motion-toggle{font-size:8px;min-height:36px;padding:8px 10px;flex:none}
 .flow-strip span{font-size:12px;padding:10px 20px}
 .philosophy-heading{display:block}
 #philosophy .intro-grid{gap:28px}
 #philosophy .manifesto button{min-height:64px}
 #philosophy .manifesto strong{font-size:20px}
 #philosophy .mobile-inline{padding:0 20px 24px 20px}
 #philosophy .mobile-inline h4{font-size:22px}
 .system-head,.services-head,.portfolio-head{display:block;margin-bottom:24px}
 .system-head>p{font-size:15px;line-height:1.65;margin:20px 0 0}
 .mobile-hint{display:block;margin:0 0 12px;color:var(--muted);font-size:11px;line-height:1.5}
 .section-dark .mobile-hint,.section-portfolio .mobile-hint{color:#a6c1cc}
 /* A horizontal selector changes one stable, immediately visible panel. */
 #moduleGrid,#processNav,#levelButtons{display:flex;gap:8px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;scrollbar-color:#aac5ce transparent;padding:0 0 12px;margin:0;grid-auto-rows:auto}
 #moduleGrid .module{flex:0 0 auto;display:flex;align-items:center;gap:9px;padding:13px 16px;min-height:48px;border-radius:3px;scroll-snap-align:start;white-space:nowrap}
 #moduleGrid .module h3{font-size:14px;line-height:1.4;margin:0;letter-spacing:0}
 #moduleGrid .module-top{display:none}#moduleGrid .module p{display:none}
 #moduleGrid .module.active{background:#172930;color:#fff;border-color:#172930}
 .system-board{display:block}
 #system .system-detail{display:flex;min-height:0;padding:24px;border-radius:4px;margin-top:4px}
 .system-detail small{font-size:9px;line-height:1.5}
 .system-detail h3{font-size:28px;line-height:1.2;margin:16px 0}
 .system-detail p{font-size:15px;line-height:1.65;margin:0;min-height:100px}
 .detail-grid{gap:18px;margin-top:24px}
 .detail-box{padding-top:12px}.detail-box span{font-size:9px}.detail-box strong{font-size:12px;line-height:1.5}
 /* Fit uses two equal tabs instead of expanding the page after each tap. */
 #fit .fit-grid{gap:20px}.fit-copy{display:block}
 #fit .fit-switch{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:24px 0 0}
 #fit .fit-switch button{padding:14px 12px;min-height:68px;text-align:center}
 #fit .fit-switch strong{font-size:13px;line-height:1.45;margin:0}
 #fit .fit-switch span{display:none}
 #fit .fit-stage{display:flex;flex-direction:column;padding:24px;min-height:0}
 #fit .fit-stage h3{font-size:26px;line-height:1.25;max-width:none;margin:0}
 #fit .fit-stage p{font-size:15px;line-height:1.65;margin:16px 0 22px}
 #fit .fit-path{grid-template-columns:1fr 1fr;gap:8px;margin-top:auto}
 #fit .fit-path span{font-size:9px;min-height:38px;padding:9px}
 /* Capabilities are short expandable rows, not five oversized cards. */
 .service-stack{display:block;border:0;border-top:1px solid var(--line);background:none}
 .service-btn,.service-btn:last-child{display:grid;grid-template-columns:24px minmax(0,1fr) 18px;align-items:center;gap:12px;width:100%;min-height:76px;padding:18px 12px;border:0;border-bottom:1px solid var(--line);border-radius:0}
 .service-btn .svc-icon{display:none}
 .service-btn h3{font-size:18px;line-height:1.35;margin:0;font-weight:500}
 .service-btn>p{display:none}
 .service-btn:after{content:'+';font-size:22px;font-weight:300;text-align:center}
 .service-btn.active:after{content:'−'}
 .service-btn.active{background:#172930;color:#fff;border-color:#172930}
 #serviceStack .mobile-inline{background:#172930;color:#d4e1e7;padding:0 20px 24px;margin:0;border:0;border-radius:0}
 #serviceStack .mobile-inline h4{display:none}
 #serviceStack .mobile-inline p{font-size:15px;line-height:1.7;opacity:1}
 #serviceStack .inline-chips{margin-top:20px;gap:8px}
 #serviceStack .inline-chips span{border:1px solid #ffffff25;padding:7px 9px;border-radius:2px;font-size:9px;color:#c7dce5}
 .service-detail{display:none}
 /* Films are browseable with a native swipe rather than seven screens of cards. */
 .portfolio-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;gap:14px;padding:0 0 14px;scrollbar-width:thin;scrollbar-color:#547581 transparent}
 .portfolio-card,.portfolio-card--feature,.portfolio-card--wide{flex:0 0 88%;aspect-ratio:4/3;min-height:0;scroll-snap-align:start;border-radius:4px}
 .portfolio-meta{left:16px;bottom:18px;right:60px;gap:8px}.portfolio-meta strong{font-size:12px}.play-mark{width:40px;height:40px;right:14px;bottom:12px}
 .portfolio-head .lead{font-size:15px;margin-top:18px}
 /* Process follows the same tabs + one panel pattern as the system. */
 .process-heading{display:block}.process-heading>.kicker{margin-bottom:16px}
 .process-intro{margin-top:22px}.process-intro .lead{font-size:18px;margin:0 0 10px}.process-intro>p:not(.lead){font-size:15px}.process-intro>span{display:none}
 .process-console{display:block;margin-top:24px}
 #processNav button{display:flex;flex:0 0 auto;min-height:48px;padding:12px 16px;gap:8px;scroll-snap-align:start;border-radius:3px}
 #processNav button b{display:none}#processNav button strong{font-size:14px;line-height:1.4;letter-spacing:0}
 #process .process-panel{display:flex;padding:24px;min-height:0;margin-top:4px}
 .process-panel .stage-label{font-size:9px;margin:0 0 16px}
 #process .process-panel h3{font-size:27px;line-height:1.25;margin:0 0 16px}
 .process-panel .stage-copy{font-size:15px;line-height:1.65;margin:0 0 24px;min-height:100px}
 .process-output{grid-template-columns:1fr;gap:0;margin:0;padding:0}
 .process-output>div{display:grid;grid-template-columns:92px 1fr;gap:12px;padding:12px 0}
 .process-output span{font-size:9px;line-height:1.5;margin:0}.process-output strong{font-size:12px;line-height:1.5}
 /* Compact pricing that always shows what's selected, no hidden first plan. */
 #levels .levels-layout{display:block}.level-picker{display:block}
 #levels .lead{margin-bottom:24px}
 #levelButtons button{display:flex;flex:0 0 116px;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-height:76px;height:76px;padding:14px;scroll-snap-align:start;border-radius:3px}
 #levelButtons .lv-dot{display:none}#levelButtons strong{font-size:16px;line-height:1.3}#levelButtons em{font-size:11px;line-height:1.4}
 #levels .level-card{display:block;min-height:0!important;padding:24px;margin-top:4px;background:#fff}
 .level-card-top{align-items:baseline;gap:12px;min-height:0;flex-wrap:wrap}
 #levels .level-card h3{font-size:30px;line-height:1.2}.level-price{font-size:24px;line-height:1.3}
 .level-note{font-size:15px;line-height:1.6;margin:16px 0 20px;min-height:0}
 .level-meter{margin-bottom:20px}.level-facts{grid-template-columns:1fr 1fr;gap:18px;margin-bottom:24px;grid-auto-rows:auto}
 .level-fact span{font-size:9px}.level-fact strong{font-size:12px;line-height:1.5}
 .level-scope{border-top:1px solid var(--line);padding:20px 0 0}
 .scope-label{font-size:10px;text-transform:uppercase;letter-spacing:.1em;line-height:1.5;color:var(--muted);margin:0 0 10px}
 .level-includes{display:grid;grid-template-columns:1fr;gap:0;margin:0}
 .level-includes div{padding:10px 0;font-size:13px;line-height:1.5;min-height:0;display:block}
 /* Comfortable form spacing and a clear full-width submit target. */
 #contact{padding:64px 0}.contact-grid{gap:28px;align-items:start}
 .contact-meta{font-size:15px;gap:0;margin-top:22px}.contact-meta a{min-height:44px;display:flex;align-items:center}
 #contact .form{padding:24px;border-radius:4px}.form h3{font-size:25px;margin:0 0 24px}
 .field{margin-bottom:20px}.field label{font-size:10px;line-height:1.4}
 .field input,.field select,.field textarea{font-size:16px;min-height:48px;padding:12px 0}.field textarea{min-height:100px}
 .form .btn{width:100%;min-height:50px}
 .footer{padding:28px 0 max(28px,env(safe-area-inset-bottom))}.footer .shell{display:grid;grid-template-columns:1fr;gap:16px}.footer-social{gap:28px}
 .video-modal{padding:16px}.video-modal-close{min-height:44px;top:max(16px,env(safe-area-inset-top))}
}
@media(min-width:561px) and (max-width:820px){.hero-inner{padding-top:140px;padding-bottom:140px}.hero-actions{grid-template-columns:1fr 1fr;max-width:none}.portfolio-card,.portfolio-card--feature,.portfolio-card--wide{flex-basis:70%}}
@media(max-width:360px){:root{--pad:18px}.hero-inner{padding-left:18px;padding-right:18px}.hero h1{font-size:46px}.display,#fit .display,#levels .display,.philosophy-heading .display,.process-heading .display{font-size:35px}.system-detail,.process-panel,#contact .form,#levels .level-card{padding:20px!important}.detail-grid{gap:14px}}
.package-details>summary{display:none}
@media(max-width:820px){
 #moduleGrid .module,#moduleGrid .module:last-child{height:48px;min-height:48px;max-height:48px;grid-column:auto}
 #system .detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;grid-auto-rows:auto}
 .package-details>summary{display:flex;align-items:center;justify-content:space-between;gap:16px;list-style:none;cursor:pointer;font-size:14px;font-weight:550;min-height:44px}
 .package-details>summary::-webkit-details-marker{display:none}
 .package-details>summary span{font-size:22px;font-weight:400}
 .package-details[open]>summary span{transform:rotate(45deg)}
 .package-details[open]>summary{margin-bottom:14px}
 .package-details .scope-label{display:none}
 .level-scope{padding-top:12px}
}

@media(min-width:821px){#moduleGrid .module[data-module="systems"]{grid-column:1/-1;min-height:150px}}
@media(max-width:820px){
 #philosophy .manifesto .status{width:8px;height:8px;border:1px solid #92c8d6;border-radius:50%;background:#92c8d6;justify-self:center}
 #philosophy .manifesto .status:before,#philosophy .manifesto .status:after{display:none}
 #philosophy .manifesto button.active .status{background:transparent;border-color:#92c8d6}
 .service-btn:after,.service-btn.active:after{content:'';width:8px;height:8px;border:1px solid #92c8d6;border-radius:50%;background:#92c8d6;justify-self:center}
 .service-btn.active:after{background:transparent}
 .package-details>summary span{font-size:0;width:8px;height:8px;flex:none;border:1px solid #92c8d6;background:#92c8d6;border-radius:50%}
 .package-details[open]>summary span{transform:none;background:transparent}
 #system .system-detail{min-height:var(--mobile-system-height,0px)}
 .level-summary{min-height:var(--mobile-summary-height,0px)}
}
/* Philosophy expands within the existing row, without a separate card surface. */
@media(max-width:820px){
 #philosophy .manifesto button.active{background:transparent;color:var(--ink);border-bottom-color:transparent}
 #philosophy .manifesto button.active .verb-no{color:var(--muted)}
 #philosophy .mobile-inline{background:transparent;color:var(--ink);border:0;border-bottom:1px solid var(--line);border-radius:0;margin:0;padding:4px 16px 26px 54px;overflow:hidden}
 #philosophy .mobile-inline h4{color:var(--blue-deep);font-size:21px;line-height:1.35;margin:0 0 14px}
 #philosophy .mobile-inline p{color:var(--muted);font-size:15px;line-height:1.7}
 #philosophy .mobile-inline .inline-chips{border:0;padding:0;margin-top:20px;gap:8px 14px}
 #philosophy .mobile-inline .inline-chips span{color:var(--muted);font-size:9px;line-height:1.5}
}
@media(max-width:820px){#services #serviceStack .mobile-inline{overflow:hidden;border-radius:0;padding-left:48px;padding-right:20px}#services #serviceStack .inline-chips span{border:0;padding:0;font-size:9px}#services #serviceStack .inline-chips{gap:10px 16px}}
@media(max-width:820px){
 #moduleGrid .module,#moduleGrid .module:last-child{flex:0 0 124px;justify-content:center;width:124px}
 #processNav button{flex:0 0 112px;justify-content:center}
 #system .system-detail h3{min-height:var(--system-title-track,0px)}
 #system .system-detail p{min-height:var(--system-copy-track,100px)}
 #system .detail-box{min-height:var(--system-fact-track,0px)}
}
@media(max-width:820px){.package-details>summary{min-height:60px}.details-hint{display:block;font-size:11px;font-weight:400;color:var(--muted);line-height:1.5;margin-top:5px}}
@media(max-width:820px){#philosophy #manifesto button.active .status{background:transparent;border:1px solid #92c8d6;box-shadow:none}#serviceStack button.active:after{background:transparent;border:1px solid #92c8d6}}
@media(max-width:820px){.service-btn,.service-btn:last-child{grid-template-columns:minmax(0,1fr) 18px;gap:12px}.service-btn h3{grid-column:1}.service-btn:after{grid-column:2}}
