/* ============================================================
   EVVO Smart, evvosmart.com
   Redesigned 2026-10-13 against the design-taste-frontend skill.

   Design read: B2B product landing for solar plant owners, EPCs and
   O&M teams in India, serious engineering language, native CSS on the
   existing static stack, Geist type, restrained and motivated motion.
   Dials: DESIGN_VARIANCE 7, MOTION_INTENSITY 8 (raised for the hero on
   2026-10-13 at the user's request), VISUAL_DENSITY 4.

   Locks
   - Theme: one per visitor. Light by default, dark when the system asks
     for it or html[data-theme="dark"]; html[data-theme="light"] pins light.
   - Accent: brand orange only, HSL saturation under 80%. Green and red
     appear only as real state: the plant preview, form errors, send status.
   - Radius: --r-panel 16px for images, panels, cells, menus and the form;
     --r-control 10px for buttons, inputs, chips and icon tiles;
     --r-tag 6px for bar segments and the slider thumb. 2-3px only rounds
     the ends of hairlines and the corners of legend swatches.
   - Layers: --z-raise 1, --z-sticky 10, --z-nav 50, --z-menu 60, --z-skip 100.
   - Motion: transform and opacity only, gated on html.is-motion, which
     site.js sets unless prefers-reduced-motion or ?static=1.
   ============================================================ */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+20B9, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+20B9, U+2122, U+2190-2199, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- tokens: light ---------- */
:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-2: #eef1f4;
  --surface: #fcfcfd;
  --plate: #fcfcfd;
  --line: #e1e5ea;
  --line-2: #cbd2db;
  --field: #828c9a;
  --ink: #111923;
  --text: #3a4552;
  --muted: #5a6573;
  --accent: #e4952f;        /* hsl(34 77% 54%): buttons, fills */
  --accent-hover: #e9a248;
  --accent-strong: #c3761d; /* hsl(32 74% 44%): chart marks on light grounds, 3.3:1 */
  --accent-ink: #875012;    /* hsl(32 77% 30%): orange text on light grounds, 6:1 */
  --accent-soft: #fbeedd;
  --on-accent: #1c1206;
  --ok: #2e7a3a;
  --bad: #b3352c;
  --bad-soft: #f8e4e1;
  --seg-2: #5a6573;
  --seg-3: #98a2ae;
  --seg-4: #cbd2db;
  --nav-bg: rgb(246 247 249 / .84);
  --shadow-1: 0 1px 2px rgb(17 25 35 / .05), 0 10px 28px -14px rgb(17 25 35 / .18);
  --shadow-2: 0 2px 6px rgb(17 25 35 / .05), 0 28px 56px -28px rgb(17 25 35 / .32);
  --photo-filter: none;
  --hairline: rgb(17 25 35 / .07);
  --scrim: 246 247 249;
  --scrim-top: .62;
  --scrim-peak: .72;
  --scrim-mid: .54;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --r-panel: 16px;
  --r-control: 10px;
  --r-tag: 6px;
  --z-raise: 1;
  --z-sticky: 10;
  --z-nav: 50;
  --z-menu: 60;
  --z-skip: 100;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --wrap: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --nav-h: 68px;
}

/* ---------- tokens: dark (system preference, or forced with data-theme) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0e1217;
    --bg-2: #131820;
    --surface: #171c24;
    --plate: #d5dbe2;
    --line: #232a34;
    --line-2: #313a46;
    --field: #5d6878;
    --ink: #eef1f5;
    --text: #c5ccd5;
    --muted: #98a3b1;
    --accent: #e9a04a;
    --accent-hover: #efb064;
    --accent-strong: #e9a04a;
    --accent-ink: #ebaf6b;
    --accent-soft: #2b2116;
    --on-accent: #1c1206;
    --ok: #74c483;
    --bad: #f0857a;
    --bad-soft: #3a1d1a;
    --seg-2: #98a3b1;
    --seg-3: #5d6878;
    --seg-4: #3a4452;
    --nav-bg: rgb(14 18 23 / .82);
    --shadow-1: 0 1px 2px rgb(3 6 10 / .4), 0 10px 28px -14px rgb(3 6 10 / .7);
    --shadow-2: 0 2px 6px rgb(3 6 10 / .4), 0 28px 56px -28px rgb(3 6 10 / .8);
    --photo-filter: brightness(.9) saturate(.95);
    --hairline: rgb(255 255 255 / .07);
    --scrim: 14 18 23;
    --scrim-top: .78;
    --scrim-peak: .8;
    --scrim-mid: .64;
  }
  :root:not([data-theme="light"]) .logo-ink { display: none; }
  :root:not([data-theme="light"]) .logo-white { display: block; }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1217;
  --bg-2: #131820;
  --surface: #171c24;
  --plate: #d5dbe2;
  --line: #232a34;
  --line-2: #313a46;
  --field: #5d6878;
  --ink: #eef1f5;
  --text: #c5ccd5;
  --muted: #98a3b1;
  --accent: #e9a04a;
  --accent-hover: #efb064;
  --accent-strong: #e9a04a;
  --accent-ink: #ebaf6b;
  --accent-soft: #2b2116;
  --on-accent: #1c1206;
  --ok: #74c483;
  --bad: #f0857a;
  --bad-soft: #3a1d1a;
  --seg-2: #98a3b1;
  --seg-3: #5d6878;
  --seg-4: #3a4452;
  --nav-bg: rgb(14 18 23 / .82);
  --shadow-1: 0 1px 2px rgb(3 6 10 / .4), 0 10px 28px -14px rgb(3 6 10 / .7);
  --shadow-2: 0 2px 6px rgb(3 6 10 / .4), 0 28px 56px -28px rgb(3 6 10 / .8);
  --photo-filter: brightness(.9) saturate(.95);
  --hairline: rgb(255 255 255 / .07);
  --scrim: 14 18 23;
  --scrim-top: .78;
  --scrim-peak: .8;
  --scrim-mid: .64;
}
:root[data-theme="dark"] .logo-ink { display: none; }
:root[data-theme="dark"] .logo-white { display: block; }

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
html.is-motion { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 1.6rem + 3vw, 3.75rem); line-height: 1.02; letter-spacing: -.042em; }
h2 { font-size: clamp(2rem, 1.45rem + 2vw, 2.875rem); line-height: 1.06; letter-spacing: -.034em; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.012em; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--accent) 34%, transparent); }
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 3px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: 12px; z-index: var(--z-skip); padding: .6rem 1rem; border-radius: var(--r-control); background: var(--ink); color: var(--bg); font-weight: 600; transform: translateY(-160%); transition: transform .2s ease; }
.skip:focus { transform: none; }
.top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; vertical-align: -.22em; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 8vw, 112px) clamp(80px, 9vw, 128px); }
.band { background: var(--bg-2); }
.sec-head { max-width: 46rem; margin-bottom: clamp(36px, 4.5vw, 56px); }
.lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); line-height: 1.6; color: var(--text); max-width: 56ch; }
.sec-head .lead, .products-index .lead, .android-copy .lead, .contact-copy .lead, .why-copy .lead { margin-top: 1rem; }
.quiet { color: var(--muted); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  height: 44px;
  padding: 0 1.1rem;
  border-radius: var(--r-control);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: .9375rem;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s ease, border-color .2s ease, color .2s ease, box-shadow .25s ease;
}
.btn .ic { width: 1.1em; height: 1.1em; transition: transform .25s var(--ease); }
.btn:hover { transform: translateY(-1px); }
.btn:hover .ic { transform: translateX(2px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 1px 0 rgb(255 255 255 / .28), 0 8px 20px -10px color-mix(in srgb, var(--accent-strong) 75%, transparent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 .9rem; font-size: .9rem; }
.btn-lg { height: 50px; padding: 0 1.35rem; font-size: 1rem; }
.btn[aria-busy="true"] { opacity: .7; pointer-events: none; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: text-decoration-color .2s ease, color .2s ease;
}
.text-link:hover { text-decoration-color: var(--accent-strong); }
.text-link .ic { width: 1em; height: 1em; transition: transform .25s var(--ease); }
.text-link:hover .ic { transform: translate(1px, -1px); }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: var(--bg);
  background: var(--nav-bg);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.nav.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 28px -24px rgb(17 25 35 / .45); }
.nav:not(.is-scrolled):not(.is-open) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: .85rem; flex: none; }
.logo { display: block; height: 30px; width: auto; }
.logo-white { display: none; }
.brand-sep { width: 1px; height: 24px; background: var(--line-2); }
.brand-word { font-weight: 650; font-size: 1.0625rem; letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.brand-word em { font-style: normal; color: var(--accent-ink); }
.nav-menu { margin-left: auto; display: flex; align-items: center; gap: clamp(1rem, 1.6vw, 1.75rem); }
.nav-link { position: relative; padding-block: .4rem; font-size: .9375rem; font-weight: 500; color: var(--text); white-space: nowrap; transition: color .2s ease; }
.nav-link::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-link:hover, .nav-link[aria-current] { color: var(--ink); }
.nav-link:hover::after, .nav-link[aria-current]::after { transform: scaleX(1); }
.nav-signin { position: relative; }
.signin-btn .ic-caret { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.signin-btn:hover .ic-caret { transform: none; }
.nav-signin.is-open .ic-caret, .nav-signin:hover .ic-caret { transform: rotate(180deg); }
.signin-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: var(--z-menu);
  min-width: 248px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .2s ease, transform .25s var(--ease), visibility 0s linear .25s;
}
.signin-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.nav-signin:hover .signin-menu, .nav-signin:focus-within .signin-menu, .nav-signin.is-open .signin-menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.signin-menu a { display: flex; flex-direction: column; gap: 2px; padding: .65rem .8rem; border-radius: var(--r-control); transition: background-color .15s ease; }
.signin-menu a:hover { background: var(--bg-2); }
.signin-menu b { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.signin-menu span { font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); }
.nav-toggle { display: none; }
.ic-close { display: none; }

@media (max-width: 1100px) and (min-width: 1024px) {
  .brand-sep, .brand-word { display: none; }
}
@media (max-width: 1023px) {
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line-2);
    border-radius: var(--r-control);
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    transition: border-color .2s ease;
  }
  .nav-toggle:hover { border-color: var(--ink); }
  .nav-toggle .ic { width: 22px; height: 22px; }
  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    padding: .5rem var(--gutter) 1.5rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
  }
  .nav.is-open .nav-menu { display: flex; }
  .nav.is-open { background: var(--bg); }
  .nav.is-open .ic-open { display: none; }
  .nav.is-open .ic-close { display: block; }
  .nav-link { padding: .9rem 0; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-link::after { display: none; }
  .nav-signin { padding: 1rem 0 .5rem; border-bottom: 1px solid var(--line); }
  .nav-signin::before { content: "Sign in"; display: block; margin-bottom: .25rem; font-size: .875rem; font-weight: 600; color: var(--muted); }
  .signin-btn { display: none; }
  .signin-menu { position: static; min-width: 0; padding: 0; background: transparent; border: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
  .signin-menu::before { display: none; }
  .signin-menu a { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .55rem 0; }
  .nav-cta { margin-top: 1.25rem; height: 48px; }
}

/* ---------- hero: full screen; the copy sits on the photo over a soft scrim in the page's own colour ---------- */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  margin-top: calc(-1 * var(--nav-h) - 1px);
  overflow: hidden;
  overflow: clip;
}
.hero-media { position: absolute; inset: 0; z-index: -2; margin: 0; background: var(--bg-2); }
.hero-media picture { position: absolute; inset: 0; display: block; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; filter: var(--photo-filter); }
/* the scrim: a band under the nav and a soft pool behind the copy, both in the page colour */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(var(--scrim) / var(--scrim-top)) 0, rgb(var(--scrim) / 0) clamp(140px, 22vh, 220px)),
    radial-gradient(72rem 40rem at calc(max(var(--gutter), (100% - var(--wrap)) / 2) + 20rem) 36%, rgb(var(--scrim) / var(--scrim-peak)) 0%, rgb(var(--scrim) / var(--scrim-mid)) 44%, rgb(var(--scrim) / 0) 100%);
}
.hero-inner { align-self: flex-start; padding-top: calc(var(--nav-h) + clamp(40px, 9vh, 104px)); padding-bottom: clamp(48px, 8vh, 96px); }
.hero-copy { max-width: 46rem; }
.hero h1 { max-width: 20ch; }
.kw { display: inline-block; clip-path: inset(-.1em -.1em -.14em -.1em); }
.kw > span { display: inline-block; }
.hero-lead { margin-top: 1.25rem; max-width: 46ch; font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--ink); }
.hero-actions { margin-top: 1.75rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
@media (max-width: 767px) {
  .hero::before { background: linear-gradient(180deg, rgb(var(--scrim) / var(--scrim-peak)) 0%, rgb(var(--scrim) / var(--scrim-mid)) 54%, rgb(var(--scrim) / 0) 82%); }
}

/* ---------- protocol strip: the one marquee ---------- */
.strip { border-block: 1px solid var(--line); padding-block: 20px; }
.marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); }
.marquee-list { display: flex; flex: none; }
.marquee-list li { position: relative; padding: .3rem 1.5rem; font-size: .9375rem; font-weight: 500; letter-spacing: -.01em; color: var(--muted); white-space: nowrap; }
.marquee-list li::before { content: ""; position: absolute; left: 0; top: 28%; bottom: 28%; width: 1px; background: var(--line-2); }
html:not(.is-motion) .marquee { -webkit-mask-image: none; mask-image: none; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
html:not(.is-motion) .marquee-list { flex: 1 1 auto; flex-wrap: wrap; row-gap: .4rem; }
@media (max-width: 767px) {
  html:not(.is-motion) .marquee { overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
  html:not(.is-motion) .marquee-list { flex-wrap: nowrap; }
  html:not(.is-motion) .marquee-list li { scroll-snap-align: start; }
}
.is-motion .marquee-list { animation: marquee 70s linear infinite; }
.is-motion .marquee:hover .marquee-list, .is-motion .marquee.is-offscreen .marquee-list { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-100%); } }

/* ---------- why: copy left, the C&I rooftop photo fading in from the right ---------- */
.why { position: relative; overflow: hidden; isolation: isolate; }
.why-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  width: 60%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 72%;
  filter: var(--photo-filter);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .25) 18%, #000 50%);
  mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .25) 18%, #000 50%);
}
.why-copy { max-width: 34rem; }
.points { margin-top: 2.25rem; display: grid; gap: 1.5rem; }
.points li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 1rem; align-items: start; }
.point-tile { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-control); background: var(--accent-soft); color: var(--accent-ink); }
.point-tile .ic { width: 22px; height: 22px; }
.points h3 { font-size: 1.0625rem; margin-bottom: .3rem; }
.points p { font-size: .9688rem; color: var(--muted); }
@media (max-width: 1023px) {
  .why { padding-top: 0; }
  .why-photo { position: static; width: 100%; height: auto; aspect-ratio: 16 / 9; margin-bottom: clamp(40px, 7vw, 64px); -webkit-mask-image: none; mask-image: none; }
  .why-copy { max-width: 40rem; }
}

/* ---------- products: sticky index, four products scrolling beside it ---------- */
.products-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.products-index { position: sticky; top: calc(var(--nav-h) + 40px); z-index: var(--z-raise); }
.flow-index { position: relative; margin-top: 2.5rem; }
.flow-index::before, .flow-index::after { content: ""; position: absolute; left: 19px; top: 28px; bottom: 28px; width: 2px; border-radius: 2px; }
.flow-index::before { background: var(--line-2); }
.flow-index::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--fill, 0)); transition: transform .6s var(--ease); }
.flow-index a { display: grid; grid-template-columns: 40px minmax(0, 1fr); align-items: center; gap: 14px; padding: .5rem 0; }
.fi-ic { position: relative; z-index: var(--z-raise); display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); color: var(--muted); transition: background-color .3s ease, border-color .3s ease, color .3s ease; }
.fi-ic .ic { width: 20px; height: 20px; }
.fi-text { display: grid; gap: 2px; min-width: 0; }
.flow-index li.is-active .fi-ic { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.fi-name { font-weight: 600; font-size: 1.0625rem; letter-spacing: -.01em; color: var(--muted); transition: color .3s ease; }
.fi-note { font-size: .875rem; color: var(--muted); }
.flow-index li.is-active .fi-name, .flow-index a:hover .fi-name { color: var(--ink); }
.products-list { display: grid; gap: clamp(64px, 8vw, 112px); }
.product { display: grid; gap: clamp(24px, 3vw, 36px); scroll-margin-top: calc(var(--nav-h) + 24px); }
.product-media { position: relative; overflow: hidden; border-radius: var(--r-panel); background: var(--bg-2); }
.product-media > img, .product-media > picture > img { width: 100%; height: 100%; object-fit: cover; filter: var(--photo-filter); }
.product-media > picture { display: block; height: 100%; }
.ratio-cms { aspect-ratio: 1500 / 940; }
.ratio-cms img { object-position: 0 0; filter: none; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-16x9 { aspect-ratio: 16 / 9; }
.product-body h3 { font-size: clamp(1.625rem, 1.3rem + 1vw, 2.125rem); line-height: 1.1; letter-spacing: -.03em; }
.product-lead { margin-top: .75rem; max-width: 52ch; font-size: 1.125rem; color: var(--text); }
.feat { margin-top: 1.6rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.feat li { font-size: .9688rem; line-height: 1.55; color: var(--muted); }
.feat li b { display: block; margin-bottom: .2rem; font-weight: 600; color: var(--ink); }
.product-meta { margin-top: 1.6rem; padding-top: 1.25rem; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; font-size: .9375rem; color: var(--muted); }
.plat { display: inline-flex; align-items: center; gap: .45rem; font-weight: 500; color: var(--text); }
.plat .ic { width: 18px; height: 18px; color: var(--accent-ink); }
.product-meta .text-link { margin-left: auto; }
.product-media:not(.preview)::after, .android-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--hairline); pointer-events: none; }
@media (max-width: 1023px) {
  .products-grid { grid-template-columns: minmax(0, 1fr); }
  .products-index { position: static; }
  .flow-index { display: none; }
}
@media (max-width: 639px) {
  .feat { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- the plant preview: a working mini view of EVVO SCADA ---------- */
.preview {
  display: grid;
  gap: 14px;
  padding: clamp(14px, 2vw, 20px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  box-shadow: var(--shadow-1);
  container-type: inline-size;
}
.pv-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.pv-title { font-weight: 600; font-size: .9688rem; color: var(--ink); }
.pv-clock { font-family: var(--font-mono); font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.pv-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.pv-kpis > div { min-width: 0; padding: .7rem .75rem; border-left: 1px solid var(--line); }
.pv-kpis > div:first-child { padding-left: 0; border-left: 0; }
.pv-kpis dt { font-size: .75rem; line-height: 1.3; color: var(--muted); }
.pv-kpis dd { margin-top: .2rem; font-family: var(--font-mono); font-size: .8125rem; color: var(--muted); white-space: nowrap; }
.pv-kpis b { font-size: 1.25rem; font-weight: 500; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.pv-sld { display: block; width: 100%; height: auto; }
.pv-sld .edge { fill: none; stroke: var(--line-2); stroke-width: 2; }
.pv-sld .flow { fill: none; stroke: var(--accent-strong); stroke-width: 2; stroke-linecap: round; opacity: .5; transition: opacity .4s ease; }
.pv-sld.is-night .flow { opacity: 0; }
.pv-sld .node rect { fill: var(--bg-2); stroke: var(--line-2); transition: fill .3s ease, stroke .3s ease; }
.pv-sld .node text { fill: var(--ink); font-family: var(--font); font-size: 13px; font-weight: 600; text-anchor: middle; }
.pv-sld .node .sub { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; font-weight: 400; }
.pv-sld .node.is-fault rect { fill: var(--bad-soft); stroke: var(--bad); }
.pv-sld .node.is-fault .sub { fill: var(--bad); }
.pv-sld .val { fill: var(--accent-ink); font-family: var(--font-mono); font-size: 11px; text-anchor: middle; }
.pv-sld .val-side { text-anchor: start; }
.pv-sld .pkt { fill: var(--accent-strong); opacity: 0; }
.pv-chart-wrap { position: relative; }
.pv-chart { display: block; width: 100%; height: auto; }
.pv-legend { position: absolute; top: 0; right: 0; margin: 0; }
.pv-controls { display: flex; align-items: center; gap: 12px; }
.pv-play {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-control);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: transform .2s var(--ease), border-color .2s ease;
}
.pv-play:hover { border-color: var(--ink); }
.pv-play:active { transform: scale(.96); }
.pv-play .ic { width: 18px; height: 18px; }
.pv-play .ic-pause { display: none; }
.pv-play[aria-pressed="true"] .ic-play { display: none; }
.pv-play[aria-pressed="true"] .ic-pause { display: block; }
.pv-scrub { display: flex; flex: 1 1 auto; min-width: 0; }
.pv-scrub input { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.pv-scrub input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-strong) var(--pct, 50%), var(--line-2) var(--pct, 50%)); }
.pv-scrub input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border: 2px solid var(--accent-strong); border-radius: var(--r-tag); background: var(--surface); box-shadow: var(--shadow-1); }
.pv-scrub input::-moz-range-track { height: 4px; border-radius: 2px; background: var(--line-2); }
.pv-scrub input::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--accent-strong); }
.pv-scrub input::-moz-range-thumb { width: 14px; height: 14px; border: 2px solid var(--accent-strong); border-radius: var(--r-tag); background: var(--surface); }
.pv-scrub input:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; border-radius: var(--r-tag); }
.pv-status { display: flex; align-items: center; gap: .5rem; min-height: 1.6em; font-size: .9063rem; color: var(--ok); }
.pv-status.is-fault { color: var(--bad); }
.pv-status .ic { width: 18px; height: 18px; }
@container (max-width: 520px) {
  .pv-legend { position: static; justify-content: flex-end; margin-top: .25rem; }
  .pv-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pv-kpis > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .pv-kpis > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@container (max-width: 460px) {
  .pv-sld { display: none; }
}

/* ---------- how it flows ---------- */
.pipe { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-bottom: clamp(48px, 6vw, 72px); }
.pipe-node { position: relative; display: flex; flex-direction: column; gap: .35rem; min-width: 0; padding-right: 1.25rem; }
.pipe-ic { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: .75rem; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); color: var(--accent-ink); }
.pipe-ic .ic { width: 24px; height: 24px; }
.pipe-node b { font-weight: 600; font-size: 1rem; color: var(--ink); }
.pipe-desc { font-size: .875rem; line-height: 1.45; color: var(--muted); }
.pipe-node:not(:last-child)::before, .pipe-node:not(:last-child)::after { content: ""; position: absolute; top: 23px; left: 60px; right: 12px; height: 2px; border-radius: 2px; }
.pipe-node:not(:last-child)::before { background: var(--line-2); }
.pipe-node:not(:last-child)::after { background: var(--accent); transform-origin: left; }
.pipe-via { position: absolute; top: 33px; left: 60px; right: 12px; font-family: var(--font-mono); font-size: .75rem; line-height: 1.3; color: var(--muted); }
.pipe-flow { position: absolute; top: 21px; left: 60px; right: 12px; height: 6px; z-index: var(--z-raise); pointer-events: none; }
.pipe-pulse { position: absolute; inset: 0; opacity: 0; }
.pipe-pulse::before { content: ""; position: absolute; left: -16px; top: 0; width: 16px; height: 6px; border-radius: 3px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--accent-strong); }
.principles { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px clamp(24px, 4vw, 48px); }
.principle { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1rem; align-items: start; padding-top: 1.25rem; border-top: 1px solid var(--line-2); }
.principle-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-control); background: var(--accent-soft); color: var(--accent-ink); }
.principle-ic .ic { width: 20px; height: 20px; }
.principle h3 { margin-bottom: .45rem; }
.principle p { font-size: .9688rem; color: var(--muted); }
.principle-main { grid-row: span 2; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; padding: clamp(24px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); }
.principle-main .principle-ic { width: 52px; height: 52px; }
.principle-main .principle-ic .ic { width: 26px; height: 26px; }
.principle-main h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.principle-main p { max-width: 46ch; font-size: 1.0625rem; color: var(--text); }
@media (max-width: 1023px) {
  .pipe { grid-template-columns: minmax(0, 1fr); }
  .pipe-node { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 1rem; row-gap: .2rem; padding: 0 0 2rem; }
  .pipe-ic { grid-row: 1 / span 3; margin: 0; }
  .pipe-node b { grid-column: 2; }
  .pipe-desc { grid-column: 2; }
  .pipe-node:not(:last-child)::before, .pipe-node:not(:last-child)::after { top: 56px; bottom: 6px; left: 23px; right: auto; width: 2px; height: auto; }
  .pipe-node:not(:last-child)::after { transform-origin: top; }
  .pipe-via { position: static; grid-column: 2; margin-top: .35rem; }
  .pipe-flow { top: 56px; bottom: 6px; left: 21px; right: auto; width: 6px; height: auto; }
  .pipe-pulse::before { left: 0; top: -16px; width: 6px; height: 16px; }
  .principles { grid-template-columns: minmax(0, 1fr); }
  .principle-main { grid-row: auto; }
}

/* ---------- key figures ---------- */
.platform { padding-bottom: calc(clamp(80px, 9vw, 128px) + clamp(56px, 6vw, 88px)); }
.figures { position: relative; z-index: var(--z-raise); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: calc(-1 * clamp(56px, 6vw, 88px)); padding: clamp(24px, 3vw, 40px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-2); }
.stat { display: flex; flex-direction: column; min-width: 0; padding: 0 clamp(16px, 2.5vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat dt { order: 2; display: flex; align-items: center; gap: .45rem; margin-top: .85rem; font-weight: 600; font-size: .9688rem; color: var(--ink); }
.stat dt .ic { width: 18px; height: 18px; color: var(--accent-ink); }
.stat-num { order: 1; font-size: clamp(2.5rem, 1.8rem + 2.2vw, 3.5rem); font-weight: 600; line-height: 1; letter-spacing: -.04em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-num small { margin-left: .15rem; font-family: var(--font-mono); font-size: .875rem; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.stat-note { order: 3; margin-top: .25rem; font-size: .875rem; color: var(--muted); }
@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ---------- capabilities bento: six cells, one per capability ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.cell { display: flex; flex-direction: column; gap: .75rem; min-width: 0; padding: clamp(20px, 2.4vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); }
.cell { position: relative; isolation: isolate; }
.cell > p { max-width: 56ch; font-size: .9688rem; color: var(--muted); }
.spot {
  position: absolute;
  inset: -1px;
  z-index: var(--z-raise);
  padding: 1px;
  overflow: hidden;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s ease;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
.spot > span { position: absolute; left: 0; top: 0; width: 320px; height: 320px; margin: -160px 0 0 -160px; border-radius: 50%; background: radial-gradient(closest-side, var(--accent), transparent); transform: translate(var(--sx, -999px), var(--sy, -999px)); }
.cell:hover .spot { opacity: 1; }
.chart-box { position: relative; }
.cell-forecast { grid-column: span 7; }
.cell-limit { grid-column: span 5; }
.cell-deemed { grid-column: span 4; background: var(--bg-2); }
.cell-alerts { grid-column: span 3; justify-content: flex-end; min-height: 280px; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 32%, transparent); }
.cell-api { grid-column: span 5; }
.cell-reports { grid-column: span 12; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: center; }
.cell-ic { width: 44px; height: 44px; margin-bottom: auto; color: var(--accent-ink); }
.cell-chart { margin-top: auto; padding-top: .5rem; }
.cell-chart svg { display: block; width: 100%; height: auto; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; margin-top: .6rem; font-size: .8125rem; color: var(--muted); }
.legend-note { margin-left: auto; font-family: var(--font-mono); font-size: .75rem; color: var(--muted); }
.sw { display: inline-block; width: 14px; height: 3px; margin-right: .4rem; border-radius: 2px; vertical-align: middle; }
.sw-actual { background: var(--accent-strong); }
.sw-forecast { background: repeating-linear-gradient(90deg, var(--muted) 0 4px, transparent 4px 7px); }
.code { margin: auto 0 0; padding: 14px 16px; overflow-x: auto; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--r-control); font-family: var(--font-mono); font-size: .8125rem; line-height: 1.6; color: var(--text); white-space: pre; }
.deemed { margin-top: auto; }
.deemed-bar { display: flex; gap: 3px; height: 14px; margin-bottom: 1rem; }
.deemed-bar i { display: block; border-radius: var(--r-tag); transform-origin: left; }
.deemed-bar .seg-1 { flex: 150; }
.deemed-bar .seg-2 { flex: 118; }
.deemed-bar .seg-3 { flex: 64; }
.deemed-bar .seg-4 { flex: 40; }
.seg-1 { background: var(--accent-strong); }
.seg-2 { background: var(--seg-2); }
.seg-3 { background: var(--seg-3); }
.seg-4 { background: var(--seg-4); }
.deemed-legend { display: grid; gap: .45rem; font-size: .875rem; color: var(--text); }
.deemed-legend li { display: flex; align-items: center; }
.deemed-legend .sw { width: 10px; height: 10px; border-radius: 3px; }
.deemed-legend b { margin-left: auto; font-family: var(--font-mono); font-weight: 500; color: var(--ink); font-variant-numeric: tabular-nums; }
.deemed .legend-note { display: block; margin-top: .75rem; }
.reports-text h3 { font-size: 1.375rem; letter-spacing: -.02em; }
.feat-2 { margin-top: 1.25rem; }
.reports-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-control); filter: var(--photo-filter); }
@media (max-width: 1023px) {
  .cell-forecast, .cell-limit, .cell-api { grid-column: span 12; }
  .cell-deemed, .cell-alerts { grid-column: span 6; }
  .cell-reports { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .cell-deemed, .cell-alerts { grid-column: span 12; }
  .cell-alerts { min-height: 0; }
  .cell-alerts .cell-ic { margin-bottom: .5rem; }
}

/* ---------- charts drawn by site.js ---------- */
.c-grid { stroke: var(--line); stroke-width: 1; }
.c-base { stroke: var(--line-2); stroke-width: 1; }
.c-fc { fill: none; stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 5; }
.c-line { fill: none; stroke: var(--accent-strong); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.c-area { fill: var(--accent); opacity: .16; }
.c-cap { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 2 4; }
.c-dot { fill: var(--accent-strong); stroke: var(--surface); stroke-width: 2; }
.c-fault { fill: var(--bad); opacity: .1; }
.c-axis { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; text-anchor: middle; }
.c-axis-first { text-anchor: start; }
.c-lab { fill: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.c-cap-lab { fill: var(--ink); font-family: var(--font-mono); font-size: 11px; text-anchor: end; }

/* ---------- equipment ---------- */
.gear { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(16px, 2vw, 24px); }
.gear-tile { min-width: 0; }
.gear-plate { position: relative; aspect-ratio: 1; margin-bottom: 1rem; border-radius: var(--r-panel); background: var(--plate); transition: transform .4s var(--ease); }
.gear-plate::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: var(--shadow-2); opacity: 0; transition: opacity .4s ease; pointer-events: none; }
.gear-plate img { position: absolute; inset: 14%; width: 72%; height: 72%; object-fit: contain; mix-blend-mode: multiply; transition: transform .6s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .gear-tile:hover .gear-plate { transform: translateY(-4px); }
  .gear-tile:hover .gear-plate::after { opacity: 1; }
  .gear-tile:hover .gear-plate img { transform: scale(1.05); }
}
.gear-tile h3 { font-size: 1rem; }
.gear-tile p { margin-top: .3rem; font-size: .875rem; line-height: 1.5; color: var(--muted); }
.gear-tile .gear-src { margin-top: .6rem; font-family: var(--font-mono); font-size: .75rem; color: var(--accent-ink); }
@media (max-width: 1023px) { .gear { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; } }
@media (max-width: 559px) { .gear { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- android ---------- */
.android-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.android-media { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--r-panel); background: var(--bg-2); }
.android-media img { width: 100%; height: 100%; object-fit: cover; object-position: 38% 50%; filter: var(--photo-filter); }
.app-cols { margin-top: 2rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2rem; }
.app-cols h3 { display: flex; align-items: center; gap: .65rem; margin-bottom: 1rem; font-size: 1.0625rem; }
.app-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--r-control); background: var(--accent-soft); color: var(--accent-ink); }
.app-ic .ic { width: 18px; height: 18px; }
.ticks { display: grid; gap: .65rem; }
.ticks li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: .6rem; font-size: .9375rem; line-height: 1.5; color: var(--text); }
.ticks .ic { width: 18px; height: 18px; margin-top: 2px; color: var(--accent-ink); }
@media (max-width: 1023px) {
  .android-grid { grid-template-columns: minmax(0, 1fr); }
  .android-media { aspect-ratio: 16 / 10; }
}
@media (max-width: 559px) { .app-cols { grid-template-columns: minmax(0, 1fr); } }

/* ---------- contact ---------- */
.contact { position: relative; isolation: isolate; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(46% 62% at 84% 22%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 72%); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.next-steps { position: relative; margin-top: 2rem; display: grid; gap: 1.25rem; }
.next-steps::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; border-radius: 2px; background: var(--line-2); }
.next-steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 1rem; align-items: center; }
.step-ic { position: relative; z-index: var(--z-raise); display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: var(--r-control); background: var(--surface); color: var(--accent-ink); }
.step-ic .ic { width: 20px; height: 20px; }
.next-steps b { display: block; font-weight: 600; color: var(--ink); }
.next-steps div span { display: block; font-size: .9375rem; color: var(--muted); }
.contact-details { margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid var(--line-2); display: grid; gap: 1rem; }
.contact-details > div { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; }
.contact-details dt { font-size: .875rem; color: var(--muted); }
.contact-details dd { font-size: .9688rem; color: var(--ink); }
.form { position: relative; display: grid; gap: 1.1rem; padding: clamp(20px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); box-shadow: var(--shadow-1); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .45rem; min-width: 0; align-content: start; }
.field > label, .checks legend { font-size: .875rem; font-weight: 600; color: var(--ink); }
.opt { font-weight: 400; color: var(--muted); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
  width: 100%;
  height: 46px;
  padding: 0 .85rem;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--field);
  border-radius: var(--r-control);
  font-size: 1rem;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.form textarea { height: auto; min-height: 112px; padding: .75rem .85rem; line-height: 1.5; resize: vertical; }
.form input:focus-visible, .form select:focus-visible, .form textarea:focus-visible { outline: none; border-color: var(--accent-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.select-wrap { position: relative; }
.form select { -webkit-appearance: none; appearance: none; padding-right: 2.5rem; cursor: pointer; }
.select-wrap .ic { position: absolute; right: .85rem; top: 50%; width: 16px; height: 16px; color: var(--muted); transform: translateY(-50%); pointer-events: none; }
.checks { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; border: 0; }
.checks legend { width: 100%; margin-bottom: .55rem; padding: 0; }
.checks label { display: inline-flex; align-items: center; gap: .55rem; height: 42px; padding: 0 .9rem; border: 1px solid var(--line-2); border-radius: var(--r-control); font-size: .9375rem; color: var(--text); cursor: pointer; transition: border-color .2s ease, background-color .2s ease, color .2s ease; }
.checks label:hover { border-color: var(--field); }
.checks label:has(input:checked) { border-color: var(--accent-strong); background: var(--accent-soft); color: var(--ink); }
.checks label:has(input:focus-visible) { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.checks input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent-strong); }
.checks input:focus-visible { outline: none; }
.field-err { font-size: .875rem; color: var(--bad); }
.field-err:empty { display: none; }
.field-help { font-size: .875rem; color: var(--muted); }
.field.has-error input { border-color: var(--bad); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-top: .25rem; }
.form-status { font-size: .9375rem; color: var(--muted); }
.form-status.ok { color: var(--ok); }
.form-status.err { color: var(--bad); }
.form-note { font-size: .8125rem; color: var(--muted); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@media (max-width: 1023px) { .contact-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 559px) { .form-row { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.footer { padding-block: clamp(48px, 6vw, 72px) 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 2rem 3rem; }
.footer-brand .logo { height: 32px; margin-bottom: 1rem; }
.footer-brand p { max-width: 44ch; font-size: .9375rem; color: var(--muted); }
.footer-h { margin-bottom: .9rem; font-size: .9375rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.footer-col { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; }
.footer-col a { font-size: .9375rem; color: var(--muted); transition: color .2s ease; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: clamp(40px, 5vw, 56px); padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .875rem; color: var(--muted); }
.footer-bottom .text-link { font-weight: 500; color: var(--text); }
.footer-mark-wrap { margin-top: clamp(28px, 4vw, 48px); overflow: hidden; }
.footer-mark {
  margin: 0;
  font-size: min(calc((100vw - 2 * var(--gutter)) / 5.66), calc(var(--wrap) / 5.66));
  font-weight: 700;
  line-height: .92;
  letter-spacing: -.055em;
  white-space: nowrap;
  color: var(--bg-2);
  user-select: none;
}
.footer-mark.is-filled {
  color: transparent;
  background: url("../img/photos/hero-1280.webp") 50% 62% / cover no-repeat;
  background-image: image-set(url("../img/photos/hero-1280.avif") type("image/avif"), url("../img/photos/hero-1280.webp") type("image/webp"));
  -webkit-background-clip: text;
  background-clip: text;
}
@media (max-width: 767px) {
  .footer { padding-bottom: 84px; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
}

/* ---------- 404 ---------- */
.notfound { display: grid; align-content: center; min-height: calc(100vh - var(--nav-h)); min-height: calc(100dvh - var(--nav-h)); }
.notfound-code { margin-bottom: 1rem; font-family: var(--font-mono); font-size: .9375rem; color: var(--accent-ink); }
.notfound h1 { max-width: 18ch; }
.notfound .lead { margin-top: 1rem; }
.notfound-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 2rem; }

/* ---------- back to top ---------- */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: var(--z-nav);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-control);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-1);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .3s ease, transform .3s var(--ease), border-color .2s ease, visibility 0s linear .3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.to-top:hover { border-color: var(--ink); }
.to-top .ic { width: 20px; height: 20px; }

/* ============================================================
   Motion layer. Every animation here has one job:
   - hero load-in: reading order (headline word by word, lead, actions, photo)
   - hero scroll depth: the message hands over to the plant as the page moves
   - reveals: sections arrive in story order as they enter the viewport
   - flow index fill and pipeline draw: data moving from plant to desk
   - deemed bar: the month's loss splitting by cause
   - preview packets: direction and size of the power flow
   - marquee: breadth of protocols without a long list
   - nav progress: where the reader is on a long page
   - heading masks: each section's message lands before its details
   - pipeline pulses: data travels one way, plant to desk
   - media lens and rooftop drift: the visual settles as its section arrives
   - chart wipe: the simulated day unfolds from morning to evening
   - spotlight borders and equipment lift: feedback under the pointer
   ============================================================ */
.is-motion .kw > span { animation: wordUp 1s var(--ease) both; }
.is-motion .kw:nth-child(2) > span { animation-delay: .045s; }
.is-motion .kw:nth-child(3) > span { animation-delay: .09s; }
.is-motion .kw:nth-child(4) > span { animation-delay: .135s; }
.is-motion .kw:nth-child(5) > span { animation-delay: .18s; }
.is-motion .kw:nth-child(6) > span { animation-delay: .225s; }
.is-motion .kw:nth-child(7) > span { animation-delay: .27s; }
.is-motion .kw:nth-child(8) > span { animation-delay: .315s; }
.is-motion .hero-lead, .is-motion .hero-actions { animation: rise .9s var(--ease) both; }
.is-motion .hero-lead { animation-delay: .34s; }
.is-motion .hero-actions { animation-delay: .44s; }
.is-motion .hero-media picture { animation: settle 1.8s var(--ease) both; }
@keyframes wordUp { from { transform: translateY(110%); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes settle { from { transform: scale(1.07); } }

/* Scroll-driven depth on large screens, on CSS scroll timelines (no script):
   the copy drifts up a little faster than the page while the photo pushes in,
   so the page moves from the message into the plant. Nothing fades, so the
   copy stays fully legible. Browsers without scroll timelines keep the still frame. */
@supports (animation-timeline: scroll()) {
  @media (min-width: 1024px) {
    .is-motion .hero-copy { animation: copyLift linear both; animation-timeline: scroll(root block); animation-range: 0px 400px; }
    .is-motion .hero-media img { animation: heroZoom linear both; animation-timeline: scroll(root block); animation-range: 0px 900px; }
  }
}
@keyframes copyLift { to { transform: translateY(-32px); } }
@keyframes heroZoom { to { transform: scale(1.1); } }

/* reading progress on the nav, from the page's own scroll timeline */
@supports (animation-timeline: scroll()) {
  .is-motion .nav-progress { animation: readProgress linear both; animation-timeline: scroll(root block); }
}
@keyframes readProgress { to { transform: scaleX(1); } }

/* headings rise inside their own mask as the section arrives */
.reveal-h { clip-path: inset(-.2em -.25em -.25em -.25em); }
.h-in { display: block; }
.is-motion .will-reveal .h-in { transform: translateY(105%); }
.is-motion .will-reveal.in .h-in { transform: none; transition: transform 1.1s var(--ease) .06s; }

/* photos settle into their frames as they scroll in; the rooftop drifts behind the copy */
@supports (animation-timeline: view()) {
  .is-motion .product-media > img, .is-motion .product-media > picture > img, .is-motion .android-media img { animation: lensIn linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
  @media (min-width: 1024px) {
    .is-motion .why-photo { animation: drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
  }
}
@keyframes lensIn { from { transform: scale(1.12); } }
@keyframes drift { from { transform: translateY(-4%) scale(1.08); } to { transform: translateY(4%) scale(1.08); } }

.is-motion .will-reveal { opacity: 0; transform: translateY(20px); }
.is-motion .will-reveal.in { opacity: 1; transform: none; transition: opacity .8s ease, transform .9s var(--ease); }
.is-motion [data-stagger].will-reveal { opacity: 1; transform: none; }
.is-motion [data-stagger].will-reveal > * { opacity: 0; transform: translateY(16px); }
.is-motion [data-stagger].will-reveal.in > * { opacity: 1; transform: none; transition: opacity .7s ease, transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }

.is-motion .pipe-node:not(:last-child)::after { transform: scaleX(0); }
.is-motion .pipe.in .pipe-node:not(:last-child)::after { transform: scaleX(1); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 160ms + .35s); }
@media (max-width: 1023px) {
  .is-motion .pipe-node:not(:last-child)::after { transform: scaleY(0); }
  .is-motion .pipe.in .pipe-node:not(:last-child)::after { transform: scaleY(1); }
}

.is-motion .pipe.in .pipe-pulse { animation: travelX 3.2s linear infinite; animation-delay: calc(var(--i, 0) * .8s + 1.2s); }
.is-motion .pipe.is-offscreen .pipe-pulse { animation-play-state: paused; }
@keyframes travelX { 0% { opacity: 0; transform: translateX(0); } 10%, 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(100%); } }
@keyframes travelY { 0% { opacity: 0; transform: translateY(0); } 10%, 88% { opacity: 1; } 100% { opacity: 0; transform: translateY(100%); } }
@media (max-width: 1023px) {
  .is-motion .pipe.in .pipe-pulse { animation-name: travelY; }
}

.is-motion .cell.will-reveal .chart-box::after { content: ""; position: absolute; inset: -2px; background: var(--surface); transform-origin: 100% 50%; pointer-events: none; }
.is-motion .cell.will-reveal.in .chart-box::after { transform: scaleX(0); transition: transform 1.8s var(--ease) .3s; }

.is-motion .cell-deemed.will-reveal .deemed-bar i { transform: scaleX(0); }
.is-motion .cell-deemed.in .deemed-bar i { transform: scaleX(1); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 90ms + .3s); }

.is-motion .pv-sld .pkt-h { animation: pktH var(--flow-dur, 1.6s) linear infinite; }
.is-motion .pv-sld .pkt-v { animation: pktV var(--flow-dur, 1.6s) linear infinite; }
.is-motion .pv-sld .pkt-b { animation-delay: calc(var(--flow-dur, 1.6s) * -.5); }
.is-motion .pv-sld .rev .pkt { animation-direction: reverse; }
.is-motion .pv-sld.is-night .pkt, .is-motion .preview.is-offscreen .pkt { animation-play-state: paused; opacity: 0; }
@keyframes pktH { 0% { opacity: 0; transform: translateX(0); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(56px); } }
@keyframes pktV { 0% { opacity: 0; transform: translateY(0); } 15%, 85% { opacity: 1; } 100% { opacity: 0; transform: translateY(46px); } }

/* ---------- motion and transparency preferences ---------- */
.is-static *, .is-static *::before, .is-static *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
