/* ==========================================================================
   HILLSIDE — design system
   A New York charity, est. 2026.

   Layers: fonts → tokens → reset → base type → primitives → header/footer
   → home sections → subpages → gallery → lightbox → motion → a11y.
   Square corners. Warm paper. Moody forest. Nothing decorative that
   doesn't earn its place.
   ========================================================================== */

/* ----------------------------------------------------------------------
   1 · Fonts (self-hosted variable files, no third-party request chain)
   ---------------------------------------------------------------------- */

@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/Newsreader-Italic-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("../fonts/DMSans-Variable.woff2") format("woff2");
  font-weight: 100 1000;
  font-style: normal;
  font-display: swap;
}

/* ----------------------------------------------------------------------
   2 · Tokens
   ---------------------------------------------------------------------- */

:root {
  /* Brand color */
  --forest:       #1F3D2A;
  --forest-deep:  #16301F;
  --forest-night: #0F2015;   /* film section, lightbox scrim base */
  --forest-soft:  #2A4A36;
  --cream:        #F4EFE6;
  --cream-deep:   #EDE7D9;
  --cream-warm:   #F8F4EC;   /* raised surfaces on cream */
  --mist:         #1B2A47;
  --ink:          #1A2419;
  --stone:        #6B6253;
  --stone-soft:   #C9C0AE;

  /* Semantic */
  --bg:           var(--cream);
  --fg:           var(--ink);
  --fg-muted:     var(--stone);
  --rule:         rgba(107, 98, 83, 0.24);
  --rule-strong:  rgba(107, 98, 83, 0.42);
  --rule-cream:   rgba(244, 239, 230, 0.16);
  --rule-cream-strong: rgba(244, 239, 230, 0.32);

  /* Type */
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans:  "DM Sans", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

  --fs-hero:      clamp(2.85rem, 8.2vw, 7rem);
  --fs-display:   clamp(2.35rem, 5.6vw, 4.75rem);
  --fs-title:     clamp(1.85rem, 4vw, 3.25rem);
  --fs-heading:   clamp(1.4rem, 2.6vw, 2rem);
  --fs-lede:      clamp(1.1rem, 1.6vw, 1.3rem);
  --fs-body:      1.0625rem;
  --fs-small:     0.875rem;
  --fs-label:     0.72rem;

  --lh-display:   1.02;
  --lh-title:     1.08;
  --lh-body:      1.62;

  --track-label:  0.22em;
  --track-display:-0.015em;

  /* Space */
  --s1: 0.25rem;  --s2: 0.5rem;  --s3: 0.75rem; --s4: 1rem;
  --s5: 1.5rem;   --s6: 2rem;    --s7: 3rem;    --s8: 4rem;
  --s9: 6rem;     --s10: 8rem;

  --section-y: clamp(5.5rem, 11vw, 11rem);
  --gutter:    clamp(1.25rem, 4vw, 4rem);
  --measure:   62ch;

  /* Motion */
  --ease-out:   cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-inout: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-reveal:cubic-bezier(0.19, 1, 0.22, 1);
  --t-fast: 180ms;
  --t-med:  320ms;
  --t-slow: 800ms;

  /* Chrome */
  --header-h: 4.5rem;

  accent-color: var(--forest);
  color-scheme: light;
}

/* ----------------------------------------------------------------------
   3 · Reset & base
   ---------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea { font: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; margin: 0; padding: 0; }

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

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
  border-radius: 1px;
}
.on-forest :focus-visible, .bg-forest :focus-visible { outline-color: var(--cream); }

/* Cross-document view transitions (progressive; Chrome/Safari) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation-duration: 200ms; }
::view-transition-new(root) { animation-duration: 260ms; }

/* ----------------------------------------------------------------------
   4 · Type
   ---------------------------------------------------------------------- */

h1, h2, h3, h4 { margin: 0; font-family: var(--serif); font-optical-sizing: auto; }

.t-hero {
  font-size: var(--fs-hero);
  font-weight: 420;
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  text-wrap: balance;
}
/* Single-word hero (the name) — can run larger than a sentence */
.t-hero--name {
  font-size: clamp(3.4rem, 11vw, 9.5rem);
  font-weight: 440;
  letter-spacing: -0.02em;
}
.t-display {
  font-size: var(--fs-display);
  font-weight: 440;
  line-height: var(--lh-display);
  letter-spacing: var(--track-display);
  text-wrap: balance;
}
.t-title {
  font-size: var(--fs-title);
  font-weight: 460;
  line-height: var(--lh-title);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.t-heading {
  font-size: var(--fs-heading);
  font-weight: 500;
  line-height: 1.2;
  text-wrap: balance;
}

p { margin: 0 0 1em; max-width: var(--measure); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.55;
  font-weight: 400;
  max-width: 56ch;
}

.label {
  display: block;
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--forest);
}
.on-forest .label { color: var(--stone-soft); }

.meta {
  font-size: var(--fs-small);
  color: var(--fg-muted);
}

em, .italic { font-family: var(--serif); font-style: italic; }

.num { font-variant-numeric: tabular-nums lining-nums; }

/* Inline links — underline draws in from the left */
.link {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 calc(100% - 0.08em);
  background-size: 0% 1px;
  transition: background-size var(--t-med) var(--ease-out);
}
.link:hover { background-size: 100% 1px; }

/* Arrow links — the arrow leads on hover */
.arrow-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5em;
  color: inherit;
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.arrow-link .arrow { transition: translate var(--t-med) var(--ease-out); }
.arrow-link:hover .arrow { translate: 0.35em 0; }
.arrow-link::after {
  content: "";
  position: absolute; inset: -0.5em -0.75em;  /* generous hit area */
}
.arrow-link { position: relative; }

/* ----------------------------------------------------------------------
   5 · Primitives
   ---------------------------------------------------------------------- */

.container {
  max-width: 90rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--text { max-width: 68rem; }

.section { padding-block: var(--section-y); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  padding: 1.05em 1.9em;
  background: var(--forest);
  color: var(--cream);
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid var(--forest);
  transition: background-color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out);
}
.btn:hover { background: var(--forest-deep); border-color: var(--forest-deep); }
.btn:active { transform: translateY(1px); }

.btn--ghost {
  background: transparent;
  color: var(--forest);
  border-color: currentColor;
}
.btn--ghost:hover { background: var(--forest); color: var(--cream); }

.btn--cream {
  background: var(--cream);
  color: var(--forest);
  border-color: var(--cream);
}
.btn--cream:hover { background: var(--cream-deep); border-color: var(--cream-deep); color: var(--forest-deep); }

.hairline    { border: 0; border-top: 1px solid var(--rule); margin: 0; }
.on-forest .hairline { border-top-color: var(--rule-cream); }

.bg-forest { background: var(--forest); color: var(--cream); }
.bg-night  { background: var(--forest-night); color: var(--cream); }
.bg-deep   { background: var(--cream-deep); }

/* ----------------------------------------------------------------------
   6 · Header
   ---------------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color var(--t-med) var(--ease-out),
              box-shadow var(--t-med) var(--ease-out);
}
.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s6);
}

.site-header__mark { display: inline-flex; align-items: center; text-decoration: none; }
.site-header__mark img { height: 1.05rem; width: auto; }
.site-header__mark .wordmark--ink { display: none; }

.site-nav { display: flex; align-items: center; gap: clamp(1.25rem, 2.5vw, 2.5rem); }
.site-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  background-image: linear-gradient(currentColor, currentColor);
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size var(--t-med) var(--ease-out);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background-size: 100% 1px; }

.site-nav .nav-cta {
  padding: 0.6em 1.3em;
  border: 1px solid var(--rule-cream-strong);
  background-image: none;
  transition: background-color var(--t-fast) var(--ease-out),
              border-color var(--t-fast) var(--ease-out),
              color var(--t-fast) var(--ease-out);
}
.site-nav .nav-cta:hover { background: var(--cream); border-color: var(--cream); color: var(--forest); }

/* Solid state — after scroll, or on pages without a dark hero */
.site-header.is-solid,
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 var(--rule);
}
.site-header.is-solid .site-nav a,
.site-header.is-scrolled .site-nav a { color: var(--ink); }
.site-header.is-solid .site-nav .nav-cta,
.site-header.is-scrolled .site-nav .nav-cta { border-color: var(--forest); color: var(--forest); }
.site-header.is-solid .site-nav .nav-cta:hover,
.site-header.is-scrolled .site-nav .nav-cta:hover { background: var(--forest); color: var(--cream); }
.site-header.is-solid .wordmark--cream,
.site-header.is-scrolled .wordmark--cream { display: none; }
.site-header.is-solid .wordmark--ink,
.site-header.is-scrolled .wordmark--ink { display: inline; }

/* Menu button — mobile only */
.menu-btn {
  display: none;
  align-items: center;
  gap: 0.6em;
  color: var(--cream);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  padding: 0.5em 0;
}
.site-header.is-solid .menu-btn,
.site-header.is-scrolled .menu-btn { color: var(--ink); }
.menu-btn__icon {
  display: inline-block;
  width: 1.4rem;
  height: 2px;
  background: currentColor;
  position: relative;
  transition: background-color var(--t-fast);
}
.menu-btn__icon::before, .menu-btn__icon::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform var(--t-med) var(--ease-out), top var(--t-med) var(--ease-out);
}
.menu-btn__icon::before { top: -6px; }
.menu-btn__icon::after  { top: 6px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--forest-deep);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-med) var(--ease-out), visibility 0s linear var(--t-med);
}
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.mobile-menu__links { display: flex; flex-direction: column; gap: var(--s4); }
.mobile-menu__links a {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 9vw, 3.4rem);
  font-weight: 440;
  line-height: 1.15;
  color: var(--cream);
  text-decoration: none;
  opacity: 0;
  translate: 0 18px;
  transition: opacity 480ms var(--ease-reveal), translate 480ms var(--ease-reveal);
}
.mobile-menu.is-open .mobile-menu__links a { opacity: 1; translate: 0 0; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: 50ms; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: 100ms; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: 150ms; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(5) { transition-delay: 200ms; }
.mobile-menu__foot {
  position: absolute;
  bottom: calc(var(--gutter) + env(safe-area-inset-bottom, 0px));
  left: var(--gutter);
  color: var(--stone-soft);
  font-size: var(--fs-small);
}
.mobile-menu__close {
  position: absolute;
  top: 1.35rem;
  right: var(--gutter);
  color: var(--cream);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  padding: 0.5em;
}

body.menu-open { overflow: hidden; }

@media (max-width: 760px) {
  .site-nav { display: none; }
  .menu-btn { display: inline-flex; }
}

/* ----------------------------------------------------------------------
   7 · Footer
   ---------------------------------------------------------------------- */

.site-footer {
  background: var(--forest-deep);
  color: var(--cream);
  padding-block: var(--s9) var(--s7);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--s7) var(--s6);
  padding-bottom: var(--s8);
}
.site-footer__brand img { height: 1.15rem; width: auto; margin-bottom: var(--s4); }
.site-footer__brand p { color: var(--stone-soft); font-size: var(--fs-small); max-width: 30ch; }
.site-footer__col h3 {
  font-family: var(--sans);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--stone-soft);
  margin-bottom: var(--s4);
}
.site-footer__col ul { display: grid; gap: var(--s2); }
.site-footer__col a { font-size: var(--fs-small); }
.site-footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--s3) var(--s6);
  padding-top: var(--s6);
  border-top: 1px solid var(--rule-cream);
  color: var(--stone-soft);
  font-size: 0.8125rem;
}
@media (max-width: 860px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .site-footer__grid { grid-template-columns: 1fr; gap: var(--s6); }
}

/* ----------------------------------------------------------------------
   8 · Home — hero
   ---------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--cream);
  overflow: clip;
  background: var(--forest-night);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1400ms var(--ease-inout);
}
.hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__slide.is-active { opacity: 1; }
/* slow drift on the active plate */
.hero__slide.is-active img { animation: hero-drift 8.5s var(--ease-out) forwards; }
@keyframes hero-drift {
  from { scale: 1; }
  to   { scale: 1.055; }
}

/* Opening film — plays once, silent, then dissolves to the still.
   While the film is "armed" (set synchronously in <head> before first paint),
   the still, copy and scrim are all held offstage so nothing flashes before
   the video. Removing .film-armed fades them all in together at the end. */
.hero__film {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms var(--ease-inout);
}
.hero__film.is-playing { opacity: 1; }
.hero__film.is-done { opacity: 0; }

.hero__slide img { transition: opacity 800ms var(--ease-inout); }
.hero__content { transition: opacity 800ms var(--ease-inout), translate 800ms var(--ease-inout); }

.film-armed .hero__slide.is-active img { opacity: 0; }
.film-armed .hero__content { opacity: 0; translate: 0 14px; }
.film-armed .hero__scrim { opacity: 0; }

.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(15, 32, 21, 0.82) 0%, rgba(15, 32, 21, 0.28) 38%, rgba(15, 32, 21, 0.12) 60%, rgba(15, 32, 21, 0.38) 100%);
  transition: opacity 800ms var(--ease-inout);
}
/* Mobile: keep the full-bleed overlay, but thin the stack — fewer elements
   over the photo reads calm; the dates live in the recap section anyway. */
@media (max-width: 760px) {
  .hero__scrim {
    background:
      linear-gradient(to top, rgba(15, 32, 21, 0.92) 0%, rgba(15, 32, 21, 0.6) 42%, rgba(15, 32, 21, 0.22) 66%, rgba(15, 32, 21, 0.42) 100%);
  }
  /* tight stack, pinned low on the image */
  .hero__content { gap: var(--s3); padding-bottom: calc(var(--s4) + env(safe-area-inset-bottom, 0px)); }
  .hero__sub { margin-bottom: 0; }
  .t-hero { font-size: clamp(2.5rem, 11.5vw, 2.85rem); }
  .t-hero--name { font-size: clamp(3.2rem, 16.5vw, 4.2rem); line-height: 1; }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: clamp(2.5rem, 6vh, 4.5rem);
  display: grid;
  gap: var(--s5);
}
.hero__eyebrow { color: var(--stone-soft); }
.hero__sub {
  font-size: var(--fs-lede);
  line-height: 1.5;
  max-width: 44ch;
  color: color-mix(in srgb, var(--cream) 88%, transparent);
}
.hero__row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5) var(--s7);
}
.hero__meta {
  display: grid;
  gap: 0.35em;
  font-size: var(--fs-small);
  color: var(--stone-soft);
  text-align: right;
}
.hero__dots { position: absolute; top: calc(var(--header-h) + 0.5rem); right: var(--gutter); z-index: 2; display: flex; gap: 0.5rem; }
.hero__dot {
  width: 1.4rem; height: 2px;
  background: var(--rule-cream-strong);
  transition: background-color var(--t-med);
}
.hero__dot.is-active { background: var(--cream); }
@media (max-width: 760px) {
  .hero__meta { display: none; }
}

/* ----------------------------------------------------------------------
   9 · Home — about, pullquote
   ---------------------------------------------------------------------- */

.about__grid {
  display: grid;
  grid-template-columns: minmax(280px, 5fr) 7fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.about__photo { position: relative; }
.about__photo img { width: 100%; }
.about__photo figcaption {
  margin-top: var(--s3);
  font-size: var(--fs-small);
  color: var(--fg-muted);
}
.about__copy { display: grid; gap: var(--s5); justify-items: start; }
@media (max-width: 860px) {
  .about__grid { grid-template-columns: 1fr; }
  .about__photo { max-width: 26rem; }
}

.pullquote {
  margin: 0;
  display: grid;
  gap: var(--s6);
  justify-items: center;
  text-align: center;
}
.pullquote__text {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 380;
  font-size: clamp(1.6rem, 3.4vw, 2.9rem);
  line-height: 1.3;
  max-width: 28ch;
  hanging-punctuation: first;
  text-wrap: balance;
}
.pullquote__cite {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: var(--s4);
  font-size: var(--fs-small);
  color: var(--fg-muted);
}
.pullquote__cite::before, .pullquote__cite::after {
  content: "";
  width: 3rem;
  height: 1px;
  background: var(--rule-strong);
}

/* ----------------------------------------------------------------------
   9b · Photo interludes — moments between the words
   ---------------------------------------------------------------------- */

.strip3 { padding-block: clamp(3rem, 7vw, 6rem); }
.strip3__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(0.5rem, 1.4vw, 1.25rem);
}
.strip3__grid a {
  display: block;
  overflow: clip;
  aspect-ratio: 3 / 4;
  background: var(--cream-deep);
}
.strip3__grid a:nth-child(2) { translate: 0 clamp(1rem, 3vw, 2.5rem); }
.strip3__grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--ease-out);
}
.strip3__grid a:hover img { scale: 1.04; }
.strip3__grid { padding-bottom: clamp(1rem, 3vw, 2.5rem); }

.interlude {
  display: block;
  position: relative;
  overflow: clip;
  height: clamp(320px, 62vh, 640px);
}
.interlude img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: scale 1.6s var(--ease-out);
}
.interlude:hover img { scale: 1.025; }

/* ----------------------------------------------------------------------
   10 · Home — the 2026 event
   ---------------------------------------------------------------------- */

.recap__head { display: grid; gap: var(--s5); justify-items: start; margin-bottom: var(--s8); }

.recap__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  margin-bottom: var(--s9);
}
.recap__stat {
  padding: var(--s6) var(--s5) var(--s6) 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  align-content: start;
  gap: var(--s2);
}
.recap__stat + .recap__stat { border-left: 1px solid var(--rule); padding-left: var(--s5); }
.recap__stat-num {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4.5rem);
  font-weight: 420;
  line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.recap__stat-label { color: var(--fg-muted); font-size: var(--fs-small); }
@media (max-width: 760px) {
  .recap__stats { grid-template-columns: 1fr 1fr; }
  .recap__stat,
  .recap__stat + .recap__stat {
    justify-items: center;
    text-align: center;
    padding: var(--s6) var(--s3);
  }
  .recap__stat:nth-child(3) { border-left: 0; }
  .recap__stat:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
}

.recap__collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(0.75rem, 1.6vw, 1.5rem);
  align-items: start;
}
.recap__collage figure { position: relative; overflow: clip; }
.recap__collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--ease-out);
}
.recap__collage a:hover img { scale: 1.04; }
.recap__collage figcaption {
  margin-top: var(--s3);
  font-size: var(--fs-small);
  color: var(--fg-muted);
}
.recap__c1 { grid-column: 1 / 8;  aspect-ratio: 3 / 2; }
.recap__c2 { grid-column: 8 / 13; aspect-ratio: 4 / 5; margin-top: var(--s9); }
.recap__c3 { grid-column: 1 / 6;  aspect-ratio: 4 / 5; margin-top: calc(-1 * var(--s8)); }
.recap__c4 { grid-column: 6 / 13; aspect-ratio: 3 / 2; margin-top: var(--s7); }
.recap__c1 > a, .recap__c2 > a, .recap__c3 > a, .recap__c4 > a { display: block; height: 100%; overflow: clip; }
@media (max-width: 760px) {
  .recap__collage { grid-template-columns: 1fr; gap: var(--s4); }
  .recap__c1, .recap__c2, .recap__c3, .recap__c4 { grid-column: 1 / -1; margin-top: 0; }
}

.recap__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s4);
  margin-top: var(--s8);
}
.recap__credit { color: var(--fg-muted); font-size: var(--fs-small); }

/* ----------------------------------------------------------------------
   11 · Home — the film (dark cinematic band)
   ---------------------------------------------------------------------- */

.film { position: relative; }
.film__head { display: grid; gap: var(--s5); justify-items: start; margin-bottom: var(--s8); }
.film__credit { margin-top: var(--s6); color: var(--stone-soft); font-size: var(--fs-small); }
.film__grid {
  display: grid;
  grid-template-columns: 8fr 4fr;
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: stretch;
}
.film__main { position: relative; }
.film__shorts {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: clamp(1rem, 2.5vw, 2rem);
}

.film-card {
  position: relative;
  display: block;
  width: 100%;
  overflow: clip;
  background: var(--forest-deep);
  text-align: left;
}
.film-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.92;
  transition: scale 1.4s var(--ease-out), opacity var(--t-med);
}
.film-card:hover img { scale: 1.03; opacity: 1; }
.film-card--main { aspect-ratio: 16 / 9; }
.film-card--short { aspect-ratio: 16 / 10; }
.film-card__scrim {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15,32,21,0.72), rgba(15,32,21,0.06) 52%);
}
.film-card__label {
  position: absolute;
  left: var(--s5);
  right: var(--s5);
  bottom: var(--s5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  color: var(--cream);
}
.film-card__title { font-family: var(--serif); font-size: 1.35rem; font-weight: 460; }
.film-card--main .film-card__title { font-size: clamp(1.5rem, 2.6vw, 2.2rem); }
.film-card__dur { font-size: var(--fs-small); color: var(--stone-soft); font-variant-numeric: tabular-nums; }

.play-badge {
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: clamp(3.5rem, 7vw, 5rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid var(--rule-cream-strong);
  background: color-mix(in srgb, var(--forest-night) 45%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  transition: background-color var(--t-med) var(--ease-out), scale var(--t-med) var(--ease-out);
}
.play-badge::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 0.55em 0 0.55em 0.95em;
  border-color: transparent transparent transparent var(--cream);
  margin-left: 0.15em;
}
.film-card:hover .play-badge { background: var(--forest); scale: 1.06; }

@media (max-width: 860px) {
  .film__grid { grid-template-columns: 1fr; }
  .film__shorts { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .film-card--short { aspect-ratio: 4 / 5; }
}
@media (max-width: 480px) {
  .film__shorts { grid-template-columns: 1fr 1fr; }
}

/* ----------------------------------------------------------------------
   12 · Home — gallery teaser
   ---------------------------------------------------------------------- */

.gteaser__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s5);
  margin-bottom: var(--s7);
}
.gteaser__strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.5rem, 1vw, 0.9rem);
}
.gteaser__strip a {
  display: block;
  overflow: clip;
  aspect-ratio: 3 / 4;
  background: var(--cream-deep);
}
.gteaser__strip img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: scale 1.2s var(--ease-out);
}
.gteaser__strip a:hover img { scale: 1.05; }
.gteaser__strip a:nth-child(even) { translate: 0 var(--s6); }
.gteaser__strip { padding-bottom: var(--s6); }
@media (max-width: 760px) {
  .gteaser__strip { grid-template-columns: repeat(3, 1fr); }
  .gteaser__strip a:nth-child(n+4) { display: none; }
}

/* ----------------------------------------------------------------------
   13 · Home — stay close (email) & donate band
   ---------------------------------------------------------------------- */

.stay__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.stay__col { display: grid; gap: var(--s5); justify-items: start; }
.stay__form { width: 100%; max-width: 26rem; display: grid; gap: var(--s4); }
.stay__field {
  display: flex;
  align-items: center;
  gap: var(--s3);
  border-bottom: 1px solid var(--rule-strong);
  transition: border-color var(--t-fast);
}
.stay__field:focus-within { border-bottom-color: var(--forest); }
.stay__field input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  padding: 0.85em 0;
  color: var(--ink);
  min-width: 0;
}
.stay__field input::placeholder { color: var(--fg-muted); }
.stay__field button {
  font-weight: 500;
  color: var(--forest);
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.5em 0;
  white-space: nowrap;
}
.stay__field button .arrow { transition: translate var(--t-med) var(--ease-out); }
.stay__field button:hover .arrow { translate: 0.3em 0; }
.stay__thanks { color: var(--forest); font-weight: 500; }
.stay__next dt {
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: var(--s2);
}
.stay__next dd { margin: 0 0 var(--s5); font-family: var(--serif); font-size: 1.3rem; }
@media (max-width: 760px) {
  .stay__grid { grid-template-columns: 1fr; }
}

.donate-band { text-align: center; }
.donate-band .container { display: grid; gap: var(--s6); justify-items: center; }
.donate-band__body { max-width: 46ch; color: color-mix(in srgb, var(--cream) 82%, transparent); }
.donate-band__actions { display: flex; flex-wrap: wrap; gap: var(--s5); align-items: center; justify-content: center; }
.donate-band__tax { font-size: 0.8125rem; color: var(--stone-soft); max-width: 52ch; }

/* ----------------------------------------------------------------------
   14 · Subpages — shared hero
   ---------------------------------------------------------------------- */

.subhero {
  padding-top: calc(var(--header-h) + clamp(3rem, 8vw, 6rem));
  padding-bottom: clamp(2.5rem, 6vw, 5rem);
}
/* Match the body's text measure so the hero and content share a left edge */
.subhero .container { display: grid; gap: var(--s5); justify-items: start; max-width: 68rem; }
.subhero__lede { max-width: 58ch; }

/* Foundation page */
.bio__grid {
  display: grid;
  grid-template-columns: minmax(260px, 4fr) 7fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: start;
}
.bio__photo img { width: 100%; }
.bio__photo figcaption { margin-top: var(--s3); font-size: var(--fs-small); color: var(--fg-muted); }
.bio__copy { display: grid; gap: var(--s5); justify-items: start; }
@media (max-width: 860px) {
  .bio__grid { grid-template-columns: 1fr; }
  .bio__photo { max-width: 24rem; }
}

.tenband { text-align: center; }
.tenband .container { display: grid; gap: var(--s5); justify-items: center; }
.tenband__num {
  font-family: var(--serif);
  font-size: clamp(6rem, 18vw, 13rem);
  font-weight: 380;
  line-height: 0.9;
  color: var(--cream);
}
.tenband__body { max-width: 58ch; color: color-mix(in srgb, var(--cream) 85%, transparent); font-size: var(--fs-lede); line-height: 1.55; }

.timeline { display: grid; gap: 0; margin-top: var(--s7); }
.timeline__item {
  display: grid;
  grid-template-columns: 8rem 1fr;
  gap: var(--s6);
  padding-block: var(--s6);
  border-top: 1px solid var(--rule);
}
.timeline__year {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 460;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.timeline__body strong { display: block; font-weight: 600; margin-bottom: var(--s2); }
.timeline__body p { color: var(--fg-muted); max-width: 58ch; }
@media (max-width: 640px) {
  .timeline__item { grid-template-columns: 1fr; gap: var(--s2); }
}

.impact-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--rule);
  margin-top: var(--s7);
}
.impact-stats > div {
  padding: var(--s6) var(--s5) var(--s6) 0;
  border-bottom: 1px solid var(--rule);
  display: grid;
  gap: var(--s2);
  align-content: start;
}
.impact-stats > div + div { border-left: 1px solid var(--rule); padding-left: var(--s5); }
.impact-stats .impact-num {
  font-family: var(--serif);
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 420;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.impact-stats .impact-label { color: var(--fg-muted); font-size: var(--fs-small); }
@media (max-width: 860px) {
  .impact-stats { grid-template-columns: 1fr 1fr; }
  .impact-stats > div:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 480px) {
  .impact-stats { grid-template-columns: 1fr; }
  .impact-stats > div { border-left: 0 !important; padding-left: 0 !important; }
}

.cta-final { text-align: center; }
.cta-final .container { display: grid; gap: var(--s6); justify-items: center; }
.cta-final__actions { display: flex; flex-wrap: wrap; gap: var(--s5); justify-content: center; align-items: center; }

/* Sponsors page */
.sponsor-list {
  columns: 2;
  column-gap: clamp(2rem, 6vw, 6rem);
  margin-top: var(--s7);
}
.sponsor-list li {
  break-inside: avoid;
  padding: var(--s4) 0;
  border-bottom: 1px solid var(--rule);
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1.8vw, 1.5rem);
  font-weight: 440;
}
.sponsor-list li span { display: block; font-family: var(--sans); font-size: var(--fs-small); color: var(--fg-muted); margin-top: 2px; }
@media (max-width: 640px) { .sponsor-list { columns: 1; } }
.sponsors-note { margin-top: var(--s6); color: var(--fg-muted); font-style: italic; font-family: var(--serif); font-size: 1.1rem; }

/* Donate page */
.give-ladder { margin-top: var(--s7); border-top: 1px solid var(--rule); }
.give-row {
  display: grid;
  grid-template-columns: 8rem 1fr auto;
  align-items: baseline;
  gap: var(--s6);
  padding: var(--s6) 0;
  border-bottom: 1px solid var(--rule);
  text-decoration: none;
  color: inherit;
  transition: padding-left var(--t-med) var(--ease-out);
}
.give-row:hover { padding-left: var(--s4); }
.give-row__amt {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  font-weight: 440;
  font-variant-numeric: tabular-nums;
}
.give-row__note { color: var(--fg-muted); }
.give-row .arrow { color: var(--forest); font-size: 1.3rem; transition: translate var(--t-med) var(--ease-out); }
.give-row:hover .arrow { translate: 0.4em 0; }
@media (max-width: 640px) {
  .give-row { grid-template-columns: 5.5rem 1fr auto; gap: var(--s4); }
}

.give-ledger { margin-top: var(--s7); display: grid; gap: 0; border-top: 1px solid var(--rule); }
.give-ledger > div {
  display: grid;
  grid-template-columns: minmax(10rem, 16rem) 1fr;
  gap: var(--s6);
  padding: var(--s5) 0;
  border-bottom: 1px solid var(--rule);
}
.give-ledger dt { font-weight: 600; }
.give-ledger dd { margin: 0; color: var(--fg-muted); max-width: 58ch; }
@media (max-width: 640px) {
  .give-ledger > div { grid-template-columns: 1fr; gap: var(--s2); }
}

/* ----------------------------------------------------------------------
   15 · Gallery page
   ---------------------------------------------------------------------- */

.ghero { padding-top: calc(var(--header-h) + clamp(2.5rem, 7vw, 5.5rem)); padding-bottom: clamp(2rem, 5vw, 4rem); }
.ghero .container { display: grid; gap: var(--s5); justify-items: start; }
.ghero__meta { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); color: var(--fg-muted); font-size: var(--fs-small); }

/* Chapter rail — sticky under header */
.chapters {
  position: sticky;
  top: var(--header-h);
  z-index: 30;
  background: color-mix(in srgb, var(--cream) 92%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-block: 1px solid var(--rule);
}
.chapters__inner {
  display: flex;
  gap: clamp(1.25rem, 3vw, 2.75rem);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.chapters__inner::-webkit-scrollbar { display: none; }
.chapters a {
  flex: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.55em;
  padding: 0.95rem 0;
  color: var(--fg-muted);
  text-decoration: none;
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: 0.04em;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
}
.chapters a .count { font-size: 0.72rem; color: var(--stone-soft); font-variant-numeric: tabular-nums; }
.chapters a:hover { color: var(--ink); }
.chapters a.is-active { color: var(--ink); border-bottom-color: var(--forest); }
.chapters a.is-active .count { color: var(--stone); }

/* Chapter headings inside the flow */
.gchapter { padding-top: var(--s9); scroll-margin-top: 8.25rem; }
.gchapter:first-of-type { padding-top: var(--s7); }
.gchapter__head {
  display: flex;
  align-items: baseline;
  gap: var(--s5);
  padding-bottom: var(--s6);
}
.gchapter__head h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); font-weight: 460; }
.gchapter__head .count { color: var(--fg-muted); font-size: var(--fs-small); font-variant-numeric: tabular-nums; }
.gchapter__head::after { content: ""; flex: 1; height: 1px; background: var(--rule); align-self: center; }

/* Justified rows */
.grid-justified { display: grid; gap: var(--g-gap, 6px); }
.g-row { display: flex; gap: var(--g-gap, 6px); content-visibility: auto; }
.g-item {
  position: relative;
  display: block;
  overflow: clip;
  background: var(--ph, var(--cream-deep));
  padding: 0;
  flex: 0 0 auto;
}
.g-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 560ms var(--ease-out), scale 1.1s var(--ease-out);
}
.g-item img.is-loaded { opacity: 1; }
@media (hover: hover) {
  .g-item:hover img { scale: 1.028; }
}
.g-item:focus-visible { outline-offset: -3px; outline-color: var(--cream); }

.gallery-foot { padding-block: var(--s9); text-align: center; }
.gallery-foot .container { display: grid; gap: var(--s4); justify-items: center; }

/* ----------------------------------------------------------------------
   16 · Lightbox (photos)
   ---------------------------------------------------------------------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--forest-night) 96%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: grid;
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms var(--ease-out), visibility 0s linear 280ms;
}
.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.lightbox__stage {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: clamp(3.2rem, 7vh, 4.5rem) clamp(1rem, 6vw, 5rem);
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  opacity: 0;
  scale: 0.985;
  transition: opacity 320ms var(--ease-out), scale 420ms var(--ease-out);
}
.lightbox__img.is-ready { opacity: 1; scale: 1; }

.lightbox__bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding: 1rem clamp(1rem, 3vw, 2rem);
  color: var(--stone-soft);
  font-size: var(--fs-small);
  z-index: 2;
}
.lightbox__counter { font-variant-numeric: tabular-nums; color: var(--cream); }
.lightbox__scene { color: var(--stone-soft); }
.lightbox__close {
  color: var(--cream);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  padding: 0.6em 0.2em;
}
.lightbox__close:hover { color: var(--stone-soft); }

.lightbox__nav {
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(3.5rem, 12vw, 8rem);
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--cream);
  opacity: 0;
  transition: opacity var(--t-med) var(--ease-out), background var(--t-med);
}
.lightbox__nav svg { width: 2rem; height: 2rem; }
.lightbox__nav--prev { left: 0; background: linear-gradient(to right, rgba(0,0,0,0.25), transparent); }
.lightbox__nav--next { right: 0; background: linear-gradient(to left, rgba(0,0,0,0.25), transparent); }
.lightbox:hover .lightbox__nav, .lightbox__nav:focus-visible { opacity: 1; }
@media (hover: none) { .lightbox__nav { display: none; } }

/* ----------------------------------------------------------------------
   17 · Video overlay
   ---------------------------------------------------------------------- */

.video-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--forest-night) 96%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  display: grid;
  place-items: center;
  padding: clamp(3.2rem, 7vh, 4.5rem) clamp(1rem, 5vw, 4rem);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms var(--ease-out), visibility 0s linear 280ms;
}
.video-modal.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.video-modal video {
  max-width: 100%;
  max-height: calc(100vh - 9rem);
  width: auto;
  height: auto;
  background: #000;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  outline: 0;
}
.video-modal__close {
  position: absolute;
  top: 1rem;
  right: clamp(1rem, 3vw, 2rem);
  color: var(--cream);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  padding: 0.6em 0.2em;
}
.video-modal__title {
  position: absolute;
  top: 1rem;
  left: clamp(1rem, 3vw, 2rem);
  color: var(--stone-soft);
  font-size: var(--fs-small);
}

body.modal-open { overflow: hidden; }

/* ----------------------------------------------------------------------
   18 · Reveal motion
   ---------------------------------------------------------------------- */

html.js [data-reveal] {
  opacity: 0;
  translate: 0 22px;
  transition: opacity 700ms var(--ease-reveal), translate 700ms var(--ease-reveal);
  transition-delay: var(--reveal-delay, 0ms);
}
html.js [data-reveal].is-in { opacity: 1; translate: 0 0; }

/* ----------------------------------------------------------------------
   19 · Utilities & a11y
   ---------------------------------------------------------------------- */

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  background: var(--forest);
  color: var(--cream);
  padding: 0.7em 1.2em;
  font-weight: 500;
  text-decoration: none;
  translate: 0 -300%;
  transition: translate var(--t-med) var(--ease-out);
}
.skip-link:focus-visible { translate: 0 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }
  html.js [data-reveal] { opacity: 1; translate: 0 0; }
  .hero__slide.is-active img { animation: none; }
}
