/* ==========================================================================
   Riquid Energy: site styles
   1. Tokens   2. Base   3. Layout & type   4. Buttons & chips   5. Nav
   6. Hero     7. Home sections   8. Shapes & glass   9. Charts & map
   10. Inner pages   11. Footer   12. Motion   13. Responsive
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
  --red: #e5080f;          /* logo red */
  --red-2: #ff3b30;        /* highlight */
  --red-deep: #9e0309;
  --red-tint: #fdeceb;
  --ink: #0e0f11;          /* near-black */
  --ink-2: #17191c;
  --ink-3: #23262b;
  --charcoal: #3f474f;     /* logo grey */
  --muted: #6b7178;
  --muted-2: #9aa0a6;
  --line: rgba(14, 15, 17, .09);
  --line-2: rgba(14, 15, 17, .16);
  --paper: #ffffff;
  --bone: #f4f3f0;         /* card background */
  --mist: #ecebe7;
  --sky: #2f6fb8;          /* chart series 2 */
  --amber: #f2a93b;        /* sun accent, decorative only */

  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-hero: 14px;    /* sharper frame for hero photos */
  --gutter: clamp(16px, 3vw, 28px);
  --container: 1320px;

  --ease: cubic-bezier(.22, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);

  --font: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --shadow-1: 0 1px 2px rgba(14, 15, 17, .06), 0 8px 24px -12px rgba(14, 15, 17, .14);
  --shadow-2: 0 30px 60px -30px rgba(14, 15, 17, .35);
}

/* 2. Base ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.55;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility; overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
h1, h2, h3, h4, .display, .h1, .h2, .h3, .h4, .hero__title, .b-big { text-wrap: balance; }
p, blockquote, li { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 16px; }

/* 3. Layout & type --------------------------------------------------------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(72px, 10vw, 140px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 96px) 0; }
.container.section { padding-left: var(--gutter); padding-right: var(--gutter); }
.section--flush-top { padding-top: 0; }
.section--bone { background: var(--bone); }
.sheet { margin: 0 12px; border-radius: var(--radius-xl); overflow: hidden; position: relative; }
.sheet--dark { background: var(--ink); color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 28px; padding: 0 12px 0 10px;
  border-radius: 99px; border: 1px solid var(--line-2); font-size: .74rem; font-weight: 500; width: max-content; justify-self: start; align-self: flex-start;
  letter-spacing: .01em; color: var(--charcoal); background: rgba(255, 255, 255, .6);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 3px rgba(229, 8, 15, .14); }
.sheet--dark .eyebrow, .on-dark .eyebrow { color: rgba(255, 255, 255, .78); border-color: rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .04); }

.display { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
.h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); font-weight: 400; line-height: 1.02; letter-spacing: -.04em; }
.h2 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 400; line-height: 1.06; letter-spacing: -.035em; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.65rem); font-weight: 400; line-height: 1.15; letter-spacing: -.02em; }
.h4 { font-size: 1.08rem; font-weight: 500; letter-spacing: -.01em; line-height: 1.3; }
.lede { font-size: clamp(1rem, 1.2vw, 1.08rem); color: var(--muted); line-height: 1.65; max-width: 48ch; }
.small { font-size: .86rem; color: var(--muted); line-height: 1.55; }
.mono { font-family: var(--font-mono); letter-spacing: -.01em; }
.muted { color: var(--muted); }
.tone-red { color: var(--red); }
.tone-soft { color: var(--muted-2); }
.on-dark .lede, .sheet--dark .lede, .on-dark .small, .sheet--dark .small { color: rgba(255, 255, 255, .62); }

.section-head { display: grid; grid-template-columns: 1fr minmax(0, 440px); gap: 32px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head--center { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.section-head--center .eyebrow { justify-self: center; }
.section-head--center .lede { margin: 0 auto; }

/* 4. Buttons & chips ------------------------------------------------------- */
.btn {
  --bg: var(--ink); --fg: #fff; --ic-bg: #fff; --ic-fg: var(--ink);
  position: relative; display: inline-flex; align-items: center; gap: 12px; height: 48px;
  padding: 0 6px 0 22px; border-radius: 99px; background: var(--bg); color: var(--fg);
  font-size: .9rem; font-weight: 500; letter-spacing: -.005em; white-space: nowrap; isolation: isolate; overflow: hidden;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s;
}
.btn::before { /* liquid fill on hover */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--red);
  transform: translateY(101%); transition: transform .55s var(--ease-out);
}
.btn:hover::before { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 30px -14px rgba(229, 8, 15, .7); }
.btn__ic {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--ic-bg); color: var(--ic-fg); transition: transform .55s var(--ease);
}
.btn__ic svg { width: 14px; height: 14px; }
.btn:hover .btn__ic { transform: rotate(45deg); }
.btn--red { --bg: var(--red); }
.btn--red::before { background: var(--ink); }
.btn--red:hover { box-shadow: 0 14px 30px -14px rgba(14, 15, 17, .6); }
.btn--light { --bg: #fff; --fg: var(--ink); --ic-bg: var(--ink); --ic-fg: #fff; }
.btn--light:hover { --fg: #fff; --ic-bg: #fff; --ic-fg: var(--ink); }
.btn--ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); padding: 0 20px; }
.btn--ghost:hover { --fg: #fff; box-shadow: none; }
.btn--sm { height: 38px; padding: 0 5px 0 16px; font-size: .82rem; }
.btn--sm .btn__ic { width: 28px; height: 28px; }
.btn--sm.btn--ghost { padding: 0 16px; }
.btn--block { width: 100%; justify-content: center; padding: 0 22px; }

.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; position: relative; padding-bottom: 4px; }
.link-arrow::after { content: ""; position: absolute; left: 0; right: 26px; bottom: 0; height: 1px; background: currentColor; transform-origin: left; transition: transform .6s var(--ease); }
.link-arrow svg { width: 16px; height: 16px; transition: transform .6s var(--ease); }
.link-arrow:hover svg { transform: translateX(6px); }
.link-arrow:hover::after { transform: scaleX(.6); }

.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--bone); font-size: .74rem; font-weight: 500; color: var(--charcoal); }
.chip--dark { background: var(--ink); color: #fff; }
.chip--red { background: var(--red); color: #fff; }
.chip svg { width: 12px; height: 12px; }
.stars { display: inline-flex; gap: 2px; color: var(--ink); }
.stars svg { width: 14px; height: 14px; }
.avatars { display: flex; }
.avatars span {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid #fff; margin-left: -10px; display: grid; place-items: center;
  font-size: .7rem; font-weight: 600; color: #fff; background: var(--charcoal); overflow: hidden;
}
.avatars span:first-child { margin-left: 0; }
.avatars span:nth-child(2) { background: var(--red); }
.avatars span:nth-child(3) { background: var(--ink); }
.avatars span:nth-child(4) { background: #7b828a; }
.avatars img { width: 100%; height: 100%; object-fit: cover; }

/* 5. Nav ------------------------------------------------------------------- */
.nav {
  position: fixed; top: 12px; left: 12px; right: 12px; z-index: 90; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 10px 0 22px; border-radius: 20px; background: rgba(255, 255, 255, .92);
  border: 1px solid transparent; transition: background .5s, box-shadow .5s, transform .6s var(--ease), border-color .5s;
}
.nav.is-scrolled {
  background: rgba(255, 255, 255, .72); border-color: rgba(255, 255, 255, .7);
  backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%);
  box-shadow: 0 10px 40px -18px rgba(14, 15, 17, .25);
}
.nav.is-hidden { transform: translateY(-120%); }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark { width: 42px; height: 42px; }
.brand__word { height: 24px; width: auto; }
.brand__mark .spin { transform-origin: 50% 50%; transition: transform 1.2s var(--ease); }
.brand:hover .brand__mark .spin { transform: rotate(-200deg); }
.nav__links { display: flex; gap: 4px; position: absolute; left: 50%; transform: translateX(-50%); }
.nav__links a {
  position: relative; padding: 9px 14px; border-radius: 99px; font-size: .88rem; color: var(--charcoal);
  transition: color .3s, background .3s;
}
.nav__links a:hover { color: var(--ink); background: var(--bone); }
.nav__links a[aria-current="page"] { color: var(--ink); font-weight: 500; }
.nav__links a[aria-current="page"]::after { content: ""; position: absolute; left: 50%; bottom: 3px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--red); }
.nav__right { display: flex; align-items: center; gap: 10px; }
.nav__phone { font-size: .84rem; color: var(--charcoal); display: flex; align-items: center; gap: 8px; }
.nav__phone svg { width: 15px; height: 15px; color: var(--red); }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; background: var(--ink); position: relative; }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: #fff; transition: transform .5s var(--ease), top .5s var(--ease); }
.burger span:nth-child(1) { top: 19px; } .burger span:nth-child(2) { top: 26px; }
.menu-open .burger span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: var(--ink); color: #fff; padding: 110px var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0 at calc(100% - 46px) 46px); transition: clip-path .8s var(--ease-in-out); visibility: hidden;
}
.menu-open .mobile-menu { clip-path: circle(150% at calc(100% - 46px) 46px); visibility: visible; }
.mobile-menu a.big { display: block; font-size: clamp(2.2rem, 9vw, 3.4rem); letter-spacing: -.04em; line-height: 1.15; opacity: 0; transform: translateY(30px); transition: opacity .6s, transform .8s var(--ease); }
.menu-open .mobile-menu a.big { opacity: 1; transform: none; }
.menu-open .mobile-menu li:nth-child(2) a.big { transition-delay: .05s; }
.menu-open .mobile-menu li:nth-child(3) a.big { transition-delay: .1s; }
.menu-open .mobile-menu li:nth-child(4) a.big { transition-delay: .15s; }
.menu-open .mobile-menu li:nth-child(5) a.big { transition-delay: .2s; }
.menu-open .mobile-menu li:nth-child(6) a.big { transition-delay: .25s; }
.mobile-menu .small { color: rgba(255, 255, 255, .6); }
.menu-open { overflow: hidden; }
.menu-open .nav { background: transparent; box-shadow: none; border-color: transparent; backdrop-filter: none; }
.menu-open .nav .brand__word { filter: brightness(0) invert(1); }
.menu-open .nav .brand__mark .grey { fill: #fff; }

/* Preloader */
.no-js .loader { display: none; }
.loader { position: fixed; inset: 0; z-index: 300; background: var(--ink); display: grid; place-items: center; transition: clip-path 1s var(--ease-in-out); clip-path: inset(0 0 0 0); }
.loader.is-done { clip-path: inset(0 0 100% 0); }
.loader svg { width: 92px; height: 92px; }
.loader .ring-a { stroke-dasharray: 260; stroke-dashoffset: 260; animation: draw 1s var(--ease) forwards; }
.loader .ring-b { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw 1s .15s var(--ease) forwards; }
.loader .core { transform-origin: 50px 50px; transform: scale(0); animation: pop .7s .45s var(--ease-out) forwards; }
.loader__count { position: absolute; bottom: 32px; right: 32px; font-family: var(--font-mono); color: rgba(255, 255, 255, .5); font-size: .8rem; }
.loader__word { position: absolute; bottom: 32px; left: 32px; color: #fff; font-size: .8rem; letter-spacing: .3em; text-transform: uppercase; opacity: .6; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { to { transform: scale(1); } }

/* 6. Hero ------------------------------------------------------------------ */
.hero { padding: 92px 12px 0; }
.hero__frame {
  position: relative; height: clamp(520px, calc(100svh - 104px), 1040px); border-radius: var(--radius-hero); overflow: hidden;
  background: #c9b9a6; color: #fff; isolation: isolate;
}
.hero__layer { position: absolute; inset: -4% 0 0; width: 100%; height: 104%; object-fit: cover; object-position: 50% 62%; will-change: transform; }
.hero__bg { z-index: 0; transform: scale(1.12); transition: transform 2.4s var(--ease-out); }
.hero__fg { z-index: 2; transform: scale(1.12); transition: transform 2.4s var(--ease-out); pointer-events: none; }
.is-ready .hero__bg, .is-ready .hero__fg { transform: scale(1); }
.hero__word {
  position: absolute; z-index: 1; left: 0; right: 0; top: 7%; text-align: center; pointer-events: none;
  font-size: clamp(5rem, 21vw, 21rem); font-weight: 600; letter-spacing: -.06em; line-height: .8;
  color: transparent; background: linear-gradient(180deg, rgba(255, 255, 255, .95) 10%, rgba(255, 255, 255, .55) 70%, rgba(255, 255, 255, .15));
  -webkit-background-clip: text; background-clip: text; display: flex; justify-content: center; white-space: nowrap;
}
.hero__word span { display: inline-block; transform: translateY(70%); opacity: 0; transition: transform 1.6s var(--ease-out), opacity 1.2s; background: inherit; -webkit-background-clip: text; background-clip: text; }
.is-ready .hero__word span { transform: none; opacity: 1; }
.hero__shade { position: absolute; inset: 0; z-index: 3; background: linear-gradient(180deg, rgba(14, 15, 17, 0) 45%, rgba(14, 15, 17, .55) 100%); pointer-events: none; }
.hero__content {
  position: absolute; z-index: 4; left: clamp(20px, 3vw, 44px); right: clamp(20px, 3vw, 44px); bottom: clamp(22px, 3.2vw, 44px);
  display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px;
}
.hero__title { font-size: clamp(2.05rem, min(4.6vw, 7.4vh), 4rem); font-weight: 400; letter-spacing: -.04em; line-height: 1.02; max-width: 15ch; }
.hero__side { display: grid; gap: 18px; justify-items: start; max-width: 300px; }
.hero__side p { font-size: .92rem; color: rgba(255, 255, 255, .82); line-height: 1.55; }

/* glass chips floating over the photo */
.glass {
  background: linear-gradient(135deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .08));
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 20px 50px -24px rgba(14, 15, 17, .45);
}
.glass--dark {
  background: linear-gradient(135deg, rgba(14, 15, 17, .55), rgba(14, 15, 17, .25));
  border-color: rgba(255, 255, 255, .14); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 20px 50px -24px rgba(0, 0, 0, .6);
}
.hero__chip { position: absolute; z-index: 4; border-radius: 20px; padding: 14px 16px; color: #fff; }
.hero__chip--live { right: clamp(20px, 4vw, 56px); top: 41%; width: 230px; }
.hero__chip--batt { left: clamp(20px, 4vw, 56px); top: 44%; display: flex; gap: 12px; align-items: center; }
.hero__chip .k { font-size: .72rem; color: rgba(255, 255, 255, .8); display: flex; justify-content: space-between; align-items: center; }
.hero__chip .v { font-size: 1.6rem; letter-spacing: -.03em; line-height: 1.1; margin-top: 2px; }
.hero__chip .v small { font-size: .8rem; color: rgba(255, 255, 255, .75); margin-left: 4px; }
.hero__chip svg.spark { width: 100%; height: 38px; margin-top: 6px; overflow: visible; }
.live-dot { display: inline-flex; align-items: center; gap: 6px; }
.live-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(61, 220, 132, 0); } 100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); } }
.batt-ring { width: 46px; height: 46px; }
.hero__scroll { position: absolute; z-index: 4; left: 50%; bottom: 22px; transform: translateX(-50%); width: 24px; height: 38px; border-radius: 99px; border: 1.5px solid rgba(255, 255, 255, .6); }
.hero__scroll::after { content: ""; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 3px; background: #fff; animation: wheel 2s infinite var(--ease); }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* trust strip under hero */
.trust { display: flex; align-items: center; gap: 40px; padding: 28px 0 0; }
.trust__label { font-size: .8rem; color: var(--muted); flex-shrink: 0; max-width: 150px; line-height: 1.4; }
.marquee { overflow: hidden; flex: 1; min-width: 0; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; gap: 56px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 12px; font-size: 1.05rem; color: var(--charcoal); letter-spacing: -.01em; white-space: nowrap; }
.marquee__item svg { width: 22px; height: 22px; color: var(--red); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 7. Home sections --------------------------------------------------------- */
/* Statement: words fill from grey to ink as you scroll */
.statement { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.statement__text { font-size: clamp(1.5rem, 2.8vw, 2.45rem); line-height: 1.22; letter-spacing: -.03em; max-width: 30ch; }
.statement__text .w { color: rgba(14, 15, 17, .16); transition: color .4s; }
.statement__text .w.is-on { color: var(--ink); }
.statement__text .w.is-on.hl { color: var(--red); }

/* Bento: 3 cards (photo, dark, chart) */
.bento { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: clamp(40px, 5vw, 64px); }
.b-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 400px; padding: 26px; display: flex; flex-direction: column; isolation: isolate; }
.b-photo { color: #fff; }
.b-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.4s var(--ease); }
.b-photo:hover img { transform: scale(1.06); }
.b-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 15, 17, .35), rgba(14, 15, 17, 0) 45%, rgba(14, 15, 17, .25)); }
.b-big { font-size: clamp(3.6rem, 6vw, 5.2rem); letter-spacing: -.06em; line-height: .9; font-weight: 400; }
.b-photo .b-big { background: linear-gradient(180deg, #fff, rgba(255, 255, 255, .55)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.b-sub { font-size: .9rem; margin-top: 8px; color: rgba(255, 255, 255, .85); max-width: 16ch; line-height: 1.35; }
.b-dark { background: var(--ink); color: #fff; justify-content: space-between; }
.b-dark .b-top { display: flex; justify-content: space-between; align-items: center; }
.b-dark p.q { font-size: 1.12rem; letter-spacing: -.015em; line-height: 1.35; margin-top: 26px; max-width: 24ch; }
.b-dark .b-big { margin-top: auto; }
.b-dark .b-sub { color: rgba(255, 255, 255, .6); }
.b-dark .orb-mini { position: absolute; right: -50px; bottom: -60px; width: 220px; height: 220px; z-index: -1; opacity: .9; }
.b-chart { background: var(--bone); }
.b-chart .b-top { display: flex; justify-content: space-between; align-items: flex-start; }
.b-chart .b-big { color: var(--ink); }
.b-chart .b-sub { color: var(--muted); }

/* Solutions: sticky intro + stacked cards */
.solutions { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.solutions__intro { position: sticky; top: 120px; align-self: start; display: grid; gap: 22px; }
.solutions__thumbs { display: flex; gap: 10px; margin-top: 18px; }
.solutions__thumbs figure { width: 132px; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; }
.solutions__thumbs figure:nth-child(2) { margin-top: 28px; }
.solutions__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sol-list { display: grid; gap: 14px; }
.sol-card {
  position: sticky; top: calc(110px + var(--i) * 18px); display: grid; grid-template-columns: 1fr 44%; gap: 24px;
  padding: 18px 18px 18px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line);
  box-shadow: 0 -20px 40px -30px rgba(14, 15, 17, .25); min-height: 260px; transform-origin: 50% 0;
}
.sol-card__body { display: flex; flex-direction: column; padding: 10px 0; }
.sol-card .num { font-family: var(--font-mono); font-size: .74rem; color: var(--muted); }
.sol-card h3 { margin-top: 10px; }
.sol-card p { margin-top: 10px; font-size: .9rem; color: var(--muted); max-width: 32ch; }
.sol-card ul { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.sol-card .btn { margin-top: auto; align-self: flex-start; }
.sol-card figure { border-radius: var(--radius); overflow: hidden; position: relative; }
.sol-card figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.sol-card:hover figure img { transform: scale(1.06); }
.sol-card figure .glass { position: absolute; left: 12px; bottom: 12px; border-radius: 12px; padding: 8px 12px; color: #fff; font-size: .78rem; }

/* 3D service objects (spec: service-item) */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.svc {
  position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column;
  min-height: 400px; padding: 30px 28px 32px; border-radius: 22px; background: var(--bone);
  transition: color .6s var(--ease);
}
.svc::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .6s var(--ease);
  background: radial-gradient(120% 90% at 100% 0%, rgba(229, 8, 15, .35), transparent 55%), linear-gradient(160deg, #23262b, #0e0f11);
}
.svc .num { font-family: var(--font-mono); font-size: .75rem; color: var(--muted); transition: color .6s; }
.svc .icon {
  width: 172px; height: 172px; object-fit: contain; margin: 18px 0 auto -10px;
  filter: drop-shadow(0 22px 18px rgba(14, 15, 17, .22)) drop-shadow(0 4px 4px rgba(14, 15, 17, .12));
  animation: float 7s ease-in-out infinite; animation-delay: var(--fd, 0s);
}
.svc .icon-wrap { transition: transform .8s var(--ease); align-self: flex-start; margin-bottom: auto; }
.svc h3 { margin-top: 36px; }
.svc p { font-size: .92rem; color: var(--muted); max-width: 34ch; margin-top: 10px; transition: color .6s; }
.svc .link-arrow { margin-top: 22px; align-self: flex-start; }
.svc:hover::before, .svc.is-inview::before { opacity: 1; }
.svc:hover, .svc.is-inview { color: #fff; }
.svc:hover p, .svc.is-inview p { color: rgba(255, 255, 255, .75); }
.svc:hover .num, .svc.is-inview .num { color: var(--red-2); }
.svc:hover .icon-wrap, .svc.is-inview .icon-wrap { transform: rotate(-12deg) scale(1.08); }
.svc:hover .icon, .svc.is-inview .icon { filter: drop-shadow(0 30px 26px rgba(0, 0, 0, .5)) drop-shadow(0 6px 6px rgba(0, 0, 0, .3)); }
@keyframes float { 50% { transform: translateY(-18px); } }

/* Projects (dark) */
.projects { padding: clamp(64px, 8vw, 110px) clamp(20px, 4vw, 56px); display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 72px); }
.projects__intro { display: flex; flex-direction: column; gap: 20px; }
.projects__nav { display: flex; gap: 10px; margin-top: auto; }
.round-btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background .4s, color .4s, border-color .4s, transform .4s var(--ease); }
.round-btn svg { width: 16px; height: 16px; }
.round-btn:hover { background: #fff; color: var(--ink); }
.round-btn--solid { background: #fff; color: var(--ink); }
.round-btn--solid:hover { background: var(--red); color: #fff; border-color: var(--red); }
.round-btn:disabled { opacity: .3; pointer-events: none; }
.projects__count { font-family: var(--font-mono); font-size: .8rem; color: rgba(255, 255, 255, .5); align-self: center; margin-left: 8px; }
.proj-viewport { touch-action: pan-y; overflow: hidden; border-radius: var(--radius-lg); margin-right: calc(-1 * clamp(20px, 4vw, 56px)); cursor: grab; }
.proj-viewport.is-drag { cursor: grabbing; }
.proj-track { position: relative; display: flex; gap: 14px; transition: transform .9s var(--ease); }
.proj-card { flex: 0 0 min(560px, 82%); background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08); border-radius: var(--radius-lg); padding: 12px; user-select: none; }
.proj-card figure { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; }
.proj-card figure img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); transition: transform 1.2s var(--ease); pointer-events: none; }
.proj-card.is-active figure img { transform: scale(1); }
.proj-card figure .tags { position: absolute; left: 12px; top: 12px; display: flex; gap: 6px; }
.proj-card__body { padding: 20px 12px 10px; display: grid; grid-template-columns: 1fr auto; gap: 8px 16px; align-items: center; }
.proj-card__body h3 { font-size: 1.15rem; font-weight: 500; letter-spacing: -.015em; }
.proj-card__body p { grid-column: 1 / -1; font-size: .86rem; color: rgba(255, 255, 255, .55); max-width: 46ch; }
.proj-card__foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; margin-top: 12px; }
.proj-card__size { font-size: 1.5rem; letter-spacing: -.03em; }
.proj-card__size small { font-size: .8rem; color: rgba(255, 255, 255, .5); }
.rating { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px; background: var(--red); font-size: .74rem; font-weight: 600; }
.rating svg { width: 11px; height: 11px; }

/* Numbers that speak */
.numbers-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 40px; }
.numbers-head p { max-width: 36ch; text-align: right; }
.numbers { position: relative; border-radius: var(--radius-xl); overflow: hidden; padding: clamp(18px, 2vw, 24px); isolation: isolate; }
.numbers > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.numbers::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 15, 17, .15), rgba(14, 15, 17, .55)); }
.numbers__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: clamp(140px, 18vw, 260px); }
.num-card { border-radius: var(--radius-lg); padding: 22px; color: #fff; min-height: 220px; display: flex; flex-direction: column; }
.num-card .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .25); }
.num-card .ic svg { width: 20px; height: 20px; }
.num-card .v { font-size: clamp(2.4rem, 3.6vw, 3.2rem); letter-spacing: -.05em; line-height: 1; margin-top: auto; }
.num-card .l { font-size: .86rem; color: rgba(255, 255, 255, .78); margin-top: 8px; }
.num-card--solid { background: var(--red); border: 0; box-shadow: 0 30px 60px -30px rgba(229, 8, 15, .8); }
.num-card--solid .ic { background: rgba(255, 255, 255, .2); }
.numbers__caption { position: absolute; top: clamp(20px, 3vw, 36px); left: clamp(20px, 3vw, 36px); right: clamp(20px, 3vw, 36px); display: flex; justify-content: space-between; color: #fff; gap: 20px; }
.numbers__caption .chip { background: rgba(255, 255, 255, .18); color: #fff; backdrop-filter: blur(10px); }

/* Families: image stack + feature cards */
.families { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.fam-stack { display: grid; gap: 12px; }
.fam-stack figure { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; }
.fam-stack figure:nth-child(2) { margin-left: 18%; }
.fam-stack img { width: 100%; height: 100%; object-fit: cover; }
.fam-top { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 26px; }
.fam-top .proof { display: flex; align-items: center; gap: 12px; }
.fam-top .proof .small { line-height: 1.3; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feat { padding: 24px; border-radius: var(--radius-lg); background: var(--bone); min-height: 190px; display: flex; flex-direction: column; transition: background .5s, transform .6s var(--ease); position: relative; overflow: hidden; }
.feat:hover { background: #fff; box-shadow: var(--shadow-1); transform: translateY(-4px); }
.feat .ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); color: var(--red); }
.feat:hover .ic { background: var(--red); color: #fff; border-color: var(--red); }
.feat .ic svg { width: 18px; height: 18px; }
.feat h3 { margin-top: auto; padding-top: 28px; }
.feat p { margin-top: 6px; }

/* Shape cards (four-up, abstract industry shapes) */
.scard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.scard { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(24px, 3vw, 36px); min-height: 340px; display: flex; flex-direction: column; isolation: isolate; }
.scard--bone { background: var(--bone); }
.scard--mist { background: #e9e9ea; }
.scard--blush { background: #f8e4e2; }
.scard--ink { background: var(--ink); color: #fff; }
.scard .pill { display: inline-flex; align-items: center; gap: 8px; align-self: flex-start; height: 34px; padding: 0 14px; border-radius: 99px; background: rgba(255, 255, 255, .8); font-size: .84rem; }
.scard--ink .pill { background: rgba(255, 255, 255, .1); }
.scard .pill i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.scard h3 { margin-top: auto; padding-top: 48px; font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -.035em; font-weight: 400; }
.scard p { margin-top: 12px; max-width: 34ch; font-size: .95rem; color: var(--charcoal); }
.scard--ink p { color: rgba(255, 255, 255, .65); }
.scard .link-arrow { margin-top: 26px; align-self: flex-start; }
.scard .shape { position: absolute; right: 0; top: 0; bottom: 0; width: 44%; z-index: -1; pointer-events: none; transition: transform 1.2s var(--ease); }
.scard:hover .shape { transform: translateX(-10px) scale(1.03); }
.scard .scard__copy { position: relative; z-index: 1; max-width: 62%; display: flex; flex-direction: column; flex: 1; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.plan { position: relative; border-radius: var(--radius-lg); padding: 26px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; overflow: hidden; isolation: isolate; }
.plan--dark { background: var(--ink); color: #fff; border-color: transparent; }
.plan--dark .small { color: rgba(255, 255, 255, .6); }
.plan .price { font-size: clamp(2.2rem, 3.4vw, 2.9rem); letter-spacing: -.05em; line-height: 1; margin-top: 18px; }
.plan .price small { font-size: .82rem; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan--dark .price small { color: rgba(255, 255, 255, .55); }
.plan .small { margin-top: 10px; min-height: 3em; }
.plan .btn { margin: 22px 0; }
.plan ul { display: grid; gap: 11px; font-size: .88rem; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; color: var(--red); }
.plan--dark li svg { color: var(--red-2); }
.plan .obj { position: absolute; right: -36px; top: -36px; width: 170px; opacity: .95; z-index: -1; transform: rotate(-12deg); }
.plan > .chip { align-self: flex-start; }
.plan .kit { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.plan--dark .chip { background: rgba(255, 255, 255, .1); color: #fff; }

/* Testimonials */
.testi { display: grid; grid-template-columns: 1fr 1.05fr 1fr; gap: 14px; }
.testi__col { display: grid; gap: 14px; align-content: start; }
.t-card { border-radius: var(--radius-lg); background: var(--bone); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.t-card blockquote { font-size: .98rem; line-height: 1.5; letter-spacing: -.01em; }
.t-who { display: flex; align-items: center; gap: 10px; }
.t-who .av { width: 36px; height: 36px; border-radius: 50%; background: var(--charcoal); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 600; flex-shrink: 0; }
.t-who .av--red { background: var(--red); }
.t-who .av--ink { background: var(--ink); }
.t-who b { display: block; font-size: .88rem; font-weight: 500; }
.t-who span { font-size: .76rem; color: var(--muted); }
.t-who .stars { margin-left: auto; }
.t-score { display: flex; align-items: baseline; gap: 10px; }
.t-score .v { font-size: 3.4rem; letter-spacing: -.06em; line-height: 1; }
.t-list { display: grid; gap: 8px; font-size: .84rem; color: var(--charcoal); }
.t-list li { display: flex; gap: 8px; align-items: center; }
.t-list svg { width: 15px; height: 15px; color: var(--red); }
.t-photo { position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 460px; isolation: isolate; }
.t-photo > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.t-photo .glass { position: absolute; left: 14px; right: 14px; bottom: 14px; border-radius: 18px; padding: 16px 18px; color: #fff; }

/* Big orb (spec: testi-orb), glass variant over a red bloom */
.orb-stage { position: relative; display: grid; place-items: center; min-height: 420px; isolation: isolate; }
.orb-stage::before { /* colour behind the glass so the blur reads */
  content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; z-index: -1; filter: blur(40px);
  background: radial-gradient(circle at 40% 40%, rgba(229, 8, 15, .55), rgba(229, 8, 15, 0) 65%), radial-gradient(circle at 70% 70%, rgba(47, 111, 184, .25), transparent 60%);
}
.testi-orb { position: relative; width: min(360px, 80%); aspect-ratio: 1; }
.testi-orb span {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85), rgba(255, 255, 255, .18) 70%);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 60px 80px -30px rgba(14, 15, 17, .25), inset -20px -30px 60px rgba(14, 15, 17, .08), inset 10px 14px 30px rgba(255, 255, 255, .6);
}
.testi-orb span:nth-child(2) {
  inset: 14% -10% auto auto; width: 34%; height: 34%; backdrop-filter: none; border: 0;
  background: radial-gradient(circle at 35% 30%, #fff, #ff5a52 40%, var(--red) 70%, var(--red-deep) 100%);
  box-shadow: 0 30px 40px -20px rgba(229, 8, 15, .6); animation: float 6s ease-in-out infinite;
}
.testi-orb span:nth-child(3) {
  inset: auto auto 6% -6%; width: 16%; height: 16%; backdrop-filter: none; border: 0;
  background: radial-gradient(circle at 35% 30%, #fff, #c9ced4 45%, var(--charcoal) 100%);
  box-shadow: 0 20px 30px -14px rgba(14, 15, 17, .5); animation: float 7.5s -2s ease-in-out infinite;
}
.testi-orb img { position: absolute; inset: 22%; width: 56%; z-index: 2; animation: float 8s -1s ease-in-out infinite; filter: drop-shadow(0 30px 24px rgba(14, 15, 17, .3)); }

/* FAQ */
.faq-wrap { max-width: 860px; margin: 0 auto; }
.faq { display: grid; gap: 10px; }
.faq-item { border-radius: var(--radius); background: var(--bone); overflow: hidden; transition: background .5s var(--ease), color .5s; }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 22px; font-size: 1rem; letter-spacing: -.01em; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .pm { width: 28px; height: 28px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; flex-shrink: 0; transition: transform .5s var(--ease); }
.faq-item .pm svg { width: 12px; height: 12px; }
.faq-item[open] { background: var(--ink); color: #fff; }
.faq-item[open] .pm { transform: rotate(45deg); background: #fff; color: var(--ink); }
.faq-item .ans { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.faq-item[open] .ans { grid-template-rows: 1fr; }
.faq-item .ans > div { overflow: hidden; }
.faq-item .ans p { padding: 0 22px 22px; color: rgba(255, 255, 255, .68); font-size: .92rem; max-width: 70ch; }

/* Contact block */
.contact { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); }
.contact__info { display: flex; flex-direction: column; gap: 18px; }
.contact__lines { margin-top: auto; display: grid; gap: 18px; }
.c-line { display: flex; gap: 14px; align-items: center; }
.c-line .ic { width: 44px; height: 44px; border-radius: 14px; background: var(--bone); display: grid; place-items: center; color: var(--red); flex-shrink: 0; }
.c-line .ic svg { width: 18px; height: 18px; }
.c-line b { display: block; font-size: .78rem; font-weight: 500; color: var(--muted); }
.c-line a, .c-line span { font-size: .95rem; }
.form { border-radius: var(--radius-lg); background: var(--bone); padding: clamp(20px, 3vw, 32px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .8rem; font-weight: 500; color: var(--charcoal); }
.field input, .field select, .field textarea {
  width: 100%; height: 48px; border-radius: 12px; border: 1px solid transparent; background: #fff; padding: 0 14px; font-size: .92rem;
  transition: border-color .3s, box-shadow .3s;
}
.field textarea { height: 120px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px rgba(229, 8, 15, .1); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { cursor: pointer; position: relative; }
.seg input { position: absolute; left: 0; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 99px; background: #fff; font-size: .84rem; border: 1px solid var(--line); transition: background .3s, color .3s; }
.seg input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.seg input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.form__note { grid-column: 1 / -1; font-size: .78rem; color: var(--muted); }
.form__ok { grid-column: 1 / -1; display: none; padding: 14px 16px; border-radius: 12px; background: #fff; font-size: .9rem; }
.form.is-sent .form__ok { display: block; }

/* CTA band */
.cta { position: relative; border-radius: var(--radius-xl); overflow: hidden; color: #fff; padding: clamp(48px, 7vw, 100px) clamp(24px, 5vw, 72px); isolation: isolate; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.cta > img:not(.obj) { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 15, 17, .78), rgba(14, 15, 17, .2)); }
.cta .h1 { max-width: 14ch; }
.cta .obj { position: absolute; right: 6%; top: -40px; width: clamp(140px, 18vw, 240px); z-index: -1; animation: float 8s ease-in-out infinite; }

/* 8. Shapes (SVG/CSS decorations) ------------------------------------------ */
.deco { position: absolute; pointer-events: none; z-index: 0; }
.glass-tile {
  position: absolute; border-radius: 22px; pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .12));
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .6); box-shadow: 0 30px 60px -30px rgba(14, 15, 17, .25), inset 0 1px 0 #fff;
}
.glass-tile::after { /* solar-cell grid etched on the glass */
  content: ""; position: absolute; inset: 14%; border-radius: 6px;
  background-image: linear-gradient(rgba(14, 15, 17, .14) 1px, transparent 1px), linear-gradient(90deg, rgba(14, 15, 17, .14) 1px, transparent 1px);
  background-size: 25% 33.33%; border: 1px solid rgba(14, 15, 17, .14);
}
.bloom { position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none; z-index: -1; }
.bloom--red { background: radial-gradient(circle, rgba(229, 8, 15, .32), transparent 70%); }
.bloom--sky { background: radial-gradient(circle, rgba(47, 111, 184, .22), transparent 70%); }
.parallax { will-change: transform; }

/* 9. Charts & map ---------------------------------------------------------- */
.dotchart { margin-top: auto; width: 100%; height: 170px; }
.dotchart circle { transition: fill .4s, r .4s; }
.dotchart .ax { font-family: var(--font-mono); font-size: 9px; fill: var(--muted); }
.chart-card { border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); padding: clamp(18px, 2.4vw, 28px); position: relative; }
.chart-card--bone { background: var(--bone); border: 0; }
.chart-card--dark { background: var(--ink-2); border-color: rgba(255, 255, 255, .08); color: #fff; }
.chart-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.chart-head .h4 + .small { margin-top: 4px; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .8rem; color: var(--charcoal); }
.chart-card--dark .legend { color: rgba(255, 255, 255, .75); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 14px; height: 3px; border-radius: 2px; background: var(--c); }
.legend i.sq { width: 10px; height: 10px; border-radius: 3px; }
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart .grid line { stroke: rgba(14, 15, 17, .07); }
.chart-card--dark .chart .grid line { stroke: rgba(255, 255, 255, .08); }
.chart .axis text { font-family: var(--font-mono); font-size: 10px; fill: var(--muted); }
.chart-card--dark .chart .axis text { fill: rgba(255, 255, 255, .5); }
.chart .lbl { font-size: 11px; font-weight: 500; fill: var(--ink); }
.chart-card--dark .chart .lbl { fill: #fff; }
.chart .xhair { stroke: var(--ink); stroke-dasharray: 3 3; opacity: 0; }
.chart-card--dark .chart .xhair { stroke: #fff; }
.chart.is-hover .xhair { opacity: .35; }
.tip {
  position: absolute; z-index: 5; pointer-events: none; min-width: 140px; padding: 10px 12px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: .78rem; line-height: 1.5; box-shadow: 0 16px 30px -12px rgba(0, 0, 0, .4);
  opacity: 0; transform: translate(-50%, calc(-100% - 14px)); transition: opacity .2s; white-space: nowrap;
}
.chart-card--dark .tip { background: #fff; color: var(--ink); }
.tip.is-on { opacity: 1; }
.tip b { font-weight: 600; display: block; margin-bottom: 2px; }
.tip .row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.tip .row i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); display: inline-block; margin-right: 6px; }
.table-toggle { font-size: .78rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; margin-top: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .8rem; margin-top: 12px; }
.data-table th, .data-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); }
.data-table td { font-family: var(--font-mono); }
.chart-card--dark .data-table th, .chart-card--dark .data-table td { border-color: rgba(255, 255, 255, .1); }

/* Draw-in states (JS adds .is-drawn when visible) */
.draw-line { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); transition: stroke-dashoffset 2s var(--ease-out); }
.is-drawn .draw-line { stroke-dashoffset: 0; }
.draw-area { opacity: 0; transition: opacity 1.4s .6s; }
.is-drawn .draw-area { opacity: 1; }
.grow-bar { transform: scaleY(0); transform-box: fill-box; transform-origin: 50% 100%; transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i) * 50ms); }
.is-drawn .grow-bar { transform: scaleY(1); }

/* Map */
.map-sec { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.zmap { position: relative; aspect-ratio: 1000 / 927; }
.zmap svg { width: 100%; height: 100%; overflow: visible; }
.zmap .dot { fill: #c9ccd0; transition: fill .6s; }
.sheet--dark .zmap .dot { fill: rgba(255, 255, 255, .16); }
.zmap .dot.lit { fill: var(--ink); }
.sheet--dark .zmap .dot.lit { fill: rgba(255, 255, 255, .55); }
.zmap .outline { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.zmap .route { fill: none; stroke: var(--red); stroke-width: 1.6; stroke-dasharray: 4 6; opacity: .75; }
.zmap .route-draw { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); transition: stroke-dashoffset 1.6s var(--ease-out); transition-delay: calc(var(--i) * 90ms + .4s); }
.is-drawn .zmap .route-draw, .zmap.is-drawn .route-draw { stroke-dashoffset: 0; }
.zmap .pin circle.core { fill: var(--red); stroke: #fff; stroke-width: 3; }
.zmap .pin circle.pulse { fill: var(--red); opacity: .35; transform-box: fill-box; transform-origin: center; animation: pulse 2.6s var(--ease-out) infinite; animation-delay: calc(var(--i) * .2s); }
.zmap .pin.hq circle.core { fill: var(--ink); }
.sheet--dark .zmap .pin.hq circle.core { fill: #fff; stroke: var(--red); stroke-width: 5; }
.zmap .pin text { font-size: 22px; font-family: var(--font); fill: var(--ink); font-weight: 500; paint-order: stroke; stroke: rgba(255, 255, 255, .9); stroke-width: 6px; }
.sheet--dark .zmap .pin text { fill: #fff; stroke: rgba(14, 15, 17, .8); }
.zmap .pin { opacity: 0; transform: translateY(-8px); transition: opacity .6s, transform .8s var(--ease-out); transition-delay: calc(var(--i) * 90ms + .8s); transform-box: fill-box; }
.zmap.is-drawn .pin { opacity: 1; transform: none; }
.zmap .pin { cursor: pointer; }
.zmap .pin:hover circle.core { fill: var(--ink); }
@keyframes pulse { 0% { transform: scale(1); opacity: .45; } 100% { transform: scale(3.2); opacity: 0; } }
.map-legend { display: grid; gap: 10px; margin-top: 26px; }
.map-legend li { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.sheet--dark .map-legend li { border-color: rgba(255, 255, 255, .1); }
.map-legend .mono { font-size: .8rem; color: var(--muted); }
.map-card { position: absolute; z-index: 3; border-radius: 16px; padding: 12px 14px; font-size: .8rem; min-width: 180px; }
.map-card b { display: block; font-size: 1.4rem; letter-spacing: -.03em; font-weight: 400; }

/* Energy flow diagram */
.flow { position: relative; border-radius: var(--radius-xl); background: var(--ink); color: #fff; overflow: hidden; padding: clamp(24px, 4vw, 48px); isolation: isolate; }
.flow svg { width: 100%; height: auto; }
.flow .node rect { fill: rgba(255, 255, 255, .06); stroke: rgba(255, 255, 255, .16); }
.flow .node text { fill: #fff; font-size: 15px; font-family: var(--font); }
.flow .node text.sub { fill: rgba(255, 255, 255, .55); font-size: 12px; font-family: var(--font-mono); }
.flow .wire { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 2; }
.flow .current { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 6 14; animation: current 1.2s linear infinite; }
.flow .current--sun { stroke: var(--amber); }
.flow .current--dc { stroke: var(--red-2); }
.flow .current--ac { stroke: #fff; }
.flow .current--grid { stroke: #3f86d6; }
@keyframes current { to { stroke-dashoffset: -40; } }
.flow-modes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.flow-modes button { height: 38px; padding: 0 16px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .18); font-size: .84rem; color: rgba(255, 255, 255, .8); transition: background .3s, color .3s; }
.flow-modes button[aria-pressed="true"] { background: #fff; color: var(--ink); }
.flow .is-off { opacity: .08; animation-play-state: paused; }
.flow-caption { margin-top: 18px; font-size: .92rem; color: rgba(255, 255, 255, .7); max-width: 60ch; min-height: 3em; }

/* Calculator */
.calc { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px; }
.calc__panel { border-radius: var(--radius-lg); background: var(--ink); color: #fff; padding: clamp(22px, 3vw, 34px); display: flex; flex-direction: column; gap: 26px; position: relative; overflow: hidden; isolation: isolate; }
.calc__panel .obj { position: absolute; right: -40px; bottom: -40px; width: 200px; z-index: -1; opacity: .9; }
.range { display: grid; gap: 10px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; font-size: .86rem; color: rgba(255, 255, 255, .7); }
.range__top output { font-size: 1.6rem; color: #fff; letter-spacing: -.03em; }
.range input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--red) var(--p, 50%), rgba(255, 255, 255, .15) var(--p, 50%)); outline: none; }
.range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 6px solid var(--red); cursor: grab; box-shadow: 0 4px 14px rgba(0, 0, 0, .4); }
.range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 6px solid var(--red); cursor: grab; }
.calc__result { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: auto; }
.calc__result div { border-radius: 14px; padding: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.calc__result b { display: block; font-size: 1.5rem; font-weight: 400; letter-spacing: -.03em; }
.calc__result span { font-size: .76rem; color: rgba(255, 255, 255, .6); }
.seg--dark span { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #fff; }
.seg--dark input:checked + span { background: #fff; color: var(--ink); }

/* Radial gauge */
.gauge { position: relative; width: 150px; aspect-ratio: 1; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge .track { fill: none; stroke: rgba(14, 15, 17, .08); stroke-width: 10; }
.gauge .val { fill: none; stroke: var(--red); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 0 999; transition: stroke-dasharray 1.6s var(--ease-out); }
.gauge .lab { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .lab b { font-size: 1.8rem; font-weight: 400; letter-spacing: -.04em; display: block; line-height: 1; }
.gauge .lab span { font-size: .72rem; color: var(--muted); }

/* 10. Inner pages ---------------------------------------------------------- */
.page-hero { padding: 92px 12px 0; }
.page-hero__frame { position: relative; border-radius: var(--radius-hero); overflow: hidden; min-height: min(78svh, 720px); color: #fff; display: flex; align-items: flex-end; isolation: isolate; }
.page-hero__frame > img { position: absolute; inset: 0; width: 100%; height: 115%; object-fit: cover; z-index: -2; will-change: transform; }
.page-hero__frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(14, 15, 17, .25), rgba(14, 15, 17, .1) 40%, rgba(14, 15, 17, .7)); }
.page-hero__content { width: 100%; padding: clamp(24px, 4vw, 52px); display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
.page-hero__content .eyebrow { margin-bottom: 20px; }
.page-hero__content .lede { color: rgba(255, 255, 255, .8); }
.crumbs { display: flex; gap: 8px; font-size: .8rem; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.page-hero__word { position: absolute; top: 14%; left: 0; right: 0; text-align: center; font-size: clamp(4rem, 16vw, 15rem); font-weight: 600; letter-spacing: -.06em; line-height: .8; z-index: -1; color: transparent; background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .05)); -webkit-background-clip: text; background-clip: text; white-space: nowrap; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split figure { border-radius: var(--radius-lg); overflow: hidden; position: relative; aspect-ratio: 5 / 4; }
.split figure img { width: 100%; height: 100%; object-fit: cover; }
.split .copy { display: grid; gap: 18px; align-content: center; }
.ticks { display: grid; gap: 10px; margin-top: 6px; }
.ticks li { display: flex; gap: 10px; font-size: .95rem; align-items: flex-start; }
.ticks svg { width: 18px; height: 18px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.spec-row { display: flex; gap: 10px; flex-wrap: wrap; }
.spec { border-radius: 14px; background: var(--bone); padding: 12px 16px; min-width: 120px; }
.spec b { display: block; font-size: 1.3rem; font-weight: 400; letter-spacing: -.03em; }
.spec span { font-size: .76rem; color: var(--muted); }
.split figure .figure-obj, .figure-obj { position: absolute; width: 24%; height: auto; object-fit: contain; right: 3%; bottom: 3%; filter: drop-shadow(0 30px 30px rgba(14, 15, 17, .35)); animation: float 7s ease-in-out infinite; }
.figure-glass { position: absolute; left: 16px; top: 16px; border-radius: 16px; padding: 12px 14px; color: #fff; font-size: .8rem; }
.figure-glass b { display: block; font-size: 1.4rem; font-weight: 400; letter-spacing: -.03em; }

.svc-index { display: flex; gap: 8px; flex-wrap: wrap; position: sticky; top: 92px; z-index: 20; padding: 10px; border-radius: 99px; background: rgba(255, 255, 255, .75); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); width: max-content; max-width: 100%; margin: 0 auto 56px; overflow-x: auto; }
.svc-index a { height: 36px; padding: 0 14px; border-radius: 99px; display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; color: var(--charcoal); white-space: nowrap; transition: background .3s, color .3s; }
.svc-index a img { width: 22px; height: 22px; }
.svc-index a.is-active, .svc-index a:hover { background: var(--ink); color: #fff; }
.svc-block { padding: clamp(48px, 6vw, 88px) 0; border-top: 1px solid var(--line); scroll-margin-top: 150px; }
.svc-block:first-of-type { border-top: 0; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; counter-reset: s; }
.step { border-radius: var(--radius-lg); padding: 24px; background: var(--bone); min-height: 240px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--font-mono); font-size: .76rem; color: var(--muted); }
.step h3 { margin-top: auto; padding-top: 40px; }
.step p { margin-top: 8px; }
.step .bar { position: absolute; left: 0; top: 0; height: 3px; width: 100%; background: var(--red); transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--i) * .2s); }
.is-drawn .step .bar, .step.is-visible .bar { transform: scaleX(1); }

.timeline { position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 140px; top: 8px; bottom: 8px; width: 1px; background: var(--line-2); }
.tl { display: grid; grid-template-columns: 140px 1fr; gap: 40px; padding: 26px 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 134px; top: 34px; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.tl .yr { font-family: var(--font-mono); font-size: .9rem; color: var(--muted); padding-top: 4px; }
.tl h3 { margin-bottom: 8px; }

.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.value { border-radius: var(--radius-lg); background: var(--bone); padding: 24px; min-height: 300px; display: flex; flex-direction: column; overflow: hidden; position: relative; isolation: isolate; }
.value img { width: 110px; margin: -6px 0 auto -8px; filter: drop-shadow(0 18px 16px rgba(14, 15, 17, .2)); transition: transform .8s var(--ease); }
.value:hover img { transform: rotate(-10deg) scale(1.06); }
.value h3 { margin-top: 30px; }
.value p { margin-top: 8px; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filters button { height: 40px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line-2); font-size: .86rem; transition: background .3s, color .3s; }
.filters button[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pcard { border-radius: var(--radius-lg); overflow: hidden; background: var(--bone); display: flex; flex-direction: column; transition: opacity .5s, transform .6s var(--ease); }
.pcard.is-hidden { display: none; }
.pcard figure { aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.pcard figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.pcard:hover figure img { transform: scale(1.06); }
.pcard figure .chip { position: absolute; left: 12px; top: 12px; }
.pcard .body { padding: 20px; display: grid; gap: 6px; }
.pcard .meta { display: flex; gap: 16px; margin-top: 10px; font-size: .78rem; color: var(--muted); font-family: var(--font-mono); }
.pcard--wide { grid-column: span 2; }
.pcard--wide figure { aspect-ratio: 16 / 9; }

.case { display: grid; grid-template-columns: repeat(12, 1fr); gap: 14px; }
.case > .c7 { grid-column: span 7; }
.case > .c5 { grid-column: span 5; }
.case > .c4 { grid-column: span 4; }
.case > .c8 { grid-column: span 8; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { border-radius: var(--radius); background: var(--bone); padding: 18px; }
.kpi b { display: block; font-size: 2rem; font-weight: 400; letter-spacing: -.04em; line-height: 1.1; }
.kpi > span { font-size: .78rem; color: var(--muted); }

.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.ccard { border-radius: var(--radius-lg); background: var(--bone); padding: 26px; display: flex; flex-direction: column; gap: 12px; min-height: 220px; position: relative; overflow: hidden; transition: background .5s, color .5s; isolation: isolate; }
.ccard:hover { background: var(--ink); color: #fff; }
.ccard:hover .small { color: rgba(255, 255, 255, .6); }
.ccard .ic { width: 44px; height: 44px; border-radius: 14px; background: #fff; display: grid; place-items: center; color: var(--red); }
.ccard .ic svg { width: 18px; height: 18px; }
.ccard .big { font-size: 1.35rem; letter-spacing: -.02em; margin-top: auto; }
.ccard img.obj { position: absolute; right: -24px; top: -24px; width: 120px; z-index: -1; opacity: .9; transition: transform .8s var(--ease); }
.ccard:hover img.obj { transform: rotate(-14deg) scale(1.1); }

/* 11. Footer --------------------------------------------------------------- */
.footer { margin: 12px; border-radius: var(--radius-xl); background: var(--ink); color: #fff; overflow: hidden; position: relative; isolation: isolate; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding: clamp(36px, 5vw, 64px) clamp(22px, 4vw, 56px) 0; }
.footer__top .h3 { max-width: 22ch; }
.socials { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.socials a { height: 36px; padding: 0 14px; border-radius: 99px; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; font-size: .8rem; transition: background .3s; }
.socials a:hover { background: var(--red); }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr) 1.5fr; gap: 32px; padding: clamp(36px, 5vw, 56px) clamp(22px, 4vw, 56px); }
.footer__cols h4 { font-size: .78rem; font-weight: 500; color: rgba(255, 255, 255, .45); margin-bottom: 14px; }
.footer__cols li + li { margin-top: 8px; }
.footer__cols a { font-size: .9rem; color: rgba(255, 255, 255, .85); transition: color .3s; }
.footer__cols a:hover { color: var(--red-2); }
.news { display: flex; gap: 6px; padding: 5px; border-radius: 99px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.news input { flex: 1; min-width: 0; background: none; border: 0; padding: 0 14px; color: #fff; font-size: .88rem; outline: none; }
.news input::placeholder { color: rgba(255, 255, 255, .4); }
.news button { height: 40px; padding: 0 18px; border-radius: 99px; background: #fff; color: var(--ink); font-size: .84rem; font-weight: 500; transition: background .3s, color .3s; }
.news button:hover { background: var(--red); color: #fff; }
.footer__word { position: relative; text-align: center; font-size: clamp(5rem, 22vw, 22rem); font-weight: 600; letter-spacing: -.07em; line-height: .78; margin-bottom: -.12em; color: transparent; background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; user-select: none; }
.footer__bar { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 18px clamp(22px, 4vw, 56px); border-top: 1px solid rgba(255, 255, 255, .08); font-size: .78rem; color: rgba(255, 255, 255, .45); position: relative; z-index: 1; }
.footer .bloom { width: 480px; height: 480px; right: -120px; top: -160px; }

/* 12. Motion --------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
[data-reveal="fade"] { transform: none; }
[data-reveal="scale"] { transform: scale(.94); }
[data-reveal="left"] { transform: translateX(-40px); }
[data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(12% 12% 12% 12% round 24px); transition: clip-path 1.4s var(--ease-out); }
[data-reveal].is-visible { opacity: 1; transform: none; }
[data-reveal="clip"].is-visible { clip-path: inset(0 0 0 0 round 0); }
.split-lines .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.split-lines .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--l) * .09s + var(--d, 0s)); }
.split-lines.is-visible .line > span { transform: none; }
.no-js [data-reveal] { opacity: 1; transform: none; clip-path: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  [data-reveal], .split-lines .line > span, .hero__word span { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .marquee__track { animation: none; }
}

/* 13. Responsive ----------------------------------------------------------- */
@media (max-width: 1180px) {
  .nav__phone { display: none; }
  .svc-grid { grid-template-columns: 1fr 1fr; }
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .testi { grid-template-columns: 1fr 1fr; }
  .testi__col--mid { grid-column: 1 / -1; order: -1; }
  .t-photo { min-height: 380px; }
  .values { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: repeat(3, 1fr); }
  .footer__cols > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 980px) {
  .nav__links, .nav__right .btn { display: none; }
  .burger { display: block; }
  .section-head { grid-template-columns: 1fr; }
  .hero__content, .page-hero__content { grid-template-columns: 1fr; }
  .hero__scroll { display: none; }
  .hero__chip--live { top: 34%; bottom: auto; width: 200px; }
  .hero__chip--batt { top: 34%; }
  .statement { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .b-chart { grid-column: 1 / -1; min-height: 340px; }
  .solutions, .projects, .families, .contact, .map-sec, .calc, .split, .footer__top { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .solutions__intro { position: static; }
  .proj-viewport { margin-right: 0; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .scard .scard__copy { max-width: 70%; }
  .pgrid { grid-template-columns: 1fr 1fr; }
  .case > * { grid-column: 1 / -1 !important; }
  .contact-cards { grid-template-columns: 1fr 1fr; }
  .socials { justify-content: flex-start; }
  .numbers-head { flex-direction: column; align-items: flex-start; }
  .numbers-head p { text-align: left; }
}
@media (max-width: 700px) {
  .scard-grid { grid-template-columns: 1fr; }
  .sol-card { grid-template-columns: 1fr; position: relative; top: auto; padding: 14px; }
  .sol-card figure { order: -1; aspect-ratio: 16 / 10; }
  .sol-card__body { padding: 6px 8px 8px; }
  .feat-grid { grid-template-columns: 1fr; }
  .tl { grid-template-columns: 1fr; gap: 8px; padding-left: 28px; }
  .timeline::before { left: 6px; }
  .tl::before { left: 0; top: 30px; }
}
@media (max-width: 600px) {
  .nav { top: 8px; left: 8px; right: 8px; height: 60px; padding-left: 16px; }
  .brand__mark { width: 36px; height: 36px; }
  .brand__word { height: 20px; }
  :root { --radius-hero: 6px; }
  .h2 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
  .h1 { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .hero__title { font-size: clamp(2.3rem, 11vw, 3rem); }
  .hero__chip { padding: 10px 12px; border-radius: 14px; }
  .hero__chip--batt { left: 14px; gap: 8px; }
  .batt-ring { width: 34px; height: 34px; }
  .hero__chip .v { font-size: 1.25rem; }
  .hero, .page-hero { padding: 76px 8px 0; }
  .hero__frame { height: max(600px, calc(100svh - 84px)); }
  .hero__word { top: 14%; }
  .hero__chip--live { width: 168px; right: 14px; }
  .hero__chip svg.spark { height: 26px; }
  .sheet { margin: 0 8px; }
  .footer { margin: 8px; }
  .bento, .svc-grid, .numbers__grid, .testi, .values, .steps, .pgrid, .contact-cards { grid-template-columns: 1fr; }
  .pcard--wide { grid-column: auto; }
  .proj-card { flex-basis: 90%; }
  .proj-card__body { grid-template-columns: 1fr; }
  .proj-card__body .rating { justify-self: start; }
  .b-card { min-height: 340px; }
  .svc { min-height: 0; }
  .svc .icon { width: 110px; height: 110px; }
  .form { grid-template-columns: 1fr; }
  .scard { min-height: 320px; }
  .scard .shape { width: 50%; opacity: .55; }
  .scard .scard__copy { max-width: 100%; }
  .trust { flex-direction: column; align-items: flex-start; gap: 16px; }
  .trust__label { max-width: none; }
  .marquee { width: 100%; }
  .testi-orb { width: min(240px, 70%); }
  .orb-stage { min-height: 300px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .cta { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .calc__result { grid-template-columns: 1fr 1fr; }
  .t-photo { min-height: 320px; }
}

/* Lenis smooth scroll */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Touch devices: every hover effect also plays when the element crosses the middle of the screen
   (JS toggles .is-inview); presses give a quick scale-down instead of the magnetic pull. */
.btn.is-inview .btn__ic { transform: rotate(45deg); }
.btn:active, .round-btn:active, .ccard:active, .filters button:active, .seg span:active, .flow-modes button:active { transform: scale(.96); transition-duration: .15s; }
.link-arrow.is-inview svg { transform: translateX(6px); }
.link-arrow.is-inview::after { transform: scaleX(.6); }
.b-photo.is-inview img, .sol-card.is-inview figure img, .pcard.is-inview figure img { transform: scale(1.06); }
.feat.is-inview { background: #fff; box-shadow: var(--shadow-1); transform: translateY(-4px); }
.feat.is-inview .ic { background: var(--red); color: #fff; border-color: var(--red); }
.scard.is-inview .shape { transform: translateX(-10px) scale(1.03); }
.ccard.is-inview { background: var(--ink); color: #fff; }
.ccard.is-inview .small { color: rgba(255, 255, 255, .6); }
.ccard.is-inview img.obj { transform: rotate(-14deg) scale(1.1); }
.value.is-inview img { transform: rotate(-10deg) scale(1.06); }
.num-card.is-inview .ic { background: rgba(255, 255, 255, .3); }
.t-card.is-inview { background: #fff; box-shadow: var(--shadow-1); }
.t-card { transition: background .5s, box-shadow .5s; }
.t-card:hover { background: #fff; box-shadow: var(--shadow-1); }

/* Energy flow: a vertical diagram replaces the wide one on phones */
.flow .flow-m { display: none; }
.flow .flow-m .node text { font-size: 13px; }
.flow .flow-m .node text.sub { font-size: 10px; }
@media (max-width: 600px) {
  .flow .flow-d { display: none; }
  .flow .flow-m { display: block; max-width: 380px; margin: 0 auto; }
  /* map: labels collapse to HQ only, bigger pins, tap for the rest */
  .zmap .pin:not(.hq) text { display: none; }
  .zmap .pin text { font-size: 40px; stroke-width: 10px; }
  .zmap .pin circle.core { r: 14px; }
  .zmap .pin.hq circle.core { r: 18px; }
  .zmap .dot { r: 5.5px; }
}

/* 14. Detail layer --------------------------------------------------------- */
/* Patterns are drawn, not loaded. The PV cell (chamfered corners, two busbars) is the house texture:
   cells on dark grounds, dots on light grounds, hatch on red tiles, rays where the sun sits. */
:root {
  --tile-cell: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cg fill='none' stroke='%23000'%3E%3Cpath d='M5.5 1.5h15l4 4v15l-4 4h-15l-4-4v-15z'/%3E%3Cpath d='M10.5 1.5v23M15.5 1.5v23' stroke-opacity='.45' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E");
  --tile-cell-faint: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='26' height='26'%3E%3Cg fill='none' stroke='%23fff'%3E%3Cpath d='M5.5 1.5h15l4 4v15l-4 4h-15l-4-4v-15z' stroke-opacity='.07'/%3E%3Cpath d='M10.5 1.5v23M15.5 1.5v23' stroke-opacity='.035' stroke-width='.7'/%3E%3C/g%3E%3C/svg%3E");
  --pat-dots: radial-gradient(circle at 1px 1px, #000 1px, transparent 1.3px);
  --pat-hatch: repeating-linear-gradient(135deg, rgba(255, 255, 255, .1) 0 1px, transparent 1px 9px);
  --fade-tr: radial-gradient(130% 130% at 100% 0%, #000 12%, transparent 62%);
  --pat-ink: rgba(14, 15, 17, .11);
  --pat-white: rgba(255, 255, 255, .085);
}

/* Shared corner patch: a pattern masked into the top-right corner, coloured by --pc. */
.svc::after, .plan--dark::after, .calc__panel::after, .feat::after, .step::after, .value::after, .ccard::after, .mobile-menu::after {
  content: ""; position: absolute; top: 0; right: 0; width: var(--pw, 62%); height: var(--ph, 60%); z-index: -1; pointer-events: none;
  background-color: var(--pc, var(--pat-ink));
  -webkit-mask: var(--pat, var(--tile-cell)) 100% 0 / var(--ps, 26px) var(--ps, 26px), var(--fade-tr); -webkit-mask-composite: source-in;
  mask: var(--pat, var(--tile-cell)) 100% 0 / var(--ps, 26px) var(--ps, 26px), var(--fade-tr); mask-composite: intersect;
  transition: background-color .6s var(--ease);
}
.svc:hover, .svc.is-inview { --pc: var(--pat-white); }
.plan--dark, .calc__panel { --pc: var(--pat-white); }
.feat, .step, .value, .ccard { --pat: var(--pat-dots); --ps: 12px; --pc: rgba(14, 15, 17, .2); --pw: 48%; --ph: 70%; position: relative; isolation: isolate; overflow: hidden; }
.feat:hover, .feat.is-inview { --pc: rgba(229, 8, 15, .3); }
.mobile-menu { isolation: isolate; }
.mobile-menu::after {
  top: auto; bottom: 0; width: 100%; height: 55%; --pc: var(--pat-white);
  -webkit-mask: var(--tile-cell) 100% 100% / 26px 26px, radial-gradient(120% 100% at 100% 100%, #000 5%, transparent 65%); -webkit-mask-composite: source-in;
  mask: var(--tile-cell) 100% 100% / 26px 26px, radial-gradient(120% 100% at 100% 100%, #000 5%, transparent 65%); mask-composite: intersect;
}

/* Same-tone cards on a same-tone ground lose their edges: lift them to white. */
.section--bone :is(.svc, .step, .feat, .value) { background: #fff; }

/* Service card serial: 01 / 06 */
.svc .num::after { content: " / 06"; color: var(--muted-2); transition: color .6s; }
.svc:hover .num::after, .svc.is-inview .num::after { color: rgba(255, 255, 255, .35); }

/* Red stat tile: fine hatch, faded from the corner */
.num-card--solid { position: relative; overflow: hidden; isolation: isolate; }
.num-card--solid::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--pat-hatch); -webkit-mask: var(--fade-tr); mask: var(--fade-tr); pointer-events: none; }

/* Chart cards read like a datasheet: registration marks in each corner */
.chart-card::after {
  content: ""; position: absolute; inset: 12px; pointer-events: none; --m: var(--line-2);
  background:
    linear-gradient(var(--m), var(--m)) 0 0 / 9px 1px, linear-gradient(var(--m), var(--m)) 0 0 / 1px 9px,
    linear-gradient(var(--m), var(--m)) 100% 0 / 9px 1px, linear-gradient(var(--m), var(--m)) 100% 0 / 1px 9px,
    linear-gradient(var(--m), var(--m)) 0 100% / 9px 1px, linear-gradient(var(--m), var(--m)) 0 100% / 1px 9px,
    linear-gradient(var(--m), var(--m)) 100% 100% / 9px 1px, linear-gradient(var(--m), var(--m)) 100% 100% / 1px 9px;
  background-repeat: no-repeat;
}

/* Calculator: the battery sits behind frosted result tiles instead of over them */
.calc__panel .obj { right: -34px; bottom: -58px; width: 190px; z-index: 0; }
.calc__result { position: relative; z-index: 1; }
.calc__result div { background: rgba(255, 255, 255, .05); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.calc__result b { font-variant-numeric: tabular-nums; }

/* Footer: PV cells fading in from the bloom corner, and faint rays where the sun sits */
.footer::before, .footer::after { content: ""; position: absolute; top: 0; right: 0; pointer-events: none; z-index: -1; }
.footer::before { width: 60%; height: 85%; background: var(--tile-cell-faint) 100% 0 / 26px 26px; -webkit-mask: var(--fade-tr); mask: var(--fade-tr); }
.footer::after { width: 70%; height: 100%; background: repeating-conic-gradient(from 180deg at 100% 0%, rgba(255, 255, 255, .04) 0deg .35deg, transparent .35deg 4.5deg); -webkit-mask: radial-gradient(90% 90% at 100% 0%, #000, transparent 75%); mask: radial-gradient(90% 90% at 100% 0%, #000, transparent 75%); }
.footer__word { background: var(--tile-cell-faint) 50% 0 / 22px 22px, linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; }
.footer__cols { counter-reset: fc; }
.footer__cols h4::before { counter-increment: fc; content: "0" counter(fc); font-family: var(--font-mono); color: var(--red-2); margin-right: 10px; font-size: .7rem; }
.socials a { gap: 6px; border: 1px solid rgba(255, 255, 255, .06); }
.socials a svg { width: 13px; height: 13px; opacity: .5; transition: transform .4s var(--ease), opacity .3s; }
.socials a:hover svg { opacity: 1; transform: translate(2px, -2px); }
.footer__bar { align-items: center; }
.fclock { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: .72rem; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.fclock i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.fclock.is-day i { background: var(--amber); animation: sunpulse 2.4s ease-out infinite; }
@keyframes sunpulse { 0% { box-shadow: 0 0 0 0 rgba(242, 169, 59, .55); } 100% { box-shadow: 0 0 0 7px rgba(242, 169, 59, 0); } }
.totop { display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .6); transition: color .3s; }
.totop svg { width: 13px; height: 13px; transform: rotate(-90deg); transition: transform .4s var(--ease); }
.totop:hover { color: #fff; }
.totop:hover svg { transform: rotate(-90deg) translateX(3px); }

/* Mobile nav: a bare three-line toggle with a Projects shortcut beside it */
.nav__m { display: none; height: 38px; padding: 0 15px; border-radius: 99px; align-items: center; font-size: .84rem; font-weight: 500; color: #fff; background: var(--ink); transition: background .3s, opacity .4s, transform .4s var(--ease); }
.nav__m[aria-current="page"] { background: var(--red); }
.nav__m:active { transform: scale(.96); }
.burger { width: 44px; height: 44px; border-radius: 0; background: none; margin-right: -4px; }
.burger span { left: auto; right: 10px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .5s var(--ease), top .5s var(--ease), width .5s var(--ease), opacity .3s, background .4s; }
.burger span:nth-child(1) { top: 14px; width: 24px; }
.burger span:nth-child(2) { top: 21px; width: 15px; }
.burger span:nth-child(3) { top: 28px; width: 24px; }
.burger:hover span:nth-child(2) { width: 24px; }
.menu-open .burger span { background: #fff; }
.menu-open .burger span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; width: 0; }
.menu-open .burger span:nth-child(3) { top: 21px; transform: rotate(-45deg); }
.menu-open .nav__m { opacity: 0; pointer-events: none; transform: translateX(8px); }
@media (max-width: 980px) {
  .nav__m { display: inline-flex; }
  .nav__right { gap: 6px; }
}
@media (max-width: 600px) {
  .footer__bar { justify-content: center; text-align: center; }
  .footer__bar > span:first-child { order: 3; width: 100%; }
}
