:root{
  --ink:#2B3338; --ink-2:#4A545A; --muted:#58626A; --line:rgba(43,51,56,.14);
  --sand:#F3EDE4; --stone:#E4DACB; --sage:#93AD8E; --sky:#DCE5E8;
  --c-light:#D8962A; --c-energy:#3F8C66; --c-hvac:#3F7DBE; --c-gw:#F0E84A; --c-mesh:#3F7F8A;
  --serif:"Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans:"Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:"Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter:clamp(16px, 5.5vw, 96px);
  --ease:cubic-bezier(.2,.7,.1,1);
}
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
html.lenis,html.lenis body{height:auto}
.lenis.lenis-smooth{scroll-behavior:auto !important}
.lenis.lenis-stopped{overflow:hidden}
body{
  margin:0; color:var(--ink); font-family:var(--sans); font-size:17px; line-height:1.55;
  background:linear-gradient(180deg,#D6E1E5 0%,#E9EAE4 55%,#F3ECE2 100%) fixed;
  background-color:#E9EAE4; overflow-x:hidden; -webkit-font-smoothing:antialiased;
}
img,svg{display:block;max-width:100%}
a{color:inherit}
:focus-visible{outline:2px solid var(--ink);outline-offset:3px;border-radius:6px}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.skip{position:fixed;left:16px;top:-60px;z-index:100;background:var(--ink);color:#fff;padding:10px 14px;border-radius:10px;text-decoration:none}
.skip:focus{top:12px}

/* ---------- stage ---------- */
#stage{position:fixed;inset:0;z-index:0;pointer-events:none}
#stage canvas{width:100%;height:100%;display:block;opacity:0;transition:opacity 1.2s var(--ease)}
#stage.ready canvas{opacity:1}
.fallback-art{display:none}
html:not(.gl) .fallback-art{display:flex;position:fixed;inset:0;z-index:0;pointer-events:none;align-items:center;justify-content:flex-end;padding:90px var(--gutter) 40px}
html:not(.gl) .fallback-art .fb-svg{width:min(52vw,720px);height:auto}

/* annotation tags pinned to 3D points */
.tags{position:fixed;inset:0;z-index:1;pointer-events:none;overflow:hidden}
.tag{position:absolute;left:0;top:0;opacity:0;font:500 11px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--ink);white-space:nowrap;will-change:transform,opacity}
.tag span{display:inline-flex;align-items:center;gap:8px;padding:7px 10px 7px 9px;border-radius:999px;background:rgba(255,255,255,.72);backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);box-shadow:0 6px 20px -10px rgba(43,51,56,.35)}
.tag span::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--tc,var(--ink))}
.tag::after{content:"";position:absolute;left:0;top:100%;width:1px;height:var(--ld,38px);background:linear-gradient(var(--ink),transparent);opacity:.35}
.tag{transform-origin:0 100%}
.tag.flip{transform-origin:100% 100%}
.tag.flip::after{left:auto;right:0}
.tag .tx{display:flex;flex-direction:column;gap:5px;font-style:normal}
.tag small{display:block;font:500 9.5px/1.25 var(--mono);letter-spacing:.04em;text-transform:none;color:var(--muted)}
.tag.multi span{align-items:flex-start;border-radius:14px;padding:9px 13px 10px 10px}
.tag.multi span::before{margin-top:2px}
.tag strong{display:block;font:500 22px/1 var(--sans);letter-spacing:-.01em;text-transform:none;color:var(--ink)}
.tag strong b{font-weight:500}
.tag svg{width:104px;height:26px;overflow:visible}
.tag svg path{fill:none;stroke:var(--tc);stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}

/* ---------- header ---------- */
.site-head{position:fixed;top:0;left:0;right:0;z-index:20;display:flex;align-items:center;gap:14px;padding:18px var(--gutter);transition:padding .5s var(--ease)}
.site-head::before{content:"";position:absolute;inset:0 0 -26px;background:linear-gradient(180deg,rgba(234,237,234,.96) 0%,rgba(234,237,234,.85) 60%,rgba(234,237,234,0));opacity:0;transition:opacity .5s;pointer-events:none}
.scrolled .site-head::before{opacity:1}
.site-head > *{position:relative;z-index:1}
.scrolled .site-head{padding-top:12px;padding-bottom:12px}
.brand{position:relative;display:flex;align-items:center;gap:10px;text-decoration:none;color:var(--ink)}
.brand img{height:36px;width:auto;display:block}
.brand .wm{display:flex;flex-direction:column;line-height:1}
.brand .wm b{font:600 15px/1 var(--sans);letter-spacing:.02em}
.brand .wm small{font:500 8.5px/1 var(--mono);letter-spacing:.24em;margin-top:4px}
.switch{position:relative}
.switch summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:9px;height:38px;padding:0 14px 0 12px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.55);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);font:500 13px/1 var(--sans);transition:background .3s,border-color .3s}
.switch summary::-webkit-details-marker{display:none}
.switch summary:hover{background:rgba(255,255,255,.85)}
.switch .dots{display:flex}
.switch .dots i{width:9px;height:9px;border-radius:50%;margin-left:-3px;border:1.5px solid #F4F1EC}
.switch .dots i:first-child{margin-left:0}
.switch .chev{width:10px;transition:transform .35s var(--ease)}
.switch[open] .chev{transform:rotate(180deg)}
.switch-menu{position:absolute;top:calc(100% + 10px);left:0;width:min(370px,calc(100vw - 32px));padding:10px;border-radius:20px;background:rgba(250,248,244,.94);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border:1px solid rgba(255,255,255,.9);box-shadow:0 30px 60px -24px rgba(43,51,56,.35),0 2px 8px rgba(43,51,56,.06);animation:menuIn .35s var(--ease)}
@keyframes menuIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
.switch-menu p{margin:6px 10px 8px;font:500 10.5px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.switch-menu ul{list-style:none;margin:0;padding:0}
.switch-menu a{display:grid;grid-template-columns:12px 1fr;gap:4px 12px;padding:12px;border-radius:14px;text-decoration:none;transition:background .25s}
.switch-menu a:hover,.switch-menu a:focus-visible{background:rgba(43,51,56,.06)}
.switch-menu .mk{grid-row:span 2;width:12px;height:12px;border-radius:4px;margin-top:3px;background:var(--mc)}
.switch-menu strong{font:600 14.5px/1.2 var(--sans);display:flex;gap:8px;align-items:center}
.switch-menu em{font-style:normal;font-size:13px;line-height:1.4;color:var(--muted)}
.switch-menu .here{font:500 9.5px/1 var(--mono);letter-spacing:.12em;text-transform:uppercase;padding:4px 6px;border-radius:6px;background:rgba(147,173,142,.25);color:#34503a}
.nav{display:flex;gap:4px;margin-left:auto}
.nav a{font-size:14px;text-decoration:none;padding:9px 13px;border-radius:999px;color:var(--ink-2);transition:background .3s,color .3s}
.nav a:hover{background:rgba(255,255,255,.6);color:var(--ink)}
.btn{display:inline-flex;align-items:center;gap:10px;height:44px;padding:0 20px 0 16px;border-radius:999px;border:0;background:var(--ink);color:#F6F3EE;font:500 14.5px/1 var(--sans);text-decoration:none;cursor:pointer;transition:transform .4s var(--ease),box-shadow .4s var(--ease),background .3s;box-shadow:0 10px 24px -12px rgba(43,51,56,.6)}
.btn::before{content:"";width:8px;height:8px;border-radius:50%;background:var(--c-gw);box-shadow:0 0 0 0 rgba(240,232,74,.7);transition:box-shadow .5s}
.btn:hover{transform:translateY(-1px);box-shadow:0 16px 30px -14px rgba(43,51,56,.7)}
.btn:hover::before{box-shadow:0 0 0 5px rgba(240,232,74,.18)}
.site-head .btn{height:40px;font-size:14px}
.btn.ghost{background:transparent;color:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}
.btn.ghost::before{display:none}
.btn.ghost:hover{background:rgba(255,255,255,.55)}

/* ---------- progress rail ---------- */
.rail{position:fixed;right:calc(var(--gutter) * .45);top:50%;transform:translateY(-50%);z-index:5;display:flex;flex-direction:column;gap:10px;opacity:0;transition:opacity .6s}
.gl .rail{opacity:1}
.rail i{display:block;width:14px;height:1.5px;background:rgba(43,51,56,.25);margin-left:auto;transition:width .5s var(--ease),background .5s}
.rail i.on{width:30px;background:var(--ink)}
.rail-label{position:fixed;right:calc(var(--gutter) * .45 + 40px);top:50%;transform:translateY(-50%);z-index:5;font:500 10.5px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--muted);opacity:0;transition:opacity .6s}
.gl .rail-label{opacity:0}

/* ---------- chapters ---------- */
main{position:relative;z-index:2}
.ch{position:relative;min-height:125vh;display:flex;align-items:center;padding:120px var(--gutter)}
.ch.right{justify-content:flex-end}
.panel{width:min(470px,100%)}
.panel.wide{width:min(640px,100%)}
.eyebrow{display:flex;align-items:center;gap:10px;margin:0 0 22px;font:500 11.5px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--ink-2)}
.eyebrow .d{width:8px;height:8px;border-radius:50%;background:var(--dc,var(--ink));box-shadow:0 0 0 4px color-mix(in srgb,var(--dc,var(--ink)) 18%,transparent)}
.eyebrow .n{color:var(--muted)}
h1,h2{font-family:var(--serif);font-weight:400;letter-spacing:-.012em;margin:0;text-wrap:balance}
h1{font-size:clamp(46px,6.1vw,96px);line-height:.96}
h1 em,h2 em{font-style:italic}
h2{font-size:clamp(36px,4.1vw,62px);line-height:1.02}
.lede{margin:28px 0 0;max-width:30em;font-size:clamp(16.5px,1.25vw,19px);color:var(--ink-2)}
.panel p.after{margin:18px 0 0;color:var(--ink-2);max-width:26em}
.actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:36px}
.hero{min-height:100vh;align-items:center;padding-top:140px}
.hero .panel{width:min(640px,100%)}
.hero .lede{max-width:26em;text-wrap:pretty}
.scroll-cue{position:absolute;left:var(--gutter);bottom:34px;display:flex;align-items:center;gap:14px;font:500 10.5px/1 var(--mono);letter-spacing:.18em;text-transform:uppercase;color:var(--muted)}
.scroll-cue i{position:relative;display:block;width:56px;height:1px;background:rgba(43,51,56,.2);overflow:hidden}
.scroll-cue i::after{content:"";position:absolute;inset:0;background:var(--ink);transform:translateX(-100%);animation:cue 2.6s var(--ease) infinite}
@keyframes cue{0%{transform:translateX(-100%)}60%,100%{transform:translateX(100%)}}

/* sensors that join the same mesh: one small chip each */
.sensors{margin:22px 0 0}
.sensors .sl{margin:0 0 10px;font:500 10.5px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.sensors ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.sensors li{display:inline-flex;align-items:center;gap:7px;padding:6px 11px 6px 9px;border-radius:999px;background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.85);font:500 13px/1.2 var(--sans);color:var(--ink-2);white-space:nowrap}
.sensors li::before{content:"";flex:none;width:6px;height:6px;border-radius:50%;background:var(--c-mesh)}

/* your dashboard: one illustrative product screen */
.panel.dashp{width:min(760px,100%)}
.dashp h2{max-width:13em}
.dashp p.after{max-width:34em}
.dash{margin:28px 0 0;padding:14px;border-radius:22px;background:rgba(251,249,245,.9);border:1px solid rgba(255,255,255,.95);box-shadow:0 40px 80px -42px rgba(43,51,56,.42),0 2px 6px rgba(43,51,56,.05)}
.dash-top{display:flex;align-items:center;gap:14px;padding:2px 4px 12px}
.dash-title{display:flex;align-items:center;gap:9px;font:600 14px/1 var(--sans);color:var(--ink)}
.dash-title i{width:7px;height:7px;border-radius:50%;background:var(--c-energy);box-shadow:0 0 0 3px color-mix(in srgb,var(--c-energy) 20%,transparent)}
.dash-tabs{display:flex;gap:2px;margin-left:auto;padding:3px;border-radius:999px;background:rgba(43,51,56,.05);font:500 11.5px/1 var(--sans);color:var(--muted)}
.dash-tabs span{padding:5px 10px;border-radius:999px}
.dash-tabs span.on{background:#fff;color:var(--ink);box-shadow:0 1px 3px rgba(43,51,56,.1)}
.dash-note{font:500 10px/1 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--muted);white-space:nowrap}
.dash-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-areas:"en en air" "circ light hvac";gap:10px}
.tile{position:relative;min-width:0;padding:14px 15px 15px;border-radius:15px;background:#FFFEFB;border:1px solid rgba(43,51,56,.08)}
.t-en{grid-area:en}.t-air{grid-area:air}.t-circ{grid-area:circ}.t-light{grid-area:light}.t-hvac{grid-area:hvac}
.th{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin-bottom:10px;font:500 10.5px/1.2 var(--mono);letter-spacing:.1em;text-transform:uppercase;color:var(--ink-2)}
.th em{font-style:normal;letter-spacing:.04em;text-transform:none;color:var(--muted)}
.tv{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;font-variant-numeric:tabular-nums}
.tv strong{font:500 30px/1 var(--sans);letter-spacing:-.02em;color:var(--ink)}
.tv small{font:400 13px/1 var(--sans);color:var(--muted)}
.tv .sub{margin-left:auto;font:400 12.5px/1.2 var(--sans);color:var(--muted)}
.trend-wrap{position:relative;margin-top:12px;height:74px}
.trend{width:100%;height:100%;overflow:visible}
.trend .y{fill:none;stroke:rgba(43,51,56,.28);stroke-width:1.2;stroke-dasharray:3 4;vector-effect:non-scaling-stroke}
.trend .ar{fill:color-mix(in srgb,var(--c-energy) 12%,transparent)}
.trend .ln{fill:none;stroke:var(--c-energy);stroke-width:2;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.trend .grid{stroke:rgba(43,51,56,.07);stroke-width:1;vector-effect:non-scaling-stroke}
.trend-wrap .now{position:absolute;left:62.5%;top:17.9%;width:9px;height:9px;margin:-4.5px 0 0 -4.5px;border-radius:50%;background:var(--c-energy);box-shadow:0 0 0 4px color-mix(in srgb,var(--c-energy) 22%,transparent)}
.axis{display:flex;justify-content:space-between;margin-top:6px;font:500 10px/1 var(--mono);color:var(--muted)}
.key{display:flex;gap:14px;font:400 11.5px/1 var(--sans);color:var(--muted)}
.key i{display:inline-block;width:14px;height:0;margin-right:6px;vertical-align:middle;border-top:2px solid var(--c-energy)}
.key i.y{border-top:1.5px dashed rgba(43,51,56,.4)}
.bars,.stats,.legend{list-style:none;margin:0;padding:0}
.bars{display:grid;gap:9px}
.bars li{display:grid;grid-template-columns:1fr auto;gap:5px 8px;font:400 12.5px/1.15 var(--sans);color:var(--ink-2)}
.bars b{font-weight:500;color:var(--ink);font-variant-numeric:tabular-nums}
.bars i{grid-column:1 / -1;display:block;height:4px;border-radius:2px;background:rgba(43,51,56,.07);overflow:hidden}
.bars i::after{content:"";display:block;height:100%;width:calc(var(--w) * 100%);border-radius:2px;background:var(--c-energy);opacity:calc(.45 + var(--w) * .55)}
.seg{display:flex;gap:3px;height:10px;margin:4px 0 14px}
.seg i{flex:var(--n);border-radius:3px}
.seg .on,.legend .on::before{background:var(--c-light)}
.seg .dim,.legend .dim::before{background:color-mix(in srgb,var(--c-light) 42%,#fff)}
.seg .off,.legend .off::before{background:rgba(43,51,56,.13)}
.legend{display:grid;grid-template-columns:repeat(3,auto);justify-content:space-between;gap:6px}
.legend li{display:flex;flex-direction:column;gap:4px;font:400 12px/1 var(--sans);color:var(--muted)}
.legend li::before{content:"";width:8px;height:8px;border-radius:2px}
.legend b{font:500 22px/1 var(--sans);color:var(--ink);font-variant-numeric:tabular-nums}
.stats{display:grid;gap:8px}
.stats li{display:grid;grid-template-columns:1fr auto auto;align-items:baseline;gap:10px;font:400 12.5px/1.15 var(--sans);color:var(--ink-2)}
.stats b{font:500 16px/1 var(--sans);color:var(--ink);font-variant-numeric:tabular-nums}
.stats small{font:400 11.5px/1 var(--sans);color:var(--muted);font-variant-numeric:tabular-nums;min-width:3.6em;text-align:right}
.gauge{position:relative;height:6px;margin:16px 0 8px;border-radius:3px;background:linear-gradient(90deg,color-mix(in srgb,var(--c-energy) 55%,#fff) 0 45%,color-mix(in srgb,var(--c-light) 50%,#fff) 45% 75%,color-mix(in srgb,#C0634A 45%,#fff) 75%)}
.gauge i{position:absolute;top:50%;left:calc(var(--p) * 100%);width:12px;height:12px;margin:-6px 0 0 -6px;border-radius:50%;background:#fff;border:2.5px solid var(--c-energy);box-shadow:0 1px 3px rgba(43,51,56,.2)}
.gl{display:flex;justify-content:space-between;font:500 10px/1 var(--mono);color:var(--muted)}
.ok{display:inline-flex;align-items:center;gap:6px;margin-top:12px;padding:5px 9px;border-radius:999px;background:color-mix(in srgb,var(--c-energy) 13%,transparent);font:500 12px/1 var(--sans);color:#2F6B4E}
/* motion: tiles ease in one after another, the trend line draws once */
.rv .dash .tile{opacity:0;transform:translate3d(0,14px,0);transition:opacity .8s var(--ease),transform .9s var(--ease);transition-delay:calc(.35s + var(--j,0) * 90ms)}
.rv .in .dash .tile{opacity:1;transform:none}
.rv .dash .trend-wrap{clip-path:inset(0 100% 0 0);transition:clip-path 1.8s cubic-bezier(.45,.05,.25,1) .75s}
.rv .in .dash .trend-wrap{clip-path:inset(0 0 0 0)}

/* how it goes */
.how{position:relative;height:400vh;padding:0}
.how .sticky{position:sticky;top:0;height:100vh;display:flex;align-items:center;padding:110px var(--gutter) 60px}
.how .marker{position:absolute;left:0;width:1px;height:1px}
.steps{list-style:none;margin:34px 0 0;padding:0;counter-reset:s;border-top:1px solid var(--line)}
.steps li{display:grid;grid-template-columns:44px 1fr;gap:2px 10px;padding:18px 0 18px;border-bottom:1px solid var(--line);transition:opacity .6s var(--ease)}
.steps .k{font:500 11px/1.9 var(--mono);letter-spacing:.1em;color:var(--muted)}
.steps b{font:400 clamp(26px,2.3vw,34px)/1.05 var(--serif);letter-spacing:-.01em}
.steps span.t{grid-column:2;max-width:22em;font-size:15.5px;color:var(--ink-2);max-height:0;opacity:0;overflow:hidden;transition:max-height .6s var(--ease),opacity .6s var(--ease),margin .6s var(--ease)}
.js-how .steps li{opacity:.38}
.js-how .steps li.on{opacity:1}
.js-how .steps li.on span.t{max-height:140px;opacity:1;margin-top:8px}
html:not(.js-how) .steps span.t{max-height:none;opacity:1;margin-top:8px}
.steps li.on .k{color:var(--ink)}

/* a short beat that follows the chapter before it */
.ch.short{min-height:100vh}
.panel .link{margin-top:22px}

/* what H4 does: one chip per service */
.svc-list{list-style:none;margin:28px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:8px}
.svc-list li{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:14px;background:rgba(255,255,255,.62);border:1px solid rgba(255,255,255,.85);font:500 14.5px/1.3 var(--sans);color:var(--ink)}
.svc-list li::before{content:"";flex:none;width:8px;height:8px;margin-top:5px;border-radius:50%;background:var(--sc,var(--ink))}
.svc-list small{display:block;margin-top:3px;font:400 12.5px/1.35 var(--sans);color:var(--muted)}

/* proof */
.proof h2{max-width:13em}
.proof .line{margin:18px 0 0;color:var(--ink-2);max-width:30em}
.big{display:block;font:400 clamp(96px,11vw,170px)/.82 var(--serif);letter-spacing:-.035em;margin:30px 0 0 -6px}
.big small{display:block;font:italic 400 clamp(28px,2.6vw,40px)/1 var(--serif);letter-spacing:0;margin:0 0 18px 6px;color:var(--ink-2)}
.proof .what{font-size:clamp(17px,1.4vw,21px);margin:26px 0 0;max-width:22em}
.foot-note{display:block;margin-top:12px;font:500 11px/1.4 var(--mono);letter-spacing:.06em;color:var(--muted)}
.std{margin:30px 0 0;padding-top:22px;border-top:1px solid var(--line);color:var(--ink-2);max-width:28em;font-size:15.5px}
.link{display:inline-flex;align-items:center;gap:10px;margin-top:26px;font-weight:500;text-decoration:none;padding-bottom:4px;background:linear-gradient(var(--ink),var(--ink)) 0 100%/100% 1px no-repeat;transition:background-size .5s var(--ease),gap .4s var(--ease)}
.link:hover{gap:16px;background-size:30% 1px}
.link svg{width:14px}

/* cta */
.cta .card{width:min(500px,100%);padding:clamp(26px,3vw,44px);border-radius:28px;background:rgba(255,253,250,.62);backdrop-filter:blur(22px) saturate(1.1);-webkit-backdrop-filter:blur(22px) saturate(1.1);border:1px solid rgba(255,255,255,.85);box-shadow:0 40px 80px -40px rgba(80,60,40,.35)}
.cta h2{font-size:clamp(40px,4.4vw,64px)}
.cta .line{margin:14px 0 0;color:var(--ink-2);font-size:15.5px}
form{margin-top:22px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
form > .full, form > .btn, form > .sent{grid-column:1 / -1}
.f{min-width:0}
.f label{display:block;font:500 10.5px/1 var(--mono);letter-spacing:.14em;text-transform:uppercase;color:var(--ink-2);margin-bottom:7px}
.f label small{font:inherit;letter-spacing:.08em;text-transform:none;color:var(--muted)}
.f input,.f select,.f textarea{width:100%;height:46px;padding:0 14px;border-radius:12px;border:1px solid rgba(43,51,56,.18);background:rgba(255,255,255,.75);font:400 16px/1 var(--sans);color:var(--ink);transition:border-color .3s,background .3s,box-shadow .3s;appearance:none;-webkit-appearance:none}
.f select{padding-right:32px;text-overflow:ellipsis}
.f textarea{height:68px;padding:12px 14px;line-height:1.35;resize:vertical}
.f textarea:focus{outline:none;border-color:var(--ink);background:#fff;box-shadow:0 0 0 4px rgba(43,51,56,.08)}
.note a{color:var(--ink-2);text-underline-offset:3px}
.f select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%232B3338' stroke-width='1.4'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right 14px center;background-size:10px}
.f input:focus,.f select:focus{outline:none;border-color:var(--ink);background:#fff;box-shadow:0 0 0 4px rgba(43,51,56,.08)}
form .btn{width:100%;justify-content:center;height:52px;margin-top:6px;font-size:15.5px}
.note{margin:14px 0 0;font-size:13.5px;color:var(--muted);text-align:center}
.sent{display:none;margin-top:16px;padding:14px 16px;border-radius:12px;background:rgba(147,173,142,.22);color:#2f4a34;font-size:15px}
form.done .sent{display:block}

/* footer */
.site-foot{position:relative;z-index:3;background:#ECE4D8;border-top:1px solid rgba(43,51,56,.08);padding:64px var(--gutter) 34px}
.site-foot .row{display:grid;grid-template-columns:1.2fr 1fr 1fr;gap:40px}
.site-foot h3{margin:0 0 16px;font:500 10.5px/1 var(--mono);letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.site-foot ul{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.site-foot a{text-decoration:none}
.site-foot a:hover{text-decoration:underline;text-underline-offset:3px}
.site-foot .mk{display:inline-block;width:9px;height:9px;border-radius:3px;background:var(--mc);margin-right:10px}
.site-foot address{font-style:normal;display:grid;gap:8px;color:var(--ink-2);font-size:15.5px}
.site-foot .base{margin-top:54px;padding-top:22px;border-top:1px solid var(--line);font-size:13px;color:var(--muted);display:flex;justify-content:space-between;gap:20px;flex-wrap:wrap}
.site-foot .base nav{display:flex;gap:18px;flex-wrap:wrap}
.site-foot ul small{display:block;margin:3px 0 0 19px;font-size:13px;color:var(--muted)}
.site-foot address b{font-weight:600;color:var(--ink)}

/* reveal (only once the script has set it up, so content shows without JS) */
.rv .panel > *, .rv .card > *{opacity:0;transform:translate3d(0,22px,0);transition:opacity 1s var(--ease),transform 1.1s var(--ease);transition-delay:calc(var(--i,0) * 90ms)}
.rv .in .panel > *, .rv .in .card > *, .rv .in.panel > *{opacity:1;transform:none}

/* static layout: no WebGL, no JS, or reduced motion. Model sits on the right, text on the left */
html:not(.gl) .ch.right,html.static .ch.right{justify-content:flex-start}

@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation:none !important;transition-duration:.01ms !important}
  .rv .panel > *, .rv .card > *, .rv .dash .tile{opacity:1;transform:none;transition-delay:0s !important}
  .rv .dash .trend-wrap{clip-path:none}
}

/* ---------- small screens ---------- */
@media (max-width: 1120px){
  .nav{gap:0}
  .nav a{padding:9px 9px;font-size:13.5px;white-space:nowrap}
}
@media (max-width: 1000px){
  .nav a{padding:9px 6px;font-size:13px}
}
@media (max-width: 900px){
  .nav{display:none}
  .site-head{gap:8px;padding:12px 16px}
  .site-head .btn{margin-left:auto;height:38px;padding:0 14px 0 12px;font-size:13px}
  .rail,.rail-label{display:none}
}
@media (max-width: 760px){
  body{font-size:16px}
  .brand .wm{display:none}
  .switch summary{height:36px;padding:0 11px;font-size:12.5px;gap:7px}
  .ch,.ch.right{min-height:118vh;align-items:flex-end;justify-content:flex-start;padding:90px 16px 14vh}
  .panel,.panel.wide{width:100%}
  .ch:not(.hero):not(.cta) .panel,.how .panel{padding:22px 20px 24px;border-radius:22px;background:rgba(250,248,244,.74);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.8);box-shadow:0 24px 50px -30px rgba(43,51,56,.35)}
  .hero{min-height:100svh;align-items:flex-start;padding-top:96px}
  h1{font-size:clamp(40px,11.4vw,52px)}
  h2{font-size:clamp(30px,8.6vw,40px)}
  .lede{margin-top:18px}
  .actions{margin-top:24px}
  .hero .actions{position:absolute;left:16px;right:16px;bottom:22px;margin:0}
  .hero .actions .btn{flex:1;justify-content:center;padding:0 14px}
  .scroll-cue{display:none}
  .eyebrow{margin-bottom:14px}
  .how .sticky{align-items:flex-end;padding:90px 16px 5vh}
  .steps{margin-top:18px}
  .steps li{padding:12px 0}
  .js-how .steps li:not(.on){display:none}
  .js-how .steps{border-top:0}
  .js-how .steps li.on{border-bottom:0}
  .step-dots{display:flex !important}
  .big{font-size:clamp(78px,24vw,110px);margin-top:20px}
  .big small{font-size:24px;margin-bottom:10px}
  .proof .what{margin-top:16px}
  .svc-list{margin-top:18px;gap:6px}
  .svc-list li{padding:9px 11px;font-size:13.5px;gap:8px}
  .svc-list small{font-size:11.5px}
  .cta{align-items:flex-end}
  .cta .card{padding:22px 18px}
  .cta h2{font-size:clamp(32px,9vw,40px)}
  form{grid-template-columns:1fr;gap:10px;margin-top:16px}
  .f label{margin-bottom:5px}
  .f input,.f select{height:44px}
  .f textarea{height:58px}
  form .btn{height:48px;margin-top:4px}
  .note{margin-top:10px}
  .site-foot .row{grid-template-columns:1fr;gap:34px}
  html:not(.gl) .fallback-art{align-items:flex-end;justify-content:center;padding:0 24px 96px}
  html:not(.gl) .fallback-art .fb-svg{width:min(100%,330px)}
  .tag{font-size:10px}
  /* mesh: sensor chips stay one compact block so the card leaves the building in view */
  .mesh-ch .panel p.after{margin-top:12px;font-size:15px;line-height:1.5}
  .sensors{margin-top:14px}
  .sensors .sl{margin-bottom:8px}
  .sensors ul{gap:5px}
  .sensors li{padding:4px 9px 4px 7px;font-size:12px;gap:6px}
  /* proof: the figure sits beside its line, so the card is shorter and the building reads above it */
  .proof .line{margin-top:12px;font-size:15px;line-height:1.5}
  .proof .stat{display:grid;grid-template-columns:auto 1fr;align-items:end;gap:14px;margin-top:16px}
  .proof .big{font-size:clamp(64px,19vw,84px);margin:0 0 0 -3px}
  .proof .big small{font-size:20px;margin:0 0 6px 3px}
  .proof .what{margin:0 0 4px;font-size:15px;line-height:1.35}
  .proof .foot-note{margin-top:6px;font-size:10px}
  .proof .link{margin-top:16px}
  /* dashboard: two columns, the circuit list steps aside so four tiles fit a phone screen */
  .dashp p.after{font-size:15px;line-height:1.5;margin-top:12px}
  .dash{margin-top:16px;padding:8px;border-radius:17px;box-shadow:0 18px 40px -30px rgba(43,51,56,.4)}
  .dash-top{padding:2px 4px 8px;gap:8px}
  .dash-tabs{display:none}
  .dash-note{margin-left:auto;font-size:9px}
  .dash-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-areas:"en en" "light air" "hvac hvac";gap:6px}
  .t-circ{display:none}
  .t-light .th em{display:none}
  .tile{padding:10px 11px 11px;border-radius:12px}
  .th{margin-bottom:7px;font-size:9.5px}
  .tv strong{font-size:24px}
  .trend-wrap{height:46px;margin-top:8px}
  .key{display:none}
  .legend b{font-size:18px}
  .ok{margin-top:9px}
  .gauge{margin:12px 0 7px}
  .stats{grid-template-columns:1fr 1fr;gap:6px 14px}
  .stats li{gap:5px}
  .stats li span{white-space:nowrap}
  .stats b{font-size:14px}
  .stats small{min-width:0;white-space:nowrap}
}
@media (max-width: 400px){
  .stats{gap:6px 10px}
  .stats li{gap:4px;font-size:11.5px}
  .stats b{font-size:13px}
  .stats small{font-size:10.5px}
}
/* short phones: the dashboard and the form both fit under the header */
@media (max-width: 760px) and (max-height: 700px){
  .ch.dash-ch:not(.hero):not(.cta) .panel{padding:16px 16px 14px}
  .dash-ch .eyebrow{margin-bottom:8px}
  .dashp h2{font-size:26px}
  .dashp p.after{font-size:14px;margin-top:8px}
  .dash{margin-top:10px}
  .trend-wrap{height:30px;margin-top:6px}
  .axis{display:none}
  .legend li{gap:3px}
  .ok{margin-top:6px}
  .gauge{margin:9px 0 6px}
  .cta .card{padding:16px 16px 14px}
  .cta h2{font-size:30px}
  .cta .line{margin-top:8px;font-size:14px}
  form{grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
  .f label{font-size:9.5px;letter-spacing:.1em}
  .f input,.f select{height:40px}
  .f select{padding:0 23px 0 10px;background-position:right 9px center}
  .f textarea{height:46px}
  form .btn{height:44px;margin-top:2px}
  .note{margin-top:8px;font-size:12.5px}
}
/* shorter desktop screens: a slightly smaller heading and chart keep the whole dashboard in view */
@media (min-width: 761px){
  .dash-ch{padding-top:150px;padding-bottom:90px}
}
@media (min-width: 761px) and (max-height: 860px){
  .dashp h2{font-size:clamp(34px,3.4vw,50px)}
  .dashp p.after{margin-top:12px}
  .dash{margin-top:18px}
  .trend-wrap{height:54px}
}
.step-dots{display:none;gap:6px;margin-top:16px}
.step-dots i{width:22px;height:3px;border-radius:2px;background:rgba(43,51,56,.18);transition:background .4s}
.step-dots i.on{background:var(--ink)}

/* Header call to action: the full wording where there is room beside the menu, a short one below that. */
header .btn{white-space:nowrap}
.cta-short{display:none}
@media (max-width:1099px){.cta-long{display:none}.cta-short{display:inline}}

/* The real H4 logo (from the live site) is a single image. Smaller on phones so the header keeps its room. */
@media (max-width:600px){.brand img{height:30px}}
/* Hero buttons stack on narrow screens so neither label wraps. */
.hero .actions{flex-wrap:wrap}
.hero .actions .btn{white-space:nowrap}

/* Temporary contact buttons in place of the form. */
.contact-now{display:flex;flex-wrap:wrap;gap:12px;margin-top:26px}
.contact-now .btn{white-space:nowrap}
/* QA nit: keep the site switcher label on one line on the narrowest phones. */
.switch summary{white-space:nowrap}

/* QA-02: on narrow screens the hero paragraph sits over the building, so it gets a soft card in the page colour and
   the ghost button a solid face, which keeps both legible without moving the model. */
@media (max-width:900px){
  .hero .lede{background:rgba(246,243,238,.86);border-radius:14px;padding:10px 12px;margin-left:-12px;margin-right:-12px}
  .hero .btn.ghost{background:rgba(250,248,244,.94)}
}
/* Scroll performance (2026-10-26). Backdrop blur is re-computed every frame for anything moving behind it,
   and its cost grows with the radius. These elements sit over scrolling or animating content, so they use
   a smaller radius; over soft backgrounds the frosted look is nearly identical. */
/* Panels only carry a card (and so a blur) in the phone layout; on desktop the text sits straight on the scene. */
@media (max-width: 760px){ .ch:not(.hero):not(.cta) .panel, .how .panel { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); } }
.cta .card { -webkit-backdrop-filter: blur(10px) saturate(1.1); backdrop-filter: blur(10px) saturate(1.1); }
.tag span, .switch summary { -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
