/* ==========================================================================
   Mass Energy — site styles
   --------------------------------------------------------------------------
   1. Fonts             6. Header & navigation     10. Benefits (dark)
   2. Design tokens     7. Hero                    11. Process
   3. Base              8. About                   12. Call-to-action band
   4. Layout            9. Solutions               13. FAQ accordion
   5. Shared components 9a. Lithium batteries      14. Contact & form
                        9b. Water & IoT            15. Footer
                                                   16. Motion, reduced motion, print
   Brand colours were sampled from the Mass Energy letterhead. Edit the
   tokens in section 2 to adjust colour, type, spacing and motion site-wide.
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */
/* Archivo and Montserrat: SIL Open Font License 1.1 (see assets/fonts). */
@font-face {
  font-family: "Archivo";
  src: url("../assets/fonts/archivo-variable-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../assets/fonts/montserrat-variable-labels.woff2") format("woff2");
  font-weight: 500 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0020-007E, U+00A0, U+00A9, U+00B7, U+2013-2014, U+2018-201D, U+2022, U+2026;
}

/* Metric-matched fallbacks keep layout stable while the web fonts load. */
@font-face {
  font-family: "Archivo Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 98.51%;
  ascent-override: 89.13%;
  descent-override: 21.32%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Montserrat Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 115.86%;
  ascent-override: 83.55%;
  descent-override: 21.66%;
  line-gap-override: 0%;
}

/* 2. Design tokens -------------------------------------------------------- */
:root {
  /* Brand palette (from the letterhead) */
  --brand-blue: #1b74bb;
  --brand-gold: #fbaf3f;
  --brand-white: #ffffff;
  --brand-neutral: #f2f3f4;
  --brand-ink: #142d43;

  /* Blue scale: blue is the principal brand colour */
  --blue-50: #eef5fb;
  --blue-100: #dceaf6;
  --blue-200: #b7d4ec;
  --blue-300: #86b6de;
  --blue-400: #4e93cd;
  --blue-500: var(--brand-blue);
  --blue-600: #165f9b;
  --blue-700: #114c7d;
  --navy-800: #0e3354;
  --navy-900: #0b2845;
  --navy-950: #071a2e;

  /* Gold scale: used selectively for emphasis. Never place white text on gold. */
  --gold-100: #fef1dc;
  --gold-300: #fdcb80;
  --gold-400: #ffbf5e;
  --gold-500: var(--brand-gold);

  /* Neutrals */
  --neutral-0: var(--brand-white);
  --neutral-50: #f8f9fa;
  --neutral-100: var(--brand-neutral);
  --neutral-200: #e3e7eb;
  --neutral-300: #cbd3db;
  --neutral-500: #5e6e7e; /* 5.3:1 on white */
  --ink-700: #3a4d60;     /* 8.7:1 on white */
  --ink-900: var(--brand-ink);

  /* Semantic roles */
  --text: var(--ink-700);
  --text-strong: var(--ink-900);
  --text-muted: var(--neutral-500);
  --text-on-dark: #ffffff;
  --text-on-dark-muted: #b9c9d9; /* 8.8:1 on navy-900 */
  --surface: var(--neutral-0);
  --surface-tint: var(--neutral-100);
  --surface-dark: var(--navy-900);
  --border: var(--neutral-200);
  --border-strong: var(--neutral-300);
  --border-input: #818f9d; /* 3.1:1 against the field background (WCAG 1.4.11) */
  --line-on-dark: rgba(255, 255, 255, 0.12);
  --accent: var(--blue-500);
  --accent-strong: var(--blue-600);
  --highlight: var(--gold-500);
  --focus-ring: var(--blue-500);
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --danger-border: #fecdca;
  --success: #17663f;
  --success-bg: #ecfdf3;
  --success-border: #abefc6;

  /* Typography */
  --font-sans: "Archivo", "Archivo Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-label: "Montserrat", "Montserrat Fallback", "Archivo", system-ui, sans-serif;
  --stretch-display: 112%;
  --stretch-heading: 106%;
  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: clamp(1.125rem, 1.06rem + 0.3vw, 1.3125rem);
  --text-xl: clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);
  --text-2xl: clamp(1.4375rem, 1.25rem + 0.9vw, 1.9375rem);
  --text-3xl: clamp(1.9375rem, 1.35rem + 2.5vw, 3.25rem);
  --text-4xl: clamp(2.0625rem, 0.85rem + 5.5vw, 4.75rem); /* hero stays on two lines from 360px */
  --leading-tight: 1.06;
  --leading-snug: 1.28;
  --leading-body: 1.65;
  --tracking-label: 0.2em;

  /* Spacing (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --section-space: clamp(4.5rem, 2.8rem + 6.5vw, 8.5rem);

  /* Layout */
  --container: 77.5rem;
  --gutter: clamp(1rem, 0.35rem + 2.8vw, 2.5rem);
  --header-h: 68px;

  /* Shape */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Elevation: restrained, tinted with navy */
  --shadow-xs: 0 1px 2px rgba(11, 40, 69, 0.06);
  --shadow-sm: 0 1px 2px rgba(11, 40, 69, 0.05), 0 6px 16px -8px rgba(11, 40, 69, 0.16);
  --shadow-md: 0 2px 4px rgba(11, 40, 69, 0.04), 0 18px 40px -18px rgba(11, 40, 69, 0.28);
  --shadow-lg: 0 32px 70px -34px rgba(11, 40, 69, 0.42);

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur: 280ms;
  --dur-slow: 800ms;
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
}

/* 3. Base ----------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}

body {
  margin: 0;
  min-width: 320px;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--text-strong);
  font-weight: 700;
  font-stretch: var(--stretch-heading);
  line-height: var(--leading-snug);
  letter-spacing: -0.012em;
  text-wrap: balance;
}

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 650; color: var(--text-strong); }
address { font-style: normal; }

a {
  color: var(--accent-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--dur-fast) ease;
}

a:hover { color: var(--blue-700); }

/* Keep phone numbers on one line without altering the characters people copy */
a[href^="tel:"] { white-space: nowrap; }
.nowrap { white-space: nowrap; }

img, svg, picture, video { display: block; max-width: 100%; }
img { height: auto; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--gold-300); color: var(--ink-900); }

/* Sections receive programmatic focus after mobile-menu navigation; no ring needed */
section[tabindex="-1"]:focus { outline: none; }

/* Components set their own display; keep the hidden attribute authoritative */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform var(--dur) var(--ease-out);
}

.skip-link:focus { transform: none; color: #fff; }

/* 4. Layout --------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  position: relative;
  padding-block: var(--section-space);
}

.section--tint { background: var(--surface-tint); }

.section--dark {
  --focus-ring: var(--gold-500);
  background: var(--surface-dark);
  color: var(--text-on-dark-muted);
}

.section--dark h2,
.section--dark h3 { color: var(--text-on-dark); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.section-head p:not(.eyebrow) { font-size: var(--text-lg); }

/* 5. Shared components ---------------------------------------------------- */
/* Eyebrow label: Montserrat echoes the logo tagline; the split tab echoes the
   blue and gold edge tabs on the letterhead. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 var(--space-5);
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent-strong);
}

.eyebrow::before {
  content: "";
  flex: none;
  width: 4px;
  height: 1.35rem;
  border-radius: 2px;
  background: linear-gradient(to bottom, var(--blue-500) 0 58%, var(--gold-500) 58% 100%);
}

.eyebrow__num { color: var(--text-strong); font-weight: 700; }
.eyebrow__num::after { content: "/"; margin-left: 0.7rem; color: var(--neutral-300); font-weight: 500; }

.eyebrow--light { color: var(--gold-500); }
.eyebrow--light::before { background: linear-gradient(to bottom, var(--blue-300) 0 58%, var(--gold-500) 58% 100%); }
.eyebrow--light .eyebrow__num { color: #fff; }
.eyebrow--light .eyebrow__num::after { color: rgba(255, 255, 255, 0.3); }

.section-title {
  margin-bottom: var(--space-6);
  font-size: var(--text-3xl);
  font-stretch: var(--stretch-display);
  line-height: 1.08;
  letter-spacing: -0.024em;
}

.lead {
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--text-strong);
}

/* Buttons */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--accent-strong);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.75rem 1.35rem;
  border: 1.5px solid var(--btn-border);
  border-radius: var(--radius-sm);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 1rem;
  font-weight: 600;
  font-stretch: 104%;
  line-height: 1.2;
  letter-spacing: 0.005em;
  text-align: center;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--dur) var(--ease-out),
    color var(--dur) var(--ease-out),
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.btn:hover { color: var(--btn-fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: 0.65; cursor: progress; transform: none; }
.btn .icon { width: 1.15em; height: 1.15em; }
.btn__arrow { transition: transform var(--dur) var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--lg { min-height: 54px; padding: 0.9rem 1.6rem; font-size: 1.0625rem; }

.btn--primary { --btn-bg: var(--blue-500); --btn-fg: #fff; }
.btn--primary:hover { --btn-bg: var(--blue-600); box-shadow: 0 12px 24px -14px rgba(27, 116, 187, 0.9); }

.btn--gold { --btn-bg: var(--gold-500); --btn-fg: var(--ink-900); }
.btn--gold:hover { --btn-bg: var(--gold-400); box-shadow: 0 12px 28px -14px rgba(251, 175, 63, 0.85); }

.btn--outline-light { --btn-border: rgba(255, 255, 255, 0.55); --btn-fg: #fff; }
.btn--outline-light:hover { --btn-bg: #fff; --btn-border: #fff; --btn-fg: var(--ink-900); }

.btn--secondary { --btn-bg: #fff; --btn-border: var(--border-strong); --btn-fg: var(--text-strong); }
.btn--secondary:hover { --btn-border: var(--blue-500); --btn-fg: var(--blue-600); }

/* Inline arrow link */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.3rem;
  color: var(--accent-strong);
  font-weight: 600;
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.text-link:hover { color: var(--blue-700); background-size: 100% 1.5px; }
.text-link .icon { width: 1.1em; height: 1.1em; transition: transform var(--dur) var(--ease-out); }
.text-link:hover .icon { transform: translateX(3px); }

.note {
  display: flex;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  font-size: var(--text-sm);
  line-height: 1.55;
}

.note .icon { margin-top: 0.1em; color: var(--blue-500); }

/* 6. Header & navigation -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) ease, box-shadow var(--dur) ease;
}

/* Translucent backdrop lives on a pseudo-element so the fixed mobile menu is
   positioned against the viewport, not the header. */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  transition: background-color var(--dur) ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 10px 30px -22px rgba(11, 40, 69, 0.45);
}

.site-header.is-scrolled::before,
.site-header.menu-open::before { background: #fff; }

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  height: 100%;
}

.brand {
  display: block;
  flex: none;
  margin-right: auto;
  border-radius: 6px;
}

.brand__logo {
  width: auto;
  height: 42px;
  transform-origin: left center;
  transition: transform var(--dur) var(--ease-out);
}

.site-header.is-scrolled .brand__logo { transform: scale(0.92); }

.site-nav__list {
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav__link {
  position: relative;
  display: block;
  padding: 0.55rem 0.75rem;
  border-radius: 6px;
  color: var(--text-strong);
  font-size: 0.975rem;
  font-weight: 550;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav__link::after {
  content: "";
  position: absolute;
  right: 0.75rem;
  bottom: 0.3rem;
  left: 0.75rem;
  height: 2px;
  border-radius: 1px;
  background: var(--gold-500);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease-out);
}

.site-nav__link:hover { color: var(--accent-strong); }
.site-nav__link:hover::after,
.site-nav__link[aria-current]::after { transform: scaleX(1); }
.site-nav__link[aria-current] { color: var(--accent-strong); }

.site-nav__extra { display: none; }

.site-header__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--space-3);
}

.header-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  color: var(--text-strong);
  font-weight: 600;
  text-decoration: none;
}

.header-phone:hover { color: var(--accent-strong); }
.header-phone .icon { width: 1.2rem; height: 1.2rem; color: var(--accent); }
.header-phone__number { display: none; }

.header-cta { display: none; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--text-strong);
}

.nav-toggle__icon { position: relative; display: block; width: 20px; height: 14px; }

.nav-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) ease, top var(--dur) var(--ease-out);
}

.nav-toggle__icon span:nth-child(1) { top: 0; }
.nav-toggle__icon span:nth-child(2) { top: 6px; }
.nav-toggle__icon span:nth-child(3) { top: 12px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__icon span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

@media (min-width: 640px) {
  .header-cta { display: inline-flex; min-height: 44px; padding: 0.6rem 1.1rem; font-size: 0.95rem; }
}

/* Mobile, tablet and small-laptop navigation (below 1200px, where eight links no longer fit) */
@media (max-width: 1199.98px) {
  /* Without JavaScript: a simple wrapped link row below the logo */
  html:not(.js) .site-header { position: relative; height: auto; }
  html:not(.js) .site-header__inner { flex-wrap: wrap; padding-block: 0.75rem; }
  html:not(.js) .site-header__actions { order: 2; }
  html:not(.js) .site-nav { order: 3; width: 100%; }
  html:not(.js) .site-nav__list { flex-wrap: wrap; }
  html:not(.js) .site-nav__link { padding-inline: 0.6rem; }
  html:not(.js) .site-nav__link::after { display: none; }

  /* With JavaScript: an accessible full-screen menu panel */
  .js .nav-toggle { display: inline-flex; }

  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0;
    z-index: 40;
    display: flex;
    flex-direction: column;
    padding: var(--space-4) var(--gutter) var(--space-10);
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    border-top: 1px solid var(--border);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition:
      opacity var(--dur) var(--ease-out),
      transform var(--dur) var(--ease-out),
      visibility 0s linear var(--dur);
  }

  /* Visibility switches instantly on open (so focus can move into the menu)
     and only after the fade on close. */
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition:
      opacity var(--dur) var(--ease-out),
      transform var(--dur) var(--ease-out);
  }

  .js .site-nav__list { flex-direction: column; gap: 0; }

  .js .site-nav__link {
    padding: 1rem 0.25rem;
    border-bottom: 1px solid var(--border);
    border-radius: 0;
    font-size: 1.3125rem;
    font-weight: 650;
    font-stretch: 108%;
  }

  .js .site-nav__link::after {
    top: 50%;
    right: auto;
    bottom: auto;
    left: -0.25rem;
    width: 3px;
    height: 1.4rem;
    transform: translate(-100%, -50%) scaleY(0);
  }

  .js .site-nav__link[aria-current]::after { transform: translate(-100%, -50%) scaleY(1); }

  .js .site-nav__extra {
    display: grid;
    gap: var(--space-6);
    margin-top: var(--space-8);
  }

  .site-nav__cta { width: 100%; min-height: 54px; }

  .site-nav__contact {
    display: grid;
    gap: var(--space-2);
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .site-nav__contact a {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    color: var(--text-strong);
    font-weight: 600;
    text-decoration: none;
  }

  .site-nav__contact .icon { color: var(--accent); }

  html.menu-open { overflow: hidden; }
}

@media (min-width: 1024px) {
  .brand__logo { height: 50px; }
  .site-header__inner { gap: var(--space-6); }
}

@media (min-width: 1200px) {
  .site-nav { display: flex; align-items: center; }
  .header-phone { display: none; }
}

@media (min-width: 1440px) {
  .header-phone { display: inline-flex; padding-inline: 0.25rem; }
  .header-phone__number { display: inline; }
  .header-phone__label { display: none; }
}

/* 7. Hero ----------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: clamp(600px, calc(100svh - var(--header-h)), 980px);
  overflow: clip;
  background: var(--navy-950);
  color: #fff;
}

.hero__media { position: absolute; inset: 0; z-index: -3; }

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(0deg, rgba(7, 26, 46, 0.88) 0%, rgba(7, 26, 46, 0.55) 38%, rgba(7, 26, 46, 0.12) 70%, rgba(7, 26, 46, 0.25) 100%);
}

.hero__motif {
  position: absolute;
  top: 1.5rem;
  right: -5.5rem;
  z-index: -1;
  width: 250px;
  overflow: visible;
  pointer-events: none;
  opacity: 0.7;
}

.hero__ring {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-opacity: 0.75;
}

.hero__rays path { fill: rgba(255, 255, 255, 0.22); }

.hero__inner {
  display: flex;
  align-items: flex-end;
  padding-block: var(--space-16) var(--space-8);
}

.hero__content { max-width: 52rem; }

.hero__tagline {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: var(--space-5);
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.hero__tagline-mark {
  flex: none;
  width: 36px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}

.hero__title {
  margin-bottom: var(--space-6);
  color: #fff;
  font-size: var(--text-4xl);
  font-stretch: var(--stretch-display);
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.hero__title em { font-style: normal; color: var(--gold-500); }

/* Each line is masked so its text can rise into place on load */
.hero__line {
  display: block;
  overflow: clip;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.hero__line > span { display: inline-block; }

.hero__lead {
  max-width: 36rem;
  margin-bottom: var(--space-8);
  font-size: var(--text-lg);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3) var(--space-4);
}

.hero__footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4) var(--space-5);
}

.hero__footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: var(--gutter);
  left: var(--gutter);
  height: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.hero__contact {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

.hero__contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.9);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
}

.hero__contact a:hover { color: var(--gold-500); }
.hero__contact .icon { width: 1.1rem; height: 1.1rem; color: var(--gold-500); }

.hero__scroll {
  display: none;
  align-items: center;
  gap: 0.8rem;
  min-height: 44px;
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--font-label);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-decoration: none;
  text-transform: uppercase;
}

.hero__scroll:hover { color: #fff; }

.hero__scroll-line {
  position: relative;
  width: 1px;
  height: 40px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.3);
}

.hero__scroll-line::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: var(--gold-500);
}

@media (max-width: 479.98px) {
  .hero__actions .btn,
  .cta-band__actions .btn { flex: 1 1 100%; }
}

@media (min-width: 768px) {
  .hero__shade {
    background:
      linear-gradient(90deg, rgba(7, 26, 46, 0.9) 0%, rgba(7, 26, 46, 0.74) 32%, rgba(7, 26, 46, 0.3) 62%, rgba(7, 26, 46, 0.12) 100%),
      linear-gradient(0deg, rgba(7, 26, 46, 0.7) 0%, rgba(7, 26, 46, 0) 30%);
  }

  .hero__inner { align-items: center; padding-block: var(--space-16); }
  .hero__motif { top: 1.5rem; right: -4.5rem; width: 330px; }
  .hero__scroll { display: inline-flex; }
}

/* Desktop: a large sun rising from the right edge, clear of the text column */
@media (min-width: 1024px) {
  .hero__motif {
    top: 50%;
    right: calc(-1 * min(20vw, 280px));
    width: min(52vw, 720px);
    transform: translateY(-50%);
    opacity: 0.85;
  }
}

/* 8. About ---------------------------------------------------------------- */
.about { overflow: clip; }

.about__grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

.about__content > p:not(.eyebrow) { max-width: 36rem; }
.about__content .text-link { margin-top: var(--space-2); }

.about__media {
  position: relative;
  isolation: isolate;
  margin: 0 0 0 auto;
  width: min(100% - 1.5rem, 34rem);
}

/* Solar panel geometry motif: slanted cells like the emblem's panel grid */
.about__media::before {
  content: "";
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  z-index: -1;
  width: 64%;
  height: 56%;
  border-radius: var(--radius-lg);
  background-color: var(--blue-50);
  background-image:
    linear-gradient(to bottom, var(--blue-200) 1.5px, transparent 1.5px),
    repeating-linear-gradient(-58deg, transparent 0 22px, var(--blue-200) 22px 23.5px);
  background-size: 100% 26px, auto;
}

.about__frame {
  overflow: hidden;
  aspect-ratio: 1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.about__frame img { width: 100%; height: 100%; object-fit: cover; }

.about__arc {
  position: absolute;
  top: -1.75rem;
  right: -1.75rem;
  width: 40%;
  overflow: visible;
  pointer-events: none;
}

.about__arc path {
  fill: none;
  stroke: var(--gold-500);
  stroke-width: 3;
  stroke-linecap: round;
}

.principles {
  display: grid;
  gap: var(--space-8);
  margin: clamp(3.5rem, 2.5rem + 4vw, 6rem) 0 0;
  padding: 0;
  list-style: none;
}

.principle {
  position: relative;
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.principle::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 48px;
  height: 2px;
  background: var(--gold-500);
}

.principle__icon {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: var(--space-4);
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--accent-strong);
}

.principle__icon .icon { width: 22px; height: 22px; }
.principle__title { margin-bottom: var(--space-2); font-size: var(--text-xl); }

@media (min-width: 768px) {
  .about__media { margin-inline: auto; }
  .principles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 3rem); }
}

@media (min-width: 1024px) {
  .about__grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(2.5rem, 5vw, 5.5rem); }
  .about__media { width: 100%; margin: 0; }
}

/* 9. Solutions ------------------------------------------------------------ */
.solutions__grid {
  display: grid;
  gap: var(--space-12);
}

.solutions__intro > p:not(.eyebrow):not(.note) { max-width: 34rem; font-size: var(--text-lg); }
.solutions__intro .note { max-width: 34rem; margin-top: var(--space-6); }

.solutions__media {
  margin: var(--space-8) 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.solutions__media img { width: 100%; height: 100%; object-fit: cover; }

.solutions__list { display: grid; gap: var(--space-5); }

.solution {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
  padding: clamp(1.5rem, 1rem + 2vw, 2.25rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-xs);
  transition:
    border-color var(--dur) var(--ease-out),
    box-shadow var(--dur) var(--ease-out),
    transform var(--dur) var(--ease-out);
}

.solution::before {
  content: "";
  position: absolute;
  top: 1.75rem;
  bottom: 1.75rem;
  left: -1px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--gold-500);
  transform: scaleY(0);
  transition: transform var(--dur) var(--ease-out);
}

.solution:hover,
.solution:focus-within { border-color: var(--blue-200); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.solution:hover::before,
.solution:focus-within::before { transform: scaleY(1); }

.solution__icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--blue-500);
  color: #fff;
}

.solution__icon .icon { width: 26px; height: 26px; }
.solution__title { margin-bottom: var(--space-3); font-size: var(--text-2xl); }

.checklist__label {
  margin: var(--space-5) 0 var(--space-3);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.checklist {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 var(--space-6);
  padding: 0;
  list-style: none;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.checklist li { display: flex; gap: 0.65rem; align-items: flex-start; color: var(--text-strong); }
.checklist .icon { width: 18px; height: 18px; margin-top: 0.12em; color: var(--blue-500); stroke-width: 2.25; }

@media (min-width: 560px) {
  .solution { grid-template-columns: auto minmax(0, 1fr); gap: var(--space-6); }
}

@media (min-width: 768px) {
  .solutions__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: var(--space-10); align-items: start; }
  .solutions__intro > .eyebrow,
  .solutions__intro > .section-title { grid-column: 1 / -1; justify-self: start; }
  .solutions__intro > p:not(.eyebrow) { grid-column: 1; }
  .solutions__media { grid-column: 2; grid-row: 3 / span 2; margin-top: 0; aspect-ratio: 4 / 3; }
}

@media (min-width: 1024px) {
  .solutions__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(3rem, 5vw, 5rem);
    align-items: start;
  }

  .solutions__intro { display: block; position: sticky; top: calc(var(--header-h) + 2rem); }
  .solutions__media { margin-top: var(--space-8); aspect-ratio: 5 / 4; }
}

/* 9a. Lithium battery solutions ------------------------------------------- */
.lithium__grid {
  display: grid;
  gap: var(--space-12);
  align-items: start;
}

.lithium__content .lead { max-width: 38rem; }

.features {
  display: grid;
  gap: var(--space-6) var(--space-8);
  margin: var(--space-8) 0;
  padding: 0;
  list-style: none;
}

.feature {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}

.feature__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--accent-strong);
}

.feature__icon .icon { width: 21px; height: 21px; }
.feature__title { margin-bottom: 0.2rem; font-size: 1.0625rem; font-stretch: 104%; line-height: 1.35; }
.feature p { font-size: var(--text-sm); line-height: 1.55; }

.lithium__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4) var(--space-8);
}

.lithium__media { position: relative; }

.lithium__frame {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.lithium__frame img { width: 100%; height: 100%; object-fit: cover; }

.lithium__uses {
  margin-top: var(--space-5);
  padding: var(--space-5) var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-md);
}

.lithium__uses-title {
  margin-bottom: var(--space-3);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lithium__uses ul { display: grid; gap: 0.55rem; margin: 0; padding: 0; list-style: none; }

.lithium__uses li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-strong);
  font-size: var(--text-sm);
  font-weight: 600;
}

.lithium__uses .icon { width: 1.15rem; height: 1.15rem; color: var(--blue-500); }

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .lithium__media { width: min(100%, 30rem); margin-inline: auto; }
}

/* Stacked until 1280px so the six features never squeeze into narrow columns */
@media (min-width: 1024px) and (max-width: 1279.98px) {
  .features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1280px) {
  .lithium__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(3rem, 5vw, 5rem); }
  .lithium__media { width: 100%; margin: var(--space-4) 0 0; }

  .lithium__uses {
    position: absolute;
    bottom: var(--space-8);
    left: calc(-1 * var(--space-10));
    width: min(18.5rem, 82%);
    margin: 0;
  }
}

/* Interactive energy-flow guide (navy panel) */
.energy-flow {
  --focus-ring: var(--gold-500);
  position: relative;
  isolation: isolate;
  display: grid;
  gap: var(--space-8);
  margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  padding: clamp(1.5rem, 0.9rem + 3vw, 3.5rem);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy-900);
  color: var(--text-on-dark-muted);
}

/* Faint solar-panel grid, as in the dark benefits section */
.energy-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    repeating-linear-gradient(-58deg, transparent 0 42px, rgba(255, 255, 255, 0.06) 42px 43px);
  background-size: 100% 34px, auto;
  -webkit-mask-image: radial-gradient(ellipse 65% 80% at 100% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 65% 80% at 100% 0%, #000 0%, transparent 72%);
}

.energy-flow__kicker {
  margin-bottom: var(--space-3);
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--gold-500);
}

.energy-flow__title {
  margin-bottom: var(--space-6);
  color: #fff;
  font-size: var(--text-2xl);
  font-stretch: var(--stretch-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.energy-flow__modes { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }

.energy-flow__mode {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.55rem 1.05rem;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  background: transparent;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.energy-flow__mode:hover { border-color: #fff; }
.energy-flow__mode[aria-pressed="true"] { border-color: var(--gold-500); background: var(--gold-500); color: var(--ink-900); }
.energy-flow__mode .icon { width: 1.1rem; height: 1.1rem; }

.energy-flow__states { display: grid; gap: var(--space-5); margin: 0; }

.energy-flow__state dt {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
  color: #fff;
  font-weight: 650;
}

.energy-flow__state dt .icon { color: var(--gold-500); }
.energy-flow__state dd { margin: 0; line-height: 1.6; }

/* Once interactive, the pressed button names the state; the caption grows */
.energy-flow.is-interactive .energy-flow__state dt {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.energy-flow.is-interactive .energy-flow__state dd {
  max-width: 30rem;
  color: #fff;
  font-size: var(--text-lg);
}

.energy-flow__visual { display: grid; place-items: center; }

@media (min-width: 1024px) {
  .energy-flow {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: var(--space-12);
  }
}

/* Flow diagram (inline SVG) */
.flow {
  width: 100%;
  max-width: 520px;
  height: auto;
  overflow: visible;
  font-family: var(--font-sans);
}

.flow__base { fill: none; stroke: rgba(255, 255, 255, 0.16); stroke-width: 3; stroke-linecap: round; }
.flow__line { fill: none; stroke: none; stroke-width: 3; stroke-linecap: round; }

.flow__node circle,
.flow__node rect {
  fill: var(--navy-800);
  stroke: rgba(255, 255, 255, 0.22);
  stroke-width: 1.5;
  transition: stroke 0.35s ease, opacity 0.35s ease;
}

.flow__node use {
  fill: none;
  stroke: #fff;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.flow__node--inverter rect { fill: var(--blue-500); stroke: none; }
.flow__node { transition: opacity 0.35s ease; }
.flow__labels text { fill: #fff; font-size: 15px; font-weight: 650; text-anchor: middle; }
.flow__status text { display: none; fill: var(--text-on-dark-muted); font-size: 12.5px; text-anchor: middle; }
.flow__cut { display: none; }
.flow__cut circle { fill: #d92d20; }
.flow__cut path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; }

/* Diagram states: data-mode on .energy-flow__visual */
[data-mode="day"] .flow__status [data-show~="day"],
[data-mode="evening"] .flow__status [data-show~="evening"],
[data-mode="outage"] .flow__status [data-show~="outage"] { display: inline; }

[data-mode="day"] .flow__line--pv,
[data-mode="day"] .flow__line--battery,
[data-mode] .flow__line--load {
  stroke: var(--gold-500);
  stroke-dasharray: 7 9;
  marker-end: url(#flow-arrow);
}

/* Battery discharging: same path, arrow at the inverter end */
[data-mode="evening"] .flow__line--battery,
[data-mode="outage"] .flow__line--battery {
  stroke: var(--gold-500);
  stroke-dasharray: 7 9;
  marker-start: url(#flow-arrow);
}

[data-mode="day"] .flow__node--pv circle,
[data-mode] .flow__node--battery circle,
[data-mode] .flow__node--load circle { stroke: var(--gold-500); stroke-width: 2; }

[data-mode="outage"] .flow__node--grid { opacity: 0.45; }
[data-mode="outage"] .flow__base--grid { stroke-dasharray: 3 7; }
[data-mode="outage"] .flow__cut { display: inline; }

@media (max-width: 639.98px) {
  .energy-flow { padding: var(--space-6) var(--space-5); }
  .flow__labels text { font-size: 19px; }
  .flow__status text { font-size: 17.5px; }
}

/* Lithium and lead-acid comparison table */
.compare { margin-top: clamp(3.5rem, 2.5rem + 4vw, 6rem); }
.compare__head { max-width: 40rem; margin-bottom: var(--space-6); }

.compare__title {
  margin-bottom: var(--space-2);
  font-size: var(--text-2xl);
  font-stretch: var(--stretch-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.compare__table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--border);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: var(--radius-lg);
  background: #fff;
  font-size: var(--text-sm);
  line-height: 1.5;
}

.compare__table th,
.compare__table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}

.compare__table tbody tr:last-child > * { border-bottom: 0; }

.compare__table thead th {
  background: var(--neutral-50);
  color: var(--text-muted);
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.compare__table thead th.is-lithium { background: var(--blue-500); color: #fff; }
.compare__table td.is-lithium { background: var(--blue-50); color: var(--text-strong); }
.compare__table tbody th { width: 24%; color: var(--text-strong); font-weight: 650; }
.compare__note { margin-top: var(--space-4); color: var(--text-muted); font-size: var(--text-sm); }

/* Small screens: each row becomes a card; ARIA roles on the table keep it a table */
@media (max-width: 639.98px) {
  .compare__table,
  .compare__table tbody { display: block; }

  .compare__table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .compare__table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--border);
  }

  .compare__table tbody tr:last-child { border-bottom: 0; }
  .compare__table tbody th { grid-column: 1 / -1; width: auto; padding-bottom: 0.35rem; border-bottom: 0; }
  .compare__table td { border-bottom: 0; }

  .compare__table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text-muted);
    font-family: var(--font-label);
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
  }

  .compare__table td.is-lithium::before { color: var(--blue-600); }
}

/* 9b. Water & IoT solutions ----------------------------------------------- */
.water-cat {
  display: grid;
  gap: clamp(2rem, 1rem + 3vw, 3rem);
  align-items: center;
}

.water-cat + .water-cat { margin-top: clamp(4rem, 2.5rem + 5vw, 7rem); }

/* Main photo with an overlapping inset photo */
.water-cat__media { position: relative; padding: 0 9% 14% 0; }
.water-cat--reverse .water-cat__media { padding: 0 0 14% 9%; }

.water-cat__main {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.water-cat__inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36%;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border: 6px solid #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.water-cat--reverse .water-cat__inset { right: auto; left: 0; }

.water-cat__main img,
.water-cat__inset img { width: 100%; height: 100%; object-fit: cover; }

.water-cat__kicker {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: var(--space-3);
  color: var(--accent-strong);
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.water-cat__kicker::before { content: ""; width: 28px; height: 2px; border-radius: 1px; background: var(--gold-500); }

.water-cat__title {
  margin-bottom: var(--space-5);
  font-size: var(--text-2xl);
  font-stretch: var(--stretch-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.water-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--space-6) 0;
  border-top: 1px solid var(--border-strong);
}

.water-item:last-of-type { margin-bottom: var(--space-5); border-bottom: 1px solid var(--border-strong); }

.water-item__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-500);
  color: #fff;
}

.water-item__icon .icon { width: 23px; height: 23px; }
.water-item__title { margin-bottom: var(--space-2); font-size: var(--text-xl); line-height: 1.3; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--blue-700);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
}

@media (min-width: 768px) {
  .water-cat__media { width: min(100%, 40rem); margin-inline: auto; }
}

@media (min-width: 1024px) {
  .water-cat { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 6vw, 6rem); }
  .water-cat__media { width: 100%; }
  .water-cat--reverse .water-cat__media { order: 2; }
}

/* 10. Benefits (dark feature section) ------------------------------------ */
.benefits { overflow: clip; }

/* Solar panel grid motif, faded towards the corner */
.benefits__pattern {
  position: absolute;
  top: 0;
  right: 0;
  width: min(62rem, 90%);
  height: 70%;
  pointer-events: none;
  background-image:
    linear-gradient(to bottom, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    repeating-linear-gradient(-58deg, transparent 0 46px, rgba(255, 255, 255, 0.07) 46px 47px);
  background-size: 100% 38px, auto;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 100% 0%, #000 0%, transparent 72%);
  mask-image: radial-gradient(ellipse 70% 80% at 100% 0%, #000 0%, transparent 72%);
}

.benefits .container { position: relative; }

.benefits__head {
  display: grid;
  gap: var(--space-6);
  margin-bottom: clamp(2.5rem, 1.5rem + 4vw, 4.5rem);
}

.benefits__head .section-title { margin-bottom: 0; }
.benefits__intro { max-width: 34rem; font-size: var(--text-lg); color: var(--text-on-dark-muted); }

.benefits__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-on-dark);
}

.benefit {
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--line-on-dark);
}

.benefit__icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-5);
  border: 1px solid rgba(251, 175, 63, 0.45);
  border-radius: 50%;
  color: var(--gold-500);
}

.benefit__icon .icon { width: 22px; height: 22px; }
.benefit__title { margin-bottom: var(--space-3); font-size: var(--text-xl); }
.benefit p { max-width: 30rem; }

.benefits__disclaimer {
  display: flex;
  gap: 0.75rem;
  max-width: 54rem;
  margin-top: var(--space-10);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.benefits__disclaimer .icon { margin-top: 0.1em; color: var(--gold-500); }

@media (min-width: 640px) {
  .benefits__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefit { padding: var(--space-8) var(--space-8) var(--space-8) 0; }
  .benefit:nth-child(2n) { padding-left: var(--space-8); padding-right: 0; border-left: 1px solid var(--line-on-dark); }
}

@media (min-width: 1024px) {
  .benefits__head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; gap: var(--space-16); }
  .benefits__list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .benefit,
  .benefit:nth-child(2n) { padding: var(--space-10) var(--space-8); border-left: 1px solid var(--line-on-dark); }
  .benefit:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
  .benefit:nth-child(3n) { padding-right: 0; }
}

/* 11. Process ------------------------------------------------------------- */
.process__track {
  --arc-h: 170px;
  --arc-top: 30px;
  --node: 56px;
  position: relative;
}

.process__arc { display: none; }

.process__steps {
  position: relative;
  display: grid;
  gap: var(--space-8);
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Vertical timeline (mobile and tablet) */
.process__steps::before {
  content: "";
  position: absolute;
  top: calc(var(--node) / 2);
  bottom: calc(var(--node) / 2);
  left: calc(var(--node) / 2 - 1px);
  width: 2px;
  background: linear-gradient(to bottom, var(--gold-500), var(--blue-200));
}

.step {
  position: relative;
  min-height: var(--node);
  padding-left: calc(var(--node) + var(--space-6));
}

.step__node {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: var(--node);
  height: var(--node);
  border: 1.5px solid var(--gold-500);
  border-radius: 50%;
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(251, 175, 63, 0.3);
  transition: border-color 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.step__node .icon { width: 24px; height: 24px; }

.step__num {
  display: block;
  padding-top: 0.35rem;
  margin-bottom: 0.3rem;
  font-family: var(--font-label);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: var(--tracking-label);
  color: var(--accent);
}

.step__title { margin-bottom: var(--space-2); font-size: var(--text-xl); }
.step p { max-width: 34rem; }

.process__note {
  margin-top: var(--space-12);
  color: var(--text-muted);
  font-size: var(--text-sm);
  text-align: center;
}

/* The four stages sit on a sun-path arc (desktop) */
@media (min-width: 1024px) {
  .process__track { padding-top: var(--arc-top); }

  .process__arc {
    position: absolute;
    top: var(--arc-top);
    left: 0;
    display: block;
    width: 100%;
    height: var(--arc-h);
    overflow: visible;
  }

  .process__arc-base { fill: none; stroke: var(--blue-100); stroke-width: 2; }

  .process__arc-sun {
    fill: none;
    stroke: var(--gold-500);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
  }

  .process__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
  .process__steps::before { display: none; }

  /* Node heights follow the ellipse at each column centre (x = 12.5%, 37.5%, …) */
  .step { --y: 0.3386; padding: calc(var(--arc-h) + 3rem) var(--space-5) 0; text-align: center; }
  .step:nth-child(2),
  .step:nth-child(3) { --y: 0.0318; }

  .step__node {
    top: calc(var(--arc-h) * var(--y));
    left: 50%;
    transform: translate(-50%, -50%);
  }

  .step::before {
    content: "";
    position: absolute;
    top: calc(var(--arc-h) * var(--y) + var(--node) / 2 + 10px);
    left: 50%;
    height: calc(var(--arc-h) * (1 - var(--y)) - var(--node) / 2 + 1.25rem);
    border-left: 1.5px dashed var(--blue-200);
  }

  .step p { margin-inline: auto; max-width: 17rem; }
}

/* 12. Call-to-action band ------------------------------------------------- */
.cta-band {
  position: relative;
  isolation: isolate;
  background: var(--navy-900);
  color: #fff;
  --focus-ring: var(--gold-500);
}

.cta-band__media img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: 50% 100%;
}

.cta-band__inner { padding-block: var(--space-12) var(--space-16); }

.cta-band__title {
  margin-bottom: var(--space-5);
  color: #fff;
  font-size: var(--text-3xl);
  font-stretch: var(--stretch-display);
  line-height: 1.08;
  letter-spacing: -0.024em;
}

.cta-band p { max-width: 32rem; margin-bottom: var(--space-8); font-size: var(--text-lg); color: rgba(255, 255, 255, 0.88); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-4); }

@media (min-width: 768px) {
  .cta-band { display: grid; align-items: center; min-height: clamp(440px, 40vw, 580px); }
  .cta-band__media { position: absolute; inset: 0; z-index: -2; }
  .cta-band__media img { height: 100%; aspect-ratio: auto; object-position: 50% 85%; }

  .cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, rgba(7, 26, 46, 0.94) 0%, rgba(7, 26, 46, 0.84) 36%, rgba(7, 26, 46, 0.3) 66%, rgba(7, 26, 46, 0) 88%);
  }

  .cta-band__inner { padding-block: var(--space-16); }
  .cta-band__content { max-width: 36rem; }
}

/* 13. FAQ accordion -------------------------------------------------------- */
.faq__grid { display: grid; gap: var(--space-10); }
.faq__intro > p:not(.eyebrow) { max-width: 30rem; font-size: var(--text-lg); }

.accordion { border-top: 1px solid var(--border-strong); }
.accordion__item { border-bottom: 1px solid var(--border-strong); }
.accordion__heading { margin: 0; font-size: inherit; font-stretch: inherit; letter-spacing: normal; }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  width: 100%;
  min-height: 44px;
  padding: 1.35rem 0;
  border: 0;
  background: none;
  color: var(--text-strong);
  font-size: var(--text-lg);
  font-weight: 620;
  font-stretch: 103%;
  line-height: 1.38;
  text-align: left;
}

.accordion__trigger:hover { color: var(--accent-strong); }
.accordion__trigger:focus-visible { outline-offset: 4px; }

.accordion__icon {
  position: relative;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--border-strong);
  border-radius: 50%;
  color: var(--text-strong);
  transition: background-color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.75px;
  border-radius: 1px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--dur) var(--ease-out);
}

.accordion__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.accordion__trigger:hover .accordion__icon { border-color: var(--blue-500); color: var(--blue-500); }
.accordion__trigger[aria-expanded="true"] .accordion__icon { border-color: var(--blue-500); background: var(--blue-500); color: #fff; }
.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.accordion__panel { display: grid; grid-template-rows: 1fr; }
.accordion__inner { min-height: 0; overflow: hidden; }
.accordion__inner p { max-width: 62ch; margin: 0; padding: 0 0 1.5rem; }

@media (min-width: 768px) {
  .accordion__inner p { padding: 0 3.5rem 1.6rem 0; }
}

/* Collapsing only applies once JavaScript has enhanced the accordion */
.accordion.is-enhanced .accordion__item:not(.is-open) .accordion__panel { grid-template-rows: 0fr; visibility: hidden; }

.accordion.is-animated .accordion__panel {
  transition: grid-template-rows 0.42s var(--ease-out), visibility 0s linear 0.42s;
}

.accordion.is-animated .accordion__item.is-open .accordion__panel {
  transition: grid-template-rows 0.42s var(--ease-out), visibility 0s linear 0s;
}

@media (min-width: 1024px) {
  .faq__grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
  .faq__intro { position: sticky; top: calc(var(--header-h) + 2rem); }
}

/* 14. Contact & form ------------------------------------------------------- */
.contact { overflow: clip; }

/* Halftone dots, echoing the corner pattern on the letterhead */
.contact__dots {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(30rem, 70vw);
  height: 60%;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--blue-200) 1.7px, transparent 2.1px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 100% 100% at 0% 100%, #000 0%, transparent 70%);
}

.contact__grid { position: relative; display: grid; gap: var(--space-12); }
.contact__info > p:not(.eyebrow) { max-width: 30rem; font-size: var(--text-lg); }

.contact-list {
  display: grid;
  margin: var(--space-10) 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

.contact-list__item {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--border);
}

.contact-list__item > div { min-width: 0; }

.contact-list__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--accent-strong);
}

.contact-list__icon .icon { width: 21px; height: 21px; }

.contact-list__label {
  margin: 0 0 0.1rem;
  font-family: var(--font-label);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-list__value {
  display: inline-block;
  color: var(--text-strong);
  font-size: var(--text-lg);
  font-weight: 620;
  line-height: 1.4;
  text-decoration: none;
  overflow-wrap: anywhere;
}

a.contact-list__value:hover { color: var(--accent-strong); text-decoration: underline; }

.contact-list__map {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  font-size: var(--text-sm);
  font-weight: 600;
}

.contact-list__map .icon { width: 0.95rem; height: 0.95rem; }

.enquiry {
  position: relative;
  padding: clamp(1.4rem, 0.9rem + 2.6vw, 2.75rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-lg);
}

.enquiry__head { margin-bottom: var(--space-6); }
.enquiry__title { margin-bottom: 0.35rem; font-size: var(--text-2xl); }
.enquiry__required { color: var(--text-muted); font-size: var(--text-sm); }
.enquiry__row { display: grid; column-gap: var(--space-5); }

.field { margin-bottom: var(--space-5); }

.field__label {
  display: block;
  margin-bottom: 0.45rem;
  color: var(--text-strong);
  font-size: var(--text-sm);
  font-weight: 620;
}

.field__req { color: var(--danger); }

.field__input {
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid var(--border-input);
  border-radius: var(--radius-sm);
  background: var(--neutral-50);
  color: var(--text-strong);
  font-size: 1rem;
  line-height: 1.45;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease, background-color var(--dur-fast) ease;
  -webkit-appearance: none;
  appearance: none;
}

.field__input:hover { border-color: var(--ink-700); }

.field__input:focus {
  outline: none;
  border-color: var(--blue-500);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(27, 116, 187, 0.28);
}

.field__input[aria-invalid="true"] { border-color: var(--danger); background: var(--danger-bg); }
.field__input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.22); }
.field__textarea { min-height: 150px; resize: vertical; }
.field__input[readonly] { background: var(--neutral-50); }

.field__select { position: relative; }
.field__select .field__input { padding-right: 2.75rem; cursor: pointer; }

.field__select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 1.1rem;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-strong);
  border-bottom: 2px solid var(--text-strong);
  pointer-events: none;
  transform: translateY(-70%) rotate(45deg);
}

.field__hint {
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.field__count { flex: none; font-variant-numeric: tabular-nums; }

.field__error {
  margin: 0.45rem 0 0;
  color: var(--danger);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.45;
}

.field--trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.enquiry__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-2); }
.enquiry__actions .btn { flex: 1 1 auto; }
.enquiry__note { margin: var(--space-5) 0 0; color: var(--text-muted); font-size: 0.9rem; line-height: 1.55; }
.enquiry__note strong { color: var(--text-strong); }

.enquiry__status:not(:empty) {
  margin-top: var(--space-5);
  padding: 1rem 1.15rem;
  border: 1px solid var(--blue-100);
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: var(--text-sm);
  line-height: 1.55;
}

.enquiry__status[data-tone="error"] { border-color: var(--danger-border); background: var(--danger-bg); color: var(--danger); }
.enquiry__status[data-tone="success"] { border-color: var(--success-border); background: var(--success-bg); color: var(--success); }
.enquiry__status strong { color: inherit; }
.enquiry__fallback { margin-top: var(--space-5); }

@media (min-width: 640px) {
  .enquiry__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .enquiry__actions .btn { flex: 0 0 auto; }
}

@media (min-width: 1024px) {
  .contact__grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 6rem); align-items: start; }
}

/* 15. Footer --------------------------------------------------------------- */
.site-footer {
  --focus-ring: var(--gold-500);
  padding-top: clamp(3.5rem, 2.5rem + 4vw, 5.5rem);
  background: var(--navy-950);
  color: var(--text-on-dark-muted);
  font-size: var(--text-sm);
}

/* :not(.btn) keeps the gold button's dark text (white on gold would fail contrast) */
.site-footer a:not(.btn) { color: #fff; text-decoration: none; }
.site-footer a:not(.btn):hover { color: var(--gold-500); text-decoration: underline; }

.site-footer__top {
  display: grid;
  gap: var(--space-10);
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 4.5rem);
}

.site-footer__logo {
  display: inline-block;
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  background: #fff;
}

.site-footer__logo:hover { text-decoration: none; }
.site-footer__logo img { width: 180px; height: auto; }

.site-footer__tagline {
  margin: var(--space-5) 0 var(--space-6);
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-500);
}

.site-footer__heading {
  margin-bottom: var(--space-5);
  color: #fff;
  font-family: var(--font-label);
  font-size: 0.75rem;
  font-weight: 600;
  font-stretch: normal;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
}

.site-footer__links,
.site-footer__contact {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links a { display: inline-flex; align-items: center; min-height: 36px; }

.site-footer__contact li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  padding-block: 0.4rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.site-footer__contact .icon { width: 1.1rem; height: 1.1rem; margin-top: 0.15em; color: var(--gold-500); }
.site-footer__contact address { color: #fff; }

.site-footer__map {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 36px;
  margin-top: 0.25rem;
  margin-left: 1.8rem;
  font-weight: 600;
}

.site-footer__map .icon { width: 0.95rem; height: 0.95rem; }

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3) var(--space-8);
  padding-block: var(--space-6) var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.site-footer__bottom p { margin: 0; }
.site-footer__disclaimer { color: rgba(185, 201, 217, 0.85); }

.site-footer__top-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 44px;
  font-weight: 600;
}

.site-footer__top-link .icon { width: 1rem; height: 1rem; transform: rotate(-90deg); }

@media (max-width: 767.98px) {
  .site-footer__links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-6); }
}

@media (min-width: 768px) {
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 1024px) {
  .site-footer__top { grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr) minmax(0, 1.1fr) minmax(0, 1.1fr); gap: var(--space-8); }
}

/* 16. Motion --------------------------------------------------------------- */
/* All motion is opt-in: without it, every element is in its final state. */
@media (prefers-reduced-motion: no-preference) {
  /* Hero entrance */
  .hero__img { animation: hero-settle 2.4s var(--ease-out) both; }
  .hero__tagline { animation: fade-up 0.9s 0.15s var(--ease-out) both; }
  .hero__line > span { animation: line-rise 1s var(--ease-out) both; }
  .hero__line:nth-child(1) > span { animation-delay: 0.25s; }
  .hero__line:nth-child(2) > span { animation-delay: 0.38s; }
  .hero__lead { animation: fade-up 0.9s 0.6s var(--ease-out) both; }
  .hero__actions { animation: fade-up 0.9s 0.72s var(--ease-out) both; }
  .hero__footer { animation: fade-in 1.2s 1s ease both; }
  .hero__ring { stroke-dasharray: 1; animation: draw 2.2s 0.5s var(--ease-in-out) both; }
  .hero__rays path { transform-box: fill-box; animation: ray-in 1.1s var(--ease-out) both; }
  .hero__rays path:nth-child(1) { animation-delay: 1.1s; }
  .hero__rays path:nth-child(2) { animation-delay: 1.2s; }
  .hero__rays path:nth-child(3) { animation-delay: 1.3s; }
  .hero__rays path:nth-child(4) { animation-delay: 1.4s; }
  .hero__rays path:nth-child(5) { animation-delay: 1.5s; }
  .hero__rays path:nth-child(6) { animation-delay: 1.0s; }
  .hero__rays path:nth-child(7) { animation-delay: 0.9s; }
  .hero__scroll-line::after { animation: scroll-cue 2.4s 1.6s var(--ease-in-out) 2 both; }

  /* Scroll reveals (enabled by main.js only when IntersectionObserver is available) */
  .reveal-ready [data-reveal]:not([data-reveal="track"]) {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal-ready [data-reveal].is-visible { opacity: 1; transform: none; }

  .reveal-ready .about__media[data-reveal] .about__arc path { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.4s 0.35s var(--ease-in-out); }
  .reveal-ready .about__media.is-visible .about__arc path { stroke-dashoffset: 0; }

  /* Process: the sun path draws across, then each stage lights up in turn */
  .reveal-ready [data-reveal="track"] .step > :not(.step__node) {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  }

  .reveal-ready [data-reveal="track"] .step__node {
    border-color: var(--blue-200);
    box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(183, 212, 236, 0);
  }

  .reveal-ready [data-reveal="track"].is-visible .step > :not(.step__node) { opacity: 1; transform: none; }

  .reveal-ready [data-reveal="track"].is-visible .step__node {
    border-color: var(--gold-500);
    box-shadow: 0 0 0 6px #fff, 0 0 0 7px rgba(251, 175, 63, 0.3);
  }

  .reveal-ready [data-reveal="track"] .step:nth-child(1) > * { transition-delay: 0.25s; }
  .reveal-ready [data-reveal="track"] .step:nth-child(2) > * { transition-delay: 0.65s; }
  .reveal-ready [data-reveal="track"] .step:nth-child(3) > * { transition-delay: 1.05s; }
  .reveal-ready [data-reveal="track"] .step:nth-child(4) > * { transition-delay: 1.45s; }

  .reveal-ready [data-reveal="track"] .process__arc-sun { stroke-dashoffset: 1; }
  .reveal-ready [data-reveal="track"].is-visible .process__arc-sun { animation: draw 1.8s 0.15s var(--ease-in-out) both; }
}

/* Energy-flow diagram: dashes travel for ~4.5s after each change, then rest
   (arrowheads still show direction), keeping movement under five seconds. */
@media (prefers-reduced-motion: no-preference) {
  .is-animating .flow__line { animation: flow-dash 0.9s linear 5; }

  [data-mode="evening"].is-animating .flow__line--battery,
  [data-mode="outage"].is-animating .flow__line--battery { animation-direction: reverse; }
}

@keyframes flow-dash { to { stroke-dashoffset: -32; } }
@keyframes hero-settle { from { transform: scale(1.06); } to { transform: scale(1); } }
@keyframes line-rise { from { transform: translateY(105%); } to { transform: translateY(0); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ray-in { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
@keyframes scroll-cue { 0% { transform: translateY(-100%); } 70%, 100% { transform: translateY(260%); } }

/* Durations are 0s rather than the common 0.01ms: a tiny duration would make
   every property (including visibility) transition, briefly blocking focus. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0s !important;
    transition-delay: 0s !important;
  }
}

/* Print ------------------------------------------------------------------- */
@media print {
  .site-header { position: static; }
  .site-nav, .site-header__actions, .hero__motif, .hero__scroll, .cta-band__media,
  .benefits__pattern, .contact__dots, .enquiry__actions, .skip-link { display: none !important; }
  .hero, .section--dark, .cta-band, .site-footer { background: #fff !important; color: #000 !important; }
  .hero__media, .hero__shade { display: none; }
  .hero__title, .hero__lead, .hero__contact a, .section--dark h2, .section--dark h3,
  .cta-band__title, .cta-band p, .site-footer a { color: #000 !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}
