/* =============================================================
   Earth Trust Coin Foundation — Design System
   Palette drawn from the EHTC coin: forest green, ocean blue,
   continent green, Swiss gold, soil brown, cream.
   ============================================================= */

:root {
  /* Brand */
  --forest-900: #0c2418;
  --forest-800: #123a24;
  --forest-700: #17492e;
  --forest-600: #1d5c3a;
  --forest-500: #2b7a4f;
  --emerald:    #3fae74;
  --emerald-200:#bfe6cf;
  --gold-700:   #9a742b;
  --gold-600:   #b98f38;
  --gold-500:   #c9a24b;
  --gold-300:   #e3c47f;
  --ocean:      #2f6f9e;
  --soil:       #6b4e32;

  /* Neutrals */
  --ink:        #1a2620;
  --ink-soft:   #3f4f47;
  --muted:      #607066;
  --line:       #e2e6df;
  --cream:      #f6f4ec;
  --paper:      #ffffff;
  --paper-2:    #f3f6f1;

  /* Semantic */
  --bg: var(--paper);
  --text: var(--ink);
  --accent: var(--gold-600);
  --accent-ink: var(--forest-800);

  --container: 1180px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(16,32,24,.06), 0 2px 8px rgba(16,32,24,.05);
  --shadow-md: 0 8px 24px rgba(16,32,24,.10), 0 2px 8px rgba(16,32,24,.06);
  --shadow-lg: 0 24px 60px rgba(12,36,24,.18);

  --font-serif: Georgia, "Iowan Old Style", "Times New Roman", Cambria, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  --header-h: 68px;
}

/* -------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--forest-600); text-decoration: none; }
a:hover { color: var(--gold-700); }
h1, h2, h3, h4 { font-family: var(--font-serif); color: var(--ink); line-height: 1.15; font-weight: 700; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.01em; }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.1rem; }
p { margin: 0 0 1rem; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }
::selection { background: var(--gold-300); color: var(--forest-900); }

/* -------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.1rem, 4vw, 2rem); }
.container-narrow { max-width: 820px; }
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.section--cream { background: var(--cream); }
.section--paper2 { background: var(--paper-2); }
.section--forest {
  background: radial-gradient(1200px 600px at 15% 0%, var(--forest-700), var(--forest-900) 70%);
  color: #e7efe9;
}
.section--forest h1, .section--forest h2, .section--forest h3, .section--forest h4 { color: #fff; }
.section--forest a { color: var(--gold-300); }
.section--forest .eyebrow { color: var(--gold-300); }

.grid { display: grid; gap: clamp(1.1rem, 2.5vw, 1.8rem); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.stack > * + * { margin-top: 1rem; }
.center { text-align: center; }
.measure { max-width: 65ch; }
.measure-wide { max-width: 78ch; }
.mx-auto { margin-inline: auto; }

/* -------------------------------------------------- Eyebrow / section head */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans);
  font-size: .78rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold-700);
  margin-bottom: .9rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; display: inline-block; }
.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; }
.section-head p { color: var(--muted); font-size: 1.12rem; margin-bottom: 0; }

/* -------------------------------------------------- Header / Nav */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; font-family: var(--font-serif); font-weight: 700; color: var(--forest-800); font-size: 1.12rem; }
.brand:hover { color: var(--forest-800); }
.brand img { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(154,116,43,.35); }
.brand span { white-space: nowrap; }
.brand small { display: block; font-family: var(--font-sans); font-weight: 600; font-size: .64rem; letter-spacing: .22em; color: var(--gold-700); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a {
  display: inline-block; padding: .5rem .8rem; border-radius: 999px;
  font-size: .95rem; font-weight: 600; color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--paper-2); color: var(--forest-700); }
.nav a[aria-current="page"] { color: var(--forest-700); background: var(--emerald-200); }
.nav .btn { margin-left: .4rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: 10px; cursor: pointer; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; stroke: var(--ink); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: .8rem clamp(1.1rem, 4vw, 2rem) 1.3rem;
    box-shadow: var(--shadow-md);
    transform: translateY(-140%); transition: transform .28s ease;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .nav.is-open { transform: translateY(0); }
  .nav a { padding: .8rem .9rem; border-radius: 10px; font-size: 1rem; }
  .nav .btn { margin: .5rem 0 0; text-align: center; }
}

/* -------------------------------------------------- Buttons */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: 999px;
  font-family: var(--font-sans); font-weight: 700; font-size: .95rem;
  cursor: pointer; border: 1px solid transparent; transition: transform .12s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, var(--gold-500), var(--gold-600)); color: #23180a; box-shadow: 0 6px 18px rgba(154,116,43,.28); }
.btn-primary:hover { color: #23180a; box-shadow: 0 10px 26px rgba(154,116,43,.36); }
.btn-ghost { background: transparent; border-color: currentColor; color: var(--forest-700); }
.btn-ghost:hover { background: var(--forest-700); color: #fff; border-color: var(--forest-700); }
.section--forest .btn-ghost,
.hero .btn-ghost,
.cta-band .btn-ghost { color: #ffffff; border-color: rgba(255,255,255,.55); }
.section--forest .btn-ghost:hover,
.hero .btn-ghost:hover,
.cta-band .btn-ghost:hover { background: #fff; color: var(--forest-800); border-color: #fff; }
.btn-outline { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--forest-600); color: var(--forest-700); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.02rem; }
.btn-block { width: 100%; justify-content: center; }

/* -------------------------------------------------- Hero */
.hero { position: relative; padding-top: calc(var(--header-h) + 1px); color: #f3f7f2; isolation: isolate; }
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(9,26,18,.62) 0%, rgba(9,26,18,.5) 40%, rgba(9,26,18,.82) 100%),
    linear-gradient(90deg, rgba(9,26,18,.68), rgba(9,26,18,.15));
}
.hero__inner { padding-block: clamp(4rem, 12vw, 8.5rem); max-width: 760px; }
.hero h1 { color: #fff; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.hero__lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: #e9f1ea; margin-bottom: 1.8rem; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__ticker {
  margin-top: 2.2rem; display: flex; flex-wrap: wrap; gap: 1.5rem 2.5rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.18);
}
.hero__ticker div { min-width: 120px; }
.hero__ticker b { display: block; font-family: var(--font-serif); font-size: 1.5rem; color: #fff; }
.hero__ticker span { font-size: .82rem; letter-spacing: .04em; color: #cfe0d4; text-transform: uppercase; }

/* Page hero (interior) */
.page-hero { position: relative; padding-top: var(--header-h); color: #eef4ef; isolation: isolate; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; background: var(--forest-800); }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(12,36,24,.66), rgba(12,36,24,.85)); }
.page-hero__inner { padding-block: clamp(3rem, 8vw, 5rem); max-width: 760px; }
.page-hero h1 { color: #fff; }
.page-hero p { color: #d7e5da; font-size: 1.12rem; margin-bottom: 0; }
.breadcrumb { font-size: .85rem; color: #b9ccbf; margin-bottom: 1rem; letter-spacing: .02em; }
.breadcrumb a { color: #b9ccbf; }
.breadcrumb a:hover { color: #fff; }

/* -------------------------------------------------- Cards */
.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow-sm);
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card--hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--emerald-200); }
.card h3 { margin-bottom: .4rem; }
.card p:last-child { margin-bottom: 0; }
.card__icon {
  width: 52px; height: 52px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--emerald-200), #e7f4ec);
  color: var(--forest-700); margin-bottom: 1rem;
}
.card__icon svg { width: 26px; height: 26px; }
.card--gold .card__icon { background: linear-gradient(160deg, var(--gold-300), #f6ead0); color: var(--gold-700); }
.card__num { font-family: var(--font-serif); font-size: .95rem; color: var(--gold-700); font-weight: 700; letter-spacing: .1em; }

.section--forest .card { background: rgba(255,255,255,.045); border-color: rgba(255,255,255,.14); color: #dbe7de; box-shadow: none; }
.section--forest .card h3 { color: #fff; }
.section--forest .card__icon { background: rgba(255,255,255,.1); color: var(--gold-300); }

/* -------------------------------------------------- Stat tiles */
.stat { text-align: center; padding: 1.4rem 1rem; }
.stat b { display: block; font-family: var(--font-serif); font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--forest-700); line-height: 1; }
.stat span { display: block; margin-top: .5rem; font-size: .9rem; color: var(--muted); }
.section--forest .stat b { color: #fff; }
.section--forest .stat span { color: #bcd0c2; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.stat-row .stat + .stat { border-left: 1px solid var(--line); }
@media (max-width: 780px) {
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .stat-row .stat:nth-child(3) { border-left: 0; }
  .stat-row .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* -------------------------------------------------- Backing equation */
.equation { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: center; gap: 1rem; }
.equation__op { display: grid; place-items: center; font-family: var(--font-serif); font-size: 2rem; color: var(--gold-600); }
.equation .card { height: 100%; }
@media (max-width: 780px) {
  .equation { grid-template-columns: 1fr; }
  .equation__op { font-size: 1.6rem; padding: .2rem 0; }
}

/* -------------------------------------------------- Feature split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; }
.split__media { position: relative; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse .split__media { order: 0; }
}

/* -------------------------------------------------- Media frame */
.media-frame {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow-md); background: var(--paper);
}
.media-frame img { width: 100%; }
.figure-caption { font-size: .85rem; color: var(--muted); margin-top: .7rem; text-align: center; }

/* -------------------------------------------------- List / checklist */
.ticklist { list-style: none; padding: 0; margin: 0; }
.ticklist li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.ticklist li::before {
  content: ""; position: absolute; left: 0; top: .15rem;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--emerald-200) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2317492e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section--forest .ticklist li::before { background-color: rgba(191,230,207,.25); }

/* -------------------------------------------------- Steps */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step { position: relative; padding-left: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--forest-700); color: #fff;
  font-family: var(--font-serif); font-weight: 700;
  display: grid; place-items: center;
}
.step h4 { margin-bottom: .25rem; }
.step p { margin-bottom: 0; color: var(--muted); }

/* -------------------------------------------------- Timeline */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--emerald), var(--gold-500)); }
.timeline li { position: relative; padding-left: 2.6rem; padding-bottom: 2rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 3px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: #fff; border: 3px solid var(--forest-600);
}
.timeline li.is-done::before { background: var(--forest-600); }
.timeline .t-year { font-family: var(--font-serif); font-weight: 700; color: var(--forest-700); font-size: 1.15rem; }
.timeline .t-tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; padding: .18rem .55rem; border-radius: 999px; margin-left: .5rem; vertical-align: middle; }
.t-tag--done { background: var(--emerald-200); color: var(--forest-800); }
.t-tag--now { background: var(--gold-300); color: var(--gold-700); }
.t-tag--next { background: var(--line); color: var(--muted); }

/* -------------------------------------------------- Directory (transparency) */
.dir-group { margin-bottom: 2.6rem; }
.dir-group > h3 { display: flex; align-items: baseline; gap: .6rem; padding-bottom: .6rem; border-bottom: 2px solid var(--line); margin-bottom: 1.2rem; }
.dir-group > h3 .count { font-family: var(--font-sans); font-size: .8rem; color: var(--muted); font-weight: 600; }
.dir-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
@media (max-width: 760px) { .dir-list { grid-template-columns: 1fr; } }
.dir-item {
  display: block; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); transition: border-color .15s, box-shadow .15s, transform .15s;
}
.dir-item:hover { border-color: var(--emerald); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.dir-item b { display: block; color: var(--ink); font-family: var(--font-sans); }
.dir-item span { display: block; font-size: .88rem; color: var(--muted); margin-top: .15rem; }
.dir-item .loc { display: inline-flex; align-items: center; gap: .3rem; margin-top: .5rem; font-size: .8rem; color: var(--forest-600); }
.dir-item .loc svg { width: 13px; height: 13px; }

/* -------------------------------------------------- Link cards (news) */
.linkcard {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.2rem 1.3rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); transition: border-color .15s, box-shadow .15s;
}
.linkcard:hover { border-color: var(--emerald); box-shadow: var(--shadow-sm); }
.linkcard .lc-ico { flex: none; width: 40px; height: 40px; border-radius: 10px; background: var(--paper-2); display: grid; place-items: center; color: var(--forest-600); }
.linkcard .lc-ico svg { width: 20px; height: 20px; }
.linkcard b { color: var(--ink); font-family: var(--font-sans); font-size: 1rem; }
.linkcard p { margin: .2rem 0 0; font-size: .9rem; color: var(--muted); }
.linkcard .lc-go { margin-left: auto; align-self: center; color: var(--muted); flex: none; }

/* -------------------------------------------------- Video */
.video-embed { position: relative; padding-bottom: 56.25%; height: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); background: #000; border: 1px solid var(--line); }
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* -------------------------------------------------- Document card */
.doc-card { display: flex; gap: 1.2rem; align-items: flex-start; }
.doc-card .doc-thumb {
  flex: none; width: 84px; height: 108px; border-radius: 8px;
  background: linear-gradient(160deg, #fdfcf7, #eef1e9); border: 1px solid var(--line);
  display: grid; place-items: center; color: var(--gold-700); position: relative;
}
.doc-card .doc-thumb svg { width: 34px; height: 34px; }
.doc-card .doc-thumb::after { content: "PDF"; position: absolute; bottom: 8px; font-size: .6rem; font-weight: 800; letter-spacing: .1em; color: var(--muted); }

/* -------------------------------------------------- Callout / note */
.callout {
  border-left: 4px solid var(--gold-500); background: var(--cream);
  padding: 1.2rem 1.4rem; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.callout p:last-child { margin-bottom: 0; }
.callout--forest { background: rgba(255,255,255,.05); border-color: var(--gold-300); }

/* -------------------------------------------------- Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
table.data th, table.data td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--paper-2); font-family: var(--font-sans); color: var(--ink); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tr:last-child td { border-bottom: 0; }

/* -------------------------------------------------- FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); padding: .3rem 0; }
.faq summary { cursor: pointer; list-style: none; padding: 1.1rem .5rem 1.1rem 0; font-family: var(--font-serif); font-size: 1.12rem; color: var(--ink); display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-sans); font-size: 1.4rem; color: var(--gold-600); flex: none; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 .5rem 1.2rem; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* -------------------------------------------------- Pills / tags */
.pill { display: inline-block; padding: .3rem .8rem; border-radius: 999px; background: var(--emerald-200); color: var(--forest-800); font-size: .8rem; font-weight: 700; letter-spacing: .02em; }
.pill--gold { background: var(--gold-300); color: var(--gold-700); }
.pill-row { display: flex; flex-wrap: wrap; gap: .5rem; }

/* -------------------------------------------------- CTA band */
.cta-band { border-radius: var(--radius); background: radial-gradient(700px 300px at 20% 0%, var(--forest-600), var(--forest-900)); color: #eaf2ec; padding: clamp(2rem, 5vw, 3.4rem); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #cfe0d4; max-width: 52ch; margin-inline: auto; }
.cta-band .hero__actions { justify-content: center; margin-top: 1.4rem; }

/* -------------------------------------------------- Footer */
.site-footer { background: var(--forest-900); color: #b9cabf; padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; font-size: .95rem; }
.site-footer a { color: #cde0d3; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 2rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand { color: #fff; font-size: 1.15rem; }
.footer-brand p { margin-top: .9rem; max-width: 32ch; color: #9fb4a6; }
.site-footer h5 { font-family: var(--font-sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #7f978a; margin: 0 0 .9rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .5rem; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; justify-content: space-between; align-items: center; color: #8ba394; font-size: .85rem; }
.footer-bottom .badges { display: flex; gap: 1rem; flex-wrap: wrap; }

/* -------------------------------------------------- Anchors offset for fixed header */
:target { scroll-margin-top: calc(var(--header-h) + 20px); }

/* -------------------------------------------------- Reveal on scroll (only when JS is active) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* -------------------------------------------------- Utilities */
.text-muted { color: var(--muted); }
.small { font-size: .88rem; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.5rem; }
.lead { font-size: 1.18rem; color: var(--ink-soft); }
.divider-leaf { display: flex; align-items: center; gap: 1rem; color: var(--emerald); margin: 2.5rem 0; }
.divider-leaf::before, .divider-leaf::after { content: ""; height: 1px; background: var(--line); flex: 1; }
.anchor-list { columns: 2; gap: 2rem; }
@media (max-width: 640px){ .anchor-list { columns: 1; } }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* -------------------------------------------------- Footer inline link button */
.link-btn {
  background: none; border: 0; padding: 0; margin: 0; font: inherit; cursor: pointer;
  color: #cde0d3; text-decoration: underline; text-underline-offset: 2px;
}
.link-btn:hover { color: #fff; }

/* =================================================================
   Cookie content manager + preference helper
   ================================================================= */
#consent-root { position: relative; z-index: 300; }

.consent-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 -8px 30px rgba(12,36,24,.14);
  padding: 1.1rem clamp(1.1rem, 4vw, 2rem);
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between;
}
.consent-banner[hidden] { display: none; }
.consent-banner-copy { max-width: 64ch; flex: 1 1 320px; }
.consent-title { font-family: var(--font-serif); font-weight: 700; font-size: 1.08rem; margin: 0 0 .3em; color: var(--ink); }
.consent-banner-copy p:last-child { margin: 0; font-size: .92rem; color: var(--ink-soft); line-height: 1.6; }
.consent-banner-copy a { color: var(--forest-600); text-decoration: underline; text-underline-offset: 2px; }
.consent-banner-actions { display: flex; flex-wrap: wrap; gap: .6rem; flex: 0 0 auto; }
.consent-banner-actions .btn { padding: .7em 1.15em; font-size: .9rem; }

.consent-overlay { position: fixed; inset: 0; background: rgba(12,23,18,.6); z-index: 310; }
.consent-overlay[hidden] { display: none; }

.consent-dialog {
  position: fixed; z-index: 320; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 2.5rem)); max-height: min(660px, calc(100vh - 3rem));
  overflow-y: auto; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
}
.consent-dialog[hidden] { display: none; }
.consent-dialog-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line);
}
.consent-dialog-head h2 { font-size: 1.3rem; margin: 0; }
.consent-close {
  background: transparent; border: 0; font-size: 1.7rem; line-height: 1; color: var(--muted);
  cursor: pointer; padding: 0 .3em; border-radius: var(--radius-sm);
}
.consent-close:hover { color: var(--ink); }
.consent-dialog-body { padding: .25rem 1.5rem; display: flex; flex-direction: column; }
.consent-row {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1.2rem;
  padding-block: 1.15rem; border-bottom: 1px dashed var(--line);
}
.consent-row:last-child { border-bottom: 0; }
.consent-row-copy strong { display: block; font-size: 1rem; margin-bottom: .3em; color: var(--ink); }
.consent-row-copy p { margin: 0; font-size: .88rem; color: var(--ink-soft); max-width: 42ch; line-height: 1.55; }

.consent-switch { position: relative; flex: none; display: inline-block; width: 2.7em; height: 1.55em; margin-top: .15em; }
.consent-switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.consent-switch-track { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background-color .15s ease; }
.consent-switch-track::before {
  content: ""; position: absolute; top: .18em; left: .18em; width: 1.19em; height: 1.19em;
  background: #fff; border-radius: 50%; transition: transform .15s ease; box-shadow: 0 1px 3px rgba(0,0,0,.28);
}
.consent-switch input:checked + .consent-switch-track { background: var(--emerald); }
.consent-switch input:checked + .consent-switch-track::before { transform: translateX(1.15em); }
.consent-switch input:disabled + .consent-switch-track { background: var(--forest-500); opacity: .55; cursor: not-allowed; }
.consent-switch input:focus-visible + .consent-switch-track { outline: 3px solid var(--forest-600); outline-offset: 2px; }

.consent-dialog-foot {
  display: flex; flex-wrap: wrap; gap: .75rem; justify-content: flex-end;
  padding: 1.1rem 1.5rem 1.5rem; border-top: 1px solid var(--line);
  position: sticky; bottom: 0; background: var(--paper);
}

@media (max-width: 640px) {
  .consent-banner { flex-direction: column; align-items: stretch; gap: 0.9rem; }
  .consent-banner-copy { flex: 0 0 auto; }
  .consent-banner-actions { flex: 0 0 auto; justify-content: stretch; }
  .consent-banner-actions .btn { flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) {
  .consent-switch-track, .consent-switch-track::before { transition: none; }
}

/* ---- consent-gated third-party embeds ---- */
.consent-embed { position: relative; }
.consent-embed-gate {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: .9rem;
  padding: 1.5rem; background: var(--forest-800); color: #dbe7de;
}
.consent-embed-gate p { margin: 0; font-size: .9rem; max-width: 34ch; color: #cfe0d4; }
.consent-embed-gate svg { width: 26px; height: 26px; color: var(--gold-300); }
.consent-embed.is-loaded .consent-embed-gate { display: none; }

/* print */
@media print {
  .site-header, .site-footer, .nav-toggle, .hero__actions, .cta-band,
  #consent-root { display: none !important; }
  body { color: #000; }
}
