/* Solanova Tech Solutions: marketing site
   Layout system adapted from the Refero "Hungry Tiger" style (poster-scale type,
   pill controls, dotted dividers, flat stepped surfaces), recoloured to the
   Solanova palette: navy leads (60), teal energises (30), amber is the sun (10). */

:root {
  /* Brand colours (Brand Guidelines v1.0) */
  --navy: #022b55;
  --teal: #21bac2;
  --amber: #f9a723;

  /* Navy surface steps (replace the reference's three browns) */
  --surface-0: var(--navy);   /* page canvas */
  --surface-1: #01223f;       /* cards */
  --surface-2: #011830;       /* deepest */
  --hairline: #0e4170;        /* dividers, input borders */

  /* Text on navy */
  --text-strong: #ffffff;
  --text-body: #c8d6e4;
  --text-muted: #9fb3c8;

  --gradient: linear-gradient(90deg, var(--teal) 0%, var(--navy) 100%);

  --font-display: "Montserrat", Arial, Calibri, sans-serif;
  --font-body: "Open Sans", Arial, Calibri, sans-serif;

  /* Type scale (reference: display 195 / heading-lg 101 / heading 65 / sm 29) */
  --text-display: clamp(2.6rem, 9.6vw, 9.4rem);
  --text-heading-lg: clamp(2.3rem, 6.6vw, 6.3rem);
  --text-heading: clamp(1.9rem, 4.4vw, 4rem);
  --text-heading-sm: clamp(1.3rem, 2.1vw, 1.75rem);
  --text-base: clamp(1rem, 0.94rem + 0.25vw, 1.125rem);      /* body copy: 16px on phones, 18px on desktop */
  --text-sub: clamp(1.125rem, 1rem + 0.45vw, 1.375rem);      /* lead paragraphs: 18 to 22px */
  --text-feature: clamp(1.125rem, 0.98rem + 0.6vw, 1.5rem);  /* copy set beside very large headings: 18 to 24px */
  --text-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem); /* 14 to 15px */
  --text-caption: 0.75rem;

  --radius-card: 6px;
  --radius-pill: 9999px;
  --max-width: 1440px;
  --gutter: clamp(16px, 4vw, 48px);
  --section-gap: clamp(80px, 10vw, 120px);
  --element-gap: 10px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--surface-0);
  color: var(--text-body);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--teal); }

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

.svg-sprite { position: absolute; }  /* the hidden <symbol> sheet takes no space */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--teal); color: var(--navy); padding: 10px 18px;
  border-radius: var(--radius-pill); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-strong);
  margin: 0;
}
.display {
  font-size: var(--text-display);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}
.heading-lg {
  font-size: var(--text-heading-lg);
  line-height: 0.94;
  letter-spacing: -0.025em;
  text-transform: uppercase;
}
.heading {
  font-size: var(--text-heading);
  line-height: 1;
  letter-spacing: -0.02em;
}
.heading-sm {
  font-size: var(--text-heading-sm);
  line-height: 1.15;
  letter-spacing: -0.005em;
}
.hl { color: var(--teal); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 24px;
}
.sun-glyph { width: 18px; height: 18px; flex: none; }

.lede { font-size: var(--text-sub); line-height: 1.6; color: var(--text-body); max-width: 40rem; margin: 0; }
.lede-after-heading { margin-top: 24px; }  /* after .lede, so it beats that rule's margin: 0 */
.small { font-size: var(--text-small); color: var(--text-muted); }

/* ---------- Buttons and pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--teal);
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn-primary { background: var(--teal); color: var(--navy); }
.btn-primary:hover { background: #ffffff; border-color: #ffffff; }
.btn-ghost { background: transparent; color: var(--teal); }
.btn-ghost:hover { background: var(--surface-1); color: #ffffff; }

.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--text-caption);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--surface-2);
  color: var(--teal);
  border: 1px solid var(--hairline);
}

/* ---------- Dotted divider (reference signature) ---------- */
.divider {
  border: 0;
  border-top: 2px dotted rgba(33, 186, 194, .55);
  margin: 0;
}

/* ---------- Header (light bar: the colour logo needs a light background) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid #e3e9ef;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 76px;
}
.brand {
  display: block;
  /* Clear space: X = height of the "N" (about 20% of logo height, ~10px at 48px). */
  padding: 12px 12px 12px 0;
  flex: none;
}
.brand img { height: 56px; width: auto; }
@media (max-width: 1040px) { .brand img { height: 48px; } }

.nav { display: flex; align-items: center; gap: 6px; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-flex; align-items: center; min-height: 40px;
  padding: 8px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
  text-decoration: none;
}
.nav a:hover { border-color: var(--navy); }
.nav .btn-primary { margin-left: 8px; border-color: var(--teal); }
.nav .btn-primary:hover { background: var(--navy); color: #ffffff; border-color: var(--navy); }

.menu-toggle {
  display: none;
  align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 18px;
  border: 1px solid var(--navy); border-radius: var(--radius-pill);
  background: #ffffff; color: var(--navy);
  font: 700 var(--text-small)/1 var(--font-display);
  letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer;
}

/* ---------- Sections ---------- */
.section { padding: var(--section-gap) 0; }
.section-head { display: grid; gap: 24px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.split {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: end;
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 96px); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
}
.hero .display { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--element-gap); margin-top: 32px; }
.hero-art { width: 100%; max-width: 500px; justify-self: end; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: var(--element-gap);
  margin-top: clamp(48px, 7vw, 88px);
}

/* Faint circuit-ray watermark (stands in for the reference's botanical layer) */
.watermark { position: relative; isolation: isolate; }
.watermark::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background-image: url("../img/pattern.svg");
  background-size: 480px;
  opacity: .06;
  pointer-events: none;
}

/* Cards */
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--element-gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--element-gap); }
.card {
  background: var(--surface-1);
  border-radius: var(--radius-card);
  padding: clamp(20px, 2.4vw, 32px);
  display: flex; flex-direction: column; gap: 14px;
}
.card p { margin: 0; }
.card .pill { align-self: flex-start; }
.card .icon {
  width: 52px; height: 52px; flex: none;
  border: 1px solid var(--teal); border-radius: var(--radius-pill);
  display: grid; place-items: center;
}
.card .icon svg { width: 24px; height: 24px; }
.card-num {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2.6rem, 4vw, 3.6rem); line-height: .9;
  color: var(--teal); letter-spacing: -0.03em;
}
.card ul { margin: 0; padding-left: 18px; }
.card li { margin: 4px 0; }

/* Slogan layers */
.layers .card { background: var(--surface-2); min-height: 240px; justify-content: flex-start; }
.layers .card > div { display: grid; gap: 10px; margin-top: clamp(28px, 3.4vw, 52px); } /* same top for every heading, whatever the text length */

/* Packages (from the trifold flier) */
.packages-intro { display: grid; gap: 20px; justify-items: start; }
/* Kit stage: three cleaned cutouts on a 900 x 820 stage, positioned in %, so each can move on its own.
   Behind them sits kit-backdrop, a still rendered in HyperFrames (motion/hyperframes-community/kit-backdrop)
   on the same 900 x 820 grid: sun and light beams, home, hills, lit floor and the energy path. */
.kit {
  --kit-shadow: drop-shadow(0 22px 22px rgb(0 8 22 / .55)) drop-shadow(0 4px 6px rgb(0 8 22 / .35));
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 580px;
  aspect-ratio: 900 / 820;
  margin-block: -2% 0;
}
.kit-backdrop, .kit-backdrop img {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
}
.kit-backdrop { transition: opacity 900ms ease, transform 1200ms var(--ease-out-expo); }
.kit::before {  /* extra light on the products when the kit is hovered */
  content: "";
  position: absolute;
  inset: 10% 0 0;  /* no sideways bleed: it would widen the page on phones */
  background: radial-gradient(55% 48% at 56% 55%, rgb(255 255 255 / .10), rgb(33 186 194 / .10) 45%, transparent 72%);
  transition: opacity 600ms ease;
  opacity: 0;
  pointer-events: none;
}
.kit-item { position: absolute; display: block; }
.kit-body {  /* the product and its light sweep move together; the floor shadow (::after) stays put */
  position: relative;
  display: block;
  transition: transform 700ms var(--ease-out-expo) var(--lift-d, 0ms);
}
.kit-item img {
  display: block;
  width: 100%;
  height: auto;
  filter: var(--kit-shadow);
  transition: filter 600ms ease var(--lift-d, 0ms);
}
.kit-item::after {  /* contact shadow on the floor */
  content: "";
  position: absolute;
  left: var(--sx, 6%);
  width: var(--sw, 88%);
  bottom: var(--sy, -3.5%);
  height: 7%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(0 6 18 / .75), rgb(0 6 18 / .3) 55%, transparent);
  transition: transform 700ms var(--ease-out-expo) var(--lift-d, 0ms), opacity 700ms ease var(--lift-d, 0ms);
}
.kit-panel { left: 4.444%; top: 8.537%; width: 37.333%; z-index: 1; --sx: 2%; --sw: 98%; --sy: -2.5%; }
.kit-inverter { left: 44.444%; top: 37.561%; width: 24.111%; z-index: 2; --sx: 4%; --sw: 92%; --lift-d: 60ms; }
.kit-battery { left: 71.222%; top: 35.854%; width: 24.556%; z-index: 3; --sx: 2%; --sw: 96%; --sy: -2.5%; --lift-d: 120ms; }
/* Light sweeps, masked to each product's own outline. A white band crosses from off-canvas left (130%)
   to off-canvas right (-30%), so no fade is needed. The span's background sweeps on hover; its ::after
   sweeps once on entrance. Two layers, so neither restarts the other. */
.kit-sheen, .kit-sheen::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgb(255 255 255 / .4) 50%, transparent 60%) 130% 0 / 260% 100% no-repeat;
}
.kit-sheen { -webkit-mask: var(--mask) center / 100% 100% no-repeat; mask: var(--mask) center / 100% 100% no-repeat; }
.kit-sheen::after { content: ""; }
.kit-panel .kit-sheen { --mask: url("../img/kit-panel.webp"); }
.kit-inverter .kit-sheen { --mask: url("../img/kit-inverter.webp"); }
.kit-battery .kit-sheen { --mask: url("../img/kit-battery.webp"); }

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .kit:hover::before { opacity: 1; }
  .kit:hover .kit-backdrop { transform: scale(1.015); }
  .kit:hover .kit-body { transform: translateY(-2.2%); }
  .kit:hover .kit-item img { filter: drop-shadow(0 30px 26px rgb(0 8 22 / .45)) drop-shadow(0 0 18px rgb(33 186 194 / .28)); }
  .kit:hover .kit-item::after { transform: scale(.86); opacity: .7; }
  .kit:hover .kit-sheen { background-position: -30% 0; transition: background-position 1100ms ease-out var(--lift-d, 0ms); }
  /* the product under the pointer rises a little further and catches more light */
  .kit .kit-item:hover .kit-body { transform: translateY(-4.5%) scale(1.02); transition-delay: 0ms; }
  .kit .kit-item:hover img { filter: drop-shadow(0 38px 30px rgb(0 8 22 / .4)) drop-shadow(0 0 26px rgb(33 186 194 / .45)); transition-delay: 0ms; }
  .kit .kit-item:hover::after { transform: scale(.74); opacity: .55; transition-delay: 0ms; }
}

.series {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr);
  gap: clamp(20px, 4vw, 56px);
  padding: clamp(32px, 4vw, 48px) 0;
  border-top: 2px dotted rgba(33, 186, 194, .55);
}
.series:last-of-type { border-bottom: 2px dotted rgba(33, 186, 194, .55); }
.series-title {
  font-size: clamp(1.6rem, 2.8vw, 2.5rem);
  line-height: 1;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}
.series-range { margin: 12px 0 0; color: var(--teal); font-weight: 600; }
.package-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--element-gap); list-style: none; margin: 0; padding: 0; }
.package { gap: 18px; }
.package-bill { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.package-specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.package-specs dt {
  font-family: var(--font-display); font-size: var(--text-caption); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted);
}
.package-specs dd {
  margin: 6px 0 0;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; line-height: 1.2;
  color: var(--text-strong);
}
.package-specs dd span {
  display: block; margin-top: 2px;
  font-family: var(--font-body); font-weight: 400; font-size: var(--text-small); color: var(--text-body);
}
.package-price {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin: auto 0 0; /* pin price and button to the card bottom so a row lines up */
  padding: 8px 8px 8px 20px;
  border-radius: var(--radius-pill);
  background: var(--surface-2);
  border: 1px solid var(--hairline);
}
.package-price span { font-size: var(--text-small); color: var(--text-body); }
.package-price strong {
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  background: var(--teal); color: var(--navy);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -0.01em; line-height: 1.2;
}
.package .btn { align-self: flex-start; }
.card.package .package-price { margin-top: auto; } /* beats .card p { margin: 0 } */
.package:target { outline: 2px solid var(--teal); outline-offset: 4px; }
.packages-note { margin: 24px 0 0; }
.package-match { margin: 0; color: var(--text-body); }
.package-match a { font-weight: 700; }

/* Why */
.why-list { list-style: none; margin: 0; padding: 0; }
.why-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 24px;
  padding: clamp(28px, 4vw, 44px) 0;
  border-top: 2px dotted rgba(33, 186, 194, .55);
}
.why-item:last-child { border-bottom: 2px dotted rgba(33, 186, 194, .55); }
.why-item p {
  margin: 0;
  max-width: 32em;
  padding-top: .35em;  /* lines the first line up with the heading's cap height */
  font-size: var(--text-feature);
  line-height: 1.6;
  color: var(--text-body);
}

/* Process */
.steps { list-style: none; margin: 0; padding: 0; }
.steps .card { min-height: 220px; }

/* Savings estimator */
.estimator {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: var(--element-gap);
}
.estimator .card { gap: 18px; }
.field { display: grid; gap: 8px; align-content: start; }
/* fields without an error line keep the same space below, so every row has the same rhythm */
.field:not(:has(> .field-error))::after { content: ""; min-height: calc(var(--text-small) * 1.2); }
.field label {
  font-family: var(--font-display); font-size: var(--text-small); font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; color: var(--text-strong);
}
.input {
  width: 100%;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid #4a82b6;
  background: var(--surface-2);
  color: var(--text-strong);
  font: 400 1rem/1.3 var(--font-body);
}
.input::placeholder { color: var(--text-muted); }
.input:focus { border-color: var(--teal); outline: 3px solid rgba(33, 186, 194, .45); outline-offset: 1px; }
select.input {
  -webkit-appearance: none;
  appearance: none;
  height: 48px;
  padding-right: 56px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9' fill='none' stroke='%2321BAC2' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1.5 1.5 7 7l5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 24px center;
  background-size: 14px 9px;
}
select.input option { background: var(--surface-2); color: var(--text-strong); }
textarea.input { border-radius: 20px; min-height: 120px; resize: vertical; }
.input[aria-invalid="true"] { border-color: #ff8a8a; }
.field-error { color: #ffb4b4; font-size: var(--text-small); margin: 0; min-height: 1.2em; }

.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--element-gap); margin: 0; }
.result { background: var(--surface-2); border-radius: var(--radius-card); padding: 20px; }
.result dt { font-size: var(--text-small); color: var(--text-muted); margin-bottom: 6px; }
.result dd {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1; color: var(--text-strong);
  letter-spacing: -0.02em;
}
.result dd .unit { color: var(--teal); font-size: .55em; letter-spacing: 0; margin-left: 4px; }

/* Community */
.community-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.community-grid .lede + .lede { margin-top: 16px; }
/* Half-width columns: step the heading down so long words never overflow */
.community-grid .heading-lg,
.quote-grid .heading-lg { font-size: clamp(2.3rem, 4.6vw, 4.6rem); overflow-wrap: anywhere; }
.community-art { background: var(--surface-1); border-radius: var(--radius-card); padding: clamp(20px, 3vw, 40px); }

/* Motion loops (rendered with Remotion and HyperFrames; see /motion).
   Video backgrounds match the surface they sit on, so the frame edge is invisible. */
.motion { margin: 0; display: flex; flex-direction: column; }
.motion-video { display: block; width: 100%; height: auto; }
/* The hero sits on the patterned canvas: fade the frame edge so the pattern runs under it */
.hero .motion-video {
  -webkit-mask-image: radial-gradient(ellipse 75% 72% at 52% 50%, #000 62%, transparent 100%);
          mask-image: radial-gradient(ellipse 75% 72% at 52% 50%, #000 62%, transparent 100%);
}
.motion-toggle {
  align-self: flex-end; margin-top: 8px;
  min-height: 36px; padding: 6px 14px;
  border: 1px solid #4a82b6; border-radius: var(--radius-pill);
  background: var(--surface-2); color: var(--teal);
  font: 700 var(--text-caption)/1 var(--font-display);
  letter-spacing: .08em; text-transform: uppercase;
  cursor: pointer; opacity: .85;
  transition: opacity .2s ease, border-color .2s ease;
}
.motion-toggle:hover, .motion-toggle:focus-visible { opacity: 1; border-color: var(--teal); }
/* Vision and mission */
.vm { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--element-gap); }
.vm .card { background: var(--surface-2); padding: clamp(28px, 4vw, 48px); gap: 20px; }
.vm blockquote { margin: 0; font-size: var(--text-sub); line-height: 1.6; color: var(--text-strong); }
.name-meaning { margin-top: var(--element-gap); }

/* Quote form */
.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 72px);
}
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form-hint { margin: 12px 0 6px; max-width: 60ch; color: var(--text-muted); }
.form-status { min-height: 1.6em; margin: 10px 0 0; color: var(--text-strong); }
.form-status a { font-weight: 600; text-underline-offset: 3px; }
.contact-card {
  margin-top: 28px;
  padding: clamp(20px, 2.4vw, 28px);
  border-radius: var(--radius-card);
  background: var(--surface-1);
  font-style: normal;
}
.contact-title { font-size: var(--text-heading-sm); line-height: 1.1; margin-bottom: 16px; }
.contact-list a { color: var(--teal); font-weight: 600; }
.contact-list a:hover { color: #ffffff; }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
/* label column + value column on every row, so all values start on one line */
.contact-list li { display: grid; grid-template-columns: 11.5rem minmax(0, 1fr); gap: 2px 16px; align-items: baseline; }
.contact-list strong {
  font-family: var(--font-display); font-size: var(--text-small);
  text-transform: uppercase; letter-spacing: .06em; color: var(--text-strong);
}
@media (max-width: 560px) {
  .contact-list li { grid-template-columns: minmax(0, 1fr); }
}

/* Footer */
/* White, like the header, so the Primary Colour logo sits on its intended light background.
   The letterhead pattern follows: colour logo above a teal-to-navy band. */
.site-footer {
  --footer-ink: var(--navy);
  --footer-body: #3d4b5c; /* dark grey body text on white (about 9:1) */
  background: #ffffff;
  color: var(--footer-body);
}
.site-footer :focus-visible { outline-color: var(--navy); }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 40px 56px;
  padding: 72px 0 64px;
  align-items: start;
}
/* 200px wide: above the 120px minimum. Clear space X (height of the "N") is about 21px here. */
.footer-logo { position: relative; display: block; width: 200px; aspect-ratio: 440 / 316; }
.footer-logo:focus-visible { outline-offset: 10px; }
.logo-layer { position: absolute; inset: 0; width: 100%; height: 100%; }
.footer-tagline {
  margin: 28px 0 0;
  color: var(--footer-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 1.125rem;
}
.footer-heading {
  display: flex; align-items: center; gap: 10px;
  margin: 0 0 12px;
  font-size: var(--text-caption); line-height: 1.4;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--footer-ink);
}
.footer-heading::before { content: ""; width: 18px; height: 3px; border-radius: 2px; background: var(--teal); }
.footer-links, .footer-contact { list-style: none; margin: 0; padding: 0; display: grid; }
.footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.footer-links li, .footer-contact li { padding: 6px 0; line-height: 1.5; }
.footer-links a, .footer-contact a {
  color: var(--footer-body);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  transition: color 200ms ease, text-decoration-color 200ms ease;
}
.footer-links a:hover, .footer-contact a:hover { color: var(--footer-ink); text-decoration-color: var(--teal); }
.footer-band { height: 8px; background: var(--gradient); }
.footer-bar { background: var(--navy); color: var(--text-body); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 30px; } /* keeps .wrap side gutters */
.footer-bottom p { margin: 0; }

@media (max-width: 1040px) {
  .footer-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; padding: 56px 0 48px; }
  .footer-logo { width: 180px; }
}
@media (max-width: 420px) {
}

/* Footer logo animation: energy rising from the core.
   The S rises into view, the navy core lifts, the amber rays burst from the core one by one,
   and the wordmark settles. Every layer ends untransformed, so the resting logo is unaltered.
   Motion only under html.js-motion (never with reduced motion); replays each time it scrolls into view. */
.js-motion .footer-logo .logo-layer {
  transition: opacity 600ms ease, transform 900ms var(--ease-out-expo), clip-path 1100ms var(--ease-out-expo);
}
.js-motion .footer-logo .logo-s { clip-path: inset(0 0 0 0); transition: clip-path 1200ms cubic-bezier(.65, 0, .35, 1); }
.js-motion .footer-logo .logo-ray { transition-timing-function: ease, cubic-bezier(.34, 1.56, .64, 1), ease; transition-duration: 400ms, 700ms, 0ms; }
.logo-ray-1 { transform-origin: 61.1% 30.3%; } /* each ray grows from its tip at the core */
.logo-ray-2 { transform-origin: 63.8% 38%; }
.logo-ray-3 { transform-origin: 66% 45.9%; }
.js-motion .footer-logo:not(.is-in) .logo-s { clip-path: inset(100% 0 0 0); }
.js-motion .footer-logo:not(.is-in) .logo-core { opacity: 0; transform: translateY(18%); }
.js-motion .footer-logo:not(.is-in) .logo-ray { opacity: 0; transform: scale(.15); }
.js-motion .footer-logo:not(.is-in) .logo-wordmark { opacity: 0; transform: translateY(10px); }
.js-motion .footer-logo.is-in .logo-core { transition-delay: 350ms; }
.js-motion .footer-logo.is-in .logo-wordmark { transition-delay: 600ms; }
.js-motion .footer-logo.is-in .logo-ray-1 { transition-delay: 950ms; }
.js-motion .footer-logo.is-in .logo-ray-2 { transition-delay: 1060ms; }
.js-motion .footer-logo.is-in .logo-ray-3 { transition-delay: 1170ms; }
/* Hover or keyboard focus: the rays pulse outward once, then settle back */
.js-motion .footer-logo.is-in:is(:hover, :focus-visible) .logo-ray { animation: ray-pulse 900ms var(--ease-out-expo) both; }
.js-motion .footer-logo.is-in:is(:hover, :focus-visible) .logo-ray-2 { animation-delay: 90ms; }
.js-motion .footer-logo.is-in:is(:hover, :focus-visible) .logo-ray-3 { animation-delay: 180ms; }
@keyframes ray-pulse {
  0%, 100% { transform: none; }
  35% { transform: scale(1.2); }
}

/* Kit stage entrance: the backdrop fades in, then panel, inverter and battery rise onto the floor in turn,
   and the light sweeps across them once. Replays each time the kit scrolls into view. */
.js-motion .kit .kit-item {
  transition: opacity 600ms ease var(--in-d, 0ms), transform 1000ms var(--ease-out-expo) var(--in-d, 0ms);
}
.js-motion .kit:not(.is-in) .kit-backdrop { opacity: 0; transform: scale(1.04); }
.js-motion .kit:not(.is-in) .kit-item { opacity: 0; transform: translateY(9%); }
.js-motion .kit.is-in .kit-panel { --in-d: 150ms; }
.js-motion .kit.is-in .kit-inverter { --in-d: 290ms; }
.js-motion .kit.is-in .kit-battery { --in-d: 430ms; }
.js-motion .kit.is-in .kit-sheen::after { background-position: -30% 0; transition: background-position 1300ms ease-out calc(700ms + var(--in-d, 0ms)); }

/* ---------- Text motion ----------
   Active only under html.js-motion (set in <head>, never with reduced motion).
   Headlines rise word by word out of a mask; other copy fades up in sequence.
   main.js adds .is-split to headlines and .is-in when an element scrolls into view. */
:root {
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --dur-reveal: 900ms;
  --stagger-word: 55ms;
}
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .12em; margin-bottom: -.12em; }
.w-in { display: inline-block; }

.js-motion :is(.display, .heading-lg):not(.is-split) { opacity: 0; }
.js-motion .is-split .w-in {
  transform: translateY(115%);
  transition: transform var(--dur-reveal) var(--ease-out-expo) calc(var(--d, 0ms) + var(--i, 0) * var(--stagger-word));
}
.js-motion .is-split.is-in .w-in { transform: none; }

.js-motion :is(.eyebrow, .lede, .hero-actions, .hero-meta .pill, .grid-3 > li, .grid-4 > li, .why-item,
  .estimator > .card, .result, .vm .card, .name-meaning, .contact-card, .form, .motion, .footer-tagline,
  .series-head, .package-grid > li, .packages-note) {
  transition: opacity 700ms ease var(--d, 0ms), transform var(--dur-reveal) var(--ease-out-expo) var(--d, 0ms);
}
.js-motion :is(.eyebrow, .lede, .hero-actions, .hero-meta .pill, .grid-3 > li, .grid-4 > li, .why-item,
  .estimator > .card, .result, .vm .card, .name-meaning, .contact-card, .form, .motion, .footer-tagline,
  .series-head, .package-grid > li, .packages-note):not(.is-in) {
  opacity: 0;
  transform: translateY(28px);
}

/* Choreography: eyebrow, then headline, then supporting copy */
.section-head .heading-lg { --d: 80ms; }
.section-head .lede, .community-grid .lede, .quote-grid .lede { --d: 260ms; }
.hero .display { --d: 120ms; }
.hero .motion { --d: 300ms; }
.hero .lede { --d: 560ms; }
.hero .hero-actions { --d: 720ms; }

/* ---------- Cursor sun ----------
   A small Solar Amber core on the cursor tip with a soft sun glow trailing it.
   Created by main.js only for mouse/trackpad users without reduced motion.
   Purely decorative: no pointer events, hidden from assistive tech, native cursor kept. */
.cursor-sun {
  position: fixed; left: 0; top: 0; z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 300ms ease;
}
.cursor-sun.is-on { opacity: 1; }
.cursor-sun__halo,
.cursor-sun__core { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor-sun__halo span {
  display: block;
  width: 140px; height: 140px; margin: -70px 0 0 -70px;  /* reduced 2026-11-11 at the user's request (was 260px) */
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(249, 167, 35, .28) 0%,
    rgba(249, 167, 35, .16) 18%,
    rgba(249, 167, 35, .07) 38%,
    rgba(249, 167, 35, 0) 65%);
  mix-blend-mode: screen;
  transition: transform 400ms var(--ease-out-expo);
}
.cursor-sun__core span {
  display: block;
  width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 6px 1px rgba(249, 167, 35, .6), 0 0 14px 3px rgba(249, 167, 35, .2);
  transition: transform 300ms var(--ease-out-expo);
}
/* Over links, buttons and fields the sun swells a little */
.cursor-sun.is-hot .cursor-sun__halo span { transform: scale(1.2); }
.cursor-sun.is-hot .cursor-sun__core span { transform: scale(1.2); }
.cursor-sun.is-down .cursor-sun__core span { transform: scale(.7); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1040px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: #ffffff; border-bottom: 1px solid #e3e9ef;
    flex-direction: column; align-items: stretch;
    padding: 12px var(--gutter) 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav ul { flex-direction: column; }
  .nav a { min-height: 48px; }
  .nav .btn-primary { margin: 8px 0 0; }
}

@media (max-width: 1040px) {
  .series { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .package-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 420px) {
  .package-specs { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .package-specs > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
  .package-specs dd { margin: 0; text-align: right; }
}

@media (max-width: 900px) {
  .hero-grid, .section-head.split, .estimator, .community-grid, .vm, .quote-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-art { justify-self: start; max-width: 400px; }
  .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .why-item { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

@media (max-width: 560px) {
  .grid-4, .results, .form { grid-template-columns: minmax(0, 1fr); }
  .brand img { height: 44px; } /* about 129px wide: above the 120px on-screen minimum */
  .hero-actions .btn { flex: 1 1 100%; }
  .footer-links { grid-template-columns: minmax(0, 1fr); }
}
