/* =========================================================
   Bantay Pusta Foundation — "Keeper's Light" (light edition)
   Warm white pages, antique gold from the crest, cinematic
   photo headers, and interaction on everything you touch.
   ========================================================= */

:root {
  /* Color */
  --bg: #FFFFFF;
  --bg-2: #F6F3EE;         /* warm stone panels */
  --bg-3: #EEE8DE;
  --ink: #1B1712;          /* text */
  --ink-2: #5B5246;        /* secondary text */
  --line: #E6DFD3;
  --gold: #D9A63E;         /* antique gold from the crest */
  --gold-hi: #F2C462;
  --gold-deep: #94650F;    /* gold that passes contrast on white */
  --gold-wash: #FBF1DC;    /* pale gold tint */
  --night: #17130E;        /* footer + statistics band */
  --night-2: #241E16;
  --on-dark: #F5EFE3;
  --on-dark-2: #BDB3A2;

  /* Type */
  --display: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
  --sans: "Atkinson Hyperlegible", "Segoe UI", system-ui, -apple-system, sans-serif;

  --step--1: 0.9375rem;
  --step-0: 1.125rem;
  --step-1: 1.375rem;
  --step-2: clamp(1.9rem, 1.4rem + 1.8vw, 2.75rem);
  --step-3: clamp(2.5rem, 1.8rem + 3vw, 4.25rem);
  --step-4: clamp(3.1rem, 1.7rem + 5.6vw, 6.75rem);

  /* Layout */
  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 3rem);
  --space: clamp(4.5rem, 3rem + 5.5vw, 8.5rem);
  --radius: 18px;
  --radius-sm: 10px;
  --header-h: 80px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --shadow: 0 1px 2px rgba(27,23,18,0.05), 0 12px 32px rgba(27,23,18,0.08);
  --shadow-lg: 0 2px 4px rgba(27,23,18,0.05), 0 30px 60px rgba(27,23,18,0.14);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--step-0); line-height: 1.65;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }

h1, h2 {
  font-family: var(--display); font-weight: 600;
  line-height: 1; letter-spacing: -0.015em;
  margin: 0 0 0.45em; text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-family: var(--sans); font-weight: 700; font-size: var(--step-1); line-height: 1.3; margin: 0 0 0.45em; }
p { margin: 0 0 1em; text-wrap: pretty; }

a { color: var(--gold-deep); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
::selection { background: var(--gold-hi); color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 300; background: var(--gold); color: var(--ink); padding: 0.6rem 1rem; font-weight: 700; border-radius: 8px; }
.skip-link:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.prose { max-width: 66ch; }
.prose > :last-child { margin-bottom: 0; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-2); }

/* ---------- Scroll progress ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 250;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
  transform: scaleX(var(--p, 0)); transform-origin: left;
  pointer-events: none;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.85rem 1.6rem;
  border: 1.5px solid transparent; border-radius: 999px;
  font: 700 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer;
  transition: color .35s var(--ease), background-color .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease), transform .25s var(--ease);
  will-change: transform;
}
.btn::after { /* arrow chip that slides on hover */
  content: ""; width: 0.55em; height: 0.55em; flex: none;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, 2px);
  transition: transform .35s var(--ease);
}
.btn:hover::after { transform: rotate(45deg) translate(1px, -1px); }
.btn--plain::after { display: none; }
.btn--lamp { background: var(--gold); color: var(--ink); box-shadow: 0 6px 18px rgba(217,166,62,0.35); }
.btn--lamp:hover { background: var(--gold-hi); box-shadow: 0 10px 28px rgba(217,166,62,0.45); }
.btn--line { background: transparent; color: var(--ink); border-color: rgba(27,23,18,0.25); }
.btn--line:hover { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.hero .btn--line, .page-head:not(.page-head--plain) .btn--line, .section--night .btn--line { color: var(--on-dark); border-color: rgba(245,239,227,0.55); }
.hero .btn--line:hover, .page-head:not(.page-head--plain) .btn--line:hover, .section--night .btn--line:hover { background: var(--on-dark); color: var(--ink); border-color: var(--on-dark); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2rem; }

.ripple {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,0.55); transform: scale(0);
  animation: ripple .65s ease-out forwards;
}
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200; color: var(--on-dark);
  background: linear-gradient(180deg, rgba(23,19,14,0.55), rgba(23,19,14,0));
  transition: background-color .4s, color .4s, box-shadow .4s;
}
.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(27,23,18,0.06);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 0.7rem; color: inherit; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 1.45rem; line-height: 1; }
.brand__crest {
  width: 54px; height: 54px; border-radius: 50%; overflow: hidden; flex: none;
  background: #0d0b08; box-shadow: 0 0 0 2px rgba(217,166,62,0.6);
  transition: transform .6s var(--ease), box-shadow .4s;
}
.brand__crest img { width: 100%; height: 100%; object-fit: cover; object-position: 49% 50%; transform: scale(1.24); transform-origin: 49% 46%; }
.brand:hover .brand__crest { transform: rotate(-8deg) scale(1.06); box-shadow: 0 0 0 3px var(--gold), 0 0 24px rgba(217,166,62,0.5); }
.brand span small { display: block; font-family: var(--sans); font-weight: 400; font-size: 0.75rem; opacity: 0.75; margin-top: 0.2rem; }

.nav-toggle { display: none; background: none; border: 1.5px solid currentColor; color: inherit; border-radius: 999px; min-height: 44px; padding: 0 1.1rem; font: 700 0.95rem var(--sans); cursor: pointer; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0.1rem; }
.site-nav a { position: relative; display: block; padding: 0.55rem 0.75rem; color: inherit; text-decoration: none; font-size: 0.98rem; border-radius: 999px; transition: background-color .3s; }
.site-nav a:hover { background: rgba(217,166,62,0.16); }
.site-nav a[aria-current="page"] { background: rgba(217,166,62,0.22); font-weight: 700; }
.site-nav .nav-donate { margin-left: 0.6rem; }
.site-nav .nav-donate a { background: var(--gold); color: var(--ink); font-weight: 700; padding-inline: 1.25rem; box-shadow: 0 6px 18px rgba(217,166,62,0.35); }
.site-nav .nav-donate a:hover { background: var(--gold-hi); }
.nav-donate a .heart { display: inline-block; margin-right: 0.35rem; animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 30% { transform: scale(1.25); } 45% { transform: scale(0.95); } }

@media (max-width: 1100px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .site-nav { position: fixed; inset: var(--header-h) 0 auto 0; background: #fff; color: var(--ink); padding: 0.5rem var(--gutter) 1.5rem; box-shadow: 0 20px 40px rgba(27,23,18,0.15); }
  .js .site-nav:not(.is-open) { display: none; }
  .js .site-nav.is-open { animation: drop .35s var(--ease); }
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-header .wrap { flex-wrap: wrap; }
  html:not(.js) .site-nav { position: static; width: 100%; box-shadow: none; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0.15rem; }
  .site-nav a { padding: 0.9rem 1rem; font-size: 1.1rem; }
  .site-nav .nav-donate { margin: 0.75rem 0 0; }
  .site-nav .nav-donate a { text-align: center; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Home hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; min-height: min(100vh, 960px); min-height: min(100svh, 960px); display: grid; align-items: end; background: #0d0b08; color: var(--on-dark); }
.hero__photo { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 12% 30%; }
.hero__dark { position: absolute; inset: 0; z-index: -2; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(circle at 34% 29%, rgba(242,196,98,0.45) 0, rgba(242,196,98,0.12) 9%, transparent 22%); }
.hero__night { position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,11,8,0) 30%, rgba(13,11,8,0.5) 62%, rgba(13,11,8,0.8) 100%), linear-gradient(0deg, rgba(13,11,8,0.85) 0%, rgba(13,11,8,0) 45%); }
.hero .wrap { padding-block: calc(var(--header-h) + 4rem) clamp(5rem, 11vh, 8rem); }
.hero__copy { max-width: 40rem; margin-left: auto; }
.hero h1 { color: #fff; font-size: clamp(3.1rem, 1.6rem + 4.6vw, 6.1rem); }
.hero__copy p { font-size: var(--step-1); line-height: 1.5; max-width: 34ch; }
.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%); width: 26px; height: 42px; border: 1.5px solid rgba(245,239,227,0.6); border-radius: 14px; }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold-hi); }
@media (max-width: 760px) {
  .hero__photo { object-position: 36% 30%; }
  .hero__dark { background: radial-gradient(circle at 34% 28%, rgba(242,196,98,0.45) 0, rgba(242,196,98,0.12) 12%, transparent 28%); }
  .hero__night { background: linear-gradient(0deg, rgba(13,11,8,0.92) 22%, rgba(13,11,8,0.55) 55%, rgba(13,11,8,0.1) 100%); }
}

/* ---------- Inner page heads: photo films ---------- */
.page-head { position: relative; isolation: isolate; overflow: hidden; min-height: min(78vh, 760px); min-height: min(78svh, 760px); display: grid; align-items: end; background: #0d0b08; color: var(--on-dark); }
.page-head .arch { position: absolute; inset: 0; z-index: -2; margin: 0; border-radius: 0; aspect-ratio: auto; background: #0d0b08; box-shadow: none; }
.page-head .arch img { width: 100%; height: 100%; object-fit: cover; }
.page-head::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(13,11,8,0.82) 0%, rgba(13,11,8,0.5) 45%, rgba(13,11,8,0.05) 100%), linear-gradient(0deg, rgba(13,11,8,0.6) 0%, rgba(13,11,8,0) 40%); }
.page-head .wrap { padding-block: calc(var(--header-h) + 5rem) clamp(4rem, 9vh, 6.5rem); }
.page-head__text { max-width: 50rem; }
.page-head h1 { color: #fff; margin-bottom: 0.3em; }
.page-head p { font-size: var(--step-1); line-height: 1.5; max-width: 40ch; }
@media (min-width: 861px) {
  .page-head--right .arch { left: 40%; }
  .page-head--right::after { background: linear-gradient(90deg, #0d0b08 0%, #0d0b08 40%, rgba(13,11,8,0.55) 52%, rgba(13,11,8,0) 75%); }
}
.page-head--plain { min-height: 0; background: var(--bg-2); color: var(--ink); }
.page-head--plain h1 { color: var(--ink); }
.page-head--plain::after { background: radial-gradient(ellipse at 15% 0%, rgba(217,166,62,0.25), transparent 60%); }
.page-head--plain .wrap { padding-bottom: 3.5rem; }
.dawn { display: none; }

/* ---------- Photo frames ---------- */
.arch { position: relative; overflow: hidden; aspect-ratio: 4 / 5; border-radius: var(--radius); background: var(--bg-3); box-shadow: var(--shadow); }
.arch img { width: 100%; height: 115%; object-fit: cover; transform: translateY(var(--py, 0px)); transition: scale 1.2s var(--ease); }
.arch:hover img { scale: 1.04; }
.arch--wide { aspect-ratio: 5 / 4; }
.crop-bars img { scale: 1.42; }
.crop-bars:hover img { scale: 1.46; }

/* ---------- Sections ---------- */
.section { padding-block: var(--space); position: relative; }
.section--tight { padding-block: calc(var(--space) * 0.55); }
.section--mist { background: var(--bg-2); }
.section--night { background: var(--night); color: var(--on-dark); }
.section--night h2, .section--night h3 { color: #fff; }
.section--night a { color: var(--gold-hi); }
.section--night a.btn--lamp, .section--blush a.btn--lamp, .help-band a.btn--lamp { color: var(--ink); }
.section--blush { background: linear-gradient(135deg, #F6CF77 0%, var(--gold) 55%, #C99130 100%); color: var(--ink); }
.section--blush a { color: var(--ink); }
.section--blush .lede, .section--blush p { color: #3B2E15; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.split--narrow-media { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split--narrow-media { grid-template-columns: 1fr; } }

.section-intro { max-width: 52rem; margin-bottom: clamp(2.5rem, 5vw, 4.25rem); }
.section-intro p { color: var(--ink-2); font-size: var(--step-1); line-height: 1.5; }
.section--night .section-intro p { color: var(--on-dark-2); }

/* ---------- Pathway cards (tilt + spotlight) ---------- */
.paths { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.1rem; perspective: 1200px; }
.path {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 440px; padding: 1.75rem; border-radius: var(--radius);
  display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; text-decoration: none; background: #0d0b08;
  box-shadow: var(--shadow);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.path:hover { box-shadow: var(--shadow-lg); }
.path img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.path::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(13,11,8,0.92) 12%, rgba(13,11,8,0.3) 58%, rgba(13,11,8,0.05)); }
.path::after { /* spotlight follows the pointer */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(242,196,98,0.28), transparent 45%);
}
.path:hover::after { opacity: 1; }
.path:hover img, .path:focus-visible img { transform: scale(1.08); }
.path h3 { font-family: var(--display); font-weight: 600; font-size: 2.15rem; line-height: 1; margin-bottom: 0.4em; color: #fff; transform: translateZ(30px); }
.path p { color: rgba(255,255,255,0.82); font-size: 1rem; margin-bottom: 1.2rem; transform: translateZ(20px); }
.path__go {
  display: inline-flex; align-items: center; gap: 0.5rem; align-self: flex-start;
  font-weight: 700; font-size: 0.95rem; color: var(--ink); background: var(--gold);
  padding: 0.5rem 1rem; border-radius: 999px;
  transform: translateY(8px) translateZ(25px); opacity: 0.0;
  transition: transform .45s var(--ease), opacity .45s var(--ease);
}
.path:hover .path__go, .path:focus-visible .path__go { opacity: 1; transform: translateY(0) translateZ(25px); }
@media (hover: none) { .path__go { opacity: 1; transform: none; } }
@media (max-width: 1060px) { .paths { grid-template-columns: repeat(2, minmax(0, 1fr)); } .path { min-height: 380px; } }
@media (max-width: 560px) { .paths { grid-template-columns: 1fr; } .path { min-height: 320px; } }

/* ---------- Statistics ---------- */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.stat {
  position: relative; overflow: hidden; padding: 2.25rem 2rem 2rem; border-radius: var(--radius);
  background: var(--night-2); border: 1px solid rgba(217,166,62,0.18);
  transition: transform .5s var(--ease), border-color .4s;
}
.stat:hover { transform: translateY(-6px); border-color: rgba(217,166,62,0.6); }
.stat::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s; pointer-events: none; background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(242,196,98,0.18), transparent 50%); }
.stat:hover::after { opacity: 1; }
.stat__num { display: block; font-family: var(--display); font-weight: 600; font-size: clamp(3.4rem, 2rem + 4.5vw, 6rem); line-height: 1; color: var(--gold-hi); font-variant-numeric: lining-nums tabular-nums; }
.stat p { color: var(--on-dark-2); max-width: 28ch; margin: 0.75rem 0 0; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr; } }

.fact { font-family: var(--display); font-weight: 600; font-size: var(--step-3); line-height: 1.05; max-width: 18ch; margin: 0 0 1.5rem; }
.fact strong { font-weight: 600; color: var(--gold-hi); }
.source { color: var(--ink-2); font-size: var(--step--1); }
.section--night .source { color: var(--on-dark-2); }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: 1.6rem; background: var(--gold-wash); border-block: 1px solid #F1DFB8; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__track > div { display: flex; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__track span { font-family: var(--display); font-weight: 500; font-style: italic; font-size: clamp(2.1rem, 1.5rem + 2.8vw, 3.75rem); line-height: 1.1; color: var(--ink); white-space: nowrap; padding-inline: 1.5rem; display: inline-flex; align-items: center; gap: 3rem; transition: color .3s; }
.marquee__track span:hover { color: var(--gold-deep); }
.marquee__track span::after { content: ""; width: 12px; height: 12px; transform: rotate(45deg); background: var(--gold); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Lists ---------- */
.lamp-list { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.lamp-list li { position: relative; padding-left: 1.75rem; margin-bottom: 0.7rem; }
.lamp-list li::before { content: ""; position: absolute; left: 0.15rem; top: 0.6em; width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold); }
.section--blush .lamp-list li::before { background: var(--ink); }

/* ---------- Programs ---------- */
.program { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; padding-block: clamp(3rem, 6vw, 5.5rem); border-top: 1px solid var(--line); }
.program:first-of-type { border-top: 0; padding-top: 0; }
.program .arch { aspect-ratio: 4 / 3; }
.program:nth-of-type(even) > .arch { order: 2; }
.program h2 { font-size: var(--step-3); }
.program__close { color: var(--gold-deep); font-family: var(--display); font-style: italic; font-size: 1.55rem; line-height: 1.3; }
@media (max-width: 860px) { .program { grid-template-columns: 1fr; } .program:nth-of-type(even) > .arch { order: 0; } }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1rem; padding: 1.75rem 0; border-top: 1px solid var(--line); }
.steps li::before { content: counter(step); font-family: var(--display); font-weight: 600; font-size: 3.4rem; line-height: 0.8; color: var(--gold); }
.steps p { margin: 0; color: var(--ink-2); }

/* ---------- Columns, reasons, notes (spotlight cards) ---------- */
.cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2.5rem, 6vw, 5rem); }
@media (max-width: 760px) { .cols { grid-template-columns: 1fr; } }
.cols h2 { font-size: var(--step-2); }

.reasons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.reasons > div, .spot {
  position: relative; overflow: hidden; isolation: isolate;
  padding: 2.25rem; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.reasons > div::before, .spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(217,166,62,0.16), transparent 50%);
}
.reasons > div:hover, .spot:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(217,166,62,0.55); }
.reasons > div:hover::before, .spot:hover::before { opacity: 1; }
.reasons h3 { font-family: var(--display); font-weight: 600; font-size: 2rem; line-height: 1.05; }
.reasons p { color: var(--ink-2); margin: 0; }
@media (max-width: 760px) { .reasons { grid-template-columns: 1fr; } }

.note { border-left: 4px solid var(--gold); background: var(--gold-wash); padding: 1.75rem 2rem; border-radius: 0 var(--radius) var(--radius) 0; }
.section--mist .note { background: #fff; }
.note h2 { font-size: var(--step-2); }
.note > :last-child { margin-bottom: 0; }

/* ---------- App ---------- */
.app-phone { max-width: 300px; margin-inline: auto; border-radius: 36px; filter: drop-shadow(0 40px 50px rgba(27,23,18,0.25)) drop-shadow(0 0 50px rgba(217,166,62,0.25)); }
.store-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 0.85rem; margin-top: 1.75rem; }
.store-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  min-height: 58px; padding: 0.55rem 1.35rem 0.55rem 1.05rem;
  background: #000; color: #fff; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,0.3); border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.18);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
}
.store-btn:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.28); border-color: var(--gold); color: #fff; }
.store-btn svg { width: 28px; height: 28px; flex: none; }
.store-btn span { display: flex; flex-direction: column; font: 700 1.25rem/1.05 var(--sans); letter-spacing: -0.01em; }
.store-btn small { font-weight: 400; font-size: 0.72rem; letter-spacing: 0.02em; opacity: 0.85; margin-bottom: 0.15rem; }
.page-head .store-badges { margin-top: 2rem; }

/* Menu: "The app" stands out */
.nav-app a { box-shadow: inset 0 0 0 1.5px var(--gold); display: flex !important; align-items: center; gap: 0.45rem; }
.nav-app a:hover { background: rgba(217,166,62,0.22); }
.nav-app__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); flex: none; }
.site-header:not(.is-scrolled) .nav-app__dot { background: var(--gold-hi); }
.nav-app__dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; animation: ping 1.8s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.8); opacity: 0; } }
@media (max-width: 1100px) { .nav-app { margin: 0.25rem 0; } }

/* ---------- Help band ---------- */
.help-band { background: linear-gradient(135deg, #F6CF77 0%, var(--gold) 55%, #C99130 100%); color: var(--ink); }
.help-band .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding-block: clamp(4rem, 8vw, 6.5rem); }
.help-band h2 { font-size: var(--step-3); margin-bottom: 0.35em; }
.help-band p { margin: 0; color: #3B2E15; font-size: var(--step-1); line-height: 1.5; }
.help-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.help-lines li a {
  display: block; padding: 1rem 1.25rem; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.55); color: var(--ink); text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 1.85rem; line-height: 1.1; word-break: break-word;
  transition: background-color .3s, transform .35s var(--ease);
}
.help-lines li a:hover { background: #fff; transform: translateX(6px); }
.help-lines span { display: block; font-family: var(--sans); font-weight: 400; color: #3B2E15; font-size: var(--step--1); margin-top: 0.25rem; }
@media (max-width: 760px) { .help-band .wrap { grid-template-columns: 1fr; } .help-lines li a { font-size: 1.5rem; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-grid > div > h2 { font-size: var(--step-2); }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { padding: 1.25rem 0; border-top: 1px solid var(--line); }
.contact-list h3 { font-size: var(--step--1); color: var(--gold-deep); margin: 0 0 0.25rem; }
.contact-list p { margin: 0; }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; background: var(--bg-2); padding: clamp(1.75rem, 4vw, 2.75rem); border-radius: var(--radius); }
.form .full { grid-column: 1 / -1; }
.form h2 { font-size: var(--step-2); }
.field { position: relative; }
.field label { display: block; font-weight: 700; margin-bottom: 0.4rem; font-size: 1rem; }
.field input, .field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 0.9rem 1rem; background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .3s, box-shadow .3s; }
.field input:hover, .field textarea:hover { border-color: #CFC4B2; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,166,62,0.22); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #C0452C; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.field textarea { min-height: 170px; resize: vertical; }
.field-error { color: #B23A23; font-size: 0.95rem; margin: 0.35rem 0 0; }
.form-status { grid-column: 1 / -1; margin: 0; font-weight: 700; color: var(--gold-deep); }
@media (max-width: 560px) { .form { grid-template-columns: 1fr; } }

/* ---------- Privacy ---------- */
.doc { max-width: 72ch; }
.doc h2 { font-size: var(--step-2); margin-top: 3rem; }
.doc ul { padding-left: 1.25rem; }
.doc li { margin-bottom: 0.4rem; }
.doc li::marker { color: var(--gold); }
.doc-meta { color: var(--ink-2); }
.closing h2 { max-width: 16ch; }

/* =========================================================
   DONATE: the giving widget
   ========================================================= */
.giver { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
@media (max-width: 960px) { .giver { grid-template-columns: 1fr; } }
.giver__steps { display: grid; gap: 1.25rem; }
.giver__step { background: #fff; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); box-shadow: var(--shadow); }
.giver__step h3 { display: flex; align-items: center; gap: 0.85rem; font-size: 1.3rem; margin-bottom: 1.25rem; }
.giver__step h3 b {
  display: inline-grid; place-items: center; width: 2.2rem; height: 2.2rem; flex: none;
  border-radius: 50%; background: var(--gold-wash); color: var(--gold-deep);
  font-family: var(--display); font-size: 1.4rem;
}
.giver__step.is-done h3 b { background: var(--gold); color: var(--ink); }

.amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.65rem; }
@media (max-width: 480px) { .amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.chip {
  position: relative; min-height: 64px; padding: 0.75rem 1rem;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fff;
  font: 700 1.3rem var(--sans); color: var(--ink); cursor: pointer;
  transition: border-color .25s, background-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.chip:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.chip[aria-pressed="true"] { border-color: var(--gold); background: var(--gold-wash); box-shadow: 0 0 0 3px rgba(217,166,62,0.3); }
.chip[aria-pressed="true"]::after { content: ""; position: absolute; top: 8px; right: 10px; width: 6px; height: 11px; border: solid var(--gold-deep); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); animation: pop .35s var(--ease); }
.custom-amount { margin-top: 0.85rem; display: flex; align-items: center; gap: 0.5rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 0 1rem; background: #fff; transition: border-color .25s, box-shadow .25s; }
.custom-amount:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(217,166,62,0.22); }
.custom-amount span { font-weight: 700; font-size: 1.3rem; color: var(--ink-2); }
.custom-amount input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0.95rem 0; font: 700 1.2rem var(--sans); color: var(--ink); background: transparent; }

.tabs { display: flex; gap: 0.4rem; padding: 0.35rem; background: var(--bg-2); border-radius: 999px; margin-bottom: 1.25rem; position: relative; }
.tab { flex: 1; min-height: 46px; border: 0; background: transparent; border-radius: 999px; font: 700 1rem var(--sans); color: var(--ink-2); cursor: pointer; position: relative; z-index: 1; transition: color .3s; }
.tab[aria-selected="true"] { color: var(--ink); }
.tabs__ink { position: absolute; top: 0.35rem; bottom: 0.35rem; left: 0; border-radius: 999px; background: #fff; box-shadow: var(--shadow); transition: transform .45s var(--ease), width .45s var(--ease); }
.tabpanel { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; align-items: center; }
.tabpanel[hidden] { display: none; }
.tabpanel.is-entering { animation: fade-up .45s var(--ease); }
.tabpanel .qr { width: 170px; border-radius: var(--radius-sm); box-shadow: var(--shadow); transition: transform .4s var(--ease); cursor: zoom-in; }
.tabpanel .qr:hover { transform: scale(1.04); }
.tabpanel .qr.is-zoomed { transform: scale(1.9); position: relative; z-index: 5; cursor: zoom-out; }
@media (max-width: 560px) { .tabpanel { grid-template-columns: 1fr; } .tabpanel .qr.is-zoomed { transform: scale(1.35); } }
.acct { margin: 0 0 0.25rem; color: var(--ink-2); font-size: var(--step--1); }
.acct-num { margin: 0 0 1rem; font-size: 1.55rem; font-weight: 700; letter-spacing: 0.03em; }
.copy-btn { min-height: 46px; padding: 0.55rem 1.15rem; background: var(--ink); color: #fff; border: 0; border-radius: 999px; font: 700 0.95rem var(--sans); cursor: pointer; transition: background-color .3s, transform .2s; }
.copy-btn:hover { background: #3A3127; }
.copy-btn:active { transform: scale(0.96); }
.copy-btn[data-copied] { background: #2E7D4F; animation: pop .4s var(--ease); }
@keyframes pop { 50% { transform: scale(1.08); } }

.summary { position: sticky; top: calc(var(--header-h) + 1.25rem); background: var(--night); color: var(--on-dark); border-radius: var(--radius); padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate; }
.summary::before { content: ""; position: absolute; inset: auto -30% -50% auto; width: 320px; height: 320px; z-index: -1; border-radius: 50%; background: radial-gradient(circle, rgba(242,196,98,0.35), transparent 70%); animation: glow 6s ease-in-out infinite; }
@keyframes glow { 50% { transform: translate(-30px, -30px) scale(1.15); } }
.summary h3 { color: var(--on-dark-2); font-size: var(--step--1); margin-bottom: 0.25rem; }
.summary__amount { font-family: var(--display); font-weight: 600; font-size: clamp(3.4rem, 2.4rem + 3vw, 4.75rem); line-height: 1; color: var(--gold-hi); margin: 0 0 0.25rem; font-variant-numeric: lining-nums; }
.summary__amount.is-bump { animation: pop .4s var(--ease); }
.summary__via { color: var(--on-dark); margin: 0 0 1.5rem; }
.summary .btn { width: 100%; }
.summary small { display: block; margin-top: 1rem; color: var(--on-dark-2); font-size: 0.9rem; line-height: 1.5; }

/* FAQ accordion */
.faq { max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 0; font-weight: 700; font-size: 1.2rem; transition: color .3s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--gold-deep); }
.faq summary::after { content: ""; width: 14px; height: 14px; flex: none; background: linear-gradient(var(--gold-deep), var(--gold-deep)) center / 100% 2px no-repeat, linear-gradient(var(--gold-deep), var(--gold-deep)) center / 2px 100% no-repeat; transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .answer { padding: 0 0 1.4rem; color: var(--ink-2); max-width: 64ch; }
.faq details[open] .answer { animation: fade-up .45s var(--ease); }

/* Mobile sticky donate bar */
.give-bar { position: fixed; inset: auto 0 0 0; z-index: 150; display: none; padding: 0.75rem var(--gutter) calc(0.75rem + env(safe-area-inset-bottom, 0px)); background: rgba(255,255,255,0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 -8px 30px rgba(27,23,18,0.1); transform: translateY(110%); transition: transform .45s var(--ease); }
.give-bar .btn { width: 100%; }
.give-bar.is-shown { transform: none; }
@media (max-width: 960px) { .give-bar { display: block; } }

/* ---------- Back to top ---------- */
.to-top { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 140; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); display: grid; place-items: center; opacity: 0; transform: translateY(20px) scale(0.8); pointer-events: none; transition: opacity .4s, transform .4s var(--ease), background-color .3s; }
.to-top::before { content: ""; width: 12px; height: 12px; border-top: 2.5px solid currentColor; border-left: 2.5px solid currentColor; transform: translateY(3px) rotate(45deg); }
.to-top:hover { background: var(--gold); color: var(--ink); }
.to-top.is-shown { opacity: 1; transform: none; pointer-events: auto; }
@media (max-width: 960px) { .has-give-bar .to-top { bottom: 6rem; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--on-dark-2); font-size: var(--step--1); }
.site-footer .wrap { padding-block: 4.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.footer-grid h2 { font-family: var(--sans); font-size: 1rem; font-weight: 700; color: var(--gold-hi); margin-bottom: 1rem; line-height: 1.3; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; background: linear-gradient(var(--gold), var(--gold)) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--ease), color .3s; }
.site-footer a:hover { color: var(--gold-hi); background-size: 100% 1.5px; }
.footer-brand img { width: 180px; mix-blend-mode: screen; margin-bottom: 0.75rem; -webkit-mask-image: radial-gradient(ellipse 50% 50% at center, #000 60%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at center, #000 60%, transparent 100%); }
.footer-brand p { max-width: 34ch; }
.footer-base { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   MOTION (skipped when the visitor asks for reduced motion)
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .hero__photo, .page-head .arch img { animation: push-in 16s ease-out both; transform-origin: 35% 35%; }
  .hero__dark { animation: lamp 4.5s ease-in-out infinite; }
  .scroll-cue::after { animation: cue 1.8s var(--ease) infinite; }
  .app-phone { animation: float 6s ease-in-out infinite; }

  .js .split-words .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
  .js .split-words .w > span { display: inline-block; transform: translateY(105%); animation: word-up 1s var(--ease) forwards; animation-delay: calc(0.25s + var(--i) * 0.07s); }
  .js .hero-fade { opacity: 0; animation: fade-up 1s var(--ease) forwards; animation-delay: var(--d, 0.9s); }

  .js .reveal { opacity: 0; translate: 0 40px; transition: opacity 1s var(--ease), translate 1s var(--ease), transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s; transition-delay: calc(var(--stagger, 0) * 0.1s), calc(var(--stagger, 0) * 0.1s), 0s, 0s, 0s; }
  .js .reveal.is-in { opacity: 1; translate: 0 0; }
  .js .reveal-img { clip-path: inset(10% 6% 10% 6% round var(--radius)); transition: clip-path 1.3s var(--ease); }
  .js .reveal-img.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
}
@keyframes push-in { from { transform: scale(1.14); } to { transform: scale(1); } }
@keyframes lamp { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes word-up { to { transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes float { 50% { transform: translateY(-14px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .marquee__track { flex-wrap: wrap; width: auto; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .arch img { transform: none !important; }
}
