/* =============================================================
   Moendi homepage redesign
   Loaded after style.css on index only. Other pages are untouched.
   ============================================================= */

:root {
  --forest: #203c2c;      /* brand dark green */
  --deep: #0e2218;        /* hero shade, meter drums */
  --teal: #48bcac;        /* brand accent (use on dark or as fills) */
  --teal-ink: #1f7a6e;    /* accessible teal for text on white */
  --mist: #eef4f1;        /* tinted sections */
  --ink: #1d2a23;         /* body text */
  --muted: #5b6a62;
  --line: #d6e1db;

  --m-irec: #48bcac;
  --m-cel: #203c2c;
  --m-go: #ff7043;
  --m-gec: #e3cc7a;
  --m-rec: #5b7ee5;
  --m-none: #dfe7e2;
  --surface: #ffffff;
  --map-stroke: #ffffff;
  --heading: var(--forest);
  --forest-bg: #203c2c;   /* dark panels keep this in both themes */

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;

  --ease: cubic-bezier(.2, .7, .1, 1);
}

body.home {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Header: glass once scrolled ---------- */
.home #header {
  padding: 10px 0;
  transition: background-color .35s, box-shadow .35s, padding .35s, backdrop-filter .35s;
}
.home #header.header-scrolled {
  background: rgba(255, 255, 255, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(32, 60, 44, .08);
  margin-bottom: 0;
  padding: 4px 0;
}
.home #header .logo img { max-height: 72px; width: auto; transition: max-height .35s; }
.home #header.header-scrolled .logo img { max-height: 52px; }
.home .navbar2 a, .home .navbar2 a:focus { font-size: 16px; padding-left: 32px; }

/* ---------- Buttons ---------- */
.btn-pill, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 15px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn-pill { background: var(--teal); color: var(--deep); }
.btn-pill:hover { background: var(--deep); color: #fff; }
.btn-pill:active { transform: scale(.97); }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { color: var(--deep); background: #fff; border-color: #fff; }
.btn-sm { padding: 11px 18px; font-size: 14px; }

.text-link {
  color: var(--teal-ink);
  font-weight: 700;
  border-bottom: 2px solid currentColor;
  padding-bottom: 2px;
}
.text-link:hover { color: var(--forest); }

/* ---------- Hero ---------- */
.home #hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: var(--deep); /* shows while the video loads */
  isolation: isolate;
}
.home #hero::before { display: none; }
.home #hero video { z-index: -2; }
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 34, 24, .92) 0%, rgba(14, 34, 24, .72) 42%, rgba(14, 34, 24, .25) 100%),
    linear-gradient(0deg, rgba(14, 34, 24, .85) 0%, rgba(14, 34, 24, 0) 45%);
}
.home #hero .container.hero-inner {
  text-align: left;
  padding-top: 140px;
  padding-bottom: 56px;
  flex: 1;
  display: flex;
  align-items: center;
}
.hero-copy { max-width: 780px; }
.home #hero h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  font-weight: 700;
  color: #fff;
  margin: 0 0 28px;
  text-wrap: balance;
}
.hero-lede {
  font-size: clamp(1.05rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, .86);
  max-width: 34em;
  margin: 0 0 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero-rail {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, .18);
  background: rgba(14, 34, 24, .45);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.home #hero .hero-rail .container { padding-top: 0; text-align: left; }
.rail-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.rail-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 16px;
  align-items: center;
  padding: 26px 28px 26px 0;
  color: #fff;
  position: relative;
}
.rail-item + .rail-item { padding-left: 28px; border-left: 1px solid rgba(255, 255, 255, .18); }
.rail-item i { grid-row: 1 / span 2; font-size: 30px; color: var(--teal); transition: transform .3s var(--ease); }
.rail-title { font-weight: 700; font-size: 19px; line-height: 1.2; }
.rail-sub { font-size: 14px; color: rgba(255, 255, 255, .7); line-height: 1.35; }
.rail-item::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: -1px;
  height: 3px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
}
.rail-item + .rail-item::after { left: 28px; }
.rail-item:hover, .rail-item:focus-visible { color: #fff; }
.rail-item:hover::after, .rail-item:focus-visible::after { transform: scaleX(1); }
.rail-item:hover i { transform: translateY(-3px); }

.video-toggle {
  position: absolute;
  right: 20px;
  top: 110px;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4);
  background: rgba(14, 34, 24, .4);
  color: #fff;
  font-size: 18px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background-color .2s;
}
.video-toggle:hover { background: rgba(14, 34, 24, .8); }

/* Hero entrance: the one orchestrated motion moment on the page */
.home.js #hero .hero-copy h1,
.home.js #hero .hero-lede,
.home.js #hero .hero-actions,
.home.js #hero .hero-rail { opacity: 0; }
.home.is-ready #hero .hero-copy h1 { animation: rise .9s var(--ease) .05s both; }
.home.is-ready #hero .hero-lede { animation: rise .9s var(--ease) .2s both; }
.home.is-ready #hero .hero-actions { animation: rise .9s var(--ease) .32s both; }
.home.is-ready #hero .hero-rail { animation: rail-in 1s var(--ease) .45s both; }
@keyframes rise {
  from { opacity: 0; transform: translateY(26px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes rail-in {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: none; }
}

/* ---------- Generic sections ---------- */
.home .sec { padding: clamp(72px, 9vw, 128px) 0; }
.home .sec-tint { background: var(--mist); }
.kicker {
  color: var(--teal-ink);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--teal); }
.home .sec-title {
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  font-weight: 700;
  color: var(--forest);
  margin: 0 0 22px;
  text-wrap: balance;
}
.lede { font-size: 1.15rem; color: var(--muted); }
.sec-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.sec-head .sec-title { margin-bottom: 0; }
.sec-head-note { color: var(--muted); margin: 0; max-width: 26em; }

/* ---------- Certificates ---------- */
.checks { list-style: none; padding: 0; margin: 28px 0; }
.checks li {
  position: relative;
  padding: 14px 0 14px 40px;
  border-top: 1px solid var(--line);
}
.checks li:last-child { border-bottom: 1px solid var(--line); }
.checks li::before {
  content: "";
  position: absolute;
  left: 4px; top: 20px;
  width: 20px; height: 11px;
  border-left: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  transform: rotate(-45deg);
}
#about .btn-pill { margin-top: 12px; }

.photo-frame { position: relative; margin: 0; }
.photo-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--r-lg);
  display: block;
}
.frame-card {
  position: absolute;
  left: -28px;
  bottom: 36px;
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 18px 22px;
  box-shadow: 0 24px 48px -20px rgba(14, 34, 24, .45);
  max-width: 340px;
}
.frame-card-label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.frame-card-list { display: flex; gap: 6px; }
.frame-card-list span { white-space: nowrap; }
.frame-card-list span {
  font-weight: 700;
  font-size: 14px;
  color: var(--forest);
  background: var(--mist);
  padding: 6px 12px;
  border-radius: 999px;
}

/* ---------- Quote band (reuses the parallax image from style.css .cta) ---------- */
.home .quote-band { padding: clamp(80px, 10vw, 140px) 0; }
.quote-band-inner { max-width: 640px; color: #fff; }
.quote-band-inner h2 {
  color: #fff;
  font-size: clamp(2rem, 3.6vw, 3rem);
  letter-spacing: -.02em;
  font-weight: 700;
  margin-bottom: 16px;
}
.quote-band-inner p { color: rgba(255, 255, 255, .88); font-size: 1.1rem; margin-bottom: 28px; }

/* ---------- MEM QS ---------- */
.sticky-photo {
  position: sticky;
  top: 110px;
  height: min(78vh, 680px);
  border-radius: var(--r-lg);
  background-size: cover;
  background-position: center;
}
.fact-list { margin: 32px 0 44px; }
.fact {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}
.fact:last-child { border-bottom: 1px solid var(--line); }
.fact i { font-size: 36px; color: var(--teal-ink); line-height: 1; }
.fact h3 { font-size: 20px; font-weight: 700; color: var(--forest); margin: 4px 0 6px; }
.fact p { margin: 0; color: var(--muted); }

.process {
  background: var(--forest-bg);
  color: #fff;
  border-radius: var(--r-lg);
  padding: clamp(28px, 4vw, 44px);
  margin-bottom: 36px;
}
.process h3 { color: #fff; font-size: 22px; font-weight: 700; margin-bottom: 26px; }
.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 0 0 26px 58px;
}
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0; top: -2px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--deep);
  font-weight: 700;
  display: grid;
  place-items: center;
}
.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 17px; top: 38px; bottom: 2px;
  width: 2px;
  background: rgba(72, 188, 172, .4);
}
.step-title { display: block; font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.step-text { display: block; color: rgba(255, 255, 255, .8); font-size: 15.5px; }

/* ---------- Sustainability pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--forest); }
.pillar { padding: 36px 32px 8px 0; }
.pillar + .pillar { padding-left: 32px; border-left: 1px solid var(--line); }
.pillar i { font-size: 34px; color: var(--teal-ink); margin-bottom: 18px; display: block; }
.pillar h3 { font-size: 22px; font-weight: 700; color: var(--forest); margin-bottom: 12px; }
.pillar p { color: var(--muted); margin: 0; }

/* ---------- Impact meters ---------- */
.home .impact {
  position: relative;
  padding: clamp(80px, 10vw, 136px) 0;
  color: #fff;
  background:
    linear-gradient(rgba(14, 34, 24, .88), rgba(14, 34, 24, .94)),
    url("../img/memqs/MEMQS2_dark.jpg") center / cover no-repeat;
}
.impact-title {
  color: #fff;
  font-size: clamp(1.9rem, 3.4vw, 2.9rem);
  letter-spacing: -.02em;
  line-height: 1.12;
  font-weight: 700;
  max-width: 18em;
  margin-bottom: 56px;
  text-wrap: balance;
}
.meters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.meter-card p { color: rgba(255, 255, 255, .78); font-size: 15.5px; margin: 18px 0 0; max-width: 17em; }
.meter-card strong { color: #fff; }

.meter {
  display: inline-flex;
  gap: 4px;
  padding: 8px;
  border-radius: 12px;
  background: #06140d;
  box-shadow: inset 0 0 0 1px rgba(72, 188, 172, .25), 0 10px 30px -10px rgba(0, 0, 0, .6);
  font-size: clamp(30px, 3.2vw, 44px);
  font-weight: 700;
  line-height: 1;
}
.drum {
  position: relative;
  width: .78em;
  height: 1.3em;
  overflow: hidden;
  border-radius: 6px;
  background: linear-gradient(180deg, #0b1f15 0%, #173527 50%, #0b1f15 100%);
  color: #fff;
}
.drum::after { /* curved-drum shading */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0) 70%, rgba(0, 0, 0, .55) 100%);
  pointer-events: none;
}
.drum::before { /* seam between drum faces */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(0, 0, 0, .35);
  z-index: 1;
  pointer-events: none;
}
.drum.is-lead { color: rgba(255, 255, 255, .22); }
.drum-strip { display: flex; flex-direction: column; will-change: transform; }
.drum-strip span { height: 1.3em; display: grid; place-items: center; }

/* ---------- Map ---------- */
.map-legend { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--forest);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s;
}
.chip:hover { border-color: var(--forest-bg); }
.chip[aria-pressed="true"] { background: var(--forest-bg); border-color: var(--forest-bg); color: #fff; }
.chip-count { font-weight: 400; opacity: .7; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; flex: none; }
.swatch.m-irec { background: var(--m-irec); }
.swatch.m-cel { background: var(--m-cel); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .6); }
.swatch.m-go { background: var(--m-go); }
.swatch.m-gec { background: var(--m-gec); }
.swatch.m-rec { background: var(--m-rec); }

.map-stage {
  position: relative;
  background: var(--surface);
  border-radius: var(--r-lg);
  overflow: hidden;
  width: 100%;
  aspect-ratio: 1000 / 438;
  box-shadow: 0 1px 0 var(--line);
  user-select: none;
  -webkit-user-select: none;
}
/* default zoom: vertical swipes scroll the page, everything else is handled by the map script;
   zoomed in: the map takes all touch gestures */
.map-stage svg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y; }
.map-stage.is-zoomed svg { touch-action: none; }
.map-stage.is-dragging svg { cursor: grabbing; }
.map-stage .c { fill: var(--m-none); stroke: var(--map-stroke); stroke-width: .6; vector-effect: non-scaling-stroke; transition: fill .25s, opacity .25s; }
.map-stage .c[data-iso] { cursor: pointer; }
.map-stage .m-irec { fill: var(--m-irec); }
.map-stage .m-cel { fill: var(--m-cel); }
.map-stage .m-go { fill: var(--m-go); }
.map-stage .m-gec { fill: var(--m-gec); }
.map-stage .m-rec { fill: var(--m-rec); }
.map-stage .dot { stroke: var(--map-stroke); stroke-width: 1.2; }
.map-stage .c[data-iso]:hover, .map-stage .c.is-active { filter: brightness(.78); }
.map-stage .c.is-active { stroke: var(--deep); stroke-width: 1.4; }

/* legend filter: dim every market outside the selected type */
.map-stage[data-filter] .c[data-iso] { opacity: .18; }
.map-stage[data-filter="irec"] .c.m-irec,
.map-stage[data-filter="cel"] .c.m-cel,
.map-stage[data-filter="go"] .c.m-go,
.map-stage[data-filter="gec"] .c.m-gec,
.map-stage[data-filter="rec"] .c.m-rec { opacity: 1; }

.map-tip {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  background: var(--deep);
  color: #fff;
  font-size: 14px;
  line-height: 1.3;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  transform: translate(-50%, calc(-100% - 14px));
  transition: opacity .15s;
}
.map-tip.is-on { opacity: 1; }
.map-tip b { display: block; }
.map-tip span { color: var(--teal); }

.map-wrap { position: relative; }
.map-card {
  position: absolute;
  z-index: 5;
  left: 20px;
  bottom: 20px;
  width: min(300px, calc(100% - 40px));
  background: var(--surface);
  border-radius: var(--r-md);
  padding: 20px 22px 22px;
  box-shadow: 0 24px 48px -18px rgba(14, 34, 24, .45);
  animation: card-in .35s var(--ease);
}
.map-card[hidden] { display: none; }
@keyframes card-in { from { opacity: 0; transform: translateY(10px); } }
.map-card-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 32px; height: 32px;
  border: 0; border-radius: 50%;
  background: var(--mist);
  color: var(--forest);
  display: grid; place-items: center;
  cursor: pointer;
}
.map-card-country { font-size: 22px; font-weight: 700; color: var(--forest); margin: 0 36px 2px 0; line-height: 1.2; }
.map-card-cert { font-weight: 700; color: var(--teal-ink); margin: 0 0 8px; }
.map-card-desc { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }

.map-controls {
  position: absolute;
  z-index: 3;
  right: 16px; top: 16px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 12px;
  box-shadow: 0 6px 20px -8px rgba(14, 34, 24, .35);
  overflow: hidden;
}
.map-controls button {
  width: 40px; height: 40px;
  border: 0;
  background: none;
  color: var(--forest);
  font-size: 16px;
  display: grid; place-items: center;
  cursor: pointer;
}
.map-controls button + button { border-top: 1px solid var(--line); }
.map-controls button:hover { background: var(--mist); }
.map-error { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); padding: 20px; text-align: center; }

.market-list { margin-top: 22px; }
.market-list summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--teal-ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}
.market-list summary::-webkit-details-marker { display: none; }
.market-list summary::before {
  content: "";
  width: 8px; height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
  transition: transform .2s;
}
.market-list[open] summary::before { transform: rotate(45deg); }
.market-grid {
  display: grid;
  grid-template-columns: 2fr 1.4fr 1fr;
  gap: 32px;
  margin-top: 26px;
}
.market-group h4 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; color: var(--forest); }
.market-group .count { font-weight: 400; color: var(--muted); }
.market-group ul { list-style: none; padding: 0; margin: 0; columns: 3 9em; column-gap: 20px; font-size: 15px; color: var(--muted); }
.market-group li { break-inside: avoid; padding: 2px 0; }
.market-grid .market-group:nth-child(2) ul { columns: 2 9em; }
.market-grid .market-group:nth-child(n+3) ul { columns: 1; }
.market-grid { grid-template-rows: auto auto 1fr; }
.market-grid .market-group:nth-child(-n+2) { grid-row: 1 / span 3; }
.market-grid .market-group:nth-child(3) { grid-column: 3; grid-row: 1; }
.market-grid .market-group:nth-child(4) { grid-column: 3; grid-row: 2; }
.market-grid .market-group:nth-child(5) { grid-column: 3; grid-row: 3; }

/* ---------- Contact ---------- */
.contact-shell {
  display: grid;
  grid-template-columns: 5fr 7fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.contact-side {
  background: var(--forest-bg);
  color: rgba(255, 255, 255, .85);
  padding: clamp(32px, 5vw, 60px);
}
.contact-side .kicker { color: var(--teal); }
.contact-side .sec-title { color: #fff; }
.contact-lines { list-style: none; padding: 0; margin: 36px 0 0; }
.contact-lines li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .15); }
.contact-lines i { font-size: 20px; color: var(--teal); }
.contact-lines a { color: #fff; font-weight: 700; font-size: 18px; }
.contact-lines a:hover { color: var(--teal); }

.cform { padding: clamp(28px, 5vw, 60px); display: grid; gap: 16px; align-content: start; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 24px 16px 10px;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 150px; }
.field label {
  position: absolute;
  left: 17px; top: 18px;
  font-size: 15px;
  right: 17px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  pointer-events: none;
  transform-origin: left top;
  transition: transform .2s var(--ease), color .2s;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--teal-ink);
  box-shadow: 0 0 0 4px rgba(72, 188, 172, .2);
}
.field input:focus + label, .field textarea:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:not(:placeholder-shown) + label {
  transform: translateY(-11px) scale(.8);
  color: var(--teal-ink);
}
.field.is-invalid input, .field.is-invalid textarea { border-color: #c23a1c; }
.field.is-invalid label { color: #c23a1c; }

.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cform-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 6px; }
.form-status { margin: 0; font-size: 15px; }
.form-status.is-ok { color: var(--teal-ink); font-weight: 700; }
.form-status.is-err { color: #c23a1c; }
#sendBtn[disabled] { opacity: .7; cursor: progress; }
#sendBtn.is-busy .btn-label::after {
  content: "";
  display: inline-block;
  width: 14px; height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* =============================================================
   Inner pages (certificates, MEM QS, sustainability, contact, quote)
   ============================================================= */
.page-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(62vh, 560px);
  padding: 150px 0 64px;
  color: #fff;
  background-color: var(--deep);
  background-size: cover;
  background-position: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(14, 34, 24, .93) 0%, rgba(14, 34, 24, .72) 50%, rgba(14, 34, 24, .35) 100%),
    linear-gradient(0deg, rgba(14, 34, 24, .7) 0%, rgba(14, 34, 24, 0) 50%);
}
.page-hero.is-compact { min-height: 0; padding-bottom: 48px; }
.crumbs { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; font-size: 15px; color: rgba(255, 255, 255, .7); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: rgba(255, 255, 255, .4); }
.crumbs a { color: var(--teal); }
.crumbs a:hover { color: #fff; }
.page-hero h1 {
  color: #fff;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -.025em;
  font-weight: 700;
  margin: 0 0 18px;
  max-width: 16em;
  text-wrap: balance;
}
.page-hero .hero-lede { margin-bottom: 30px; }
.page-hero .hero-lede:last-child { margin-bottom: 0; }

.photo-frame.is-wide img { aspect-ratio: 4 / 3; }
@media (min-width: 992px) { .sticky-frame { position: sticky; top: 110px; } }
.logo-frame {
  background: var(--surface);
  border-radius: var(--r-lg);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: 0 0 0 1px var(--line);
  display: grid;
  place-items: center;
}
.logo-frame img { max-width: 100%; max-height: 260px; object-fit: contain; }

.sub-title { font-size: 22px; font-weight: 700; color: var(--forest); margin: 36px 0 4px; }
.sec-intro { max-width: 44em; color: var(--muted); font-size: 1.1rem; margin: -6px 0 40px; }

/* comparison table (CELs vs I-RECs) */
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); box-shadow: 0 0 0 1px var(--line); background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 620px; }
.compare th, .compare td { padding: 18px 22px; text-align: left; vertical-align: top; border-top: 1px solid var(--line); }
.compare thead th { border-top: 0; background: var(--forest-bg); color: #fff; font-size: 17px; }
.compare thead th:first-child { background: var(--deep); }
.compare tbody th { width: 26%; color: var(--forest); font-weight: 700; }
.compare td { color: var(--muted); }
.compare td strong { color: var(--forest); }

/* pill list (other EACs) */
.pill-list { list-style: none; padding: 0; margin: 22px 0 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.pill-list li { background: var(--surface); border: 1.5px solid var(--line); color: var(--forest); font-weight: 700; border-radius: 999px; padding: 10px 18px; }
.sec-tint .pill-list li { border-color: transparent; }

/* benefits grid (MEM QS) */
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 28px; }
.benefit { display: flex; align-items: center; gap: 14px; background: var(--surface); border-radius: var(--r-md); padding: 18px 20px; font-weight: 700; color: var(--forest); }
.benefit i { font-size: 28px; color: var(--teal-ink); }

/* statement callout (MEM risks) */
.callout {
  border-left: 4px solid var(--teal);
  padding: 4px 0 4px 26px;
  margin: 26px 0 0;
  font-size: clamp(1.2rem, 1.8vw, 1.45rem);
  line-height: 1.45;
  color: var(--forest);
  font-weight: 700;
}

/* process band as a full section */
.process-band { background: var(--forest-bg); color: #fff; }
.process-band .sec-title { color: #fff; }
.process-band .kicker { color: var(--teal); }
.process-band .steps { max-width: 760px; }
.process-band .step-text { font-size: 17px; }

/* form selects + quote layout */
.field select {
  width: 100%;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231f7a6e' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 24px 40px 10px 16px;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field select:focus { outline: none; border-color: var(--teal-ink); box-shadow: 0 0 0 4px rgba(72, 188, 172, .2); }
.field select + label { transform: translateY(-10px) scale(.78); color: var(--teal-ink); }
.field.is-invalid select { border-color: #c23a1c; }
.field .optional { font-weight: 400; opacity: .7; }
.field input, .field textarea, .field select { font-size: 16px; }
.form-group-title { font-weight: 700; color: var(--forest); margin: 10px 0 -4px; font-size: 17px; }
.cf-turnstile { min-height: 65px; }

.contact-side .steps { margin-top: 32px; }
.contact-side .step-text { color: rgba(255, 255, 255, .75); }

@media (max-width: 991px) {
  .page-hero { min-height: 0; padding-top: 130px; }
  .benefits { grid-template-columns: 1fr; }
  .form-first .cform { order: -1; }
}

/* =============================================================
   Footer
   ============================================================= */
.home #footer.site-footer {
  background: var(--deep);
  color: rgba(255, 255, 255, .72);
  font-size: 15.5px;
  padding: 0;
  position: relative;
}
.site-footer::before { /* teal hairline where the page meets the footer */
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--teal), rgba(72, 188, 172, 0));
}
.foot-top {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 48px clamp(48px, 8vw, 120px);
  align-items: start;
  padding: clamp(48px, 6vw, 72px) 0 40px;
}
.foot-logo { display: inline-block; }
.foot-logo img { height: 76px; width: auto; display: block; }
.foot-brand p { max-width: 30em; margin: 0 0 24px; line-height: 1.6; }
.foot-col h2 { font-size: 16px; font-weight: 700; color: #fff; margin: 8px 0 18px; }
.foot-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.foot-col a { color: rgba(255, 255, 255, .78); transition: color .2s; }
.foot-col a:hover, .foot-col a:focus-visible { color: var(--teal); }
.foot-contact li { display: flex; align-items: center; gap: 12px; }
.foot-contact i { color: var(--teal); font-size: 16px; width: 18px; }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 22px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 14px;
}
.foot-bottom p { margin: 0; }
.foot-lang { display: flex; gap: 6px; }
.foot-lang a {
  color: rgba(255, 255, 255, .7);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .18);
}
.foot-lang a:hover { color: #fff; border-color: rgba(255, 255, 255, .5); }
.foot-lang a[aria-current] { background: var(--teal); border-color: var(--teal); color: var(--deep); font-weight: 700; }
@media (max-width: 767px) {
  .foot-top { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* =============================================================
   Header language switch (EN | ES)
   ============================================================= */
.lang-item { margin-left: 28px; }
.lang-switch {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(255, 255, 255, .06);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color .3s, background-color .3s;
}
#header .navbar2 .lang-switch a,
#header .navbar2 .lang-switch a:focus {
  padding: 5px 11px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
  line-height: 1;
  border-radius: 999px;
  color: rgba(255, 255, 255, .8);
  transition: background-color .25s, color .25s;
}
#header .navbar2 .lang-switch a:hover { color: #fff !important; }
#header .navbar2 .lang-switch a[aria-current] { background: #fff; color: var(--deep) !important; }
#header.header-scrolled .lang-switch { border-color: var(--line); background: var(--mist); }
#header.header-scrolled .navbar2 .lang-switch a { color: var(--forest); }
#header.header-scrolled .navbar2 .lang-switch a:hover { color: var(--teal-ink) !important; }
#header.header-scrolled .navbar2 .lang-switch a[aria-current] { background: var(--forest-bg); color: #fff !important; }
/* inside the mobile menu panel (white background) */
.navbar2-mobile .lang-item { margin: 12px 20px; }
.navbar2-mobile .lang-switch { border-color: var(--line); background: var(--mist); }
#header .navbar2-mobile .lang-switch a { color: var(--forest); padding: 8px 16px; }
#header .navbar2-mobile .lang-switch a[aria-current] { background: var(--forest-bg); color: #fff !important; }

/* =============================================================
   Custom dropdown
   ============================================================= */
.field.is-enhanced select { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.cs-trigger {
  width: 100%;
  min-height: 60px;
  display: flex;
  align-items: flex-end;
  text-align: left;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 24px 44px 10px 16px;
  cursor: pointer;
  position: relative;
  transition: border-color .2s, box-shadow .2s;
}
.cs-trigger::after {
  content: "";
  position: absolute;
  right: 18px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2px solid var(--teal-ink);
  border-bottom: 2px solid var(--teal-ink);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s var(--ease);
}
.cs-trigger:hover { border-color: #b9ccc2; }
.field.is-open .cs-trigger, .cs-trigger:focus-visible {
  outline: none;
  border-color: var(--teal-ink);
  box-shadow: 0 0 0 4px rgba(72, 188, 172, .2);
}
.field.is-open .cs-trigger::after { transform: translateY(-30%) rotate(-135deg); }
.cs-value { min-height: 1.2em; }
.field.is-enhanced label { z-index: 1; }
.field.is-enhanced.has-value label,
.field.is-enhanced.is-open label { transform: translateY(-11px) scale(.8); color: var(--teal-ink); }
.field.is-enhanced.is-invalid .cs-trigger { border-color: #c23a1c; }
.cs-list {
  position: absolute;
  z-index: 20;
  left: 0; right: 0;
  top: calc(100% + 6px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border-radius: 14px;
  box-shadow: 0 0 0 1px var(--line), 0 18px 40px -12px rgba(14, 34, 24, .35);
  max-height: 280px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s;
}
.cs-list:focus { outline: none; }
.field.is-open .cs-list { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s var(--ease); }
.cs-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 9px;
  cursor: pointer;
  color: var(--ink);
}
.cs-list li.is-active { background: var(--mist); }
.cs-list li[aria-selected="true"] { color: var(--forest); font-weight: 700; }
.cs-list li[aria-selected="true"]::after {
  content: "";
  width: 12px; height: 7px;
  border-left: 2px solid var(--teal-ink);
  border-bottom: 2px solid var(--teal-ink);
  transform: rotate(-45deg) translateY(-2px);
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .rail-grid { grid-template-columns: 1fr; }
  .rail-item, .rail-item + .rail-item { padding: 16px 0; border-left: 0; }
  .rail-item + .rail-item { border-top: 1px solid rgba(255, 255, 255, .14); }
  .rail-item + .rail-item::after { left: 0; }
  .rail-sub { display: none; }
  .home #hero .container.hero-inner { padding-top: 120px; }
  .sticky-photo { position: relative; top: 0; height: 320px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar { padding: 28px 0; border-left: 0; }
  .pillar + .pillar { border-top: 1px solid var(--line); }
  .meters { grid-template-columns: repeat(2, 1fr); gap: 40px 24px; }
  .contact-shell { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr 1fr; grid-template-rows: none; }
  .market-grid .market-group:nth-child(n) { grid-column: auto; grid-row: auto; }
  .market-grid .market-group:nth-child(1) { grid-column: 1 / -1; }
  .frame-card { left: 16px; bottom: 16px; }
}
@media (max-width: 575px) {
  body.home { font-size: 16px; }
  .home #hero h1 { font-size: 2.1rem; }
  .meters { grid-template-columns: 1fr; }
  .cform-row { grid-template-columns: 1fr; }
  .market-grid { grid-template-columns: 1fr; }
  .market-group ul { columns: 2 8em; }
  .map-controls { right: 8px; top: 8px; }
  .map-controls button { width: 32px; height: 32px; font-size: 14px; }
  .map-card { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 12px; box-shadow: 0 0 0 1px var(--line); }
  .photo-frame img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .home *, .home *::before, .home *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
}

/* =============================================================
   Legal pages (Privacy Notice / Aviso de Privacidad)
   ============================================================= */
.legal-grid { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.legal-toc { position: sticky; top: 110px; }
.legal-toc-title { font-weight: 700; color: var(--forest); margin: 0 0 12px; }
.legal-toc ol { list-style: none; counter-reset: toc; padding: 0; margin: 0; border-left: 2px solid var(--line); }
.legal-toc li { counter-increment: toc; }
.legal-toc a {
  display: block;
  padding: 7px 0 7px 16px;
  margin-left: -2px;
  border-left: 2px solid transparent;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.35;
}
.legal-toc a::before { content: counter(toc) ". "; color: var(--teal-ink); }
.legal-toc a:hover { color: var(--forest); border-left-color: var(--teal); }
.legal-body { max-width: 72ch; }
.legal-sec { padding-bottom: 12px; scroll-margin-top: 110px; }
.legal-sec + .legal-sec { border-top: 1px solid var(--line); padding-top: 28px; }
.legal-body h2 { font-size: 24px; font-weight: 700; color: var(--forest); letter-spacing: -.01em; margin: 0 0 14px; }
.legal-body p, .legal-body li { color: #3a4a41; line-height: 1.7; }
.legal-body ul { padding-left: 1.2em; margin: 0 0 1rem; }
.legal-body li { margin-bottom: 6px; }
.legal-body li::marker { color: var(--teal-ink); }
.legal-body a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }
.legal-note { background: var(--mist); border-radius: var(--r-sm); padding: 14px 18px; font-size: 15px; margin-bottom: 32px; }
.todo { background: #fff3c4; color: #6b4e00; padding: 1px 6px; border-radius: 4px; font-weight: 700; }
@media (max-width: 991px) {
  .legal-grid { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
}

/* consent line under forms */
.form-consent { margin: -4px 0 0; font-size: 13.5px; color: var(--muted); }
.form-consent a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }
.foot-legal { color: rgba(255, 255, 255, .78); margin-left: 12px; padding-left: 12px; border-left: 1px solid rgba(255, 255, 255, .2); }
.foot-legal:hover { color: var(--teal); }

/* =============================================================
   Mobile navigation (full-screen menu)
   ============================================================= */
.nav-burger { display: none; }
.nav-extra { display: none; }

@media (max-width: 991px) {
  /* the template's old toggle is replaced by .nav-burger */
  .home .mobile-nav2-toggle { display: none !important; }

  .home #header { padding: 10px 0; }
  .home #header .container { justify-content: space-between !important; }
  .home #header .logo img { max-height: 54px; }
  .home #header.header-scrolled .logo img { max-height: 44px; }

  .nav-burger {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .3);
    background: rgba(255, 255, 255, .08);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: pointer;
    position: relative;
    z-index: 2;
    transition: background-color .3s, border-color .3s;
  }
  .nav-burger span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--surface);
    transition: transform .35s var(--ease), opacity .2s, background-color .3s;
  }
  #header.header-scrolled .nav-burger { border-color: var(--line); background: var(--mist); }
  #header.header-scrolled .nav-burger span { background: var(--forest-bg); }
  body.nav-open .nav-burger { border-color: rgba(255, 255, 255, .3) !important; background: rgba(255, 255, 255, .08) !important; }
  body.nav-open .nav-burger span { background: #fff !important; }
  body.nav-open .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* while open: header bar sits transparently over the sheet */
  body.nav-open { overflow: hidden; }
  body.nav-open #header,
  body.nav-open #header.header-scrolled {
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  body.nav-open #scrolledLogo { display: none !important; }
  body.nav-open #normalLogo { display: block !important; }

  /* the sheet */
  .home #navbar2 ul#siteMenu {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    inset: 0;
    z-index: -1;
    height: 100vh;
    height: 100dvh;
    padding: 96px 24px calc(28px + env(safe-area-inset-bottom));
    margin: 0;
    overflow-y: auto;
    background:
      radial-gradient(120% 60% at 100% 0%, rgba(72, 188, 172, .18), rgba(72, 188, 172, 0) 60%),
      var(--deep);
    opacity: 0;
    visibility: hidden;
    transition: opacity .3s var(--ease), visibility 0s .3s;
  }
  body.nav-open .home #navbar2 ul#siteMenu,
  body.nav-open #navbar2 ul#siteMenu {
    opacity: 1;
    visibility: visible;
    transition: opacity .3s var(--ease);
  }
  #navbar2 ul#siteMenu > li {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .35s var(--ease), transform .45s var(--ease);
  }
  body.nav-open #navbar2 ul#siteMenu > li { opacity: 1; transform: none; }
  body.nav-open #navbar2 ul#siteMenu > li:nth-child(2) { transition-delay: .04s; }
  body.nav-open #navbar2 ul#siteMenu > li:nth-child(3) { transition-delay: .08s; }
  body.nav-open #navbar2 ul#siteMenu > li:nth-child(4) { transition-delay: .12s; }
  body.nav-open #navbar2 ul#siteMenu > li:nth-child(5) { transition-delay: .16s; }
  body.nav-open #navbar2 ul#siteMenu > li:nth-child(6) { transition-delay: .2s; }
  body.nav-open #navbar2 ul#siteMenu > li:nth-child(7) { transition-delay: .24s; }

  #header .navbar2 #siteMenu a.nav-link,
  #header.header-scrolled .navbar2 #siteMenu a.nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 2px;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -.01em;
    line-height: 1.15;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    white-space: normal;
  }
  #header .navbar2 #siteMenu a.nav-link::after {
    content: "";
    width: 9px; height: 9px;
    border-top: 2px solid rgba(255, 255, 255, .35);
    border-right: 2px solid rgba(255, 255, 255, .35);
    transform: rotate(45deg);
    flex: none;
  }
  #header .navbar2 #siteMenu a.nav-link.active { color: var(--teal) !important; }
  #header .navbar2 #siteMenu a.nav-link.active::after { border-color: var(--teal); }

  /* language switch inside the sheet */
  #siteMenu .lang-item { margin: 28px 0 0; }
  #siteMenu .lang-switch { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
  #header .navbar2 #siteMenu .lang-switch a { padding: 10px 20px; font-size: 14px; color: rgba(255, 255, 255, .8); }
  #siteMenu .lang-switch,
  #header.header-scrolled #siteMenu .lang-switch { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); }
  #header .navbar2 #siteMenu .lang-switch a,
  #header.header-scrolled .navbar2 #siteMenu .lang-switch a { color: rgba(255, 255, 255, .8); }
  #header .navbar2 #siteMenu .lang-switch a[aria-current],
  #header.header-scrolled .navbar2 #siteMenu .lang-switch a[aria-current] { background: #fff; color: var(--deep) !important; }

  /* quote button + contact at the bottom */
  #siteMenu .nav-extra { display: block; margin-top: auto; padding-top: 32px; }
  #header .navbar2 #siteMenu .nav-extra .btn-pill {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 17px 24px;
    font-size: 17px;
    color: var(--deep);
  }
  .nav-extra-contact { display: flex; justify-content: space-between; gap: 12px; margin: 18px 2px 0; }
  #header .navbar2 #siteMenu .nav-extra-contact a { padding: 0; font-size: 15px; font-weight: 400; color: rgba(255, 255, 255, .7); }
}

/* =============================================================
   Mobile layout polish
   ============================================================= */
@media (max-width: 767px) {
  .home .container { padding-left: 20px; padding-right: 20px; }
  .home .sec { padding: 56px 0; }
  .home .sec-title, .impact-title { font-size: 1.8rem; line-height: 1.14; }
  .lede { font-size: 1.05rem; }
  .kicker { font-size: 14px; }
  .sec-head { margin-bottom: 28px; }

  /* photos: landscape crop instead of near full-screen portraits */
  .photo-frame img, .photo-frame.is-wide img { aspect-ratio: 16 / 10; border-radius: 18px; }
  .sticky-photo { height: 240px; border-radius: 18px; }
  .frame-card { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 14px 16px; }

  /* hero */
  .home #hero .container.hero-inner { padding-top: 110px; padding-bottom: 36px; }
  .hero-lede { margin-bottom: 28px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn-pill, .hero-actions .btn-ghost { justify-content: center; padding: 16px 22px; }
  .page-hero { padding: 116px 0 40px; }
  .page-hero h1 { font-size: 2.2rem; }

  /* buttons in content get a comfortable touch size */
  .home .sec .btn-pill { padding: 15px 24px; }

  /* counters: 2 x 2 */
  .meters { grid-template-columns: 1fr 1fr; gap: 32px 16px; }
  .meter { font-size: 24px; padding: 6px; gap: 3px; border-radius: 10px; }
  .drum { border-radius: 5px; }
  .meter-card p { font-size: 14px; margin-top: 12px; }
  .impact-title { margin-bottom: 36px; }

  /* comparison table becomes stacked cards */
  .table-wrap { overflow: visible; box-shadow: none; background: none; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { background: var(--surface); border-radius: 16px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 12px; overflow: hidden; }
  .compare tbody th { width: 100%; background: var(--forest-bg); color: #fff; border: 0; padding: 14px 18px; }
  .compare td { border-top: 0; padding: 12px 18px 12px 92px; position: relative; }
  .compare td + td { border-top: 1px solid var(--line); }
  .compare td::before { content: attr(data-label); position: absolute; left: 18px; top: 12px; font-weight: 700; color: var(--teal-ink); }

  /* map + legend */
  .map-legend { gap: 8px; }
  .chip { padding: 8px 13px 8px 10px; font-size: 14px; }
  .map-stage { border-radius: 16px; }
  .sec-head-note { font-size: 15px; }

  /* contact / quote shells */
  .contact-shell { border-radius: 20px; }
  .contact-side, .cform { padding: 28px 22px; }
  .cform-foot { flex-direction: column; align-items: stretch; }
  .cform-foot .btn-pill { justify-content: center; padding: 16px 24px; }
  .form-status { text-align: center; }

  /* quote band */
  .home .quote-band { padding: 64px 0; }

  /* footer */
  .foot-top { grid-template-columns: 1fr; gap: 28px; padding: 44px 0 28px; }
  .foot-logo img { height: 58px; }
  .foot-col h2 { margin: 0 0 14px; }
  .foot-col ul { gap: 14px; }
  .foot-col:not(:last-child) ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .foot-col + .foot-col { padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); }
  .foot-address { align-items: flex-start !important; }
  .foot-address i { margin-top: 3px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: calc(26px + env(safe-area-inset-bottom)); }
  .foot-legal { display: inline-block; margin: 6px 0 0; padding: 0; border: 0; }
  .foot-bottom p:first-child { line-height: 1.8; }

  /* privacy notice */
  .legal-toc { background: var(--mist); border-radius: 14px; padding: 4px 18px; }
  .legal-toc summary { cursor: pointer; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; margin: 0; }
  .legal-toc summary::-webkit-details-marker { display: none; }
  .legal-toc summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink); transform: rotate(45deg); transition: transform .2s; }
  .legal-toc[open] summary::after { transform: rotate(-135deg); }
  .legal-toc ol { margin-bottom: 14px; }
  .legal-body h2 { font-size: 21px; }
}

/* service shortcuts under the homepage hero, compact on phones */
@media (max-width: 575px) {
  .hero-rail { display: block; }
  .rail-grid { grid-template-columns: repeat(3, 1fr); }
  .rail-item, .rail-item + .rail-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 16px 10px 18px;
    border-top: 0;
    border-left: 1px solid rgba(255, 255, 255, .14);
  }
  .rail-item:first-child { border-left: 0; padding-left: 0; }
  .rail-item i { font-size: 22px; }
  .rail-title { font-size: 14px; line-height: 1.25; }
  .rail-sub { display: none; }
  .home #hero .container.hero-inner { padding-bottom: 28px; }
  .video-toggle { top: auto; bottom: 96px; }
}

/* desktop: TOC summary behaves like a plain title */
@media (min-width: 992px) {
  .legal-toc summary { list-style: none; pointer-events: none; }
  .legal-toc summary::-webkit-details-marker { display: none; }
}

/* ---------- Map on tablets and phones: taller box ---------- */
@media (max-width: 991px) { .map-stage { aspect-ratio: 16 / 10; } }
@media (max-width: 575px) { .map-stage { aspect-ratio: 4 / 3; } }

.map-hint {
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: 14px;
  transform: translate(-50%, 8px);
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(14, 34, 24, .88);
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s, transform .25s var(--ease);
}
.map-hint.is-on { opacity: 1; transform: translate(-50%, 0); }

/* =============================================================
   Blog
   ============================================================= */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line);
  transition: box-shadow .3s, transform .3s var(--ease);
}
.post-card:hover { box-shadow: 0 0 0 1px var(--line), 0 22px 44px -24px rgba(14, 34, 24, .45); transform: translateY(-3px); }
.post-card[hidden] { display: none; }
.post-card-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--deep); }
.post-card-img img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .6s var(--ease); }
.post-card:hover .post-card-img img { transform: scale(1.04); }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 20px; line-height: 1.25; font-weight: 700; margin: 10px 0 10px; letter-spacing: -.01em; }
.post-card h3 a { color: var(--forest); }
.post-card h3 a:hover { color: var(--teal-ink); }
.post-card p { color: var(--muted); font-size: 15px; margin: 0 0 18px; }
.post-card .text-link { margin-top: auto; align-self: flex-start; font-size: 15px; }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted) !important; margin: 0 !important; }
.post-chip { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--teal-ink); background: var(--mist); padding: 4px 10px; border-radius: 999px; }
.post-chip.is-light { background: rgba(255, 255, 255, .12); color: #fff; }
/* featured (newest) card */
.post-grid.is-index .post-card.is-featured { grid-column: 1 / -1; flex-direction: row; }
.post-card.is-featured .post-card-img { flex: 1.25; aspect-ratio: auto; min-height: 320px; }
.post-card.is-featured .post-card-body { flex: 1; padding: 36px 38px; justify-content: center; }
.post-card.is-featured h3 { font-size: clamp(24px, 2.4vw, 32px); }
.post-card.is-featured p { font-size: 16.5px; }
.blog-toolbar { margin-bottom: 26px; }

/* post page */
.post-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 15px !important; }
.post-sec { padding-top: clamp(48px, 6vw, 80px) !important; }
.post-body { max-width: 760px; margin: 0 auto; }
.post-body > p, .post-body li { font-size: 17.5px; line-height: 1.75; color: #33433a; }
.post-body .lede { font-size: 1.3rem; line-height: 1.6; color: var(--forest); margin-bottom: 36px; }
.post-body h2 { font-size: 26px; font-weight: 700; color: var(--forest); letter-spacing: -.015em; margin: 44px 0 14px; }
.post-body a:not(.btn-pill):not(.btn-outline) { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }

.key-figures { background: var(--deep); color: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 36px); margin: 8px -32px 12px; }
.key-figures h2 { color: #fff; font-size: 20px; margin: 0 0 20px; }
.kf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(255, 255, 255, .1); border-radius: 14px; overflow: hidden; }
.kf { background: var(--deep); padding: 16px 18px; }
.kf-label { font-size: 13px; color: rgba(255, 255, 255, .65); margin: 0 0 6px; }
.kf-value { font-size: 24px; font-weight: 700; line-height: 1.15; margin: 0 0 6px; color: #fff; }
.kf-value small { font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, .7); }
.kf-delta { font-size: 13.5px; margin: 0; }
.kf-delta.is-up { color: var(--teal); }
.kf-delta.is-down { color: #ff9a85; }
.kf-delta.is-flat { color: rgba(255, 255, 255, .6); }
.kf-delta.is-up::before { content: "↑ "; }
.kf-delta.is-down::before { content: "↓ "; }
.mix { margin-top: 22px; }
.mix-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .1); }
.mix-bar span { display: block; min-width: 3px; }
.mix-legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: rgba(255, 255, 255, .8); }
.mix-legend li { display: flex; align-items: center; gap: 7px; }
.mix-legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.mix-legend b { color: #fff; }

.post-figure { margin: 40px -32px; }
.post-figure img { width: 100%; height: auto; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), 0 24px 48px -28px rgba(14, 34, 24, .5); display: block; }
.post-figure figcaption { font-size: 14px; color: var(--muted); margin: 12px 2px 0; }
.post-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.post-actions .btn-pill i, .btn-outline i { font-size: 17px; }
.btn-outline {
  display: inline-flex; align-items: center; gap: .5em;
  font-weight: 700; font-size: 16px; line-height: 1;
  padding: 13px 24px; border-radius: 999px;
  border: 2px solid var(--line); color: var(--forest); background: var(--surface);
  transition: border-color .2s, color .2s;
}
.btn-outline:hover { border-color: var(--forest-bg); color: var(--forest); }

.about-data { margin-top: 44px; padding: 20px 22px; border-radius: 14px; background: var(--mist); }
.about-data h2 { font-size: 16px !important; margin: 0 0 8px !important; }
.about-data p { font-size: 14px !important; line-height: 1.6 !important; margin: 0; color: var(--muted) !important; }

.post-cta { margin-top: 36px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 28px; border-radius: 18px; background: var(--forest-bg); color: #fff; }
.post-cta h2 { color: #fff !important; font-size: 21px !important; margin: 0 0 6px !important; }
.post-cta p { color: rgba(255, 255, 255, .8) !important; font-size: 15.5px !important; margin: 0 !important; }
.post-cta .btn-pill { flex: none; }

/* subscribe */
.subscribe-inner { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.subscribe-inner .sec-title { margin-bottom: 10px; }
.subscribe-inner p { color: var(--muted); margin: 0; }
.subscribe-form { padding: 0; gap: 12px; }
.subscribe-row { display: flex; gap: 10px; align-items: stretch; }
.subscribe-row .field { flex: 1; }
.subscribe-row .btn-pill { flex: none; padding-left: 28px; padding-right: 28px; }
.subscribe-form .form-consent { margin: 0; }
.subscribe-form .form-status:empty { display: none; }

@media (max-width: 991px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-grid.is-index .post-card.is-featured { flex-direction: column; }
  .post-card.is-featured .post-card-img { aspect-ratio: 16 / 9; min-height: 0; }
  .post-card.is-featured .post-card-body { padding: 24px 24px 28px; }
  .key-figures, .post-figure { margin-left: 0; margin-right: 0; }
  .subscribe-inner { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .post-grid { grid-template-columns: 1fr; gap: 18px; }
  .kf-grid { grid-template-columns: 1fr 1fr; }
  .kf-value { font-size: 20px; }
  .post-body > p, .post-body li { font-size: 16.5px; }
  .post-body .lede { font-size: 1.15rem; }
  .post-body h2 { font-size: 22px; margin-top: 36px; }
  .post-cta { flex-direction: column; align-items: stretch; text-align: left; }
  .post-cta .btn-pill, .post-actions .btn-pill, .post-actions .btn-outline { justify-content: center; }
  .post-actions { flex-direction: column; }
  .subscribe-row { flex-direction: column; }
  .subscribe-row .btn-pill { justify-content: center; }
}

.key-figures .mix-legend li { color: rgba(255, 255, 255, .8); font-size: 14px; line-height: 1.4; }

.blog-hero-actions { margin-top: 26px; }

/* subscribe: language choice */
.sub-langs { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.sub-langs legend { float: left; font-size: 14.5px; font-weight: 700; color: var(--forest); margin: 0 6px 0 0; padding: 0; width: auto; }
.sub-lang { position: relative; cursor: pointer; }
.sub-lang input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sub-lang span {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface);
  font-size: 14.5px; font-weight: 700; color: var(--forest);
  transition: background-color .2s, border-color .2s, color .2s;
}
.sub-lang span::before {
  content: ""; width: 16px; height: 16px; border-radius: 5px;
  border: 1.5px solid #b9ccc2; background: var(--surface) center / 10px no-repeat;
  transition: background-color .2s, border-color .2s;
}
.sub-lang input:checked + span { border-color: var(--forest-bg); background: var(--forest-bg); color: #fff; }
.sub-lang input:checked + span::before {
  border-color: var(--teal); background-color: var(--teal);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 10'%3E%3Cpath d='M1 5l3.5 3.5L11 1' fill='none' stroke='%230e2218' stroke-width='2'/%3E%3C/svg%3E");
}
.sub-lang input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }

/* =============================================================
   Redemption example (Renewable Certificates)
   ============================================================= */
.rx-tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); margin-bottom: 26px; }
.rx-tabs button {
  border: 0; background: none; cursor: pointer;
  padding: 11px 20px; border-radius: 999px;
  font: inherit; font-size: 15px; font-weight: 700; color: var(--muted);
  transition: background-color .25s, color .25s;
}
.rx-tabs button[aria-selected="true"] { background: var(--forest-bg); color: #fff; }
.rx-tabs button:hover:not([aria-selected="true"]) { color: var(--forest); }
.rx-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.rx-panel[hidden] { display: none; }
#rx-b.rx-panel { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.rx-doc { position: relative; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 28px 56px -30px rgba(14, 34, 24, .45); }
.rx-doc img { display: block; width: 100%; height: auto; }
@media (min-width: 992px) { .rx-doc { position: sticky; top: 110px; } }
.rx-dot {
  position: absolute;
  width: 28px; height: 28px; margin: -14px 0 0 -14px;
  border-radius: 50%; border: 2px solid #fff;
  background: var(--teal); color: var(--deep);
  font-size: 13px; font-weight: 700; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 0 4px 12px -2px rgba(14, 34, 24, .45);
  transition: transform .2s var(--ease), background-color .2s, color .2s;
}
.rx-dot::after { /* soft pulse to show the dots are interactive */
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid var(--teal); opacity: 0; animation: rx-pulse 2.4s ease-out infinite;
}
@keyframes rx-pulse { 0% { opacity: .6; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.35); } }
.rx-dot.is-hot, .rx-dot:hover, .rx-dot:focus-visible { background: var(--forest-bg); color: #fff; transform: scale(1.18); }
.rx-list { list-style: none; padding: 0; margin: 0; }
.rx-list li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 14px 12px; border-radius: 14px; transition: background-color .2s; cursor: default; }
.rx-list li + li { margin-top: 2px; }
.rx-list li.is-hot { background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
.rx-n { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); color: var(--deep); font-weight: 700; font-size: 14px; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.rx-list li.is-hot .rx-n { background: var(--forest-bg); color: #fff; }
.rx-list h4 { font-size: 17px; font-weight: 700; color: var(--forest); margin: 3px 0 4px; }
.rx-list p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.rx-foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--line); }
.rx-foot p { margin: 0; color: var(--muted); font-size: 15px; max-width: 46em; }
.rx-foot .btn-pill { flex: none; }
@media (max-width: 991px) {
  .rx-panel, #rx-b.rx-panel { grid-template-columns: 1fr; }
  .rx-foot { flex-direction: column; align-items: stretch; }
  .rx-foot .btn-pill { justify-content: center; }
}
@media (max-width: 575px) {
  .rx-tabs { display: flex; width: 100%; }
  .rx-tabs button { flex: 1; padding: 11px 10px; font-size: 14px; }
  .rx-dot { width: 22px; height: 22px; margin: -11px 0 0 -11px; font-size: 11px; border-width: 1.5px; }
}
@media (prefers-reduced-motion: reduce) { .rx-dot::after { animation: none; } }

/* homepage: latest posts */
.home-blog .post-grid { margin-top: 4px; }

/* =============================================================
   Hero video sequence: "focus pull" between clips
   ============================================================= */
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--deep); }
.home #hero .hero-media video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  opacity: 0;
  transform: scale(1.08);
  filter: blur(12px) saturate(1.15);
  transition: opacity 1.6s var(--ease), filter 1.6s var(--ease), transform 9s cubic-bezier(.15, .6, .2, 1);
}
/* the clip that is playing: sharp, slowly settling from a slight zoom */
.home #hero .hero-media video.is-front { opacity: 1; transform: scale(1); filter: none; z-index: 1; }
/* the clip that is leaving stays underneath, softly blurring out */
.home #hero .hero-media video.is-leaving { opacity: 1; filter: blur(8px) brightness(.8); transform: scale(1.03); z-index: 0; transition: filter 1.6s var(--ease), transform 1.6s var(--ease); }
/* light sweep that crosses the frame during the change */
.hero-sweep {
  position: absolute; inset: -10% -30%; z-index: 2; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(72, 188, 172, .28) 48%, rgba(255, 255, 255, .18) 50%, rgba(72, 188, 172, .28) 52%, transparent 62%);
  mix-blend-mode: screen;
  opacity: 0;
  transform: translateX(-70%);
}
.hero-sweep.go { animation: hero-sweep 1.7s var(--ease) both; }
@keyframes hero-sweep {
  0% { opacity: 0; transform: translateX(-70%); }
  25% { opacity: 1; }
  100% { opacity: 0; transform: translateX(70%); }
}
/* clip progress, next to the pause button */
.hero-clips { position: absolute; top: 128px; right: 72px; display: flex; gap: 6px; }
.hero-clips[hidden] { display: none; }
.hero-clips span { position: relative; width: 26px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .28); overflow: hidden; }
.hero-clips span[hidden] { display: none; }
.hero-clips span::after { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: #fff; border-radius: 3px; transition: width .3s linear; }
@media (max-width: 575px) {
  .hero-clips { top: auto; bottom: 114px; right: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  .home #hero .hero-media video { transition: none; transform: none; filter: none; }
  .hero-sweep { display: none; }
}

/* ---------- Homepage: tighter rhythm between blog, contact and footer ---------- */
.home .home-blog { padding-bottom: clamp(20px, 3vw, 36px); }
.home .home-blog + .contact-section { padding-top: clamp(20px, 3vw, 36px); padding-bottom: clamp(48px, 6vw, 80px); }

/* ---------- Footer brand column ---------- */
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; max-width: 420px; }
.foot-news {
  width: 100%;
  padding: 20px 22px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09);
}
.foot-news-title { color: #fff; font-weight: 700; font-size: 16.5px; margin: 0 0 4px; }
.foot-news-text { color: rgba(255, 255, 255, .62); font-size: 14.5px; line-height: 1.5; margin: 0 0 16px; }
.foot-news-btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--teal); color: var(--deep); font-weight: 700; font-size: 14.5px;
  transition: background-color .2s, color .2s;
}
.foot-news-btn:hover { background: #fff; color: var(--deep); }
.foot-badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.foot-badges li {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .14);
  color: rgba(255, 255, 255, .75); font-size: 13px;
}
.foot-badges i { color: var(--teal); font-size: 14px; }
@media (max-width: 767px) {
  .foot-brand { max-width: none; }
}

/* =============================================================
   Phones & tablets: compact homepage
   ============================================================= */
.snap-dots { display: none; }
.post-more { display: none; }

@media (min-width: 992px) {
  /* desktop keeps the 3 latest posts in the homepage teaser */
  .home-blog .post-grid > .post-card:nth-child(n+4) { display: none; }
}

@media (max-width: 991px) {
  /* video controls: top-right under the header, clear of the service shortcuts */
  .video-toggle { top: calc(82px + env(safe-area-inset-top, 0px)); bottom: auto; right: 16px; width: 36px; height: 36px; font-size: 16px; }
  .hero-clips { top: calc(98px + env(safe-area-inset-top, 0px)); bottom: auto; right: 62px; }
  .home #hero .container.hero-inner { padding-top: 136px; }

  /* swipeable rows: edge-to-edge, one card plus a peek of the next */
  [data-snap] {
    display: flex !important;
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 6px calc(50vw - 50%) 14px;
    scroll-padding-inline: calc(50vw - 50%);
    border-top: 0 !important;
  }
  [data-snap]::-webkit-scrollbar { display: none; }
  [data-snap] > * { flex: 0 0 min(46%, 340px); scroll-snap-align: start; margin: 0 !important; }
  .snap-dots { display: flex; justify-content: center; gap: 7px; margin-top: 6px; }
  .snap-dots[hidden] { display: none; }
  .snap-dots button { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 999px; background: #c7d5ce; transition: width .3s var(--ease), background-color .3s; cursor: pointer; }
  .snap-dots button.is-on { width: 22px; background: var(--teal-ink); }
  .process-band .snap-dots button, .impact .snap-dots button { background: rgba(255, 255, 255, .3); }

  /* pillars become cards inside the row */
  .pillars[data-snap] > .pillar,
  .pillars[data-snap] > .pillar + .pillar {
    background: var(--surface); border: 0; border-radius: 18px;
    padding: 22px 22px 24px;
    box-shadow: 0 0 0 1px var(--line);
  }
  .pillars[data-snap] > .pillar i { margin-bottom: 12px; }
  .sec-tint .pillars[data-snap] > .pillar { box-shadow: none; }

  /* MEM QS facts become cards */
  .fact-list[data-snap] { margin-top: 20px; margin-bottom: 24px; }
  .fact-list[data-snap] > .fact {
    grid-template-columns: 1fr; gap: 10px;
    background: var(--surface); border: 0 !important; border-radius: 18px;
    padding: 20px 20px 22px;
  }
  .fact-list[data-snap] > .fact h3 { margin-top: 0; }

  /* "see all posts" tile at the end of the homepage blog row */
  .post-more {
    display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px;
    padding: 26px 24px; background: var(--forest-bg); color: #fff;
  }
  .post-more:hover { color: #fff; transform: none; }
  .post-more-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--teal); color: var(--deep); display: grid; place-items: center; font-size: 20px; }
  .post-more-title { font-size: 21px; font-weight: 700; }
  .post-more-text { font-size: 15px; color: rgba(255, 255, 255, .75); }
}

@media (max-width: 767px) {
  [data-snap] > * { flex-basis: 84%; }
  .home .sec { padding: 48px 0; }
  .home .quote-band { padding: 52px 0; }
  .home .impact { padding: 56px 0; }
  .impact-title { margin-bottom: 28px; }
  .sec-head { margin-bottom: 22px; }
  /* homepage MEM QS: the tall photo is decorative, drop it on phones */
  .home:not(.page-inner) #features .sticky-photo { display: none; }
  .home:not(.page-inner) #features .row > .col-lg-5 { display: none; }
  /* map legend on one swipeable line */
  .map-legend { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); padding: 0 calc(50vw - 50%) 4px; }
  .map-legend::-webkit-scrollbar { display: none; }
  .map-legend .chip { flex: none; }
  /* homepage blog/contact rhythm stays tight on phones */
  .home .home-blog { padding-bottom: 24px; }
  .home .home-blog + .contact-section { padding-top: 16px; padding-bottom: 48px; }
}

/* key figures: 6-column grid, rows of 2 / 3 / 2 */
.kf-grid { grid-template-columns: repeat(6, 1fr); }
.kf-big, .kf-half { grid-column: span 3; }
.kf-third { grid-column: span 2; }
.kf-big .kf-value { font-size: 30px; }
@media (max-width: 767px) {
  .kf-grid { grid-template-columns: 1fr 1fr; }
  .kf-third, .kf-half { grid-column: span 1; }
  .kf-big, .kf-wide-m { grid-column: 1 / -1; }
  .kf-big .kf-value { font-size: 24px; }
}
/* about the data: footnote-style bullets */
.about-data ul { margin: 0; padding-left: 1.1em; }
.about-data li { font-size: 14px !important; line-height: 1.55 !important; color: var(--muted) !important; margin: 0 0 6px; }
.about-data li:last-child { margin-bottom: 0; }
.about-data li::marker { color: var(--teal-ink); }

/* =============================================================
   SEO landing pages (I-RECs in Mexico, CELs) + FAQ
   ============================================================= */
.mx-panel { background: var(--deep); color: #fff; border-radius: 22px; padding: clamp(24px, 4vw, 34px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.mx-panel .kicker { color: var(--teal); margin: 0; }
.mx-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(255, 255, 255, .1); border-radius: 14px; overflow: hidden; }
.mx-stats div { background: var(--deep); padding: 16px 18px; }
.mx-stats b { display: block; font-size: 26px; line-height: 1.15; color: #fff; }
.mx-stats span { display: block; font-size: 13.5px; color: rgba(255, 255, 255, .68); margin-top: 4px; }
.mx-note { margin: 0; font-size: 14.5px; color: rgba(255, 255, 255, .75); }
.mx-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.mx-list li { position: relative; padding-left: 30px; color: rgba(255, 255, 255, .85); }
.mx-list li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 14px; height: 8px; border-left: 2.5px solid var(--teal); border-bottom: 2.5px solid var(--teal); transform: rotate(-45deg); }
.text-link.is-light { color: var(--teal); }
.text-link.is-light:hover { color: #fff; }
.band-links { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin: 32px 0 0; }
.inline-link { margin: 6px 0 18px; }
.sec-foot-link { margin: 24px 0 0; }
.post-cta-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex: none; }

.faq-wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 18px;
  padding: 20px 2px; font-size: 18px; font-weight: 700; color: var(--forest);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none; width: 10px; height: 10px;
  border-right: 2px solid var(--teal-ink); border-bottom: 2px solid var(--teal-ink);
  transform: rotate(45deg) translateY(-3px); transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.faq-item summary:hover { color: var(--teal-ink); }
.faq-a p { margin: 0 0 20px; color: var(--muted); line-height: 1.65; max-width: 62ch; }
.faq-a a { color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 991px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .post-cta-actions { align-items: stretch; }
}
@media (max-width: 575px) {
  .mx-stats b { font-size: 21px; }
  .faq-item summary { font-size: 16.5px; padding: 18px 2px; }
}

/* =============================================================
   Globe (desktop) + generation-mix donut in the country card
   ============================================================= */
.globe-canvas { position: absolute; inset: 0; display: none; cursor: grab; touch-action: none; }
.globe-canvas.is-dragging { cursor: grabbing; }
.map-stage.is-globe .globe-canvas { display: block; }
.map-stage.is-globe > svg { visibility: hidden; }
.map-stage.is-globe { background: radial-gradient(circle at 50% 50%, #f7faf8 0%, #fff 60%); }
.view-switch { margin-left: auto; display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1.5px var(--line); }
.view-switch button { border: 0; background: none; cursor: pointer; padding: 7px 16px; border-radius: 999px; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); }
.view-switch button[aria-pressed="true"] { background: var(--forest-bg); color: #fff; }
.map-card-mix { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 16px; padding: 12px; border-radius: 12px; background: var(--mist); }
.map-card-mix[hidden] { display: none; }
.map-card-mix svg { flex: none; }
.map-card-mix .mix-title { font-size: 12.5px; font-weight: 700; color: var(--forest); margin: 0 0 4px; }
.map-card-mix ul { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 2px; font-size: 12.5px; color: var(--muted); }
.map-card-mix li { display: flex; align-items: center; gap: 6px; }
.map-card-mix li i { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.map-card-mix li b { color: var(--forest); margin-left: auto; padding-left: 6px; }
.map-card-mix .mix-link { font-size: 12.5px; font-weight: 700; color: var(--teal-ink); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 991px) { .view-switch { display: none; } }

/* =============================================================
   Signature 1: the certificate journey (scroll story)
   ============================================================= */
.journey-head { max-width: 640px; }
.journey-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; margin-top: 8px; }
.journey-stage { position: sticky; top: 110px; }
.journey-art { width: 100%; height: auto; display: block; border-radius: 26px; box-shadow: 0 30px 60px -34px rgba(14, 34, 24, .6); }
.journey-art text { font-family: inherit; }
.journey-dots { display: flex; justify-content: center; gap: 7px; margin-top: 16px; }
.journey-dots span { width: 7px; height: 7px; border-radius: 999px; background: #c7d5ce; transition: width .35s var(--ease), background-color .35s; }
.journey-stage[data-step="1"] .journey-dots span:nth-child(1), .journey-stage[data-step="2"] .journey-dots span:nth-child(2),
.journey-stage[data-step="3"] .journey-dots span:nth-child(3), .journey-stage[data-step="4"] .journey-dots span:nth-child(4),
.journey-stage[data-step="5"] .journey-dots span:nth-child(5) { width: 22px; background: var(--teal-ink); }

/* layers build up step by step */
.j-l { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease), transform .7s var(--ease); }
.journey-stage.s1 .j-s1, .journey-stage.s2 .j-s2, .journey-stage.s3 .j-s3, .journey-stage.s4 .j-s4, .journey-stage.s5 .j-s5 { opacity: 1; transform: none; }
.journey-stage.s5 .j-s3, .journey-stage.s5 .j-s4 { opacity: 0; transform: translateY(-10px) scale(.98); }
.j-blades { animation: j-spin 5s linear infinite; }
@keyframes j-spin { to { transform: rotate(360deg); } }
.j-sun { animation: j-glow 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes j-glow { 50% { transform: scale(1.08); opacity: .85; } }
.j-flow { stroke-dasharray: 46 260; animation: j-flow 2.2s linear infinite; }
@keyframes j-flow { from { stroke-dashoffset: 306; } to { stroke-dashoffset: 0; } }
.j-stamp { transform-box: fill-box; transform-origin: center; }
.journey-stage.s4:not(.s5) .j-stamp { animation: j-stamp .55s var(--ease) both; }
@keyframes j-stamp { from { opacity: 0; transform: translate(372px, 214px) rotate(-12deg) scale(1.6); } to { opacity: 1; transform: translate(372px, 214px) rotate(-12deg) scale(1); } }
.journey-stage.s5 .j-check { animation: j-pop .5s var(--ease) .25s both; }
@keyframes j-pop { from { opacity: 0; transform: translate(438px, 64px) scale(.3); } to { opacity: 1; transform: translate(438px, 64px) scale(1); } }

.journey-steps { list-style: none; padding: 0; margin: 0; }
.journey-step { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; min-height: 22vh; padding: 3.5vh 0 0; opacity: .32; transition: opacity .4s; }
.journey-step:first-child { padding-top: 1vh; }
.journey-step:last-child { min-height: 30vh; }
.journey-step.is-active { opacity: 1; }
.journey-n { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--mist); color: var(--forest); transition: background-color .3s, color .3s; }
.journey-step.is-active .journey-n { background: var(--teal); color: var(--deep); }
.journey-step h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 700; color: var(--forest); letter-spacing: -.01em; margin: 4px 0 10px; }
.journey-step p { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 0; max-width: 30em; }
.journey-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin: 8px 0 0; }
@media (max-width: 991px) {
  /* minmax(0, 1fr): the column can never grow wider than the screen (Safari counts extra width otherwise) */
  .journey-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* the white band behind the sticky illustration is painted outside the box, so it never changes the layout */
  .journey-stage { top: 74px; z-index: 3; background: #fff; padding: 8px 0 10px; margin: 0; box-shadow: 0 0 0 100vmax #fff; clip-path: inset(0 -100vmax); }
  .journey-art { max-width: 460px; margin: 0 auto; border-radius: 20px; }
  .journey-dots { margin-top: 10px; }
  .journey-step { min-height: 24vh; padding-top: 3vh; }
  .journey-step p { font-size: 16px; }
}
@media (max-width: 575px) {
  .journey-art { max-width: 300px; }
  .journey-step { min-height: 22vh; }
}

/* =============================================================
   Signature 2: grid pulse (energy flowing along edges)
   A faint track line + a bright glowing pulse travelling along it.
   ============================================================= */
@keyframes pulse-x { from { background-position: 0 0, -18% 0; } to { background-position: 0 0, 118% 0; } }
.home .sec-tint, .home .impact, .home .process-band, .key-figures, .home #footer.site-footer, .home .quote-band { position: relative; }
.home .sec-tint::before, .home .process-band::before, .key-figures::before, .home #footer.site-footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(90deg, rgba(72, 188, 172, .28), rgba(72, 188, 172, .28)),
    linear-gradient(90deg, rgba(72, 188, 172, 0) 0%, #48bcac 40%, #b6fff2 50%, #48bcac 60%, rgba(72, 188, 172, 0) 100%);
  background-size: 100% 1px, 34% 100%;
  background-repeat: no-repeat;
  background-position: 0 0, -45% 0;
  filter: drop-shadow(0 0 6px rgba(72, 188, 172, .9));
  animation: pulse-x 5.5s linear infinite;
}
.home .process-band::before { animation-duration: 4.5s; }
.key-figures::before { animation-duration: 4s; }
.key-figures { overflow: hidden; }
.home #footer.site-footer::before { animation-duration: 6.5s; }
/* circuit line: energy travels through the four meters */
.home .impact .container { position: relative; z-index: 1; }
.home .impact::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; pointer-events: none; z-index: 2;
  background:
    linear-gradient(90deg, rgba(72, 188, 172, .3), rgba(72, 188, 172, .3)),
    linear-gradient(90deg, rgba(72, 188, 172, 0) 0%, #48bcac 40%, #b6fff2 50%, #48bcac 60%, rgba(72, 188, 172, 0) 100%);
  background-size: 100% 1px, 34% 100%; background-repeat: no-repeat; background-position: 0 0, -45% 0;
  filter: drop-shadow(0 0 8px rgba(72, 188, 172, .9));
  animation: pulse-x 6s linear infinite;
}
.home .impact .meters { position: relative; }
.home .impact .meters::before {
  content: ""; position: absolute; top: 34px; height: 3px; z-index: 0; pointer-events: none;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  background:
    linear-gradient(90deg, rgba(72, 188, 172, .22), rgba(72, 188, 172, .22)),
    linear-gradient(90deg, rgba(72, 188, 172, 0) 0%, #48bcac 38%, #d2fff8 50%, #48bcac 62%, rgba(72, 188, 172, 0) 100%);
  background-size: 100% 1px, 22% 100%; background-repeat: no-repeat; background-position: 0 50%, -18% 0;
  filter: drop-shadow(0 0 10px rgba(72, 188, 172, 1));
  animation: pulse-x 4.2s linear infinite;
}
.home .impact .meters::before { top: var(--pulse-row1, 34px); }
/* second row of meters (phones): its own line, pulse offset so the two alternate */
.home .impact .meters.has-row2::after {
  content: ""; position: absolute; top: var(--pulse-row2); height: 3px; z-index: 0; pointer-events: none;
  left: calc(50% - 50vw); right: calc(50% - 50vw);
  background:
    linear-gradient(90deg, rgba(72, 188, 172, .22), rgba(72, 188, 172, .22)),
    linear-gradient(90deg, rgba(72, 188, 172, 0) 0%, #48bcac 38%, #d2fff8 50%, #48bcac 62%, rgba(72, 188, 172, 0) 100%);
  background-size: 100% 1px, 22% 100%; background-repeat: no-repeat; background-position: 0 50%, -18% 0;
  filter: drop-shadow(0 0 10px rgba(72, 188, 172, 1));
  animation: pulse-x 4.2s linear infinite; animation-delay: -2.1s;
}
.home .impact .meter-card { position: relative; z-index: 1; }

/* =============================================================
   Signature 3: key figures count up, mix bar fills
   ============================================================= */
.key-figures.is-armed .mix-bar { clip-path: inset(0 100% 0 0); }
.key-figures.is-in .mix-bar { clip-path: inset(0 0 0 0); transition: clip-path 1.6s var(--ease) .2s; }
.key-figures.is-armed .kf { opacity: 0; transform: translateY(8px); }
.key-figures.is-in .kf { opacity: 1; transform: none; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.key-figures.is-in .kf:nth-child(2) { transition-delay: .06s; } .key-figures.is-in .kf:nth-child(3) { transition-delay: .12s; }
.key-figures.is-in .kf:nth-child(4) { transition-delay: .18s; } .key-figures.is-in .kf:nth-child(5) { transition-delay: .24s; }
.key-figures.is-in .kf:nth-child(6) { transition-delay: .3s; } .key-figures.is-in .kf:nth-child(7) { transition-delay: .36s; }
.kf-value { font-variant-numeric: tabular-nums; }

/* footer credentials are links */
.foot-badges a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .75); font-size: 13px; transition: border-color .2s, color .2s; }
.foot-badges a:hover { border-color: var(--teal); color: #fff; }
.foot-badges li { padding: 0; border: 0; }
.foot-badges .bi-box-arrow-up-right { font-size: 11px; color: rgba(255, 255, 255, .45); }

@media (prefers-reduced-motion: reduce) {
  .j-blades, .j-sun, .j-flow, .home .sec-tint::before, .home .process-band::before, .key-figures::before, .home #footer.site-footer::before, .home .impact::before, .home .impact .meters::before, .home .impact .meters::after { animation: none !important; }
}

/* the template sets section { overflow: hidden }, which disables position: sticky inside;
   "clip" trims the same way without creating a scroll container */
.home section.journey, .home #features { overflow: clip; }

/* =============================================================
   Premium details
   ============================================================= */
/* 1. smooth page transitions (Chrome, Edge, Safari 18+) */
@view-transition { navigation: auto; }
#header { view-transition-name: site-header; }
::view-transition-old(root) { animation: vt-out .28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: cubic-bezier(.2, .7, .1, 1); }

/* 2. spotlight cards + magnetic buttons */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(72, 188, 172, .16), rgba(72, 188, 172, 0) 60%);
  opacity: 0; transition: opacity .35s;
}
.spot:hover::after { opacity: 1; }
.contact-shell.spot::after { z-index: 3; mix-blend-mode: multiply; background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(72, 188, 172, .10), rgba(72, 188, 172, 0) 60%); }
.magnetic { transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s; will-change: transform; }

/* 4. "Received" stamp after a form is sent */
.sent-stamp {
  display: inline-flex; align-items: center; gap: 6px; margin-right: 12px; padding: 5px 12px;
  border: 2.5px solid var(--teal); border-radius: 8px; color: var(--teal-ink);
  font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  transform: rotate(-6deg); animation: stamp-in .55s cubic-bezier(.2, 1.6, .4, 1) both;
}
@keyframes stamp-in { from { opacity: 0; transform: rotate(-6deg) scale(1.9); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }

/* 5. header search button */
.nav-search {
  display: inline-flex; align-items: center; gap: 8px; margin-left: 14px; height: 40px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .06);
  color: #fff; font-size: 16px; cursor: pointer; transition: background-color .25s, border-color .25s, color .25s;
}
.nav-search:hover { background: rgba(255, 255, 255, .14); }
.nav-search-key { font-size: 11.5px; font-weight: 700; letter-spacing: .04em; opacity: .75; }
#header.header-scrolled .nav-search { border-color: var(--line); background: var(--mist); color: var(--forest); }
@media (max-width: 991px) {
  .nav-search { margin-left: auto; margin-right: 10px; width: 46px; height: 46px; padding: 0; justify-content: center; border-radius: 50%; }
  .nav-search-key { display: none; }
  .home #header .nav-burger { margin-left: 0; }
  body.nav-open #header .container > .nav-search { visibility: hidden; }
}

/* 6. search window */
body.search-open { overflow: hidden; }
.search-modal { position: fixed; inset: 0; z-index: 2000; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.search-modal[hidden] { display: none; }
.search-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 14, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s; }
.search-panel {
  position: relative; width: min(640px, 100%); max-height: 72vh; display: flex; flex-direction: column;
  background: var(--surface); border-radius: 20px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55), 0 0 0 1px var(--line);
  opacity: 0; transform: translateY(-10px) scale(.98); transition: opacity .2s, transform .25s var(--ease);
}
.search-modal.is-open .search-backdrop { opacity: 1; }
.search-modal.is-open .search-panel { opacity: 1; transform: none; }
.search-bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.search-bar i { font-size: 19px; color: var(--teal-ink); }
.search-bar input { flex: 1; border: 0; outline: 0; background: none; font: inherit; font-size: 18px; color: var(--ink); min-width: 0; }
.search-bar input::-webkit-search-cancel-button { display: none; }
.search-panel kbd { font: inherit; font-size: 11.5px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; background: var(--mist); cursor: pointer; }
.search-list { list-style: none; margin: 0; padding: 8px; overflow-y: auto; }
.search-group { font-size: 12px; font-weight: 700; color: var(--muted); padding: 12px 12px 6px; }
.search-list a { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink); }
.search-list a i { font-size: 17px; color: var(--teal-ink); margin-top: 2px; }
.search-list a b { display: block; font-size: 15.5px; color: var(--forest); line-height: 1.3; }
.search-list a small { display: block; font-size: 13px; color: var(--muted); line-height: 1.4; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.search-list li[aria-selected="true"] a { background: var(--mist); }
.search-empty { padding: 26px 14px; text-align: center; color: var(--muted); }
.search-foot { margin: 0; padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
@media (max-width: 575px) {
  .search-modal { padding: 0; align-items: stretch; }
  .search-panel { width: 100%; max-height: none; height: 100%; border-radius: 0; }
  .search-foot { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

.search-bar input:focus, .search-bar input:focus-visible { outline: none; box-shadow: none; }

/* search inside the mobile/tablet menu */
.nav-search-item { display: none; }
@media (max-width: 991px) {
  .home #header .container > .nav-search { display: none; }
  .home .nav-burger { margin-left: auto !important; }
  #siteMenu .nav-search-item { display: block; margin: 0 0 14px; }
  .nav-search-inline {
    display: flex; align-items: center; gap: 12px; width: 100%; height: auto; margin: 0; padding: 15px 18px;
    border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .7); font: inherit; font-size: 16px; text-align: left; cursor: pointer;
  }
  .nav-search-inline i { font-size: 18px; color: var(--teal); }
  .nav-search-inline:active { background: rgba(255, 255, 255, .12); }
}

@supports not (overflow: clip) { .home section.journey, .home #features { overflow: visible; } }


/* keep the loader's 8 s safety timer for reduce-motion visitors */
@media (prefers-reduced-motion: reduce) {
  .home #site-loader { animation-duration: .4s !important; animation-delay: 8s !important; transition-duration: .3s !important; }
}

/* ---------- Footer: services in four short groups (collapsible on phones) ---------- */
.foot-services { display: grid; grid-template-columns: repeat(2, minmax(150px, auto)); gap: 26px clamp(32px, 4vw, 56px); align-content: start; }
.foot-group > summary { list-style: none; cursor: default; }
.foot-group > summary::-webkit-details-marker { display: none; }
.foot-group > summary h2 { margin: 8px 0 14px; }
.foot-group ul { gap: 10px; }
@media (max-width: 767px) {
  .foot-services { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 0; }
  .foot-group { border-top: 1px solid rgba(255, 255, 255, .1); }
  .foot-group:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .foot-group > summary { cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 15px 0; }
  .foot-group > summary h2 { margin: 0; }
  .foot-group > summary::after { content: ""; width: 9px; height: 9px; margin-right: 6px; border-right: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(45deg) translateY(-3px); transition: transform .2s ease; }
  .foot-group[open] > summary::after { transform: rotate(-135deg) translateY(-3px); }
  .foot-group ul { padding: 0 0 16px; grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .foot-services + .foot-col { padding-top: 24px; border-top: 0; }
}
@media (prefers-reduced-motion: reduce) { .foot-group > summary::after { transition: none; } }
