/* Ayahuasca Restoration Foundation, styles v12 (round 10 plus the 2026-10-29 craft pass).
   One system: three grounds (forest, bone, clay), one 12-column grid with full-bleed lines,
   one type scale, one reveal pattern. Every section paints its own ground and colours never
   transition; hover fills are overlays. */

/* Fonts: self-hosted, SIL Open Font License (fonts/OFL-*.txt) */
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-var-normal-v1.woff2") format("woff2-variations"), url("fonts/newsreader-var-normal-v1.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("fonts/newsreader-var-italic-v1.woff2") format("woff2-variations"), url("fonts/newsreader-var-italic-v1.woff2") format("woff2"); font-weight: 200 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  /* Forest is the default ground */
  --g: #0f291d; --ink: #efeadf; --muted: #b3bdb5; --rule: #2f4a3e;
  --accent: #c98a52; --accent-text: #d9a273; --btn-hover: #c98a52;

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", "Helvetica Neue", sans-serif;

  --m: clamp(1.25rem, 0.5rem + 3vw, 4rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --page: 96rem;
  --top-h: 4rem;
  --sp-sec: clamp(5rem, 2.5rem + 7vw, 9rem);
  --sp-head: clamp(2.5rem, 1.25rem + 3.5vw, 5.5rem);

  --fs-statement: clamp(2.5rem, 1rem + 4vw, 5.5rem);
  --fs-h2: clamp(2.375rem, 1.2rem + 3vw, 4.75rem);
  --fs-h3: clamp(1.375rem, 1.1rem + 0.7vw, 1.875rem);
  --fs-quote: clamp(2rem, 1rem + 2.6vw, 3.75rem);
  --fs-principle: clamp(1.375rem, 1.1rem + 0.75vw, 1.875rem);
  --fs-lead: clamp(1.25rem, 1.05rem + 0.55vw, 1.625rem);
  --fs-body: clamp(1.0625rem, 0.98rem + 0.25vw, 1.25rem);
  --fs-small: clamp(0.875rem, 0.84rem + 0.1vw, 0.9375rem);

  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}
@media (min-width: 64rem) { :root { --top-h: 4.5rem; } }

/* Grounds: every section paints its own. On the home page the sticky header takes the ground
   of the section under its lower edge (header-v2.js), so it reads as part of that section. */
[data-ground="forest"] {
  --g: #0f291d; --ink: #efeadf; --muted: #b3bdb5; --rule: #2f4a3e;
  --accent: #c98a52; --accent-text: #d9a273; --btn-hover: #c98a52;
}
[data-ground="bone"] {
  --g: #f5f1e8; --ink: #22302a; --muted: #59625b; --rule: #d9d4c7;
  --accent: #b4703a; --accent-text: #8a5226; --btn-hover: #8a5226;
}
[data-ground="clay"] {
  --g: #7a4220; --ink: #f5ece2; --muted: #e6cdb8; --rule: #996c50;
  --accent: #f0c49b; --accent-text: #f3cfab; --btn-hover: #f0c49b;
}
[data-ground] { background: var(--g); color: var(--ink); }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  background: var(--g); color: var(--ink);
  scroll-padding-top: var(--top-h);
}
/* Native smooth scrolling only where the motion script is not in charge: on a load like /#read the
   browser's own smooth scroll would finish after the script's exact landing and leave it a few px off */
@media (prefers-reduced-motion: no-preference) { html:not(.motion) { scroll-behavior: smooth; } }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }
body {
  margin: 0;
  font-family: var(--serif);
  font-size: var(--fs-body);
  line-height: 1.55;
  font-optical-sizing: auto;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
figure, h1, h2, h3, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--g); }

h1, h2, h3 { font-weight: 300; line-height: 1.05; letter-spacing: -0.022em; text-wrap: balance; }
h2 { font-size: var(--fs-h2); font-weight: 260; letter-spacing: -0.028em; }
h3 { font-size: var(--fs-h3); font-weight: 540; line-height: 1.18; letter-spacing: -0.006em; }
p, li { text-wrap: pretty; }
.lead { font-size: var(--fs-lead); line-height: 1.42; letter-spacing: -0.006em; }
figcaption, .small {
  font-family: var(--sans); font-size: var(--fs-small); line-height: 1.45; color: var(--muted);
}
figcaption { margin-top: .875rem; }
.vh { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
/* Keeps a legal identifier such as an EIN on one line */
.nw { white-space: nowrap; }

/* Links: text links carry a line that wipes away on hover; navigation links draw one in */
p a:not(.btn), .u, .legal-page li a {
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat;
  padding-bottom: .08em;
  transition: background-size .5s var(--ease);
}
/* Hover effects only where a pointer can hover; on a phone a tapped link or button would keep its hover look */
@media (hover: hover) { p a:not(.btn):hover, .u:hover, .legal-page li a:hover { background-size: 0 1px; background-position: 100% 100%; } }
.nl {
  background: linear-gradient(currentColor, currentColor) 0 calc(100% - .8rem) / 0 1px no-repeat;
  transition: background-size .5s var(--ease);
}
.nl[aria-current="page"] { background-size: 100% 1px; }
@media (hover: hover) { .nl:hover { background-size: 100% 1px; } }
.linkish { -webkit-appearance: none; appearance: none; padding: 0; border: 0; background-color: transparent; cursor: pointer; font: inherit; color: inherit; text-align: left; }

/* Grid: twelve columns inside the page, named lines out to both edges */
.grid {
  display: grid;
  column-gap: var(--gap);
  grid-template-columns:
    [full-start] minmax(calc(var(--m) - var(--gap)), 1fr)
    [content-start] repeat(12, [col] minmax(0, calc((var(--page) - 11 * var(--gap)) / 12)))
    [content-end] minmax(calc(var(--m) - var(--gap)), 1fr) [full-end];
}
.grid > * { grid-column: content; }
.wrap { width: min(100% - 2 * var(--m), var(--page)); margin-inline: auto; }
.cols12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap); }
.section { padding-block: var(--sp-sec); }

/* Buttons: ink on ground, a fill rises on hover */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.25rem; padding: .8rem 1.5rem;
  border-radius: 2px;
  background: var(--ink); color: var(--g);
  font-family: var(--sans); font-size: 1rem; font-weight: 600; line-height: 1.2; letter-spacing: .005em;
  cursor: pointer;
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--btn-hover);
  transform: scaleY(0); transform-origin: 50% 100%;
  transition: transform .55s var(--ease);
}
@media (hover: hover) { .btn:hover::before { transform: scaleY(1); } .btn:hover .arrow { transform: translateX(.25rem); } }
.btn:active::before { transform: scaleY(1); transition-duration: .15s; }
.arrow { width: 1.25rem; height: .75rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .5s var(--ease); }
.btn-sm { min-height: 2.75rem; padding: .55rem 1.1rem; font-size: .9375rem; }
.btn-lg { min-height: 4.25rem; padding: 1rem 1.6rem; font-size: 1.125rem; width: 100%; }
/* Second choice of a pair: the same button with an outline instead of a fill */
.btn-2nd { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
@media (hover: hover) { .btn-2nd:hover { color: var(--g); } }
.btn-2nd:active { color: var(--g); }
.arrow-ne { width: .875rem; height: .875rem; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; transition: transform .5s var(--ease); }

/* Skip link: shown just under the header bar so it never covers the brand */
.skip {
  position: absolute; left: var(--m); top: calc(var(--top-h) + .75rem); z-index: 100;
  padding: .75rem 1rem; border-radius: 2px;
  background: var(--ink); color: var(--g);
  font-family: var(--sans); font-size: .9375rem; font-weight: 600;
  transform: translateY(calc(-100% - var(--top-h) - 2rem));
}
.skip:focus { transform: none; }

/* Header */
.top { position: sticky; top: 0; z-index: 50; background: var(--g); color: var(--ink); }
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule); opacity: 0; transition: opacity .4s; }
.top.is-scrolled::after { opacity: 1; }
.top-in { display: flex; align-items: center; gap: clamp(1rem, 2.4vw, 2.5rem); height: var(--top-h); }
.lockup { display: inline-flex; align-items: center; gap: .75rem; margin-right: auto; min-height: 2.75rem; }
.mark { width: 2rem; height: 2rem; flex: none; }
.mark circle { fill: none; stroke: var(--accent); stroke-width: 1.25; }
.mark .mark-out { stroke-dasharray: .75 2.25; stroke-linecap: round; }
.mark .mark-dot { fill: var(--ink); stroke: none; }
.lockup-name { font-family: var(--serif); font-size: 1.0625rem; line-height: 1.1; letter-spacing: -0.005em; }
.nav { display: flex; gap: clamp(1.25rem, 2.2vw, 2.25rem); font-family: var(--sans); font-size: .9375rem; }
/* Side padding gives the focus ring room around the word; the negative margin keeps the spacing,
   and the underline is placed on the content box so it stays the width of the word,
   1px below it so the p of Principles keeps clear of the line */
.nav a { padding: .8125rem .5rem; margin-inline: -.5rem; line-height: 1.2; background-origin: content-box; background-position: 0 calc(100% + 1px); }
.menu-toggle { display: none; }
@media (max-width: 63.99rem) {
  .nav { display: none; }
  .lockup-name { font-size: .9375rem; }
  .lockup-name span { display: block; }
  .mark { width: 1.75rem; height: 1.75rem; }
  .js .menu-toggle {
    display: inline-grid; place-content: center; gap: 6px;
    width: 2.75rem; height: 2.75rem; margin-right: -.625rem; padding: 0;
    background: none; border: 0; cursor: pointer;
  }
  .menu-toggle span { display: block; width: 1.375rem; height: 1.5px; background: currentColor; transition: transform .5s var(--ease); }
  .menu-open .menu-toggle span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
}

/* Small phones: a slightly smaller name and closer gaps keep the name on two lines */
@media (max-width: 24rem) {
  .top-in { gap: .75rem; }
  .lockup { gap: .625rem; }
  .lockup-name { font-size: .875rem; }
}

/* Mobile menu: a forest sheet under the header */
.menu, .menu-open .top {
  --g: #0f291d; --ink: #efeadf; --muted: #b3bdb5; --rule: #2f4a3e;
  --accent: #c98a52; --accent-text: #d9a273; --btn-hover: #c98a52;
}
.menu {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between; gap: 2.5rem;
  padding: calc(var(--top-h) + clamp(1.5rem, 6vh, 3.5rem)) var(--m) max(2rem, env(safe-area-inset-bottom));
  background: var(--g); color: var(--ink);
  overflow-y: auto; overscroll-behavior: contain;
}
.menu-links a {
  display: block; padding-block: .3rem;
  font-family: var(--serif); font-size: clamp(2.25rem, 9vw, 3.5rem); font-weight: 300; line-height: 1.1; letter-spacing: -0.022em;
}
.menu-foot { font-family: var(--sans); font-size: var(--fs-small); color: var(--muted); line-height: 1.5; }
.menu-foot a { color: var(--ink); }
html.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) { animation: menu-in .45s var(--ease-out) both; }
  .menu:not([hidden]) .menu-links li { animation: rise .7s var(--ease-out) both; }
  .menu-links li:nth-child(2) { animation-delay: .05s !important; }
  .menu-links li:nth-child(3) { animation-delay: .1s !important; }
  .menu-links li:nth-child(4) { animation-delay: .15s !important; }
  .menu-links li:nth-child(5) { animation-delay: .2s !important; }
  .menu-links li:nth-child(6) { animation-delay: .25s !important; }
}
@keyframes menu-in { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(1.25rem); } }

/* Hero */
.hero { --hero-h: max(38rem, calc(100svh - var(--top-h))); }
.hero-text {
  container-type: inline-size;
  display: flex; flex-direction: column; justify-content: space-between; gap: clamp(2.5rem, 6vh, 4.5rem);
  padding-block: clamp(1.75rem, 5vh, 4.5rem) clamp(2.5rem, 6vh, 5rem);
}
.hero h1 {
  font-size: clamp(2.6rem, 9vw, 6rem);
  font-size: min(calc(100cqi / 7.7), 7rem);
  line-height: 1.02; letter-spacing: -0.028em; text-wrap: initial;
}
.hero h1 em { font-weight: 300; }
.hero-foot { display: grid; gap: clamp(1.5rem, 3.2vh, 2.25rem); }
.hero .lead { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.hero-read { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .25rem .6rem; font-family: var(--sans); font-size: 1rem; }
.hero-read .u { font-weight: 600; }
.meta { font-family: var(--sans); font-size: var(--fs-small); color: var(--muted); }
.proof { max-width: 34rem; font-family: var(--sans); font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
.hero-photo { position: relative; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; }
@media (min-width: 64rem) {
  .hero-text { grid-column: col 1 / col 7; grid-row: 1; min-height: var(--hero-h); }
  .hero-photo { grid-column: col 7 / full-end; grid-row: 1; height: var(--hero-h); }
}
@media (max-width: 63.99rem) {
  .hero-photo { grid-column: full; aspect-ratio: 4 / 5; max-height: 88svh; }
}
/* Phone: headline, then the portrait on the first screen, then the text and the button */
@media (max-width: 40rem) {
  .hero-text { display: contents; }
  .hero h1 { grid-column: content; grid-row: 1; padding-block: 1.5rem 1.5rem; font-size: calc((100vw - 2 * var(--m)) / 7.7); }
  .hero-photo { grid-row: 2; aspect-ratio: auto; max-height: none; height: min(125vw, calc(100svh - 15.5rem)); }
  .hero-foot { grid-column: content; grid-row: 3; padding-block: 2rem 3rem; }
}

/* Why (bone) */
.statement { grid-column: col 1 / col 12; margin-bottom: var(--sp-head); font-size: var(--fs-statement); line-height: 1.02; letter-spacing: -0.03em; }
.why-a { grid-column: col 1 / col 6; }
.why-b { grid-column: col 7 / col 12; }
.why .elder { grid-column: full; margin-top: var(--sp-sec); }
.elder .frame { grid-column: col 4 / full-end; grid-row: 1; }
.elder figcaption { grid-column: col 1 / col 4; grid-row: 1; align-self: end; margin: 0; max-width: 20rem; }
@media (max-width: 63.99rem) {
  .statement, .why-a, .why-b { grid-column: content; }
  .why-a, .why-b { max-width: 38rem; }
  .why-b { margin-top: 1em; }
  .elder .frame { grid-column: full; }
  .elder figcaption { grid-column: content; grid-row: 2; margin-top: .875rem; max-width: 38rem; }
}

/* One reveal for photos: the frame opens upward, the picture settles */
.frame { overflow: hidden; }
.frame img { width: 100%; }

/* Quote (bone) */
.quote { padding-block: var(--sp-sec); align-items: center; }
.quote-photo { grid-column: full-start / col 6; display: grid; grid-template-columns: subgrid; }
.quote-photo > * { grid-column: 1 / -1; }
.quote-photo figcaption { grid-column: col 1 / -1; }
.quote-text { grid-column: col 7 / content-end; }
.quote blockquote p { font-size: var(--fs-quote); font-style: italic; font-weight: 300; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
.quote .after { margin-top: clamp(1.5rem, 3vw, 2.5rem); max-width: 30rem; }
@media (max-width: 63.99rem) {
  .quote-photo { grid-column: full; }
  .quote-photo figcaption { grid-column: content; }
  .quote-text { grid-column: content; margin-top: var(--sp-head); }
}

/* Founder (bone) */
.founder h2 { grid-column: col 1 / col 9; margin-bottom: var(--sp-head); }
.timeline { grid-column: col 1 / col 5; align-self: start; position: relative; padding-left: 1.75rem; }
.founder-prose { grid-column: col 7 / col 12; }
.founder-prose p + p { margin-top: 1em; }
.timeline::before, .timeline::after { content: ""; position: absolute; left: 0; top: .7rem; bottom: .7rem; width: 1px; }
.timeline::before { background: var(--rule); }
.timeline::after { background: var(--accent); transform-origin: 50% 0; transform: scaleY(var(--draw, 1)); }
.timeline li { position: relative; }
.timeline li + li { margin-top: 1.75rem; }
.timeline li::before {
  content: ""; position: absolute; left: -1.75rem; top: .45rem; z-index: 1;
  width: 9px; height: 9px; margin-left: -4px; border-radius: 50%;
  background: var(--g); border: 1px solid var(--accent);
}
/* The line stops at the last dot: below it a strip in the ground colour covers it, the same trick as the dots */
.timeline li:last-child::after {
  content: ""; position: absolute; left: -1.75rem; top: calc(.45rem + 9px); bottom: 0; z-index: 1;
  width: 3px; margin-left: -1px; background: var(--g);
}
.yr { display: block; font-size: var(--fs-h3); line-height: 1; letter-spacing: -0.01em; color: var(--accent-text); font-variant-numeric: lining-nums; }
.timeline p { margin-top: .5rem; max-width: 24rem; font-family: var(--sans); font-size: var(--fs-small); line-height: 1.45; color: var(--muted); }
@media (min-width: 64rem) { .timeline { position: sticky; top: calc(var(--top-h) + 2.5rem); } }
@media (max-width: 63.99rem) {
  .founder h2, .founder-prose { grid-column: content; }
  .timeline { grid-column: content; margin-bottom: var(--sp-head); }
  .founder-prose { max-width: 38rem; }
}

/* Full-bleed photo bands (festival, river) */
.band { padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.band .frame img { width: 100%; }
.band figcaption { width: min(100% - 2 * var(--m), var(--page)); margin-inline: auto; }
@media (max-width: 40rem) {
  .band .frame { aspect-ratio: 16 / 9; }
  .band .frame img { height: 100%; object-fit: cover; }
}

/* The work (bone): four pillars along the twin vine */
.work h2 { grid-column: col 1 / col 9; margin-bottom: var(--sp-head); }
.vine-wrap { position: relative; }
.vine { position: absolute; top: 0; left: 50%; width: clamp(80px, 9vw, 128px); height: 100%; margin-left: calc(clamp(80px, 9vw, 128px) / -2); pointer-events: none; clip-path: inset(0 0 calc(var(--vine, 0) * 100%) 0); }
.strand { fill: none; stroke: var(--accent); stroke-width: 3; vector-effect: non-scaling-stroke; stroke-linecap: round; }
.strand-b { opacity: .7; stroke-width: 2; }
.pillars { row-gap: clamp(3rem, 7vw, 7rem); }
.pillar { grid-column: 1 / 6; }
.pillar:nth-child(even) { grid-column: 8 / 13; margin-top: clamp(4rem, 10vw, 9rem); }
.pillar h3 { margin-bottom: .875rem; }
.leaf {
  position: absolute; left: 50%;
  width: 1.75rem; height: 1.75rem; margin-top: .4rem;
  background: var(--accent);
  border-radius: 0 100% 0 100%; transform-origin: 0 100%;
}
.pillar:nth-child(odd) .leaf { margin-left: -1.75rem; border-radius: 100% 0 100% 0; transform-origin: 100% 100%; }
.system { grid-column: col 4 / col 10; margin-top: var(--sp-head); text-align: center; }
@media (max-width: 63.99rem) {
  .work h2, .system { grid-column: content; }
  .system { text-align: left; max-width: 38rem; }
  .vine { left: 1.25rem; width: 52px; margin-left: -26px; }
  .pillars { grid-template-columns: minmax(0, 1fr); padding-left: 4.25rem; }
  .pillar, .pillar:nth-child(even) { grid-column: 1; margin-top: 0; max-width: 38rem; }
  .leaf, .pillar:nth-child(odd) .leaf { left: 1.25rem; margin-left: 0; width: 1.5rem; height: 1.5rem; border-radius: 0 100% 0 100%; transform-origin: 0 100%; }
}

/* Rings (forest): the diagram holds on the left while the three steps pass on the right */
.rings { align-items: start; }
.rings h2 { grid-column: col 7 / content-end; grid-row: 1; margin-bottom: var(--sp-head); }
.rings-figure { grid-column: col 1 / col 6; grid-row: 1 / span 2; }
.rings-figure svg { width: min(100%, calc(100svh - var(--top-h) - 9rem)); height: auto; overflow: visible; }
.ring-steps { grid-column: col 7 / content-end; grid-row: 2; }
.ring-steps li + li { margin-top: clamp(2rem, 4vw, 3.5rem); }
.ring-steps h3 { margin-bottom: .625rem; }
.ring-steps p { max-width: 36rem; }
.ring { fill: none; stroke: var(--accent); stroke-width: 1.25; }
.ring-3 { stroke-dasharray: 1.5 7; stroke-linecap: round; }
.ring-label { font-family: var(--sans); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; fill: var(--muted); }
.centre { fill: var(--accent); }
.centre-name { font-family: var(--serif); font-size: 25px; font-style: italic; fill: var(--ink); }
.village { fill: var(--ink); }
.village-name { font-family: var(--sans); font-size: 17px; fill: var(--muted); }
@media (min-width: 64rem) { .rings-figure { position: sticky; top: calc(var(--top-h) + 2.5rem); } }
@media (max-width: 63.99rem) {
  .rings h2, .rings-figure, .ring-steps { grid-column: content; grid-row: auto; }
  .rings-figure { max-width: 34rem; margin-bottom: var(--sp-head); }
  .rings-figure svg { width: 100%; }
}
@media (max-width: 40rem) {
  .ring-label { font-size: 18px; letter-spacing: .14em; }
  .village-name { font-size: 21px; }
  .centre-name { font-size: 30px; }
}

/* Planting scene (forest): the photo grows to the full screen while the page holds */
.grow-frame { position: relative; overflow: hidden; }
.grow-frame img { width: 100%; }
.grow figcaption { width: min(100% - 2 * var(--m), var(--page)); margin-inline: auto; padding-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.motion .grow-stage { position: relative; height: calc(100svh - var(--top-h)); }
.motion .grow-frame { height: 100%; }
.motion .grow-frame img { height: 100%; object-fit: cover; object-position: 50% 45%; }
/* On a phone the crop keeps about a quarter of the photo's width: centre it on her head and hands */
@media (max-width: 40rem) { .motion .grow-frame img { object-position: 46% 45%; } }
/* The caption is a paper label on the photo, in fixed colours */
.motion .grow figcaption {
  position: absolute; left: max(var(--m), calc((100% - var(--page)) / 2)); bottom: var(--m);
  width: auto; margin: 0; padding: .35rem .65rem;
  background: #f5f1e8; color: #22302a; border-radius: 2px;
}
/* In a portrait crop her right hand reaches the lower left corner and her hair the upper left;
   halfway down, the left side is plain foliage, so the label sits there */
@media (max-aspect-ratio: 1/1) { .motion .grow figcaption { top: calc(50% - 1rem); bottom: auto; } }

/* Principles (bone) */
.principles h2 { grid-column: col 1 / col 9; margin-bottom: var(--sp-head); }
.principle-list { row-gap: clamp(2.5rem, 5vw, 4.5rem); }
.principle-list li { grid-column: 1 / 6; text-wrap: pretty; font-size: var(--fs-principle); font-weight: 350; line-height: 1.3; letter-spacing: -0.01em; }
.principle-list li:nth-child(even) { grid-column: 7 / 12; }
.principle-list li::before { content: ""; display: block; width: .875rem; height: .875rem; margin-bottom: 1.25rem; background: var(--accent); border-radius: 0 100% 0 100%; }
/* A step below the section heading, clearly above the principles it follows */
.carried-title { grid-column: col 1 / col 6; margin-top: var(--sp-sec); font-size: calc(var(--fs-h2) * .75); font-weight: 260; letter-spacing: -0.024em; line-height: 1.05; }
.carried-text { grid-column: col 7 / col 12; margin-top: var(--sp-sec); }
@media (max-width: 63.99rem) {
  .principles h2, .carried-title, .carried-text { grid-column: content; }
  .principle-list { grid-template-columns: minmax(0, 1fr); }
  .principle-list li, .principle-list li:nth-child(even) { grid-column: 1; max-width: 36rem; }
  .carried-text { margin-top: 1.25rem; max-width: 38rem; }
}

/* Documents (bone) */
.read { padding-top: 0; }
.rule { grid-column: content; height: 1px; margin: 0 0 var(--sp-sec); border: 0; background: var(--rule); }
.read h2 { grid-column: col 1 / col 6; }
.docs { grid-column: col 7 / content-end; }
.docs li { border-top: 1px solid var(--rule); }
.docs li:last-child { border-bottom: 1px solid var(--rule); }
.docs a { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 2rem; padding-block: clamp(1.5rem, 2.5vw, 2.25rem); }
.docs a > span { grid-column: 1; }
.doc-t { font-size: var(--fs-h3); line-height: 1.15; letter-spacing: -0.012em; }
.doc-t span { background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: background-size .5s var(--ease); }
@media (hover: hover) { .docs a:hover .doc-t span { background-size: 100% 1px; } }
.doc-d { margin-top: .6rem; max-width: 34rem; }
.doc-m { margin-top: .6rem; font-family: var(--sans); font-size: var(--fs-small); color: var(--muted); }
.docs .arrow-ne { grid-column: 2; grid-row: 1; margin-top: .55rem; width: 1rem; height: 1rem; }
@media (hover: hover) { .docs a:hover .arrow-ne { transform: translate(.2rem, -.2rem); } }
@media (max-width: 63.99rem) {
  .read h2, .docs { grid-column: content; }
  .read h2 { margin-bottom: var(--sp-head); }
}

/* Support (clay) */
.support { align-items: center; padding-bottom: 1.5rem; }
.support-text { grid-column: col 1 / col 7; }
.support h2 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); }
.support .lead { max-width: 36rem; }
.give { display: grid; gap: .75rem; max-width: 36rem; margin-top: clamp(2rem, 4vw, 3rem); }
.give-note { max-width: 36rem; margin-top: .75rem; font-family: var(--sans); font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
@media (min-width: 30rem) { .give { grid-template-columns: 1fr 1fr; } }
.fine, .other { max-width: 33rem; font-family: var(--sans); font-size: clamp(0.9375rem, 0.9rem + 0.1vw, 1rem); line-height: 1.6; color: var(--muted); }
.fine { margin-top: 2.25rem; }
.other { margin-top: 1.125rem; }
.fine a, .other a { color: var(--ink); }
.support-photo { grid-column: col 8 / content-end; }
@media (max-width: 63.99rem) {
  .support-text { grid-column: content; }
  .support-photo { grid-column: content; max-width: 30rem; margin-top: var(--sp-head); }
}

/* Footer (forest) */
.foot { padding-bottom: max(2.5rem, env(safe-area-inset-bottom)); }
.foot-band { padding-bottom: 0; }
.foot-grid { padding-top: clamp(3.5rem, 6vw, 6rem); row-gap: 2.5rem; }
.foot-main { grid-column: col 1 / col 7; }
.foot-tag { margin-bottom: 1.25rem; font-size: var(--fs-h3); font-weight: 300; line-height: 1.15; letter-spacing: -0.012em; }
.foot-main p:not(.foot-tag) { max-width: 30rem; font-family: var(--sans); font-size: var(--fs-small); line-height: 1.5; color: var(--muted); }
.foot-main p + p:not(.foot-tag) { margin-top: .75rem; }
.foot-main a { color: var(--ink); }
.foot-nav { grid-column: col 7 / col 10; }
.foot-legal { grid-column: col 10 / content-end; }
.foot-nav a, .foot-legal a, .foot-legal button {
  display: inline-flex; align-items: center; min-height: 2.75rem;
  font-family: var(--sans); font-size: .9375rem; line-height: 1.2;
}
@media (max-width: 63.99rem) {
  .foot-main { grid-column: content; }
  .foot-nav { grid-column: col 1 / col 7; }
  .foot-legal { grid-column: col 7 / content-end; }
}

/* Analytics choice: a slim paper bar along the foot of the screen */
.consent {
  --g: #f5f1e8; --ink: #22302a; --muted: #59625b; --rule: #d9d4c7; --accent: #b4703a; --accent-text: #8a5226; --btn-hover: #8a5226;
  position: fixed; z-index: 60; left: 0; right: 0; bottom: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.5rem;
  padding: .75rem var(--m) max(.75rem, env(safe-area-inset-bottom));
  background: var(--g); color: var(--ink);
  border-top: 1px solid var(--rule);
  font-family: var(--sans); font-size: .875rem; line-height: 1.45;
}
/* Reopened from "Cookie settings", the bar itself takes focus; its top line already marks it */
.consent:focus-visible { outline: none !important; }
.consent p { flex: 1 1 28rem; max-width: 52rem; }
.consent p a { text-decoration: underline; text-underline-offset: .15em; }
.consent-actions { display: flex; gap: .5rem; flex: none; }
.consent button {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 2.5rem; padding: .35rem 1.1rem;
  border: 1px solid var(--ink); border-radius: 2px; background: transparent;
  font-family: var(--sans); font-size: .875rem; font-weight: 600; cursor: pointer;
}
.consent button::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #e4dccb;
  transform: scaleY(0); transform-origin: 50% 100%; transition: transform .45s var(--ease);
}
@media (hover: hover) { .consent button:hover::before { transform: scaleY(1); } }
.consent button:active::before { transform: scaleY(1); transition-duration: .15s; }
@media (max-width: 40rem) {
  .consent { font-size: .8125rem; line-height: 1.4; gap: .4rem 1rem; padding-block: .6rem max(.6rem, env(safe-area-inset-bottom)); }
  .consent p { flex-basis: 100%; }
  .consent-actions { width: 100%; }
  .consent button { flex: 1; min-height: 2.5rem; font-size: .8125rem; }
}

/* Small pages: legal, thank-you, not found */
.page-main { padding-block: clamp(3rem, 8vw, 7rem) var(--sp-sec); }
.legal-page > * { max-width: 44rem; }
.legal-page h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); margin-bottom: 1rem; }
.legal-page h2 { margin: 2.75rem 0 .75rem; font-size: clamp(1.4rem, 2.2vw, 1.75rem); font-weight: 400; letter-spacing: -0.01em; }
.legal-page p, .legal-page li { font-size: 1.0625rem; line-height: 1.6; }
.legal-page p + p { margin-top: .75em; }
.legal-page ul { padding-left: 1.2rem; list-style: disc; }
.legal-page li + li { margin-top: .4em; }
.legal-page .stand { font-family: var(--sans); font-size: var(--fs-small); color: var(--muted); }
.missing { padding: 0 .25rem; border-radius: 2px; background: #f3e2c9; color: #22302a; }

.closing-page { min-height: 100svh; display: grid; grid-template-rows: auto 1fr auto; }
.end-main { padding-block: clamp(3rem, 9vw, 8rem) var(--sp-sec); align-content: start; }
.end-main h1 { margin-bottom: clamp(1.5rem, 3vw, 2.5rem); font-size: clamp(3.25rem, 1.5rem + 6vw, 7.5rem); line-height: 1; letter-spacing: -0.03em; }
.end-text p { max-width: 32rem; }
.end-text p + p { margin-top: 1em; }
.end-text .home { display: inline-flex; align-items: center; gap: .75rem; margin-top: 2rem; }
/* Desktop: the headline runs across, then text and photo share the first screen; the photo runs off the right edge
   and its caption sits under it, flush with the photo */
.end-text { grid-column: col 1 / col 6; grid-row: 2; }
.end-photo { grid-column: col 7 / full-end; grid-row: 2; align-self: start; margin: 0; }
.end-foot {
  display: flex; flex-wrap: wrap; align-items: center; column-gap: 2rem;
  padding-block: 1.5rem max(1.5rem, env(safe-area-inset-bottom));
  font-family: var(--sans); font-size: var(--fs-small); line-height: 1.45; color: var(--muted);
}
.end-foot p { flex: 1 1 24rem; padding-block: .625rem; }
.end-foot ul { display: flex; flex-wrap: wrap; column-gap: 1.5rem; }
.end-foot a, .end-foot button { display: inline-flex; align-items: center; min-height: 2.75rem; line-height: 1.2; color: var(--ink); }
@media (max-width: 63.99rem) {
  .end-text { grid-column: content; grid-row: auto; }
  .end-photo { grid-column: full; grid-row: auto; margin-top: var(--sp-head); display: grid; grid-template-columns: subgrid; }
  .end-photo .frame { grid-column: full; }
  .end-photo figcaption { grid-column: content; }
}

/* Motion states. Text stays visible unless the script is running. */
/* Hero: readable from the first paint. The text only rises a few pixels (no opacity, no mask, nothing clipped);
   plain CSS so it starts with the page and does not wait for a script. Not under reduced motion (no .motion class). */
.motion .hero h1, .motion .hero-foot > * { animation: hero-rise .9s var(--ease-out) both; }
.motion .hero-foot > :nth-child(2) { animation-delay: .08s; }
.motion .hero-foot > :nth-child(3) { animation-delay: .16s; }
.motion .hero-photo img { transform: scale(1.1); }
@keyframes hero-rise { from { transform: translateY(.875rem); } }
/* SplitText gives each heading line a mask with an inline overflow: clip. The clipping moves to a
   clip-path that reaches past the line box, so ascenders, descenders and italics stay whole without
   padding or margins (collapsing margins made split headings taller by .04em per line). */
.split-line-mask { overflow: visible !important; clip-path: inset(-.08em -.1em -.16em); }

/* Focus last so no component rule can cancel it */
:focus-visible { outline: 2px solid var(--ink) !important; outline-offset: 3px !important; }
/* Links inside small print sit closer, so the ring clears the lines above and below */
.consent p a:focus-visible, .fine a:focus-visible, .other a:focus-visible { outline-offset: 1px !important; }
[tabindex="-1"]:focus { outline: none !important; }


/* EVIDENCE-AND-HISTORY: homepage evidence band, the two history pages, the footer legal line */
.figures { grid-column: content; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); border-top: 1px solid var(--rule); }
.figures li { padding-block: 1.5rem 1.75rem; }
.fig-n { display: block; font-size: clamp(3rem, 1.4rem + 4.6vw, 6.25rem); font-weight: 260; line-height: 1; letter-spacing: -0.03em; font-variant-numeric: lining-nums; }
.fig-l { display: block; margin-top: .875rem; max-width: 14rem; font-family: var(--sans); font-size: var(--fs-small); line-height: 1.4; color: var(--muted); }
.evidence h2 { grid-column: col 1 / col 9; margin-bottom: var(--sp-head); }
.evidence-note { grid-column: col 1 / col 9; margin-top: var(--sp-head); max-width: 44rem; }
.evidence-more { grid-column: col 1 / col 9; margin-top: 1.75rem; }
.more { display: inline-flex; align-items: center; gap: .75rem; font-family: var(--sans); font-weight: 600; }
@media (hover: hover) { .more:hover .arrow { transform: translateX(.25rem); } }
@media (max-width: 48rem) {
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .figures li:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .evidence h2, .evidence-note, .evidence-more { grid-column: content; }
}
.sub-head { padding-block: clamp(3.5rem, 2rem + 6vw, 8rem) clamp(2.5rem, 1.5rem + 4vw, 5.5rem); }
.sub-head h1 { grid-column: col 1 / col 11; font-size: var(--fs-statement); font-weight: 260; line-height: 1.02; letter-spacing: -0.03em; }
.sub-lead { grid-column: col 1 / col 9; margin-top: clamp(1.5rem, 3vw, 2.75rem); max-width: 46rem; }
.sub-head .figures { margin-top: var(--sp-head); }
@media (max-width: 48rem) { .sub-head h1, .sub-lead { grid-column: content; } }
.hist-sec { padding-bottom: var(--sp-sec); }
.hist { grid-column: content; border-top: 1px solid var(--rule); }
.hist-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: var(--gap); padding-block: clamp(1.75rem, 3vw, 2.75rem); border-bottom: 1px solid var(--rule); }
.hist-row h2 { font-size: var(--fs-h3); font-weight: 400; line-height: 1.18; letter-spacing: -0.008em; color: var(--accent-text); max-width: 18rem; }
.hist-text { max-width: 44rem; }
.hist-text p { font-size: var(--fs-body); line-height: 1.55; }
.hist-text p + p { margin-top: 1em; }
.hist-text .hist-intro { font-size: var(--fs-lead); line-height: 1.35; margin-bottom: 1.25em; }
.points { list-style: none; padding: 0; }
.points li { padding-block: 1.1rem; border-top: 1px solid var(--rule); font-size: var(--fs-body); line-height: 1.55; }
.points li:last-child { border-bottom: 1px solid var(--rule); }
.hist-fig { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.hist-fig img { width: 100%; height: auto; }
.hist-fig .frame { max-width: 100%; }
@media (max-width: 48rem) { .hist-row { grid-template-columns: minmax(0, 1fr); row-gap: .875rem; } .hist-row h2 { max-width: none; } }
.carried-sec { padding-block: var(--sp-sec); }
.carried-sec .carried-title, .carried-sec .carried-text { margin-top: 0; }
.carried-sec .carried-text p { font-size: var(--fs-lead); line-height: 1.45; }
@media (max-width: 48rem) { .carried-sec .carried-title, .carried-sec .carried-text { grid-column: content; } .carried-sec .carried-text { margin-top: 1.5rem; } }
.foot-main p.foot-corp { max-width: 30rem; }
.end-foot p.corp { flex: 1 1 100%; order: 3; padding-block: 0 .75rem; }
.end-foot ul { order: 2; }
.top .nl[aria-current="page"], .foot-nav .nl[aria-current="page"] { background-size: 100% 1px; }
.hist-more { padding-bottom: var(--sp-sec); }
.hist-more .evidence-more { grid-column: content; margin-top: 0; }
.hist-fig:has(img[width="1400"][height="1867"]) { max-width: 30rem; }
