/* ==========================================================================
   SURYAVAMSHI SOLAR — DAYLIGHT THEME
   Layout: full-bleed photo hero with the bill estimate built in, a live
   sun-path arc, then bright airy sections on white and sky-tint; one
   sun-gold accent on deep grid-blue type. Content runs to 1440px wide.
   Theme is set by data-sv-theme on <html> ("light" | "dark"), chosen in
   Settings (Light / Dark / System) and saved in localStorage.
   ========================================================================== */

:root {
  /* brand */
  --ink: #0B2340;          /* grid blue: headings, dark bands */
  --ink-deep: #071A31;
  --sun: #F2A900;          /* sun gold: fills */
  --sun-2: #FFC233;        /* bright sun: on photos / dark */
  --sky: #F2F6FA;
  --green: #148A55;

  /* legacy aliases (inline styles + seo-pages.css use these) */
  --navy: var(--ink);
  --navy-deep: var(--ink-deep);
  --orange: var(--sun);
  --orange-2: var(--sun-2);
  --amber: var(--sun-2);
  --ivory: #F4F7FB;

  /* light theme (default) */
  --bg: #FFFFFF;
  --bg-alt: #F2F6FA;
  --surface: #FFFFFF;
  --surface-2: #F2F6FA;
  --fg: #0B2340;
  --fg-muted: #55657A;
  --line: #DCE4ED;
  --line-strong: #C3CFDC;
  --accent-ink: #9A6500;
  --track: #E3EAF2;
  --input-bg: #FFFFFF;
  --shadow: 0 1px 2px rgba(11, 35, 64, .05), 0 18px 40px -22px rgba(11, 35, 64, .22);
  --header-bg: rgba(255, 255, 255, .88);
  --header-fg: #0B2340;
  --logo-dark: none;
  --logo-light: block;

  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --sans: "Figtree", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: var(--display);

  --maxw: 1640px;
  --gutter: clamp(20px, 4vw, 72px);
  --r-sm: 12px;
  --r: 18px;
  --r-lg: 24px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  color-scheme: light;
}

:root[data-sv-theme="dark"] {
  --bg: #0A1A2E;
  --bg-alt: #0D2038;
  --surface: #0F2440;
  --surface-2: #13294A;
  --fg: #EAF1F8;
  --fg-muted: #9AAEC4;
  --line: #1F3655;
  --line-strong: #2C4A70;
  --accent-ink: #FFC233;
  --track: #1B3557;
  --input-bg: #0B1D33;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 20px 44px -22px rgba(0, 0, 0, .65);
  --header-bg: rgba(10, 26, 46, .86);
  --header-fg: #EAF1F8;
  --logo-dark: block;
  --logo-light: none;
  color-scheme: dark;
}
/* No-JS fallback follows the OS */
@media (prefers-color-scheme: dark) {
  :root:not([data-sv-theme]) {
    --bg: #0A1A2E; --bg-alt: #0D2038; --surface: #0F2440; --surface-2: #13294A; --fg: #EAF1F8; --fg-muted: #9AAEC4;
    --line: #1F3655; --line-strong: #2C4A70; --accent-ink: #FFC233; --track: #1B3557; --input-bg: #0B1D33;
    --shadow: 0 20px 44px -22px rgba(0, 0, 0, .65); --header-bg: rgba(10, 26, 46, .86); --header-fg: #EAF1F8;
    --logo-dark: block; --logo-light: none; color-scheme: dark;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 1.03rem; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .35s ease, color .35s ease; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance; }
p { margin: 0; }
button { font: inherit; }
.wrap { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.serif { font-family: var(--display); font-style: normal; font-weight: inherit; letter-spacing: inherit; color: var(--accent-ink); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 .8rem/1.3 var(--mono); letter-spacing: .02em; color: var(--accent-ink); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 22%, transparent); flex: none; }
.ic { width: 20px; height: 20px; flex: none; }
.hidden { display: none !important; }
:focus-visible { outline: 3px solid var(--sun); 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; }

/* ---------- Buttons ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font: 700 1rem/1 var(--sans); text-decoration: none; border: 0; cursor: pointer; white-space: nowrap; transition: transform .25s var(--ease), translate .45s var(--ease), box-shadow .25s var(--ease), background-color .25s ease, color .25s ease; }
.btn:active { transform: scale(.96); transition-duration: .12s; }
.btn .ic { width: 18px; height: 18px; }
.btn-sun { background: var(--sun); color: #1B1300; box-shadow: 0 14px 30px -14px rgba(242, 169, 0, .9); }
.btn-sun:hover { transform: translateY(-2px); background: var(--sun-2); box-shadow: 0 20px 38px -14px rgba(242, 169, 0, .95); }
.btn-glass { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .4); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .22); }
.btn-line { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--fg); }
.btn-ink { background: var(--fg); color: var(--bg); }
.btn-ink:hover { transform: translateY(-2px); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Scroll progress ---------- */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 1001; transform-origin: 0 50%; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, var(--sun-2), var(--sun)); pointer-events: none; }

/* ---------- Header ---------- */
.header-nav { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; padding-top: env(safe-area-inset-top, 0px); color: var(--header-fg); transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease; }
.header-nav.on-hero { color: #fff; }
.header-nav.scrolled { background: var(--header-bg); color: var(--header-fg); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line); }
.header-inner { display: flex; align-items: center; gap: 18px; height: var(--header-h); transition: height .3s var(--ease); }
.header-nav.scrolled .header-inner { height: 64px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 44px; width: auto; transition: height .3s var(--ease); }
.header-nav.scrolled .brand img { height: 36px; }
.brand .logo-on-dark { display: block; }
.brand .logo-on-light { display: none; }
.header-nav.scrolled .brand .logo-on-dark { display: var(--logo-dark); }
.header-nav.scrolled .brand .logo-on-light { display: var(--logo-light); }
.nav-main { display: flex; gap: 2px; margin-left: 18px; }
.nav-item-link { white-space: nowrap; position: relative; padding: 8px 13px; border-radius: 999px; font-size: .95rem; font-weight: 600; text-decoration: none; opacity: .86; transition: opacity .2s ease, background-color .2s ease; }
.nav-item-link:hover { opacity: 1; background: color-mix(in srgb, currentColor 9%, transparent); }
.nav-item-link.active { opacity: 1; }
.nav-item-link.active::after, .nav-item-link.current::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--sun); }
.nav-item-link.current { opacity: 1; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.phone-chip { white-space: nowrap; display: inline-flex; align-items: center; gap: 9px; padding: 4px 12px 4px 4px; border-radius: 999px; text-decoration: none; font-weight: 700; font-variant-numeric: tabular-nums; font-size: .95rem; }
.phone-chip .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: #1B1300; }
.phone-chip .dot .ic { width: 16px; height: 16px; }
.soc { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; text-decoration: none; flex: none; transition: transform .25s var(--ease); }
.soc:hover { transform: translateY(-2px) rotate(-4deg); }
.soc .ic { width: 18px; height: 18px; }
.soc.ig { background: radial-gradient(circle at 30% 107%, #FFDD55 0%, #FF543E 45%, #C837AB 70%, #6600FF 100%); }
.soc.fb { background: #0866FF; }
.soc.wa { background: #25D366; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: transparent; color: inherit; border: 0; cursor: pointer; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 28%, transparent); transition: transform .4s var(--ease), background-color .2s ease; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
#settingsBtn:hover .ic { transform: rotate(60deg); }
#settingsBtn .ic { transition: transform .5s var(--ease); }
.header-cta { min-height: 46px; padding: 0 18px 0 22px; font-size: .95rem; animation: ctaPulse 2.8s ease-in-out infinite; }
.header-cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .7) 50%, transparent 68%); transform: translateX(-130%); animation: ctaShine 4.8s var(--ease) infinite 1.4s; }
.header-cta .ic { width: 17px; height: 17px; transition: transform .3s var(--ease); }
.header-cta:hover .ic { transform: translateX(4px); }
@keyframes ctaShine { 0%, 62% { transform: translateX(-130%); } 88%, 100% { transform: translateX(130%); } }
@keyframes ctaPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(242, 169, 0, .55), 0 12px 28px -12px rgba(242, 169, 0, .85); } 60% { box-shadow: 0 0 0 10px rgba(242, 169, 0, 0), 0 12px 28px -12px rgba(242, 169, 0, .85); } }
.mobile-nav-toggle { display: none; }

/* Mobile drawer (driven by js/app.js: .open) */
.mobile-nav-backdrop { position: fixed; inset: 0; z-index: 1100; background: rgba(4, 14, 28, .5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.mobile-nav-backdrop.open { opacity: 1; pointer-events: auto; }
.mobile-nav-drawer { position: fixed; top: 0; bottom: 0; right: 0; z-index: 1101; width: min(350px, 88vw); background: var(--surface); color: var(--fg); transform: translateX(105%); visibility: hidden; transition: transform .4s var(--ease), visibility 0s linear .4s; display: flex; flex-direction: column; padding: calc(16px + env(safe-area-inset-top, 0px)) 18px calc(18px + env(safe-area-inset-bottom, 0px)); gap: 14px; box-shadow: -20px 0 60px rgba(0, 0, 0, .25); }
.mobile-nav-drawer.open { transform: none; visibility: visible; transition: transform .4s var(--ease), visibility 0s; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; }
.drawer-head img { height: 36px; width: auto; }
.drawer-head .logo-on-dark { display: var(--logo-dark); }
.drawer-head .logo-on-light { display: var(--logo-light); }
.drawer-badge { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--sun) 14%, transparent); font-size: .86rem; }
.drawer-badge strong { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.drawer-links { display: grid; gap: 2px; overflow-y: auto; }
.mobile-nav-link { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: var(--r-sm); text-decoration: none; font-weight: 650; }
.mobile-nav-link:hover { background: var(--surface-2); }
.mobile-nav-link .ic { color: var(--accent-ink); }
.drawer-foot { margin-top: auto; display: grid; gap: 10px; }
.drawer-foot .btn-sun.mobile-nav-link { color: #1B1300 !important; }
.drawer-socials { display: flex; gap: 10px; justify-content: center; }

/* ---------- Hero (home): centred promise under a live sun path ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--ink-deep); min-height: clamp(600px, 100svh, 1040px); display: grid; align-items: center; }
.hero-media { position: absolute; inset: -4% 0 0 0; z-index: -3; will-change: transform; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 45%; animation: drift 26s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1.02); } to { transform: scale(1.07) translateX(-1%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(60% 55% at 50% 52%, rgba(5, 16, 32, .72) 0%, rgba(5, 16, 32, .45) 60%, rgba(5, 16, 32, .25) 100%),
  linear-gradient(180deg, rgba(5, 16, 32, .55) 0%, rgba(5, 16, 32, 0) 22%, rgba(5, 16, 32, 0) 70%, rgba(5, 16, 32, .7) 100%); }
.hero-sun { display: none; }

/* The sun's path across the sky, drawn live for Cherthala (js/premium.js initSunArc) */
.sky { position: absolute; z-index: -1; left: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); right: max(var(--gutter), calc((100% - var(--maxw)) / 2 + var(--gutter))); top: calc(var(--header-h) + clamp(16px, 4vh, 44px)); bottom: clamp(64px, 11vh, 110px); pointer-events: none; }
.sky::after { content: ""; position: absolute; left: -4%; right: -4%; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35) 12%, rgba(255, 255, 255, .35) 88%, transparent); }
.sky-arc { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.sky-track { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.25; stroke-dasharray: 2 7; }
.sky-fill { fill: none; stroke: var(--sun-2); stroke-width: 2.5; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255, 194, 51, .8)); }
.sky-sun { position: absolute; left: 0; top: 100%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: radial-gradient(circle at 40% 38%, #FFF3C4 0%, #FFC233 45%, #F2A900 100%); box-shadow: 0 0 0 6px rgba(255, 194, 51, .18), 0 0 40px 10px rgba(255, 194, 51, .55); animation: sunGlow 3.2s ease-in-out infinite; }
.sky-sun.night { background: #C9D3E0; box-shadow: 0 0 0 6px rgba(201, 211, 224, .12), 0 0 26px 4px rgba(201, 211, 224, .35); animation: none; }
@keyframes sunGlow { 50% { box-shadow: 0 0 0 12px rgba(255, 194, 51, .08), 0 0 60px 16px rgba(255, 194, 51, .6); } }
.sky-now { position: absolute; left: 50%; bottom: -30px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; font: 600 .74rem var(--mono); color: #fff; }
.sky-now::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun-2); box-shadow: 0 0 10px 2px rgba(255, 194, 51, .7); }
.sky.is-night .sky-now::before { background: #C9D3E0; box-shadow: none; }
.sky.is-night .sky-fill { stroke: rgba(255, 194, 51, .45); filter: none; }
.sky-end { position: absolute; bottom: -30px; font: 500 .72rem var(--mono); color: rgba(255, 255, 255, .62); letter-spacing: .02em; }
.sky-end.l { left: 0; }
.sky-end.r { right: 0; }

.hero-center { display: grid; justify-items: center; text-align: center; padding-block: calc(var(--header-h) + clamp(56px, 12vh, 130px)) clamp(110px, 17vh, 170px); }
.pill { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; font: 500 .82rem/1.3 var(--mono); color: #FFD467; }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sun-2); box-shadow: 0 0 0 5px rgba(255, 194, 51, .25); flex: none; }
.pill a { color: inherit; text-decoration: none; border-bottom: 1px dashed rgba(255, 212, 103, .6); }
.pill a:hover { color: #fff; }
.hero-center .pill.town-links { justify-content: center; }
.hero h1 { font-size: clamp(2.5rem, min(5.4vw, 9.4vh), 6rem); font-weight: 800; line-height: 1.02; letter-spacing: -0.032em; margin-top: 22px; text-shadow: 0 2px 40px rgba(5, 16, 32, .45); }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .sun { color: var(--sun-2); }
.hero .lede { margin-top: clamp(14px, 2.4vh, 24px); color: rgba(255, 255, 255, .86); max-width: 54ch; font-size: clamp(1.02rem, 1.2vw, 1.18rem); line-height: 1.6; }
/* Bill box: a slim glass pill so the photo shows through */
.hero-quick { margin-top: clamp(24px, 4vh, 40px); width: min(480px, 100%); }
.hero-quick form { display: flex; align-items: center; gap: 8px; padding: 5px 5px 5px 20px; border-radius: 999px; background: rgba(8, 22, 42, .34); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .34), 0 18px 40px -22px rgba(0, 0, 0, .55); transition: box-shadow .3s var(--ease), background-color .3s ease; }
.hero-quick form:hover { background: rgba(8, 22, 42, .44); }
.hero-quick form:focus-within { background: rgba(8, 22, 42, .5); box-shadow: inset 0 0 0 1.5px rgba(255, 194, 51, .85), 0 0 0 5px rgba(255, 194, 51, .16), 0 18px 40px -22px rgba(0, 0, 0, .55); }
.hero-quick label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hero-quick .cur { font: 700 1.05rem var(--display); color: rgba(255, 255, 255, .8); }
.hero-quick input { flex: 1; min-width: 0; width: 100%; border: 0; background: none; color: #fff; font: 700 1.12rem/1 var(--display); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; outline: 0; -moz-appearance: textfield; }
.hero-quick input::-webkit-outer-spin-button, .hero-quick input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hero-quick input::placeholder { color: rgba(255, 255, 255, .62); font-weight: 600; }
.hero-quick .per { white-space: nowrap; color: rgba(255, 255, 255, .6); font-weight: 600; font-size: .84rem; }
.hero-quick .btn { min-height: 44px; padding: 0 18px; font-size: .92rem; }
.hero-quick .out { margin-top: 12px; min-height: 1.5em; font: 500 .8rem/1.5 var(--mono); color: rgba(255, 255, 255, .82); opacity: 0; transform: translateY(-4px); transition: opacity .35s ease, transform .35s var(--ease); }
.hero-quick:focus-within .out, .hero-quick.has-value .out { opacity: 1; transform: none; }
.hero-quick .out b { color: var(--sun-2); font-weight: 700; }

/* ---------- Trust marquee ---------- */
.marquee { background: var(--surface); border-bottom: 1px solid var(--line); overflow: hidden; }
.marquee-track { display: flex; gap: 52px; width: max-content; padding-block: 20px; animation: marquee 42s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; white-space: nowrap; color: var(--fg); }
.marquee-item .ic { color: var(--accent-ink); }
.marquee-item span { color: var(--fg-muted); font-weight: 500; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 116px); position: relative; }
.section.alt { background: var(--bg-alt); }
.section-head { display: grid; gap: 16px; max-width: 820px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; }
.section-head p { color: var(--fg-muted); font-size: 1.1rem; max-width: 64ch; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }

/* ---------- Calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); overflow: hidden; }
.calc-in { padding: clamp(22px, 3.2vw, 44px); display: grid; gap: 22px; align-content: start; border-right: 1px solid var(--line); }
.calc-in h3 { font-size: 1.4rem; display: flex; align-items: center; gap: 10px; }
.calc-in h3 .ic { color: var(--accent-ink); }
.muted { color: var(--fg-muted); font-size: .94rem; }
.seg { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); position: relative; }
.seg button { position: relative; z-index: 1; min-height: 46px; border: 0; background: transparent; color: var(--fg-muted); font-weight: 700; font-size: .93rem; border-radius: 999px; cursor: pointer; transition: color .25s ease; }
.seg button.active { color: var(--bg); }
/* Monthly Bill is the first tab: the pill sits left in bill mode, right in units mode */
.seg::before { content: ""; position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--fg); transform: translateX(100%); transition: transform .35s var(--ease); }
.seg.bill::before { transform: none; }
.label-sm { font: 600 .74rem/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.preset-pill { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--fg); font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .2s ease; }
.preset-pill:hover { border-color: var(--fg); }
.preset-pill.active { background: color-mix(in srgb, var(--sun) 18%, transparent); border-color: var(--sun); color: var(--accent-ink); font-weight: 700; }
.value-row { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.big-input { display: flex; align-items: baseline; gap: 8px; padding: 6px 18px; border-radius: var(--r); background: var(--input-bg); border: 1.5px solid var(--line-strong); transition: border-color .2s ease, box-shadow .2s ease; }
.big-input:focus-within { border-color: var(--sun); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 22%, transparent); }
.big-input .cur { font: 700 1.6rem var(--display); color: var(--accent-ink); }
.big-input input { width: 6.5ch; min-width: 0; border: 0; background: transparent; color: var(--fg); font: 800 2.5rem/1.1 var(--display); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; text-align: right; -moz-appearance: textfield; }
.big-input input::-webkit-outer-spin-button, .big-input input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.big-input input:focus { outline: none; }
.big-input .unit-tag { white-space: nowrap; font-weight: 650; color: var(--fg-muted); }
.input-hint { font-size: .84rem; color: var(--fg-muted); min-height: 1.2em; }
.input-hint.warn { color: var(--accent-ink); }
.calc-range-slider { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; touch-action: pan-y; }
.calc-range-slider::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--sun) 0 var(--slider-percent, 30%), var(--track) var(--slider-percent, 30%) 100%); }
.calc-range-slider::-moz-range-track { height: 8px; border-radius: 99px; background: var(--track); }
.calc-range-slider::-moz-range-progress { height: 8px; border-radius: 99px; background: var(--sun); }
.calc-range-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: #fff; border: 7px solid var(--sun); box-shadow: 0 4px 14px rgba(11, 35, 64, .3); transition: transform .2s ease; }
.calc-range-slider:active::-webkit-slider-thumb { transform: scale(1.12); }
.calc-range-slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 7px solid var(--sun); box-shadow: 0 4px 14px rgba(11, 35, 64, .3); }
.ticks { display: flex; justify-content: space-between; font: 500 .74rem var(--mono); color: var(--fg-muted); font-variant-numeric: tabular-nums; margin-top: -6px; }
.field { display: grid; gap: 7px; }
.field label, .field .lbl { font-size: .86rem; font-weight: 700; }
.form-control, .field input, .field select, .field textarea { width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px; background: var(--input-bg); color: var(--fg); border: 1.5px solid var(--line-strong); font: 500 1rem var(--sans); transition: border-color .2s ease, box-shadow .2s ease; }
.field textarea { padding: 12px 16px; min-height: 100px; resize: vertical; }
.form-control:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sun) 22%, transparent); }
.field input::placeholder, .field textarea::placeholder { color: color-mix(in srgb, var(--fg-muted) 75%, transparent); }
.input-error { border-color: #D93D42 !important; }
.live { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--fg-muted); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(20, 138, 85, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(20, 138, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(20, 138, 85, 0); } }

/* Results readout: a deep grid-blue panel in both themes */
.calc-out { position: relative; overflow: hidden; padding: clamp(22px, 3.2vw, 44px); display: grid; gap: 18px; align-content: start; color: var(--ivory); background: radial-gradient(90% 70% at 100% 0%, rgba(255, 194, 51, .22), rgba(255, 194, 51, 0) 60%), linear-gradient(165deg, #0F2E52 0%, #071A31 85%); }
.result-hero { display: flex; align-items: center; gap: 20px; }
.gauge { position: relative; width: 104px; height: 104px; flex: none; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .bgc { stroke: rgba(255, 255, 255, .12); }
#resultGaugeFill { transition: stroke-dashoffset .6s var(--ease); }
.gauge .sunic { position: absolute; inset: 0; display: grid; place-items: center; color: var(--sun-2); }
.gauge .sunic .ic { width: 30px; height: 30px; animation: spin 24s linear infinite; }
.result-tag { font: 500 .76rem var(--mono); letter-spacing: .04em; color: var(--sun-2); }
.result-kw { font: 800 clamp(2.7rem, 6vw, 3.9rem)/1 var(--display); letter-spacing: -0.045em; color: #fff; font-variant-numeric: tabular-nums; margin-top: 4px; }
.result-sub { font-size: .92rem; color: rgba(244, 247, 251, .74); margin-top: 6px; }
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: rgba(255, 255, 255, .1); border-radius: var(--r); overflow: hidden; }
.metric { background: rgba(7, 26, 49, .82); padding: 14px 16px; display: grid; gap: 6px; align-content: start; }
.metric .mi { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255, 194, 51, .14); color: var(--sun-2); }
.metric .mi .ic { width: 17px; height: 17px; }
.metric .ml { font-size: .78rem; color: rgba(244, 247, 251, .64); line-height: 1.3; }
.metric .mv { font: 700 1.04rem/1.25 var(--mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.metric.good .mv { color: #6BE3A8; }
.metric.good .mi { background: rgba(107, 227, 168, .14); color: #6BE3A8; }
.modules { border-radius: var(--r); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); padding: 14px 16px; display: grid; gap: 10px; }
.modules .row { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .86rem; font-weight: 700; }
.modules .row .tagp { padding: 3px 10px; border-radius: 999px; background: rgba(255, 194, 51, .16); color: var(--sun-2); font-size: .78rem; }
.solar-panel-icons-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.mini-panel-icon { width: 22px; height: 30px; border-radius: 3px; padding: 2px; display: grid; grid-template-rows: repeat(3, 1fr); gap: 2px; background: linear-gradient(160deg, #2A6CB0, #0D3A6B); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); animation: panelIn .45s var(--ease) both; }
.mini-panel-cell { border-radius: 1px; background: linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .05)); }
@keyframes panelIn { from { opacity: 0; transform: translateY(6px) scale(.85); } }
.formula { font-size: .84rem; color: rgba(244, 247, 251, .76); }
.formula summary { cursor: pointer; font-weight: 700; color: var(--sun-2); list-style: none; }
.formula summary::-webkit-details-marker { display: none; }
.formula dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin: 10px 0 0; font-variant-numeric: tabular-nums; }
.formula dd { margin: 0; font-weight: 700; color: #fff; text-align: right; font-family: var(--mono); }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.contact-points { display: grid; gap: 14px; margin-top: 28px; }
.cpoint { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .25s var(--ease), border-color .2s ease; }
.cpoint:hover { transform: translateX(4px); border-color: var(--sun); }
.cpoint .cic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--sun) 16%, transparent); color: var(--accent-ink); flex: none; }
.cpoint strong { display: block; }
.cpoint span { color: var(--fg-muted); font-size: .9rem; overflow-wrap: anywhere; }
.form-card { padding: clamp(22px, 3.2vw, 40px); position: relative; }
.form-card form { display: grid; gap: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fine { text-align: center; font-size: .86rem; color: var(--fg-muted); }
.fine a { color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.state-box { padding: 28px 18px; border-radius: var(--r); display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.state-box.ok { background: color-mix(in srgb, var(--green) 12%, transparent); }
.state-box.ok .ic { width: 44px; height: 44px; color: var(--green); }
.state-box.err { background: rgba(217, 61, 66, .12); color: #D93D42; }

/* ---------- KSEB ---------- */
.kseb { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.dtr { position: relative; padding: clamp(22px, 3vw, 38px); display: grid; gap: 18px; }
.dtr-bar { height: 16px; border-radius: 99px; background: var(--track); overflow: hidden; position: relative; }
.dtr-fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, var(--sun-2), var(--sun)); transition: width 1.6s var(--ease); }
.in .dtr-fill { width: 90%; }
.dtr-legend { display: flex; justify-content: space-between; font: 500 .78rem var(--mono); color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.portal { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); flex-wrap: wrap; }
.portal code { font-family: var(--mono); font-size: .86rem; color: var(--accent-ink); }
.steps-mini { display: grid; gap: 12px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: k; }
.steps-mini li { counter-increment: k; display: flex; gap: 12px; align-items: flex-start; color: var(--fg-muted); }
.steps-mini li::before { content: counter(k); flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem var(--mono); background: var(--fg); color: var(--bg); }
.steps-mini strong { color: var(--fg); }

/* ---------- Equipment ---------- */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: clamp(36px, 5vw, 56px); position: relative; }
.flow-node { position: relative; display: grid; justify-items: center; text-align: center; gap: 10px; padding: 0 10px; }
.flow-node .fic { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--accent-ink); box-shadow: var(--shadow); position: relative; z-index: 1; transition: transform .5s var(--ease), border-color .3s ease, background-color .3s ease; }
.flow-node .fic .ic { width: 28px; height: 28px; }
.flow-node.lit .fic { border-color: var(--sun); background: var(--sun); color: #1B1300; transform: translateY(-4px); box-shadow: 0 14px 30px -12px rgba(242, 169, 0, .7); }
.flow-node strong { font: 700 1.02rem var(--display); }
.flow-node span { font: 500 .8rem var(--mono); color: var(--fg-muted); }
.flow-line { position: absolute; top: 34px; left: 12.5%; right: 12.5%; height: 2px; background: var(--line-strong); z-index: 0; overflow: hidden; border-radius: 2px; }
.flow-line::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--flow, 0)); background: linear-gradient(90deg, var(--sun-2), var(--sun)); }
.flow-line i { position: absolute; top: -3px; width: 40px; height: 8px; border-radius: 8px; background: radial-gradient(closest-side, #fff, rgba(255, 194, 51, 0)); animation: electron 2.6s linear infinite; opacity: var(--flow, 0); }
@keyframes electron { from { left: -40px; } to { left: 100%; } }
.eq-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.eq { padding: 26px; display: grid; gap: 14px; align-content: start; transition: transform .35s var(--ease), border-color .3s ease; }
.eq:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--sun) 60%, transparent); }
.eq-top { display: flex; gap: 14px; align-items: flex-start; }
.eq-top .eic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--sun) 16%, transparent); color: var(--accent-ink); }
.eq-cat { font: 500 .74rem var(--mono); letter-spacing: .02em; color: var(--accent-ink); }
.eq h3 { font-size: 1.22rem; margin-top: 4px; }
.eq-qty { margin-left: auto; flex: none; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font: 600 .76rem var(--mono); white-space: nowrap; }
.eq p { color: var(--fg-muted); font-size: .95rem; }
.spec { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; font-size: .9rem; padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.spec dt { color: var(--fg-muted); }
.spec dd { margin: 0; font-weight: 650; }
.makes { display: flex; flex-wrap: wrap; gap: 6px; }
.makes span { padding: 4px 10px; border-radius: 999px; font-size: .8rem; font-weight: 650; background: var(--surface-2); border: 1px solid var(--line); }
.eq details summary { cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--accent-ink); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
.eq details summary::-webkit-details-marker { display: none; }
.eq details summary .ic { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.eq details[open] summary .ic { transform: rotate(180deg); }
.eq details ul { margin: 10px 0 0; padding-left: 18px; color: var(--fg-muted); font-size: .92rem; display: grid; gap: 6px; }
.ref-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.ref { padding: 28px; }
.ref h3 { font-size: 1.25rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.ref h3 .ic { color: var(--accent-ink); }
.table-wrap { overflow-x: auto; }
.ref table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.ref th, .ref td { text-align: left; padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.ref th { font-weight: 500; color: var(--fg-muted); padding-right: 16px; }
.ref td { font-weight: 650; }
.ref tr:last-child th, .ref tr:last-child td { border-bottom: 0; }
.ref-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; margin-bottom: 16px; }
.ref-head h3 { margin-bottom: 0; }
.ref-tabs { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.ref-tabs button { min-height: 38px; min-width: 64px; padding: 0 14px; border: 0; border-radius: 999px; background: transparent; color: var(--fg-muted); font: 700 .9rem var(--sans); cursor: pointer; transition: background-color .25s ease, color .25s ease, box-shadow .25s ease; }
.ref-tabs button:hover { color: var(--fg); }
.ref-tabs button[aria-selected="true"] { background: var(--fg); color: var(--bg); box-shadow: 0 6px 16px -8px rgba(11, 35, 64, .5); }
.ref-tabs button:focus-visible { outline: 2px solid var(--sun); outline-offset: 2px; }
.ref-panels { display: grid; }
.ref-panel { grid-area: 1 / 1; display: flex; flex-direction: column; }
.ref-panel[aria-hidden="true"] { visibility: hidden; opacity: 0; transform: translateY(6px); }
.ref-panel.on { animation: refIn .4s var(--ease) both; }
@keyframes refIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ref-kind { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-bottom: 4px; }
.ref-kind strong { font: 700 1.05rem var(--display); }
.ref-kind span { font: 500 .78rem var(--mono); color: var(--accent-ink); }
.ref-panel .note { margin-top: auto; padding-top: 14px; }
.ref-panel .note .textlink { white-space: nowrap; }
.ref-panel th { width: 34%; }
/* Warranty: years column sized to the widest value ("5–10 years") so it never wraps */
.warranty { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 24px; }
.wrow { grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: baseline; padding-block: 14px; border-top: 1px solid var(--line); }
.wrow:first-child { border-top: 0; padding-top: 4px; }
.wyrs { white-space: nowrap; font: 800 2rem/1 var(--display); letter-spacing: -0.03em; color: var(--accent-ink); font-variant-numeric: tabular-nums; }
.wyrs small { display: block; font: 600 .68rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--fg-muted); margin-top: 7px; }
.wrow p { font-size: .93rem; color: var(--fg-muted); }
.wrow strong { color: var(--fg); display: block; font-size: 1rem; }
.note { font-size: .84rem; color: var(--fg-muted); margin-top: 14px; }

/* ---------- Savings ---------- */
.savings { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.big-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.big-stat { padding: 28px; }
.big-stat .n { white-space: nowrap; font: 800 clamp(2rem, 3.4vw, 3.6rem)/1 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.big-stat .n.sun { color: var(--accent-ink); }
.big-stat .l { margin-top: 12px; font-weight: 700; }
.big-stat .s { font-size: .88rem; color: var(--fg-muted); }
.badge { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--green) 14%, transparent); color: var(--green); font-weight: 700; font-size: .8rem; }

/* ---------- Process (scroll-driven) ---------- */
.process { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
.process-line { position: absolute; top: 27px; left: 10%; right: 10%; height: 2px; background: var(--line-strong); border-radius: 2px; overflow: hidden; }
.process-line::after { content: ""; position: absolute; inset: 0; transform-origin: 0 50%; transform: scaleX(var(--pp, 0)); background: linear-gradient(90deg, var(--sun-2), var(--sun)); }
.pstep { position: relative; display: grid; gap: 10px; align-content: start; justify-items: start; }
.pstep .num { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font: 700 1.05rem var(--mono); background: var(--surface); border: 1.5px solid var(--line-strong); color: var(--fg-muted); position: relative; z-index: 1; transition: all .5s var(--ease); }
.pstep.lit .num { background: var(--sun); color: #1B1300; border-color: transparent; box-shadow: 0 10px 24px -10px rgba(242, 169, 0, .9); transform: scale(1.06); }
.pstep h3 { font-size: 1.12rem; }
.pstep p { color: var(--fg-muted); font-size: .94rem; }
.quality { margin-top: 32px; padding: 0; overflow: hidden; }
.quality summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; font-weight: 700; }
.quality summary::-webkit-details-marker { display: none; }
.quality summary > span { display: inline-flex; gap: 10px; align-items: center; }
.quality summary .ic { color: var(--accent-ink); }
.quality summary .chev { transition: transform .3s var(--ease); }
.quality[open] summary .chev { transform: rotate(180deg); }
.quality .body { padding: 0 22px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; color: var(--fg-muted); font-size: .94rem; }
.quality .body strong { display: block; color: var(--fg); margin-bottom: 4px; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.why-card { padding: 28px 24px; display: grid; gap: 12px; align-content: start; position: relative; overflow: hidden; transition: transform .35s var(--ease); }
.why-card:hover { transform: translateY(-4px); }
.why-card .wic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: #1B1300; }
.why-card h3 { font-size: 1.14rem; }
.why-card p { color: var(--fg-muted); font-size: .94rem; }

/* ---------- Projects ---------- */
.proj { display: grid; grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; gap: 20px; }
.pcard { margin: 0; position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-deep); min-height: 270px; }
.pcard img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); }
.pcard.in img { transform: scale(1); }
.pcard:hover img { transform: scale(1.04); }
.pcard:first-child { grid-row: span 2; min-height: 560px; }
.pcard figcaption { position: absolute; inset: auto 0 0 0; padding: 70px 24px 22px; background: linear-gradient(transparent, rgba(5, 16, 32, .9)); color: #fff; }
.pcard figcaption strong { display: block; font: 700 1.2rem var(--display); }
.pcard figcaption span { font-size: .9rem; color: rgba(244, 247, 251, .82); }

/* Keep reading strip on guide and town pages (fixed order, current page marked) */
.rel-grid.rel-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rel-grid.rel-8 .rel { align-content: start; }
.rel-grid .rel.is-current { cursor: default; border-color: var(--sun); background: color-mix(in srgb, var(--sun) 10%, var(--surface)); box-shadow: inset 0 0 0 1px var(--sun); }
.rel-grid .rel.is-current:hover { transform: none; }
.rel-grid .rel .here { justify-self: start; margin-top: 4px; padding: 3px 9px; border-radius: 999px; font: 600 .72rem var(--mono); font-style: normal; background: var(--sun); color: var(--ink); }

/* Projects page */
.work-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: clamp(24px, 3vw, 40px); }
.work-count { margin-left: auto; font: 500 .85rem var(--mono); }
.work-count b { color: var(--fg); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.work { display: flex; flex-direction: column; overflow: hidden; transition: translate .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease; }
.work[hidden] { display: none; }
.work:hover { translate: 0 -4px; border-color: color-mix(in srgb, var(--sun) 55%, var(--line)); box-shadow: 0 26px 50px -30px rgba(11, 35, 64, .45); }
html.anim .work[data-reveal] { transition: opacity .9s var(--ease) calc(var(--d, 0) * 90ms), transform .9s var(--ease) calc(var(--d, 0) * 90ms), translate .35s var(--ease), box-shadow .35s var(--ease), border-color .35s ease; }
.work.pop { animation: workPop .5s var(--ease) both; }
@keyframes workPop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.work-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--ink-deep); }
.work-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.work:hover .work-media img { transform: scale(1.05); }
.work-tags { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.work-tags span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font: 600 .78rem var(--mono); background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.work-tags .kw { background: var(--sun); color: var(--ink); font-weight: 700; }
.work-tags .ic { width: 14px; height: 14px; }
.work-body { display: flex; flex-direction: column; gap: 12px; padding: clamp(20px, 2vw, 28px); flex: 1; }
.work-cat { font: 600 .75rem var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.work-body h2 { font-size: clamp(1.25rem, 1.6vw, 1.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.work-body p { color: var(--fg-muted); font-size: .97rem; }
.work-save { margin-top: auto; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.work-save span { font-size: .85rem; color: var(--fg-muted); }
.work-save strong { font: 700 1.35rem var(--mono); color: var(--fg); white-space: nowrap; }
.work-empty { margin-top: 20px; }
.textlink { display: inline-flex; align-items: center; gap: 6px; color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.textlink:hover { text-decoration: underline; }
.head-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: clamp(32px, 4vw, 56px); }
.head-row .section-head { margin-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list details:first-child { border-top: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font: 700 1.08rem/1.35 var(--display); letter-spacing: -0.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary .pm { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--surface-2); }
.faq-list summary .pm::before, .faq-list summary .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--fg); border-radius: 2px; transition: transform .3s var(--ease); }
.faq-list summary .pm::after { transform: rotate(90deg); }
.faq-list details[open] summary .pm { background: var(--sun); }
.faq-list details[open] summary .pm::before, .faq-list details[open] summary .pm::after { background: #1B1300; }
.faq-list details[open] summary .pm::after { transform: rotate(0deg); }
.faq-list details > div { padding: 0 0 22px; color: var(--fg-muted); max-width: 68ch; }
.faq-list details[open] > div { animation: drop .4s var(--ease); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Closing band: sunset over the brand ---------- */
.closing { position: relative; overflow: hidden; text-align: center; color: #fff; background: linear-gradient(180deg, #0B2340 0%, #123A66 62%, #1C4C7E 100%); }
.closing-sun { position: absolute; left: 50%; bottom: 0; width: min(560px, 120%); aspect-ratio: 1; transform: translateX(-50%) translateY(calc(74% + var(--rise, 120px))); border-radius: 50%; background: radial-gradient(circle at 50% 40%, #FFE08A 0%, #FFC233 38%, #F2A900 62%, rgba(242, 169, 0, 0) 72%); filter: blur(.5px); pointer-events: none; }
.closing .wrap { position: relative; z-index: 1; padding-block: clamp(80px, 10vw, 140px) clamp(180px, 14vw, 220px); display: grid; justify-items: center; gap: 22px; }
.closing img { width: min(340px, 72%); height: auto; }
.closing .btn-sun { box-shadow: 0 0 0 6px rgba(11, 35, 64, .45), 0 22px 44px -16px rgba(0, 0, 0, .65); }
.closing .btn-sun:hover { box-shadow: 0 0 0 6px rgba(255, 194, 51, .25), 0 26px 50px -16px rgba(0, 0, 0, .7); }
.rule { width: min(300px, 60%); height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 194, 51, .8), transparent); }
.closing h2 { font-size: clamp(1.9rem, 4.2vw, 3.2rem); line-height: 1.12; max-width: 22ch; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.contact-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 18px; font-weight: 700; font-size: 1.1rem; }
.contact-line .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--sun-2); }
.contact-line a { text-decoration: none; }
.handles { display: grid; gap: 10px; justify-items: center; }
.handles a { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; opacity: .92; }
.handles a:hover { opacity: 1; text-decoration: underline; }
.handles .soc { width: 28px; height: 28px; }
.handles .soc .ic { width: 15px; height: 15px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-deep); color: rgba(244, 247, 251, .72); font-size: .92rem; }
.site-footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 32px; }
.site-footer h4 { color: #fff; font: 600 .74rem var(--mono); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.foot-badge { display: flex; gap: 10px; align-items: center; margin-bottom: 14px; color: #fff; font-weight: 700; }
.foot-badge .ic { color: var(--sun-2); }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .08); }
.foot-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-block: 18px; font-size: .82rem; }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar { display: none; }

/* ---------- Floating WhatsApp ---------- */
.fab-wa { position: fixed; right: 22px; bottom: 22px; z-index: 900; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: #25D366; color: #fff; box-shadow: 0 12px 30px -8px rgba(37, 211, 102, .7); transition: transform .3s var(--ease); }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa .ic { width: 28px; height: 28px; }

/* ---------- Settings (theme) ---------- */
.settings-backdrop { position: fixed; inset: 0; z-index: 1200; background: rgba(4, 14, 28, .5); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .3s ease; }
.settings-backdrop.open { opacity: 1; pointer-events: auto; }
.settings { width: min(520px, 100%); background: var(--surface); color: var(--fg); border-radius: var(--r-lg); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .5); border: 1px solid var(--line); transform: translateY(14px) scale(.98); transition: transform .4s var(--ease); max-height: calc(100svh - 32px); overflow-y: auto; }
.settings-backdrop.open .settings { transform: none; }
.settings-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 22px 6px; }
.settings-head h2 { font-size: 1.3rem; }
.settings-body { padding: 10px 22px 24px; display: grid; gap: 14px; }
.settings-body .lbl { font-weight: 700; }
.settings-body .muted { margin-top: -8px; }
.theme-opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.theme-opt { border: 0; background: transparent; color: var(--fg); padding: 0; cursor: pointer; display: grid; gap: 8px; text-align: center; font-weight: 650; font-size: .92rem; }
.theme-prev { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; box-shadow: inset 0 0 0 1.5px var(--line-strong); position: relative; transition: box-shadow .2s ease, transform .25s var(--ease); }
.theme-opt:hover .theme-prev { transform: translateY(-2px); }
.theme-opt[aria-checked="true"] .theme-prev { box-shadow: inset 0 0 0 2.5px var(--sun), 0 8px 20px -10px rgba(242, 169, 0, .8); }
.tp { position: absolute; inset: 0; padding: 14% 12%; display: grid; gap: 8px; align-content: start; }
.tp i { display: block; height: 8px; border-radius: 4px; }
.tp i:nth-child(1) { width: 45%; background: var(--sun); }
.tp i:nth-child(2) { width: 85%; }
.tp i:nth-child(3) { width: 65%; }
.tp-light { background: #FFFFFF; }
.tp-light i:nth-child(n+2) { background: #DCE4ED; }
.tp-dark { background: #0A1A2E; }
.tp-dark i:nth-child(n+2) { background: #1F3655; }
.tp-split { clip-path: inset(0 0 0 50%); }
.settings-foot { font-size: .82rem; color: var(--fg-muted); padding: 0 22px 20px; }

/* ---------- Scroll reveal ---------- */
html.anim [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
html.anim [data-reveal="left"] { transform: translateX(-34px); }
html.anim [data-reveal="right"] { transform: translateX(34px); }
html.anim [data-reveal="zoom"] { transform: scale(.95); }
html.anim [data-reveal].in { opacity: 1; transform: none; }
html.anim .hero h1 .line > span { transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--d, 0) * 110ms + 150ms); }
html.anim.loaded .hero h1 .line > span { transform: none; }

/* ---------- Sun cursor and click effects (js/premium.js: initCursor, initClickFx) ---------- */
/* The normal pointer is only hidden once the sun cursor is actually on screen */
html.cursor-on, html.cursor-on * { cursor: none !important; }
html.cursor-on input:not([type=range]):not([type=checkbox]):not([type=radio]):not([type=submit]):not([type=button]), html.cursor-on textarea, html.cursor-on [contenteditable] { cursor: text !important; }
html.cursor-on iframe { cursor: auto !important; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 10000; pointer-events: none; border-radius: 50%; opacity: 0; will-change: transform; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; background: var(--sun); box-shadow: 0 0 0 1.5px rgba(11, 35, 64, .35), 0 0 14px 2px rgba(242, 169, 0, .75); transition: opacity .25s ease, width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease); }
.cur-ring { width: 38px; height: 38px; margin: -19px 0 0 -19px; }
.cur-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(242, 169, 0, .85); box-shadow: 0 0 0 1px rgba(11, 35, 64, .08); transition: transform .35s var(--ease), background-color .3s ease, border-color .3s ease; }
.cur-ring { transition: opacity .25s ease; }
html.cursor-on .cur-dot, html.cursor-on .cur-ring { opacity: 1; }
html.cursor-text .cur-dot, html.cursor-text .cur-ring { opacity: 0; }
.cur-ring.hover::before { transform: scale(1.7); background: rgba(242, 169, 0, .14); border-style: dashed; border-color: rgba(242, 169, 0, .9); animation: spin 7s linear infinite; }
.cur-ring.hover + .cur-dot, .cur-dot.hover { width: 6px; height: 6px; margin: -3px 0 0 -3px; }
.cur-ring.down::before { transform: scale(.7); background: rgba(242, 169, 0, .3); }
.click-burst { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 9999; pointer-events: none; }
.click-burst::before { content: ""; position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%; border: 2px solid var(--sun-2); animation: burstRing .6s var(--ease) forwards; }
.click-burst i { position: absolute; left: -1.5px; top: -1.5px; width: 3px; height: 9px; border-radius: 3px; background: var(--sun); transform-origin: 1.5px 1.5px; animation: burstRay .55s var(--ease) forwards; }
@keyframes burstRing { from { transform: scale(.15); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
@keyframes burstRay { from { transform: rotate(var(--a)) translateY(-10px) scaleY(.3); opacity: 1; } to { transform: rotate(var(--a)) translateY(-34px) scaleY(1); opacity: 0; } }
.icon-btn { position: relative; overflow: hidden; isolation: isolate; }
.ripple { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; background: currentColor; opacity: .28; transform: scale(0); animation: ripple .7s var(--ease) forwards; }
.btn-sun .ripple { background: #fff; opacity: .55; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html.anim [data-reveal] { opacity: 1; transform: none; }
  html.anim .hero h1 .line > span { transform: none; }
  .marquee-track { animation: none; }
}

/* ==========================================================================
   MULTI-PAGE: inner page hero, CTA bands, contact info
   ========================================================================== */
.page-hero { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: var(--ink-deep); }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("../assets/images/hero.jpg") 62% 35% / cover no-repeat; transform: scale(1.04); }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5, 16, 32, .92) 0%, rgba(5, 16, 32, .74) 45%, rgba(5, 16, 32, .35) 100%); }
.page-hero .hero-sun { display: none; }
.page-hero .wrap { padding-block: calc(var(--header-h) + clamp(44px, 6vw, 88px)) clamp(52px, 7vw, 96px); display: grid; gap: 18px; justify-items: start; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: .98; max-width: 18ch; }
.page-hero h1 .sun { color: var(--sun-2); }
.page-hero .lede { color: rgba(244, 247, 251, .84); font-size: 1.1rem; max-width: 62ch; }
.crumbs { display: flex; gap: 8px; align-items: center; font: 500 .8rem var(--mono); color: rgba(244, 247, 251, .7); }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs [aria-current] { color: var(--sun-2); font-weight: 700; }
.crumb-meta { font: 500 .8rem var(--mono); letter-spacing: .02em; color: var(--sun-2); }
.section.first { padding-top: clamp(48px, 6vw, 88px); }

.calc-teaser { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 48px); position: relative; overflow: hidden; }
.calc-teaser > div { display: grid; gap: 14px; }
.calc-teaser h2 { font-size: clamp(1.9rem, 4vw, 3rem); font-weight: 800; }
.calc-teaser p { color: var(--fg-muted); font-size: 1.05rem; max-width: 56ch; }
.quick-calc { display: grid; gap: 14px; position: relative; z-index: 1; }
.quick-calc .big-input input { width: 100%; text-align: left; }
.center-cta { display: flex; justify-content: center; margin-top: 8px; }
.cta-band { display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 28px; align-items: center; padding: clamp(28px, 4vw, 56px); border-radius: var(--r-lg); color: #fff; position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(640px 420px at 100% 0%, rgba(242, 169, 0, .26), rgba(242, 169, 0, 0) 70%), radial-gradient(520px 360px at 0% 100%, rgba(255, 194, 51, .08), rgba(255, 194, 51, 0) 70%), var(--ink); }
.cta-band::before { content: ""; position: absolute; right: -170px; top: -170px; width: 440px; height: 440px; border-radius: 50%; z-index: -1; background: repeating-radial-gradient(circle, rgba(255, 194, 51, 0) 0 54px, rgba(255, 194, 51, .2) 54px 55px); -webkit-mask: radial-gradient(circle, #000 30%, transparent 70%); mask: radial-gradient(circle, #000 30%, transparent 70%); animation: rings 18s linear infinite; }
@keyframes rings { to { transform: rotate(360deg) scale(1.04); } }
.cta-band .btn-sun { box-shadow: 0 16px 34px -14px rgba(242, 169, 0, .75); }
.cta-band > div:first-child { display: grid; gap: 12px; }
.cta-band .eyebrow { color: var(--sun-2); }
.cta-band h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); font-weight: 800; letter-spacing: -0.035em; }
.cta-band h2 .serif { color: var(--sun-2); }
.cta-band p { color: rgba(244, 247, 251, .82); max-width: 58ch; }
.cta-actions { display: grid; gap: 12px; }
.cta-band .btn-line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.cta-band .btn-line:hover { box-shadow: inset 0 0 0 1.5px #fff; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.info { padding: 26px; display: grid; gap: 10px; align-content: start; }
.info .cic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--sun) 16%, transparent); color: var(--accent-ink); }
.info h3 { font-size: 1.14rem; }
.info p { color: var(--fg-muted); }

/* SEO internal links */
.text-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--accent-ink); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.text-link .ic { width: 16px; height: 16px; transition: transform .25s; }
.text-link:hover .ic { transform: translateX(3px); }
.town-links a { color: inherit; text-decoration: none; border-bottom: 1px dashed currentColor; }
.town-links a:hover { color: var(--accent-ink); }
.cta-band .town-links a:hover, .page-hero .town-links a:hover { color: #fff; }
.faq-list details a { color: var(--accent-ink); text-underline-offset: 3px; }
.eyebrow.town-links, .crumb-meta.town-links, .pill.town-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }

/* ---------- Responsive ---------- */
/* Very large screens (QHD and up): scale the whole layout up instead of leaving wide empty sides */
@media (min-width: 2200px) { html { font-size: 18px; } :root { --maxw: 1960px; } }
@media (min-width: 3000px) { html { font-size: 21px; } :root { --maxw: 2400px; } }
.kseb > *, .savings > *, .contact-grid > *, .faq > *, .calc > *, .ref-grid > *, .eq-grid > *, .info-grid > *, .cta-band > *, .why > *, .proj > *, .process > *, .work-grid > * { min-width: 0; }
@media (max-width: 1280px) {
  .savings { grid-template-columns: minmax(0, 1fr); }
  .nav-main { display: none; }
  .mobile-nav-toggle { display: grid; }
  .eq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .rel-grid.rel-8 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: clamp(2.4rem, 7.4vw, 4.4rem); }
  .hero::before { background: radial-gradient(120% 42% at 50% 50%, rgba(5, 16, 32, .62) 0%, rgba(5, 16, 32, .38) 60%, rgba(5, 16, 32, 0) 100%), linear-gradient(180deg, rgba(5, 16, 32, .5) 0%, rgba(5, 16, 32, .12) 22%, rgba(5, 16, 32, .12) 72%, rgba(5, 16, 32, .6) 100%); }
  .hero .lede { text-shadow: 0 1px 14px rgba(5, 16, 32, .55); }
  .calc { grid-template-columns: minmax(0, 1fr); }
  .calc-in { border-right: 0; border-bottom: 1px solid var(--line); }
  .contact-grid, .kseb, .savings, .faq { grid-template-columns: minmax(0, 1fr); }
  .why { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process { grid-template-columns: 1fr; gap: 22px; padding-left: 0; }
  .process-line { top: 28px; bottom: 28px; left: 27px; right: auto; width: 2px; height: auto; }
  .process-line::after { transform-origin: 50% 0; transform: scaleY(var(--pp, 0)); }
  .pstep { grid-template-columns: 56px 1fr; column-gap: 16px; }
  .pstep .num { grid-row: span 2; }
  .quality .body { grid-template-columns: 1fr; }
  .ref-grid, .eq-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer .wrap { grid-template-columns: 1fr 1fr; }
  .calc-teaser, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .info-grid { grid-template-columns: minmax(0, 1fr); }
  .section.first .contact-grid .form-card { order: -1; }
}
@media (max-width: 760px) {
  .work-grid { grid-template-columns: minmax(0, 1fr); }
  .work-count { margin-left: 0; width: 100%; }
  :root { --header-h: 64px; }
  .header-cta { display: none; }
  .brand img { height: 36px; }
  .hero { min-height: auto; }
  .flow { grid-template-columns: 1fr 1fr; row-gap: 26px; }
  .flow-line { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proj { grid-template-columns: 1fr; }
  .pcard:first-child { grid-row: auto; min-height: 320px; }
  .grid-2 { grid-template-columns: 1fr; }
  .big-stats { grid-template-columns: 1fr 1fr; }
  .mobile-bar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 950; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: var(--header-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .mobile-bar a { display: grid; justify-items: center; gap: 2px; min-height: 52px; align-content: center; font-size: .68rem; font-weight: 700; text-decoration: none; color: var(--fg-muted); border-radius: 12px; }
  .mobile-bar a .ic { width: 20px; height: 20px; }
  .mobile-bar a.primary { background: var(--sun); color: #1B1300; }
  body { padding-bottom: 72px; }
  .fab-wa { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); right: 14px; width: 50px; height: 50px; }
}
@media (max-width: 560px) {
  .sky { top: calc(var(--header-h) + 22px); bottom: auto; height: 92px; left: 28px; right: 28px; }
  .sky-end { display: none; }
  .sky-now { bottom: -24px; font-size: .68rem; }
  .sky-sun { width: 16px; height: 16px; margin: -8px 0 0 -8px; }
  .hero-center { padding-top: calc(var(--header-h) + 150px); padding-bottom: 92px; }
  .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
  .proj, .why, .big-stats, .metrics, .grid-2 { min-width: 0; }
  .hero-quick form { flex-wrap: wrap; border-radius: 22px; padding: 12px 12px 12px 18px; }
  .hero-quick .btn { width: 100%; }
  .seg button { font-size: .82rem; }
  .why, .big-stats { grid-template-columns: 1fr; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .result-hero { gap: 14px; }
  .gauge { width: 84px; height: 84px; }
  .big-input input { font-size: 2rem; }
  .spec { grid-template-columns: 1fr; gap: 2px; }
  .spec dd { margin-bottom: 8px; }
  .eq-top { flex-wrap: wrap; }
  .warranty { grid-template-columns: 1fr; }
  .contact-line { flex-direction: column; }
  .contact-line .sep { display: none; }
  .wrow { gap: 8px; }
}
@media (max-width: 359px) { .rel-grid.rel-8 { grid-template-columns: minmax(0, 1fr); } }
