/* One coherent small-screen layout. Desktop styling stays in editorial.css. */
.mobile-nav-contact{display:none}
.screenshot-button picture{display:block}
.team-details>summary{display:none}
@media(max-width:800px){
 html{scroll-padding-top:84px;-webkit-text-size-adjust:100%}
 body,button,h1,h2,h3{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
 body{line-height:1.55;background:#fff}
 body.image-open{overflow:hidden}
 .wrap{padding-inline:24px;max-width:640px}
 .header{height:64px;padding-inline:max(20px,env(safe-area-inset-left));gap:16px;background:#ffffffed;border-bottom:1px solid #ececef;backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
 .header .brand img{width:116px;height:auto}
 .header .nav-cta{display:none}
 .menu-toggle{margin-left:auto;min-height:44px;padding:8px 0 8px 16px;gap:10px;font-size:14px;font-weight:500;border:0;box-shadow:none}
 .menu-toggle>span{position:relative;width:18px;height:16px;font-size:0}
 .menu-toggle>span:before,.menu-toggle>span:after{content:"";position:absolute;left:0;width:18px;height:1.5px;background:#1d1d1f;border-radius:2px;top:5px}
 .menu-toggle>span:after{top:11px}
 .menu-toggle[aria-expanded="true"]>span:before{top:8px;transform:rotate(45deg)}
 .menu-toggle[aria-expanded="true"]>span:after{top:8px;transform:rotate(-45deg)}
 .header nav{top:100%;padding:12px 24px 22px;gap:0;max-height:calc(100dvh - 64px);overflow:auto;overscroll-behavior:contain;background:#fff;border-bottom:1px solid #e4e4e8;box-shadow:0 18px 30px -28px #0008}
 .header nav a{display:flex;align-items:center;min-height:52px;padding:12px 0;font-size:17px;font-weight:500;border-bottom:1px solid #f0f0f2}
 .header nav .mobile-nav-contact{display:flex;color:#245940;border:0;margin-top:6px}
 .button{min-height:48px;font-size:15px;padding:13px 23px;border-radius:25px}
 .button:hover{transform:none}
 .experience-sticky{background:linear-gradient(#fff 25%,#f5f5f7 80%)}
 .experience-layout{padding:48px 24px 48px;max-width:640px}
 .experience-copy .eyebrow{font-size:13px!important;letter-spacing:.01em!important;margin-bottom:18px;color:#66666d!important}
 .experience-copy h1{font-size:clamp(34px,9.4vw,54px);font-weight:650;line-height:1.075;letter-spacing:-.045em}
 .experience-copy h1 span{color:#7b7b83}
 .experience-lead{font-size:16px;line-height:1.6;max-width:440px;margin:22px auto 24px;color:#686870}
 .experience-copy .button{min-height:48px;font-size:15px}
 .experience-controls{width:100%;max-width:370px;margin:34px auto 0}
 .phase-buttons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;padding:4px;gap:2px;border-radius:25px;background:#e8e8ec}
 .phase-buttons button{min-width:0;min-height:44px;padding:10px 5px;font-size:13px;text-align:center;border:0;border-radius:22px;line-height:1.3;font-weight:500;white-space:normal}
 .phase-buttons button.active{background:#fff;color:#1d1d1f}
 .phase-buttons button i{display:none}
 .building-view,.building-view.is-monitoring,.building-view.has-equipment{width:100%;margin:0;height:auto;display:flex;flex-direction:column;overflow:visible}
 .building-view canvas{width:100%;height:clamp(230px,68vw,340px)!important;order:0;flex:none;cursor:default}
 .scene-loader{height:clamp(230px,68vw,340px)}
 .scene-loader p{font-size:13px}
 .building-view .model-tags{position:relative;inset:auto;order:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:420px;align-self:center;gap:0 16px;margin:0 0 14px;pointer-events:auto}
 .building-view .model-tag{position:relative;inset:auto!important;transform:none;min-width:0;min-height:44px;padding:9px 2px;font-size:13px;line-height:1.3;border:0!important;border-bottom:1px solid #dfdfe4!important;border-radius:0;background:transparent!important;color:#6e6e73!important;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none;white-space:normal;justify-content:center}
 .building-view .model-tag[aria-pressed="true"]{color:#245940!important;border-bottom-color:#245940!important;text-decoration:none;font-weight:600}
 .building-view .equipment-info{order:2;position:relative;inset:auto;width:100%;max-width:none;margin:0 0 16px;padding:18px 44px 18px 18px;background:#fff;border:1px solid #e5e5e9;border-radius:14px;box-shadow:none}
 .building-view .equipment-info b{font-size:15px;padding-right:0}
 .building-view .equipment-info p{font-size:14px;line-height:1.55;color:#6e6e73}
 .equipment-info>button{width:44px;height:44px;top:4px;right:4px}
 .scene-fallback{margin:24px 0;padding:24px 18px}
 .scene-fallback h3{font-size:27px}
 .building-caption{display:block;width:100%;max-width:480px;margin:12px auto 0}
 .building-caption>.phase-copy{width:100%;text-align:center;padding:0}
 .building-caption .phase-copy h2{font-size:22px;line-height:1.2;font-weight:600;letter-spacing:-.025em;margin-bottom:10px}
 .building-caption .phase-copy p{font-size:15px;line-height:1.55;color:#6e6e73}
 .building-caption>.monitor-card{padding:20px;margin-top:22px;border-radius:16px;background:#fff;border-color:#e4e4e8}
 .building-caption .incident-heading b{font-size:16px!important}
 .building-caption .monitor-card p.incident-reason{font-size:14px;line-height:1.55}
 .building-caption .monitor-card small{font-size:11px;line-height:1.5}
 .section,.offer-compact,.story-section,.team-section,.contact-section{padding-block:64px;scroll-margin-top:64px}
 .section-heading,.offer-compact .section-heading,.team-section .section-heading{margin-bottom:32px}
 .section-heading h2,.story-section .section-heading h2,.contact-inner h2{font-size:clamp(31px,8.5vw,44px);line-height:1.1;font-weight:600;letter-spacing:-.035em}
 .offer-compact .eyebrow,.story-section .section-heading .eyebrow,.team-section .eyebrow,.contact-inner>div:first-child>.eyebrow{font-size:12px!important;line-height:1.4;letter-spacing:.04em!important;margin-bottom:18px;gap:10px}
 .offer-compact .eyebrow:before,.story-section .section-heading .eyebrow:before,.team-section .eyebrow:before,.contact-inner>div:first-child>.eyebrow:before{height:14px;width:2px}
 .services{display:grid;grid-template-columns:minmax(0,1fr);gap:28px}
 .services article{position:relative;min-width:0;padding:0!important}
 .services article+article:before{content:"";display:block;height:1px;background:#e8e8ed;margin-bottom:28px}
 .services h3{font-size:21px;line-height:1.25;letter-spacing:-.025em;margin-bottom:10px}
 .services p{font-size:15px;line-height:1.65;color:#6e6e73}
 .story-section{background:#f5f5f7;border-color:#e2e2e7}
 .story-section .section-heading{margin-bottom:24px;text-align:left}
 .story-section .section-heading>p{font-size:16px;line-height:1.55;margin:18px 0 0;max-width:470px}
 .project-intro{text-align:left;margin:0 0 28px;padding:20px 0 0;border-top:1px solid #dedee4;max-width:none}
 .project-label{font-size:12px;font-weight:500;color:#245940}
 .project-intro p{font-size:14px;line-height:1.6;margin:7px 0 0}
 .project-intro strong{font-weight:500;color:#4b4b52}
 .story-section .story-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;max-width:none;position:sticky;top:72px;padding:4px;gap:2px;margin:0 0 28px;border-radius:25px;background:#e4e4e9;box-shadow:0 0 0 8px #f5f5f7;z-index:20}
 .story-tabs .feature-tab{min-width:0;min-height:44px;padding:10px 3px;border-radius:22px}
 .story-tabs .feature-tab b{font-size:13px;font-weight:500;line-height:1.3;letter-spacing:0;white-space:normal}
 .story-panel{scroll-margin-top:142px;min-width:0}
 .story-grid{display:flex;flex-direction:column;gap:22px;align-items:stretch}
 .story-note{padding:0;max-width:none;min-width:0}
 .story-note .source-label{display:none}
 .story-note h3{font-size:25px;line-height:1.2;letter-spacing:-.03em;margin:0 0 10px}
 .story-note h3 br{display:none}
 .story-note>p{font-size:15px;line-height:1.6;margin:0;color:#6e6e73}
 .story-details{margin:8px 0 0;font-size:13px}
 .story-details summary{display:block;list-style:none;min-height:44px;padding:12px 26px 9px 0;font-size:13px;font-weight:400;color:#6e6e73}
 .story-details summary:after{top:8px;right:0}
 .story-details p{font-size:13px;line-height:1.6;margin:0 0 8px}
 .original-view{width:100%;max-width:460px;align-self:center}
 .original-view .case-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%;gap:12px;margin:0 0 14px}
 .original-view .case-tabs button{min-width:0;min-height:44px;padding:10px 0!important;font-size:13px;font-weight:400;line-height:1.3;border:0;white-space:normal}
 .original-view .case-tabs button.active{font-weight:500;box-shadow:inset 0 -2px #245940;color:#245940}
 .original-view .screenshot-button{display:block;border-radius:18px;border:1px solid #e0e0e5;box-shadow:0 10px 26px -22px #0005;background:#fff}
 .screenshot-button picture{display:block;width:100%}
 .original-view .screenshot-button img{display:block;width:100%;height:auto;max-height:none;aspect-ratio:360 / 352;object-fit:contain;background:#fff}
 .original-view .screenshot-button>span{min-height:44px;padding:12px 16px;font-size:12px;line-height:1.5;background:#fff}
 .original-view>.story-footnote,.preview-caption{font-size:11px;line-height:1.55;text-align:left;margin:12px 2px 0;color:#77777e}
 .portal-preview{width:100%;padding:22px 20px;border:1px solid #e0e0e5;border-radius:18px;box-shadow:none;min-width:0}
 .portal-heading{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding-bottom:18px;border-bottom:1px solid #ececf0}
 .portal-heading b{font-size:14px;font-weight:600;letter-spacing:0}
 .portal-heading>span{font-size:12px;line-height:1.5}
 .consumption-kpis{display:grid;grid-template-columns:minmax(0,1fr);padding:24px 0;gap:22px}
 .consumption-kpis>div{min-width:0;gap:7px}
 .consumption-kpis>div+div{padding-top:20px;border-top:1px solid #ececf0}
 .consumption-kpis b{font-size:37px;line-height:1.1;font-weight:600;letter-spacing:-.04em;color:#1d1d1f;white-space:nowrap}
 .consumption-kpis small{font-size:16px;letter-spacing:0;color:#6e6e73}
 .consumption-kpis span{font-size:13px;color:#6e6e73}
 .usage-breakdown{padding:18px 0 0;border-top:1px solid #ececf0}
 .usage-title{display:flex;flex-direction:column;gap:5px;margin:0 0 12px;font-size:13px}
 .usage-breakdown>p{font-size:13px;line-height:1.6;color:#6e6e73;margin-top:4px}
 .portal-preview .calculation-note{font-size:12px;line-height:1.6;margin-top:18px;padding-top:16px;border-top:1px solid #ececf0;color:#77777e;overflow-wrap:anywhere}
 .incident-preview h4{font-size:22px;line-height:1.25;letter-spacing:-.025em;margin:20px 0 8px}
 .incident-preview>p{font-size:13px;line-height:1.55}
 .comparison-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 12px;margin:23px 0 18px;padding:0;align-items:start}
 .comparison-kpis>div{min-width:0;gap:6px}
 .comparison-kpis>div>span{font-size:12px;color:#6e6e73}
 .comparison-kpis b{font-size:28px;line-height:1.2;white-space:nowrap;letter-spacing:-.035em}
 .comparison-kpis small{font-size:13px;letter-spacing:0}
 .comparison-kpis .deviation{grid-column:1 / -1;justify-self:start;font-size:15px;padding:6px 11px;border-radius:8px;line-height:1.5;background:#fff3df;color:#8a642b}
 .incident-preview .comparison-context{font-size:13px;line-height:1.6;padding-bottom:18px}
 .response-steps{margin-top:20px}
 .response-steps li{padding-left:34px;padding-bottom:20px}
 .response-steps b{font-size:14px;line-height:1.45}
 .response-steps span{font-size:13px;line-height:1.6;margin-top:5px}
 .included-inline{display:flex;flex-direction:column;align-items:flex-start;gap:18px;max-width:none;margin-top:36px!important;padding-top:28px;border-top:1px solid #dedee4}
 .included-badge{display:block;font-size:12px;font-weight:600;line-height:1.4;margin-bottom:12px;color:#245940}
 .included-inline b{display:block;font-size:23px;line-height:1.25;font-weight:600;letter-spacing:-.025em;margin-bottom:10px}
 .included-inline p{font-size:14px;line-height:1.6;margin:0}
 .included-inline .button{padding:0;min-height:44px;font-size:14px;white-space:normal;justify-content:flex-start;font-weight:500}
 .included-inline .button:after{content:"↗";margin-left:9px;font-size:18px}
 .team-section .section-heading{display:block}
 .team-section .section-heading>p{max-width:none;font-size:16px;line-height:1.6;margin-top:20px}
 .team-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:0}
 .team-person{padding:25px 0 23px;border-top:1px solid #e3e3e8}
 .team-person:last-child{padding-bottom:0}
 .team-person .team-role{min-height:0;font-size:12px;font-weight:500;line-height:1.5;margin:0 0 10px}
 .team-person h3{font-size:26px;line-height:1.2;letter-spacing:-.03em;margin:0 0 6px}
 .team-person .team-degree{font-size:14px;line-height:1.5;margin:0 0 8px;color:#6e6e73}
 .team-details>summary{display:block;list-style:none;min-height:44px;padding:12px 28px 9px 0;font-size:13px;font-weight:400;line-height:1.5;color:#6e6e73}
 .team-details>summary:after{top:8px;right:0;font-size:21px}
 .team-person .team-bio{font-size:14px;line-height:1.65;margin:0 0 10px}
 .team-email{display:flex;align-items:center;min-height:44px;font-size:13px;margin-top:0;padding:8px 0;text-decoration:none;overflow-wrap:anywhere}
 .team-email:after{content:"↗";margin-left:8px;font-size:15px}
 .team-section+.contact-section{background:#f5f5f7;border-color:#e2e2e7}
 .contact-inner{display:flex;flex-direction:column;align-items:stretch;gap:28px;text-align:left;max-width:640px}
 .contact-inner>div>p{font-size:16px;line-height:1.6;margin:18px 0 0}
 .contact-card{max-width:none;padding:0;border:0;background:none;border-radius:0}
 .contact-card h3{font-size:14px;line-height:1.5;color:#6e6e73;margin:0 0 14px}
 .choices{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin:0 0 22px}
 .choices button{min-width:0;min-height:46px;padding:10px 8px;border:1px solid #dcdce2;border-radius:12px;font-size:13px;line-height:1.4;font-weight:400;background:#fff;color:#62626b}
 .choices button:first-child{grid-column:1 / -1}
 .choices button.selected{color:#245940;background:#edf3ef;border-color:#83a08f}
 .contact-card .button.lime{display:flex;width:100%;min-height:50px;margin-top:0;padding:13px 15px;font-size:14px;border-radius:25px}
 .contact-card p{font-size:13px!important;line-height:1.7;margin-top:22px!important;color:#6e6e73!important}
 .contact-card a:not(.button){display:inline-block;min-height:36px;padding-top:5px;color:#245940}
 .footer{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 16px;padding-top:28px;padding-bottom:max(28px,env(safe-area-inset-bottom));font-size:12px;align-items:center;border-top:1px solid #e6e6eb}
 .footer .brand img{width:105px}
 .footer span:nth-child(2){grid-column:1 / -1;grid-row:2;font-size:11px}
 .footer span:nth-child(3){display:none}
 .footer>a:last-child{grid-column:2;grid-row:1;display:flex;align-items:center;min-height:44px;font-size:13px}
 #image-dialog{width:calc(100vw - 24px);max-width:560px;max-height:calc(100dvh - 24px);margin:auto;padding:0 0 12px;background:#fff;border:1px solid #e3e3e8;border-radius:18px;overflow:auto;overscroll-behavior:contain}
 #image-dialog::backdrop{background:#18181ca8;backdrop-filter:blur(5px)}
 #image-dialog .close-dialog{position:sticky;top:0;right:auto;display:block;margin-left:auto;width:100%;min-height:50px;padding:12px 18px;text-align:right;background:#fffffff5;border-bottom:1px solid #eeeef2;font-size:14px;color:#1d1d1f;z-index:1}
 #image-dialog img{width:100%;max-height:none;object-fit:contain;margin:0}
 .reveal.will-reveal{opacity:1;transform:none}
}
@media(max-width:360px){
 .wrap{padding-inline:20px}
 .experience-layout{padding-inline:20px;padding-top:40px}
 .experience-copy h1{font-size:34px}
 .experience-lead{font-size:15px}
 .story-tabs .feature-tab b{font-size:12px}
 .portal-preview{padding:20px 16px}
 .comparison-kpis b{font-size:25px}
 .comparison-kpis small{font-size:12px}
}
