/* ============================================================
   Shepherd's House Worship Center · 10 Year Anniversary
   v3 — black / gold / cream, per brand mockup.
   Serif caps display (Cormorant Garamond) + script accents
   (Great Vibes), spaced-caps labels, framed gold boxes,
   stat bar + marquee, countdown bar. Mobile-first.
   Theme attributes on <html>: data-base, data-accent, data-display.
   ============================================================ */

:root {
  /* --- dark base (default) --- */
  --bg:        #0c0b08;
  --bg-2:      #13100b;
  --surface:   #181410;
  --ink:       #f3eddd;
  --ink-soft:  #a3987f;
  --accent:    #c9a356;   /* gold */
  --accent-2:  #8a6526;
  --on-accent: #171204;
  --gold-hi:   #ecd29a;
  --line:      rgba(243, 237, 221, .18);
  --line-soft: rgba(243, 237, 221, .09);
  --shadow:    0 30px 70px -30px rgba(0,0,0,.85);

  --cream:       #f1ebdb;
  --cream-2:     #e8e0ca;
  --cream-surface: #faf6ea;
  --cream-ink:   #1d1812;
  --cream-soft:  #6f6253;

  --display: "Cinzel", Georgia, serif;
  --display-wt: 600;
  --script:  "Great Vibes", cursive;
  --label:   "Hanken Grotesk", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 2px;
}

:root[data-base="light"] {
  --bg:        #f1ebdb;
  --bg-2:      #e8e0ca;
  --surface:   #faf6ea;
  --ink:       #1d1812;
  --ink-soft:  #6f6253;
  --accent:    #8a6526;
  --accent-2:  #c9a356;
  --on-accent: #faf6ea;
  --gold-hi:   #b08a3e;
  --line:      rgba(29, 24, 18, .25);
  --line-soft: rgba(29, 24, 18, .11);
  --shadow:    0 30px 70px -40px rgba(60, 45, 20, .35);
}

/* Navy & Gold combination — deep navy base, gold accent */
:root[data-accent="navy"] {
  --bg:        #0a0f1d;
  --bg-2:      #0e1526;
  --surface:   #141c31;
  --ink:       #f0ecdf;
  --ink-soft:  #97a0b4;
  --accent:    #c9a356;
  --accent-2:  #8a6526;
  --gold-hi:   #ecd29a;
  --on-accent: #0d1322;
  --line:      rgba(240, 236, 223, .18);
  --line-soft: rgba(240, 236, 223, .09);
}
:root[data-base="light"][data-accent="navy"] {
  --bg:        #eef0f4;
  --bg-2:      #e2e6ee;
  --surface:   #f9fafc;
  --ink:       #131c31;
  --ink-soft:  #5a6478;
  --accent:    #8a6526;
  --accent-2:  #c9a356;
  --gold-hi:   #b08a3e;
  --on-accent: #f9fafc;
  --line:      rgba(19, 28, 49, .22);
  --line-soft: rgba(19, 28, 49, .1);
}
:root[data-accent="navy"] .band.cream { --accent: #34466e; --accent-2: #7d96c9; --gold-hi: #22304d; }
:root[data-accent="royal"]    { --accent:#8aa3d6; --accent-2:#4d648f; --gold-hi:#c3d2ee; --on-accent:#10131a; }
:root[data-base="light"][data-accent="royal"]   { --accent:#3d5687; --accent-2:#7d96c9; --gold-hi:#2c3f63; --on-accent:#f6f4ec; }

:root[data-display="italiana"] { --display: "Italiana", Georgia, serif; --display-wt: 400; }
:root[data-display="cormorant"] { --display: "Cormorant Garamond", Georgia, serif; }
:root[data-script="pinyon"] { --script: "Pinyon Script", cursive; }

/* Display-font weight follows the active family (Italiana has no bold) */
:is(.serif, .section-title, .page-hero h1, .ten-num, .ten-side, .hero-sub,
    .day h3, .day .dow .n, .milestone .yr, .info-card h4, .value-card h3,
    .foot .big, .brand .name, .brand .mark, .give-success h3, .drawer header h3,
    .rehab .t b, .program-venue b, .stat-bar .st b, .mm-links a,
    .amounts button, .custom-amt input, .custom-amt .cur, .cart-line .thumb,
    .cart-line .pr, .drawer footer .sub b, .product .info .pr,
    .m-day .d, .m-card figcaption b) { font-weight: var(--display-wt) !important; }

/* ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
@media (min-width: 720px) { body { font-size: 17px; } }
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: .35;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29' opacity='0.05'/%3E%3C/svg%3E");
  mix-blend-mode: screen;
}
:root[data-base="light"] body::before { mix-blend-mode: multiply; opacity: .5; }

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
a { color: inherit; }
img { max-width: 100%; display: block; }
::selection { background: var(--accent); color: var(--on-accent); }
main, section, footer, header { position: relative; z-index: 2; }
[hidden] { display: none !important; }

/* ---------- type ---------- */
.serif { font-family: var(--display); font-weight: 600; }
.eyebrow {
  font-family: var(--label); font-weight: 700; font-size: .68rem; letter-spacing: .3em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 18px;
  display: inline-flex; align-items: center; gap: 1em;
}
.eyebrow::before { content: ""; width: 30px; height: 1px; background: currentColor; flex: none; }
.section-title {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.8rem, 4.2vw, 3.2rem); line-height: 1.12; letter-spacing: .03em; margin: 0;
}
.section-title em, .page-hero h1 em, .foot .big em {
  font-family: var(--script); font-style: normal; font-weight: 400;
  text-transform: none; color: var(--accent); letter-spacing: 0;
  font-size: 1.18em; line-height: 1.04; display: inline-block; vertical-align: baseline;
}
.section-sub { color: var(--ink-soft); max-width: 56ch; margin: 18px 0 0; font-size: 1.05rem; }
.section-head { margin-bottom: clamp(30px, 5vw, 56px); }
.placeholder-note { color: var(--accent); opacity: .9; font-style: normal; }
.ext-ico {
  width: .76em; height: .76em; margin-left: .4em; vertical-align: -0.03em;
  flex: none; opacity: .8; display: inline-block;
}

/* ---------- buttons ---------- */
.btn {
  appearance: none; border: none; cursor: pointer; text-decoration: none;
  font-family: var(--label); font-weight: 700; font-size: .72rem; letter-spacing: .22em; text-transform: uppercase;
  padding: 1.1em 1.9em; border-radius: var(--radius); white-space: nowrap;
  background: linear-gradient(165deg, var(--gold-hi) 0%, var(--accent) 38%, var(--accent-2) 130%);
  color: var(--on-accent);
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 44px;
  transition: filter .2s, background .2s, color .2s, box-shadow .2s;
}
.btn:hover { filter: brightness(1.12); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { filter: none; box-shadow: inset 0 0 0 1px var(--accent); color: var(--accent); }
.btn.sm { font-size: .64rem; padding: .9em 1.4em; }
.btn.lg { font-size: .82rem; padding: 1.3em 3.2em; box-shadow: 0 14px 38px -14px color-mix(in oklab, var(--accent) 70%, transparent); }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; }

/* ============================================================
   COUNTDOWN BAR
   ============================================================ */
.countbar {
  position: relative; z-index: 61;
  display: flex; align-items: center; justify-content: center; gap: 8px 22px; flex-wrap: wrap;
  padding: 9px var(--gutter);
  background: linear-gradient(165deg, var(--gold-hi) 0%, var(--accent) 45%, var(--accent-2) 140%);
  color: var(--on-accent);
  font-family: var(--label); font-weight: 700; font-size: .62rem; letter-spacing: .24em; text-transform: uppercase;
  text-align: center;
}
.countbar .cb-clock {
  display: inline-flex; align-items: baseline; gap: .9em;
  font-size: .8rem; letter-spacing: .1em; font-variant-numeric: tabular-nums;
}
.countbar .cb-clock b { font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: .02em; }
.countbar .cb-clock i { font-style: normal; font-size: .58rem; letter-spacing: .2em; opacity: .8; margin-left: .25em; }
.countbar .cb-when { opacity: .85; white-space: nowrap; }
@media (max-width: 560px) { .countbar .cb-when { display: none; } }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 12px var(--gutter);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav[data-stuck="true"] { border-color: var(--line-soft); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand .mark-img { width: 48px; height: 48px; flex: none; object-fit: contain; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.brand .mark {
  width: 42px; height: 42px; flex: none; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--accent); color: var(--accent);
  box-shadow: inset 0 0 0 2.5px var(--bg), inset 0 0 0 3.5px color-mix(in oklab, var(--accent) 55%, transparent);
  font-family: var(--display); font-weight: 600; font-size: 1.05rem; line-height: 1; letter-spacing: .02em;
}
.brand .name { font-family: var(--display); font-weight: 600; letter-spacing: .14em; font-size: .82rem; text-transform: uppercase; line-height: 1.3; }
.brand .name small { display: block; font-family: var(--label); font-weight: 600; font-size: .56rem; letter-spacing: .34em; color: var(--ink-soft); text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: clamp(12px, 2vw, 26px); }
.nav-links > a:not(.btn) {
  text-decoration: none; font-family: var(--label); font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-soft); padding: 4px 0; position: relative; white-space: nowrap; transition: color .2s;
}
.nav-links > a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -3px; height: 1px;
  background: var(--accent); transition: right .25s ease;
}
.nav-links > a:not(.btn):hover, .nav-links > a[aria-current="page"] { color: var(--ink); }
.nav-links > a:not(.btn):hover::after, .nav-links > a[aria-current="page"]::after { right: 0; }
.cart-btn { position: relative; }
.cart-btn .count {
  position: absolute; top: -7px; right: -9px; min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font-size: .68rem; font-weight: 700;
  display: grid; place-items: center; padding: 0 5px;
}
@media (max-width: 1080px) { .nav-links > a.optional { display: none; } }
@media (max-width: 700px)  { .nav-links > a:not(.btn) { display: none; } .nav-links > a.btn.ghost:not(.cart-btn) { display: none; } .brand .name small { display: none; } }

/* ---------- hamburger + mobile menu ---------- */
.menu-btn {
  display: none; appearance: none; background: transparent; border: 1px solid var(--line);
  border-radius: var(--radius); cursor: pointer; width: 44px; height: 44px; flex: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 0;
}
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); transition: transform .25s ease, opacity .2s ease; }
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 1080px) { .menu-btn { display: flex; } }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55; background: var(--bg);
  padding: 110px var(--gutter) 32px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 30px;
  opacity: 0; pointer-events: none;
  overflow-y: auto;
}
.mobile-menu.open { animation: shwc-fade .25s ease both; pointer-events: auto; }
@keyframes shwc-fade { from { opacity: 0; } to { opacity: 1; } }
.mm-links { display: flex; flex-direction: column; }
.mm-links a {
  display: flex; align-items: baseline; gap: 18px; text-decoration: none;
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.7rem, 7.5vw, 2.7rem); line-height: 1.1; letter-spacing: .06em; color: var(--ink);
  padding: 15px 0; border-bottom: 1px solid var(--line-soft);
}
.mm-links a i { font-family: var(--label); font-weight: 700; font-style: normal; font-size: .62rem; letter-spacing: .24em; color: var(--accent); }
.mm-links a:active { color: var(--accent); }
.mm-foot { display: flex; flex-wrap: wrap; gap: 0 26px; }
.mm-foot a {
  font-family: var(--label); font-weight: 700; font-size: .68rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center;
}
.mm-foot a:active { color: var(--ink); }

/* ============================================================
   HOME · HERO (centered lockup) + STAT BAR + MARQUEE
   ============================================================ */
.hero {
  position: relative; min-height: 180svh;
  display: flex; align-items: flex-start; text-align: center; overflow: hidden;
}
/* video pinned to the viewport — content scrolls up and covers it.
   .hero z-index:auto keeps it from trapping the fixed video in its own
   stacking layer, so the video drops behind all later sections. */
.hero { z-index: auto; }
.hero .media { position: fixed; inset: 0; z-index: -2; }
.hero .media image-slot { width: 100%; height: 100%; }
.hero .media .hero-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero .media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: rgba(0, 0, 0, var(--hero-ov, .6));
}
.hero .inner {
  position: relative; z-index: 2; width: 100%; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(18px, 3.5vh, 40px);
  padding-top: clamp(28px, 5vh, 60px); padding-bottom: clamp(28px, 6vh, 70px);
}
.hero .hero-bottom { display: flex; flex-direction: column; align-items: center; margin-top: 0; }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 16px;
  font-family: var(--label); font-weight: 700; font-size: .64rem; letter-spacing: .4em; text-transform: uppercase; color: var(--ink);
  margin: 0 0 10px;
}
.hero-kicker::before, .hero-kicker::after { content: ""; width: 36px; height: 1px; background: var(--accent); }

.ten-lockup { display: flex; flex-direction: column; align-items: center; line-height: .85; }
/* hero mark — lives in a fixed-height slot that governs the tagline's
   position, but the image itself is larger than the slot and overflows
   UPWARD, so enlarging the logo never moves the tagline / buttons below it */
.hero-logo-wrap {
  width: 100%; display: flex; justify-content: center; align-items: flex-end;
  height: min(50svh, 540px);
}
.hero-logo {
  z-index: 1;
  height: min(53svh, 580px); width: auto; max-width: 76vw; object-fit: contain;
  filter: drop-shadow(0 26px 70px rgba(0, 0, 0, .7));
  pointer-events: none;
}
@media (max-width: 640px) {
  .hero-logo-wrap { height: 34svh; }
  .hero-logo { height: auto; width: 72vw; max-height: 42svh; }
}
.ten-row { display: inline-flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.ten-num {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(7.5rem, 26vw, 16rem); letter-spacing: -.03em; line-height: .82;
  background: linear-gradient(168deg, var(--gold-hi) 6%, var(--accent) 46%, var(--accent-2) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ten-side {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.1rem, 3.4vw, 2.2rem); letter-spacing: .42em; color: var(--ink);
  text-indent: .42em;
}
.ten-script {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3.4rem, 11vw, 7rem); color: var(--ink);
  margin-top: -.42em; position: relative; z-index: 2;
  text-shadow: 0 4px 30px rgba(0,0,0,.55);
}
.hero-sub {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(.92rem, 2.4vw, 1.45rem); letter-spacing: .26em; margin: 0;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .7);
}
.hero-years {
  font-family: var(--label); font-weight: 700; font-size: .72rem; letter-spacing: .5em; text-indent: .5em;
  color: var(--accent); margin: 14px 0 0; text-transform: uppercase;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: clamp(24px, 4vh, 38px); }

/* stat bar */
.stat-bar { border-block: 1px solid var(--line-soft); background: var(--bg-2); }
.stat-bar .stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-bar .st {
  font-family: var(--label); font-weight: 700; font-size: .6rem; letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-soft); padding: 16px clamp(10px, 2vw, 28px);
  display: flex; flex-direction: column; gap: 4px;
  border-left: 1px solid var(--line-soft);
}
.stat-bar .st:first-child { border-left: none; }
.stat-bar .st b { font-family: var(--display); font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.55rem); color: var(--ink); letter-spacing: .06em; text-transform: uppercase; }
.stat-bar .st b.placeholder-note { color: var(--accent); }
@media (max-width: 760px) {
  .stat-bar .stats { grid-template-columns: 1fr 1fr; }
  .stat-bar .st:nth-child(3) { border-left: none; }
  .stat-bar .st:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
}

/* marquee ribbon */
.marquee { overflow: hidden; border-bottom: 1px solid var(--line-soft); padding: 12px 0; user-select: none; background: var(--bg); }
.marquee .track { display: flex; width: max-content; }
.marquee .grp {
  display: flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap;
  font-family: var(--display); font-weight: 600; font-size: 1rem; text-transform: uppercase; letter-spacing: .22em; color: var(--ink);
}
.marquee .grp i { font-style: normal; color: var(--accent); font-size: .8rem; }
@media (prefers-reduced-motion: no-preference) {
  .marquee .track { animation: mq 30s linear infinite; }
}
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS / BANDS
   ============================================================ */
.band { padding: clamp(60px, 10vh, 130px) 0; background: var(--bg); }
.band.tint { background: var(--bg-2); border-block: 1px solid var(--line-soft); }
.band.cream {
  background: var(--cream); color: var(--cream-ink);
  --ink: var(--cream-ink);
  --ink-soft: #6f6253;
  --bg: var(--cream);
  --bg-2: var(--cream-2);
  --surface: var(--cream-surface);
  --accent: #8a6526;
  --accent-2: #c9a356;
  --gold-hi: #b08a3e;
  --on-accent: #faf6ea;
  --line: rgba(29, 24, 18, .25);
  --line-soft: rgba(29, 24, 18, .12);
}
:root[data-accent="royal"] .band.cream { --accent: #3d5687; --accent-2: #7d96c9; --gold-hi: #2c3f63; }

/* ---------- quote band ---------- */
.quote-band { border-block: 1px solid var(--line-soft); background: var(--bg-2); padding: clamp(44px, 7vh, 70px) 0; text-align: center; }
.quote-band blockquote {
  margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-style: italic;
  font-size: clamp(1.25rem, 2.8vw, 1.9rem); line-height: 1.45; max-width: 36ch; margin-inline: auto;
}
.quote-band cite {
  display: block; margin-top: 16px; font-style: normal;
  font-family: var(--label); font-weight: 700; font-size: .64rem; letter-spacing: .34em; text-transform: uppercase; color: var(--accent);
}

/* ---------- program ---------- */
.program-head { display: block; }
.venue-line {
  display: inline-flex; align-items: center; gap: 10px; margin: 14px 0 4px;
  font-family: var(--label); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; line-height: 1.7;
}
.venue-line svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.venue-line:hover { color: var(--accent); }

/* ---------- program schedule rows ---------- */
.sched { margin-top: clamp(26px, 4vw, 46px); border-top: 1px solid var(--line); }
.sched-row {
  display: grid; grid-template-areas: "date main time";
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: clamp(18px, 3.4vw, 48px); align-items: center;
  padding: clamp(22px, 3vw, 34px) clamp(4px, 1vw, 12px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .2s ease;
}
.sched-row { cursor: pointer; }
.sched-row:hover { background: color-mix(in oklab, var(--accent) 5%, transparent); }
.sr-date {
  grid-area: date; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding-right: clamp(14px, 2vw, 24px); border-right: 1px solid var(--line-soft);
}
.sr-date .sr-dow, .sr-date .sr-mon {
  font-family: var(--label); font-weight: 700; font-size: .62rem; letter-spacing: .3em; text-indent: .3em; text-transform: uppercase; color: var(--ink-soft);
}
.sr-date .sr-num {
  font-family: var(--display); font-weight: 600; font-size: clamp(2.1rem, 3.4vw, 2.8rem); line-height: 1; color: var(--accent);
}
.sr-main { grid-area: main; }
.sr-main h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.15rem, 2.2vw, 1.55rem); letter-spacing: .05em; line-height: 1.2; margin: 0; }
.sr-main p { margin: 6px 0 0; color: var(--ink-soft); font-size: .96rem; max-width: 56ch; }
.sr-venue {
  display: inline-flex; align-items: center; gap: 7px; margin: 11px 0 0;
  font-family: var(--label); font-weight: 700; font-size: .67rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-soft); text-decoration: none; line-height: 1.5;
}
.sr-venue svg { width: 14px; height: 14px; color: var(--accent); flex: none; }
.sr-venue:hover { color: var(--accent); }
.sr-time {
  grid-area: time; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: .75em 1.2em; border: 1px solid color-mix(in oklab, var(--accent) 35%, transparent); border-radius: 999px;
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  font-family: var(--label); font-weight: 700; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase;
}
.sr-time svg { width: 15px; height: 15px; color: var(--accent); flex: none; }
@media (max-width: 680px) {
  .sched-row { grid-template-areas: "date main" "date time"; grid-template-columns: 64px minmax(0, 1fr); row-gap: 12px; align-items: start; }
  .sr-date { padding-right: 14px; }
  .sr-time { justify-self: start; }
}
.program-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: clamp(26px, 3vw, 40px); }

/* ---------- story ---------- */
.story-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 90px); align-items: start; }
.story-copy p { font-size: 1.1rem; margin: 0 0 1.15em; max-width: 58ch; }
.story-copy p.first::first-letter {
  font-family: var(--display); font-weight: 600; float: left; font-size: 4.4em; line-height: .76;
  padding: .04em .14em 0 0; color: var(--accent);
}
.story-photos { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; gap: 12px; position: sticky; top: 96px; }
.story-photos image-slot { width: 100%; height: 100%; }
.story-photos .tall { grid-row: span 2; }
.milestones { margin-top: clamp(40px, 6vw, 70px); border-top: 1px solid var(--line); }
.milestone {
  display: grid; grid-template-columns: 96px 1fr; gap: clamp(16px, 4vw, 56px);
  padding: 18px 0; border-bottom: 1px solid var(--line-soft); align-items: baseline;
}
.milestone .yr { font-family: var(--display); font-weight: 600; font-size: 1.5rem; color: var(--accent); letter-spacing: .04em; }
.milestone p { margin: 0; color: var(--ink-soft); }
.milestone p b { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .story-grid { grid-template-columns: 1fr; } .story-photos { position: static; grid-auto-rows: 130px; } }
@media (max-width: 640px) { .milestone { grid-template-columns: 72px 1fr; } }

/* ---------- Rehoboth Prayer Camp highlight banner ---------- */
.rehab {
  background: linear-gradient(160deg, var(--gold-hi) 0%, var(--accent) 48%, var(--accent-2) 135%);
  color: var(--on-accent); border-block: none;
  padding: clamp(34px, 5vw, 56px) 0;
}
.rehab .row { display: flex; align-items: center; gap: clamp(18px, 3vw, 40px); flex-wrap: wrap; }
.rehab .ic {
  width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 1.5px solid var(--on-accent); color: var(--on-accent);
}
.rehab .ic svg { width: 24px; height: 24px; }
.rehab .t { flex: 1 1 300px; }
.rehab .t b { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.3rem, 2.6vw, 1.7rem); letter-spacing: .06em; display: block; color: var(--on-accent); }
.rehab .t span { color: color-mix(in oklab, var(--on-accent) 80%, transparent); font-size: .98rem; }
.rehab .placeholder-note { color: var(--on-accent); opacity: 1; text-decoration: underline dotted; text-underline-offset: 3px; }
.btn.rehab-cta {
  background: var(--bg); color: var(--ink);
  font-size: .8rem; padding: 1.2em 2.8em;
  box-shadow: 0 14px 36px -14px rgba(0, 0, 0, .55);
}
.btn.rehab-cta:hover { background: var(--surface); color: var(--ink); filter: none; }

/* ---------- merch teaser + product cards ---------- */
.merch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.product {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.product:hover { transform: translateY(-4px); border-color: color-mix(in oklab, var(--accent) 55%, transparent); box-shadow: var(--shadow); }
.product .ph { aspect-ratio: 1 / 1; background: var(--bg-2); position: relative; border-bottom: 1px solid var(--line-soft); }
.product .ph image-slot { width: 100%; height: 100%; }
.product .ph .ph-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product .info { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product .info .nm { font-weight: 600; font-size: .98rem; line-height: 1.35; }
.product .info .pr { font-family: var(--display); font-weight: 600; font-size: 1.25rem; letter-spacing: .04em; color: var(--accent); }
.product .opts { display: flex; gap: 8px; flex-wrap: wrap; }
.product .opts select {
  font-family: var(--label); font-weight: 600; font-size: .8rem; letter-spacing: .04em; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .55em .6em; min-height: 40px;
}
.product .info .btn { margin-top: auto; }
@media (max-width: 860px) { .merch-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .merch-grid { grid-template-columns: 1fr; } }

/* ---------- CTA panels ---------- */
.cta-panel {
  background: var(--surface); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); border-radius: var(--radius);
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 64px); text-align: center; position: relative;
}
.cta-panel::before {
  content: ""; position: absolute; inset: 6px; pointer-events: none;
  border: 1px solid color-mix(in oklab, var(--accent) 18%, transparent);
}
.cta-panel::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 120% at 50% 0%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 70%);
}
.cta-panel > * { position: relative; z-index: 1; }
.cta-panel p { color: var(--ink-soft); max-width: 52ch; margin: 16px auto 28px; }
.cta-panel .cta-note {
  margin: 18px auto 0; font-family: var(--label); font-weight: 700;
  font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft);
}

/* ---------- church info ---------- */
.visit-cta { max-width: 680px; margin: 0 auto; text-align: center; display: flex; flex-direction: column; align-items: center; }
.visit-cta .eyebrow { justify-content: center; }
.visit-lead { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.7; max-width: 52ch; margin: 20px auto 30px; }
.info-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 3vw, 40px); }
.info-card { border-top: 1px solid var(--line); padding-top: 22px; }
.info-card h4 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 1.25rem; letter-spacing: .08em; margin: 0 0 12px; }
.info-card p { color: var(--ink-soft); margin: 0 0 6px; font-size: .96rem; }
.info-card p b { color: var(--ink); font-weight: 600; }
.info-card .btn { margin-top: 14px; }
@media (max-width: 760px) { .info-grid { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: var(--bg-2); border-top: 1px solid var(--line-soft); padding: clamp(50px, 8vh, 84px) 0 30px; }
.foot .top { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; flex-wrap: wrap; padding-bottom: 38px; border-bottom: 1px solid var(--line-soft); }
.foot .big { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.12; letter-spacing: .05em; max-width: 20ch; }
.foot-cols { display: flex; gap: clamp(28px, 6vw, 84px); flex-wrap: wrap; padding-top: 32px; }
.foot-cols h5 { margin: 0 0 12px; font-family: var(--label); font-weight: 700; font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent); }
.foot-cols a, .foot-cols p { color: var(--ink-soft); text-decoration: none; display: block; margin: 0 0 4px; font-size: .92rem; padding: 4px 0; }
.foot-cols a:hover { color: var(--ink); }
.foot-cols p b { color: var(--ink); font-weight: 700; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.foot-cols p + p { margin-top: 14px; }

/* ---------- footer theme toggle ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 38px;
  background: none; border: 1px solid var(--line); border-radius: 999px;
  padding: .7em 1.3em; cursor: pointer; color: var(--ink-soft);
  font-family: var(--label); font-weight: 700; font-size: .62rem; letter-spacing: .22em; text-indent: .22em; text-transform: uppercase;
  transition: border-color .2s ease, color .2s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--ink); }
.theme-toggle .tt-track {
  width: 30px; height: 17px; border-radius: 999px; position: relative; flex: none;
  background: color-mix(in oklab, var(--ink) 22%, transparent);
  transition: background .2s ease;
}
.theme-toggle .tt-track::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%;
  background: var(--bg); transition: transform .2s ease;
}
.theme-toggle[aria-pressed="true"] .tt-track { background: var(--accent); }
.theme-toggle[aria-pressed="true"] .tt-track::after { transform: translateX(13px); }
.theme-toggle .tt-dark { display: inline; }
.theme-toggle .tt-light { display: none; }
.theme-toggle[aria-pressed="true"] .tt-dark { display: none; }
.theme-toggle[aria-pressed="true"] .tt-light { display: inline; }

.foot .legal { margin-top: 18px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--ink-soft); opacity: .75; font-family: var(--label); font-weight: 600; font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; }
@media (max-width: 640px) { .foot .top .btn { width: 100%; } }

/* ============================================================
   SUB-PAGE HERO
   ============================================================ */
.page-hero { padding: clamp(56px, 9vh, 100px) 0 clamp(36px, 6vh, 64px); border-bottom: 1px solid var(--line-soft); }
.page-hero h1 {
  font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: 1.04; letter-spacing: .04em; margin: 0;
}
.page-hero .section-sub { font-size: 1.08rem; }

/* ---------- about: pastor's letter ---------- */
.letter { max-width: 660px; margin-inline: auto; }
.pull-quote {
  margin: 0 0 clamp(28px, 5vh, 44px); position: relative;
  font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-style: italic;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem); line-height: 1.4; color: var(--ink);
  padding-left: clamp(18px, 3vw, 28px); border-left: 2px solid var(--accent);
}
.pull-quote cite {
  display: block; margin-top: 14px; font-style: normal;
  font-family: var(--label); font-weight: 700; font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--accent);
}
.letter .salutation { font-family: var(--script); font-size: clamp(1.7rem, 4vw, 2.2rem); color: var(--accent); margin: 0 0 18px; }
.letter p:not(.salutation):not(.eyebrow) { font-size: 1.08rem; line-height: 1.8; color: var(--ink); margin: 0 0 1.2em; }
.letter p.first::first-letter {
  font-family: var(--display); font-weight: 600; float: left; font-size: 3.6em; line-height: .78;
  padding: .06em .14em 0 0; color: var(--accent);
}
.sig { display: flex; flex-direction: column; gap: 4px; margin-top: clamp(26px, 4vh, 40px); }
.sig .sig-script { font-family: var(--script); font-size: clamp(1.5rem, 3.4vw, 1.9rem); color: var(--ink); }
.sig .sig-name { font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; font-size: 1.05rem; margin-top: 10px; }
.sig .sig-role { font-family: var(--label); font-weight: 700; font-size: .62rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- about: value rows ---------- */
.value-list { border-top: 1px solid var(--line); }
.value-row {
  display: grid; grid-template-columns: 56px minmax(0, 1fr);
  grid-template-areas: "num name" "num copy";
  column-gap: clamp(14px, 3vw, 32px); row-gap: 4px; align-items: baseline;
  padding: clamp(20px, 3vw, 30px) clamp(4px, 1vw, 12px);
  border-bottom: 1px solid var(--line-soft);
  transition: background .2s ease;
}
.value-row:hover { background: color-mix(in oklab, var(--accent) 5%, transparent); }
.value-row .vr-num { grid-area: num; font-family: var(--display); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.9rem); color: var(--accent); line-height: 1; }
.value-row h3 { grid-area: name; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.2rem, 2.4vw, 1.6rem); letter-spacing: .06em; line-height: 1.2; margin: 0; }
.value-row p { grid-area: copy; margin: 0; color: var(--ink-soft); font-size: .98rem; max-width: 58ch; }
@media (min-width: 860px) {
  .value-row { grid-template-columns: 90px 320px minmax(0, 1fr); grid-template-areas: "num name copy"; }
}

/* ---------- about: where we serve ---------- */
.place-grid { display: grid; grid-template-columns: 1fr; gap: clamp(12px, 2vw, 20px); }
@media (min-width: 680px) { .place-grid { grid-template-columns: 1fr 1fr; } }
.place {
  display: grid; grid-template-columns: 28px minmax(0, 1fr); column-gap: 14px; align-items: start;
  padding: clamp(22px, 3vw, 32px); text-decoration: none;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: 14px;
  transition: border-color .2s ease, background .2s ease;
}
.place:hover { border-color: color-mix(in oklab, var(--accent) 45%, transparent); background: color-mix(in oklab, var(--accent) 5%, var(--surface)); }
.place svg { width: 22px; height: 22px; color: var(--accent); grid-row: span 3; margin-top: 4px; }
.place .pl-city { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(1.25rem, 2.6vw, 1.6rem); letter-spacing: .06em; line-height: 1.2; }
.place .pl-state { font-family: var(--label); font-weight: 700; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); margin-top: 2px; }
.place .pl-addr { font-size: .9rem; margin-top: 10px; }

/* ---------- gold band (Prayer Tabernacle) ---------- */
.gold-band {
  background: linear-gradient(160deg, var(--gold-hi) 0%, var(--accent) 48%, var(--accent-2) 135%);
  color: var(--on-accent); padding: clamp(50px, 9vh, 100px) 0; text-align: center;
}
.gb-inner { max-width: 760px; }
.gb-kicker { margin: 0 0 14px; font-family: var(--label); font-weight: 700; font-size: .64rem; letter-spacing: .3em; text-transform: uppercase; opacity: .85; }
.gb-title { margin: 0; font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: clamp(2rem, 5.4vw, 3.6rem); line-height: 1.06; letter-spacing: .03em; }
.gb-title span { font-family: var(--script); text-transform: none; font-size: 1.18em; line-height: .9; display: inline-block; letter-spacing: 0; }
.gb-copy { margin: 18px auto 30px; max-width: 56ch; font-size: 1.05rem; line-height: 1.7; color: color-mix(in oklab, var(--on-accent) 86%, transparent); }

/* ---------- values page ---------- */
.mission-blk { max-width: 64ch; }
.mission-blk .lede { font-family: "Cormorant Garamond", Georgia, serif; font-weight: 500; font-style: italic; font-size: clamp(1.55rem, 3vw, 2.3rem); line-height: 1.35; margin: 0; }
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(14px, 2vw, 24px); counter-reset: val; }
.value-card {
  background: var(--surface); border: 1px solid color-mix(in oklab, var(--accent) 32%, transparent);
  padding: clamp(24px, 3vw, 36px); counter-increment: val; position: relative;
}
.value-card::after { content: ""; position: absolute; inset: 5px; pointer-events: none; border: 1px solid color-mix(in oklab, var(--accent) 14%, transparent); }
.value-card::before {
  content: "No. 0" counter(val); font-family: var(--label); font-weight: 700; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 16px;
}
.value-card h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 1.5rem; letter-spacing: .08em; margin: 0 0 10px; }
.value-card p { margin: 0; color: var(--ink-soft); font-size: .96rem; }
@media (max-width: 720px) { .values-grid { grid-template-columns: 1fr; } }
.belief { border-left: 2px solid var(--accent); padding-left: clamp(18px, 3vw, 32px); max-width: 60ch; }
.belief p { font-size: 1.08rem; margin: 0 0 1em; }

/* ============================================================
   GIVING PAGE
   ============================================================ */
.give-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .give-layout { grid-template-columns: 1fr; } }
.give-aside p { color: var(--ink-soft); max-width: 46ch; }
.assure { display: flex; flex-direction: column; gap: 16px; margin-top: 30px; }
.assure .row { display: flex; gap: 14px; align-items: flex-start; }
.assure .row svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 3px; }
.assure .row span { color: var(--ink-soft); font-size: .94rem; }
.assure .row b { color: var(--ink); font-weight: 600; }

.give-card {
  background: var(--surface); border: 1px solid color-mix(in oklab, var(--accent) 40%, transparent); border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 40px); box-shadow: var(--shadow); position: relative;
}
.give-card::before { content: ""; position: absolute; inset: 6px; pointer-events: none; border: 1px solid color-mix(in oklab, var(--accent) 16%, transparent); }
.give-card > * { position: relative; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px; margin-bottom: 22px; }
.seg button {
  appearance: none; border: none; cursor: pointer; border-radius: var(--radius);
  font-family: var(--label); font-weight: 700; font-size: .68rem; letter-spacing: .18em; text-transform: uppercase; padding: 1em;
  background: transparent; color: var(--ink-soft); transition: background .2s, color .2s; min-height: 44px;
}
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
.amounts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.amounts button {
  appearance: none; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: .02em;
  padding: .55em 0; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: var(--ink);
  transition: border-color .2s, background .2s, color .2s; min-height: 48px;
}
.amounts button:hover { border-color: var(--accent); }
.amounts button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.custom-amt { position: relative; margin-bottom: 18px; }
.custom-amt .cur { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-family: var(--display); font-weight: 600; font-size: 1.15rem; color: var(--ink-soft); }
.custom-amt input {
  width: 100%; font-family: var(--display); font-weight: 600; font-size: 1.25rem; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .65em 1em .65em 1.9em; min-height: 48px;
}
.custom-amt input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
.freq-row { display: flex; gap: 8px; margin-bottom: 18px; }
.freq-row button {
  flex: 1; appearance: none; cursor: pointer; font-family: var(--label); font-weight: 700; font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  padding: .9em; border-radius: var(--radius); border: 1px solid var(--line); background: transparent; color: var(--ink-soft); min-height: 44px;
}
.freq-row button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in oklab, var(--accent) 10%, transparent); }
.field { margin-bottom: 16px; }
.field > label { display: block; font-family: var(--label); font-weight: 700; font-size: .6rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.field input, .field select {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .72em .9em; min-height: 46px;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
.field input.bad { border-color: #cf5f4a; box-shadow: 0 0 0 3px rgba(207, 95, 74, .2); }
.field .err { display: none; color: #cf5f4a; font-size: .78rem; margin-top: 5px; }
.field input.bad ~ .err { display: block; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .split { grid-template-columns: 1fr; } }
.stripe-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; color: var(--ink-soft); font-family: var(--label); font-weight: 600; font-size: .7rem; letter-spacing: .06em; }
.stripe-note svg { width: 14px; height: 14px; flex: none; }

/* success / upsell */
.give-success { text-align: center; padding: 10px 0; }
.give-success .check {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 18px;
  background: linear-gradient(165deg, var(--gold-hi) 0%, var(--accent) 45%, var(--accent-2) 140%);
  color: var(--on-accent); display: grid; place-items: center;
}
.give-success .check svg { width: 30px; height: 30px; }
.give-success h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 1.6rem; letter-spacing: .06em; margin: 0 0 8px; }
.give-success p { color: var(--ink-soft); margin: 0 0 8px; }
.upsell {
  margin-top: 26px; padding: 24px; border: 1px solid color-mix(in oklab, var(--accent) 45%, transparent);
  border-radius: var(--radius); background: color-mix(in oklab, var(--accent) 7%, transparent); position: relative;
}
.upsell::before { content: ""; position: absolute; inset: 5px; pointer-events: none; border: 1px solid color-mix(in oklab, var(--accent) 18%, transparent); }
.upsell p { margin: 0 0 16px; color: var(--ink); font-family: var(--script); font-size: 1.7rem; line-height: 1.2; position: relative; }
.upsell .btn { position: relative; }

/* ============================================================
   STORE + CART
   ============================================================ */
.store-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
@media (max-width: 980px) { .store-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .store-grid { grid-template-columns: 1fr; } }

.drawer-scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(5, 4, 2, .62);
  opacity: 0; pointer-events: none;
}
.drawer-scrim.open { animation: shwc-fade .3s ease both; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 95; width: min(430px, 100vw);
  background: var(--surface); border-left: 1px solid var(--line);
  transform: translateX(102%);
  display: flex; flex-direction: column;
}
.drawer.open { animation: shwc-drawer-in .35s cubic-bezier(.3, .8, .3, 1) both; }
@keyframes shwc-drawer-in { from { transform: translateX(102%); } to { transform: none; } }
.drawer header { display: flex; align-items: center; justify-content: space-between; padding: 18px 24px; border-bottom: 1px solid var(--line-soft); }
.drawer header h3 { font-family: var(--display); font-weight: 600; text-transform: uppercase; font-size: 1.2rem; letter-spacing: .1em; margin: 0; }
.drawer .x { appearance: none; background: none; border: none; cursor: pointer; color: var(--ink-soft); padding: 12px; margin: -6px; border-radius: var(--radius); }
.drawer .x:hover { color: var(--ink); background: var(--bg-2); }
.drawer .body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart-empty { text-align: center; color: var(--ink-soft); padding: 48px 0; }
.cart-line { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.cart-line .thumb { width: 56px; height: 56px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line-soft); display: grid; place-items: center; color: var(--accent); font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.cart-line .nm { font-weight: 600; font-size: .92rem; }
.cart-line .meta { color: var(--ink-soft); font-family: var(--label); font-weight: 600; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.cart-line .qty { display: inline-flex; align-items: center; gap: 10px; margin-top: 6px; }
.cart-line .qty button {
  appearance: none; cursor: pointer; width: 34px; height: 34px; border-radius: var(--radius);
  border: 1px solid var(--line); background: transparent; color: var(--ink); font-weight: 700; line-height: 1;
}
.cart-line .qty button:hover { border-color: var(--accent); color: var(--accent); }
.cart-line .pr { font-family: var(--display); font-weight: 600; font-size: 1.1rem; text-align: right; }
.cart-line .rm { appearance: none; background: none; border: none; cursor: pointer; color: var(--ink-soft); font-size: .75rem; text-decoration: underline; padding: 6px 0 0; margin: 0; }
.drawer footer { padding: 20px 24px; border-top: 1px solid var(--line-soft); }
.drawer footer .sub { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.drawer footer .sub span { font-family: var(--label); font-weight: 700; font-size: .64rem; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-soft); }
.drawer footer .sub b { font-family: var(--display); font-weight: 600; font-size: 1.5rem; }
.drawer footer .note { color: var(--ink-soft); font-family: var(--label); font-weight: 600; font-size: .66rem; letter-spacing: .08em; text-align: center; margin-top: 10px; }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 140%); z-index: 99;
  background: var(--ink); color: var(--bg); font-family: var(--label); font-weight: 700; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase;
  padding: 1.1em 1.7em; border-radius: var(--radius);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .5);
  max-width: calc(100vw - 40px); text-align: center;
}
.toast.show { animation: shwc-toast-in .35s cubic-bezier(.3, .8, .3, 1) both; }
@keyframes shwc-toast-in { from { transform: translate(-50%, 140%); } to { transform: translate(-50%, 0); } }

/* ============================================================
   MINISTERS · scroll-driven sticky showcase
   (styles are scrubbed by JS from scroll progress — no
   transitions, so it can never stall)
   ============================================================ */
.ministers { position: relative; height: 380svh; background: var(--bg-2); }
.ministers .sticky {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: flex; align-items: center;
  border-block: 1px solid var(--line-soft);
}
.m-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 70px); width: 100%; align-items: center; }
.m-title { grid-column: 1 / -1; margin-bottom: clamp(4px, 1.5vh, 18px); }
.m-days { display: flex; flex-direction: column; gap: clamp(18px, 3vh, 34px); }
.m-day { opacity: .35; cursor: pointer; }
.m-day .d {
  display: block; font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(2rem, 5.2vw, 3.8rem); line-height: 1; letter-spacing: .02em;
  transform-origin: left bottom; will-change: transform;
}
.m-day .t {
  display: inline-flex; align-items: center; gap: .8em; margin-top: 8px;
  font-family: var(--label); font-weight: 700; font-size: .62rem; letter-spacing: .28em; text-transform: uppercase; color: var(--accent);
}
.m-day .t::before { content: ""; width: 22px; height: 1px; background: currentColor; }
.m-stage { position: relative; height: min(74svh, 660px); }
.m-stage::before {
  content: ""; position: absolute; left: 50%; bottom: 6%; transform: translateX(-50%);
  width: min(34vw, 420px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in oklab, var(--accent) 26%, transparent), transparent 70%);
  pointer-events: none;
}
.m-card {
  position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: clamp(30px, 8vh, 80px);
  will-change: transform, opacity;
}
.m-card img {
  height: min(56svh, 500px); width: auto; max-width: 100%; object-fit: contain;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, .55));
  -webkit-mask-image: linear-gradient(to top, transparent 0%, #000 14%);
  mask-image: linear-gradient(to top, transparent 0%, #000 14%);
  position: relative; z-index: 1;
}
.m-card figcaption { position: relative; z-index: 2; text-align: center; margin-top: -14px; }
.m-card figcaption b {
  display: block; font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(1.1rem, 2.4vw, 1.6rem); letter-spacing: .06em; color: var(--accent);
}
.m-card figcaption span {
  display: block; margin-top: 4px;
  font-family: var(--label); font-weight: 700; font-size: .6rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft);
}
.m-progress { position: absolute; right: clamp(14px, 3vw, 40px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 10px; }
.m-progress i { width: 5px; height: 5px; border-radius: 50%; background: var(--line); }
.m-progress i.on { background: var(--accent); }
@media (max-width: 860px) {
  .ministers { height: 420svh; }
  .m-layout { grid-template-columns: 1fr; gap: 10px; align-content: center; text-align: center; }
  .m-title { margin-bottom: 6px; }
  .m-days { flex-direction: row; flex-wrap: nowrap; justify-content: center; gap: 4px 14px; align-items: flex-end; }
  .m-day { min-width: 0; }
  .m-day .d { font-size: clamp(1rem, 5vw, 2.2rem); transform-origin: center bottom; white-space: nowrap; }
  .m-day .t { display: none; }
  .m-stage { height: min(58svh, 480px); }
  .m-card img { height: min(44svh, 380px); }
}

/* ============================================================
   REVEAL (JS-driven; safe default = visible)
   Uses a keyframes animation rather than a transition: some
   embedded runtimes never assign transitions a start time,
   leaving elements stuck at opacity 0.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  body.js .reveal { opacity: 0; }
  body.js .reveal.in { animation: shwc-reveal .7s cubic-bezier(.2, .7, .2, 1) both; }
  body.js .reveal.in.d1 { animation-delay: .08s; }
  body.js .reveal.in.d2 { animation-delay: .16s; }
  body.js .reveal.in.d3 { animation-delay: .24s; }
}
@keyframes shwc-reveal {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   MOBILE REFINEMENTS
   ============================================================ */
@media (max-width: 640px) {
  .hero { min-height: 120svh; }
  .hero-sub { letter-spacing: .16em; }
  .hero-actions .btn, .program-ctas .btn { flex: 1 1 140px; }
  .cta-panel { padding: 32px 20px; }
  .story-photos { grid-auto-rows: 120px; }
  .give-card { padding: 22px 16px; }
}
