/* ==========================================================================
   Baker Bridge Rescue
   A colorful ledger: warm paper, real photography, and three living
   accents (green, gold, red) instead of one flat brand blue. Buttons,
   links, and header stay a consistent green; each story section picks
   its own color for the accents inside it via --accent/--accent-deep/
   --accent-soft/--accent-line, so the page has real variety without
   losing a stable, predictable interface.
   Piazzolla for headings, Public Sans for reading, Courier Prime for
   every label, tag, and number.
   ========================================================================== */

:root {
  --paper: #FAFAF7;
  --card: #FFFFFF;
  --panel: #EEF1EC;
  --footer-bg: #E3E9DF;
  --ink: #23211E;
  --soft: #5C5952;
  --faint: #94908A;
  --line: #E1DFD8;
  --line-deep: #C7C3B8;

  --brand: #3F7D4E;
  --brand-deep: #2E6039;
  --brand-soft: #E3EFE1;
  --brand-line: #BFDCC3;

  --gold: #C98A2B;
  --gold-deep: #9C6A1F;
  --gold-soft: #FBEEDA;
  --gold-line: #EAD1A0;

  --red: #B14632;
  --red-deep: #8A3323;
  --red-soft: #F7E6E1;
  --red-line: #E8C2B7;

  /* Per-section accent, defaults to the site's green. Section wrapper
     classes .accent-gold / .accent-red override these for their subtree. */
  --accent: var(--brand);
  --accent-deep: var(--brand-deep);
  --accent-soft: var(--brand-soft);
  --accent-line: var(--brand-line);

  --radius: 6px;
  --radius-sm: 4px;
  --shadow-1: 0 1px 2px rgba(35, 33, 30, 0.06), 0 6px 18px rgba(35, 33, 30, 0.07);
  --shadow-2: 0 3px 8px rgba(35, 33, 30, 0.08), 0 16px 36px rgba(35, 33, 30, 0.12);
  --font-display: "Piazzolla", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "Courier Prime", "Courier New", monospace;
  --header-h: 74px;
}

.accent-green { --accent: var(--brand); --accent-deep: var(--brand-deep); --accent-soft: var(--brand-soft); --accent-line: var(--brand-line); }
.accent-gold { --accent: var(--gold); --accent-deep: var(--gold-deep); --accent-soft: var(--gold-soft); --accent-line: var(--gold-line); }
.accent-red { --accent: var(--red); --accent-deep: var(--red-deep); --accent-soft: var(--red-soft); --accent-line: var(--red-line); }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  background: var(--paper);
  color: var(--ink);
}

img { max-width: 100%; display: block; }

a { color: var(--accent-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }

::selection { background: var(--accent-soft); }

/* ---------- Type ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: 0;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); line-height: 1.06; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.22rem; line-height: 1.3; }
p { margin: 0 0 1em; }

.muted { color: var(--soft); }
.fine { font-size: 0.88rem; color: var(--soft); }

.eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}

.lede { font-size: 1.12rem; color: var(--soft); max-width: 62ch; }
.center { text-align: center; }
.center .lede { margin-inline: auto; }

/* Ruled underline, drawn like underscoring a word in a ledger:
   on page load in the hero, on scroll wherever a .reveal parent gets .in */
.uline { position: relative; display: inline-block; white-space: nowrap; }
.uline svg {
  position: absolute;
  left: -1%;
  bottom: -0.14em;
  width: 102%;
  height: 0.2em;
  overflow: visible;
  color: var(--accent);
}
.uline path {
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
}
.uline--load path { animation: drawline 0.9s ease 0.9s forwards; }
@keyframes drawline { to { stroke-dashoffset: 0; } }
.uline--scroll path { transition: stroke-dashoffset 0.9s ease 0.3s; }
.reveal.in .uline--scroll path { stroke-dashoffset: 0; }

/* ---------- Layout ---------- */
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.wash { background: var(--panel); border-block: 1px solid var(--line); }
.section-head { max-width: 700px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.97rem;
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--paper); }
.btn-primary:hover { background: var(--accent-deep); }

.btn-quiet { background: transparent; color: var(--ink); border-color: var(--line-deep); }
.btn-quiet:hover { border-color: var(--ink); }

.btn-on-dark { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.6); }
.btn-on-dark:hover { border-color: #fff; }

.btn-sm { padding: 9px 17px; font-size: 0.9rem; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background 0.25s ease, box-shadow 0.25s ease;
}
.site-header .wrap {
  max-width: 1220px;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-header.scrolled,
.site-header.solid {
  background: rgba(231, 236, 235, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.16rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.on-hero .brand { color: #fff; }
.site-header.scrolled .brand { color: var(--ink); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a:not(.btn) {
  font-weight: 600;
  font-size: 0.97rem;
  text-decoration: none;
  color: var(--ink);
  padding: 6px 1px;
  border-bottom: 2px solid transparent;
}
.nav-links a:not(.btn):hover { border-color: var(--accent); color: var(--ink); }
.nav-links a.active { border-color: var(--accent); }
.on-hero .nav-links a:not(.btn) { color: #fff; }
.on-hero .nav-links a:not(.btn):hover { color: #fff; }
.site-header.scrolled .nav-links a:not(.btn) { color: var(--ink); }
.nav-donate { margin-left: 4px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  color: var(--ink);
}
.nav-toggle svg { width: 26px; height: 26px; display: block; }
.on-hero .nav-toggle { color: #fff; }
.site-header.scrolled .nav-toggle { color: var(--ink); }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--panel);
    box-shadow: var(--shadow-2);
    border-top: 1px solid var(--line);
    padding: 4px 0 20px;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0s linear 0.22s;
  }
  .nav-links.open {
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    transition: opacity 0.25s ease, transform 0.25s ease;
  }
  .nav-links li { opacity: 0; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease; }
  .nav-links.open li { opacity: 1; transform: none; }
  .nav-links.open li:nth-child(2) { transition-delay: 0.04s; }
  .nav-links.open li:nth-child(3) { transition-delay: 0.08s; }
  .nav-links.open li:nth-child(4) { transition-delay: 0.12s; }
  .nav-links.open li:nth-child(5) { transition-delay: 0.16s; }
  .nav-links.open li:nth-child(6) { transition-delay: 0.2s; }
  .nav-links.open li:nth-child(7) { transition-delay: 0.24s; }
  .nav-links li + li { border-top: 1px solid var(--line); }
  .nav-links a:not(.btn) { display: block; color: var(--ink) !important; padding: 14px 24px; border-bottom: 0; }
  .nav-links a.active { color: var(--accent-deep) !important; }
  .nav-donate { display: flex; margin: 14px 24px 2px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #1D1A15 url("../assets/hero-poster.jpg") center / cover no-repeat;
}
.hero video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.15) brightness(0.96) contrast(1.03);
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 22, 22, 0.15), rgba(18, 22, 22, 0.5));
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding: 130px 0 110px;
  max-width: 660px;
}
.hero .eyebrow { color: #F4C97A; }
.hero h1 { color: #fff; text-shadow: 0 1px 16px rgba(0, 0, 0, 0.35); }
.hero .lede { color: rgba(255, 255, 255, 0.94); font-size: 1.15rem; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero-stagger > * {
  opacity: 0;
  transform: translateY(12px);
  animation: rise 0.6s ease forwards;
}
.hero-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.22s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.36s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.5s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Photo exhibits: clipped, not framed ---------- */
.frame {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-deep);
  padding: 6px;
  box-shadow: var(--shadow-1);
  margin: 0;
}
.frame img { width: 100%; display: block; }
.frame figcaption {
  padding: 10px 4px 0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--soft);
}
/* A binder clip holding the exhibit to the page */
.frame::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 13px;
  background: var(--ink);
  border-radius: 3px;
}
.frame::after {
  content: "";
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 7px;
  background: var(--paper);
  border-radius: 0 0 7px 7px;
}
.tilt-a, .tilt-b { transform: none; }
@media (max-width: 700px) { .tilt-a, .tilt-b { transform: none; } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.tilt-a.in, .reveal.tilt-b.in { transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 28px;
}
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
.split.flip { grid-template-columns: 0.95fr 1.05fr; }
@media (max-width: 900px) { .split, .split.flip { grid-template-columns: 1fr; gap: 36px; } }

/* Parallel-category cards (the four pillars, the six needs): each one
   carries its section's color as a top stripe, so the grid reads as a
   set without needing a label on every tile. */
.card.case {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line-deep);
  border-top: 4px solid var(--accent);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  padding: 26px;
  transition: box-shadow 0.2s ease-out, transform 0.2s ease-out;
}
.card.case:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.case h3 { color: var(--accent-deep); }
.case h3::after {
  content: "";
  display: block;
  width: 40px;
  border-top: 2px solid var(--accent-line);
  margin-top: 12px;
}

/* ---------- Stats ---------- */
.stats { display: flex; flex-wrap: wrap; gap: 20px 56px; margin-top: 36px; }
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.6rem);
  color: var(--ink);
  line-height: 1;
  display: inline-block;
}
.stat .lbl {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 8px;
}
/* Signature: a fact certified in one stamp, not counted up like a KPI. */
@keyframes stamp {
  0% { opacity: 0; transform: scale(1.35) rotate(-5deg); }
  55% { opacity: 1; transform: scale(0.96) rotate(1deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.reveal.in .stat .num { animation: stamp 0.4s cubic-bezier(0.2, 1.4, 0.5, 1) both; }
.reveal.in .stat:nth-child(2) .num { animation-delay: 0.08s; }
.reveal.in .stat:nth-child(3) .num { animation-delay: 0.16s; }

/* ---------- Store ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(248px, 1fr)); gap: 22px; }
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.product-card:hover { border-color: var(--line-deep); box-shadow: var(--shadow-2); }
.product-media { aspect-ratio: 1 / 1; background: var(--panel); position: relative; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s ease; }
.product-media img.alt { position: absolute; inset: 0; opacity: 0; }
.product-card:hover .product-media img.alt { opacity: 1; }
.product-media .ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--faint);
}
.product-media .ph svg { width: 46px; height: 46px; opacity: 0.6; }
.product-body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-body h3 { font-size: 1.06rem; margin: 0; }
.product-price { font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.product-desc {
  color: var(--soft);
  font-size: 0.92rem;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-body .btn { margin-top: auto; align-self: flex-start; }

.store-state { text-align: center; color: var(--soft); padding: 52px 0; }
.store-state p { display: inline-block; margin: 0; }
.store-state.loading p::after {
  content: "";
  display: inline-block;
  width: 1.2em;
  text-align: left;
  animation: dots 1.2s steps(1) infinite;
}
@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
}

/* ---------- Video / testimonials ---------- */
.video-embed {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  background: #1D1A15;
}
.video-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.testi-row {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(310px, 78vw);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 4px 4px 22px;
  scrollbar-width: thin;
}
.testi-card {
  scroll-snap-align: start;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.testi-card:hover { border-color: var(--line-deep); box-shadow: var(--shadow-2); }
.testi-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--panel); }
.testi-thumb img { width: 100%; height: 100%; object-fit: cover; }
.testi-thumb .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.testi-thumb .play span {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  display: grid;
  place-items: center;
  color: var(--ink);
  box-shadow: var(--shadow-2);
}
.testi-thumb .play svg { width: 20px; height: 20px; margin-left: 3px; }
.testi-body { padding: 20px 22px 22px; }
.testi-body h3 { margin-bottom: 6px; }
.testi-body p { color: var(--soft); font-size: 0.94rem; margin: 0; }
.testi-body .watch {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-deep);
}

/* ---------- Quote band (The Eyes) ---------- */
.quote-band { text-align: center; }
.quote-band blockquote {
  margin: 0 auto;
  max-width: 760px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.3vw, 2.3rem);
  line-height: 1.35;
  color: var(--ink);
}
.quote-band .who { margin-top: 18px; }

/* ---------- Wish note ---------- */
.panel-wish {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 38px 40px;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 36px;
  align-items: center;
  margin-top: 44px;
}
.panel-wish h3 { margin-bottom: 8px; }
.panel-wish p { color: var(--soft); margin: 0; }
.panel-wish .actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; }
@media (max-width: 760px) { .panel-wish { grid-template-columns: 1fr; padding: 28px; } }

/* ---------- Affiliates / partners ---------- */
.affil-featured {
  display: flex;
  gap: 20px;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.affil-featured:hover { border-color: var(--line-deep); box-shadow: var(--shadow-2); }
.affil-featured .mark {
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ink);
}
/* Letterhead cards: real businesses get a plain reference treatment,
   distinct from the internal case-file language above. */
.partner-card { border-top: 3px solid var(--accent); padding-top: 22px; }
.partner-card h3 { margin-bottom: 2px; font-family: var(--font-display); }
.partner-card .tag {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 12px;
}
.partner-card p { color: var(--soft); font-size: 0.95rem; }
.partner-card .meta { font-family: var(--font-mono); font-size: 0.85rem; color: var(--soft); margin-bottom: 16px; }

/* ---------- Forms ---------- */
form.bbr { display: grid; gap: 16px; }
.field label { display: block; font-weight: 700; font-size: 0.88rem; margin-bottom: 6px; color: var(--ink); }
.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line-deep);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-note { font-size: 0.9rem; color: var(--soft); }
.form-success {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 600;
}
.form-error {
  background: #FAECE8;
  color: #9C4632;
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-weight: 600;
}
.hidden { display: none !important; }
.hp { position: absolute; left: -9999px; opacity: 0; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: calc(var(--header-h) + 64px) 0 48px; }
.page-hero .lede { margin-top: 4px; }

/* ---------- Gallery ---------- */
.masonry { columns: 3 250px; column-gap: 18px; }
.masonry figure {
  margin: 0 0 18px;
  break-inside: avoid;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 8px;
  box-shadow: var(--shadow-1);
  cursor: zoom-in;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.masonry figure:hover { border-color: var(--line-deep); box-shadow: var(--shadow-2); }
.masonry img { width: 100%; border-radius: 3px; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(18, 22, 22, 0.93);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: min(92vw, 1100px);
  max-height: 84vh;
  border-radius: 6px;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
}
.lightbox button {
  position: absolute;
  background: rgba(244, 246, 245, 0.14);
  border: 0;
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease;
}
.lightbox button:hover { background: rgba(244, 246, 245, 0.28); }
.lightbox button svg { width: 22px; height: 22px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }

/* ---------- Memorial ---------- */
.memorial-card { text-align: center; padding: 34px 26px; }
.memorial-card h3 { margin-bottom: 6px; }
.memorial-card h3::before {
  content: "";
  display: block;
  width: 30px;
  border-top: 2px solid var(--accent-line);
  margin: 0 auto 16px;
}
.memorial-card p { color: var(--soft); font-size: 0.95rem; margin: 0; }
.memorial-card .watch {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--accent-deep);
}

/* ---------- Resources ---------- */
details.res-group {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 14px;
  overflow: hidden;
}
details.res-group summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
details.res-group summary::-webkit-details-marker { display: none; }
details.res-group summary .chev { transition: transform 0.2s ease; color: var(--faint); flex: none; }
details.res-group[open] summary .chev { transform: rotate(180deg); }
details.res-group summary .chev svg { width: 20px; height: 20px; display: block; }
.res-items { padding: 0 26px 22px; display: grid; gap: 10px; }
.res-item { padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.res-item strong { color: var(--ink); font-weight: 700; }
.res-item span { color: var(--soft); font-size: 0.94rem; }

/* ---------- Timeline ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  border-left: 2px solid var(--line-deep);
}
.timeline li { position: relative; padding: 0 0 30px 40px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent);
  border: 4px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--line-deep);
}
.timeline .yr { font-family: var(--font-mono); font-weight: 700; color: var(--ink); font-size: 1rem; display: block; }
.timeline p { color: var(--soft); margin: 4px 0 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid var(--line-deep);
}
.site-footer .top {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1fr;
  gap: 44px;
  padding-block: 60px 44px;
}
@media (max-width: 820px) { .site-footer .top { grid-template-columns: 1fr; gap: 32px; } }
.site-footer h4 {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.footer-brand { font-family: var(--font-display); font-size: 1.25rem; color: var(--ink); margin-bottom: 12px; }
.footer-mission { font-size: 0.95rem; color: var(--soft); max-width: 44ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.site-footer li { color: var(--soft); font-size: 0.95rem; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent-deep); text-decoration: underline; }
.site-footer .bottom {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--faint);
}
.site-footer .bottom a { color: var(--soft); }

/* ---------- Utility ---------- */
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 10px 0;
  z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nav-links, .nav-links li { transition: none; }
  .hero-stagger > * { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .uline path, .uline--load path, .uline--scroll path { animation: none; transition: none; stroke-dashoffset: 0; }
  .card.case { transition: none; }
  .reveal.in .stat .num { animation: none; }
  .store-state.loading p::after { animation: none; content: "..."; }
}
