/* H4 Building Performance, draft 02 "Atmospheric Glass" */

:root {
  --bg: #EEF2F8;
  --ink: #17202B;
  --ink-2: #3F4B5D;
  --ink-3: #566275;
  --soft: #6A7586;
  --c-light: #E39A55;
  --c-energy: #22A383;
  --c-hvac: #4672EE;
  --c-occ: #8E6FEA;
  --c-gw: #E2CF2A;
  --c-perf: #22A383;
  --c-case: #E39A55;
  --c-ai: #8E6FEA;
  --focus: #3F66E6;
  --stroke: rgba(255, 255, 255, .78);
  --hair: rgba(23, 32, 43, .09);
  --shadow-lg: 0 50px 120px -50px rgba(34, 54, 104, .42), 0 18px 40px -24px rgba(34, 54, 104, .22);
  --shadow-sm: 0 10px 30px -16px rgba(34, 54, 104, .3);
  --ease: cubic-bezier(.2, .75, .1, 1);
  --pad-x: clamp(16px, 4.4vw, 64px);
  --maxw: 1312px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -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;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  color: var(--ink);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 3px; border-radius: 10px; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; background: #fff; border-radius: 12px; box-shadow: var(--shadow-sm); transition: top .3s var(--ease); }
.skip:focus { top: 16px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }

/* ---------- Atmosphere ---------- */
.atmo {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 50% at 12% 18%, #CBDDF6 0%, transparent 70%),
    radial-gradient(50% 45% at 88% 22%, #DCD3F8 0%, transparent 70%),
    radial-gradient(55% 50% at 72% 86%, #CBEFE2 0%, transparent 70%),
    radial-gradient(40% 35% at 18% 92%, #FCDCC8 0%, transparent 70%),
    var(--bg);
}
#sky, #mesh { position: absolute; inset: 0; width: 100%; height: 100%; }
#sky { opacity: 0; transition: opacity 1.6s ease; }
.gl-on #sky { opacity: 1; }
.grain {
  position: absolute; inset: 0; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .55 0 0 0 0 .65 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Glass ---------- */
.glass {
  position: relative;
  background: linear-gradient(150deg, rgba(255, 255, 255, .66), rgba(255, 255, 255, .34));
  border: 1px solid var(--stroke);
  -webkit-backdrop-filter: blur(24px) saturate(1.5);
  backdrop-filter: blur(24px) saturate(1.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), var(--shadow-lg);
}
[data-spot] { --mx: 50%; --my: 0%; }
[data-spot]::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 255, 255, .55), transparent 45%);
  opacity: .6; transition: opacity .6s ease;
}
[data-spot]:hover::before { opacity: 1; }

/* ---------- Header ---------- */
.site-header { position: fixed; top: 14px; left: 0; right: 0; z-index: 50; padding: 0 var(--pad-x); pointer-events: none; }
.bar {
  pointer-events: auto;
  max-width: var(--maxw); margin: 0 auto; height: 62px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 9px 0 18px; border-radius: 999px; position: relative; isolation: isolate;
}
/* The frosted layer lives on a pseudo element so the bar is not a backdrop root
   and the site menu inside it can blur the page too. */
.bar::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit;
  background: rgba(255, 255, 255, .42);
  border: 1px solid rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 14px 40px -24px rgba(34, 54, 104, .35);
  transition: background .5s ease, box-shadow .5s ease;
}
.scrolled .bar::before { background: rgba(255, 255, 255, .62); box-shadow: inset 0 1px 0 #fff, 0 18px 50px -24px rgba(34, 54, 104, .45); }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; border-radius: 10px; }
.brand .mark { width: 22px; height: 27px; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.wordmark span { font-size: 8.5px; font-weight: 600; letter-spacing: .24em; margin-top: 3px; color: var(--ink-2); }

.switcher { position: relative; margin-left: 8px; }
.switch-btn {
  display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 12px 0 11px;
  border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 550;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(23, 32, 43, .1);
  transition: background .3s ease, border-color .3s ease, box-shadow .3s ease, transform .4s var(--ease);
}
.switch-btn:hover { background: rgba(255, 255, 255, .9); box-shadow: 0 8px 20px -12px rgba(34, 54, 104, .45); }
.switch-btn:active { transform: scale(.97); }
.sw-dots { position: relative; width: 16px; height: 14px; }
.sw-dots i { position: absolute; width: 7px; height: 7px; border-radius: 50%; transition: transform .5s var(--ease); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .9); }
.sw-dots i:nth-child(1) { background: var(--c-perf); left: 0; top: 0; }
.sw-dots i:nth-child(2) { background: var(--c-case); right: 0; top: 0; }
.sw-dots i:nth-child(3) { background: var(--c-ai); left: 4.5px; bottom: 0; }
.switch-btn:hover .sw-dots i:nth-child(1), .open .sw-dots i:nth-child(1) { transform: translate(-1.5px, -1px); }
.switch-btn:hover .sw-dots i:nth-child(2), .open .sw-dots i:nth-child(2) { transform: translate(1.5px, -1px); }
.switch-btn:hover .sw-dots i:nth-child(3), .open .sw-dots i:nth-child(3) { transform: translateY(1.5px); }
.chev { width: 12px; height: 12px; transition: transform .45s var(--ease); color: var(--ink-3); }
.open .chev { transform: rotate(180deg); }

.sites-menu {
  position: absolute; top: calc(100% + 14px); left: -6px; width: 372px; padding: 10px;
  border-radius: 24px; background: rgba(250, 252, 255, .86);
  border: 1px solid rgba(255, 255, 255, .95);
  -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6);
  box-shadow: inset 0 1px 0 #fff, 0 40px 80px -30px rgba(34, 54, 104, .45), 0 8px 20px -10px rgba(34, 54, 104, .2);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98); transform-origin: 30px 0;
  transition: opacity .35s ease, transform .5s var(--ease), visibility 0s linear .5s;
}
.open .sites-menu, html:not(.js) .switcher:focus-within .sites-menu {
  opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .5s var(--ease), visibility 0s;
}
.sites-title { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); padding: 8px 12px 8px; }
.sites-menu ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.sites-menu a { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 16px; transition: background .3s ease, transform .4s var(--ease); }
.sites-menu a:hover, .sites-menu a:focus-visible { background: rgba(255, 255, 255, .95); box-shadow: 0 8px 22px -14px rgba(34, 54, 104, .35); }
.sites-menu a:focus-visible { outline-offset: -2px; }
.sm-mark {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 11px; position: relative;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .9), transparent 55%), var(--c);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 8px 18px -8px var(--c);
}
.sites-menu a:hover .sm-mark { transform: rotate(-6deg) scale(1.05); }
.sm-mark { transition: transform .5s var(--ease); }
.sm-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sm-text b { font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sm-text b em { font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; color: #12705A; background: rgba(34, 163, 131, .13); padding: 2px 7px; border-radius: 999px; }
.sm-text > span { font-size: 13px; color: var(--ink-3); line-height: 1.35; }

.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a { font-size: 14px; font-weight: 500; color: var(--ink-2); padding: 9px 14px; border-radius: 999px; transition: background .3s ease, color .3s ease; }
.nav a:hover { background: rgba(255, 255, 255, .7); color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px; overflow: hidden; isolation: isolate;
  font-size: 15.5px; font-weight: 560; letter-spacing: -.005em; white-space: nowrap; cursor: pointer; border: 0;
  transition: box-shadow .5s var(--ease), background .4s ease;
}
.btn svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #2B3644 0%, #17202B 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 16px 32px -14px rgba(23, 32, 43, .6);
}
.btn-primary::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; opacity: 0;
  background: radial-gradient(120% 140% at var(--bx, 50%) 120%, rgba(110, 150, 255, .55), rgba(150, 120, 240, .25) 40%, transparent 70%);
  transition: opacity .5s ease;
}
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent);
  transform: skewX(-18deg); transition: left .9s var(--ease);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary:hover::after { left: 120%; }
.btn-primary:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 22px 40px -16px rgba(40, 60, 130, .65); }
.btn-glass {
  color: var(--ink); background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .92);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 #fff, 0 12px 28px -18px rgba(34, 54, 104, .4);
}
.btn-glass:hover { background: rgba(255, 255, 255, .85); }
.btn-sm { height: 44px; padding: 0 20px; font-size: 14px; flex-shrink: 0; }

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex; align-self: flex-start; align-items: center; gap: 9px; margin-bottom: 30px;
  font-size: 13px; font-weight: 550; color: var(--ink-2);
  padding: 7px 15px 7px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .55); border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 8px 22px -16px rgba(34, 54, 104, .4);
}
.eyebrow-plain {
  background: none; border: 0; box-shadow: none; padding: 0;
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3);
}
.eyebrow-plain::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .55; }
.live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--c-energy); }
.live-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--c-energy); opacity: 0; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 0% { transform: scale(.5); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }

.glow-text {
  background: linear-gradient(100deg, #3A5FD9 0%, #7457E0 38%, #1E8F78 72%, #3A5FD9 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: drift 14s ease-in-out infinite alternate;
}
@keyframes drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.sec-title { font-size: clamp(42px, 5.4vw, 84px); font-weight: 500; letter-spacing: -.048em; line-height: .98; }
.sec-title .soft { color: var(--soft); }

/* ---------- Stage (hero + signature) ---------- */
.stage { position: relative; max-width: 1440px; margin: 0 auto; padding: 0 var(--pad-x); }
.hero {
  position: relative; z-index: 2; width: 46%; min-height: 100vh;
  display: flex; flex-direction: column; justify-content: center; padding: 120px 0 90px;
}
.hero h1 { font-size: clamp(46px, 5.1vw, 78px); font-weight: 500; letter-spacing: -.05em; line-height: .98; max-width: 11.5ch; }
.chapter p, .lede { text-wrap: pretty; }
.lede { font-size: 19px; line-height: 1.55; color: var(--ink-2); max-width: 31ch; margin: 30px 0 38px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.scroll-cue { position: absolute; bottom: 34px; left: 0; display: flex; align-items: center; gap: 12px; font-size: 11.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.scroll-cue span { position: relative; width: 46px; height: 1.5px; background: rgba(23, 32, 43, .15); overflow: hidden; }
.scroll-cue span::after { content: ""; position: absolute; inset: 0; background: var(--ink-2); transform: translateX(-100%); animation: cue 2.6s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .14em; margin: 0 -.04em -.14em; }
.wi { display: inline-block; }

.visual {
  position: sticky; top: 0; z-index: 1; height: 100vh; margin-top: -100vh; margin-left: 46%;
  display: flex; align-items: center; justify-content: center; pointer-events: none;
  padding: 80px 0 30px 3vw;
}
.dash-scene { position: relative; width: min(100%, 700px); perspective: 1700px; animation: float 9s ease-in-out infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.dash-tilt { transform-style: preserve-3d; }
.dash { position: relative; transform-style: preserve-3d; border-radius: 28px; padding: 16px; }
.dash-bg {
  position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(150deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .32));
  border: 1px solid rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(26px) saturate(1.6); backdrop-filter: blur(26px) saturate(1.6);
  box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(255, 255, 255, .25), var(--shadow-lg);
}
.dash-sheen {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(700px circle at var(--mx, 20%) var(--my, -10%), rgba(255, 255, 255, .5), transparent 42%);
  mix-blend-mode: soft-light;
}
.dash-shadow { position: absolute; left: 12%; right: 12%; bottom: -54px; height: 60px; border-radius: 50%; background: radial-gradient(closest-side, rgba(40, 60, 120, .22), transparent); filter: blur(8px); }
.dash-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 4px 6px 14px; font-size: 12.5px; }
.dh-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.dh-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c-energy); box-shadow: 0 0 0 3px rgba(34, 163, 131, .18); }
.dh-count { margin-left: auto; font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }
.dh-count b { color: var(--ink); font-weight: 500; }
.dh-note { font-size: 11px; font-weight: 550; color: var(--ink-3); padding: 4px 10px; border-radius: 999px; border: 1px dashed rgba(23, 32, 43, .25); }

.dash-grid { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 12px; transform-style: preserve-3d; }
.slot { position: relative; transform-style: preserve-3d; min-width: 0; }
.slot-energy { grid-column: 1 / 3; }
.skel {
  position: absolute; inset: 0; border-radius: 18px; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px;
  border: 1px dashed rgba(60, 80, 130, .24); background: rgba(255, 255, 255, .16);
}
.skel i { height: 8px; border-radius: 5px; width: 42%; background: linear-gradient(90deg, rgba(90, 110, 160, .1), rgba(90, 110, 160, .2), rgba(90, 110, 160, .1)); background-size: 200% 100%; animation: shimmer 2.2s linear infinite; }
.skel i:nth-child(2) { width: 70%; }
.skel i:nth-child(3) { width: 55%; margin-top: auto; }
.skel .ghost { margin-top: auto; width: 100%; height: 58%; fill: none; stroke: rgba(70, 95, 150, .28); stroke-width: 1.6; stroke-dasharray: 5 6; overflow: visible; }
.skel .ghost-ring { width: 62%; height: auto; margin: auto; }
.skel .g-row { display: flex; justify-content: flex-end; height: 18px; border-bottom: 1px dashed rgba(70, 95, 150, .16); padding-bottom: 22px; margin-top: 6px; }
.skel .g-row::after { content: ""; width: 26px; height: 14px; border-radius: 999px; border: 1.4px dashed rgba(70, 95, 150, .3); margin-top: -4px; }
.g-bars { margin-top: auto; display: flex; align-items: flex-end; gap: 5px; height: 46%; }
.g-bars b { flex: 1; border-radius: 3px; border: 1.2px dashed rgba(70, 95, 150, .28); }
.g-bars b:nth-child(1) { height: 30%; } .g-bars b:nth-child(2) { height: 55%; } .g-bars b:nth-child(3) { height: 85%; } .g-bars b:nth-child(4) { height: 100%; } .g-bars b:nth-child(5) { height: 75%; } .g-bars b:nth-child(6) { height: 50%; } .g-bars b:nth-child(7) { height: 25%; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.panel {
  position: relative; height: 100%; border-radius: 18px; padding: 14px 16px 14px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .9), rgba(255, 255, 255, .7));
  border: 1px solid rgba(255, 255, 255, .98);
  box-shadow: inset 0 1px 0 #fff, 0 14px 30px -18px rgba(34, 54, 104, .38);
}
.js:not(.rm) .panel { opacity: 0; }
.p-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--ink-2); }
.p-tag { font-size: 10.5px; font-weight: 550; color: var(--ink-3); background: rgba(23, 32, 43, .055); padding: 3px 8px; border-radius: 999px; }
.p-opt { color: #5B3FC4; background: rgba(142, 111, 234, .14); }
.p-value { display: flex; align-items: baseline; gap: 5px; margin-top: 6px; }
.p-value b { font-size: 34px; font-weight: 500; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.p-value small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.chart { width: 100%; height: 104px; margin-top: 4px; overflow: visible; }
.chart .gridlines line { stroke: rgba(23, 32, 43, .07); stroke-width: 1; stroke-dasharray: 3 5; }
.chart .area { fill: url(#areaGrad); }
.chart .line { fill: none; stroke: url(#lineGrad); stroke-width: 2.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; filter: drop-shadow(0 4px 6px rgba(34, 163, 131, .3)); }
.axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10.5px; color: var(--ink-3); margin-top: 6px; }

.thermo { position: relative; width: 112px; height: 112px; margin: 10px auto 10px; }
.thermo svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.t-track { fill: none; stroke: rgba(23, 32, 43, .07); stroke-width: 8; }
.t-arc { fill: none; stroke: var(--c-hvac); stroke-width: 8; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: .3; filter: drop-shadow(0 2px 6px rgba(70, 114, 238, .45)); }
.t-read { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.t-read b { font-size: 28px; font-weight: 500; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.t-read span { font-size: 13px; color: var(--ink-3); margin: -10px 0 0 2px; }
.p-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; font-size: 11.5px; color: var(--ink-3); }
.chip { font-size: 10.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.chip-cool { color: #2C4FBF; background: rgba(70, 114, 238, .13); }
.mono { font-family: var(--mono); font-size: 10.5px; }

.zones { list-style: none; margin: 8px 0 0; padding: 0; }
.zones li { display: flex; align-items: center; justify-content: space-between; padding: 7px 0; font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid rgba(23, 32, 43, .055); }
.zones li:last-child { border-bottom: 0; }
.tog { position: relative; width: 30px; height: 18px; border-radius: 999px; background: rgba(23, 32, 43, .13); transition: background .45s ease, box-shadow .45s ease; flex-shrink: 0; }
.tog::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .45s var(--ease); }
.tog.on { background: var(--c-light); box-shadow: 0 0 12px rgba(227, 154, 85, .55); }
.tog.on::after { transform: translateX(12px); }

.slot-occ .panel { border: 1px dashed rgba(142, 111, 234, .5); background: linear-gradient(160deg, rgba(255, 255, 255, .86), rgba(246, 242, 255, .7)); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 70px; margin-top: 14px; }
.bars i { flex: 1; height: calc(var(--h) * 100%); border-radius: 3px; transform-origin: bottom; background: linear-gradient(to top, rgba(142, 111, 234, .25), rgba(142, 111, 234, .85)); }

.gw-art { width: 100%; height: 58px; margin: 10px 0 8px; overflow: visible; }
.gw-links path { stroke: rgba(23, 32, 43, .2); stroke-width: 1.2; fill: none; }
.gw-nodes circle { fill: #fff; stroke: rgba(23, 32, 43, .32); stroke-width: 1.2; }
.gw-hub { fill: var(--c-gw); stroke: #1f2328; stroke-width: 1.6; }

.port {
  position: absolute; left: 0; top: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; z-index: 4;
  background: #fff; box-shadow: 0 0 0 1px rgba(23, 32, 43, .18), 0 2px 4px rgba(0, 0, 0, .08);
  transform: translateZ(2px); transition: background .5s ease, box-shadow .5s ease;
}
.port.on { background: var(--pc); box-shadow: 0 0 0 3px rgba(255, 255, 255, .95), 0 0 0 4px color-mix(in srgb, var(--pc) 45%, transparent), 0 0 22px 6px color-mix(in srgb, var(--pc) 55%, transparent); }

.chapters { position: relative; z-index: 2; width: 46%; padding-bottom: 6vh; }
.chap-label { margin: 0 0 -4vh; padding-top: 4vh; }
.chapter { min-height: 76vh; display: flex; flex-direction: column; justify-content: center; transition: opacity .7s ease, transform .9s var(--ease); }
.js:not(.rm) .chapter { opacity: .22; }
.js:not(.rm) .chapter.is-active { opacity: 1; }
.ch-num { display: inline-flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; color: var(--ink-3); }
.ch-num::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--cc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--cc) 22%, transparent), 0 0 18px color-mix(in srgb, var(--cc) 70%, transparent); }
.ch-title { font-size: clamp(48px, 5.6vw, 88px); font-weight: 500; letter-spacing: -.05em; line-height: 1; margin: 18px 0 16px; }
.ch-title .opt { display: inline-block; vertical-align: middle; font-size: 14px; letter-spacing: .02em; font-weight: 550; color: #5B3FC4; background: rgba(142, 111, 234, .14); border: 1px dashed rgba(142, 111, 234, .5); padding: 5px 12px; border-radius: 999px; margin-left: 6px; transform: translateY(-.4em); }
.chapter p { font-size: 21px; line-height: 1.45; color: var(--ink-2); max-width: 22ch; }
.chapter-final { min-height: 108vh; }
.final-title { font-size: clamp(40px, 4.3vw, 66px); font-weight: 500; letter-spacing: -.045em; line-height: 1.02; max-width: 13ch; }

/* ---------- Process ---------- */
.process { padding: 20vh 0 16vh; }
.steps-wrap { position: relative; margin-top: 96px; }
.rail { position: absolute; left: 24px; right: 0; top: 23px; height: 2px; border-radius: 2px; background: rgba(23, 32, 43, .1); }
.rail i { position: absolute; inset: 0; border-radius: inherit; transform-origin: left center; transform: scaleX(var(--p, 1));
  background: linear-gradient(90deg, var(--c-light), var(--c-energy) 35%, var(--c-hvac) 68%, var(--c-occ)); box-shadow: 0 0 14px rgba(70, 114, 238, .35); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.step { --sc: var(--c-light); }
.step:nth-child(2) { --sc: var(--c-energy); }
.step:nth-child(3) { --sc: var(--c-hvac); }
.step:nth-child(4) { --sc: var(--c-occ); }
.st-dot {
  position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255, 255, 255, .78); border: 1px solid #fff;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 #fff, 0 10px 24px -12px rgba(34, 54, 104, .45);
}
.st-dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--sc); box-shadow: 0 0 14px var(--sc); transition: background .6s ease, box-shadow .6s ease, transform .6s var(--ease); }
.st-dot::after { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1.5px solid var(--sc); opacity: 0; }
.js:not(.rm) .step:not(.lit) .st-dot i { background: rgba(23, 32, 43, .2); box-shadow: none; transform: scale(.7); }
.step.lit .st-dot::after { animation: ripple 1.4s var(--ease) 1; }
@keyframes ripple { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
.st-num { display: block; margin-top: 30px; font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); }
.step h3 { font-size: 30px; font-weight: 500; letter-spacing: -.03em; margin: 8px 0 8px; }
.step p { font-size: 17px; color: var(--ink-2); max-width: 26ch; text-wrap: pretty; }

/* ---------- Proof ---------- */
.proof { padding: 8vh 0 12vh; }
.proof-grid { display: grid; grid-template-columns: 7fr 5fr; align-items: center; }
.proof-photo { margin: 0; height: min(80vh, 740px); border-radius: 34px; overflow: hidden; position: relative; box-shadow: var(--shadow-lg); }
.proof-photo img { width: 100%; height: 118%; object-fit: cover; object-position: 30% 40%; }
.proof-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); background: linear-gradient(180deg, rgba(238, 242, 248, 0) 60%, rgba(238, 242, 248, .25)); }
.proof-card { margin-left: -150px; padding: 56px 56px 52px; border-radius: 34px; z-index: 2; }
.big-stat { display: flex; flex-direction: column; margin-top: 22px; }
.big-stat .up { font-size: 20px; font-weight: 500; color: var(--ink-2); }
.big-stat .num {
  font-size: clamp(112px, 13.5vw, 210px); font-weight: 300; letter-spacing: -.07em; line-height: .86; margin-left: -.04em;
  background: linear-gradient(115deg, #17202B 10%, #3352C2 55%, #6E52D8 95%); -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums; padding-bottom: .06em;
}
.big-stat .num b { font-weight: inherit; }
.stat-line { font-size: 22px; line-height: 1.35; letter-spacing: -.01em; max-width: 24ch; margin-top: 14px; }
.footnote { font-size: 13px; color: var(--ink-3); margin-top: 12px; }
.proof-card hr { border: 0; height: 1px; background: var(--hair); margin: 30px 0 26px; }
.std-line { font-size: 16.5px; color: var(--ink-2); max-width: 40ch; }
.link-arrow { display: inline-flex; align-items: center; gap: 9px; margin-top: 22px; font-size: 15.5px; font-weight: 600; padding-bottom: 3px;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1.5px no-repeat; transition: background-size .6s var(--ease); }
.link-arrow:hover { background-size: 0% 1.5px; background-position: right bottom; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .5s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Walk (CTA) ---------- */
.walk { padding: 6vh 0 16vh; }
.walk-card { max-width: 1120px; margin: 0 auto; border-radius: 40px; padding: clamp(44px, 6.5vw, 92px) clamp(22px, 6vw, 80px) clamp(40px, 5vw, 72px); text-align: center; overflow: hidden; }
.walk-orb { position: absolute; width: 560px; height: 560px; right: -180px; top: -300px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(252, 214, 190, .9), rgba(220, 205, 250, .5) 55%, transparent); filter: blur(10px); animation: orb 14s ease-in-out infinite alternate; }
@keyframes orb { to { transform: translate(-120px, 80px) scale(1.15); } }
.walk .sec-title { position: relative; }
.walk-form { position: relative; display: grid; grid-template-columns: 1fr 1.2fr 1.1fr auto; gap: 12px; margin-top: 48px; text-align: left; align-items: end; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field > span { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 0 0 8px 6px; }
.field input, .field select {
  height: 56px; width: 100%; padding: 0 18px; border-radius: 18px; font-size: 16px;
  background: rgba(255, 255, 255, .72); border: 1px solid rgba(23, 32, 43, .12);
  box-shadow: inset 0 1px 2px rgba(23, 32, 43, .04);
  transition: border-color .3s ease, box-shadow .3s ease, background .3s ease; appearance: none; -webkit-appearance: none;
}
.field select { padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5' fill='none' stroke='%23566275' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 16px center; background-size: 12px; }
.field input:hover, .field select:hover { background-color: rgba(255, 255, 255, .9); }
.field input:focus, .field select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 4px rgba(63, 102, 230, .18); background-color: #fff; }
.field input[aria-invalid="true"], .field select[aria-invalid="true"] { border-color: #C2413A; box-shadow: 0 0 0 4px rgba(194, 65, 58, .12); }
.btn-submit { height: 56px; }
.form-note { position: relative; margin-top: 20px; font-size: 14px; color: var(--ink-3); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: rgba(255, 255, 255, .42); border-top: 1px solid rgba(255, 255, 255, .85);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 54px 0 34px; }
.foot-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 28px 48px; align-items: center; }
.foot-sites { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.foot-sites a { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: color .3s ease; }
.foot-sites a:hover { color: var(--ink); }
.foot-sites i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.foot-contact { font-style: normal; display: flex; flex-direction: column; gap: 4px; text-align: right; font-size: 13.5px; color: var(--ink-3); }
.foot-contact a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.copy { grid-column: 1 / -1; font-size: 12.5px; color: var(--ink-3); padding-top: 22px; border-top: 1px solid var(--hair); }

/* ---------- JS-gated entrance states ---------- */
.js:not(.rm) .hero .eyebrow, .js:not(.rm) .hero .lede, .js:not(.rm) .hero .cta-row, .js:not(.rm) .scroll-cue { opacity: 0; }
.js:not(.rm) .hero h1 { opacity: 0; }
.js:not(.rm) .hero h1.split { opacity: 1; }

/* ---------- Tablet and phone ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .switcher { margin-right: auto; }
}
@media (max-width: 899px) {
  .hero { width: 100%; min-height: 0; padding: 136px 0 46px; }
  .hero h1 { font-size: clamp(42px, 11.4vw, 64px); max-width: 12ch; }
  .lede { font-size: 17.5px; margin: 22px 0 30px; }
  .scroll-cue { display: none; }
  .visual { position: sticky; top: 84px; height: auto; margin: 0; padding: 0; z-index: 3; }
  .dash-scene { width: 100%; animation: none; }
  .chapters { width: 100%; padding-top: 0; }
  .chap-label { margin: 0; padding: 30vh 0 4vh; }
  /* each caption holds just under the sticky dashboard, then hands over to the next */
  .chapter { display: block; min-height: 50vh; }
  .ch-inner { position: sticky; top: calc(var(--dash-bottom, 540px) + 92px); }
  .js:not(.rm) .chapter { opacity: 0; transform: translateY(14px); }
  .js:not(.rm) .chapter.is-active { opacity: 1; transform: none; }
  .dash-bg { background: linear-gradient(150deg, rgba(255, 255, 255, .86), rgba(255, 255, 255, .7)); }
  .ch-title { font-size: 44px; margin: 12px 0 10px; }
  .chapter p { font-size: 18px; }
  .chapter-final { min-height: 72vh; padding-bottom: 0; }
  .final-title { font-size: 36px; }
  .process { padding: 14vh 0 10vh; }
  .steps-wrap { margin-top: 56px; }
  .steps { grid-template-columns: 1fr; gap: 44px; }
  .step { position: relative; padding-left: 74px; }
  .st-dot { position: absolute; left: 0; top: 0; }
  .st-num { margin-top: 0; }
  .step h3 { font-size: 26px; margin-top: 4px; }
  .rail { left: 23px; right: auto; top: 24px; bottom: 30px; width: 2px; height: auto; }
  .rail i { transform-origin: center top; transform: scaleY(var(--p, 1)); background: linear-gradient(180deg, var(--c-light), var(--c-energy) 35%, var(--c-hvac) 68%, var(--c-occ)); }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-photo { height: 340px; border-radius: 28px; }
  .proof-photo img { object-position: 30% 55%; }
  .proof-card { margin: -90px 12px 0; padding: 36px 26px 34px; border-radius: 28px; }
  .stat-line { font-size: 19px; }
  .walk-form { grid-template-columns: 1fr; margin-top: 34px; }
  .btn-submit { width: 100%; margin-top: 6px; }
  .walk-card { border-radius: 30px; }
  .foot-grid { grid-template-columns: 1fr; gap: 24px; }
  .foot-contact { text-align: left; }
}
@media (max-width: 899px) {
  /* compact dashboard for the sticky phone layout */
  .dash { padding: 10px; border-radius: 22px; }
  .dash-head { padding: 2px 4px 9px; font-size: 11.5px; gap: 8px; }
  .dh-note { font-size: 10px; padding: 3px 8px; }
  .dh-count { font-size: 10.5px; }
  .dash-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .slot-energy { grid-column: 1 / -1; }
  .slot-hvac { grid-column: 1; grid-row: 2; }
  .slot-light { grid-column: 2; grid-row: 2; }
  .slot-occ { grid-column: 1; grid-row: 3; }
  .slot-gw { grid-column: 2; grid-row: 3; }
  .panel { padding: 10px 12px; border-radius: 14px; }
  .skel { border-radius: 14px; padding: 12px; }
  .p-head { font-size: 11.5px; }
  .p-value { margin-top: 2px; }
  .p-value b { font-size: 24px; }
  .chart { height: 50px; }
  .axis { display: none; }
  .thermo { width: 72px; height: 72px; margin: 6px auto 4px; }
  .t-read b { font-size: 19px; }
  .t-read span { font-size: 10px; margin-top: -6px; }
  .zones { margin-top: 4px; }
  .zones li { padding: 4px 0; font-size: 11.5px; }
  .zones li:nth-child(4) { display: none; }
  .bars { height: 30px; margin-top: 8px; }
  .gw-art { height: 30px; margin: 6px 0 4px; }
  .p-foot { font-size: 10.5px; }
  .slot-gw .p-foot .mono { display: none; }
  .rm .dash-bg, html:not(.js) .dash-bg { background: rgba(250, 252, 255, .97); }
  .dash-shadow { display: none; }
}
@media (max-width: 480px) {
  .site-header { top: 10px; padding: 0 12px; }
  .bar { height: 58px; padding: 0 7px 0 14px; gap: 6px; }
  .site-header .wordmark { display: none; }
  .switcher { margin-left: 4px; }
  .switch-btn { padding: 0 10px 0 9px; gap: 7px; font-size: 13px; height: 38px; }
  .btn-sm { height: 42px; padding: 0 16px; font-size: 13.5px; }
  .sites-menu { position: fixed; left: 12px; right: 12px; top: 78px; width: auto; }
  .cta-row .btn { flex: 1 1 auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .dash-scene { animation: none; }
}

/* 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. */
.glass { -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4); }
.dash-bg { -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5); }
.bar::before { -webkit-backdrop-filter: blur(8px) saturate(1.5); backdrop-filter: blur(8px) saturate(1.5); }
.btn-glass { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.site-footer { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* Elements scrubbed by scroll get their own GPU layer drawn once, so a changing scale no longer redraws
   them (and their large shadows) every frame. The deep shadow's blur drops from 120px to 80px, which
   reads the same at this softness and costs far less to draw. */
:root { --shadow-lg: 0 44px 80px -40px rgba(34, 54, 104, .42), 0 16px 34px -22px rgba(34, 54, 104, .22); }
.dash, #dashTilt, .proof-photo, .proof-card { will-change: transform; }
