/* wovoka.io design system. Replaces the Webflow CSS page by page.
   One file, no build step. Pages link it and use the classes below.
   Rebuilt pages so far: the homepage (index.html) and /carbon-market (its own block, scoped under [data-cm]). */

:root {
  --ink: #17200f;
  --green: #4c653d;
  --green-deep: #22301b;
  --green-night: #141c10;
  --paper: #f6f5ef;
  --sand: #ebe6d8;
  --gold: #b48a3c;
  --gold-light: #d8b46a;          /* gold on dark grounds */
  --rail: rgba(180, 138, 60, 0.4);
  --muted: #5b6455;
  --line: rgba(23, 32, 15, 0.14);
  --line-light: rgba(255, 255, 255, 0.18);
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(20, 28, 16, 0.18);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --head: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter Tight", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 500; line-height: 1.1; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
h2, h3, .pull { text-wrap: balance; }
figure { margin: 0; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 10vw, 128px) 0; }
.section--tight { padding: clamp(48px, 7vw, 88px) 0; }
.section--dark { background: var(--green-deep); color: var(--white); }
.section--sand { background: var(--sand); }
.eyebrow {
  font: 600 13px/1.2 var(--body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}
.section--dark .eyebrow, .eyebrow--light { color: #c9d6b8; }
.h-xl { font-size: clamp(42px, 7vw, 92px); line-height: 1; letter-spacing: -0.025em; }
.h-lg { font-size: clamp(34px, 4.6vw, 56px); letter-spacing: -0.02em; line-height: 1.05; }
.h-md { font-size: clamp(24px, 2.6vw, 32px); }
.lead { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.55; color: var(--muted); }
.lead--sm { font-size: 17px; max-width: 60ch; }
.section--dark .lead { color: rgba(255, 255, 255, 0.78); }
.stack > * + * { margin-top: 20px; }

/* Utilities */
.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.ext::after { content: "\00a0\2197"; content: "\00a0\2197" / ""; }
.num, .fig, .zoom b, .kpis b { font-variant-numeric: tabular-nums; }

/* Focus: green on light grounds, white on dark ones. Gold is never a focus ring on paper or sand. */
:focus-visible { outline: 2px solid var(--green-deep); outline-offset: 2px; }
.section--dark :focus-visible, .hero :focus-visible, .readout :focus-visible,
.door :focus-visible, .site-footer :focus-visible, .site-header :focus-visible { outline-color: var(--white); }

/* Buttons and links */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font: 600 16px/1 var(--body); text-decoration: none;
  border: 1.5px solid transparent; transition: background .2s, color .2s, border-color .2s;
}
.btn--light { background: var(--white); color: var(--green-deep); }
.btn--light:hover { background: var(--sand); }
.btn--ghost { border-color: rgba(255, 255, 255, 0.7); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn--green { background: var(--green); color: var(--white); }
.btn--green:hover { background: var(--green-deep); }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.link-arrow::after { content: "\00a0\2192"; content: "\00a0\2192" / ""; }
.link-arrow.ext::after { content: "\00a0\2197"; content: "\00a0\2197" / ""; }
.link-arrow:hover { color: var(--green); }
.section--dark .link-arrow:hover, .readout .link-arrow:hover { color: var(--gold-light); }

/* Header */
.site-header {
  position: fixed; inset: 16px 0 auto; z-index: 50; pointer-events: none;
}
.site-header .bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  max-width: calc(var(--wrap) - 2 * 12px); margin: 0 auto; width: calc(100% - 24px);
  padding: 10px 10px 10px 22px; border-radius: 999px;
  background: rgba(20, 28, 16, 0.55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--white); transition: background .25s;
}
.site-header.is-solid .bar { background: rgba(20, 28, 16, 0.92); }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 30px; }
.nav a { color: var(--white); text-decoration: none; font-weight: 500; font-size: 16px; opacity: .9; }
.nav a:hover, .nav a[aria-current="page"] { opacity: 1; text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { opacity: 1; text-decoration: none; padding: 12px 20px; }
.nav .btn--light { color: var(--green-deep); }
.menu-toggle {
  display: none; background: none; border: 0; color: var(--white); padding: 10px; cursor: pointer;
}
.menu-toggle span { display: block; width: 24px; height: 2px; background: currentColor; margin: 5px 0; transition: transform .2s, opacity .2s; }
@media (max-width: 860px) {
  .menu-toggle { display: block; }
  .nav {
    position: absolute; top: calc(100% + 8px); left: 12px; right: 12px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--green-night); border-radius: 20px; padding: 10px 18px 18px;
    display: none;
  }
  .site-header.is-open .nav { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line-light); font-size: 18px; }
  .nav .btn { margin-top: 14px; justify-content: center; border-bottom: 0; }
  .site-header.is-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .site-header.is-open .menu-toggle span:nth-child(2) { opacity: 0; }
  .site-header.is-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* Hero (old pages keep the video variant; the homepage uses .hero--still) */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: flex-end; color: var(--white); overflow: hidden;
  background: var(--green-night);
}
.hero video, .hero .hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(14, 20, 11, 0.35) 0%, rgba(14, 20, 11, 0.15) 35%, rgba(14, 20, 11, 0.82) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding-bottom: clamp(56px, 9vw, 112px); }
.hero h1 { max-width: 13ch; }
.hero .lead { color: rgba(255, 255, 255, 0.88); max-width: 44ch; margin-top: 24px; }
.hero .btn-row { margin-top: 36px; }

.hero--still { min-height: 88vh; min-height: 88svh; }
.hero--still .hero-img { object-position: 50% 40%; animation: settle 14s cubic-bezier(.2, .7, .2, 1) both; }
.hero--still::after {
  background:
    linear-gradient(90deg, rgba(14, 20, 11, 0.8) 0%, rgba(14, 20, 11, 0.6) 45%, rgba(14, 20, 11, 0) 78%),
    linear-gradient(180deg, rgba(14, 20, 11, 0.55) 0%, rgba(14, 20, 11, 0) 26%, rgba(14, 20, 11, 0.2) 58%, rgba(14, 20, 11, 0.9) 100%);
}
.hero--still .wrap { padding-top: 150px; padding-bottom: 136px; }
.hero--still .eyebrow { display: flex; align-items: center; gap: 0; margin-bottom: 26px; }
.hero--still .eyebrow::before { content: ""; width: 32px; height: 1px; margin-right: 14px; background: var(--gold-light); flex: none; }
.eb-sep { white-space: pre; }
@media (max-width: 860px) {
  /* Two lines on tablet and phone: the second line would otherwise run past the darkest part of the overlay */
  .hero--still .eyebrow { display: block; line-height: 1.5; }
  .hero--still .eyebrow::before { display: none; }
  .eb-where { display: block; color: rgba(255, 255, 255, 0.72); }
  .eb-sep { display: none; }
}
.hero--still h1 { text-wrap: balance; }
.hero-caption {
  position: absolute; right: var(--gutter); bottom: 96px;
  font-size: 13px; line-height: 1.3; color: rgba(255, 255, 255, 0.85);
  background: rgba(14, 20, 11, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 6px 12px; border-radius: 999px; max-width: calc(100% - 2 * var(--gutter));
}
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }
@media (max-width: 600px) {
  .hero--still { min-height: 0; }
  .hero--still .wrap { padding-top: 116px; padding-bottom: 40px; }
  .hero--still .eyebrow { font-size: 12px; margin-bottom: 18px; }
  .hero--still .eyebrow::before { width: 20px; }
  .hero--still .h-xl { font-size: 42px; }
  .hero--still .lead { font-size: 18px; margin-top: 18px; }
  .hero--still .btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 28px; }
  .hero--still .btn { padding: 14px 12px; font-size: 15px; }
  .hero-caption { position: static; margin-top: 20px; font-size: 12px; background: none; padding: 0; backdrop-filter: none; -webkit-backdrop-filter: none; color: rgba(255, 255, 255, 0.72); }
}

/* Ledger: "On the record" */
.ledger-wrap { position: relative; z-index: 2; }
.ledger-panel {
  margin-top: -72px; background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
}
.ledger-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 24px;
  padding: 18px 28px; border-bottom: 1px solid var(--line); background: #fbfaf6;
}
.ledger-stamp { font-size: 14px; color: var(--muted); }
@media (max-width: 600px) { .ls-more { display: none; } }
.ledger { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); }
.ledger-item { padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.ledger-item + .ledger-item { border-left: 1px solid var(--line); }
.tag {
  display: flex; align-items: center; gap: 8px;
  font: 600 12px/1 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green);
}
.tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.tag--carbon::before { background: var(--gold); }
.fig { font: 500 40px/1 var(--head); color: var(--green-deep); letter-spacing: -0.015em; margin-top: 4px; }
.ledger-item .txt { font-size: 15px; line-height: 1.45; color: var(--muted); }
.src { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: auto; padding-top: 4px; font-size: 14px; }
.src a { color: var(--green); font-weight: 600; text-underline-offset: 3px; }
.src a:hover { color: var(--green-deep); }
.ledger-note { margin-top: 16px; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  .ledger-panel { margin-top: 24px; border-radius: 14px; box-shadow: 0 10px 30px rgba(20, 28, 16, 0.08); }
  .ledger-head { padding: 16px 20px; }
  .ledger-stamp { font-size: 13px; }
  .ledger { grid-template-columns: 1fr; }
  .ledger-item { padding: 20px; gap: 8px; }
  .ledger-item + .ledger-item { border-left: 0; border-top: 1px solid var(--line); }
  .fig { font-size: 30px; }
}

/* Split statement and the operator band */
.split { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: end; }
.split--top { align-items: start; }
.pull {
  font: 500 clamp(22px, 2.4vw, 28px)/1.3 var(--head); color: var(--ink); letter-spacing: -0.01em;
  border-left: 3px solid var(--gold); padding-left: 18px; margin-top: 28px;
}
@media (min-width: 861px) { #operator .split > .stack { position: sticky; top: 120px; } }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; align-items: start; gap: 24px; } }

/* Pillars (cards; kept for reuse on other pages) */
.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 56px; }
.pillar {
  border: 1px solid var(--line-light); border-radius: var(--radius);
  padding: 28px 24px 32px; display: flex; flex-direction: column; gap: 14px;
}
.pillar-num { font: 500 15px/1 var(--head); color: #c9d6b8; letter-spacing: .08em; }
.pillar h3 { font-size: 24px; }
.pillar p { color: rgba(255, 255, 255, 0.76); font-size: 16px; }
@media (max-width: 1000px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

/* Layers: four rows on a gold rail (homepage "How we work") */
.layers { list-style: none; margin: 56px 0 0; padding: 0; position: relative; border-bottom: 1px solid var(--line-light); }
.layers::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 1px; background: var(--rail); }
.layer {
  display: grid; grid-template-columns: 56px 240px 1fr 280px; gap: 24px; align-items: start;
  padding: 32px 0; border-top: 1px solid var(--line-light); position: relative;
}
.layer-num {
  position: relative; width: 37px; height: 37px; border-radius: 50%;
  display: grid; place-items: center; margin-top: -4px;
  font: 500 15px/1 var(--head); letter-spacing: .04em; color: var(--gold-light);
  background: var(--green-deep); border: 1px solid var(--rail);
}
.layer h3 { font-size: 26px; line-height: 1.15; }
.layer p { font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.78); max-width: 58ch; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.chip {
  display: inline-flex; align-items: center; padding: 7px 12px; border-radius: 16px;
  font: 600 13px/1.25 var(--body); text-decoration: none; color: inherit;
  border: 1px solid var(--line);
}
.section--dark .chip { border-color: var(--line-light); color: var(--white); }
a.chip { transition: border-color .2s, background .2s; }
a.chip:hover { border-color: var(--ink); }
.section--dark a.chip:hover { border-color: var(--white); background: rgba(255, 255, 255, 0.06); }
.chip--text { color: rgba(255, 255, 255, 0.6) !important; border: 0 !important; padding-left: 0; padding-right: 0; letter-spacing: .04em; }
@media (min-width: 1101px) { .layer { grid-template-columns: 56px 240px 1fr 300px; } }
@media (min-width: 901px) { .layer .chip { white-space: nowrap; } }
@media (max-width: 1100px) { .layer { grid-template-columns: 56px 200px 1fr 220px; } }
@media (max-width: 900px) {
  .layers::before { display: none; }
  .layer { grid-template-columns: 40px 1fr; gap: 10px 14px; padding: 24px 0; }
  .layer-num { width: 32px; height: 32px; font-size: 14px; margin-top: -3px; }
  .layer h3 { font-size: 22px; align-self: center; }
  .layer p, .layer .chips { grid-column: 2; }
}
@media (max-width: 600px) { .layer p, .layer .chips { grid-column: 1 / -1; } .layer p { font-size: 15px; } }

/* Section heading row */
.head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; }

/* Projects */
.projects-head { display: grid; grid-template-columns: 1fr 320px; gap: 24px 64px; align-items: end; }
.projects-head .link-arrow { display: inline-block; margin-top: 28px; }
.where-map { width: 320px; }
.where-map img, .where-map svg { display: block; width: 320px; height: auto; }
.map-svg text { font-family: var(--body); }
.where-map figcaption { margin-top: 4px; font-size: 12px; color: var(--muted); text-align: right; }
.lane-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lane-key span { display: inline-flex; align-items: center; }
.lane-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; flex: none;
  vertical-align: 0; border: 1.5px solid transparent;
}
.lane-dot.is-run { background: var(--green); border-color: var(--green); }
.lane-dot.is-way { background: var(--gold); border-color: var(--gold); }
.lane-dot.is-not { background: transparent; border-color: var(--muted); }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 56px 32px; margin-top: 28px; }
.project-card { position: relative; display: block; color: inherit; }
.project-card .media { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.project-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
.project-card:hover .media img { transform: scale(1.03); }
.project-card .media--map { background: var(--green-deep); display: grid; place-items: center; }
.project-card .media--map img, .project-card .media--map svg { display: block; width: 86%; height: auto; }
.stage {
  position: absolute; top: 16px; left: 16px; z-index: 1;
  background: rgba(255, 255, 255, 0.95); color: var(--green-deep);
  font: 600 13px/1 var(--body); letter-spacing: .02em; padding: 8px 12px; border-radius: 999px;
}
.project-card h3 { font-size: 28px; margin-top: 22px; }
.project-card h3 a { text-decoration: none; }
.project-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: var(--radius); }
.project-card h3 a::before { content: "\2192"; content: "\2192" / ""; float: right; font-size: 22px; color: var(--green); transition: transform .25s; margin-left: 12px; }
.project-card:hover h3 a::before { transform: translateX(4px); }
.project-card:hover h3 a { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.project-card .where { color: var(--muted); font-size: 15px; margin-top: 6px; }
.lanes { margin: 18px 0 0; border-top: 1px solid var(--line); }
.lanes > div { display: grid; grid-template-columns: 88px 1fr; padding: 11px 0; border-bottom: 1px solid var(--line); }
.lanes dt { font: 600 12px/1.6 var(--body); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-top: 2px; }
.lanes dd { margin: 0; font-size: 15px; line-height: 1.5; }
.lane-st { font-weight: 600; }
.budget { margin-top: 14px; font-size: 13px; color: var(--muted); }
.budget .track { height: 6px; border-radius: 3px; background: var(--line); margin-top: 6px; overflow: hidden; }
.budget .fill { height: 100%; background: var(--green); border-radius: 3px; }
@media (max-width: 760px) {
  .projects-head { grid-template-columns: 1fr; }
  .where-map { display: none; }
  .projects { grid-template-columns: 1fr; gap: 44px; }
}
@media (max-width: 600px) {
  .project-card .media { aspect-ratio: 2 / 1; }
  .project-card .media--map { place-items: center end; padding-right: 6%; }
  .project-card .media--map svg, .project-card .media--map img { width: auto; height: 90%; max-width: 70%; }
  .project-card h3 { font-size: 24px; margin-top: 16px; }
  .lanes { margin-top: 12px; }
  .lanes > div { display: block; padding: 9px 0; }
  .lanes dt { display: inline; font-size: 11px; margin-right: 6px; }
  .lanes dd { display: inline; font-size: 15px; line-height: 1.45; }
  .lane-key { margin-top: 24px; }
  .project-card .where { margin-top: 2px; font-size: 14px; }
}

/* Products band */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.product {
  display: grid; grid-template-columns: 180px 1fr; gap: 28px; align-items: start;
  background: var(--paper); border-radius: var(--radius); padding: 16px 24px 16px 16px;
}
.product img { width: 180px; height: 180px; object-fit: cover; border-radius: 10px; }
.product figcaption { margin-top: 6px; font-size: 12px; color: var(--muted); }
.product .from {
  display: inline-block; margin-bottom: 10px; text-decoration: none;
  font: 600 12px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--green);
}
.product a.from:hover { text-decoration: underline; text-underline-offset: 3px; }
.product h3 { font-size: 26px; }
.product p { color: var(--muted); margin-top: 8px; font-size: 16px; line-height: 1.5; }
.product .link-arrow { display: inline-block; margin-top: 14px; font-size: 15px; }
.head-note { font-size: 17px; color: var(--muted); }
@media (max-width: 860px) { .products { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .products { margin-top: 32px; gap: 14px; }
  .product { grid-template-columns: 96px 1fr; gap: 16px; align-items: start; padding: 14px; }
  .product img { width: 96px; height: 96px; }
  .product figcaption { display: none; } /* the date is in the alt text */
  .product h3 { font-size: 22px; }
  .product p { font-size: 15px; }
}

/* The record */
.record-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 24px; align-items: start; margin-top: 48px; }
.record {
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px 28px;
}
.record-top {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 16px; border-bottom: 2px solid var(--ink);
}
.record-top h3 { font: 600 14px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sand); font: 600 13px/1 var(--body); padding: 7px 12px 7px 10px; border-radius: 999px;
}
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.record dl { display: grid; grid-template-columns: 160px 1fr; margin: 0; font-variant-numeric: tabular-nums; }
.record dt, .record dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.record dt { font-size: 14px; color: var(--muted); padding-top: 13px; }
.record dd { font-size: 16px; line-height: 1.45; }
.record-foot {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-top: 16px;
  font-size: 14px; color: var(--muted);
}
.record-foot a { color: var(--green); font-weight: 600; text-underline-offset: 3px; }
.record-foot .link-arrow { text-decoration: none; }
.ladder { list-style: none; display: flex; flex-wrap: wrap; gap: 16px 0; margin: 28px 0 0; padding: 0; }
.ladder li { flex: 1 1 20%; min-width: 96px; position: relative; padding: 22px 8px 0 0; font-size: 13px; line-height: 1.3; color: var(--muted); }
.ladder li::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 2px; background: var(--line); }
.ladder li::after {
  content: ""; position: absolute; top: 0; left: 0; width: 12px; height: 12px; border-radius: 50%;
  background: var(--paper); border: 1.5px solid var(--muted);
}
.ladder li[aria-current="step"] { color: var(--ink); font-weight: 600; }
.ladder li[aria-current="step"]::before { background: linear-gradient(90deg, var(--gold) 0, var(--gold) 40%, var(--line) 40%); }
.ladder li[aria-current="step"]::after { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(180, 138, 60, 0.2); }
.ladder-cap { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 62ch; }
.readout { background: var(--green-deep); color: var(--white); border-radius: 14px; padding: 28px; }
.readout h3 { font-size: 26px; }
.readout > p:first-of-type { margin-top: 10px; font-size: 15px; line-height: 1.5; color: rgba(255, 255, 255, 0.78); }
.zoom { list-style: none; margin: 22px 0 18px; padding: 0; border-top: 1px solid var(--line-light); }
.zoom li { display: grid; grid-template-columns: 118px 1fr; column-gap: 14px; align-items: baseline; padding: 12px 0; border-bottom: 1px solid var(--line-light); }
.zoom li:last-child { border-bottom: 0; }
.zoom b { font: 500 36px/1 var(--head); color: var(--white); letter-spacing: -0.01em; text-align: right; }
.zoom li:nth-child(4) b { color: var(--gold-light); }
.zoom span { font-size: 15px; color: rgba(255, 255, 255, 0.75); }
.stamp { font-size: 13px; line-height: 1.5; color: var(--muted); }
.readout .stamp, .section--dark .stamp { color: rgba(255, 255, 255, 0.6); }
.readout .link-arrow { display: inline-block; margin-top: 20px; font-size: 15px; }
@media (max-width: 900px) { .record-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  /* One row of five on phones too: every step stays labelled, and "Credits issued" may take two lines */
  .ladder { flex-wrap: nowrap; gap: 0; }
  .ladder li { flex: 1 1 0; min-width: 0; padding: 22px 6px 0 0; font-size: 12px; }
}
@media (max-width: 374px) { .ladder li { padding-right: 3px; font-size: 11px; } }
@media (max-width: 600px) {
  .record { padding: 18px 18px 20px; }
  .record dl { grid-template-columns: 104px 1fr; }
  .record dt { padding: 10px 8px 10px 0; font-size: 13px; line-height: 1.4; }
  .record dd { padding: 9px 0; font-size: 15px; }
  .readout { padding: 22px 20px; }
  .zoom b { font-size: 30px; }
  .zoom li { grid-template-columns: 98px 1fr; column-gap: 12px; }
}

/* People */
.faces { display: flex; flex-wrap: wrap; row-gap: 8px; margin-top: 40px; padding-right: 12px; }
.faces img {
  width: 64px; height: 64px; border-radius: 50%; object-fit: cover; object-position: top;
  background: var(--sand); border: 3px solid var(--paper); margin-right: -12px;
}
.faces--sm { align-items: center; margin-top: 20px; padding-right: 0; }
.faces--sm img { width: 40px; height: 40px; border-width: 2px; margin-right: -8px; }
.faces--sm p { margin-left: 20px; font-size: 15px; color: var(--muted); flex: 1 1 200px; line-height: 1.4; }
.people { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.leads { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 12px; }
.leads li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; }
.leads img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: top; background: var(--sand); }
.leads b { display: block; font: 500 18px/1.2 var(--head); }
.leads small { display: block; font-size: 15px; color: var(--muted); }
.people-notes { display: grid; gap: 0; border-top: 1px solid var(--line); }
.people-notes > div { padding: 22px 0; border-bottom: 1px solid var(--line); }
.people-notes strong { display: block; font: 500 22px/1.2 var(--head); margin-bottom: 6px; }
.people-notes span { color: var(--muted); font-size: 16px; }
.people-notes a { color: var(--green); font-weight: 600; white-space: nowrap; }
@media (max-width: 860px) { .people { grid-template-columns: 1fr; } }
#record + #people { padding-top: clamp(40px, 6vw, 72px); }

/* Doors, joining steps, Advisory route */
.section--doors { padding-top: 0; }
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door {
  position: relative; border-radius: 20px; overflow: hidden; min-height: 420px;
  display: flex; align-items: flex-end; color: var(--white); text-decoration: none; background: var(--green-deep);
}
.door img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.door::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,20,11,.1) 0%, rgba(14,20,11,.55) 45%, rgba(14,20,11,.9) 100%); }
.door:hover img { transform: scale(1.03); }
.door-body { position: relative; z-index: 1; padding: 32px; display: grid; gap: 12px; }
.door-body p { color: rgba(255, 255, 255, 0.85); max-width: 44ch; }
.door-body .btn { justify-self: start; margin-top: 8px; }
@media (min-width: 761px) { .door-body p { min-height: 6.4em; } }
.steps { margin-top: 48px; }
.steps ol { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.steps li { position: relative; counter-increment: step; display: flex; flex-direction: column; gap: 6px; }
.steps li::before {
  content: counter(step); width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--gold);
  display: grid; place-items: center; font: 600 13px/1 var(--body); color: var(--green-deep); background: var(--paper);
  margin-bottom: 8px; position: relative; z-index: 1;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 14px; left: 36px; right: -12px; height: 1px; background: var(--line); }
.steps b { font: 500 18px/1.25 var(--head); }
.steps span { font-size: 15px; line-height: 1.45; color: var(--muted); }
.route { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 16px; color: var(--muted); }
.route a { color: var(--green-deep); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 300px; }
  .door::after { background: linear-gradient(180deg, rgba(14,20,11,.62) 0%, rgba(14,20,11,.72) 45%, rgba(14,20,11,.9) 100%); }
  .door-body { padding: 24px; }
  .steps { margin-top: 36px; }
  .steps ol { grid-template-columns: 1fr 1fr; gap: 20px 16px; }
  .steps li:not(:last-child)::after { display: none; }
}

/* Footer */
.site-footer { background: var(--green-night); color: rgba(255, 255, 255, 0.8); padding: 72px 0 40px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid h2, .footer-family .ff-h { font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase; color: #c9d6b8; }
.footer-grid h2 { margin-bottom: 18px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-brand img { height: 40px; width: auto; }
.footer-brand p { margin-top: 18px; max-width: 36ch; }
.footer-family {
  margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; gap: 10px 40px; font-size: 14px;
}
.footer-family p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.footer-family .ff-h { margin-right: 4px; font-size: 12px; }
.footer-family .desc { font-size: 13px; color: rgba(255, 255, 255, 0.55); }
.footer-legal { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line-light); display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.footer-legal p:first-child { max-width: 70ch; }
.footer-legal a { color: inherit; text-decoration: underline; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-projects { display: none; } } /* the project cards and Explore > Projects cover it */
@media (max-width: 520px) {
  .site-footer { padding: 48px 0 32px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-grid h2 { margin-bottom: 12px; }
  .footer-grid ul { grid-template-columns: 1fr 1fr; gap: 8px 16px; }
  .footer-brand img { height: 34px; }
  .footer-brand p { margin-top: 12px; }
  .footer-family { margin-top: 28px; flex-direction: column; gap: 22px; }
  .footer-family .ff-sep { display: none; }
  .footer-family p { display: grid; gap: 6px; }
  .footer-family p > a { justify-self: start; }
  .footer-family .ff-h { display: block; margin: 0 0 2px; }
  .footer-legal { margin-top: 24px; padding-top: 18px; font-size: 13px; }
}

/* Phone rhythm: tighter vertical spacing so the page stays short on small screens */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 44px 0; }
  .section--tight, #products { padding: 36px 0; }
  .section--doors { padding-top: 0; }
  .people-notes > .pn-advisory { display: none; }
  .stack > * + * { margin-top: 14px; }
  .lead { font-size: 17px; line-height: 1.5; }
  .hero--still .eyebrow { letter-spacing: .1em; }
  .ledger-head { padding: 14px 18px; }
  .ledger-item { padding: 18px; gap: 6px; }
  .fig { font-size: 28px; }
  .ledger-item .txt { font-size: 14.5px; }
  .ledger-note { margin-top: 12px; }
  .pull { font-size: 20px; margin-top: 20px; }
  .layers { margin-top: 32px; }
  .layer { padding: 20px 0; gap: 8px 12px; }
  .layer h3 { font-size: 21px; }
  .layer .chips { margin-top: 4px; }
  .projects-head .link-arrow { margin-top: 18px; }
  .projects { gap: 36px; margin-top: 20px; }
  .record-grid { margin-top: 28px; }
  .record-foot { gap: 6px 16px; }
  .ladder { margin-top: 20px; }
  .readout h3 { font-size: 22px; }
  .zoom { margin: 16px 0 14px; }
  .zoom li { padding: 9px 0; }
  .leads { margin-top: 24px; gap: 10px; }
  .leads li { grid-template-columns: 48px 1fr; gap: 14px; }
  .leads img { width: 48px; height: 48px; }
  .leads b { font-size: 17px; }
  .leads small { font-size: 14px; }
  .people-notes > div { padding: 16px 0; }
  .people-notes strong { font-size: 20px; }
  .people-notes span { font-size: 15px; }
  .people-notes > :last-child { display: none; } /* Wovoka Advisory: the route line under the doors and the footer carry it on phones */
  .door { min-height: 260px; }
  .door-body { padding: 22px; gap: 10px; }
  .door-body p { font-size: 15px; }
  .steps ol { gap: 16px 14px; }
  .steps li::before { width: 24px; height: 24px; font-size: 12px; margin-bottom: 4px; }
  .steps b { font-size: 17px; }
  .steps span { font-size: 14px; }
  .route { font-size: 15px; margin-top: 24px; }
}

/* Motion: reveal on scroll. Hidden only when JS runs (.js on <html>), never in print. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.is-in, .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero--still .hero-img { animation: none; }
  .project-card .media img, .door img, .btn, a.chip, .project-card h3 a::before { transition: none; }
}
@media (forced-colors: active) {
  .lane-dot, .tag::before, .status-pill::before { border: 1px solid CanvasText; }
  .ladder li::before { background: CanvasText; }
  .ladder li::after { border-color: CanvasText; }
  .ladder li[aria-current="step"]::after { background: Highlight; border-color: CanvasText; }
  .steps li::before { border-color: CanvasText; }
}
@media print {
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero--still .hero-img { animation: none !important; }
  .site-header { position: static; }
  .site-header .bar { background: none; color: var(--ink); }
  .menu-toggle, .nav { display: none !important; }
  .brand img { filter: invert(1); }
  .hero { min-height: 0 !important; color: var(--ink); background: none; }
  .hero::after, .hero-img, .door img, .door::after { display: none !important; }
  .hero .lead, .hero-caption { color: var(--ink) !important; background: none !important; position: static; }
  .hero--still .wrap { padding: 24px var(--gutter) 32px; }
  .ledger-panel { margin-top: 0; box-shadow: none; }
  .section--dark, .readout, .door, .site-footer, .section--sand { background: none !important; color: var(--ink) !important; }
  .section--dark *, .readout *, .door *, .site-footer * { color: var(--ink) !important; }
  .door { min-height: 0; border: 1px solid var(--line); }
  .btn { border: 1px solid var(--ink); }
  .section { padding: 32px 0; }
  .project-card, .record, .readout, .ledger-item, .layer, .product, .door { break-inside: avoid; }
  .hero .btn--ghost, .hero .eyebrow, .eb-where { color: var(--ink) !important; background: none !important; border-color: var(--ink) !important; }
  .layer-num { background: none !important; border-color: var(--line) !important; color: var(--ink) !important; }
  .footer-brand img { filter: invert(1); }
  .steps, .steps li, .leads, .ladder, .ledger-panel, .people-notes > * { break-inside: avoid; }
  .head-row, h2, h3, .eyebrow, .ladder { break-after: avoid; }
  .ladder-cap, .faces, .faces--sm { break-inside: avoid; }
  .footer-projects { display: block !important; }
}
@page { margin: 14mm 12mm; }

/* ==========================================================================
   /carbon-market (carbon-market.html). BEGIN market block.
   Every rule here is scoped under [data-cm] (set on that page's <main>), so it
   cannot touch any other page. Charts sit on --paper (#f6f5ef) or white.
   Stage colours were run through the dataviz validator against #f6f5ef and #fff:
   lightness, chroma, CVD (worst adjacent dE 8.3, protan) and the normal-vision
   floor pass. At risk #dd6f3f is 2.99:1 on paper and Inactive #a9a79e is a
   neutral rest colour (2.2:1); both are relieved by always-visible labels with
   counts and the table view. Text never wears a series colour.
   ========================================================================== */
[data-cm] {
  --s-pipeline: #b07d0e;
  --s-validation: #3672b4;
  --s-registered: #1f7348;
  --s-atrisk: #dd6f3f;
  --s-inactive: #a9a79e;
  --bar: #b9b6a6;          /* context bars */
  --bar-em: #4c653d;       /* the one bar the story is about (5.9:1 on paper) */
}
[data-cm] .st-pipeline { --c: var(--s-pipeline); }
[data-cm] .st-validation { --c: var(--s-validation); }
[data-cm] .st-registered { --c: var(--s-registered); }
[data-cm] .st-at-risk { --c: var(--s-atrisk); }
[data-cm] .st-inactive { --c: var(--s-inactive); }
[data-cm] .sw { display: inline-block; width: 12px; height: 12px; border-radius: 3px; background: var(--c); flex: none; }
[data-cm] .cm-fig { margin: 0; position: relative; }
[data-cm] .cm-fig > .stamp { margin-top: 18px; max-width: 72ch; }
[data-cm] .cm-head { max-width: 780px; }
[data-cm] .cm-head > * + * { margin-top: 18px; }
[data-cm] .cm-copy { margin-top: 12px; font-size: 16px; line-height: 1.55; color: var(--muted); max-width: 56ch; }

/* Page hero: the Mindoro grassland under a deep gradient, so the white header and text stay legible */
[data-cm] .page-hero { min-height: 66vh; min-height: 66svh; }
[data-cm] .page-hero .hero-img { object-position: 50% 72%; }
[data-cm] .page-hero::after {
  background:
    linear-gradient(90deg, rgba(14, 20, 11, 0.88) 0%, rgba(14, 20, 11, 0.6) 45%, rgba(14, 20, 11, 0.12) 100%),
    linear-gradient(180deg, rgba(14, 20, 11, 0.5) 0%, rgba(14, 20, 11, 0) 30%, rgba(14, 20, 11, 0.7) 100%);
}
[data-cm] .page-hero .wrap { padding-top: 150px; padding-bottom: 136px; }
[data-cm] .page-hero .eyebrow { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
[data-cm] .page-hero .eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--gold-light); flex: none; }
[data-cm] .page-hero h1 {
  font-size: clamp(38px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.025em;
  max-width: 15ch; text-wrap: balance;
}
[data-cm] .page-hero .lead { max-width: 54ch; margin-top: 24px; font-size: clamp(17px, 1.35vw, 19px); }
[data-cm] .cm-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 30px; font-size: 14px; }
[data-cm] .cm-read {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 14px 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.24); color: var(--white); font-weight: 600;
}
[data-cm] .cm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold-light); box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.25); flex: none; }
[data-cm] .cm-credit { color: rgba(255, 255, 255, 0.74); }

/* KPI panel: overlaps the hero like the homepage ledger */
[data-cm] .cm-kpi-wrap { position: relative; z-index: 2; }
[data-cm] .cm-panel {
  margin-top: -72px; background: var(--white); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow); overflow: hidden;
}
[data-cm] .cm-panel-head {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 24px;
  padding: 18px 28px; border-bottom: 1px solid var(--line); background: #fbfaf6;
}
[data-cm] .cm-week { font-size: 14px; color: var(--muted); }
[data-cm] .cm-week b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
[data-cm] .kpis { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
[data-cm] .kpis li { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; }
[data-cm] .kpis li + li { border-left: 1px solid var(--line); }
[data-cm] .kpis b { font: 500 46px/1 var(--head); color: var(--green-deep); letter-spacing: -0.02em; font-variant-numeric: normal; }
[data-cm] .kpis span { font-size: 15px; line-height: 1.4; color: var(--muted); }
[data-cm] .cm-panel-foot { padding: 14px 28px 18px; border-top: 1px solid var(--line); display: grid; gap: 8px; }
[data-cm] .cm-note { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.45; color: var(--ink); }
[data-cm] .cm-note::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
[data-cm] .cm-note[hidden] { display: none; }

/* Where projects stand: the waffle, one square per project */
[data-cm] .cm-stand-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; margin-top: 48px; }
[data-cm] .waffle { display: grid; gap: 22px; }
[data-cm] .wg-label { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 10px; row-gap: 2px; margin-bottom: 9px; font-size: 14px; line-height: 1.4; }
[data-cm] .wg-label .sw { align-self: flex-start; margin-top: 5px; }
[data-cm] .wg-label b { font-size: 15px; font-weight: 600; }
[data-cm] .wg-label .n { font: 500 19px/1 var(--head); font-variant-numeric: proportional-nums; }
[data-cm] .wg-label .def { flex: 1 1 280px; color: var(--muted); }
[data-cm] .wg-grid { --cols: 24; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 2px; max-width: 660px; }
[data-cm] .wg-grid:empty { display: none; }
[data-cm] .wg-grid i { display: block; aspect-ratio: 1; border-radius: 2px; background: var(--c); }
[data-cm] .wg-grid i.is-ours { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); position: relative; z-index: 1; }
[data-cm] .ours-label { position: relative; margin: 0 0 10px; padding-left: 20px; font-size: 13px; font-weight: 600; line-height: 18px; color: var(--ink); }
[data-cm] .ours-label::before { content: ""; position: absolute; left: 6px; top: 9px; bottom: -6px; width: 1px; background: var(--ink); }
[data-cm] .ours-label::after { content: ""; position: absolute; left: 6px; top: 9px; width: 9px; height: 1px; background: var(--ink); }
[data-cm] .cm-fallback { margin-bottom: 26px; }
@media (min-width: 700px) { [data-cm] .wg-grid { --cols: 40; } }

/* The Mindoro callout beside the waffle */
[data-cm] .callout { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px 26px; position: sticky; top: 104px; }
[data-cm] .callout-kicker { display: flex; align-items: center; gap: 12px; font: 600 12px/1.2 var(--body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
[data-cm] .ring-key { width: 12px; height: 12px; margin: 4px; border-radius: 2px; background: var(--s-pipeline); box-shadow: 0 0 0 2px var(--white), 0 0 0 4px var(--ink); flex: none; }
[data-cm] .callout h3 { margin-top: 14px; font-size: 25px; line-height: 1.15; }
[data-cm] .callout-sub { margin-top: 6px; font-size: 14px; color: var(--muted); }
[data-cm] .callout dl { margin: 16px 0 0; border-top: 1px solid var(--line); }
[data-cm] .callout dt { padding-top: 10px; font: 600 11.5px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
[data-cm] .callout dd { margin: 3px 0 0; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
[data-cm] .cm-seq-h { margin-top: 16px; font: 600 11.5px/1.3 var(--body); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
[data-cm] .cm-seq { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; font-size: 13px; line-height: 1.3; color: var(--muted); }
[data-cm] .cm-seq li { display: inline-flex; align-items: center; position: relative; }
[data-cm] .cm-seq li:not(:last-child) { margin-right: 24px; }
/* The arrow trails each step, so a wrapped line never starts with one */
[data-cm] .cm-seq li:not(:last-child)::after { content: "\2192"; content: "\2192" / ""; position: absolute; left: 100%; width: 24px; text-align: center; font-weight: 400; color: var(--muted); }
[data-cm] .cm-seq li[aria-current="step"] {
  padding: 4px 10px 4px 22px; border-radius: 999px; font-weight: 600; color: var(--ink);
  background: radial-gradient(circle at 11px 50%, var(--gold) 0 4px, transparent 4.5px), var(--sand);
}
[data-cm] .callout-means { margin-top: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
[data-cm] .callout-means b { color: var(--ink); font-weight: 600; }
[data-cm] .callout .stamp { margin-top: 10px; }
[data-cm] .callout-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; }
[data-cm] .callout-links a { color: var(--green); font-weight: 600; text-underline-offset: 3px; }
[data-cm] .callout-links .link-arrow { text-decoration: none; }

/* Section rhythm: the paper sections that follow each other share one gap and a hairline */
[data-cm] .cm-stand { padding-bottom: clamp(56px, 7vw, 96px); }
[data-cm] .cm-dist { padding-top: 0; }
[data-cm] .cm-dist .wrap { background: linear-gradient(var(--line), var(--line)) var(--gutter) 0 / calc(100% - 2 * var(--gutter)) 1px no-repeat; padding-top: clamp(44px, 5vw, 72px); }
[data-cm] .cm-phl { padding-top: 0; }
[data-cm] .cm-latest { padding-top: clamp(40px, 5vw, 72px); }
[data-cm] .cm-adv { padding-top: clamp(48px, 6.5vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); }

/* Bars: ranked, one emphasised, values at the bar ends */
[data-cm] .cm-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 72px; }
[data-cm] .cm-chart .h-md { margin-top: 14px; }
[data-cm] .bars { --max: 1; list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 2px; }
[data-cm] .bars li { display: grid; grid-template-columns: 176px minmax(0, 1fr); align-items: center; gap: 14px; min-height: 26px; padding: 2px 6px; margin: 0 -6px; border-radius: 6px; font-size: 14px; line-height: 1.3; }
[data-cm] .bars li:hover { background: rgba(23, 32, 15, 0.045); }
[data-cm] .bl { line-height: 1.3; color: var(--ink); }
[data-cm] .is-em .bl { font-weight: 700; }
[data-cm] .bt { display: flex; align-items: center; gap: 8px; min-width: 0; }
[data-cm] .bar { flex: none; height: 14px; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--bar); width: calc((100% - 44px) * var(--v) / var(--max)); }
[data-cm] .bar--em { background: var(--bar-em); }
[data-cm] .bv { font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ink); }

/* Philippines up close */
[data-cm] .cm-phl-card {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 40px 44px;
}
[data-cm] .cm-phl-text .h-md { margin-top: 14px; }
[data-cm] .cm-phl-total { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
[data-cm] .cm-phl-total b { font: 500 56px/1 var(--head); color: var(--green-deep); letter-spacing: -0.02em; }
[data-cm] .cm-phl-total span { font-size: 15px; color: var(--muted); }
[data-cm] .brace { display: flex; gap: 2px; margin-top: 22px; font-size: 13px; font-weight: 600; line-height: 1.2; }
[data-cm] .brace span { flex: var(--v) 1 0%; min-width: 0; }
[data-cm] .brace span:first-child::after { content: ""; display: block; height: 7px; margin-top: 6px; border: 1.5px solid var(--ink); border-bottom: 0; border-radius: 3px 3px 0 0; }
[data-cm] .stackbar { display: flex; gap: 2px; height: 18px; }
[data-cm] .stackbar span { flex: var(--v) 1 0%; min-width: 3px; border-radius: 2px; background: var(--c); }
[data-cm] .stackbar--lg { height: 30px; margin-top: 4px; }
[data-cm] .keyrow { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 14px; }
[data-cm] .keyrow li { display: inline-flex; align-items: center; gap: 8px; }
[data-cm] .keyrow b { font-weight: 600; font-variant-numeric: proportional-nums; }
[data-cm] .cm-phl-link { margin-top: 18px; font-size: 15px; }

/* Latest on the registries */
[data-cm] .moves { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
[data-cm] .moves[hidden] { display: none; }
[data-cm] .moves { align-items: start; }
html:not(.js) [data-cm] .js-only, .js [data-cm] .nojs-only { display: none; }
[data-cm] .move { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; }
[data-cm] .mv-meta { font: 600 12px/1.3 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
[data-cm] .mv-name { font: 500 19px/1.3 var(--head); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
[data-cm] .mv-name a { text-decoration: none; }
[data-cm] .mv-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
/* The 2-line clamp clips the link's own ring: inset it, and where :has() works draw it on the card instead */
[data-cm] .mv-name a:focus-visible { outline-offset: -2px; }
@supports selector(:has(a)) {
  [data-cm] .move:has(.mv-name a:focus-visible) { outline: 2px solid var(--green-deep); outline-offset: 2px; }
  [data-cm] .mv-name a:focus-visible { outline: none; }
}
/* Several projects that made the same move on the same day share one card */
[data-cm] .move--group .mv-name { display: block; }
[data-cm] .mv-list { list-style: none; margin: 8px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); display: grid; gap: 6px; font-size: 14px; line-height: 1.4; }
[data-cm] .mv-list li { min-width: 0; }
[data-cm] .mv-list a { display: flex; max-width: 100%; color: var(--ink); text-decoration: none; }
[data-cm] .mv-list a::after { flex: none; }
[data-cm] .mv-list a:hover .mv-t { text-decoration: underline; text-underline-offset: 3px; }
[data-cm] .mv-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-cm] .mv-more { font-size: 14px; }
[data-cm] .mv-more a { color: var(--green); font-weight: 600; text-underline-offset: 3px; }
[data-cm] .mv-now { margin-top: 4px; font-size: 15px; line-height: 1.45; }
[data-cm] .mv-was { font-size: 14px; line-height: 1.45; color: var(--muted); }
[data-cm] .moves-empty { margin-top: 32px; font-size: 16px; color: var(--muted); }
[data-cm] .moves-empty a { color: var(--green); font-weight: 600; }
[data-cm] .cm-moves-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; margin-top: 22px; }
[data-cm] .cm-moves-foot .stamp { max-width: 74ch; }
[data-cm] .cm-moves-foot .link-arrow { font-size: 15px; }

/* Built on Carbon.Supply (dark band) */
[data-cm] .cm-cs-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
[data-cm] .cm-cs-eb { display: flex; align-items: center; gap: 12px; }
[data-cm] .cs-mark { flex: none; width: 40px; height: 40px; margin: -10px -6px -10px -8px; }
[data-cm] .cm-cs-text .lead { max-width: 52ch; }
[data-cm] .cm-cs-go { padding: 28px; border: 1px solid var(--line-light); border-radius: 18px; background: rgba(255, 255, 255, 0.03); }
[data-cm] .btn.ext { gap: 0; }
[data-cm] .cm-cs-links { list-style: none; margin: 22px 0 0; padding: 0; font-size: 15px; line-height: 1.45; }
[data-cm] .cm-cs-links li { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line-light); }
[data-cm] .cm-cs-links li:last-child { padding-bottom: 0; }
[data-cm] .cm-cs-links span { font-size: 14px; color: rgba(255, 255, 255, 0.66); }
[data-cm] .cm-cs-links a { justify-self: start; color: var(--white); font-weight: 600; text-underline-offset: 3px; }
[data-cm] .cm-cs-links a:hover { color: var(--gold-light); }

/* Wovoka Advisory and the small door */
[data-cm] .cm-adv-card {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4.5vw, 64px); align-items: start;
  padding: clamp(28px, 4.5vw, 56px); border-radius: 20px; background: var(--sand);
}
[data-cm] .cm-adv-card h2 { font-size: clamp(30px, 2.9vw, 40px); text-wrap: balance; }
[data-cm] .cm-adv-copy { font-size: 17px; line-height: 1.6; color: var(--muted); }
[data-cm] .cm-adv-btn { margin-top: 28px; }
[data-cm] .cm-door { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; margin-top: 36px; padding: 0; font-size: 17px; color: var(--muted); }
[data-cm] .cm-door a { color: var(--ink); }

/* Table view and method note */
[data-cm] .cm-more { padding-bottom: clamp(56px, 8vw, 96px); }
[data-cm] .cm-more details { border-top: 1px solid var(--line); font-size: 14px; }
[data-cm] .cm-more details:last-child { border-bottom: 1px solid var(--line); }
[data-cm] .cm-more summary { padding: 16px 0; font-size: 15px; font-weight: 600; cursor: pointer; }
[data-cm] .cm-more summary:hover { color: var(--green); }
[data-cm] .cm-tables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 4px; }
[data-cm] .cm-tables table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
[data-cm] .cm-tables caption { text-align: left; padding-bottom: 6px; font: 600 12px/1.3 var(--body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--green); }
[data-cm] .cm-tables th, [data-cm] .cm-tables td { padding: 7px 0; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; }
[data-cm] .cm-tables td { text-align: right; padding-left: 12px; }
[data-cm] .cm-tables thead th { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
[data-cm] .cm-tables thead th + th { text-align: right; }
[data-cm] .cm-tables tfoot th, [data-cm] .cm-tables tfoot td { font-weight: 600; border-bottom: 0; }
[data-cm] .data-table > .stamp { padding: 14px 0 20px; }
[data-cm] .method p { max-width: 82ch; padding-bottom: 20px; line-height: 1.6; color: var(--muted); }

/* Tooltip (one per page; built by carbon-market.js) */
[data-cm] .tip {
  position: absolute; z-index: 40; max-width: 280px; padding: 7px 11px; border-radius: 8px;
  background: var(--green-night); color: var(--white); font-size: 13px; line-height: 1.35;
  pointer-events: none; box-shadow: 0 8px 24px rgba(20, 28, 16, 0.22);
}
[data-cm] .tip[hidden] { display: none; }
[data-cm] .tip b { display: block; font-weight: 600; }
[data-cm] .tip span { display: block; color: rgba(255, 255, 255, 0.76); }

@media (max-width: 999px) { [data-cm] .cm-two { grid-template-columns: 1fr; gap: 56px; } }
@media (max-width: 860px) {
  [data-cm] .page-hero .wrap { padding-bottom: 72px; }
  [data-cm] .page-hero .hero-caption { bottom: 22px; }
  [data-cm] .cm-panel { margin-top: 24px; border-radius: 14px; box-shadow: 0 10px 30px rgba(20, 28, 16, 0.08); }
  [data-cm] .cm-stand-grid { grid-template-columns: 1fr; gap: 36px; margin-top: 32px; }
  [data-cm] .callout { position: static; }
  [data-cm] .cm-phl-card { grid-template-columns: 1fr; gap: 28px; padding: 28px 24px; }
  [data-cm] .cm-cs-grid { grid-template-columns: 1fr; gap: 32px; }
  [data-cm] .cm-cs-go { padding: 22px 20px; }
  [data-cm] .cm-tables { grid-template-columns: 1fr; gap: 24px; }
  [data-cm] .cm-adv-card { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  [data-cm] .moves { grid-template-columns: 1fr; gap: 12px; margin-top: 28px; }
  [data-cm] .moves .move:nth-child(n+5) { display: none; } /* one column: the four newest; the link below has the rest */
}
@media (max-width: 700px) {
  [data-cm] .kpis { grid-template-columns: 1fr 1fr; }
  [data-cm] .kpis li { padding: 18px 18px 20px; gap: 8px; }
  [data-cm] .kpis li + li { border-left: 0; }
  [data-cm] .kpis li:nth-child(even) { border-left: 1px solid var(--line); }
  [data-cm] .kpis li:nth-child(n+3) { border-top: 1px solid var(--line); }
  [data-cm] .kpis b { font-size: 36px; }
  [data-cm] .kpis span { font-size: 14px; }
  [data-cm] .cm-panel-head, [data-cm] .cm-panel-foot { padding: 14px 18px; }
}
@media (max-width: 600px) {
  [data-cm] .page-hero { min-height: 0; }
  [data-cm] .page-hero .wrap { padding-top: 116px; padding-bottom: 36px; }
  [data-cm] .page-hero .eyebrow { margin-bottom: 16px; font-size: 12px; color: #fff; }
  [data-cm] .page-hero .eyebrow::before { display: none; }
  [data-cm] .page-hero h1 { font-size: 38px; }
  [data-cm] .page-hero .lead { margin-top: 16px; font-size: 16.5px; }
  [data-cm] .cm-hero-meta { margin-top: 22px; gap: 10px; font-size: 13px; }
  [data-cm] .cm-stand-grid { margin-top: 28px; }
  [data-cm] .waffle { gap: 18px; }
  [data-cm] .wg-label .def { flex-basis: 100%; font-size: 13.5px; }
  [data-cm] .callout { padding: 20px 18px; }
  [data-cm] .bars { margin-top: 20px; }
  [data-cm] .cm-phl-total b { font-size: 46px; }
  [data-cm] .move { padding: 16px; }
  [data-cm] .mv-name { font-size: 18px; }
  [data-cm] .cm-door { margin-top: 28px; font-size: 16px; }
  [data-cm] .cm-adv-copy { font-size: 16px; }
}
@media (max-width: 480px) {
  [data-cm] .bars { gap: 6px; }
  [data-cm] .bars li { grid-template-columns: 112px minmax(0, 1fr); gap: 10px; min-height: 0; padding: 3px 6px; font-size: 13.5px; }
  [data-cm] .bar { height: 10px; }
  [data-cm] .bl { line-height: 1.2; }
  [data-cm] .mv-name { -webkit-line-clamp: 3; line-clamp: 3; }
  [data-cm] .cm-door { display: grid; justify-items: start; gap: 10px; }
  [data-cm] .cm-door-sep { display: none; }
}
@media (forced-colors: active) {
  [data-cm] .wg-grid i, [data-cm] .stackbar span, [data-cm] .bar, [data-cm] .sw { outline: 1px solid CanvasText; outline-offset: -1px; }
  [data-cm] .wg-grid i.is-ours, [data-cm] .ring-key { outline: 3px solid Highlight; outline-offset: 1px; }
  [data-cm] .cm-dot, [data-cm] .cm-note::before { border: 1px solid CanvasText; }
  [data-cm] .brace span:first-child::after { border-color: CanvasText; }
  [data-cm] .cm-seq [aria-current] { outline: 1px solid CanvasText; }
}
@media print {
  [data-cm] .wg-grid i, [data-cm] .stackbar span, [data-cm] .bar, [data-cm] .sw, [data-cm] .ring-key {
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  [data-cm] .page-hero .wrap { padding: 24px var(--gutter) 24px; }
  [data-cm] .page-hero .eyebrow, [data-cm] .cm-read, [data-cm] .cm-credit { color: var(--ink) !important; background: none; border-color: var(--line); }
  [data-cm] .cm-panel { margin-top: 0; box-shadow: none; }
  [data-cm] .callout { position: static; }
  [data-cm] .tip { display: none !important; }
  [data-cm] .callout, [data-cm] .cm-chart, [data-cm] .cm-phl-card, [data-cm] .move, [data-cm] .wg { break-inside: avoid; }
}
/* END market block (/carbon-market) */
