/* DLMM Foundation. Tokens come from the emblem: ocean-blue trunk, leaf-green
   canopy, coral heart, gold spark. See DESIGN.md. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/assets/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata.woff2") format("woff2");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("/assets/fonts/literata-italic.woff2") format("woff2");
  font-weight: 200 900;
  font-style: italic;
  font-display: swap;
}

:root {
  color-scheme: light;
  --canvas: #f4f7f4;
  --surface: #e3ece5;
  --ocean: #133440;
  --ocean-2: #1b4654;
  --ink: #14303a;
  --muted: #47606a;
  --accent: #b6472d;
  --accent-hover: #9c3a23;
  --leaf: #2e6a47;
  --gold: #e2aa2e;
  --on-dark: #eef5f1;
  --on-dark-muted: #bdd2cd;
  --line: rgb(20 48 58 / 0.16);

  --display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
  --step-0: clamp(1.03rem, 0.98rem + 0.25vw, 1.15rem);
  --step-1: clamp(1.25rem, 1.12rem + 0.6vw, 1.6rem);
  --step-2: clamp(1.7rem, 1.35rem + 1.6vw, 2.7rem);
  --step-3: clamp(2.4rem, 1.6rem + 3.6vw, 4.6rem);

  --dur-fast: 180ms;
  --dur-slow: 700ms;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --gutter: max(1rem, env(safe-area-inset-left), env(safe-area-inset-right));
  --measure: 38rem;
  --header-h: 4.25rem;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.62;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
h2 { font-size: var(--step-2); font-weight: 700; }
h3 { font-size: var(--step-1); font-weight: 650; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--accent-hover); }
strong { font-weight: 650; }
abbr[title] { text-decoration: underline dotted; cursor: help; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--ocean); color: var(--on-dark); padding: 0.75rem 1rem; border-radius: 8px; }
.skip:focus { top: 1rem; color: var(--on-dark); }

.eyebrow {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--leaf);
  margin-bottom: 0.9rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; transform: translateY(-1px); }
.button--ghost { background: transparent; color: var(--accent); }
.button--ghost:hover { background: var(--accent); color: #fff; }
.button--small { min-height: 44px; padding: 0.45rem 1.05rem; font-size: 0.95rem; }

/* Masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  background: rgb(244 247 244 / 0.94);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(10px)) {
  .masthead { background: rgb(244 247 244 / 0.82); backdrop-filter: blur(12px) saturate(1.2); }
}
.brand { display: flex; align-items: center; gap: 0.6rem; color: var(--ocean); text-decoration: none; font-family: var(--display); font-weight: 750; font-size: 1.15rem; min-height: 44px; }
.brand em { font-style: normal; font-weight: 450; }
.brand:hover { color: var(--ocean); }
.masthead nav { margin-left: auto; }
.masthead ul { display: flex; gap: 0.25rem; margin: 0; padding: 0; list-style: none; }
.masthead nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.75rem; color: var(--ink); text-decoration: none; font-family: var(--display); font-weight: 550; font-size: 0.98rem; border-radius: 999px; }
.masthead nav a:hover, .masthead nav a[aria-current="true"] { background: var(--surface); color: var(--ocean); }
@media (max-width: 860px) {
  .masthead nav { display: none; }
  .masthead .button { margin-left: auto; }
}
@media (max-width: 380px) {
  .brand em { display: none; }
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: end;
  color: var(--on-dark);
  background: var(--ocean);
  isolation: isolate;
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(calc(1 + var(--hero-zoom, 0) * 0.08)); }
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgb(19 52 64 / 0.35) 0%, rgb(19 52 64 / 0.55) 40%, rgb(19 52 64 / 0.94) 100%);
}
.hero__inner { width: min(72rem, 100% - 2 * var(--gutter)); margin: 0 auto; padding: 4rem 0 5.5rem; }
.hero__emblem {
  width: clamp(7rem, 5rem + 9vw, 11rem);
  height: auto;
  margin-bottom: 1.5rem;
  padding: 0.6rem;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, #fbfdf9 0 60%, #e3ece5 100%);
  box-shadow: 0 0 0 6px rgb(226 170 46 / 0.35);
}
.hero .eyebrow { color: #f2cf7c; }
.hero h1 { font-size: var(--step-3); font-weight: 750; max-width: 14ch; }
.hero h1 span { color: #a9dcc4; }
.hero__lede { max-width: var(--measure); margin-top: 1.25rem; font-size: var(--step-1); line-height: 1.5; color: var(--on-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.hero .button--ghost { color: var(--on-dark); border-color: var(--on-dark); }
.hero .button--ghost:hover { background: var(--on-dark); color: var(--ocean); }
.hero__cue { position: absolute; left: 50%; bottom: 1.25rem; translate: -50% 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; }
.hero__cue span { width: 2px; height: 26px; background: var(--on-dark); border-radius: 2px; animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* Shared section rhythm */
section { padding: clamp(4rem, 3rem + 5vw, 8rem) var(--gutter); }

/* Bridge */
.bridge { display: grid; gap: clamp(2rem, 4vw, 4rem); grid-template-columns: minmax(0, 1fr); max-width: 76rem; margin: 0 auto; align-items: center; }
@media (min-width: 900px) { .bridge { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); } }
.bridge__copy { max-width: var(--measure); }
.bridge__copy h2 { margin-bottom: 1.25rem; }
.note { border-left: 4px solid var(--gold); padding: 0.25rem 0 0.25rem 1rem; color: var(--muted); }
.bridge__map { margin: 0; color: var(--ocean); }
.bridge__map svg { width: 100%; height: auto; background: var(--surface); border-radius: 24px; }
.map-land path, .map-land circle { fill: var(--leaf); opacity: 0.85; }
.map-arc { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--draw, 1)); }
.map-pin circle { fill: var(--gold); stroke: var(--ocean); stroke-width: 3; }
.map-label { font-family: var(--display); font-weight: 700; font-size: 17px; fill: var(--ocean); }
.map-sub { font-family: var(--body); font-size: 13px; fill: var(--muted); }
.bridge__map figcaption { margin-top: 0.9rem; color: var(--muted); font-size: 0.95rem; }

/* Quote */
.quote { background: var(--ocean); color: var(--on-dark); text-align: center; }
.quote blockquote { margin: 0 auto; max-width: 52rem; }
.quote blockquote p { font-family: var(--body); font-style: italic; font-weight: 400; font-size: var(--step-2); line-height: 1.3; }
.quote footer { font-family: var(--display); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.85rem; color: #f2cf7c; }
.quote__note { margin: 2rem auto 0; max-width: 34rem; color: var(--on-dark-muted); }

/* Journey: sticky growing tree beside three chapters */
.journey { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 76rem; margin: 0 auto; gap: 0 4rem; }
.journey__rail { position: sticky; top: var(--header-h); z-index: 5; align-self: start; display: flex; align-items: center; gap: 1rem; padding: 0.75rem 0; background: var(--canvas); }
.journey__steps { display: flex; gap: 0.5rem; margin: 0; padding: 0; list-style: none; counter-reset: step; flex: 1; }
.journey__steps li {
  flex: 1;
  font-family: var(--display);
  font-weight: 650;
  font-size: 0.85rem;
  color: var(--muted);
  padding-top: 0.6rem;
  border-top: 4px solid var(--line);
  transition: color var(--dur-fast) var(--ease), border-color var(--dur-slow) var(--ease);
}
.journey__steps li.is-active, .journey__steps li.is-done { color: var(--ocean); border-color: var(--leaf); }
.journey__steps li.is-active { border-color: var(--accent); }
.tree { display: none; }
.chapter { padding: 3rem 0; max-width: 36rem; }
.chapter + .chapter { border-top: 1px solid var(--line); }
.chapter__step { font-family: var(--display); font-weight: 650; color: var(--accent); margin-bottom: 0.5rem; }
.chapter h3 { font-size: var(--step-2); font-weight: 750; color: var(--ocean); }
.chapter__sub { font-family: var(--display); color: var(--leaf); font-weight: 550; font-size: var(--step-1); margin: 0.4rem 0 1.25rem; line-height: 1.3; }
.points { padding: 0; margin: 0 0 1.5rem; list-style: none; }
.points li { position: relative; padding-left: 1.6rem; margin-bottom: 0.8rem; }
.points li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 0.7rem; height: 0.7rem; border-radius: 50% 0; background: var(--leaf); }
.learn { background: var(--surface); border-radius: 18px; padding: 1.25rem 1.4rem; margin: 0 0 1.75rem; }
.learn h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--leaf); margin-bottom: 0.5rem; }
.learn p { margin: 0; }
.chapter__photo { margin: 0; }
.chapter__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 20px; }
.chapter__photo figcaption { margin-top: 0.75rem; font-size: 0.93rem; color: var(--muted); }

@media (min-width: 900px) {
  .journey { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
  .journey__rail { top: calc(var(--header-h) + 2rem); flex-direction: column; align-items: stretch; height: calc(100svh - var(--header-h) - 4rem); justify-content: center; background: none; padding: 0; }
  .tree { display: block; width: 100%; max-height: 62svh; }
  .journey__steps { flex: 0; }
  .chapter { min-height: 90svh; display: flex; flex-direction: column; justify-content: center; padding: 5rem 0; }
}

.tree__ground { stroke: var(--line); stroke-width: 2; }
.tree__roots { fill: rgb(224 116 92 / 0.18); stroke: var(--accent); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); }
.tree__seed ellipse { fill: #7a5232; transition: opacity var(--dur-slow) var(--ease); }
.tree__sprout path:first-child { fill: none; stroke: var(--ocean-2); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); }
.tree__sprout .leaf { fill: var(--leaf); opacity: 0; transform-box: fill-box; transform-origin: bottom center; transform: scale(0.3); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.tree__trunk { fill: none; stroke: var(--ocean-2); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.2s var(--ease); }
.tree[data-stage="3"] .tree__trunk { stroke-dashoffset: 0; }
.tree[data-stage="3"] .tree__sprout { opacity: 0; }
.tree__sprout { transition: opacity var(--dur-slow) var(--ease); }
.tree__canopy circle { fill: #2c7a76; opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0.4); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.tree__canopy circle:nth-child(2), .tree__canopy circle:nth-child(4) { fill: #3d8a5a; }
.tree__canopy circle:nth-child(n+2) { transition-delay: 120ms; }
.tree__spark path { fill: var(--gold); opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0) rotate(-45deg); transition: opacity var(--dur-slow) var(--ease) 400ms, transform var(--dur-slow) var(--ease) 400ms; }
.tree[data-stage="1"] .tree__roots, .tree[data-stage="2"] .tree__roots, .tree[data-stage="3"] .tree__roots { stroke-dashoffset: 0; }
.tree[data-stage="2"] .tree__seed ellipse, .tree[data-stage="3"] .tree__seed ellipse { opacity: 0; }
.tree[data-stage="2"] .tree__sprout path:first-child, .tree[data-stage="3"] .tree__sprout path:first-child { stroke-dashoffset: 0; }
.tree[data-stage="2"] .leaf, .tree[data-stage="3"] .leaf { opacity: 1; transform: scale(1); }
.tree[data-stage="3"] .tree__canopy circle { opacity: 0.92; transform: scale(1); }
.tree[data-stage="3"] .tree__spark path { opacity: 1; transform: scale(1) rotate(0deg); }

/* Mission and vision */
.purpose { background: var(--surface); display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); }
.purpose__item { max-width: 46rem; margin: 0 auto; width: 100%; }
.purpose__text { font-family: var(--display); font-size: var(--step-2); font-weight: 500; line-height: 1.25; color: var(--ocean); margin: 0; }
.purpose__item + .purpose__item .purpose__text { font-family: var(--body); font-style: italic; font-weight: 400; }

/* Values */
.values { max-width: 76rem; margin: 0 auto; }
.values__head { max-width: 40rem; margin-bottom: 3rem; }
.values__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 2.5rem 2rem; margin: 0; padding: 0; list-style: none; }
.values__list li { padding-top: 1.25rem; border-top: 2px solid var(--ocean); }
.values__list svg { width: 44px; height: 44px; margin-bottom: 1rem; fill: none; stroke: var(--leaf); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.values__list li:nth-child(4) svg { stroke: var(--accent); }
.values__list h3 { font-size: 1.25rem; margin-bottom: 0.6rem; color: var(--ocean); }
.values__list p { color: var(--muted); margin: 0; }

/* Farm */
.farm { background: #e9efe6; }
.farm__intro { max-width: 46rem; margin: 0 auto 3.5rem; }
.farm__intro h2 { margin-bottom: 1.25rem; }
.farm__motto { font-family: var(--body); font-style: italic; font-size: var(--step-1); color: var(--leaf); border-left: 4px solid var(--gold); padding-left: 1rem; }
.badges { display: flex; flex-wrap: wrap; gap: 0.6rem; padding: 0; margin: 1.5rem 0 0; list-style: none; }
.badges li { background: var(--canvas); border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 1rem; font-size: 0.92rem; color: var(--muted); }
.badges strong { color: var(--ocean); font-family: var(--display); }

.loop { max-width: 70rem; margin: 0 auto; display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); align-items: center; }
.loop__hint { margin: 0; color: var(--muted); font-size: 0.95rem; }
.loop__wheel { position: relative; }
.loop__ring { display: none; }
.loop__buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.6rem; }
.loop__buttons button {
  display: flex; align-items: center; gap: 0.6rem;
  min-height: 52px; padding: 0.5rem 0.9rem;
  border: 2px solid var(--line); border-radius: 999px;
  background: var(--canvas); color: var(--ink);
  font: 600 0.98rem/1.2 var(--display); text-align: left; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.loop__buttons button span { display: grid; place-items: center; flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--surface); color: var(--ocean); font-size: 0.85rem; }
.loop__buttons button:hover { border-color: var(--leaf); }
.loop__buttons button[aria-pressed="true"] { background: var(--ocean); border-color: var(--ocean); color: var(--on-dark); }
.loop__buttons button[aria-pressed="true"] span { background: var(--gold); color: var(--ocean); }
.loop__panels { background: var(--canvas); border-radius: 24px; padding: clamp(1.4rem, 3vw, 2.25rem); min-height: 13rem; }
.loop__panel h3 { color: var(--ocean); margin-bottom: 0.75rem; }
.loop__panel p { margin: 0; }
.js .loop__panel[hidden] { display: none; }
html:not(.js) .loop__panel + .loop__panel { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
html:not(.js) .loop__buttons, html:not(.js) .loop__hint { display: none; }

@media (min-width: 900px) {
  .loop { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .loop__hint { grid-column: 1 / -1; text-align: center; }
  .loop__wheel { aspect-ratio: 1; max-width: 30rem; width: 100%; margin: 0 auto; }
  .loop__ring { display: block; position: absolute; inset: 12%; width: 76%; height: 76%; }
  .loop__ring circle { fill: none; stroke: var(--leaf); stroke-width: 2; stroke-dasharray: 0.06 0.06; opacity: 0.6; }
  .loop__buttons { display: block; position: absolute; inset: 0; }
  .loop__buttons button {
    position: absolute; left: 50%; top: 50%;
    --angle: calc(var(--i) * 60deg - 90deg);
    transform: translate(-50%, -50%) rotate(var(--angle)) translate(min(12.5rem, 38vw)) rotate(calc(-1 * var(--angle)));
    min-width: 9.25rem; justify-content: flex-start;
  }
  .loop__buttons button:hover { transform: translate(-50%, -50%) rotate(var(--angle)) translate(min(12.5rem, 38vw)) rotate(calc(-1 * var(--angle))) scale(1.04); }
  .loop__buttons button:nth-child(1) { --i: 0; } .loop__buttons button:nth-child(2) { --i: 1; } .loop__buttons button:nth-child(3) { --i: 2; }
  .loop__buttons button:nth-child(4) { --i: 3; } .loop__buttons button:nth-child(5) { --i: 4; } .loop__buttons button:nth-child(6) { --i: 5; }
  .loop__wheel::after { content: "Nothing\A is wasted"; white-space: pre; position: absolute; left: 50%; top: 50%; translate: -50% -50%; text-align: center; font: 700 1.35rem/1.15 var(--display); color: var(--leaf); pointer-events: none; }
}

.field-notes {
  display: flex; gap: 1rem; margin: 4rem calc(-1 * var(--gutter)) 0; padding: 0 var(--gutter) 1rem;
  list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin;
}
.field-notes li { flex: 0 0 min(17rem, 72vw); scroll-snap-align: start; }
.field-notes figure { margin: 0; }
.field-notes img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 18px; background: var(--surface); }
.field-notes figcaption { margin-top: 0.7rem; font-size: 0.92rem; line-height: 1.5; color: var(--muted); }
.field-notes figcaption strong { color: var(--ocean); font-family: var(--display); }
.field-notes:focus-visible { outline-offset: -3px; }

/* Trust */
.trust { max-width: 76rem; margin: 0 auto; }
.trust__head { max-width: 40rem; margin-bottom: 3rem; }
.trust__head h2 { margin-bottom: 1rem; }
.trust__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 2.5rem; }
.trust__block h3 { font-size: 1.2rem; color: var(--ocean); padding-bottom: 0.75rem; margin-bottom: 1rem; border-bottom: 2px solid var(--ocean); }
.trust dl { margin: 0; }
.trust dt { font-family: var(--display); font-weight: 700; color: var(--leaf); }
.trust dd { margin: 0 0 1rem; color: var(--muted); }
.checks, .board { margin: 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 1.7rem; margin-bottom: 0.7rem; color: var(--muted); }
.checks li::before { content: ""; position: absolute; left: 0.15rem; top: 0.35em; width: 0.45rem; height: 0.8rem; border: solid var(--leaf); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.board li { display: flex; flex-direction: column; padding: 0.6rem 0; border-bottom: 1px solid var(--line); }
.board strong { font-family: var(--display); font-size: 1.1rem; color: var(--ocean); }
.board span { color: var(--muted); font-size: 0.95rem; }
.small { font-size: 0.92rem; color: var(--muted); margin-top: 1rem; }

/* Get involved */
.involved { background: var(--ocean); color: var(--on-dark); }
.involved__head { max-width: 40rem; margin: 0 auto 3rem; text-align: center; }
.involved__head img { margin: 0 auto 1.25rem; padding: 0.35rem; border-radius: 50%; background: #fbfdf9; }
.involved__head h2 { margin-bottom: 1rem; }
.involved__head p { color: var(--on-dark-muted); }
.ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: 1.25rem; max-width: 70rem; margin: 0 auto; padding: 0; list-style: none; }
.ways li { display: flex; flex-direction: column; align-items: flex-start; padding: 1.75rem; border-radius: 22px; background: var(--ocean-2); border: 1px solid rgb(238 245 241 / 0.12); }
.ways h3 { margin-bottom: 0.6rem; color: #fff; }
.ways p { color: var(--on-dark-muted); flex: 1; }
.involved .button--ghost { color: var(--on-dark); border-color: var(--on-dark); }
.involved .button--ghost:hover { background: var(--on-dark); color: var(--ocean); }
.involved .button--ghost { background: transparent; border-color: var(--on-dark); }

/* Contact form: a light card on the ocean band */
.contact { max-width: 46rem; margin: 3.5rem auto 0; padding: clamp(1.4rem, 4vw, 2.5rem); border-radius: 24px; background: var(--canvas); color: var(--ink); scroll-margin-top: calc(var(--header-h) + 1rem); }
.contact__head h2 { color: var(--ocean); margin-bottom: 0.4rem; }
.contact__head p { color: var(--muted); }
.contact fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.contact__row { display: grid; gap: 0 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-family: var(--display); font-weight: 600; margin-bottom: 0.35rem; color: var(--ocean); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 0.7rem 0.9rem;
  border: 2px solid #8fa5a9; border-radius: 12px; background: #fff; color: var(--ink);
  font: inherit; font-size: 1rem; line-height: 1.4;
}
.field textarea { resize: vertical; min-height: 9rem; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; border-color: var(--ocean); }
.field [aria-invalid="true"] { border-color: var(--accent); }
.field__hint { margin: 0.35rem 0 0; font-size: 0.88rem; color: var(--muted); }
.field__error { margin: 0.35rem 0 0; font-size: 0.9rem; font-weight: 600; color: var(--accent); }
.field__error:empty { display: none; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.human { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin: 0.5rem 0 1rem; padding: 0.85rem 1rem; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); }
.human input { width: 1.6rem; height: 1.6rem; margin: 0; accent-color: var(--leaf); cursor: pointer; }
.human label { font-family: var(--display); font-weight: 600; color: var(--ocean); cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.human__status { margin-left: auto; font-size: 0.92rem; color: var(--muted); }
.human__status[data-kind="ok"] { color: var(--leaf); font-weight: 650; }
.contact__privacy { font-size: 0.9rem; color: var(--muted); }
.contact__actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.involved .contact .button--ghost { color: var(--accent); border-color: var(--accent); background: transparent; }
.involved .contact .button--ghost:hover { color: #fff; background: var(--accent); }
.contact .button:disabled { opacity: 1; background: #c9d3d1; border-color: #c9d3d1; color: #2f4148; cursor: not-allowed; transform: none; }
.contact__status { margin: 1rem 0 0; min-height: 1.5em; color: var(--muted); }
.contact__status[data-kind="error"] { color: var(--accent); font-weight: 600; }
.contact__status[data-kind="success"] { color: var(--leaf); font-weight: 650; }

/* Footer */
.site-footer { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); padding: 3rem max(var(--gutter), (100% - 76rem) / 2) max(2rem, env(safe-area-inset-bottom)); background: #0e2832; color: var(--on-dark-muted); font-size: 0.95rem; }
.site-footer p { margin: 0 0 0.35rem; }
.site-footer__name { font-family: var(--display); font-weight: 750; font-size: 1.2rem; color: var(--on-dark); }
.site-footer__legal { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid rgb(238 245 241 / 0.12); font-size: 0.88rem; }

/* Scroll reveal: only when JavaScript is running and motion is welcome. */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .hero__media img { transform: none; }
  .hero__cue span { transform: none; }
}

@media (forced-colors: active) {
  .button, .loop__buttons button { border: 2px solid ButtonText; }
  .loop__buttons button[aria-pressed="true"] { outline: 3px solid Highlight; }
  .map-arc { stroke: CanvasText; }
}

@media print {
  .masthead, .hero__cue, .journey__rail { display: none; }
  .hero, .quote, .involved { color: #000; background: none; }
}
