/* =============================================================
   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-none: #dfe7e2;

  --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: #fff;
  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);
  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: #fff;
  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); }
.chip[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); 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); }

.map-stage {
  position: relative;
  background: #fff;
  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;
}
.map-stage svg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: pan-y pinch-zoom; }
.map-stage.is-zoomed svg { touch-action: none; }
.map-stage.is-dragging svg { cursor: grabbing; }
.map-stage .c { fill: var(--m-none); stroke: #fff; 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 .dot { stroke: #fff; 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 { 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: #fff;
  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: #fff;
  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 1fr; }
.market-grid .market-group:nth-child(-n+2) { grid-row: 1 / span 2; }
.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; }

/* ---------- Contact ---------- */
.contact-shell {
  display: grid;
  grid-template-columns: 5fr 7fr;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.contact-side {
  background: var(--forest);
  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: #fff;
  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: #fff;
  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: #fff; }
.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); 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: #fff; 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: #fff; 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); 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: #fff 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); 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); 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: #fff;
  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: #fff;
  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: #fff;
    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); }
  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: #fff; border-radius: 16px; box-shadow: 0 0 0 1px var(--line); margin-bottom: 12px; overflow: hidden; }
  .compare tbody th { width: 100%; background: var(--forest); 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; }
}
