/* ==========================================================================
   SOLUTIONS
   Overview page (/solutions/)
     1. Intro and foundation diagram
     2. Comparison table
     3. Battery storage (energy flow: section 18)
     4. Platform finder
   Platform pages (/solutions/{platform}/)
     5. Platform hero
     6. Journey path
     7. Quality inspection sheet
     8. Subsidy and finance
     9. Pairings
    10. Enquiry
   Platform pages set data-c on <body>, so --c is the platform colour.
   ========================================================================== */

/* Section rhythm on the Solutions and platform pages. The homepage keeps
   the wider value set in base.css. */
:root { --section-space: clamp(48px, 6vw, 88px); }

.page-title {
  margin-top: 24px;
  font-size: clamp(40px, 4.8vw, 66px);
  line-height: 1.05;
  letter-spacing: -.03em;
}


/* 1. Intro and foundation diagram
   -------------------------------------------------------------------------- */
.solutions-intro {
  padding-block: clamp(28px, 3.3vw, 44px) clamp(48px, 6vw, 88px);
  background: var(--bg-alt);
}
.solutions-intro__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.solutions-intro .lede { margin-top: 20px; }
.solutions-intro.hero-dark .foundation { margin: 0; padding: clamp(18px, 2.4vw, 26px); border-radius: var(--radius-l); background: var(--surface); box-shadow: var(--shadow-lg); }

/* Six platforms standing on three shared layers */
.foundation__platforms {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}
.foundation__tile {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: 92px;
  padding: 10px;
  color: #1E1F3B;
  font: 600 13px/1.25 var(--font-body);
}
.foundation__tile[data-c="indigo"] { color: #FFFFFF; }
.foundation__fill {
  position: absolute; inset: 0; z-index: -1;
  background: var(--c);
  border-radius: var(--radius-s);
  --bite: 12px;
  --offset: -4px;
}
/* the "pillar" joining each platform to the layers below */
.foundation__tile::after {
  content: "";
  position: absolute; left: 50%; top: 100%;
  width: 3px; height: 18px;
  margin-left: -1.5px;
  background: var(--line-strong);
}
.foundation__layers { display: grid; gap: 6px; margin-top: 18px; }
.foundation__layers li {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-radius: var(--radius-s);
  color: #FFFFFF;
  font-size: 14.5px;
  line-height: 1.45;
}
.foundation__layers li:nth-child(1) { background: #1E1F3B; }
.foundation__layers li:nth-child(2) { background: #34366A; }
.foundation__layers li:nth-child(3) { background: #4E5096; }
.foundation__layers strong { font: 500 17px/1.3 var(--font-display); }
.foundation__layers span { color: rgba(255, 255, 255, .8); }

/* Entrance: the three foundations rise from the bottom up, then the six
   platforms land on them one by one and their pillars connect.
   Pure CSS, so it starts with the first paint and needs no JavaScript.
   modules/reveal.js only holds it (.is-waiting) while the diagram is still
   below the screen, as it can be on a phone. */
@media (prefers-reduced-motion: no-preference) {
  .foundation { --step: 70ms; }
  .foundation__layers li { animation: foundation-rise .45s cubic-bezier(.2, .7, .2, 1) both; }
  .foundation__layers li:nth-child(2) { animation-delay: 90ms; }
  .foundation__layers li:nth-child(1) { animation-delay: 180ms; }
  .foundation__tile {
    animation: foundation-land .42s cubic-bezier(.2, .7, .2, 1) both;
    animation-delay: calc(420ms + var(--i, 0) * var(--step));
  }
  .foundation__tile::after {
    transform-origin: top;
    animation: foundation-pillar .25s ease-out both;
    animation-delay: calc(640ms + var(--i, 0) * var(--step));
  }
  .foundation.is-waiting .foundation__layers li,
  .foundation.is-waiting .foundation__tile,
  .foundation.is-waiting .foundation__tile::after { animation-play-state: paused; }
}
@keyframes foundation-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes foundation-land { from { opacity: 0; transform: translateY(-10px); } }
@keyframes foundation-pillar { from { transform: scaleY(0); } }


/* 2. Comparison table
   -------------------------------------------------------------------------- */
.compare { border-top: 2px solid var(--ink); }
.compare__row {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 22px 16px;
  border-bottom: 1px solid var(--line);
  transition: background-color .2s;
}
.compare__row:not(.compare__row--head):hover { background: color-mix(in srgb, var(--c) 9%, var(--bg)); }
.compare__row--head {
  padding-block: 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}
.compare__platform { display: flex; align-items: center; gap: 16px; }
.compare__tile { flex: none; width: 44px; height: 44px; background: var(--c); --bite: 12px; --offset: -2px; }
.compare__platform a {
  display: block;
  color: var(--ink);
  font: 500 19px/1.25 var(--font-display);
  text-decoration: none;
}
.compare__platform a:hover { text-decoration: underline; text-decoration-color: var(--c); text-underline-offset: 5px; }
.compare__platform small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.compare__label { display: none; }
.compare__action {
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c);
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}


/* 3. Battery storage callout
   -------------------------------------------------------------------------- */
.storage {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.storage__kicker { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; font-weight: 600; color: var(--ink); }
.storage__body > p { margin-top: 16px; max-width: 30em; }
.storage__body .btn { margin-top: 32px; }
/* The storage button rests in brand purple and turns SG Hybrid blue on hover */
.storage__body .btn--primary { background: #4E5096; color: #FFFFFF; }
.storage__body .btn--primary:hover { background: var(--sky); color: #1E1F3B; }


/* 4. Platform finder
   Two numbered questions on the dark band. The answer card stands the full
   height beside them and takes the recommended platform's colour.
   -------------------------------------------------------------------------- */
.finder { background: #1E1F3B; color: var(--on-dark-text); }
.finder h2 { color: var(--on-dark); }
.finder__grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}
.finder__intro { margin-top: 12px; }

.finder__step { min-width: 0; margin: 32px 0 0; padding: 0; border: 0; }
.finder__step legend { margin-bottom: 14px; padding: 0; }
.finder__legend { display: flex; align-items: center; gap: 12px; color: var(--on-dark); font: 500 19px/1.3 var(--font-display); }
.finder__n {
  flex: none;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border: 1.5px solid rgba(255, 255, 255, .45);
  border-radius: 50%;
  color: var(--on-dark);
  font: 600 14px/1 var(--font-body);
}
.finder__skip { display: flex; align-items: center; gap: 12px; margin-top: 32px; }

/* Question 1: three tiles, then two, with no empty cell */
.finder__options--who { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.finder__options--who .finder__option { grid-column: span 2; }
.finder__options--who .finder__option:nth-child(n + 4) { grid-column: span 3; }
/* Question 2: two per row; an odd one out takes the full row */
.finder__options--need { display: flex; flex-wrap: wrap; gap: 10px; }
.finder__options--need .finder__option { flex: 1 1 calc(50% - 5px); }

.finder__option { position: relative; display: block; cursor: pointer; }
.finder__option[hidden] { display: none; }
.finder__option input { position: absolute; opacity: 0; }
.finder__option span {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  min-height: 58px;
  padding: 10px 16px;
  border: 1.5px solid rgba(255, 255, 255, .24);
  border-radius: var(--radius-m);
  color: var(--on-dark);
  font-weight: 500;
  line-height: 1.3;
  transition: background-color .2s, border-color .2s, color .2s;
}
.finder__option .swatch { width: 18px; height: 18px; --bite: 6px; }
.finder__option:hover span { border-color: rgba(255, 255, 255, .6); }
.finder__option input:checked + span { background: #FFFFFF; border-color: #FFFFFF; color: #1E1F3B; }
.finder__option input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 3px; }
.finder__form noscript .btn { margin-top: 28px; }

.finder__result {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-lg);
}
.finder__result-head {
  position: relative;
  padding: clamp(24px, 3vw, 32px) clamp(22px, 2.2vw, 28px);
  background: color-mix(in srgb, var(--c) 16%, var(--surface));
  transition: background-color .3s;
}
.finder__tile {
  position: absolute; top: 24px; right: 24px;
  width: 64px; height: 64px;
  background: var(--c);
  --bite: 18px;
  --offset: -4px;
  transition: background-color .3s;
}
.finder__eyebrow { font-size: 14.5px; font-weight: 600; color: var(--muted); }
.finder__name { margin-top: 8px; padding-right: 80px; font-size: clamp(30px, 3vw, 40px); line-height: 1.1; }
.finder__kind { margin-top: 4px; font-weight: 500; }
.finder__result-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: clamp(22px, 3vw, 30px) clamp(22px, 2.2vw, 28px) clamp(26px, 3vw, 36px);
}
.finder__facts { margin-top: 18px; }
.finder__pair {
  margin-top: 18px;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--bg-alt);
  font-size: 15.5px;
}
.finder__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: auto; padding-top: 28px; }
/* sized so the button and the "Explore" link sit side by side for every platform */
.finder__actions .btn { padding-inline: 20px; white-space: nowrap; }
.finder__actions .text-link { font-size: 15px; white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1239px) {
  .finder__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
}
.finder__result.is-updated .finder__tile { animation: finder-pop .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes finder-pop { from { transform: scale(.7); opacity: .4; } to { transform: none; opacity: 1; } }
/* the answer's text settles in when it changes, instead of snapping */
.finder__result.is-updated :is(.finder__name, .finder__kind, .finder__reason, .finder__facts, .finder__pair) { animation: finder-swap .35s ease both; }
@keyframes finder-swap { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }


/* A section heading with its paragraph directly underneath, left aligned
   (the default .section-head in layout.css sets them side by side). */
.section-head--stack { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.section-head--stack p { max-width: 42em; }


/* 5. Platform hero
   -------------------------------------------------------------------------- */
.platform-hero {
  padding-block: clamp(24px, 3vw, 40px) clamp(48px, 6vw, 88px);
  background: color-mix(in srgb, var(--c) 13%, var(--bg));
}
.platform-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.platform-hero__kind {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  font-weight: 600;
  color: var(--ink);
}
.platform-hero__title {
  margin-top: 8px;
  font-size: clamp(48px, 5.8vw, 84px);
  line-height: .98;
  letter-spacing: -.04em;
}
.platform-hero__tagline {
  max-width: 17em;
  margin-top: 14px;
  color: var(--ink);
  font: 300 clamp(22px, 2.3vw, 31px)/1.25 var(--font-display);
  letter-spacing: -.015em;
}
.platform-hero .lede { margin-top: 16px; }
.platform-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.platform-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 24px; }
.platform-hero__facts li { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--ink); }
.platform-hero__facts svg {
  width: 22px; height: 22px;
  padding: 3px;
  border-radius: 50%;
  background: var(--c);
  color: #1E1F3B;
}
.platform-hero__visual { position: relative; }
.platform-hero__photo { aspect-ratio: 1 / 1; border-radius: 22px; }
.platform-hero__tile {
  position: absolute; left: -22px; bottom: -22px;
  width: 84px; height: 84px;
  background: var(--c);
  --bite: 23px;
  --offset: -6px;
}


/* 6. Journey path
   The bar is the tile strip; each step is a round joint cut into it,
   like the circles in the Sensory Grid mark.
   -------------------------------------------------------------------------- */
.journey {
  --cols: 7;                      /* columns in the row (set per row) */
  --n: 7;                         /* steps in the row (set per row)   */
  --gap: 20px;
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  gap: var(--gap);
}
.journey + .journey { margin-top: 44px; }
/* The bar runs from the first circle's centre to the last circle's centre */
.journey::before {
  content: "";
  position: absolute; top: 17px; left: 22px;
  width: calc(((100% - (var(--cols) - 1) * var(--gap)) / var(--cols) + var(--gap)) * (var(--n) - 1));
  height: 10px;
  border-radius: 5px;
  background: var(--c);
}
.journey__node {
  position: relative;
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg);
  color: var(--ink);
  font: 600 16px/1 var(--font-display);
}
.journey:last-of-type .journey__step:last-child .journey__node { background: var(--ink); color: var(--bg); }
.journey__step h3 { margin-top: 20px; font-size: 17.5px; font-weight: 500; }
.journey__step p { margin-top: 6px; font-size: 14.5px; line-height: 1.55; }


/* 7. Quality inspection sheet
   -------------------------------------------------------------------------- */
.quality {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: clamp(40px, 5vw, 72px);
  align-items: start;
}
.quality__intro p { margin-top: 16px; max-width: 30em; }
.inspection {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.inspection__head,
.inspection__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) minmax(0, .9fr);
  gap: 20px;
  padding: 16px 26px;
}
.inspection__head { background: var(--bg-alt); font-size: 14px; font-weight: 600; color: var(--muted); }
.inspection__row { align-items: start; padding-block: 24px; border-top: 1px solid var(--line); font-size: 15.5px; }
.inspection__item { display: flex; align-items: center; gap: 12px; color: var(--ink); font: 500 18px/1.3 var(--font-display); }
.inspection__box {
  display: grid;
  place-items: center;
  flex: none;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--c);
  color: #1E1F3B;
}
.inspection__box svg { width: 16px; height: 16px; }
.inspection__when { font-size: 14px; font-weight: 500; color: var(--muted); }


/* 8. Subsidy and finance
   -------------------------------------------------------------------------- */
.subsidy {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.subsidy h3 { font-size: 18px; font-weight: 500; }
.subsidy__chart {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.subsidy__bars { display: grid; gap: 18px; margin-top: 26px; }
.subsidy__bars li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}
.subsidy__size { font-weight: 600; color: var(--ink); }
.subsidy__track { height: 16px; border-radius: 8px; background: var(--bg-alt); }
.subsidy__bar { display: block; width: var(--share); height: 100%; border-radius: 8px; background: var(--c); }
.subsidy__amount {
  min-width: 96px;
  text-align: right;
  color: var(--ink);
  font: 600 22px/1 var(--font-display);
  font-variant-numeric: tabular-nums;
}
.subsidy__note { margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
/* On wide screens the chart stays in view while the blocks beside it scroll */
@media (min-width: 1024px) {
  .subsidy__chart { position: sticky; top: calc(var(--header-h) + 24px); }
}
/* The bars grow to their length once, when the chart is reached
   (modules/reveal.js holds them with .is-waiting until then) */
@media (prefers-reduced-motion: no-preference) {
  .subsidy__bar { transform-origin: left; animation: subsidy-grow .7s cubic-bezier(.2, .7, .2, 1) both; }
  .subsidy__bars li:nth-child(2) .subsidy__bar { animation-delay: .12s; }
  .subsidy__bars li:nth-child(3) .subsidy__bar { animation-delay: .24s; }
  .subsidy__chart.is-waiting .subsidy__bar { animation-play-state: paused; }
}
@keyframes subsidy-grow { from { transform: scaleX(0); } }

.subsidy__side { display: grid; gap: 20px; }
.subsidy__block {
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}

.subsidy__steps { counter-reset: step; display: grid; gap: 14px; margin-top: 18px; }
.subsidy__steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  font-size: 15.5px;
}
.subsidy__steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--bg);
  font: 600 14px/1 var(--font-display);
}
.subsidy__steps strong { color: var(--ink); }
.subsidy__finance {
  display: flex;
  gap: 12px;
  padding: 18px 20px;
  border-radius: var(--radius-l);
  background: color-mix(in srgb, var(--c) 14%, var(--bg));
  font-size: 15.5px;
  color: var(--ink);
}
.subsidy__finance svg { flex: none; width: 22px; height: 22px; }


/* 9. Pairings
   -------------------------------------------------------------------------- */
.pair__title { margin-bottom: 24px; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pair__card {
  display: flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color .2s;
}
.pair__card:hover { border-color: var(--c); }
/* the photo fills the card's height whatever its own shape */
.pair__photo { position: relative; flex: none; width: clamp(110px, 30%, 180px); min-height: 150px; }
.pair__photo img { position: absolute; inset: 0; }
.pair__body { flex: 1; min-width: 0; padding: 20px 22px; }
.pair__body strong { display: flex; align-items: center; gap: 10px; color: var(--ink); font: 500 20px/1.25 var(--font-display); }
.pair__body .swatch { display: inline-block; width: 18px; height: 18px; margin: 0; --bite: 6px; }
.pair__body small { display: block; margin-top: 2px; font-size: 14px; color: var(--muted); }
.pair__body span { display: block; margin-top: 10px; font-size: 15.5px; }
.pair__body .pair__more {
  display: inline-block;
  margin-top: 14px;
  color: var(--ink);
  font-size: 15px; font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.pair__card:hover .pair__more { text-decoration-color: var(--ink); }


/* 10. Enquiry
   -------------------------------------------------------------------------- */
.platform-enquiry {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.platform-enquiry__intro > p { margin-top: 18px; max-width: 30em; }
.platform-enquiry__intro h3 { margin-top: 32px; font-size: 17.5px; font-weight: 500; }
.platform-enquiry__intro .platform-enquiry__calc { margin-top: 12px; color: var(--ink); font-size: 15.5px; }
.platform-enquiry__calc .text-link { display: inline; min-height: 0; }


/* Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .solutions-intro__grid, .storage, .finder__grid,
  .platform-hero__grid, .quality, .subsidy, .platform-enquiry { grid-template-columns: minmax(0, 1fr); }
  .platform-hero__photo { aspect-ratio: 16 / 10; }
  .platform-hero__visual { margin-left: 20px; }
  .platform-hero__tile { width: 64px; height: 64px; left: -16px; bottom: -16px; --bite: 18px; --offset: -5px; }

  /* journey turns vertical */
  .journey { grid-template-columns: 1fr; gap: 0; }
  .journey::before { top: 22px; bottom: 48px; left: 17px; right: auto; width: 10px; height: auto; }
  .journey + .journey { margin-top: 0; }
  .journey:not(:last-of-type)::before { bottom: 0; }     /* rows join into one line */
  .journey + .journey::before { top: 0; }
  .journey__step { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; padding-bottom: 26px; }
  .journey__node { grid-row: span 2; box-shadow: inset 0 0 0 3px var(--c); }
  .journey__step h3 { margin-top: 9px; }
}
@media (max-width: 767px) {
  .foundation__platforms { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foundation__tile { min-height: 72px; }
  .foundation { --step: 55ms; }
  .foundation__tile::after { display: none; }
  .foundation__layers li { grid-template-columns: 1fr; gap: 4px; }

  .compare__row--head { display: none; }
  .compare__row { grid-template-columns: 1fr; gap: 10px; padding: 22px 4px; }
  .compare__label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }

  .inspection__head { display: none; }
  .inspection__row { grid-template-columns: 1fr; gap: 8px; }

  .pair { grid-template-columns: 1fr; }
}
@media (max-width: 479px) {
  .subsidy__bars li { grid-template-columns: 1fr auto; }
  .subsidy__track { grid-column: 1 / -1; grid-row: 2; }
  .finder__options--who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .finder__options--who .finder__option, .finder__options--who .finder__option:nth-child(n + 4) { grid-column: auto; }
  .finder__options--who .finder__option:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .finder__option span { padding: 10px 14px; }
}


/* ==========================================================================
   PLATFORM SIGNATURE SECTIONS
   Each platform page has one or two sections drawn from its own content.
   11. Ghar Surya: rooftop cross-section
   12. Ghar Surya: service promise band
   ========================================================================== */

/* 11. Rooftop cross-section
   -------------------------------------------------------------------------- */
.roof {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.roof__figure {
  position: sticky;          /* stays in view while the list scrolls past */
  top: calc(var(--header-h) + 24px);
  padding: clamp(16px, 2.4vw, 28px);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.roof__art { width: 100%; height: auto; overflow: visible; }

.roof__sun circle { fill: none; stroke: var(--gold); stroke-width: 3; }
.roof__sun path { stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.roof__soil { fill: var(--bg-alt); }
.roof__soil-marks { stroke: var(--line-strong); stroke-width: 2; stroke-linecap: round; }
.roof__ground { stroke: var(--ink); stroke-width: 2; }
.roof__wall { fill: var(--bg-alt); stroke: var(--line-strong); stroke-width: 2; }
.roof__opening { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; }
.roof__slab { fill: var(--line-strong); }
.roof__footing { fill: var(--muted); }
.roof__frame { fill: none; stroke: var(--muted); stroke-width: 4; stroke-linecap: round; }
.roof__panel { fill: var(--ink); }
.roof__cells { stroke: var(--bg); stroke-width: 1.5; opacity: .55; }
.roof__cable { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 7 5; stroke-linejoin: round; }
.roof__seal { fill: var(--c); }
.roof__box { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.roof__screen { fill: var(--c); }
.roof__dial { fill: none; stroke: var(--ink); stroke-width: 2; }
.roof__wire { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.roof__earth { fill: none; stroke: var(--lime); stroke-width: 3.5; stroke-linejoin: round; }
.roof__pit { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.roof__labels text { fill: var(--muted); font: 500 13px var(--font-body); }

.roof__marker { transform-box: fill-box; transform-origin: center; transition: transform .2s; }
.roof__marker circle { fill: var(--c); stroke: var(--surface); stroke-width: 4; }
.roof__marker text { fill: #1E1F3B; font: 600 15px var(--font-display); }

.roof__group {
  margin: 0 0 6px;
  font: 600 14.5px/1.4 var(--font-body);
  color: var(--muted);
}
.roof__group + .roof__list { margin-bottom: 26px; }
.roof__point {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 10px 13px 0;
  border-bottom: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15.5px;
  transition: background-color .2s;
}
.roof__point strong { display: block; color: var(--ink); font: 500 17px/1.3 var(--font-display); margin-bottom: 2px; }
.roof__n {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c);
  color: #1E1F3B;
  font: 600 14px/1 var(--font-display);
}
.roof__point--handover .roof__n { background: transparent; box-shadow: inset 0 0 0 2px var(--ink); color: var(--ink); }
.roof__point[data-point]:hover,
.roof__point[data-point]:focus-visible { background: color-mix(in srgb, var(--c) 12%, transparent); }

/* Hovering a point in the list lifts its marker on the drawing */
.roof:has([data-point="1"]:is(:hover, :focus-visible)) [data-marker="1"],
.roof:has([data-point="2"]:is(:hover, :focus-visible)) [data-marker="2"],
.roof:has([data-point="3"]:is(:hover, :focus-visible)) [data-marker="3"],
.roof:has([data-point="4"]:is(:hover, :focus-visible)) [data-marker="4"],
.roof:has([data-point="5"]:is(:hover, :focus-visible)) [data-marker="5"],
.roof:has([data-point="6"]:is(:hover, :focus-visible)) [data-marker="6"] { transform: scale(1.3); }
.roof:has([data-point]:is(:hover, :focus-visible)) .roof__marker circle { fill: color-mix(in srgb, var(--c) 45%, var(--surface)); }
.roof:has([data-point="1"]:is(:hover, :focus-visible)) [data-marker="1"] circle,
.roof:has([data-point="2"]:is(:hover, :focus-visible)) [data-marker="2"] circle,
.roof:has([data-point="3"]:is(:hover, :focus-visible)) [data-marker="3"] circle,
.roof:has([data-point="4"]:is(:hover, :focus-visible)) [data-marker="4"] circle,
.roof:has([data-point="5"]:is(:hover, :focus-visible)) [data-marker="5"] circle,
.roof:has([data-point="6"]:is(:hover, :focus-visible)) [data-marker="6"] circle { fill: var(--c); }


/* 12. Service promise (Ghar Surya)
   A tall photo beside the profile's four words and five numbered promises.
   -------------------------------------------------------------------------- */
.pledge { background: color-mix(in srgb, var(--c) 9%, var(--bg)); }
.pledge__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: stretch;
}
.pledge__visual { position: relative; margin: 0 0 22px 22px; }
.pledge__photo { height: 100%; min-height: 420px; border-radius: 22px; }
.pledge__tile {
  position: absolute; left: -22px; bottom: -22px;
  width: 76px; height: 76px;
  background: var(--c);
  --bite: 21px;
  --offset: -6px;
}
.pledge__words {
  margin-top: 16px;
  color: var(--ink);
  font: 300 clamp(20px, 2vw, 26px)/1.35 var(--font-display);
  letter-spacing: -.01em;
}
.pledge__list { margin-top: 26px; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); }
.pledge__list li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent);
}
.pledge__n {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--c);
  color: #1E1F3B;
  font: 600 15px/1 var(--font-display);
}
.pledge__list h3 { font-size: 19px; font-weight: 500; }
.pledge__list p { margin-top: 4px; font-size: 15.5px; max-width: 38em; }

@media (max-width: 1023px) {
  .roof, .pledge__grid { grid-template-columns: minmax(0, 1fr); }
  .pledge__visual { margin: 0 0 16px 16px; }
  .pledge__photo { height: auto; min-height: 0; aspect-ratio: 16 / 10; }
  .pledge__tile { width: 60px; height: 60px; left: -16px; bottom: -16px; --bite: 17px; --offset: -5px; }
  .roof__figure { position: static; }
}
@media (max-width: 599px) {
  .roof__labels { display: none; }
  .roof__figure { padding: 10px; }
}


/* 13. Surya Setu: stage gates
   The heading and a three-phase rail stay in place on wide screens while
   the eight stages scroll beside them. The rail marks the phase in view
   (modules/spy.js sets aria-current).
   -------------------------------------------------------------------------- */
.stages {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.stages__intro { margin-top: 16px; max-width: 30em; }
.stages__rail { display: grid; margin-top: 28px; border-left: 3px solid var(--line); }
.stages__rail a {
  display: block;
  margin-left: -3px;
  padding: 10px 0 10px 18px;
  border-left: 3px solid transparent;
  color: var(--muted);
  text-decoration: none;
  transition: border-color .2s, color .2s;
}
.stages__rail strong { display: block; color: inherit; font: 500 19px/1.3 var(--font-display); }
.stages__rail span { font-size: 14px; }
.stages__rail a:hover { color: var(--ink); }
.stages__rail a[aria-current] { border-left-color: var(--c); color: var(--ink); }

.stages__group + .stages__group { margin-top: 28px; }
.stages__group { scroll-margin-top: calc(var(--header-h) + 24px); }
.stages__phase {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 4px;
  color: var(--ink);
  font: 600 14.5px/1.3 var(--font-body);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.stages__phase::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.stage {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.stages__group:last-child .stage:last-child { border-bottom: 0; }
.stage__n {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 16%, var(--bg));
  color: var(--ink);
  font: 600 17px/1 var(--font-display);
}
.stage__tag { color: color-mix(in srgb, var(--c) 70%, var(--ink)); font-size: 13.5px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.stage h4 { margin-top: 2px; color: var(--ink); font: 500 20px/1.3 var(--font-display); }
.stage h4 + p { margin-top: 4px; font-size: 15.5px; }

@media (min-width: 1024px) {
  .stages__aside { position: sticky; top: calc(var(--header-h) + 32px); }
}
@media (max-width: 1023px) {
  .stages { grid-template-columns: minmax(0, 1fr); }
  .stages__rail { display: none; }
}


/* 14. Surya Setu: commercial models ledger
   Desktop: questions down the left, one column per model (rows aligned
   with subgrid). Mobile: one block per model.
   -------------------------------------------------------------------------- */
.ledger {
  display: grid;
  grid-template-columns: minmax(150px, .75fr) repeat(var(--models), minmax(0, 1fr));
  grid-template-rows: auto repeat(5, auto);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  overflow: hidden;
}
.ledger__labels,
.ledger__model {
  display: grid;
  grid-row: 1 / -1;
  grid-template-rows: subgrid;
}
.ledger__model { border-left: 1px solid var(--line); }
.ledger__labels span {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 600;
}
.ledger__labels .ledger__corner { border-top: 0; }
.ledger__head {
  padding: 22px 20px 18px;
  box-shadow: inset 0 4px 0 var(--c);
}
.ledger__head h3 { font-size: 19px; font-weight: 500; line-height: 1.25; }
.ledger__head p { margin-top: 4px; color: var(--muted); font-size: 14px; }
.ledger__cell {
  padding: 18px 20px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 15.5px;
}
.ledger__term {                 /* the question, read aloud; shown on mobile */
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.ledger__note { margin-top: 14px; max-width: 52em; color: var(--muted); font-size: 14.5px; }

@media (max-width: 767px) {
  .ledger { display: block; border: 0; background: none; overflow: visible; }
  .ledger__labels { display: none; }
  .ledger__model {
    display: block;
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius-l);
    background: var(--surface);
    overflow: hidden;
  }
  .ledger__term {
    position: static;
    display: block;
    width: auto; height: auto;
    clip: auto;
    white-space: normal;
    margin-bottom: 2px;
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 600;
  }
  .ledger__cell { padding: 14px 20px; }
}


/* 15. SG Agri Solar: solar pump drawing (how a solar pump works)
   -------------------------------------------------------------------------- */
.platform-hero__visual--drawn { position: relative; }
.agri-draw { margin: 0; }
.agri-draw svg { display: block; width: 100%; height: auto; }
.pumpworks {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.pumpworks__parts { margin-top: 26px; }
.pumpworks__parts li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-strong);
}
.pumpworks__n {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c);
  color: #1E1F3B;
  font: 600 16px/1 var(--font-display);
}
.pumpworks__parts h3 { font-size: 20px; font-weight: 500; }
.pumpworks__parts p { margin-top: 2px; font-size: 15.5px; }
.pumpworks__note { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 15px; }
.pumpworks__art { max-width: 480px; justify-self: end; width: 100%; }
/* the water moves up the borewell and out to the field while on screen */
@media (prefers-reduced-motion: no-preference) {
  .agri-draw__main, .agri-draw__flow { stroke-dasharray: 10 8; animation: agri-water 1.4s linear infinite; }
  .agri-draw.is-offscreen .agri-draw__main, .agri-draw.is-offscreen .agri-draw__flow { animation-play-state: paused; }
}
@keyframes agri-water { to { stroke-dashoffset: -18; } }
.agri-draw__sky { fill: color-mix(in srgb, var(--sky) 10%, var(--surface)); }
.agri-draw__soil { fill: color-mix(in srgb, var(--muted) 12%, var(--surface)); }
.agri-draw__stratum { fill: color-mix(in srgb, var(--muted) 20%, var(--surface)); }
.agri-draw__soil-marks { stroke: var(--line-strong); stroke-width: 2.5; stroke-linecap: round; }
.agri-draw__water { fill: color-mix(in srgb, var(--sky) 38%, var(--surface)); }
.agri-draw__field { fill: color-mix(in srgb, var(--lime) 55%, var(--surface)); }
.agri-draw__sun circle { fill: none; stroke: var(--gold); stroke-width: 3.5; }
.agri-draw__sun path { stroke: var(--gold); stroke-width: 3.5; stroke-linecap: round; }
.agri-draw__leg { stroke: var(--muted); stroke-width: 4; stroke-linecap: round; }
.agri-draw__leg--rear { opacity: .55; }
.agri-draw__footing { fill: var(--muted); }
.agri-draw__panel { fill: var(--ink); }
.agri-draw__cells { stroke: var(--surface); stroke-width: 1.5; opacity: .45; }
.agri-draw__cable { fill: none; stroke: var(--ink); stroke-width: 3; stroke-dasharray: 7 5; }
.agri-draw__post { fill: var(--muted); }
.agri-draw__box { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.agri-draw__screen { fill: var(--c); }
.agri-draw__led { fill: var(--ink); }
.agri-draw__casing { fill: var(--surface); stroke: var(--ink); stroke-width: 2.5; }
.agri-draw__main { stroke: var(--sky); stroke-width: 4; }
.agri-draw__pump { fill: var(--ink); }
.agri-draw__pipe { fill: none; stroke: var(--ink); stroke-width: 6; stroke-linejoin: round; }
.agri-draw__flow { fill: none; stroke: var(--sky); stroke-width: 5; stroke-linecap: round; }
.agri-draw__channel { fill: var(--sky); }
.agri-draw__crop { fill: none; stroke: #2E7D4F; stroke-width: 3; stroke-linecap: round; }
.agri-draw__labels text { fill: var(--ink); font: 500 17px var(--font-display); }
.agri-draw__labels .agri-draw__note { fill: var(--muted); font: 500 14px var(--font-body); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .agri-draw__crop { stroke: var(--lime); }
}
:root[data-theme="dark"] .agri-draw__crop { stroke: var(--lime); }


/* 16. SG Agri Solar: scheme readiness file
   -------------------------------------------------------------------------- */
.readiness {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: start;
}
.readiness__intro > p { margin-top: 16px; max-width: 34em; }
.readiness__photo { margin: 28px 0 0; aspect-ratio: 16 / 10; border-radius: 22px; }
/* the file's folded corner shows the section colour behind it */
.section--alt .file::after { background: linear-gradient(225deg, var(--bg-alt) 50%, color-mix(in srgb, var(--c) 40%, var(--surface)) 50%); }

@media (min-width: 1024px) {
  .readiness__intro { position: sticky; top: calc(var(--header-h) + 32px); }
}

/* Projects we take on: three photo cards, each with a link to the enquiry form */
.farmjobs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 32px); }
.farmjob {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  transition: border-color .2s;
}
.farmjob:hover { border-color: var(--c); }
.farmjob__photo { aspect-ratio: 4 / 3; }
.farmjob__body { flex: 1; display: flex; flex-direction: column; padding: 20px 22px 22px; }
.farmjob h3 { font-size: 21px; font-weight: 500; }
.farmjob p { margin-top: 6px; font-size: 15.5px; }
.farmjob__link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 16px;
  color: var(--ink);
  font-size: 15px; font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.farmjob__link:hover { text-decoration-color: var(--ink); }

/* The seven steps in three blocks */
.fsteps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.fsteps__block {
  padding: clamp(22px, 2.6vw, 30px);
  border: 1px solid var(--line);
  border-top: 6px solid var(--c);
  border-radius: var(--radius-s) var(--radius-s) var(--radius-l) var(--radius-l);
  background: var(--surface);
}
.fsteps__block h3 { font-size: 22px; font-weight: 500; }
.fsteps__block ol { margin-top: 12px; }
.fsteps__block li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
}
.fsteps__block li:last-child { padding-bottom: 0; }
.fsteps__n {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 30%, var(--bg));
  color: var(--ink);
  font: 600 15px/1 var(--font-display);
}
.fsteps__block strong { display: block; color: var(--ink); font-size: 16.5px; font-weight: 600; }

.file {
  position: relative;
  padding: clamp(24px, 3vw, 34px);
  border: 1px solid var(--line-strong);
  border-radius: 6px 6px 6px 6px;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box;
  box-shadow: 8px 8px 0 color-mix(in srgb, var(--c) 35%, var(--bg));
}
/* folded corner */
.file::after {
  content: "";
  position: absolute; top: -1px; right: -1px;
  width: 34px; height: 34px;
  background: linear-gradient(225deg, var(--bg) 50%, color-mix(in srgb, var(--c) 40%, var(--surface)) 50%);
  border-bottom-left-radius: 6px;
}
.file__head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 2px solid var(--ink); }
.file__tile { flex: none; width: 40px; height: 40px; background: var(--c); --bite: 11px; --offset: -2px; }
.file__label { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.file__head h3 { font-size: 22px; font-weight: 500; }
.file__lead { margin-top: 16px; color: var(--ink); font-size: 15px; font-weight: 500; }
.file__checks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 14px;
  padding: 13px 0;
  border-bottom: 1px dashed var(--line-strong);
  font-size: 14.5px;
}
.file__checks strong { display: block; color: var(--ink); font-size: 16px; font-weight: 600; }
.file__box {
  width: 22px; height: 22px;
  margin-top: 1px;
  border: 2px solid var(--ink);
  border-radius: 4px;
}
.file__foot { margin-top: 16px; color: var(--muted); font-size: 14px; }


/* 17. SG Agri Solar: field checks
   -------------------------------------------------------------------------- */
.field-checks {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: stretch;
}
.field-checks__photo { margin: 0; min-height: 380px; border-radius: 22px; }
.field-checks__photo img { object-position: 24% 50%; }   /* keep the farmer in frame */
.field-checks__intro { margin-top: 16px; max-width: 34em; }
.field-checks__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(20px, 3vw, 36px);
  margin-top: 26px;
}
.field-checks__list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--line-strong);
  font-size: 15px;
}
.field-checks__list strong { display: block; color: var(--ink); font: 500 17px/1.3 var(--font-display); margin-bottom: 3px; }
.field-checks__tick {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c);
  color: #1E1F3B;
}
.field-checks__tick svg { width: 16px; height: 16px; }

@media (max-width: 1023px) {
  .readiness, .field-checks, .pumpworks { grid-template-columns: minmax(0, 1fr); }
  .pumpworks__art { justify-self: start; }
  .field-checks__photo { min-height: 0; aspect-ratio: 16 / 9; }
  .fsteps { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 767px) {
  .farmjobs { grid-template-columns: minmax(0, 1fr); }
  .farmjob__photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 599px) {
  .field-checks__list { grid-template-columns: 1fr; }
}

/* Farm drawing: bigger labels on phones, minor notes dropped */
@media (max-width: 599px) {
  .agri-draw__labels text { font-size: 23px; }
  .agri-draw__labels .agri-draw__note { display: none; }
}


/* 18. Energy flow (Solutions overview storage; reusable on SG Hybrid)
   Radio modes light up paths with :has(), so it works without JS.
   -------------------------------------------------------------------------- */
.eflow { min-width: 0; }
.eflow__modes {
  display: inline-flex; gap: 4px;
  margin: 0 0 16px; padding: 4px; border: 0;
  background: var(--surface);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.eflow__mode { position: relative; }
.eflow__mode input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.eflow__mode span {
  display: block; padding: 9px 18px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 15px; font-weight: 500; color: var(--muted);
  transition: background-color .2s, color .2s;
}
.eflow__mode:hover span { color: var(--ink); }
.eflow__mode input:checked + span { background: var(--ink); color: var(--bg); }
.eflow__mode input:focus-visible + span { outline: 2px solid var(--c); outline-offset: 2px; }

.eflow__stage {
  margin: 0; padding: clamp(12px, 2vw, 24px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
}
.eflow__stage svg { display: block; width: 100%; height: auto; }

/* paths: a quiet track, with moving dots when the path is live */
.eflow__track { fill: none; stroke: var(--line-strong); stroke-width: 6; stroke-linecap: round; }
.eflow__dots {
  fill: none; stroke: var(--c); stroke-width: 8; stroke-linecap: round;
  stroke-dasharray: 0 16; opacity: 0;
  transition: opacity .25s;
}

/* nodes */
.eflow__box { fill: var(--surface); stroke: var(--line-strong); stroke-width: 2; transition: stroke .25s, fill .25s; }
.eflow__glyph { fill: none; stroke: var(--muted); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: stroke .25s; }
.eflow__label { fill: var(--ink); font: 500 17px var(--font-display); }
.eflow__node--hub .eflow__box { fill: var(--ink); stroke: var(--ink); }
.eflow__node--hub .eflow__glyph { stroke: var(--bg); }

.eflow__tag { fill: var(--muted); font: 500 14px var(--font-body); opacity: 0; transition: opacity .25s; }
.eflow__tag--alert { fill: var(--coral); }
.eflow__cut { opacity: 0; transition: opacity .25s; }
.eflow__cut circle { fill: var(--surface); stroke: var(--coral); stroke-width: 2.5; }
.eflow__cut path { stroke: var(--coral); stroke-width: 3; stroke-linecap: round; }

/* captions: one per mode */
.eflow__caption { display: none; margin-top: 16px; max-width: 40em; }
.eflow__caption strong { color: var(--ink); font-weight: 600; }

/* ---- mode rules ---- */
.eflow:has([value="peak"]:checked)   :is([data-path="solar"], [data-path="batt"], [data-path="load"]) .eflow__dots,
.eflow:has([value="backup"]:checked) :is([data-path="solar"], [data-path="batt"], [data-path="load"]) .eflow__dots,
.eflow:has([value="ev"]:checked)     :is([data-path="solar"], [data-path="batt"], [data-path="ev"]) .eflow__dots { opacity: 1; }

.eflow:has([value="peak"]:checked)   :is([data-node="solar"], [data-node="batt"], [data-node="load"]) .eflow__box,
.eflow:has([value="backup"]:checked) :is([data-node="solar"], [data-node="batt"], [data-node="load"]) .eflow__box,
.eflow:has([value="ev"]:checked)     :is([data-node="solar"], [data-node="batt"], [data-node="ev"]) .eflow__box {
  stroke: var(--c); fill: color-mix(in srgb, var(--c) 10%, var(--surface));
}
.eflow:has([value="peak"]:checked)   :is([data-node="solar"], [data-node="batt"], [data-node="load"]) .eflow__glyph,
.eflow:has([value="backup"]:checked) :is([data-node="solar"], [data-node="batt"], [data-node="load"]) .eflow__glyph,
.eflow:has([value="ev"]:checked)     :is([data-node="solar"], [data-node="batt"], [data-node="ev"]) .eflow__glyph { stroke: var(--ink); }

/* idle parts fade back */
.eflow:has([value="peak"]:checked)   :is([data-path="grid"], [data-path="ev"]) .eflow__track,
.eflow:has([value="backup"]:checked) :is([data-path="grid"], [data-path="ev"]) .eflow__track,
.eflow:has([value="ev"]:checked)     :is([data-path="grid"], [data-path="load"]) .eflow__track { opacity: .45; }
.eflow:has([value="backup"]:checked) [data-path="grid"] .eflow__track { stroke-dasharray: 4 10; }
.eflow:has([value="backup"]:checked) .eflow__cut { opacity: 1; }

.eflow:has([value="peak"]:checked)   [data-for="peak"],
.eflow:has([value="backup"]:checked) [data-for="backup"],
.eflow:has([value="ev"]:checked)     [data-for="ev"] { opacity: 1; }
.eflow:has([value="peak"]:checked)   .eflow__caption[data-for="peak"],
.eflow:has([value="backup"]:checked) .eflow__caption[data-for="backup"],
.eflow:has([value="ev"]:checked)     .eflow__caption[data-for="ev"] { display: block; }

/* Older browsers without :has(): the buttons can't switch modes there,
   so hide them and show all three explanations under the drawing. */
@supports not selector(:has(a)) {
  .eflow__modes { display: none; }
  .eflow__caption { display: block; }
}

/* moving dots, only when motion is welcome */
@media (prefers-reduced-motion: no-preference) {
  .eflow__dots { animation: eflow-run 1.1s linear infinite; }
}
@keyframes eflow-run { to { stroke-dashoffset: -16; } }
/* the dots rest while the diagram is off screen (modules/reveal.js) */
.eflow.is-offscreen .eflow__dots { animation-play-state: paused; }

@media (max-width: 599px) {
  /* three equal tabs on one row; a long label wraps inside its own tab */
  .eflow__modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-radius: 16px; }
  .eflow__mode span {
    display: grid; place-items: center;
    height: 100%; min-height: 40px;
    padding: 6px 8px;
    border-radius: 12px;
    white-space: normal; text-align: center; font-size: 14px; line-height: 1.25;
  }
  .eflow__label { font-size: 22px; }
  .eflow__tag { font-size: 19px; }
}


/* 19. SG Hybrid: a day with a battery
   Desktop: one strip, phases as columns (widths follow the hours),
   lanes aligned across with subgrid. Mobile: one card per phase.
   -------------------------------------------------------------------------- */
.day {
  display: grid;
  grid-template-columns: 112px var(--phases);
  grid-template-rows: auto repeat(3, auto);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
  overflow: hidden;
}
.day__lanes,
.day__phase { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; }
.day__cells { display: grid; grid-row: 2 / -1; grid-template-rows: subgrid; }
.day__phase { border-left: 1px solid var(--line); }
.day__lanes span {
  display: flex; align-items: center;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font: 600 14.5px/1.3 var(--font-body);
}
.day__lanes .day__corner { border-top: 0; }

/* sky band: colour of that part of the day */
.day__sky {
  display: flex; align-items: center; gap: 10px;
  min-height: 64px;
  padding: 14px 16px;
  color: #1E1F3B;
  font: 500 16px/1.2 var(--font-display);
}
.day__phase[data-sky="night"] .day__sky { background: #1E1F3B; color: #FFFFFF; }
.day__phase[data-sky="dawn"]  .day__sky { background: linear-gradient(90deg, #F6D7C3, #FBE7B6); }
.day__phase[data-sky="day"]   .day__sky { background: #D8F2FA; }
.day__phase[data-sky="dusk"]  .day__sky { background: linear-gradient(90deg, #FBD8A6, #F3B9A6); }
.day__orb {
  flex: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold);
}
.day__phase[data-sky="day"]  .day__orb { width: 20px; height: 20px; box-shadow: 0 0 0 5px rgba(250, 196, 35, .28); }
.day__phase[data-sky="night"] .day__orb { background: transparent; box-shadow: inset -5px -2px 0 0 #E6E7F7; }

.day__cell {
  display: flex; align-items: center;
  min-height: 58px;
  padding: 12px 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.35;
}
.day__term {                    /* lane name, read aloud; shown on mobile */
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.day__cell[data-state="off"] { color: var(--muted); }
.day__cell[data-lane="solar"][data-state="on"] { background: color-mix(in srgb, var(--gold) 24%, var(--surface)); }
.day__cell[data-lane="grid"][data-state="on"]  { background: color-mix(in srgb, var(--indigo) 12%, var(--surface)); }
.day__cell[data-state="charge"],
.day__key [data-state="charge"]::before {
  background: repeating-linear-gradient(135deg,
    color-mix(in srgb, var(--sky) 26%, var(--surface)) 0 8px,
    color-mix(in srgb, var(--sky) 12%, var(--surface)) 8px 16px);
}
.day__cell[data-state="discharge"],
.day__key [data-state="discharge"]::before { background: color-mix(in srgb, var(--sky) 38%, var(--surface)); }
.day__cell[data-state="discharge"] { font-weight: 600; }
.day__cell[data-state="reserve"],
.day__key [data-state="reserve"]::before { outline: 2px dashed color-mix(in srgb, var(--sky) 70%, var(--surface)); outline-offset: -7px; }
.day__cell[data-state="avoided"],
.day__key [data-state="avoided"]::before {
  background: repeating-linear-gradient(45deg, transparent 0 6px, var(--line-strong) 6px 7px);
}
.day__cell[data-state="avoided"] { color: var(--muted); }

.day__key { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 16px; color: var(--muted); font-size: 14px; }
.day__key li { display: flex; align-items: center; gap: 8px; }
.day__key li::before {
  content: "";
  width: 22px; height: 14px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
}
.day__key [data-state="reserve"]::before { outline-offset: -4px; outline-width: 1.5px; }
.day__note { margin-top: 10px; max-width: 52em; color: var(--muted); font-size: 14.5px; }

.storage--hybrid .storage__body > p:first-of-type { margin-top: 18px; }

@media (max-width: 1023px) {
  .day { grid-template-columns: 96px var(--phases); }
  .day__cell { padding: 10px; font-size: 14px; }
  .day__sky { padding: 12px 10px; font-size: 15px; }
}
@media (max-width: 767px) {
  .day { display: block; border: 0; background: none; overflow: visible; }
  .day__lanes { display: none; }
  .day__phase {
    display: block;
    border: 1px solid var(--line);
    border-radius: var(--radius-m);
    background: var(--surface);
    overflow: hidden;
  }
  .day__phase + .day__phase { margin-top: 12px; }
  .day__cells { display: block; }
  .day__sky { min-height: 0; }
  .day__cell { display: grid; grid-template-columns: 74px 1fr; gap: 10px; min-height: 0; }
  .day__term {
    position: static;
    width: auto; height: auto;
    overflow: visible;
    clip: auto;
    color: var(--muted);
    font-weight: 600;
  }
}


/* 20. SG Hybrid: sizing questions, design pillars, uses
   The sizing heading stays in place on wide screens while the seven
   questions scroll beside it.
   -------------------------------------------------------------------------- */
.sizing {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: start;
}
.sizing__aside p { margin-top: 16px; max-width: 30em; }
.asks { border-top: 1px solid var(--line-strong); }
.ask {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-strong);
}
.ask__n {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 18%, var(--bg));
  color: var(--ink);
  font: 600 18px/1 var(--font-display);
}
.ask__q { color: var(--ink); font: 500 clamp(19px, 1.8vw, 23px)/1.3 var(--font-display); }
.ask__term {
  margin-top: 6px;
  color: color-mix(in srgb, var(--c) 55%, var(--ink));
  font-size: 13.5px; font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}
@media (min-width: 1024px) {
  .sizing__aside { position: sticky; top: calc(var(--header-h) + 32px); }
}

.hybrid-band { background: color-mix(in srgb, var(--c) 8%, var(--bg)); }
.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 3.4vw, 40px);
}
.pillar { padding: clamp(20px, 2.4vw, 28px); border-radius: var(--radius-l); background: var(--surface); }
.pillar__n {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c);
  color: #1E1F3B;
  font: 600 16px/1 var(--font-display);
}
.pillar h3 { margin-top: 16px; font-size: 20px; font-weight: 500; }
.pillar p { margin-top: 6px; font-size: 15px; }

.uses {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  margin-top: clamp(40px, 5vw, 64px);
}
.uses__photo { margin: 0; aspect-ratio: 10 / 7; border-radius: 22px; }
.uses__title { font-size: clamp(22px, 2.2vw, 28px); font-weight: 500; }
.uses__list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 28px; margin-top: 16px; }
.uses__list li {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 0;
  border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent);
  color: var(--ink);
  font-size: 16px; font-weight: 500;
}
.uses__list svg {
  flex: none;
  width: 24px; height: 24px;
  padding: 4px;
  border-radius: 50%;
  background: var(--c);
  color: #1E1F3B;
}

@media (max-width: 1023px) {
  .sizing, .uses { grid-template-columns: minmax(0, 1fr); }
  .pillars { grid-template-columns: 1fr 1fr; }
  .uses__photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 599px) {
  .ask { grid-template-columns: 40px minmax(0, 1fr); gap: 14px; }
  .ask__n { width: 40px; height: 40px; font-size: 16px; }
  .pillars { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .uses__list { grid-template-columns: minmax(0, 1fr); }
}


/* 21. SG Solar Care: maintenance cycle wheel
   Hovering or focusing a stage lights its segment, and the reverse.
   -------------------------------------------------------------------------- */
.cycle {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.cycle__text > p { margin-top: 16px; max-width: 34em; }
.cycle__list { margin-top: 28px; border-top: 1px solid var(--line-strong); }
.cycle__item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 10px 14px 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 4px;
  cursor: default;
  outline: none;
  transition: background-color .2s;
}
.cycle__item strong { display: block; color: var(--ink); font: 500 17px/1.3 var(--font-display); }
.cycle__item span:last-child { font-size: 15px; }
.cycle__n {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 22%, var(--surface));
  color: var(--ink);
  font: 600 14px/1 var(--font-display);
}
.cycle__item:hover, .cycle__item:focus-visible { background: color-mix(in srgb, var(--c) 10%, transparent); }
.cycle__item:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.cycle__item:hover .cycle__n, .cycle__item:focus-visible .cycle__n { background: var(--c); color: #12332D; }

.cycle__figure { margin: 0; }
.cycle__figure svg { display: block; width: 100%; max-width: 520px; height: auto; margin-inline: auto; }
.cycle__seg path {
  fill: color-mix(in srgb, var(--c) 34%, #FFFFFF);       /* light in both themes, so the dark numbers stay readable */
  stroke: var(--surface);
  stroke-width: 2;
  transition: fill .2s;
}
.cycle__seg:nth-child(odd) path { fill: color-mix(in srgb, var(--c) 52%, #FFFFFF); }
.cycle__seg text { fill: #12332D; font: 600 24px var(--font-display); pointer-events: none; }
.cycle__seg { cursor: default; }
.cycle__seg:hover path { fill: var(--c); }
.cycle__hub { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
/* the segments appear clockwise, one by one, when the wheel is reached
   (modules/reveal.js holds them with .is-waiting until then) */
@media (prefers-reduced-motion: no-preference) {
  .cycle__seg { animation: cycle-in .4s ease both; }
  .cycle__seg[data-n="2"] { animation-delay: .12s; }
  .cycle__seg[data-n="3"] { animation-delay: .24s; }
  .cycle__seg[data-n="4"] { animation-delay: .36s; }
  .cycle__seg[data-n="5"] { animation-delay: .48s; }
  .cycle__seg[data-n="6"] { animation-delay: .6s; }
  .cycle__seg[data-n="7"] { animation-delay: .72s; }
  .cycle__figure.is-waiting .cycle__seg { animation-play-state: paused; }
}
@keyframes cycle-in { from { opacity: 0; } }
.cycle__hub-text { fill: var(--ink); font: 500 23px var(--font-display); }

.cycle:has(.cycle__item[data-n="1"]:is(:hover, :focus-visible)) .cycle__seg[data-n="1"] path,
.cycle:has(.cycle__item[data-n="2"]:is(:hover, :focus-visible)) .cycle__seg[data-n="2"] path,
.cycle:has(.cycle__item[data-n="3"]:is(:hover, :focus-visible)) .cycle__seg[data-n="3"] path,
.cycle:has(.cycle__item[data-n="4"]:is(:hover, :focus-visible)) .cycle__seg[data-n="4"] path,
.cycle:has(.cycle__item[data-n="5"]:is(:hover, :focus-visible)) .cycle__seg[data-n="5"] path,
.cycle:has(.cycle__item[data-n="6"]:is(:hover, :focus-visible)) .cycle__seg[data-n="6"] path,
.cycle:has(.cycle__item[data-n="7"]:is(:hover, :focus-visible)) .cycle__seg[data-n="7"] path { fill: var(--c); }
.cycle:has(.cycle__seg[data-n="1"]:hover) .cycle__item[data-n="1"],
.cycle:has(.cycle__seg[data-n="2"]:hover) .cycle__item[data-n="2"],
.cycle:has(.cycle__seg[data-n="3"]:hover) .cycle__item[data-n="3"],
.cycle:has(.cycle__seg[data-n="4"]:hover) .cycle__item[data-n="4"],
.cycle:has(.cycle__seg[data-n="5"]:hover) .cycle__item[data-n="5"],
.cycle:has(.cycle__seg[data-n="6"]:hover) .cycle__item[data-n="6"],
.cycle:has(.cycle__seg[data-n="7"]:hover) .cycle__item[data-n="7"] { background: color-mix(in srgb, var(--c) 10%, transparent); }

@media (max-width: 1023px) {
  /* heading and intro, then the wheel, then the list */
  .cycle { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .cycle__text { display: contents; }
  .cycle__text > h2 { order: 1; }
  .cycle__text > p { order: 2; }
  .cycle__figure { order: 3; max-width: 400px; width: 100%; margin: 28px auto 0; }
  .cycle__list { order: 4; }
}


/* 22. SG Solar Care: from alarm to fix, records, sign-up options
   -------------------------------------------------------------------------- */
.fault {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}
.fault__step {
  position: relative;
  padding: 24px 40px 26px 26px;
  background: var(--surface);
  clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%, 22px 50%);
}
.fault__step:first-child { clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 50%, calc(100% - 22px) 100%, 0 100%); border-radius: var(--radius-m) 0 0 var(--radius-m); }
.fault__step:not(:first-child) { padding-left: 42px; }
.fault__step:nth-child(1) { background: color-mix(in srgb, var(--c) 14%, var(--surface)); }
.fault__step:nth-child(2) { background: color-mix(in srgb, var(--c) 24%, var(--surface)); }
.fault__step:nth-child(3) { background: color-mix(in srgb, var(--c) 36%, var(--surface)); }
.fault__step:nth-child(4) { background: color-mix(in srgb, var(--c) 50%, var(--surface)); }
.fault__n { color: var(--ink); font: 600 14px/1 var(--font-display); opacity: .7; }
.fault__step h3 { margin-top: 10px; color: var(--ink); font: 500 18px/1.25 var(--font-display); }
.fault__step p { margin-top: 6px; color: var(--ink); font-size: 15px; }

/* Kept on record: the photo stays in place on wide screens while the
   four records scroll beside it */
.record {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.record__visual { margin: 0; }
.record__photo { aspect-ratio: 4 / 5; border-radius: 22px; }
.record__list { display: grid; gap: 14px; }
.record__item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 18px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.record__n {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 26%, var(--surface));
  color: var(--ink);
  font: 600 17px/1 var(--font-display);
}
.record__item h3 { font-size: 21px; font-weight: 500; }
.record__item p { margin-top: 6px; font-size: 15.5px; }
@media (min-width: 1024px) {
  .record__visual { position: sticky; top: calc(var(--header-h) + 24px); }
  .record__photo { max-height: calc(100vh - var(--header-h) - 72px); }
}

.signup { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.signup__card {
  position: relative;
  padding: 30px 30px 30px 88px;
  border: 1px solid var(--line);
  border-top: 6px solid var(--c);
  border-radius: var(--radius-s) var(--radius-s) var(--radius-l) var(--radius-l);
  background: var(--surface);
}
.signup__tile { position: absolute; left: 30px; top: 32px; width: 36px; height: 36px; background: var(--c); --bite: 11px; --offset: -3px; }
.signup__card h3 { color: var(--ink); font: 500 24px/1.25 var(--font-display); }
.signup__card p { margin-top: 6px; font-size: 16px; }
.signup__link {
  display: inline-block;
  margin-top: 16px;
  color: var(--ink);
  font-size: 15px; font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--c);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.signup__link:hover { text-decoration-color: var(--ink); }

@media (max-width: 1023px) {
  .fault { grid-template-columns: 1fr 1fr; gap: 10px; }
  .fault__step, .fault__step:first-child { clip-path: none; border-radius: var(--radius-m); padding: 22px 22px 24px; }
  .fault__step:not(:first-child) { padding-left: 22px; }
  .record { grid-template-columns: minmax(0, 1fr); }
  .record__photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 599px) {
  .fault, .signup { grid-template-columns: 1fr; }
  .record__item { grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 20px; }
  .record__n { width: 36px; height: 36px; font-size: 15px; }
  .signup__card { padding: 24px 22px 24px 72px; }
  .signup__tile { left: 22px; top: 26px; }
}


/* 23. SG Solar Care: what we measure
   -------------------------------------------------------------------------- */
.measures { background: color-mix(in srgb, var(--c) 12%, var(--bg)); }
.measures__list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border-top: 2px solid var(--ink);
}
.measure { padding: 24px 24px 8px 0; }
.measure + .measure { padding-left: 24px; border-left: 1px solid color-mix(in srgb, var(--c) 50%, var(--line-strong)); }
.measure dt { display: flex; flex-direction: column; gap: 6px; }
.measure__abbr { color: var(--ink); font: 600 clamp(28px, 3vw, 40px)/1.05 var(--font-display); letter-spacing: -.02em; }
.measure__name { color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.measure dd { margin: 12px 0 0; color: var(--ink); font-size: 15.5px; }
.measures__note { margin-top: 24px; color: var(--muted); font-size: 14.5px; }

@media (max-width: 1023px) {
  .measures__list { grid-template-columns: 1fr 1fr; }
  .measure:nth-child(3) { padding-left: 0; border-left: 0; }
  .measure:nth-child(n+3) { border-top: 1px solid color-mix(in srgb, var(--c) 50%, var(--line-strong)); }
}
@media (max-width: 599px) {
  .measures__list { grid-template-columns: 1fr; }
  .measure, .measure + .measure { padding: 20px 0 6px; border-left: 0; }
  .measure + .measure { border-top: 1px solid color-mix(in srgb, var(--c) 50%, var(--line-strong)); }
}


/* 24. Solar Trade: product passport (a shipping tag)
   -------------------------------------------------------------------------- */
.passport {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.passport__text > p { margin-top: 16px; max-width: 34em; }
.passport__list { margin-top: 28px; border-top: 1px solid var(--line-strong); }
.passport__list div { padding: 16px 0; border-bottom: 1px solid var(--line-strong); }
.passport__list dt { display: flex; align-items: center; gap: 12px; color: var(--ink); font: 500 18px/1.3 var(--font-display); }
.passport__list dd { margin: 4px 0 0 40px; font-size: 15.5px; }
.passport__n {
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 20%, var(--surface));
  color: var(--ink);
  font: 600 13px/1 var(--font-display);
}

.tag {
  position: relative;
  justify-self: center;
  width: min(100%, 360px);
  margin: 40px 0 0;
  padding: 64px 30px 28px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: 6px 6px 16px 16px;
  clip-path: polygon(46px 0, calc(100% - 46px) 0, 100% 46px, 100% 100%, 0 100%, 0 46px);
  box-shadow: 0 1px 0 var(--line);
  transform: rotate(-3deg);
  filter: drop-shadow(10px 14px 0 color-mix(in srgb, var(--c) 22%, transparent));
}
.tag::before {                                  /* coral band under the cut corners */
  content: "";
  position: absolute; left: 0; right: 0; top: 0;
  height: 46px;
  background: var(--c);
}
.tag__hole {
  position: absolute; left: 50%; top: 14px;
  width: 20px; height: 20px;
  margin-left: -10px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 4px color-mix(in srgb, #FFFFFF 70%, var(--c));
  z-index: 1;
}
.tag__string { display: none; }
.tag__brand { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13.5px; font-weight: 600; }
.tag__brand .swatch { width: 14px; height: 14px; background: var(--c); --bite: 5px; --offset: -1px; }
.tag__title { margin-top: 4px; color: var(--ink); font: 500 24px/1.2 var(--font-display); }
.tag__rows { margin-top: 18px; }
.tag__rows li {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 0;
  border-top: 1.5px dashed var(--line-strong);
  color: var(--ink);
  font-size: 15.5px;
}
.tag__tick {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 18%, var(--surface));
  color: var(--ink);
}
.tag__tick svg { width: 15px; height: 15px; }
.tag__foot {
  margin-top: 14px; padding-top: 12px;
  border-top: 2px solid var(--ink);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* the ticks land one by one when the tag is reached (held by .is-waiting) */
@media (prefers-reduced-motion: no-preference) {
  .tag__tick svg { animation: tag-tick .35s cubic-bezier(.2, .7, .2, 1) both; }
  .tag__rows li:nth-child(1) svg { animation-delay: .25s; }
  .tag__rows li:nth-child(2) svg { animation-delay: .5s; }
  .tag__rows li:nth-child(3) svg { animation-delay: .75s; }
  .tag__rows li:nth-child(4) svg { animation-delay: 1s; }
  .tag.is-waiting .tag__tick svg { animation-play-state: paused; }
}
@keyframes tag-tick { from { opacity: 0; transform: scale(.3); } }

@media (max-width: 1023px) {
  .passport { grid-template-columns: minmax(0, 1fr); }
  .tag { margin-top: 8px; }
}
@media (max-width: 599px) {
  .tag { width: min(86%, 320px); transform: rotate(-2deg); }   /* keeps the tilted corners off the screen edge */
}


/* 25. Solar Trade: references (a slow strip of logos)
   The list is printed twice; the track slides left by half its width and
   starts again, so the loop has no gap. It stops on hover, and stands
   still as a wrapped row for visitors who ask for reduced motion.
   -------------------------------------------------------------------------- */
.brands {
  overflow: hidden;
  margin-top: clamp(24px, 3vw, 36px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.brands__track { display: flex; width: max-content; }
.brands__track li {
  flex: none;
  display: grid; place-items: center;
  width: 208px; height: 104px;
  margin-right: 16px;
  padding: 20px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: #FFFFFF;                 /* the logos are drawn for a white ground */
}
.brands__track img { width: auto; height: auto; max-width: 156px; max-height: 60px; object-fit: contain; }
@media (prefers-reduced-motion: no-preference) {
  .brands__track { animation: brands-slide 48s linear infinite; }
  .brands:hover .brands__track { animation-play-state: paused; }
}
@keyframes brands-slide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .brands { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); }
  .brands__track { width: auto; flex-wrap: wrap; justify-content: center; row-gap: 16px; }
  .brands__track li[aria-hidden] { display: none; }
}
.refs__note { margin-top: 14px; color: var(--muted); font-size: 13.5px; }
@media (max-width: 599px) {
  .brands__track li { width: 156px; height: 84px; padding: 16px 20px; margin-right: 12px; }
  .brands__track img { max-width: 116px; max-height: 48px; }
}


/* 26. Solar Trade: channel cards, shared system, how a partnership starts
   -------------------------------------------------------------------------- */
.channel { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.channel__item {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.channel__photo { aspect-ratio: 4 / 3; }
.channel__body { flex: 1; padding: 18px 20px 22px; border-top: 4px solid var(--c); }
.channel__body h3 { font-size: 21px; font-weight: 500; }
.channel__body p { margin-top: 6px; font-size: 15px; }

.backbone {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
  margin-top: clamp(28px, 3.4vw, 40px);
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--bg-alt);
}
.backbone__lede { color: var(--ink); font-weight: 500; }
.backbone__list { display: flex; flex-wrap: wrap; gap: 8px; }
.backbone__list li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong);
  color: var(--ink);
  font-size: 14.5px;
}

.start-band { background: color-mix(in srgb, var(--c) 9%, var(--bg)); }
.start__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: clamp(28px, 3.4vw, 40px);
}
.start__list li {
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.start__n {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--c);
  color: #1E1F3B;
  font: 600 17px/1 var(--font-display);
}
.start__list h3 { margin-top: 16px; font-size: 21px; font-weight: 500; }
.start__list p { margin-top: 6px; font-size: 15.5px; }
.start__action { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

@media (max-width: 1023px) {
  .channel { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .start__list { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 599px) {
  .channel { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* photo on top, text below */
  .channel__photo { aspect-ratio: 16 / 9; }
  .channel__body { padding: 16px 18px 20px; }
}


/* 27. Ghar Surya: the journey in four phases
   One card per phase: photo, the phase name, its promise line, its steps.
   -------------------------------------------------------------------------- */
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.phase {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.phase__photo { position: relative; aspect-ratio: 4 / 3; }
.phase__n {
  position: absolute; left: 0; bottom: 0;
  display: grid; place-items: center;
  width: 46px; height: 46px;
  background: var(--c);
  color: #1E1F3B;
  font: 600 18px/1 var(--font-display);
  --bite: 13px;
  --offset: -3px;
}
.phase__body { flex: 1; padding: 20px 20px 22px; }
.phase__body h3 { font-size: 24px; font-weight: 500; letter-spacing: -.01em; }
.phase__line { margin-top: 2px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.phase__steps { margin-top: 14px; }
.phase__steps li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; }
.phase__steps li:last-child { padding-bottom: 0; }
.phase__steps strong { display: block; color: var(--ink); font-size: 15.5px; font-weight: 600; }
/* Step detail: closed until the button under the cards opens it (.is-open).
   A grid row going from 0 to 1 fraction opens smoothly at any text length. */
.phase__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.phase__more > span { overflow: hidden; }
.phases.is-open .phase__more { grid-template-rows: 1fr; }
.phases.is-open .phase__more > span { padding-top: 2px; }
.phases__toggle { margin-top: 24px; text-align: center; }
.phases__toggle .btn svg { width: 12px; height: 12px; transition: transform .2s; }
.phases__toggle .btn[aria-expanded="true"] svg { transform: rotate(180deg); }

@media (max-width: 1023px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .phases { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .phase__photo { aspect-ratio: 16 / 9; }
  /* pairing cards: photo on top, text below */
  .pair__card { flex-direction: column; }
  .pair__photo { width: auto; min-height: 0; aspect-ratio: 16 / 9; }
  .pair__body { padding: 18px 18px 20px; }
}


/* 28. Surya Setu: six project types
   Numbered tiles with a photo each; on phones the photo sits beside the text.
   -------------------------------------------------------------------------- */
.ptypes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ptype {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.ptype__photo { aspect-ratio: 16 / 10; }
.ptype__body { position: relative; flex: 1; padding: 20px 22px 22px; }
.ptype__n {
  position: absolute; top: -20px; left: 22px;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c);
  color: #FFFFFF;
  font: 600 16px/1 var(--font-display);
  box-shadow: 0 0 0 4px var(--surface);
}
.ptype__body h3 { margin-top: 14px; font-size: 20px; font-weight: 500; }
.ptype__body p { margin-top: 6px; font-size: 15px; line-height: 1.55; }

@media (max-width: 1023px) {
  .ptypes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 599px) {
  .ptypes { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  /* photo on top, text below, so the text has the full card width */
  .ptype__photo { aspect-ratio: 16 / 9; }
  .ptype__body { padding: 18px 18px 20px; }
}


/* 29. Surya Setu: quality records
   The photo stays in place on wide screens while the six areas scroll.
   -------------------------------------------------------------------------- */
.assure {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}
.assure__visual { margin: 0; }
.assure__photo { aspect-ratio: 4 / 5; border-radius: 22px; }
.assure__list { display: grid; gap: 14px; }
.assure__row {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 26px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  background: var(--surface);
}
.assure__box {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--c);
  color: #FFFFFF;
}
.assure__box svg { width: 18px; height: 18px; }
.assure__row h3 { font-size: 20px; font-weight: 500; }
.assure__row p { margin-top: 6px; font-size: 15.5px; max-width: 34em; }
.assure__when {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--bg-alt);
  color: var(--muted);
  font-size: 13.5px; font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .assure__visual { position: sticky; top: calc(var(--header-h) + 24px); }
  .assure__photo { max-height: calc(100vh - var(--header-h) - 72px); }
}
@media (max-width: 1023px) {
  .assure { grid-template-columns: minmax(0, 1fr); }
  .assure__photo { aspect-ratio: 16 / 9; }
}
@media (max-width: 599px) {
  .assure__row { grid-template-columns: 32px minmax(0, 1fr); padding: 20px; }
  .assure__when { grid-column: 2; justify-self: start; }
}
