/* ==========================================================================
   Sulamita Youth — youth hub (azovgroup.com/youth → youth.azovgroup.com)
   Streamlined house design language; brand accent: brass-gold (continuity
   with the youth-calendar TV screen). Gold fills ALWAYS carry ink text.
   Dark, type-led, phone-first. Direction: "Friday at seven".
   ========================================================================== */

:root {
  /* neutrals (warm) */
  --ink: #0b0b0c;
  --charcoal: #17171a;
  --paper: #ffffff;
  --bone: #f6f3ec;
  --line: #e6e1d7;
  --steel: #5d6470; /* AA on bone (#f6f3ec), not just on white */
  /* accent family — brass gold, three steps + gradient */
  --accent: #c99a2e;
  --accent-deep: #9a7118;
  --accent-glow: #ecc35c;
  --accent-gradient: linear-gradient(135deg, var(--accent-glow), var(--accent) 50%, var(--accent-deep));
  /* branded shadows */
  --shadow-accent-soft: 0 4px 24px -4px rgba(201, 154, 46, 0.25);
  --shadow-accent-glow: 0 12px 40px -8px rgba(201, 154, 46, 0.45);
  --halo: 0 0 22px 6px rgba(236, 195, 92, 0.55);
  /* type */
  --font-display: "Inter Tight", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;
  /* radii */
  --radius: 10px;
  --radius-card: 16px;
  --radius-tile: 12px;
  --radius-input: 8px;
  /* motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-glide: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-press: cubic-bezier(0.19, 1, 0.22, 1);
  --press-down: 110ms;
  --press-up: 300ms;
  --t-fast: 150ms;
  --t-med: 300ms;
}

/* ---------- reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* Root paints ink: Safari fills inter-navigation frames and rubber-band
   overscroll with the html background — unset it is white, a bright flash
   on a dark site. color-scheme dark keeps the UA canvas/scrollbars dark. */
html { background-color: var(--ink); color-scheme: dark; -webkit-text-size-adjust: 100%; }
/* Clip sideways overflow AT THE ROOT (clip, never hidden): transformed boxes
   poking past the viewport edge must not let iOS pan the page sideways. */
html { overflow-x: clip; }
/* Smooth scrolling only once motion.js arms it (post-load #anchor jump). */
html.smooth { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
  background: var(--ink);
  overflow-x: clip;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
button { font: inherit; cursor: pointer; }
/* Kill iOS double-tap-to-zoom arming on tappables (pinch stays); suppress the
   grey tap-highlight box so our own press states carry the feedback. */
a, button, label, input, select, textarea, summary {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
body::-webkit-scrollbar { width: 10px; }
body::-webkit-scrollbar-thumb { background: rgba(107, 114, 128, 0.35); border-radius: 5px; }
body::-webkit-scrollbar-thumb:hover { background: rgba(201, 154, 46, 0.6); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 0.5em;
}

.container { max-width: 1400px; margin: 0 auto; padding-inline: 20px; }
.container { padding-inline: max(20px, env(safe-area-inset-left)) max(20px, env(safe-area-inset-right)); }
@media (min-width: 640px) { .container { padding-inline: max(32px, env(safe-area-inset-left)) max(32px, env(safe-area-inset-right)); } }
@media (min-width: 1024px) { .container { padding-inline: max(48px, env(safe-area-inset-left)) max(48px, env(safe-area-inset-right)); } }

/* ---------- first-paint gate + entrance veil (§7b) ----------
   boot.js adds .js pre-paint and releases .css-ready when styles parse.
   The veil covers the first ~400ms so bright bands can't pop against the
   dark first frame; pure CSS clock, self-clearing, no JS handshake. */
html.js:not(.css-ready) body { visibility: hidden; }
html.js::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--ink);
  pointer-events: none;
  animation: veil-out 300ms var(--ease) 100ms both;
}
@keyframes veil-out { from { opacity: 1; } to { opacity: 0; visibility: hidden; } }

/* reveal gating: pre-hide unsplit headings so deferred split can't flash */
html.js [data-words]:not([data-split]) { visibility: hidden; }

/* grain overlay on the whole dark canvas (static tile, barely-there) */
html.js body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image: url("../img/grain.png");
  background-size: 128px 128px;
  opacity: 0.05;
  mix-blend-mode: overlay;
}

/* ---------- mono voice ---------- */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 22px;
}
.eyebrow::before { content: ""; width: 32px; height: 1px; background: currentColor; flex: none; }
.mono-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.06);
}

/* ---------- buttons (pills; graceful press everywhere) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border: 0;
  transition: transform var(--press-up) var(--ease-press), box-shadow var(--t-med) var(--ease),
              background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
              color var(--t-fast) var(--ease);
}
.btn:active { transition-duration: var(--press-down); transform: scale(0.97) translateY(1px); }
.btn .arr { transition: transform var(--t-fast) var(--ease); }
.btn-gold { background: var(--accent-gradient); color: var(--ink); box-shadow: var(--shadow-accent-soft); }
.btn-gold:active { transform: scale(0.97) translateY(1px); box-shadow: var(--shadow-accent-soft); }
.btn-dark-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-light-ghost { background: transparent; border: 2px solid rgba(11, 11, 12, 0.2); color: var(--ink); }
/* hover feedback only for real pointers — iOS latches :hover on tap */
@media (hover: hover) and (pointer: fine) {
  .btn:hover .arr { transform: translate(2px, 0); }
  .btn-gold:hover { transform: scale(1.02); box-shadow: var(--shadow-accent-glow); }
  .btn-dark-ghost:hover { border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.1); }
  .btn-light-ghost:hover { border-color: var(--ink); background: rgba(11, 11, 12, 0.05); }
}

/* ---------- navbar ---------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: calc(64px + env(safe-area-inset-top));
  padding-top: env(safe-area-inset-top);
  display: flex;
  align-items: center;
}
/* blur lives on ::before — backdrop-filter on the bar itself would trap
   position:fixed children (the sheet) in a containing block */
.navbar::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(11, 11, 12, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
/* raised above the sibling nav-sheet (same navbar stacking context) so the
   burger/X stays tappable while the full-screen sheet is open */
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; position: relative; z-index: 2; }
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #fff;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}
.wordmark .dot { color: var(--accent); }
.wordmark .sub {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
}
.nav-links { display: none; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  padding: 8px 16px;
  border-radius: 9999px;
  transition: color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease),
              transform var(--press-up) var(--ease-press);
}
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav-links a:active { transition-duration: var(--press-down); transform: scale(0.96); }
.nav-cta { display: none; }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; padding: 10px 20px; font-size: 14px; }
  .burger { display: none !important; }
}

/* burger + full-screen sheet (checkbox = no-JS fallback; JS mirrors html.nav-open) */
#navtoggle { position: absolute; opacity: 0; pointer-events: none; }
.burger {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), transform var(--press-up) var(--ease-press);
}
.burger:active { transition-duration: var(--press-down); transform: scale(0.9); }
.burger span { display: block; width: 16px; height: 2px; background: #fff; border-radius: 1px; transition: transform var(--t-med) var(--ease), opacity var(--t-fast) var(--ease); }
#navtoggle:checked ~ .nav-inner .burger span:nth-child(1),
html.nav-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#navtoggle:checked ~ .nav-inner .burger span:nth-child(2),
html.nav-open .burger span:nth-child(2) { opacity: 0; }
#navtoggle:checked ~ .nav-inner .burger span:nth-child(3),
html.nav-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 1; /* local to the navbar stacking context — below .nav-inner (2) */
  background: rgb(11, 11, 12); /* solid — hero headline must not ghost through */
  padding: calc(96px + env(safe-area-inset-top)) max(24px, env(safe-area-inset-left)) calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 340ms var(--ease-glide), transform 340ms var(--ease-glide), visibility 0s linear 340ms;
}
#navtoggle:checked ~ .nav-sheet,
html.nav-open .nav-sheet {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity 420ms var(--ease-glide), transform 420ms var(--ease-glide), visibility 0s;
}
html.nav-instant .nav-sheet { transition: none !important; }
.nav-sheet a.sheet-link {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
  padding: 18px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color var(--t-fast) var(--ease), transform var(--press-up) var(--ease-press);
}
.nav-sheet a.sheet-link:active { transition-duration: var(--press-down); transform: scale(0.98); }
.nav-sheet a.sheet-link .mono-meta { color: rgba(255, 255, 255, 0.35); }
.nav-sheet a.sheet-link:hover { color: var(--accent-glow); }
.nav-sheet .btn { margin-top: auto; width: 100%; }
/* menu open at deep scroll: pin the (sticky) bar so its X stays reachable */
html.nav-open .navbar,
body:has(#navtoggle:checked) .navbar { position: fixed; top: 0; left: 0; right: 0; }
html.nav-open body { overflow: hidden; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(56px, 9vh, 110px) 0 clamp(48px, 7vh, 84px); }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: 7fr 5fr; gap: 64px; } }
.hero h1 {
  font-size: clamp(44px, 9vw, 96px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: #fff;
  margin: 0 0 26px;
}
/* gradient must ALSO sit on the .w word spans motion.js creates: WebKit's
   background-clip:text does not paint through inline-block descendants, so
   parent-only cliping leaves the split word fully transparent = invisible */
.hero h1 .gold, .hero h1 .gold .w {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 18px; line-height: 1.6; color: rgba(255, 255, 255, 0.62); max-width: 46ch; margin: 0 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }

/* the signature: live countdown chip to Friday 19:00 Pacific */
.countdown {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-glow);
  border: 1px solid rgba(236, 195, 92, 0.35);
  background: rgba(201, 154, 46, 0.08);
  border-radius: 9999px;
  padding: 10px 18px;
  margin-bottom: 28px;
  font-variant-numeric: tabular-nums;
}
.countdown .pulse { position: relative; width: 8px; height: 8px; flex: none; }
.countdown .pulse::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-glow);
  animation: ping 1.6s var(--ease) infinite;
}
.countdown .pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent-glow);
  box-shadow: var(--halo);
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.4); opacity: 0; } }

.hero-media { position: relative; }
.hero-media figure {
  margin: 0;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
}
/* height:auto or the height="" attribute pins the box and kills aspect-ratio */
.hero-media img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-media figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 42px 18px 14px;
  background: linear-gradient(to top, rgba(11, 11, 12, 0.85), transparent);
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.hero-media .frame-tag {
  position: absolute;
  top: 14px;
  right: 14px;
}

/* ---------- ticker strip ---------- */
.ticker {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  overflow: hidden;
  padding: 14px 0;
  background: rgba(255, 255, 255, 0.02);
}
.ticker-track { display: flex; flex-shrink: 0; width: max-content; animation: marquee 42s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track ul { display: flex; align-items: center; gap: 34px; list-style: none; margin: 0; padding: 0 17px; }
.ticker-track li {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 34px;
}
.ticker-track li::after { content: "✦"; color: var(--accent); font-size: 9px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- section scaffolding ---------- */
.section { padding: clamp(72px, 11vh, 128px) 0; position: relative; }
.section h2 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.section .lede { font-size: 18px; line-height: 1.6; max-width: 56ch; margin: 0 0 40px; }
.on-light { background: var(--bone); color: var(--ink); }
.on-light h2 { color: var(--ink); }
.on-light .lede { color: var(--steel); }
.on-paper { background: var(--paper); color: var(--ink); }
.on-paper h2 { color: var(--ink); }
.on-paper .lede { color: var(--steel); }
.on-dark h2 { color: #fff; }
.on-dark .lede { color: rgba(255, 255, 255, 0.6); }
.section-head { display: grid; gap: 0; }
/* mobile: the CTA button stacks under the lede — breathing room above AND
   below, so it never sits flush on the list border / photo grid beneath it */
.section-head.split .head-cta { margin: 18px 0 30px; }
@media (min-width: 1024px) {
  .section-head.split { grid-template-columns: 1fr auto; align-items: end; gap: 32px; }
  .section-head.split .head-cta { margin: 0 0 44px; }
}

/* ---------- this week (bone) ---------- */
#week-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.week-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 4px;
  border-bottom: 1px solid var(--line);
}
.week-row .date-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.5;
}
.week-row .date-chip small { display: block; font-size: 10px; font-weight: 500; color: var(--steel); letter-spacing: 0.16em; }
.week-row .evt-title { font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink); line-height: 1.3; }
.week-row .evt-sub { font-size: 13.5px; color: var(--steel); margin-top: 2px; }
.week-row .badge { border-color: var(--line); background: var(--paper); color: var(--steel); }
.week-row.is-friday .badge { background: var(--accent-gradient); color: var(--ink); border-color: transparent; box-shadow: var(--shadow-accent-soft); }
.week-row.is-cancelled .evt-title { text-decoration: line-through; color: var(--steel); }
.week-row.is-cancelled .badge { color: #a33; border-color: rgba(170, 51, 51, 0.3); }
@media (max-width: 560px) {
  .week-row { grid-template-columns: 74px 1fr; }
  .week-row .badge { grid-column: 2; justify-self: start; }
}
.week-note { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.week-note .mono-meta { color: var(--steel); }
/* designed empty/error state — never a blank hole */
.week-empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius-card);
  padding: 34px 26px;
  text-align: center;
}
.week-empty .evt-title { font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--ink); }
.week-empty p { color: var(--steel); font-size: 15px; margin: 8px 0 18px; }

/* ---------- camps (paper) ---------- */
.camp-grid { display: grid; gap: 22px; }
@media (min-width: 760px) { .camp-grid { grid-template-columns: repeat(3, 1fr); } }
.camp-card {
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  border: 1px solid var(--line);
  position: relative;
  background: var(--ink);
  transition: transform var(--press-up) var(--ease-press), box-shadow var(--t-med) var(--ease);
}
.camp-card:active { transition-duration: var(--press-down); transform: scale(0.98); }
.camp-card img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 700ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .camp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-accent-soft); }
  .camp-card:hover img { transform: scale(1.05); }
}
.camp-card .scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 12, 0.9) 0%, rgba(11, 11, 12, 0.25) 45%, transparent 70%);
}
.camp-card .card-copy { position: absolute; left: 18px; right: 18px; bottom: 16px; color: #fff; }
.camp-card .card-copy h3 { font-size: 20px; margin: 6px 0 2px; color: #fff; }
.camp-card .card-copy .mono-meta { color: rgba(255, 255, 255, 0.65); }
.camp-note {
  margin-top: 34px;
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 600;
  color: var(--ink);
  max-width: 60ch;
}
.camp-note + .mono-meta { display: block; margin-top: 10px; color: var(--steel); }

/* ---------- dark chapter: photos + give ---------- */
.dark-chapter { background: var(--ink); }
#photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { #photo-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.photo-tile {
  display: block;
  border-radius: var(--radius-tile);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  background: var(--charcoal);
  transition: transform var(--press-up) var(--ease-press), border-color var(--t-fast) var(--ease);
}
.photo-tile:active { transition-duration: var(--press-down); transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .photo-tile:hover { border-color: rgba(236, 195, 92, 0.5); }
}
.photo-tile img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.photo-tile .tile-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  right: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 9.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 8px rgba(11, 11, 12, 0.9);
  opacity: 0;
  transition: opacity var(--t-fast) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .photo-tile:hover .tile-tag { opacity: 1; } }
.photo-fallback {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-card);
  padding: 38px 26px;
  text-align: center;
  color: rgba(255, 255, 255, 0.65);
}

/* give */
.give-wrap { position: relative; }
/* gold mist: a light source behind the card. Offsets clamp with the art so
   the bright core stays inside the viewport at 390px. */
.give-wrap::before {
  content: "";
  position: absolute;
  width: min(720px, 130vw);
  height: min(520px, 90vw);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(201, 154, 46, 0.28), rgba(201, 154, 46, 0.08) 55%, transparent 75%);
  filter: blur(60px);
  pointer-events: none;
}
.give-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-card);
  padding: 34px 26px;
  display: grid;
  gap: 30px;
  max-width: 760px;
  margin: 0 auto;
}
@media (min-width: 760px) { .give-card { grid-template-columns: 1fr auto; align-items: center; padding: 44px 46px; } }
.give-card h3 { color: #fff; font-size: 26px; margin: 0 0 10px; }
.give-card p { color: rgba(255, 255, 255, 0.62); margin: 0 0 24px; font-size: 15.5px; max-width: 40ch; }
.give-tag { font-variant-numeric: tabular-nums; } /* inherits ink — gold fills always carry ink text */
.qr-patch {
  background: var(--paper);
  border-radius: var(--radius-tile);
  padding: 14px;
  width: 168px;
  justify-self: center;
  box-shadow: var(--shadow-accent-soft);
}
.qr-patch img { width: 140px; height: 140px; }
.qr-patch .mono-meta { display: block; text-align: center; color: var(--ink); margin-top: 8px; font-size: 9.5px; }

/* ---------- connect (bone) ---------- */
.connect-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .connect-grid { grid-template-columns: repeat(2, 1fr); } }
.connect-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.connect-card h3 { font-size: 20px; color: var(--ink); margin: 10px 0 0; }
.connect-card p { color: var(--steel); font-size: 15px; line-height: 1.6; margin: 0; }
.connect-card .btn { margin-top: auto; align-self: start; padding: 11px 20px; font-size: 14px; }
.connect-card .glyph {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-tile);
  border: 1px solid rgba(201, 154, 46, 0.4);
  box-shadow: var(--shadow-accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-deep);
}
.connect-card .glyph svg { width: 22px; height: 22px; }

/* ---------- ministries + interest form (bone) ---------- */
.ministry-flow { display: grid; gap: 40px; margin-top: 72px; }
@media (min-width: 1024px) { .ministry-flow { grid-template-columns: 5fr 7fr; gap: 64px; align-items: start; } }
.ministry-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.ministry-row { padding: 18px 4px; border-bottom: 1px solid var(--line); }
.ministry-row h3 { font-size: 18px; color: var(--ink); margin: 0 0 4px; }
.ministry-row p { color: var(--steel); font-size: 14.5px; margin: 0; }
.interest-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  padding: 30px 26px;
}
@media (min-width: 640px) { .interest-card { padding: 38px 40px; } }
.interest-card h3 { font-size: 22px; color: var(--ink); margin: 0 0 6px; }
.interest-card > p { color: var(--steel); font-size: 15px; margin: 0 0 26px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 8px;
}
.field input[type="text"], .field input[type="tel"] {
  width: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.15); }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-row input { position: absolute; opacity: 0; pointer-events: none; }
.chip-row label {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
  padding: 10px 18px;
  border-radius: 9999px;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--steel);
  cursor: pointer;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease),
              background var(--t-fast) var(--ease), transform var(--press-up) var(--ease-press),
              box-shadow var(--t-med) var(--ease);
}
.chip-row label:active { transition-duration: var(--press-down); transform: scale(0.95); }
@media (hover: hover) and (pointer: fine) {
  .chip-row label:hover { border-color: rgba(11, 11, 12, 0.4); color: var(--ink); }
}
.chip-row input:checked + label {
  background: var(--accent-gradient);
  color: var(--ink);
  border-color: transparent;
  box-shadow: var(--shadow-accent-soft);
}
.chip-row input:focus-visible + label { outline: 2px solid var(--accent); outline-offset: 3px; }
/* honeypot — visually gone, present for bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 26px; }
.form-foot .mono-meta { color: var(--steel); font-size: 10px; }
.form-status { margin-top: 18px; font-size: 15px; display: none; }
.form-status.ok { display: block; color: #22682f; font-weight: 600; }
.form-status.err { display: block; color: #a33; font-weight: 600; }

/* ---------- footer (ink) ---------- */
footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: clamp(64px, 9vh, 100px) 0 calc(28px + env(safe-area-inset-bottom));
}
.foot-mark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  font-size: clamp(44px, 9vw, 96px); /* never outsizes the hero (96px) */
  color: #fff;
  margin: 0 0 12px;
}
.foot-mark .gold, .foot-mark .gold .w {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.foot-tag { color: rgba(255, 255, 255, 0.5); font-size: 16px; margin: 0 0 52px; max-width: 52ch; }
.foot-grid { display: grid; gap: 36px; padding-bottom: 48px; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: repeat(3, 1fr); } }
.foot-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin: 0 0 16px;
}
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.foot-col a { color: rgba(255, 255, 255, 0.7); font-size: 15px; display: inline-block; padding-block: 13px; } /* ≥44px tap target */
.foot-col a:hover { color: var(--accent-glow); }
.foot-col p { color: rgba(255, 255, 255, 0.7); font-size: 15px; line-height: 1.7; margin: 0; }
.foot-legal {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- entrances ---------- */
html.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  filter: blur(3px);
  transition: opacity 900ms var(--ease-glide) var(--reveal-delay, 0ms),
              transform 900ms var(--ease-glide) var(--reveal-delay, 0ms),
              filter 900ms var(--ease-glide) var(--reveal-delay, 0ms);
}
html.js [data-reveal].revealed { opacity: 1; transform: none; filter: none; }
[data-words] .w {
  display: inline-block;
  animation: word-in 600ms var(--ease-glide) backwards;
  animation-delay: calc(var(--wi) * 60ms);
}
@keyframes word-in {
  from { opacity: 0; transform: translateY(0.35em); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

/* ---------- 404 ---------- */
.err-wrap { min-height: 72vh; display: flex; align-items: center; }
.err-wrap .mono-meta { color: var(--accent); display: block; margin-bottom: 14px; }
.err-wrap h1 { color: #fff; font-size: clamp(38px, 7vw, 72px); margin: 0 0 14px; }
.err-wrap p { color: rgba(255, 255, 255, 0.6); margin: 0 0 30px; }

/* ---------- reduced motion: complete, non-negotiable ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.001ms !important;
    transition-delay: 0s !important;
  }
  html.smooth { scroll-behavior: auto; }
  /* infinite loops STOP (the .001ms clamp would strobe them) */
  .ticker-track { animation: none !important; transform: none; }
  .countdown .pulse::before { animation: none !important; opacity: 0; }
  html.js::after { animation: none !important; opacity: 0; visibility: hidden; }
  /* entrances ship settled */
  html.js [data-reveal] { opacity: 1; transform: none; filter: none; }
  html.js [data-words]:not([data-split]) { visibility: visible; }
  [data-words] .w { animation: none !important; }
}

/* ---------- review polish (2026-07-24 design pass) ---------- */
/* seams: hairline on the light side of every hard canvas cut */
#camps { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
#serve { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
/* photos→give: one continuous dark chapter, not two stacked gaps */
.dark-chapter + .dark-chapter { padding-top: 40px; }
/* reserve space so fetched content doesn't shove the page around */
#week-list:empty { min-height: 180px; }
#photo-grid:empty { min-height: 220px; }
.hero-media figcaption .mono-meta { white-space: nowrap; }
.give-card .btn { white-space: nowrap; }
@media (max-width: 420px) { .give-card .btn { font-size: 14px; padding-left: 18px; padding-right: 18px; } }

/* ── Instagram strip (section hidden until the server cache has posts) ── */
#insta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 760px) { #insta-grid { grid-template-columns: repeat(6, 1fr); gap: 14px; } }
.insta-tile {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-tile);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--charcoal);
  transition: transform var(--press-up) var(--ease-press), border-color var(--t-fast) var(--ease);
}
.insta-tile:active { transition-duration: var(--press-down); transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .insta-tile:hover { border-color: rgba(236, 195, 92, 0.5); }
}
.insta-tile img { width: 100%; height: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.reel-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(10, 10, 11, 0.72);
  color: #fff;
  pointer-events: none;
}

/* ── give: three ways (Cash App card + text/online method cards) ──
   Phone spec: methods stack 1-col at 390px, 2-col ≥760 — ADAPTED. */
.give-head { text-align: center; margin-bottom: 34px; }
.give-head .lede { margin-inline: auto; }
.give-methods {
  display: grid;
  gap: 16px;
  max-width: 760px;
  margin: 16px auto 0;
}
@media (min-width: 760px) { .give-methods { grid-template-columns: 1fr 1fr; } }
.method-card {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  border-radius: var(--radius-card);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.method-card h3 { color: #fff; font-size: 19px; margin: 2px 0 0; }
.method-card p { color: rgba(255, 255, 255, 0.62); font-size: 14.5px; line-height: 1.6; margin: 0; }
.method-card p strong { color: rgba(255, 255, 255, 0.86); }
.method-card .btn { margin-top: auto; align-self: start; padding: 11px 20px; font-size: 14px; }
.method-card .give-phone {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: 0.01em;
  color: var(--accent-glow);
  font-variant-numeric: tabular-nums;
}
.give-note { text-align: center; margin: 22px auto 0; max-width: 62ch; color: rgba(255, 255, 255, 0.45); font-size: 13px; }

/* ── photo wall: show-more + on-site viewer ── */
#photo-grid .photo-tile.is-extra { display: none; }
#photo-grid.expanded .photo-tile.is-extra { display: block; }
.photo-more-wrap { text-align: center; margin-top: 26px; }
.photo-more-wrap[hidden] { display: none; }

/* Lightbox: below the entrance veil (9999), above everything else.
   Phone spec: SAME at both viewports — buttons are 44px targets with
   safe-area padding; arrows/close absolutely placed, image letterboxed. */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  background: rgba(8, 8, 9, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  padding: max(14px, env(safe-area-inset-top)) max(14px, env(safe-area-inset-right))
           max(14px, env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-left));
}
.lightbox.open { display: block; }
.lightbox figure {
  position: absolute;
  inset: 64px 14px 96px;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: var(--radius-tile);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
}
.lb-bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.lb-caption {
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lb-flickr { color: var(--accent-glow); font-size: 13px; white-space: nowrap; padding: 12px 0; }
.lb-btn {
  position: absolute;
  z-index: 2;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(20, 20, 22, 0.7);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform var(--press-up) var(--ease-press), border-color var(--t-fast) var(--ease);
}
.lb-btn:active { transition-duration: var(--press-down); transform: scale(0.92); }
@media (hover: hover) and (pointer: fine) { .lb-btn:hover { border-color: rgba(236, 195, 92, 0.6); } }
.lb-btn svg { width: 20px; height: 20px; }
.lb-close { top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); }
.lb-prev { top: 50%; left: max(8px, env(safe-area-inset-left)); transform: translateY(-50%); }
.lb-next { top: 50%; right: max(8px, env(safe-area-inset-right)); transform: translateY(-50%); }
.lb-prev:active, .lb-next:active { transform: translateY(-50%) scale(0.92); }
/* scroll lock while open — same pin rule as the nav sheet */
html.lb-open, html.lb-open body { overflow: hidden; }
html.lb-open .navbar { position: fixed; top: 0; left: 0; right: 0; }

/* ── ask anything (anonymous Q&A, paper band) ── */
.ask-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--paper);
  padding: 30px 26px;
  max-width: 720px;
  margin: 0 auto;
}
@media (min-width: 640px) { .ask-card { padding: 38px 40px; } }
.field textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  padding: 12px 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(201, 154, 46, 0.15); }
/* #serve's border-bottom already draws the seam above #ask — no second line */
#ask .section-head { text-align: center; }
#ask .lede { margin-inline: auto; }

/* leaders' shortcut in the footer small print */
.foot-legal a { color: rgba(255, 255, 255, 0.55); text-decoration: underline; text-underline-offset: 3px; padding-block: 6px; }
.foot-legal a:hover { color: var(--accent-glow); }
.reel-badge svg { width: 12px; height: 12px; display: block; }
