/* ============================================================
   Houston TREE Initiative: design tokens
   ============================================================ */
:root {
  /* Earth palette */
  --forest-950: #0a1710;
  --forest-900: #0f2218;
  --forest-800: #163020;
  --forest-700: #1f4029;
  --moss-500:   #4f6e3d;
  --moss-400:   #6f8c55;
  --sage-100:   #e3e8d6;
  --bark-900:   #241811;
  --bark-800:   #33241a;
  --bark-600:   #5c4130;
  --clay-500:   #9a6b43;
  --clay-400:   #b7865a;
  --ochre-300:  #d9b26f;
  --paper:      #fbf8f2;
  --cream-100:  #f3ecdf;
  --cream-200:  #e6dccb;
  --ink:        #1d1a14;
  --ink-soft:   #4d473b;
  --on-dark:    #f3ecdf;
  --on-dark-soft: rgb(243 236 223 / .72);
  --rule-dark:  rgb(243 236 223 / .16);

  --font-display: "Alegreya", Georgia, "Times New Roman", serif;
  --font-body: "Alegreya Sans", "Gill Sans", system-ui, sans-serif;

  --radius: 8px;
  --nav-h: 80px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1200px;
  --section-y: clamp(80px, 10vw, 136px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
/* Alegreya defaults to old-style figures; force lining ones everywhere. !important because
   the `font` shorthand used throughout resets font-feature-settings. */
* { font-feature-settings: "lnum" 1 !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  background: var(--forest-950);
  color: var(--ink);
  font: 400 18.5px/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip; /* not `hidden`: that would make body the scroll container and break window scroll */
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }
p, figure, blockquote { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--ochre-300); color: var(--forest-950); }
:focus-visible { outline: 2px solid var(--ochre-300); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--paper); color: var(--forest-900); padding: 10px 16px; border-radius: 6px;
}
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

/* Section skins */
section { position: relative; padding-block: var(--section-y); isolation: isolate; }
.section--cream { background: var(--cream-100); color: var(--ink); }
.section--paper { background: var(--paper); color: var(--ink); }
.section--sage  { background: var(--sage-100); color: var(--ink); }
.section--dark  { background: var(--forest-900); color: var(--on-dark); }
.section--solid { background: var(--forest-800); color: var(--on-dark); }

/* Type */
.h2 {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.6vw, 58px);
  font-weight: 600; line-height: 1.1; letter-spacing: -.01em;
  text-wrap: balance;
}
.section-title { margin-bottom: clamp(36px, 5vw, 56px); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-intro { margin-top: 14px; font-size: 20px; line-height: 1.55; color: var(--ink-soft); }
.section--dark .section-intro { color: var(--on-dark-soft); }

.more { display: inline-flex; gap: 6px; font-weight: 700; color: var(--moss-500); text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.more:hover { color: var(--bark-600); }
.section--dark .more { color: var(--ochre-300); }

/* Buttons */
.btn {
  --bg: transparent; --fg: currentColor; --bd: currentColor;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px; border-radius: 6px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font: 700 17px/1 var(--font-body); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s;
}
.btn--light { --bg: var(--paper); --fg: var(--forest-900); --bd: var(--paper); }
.btn--light:hover { --bg: var(--ochre-300); --bd: var(--ochre-300); }
.btn--ghost { --fg: var(--on-dark); --bd: rgb(243 236 223 / .55); --bg: rgb(10 23 16 / .45); }
.btn--ghost:hover { --bd: var(--on-dark); --bg: rgb(243 236 223 / .1); }
.btn--sm { padding: 10px 16px; font-size: 16px; }

/* Background video (blur is baked into the files with ffmpeg) */
.vbg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* max-width:none overrides the base `video { max-width: 100% }`, which otherwise cut the right edge short */
.vbg__video { position: absolute; inset: -6% 0; width: 100%; height: 112%; max-width: none; object-fit: cover; will-change: transform; transform: translateZ(0); }
.vbg__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 23 16 / .45), rgb(10 23 16 / .55)); }
.vbg__shade--heavy { background: linear-gradient(180deg, rgb(10 23 16 / .38), rgb(10 23 16 / .5)); }
/* Houston footage: lighter so the city stays recognizable */
.vbg__shade--city {
  background:
    linear-gradient(90deg, rgb(10 23 16 / .6) 0%, rgb(10 23 16 / .3) 55%, rgb(10 23 16 / .08) 100%),
    linear-gradient(180deg, rgb(10 23 16 / .12), rgb(10 23 16 / .25));
}

/* Dark sections recolor body text; light cards inside them keep dark text */
.section--dark { --ink: var(--on-dark); --ink-soft: var(--on-dark-soft); }
.source, .logos li { --ink: #1d1a14; --ink-soft: #4d473b; color: var(--ink); }
.section--dark .source .more { color: var(--moss-500); }
.vbg__shade--hero {
  background:
    linear-gradient(90deg, rgb(10 23 16 / .66) 0%, rgb(10 23 16 / .38) 45%, rgb(10 23 16 / 0) 72%),
    linear-gradient(180deg, rgb(10 23 16 / .25) 0%, rgb(10 23 16 / 0) 25%, rgb(10 23 16 / 0) 70%, rgb(10 23 16 / .35) 100%);
}

/* ============================================================
   Nav: solid and always in place
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--nav-h);
  background: rgb(10 23 16 / .97); color: var(--on-dark);
  border-bottom: 1px solid var(--rule-dark);
}
.nav__inner { height: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.nav__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; font: 700 clamp(19px, 1.7vw, 24px)/1.15 var(--font-display); white-space: nowrap; flex-shrink: 0; }
/* The logo is dark green; a cream disc keeps it visible on the dark nav */
.nav__brand img { width: 56px; height: 56px; padding: 3px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 2px rgb(217 178 111 / .55); }
.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a:not(.btn) { font-size: 17px; text-decoration: none; color: var(--on-dark-soft); padding-block: 6px; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s; white-space: nowrap; }
.nav__links a:not(.btn):hover { color: var(--on-dark); }
.nav__links a.is-active { color: var(--on-dark); border-bottom-color: var(--ochre-300); }

.nav__toggle { display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 2px; background: currentColor; transition: transform .3s, top .3s; }
.nav__toggle span:first-child { top: 16px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 45; display: flex; flex-direction: column; gap: 4px;
  padding: 32px var(--gutter); background: var(--forest-950); color: var(--on-dark); overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font: 600 32px/1.35 var(--font-display); text-decoration: none; padding: 6px 0; border-bottom: 1px solid var(--rule-dark); }
.mobile-menu a:hover { color: var(--ochre-300); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding-block: calc(var(--nav-h) + clamp(40px, 8vh, 96px)) clamp(40px, 6vh, 64px);
  color: var(--on-dark); overflow: hidden; background: var(--forest-950);
}
.hero__inner { position: relative; }
.lockup { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); margin-bottom: clamp(16px, 2.6vh, 26px); }
.lockup__logo { flex-shrink: 0; width: clamp(68px, 7vw, 104px); aspect-ratio: 1; border-radius: 50%; background: var(--paper); padding: 4px; box-shadow: 0 0 0 3px rgb(217 178 111 / .7), 0 10px 30px -8px rgb(0 0 0 / .6); }
.lockup__logo img { width: 100%; height: 100%; }
.lockup__name { font: 700 clamp(28px, 3.4vw, 48px)/1.1 var(--font-display); color: var(--on-dark); letter-spacing: -.005em; }
.acronym {
  font: 400 clamp(20px, 2.1vw, 28px)/1.3 var(--font-display);
  margin-bottom: clamp(18px, 3vh, 28px); max-width: 900px;
}
.acronym b { font-weight: 800; color: var(--ochre-300); margin-right: .2em; }
.acronym u { text-decoration: none; font-weight: 800; color: var(--ochre-300); }
.hero__title {
  font: 600 clamp(40px, 5.6vw, 80px)/1.04 var(--font-display);
  letter-spacing: -.015em; margin-bottom: 28px;
}
/* padding gives descenders room inside the reveal mask; negative margin keeps line spacing */
.hero__title .line { display: block; overflow: hidden; padding-bottom: .16em; margin-bottom: -.16em; }
.hero__title .line > span { display: inline-block; }
.hero__title em { font-style: italic; font-weight: 500; color: var(--ochre-300); }
.hero__lede { max-width: 620px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.6; color: var(--on-dark-soft); margin-bottom: 32px; }
.hero__lede strong { color: var(--on-dark); font-weight: 700; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.award {
  position: relative; display: inline-flex; align-items: center; gap: 18px; width: fit-content;
  margin-top: clamp(40px, 7vh, 72px);
  margin-left: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
  margin-right: var(--gutter);
  padding: 14px 20px; border-radius: var(--radius);
  background: rgb(10 23 16 / .6); border: 1px solid var(--rule-dark);
  color: var(--on-dark); text-decoration: none; transition: border-color .2s;
}
.award:hover { border-color: var(--ochre-300); }
@media (min-width: 1001px) {
  /* Wide screens: sit to the right of the headline so it's visible on the first screen */
  .award {
    position: absolute; margin: 0;
    right: max(var(--gutter), calc((100% - var(--max)) / 2 + var(--gutter)));
    bottom: clamp(40px, 6vh, 64px);
    flex-direction: column; align-items: flex-start; gap: 14px; max-width: 280px; padding: 20px 22px;
  }
  .award__logo .natgeo { width: 170px; }
  .award__text { padding-left: 0; border-left: 0; }
}
.award__logo .natgeo { width: 128px; height: auto; color: var(--on-dark); }
.award__text { display: flex; flex-direction: column; gap: 2px; padding-left: 18px; border-left: 1px solid var(--rule-dark); }
.award__text b { font-size: 17px; font-weight: 700; }
.award__text span { font-size: 16px; color: var(--on-dark-soft); }

/* ============================================================
   At a glance
   ============================================================ */
.glance__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); }
/* No boxes: white text straight on the green, like the section title */
.glance__item { display: flex; flex-direction: column; gap: 14px; color: var(--on-dark); }
.glance__item h3 { font: 700 clamp(28px, 2.6vw, 34px)/1.2 var(--font-display); color: var(--on-dark); }
.glance__item p { color: var(--on-dark); font-size: 20px; line-height: 1.6; }
.glance__item strong { color: #fff; font-weight: 700; }
.glance__item .more { margin-top: auto; align-self: flex-start; color: var(--ochre-300); }

/* ============================================================
   Why
   ============================================================ */
.why__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.why__copy { display: grid; gap: 16px; margin-top: 22px; font-size: 19.5px; color: var(--ink-soft); }
.why__copy strong { color: var(--ink); font-weight: 700; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fact { padding: 28px; border-radius: var(--radius); background: var(--forest-800); color: var(--on-dark); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.fact--bark { background: var(--bark-800); }
.fact__num { font: 600 clamp(64px, 7vw, 96px)/1 var(--font-display); color: var(--ochre-300); letter-spacing: -.02em; }
.fact figcaption { font-size: 17px; line-height: 1.5; color: var(--on-dark-soft); }
.fact cite { display: block; margin-top: 8px; font-style: italic; font-size: 15px; color: var(--clay-400); }

/* ============================================================
   Goals
   ============================================================ */
.goals { background: var(--forest-800); }
.goal-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.goal-item { background: var(--forest-900); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; border-top: 4px solid var(--ochre-300); }
.goal-item__img { aspect-ratio: 4 / 3; overflow: hidden; }
.goal-item__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.goal-item:hover .goal-item__img img { transform: scale(1.04); }
.goal-item__body { padding: 28px 28px 32px; }
.goal-item__n { display: block; font: 700 56px/1 var(--font-display); color: var(--ochre-300); margin-bottom: 10px; }
.goal-item h3 { font: 700 30px/1.15 var(--font-display); color: var(--on-dark); margin-bottom: 10px; }
.goal-item p { font-size: 18px; color: var(--on-dark-soft); }

.target { margin-top: 40px; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 20px 48px; padding: 28px 32px; border-radius: var(--radius); background: var(--forest-900); border: 1px solid var(--rule-dark); }
.target h3 { font: 700 26px/1.2 var(--font-display); }
.target p { font-size: 17px; color: var(--on-dark-soft); margin-top: 4px; }
.target__bar { height: 14px; border-radius: 3px; background: rgb(243 236 223 / .12); overflow: hidden; }
.target__fill { display: block; height: 100%; width: calc(var(--p) * 100%); background: var(--ochre-300); transform-origin: left; }

/* ============================================================
   Impact
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
.stat { display: flex; flex-direction: column; padding-top: 22px; border-top: 1px solid var(--rule-dark); }
.stat dt { order: 2; font: 700 18px/1.3 var(--font-body); color: var(--on-dark); margin-top: 6px; }
.stat__value { order: 1; font: 600 clamp(56px, 6vw, 80px)/1 var(--font-display); color: var(--ochre-300); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat__note { order: 3; font-size: 16px; line-height: 1.5; color: var(--on-dark-soft); margin-top: 6px; }
.stat__note a { color: var(--ochre-300); }

.impact__lower { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px 64px; margin-top: 64px; align-items: start; }
.mini-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 24px; }
.mini-stats li { font-size: 17px; line-height: 1.4; color: var(--on-dark-soft); }
.mini-stats b { display: block; font: 600 36px/1.1 var(--font-display); color: var(--on-dark); margin-bottom: 4px; }
.chart figcaption { font: 700 22px/1.3 var(--font-display); margin-bottom: 18px; }
.bars { display: grid; gap: 14px; }
.bars li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; }
.bars__name { font-size: 17px; color: var(--on-dark-soft); }
.bars b { font: 700 19px/1 var(--font-display); color: var(--on-dark); }
.bars__track { grid-column: 1 / -1; height: 8px; border-radius: 2px; background: rgb(243 236 223 / .1); overflow: hidden; }
.bars__fill { display: block; height: 100%; width: calc(var(--v) / 480 * 100%); background: var(--moss-400); transform-origin: left; }
.bars li:first-child .bars__fill { background: var(--ochre-300); }

.recognition { display: flex; align-items: center; gap: 32px; margin-top: 24px; }
.recognition__logo .natgeo { width: 190px; height: auto; color: var(--on-dark); flex-shrink: 0; }
.recognition { align-items: flex-start; }
.recognition__body { max-width: 820px; }
.recognition h3 { font: 700 clamp(24px, 2.4vw, 30px)/1.2 var(--font-display); color: var(--on-dark); margin-bottom: 12px; }
.recognition p { font-size: 18.5px; color: var(--on-dark-soft); margin-bottom: 12px; }
.recognition__stats { display: flex; flex-wrap: wrap; gap: 12px 40px; margin-top: 22px; }
.recognition__stats li { display: flex; flex-direction: column; }
.slingshot { margin-top: 22px; }
.slingshot video { width: 100%; aspect-ratio: 16 / 9; border-radius: var(--radius); background: #000; box-shadow: 0 0 0 1px rgb(217 178 111 / .45), 0 24px 50px -20px rgb(0 0 0 / .7); }
.slingshot figcaption { margin-top: 10px; font: italic 400 17px/1.4 var(--font-display); color: var(--on-dark-soft); }
.recognition__stats b { font: 600 34px/1.1 var(--font-display); color: var(--ochre-300); }
.recognition__stats span { font-size: 15.5px; color: var(--on-dark-soft); }

/* ============================================================
   Team (tabs)
   ============================================================ */
.tabs__list { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.tabs__list [role="tab"] {
  display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px;
  border: 1px solid var(--cream-200); border-radius: var(--radius); background: var(--paper);
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .2s, border-color .2s;
}
.tabs__list [role="tab"]:hover { border-color: var(--moss-400); }
.tabs__list [role="tab"][aria-selected="true"] { background: var(--forest-800); border-color: var(--forest-800); color: var(--on-dark); }
.tabs__list img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; object-position: 50% 25%; }
.tabs__list b { display: block; font-size: 18px; font-weight: 700; line-height: 1.25; }
.tabs__list small { font-size: 15.5px; opacity: .75; }

.tabs__panel { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.tabs__panel[hidden] { display: none; }
.person__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.person__photo figcaption { margin-top: 10px; font-style: italic; font-size: 16px; color: var(--ink-soft); }
.person__body h3 { font: 700 clamp(32px, 3.6vw, 44px)/1.1 var(--font-display); color: var(--forest-800); }
.person__role { font: italic 400 21px/1.4 var(--font-display); color: var(--clay-500); margin: 4px 0 18px; }
.person__body > p:not(.person__role) { font-size: 19.5px; color: var(--ink-soft); }
.person__list { margin-top: 22px; display: grid; gap: 12px; }
.person__placeholder { font: italic 400 20px/1.5 var(--font-display) !important; color: var(--ink-soft); padding: 18px 20px; border: 1px dashed var(--cream-200); border-radius: var(--radius); background: var(--paper); }
.person__list li { position: relative; padding-left: 26px; font-size: 18.5px; color: var(--ink-soft); }
.person__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 10px; height: 10px; border-radius: 2px; background: var(--moss-400); }

/* ============================================================
   Projects
   ============================================================ */
/* Timeline: a center line that fills as you scroll, with a dot per event */
.timeline { position: relative; display: grid; gap: clamp(64px, 9vw, 120px); }
.timeline__line { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; transform: translateX(-50%); background: var(--cream-200); }
.timeline__progress { position: absolute; inset: 0; background: linear-gradient(180deg, var(--moss-500), var(--clay-400)); transform-origin: top; transform: scaleY(var(--tl, 0)); }
.event { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(56px, 9vw, 120px); align-items: center; }
.event:nth-of-type(even) .event__media { order: 2; }
.event__dot { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--paper); border: 2px solid var(--moss-500); z-index: 1; transition: background .4s, transform .5s var(--ease-out), box-shadow .5s; }
.event.is-in .event__dot { background: var(--moss-500); transform: scale(1.2); box-shadow: 0 0 0 7px rgb(79 110 61 / .18); }

.event__media { position: relative; height: clamp(260px, 30vw, 380px); }
.event__media img { position: absolute; object-fit: cover; border-radius: 6px; cursor: zoom-in; box-shadow: 0 18px 40px -18px rgb(20 14 8 / .45); transition: transform .7s var(--ease-out), box-shadow .5s; }
.event__media img:first-child { left: 0; top: 0; width: 78%; height: 84%; }
.event__media img:last-child { right: 0; bottom: 0; width: 44%; height: 56%; border: 5px solid var(--paper); transform: translateY(var(--py, 0px)); }
.event__media:hover img:first-child { transform: translateY(-4px) rotate(-.6deg); }
.event__media:hover img:last-child { transform: translateY(calc(var(--py, 0px) - 10px)) rotate(1.4deg); box-shadow: 0 26px 50px -18px rgb(20 14 8 / .55); }

.event__meta { font: italic 400 19px/1.4 var(--font-display); color: var(--clay-500); margin-bottom: 8px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tag { font: normal 700 13.5px/1.2 var(--font-body); padding: 5px 9px; border-radius: 4px; background: var(--forest-800); color: var(--ochre-300); }
.event h3 { font: 700 clamp(28px, 3vw, 36px)/1.15 var(--font-display); color: var(--forest-800); margin-bottom: 10px; }
.event__stats { font-size: 17.5px; color: var(--ink-soft); margin-bottom: 14px; }
.event__stats b { color: var(--forest-800); font-weight: 700; }
.event__stats i { font-style: normal; color: var(--clay-400); margin-inline: 4px; }
.event__body > p:not(.event__meta):not(.event__stats) { color: var(--ink-soft); font-size: 18.5px; margin-bottom: 12px; }
.event__body strong { color: var(--ink); }
.event__partners { font-size: 16.5px !important; color: var(--moss-500) !important; font-weight: 500; }

/* ============================================================
   Partners
   ============================================================ */
.logos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.logos li { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; min-width: 0; min-height: 220px; padding: 24px 16px; border-radius: var(--radius); background: var(--paper); text-align: center; }
.logos img { height: 110px; width: auto; max-width: 80%; object-fit: contain; }
.logos li > span:last-child { font-size: 16.5px; font-weight: 500; line-height: 1.35; color: var(--ink-soft); }
.logos__text { display: grid; place-items: center; height: 110px; font: 700 22px/1.15 var(--font-display); color: #500000; }

/* ============================================================
   Photos
   ============================================================ */
/* Sliding photo strips (full width, opposite directions, pause on hover) */
.strips { display: grid; gap: 12px; overflow: hidden; padding-block: 10px; }
.strip { display: flex; gap: 12px; width: max-content; animation: slide 90s linear infinite; }
.strip--rev { animation-direction: reverse; animation-duration: 110s; }
.strips:hover .strip { animation-play-state: paused; }
.strip button { flex-shrink: 0; padding: 0; border: 0; background: var(--forest-800); border-radius: 6px; overflow: hidden; cursor: zoom-in; transition: transform .5s var(--ease-out), box-shadow .5s; }
.strip img { height: clamp(170px, 20vw, 260px); width: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .8s var(--ease-out), filter .4s; filter: saturate(.92); }
.strip button:hover { transform: translateY(-6px); box-shadow: 0 0 0 2px var(--ochre-300), 0 16px 36px -10px rgb(0 0 0 / .6), 0 0 32px -6px rgb(217 178 111 / .5); }
.strip button:hover img { transform: scale(1.06); filter: saturate(1.1); }
@keyframes slide { to { transform: translateX(-50%); } }

.lightbox { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 24px; background: rgb(10 23 16 / .94); }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 100%); max-height: 86vh; border-radius: 6px; }
.lightbox__close { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 6px; border: 1px solid rgb(243 236 223 / .3); background: transparent; color: var(--on-dark); font-size: 28px; cursor: pointer; }

/* ============================================================
   Background research
   ============================================================ */
.sources { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.source { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--paper); border: 1px solid var(--cream-200); }
.source > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: 50% 30%; }
.source__body { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 28px; flex: 1; }
.source__org { font: italic 400 17.5px/1.35 var(--font-display); color: var(--clay-500); }
.source h3 { font: 700 25px/1.2 var(--font-display); color: var(--forest-800); }
.source__body > p:not(.source__org) { font-size: 18px; color: var(--ink-soft); }
.source blockquote { font: italic 400 19px/1.5 var(--font-display); color: var(--ink); padding-left: 16px; border-left: 3px solid var(--ochre-300); }
.source .more { margin-top: auto; align-self: flex-start; }

.books { margin-top: clamp(56px, 8vw, 88px); text-align: center; }
.books h3 { font: 700 34px/1.2 var(--font-display); color: var(--ink); }
.books__intro { margin: 12px auto 32px; max-width: 760px; font-size: 19px; color: var(--ink-soft); }
.shelf { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 20px; max-width: 1040px; margin-inline: auto; }
.shelf li { width: 148px; }
.shelf li { display: flex; flex-direction: column; gap: 4px; }
.shelf img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 2px rgb(20 14 8 / .15), 0 8px 18px -8px rgb(20 14 8 / .35); margin-bottom: 8px; }
.shelf b { font-size: 16px; line-height: 1.3; color: var(--ink); }
.section--dark .shelf img { box-shadow: 0 8px 22px -8px rgb(0 0 0 / .6); }
.shelf span { font-size: 15px; color: var(--ink-soft); }

/* ============================================================
   Join
   ============================================================ */
.join__grid { display: grid; grid-template-columns: 1fr 1.2fr; grid-template-areas: "event donate" "contact donate"; gap: 16px; }
.join__card--event { grid-area: event; }
.join__card--donate { grid-area: donate; }
.join__grid > .join__card:last-child { grid-area: contact; }
.join__card { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 30px; border-radius: var(--radius); background: rgb(10 23 16 / .7); border: 1px solid var(--rule-dark); }
.join__card--event { background: var(--forest-800); border-color: rgb(217 178 111 / .45); }
.join__card h3 { font: 700 27px/1.2 var(--font-display); }
.join__card p:not(.join__kicker) { color: var(--on-dark-soft); font-size: 18px; }
.join__card .btn { margin-top: auto; }
.join__kicker { font: italic 400 19px/1.3 var(--font-display); color: var(--ochre-300); }
.join__links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.join__links .btn { margin-top: 0; }
.join__card a { color: var(--ochre-300); }

/* Donation form */
.donate { display: grid; gap: 18px; width: 100%; margin-top: 6px; }
.donate__group { border: 0; margin: 0; padding: 0; min-width: 0; }
.donate legend, .donate__comment > span:first-child { font: 700 15px/1.3 var(--font-body); color: var(--on-dark); margin-bottom: 8px; padding: 0; }
.donate__options { display: flex; flex-wrap: wrap; gap: 8px; }
.donate__options label { position: relative; cursor: pointer; }
.donate__options input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.donate__options span {
  display: inline-flex; align-items: center; justify-content: center; min-width: 84px; padding: 11px 16px;
  border: 1px solid rgb(243 236 223 / .4); border-radius: 6px; background: rgb(10 23 16 / .45);
  font: 700 16px/1 var(--font-body); color: var(--on-dark); transition: background .2s, border-color .2s, color .2s, box-shadow .3s;
}
.donate__options label:hover span { border-color: var(--ochre-300); }
.donate__options input:checked + span { background: var(--ochre-300); border-color: var(--ochre-300); color: var(--forest-950); }
.donate__options input:focus-visible + span { outline: 2px solid var(--ochre-300); outline-offset: 3px; }
.donate__other { display: flex; align-items: center; gap: 6px; margin-top: 10px; max-width: 220px; }
.donate__other[hidden] { display: none; }
.donate__dollar { font: 700 18px/1 var(--font-body); color: var(--on-dark); }
.donate input[type="number"], .donate textarea {
  width: 100%; padding: 11px 12px; border-radius: 6px; border: 1px solid rgb(243 236 223 / .4);
  background: rgb(10 23 16 / .55); color: var(--on-dark); font: 400 17px/1.4 var(--font-body);
}
.donate input[type="number"]:focus, .donate textarea:focus { outline: 2px solid var(--ochre-300); outline-offset: 1px; border-color: transparent; }
.donate textarea { resize: vertical; min-height: 64px; }
.donate__comment { display: grid; gap: 0; }
.donate__count { justify-self: end; font-size: 14px; color: var(--on-dark-soft); margin-top: 4px; }
.donate__submit { justify-self: start; min-width: 180px; }
.donate__note { min-height: 1.4em; font-size: 15.5px; color: var(--on-dark-soft); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 84px; height: 92px; border-radius: 6px; background: var(--paper); color: var(--forest-900); }
.date__m { font: 700 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; color: var(--clay-500); }
.date__d { font: 700 42px/1 var(--font-display); margin-top: 6px; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--forest-950); color: var(--on-dark-soft); padding: 64px 0 32px; font-size: 17px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1.4fr 1fr; gap: 40px; align-items: start; padding-bottom: 40px; border-bottom: 1px solid var(--rule-dark); }
.footer__brand { display: flex; gap: 16px; align-items: center; }
.footer__brand b { color: var(--on-dark); font-weight: 700; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--ochre-300); }
.footer__contact { display: grid; gap: 8px; justify-items: start; }
.footer__fine { padding-top: 24px; font-size: 14px; line-height: 1.6; color: rgb(243 236 223 / .5); }
.footer__fine a { text-decoration: underline; text-underline-offset: 2px; }

/* ============================================================
   Hover: lift + warm glow
   ============================================================ */
.source, .logos li, .goal-item, .join__card, .fact, .tabs__list [role="tab"], .stat, .shelf li, .btn {
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out), border-color .3s, background .3s, color .3s;
}
.source:hover, .logos li:hover, .tabs__list [role="tab"]:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 44px -22px rgb(20 14 8 / .5), 0 0 0 1px rgb(217 178 111 / .75), 0 0 34px -8px rgb(217 178 111 / .55);
}
.goal-item:hover, .join__card:hover, .fact:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 50px -22px rgb(0 0 0 / .7), 0 0 0 1px rgb(217 178 111 / .6), 0 0 40px -6px rgb(217 178 111 / .4);
}
.stat:hover { transform: translateY(-4px); }
.stat:hover .stat__value { text-shadow: 0 0 28px rgb(217 178 111 / .55); }
.stat__value { transition: text-shadow .5s; }
.shelf li:hover { transform: translateY(-8px) rotate(-1deg); }
.shelf li:hover img { box-shadow: 0 0 0 2px var(--ochre-300), 0 18px 32px -10px rgb(0 0 0 / .6), 0 0 30px -6px rgb(217 178 111 / .55); }
.source > img { transition: transform 1s var(--ease-out); }
.source:hover > img { transform: scale(1.04); }
.goal-item__img img, .source > img { will-change: transform; }
.btn:hover { transform: translateY(-2px); }
.btn--light:hover { box-shadow: 0 10px 24px -8px rgb(217 178 111 / .6); }

/* Dark panels behind dense text so the footage around them can stay bright */
.impact .stats, .impact .impact__lower, .impact .recognition, .why__grid > div:first-child {
  /* No backdrop blur: it made the footage behind the panels look out of focus */
  background: rgb(10 23 16 / .8); border: 1px solid var(--rule-dark); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 36px);
}
.impact .impact__lower { margin-top: 24px; }
.impact .stats .stat { border-top: 0; padding-top: 0; }

/* Text sitting directly on video */
/* Lighter overlays, so lean on a stronger shadow to keep text crisp */
.hero, .section--city, .impact, .join { text-shadow: 0 1px 2px rgb(0 0 0 / .45), 0 2px 18px rgb(0 0 0 / .55); }
.source, .logos li, .btn, .fact { text-shadow: none; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1120px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
}

@media (max-width: 1000px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
  .impact__lower { grid-template-columns: 1fr; }
  .join__grid { grid-template-columns: 1fr 1fr; grid-template-areas: "donate donate" "event contact"; }
  .logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .glance__grid, .why__grid, .goal-list, .sources, .tabs__panel { grid-template-columns: 1fr; }
  .goal-item { display: grid; grid-template-columns: 40% 1fr; }
  .goal-item__img { aspect-ratio: auto; }
  .target { grid-template-columns: 1fr; }
  .tabs__panel .person__photo { max-width: 460px; }
  .timeline__line { left: 9px; transform: none; }
  .event { grid-template-columns: 1fr; gap: 28px; padding-left: 42px; }
  .event:nth-of-type(even) .event__media { order: 0; }
  .event__dot { left: 9px; top: 4px; margin: 0 0 0 -8px; }
  .recognition { flex-direction: column; align-items: flex-start; gap: 20px; }
}

@media (max-width: 640px) {
  body { font-size: 17.5px; }
  /* Text spans the full width on phones, so darken evenly instead of from the left */
  .vbg__shade--hero { background: linear-gradient(180deg, rgb(10 23 16 / .45), rgb(10 23 16 / .35) 50%, rgb(10 23 16 / .55)); }
  .vbg__shade--city { background: rgb(10 23 16 / .5); }
  .award { flex-direction: column; align-items: flex-start; gap: 12px; }
  .award__text { padding-left: 0; border-left: 0; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .facts { grid-template-columns: 1fr; }
  .goal-item { display: flex; }
  .goal-item__img { aspect-ratio: 16 / 9; }
  .target { padding: 22px; }
  .stats { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: 1fr 1fr; }
  .tabs__list { flex-direction: column; }
  .tabs__list [role="tab"] { width: 100%; }
  .event__media { height: 240px; }
  .strip img { height: 150px; }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .logos li { min-height: 180px; padding: 18px 12px; }
  .logos img, .logos__text { height: 72px; }
  .source__body { padding: 22px; }
  .shelf li { width: calc(50% - 10px); }
  .join__grid { grid-template-columns: 1fr; grid-template-areas: "donate" "event" "contact"; }
  .donate__options span { min-width: 72px; padding: 11px 12px; }
  .footer__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
