/* Layout concept: full-bleed sky photography framed by an engineering instrument panel —
   wide-set headings, mono readouts in kW and kWh, one cool cyan accent drawn from the Teknova logo. */
:root {
  --bg: #F3F5F8;
  --surface: #FFFFFF;
  --surface-2: #E9EEF3;
  --ink: #0C1A2B;
  --muted: #526278;
  --line: #D8E0E8;
  --sun: #2F8FD8;
  --sun-ink: #1C5FA8;
  --deep: #0F1F4F;
  --on-deep: #EAF1F8;
  --on-deep-muted: #9FB4CA;
  --deep-line: rgba(234, 241, 248, .14);
  --good: #2F8F5B;
  --cta: #5CC6F2;
  --cta-ink: #061230;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Figtree", "Segoe UI", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: .875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --step-3: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  --step-4: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem);

  --radius: 14px;
  --wrap: 1240px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --shadow: 0 1px 2px rgba(12, 26, 43, .06), 0 12px 32px -12px rgba(12, 26, 43, .18);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #08111B; --surface: #0F1B29; --surface-2: #142334; --ink: #E7EEF6; --muted: #93A4B8;
    --line: #1F2F41; --sun: #5CC6F2; --sun-ink: #8DD3F7; --deep: #0B1840; --on-deep: #EAF1F8;
    --on-deep-muted: #9FB4CA; --deep-line: rgba(234, 241, 248, .12); --good: #5CC08A;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #08111B; --surface: #0F1B29; --surface-2: #142334; --ink: #E7EEF6; --muted: #93A4B8;
  --line: #1F2F41; --sun: #5CC6F2; --sun-ink: #8DD3F7; --deep: #0B1840; --on-deep: #EAF1F8;
  --on-deep-muted: #9FB4CA; --deep-line: rgba(234, 241, 248, .12); --good: #5CC08A;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 16px 40px -16px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--deep); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--f-display); font-stretch: 112%; line-height: 1.04; margin: 0; letter-spacing: -.015em; text-wrap: balance; }
h2 { font-size: var(--step-3); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; line-height: 1.2; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.section { padding-block: clamp(72px, 9vw, 128px); }
.eyebrow {
  font-family: var(--f-mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sun-ink); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; }
.lede { color: var(--muted); font-size: var(--step-1); line-height: 1.55; max-width: 60ch; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font: 600 1rem/1 var(--f-body); padding: 16px 24px; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sun { background: var(--cta); color: var(--cta-ink); }
.btn-sun:hover { background: #7DD3F6; }
.btn-ghost { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .06); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .14); }
.btn-line { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn svg { width: 18px; height: 18px; }

/* Header */
.site-header {
  position: fixed; top: env(safe-area-inset-top, 0px); left: 0; right: 0; z-index: 50;
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 76px; }
.site-header.scrolled { background: color-mix(in srgb, var(--deep) 88%, transparent); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--deep-line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #fff; }
.brand img { width: 34px; height: auto; flex: none; }
.brand-word { display: flex; flex-direction: column; line-height: 1; }
.brand-word b { font: 800 1.36rem/1 var(--f-display); font-stretch: 125%; letter-spacing: .04em; }
.brand-word span { font: 600 .6rem/1 var(--f-display); font-stretch: 112%; letter-spacing: .34em; margin-top: 5px; color: #A8DCFA; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: rgba(255, 255, 255, .86); text-decoration: none; font-weight: 500; font-size: .95rem; padding: 10px 14px; border-radius: 999px; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav .btn { margin-left: 10px; padding: 12px 20px; font-size: .95rem; }
.menu-btn { display: none; background: none; border: 0; color: #fff; padding: 10px; cursor: pointer; }
.menu-btn svg { width: 28px; height: 28px; }
@media (max-width: 980px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; inset: calc(76px + env(safe-area-inset-top, 0px)) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--deep); padding: 8px var(--gutter-r) 24px var(--gutter-l); border-top: 1px solid var(--deep-line);
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--deep-line); font-size: 1.05rem; }
  .nav .btn { margin: 18px 0 0; padding: 16px; border-radius: 999px; border-bottom: 0; }
}

/* Hero */
.hero { position: relative; min-height: clamp(640px, 94vh, 940px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: #0A1638; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; transform: scale(1.06); animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.06) translate3d(0, 0, 0); } to { transform: scale(1.13) translate3d(-1.6%, -1%, 0); } }
.hero::before { /* scrim keeps headline legible on any part of the sky */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(6, 14, 38, .62) 0%, rgba(6, 14, 38, 0) 22%),
    linear-gradient(90deg, rgba(6, 14, 38, .86) 0%, rgba(6, 14, 38, .55) 42%, rgba(6, 14, 38, .05) 75%),
    linear-gradient(0deg, rgba(6, 14, 38, .9) 0%, rgba(6, 14, 38, 0) 48%);
}
.hero::after { /* warm light leak from the upper right */
  content: ""; position: absolute; z-index: -1; width: 70vmax; height: 70vmax; right: -24vmax; top: -34vmax;
  background: radial-gradient(closest-side, rgba(255, 236, 200, .34), rgba(150, 210, 255, .12) 45%, transparent 70%);
  mix-blend-mode: screen; animation: flare 9s ease-in-out infinite alternate; pointer-events: none;
}
@keyframes flare { from { opacity: .75; transform: translate3d(0, 0, 0); } to { opacity: 1; transform: translate3d(-3%, 2%, 0); } }
.hero-inner { width: 100%; padding-block: 140px 40px; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: end; }
.hero h1 { font-size: var(--step-4); font-weight: 800; font-stretch: 118%; letter-spacing: -.025em; line-height: .98; margin-top: 20px; }
.hero h1 em { font-style: normal; color: #7FD3F7; }
.hero .eyebrow { color: #A8DCFA; }
.hero p.lede { color: rgba(255, 255, 255, .86); margin-top: 22px; max-width: 46ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

/* Live sun instrument */
.instrument {
  background: rgba(8, 18, 48, .58); border: 1px solid rgba(255, 255, 255, .16); border-radius: 18px;
  backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%);
  padding: 20px 20px 16px; color: #fff; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
}
.inst-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font: 500 .72rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.live-dot { display: inline-flex; align-items: center; gap: 8px; color: #A8DCFA; }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 0 rgba(92, 198, 242, .7); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(92, 198, 242, 0); } 100% { box-shadow: 0 0 0 0 rgba(92, 198, 242, 0); } }
.inst-read { display: flex; align-items: baseline; gap: 8px; margin-top: 14px; }
.inst-read strong { font: 600 3rem/1 var(--f-mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.inst-read span { font: 500 1rem/1 var(--f-mono); color: rgba(255, 255, 255, .7); }
.inst-sub { font-size: .9rem; color: rgba(255, 255, 255, .78); margin-top: 6px; }
.inst-curve { margin-top: 14px; width: 100%; height: 86px; display: block; overflow: visible; }
.inst-axis { display: flex; justify-content: space-between; font: 500 .7rem/1 var(--f-mono); color: rgba(255, 255, 255, .55); margin-top: 6px; }
.inst-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .14); }
.inst-grid div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.inst-grid dt { font: 500 .66rem/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .58); }
.inst-grid dd { margin: 0; font: 600 1rem/1.1 var(--f-mono); font-variant-numeric: tabular-nums; }
.inst-note { font-size: .74rem; color: rgba(255, 255, 255, .55); margin-top: 12px; line-height: 1.4; }

/* Fact rail */
.rail { background: var(--deep); color: var(--on-deep); }
.rail ul { list-style: none; margin: 0; padding-block: 22px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.rail li { display: flex; align-items: center; gap: 12px; font-size: .95rem; color: var(--on-deep); min-width: 0; }
.rail svg { width: 22px; height: 22px; flex: none; color: var(--sun); }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.about-media { position: relative; }
.about-media .main { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.about-media .inset {
  position: absolute; right: -6%; bottom: -8%; width: 46%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius);
  border: 6px solid var(--bg); box-shadow: var(--shadow);
}
.about-copy h2 { margin-top: 16px; }
.about-copy .lede { margin-top: 20px; }
.about-copy p + p { margin-top: 16px; }
.about-copy p.body { color: var(--muted); max-width: 60ch; }
.mv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 32px; }
.mv article { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.mv h3 { font: 600 .76rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--sun-ink); }
.mv p { margin-top: 12px; font-size: .98rem; color: var(--ink); }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-top: clamp(64px, 8vw, 104px); }
.pillars article { padding: 28px 28px 0 0; display: flex; flex-direction: column; gap: 10px; }
.pillars article + article { padding-left: 28px; border-left: 1px solid var(--line); }
.pillars svg { width: 30px; height: 30px; color: var(--sun-ink); }
.pillars p { color: var(--muted); font-size: .98rem; }

/* Services */
.services { background: var(--surface); border-block: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.sec-head > div { max-width: 640px; }
.sec-head h2 { margin-top: 16px; }
.sec-head .lede { max-width: 46ch; }
.svc-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.svc { position: relative; border-radius: 18px; overflow: hidden; background: var(--deep); color: #fff; min-height: 380px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.svc:hover img { transform: scale(1.05); }
.svc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(6, 14, 38, .92) 0%, rgba(6, 14, 38, .55) 45%, rgba(6, 14, 38, .08) 75%); }
.svc .body { padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.svc h3 { font-size: 1.5rem; }
.svc p { color: rgba(255, 255, 255, .84); max-width: 46ch; }
.svc .tag { font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #A8DCFA; }
.svc-a { grid-column: span 7; }
.svc-b { grid-column: span 5; }
.svc-c { grid-column: span 5; }
.svc-d { grid-column: span 7; background: linear-gradient(135deg, #0F1F4F, #152C6A 60%, #1B3C86); }
.svc-d::before { display: none; }
.svc-d .split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); gap: 24px; align-items: center; padding: 28px; height: 100%; }
.svc-d .body { padding: 0; }

/* Phone monitor mockup */
.phone {
  background: #060D26; border-radius: 30px; padding: 10px; border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .04);
}
.phone .screen { background: linear-gradient(180deg, #13275C, #0B1A42); border-radius: 22px; padding: 18px 16px; display: flex; flex-direction: column; gap: 12px; }
.phone .ph-top { display: flex; justify-content: space-between; font: 500 .66rem/1 var(--f-mono); color: rgba(255, 255, 255, .6); letter-spacing: .08em; text-transform: uppercase; }
.phone .ph-big { font: 600 1.9rem/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.phone .ph-big small { font-size: .8rem; color: rgba(255, 255, 255, .6); margin-left: 4px; }
.phone .ph-label { font-size: .72rem; color: rgba(255, 255, 255, .6); margin-top: -6px; }
.phone svg { width: 100%; height: 70px; display: block; }
.phone .ph-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.phone .ph-row div { background: rgba(255, 255, 255, .06); border-radius: 10px; padding: 9px 10px; }
.phone .ph-row b { display: block; font: 600 .92rem/1.1 var(--f-mono); font-variant-numeric: tabular-nums; }
.phone .ph-row span { font-size: .64rem; color: rgba(255, 255, 255, .6); text-transform: uppercase; letter-spacing: .08em; }

/* Savings estimator */
.savings { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; }
.savings::before {
  content: ""; position: absolute; inset: auto -20% -60% auto; width: 80vmax; height: 80vmax; pointer-events: none;
  background: radial-gradient(closest-side, rgba(92, 198, 242, .16), transparent 70%);
}
.savings .eyebrow { color: #9FD6F7; }
.savings h2 { color: #fff; margin-top: 16px; }
.savings .lede { color: var(--on-deep-muted); margin-top: 16px; }
.calc { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; margin-top: 48px; }
.calc-in, .calc-out { border: 1px solid var(--deep-line); border-radius: 18px; padding: clamp(22px, 3vw, 34px); background: rgba(255, 255, 255, .03); min-width: 0; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field + .field { margin-top: 28px; }
.field label, .field .lbl { font: 500 .78rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-muted); }
.bill-read { font: 600 clamp(2.4rem, 5vw, 3.4rem)/1 var(--f-mono); color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.bill-read small { font-size: .9rem; color: var(--on-deep-muted); letter-spacing: 0; margin-left: 6px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: linear-gradient(90deg, #5CC6F2 0 var(--fill, 30%), rgba(255, 255, 255, .16) var(--fill, 30%)); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .16); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 6px; background: #5CC6F2; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%; background: #fff; border: 6px solid var(--sun); box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 6px solid var(--sun); }
.range-scale { display: flex; justify-content: space-between; font: 500 .72rem/1 var(--f-mono); color: var(--on-deep-muted); }
.rate-row { display: flex; align-items: center; gap: 10px; }
.rate-row input {
  width: 120px; font: 600 1.1rem/1 var(--f-mono); color: #fff; background: rgba(255, 255, 255, .06);
  border: 1px solid var(--deep-line); border-radius: 10px; padding: 12px 14px;
}
.rate-row span { color: var(--on-deep-muted); font-size: .9rem; }
.seg { display: inline-flex; background: rgba(255, 255, 255, .06); border: 1px solid var(--deep-line); border-radius: 999px; padding: 4px; }
.seg button { font: 600 .92rem/1 var(--f-body); color: var(--on-deep-muted); background: transparent; border: 0; padding: 11px 18px; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--cta); color: var(--cta-ink); }
.calc-note { font-size: .82rem; color: var(--on-deep-muted); margin-top: 28px; line-height: 1.5; }

.out-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.out-top .lbl { font: 500 .78rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-muted); }
.big-save { font: 700 clamp(2.8rem, 6vw, 4.6rem)/1 var(--f-mono); color: #fff; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin-top: 8px; }
.big-save + p { color: var(--on-deep-muted); margin-top: 8px; font-size: .95rem; }
.chart { margin-top: 24px; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font-family: var(--f-mono); font-size: 11px; fill: var(--on-deep-muted); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--deep-line); border: 1px solid var(--deep-line); border-radius: 14px; overflow: hidden; margin-top: 24px; }
.stats div { background: var(--deep); padding: 16px; min-width: 0; }
.stats dt { font: 500 .68rem/1.25 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-muted); }
.stats dd { margin: 8px 0 0; font: 600 1.3rem/1.1 var(--f-mono); color: #fff; font-variant-numeric: tabular-nums; }
.stats dd small { font-size: .74rem; color: var(--on-deep-muted); margin-left: 3px; }

/* Process */
.steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: linear-gradient(90deg, var(--sun), var(--line)); }
.steps li { position: relative; padding-right: 20px; counter-increment: step; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.steps li::before {
  content: counter(step, decimal-leading-zero); width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font: 600 .86rem/1 var(--f-mono); background: var(--surface); border: 2px solid var(--sun); color: var(--ink); position: relative; margin-bottom: 14px;
}
.steps li:first-child::before { background: var(--cta); color: var(--cta-ink); border-color: var(--cta); }
.steps h3 { font-size: 1.12rem; }
.steps p { color: var(--muted); font-size: .95rem; }

/* Projects */
.projects { background: var(--surface); border-block: 1px solid var(--line); }
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: 260px; gap: 16px; margin-top: 48px; }
.shot { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--surface-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.shot:hover img { transform: scale(1.04); }
.shot figcaption {
  position: absolute; left: 12px; bottom: 12px; right: 12px; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: rgba(8, 18, 48, .7); backdrop-filter: blur(10px); color: #fff; border-radius: 10px; padding: 10px 14px; font-size: .9rem;
}
.shot figcaption span { font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: #A8DCFA; white-space: nowrap; }
.g1 { grid-column: span 7; grid-row: span 2; }
.g2 { grid-column: span 5; }
.g3 { grid-column: span 5; }
.g4 { grid-column: span 6; }
.g5 { grid-column: span 6; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.faq-grid .sticky { position: sticky; top: 110px; }
.faq-grid .sticky p { color: var(--muted); margin-top: 18px; }
.faq-grid .sticky .btn { margin-top: 26px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 600 1.15rem/1.35 var(--f-body); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line);
  background: linear-gradient(var(--ink), var(--ink)) center / 12px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 12px no-repeat;
  transition: transform .25s ease, background-color .25s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding: 0 56px 24px 0; max-width: 70ch; }

/* Contact */
.contact { background: var(--deep); color: var(--on-deep); position: relative; overflow: hidden; isolation: isolate; }
.contact-bg { position: absolute; inset: 0; z-index: -2; }
.contact-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--deep) 30%, color-mix(in srgb, var(--deep) 70%, transparent)); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.contact .eyebrow { color: #9FD6F7; }
.contact h2 { color: #fff; margin-top: 16px; }
.contact .lede { color: var(--on-deep-muted); margin-top: 18px; }
.cards { display: grid; gap: 12px; margin-top: 34px; }
.ccard { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--deep-line); border-radius: 14px; background: rgba(255, 255, 255, .04); min-width: 0; }
.ccard svg { width: 22px; height: 22px; color: var(--sun); flex: none; }
.ccard .t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ccard .t span { font: 500 .68rem/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--on-deep-muted); }
.ccard .t a, .ccard .t b { color: #fff; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; user-select: all; }
.copy { background: transparent; border: 1px solid var(--deep-line); color: var(--on-deep); font: 500 .78rem/1 var(--f-body); border-radius: 999px; padding: 9px 13px; cursor: pointer; flex: none; }
.copy:hover { border-color: var(--on-deep-muted); }

.form { background: var(--surface); color: var(--ink); border-radius: 20px; padding: clamp(22px, 3.4vw, 40px); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6); }
.form h3 { font-size: 1.6rem; }
.form > p { color: var(--muted); margin-top: 8px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 26px; }
.form-grid .full { grid-column: 1 / -1; }
.f { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.f label { font-size: .86rem; font-weight: 600; }
.f input, .f select, .f textarea {
  font: 400 1rem/1.4 var(--f-body); color: var(--ink); background: var(--bg); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 13px 14px; width: 100%; transition: border-color .2s ease, background-color .2s ease;
}
.f textarea { min-height: 110px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus { outline: none; border-color: var(--sun); background: var(--surface); }
.f .err { font-size: .8rem; color: #C2410C; min-height: 0; }
.f.invalid input, .f.invalid select { border-color: #C2410C; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chips span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: .92rem; font-weight: 500; cursor: pointer; }
.chips input:checked + span { border-color: var(--sun); background: color-mix(in srgb, var(--sun) 16%, transparent); }
.chips input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.form .btn-sun { width: 100%; margin-top: 22px; padding: 18px; font-size: 1.05rem; }
.form .fine { font-size: .8rem; color: var(--muted); margin-top: 14px; text-align: center; }
.thanks { text-align: left; padding: 10px 0; }
.thanks .ok { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--good) 18%, transparent); color: var(--good); }
.thanks h3 { margin-top: 18px; }
.thanks p { color: var(--muted); margin-top: 10px; }

/* Footer */
.footer { background: #060D26; color: #A9B8C9; padding-block: 64px 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer .brand { color: #fff; }
.footer p { font-size: .94rem; margin-top: 18px; max-width: 36ch; }
.footer h4 { font: 500 .72rem/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: .95rem; }
.footer a { text-decoration: none; color: #A9B8C9; }
.footer a:hover { color: #fff; }
.foot-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .84rem; }

/* Mobile action bar */
.mbar { display: none; }
@media (max-width: 720px) {
  .mbar {
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: color-mix(in srgb, var(--deep) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--deep-line);
    transform: translateY(110%); transition: transform .3s ease;
  }
  .mbar.show { transform: none; }
  .mbar .btn { padding: 14px; font-size: .95rem; }
  .footer { padding-bottom: 100px; }
}

/* Reveal: elements are visible at rest; JS only adds a gentle lift when supported */
.reveal { transition: opacity .8s ease, transform .8s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.pre { opacity: 0; transform: translateY(18px); }

/* Responsive */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .instrument { max-width: 520px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 40px; }
  .steps::before { display: none; }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .svc-d .split { grid-template-columns: minmax(0, 1fr) minmax(0, 220px); }
}
@media (max-width: 860px) {
  .about-grid, .faq-grid, .contact-grid { grid-template-columns: minmax(0, 1fr); }
  .about-media { margin-right: 6%; margin-bottom: 8%; }
  .faq-grid .sticky { position: static; }
  .rail ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars { grid-template-columns: minmax(0, 1fr); }
  .pillars article, .pillars article + article { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .svc-a, .svc-b, .svc-c, .svc-d { grid-column: span 12; }
  .svc { min-height: 340px; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 220px; }
  .g1 { grid-column: span 2; grid-row: span 1; }
  .g2, .g3, .g4, .g5 { grid-column: span 1; }
  .g5 { grid-column: span 2; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .hero { min-height: 0; }
  .hero-inner { padding-block: 120px 28px; }
  .hero h1 { font-stretch: 105%; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .rail ul { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .mv { grid-template-columns: minmax(0, 1fr); }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .svc-d .split { grid-template-columns: minmax(0, 1fr); }
  .svc-d .phone { max-width: 260px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .gallery { grid-template-columns: minmax(0, 1fr); grid-auto-rows: 240px; }
  .g1, .g2, .g3, .g4, .g5 { grid-column: span 1; }
  .faq details p { padding-right: 0; }
  .inst-read strong { font-size: 2.5rem; }
  .ccard { flex-wrap: wrap; }
}

/* refinements */
.faq-grid h2 { font-size: clamp(2rem, 1.5rem + 1.6vw, 2.75rem); }
@media (max-width: 560px) {
  .steps { row-gap: 28px; }
  .steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); column-gap: 16px; row-gap: 6px; padding-right: 0; }
  .steps li::before { grid-row: span 2; margin-bottom: 0; }
}

/* Software */
.software { position: relative; }
.sw-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.sw-copy h2 { margin-top: 16px; }
.sw-copy .lede { margin-top: 18px; }
.sw-list { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.sw-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.sw-list .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--sun) 14%, transparent); color: var(--sun-ink); }
.sw-list .ic svg { width: 22px; height: 22px; }
.sw-list h3 { font-size: 1.08rem; }
.sw-list p { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.dash { background: var(--deep); color: var(--on-deep); border-radius: 18px; border: 1px solid var(--deep-line); box-shadow: 0 40px 80px -40px rgba(6, 14, 38, .55); overflow: hidden; min-width: 0; }
.dash-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--deep-line); }
.dash-top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.dash-top span { margin-left: 10px; font: 500 .74rem/1 var(--f-mono); color: var(--on-deep-muted); letter-spacing: .06em; }
.dash-body { padding: clamp(16px, 2.4vw, 26px); display: grid; gap: 16px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dash-kpis div { background: rgba(255, 255, 255, .05); border: 1px solid var(--deep-line); border-radius: 12px; padding: 14px; min-width: 0; }
.dash-kpis dt { font: 500 .66rem/1.25 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-muted); }
.dash-kpis dd { margin: 8px 0 0; font: 600 1.35rem/1 var(--f-mono); color: #fff; font-variant-numeric: tabular-nums; }
.dash-kpis dd small { font-size: .72rem; color: var(--on-deep-muted); margin-left: 3px; }
.dash-chart { background: rgba(255, 255, 255, .03); border: 1px solid var(--deep-line); border-radius: 12px; padding: 14px; }
.dash-chart .h { display: flex; justify-content: space-between; font: 500 .7rem/1 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--on-deep-muted); }
.dash-chart .h b { color: #5CC6F2; font-weight: 500; }
.dash-chart svg { width: 100%; height: auto; display: block; margin-top: 10px; }
.dash-chart text { font-family: var(--f-mono); font-size: 10px; fill: var(--on-deep-muted); }
.dash-rows { display: grid; gap: 8px; }
.dash-rows div { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; font-size: .86rem; padding: 10px 12px; border-radius: 10px; background: rgba(255, 255, 255, .04); }
.dash-rows b { font: 500 .82rem/1 var(--f-mono); color: #fff; font-variant-numeric: tabular-nums; }
.pill { font: 600 .66rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; padding: 6px 9px; border-radius: 999px; }
.pill.ok { background: rgba(92, 192, 138, .16); color: #7FD9A6; }
.pill.warn { background: rgba(242, 190, 74, .16); color: #F4CC72; }
@media (max-width: 860px) { .sw-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .dash-kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .dash-kpis div:last-child { grid-column: 1 / -1; } }

.footer li { overflow-wrap: anywhere; }
.rail svg { color: #5CC6F2; } .savings input[type="range"]::-webkit-slider-thumb, .savings input[type="range"]::-moz-range-thumb { border-color: #5CC6F2; }
