/* =========================================================================
   Merge Energy — site styles
   Plain CSS, no build step. Colours are taken from the Merge Energy deck.
   ========================================================================= */

:root {
  /* Brand (from deck) */
  --navy: #2e5e7e;        /* primary — logo + headings */
  --navy-700: #234a65;
  --navy-900: #142a3b;    /* deep backgrounds */
  --teal: #2b6b86;
  --steel: #79a0b0;
  --sky: #9dbed4;
  --sky-wash: #dce9f0;    /* thesis funnel */
  --mint: #dbe7df;        /* logo diamond / title slide */
  --mint-50: #eef4f0;
  --paper: #f9f9f9;
  --white: #ffffff;
  --ink: #1d2b36;
  --text: #4a5560;
  --muted: #8d9198;
  --line: #e3e8ea;

  /* Narrative accents (deck "double-edged sword" slide) */
  --threat: #e76f51;
  --threat-deep: #79090a;
  --asset: #00a878;
  --asset-deep: #067051;
  --spark: #fed517;       /* Sunswift yellow — used sparingly */

  --font-head: "Lexend", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 42, 59, .06), 0 8px 30px rgba(20, 42, 59, .08);
  --wrap: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 10vw, 120px);
  --header-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--teal); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--navy);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  font-weight: 600;
}
h1 { font-size: clamp(2.3rem, 5.6vw, 4.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.8rem, 3.8vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: 820px; }
.section { padding-block: var(--section); }
.section--tight { padding-block: calc(var(--section) * .6); }
.section--flush-bottom { padding-bottom: 0; }
.section--snug-top { padding-top: clamp(48px, 7vw, 80px); }
.section--snug-bottom { padding-bottom: clamp(40px, 6vw, 64px); }
.section-head.section-head--wide, .section-head--wide .lede { max-width: none; }
.section-head--wide h2 { max-width: 760px; }
.section-head--wide .lede { text-wrap: balance; }
.section--paper { background: var(--paper); }
.section--mint { background: var(--mint-50); }
.section--dark { background: var(--navy-900); color: #c9d6df; }
.section--dark h2, .section--dark h3 { color: var(--white); }
.center { text-align: center; }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.25rem); line-height: 1.6; max-width: 46ch; }
.center .lede { margin-inline: auto; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

/* Eyebrow label — echoes the navy tab labels in the deck */
.eyebrow {
  display: inline-flex; align-items: center; gap: .6em;
  font-family: var(--font-head);
  font-size: .78rem; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; transform: rotate(45deg);
  border: 2px solid currentColor; border-radius: 2px;
}
.section--dark .eyebrow, .hero .eyebrow { color: var(--sky); }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff; --bd: var(--navy);
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em;
  font-family: var(--font-head); font-weight: 500; font-size: 1rem; line-height: 1.2;
  color: var(--fg); background: var(--bg);
  border: 1.5px solid var(--bd); border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn:hover { color: var(--fg); background: var(--teal); border-color: var(--teal); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(43, 107, 134, .25); }
.btn--light { --bg: var(--white); --fg: var(--navy); --bd: var(--white); }
.btn--light:hover { --fg: var(--navy); background: var(--mint); border-color: var(--mint); }
.btn--ghost { --bg: transparent; --fg: var(--navy); --bd: rgba(46, 94, 126, .35); }
.btn--ghost:hover { --fg: var(--navy); background: var(--mint-50); border-color: var(--navy); }
.btn--ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .4); }
.btn--ghost-light:hover { --fg: #fff; background: rgba(255, 255, 255, .1); border-color: #fff; }
.btn--sm { min-height: 40px; padding: .5em 1.1em; font-size: .92rem; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.center .btn-row { justify-content: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 28px; width: auto; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  position: relative;
  font-family: var(--font-head); font-weight: 500; font-size: .98rem;
  color: var(--ink); text-decoration: none;
  padding: .55em .9em; border-radius: 999px;
  transition: background .2s ease, color .2s ease;
}
.nav a:not(.btn):hover { background: var(--mint-50); color: var(--navy); }
.nav a[aria-current="page"] { color: var(--navy); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px;
  background: var(--asset); border-radius: 1px; transform: translateX(-50%) rotate(45deg);
}
.nav .btn { margin-left: 10px; }
.nav-toggle {
  display: none;
  width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; border-radius: 10px;
  color: var(--navy);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 22px; height: 2px; background: currentColor; border-radius: 2px; margin: auto;
  position: relative; transition: transform .25s ease, background .25s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
  .brand img { height: 24px; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 4px;
    padding: 12px var(--gutter) 24px;
    background: var(--white); border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 40px rgba(20, 42, 59, .12);
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav a:not(.btn) { padding: .9em 1em; font-size: 1.08rem; border-radius: 10px; }
  .nav a[aria-current="page"]::after { left: auto; right: 16px; top: 50%; bottom: auto; transform: translateY(-50%) rotate(45deg); }
  .nav .btn { margin: 8px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(1200px 600px at 85% 20%, rgba(43, 107, 134, .55), transparent 60%),
              linear-gradient(160deg, var(--navy-900) 0%, #17324a 55%, var(--navy-700) 100%);
  color: #c9d6df;
}
.hero h1 { color: var(--white); }
.hero .lede { color: #c9d6df; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 5vw, 64px);
  min-height: min(760px, calc(100svh - var(--header-h)));
  padding-block: clamp(56px, 8vw, 96px);
}
.hero__copy .btn-row { margin-top: 2rem; }
.hero h1 em { font-style: normal; color: var(--mint); }
@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; min-height: 0; }
}

/* Home hero: animated city canvas (js/hero-city.js) behind the copy */
.hero__city, .hero__scrim { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__city { z-index: -2; opacity: 0; transition: opacity .8s ease; }
.hero__city.is-ready { opacity: 1; }
.hero__scrim { z-index: -1; display: none; } /* only needed once the city is drawn */
.can-city .hero--city .hero__scrim {
  display: block;
  background: linear-gradient(90deg, rgba(20, 42, 59, .95) 0%, rgba(20, 42, 59, .88) 36%, rgba(20, 42, 59, .45) 52%, rgba(20, 42, 59, 0) 64%);
}
@media (max-width: 900px) {
  /* stacked layout: copy on top, city shows underneath */
  .hero--city { --city-band: clamp(300px, 80vw, 420px); }
  .can-city .hero--city .hero__inner { padding-bottom: var(--city-band); }
  .can-city .hero--city .hero__scrim { background: linear-gradient(180deg, rgba(20, 42, 59, .95) 0%, rgba(20, 42, 59, .9) calc(100% - var(--city-band)), rgba(20, 42, 59, 0) calc(100% - var(--city-band) + 110px)); }
}

/* Page hero (inner pages) */
.page-hero { padding-block: clamp(64px, 9vw, 110px) clamp(48px, 7vw, 80px); }
.page-hero .lede { max-width: 58ch; }
.page-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.4rem); text-wrap: balance; } /* keeps "Born out of Sunswift Racing." to 3 lines max */

/* ---------- Partner marquee ---------- */
.partners { padding-block: 44px 52px; border-bottom: 1px solid var(--line); background: var(--white); }
.partners__label { text-align: center; font-size: .78rem; font-family: var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.marquee {
  --gap: clamp(48px, 7vw, 88px);
  --speed: 40s;
  position: relative; overflow: hidden;
}
/* Edge fades as overlays, not mask-image: iOS Safari can drop a masked layer whose child is animating (logos vanish) */
.marquee::before, .marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 10%; z-index: 1; pointer-events: none;
}
.marquee::before { left: 0; background: linear-gradient(90deg, var(--white), rgba(255, 255, 255, 0)); }
.marquee::after { right: 0; background: linear-gradient(270deg, var(--white), rgba(255, 255, 255, 0)); }
.marquee__track { display: flex; width: max-content; will-change: transform; animation: marquee var(--speed) linear infinite; }
/* Pause on hover only for real pointers (a tap would leave it stuck), and on keyboard focus */
@media (hover: hover) { .marquee:hover .marquee__track { animation-play-state: paused; } }
.marquee:has(:focus-visible) .marquee__track { animation-play-state: paused; }
.marquee__list { display: flex; align-items: center; gap: var(--gap); padding-right: var(--gap); list-style: none; }
.marquee__list li { flex: none; }
.marquee__list a, .marquee__list span { display: block; }
.marquee__list img {
  height: 44px; width: auto; max-width: 170px; object-fit: contain;
}
/* Partner logos (home strip + About grid): greyed out, full colour on hover.
   .logo--mono = white-only artwork, shown as a dark silhouette so it stays visible. */
.logo { filter: grayscale(1); opacity: .55; transition: filter .3s ease, opacity .3s ease; }
.logo--mono { filter: brightness(0); opacity: .4; }
a:hover > .logo, a:focus-visible > .logo { filter: none; opacity: 1; }
a:hover > .logo--mono, a:focus-visible > .logo--mono { filter: brightness(0); opacity: .8; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.marquee--static::before, .marquee--static::after { display: none; }
.marquee--static .marquee__track { width: auto; animation: none; justify-content: center; }
.marquee--static .marquee__list { flex-wrap: wrap; justify-content: center; row-gap: 28px; padding-right: 0; }

/* ---------- Generic grids & cards ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 28px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid--2, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
}
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--mint); }
.media img { width: 100%; }
.media figcaption { font-size: .82rem; padding: 10px 14px; background: var(--white); color: var(--muted); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; }
.section-head.section-head--full, .section-head--full h2 { max-width: none; }

/* ---------- Why we exist ----------
   Heading left, subtext right. */
.why { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px clamp(32px, 5vw, 72px); align-items: end; }
@media (max-width: 900px) { .why { grid-template-columns: 1fr; } }
.why h2 { text-wrap: balance; margin: 0; }
.why h2 .t { color: var(--threat); }
.why h2 .a { color: var(--asset); }
.why__lede { margin: 0; max-width: 46ch; }
/* Highlighter-pen marks on the two big facts */
.why__lede mark { color: var(--ink); font-weight: 600; padding: 0 .15em; border-radius: 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.why__lede mark.t { background: linear-gradient(transparent 55%, rgba(231, 111, 81, .3) 55%); }
.why__lede mark.a { background: linear-gradient(transparent 55%, rgba(0, 168, 120, .28) 55%); }


/* ---------- Chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .45em 1em; border-radius: 999px;
  background: var(--mint); color: var(--navy);
  font-family: var(--font-head); font-size: .92rem; font-weight: 500;
}
.chip--outline { background: transparent; border: 1.5px solid rgba(46, 94, 126, .25); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips--fill .chip { flex: 1 1 auto; text-align: center; justify-content: center; }
.section--dark .chip--outline { color: #fff; border-color: rgba(255, 255, 255, .25); }


/* ---------- FAQ (native <details> drop-downs) ----------
   Heading left, questions right; stacks on narrow screens. */
.faq-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 24px clamp(32px, 6vw, 80px); align-items: start; }
.faq-layout h2 { margin: 0; text-wrap: balance; }
@media (max-width: 900px) { .faq-layout { grid-template-columns: 1fr; } }
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; cursor: pointer; list-style: none;
  font-family: var(--font-head); font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 500;
  color: var(--navy); line-height: 1.35;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 10px; height: 10px; margin-right: 4px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform .2s ease;
}
.faq__item[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.faq__item summary:hover { color: var(--teal); }
.faq__answer { padding: 0 0 22px; max-width: 64ch; }
.faq__answer > :last-child { margin-bottom: 0; }

/* ---------- Roadmap ----------
   Row/column layout: labels printed once on the left ("We merge" / "To achieve"),
   one column per step. Subgrid keeps every row aligned across the columns. */
.road {
  --label: clamp(96px, 10vw, 130px);
  display: grid; grid-template-columns: var(--label) minmax(0, 1fr); grid-template-rows: repeat(3, auto);
  column-gap: 20px;
}
.road__labels { grid-column: 1; grid-row: 1 / span 3; display: grid; grid-template-rows: subgrid; }
.road__labels span {
  font-family: var(--font-head); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sky); padding-top: .55em;
}
.road__labels span:nth-child(3) { padding-top: .2em; }
.road__steps {
  position: relative; grid-column: 2; grid-row: 1 / span 3;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: subgrid;
  column-gap: 20px; list-style: none;
}
.road__steps::before { /* lane line */
  content: ""; position: absolute; left: 0; right: 0; top: 22px; height: 0;
  border-top: 3px dashed rgba(157, 190, 212, .45);
}
.road__steps li { position: relative; grid-row: span 3; display: grid; grid-template-rows: subgrid; }
.road__steps li::before { /* diamond marker — the road sign in the logo */
  content: ""; position: absolute; top: 8px; left: 4px; width: 26px; height: 26px;
  background: var(--navy-900); border: 3px solid var(--sky); border-radius: 5px; transform: rotate(45deg);
}
.road__steps li.is-now::before { background: var(--asset); border-color: #7fe0bd; box-shadow: 0 0 0 8px rgba(0, 168, 120, .18); }
.road__steps li.is-moon::before { background: var(--spark); border-color: #fff3b0; }
.road__when { padding-top: 64px; font-family: var(--font-head); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--sky); margin-bottom: 8px; }
.road h3 { margin-bottom: .45em; }
.road p { font-size: .95rem; margin: 0; }
.road p a { color: #fff; font-weight: 600; text-decoration: underline; }
.road p a:hover, .road p a:focus-visible { color: var(--sky); }
.road__labels { border-right: 1px solid rgba(157, 190, 212, .18); }
@media (max-width: 900px) {
  .road { grid-template-columns: 1fr; grid-template-rows: none; }
  .road__labels { grid-row: auto; display: flex; gap: 8px; border: 0; margin-bottom: 20px; }
  .road__labels span { padding: 0; }
  .road__labels span:first-child { display: none; }
  .road__labels span:nth-child(3)::before { content: "→ "; }
  .road__steps { grid-column: 1; grid-row: auto; grid-template-columns: 1fr; grid-template-rows: none; }
  .road__steps::before { left: 18px; right: auto; top: 0; bottom: 0; height: auto; border-top: 0; border-left: 3px dashed rgba(157, 190, 212, .45); }
  .road__steps li { grid-row: auto; display: block; padding: 0 0 32px 64px; }
  .road__steps li::before { top: 2px; left: 6px; }
  .road__when { display: block; padding-top: 0; }
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0 32px; }
.stat { border-left: 3px solid var(--spark); padding: 4px 0 4px 16px; }
.stat b { display: block; font-family: var(--font-head); font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--navy); line-height: 1.1; letter-spacing: -.02em; }
.stat span { font-size: .9rem; color: var(--text); }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(120deg, var(--navy) 0%, var(--teal) 100%);
  color: #e3eef4; border-radius: calc(var(--radius) * 1.4);
  padding: clamp(36px, 6vw, 72px) clamp(24px, 6vw, 72px);
  display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center;
}
.cta-band::after { /* large diamond watermark */
  content: ""; position: absolute; z-index: -1; right: -80px; top: 50%; width: 340px; height: 340px;
  border: 28px solid rgba(255, 255, 255, .07); border-radius: 40px; transform: translateY(-50%) rotate(45deg);
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 52ch; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- V2G-Key page ----------
   Merge Energy = navy. V2G-Key product identity = the teal-to-peach ombre from the A6 flyer. */
:root { --v2g-teal: #2b8ca8; --v2g-grey: #91928f; --v2g-peach: #f89a62; --v2g-ombre: linear-gradient(180deg, #2b8ca8 0%, #758f98 40%, #b59581 72%, #f89a62 100%); }
.v2g-hero { background: var(--v2g-ombre); color: #fff; padding-block: clamp(56px, 8vw, 96px) clamp(150px, 18vw, 220px); }
.v2g-hero .wrap { text-align: center; }
.v2g-hero__logo { width: min(360px, 70%); margin: 0 auto 28px; }
.v2g-hero h1 { max-width: none; margin-inline: auto; text-shadow: 0 1px 18px rgba(20, 42, 59, .18); }
.v2g-hero .lede { max-width: none; margin-inline: auto; color: #fff; text-shadow: 0 1px 10px rgba(20, 42, 59, .25); }
.v2g-hero .btn-row { justify-content: center; margin-top: 2rem; }
.v2g-hero .btn--light { color: var(--v2g-teal); }

.benefits-stage { position: relative; z-index: 2; margin-top: calc(clamp(150px, 18vw, 220px) * -1 + 40px); }
/* Subgrid keeps icon / title / body / link on shared rows, so body copy starts level in every box */
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.benefit { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; align-content: start; box-shadow: 0 20px 50px rgba(20, 42, 59, .14); border: 0; }
.benefit h3 { align-self: start; }
.benefit p { margin-bottom: 0; }
.benefit__link { align-self: end; margin-top: 16px; font-family: var(--font-head); font-weight: 500; font-size: .95rem; text-decoration: none; color: var(--v2g-teal); }
.benefit__link:hover { text-decoration: underline; }
@media (max-width: 860px) { .benefits { grid-template-columns: 1fr; } }

.video {
  position: relative; display: block; aspect-ratio: 16 / 9; width: 100%;
  border-radius: calc(var(--radius) * 1.3); overflow: hidden;
  background: #000; box-shadow: 0 30px 80px rgba(20, 42, 59, .25);
}
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.benefit__icon {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  background: #e2f0f4; color: var(--v2g-teal); margin-bottom: 18px;
}
.benefit__icon svg { width: 26px; height: 26px; }

.cta-band--ombre { background: linear-gradient(110deg, #2b8ca8 0%, #91928f 55%, #f89a62 100%); }
.cta-band--ombre .btn--light { color: var(--v2g-teal); }
.audience { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 18px; font-family: var(--font-head); font-weight: 500; font-size: 1.05rem; color: #fff; }
.audience li { display: inline-flex; align-items: center; gap: 10px; }
.audience li::before { /* tick, as on the flyer */
  content: ""; width: 14px; height: 8px; border-left: 3px solid #fff; border-bottom: 3px solid #fff;
  transform: rotate(-45deg) translateY(-3px);
}

/* Scroll story: sticky image + steps that light up markers on it */
.scrolly {
  --scrolly-gap: clamp(28px, 4vw, 56px);
  /* rendered image height: 2/3 of the content width x the render's aspect ratio (941/1671) */
  --frame-h: calc((min(100vw, var(--wrap)) - 2 * var(--gutter) - var(--scrolly-gap)) * 2 / 3 * 941 / 1671);
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: var(--scrolly-gap);
}
.scrolly__media { /* only as tall as the image; pins vertically centred in the window while the steps scroll */
  margin: 0; position: sticky; align-self: start;
  top: max(calc(var(--header-h) + 16px), calc((100svh + var(--header-h) - var(--frame-h)) / 2));
}
.scrolly__media .scrolly__frame { width: 100%; }
.scrolly__frame { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--mint); }
.scrolly__frame img { width: 100%; }
.scrolly__steps { list-style: none; counter-reset: step; padding: 0 0 12vh; }
.scrolly__step {
  counter-increment: step; position: relative;
  min-height: 28vh; display: flex; flex-direction: column; justify-content: center;
  padding-left: 52px; opacity: .3; transition: opacity .35s ease;
}
.scrolly__step::before {
  content: counter(step); position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--v2g-teal); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
}
.scrolly__step b { display: block; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: clamp(1.1rem, 1.8vw, 1.35rem); line-height: 1.3; margin-bottom: 4px; }
.scrolly__step span { font-size: 1rem; }
.scrolly__step.is-active, .scrolly__step.is-past { opacity: 1; }
.scrolly__step.is-past { opacity: .55; }
.scrolly__step.is-active::before { background: var(--v2g-peach); }

.hotspot {
  position: absolute; z-index: 2; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%;
  transform: translate(-50%, -50%) scale(.3); opacity: 0;
  display: grid; place-items: center; cursor: pointer;
  background: var(--v2g-teal); color: #fff; font-family: var(--font-head); font-weight: 600; font-size: .95rem;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .85), 0 6px 18px rgba(20, 42, 59, .35);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2, 1.4, .4, 1), background .3s ease;
}
.hotspot.is-on { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.hotspot.is-active { background: var(--v2g-peach); transform: translate(-50%, -50%) scale(1.15); }
.hotspot.is-active::after { /* pulse ring */
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 3px solid var(--v2g-peach); animation: hotspot-pulse 1.6s ease-out infinite;
}
@keyframes hotspot-pulse { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }

/* Without JS / reduced motion: plain list, all markers visible */
html:not(.js) .scrolly__step, .scrolly--static .scrolly__step { opacity: 1; min-height: 0; padding-block: 12px; }
html:not(.js) .scrolly__steps, .scrolly--static .scrolly__steps { padding: 0; }
/* #hotspots authoring mode */
.scrolly--edit .scrolly__frame { cursor: crosshair; outline: 3px dashed var(--v2g-peach); outline-offset: 4px; }
.hotspot-readout { position: absolute; left: 12px; bottom: 12px; z-index: 3; padding: 6px 10px; border-radius: 8px; background: rgba(20, 42, 59, .85); color: #fff; font: 500 .85rem/1.3 ui-monospace, Menlo, monospace; }

@media (max-width: 900px) {
  .scrolly { grid-template-columns: 1fr; gap: 0; }
  .scrolly__media { top: var(--header-h); height: auto; z-index: 3; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter); background: var(--white); }
  .scrolly__media::after { /* soft fade so text scrolling under the pinned image doesn't clip harshly */
    content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 28px;
    background: linear-gradient(var(--white), rgba(255, 255, 255, 0));
  }
  .scrolly__steps { padding: 4vh 0 18vh; }
  .scrolly__step { min-height: 24vh; }
  .hotspot { width: 28px; height: 28px; font-size: .8rem; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85), 0 4px 12px rgba(20, 42, 59, .35); }
}

.footnote { font-size: .8rem; color: var(--muted); margin-top: 14px; }


/* ---------- About / team ---------- */
.team__eyebrow { margin-bottom: clamp(18px, 2.5vw, 26px); }
.team { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 860px) { .team { grid-template-columns: 1fr; } }
.person { display: flex; flex-direction: column; gap: 18px; }
.person__top { display: flex; gap: 20px; align-items: center; }
.person__photo {
  width: 104px; height: 104px; flex: none; border-radius: 50%; object-fit: cover;
  background: var(--mint); box-shadow: 0 0 0 4px var(--white), 0 0 0 5px var(--line);
}
.person h3 { margin: 0; }
.person__role { margin: 2px 0 0; color: var(--teal); font-family: var(--font-head); font-size: .95rem; }
.person__bio { margin: 0; }
.person__foot { margin-top: auto; padding-top: 18px; border-top: 1px dashed var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.person__foot .icon-link { flex: none; }
/* Logos stay on one row beside the LinkedIn icon and scale down together on narrow cards. */
.history { position: relative; display: flex; align-items: center; gap: clamp(12px, 4vw, 22px); min-width: 0; list-style: none; padding-top: calc(.72rem * 1.65 + 11px); }
.history__label { position: absolute; top: 0; left: 0; white-space: nowrap; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-family: var(--font-head); }
/* Logo cells match the 40px icon height so the icon lines up with the logo row, not the label. */
.history li:not(.history__label) { flex: 0 1 auto; min-width: 0; min-height: 40px; display: flex; align-items: center; }
.history img { display: block; width: auto; height: auto; max-height: 30px; max-width: min(130px, 100%); object-fit: contain; }
.icon-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  color: var(--navy); background: var(--mint-50); border: 1px solid var(--line);
  transition: background .2s ease, color .2s ease;
}
.icon-link:hover { background: var(--navy); color: #fff; }
.icon-link svg { width: 18px; height: 18px; }

.partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; }
@media (max-width: 860px) { .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .partner-grid { grid-template-columns: 1fr; } }
.partner-grid a {
  height: 100%; display: flex; flex-direction: column; gap: 14px; padding: 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  color: inherit; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.partner-grid a:hover { border-color: var(--sky); box-shadow: var(--shadow); transform: translateY(-2px); }
.partner-grid a span::after { content: " ↗"; color: var(--steel); }
.partner-grid img { height: 40px; width: auto; max-width: 160px; object-fit: contain; object-position: left; }
.partner-grid span { font-size: .92rem; color: var(--text); }

/* ---------- Prose (privacy) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); margin-top: 2.2em; }
.prose ul { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .35em; }
.prose .meta { color: var(--muted); font-size: .92rem; }

/* ---------- Contact / 404 ---------- */
.notice { min-height: calc(100svh - var(--header-h) - 200px); display: grid; place-items: center; text-align: center; padding-block: var(--section); }
.notice .email { font-family: var(--font-head); font-size: clamp(1.4rem, 4vw, 2.4rem); font-weight: 600; text-decoration: none; display: inline-block; margin: 8px 0 24px; word-break: break-word; }

/* ---------- Footer ---------- */
.site-footer { background: var(--mint); color: var(--navy-700); padding-top: clamp(40px, 5.5vw, 60px); font-size: .91rem; }
.site-footer a { color: var(--navy-700); text-decoration: none; }
.site-footer a:hover { color: var(--navy); text-decoration: underline; }
.footer__top { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(22px, 4vw, 48px); padding-bottom: clamp(30px, 4vw, 38px); }
.footer__heading { font-family: var(--font-head); font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin: 3px 0 11px; }
.footer__links { list-style: none; display: grid; gap: 6px; }
.socials { display: flex; gap: 10px; }
.socials .icon-link { background: rgba(255, 255, 255, .55); border-color: rgba(46, 94, 126, .15); }
.socials .icon-link:hover { background: var(--navy); color: #fff; text-decoration: none; }
.acknowledgement {
  display: grid; grid-template-columns: auto 1fr; gap: 15px; align-items: start;
  padding: 20px 0; border-top: 1px solid rgba(46, 94, 126, .18);
}
.acknowledgement p { margin: 0; max-width: 90ch; font-size: .87rem; line-height: 1.55; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 11px 28px; flex-wrap: wrap; padding: 16px 0 22px; border-top: 1px solid rgba(46, 94, 126, .18); font-size: .815rem; color: var(--navy-700); }
.footer__bottom ul { list-style: none; display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal { margin: 0; line-height: 1.55; flex: 1 1 0; min-width: 0; padding-right: clamp(24px, 8vw, 120px); }
.footer__bottom .born, .footer__bottom ul { flex: none; white-space: nowrap; }
.born { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 500; color: var(--navy); }
.flag { width: 30px; height: 15px; flex: none; display: inline-block; vertical-align: middle;}
@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
  .acknowledgement { grid-template-columns: 1fr; }
  .footer__legal { flex-basis: 100%; }
}

/* ---------- Reveal on scroll (only when JS is running) ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
