/* ============================================================================
   ZION RESTORATION — SITE STYLES
   ----------------------------------------------------------------------------
   Identity notes, so nobody wonders later why it looks the way it does:

   · Colour   — forest ink and bone paper, with clay and ochre for warmth.
                Deliberately nothing like a navy-and-yellow school site.
   · Type     — Newsreader for display (a warm literary serif with real
                italics) against Plus Jakarta Sans for everything else.
   · Motif    — the arch. Image frames are rounded at the top like a doorway.
                It reads as shelter, it is unusual, and it makes the site
                recognisable from a thumbnail.
   · Texture  — an inline grain layer over flat grounds, so large colour
                fields look printed rather than filled.
   · Mobile   — no full-screen drawer. A bottom dock that always carries a
                Give button, and a sheet that slides up from it.

   Ordering matters: tokens, base, layout, then components. Where an element
   carries two classes (.hero .hero__media) the selector uses both, because a
   later single-class rule of equal specificity would otherwise win and
   silently collapse it.
   ========================================================================== */

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  /* Ground */
  --paper:        #FAF6EF;
  --paper-2:      #F3ECE1;
  --paper-3:      #EADFCE;

  /* Ink */
  --forest:       #1C3A2E;
  --forest-deep:  #14231C;
  --forest-mid:   #2E5445;
  --ink:          #1F2A25;
  --ink-2:        #4E5C55;
  --ink-3:        #7A8880;

  /* Warmth */
  --clay:         #C4622D;
  --clay-deep:    #9E4A1D;
  --clay-soft:    #F6E3D6;
  --ochre:        #E0A32E;
  --ochre-soft:   #FBEFD4;

  --line:         #E2D8C9;
  --line-soft:    #EFE7DA;

  /* Type */
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:    "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --t-body:  clamp(1rem, .96rem + .2vw, 1.075rem);
  --t-lead:  clamp(1.1rem, 1.02rem + .42vw, 1.32rem);
  --t-h1:    clamp(2.3rem, 1.5rem + 3.6vw, 4.4rem);
  --t-h2:    clamp(1.85rem, 1.35rem + 2.1vw, 3rem);
  --t-h3:    clamp(1.2rem, 1.08rem + .55vw, 1.5rem);
  --t-eye:   .715rem;

  /* Space */
  --gut:   clamp(1.15rem, .7rem + 2vw, 2.6rem);
  --maxw:  1200px;
  --maxw-wide: 1440px;
  --sec:   clamp(3.6rem, 2.2rem + 5.4vw, 7.5rem);

  /* Shape */
  --r-s:   10px;
  --r-m:   16px;
  --r-l:   24px;
  --arch:  50% 50% 0 0 / 22% 22% 0 0;   /* the doorway */

  /* Motion */
  --e-out: cubic-bezier(.22,.8,.3,1);
  --e-in-out: cubic-bezier(.65,0,.35,1);
  --d-1: .3s;
  --d-2: .55s;
  --d-3: .9s;

  --nav-h: 74px;
  --dock-h: 0px;

  --shadow-s: 0 1px 2px rgba(20,35,28,.05), 0 4px 14px rgba(20,35,28,.05);
  --shadow-m: 0 2px 6px rgba(20,35,28,.06), 0 14px 40px rgba(20,35,28,.09);
  --shadow-l: 0 6px 18px rgba(20,35,28,.09), 0 34px 80px rgba(20,35,28,.16);

  /* The grain. One tiny inline SVG, reused by every textured ground. */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.86' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* The entrance animations begin a little right of where they finish and
     the hero images sit oversized so they can drift. Clipped here so no
     phone can ever be dragged sideways. */
  overflow-x: clip;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  padding-bottom: var(--dock-h);
}
body.is-locked { overflow: hidden; }

img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }
button { font: inherit; color: inherit; }

::selection { background: var(--ochre); color: var(--forest-deep); }

:focus-visible {
  outline: 2.5px solid var(--clay);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--forest); color: #fff; padding: 14px 20px; border-radius: 0 0 var(--r-s) 0;
}
.skip:focus { left: 0; }

.sr {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── Typography ─────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); line-height: 1.22; }
h4 { font-size: 1.02rem; font-family: var(--sans); font-weight: 700; letter-spacing: .01em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: var(--t-lead);
  line-height: 1.58;
  color: var(--ink-2);
  text-wrap: pretty;
}

.eyebrow {
  font-size: var(--t-eye);
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--clay);
  margin: 0 0 .75rem;
}

/* A short clay rule that sits above a heading. The site's punctuation mark. */
.rule {
  width: 46px; height: 3px; border: 0; border-radius: 3px;
  background: var(--clay);
  margin: 0 0 1.1rem;
}
.rule--light { background: var(--ochre); }

.prose p + p { margin-top: 0; }
.prose > p { max-width: 62ch; }

.num {
  font-family: var(--display);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  letter-spacing: -.02em;
}
em, .it { font-style: italic; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gut); }
.wrap--wide   { max-width: var(--maxw-wide); }
.wrap--narrow { max-width: 780px; }

.section { padding-block: var(--sec); }
.section--tight { padding-block: calc(var(--sec) * .62); }

/* A textured ground. Used for the warm and dark bands. */
.section--tint,
.section--dark,
.section--clay { position: relative; isolation: isolate; }
.section--tint::before,
.section--dark::before,
.section--clay::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain);
  background-size: 140px 140px;
  opacity: .5;
  mix-blend-mode: multiply;
  pointer-events: none;
}
.section--tint  { background: var(--paper-2); }
.section--dark  { background: var(--forest); color: #F2EFE8; }
.section--dark::before { mix-blend-mode: overlay; opacity: .22; }
.section--clay  { background: var(--clay-soft); }

.section--dark h2, .section--dark h3 { color: #fff; }
.section--dark .lead { color: rgba(242,239,232,.8); }
.section--dark .eyebrow { color: var(--ochre); }
.section--dark .rule { background: var(--ochre); }

.mt-1 { margin-top: .6rem; }
.mt-2 { margin-top: 1.2rem; }
.mt-3 { margin-top: 2rem; }
.mt-4 { margin-top: 3rem; }

.split {
  display: grid;
  gap: clamp(2rem, 1rem + 4vw, 4.6rem);
  align-items: center;
  grid-template-columns: 1fr;
}
/* Grid children default to min-width:auto, which means a wide child — a big
   number input, a long unbroken word — refuses to shrink and steals the
   other column's space. Without this, a .85fr column collapses to its own
   minimum and the heading beside it wraps one word per line. */
.split > *, .grid > * { min-width: 0; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip > *:first-child { order: 2; }
  .split--wide-left  { grid-template-columns: 1.15fr .85fr; }
  .split--wide-right { grid-template-columns: .85fr 1.15fr; }
}

.grid { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.75rem); grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 680px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

/* ── Picture frames ─────────────────────────────────────────────────────── */
.ph {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper-3);
  border-radius: var(--r-l);
}
.ph > img { width: 100%; height: 100%; object-fit: cover; }
.ph--3x2 { aspect-ratio: 3 / 2; }
.ph--4x5 { aspect-ratio: 4 / 5; }
.ph--1x1 { aspect-ratio: 1 / 1; }
.ph--5x4 { aspect-ratio: 5 / 4; }

/* The signature: rounded at the top like a doorway. */
.ph--arch { border-radius: var(--arch); }

/* A thin inset line, so a photograph on paper reads as a printed plate. */
.ph--plate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(20,35,28,.09);
}

.ph--zoom > img { transition: transform 1.2s var(--e-out); }
.ph--zoom:hover > img { transform: scale(1.045); }

.ph__cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.15rem .9rem;
  color: #fff;
  font-size: .9rem;
  line-height: 1.35;
  background: linear-gradient(to top, rgba(20,35,28,.86), rgba(20,35,28,.45) 55%, transparent);
}

/* ── Collage ────────────────────────────────────────────────────────────── */
/* Three photographs, offset, with the arch on the tallest. */
.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: clamp(.6rem, .3rem + 1.2vw, 1.1rem);
  position: relative;
}
.collage .ph:nth-child(1) {
  grid-column: 1; grid-row: 1 / span 2;
  aspect-ratio: 3 / 4.5;
  border-radius: var(--arch);
}
.collage .ph:nth-child(2) { grid-column: 2; grid-row: 1; aspect-ratio: 4 / 3; }
.collage .ph:nth-child(3) { grid-column: 2; grid-row: 2; aspect-ratio: 4 / 3; }
.collage--tilt .ph:nth-child(2) { transform: rotate(1.4deg); }
.collage--tilt .ph:nth-child(3) { transform: rotate(-1.1deg); }
.collage--tilt .ph { transition: transform var(--d-2) var(--e-out); }
.collage--tilt:hover .ph { transform: rotate(0); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .88em 1.5em;
  border: 1.5px solid transparent;
  border-radius: 100px;
  font-family: var(--sans);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .005em;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--d-1) var(--e-out), background var(--d-1), color var(--d-1),
              border-color var(--d-1), box-shadow var(--d-1);
  white-space: nowrap;
}
.btn > svg { width: 1.12em; height: 1.12em; flex: 0 0 auto; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--give   { background: var(--clay); color: #fff; box-shadow: 0 6px 20px rgba(196,98,45,.32); }
.btn--give:hover { background: var(--clay-deep); box-shadow: 0 10px 28px rgba(196,98,45,.4); }
.btn--solid  { background: var(--forest); color: #fff; }
.btn--solid:hover { background: var(--forest-deep); }
.btn--ghost  { border-color: currentColor; color: inherit; }
.btn--ghost:hover { background: rgba(28,58,46,.07); }
.section--dark .btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--ochre  { background: var(--ochre); color: var(--forest-deep); }
.btn--ochre:hover { background: #CE9222; }
.btn--sm { padding: .62em 1.1em; font-size: .86rem; }
.btn--wide { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; }

/* A text link with a rule that draws itself on hover. */
.tlink {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 700; font-size: .95rem; text-decoration: none;
  color: var(--clay);
  position: relative;
}
.tlink > svg { width: 1.05em; height: 1.05em; transition: transform var(--d-1) var(--e-out); }
.tlink::after {
  content: ""; position: absolute; left: 0; right: 1.5em; bottom: -3px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left;
  transition: transform var(--d-2) var(--e-out);
}
.tlink:hover::after { transform: scaleX(1); }
.tlink:hover > svg { transform: translateX(4px); }

/* ── Navigation ─────────────────────────────────────────────────────────── */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 90;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background var(--d-2), box-shadow var(--d-2), border-color var(--d-2);
  border-bottom: 1px solid transparent;
}
.nav__in {
  width: 100%; max-width: var(--maxw-wide); margin-inline: auto;
  padding-inline: var(--gut);
  display: flex; align-items: center; gap: 1.5rem;
}
.nav.is-solid {
  background: rgba(250,246,239,.92);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line);
  color: var(--ink);
}
.nav--over:not(.is-solid) { color: #fff; }
.nav--over:not(.is-solid) .brand__sub { color: rgba(255,255,255,.72); }

.brand {
  display: flex; align-items: center; gap: .7rem;
  flex: 0 0 auto;
  text-decoration: none; color: inherit;
}
.brand__mark { width: 44px; height: 44px; flex: 0 0 auto; }
.brand__txt { display: flex; flex-direction: column; line-height: 1.12; flex: 0 0 auto; }
.brand__name { font-family: var(--display); font-weight: 600; font-size: 1.14rem; letter-spacing: -.01em; }
.brand__sub { font-size: .66rem; letter-spacing: .15em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }

/* flex:0 0 auto and nowrap together: without them the bar has room but the
   links wrap inside their own box, so "Our Story" becomes two lines and the
   bar quietly doubles in height. */
.nav__links { display: none; gap: .3rem; margin-left: auto; flex: 0 0 auto; }
@media (min-width: 1160px) { .nav__links { display: flex; } }
.nav__a {
  position: relative;
  white-space: nowrap;
  padding: .55rem .82rem;
  border-radius: 100px;
  font-size: .93rem; font-weight: 600; text-decoration: none;
  transition: background var(--d-1), color var(--d-1);
}
.nav__a::after {
  content: ""; position: absolute; left: 50%; bottom: .3rem;
  width: 0; height: 2px; border-radius: 2px; background: var(--clay);
  transform: translateX(-50%);
  transition: width var(--d-2) var(--e-out);
}
.nav__a:hover::after { width: 18px; }
.nav__a[aria-current="page"]::after { width: 18px; background: var(--ochre); }

.nav__act { display: flex; align-items: center; gap: .55rem; margin-left: auto; flex: 0 0 auto; }
@media (min-width: 1160px) { .nav__act { margin-left: 0; } }
.nav__give { display: none; }
@media (min-width: 560px) { .nav__give { display: inline-flex; } }

/* Social buttons in the bar — small, round, always visible from tablet up. */
/* Two classes on purpose. `.social { display: flex }` is declared further
   down this file at the same specificity, so a bare `.nav__social` rule
   loses to it and the buttons show at every width — the same cascade trap
   that once collapsed every hero image on the site. */
.nav .nav__social { display: none; gap: .3rem; flex-wrap: nowrap; }
/* Only once there is genuinely room beside a full menu. */
@media (min-width: 1380px) { .nav .nav__social { display: flex; } }

.burger {
  width: 46px; height: 46px; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; gap: 5px; border-radius: 50%;
  transition: background var(--d-1);
}
@media (min-width: 1160px) { .burger { display: none; } }
.burger:hover { background: rgba(28,58,46,.08); }
.burger span {
  display: block; width: 21px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform var(--d-2) var(--e-out), opacity var(--d-1);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── The mobile dock ────────────────────────────────────────────────────── */
/* Nothing like a slide-in side drawer. A bar sits at the bottom of the
   screen with Give permanently on it, and the menu rises as a sheet. */
@media (max-width: 1159px) {
  :root { --dock-h: calc(62px + env(safe-area-inset-bottom, 0px)); }
}
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: none;
  padding: .45rem var(--gut) calc(.45rem + env(safe-area-inset-bottom, 0px));
  background: rgba(250,246,239,.93);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border-top: 1px solid var(--line);
}
@media (max-width: 1159px) { .dock { display: block; } }
.dock__in { display: flex; align-items: center; gap: .5rem; max-width: 620px; margin-inline: auto; }
.dock__b {
  flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: .3rem .2rem; border: 0; background: transparent; cursor: pointer;
  border-radius: var(--r-s); text-decoration: none;
  font-size: .64rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: var(--ink-2);
  transition: color var(--d-1);
}
.dock__b > svg { width: 21px; height: 21px; }
.dock__b:hover, .dock__b[aria-current="page"] { color: var(--forest); }
.dock__give {
  flex: 1.5 1 0;
  flex-direction: row; gap: .4rem;
  background: var(--clay); color: #fff;
  padding: .72rem .8rem; border-radius: 100px;
  font-size: .78rem; letter-spacing: .02em; text-transform: none;
  box-shadow: 0 4px 16px rgba(196,98,45,.34);
}
.dock__give:hover { color: #fff; background: var(--clay-deep); }

/* The sheet. Rises from the dock, rounded at the top, with a grabber. */
.sheet {
  position: fixed; inset: 0; z-index: 96;
  display: grid; align-items: end;
  visibility: hidden;
  pointer-events: none;
}
.sheet.is-open { visibility: visible; pointer-events: auto; }
.sheet__scrim {
  position: absolute; inset: 0;
  background: rgba(20,35,28,.5);
  opacity: 0; transition: opacity var(--d-2) var(--e-out);
  backdrop-filter: blur(3px);
}
.sheet.is-open .sheet__scrim { opacity: 1; }
.sheet__panel {
  position: relative;
  background: var(--paper);
  border-radius: var(--r-l) var(--r-l) 0 0;
  padding: .7rem var(--gut) calc(1.4rem + env(safe-area-inset-bottom, 0px));
  max-height: 88vh; overflow-y: auto;
  transform: translateY(100%);
  transition: transform var(--d-3) var(--e-out);
  box-shadow: 0 -20px 60px rgba(20,35,28,.3);
}
.sheet.is-open .sheet__panel { transform: translateY(0); }
.sheet__grab {
  width: 42px; height: 4px; border-radius: 4px; background: var(--line);
  margin: 0 auto 1rem;
}
.sheet__links { display: grid; gap: 2px; margin: 0 0 1.1rem; }
.sheet__a {
  display: flex; align-items: center; gap: .9rem;
  padding: .85rem .6rem;
  border-radius: var(--r-s);
  text-decoration: none;
  font-family: var(--display); font-size: 1.28rem; font-weight: 500;
  border-bottom: 1px solid var(--line-soft);
  transition: background var(--d-1), padding-left var(--d-1);
}
.sheet__a:last-child { border-bottom: 0; }
.sheet__a:hover { background: var(--paper-2); padding-left: 1rem; }
.sheet__a > span {
  font-family: var(--sans); font-size: .66rem; font-weight: 700;
  letter-spacing: .1em; color: var(--clay); width: 1.6rem;
}
.sheet__foot { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.sheet__foot p { font-size: .9rem; color: var(--ink-2); margin-bottom: .35rem; }
.sheet__foot a { text-decoration: none; font-weight: 600; }

/* ── Social buttons ─────────────────────────────────────────────────────── */
.social { display: flex; flex-wrap: wrap; gap: .45rem; }
.social__b {
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: transparent;
  color: inherit;
  text-decoration: none;
  transition: transform var(--d-1) var(--e-out), background var(--d-1),
              border-color var(--d-1), color var(--d-1);
}
.social__b > svg { width: 19px; height: 19px; }
.social__b:hover { transform: translateY(-3px) scale(1.06); }

/* Each platform keeps its own colour on hover. Recognisable at a glance. */
.social__b[data-net="wa"]:hover        { background: #25D366; border-color: #25D366; color: #fff; }
.social__b[data-net="facebook"]:hover  { background: #1877F2; border-color: #1877F2; color: #fff; }
.social__b[data-net="instagram"]:hover { background: linear-gradient(45deg,#F09433,#DC2743 50%,#BC1888); border-color: #DC2743; color: #fff; }
.social__b[data-net="youtube"]:hover   { background: #FF0000; border-color: #FF0000; color: #fff; }
.social__b[data-net="tiktok"]:hover    { background: #010101; border-color: #010101; color: #fff; }
.social__b[data-net="x"]:hover         { background: #000; border-color: #000; color: #fff; }
.social__b[data-net="linkedin"]:hover  { background: #0A66C2; border-color: #0A66C2; color: #fff; }

.social--sm .social__b { width: 34px; height: 34px; }
.social--sm .social__b > svg { width: 16px; height: 16px; }
.social--light .social__b { border-color: rgba(255,255,255,.3); color: #fff; }
.social--solid .social__b { border-color: transparent; background: var(--paper-2); }

/* A full-width band inviting a follow. */
.follow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1.4rem;
  padding: clamp(1.5rem, 1rem + 2vw, 2.4rem);
  border-radius: var(--r-l);
  background: var(--forest);
  color: #fff;
  position: relative; isolation: isolate; overflow: hidden;
}
.follow::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain); background-size: 140px; opacity: .2; mix-blend-mode: overlay;
}
.follow h3 { margin: 0 0 .2rem; color: #fff; }
.follow p { margin: 0; color: rgba(255,255,255,.75); font-size: .95rem; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  background: var(--forest-deep);
  color: #fff;
  overflow: hidden;
  display: grid;
  align-items: end;
}
.hero--big  { min-height: min(94svh, 880px); }
.hero--page { min-height: min(62svh, 560px); }

/* Two classes on purpose: a later single-class rule must not beat this. */
.hero .hero__media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero .hero__media > img,
.hero .hero__slide > img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero .hero__scrim {
  position: absolute; inset: 0; z-index: -2;
  background:
    linear-gradient(to top, rgba(20,35,28,.92) 2%, rgba(20,35,28,.55) 42%, rgba(20,35,28,.3) 72%, rgba(20,35,28,.5)),
    linear-gradient(to right, rgba(20,35,28,.6), transparent 62%);
}
.hero .hero__grain {
  position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain); background-size: 140px;
  opacity: .16; mix-blend-mode: overlay; pointer-events: none;
}

.hero__in {
  position: relative; z-index: 1;
  padding-block: calc(var(--nav-h) + 3rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  max-width: 900px;
}
.hero__eyebrow { color: var(--ochre); }
.hero__title { color: #fff; margin-bottom: .45em; }
.hero__lead { color: rgba(255,255,255,.86); max-width: 56ch; font-size: var(--t-lead); }
.hero .btn-row { margin-top: 1.9rem; }

/* The cycling hero. Each slide owns its own image and its own words. */
.hero__slide {
  position: absolute; inset: 0; z-index: -3;
  opacity: 0;
  transition: opacity 1.3s var(--e-in-out);
}
.hero__slide.is-on { opacity: 1; }
.hero__slide > img { transform: scale(1.1); transition: transform 9s linear; }
.hero__slide.is-on > img { transform: scale(1); }

.hero__copy { display: none; }
.hero__copy.is-on { display: block; animation: heroIn .95s var(--e-out) both; }
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* Slide progress: thin bars, not dots. */
.hero__bars {
  position: absolute; z-index: 2; left: var(--gut); bottom: clamp(1.1rem, .6rem + 1.6vw, 2rem);
  display: flex; gap: .45rem;
}
.hero__bar {
  width: 42px; height: 3px; border-radius: 3px; border: 0; padding: 0;
  background: rgba(255,255,255,.28); cursor: pointer; overflow: hidden;
  position: relative;
}
.hero__bar::after {
  content: ""; position: absolute; inset: 0;
  background: #fff; transform: scaleX(0); transform-origin: left;
}
.hero__bar.is-on::after { animation: barFill var(--dwell, 6500ms) linear forwards; }
@keyframes barFill { to { transform: scaleX(1); } }

.hero__scroll {
  position: absolute; z-index: 2; right: var(--gut); bottom: clamp(1.1rem, .6rem + 1.6vw, 2rem);
  display: none; align-items: center; gap: .55rem;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: rgba(255,255,255,.7);
}
@media (min-width: 760px) { .hero__scroll { display: flex; } }
.hero__scroll i {
  display: block; width: 1px; height: 34px;
  background: linear-gradient(to bottom, rgba(255,255,255,.7), transparent);
  animation: scrollHint 2.2s var(--e-in-out) infinite;
}
@keyframes scrollHint { 0%,100% { transform: scaleY(1); opacity: .8; } 50% { transform: scaleY(.55); opacity: .3; } }

/* ── Reveals ────────────────────────────────────────────────────────────── */
[data-rev] { opacity: 0; transform: translateY(26px); }
[data-rev="right"] { transform: translateX(26px); }
[data-rev="fade"]  { transform: none; }
[data-rev="clip"]  { opacity: 1; clip-path: inset(0 0 100% 0); transform: none; }
[data-rev].is-in {
  opacity: 1; transform: none; clip-path: inset(0 0 0 0);
  transition: opacity var(--d-3) var(--e-out), transform var(--d-3) var(--e-out),
              clip-path 1.1s var(--e-out);
  transition-delay: var(--d, 0ms);
}
.no-js [data-rev] { opacity: 1; transform: none; clip-path: none; }

/* ── Cards ──────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.1rem);
  transition: transform var(--d-2) var(--e-out), box-shadow var(--d-2), border-color var(--d-2);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-m); border-color: var(--line-soft); }
.card h3 { margin-bottom: .45rem; }
.card p { color: var(--ink-2); margin-bottom: 0; }
.section--dark .card {
  background: rgba(255,255,255,.055);
  border-color: rgba(255,255,255,.14);
}
.section--dark .card p { color: rgba(242,239,232,.76); }

.card__ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--clay-soft); color: var(--clay-deep);
  margin-bottom: 1rem;
}
.card__ico > svg { width: 23px; height: 23px; }
.section--dark .card__ico { background: rgba(224,163,46,.16); color: var(--ochre); }

/* Mission and Vision get a designed ground rather than a flat panel. */
.pillar {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-l);
  min-height: 420px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(1.6rem, 1.1rem + 2vw, 2.6rem);
  color: #fff;
}
.pillar__bg { position: absolute; inset: 0; z-index: -3; }
.pillar__bg > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--e-out); }
.pillar:hover .pillar__bg > img { transform: scale(1.06); }
.pillar::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(to top, rgba(20,35,28,.95) 8%, rgba(20,35,28,.62) 48%, rgba(20,35,28,.28));
}
.pillar::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain); background-size: 140px;
  opacity: .18; mix-blend-mode: overlay; pointer-events: none;
}
/* A large watermark glyph behind the words — the designed part. */
.pillar__glyph {
  position: absolute; z-index: -1; right: -.12em; top: -.22em;
  font-family: var(--display); font-size: clamp(11rem, 26vw, 19rem); line-height: .8;
  font-style: italic; font-weight: 500;
  color: rgba(255,255,255,.085);
  pointer-events: none; user-select: none;
}
.pillar h3 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.3rem); }
.pillar p  { color: rgba(255,255,255,.84); max-width: 46ch; }
.pillar .eyebrow { color: var(--ochre); }

/* ── Needs grid ─────────────────────────────────────────────────────────── */
.needs { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: .7rem; }
.need {
  display: flex; align-items: center; gap: .7rem;
  padding: .95rem 1.05rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  font-size: .92rem; font-weight: 600;
  transition: transform var(--d-1) var(--e-out), border-color var(--d-1), background var(--d-1);
}
.need:hover { transform: translateY(-2px); border-color: var(--clay); background: var(--clay-soft); }
.need > svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--clay); }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.pill {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .46em 1em;
  border-radius: 100px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: .85rem; font-weight: 600;
}
.pill > svg { width: 15px; height: 15px; color: var(--clay); }
.section--dark .pill { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.18); color: #fff; }
.section--dark .pill > svg { color: var(--ochre); }

/* ── The impact calculator ──────────────────────────────────────────────── */
.impact {
  border-radius: var(--r-l);
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow-m);
}
.impact__top {
  padding: clamp(1.4rem, 1rem + 1.6vw, 2.2rem);
  background: var(--forest);
  color: #fff;
  position: relative; isolation: isolate;
}
.impact__top::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain); background-size: 140px; opacity: .2; mix-blend-mode: overlay;
}
.impact__label {
  display: block;
  font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700;
  color: var(--ochre);
  margin-bottom: .7rem;
}
.impact__field { display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap; }
.impact__cur { font-family: var(--display); font-size: 1.5rem; color: rgba(255,255,255,.62); }
.impact__amt {
  /* width:0 with flex-grow, so the input's intrinsic size attribute cannot
     set a floor for the whole column. */
  flex: 1 1 0; width: 0; min-width: 0;
  background: transparent; border: 0; border-bottom: 2px solid rgba(255,255,255,.28);
  color: #fff;
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.4rem, 1.6rem + 3.4vw, 4rem);
  line-height: 1.05;
  padding: 0 0 .1em;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.impact__amt::-webkit-outer-spin-button,
.impact__amt::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.impact__amt:focus { outline: none; border-bottom-color: var(--ochre); }
.impact__conv { font-size: .88rem; color: rgba(255,255,255,.6); margin: .6rem 0 0; }

.impact__presets { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.1rem; }
.chip {
  padding: .45em 1em; border-radius: 100px; cursor: pointer;
  border: 1.5px solid rgba(255,255,255,.26);
  background: transparent; color: #fff;
  font-size: .85rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  transition: background var(--d-1), border-color var(--d-1), color var(--d-1), transform var(--d-1);
}
.chip:hover { transform: translateY(-2px); border-color: var(--ochre); }
.chip.is-on { background: var(--ochre); border-color: var(--ochre); color: var(--forest-deep); }

.impact__out { padding: clamp(1.2rem, .9rem + 1.2vw, 1.8rem); display: grid; gap: .1rem; }
.impact__row {
  display: flex; align-items: center; gap: .9rem;
  padding: .82rem .2rem;
  border-bottom: 1px solid var(--line-soft);
}
.impact__row:last-child { border-bottom: 0; }
.impact__row > svg { width: 21px; height: 21px; color: var(--clay); flex: 0 0 auto; }
.impact__n {
  font-family: var(--display); font-weight: 600; font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
  color: var(--forest); min-width: 2.4ch;
}
.impact__t { font-size: .96rem; color: var(--ink-2); }
.impact__row.is-zero { opacity: .34; }
.impact__foot {
  padding: 0 clamp(1.2rem, .9rem + 1.2vw, 1.8rem) clamp(1.2rem, .9rem + 1.2vw, 1.8rem);
}
.impact__note { font-size: .8rem; color: var(--ink-3); margin: .9rem 0 0; }

/* ── Projects ───────────────────────────────────────────────────────────── */
.projects { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.6rem); grid-template-columns: 1fr; }
@media (min-width: 700px)  { .projects { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .projects { grid-template-columns: repeat(3, 1fr); } }

.proj {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: transform var(--d-2) var(--e-out), box-shadow var(--d-2), border-color var(--d-2);
}
.proj:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.proj__ph { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-3); }
.proj__ph > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--e-out); }
.proj:hover .proj__ph > img { transform: scale(1.055); }
.proj__tag {
  position: absolute; top: .8rem; left: .8rem;
  padding: .34em .82em; border-radius: 100px;
  font-size: .7rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase;
  background: rgba(250,246,239,.94); color: var(--forest);
  backdrop-filter: blur(6px);
}
.proj__tag--draft { background: var(--ochre); color: var(--forest-deep); }
.proj__b { padding: 1.3rem 1.35rem 1.45rem; display: flex; flex-direction: column; flex: 1 1 auto; }
.proj__b h3 { font-size: 1.24rem; margin-bottom: .5rem; }
.proj__b p { font-size: .93rem; color: var(--ink-2); margin-bottom: 1.1rem; }
.proj__cost {
  display: flex; align-items: baseline; gap: .45rem;
  margin-bottom: .8rem; padding-bottom: .9rem;
  border-bottom: 1px solid var(--line-soft);
}
.proj__cost b { font-family: var(--display); font-size: 1.55rem; font-weight: 600; color: var(--clay); }
.proj__cost span { font-size: .87rem; color: var(--ink-3); }
.proj__meter { height: 7px; border-radius: 7px; background: var(--paper-3); overflow: hidden; margin-bottom: .5rem; }
.proj__fill {
  height: 100%; border-radius: 7px; background: var(--clay);
  width: 0; transition: width 1.4s var(--e-out);
}
.proj[data-accent="forest"] .proj__fill { background: var(--forest-mid); }
.proj[data-accent="forest"] .proj__cost b { color: var(--forest-mid); }
.proj[data-accent="ochre"]  .proj__fill { background: var(--ochre); }
.proj[data-accent="ochre"]  .proj__cost b { color: #B7831C; }
.proj__meta { font-size: .82rem; color: var(--ink-3); margin-bottom: 1.1rem; }
.proj__b .btn { margin-top: auto; }

/* ── Payment methods ────────────────────────────────────────────────────── */
.pays { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.5rem); grid-template-columns: 1fr; }
@media (min-width: 780px) { .pays { grid-template-columns: repeat(3, 1fr); } }

.pay {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r-l);
  color: #fff;
  display: flex; flex-direction: column;
  min-height: 340px;
  padding: 1.5rem;
  border: 1px solid transparent;
}
.pay__bg { position: absolute; inset: 0; z-index: -3; }
.pay__bg > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.3s var(--e-out); }
.pay:hover .pay__bg > img { transform: scale(1.07); }
/* Each provider's own colour washes its card. Set per card below. */
.pay::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(to top, var(--wash-a) 4%, var(--wash-b) 55%, var(--wash-c));
}
.pay::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain); background-size: 140px; opacity: .2; mix-blend-mode: overlay;
}
.pay--mtn    { --wash-a: rgba(58,44,0,.94);  --wash-b: rgba(120,92,0,.72);   --wash-c: rgba(255,204,0,.42); }
.pay--orange { --wash-a: rgba(60,26,0,.94);  --wash-b: rgba(135,60,0,.72);   --wash-c: rgba(255,121,0,.42); }
.pay--bank   { --wash-a: rgba(58,8,8,.94);   --wash-b: rgba(122,20,20,.72);  --wash-c: rgba(200,32,32,.4); }

.pay__head { display: flex; align-items: center; gap: .8rem; margin-bottom: auto; }
.pay__logo {
  width: 56px; height: 56px; border-radius: 14px;
  background: rgba(255,255,255,.95);
  display: grid; place-items: center; overflow: hidden;
  flex: 0 0 auto;
  padding: 6px;
}
.pay__logo > img { width: 100%; height: 100%; object-fit: contain; }
.pay__logo--text {
  font-family: var(--sans); font-weight: 800; font-size: .72rem; letter-spacing: -.02em;
  text-align: center; line-height: 1.05; padding: 4px;
}
.pay--mtn    .pay__logo--text { background: #FFCC00; color: #1A1400; }
.pay--orange .pay__logo--text { background: #FF7900; color: #fff; }
.pay--bank   .pay__logo--text { background: #C82020; color: #fff; }
.pay__name { font-family: var(--display); font-size: 1.32rem; font-weight: 600; }
.pay__kind { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.66); font-weight: 700; }

.pay__body { margin-top: 1.6rem; }
.pay__field { margin-bottom: .95rem; }
.pay__k { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.6); font-weight: 700; margin-bottom: .18rem; }
.pay__v {
  font-family: var(--display); font-size: 1.5rem; font-weight: 600; letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.pay__v--sm { font-size: 1.05rem; font-family: var(--sans); font-weight: 700; }
.copy {
  border: 1.5px solid rgba(255,255,255,.34); background: rgba(255,255,255,.1);
  color: #fff; border-radius: 100px; padding: .3em .85em;
  font-size: .72rem; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; gap: .35em;
  transition: background var(--d-1), border-color var(--d-1), transform var(--d-1);
}
.copy:hover { background: rgba(255,255,255,.22); transform: translateY(-1px); }
.copy.is-done { background: #fff; color: var(--forest-deep); border-color: #fff; }
.copy > svg { width: 13px; height: 13px; }

/* ── Goods ──────────────────────────────────────────────────────────────── */
.goods__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .55rem; }
.goods__i {
  display: flex; align-items: center; gap: .6rem;
  padding: .7rem .9rem;
  border-radius: var(--r-s);
  background: #fff; border: 1px solid var(--line);
  font-size: .9rem; font-weight: 600;
}
.goods__i > svg { width: 16px; height: 16px; color: var(--clay); flex: 0 0 auto; }

/* ── Partners ───────────────────────────────────────────────────────────── */
.partners { display: grid; gap: clamp(.9rem, .5rem + 1.2vw, 1.4rem); grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px)  { .partners { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .partners { grid-template-columns: repeat(4, 1fr); } }

.partner {
  position: relative;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: .8rem;
  padding: clamp(1.2rem, .9rem + 1.2vw, 1.9rem) 1.1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  text-decoration: none;
  overflow: hidden;
  transition: transform var(--d-2) var(--e-out), box-shadow var(--d-2), border-color var(--d-2);
}
/* A warm wash rises from the bottom on hover. Pride, not a grey grid. */
.partner::before {
  content: ""; position: absolute; inset: auto 0 0; height: 0; z-index: 0;
  background: linear-gradient(to top, var(--clay-soft), transparent);
  transition: height var(--d-2) var(--e-out);
}
.partner:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); border-color: var(--clay); }
.partner:hover::before { height: 100%; }
.partner > * { position: relative; z-index: 1; }
.partner__mark {
  width: 96px; height: 78px;
  display: grid; place-items: center;
  border-radius: var(--r-m);
  background: var(--paper-2);
  overflow: hidden; padding: 10px;
}
.partner__mark > img { width: 100%; height: 100%; object-fit: contain; }
.partner__initials {
  font-family: var(--display); font-size: 1.85rem; font-weight: 600;
  color: var(--forest-mid); letter-spacing: .01em;
}
.partner__name { font-family: var(--display); font-size: 1.1rem; font-weight: 600; line-height: 1.22; }
.partner__kind { font-size: .68rem; letter-spacing: .13em; text-transform: uppercase; color: var(--clay); font-weight: 700; }
.partner__note { font-size: .84rem; color: var(--ink-3); line-height: 1.45; }
.partner__go {
  display: inline-flex; align-items: center; gap: .3em;
  font-size: .78rem; font-weight: 700; color: var(--clay);
  opacity: 0; transform: translateY(6px);
  transition: opacity var(--d-1), transform var(--d-2) var(--e-out);
}
.partner__go > svg { width: 13px; height: 13px; }
.partner:hover .partner__go { opacity: 1; transform: none; }
.partner__draft {
  position: absolute; top: .65rem; right: .65rem; z-index: 2;
  padding: .24em .6em; border-radius: 100px;
  background: var(--ochre); color: var(--forest-deep);
  font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}

/* ── Gallery ────────────────────────────────────────────────────────────── */
.gal { columns: 1; column-gap: clamp(.7rem, .4rem + 1vw, 1.15rem); }
@media (min-width: 600px)  { .gal { columns: 2; } }
@media (min-width: 1000px) { .gal { columns: 3; } }
.gal__i {
  break-inside: avoid;
  margin: 0 0 clamp(.7rem, .4rem + 1vw, 1.15rem);
  position: relative;
  border-radius: var(--r-m);
  overflow: hidden;
  background: var(--paper-3);
  cursor: zoom-in;
  display: block;
  width: 100%;
  border: 0; padding: 0;
  text-align: left;
}
.gal__i > img { width: 100%; height: auto; transition: transform 1.1s var(--e-out); }
.gal__i:hover > img { transform: scale(1.05); }
.gal__cap {
  position: absolute; inset: auto 0 0;
  padding: 2.6rem .95rem .85rem;
  color: #fff;
  background: linear-gradient(to top, rgba(20,35,28,.9), rgba(20,35,28,.4) 60%, transparent);
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--d-2), transform var(--d-2) var(--e-out);
}
.gal__i:hover .gal__cap, .gal__i:focus-visible .gal__cap { opacity: 1; transform: none; }
.gal__cap b { display: block; font-family: var(--display); font-size: 1.05rem; font-weight: 600; }
.gal__cap span { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ochre); font-weight: 700; }

.filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter {
  padding: .5em 1.05em; border-radius: 100px; cursor: pointer;
  border: 1.5px solid var(--line); background: #fff;
  font-size: .86rem; font-weight: 700;
  transition: background var(--d-1), border-color var(--d-1), color var(--d-1);
}
.filter:hover { border-color: var(--clay); }
.filter.is-on { background: var(--forest); border-color: var(--forest); color: #fff; }

/* Lightbox */
.lb {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(14,24,19,.96);
  display: grid; place-items: center;
  padding: clamp(1rem, 3vw, 3rem);
  opacity: 0; visibility: hidden;
  transition: opacity var(--d-2);
}
.lb.is-open { opacity: 1; visibility: visible; }
.lb__fig { max-width: min(1100px, 100%); max-height: 100%; margin: 0; display: grid; gap: .9rem; }
.lb__fig > img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: var(--r-m); }
.lb__cap { color: rgba(255,255,255,.82); text-align: center; font-size: .95rem; }
.lb__cap b { display: block; font-family: var(--display); font-size: 1.2rem; color: #fff; }
.lb__cap span {
  display: block; margin-bottom: .2rem;
  font-size: .74rem; letter-spacing: .13em; text-transform: uppercase;
  color: var(--ochre); font-weight: 700;
}
.lb__x, .lb__p, .lb__n {
  position: absolute; z-index: 2;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,.26); background: rgba(255,255,255,.08);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background var(--d-1);
}
.lb__x:hover, .lb__p:hover, .lb__n:hover { background: rgba(255,255,255,.2); }
.lb__x { top: 1.1rem; right: 1.1rem; }
.lb__p { left: 1.1rem; top: 50%; transform: translateY(-50%); }
.lb__n { right: 1.1rem; top: 50%; transform: translateY(-50%); }
.lb__x > svg, .lb__p > svg, .lb__n > svg { width: 20px; height: 20px; }

/* ── Video ──────────────────────────────────────────────────────────────── */
.vids { display: grid; gap: clamp(1rem, .6rem + 1.4vw, 1.6rem); grid-template-columns: 1fr; }
@media (min-width: 720px)  { .vids { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .vids--3 { grid-template-columns: repeat(3, 1fr); } }

.vid {
  border-radius: var(--r-l); overflow: hidden;
  background: var(--forest-deep);
  border: 1px solid var(--line);
}
.vid__fr { position: relative; aspect-ratio: 16 / 9; background: var(--forest-deep); }
.vid__fr > img, .vid__fr > iframe, .vid__fr > video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0;
}
.vid__play {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center;
  border: 0; background: transparent; cursor: pointer;
}
.vid__play i {
  display: grid; place-items: center;
  width: 74px; height: 74px; border-radius: 50%;
  background: rgba(250,246,239,.94); color: var(--forest);
  box-shadow: 0 10px 34px rgba(0,0,0,.4);
  transition: transform var(--d-2) var(--e-out), background var(--d-1);
}
.vid__play i > svg { width: 26px; height: 26px; margin-left: 3px; }
.vid__play:hover i { transform: scale(1.1); background: #fff; }
.vid__cap { padding: 1rem 1.2rem 1.15rem; background: #fff; }
.vid__cap b { display: block; font-family: var(--display); font-size: 1.12rem; font-weight: 600; }
.vid__cap span { font-size: .84rem; color: var(--ink-3); }

/* ── Slides strip (Who we are) ──────────────────────────────────────────── */
.mini { position: relative; border-radius: var(--arch); overflow: hidden; aspect-ratio: 4 / 5; background: var(--paper-3); }
.mini__s { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--e-in-out); }
.mini__s.is-on { opacity: 1; }
.mini__s > img { width: 100%; height: 100%; object-fit: cover; }
.mini__dots { position: absolute; z-index: 2; left: 0; right: 0; bottom: .9rem; display: flex; justify-content: center; gap: .4rem; }
.mini__dot {
  width: 7px; height: 7px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(255,255,255,.45);
  transition: background var(--d-1), width var(--d-2) var(--e-out);
}
.mini__dot.is-on { background: #fff; width: 20px; border-radius: 7px; }

/* ── Quote ──────────────────────────────────────────────────────────────── */
.quote { margin: 0; text-align: center; position: relative; }
.quote::before {
  content: "\201C"; display: block;
  font-family: var(--display); font-size: 6rem; line-height: .7; color: var(--clay);
  opacity: .34; margin-bottom: .1em;
}
.quote blockquote {
  margin: 0;
  font-family: var(--display); font-style: italic; font-weight: 400;
  font-size: clamp(1.4rem, 1.05rem + 1.8vw, 2.3rem);
  line-height: 1.35; color: var(--forest);
  text-wrap: balance;
}
.quote figcaption {
  margin-top: 1.2rem;
  font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; font-weight: 700; color: var(--ink-3);
}

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form { display: grid; gap: 1.05rem; }
.field { display: grid; gap: .38rem; }
.field label { font-size: .84rem; font-weight: 700; letter-spacing: .01em; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: .82rem .95rem;
  border: 1.5px solid var(--line);
  border-radius: var(--r-s);
  background: #fff;
  font: inherit; font-size: .97rem;
  color: var(--ink);
  transition: border-color var(--d-1), box-shadow var(--d-1);
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px var(--clay-soft);
}
.field textarea { resize: vertical; min-height: 120px; }
.field small { font-size: .8rem; color: var(--ink-3); }
@media (min-width: 620px) { .field--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.05rem; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.note {
  padding: 1.1rem 1.3rem;
  border-radius: var(--r-m);
  background: var(--ochre-soft);
  border: 1px solid #F0DDAE;
  font-size: .93rem;
}
.note--bad { background: #FCEDE9; border-color: #F2CDC2; }
.note p:last-child { margin-bottom: 0; }

/* ── Confirmation screens ───────────────────────────────────────────────── */
.done {
  min-height: min(88svh, 820px);
  display: grid; place-items: center;
  padding: calc(var(--nav-h) + 3rem) var(--gut) 5rem;
  text-align: center;
  position: relative; isolation: isolate; overflow: hidden;
}
.done--give { background: var(--forest); color: #fff; }
.done--give h1 { color: #fff; }
.done--give .lead { color: rgba(255,255,255,.82); }
.done::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain); background-size: 140px; opacity: .3; mix-blend-mode: multiply;
}
.done--give::before { mix-blend-mode: overlay; opacity: .2; }
.done__in { max-width: 640px; }

/* The tick draws itself. */
.tick { width: 104px; height: 104px; margin: 0 auto 1.8rem; display: block; }
.tick__c {
  fill: none; stroke: var(--clay); stroke-width: 3;
  stroke-dasharray: 302; stroke-dashoffset: 302;
  animation: draw 1s var(--e-out) forwards;
}
.done--give .tick__c { stroke: var(--ochre); }
.tick__m {
  fill: none; stroke: var(--clay); stroke-width: 4.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 60; stroke-dashoffset: 60;
  animation: draw .5s var(--e-out) .65s forwards;
}
.done--give .tick__m { stroke: var(--ochre); }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* A ring that pulses outward once, behind the tick. */
.tick__ring {
  fill: none; stroke: var(--clay); stroke-width: 2; opacity: 0;
  transform-origin: center;
  animation: ring 1.6s var(--e-out) .5s;
}
.done--give .tick__ring { stroke: var(--ochre); }
@keyframes ring {
  0%   { opacity: .6; transform: scale(.75); }
  100% { opacity: 0;  transform: scale(1.45); }
}

.done__in > * { animation: doneUp .8s var(--e-out) both; }
.done__in > *:nth-child(2) { animation-delay: .5s; }
.done__in > *:nth-child(3) { animation-delay: .62s; }
.done__in > *:nth-child(4) { animation-delay: .74s; }
.done__in > *:nth-child(5) { animation-delay: .86s; }
@keyframes doneUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Confetti-free celebration: slow rising motes. */
.motes { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.mote {
  position: absolute; bottom: -12px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ochre); opacity: 0;
  animation: rise var(--dur, 9s) linear var(--del, 0s) infinite;
}
@keyframes rise {
  0%   { opacity: 0;   transform: translateY(0) scale(.6); }
  12%  { opacity: .55; }
  85%  { opacity: .2; }
  100% { opacity: 0;   transform: translateY(-88svh) scale(1.1); }
}

/* ── The nudge ──────────────────────────────────────────────────────────── */
/* Bottom-corner card. Never on a first visit, never twice, never modal. */
.nudge {
  position: fixed; z-index: 88;
  right: var(--gut); bottom: calc(var(--dock-h) + 1rem);
  width: min(370px, calc(100vw - 2 * var(--gut)));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: var(--shadow-l);
  overflow: hidden;
  transform: translateY(24px) scale(.97);
  opacity: 0; visibility: hidden;
  transition: transform var(--d-3) var(--e-out), opacity var(--d-2), visibility var(--d-2);
}
.nudge.is-up { transform: none; opacity: 1; visibility: visible; }
.nudge__ph { position: relative; aspect-ratio: 16 / 7; background: var(--paper-3); overflow: hidden; }
.nudge__ph > img { width: 100%; height: 100%; object-fit: cover; }
.nudge__x {
  position: absolute; top: .55rem; right: .55rem; z-index: 2;
  width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(250,246,239,.9); color: var(--forest);
  display: grid; place-items: center;
  transition: background var(--d-1);
}
.nudge__x:hover { background: #fff; }
.nudge__x > svg { width: 15px; height: 15px; }
.nudge__b { padding: 1.15rem 1.25rem 1.3rem; }
.nudge__b h3 { font-size: 1.18rem; margin-bottom: .3rem; }
.nudge__b p { font-size: .88rem; color: var(--ink-2); margin-bottom: .9rem; }
.nudge__line {
  display: flex; align-items: baseline; gap: .5rem;
  padding: .7rem .9rem; margin-bottom: .95rem;
  border-radius: var(--r-s);
  background: var(--clay-soft);
}
.nudge__n {
  font-family: var(--display); font-weight: 600; font-size: 1.8rem;
  color: var(--clay-deep); font-variant-numeric: tabular-nums;
}
.nudge__t { font-size: .87rem; color: var(--ink-2); }

/* ── Install prompt ─────────────────────────────────────────────────────── */
.install {
  position: fixed; z-index: 87;
  left: var(--gut); bottom: calc(var(--dock-h) + 1rem);
  width: min(340px, calc(100vw - 2 * var(--gut)));
  display: flex; align-items: center; gap: .85rem;
  padding: .9rem 1rem;
  background: var(--forest); color: #fff;
  border-radius: var(--r-m);
  box-shadow: var(--shadow-l);
  transform: translateY(22px); opacity: 0; visibility: hidden;
  transition: transform var(--d-3) var(--e-out), opacity var(--d-2), visibility var(--d-2);
}
.install.is-up { transform: none; opacity: 1; visibility: visible; }
.install img { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 auto; }
.install p { margin: 0; font-size: .87rem; line-height: 1.35; flex: 1 1 auto; }
.install .btn { padding: .5em 1em; font-size: .8rem; }
.install__x {
  width: 28px; height: 28px; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; flex: 0 0 auto;
}
.install__x > svg { width: 13px; height: 13px; }

/* ── CTA band ───────────────────────────────────────────────────────────── */
.cta {
  position: relative; isolation: isolate; overflow: hidden;
  background: var(--clay);
  color: #fff;
  padding-block: clamp(3rem, 2rem + 4vw, 5rem);
}
.cta::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain); background-size: 140px; opacity: .22; mix-blend-mode: overlay;
}
.cta__in { display: grid; gap: 1.6rem; align-items: center; }
@media (min-width: 880px) { .cta__in { grid-template-columns: 1.1fr .9fr; gap: 3rem; } }
.cta h2 { color: #fff; margin-bottom: 0; }
.cta .lead { color: rgba(255,255,255,.88); }
.cta .rule { background: #fff; }
.cta .btn--ghost { border-color: rgba(255,255,255,.55); color: #fff; }
.cta .btn--ghost:hover { background: rgba(255,255,255,.15); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.foot {
  background: var(--forest-deep);
  color: rgba(242,239,232,.72);
  padding-block: clamp(3rem, 2rem + 3vw, 4.5rem) 2rem;
  position: relative; isolation: isolate;
}
.foot::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: var(--grain); background-size: 140px; opacity: .18; mix-blend-mode: overlay;
}
.foot__top { display: grid; gap: 2.4rem; }
@media (min-width: 760px)  { .foot__top { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .foot__top { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; } }
.foot h4 { color: #fff; margin-bottom: .9rem; font-size: .74rem; letter-spacing: .15em; text-transform: uppercase; }
.foot a { text-decoration: none; transition: color var(--d-1); }
.foot a:hover { color: var(--ochre); }
.foot__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; font-size: .93rem; }
.brand--foot .brand__name { color: #fff; }
.brand--foot .brand__sub { color: rgba(242,239,232,.5); }
.foot__motto {
  font-family: var(--display); font-style: italic; font-size: 1.15rem;
  color: rgba(242,239,232,.82); margin: 1rem 0 1.3rem; max-width: 30ch;
}
.foot__end {
  margin-top: 3rem; padding-top: 1.6rem;
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between;
  font-size: .82rem; color: rgba(242,239,232,.52);
}
.foot__end p { margin: 0; }

/* ── Reading progress ───────────────────────────────────────────────────── */
.progress {
  position: fixed; top: 0; left: 0; z-index: 99;
  height: 2.5px; width: 0;
  background: linear-gradient(to right, var(--clay), var(--ochre));
  transition: width .08s linear;
}

/* ── Stat ribbon ────────────────────────────────────────────────────────── */
.ribbon {
  display: grid; gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) { .ribbon { grid-template-columns: repeat(4, 1fr); } }
.ribbon__i { background: #fff; padding: 1.5rem 1.3rem; text-align: center; }
.ribbon__n {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.9rem, 1.4rem + 2vw, 2.9rem);
  color: var(--clay); line-height: 1; margin-bottom: .3rem;
  font-variant-numeric: tabular-nums;
}
.ribbon__t { font-size: .84rem; color: var(--ink-2); line-height: 1.35; }

/* ── Anchors clear the fixed bar ────────────────────────────────────────── */
[id] { scroll-margin-top: calc(var(--nav-h) + 20px); }

/* Author `display` rules beat the browser default for [hidden]. Without
   this, anything hidden that also carries a display rule stays on screen. */
[hidden] { display: none !important; }
