/* =========================================================================
   pages.css: inner pages (everything except the home page)
   Built on style.css: same tokens, header, buttons, cards and footer.
   Part A: shared pieces (hero, sections, layouts, lists, forms, reveals)
   Part B: each page's own custom piece, in menu order
   ========================================================================= */

/* ===================== A. SHARED ===================== */

/* ---- Footer site map (all pages, home included) ---- */
.site-footer { padding-block: 0; }
.site-footer__map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem 1rem;
  padding-block: 3rem 2rem;
  border-bottom: 1px solid rgb(255 252 241 / 0.12);
}
.site-footer__head {
  margin-bottom: 0.6rem;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.site-footer__col ul { margin: 0; padding: 0; list-style: none; }
.site-footer__col li a { display: inline-block; padding-block: 0.3rem; text-decoration: none; opacity: 0.85; }
.site-footer__col li a:hover { opacity: 1; text-decoration: underline; text-decoration-color: var(--gold); }
.site-footer__give { margin-top: 1rem; }
.site-footer__inner { padding-block: 1.25rem; }
@media (min-width: 768px) { .site-footer__map { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---- Buttons: extra styles ---- */
.btn--ghost {
  background: transparent;
  color: inherit;
  box-shadow: inset 0 0 0 1.5px currentColor;
}
.btn--ghost:hover { background: rgb(71 49 24 / 0.06); }
.btn--light { background: var(--beige); color: var(--brown); }
.btn--light:hover { background: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.5rem; }
.ext::after { content: " ↗"; }

/* ---- Page hero ----
   Full-bleed photo under the transparent header, title bottom-left.
   --p (0 → 1, site.js) drives a slow parallax and rounds the bottom corners
   as you scroll away. The title's words rise in one by one on load. */
.page-hero {
  --p: 0;
  position: relative;
  display: grid;
  align-items: end;
  min-height: min(82svh, 760px);
  padding: calc(var(--header-full) + 3rem) 0 clamp(2.5rem, 7vw, 5rem);
  color: var(--beige);
  overflow: hidden;
  isolation: isolate;
  border-radius: 0 0 calc(var(--p) * 48px) calc(var(--p) * 48px);
}
.js .page-hero { margin-top: calc(-1 * var(--header-full)); }
.page-hero--short { min-height: min(62svh, 560px); }
.page-hero__media { position: absolute; inset: 0; z-index: -2; }
.page-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  transform: translateY(calc(var(--p) * 12%)) scale(calc(1.06 + var(--p) * 0.06));
}
.page-hero::after {                          /* darkening for the header and the title */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(20, 12, 4, 0.62), rgba(40, 26, 10, 0.2) 35%, rgba(40, 26, 10, 0.25) 55%, rgba(30, 20, 8, 0.82)),
    linear-gradient(90deg, rgba(30, 20, 8, 0.45), transparent 70%);
}
.page-hero__inner { opacity: calc(1 - var(--p) * 1.4); transform: translateY(calc(var(--p) * -40px)); }
.page-hero__eyebrow { color: var(--beige); }
.page-hero__title {
  max-width: 16ch;
  margin-bottom: 0.4em;
  font-size: clamp(2.5rem, 7vw, 5rem);
  line-height: 1.02;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}
.page-hero__title em { font-family: var(--font-body); color: var(--gold); }
.page-hero__lede {
  max-width: 38rem;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: rgb(255 252 241 / 0.9);
}
.page-hero .btn--ghost:hover { background: rgb(255 252 241 / 0.12); }
.hero-w { display: inline-block; }
.motion .page-hero__media img { animation: hero-settle 2.6s var(--ease-out) both; }
.motion .hero-w { animation: hero-word 1.3s var(--ease-out) both; animation-delay: calc(0.3s + var(--w) * 0.12s); }
.motion .page-hero__eyebrow { animation: hero-eyebrow 1.4s var(--ease-out) 0.1s both; }
.motion .page-hero__lede,
.motion .page-hero .btn-row { animation: fade-up 1s var(--ease-out) 0.9s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(14px); } }

/* Sliding/rotating pieces never cause sideways scrolling (clip keeps sticky working) */
main { overflow-x: clip; }

/* ---- Sections ---- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); position: relative; }
.section--tint { background: var(--beige-deep); }
.section--dark {
  background:
    radial-gradient(70% 90% at 100% 0%, rgb(201 154 0 / 0.16), transparent 60%),
    var(--brown);
  color: var(--beige);
}
.section--dark .eyebrow { color: var(--gold); }
.section--dark :focus-visible { outline-color: var(--gold); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section__head { max-width: 46rem; margin-bottom: clamp(2rem, 5vw, 3.5rem); }
.section__head--center { margin-inline: auto; text-align: center; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--taupe); }
.section--dark .lede { color: rgb(255 252 241 / 0.78); }
.prose { max-width: 42rem; }
.prose p { margin-bottom: 1.1em; }
.note { font-size: 0.9375rem; color: var(--taupe); }
.section--dark .note { color: rgb(255 252 241 / 0.7); }

/* Text + photo, side by side from 900px (flip with .split--flip) */
.split { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--flip > :first-child { order: 2; }
  .split--wide { grid-template-columns: 1.2fr 1fr; }
}

/* Rounded photo that unveils from the bottom when revealed */
.frame { position: relative; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow-lift); }
.frame img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: var(--ratio, 4 / 3); }
.motion .frame[data-reveal] { clip-path: inset(100% 0 0 0 round var(--radius)); transition: clip-path 1.2s var(--ease-out); }
.motion .frame[data-reveal] img { transform: scale(1.12); transition: transform 1.6s var(--ease-out); }
.motion .frame[data-reveal].is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.motion .frame[data-reveal].is-in img { transform: none; }

/* Card grid */
.grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--min, 17rem)), 1fr)); }
.panel {
  padding: clamp(1.25rem, 3vw, 2rem);
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel h3, .panel h4 { margin-bottom: 0.4em; }
.panel--line { background: transparent; box-shadow: inset 0 0 0 1px var(--line-soft); }
.section--dark .panel { background: rgb(255 252 241 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 252 241 / 0.12); }
.kicker {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Download / link rows: icon, title + note, arrow */
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-soft); }
.section--dark .rows { border-color: rgb(255 252 241 / 0.14); }
.rows li { border-bottom: 1px solid var(--line-soft); }
.section--dark .rows li { border-color: rgb(255 252 241 / 0.14); }
.row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0.25rem;
  text-decoration: none;
  transition: background-color 0.2s, padding 0.25s var(--ease-out);
}
.row:hover { background: rgb(201 154 0 / 0.08); padding-inline: 0.75rem; }
.row__icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: rgb(201 154 0 / 0.14);
  color: var(--gold);
  font-family: var(--font-head);
  font-size: 0.9rem;
}
.row__title { font-family: var(--font-head); line-height: 1.3; }
.row__note { display: block; font-size: 0.875rem; color: var(--taupe); }
.section--dark .row__note { color: rgb(255 252 241 / 0.65); }
.row__go { color: var(--gold); transition: transform 0.25s var(--ease-out); }
.row:hover .row__go { transform: translateX(4px); }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.chip {
  padding: 0.4rem 0.9rem;
  border: 1px solid rgb(201 154 0 / 0.55);
  border-radius: 999px;
  background: none;
  color: inherit;
  font: 500 0.875rem/1.2 var(--font-head);
}
button.chip { cursor: pointer; transition: background-color 0.2s, color 0.2s; }
button.chip:hover { background: rgb(201 154 0 / 0.12); }
button.chip[aria-pressed="true"] { background: var(--brown); border-color: var(--brown); color: var(--beige); }

/* Big numbers */
.stat__num {
  display: block;
  color: var(--gold);
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 6vw, 4rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stat__label { display: block; margin-top: 0.4rem; font-size: 0.95rem; }

/* Brown call-to-action band at the end of a page */
.cta-band { text-align: center; }
.cta-band h2 { max-width: 20ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; }

/* Forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-family: var(--font-head); font-size: 0.9375rem; }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
  color: var(--brown);
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgb(201 154 0 / 0.18);
}
.form__row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { grid-template-columns: 1fr 1fr; } }
.form__status { min-height: 1.5em; font-family: var(--font-head); color: var(--gold); }

/* Video thumbnail with a play disc */
.video { position: relative; display: block; overflow: hidden; border-radius: 14px; background: var(--brown); text-decoration: none; }
.video img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: 0.9; transition: transform 0.5s var(--ease-out), opacity 0.3s; }
.video:hover img { transform: scale(1.05); opacity: 1; }
.video::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3.25rem;
  height: 3.25rem;
  margin: -1.625rem 0 0 -1.625rem;
  border-radius: 50%;
  background: rgb(255 252 241 / 0.92) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l8 5-8 5z' fill='%23c10f18'/%3E%3C/svg%3E") center / 60% no-repeat;
  box-shadow: 0 6px 20px rgb(0 0 0 / 0.3);
  transition: transform 0.3s var(--ease-out);
}
.video:hover::after { transform: scale(1.1); }

/* Sticky stage: a tall section whose content stays on screen while you
   scroll through it (used with data-progress="pin"). */
.pin { position: relative; }
.pin__stage {
  position: sticky;
  top: calc(var(--header-min) + 1rem);
  min-height: calc(100svh - var(--header-min) - 2rem);   /* fills the screen; content centred in it */
  display: grid;
  align-content: center;
}
html:not(.motion) .pin { height: auto !important; }
html:not(.motion) .pin__stage { position: relative; top: 0; min-height: 0; }

/* ---- Reveal on scroll ([data-reveal], site.js adds .is-in) ---- */
.motion [data-reveal] {
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 0.1s);
}
.motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(1.75rem); }
.motion [data-reveal="left"]:not(.is-in) { transform: translateX(-2rem); }
.motion [data-reveal="right"]:not(.is-in) { transform: translateX(2rem); }
.motion [data-reveal="scale"]:not(.is-in) { transform: scale(0.94); }
.motion .frame[data-reveal]:not(.is-in) { opacity: 1; transform: none; }

/* ===================== B. PAGE PIECES ===================== */

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

/* Pull quote card (Lora italic, gold quote mark) */
.quote-card {
  position: relative;
  margin: 0;
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: var(--brown);
  color: var(--beige);
  box-shadow: var(--shadow-lift);
}
.quote-card::before {
  content: "\201C";
  position: absolute;
  top: -0.35em;
  left: 0.3em;
  color: var(--gold);
  font: italic 6rem/1 var(--font-body);
}
.quote-card blockquote { margin: 0 0 1rem; font: italic 500 clamp(1.4rem, 2.6vw, 2rem)/1.3 var(--font-body); }
.quote-card figcaption { color: rgb(255 252 241 / 0.75); }

/* ---- Philosophy: the three ideals ----
   Tall pinned section. Left: the three words stacked; the active one is
   brown, the others faint. Right: only the active text shows. */
.motion .ideals { height: 300svh; }
.ideals .pin__stage { padding-block: 2rem; }
.ideals__grid { display: grid; gap: 2rem; align-items: center; }
.ideals__words { margin: 0; padding: 0; list-style: none; }
.ideals__word {
  font: 500 clamp(3rem, 9vw, 7rem)/1 var(--font-head);
  letter-spacing: -0.02em;
  color: rgb(71 49 24 / 0.14);
  transition: color 0.5s, transform 0.6s var(--ease-out);
  transform-origin: left center;
}
.ideals__texts { position: relative; min-height: 10rem; }
.ideals__text { max-width: 30rem; }
.ideals__text h3 { color: var(--gold); font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase; }
.ideals__text p { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
.ideals__meter { height: 3px; margin-top: 2.5rem; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.ideals__meter span { display: block; height: 100%; background: var(--gold); transform: scaleX(var(--sp, 1)); transform-origin: left; }
.motion .ideals__text { position: absolute; inset: 0 auto auto 0; opacity: 0; transform: translateY(1rem); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
html:not(.motion) .ideals__text { margin-bottom: 1.5rem; }
html:not(.motion) .ideals__word { color: var(--brown); }
.ideals[data-active="0"] .ideals__word[data-ideal="0"],
.ideals[data-active="1"] .ideals__word[data-ideal="1"],
.ideals[data-active="2"] .ideals__word[data-ideal="2"] { color: var(--brown); transform: translateX(0.15em); }
.ideals[data-active="0"] .ideals__text[data-ideal="0"],
.ideals[data-active="1"] .ideals__text[data-ideal="1"],
.ideals[data-active="2"] .ideals__text[data-ideal="2"] { opacity: 1; transform: none; }
@media (min-width: 900px) { .ideals__grid { grid-template-columns: 1.2fr 1fr; } }

/* ---- Philosophy: the ripple (one teller → 5 → 25 → 125) ---- */
.motion .ripple { height: 280svh; }
.ripple__stage { display: grid; gap: 2rem; align-items: center; }
.ripple__svg { width: min(100%, 560px); margin-inline: auto; overflow: visible; }
.ripple__lines line { stroke: var(--gold); stroke-width: 1.4; opacity: 0.7; }
.ripple__lines line.gen3 { stroke-width: 0.8; opacity: 0.5; }
.ripple__dots circle { fill: var(--beige); opacity: 0.18; transition: opacity 0.4s, transform 0.4s var(--ease-out); transform-box: fill-box; transform-origin: center; }
.ripple__dots circle.is-on { opacity: 1; }
.ripple__dots circle.gen0 { fill: var(--red); }
.ripple__dots circle.gen1.is-on { fill: var(--gold); }
.ripple__count { margin-top: 1.5rem; font-family: var(--font-head); }
.ripple__num { color: var(--gold); font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .ripple__stage { grid-template-columns: 1fr 1.1fr; } }
@media (max-width: 899px) {
  .ripple .pin__stage { top: calc(var(--header-min) + 0.5rem); }
  .ripple__text .lede { display: none; }
  .ripple__svg { width: min(100%, 360px); }
}

/* Small status label ("Dates to be determined") */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgb(193 15 24 / 0.08);
  color: var(--red);
  font: 500 0.875rem/1.2 var(--font-head);
}
.status-pill::before { content: ""; width: 0.5em; height: 0.5em; border-radius: 50%; background: currentColor; animation: pulse 1.8s ease-in-out infinite; }
.status-pill--dark { background: rgb(201 154 0 / 0.16); color: var(--gold); }
@keyframes pulse { 50% { opacity: 0.3; } }

/* Book cover card (covers from the store) */
.book { display: flex; flex-direction: column; gap: 0.35rem; text-decoration: none; }
.book img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  padding: 1.25rem;
  background: var(--card-bg);
  border-radius: 14px;
  box-shadow: var(--shadow);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.book:hover img { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--shadow-lift); }
.book__title { margin-top: 0.5rem; font-family: var(--font-head); line-height: 1.25; }
.book__note { font-size: 0.9rem; color: var(--taupe); }

/* ---- Seminars: the route map ---- */
.route__grid { display: grid; gap: 1.5rem; }
.route__map-wrap {
  position: sticky;
  top: var(--header-min);
  z-index: 2;
  height: 40svh;
  padding: 0.5rem;
  background: var(--beige-deep);
}
.route__map { display: block; width: 100%; height: 100%; border-radius: 18px; box-shadow: var(--shadow); }
.map-sea { fill: #e7ece9; }
.map-land { fill: #fff; }
.map-coast { fill: none; stroke: rgb(71 49 24 / 0.25); stroke-width: 1.2; }
.map-water { fill: #dfe6e2; stroke: rgb(71 49 24 / 0.18); stroke-width: 1; }
.map-river { fill: none; stroke: #b9c8c2; stroke-width: 2; stroke-linecap: round; }
.map-label { fill: var(--taupe); font: italic 11px var(--font-body); }
.map-label--sea { font-size: 14px; letter-spacing: 0.05em; }
.route-track { fill: none; stroke: rgb(201 154 0 / 0.35); stroke-width: 2; stroke-dasharray: 2 6; stroke-linecap: round; }
.route-line { fill: none; stroke: var(--gold); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.route-traveler { fill: var(--red); stroke: #fff; stroke-width: 2.5; transition: opacity 0.3s; }
.route-stop__dot { fill: #fff; stroke: var(--gold); stroke-width: 2; transition: fill 0.3s; }
.route-stop__halo { fill: var(--gold); opacity: 0; transform-box: fill-box; transform-origin: center; }
.route-stop__label { fill: var(--taupe); font: 500 12px var(--font-head); transition: fill 0.3s; }
.route-stop.is-on .route-stop__dot { fill: var(--gold); }
.route-stop.is-on .route-stop__label { fill: var(--brown); }
.route-stop.is-current .route-stop__halo { animation: halo 1.6s ease-out infinite; }
@keyframes halo { from { opacity: 0.45; transform: scale(0.6); } to { opacity: 0; transform: scale(2.4); } }

.route__stops { display: grid; gap: 1rem; margin: 0; padding: 0 0 20svh; list-style: none; }
.stop-card {
  padding: 1.25rem 1.5rem;
  border-radius: 16px;
  background: var(--card-bg);
  box-shadow: var(--shadow);
  border-left: 4px solid transparent;
  opacity: 0.55;
  transition: opacity 0.4s, border-color 0.4s, transform 0.5s var(--ease-out);
}
.stop-card h3 { font-size: 1.3rem; margin-bottom: 0.25rem; }
.stop-card p { margin: 0; color: var(--taupe); }
.stop-card__day { color: var(--gold); font: 500 0.8125rem/1 var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; }
.stop-card.is-on { opacity: 1; }
.stop-card.is-current { border-left-color: var(--gold); transform: translateX(6px); }
html:not(.motion) .stop-card { opacity: 1; }
@media (min-width: 900px) {
  .route__grid { grid-template-columns: 1fr 1fr; align-items: start; gap: 3rem; }
  .route__map-wrap { top: calc(var(--header-min) + 1rem); height: calc(100svh - var(--header-min) - 2rem); background: none; padding: 0; }
  .route__stops { padding-block: 25svh 35svh; gap: 1.5rem; }
}

/* Tick list */
.ticks { margin: 1.25rem 0 0; padding: 0; list-style: none; display: grid; gap: 0.6rem; }
.ticks li { position: relative; padding-left: 2rem; font-size: 1.1rem; }
.ticks li::before {
  content: "";
  position: absolute; left: 0; top: 0.3em;
  width: 1.2rem; height: 1.2rem; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* Numbered steps (horizontal from 900px, with a gold line joining them) */
.steps { display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none; counter-reset: none; }
.steps__item { position: relative; padding: 1.5rem; border-radius: 16px; background: var(--card-bg); box-shadow: var(--shadow); }
.steps__n {
  display: grid; place-items: center;
  width: 2.5rem; height: 2.5rem; margin-bottom: 0.75rem;
  border-radius: 50%; background: var(--brown); color: var(--gold);
  font-family: var(--font-head);
}
.steps__item h3 { font-size: 1.15rem; }
.steps__item p { margin: 0; color: var(--taupe); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }

/* ---- Story of the Day: the year grid ---- */
.motion .year { height: 260svh; }
.year__stage { display: grid; gap: 2rem; align-items: center; }
.year__count { margin: 1.5rem 0 0; font-family: var(--font-head); }
.year__num { color: var(--gold); font-size: clamp(3rem, 7vw, 5rem); line-height: 1; font-variant-numeric: tabular-nums; }
.year__of { color: var(--taupe); font-size: 1.1rem; }
.year__month { margin: 0.25rem 0 0; font: italic 1.25rem var(--font-body); color: var(--brown); min-height: 1.6em; }
.year__grid {
  display: grid;
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: clamp(2px, 0.35vw, 5px);
  padding: clamp(0.75rem, 2vw, 1.5rem);
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.year__dot {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgb(71 49 24 / 0.1);
  transition: background-color 0.25s, transform 0.3s var(--ease-out);
}
.year__dot.is-on { background: var(--gold); }
.year__dot.is-now { background: var(--red); transform: scale(1.6); }
html:not(.motion) .year__dot { background: var(--gold); }
@media (min-width: 1000px) { .year__stage { grid-template-columns: 0.8fr 1.4fr; } }

/* ---- Multimedia: the sound wave + podcast and download cards ---- */
.wave__bars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(2px, 0.4vw, 6px);
  height: clamp(5rem, 12vw, 9rem);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}
.wave__bars span {
  flex: 1;
  max-width: 10px;
  height: calc(var(--h) * 100%);
  border-radius: 99px;
  background: rgb(71 49 24 / 0.12);
  transform: scaleY(0.35);
  transition: transform 0.5s var(--ease-out), background-color 0.3s;
}
.wave__bars span.is-on { background: var(--gold); transform: scaleY(1); }
.wave__bars span.is-head { background: var(--red); }
html:not(.motion) .wave__bars span { background: var(--gold); transform: none; }
.pod { display: block; text-decoration: none; transition: transform 0.3s var(--ease-out), box-shadow 0.3s; }
a.pod:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
a.pod h3::after { content: " ↗"; color: var(--gold); font-size: 0.8em; }
.pod--soon { opacity: 0.7; }
.pod p { color: var(--taupe); margin: 0; }
.dl-card { overflow: hidden; border-radius: var(--radius); background: var(--card-bg); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.dl-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.dl-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.dl-card__body p { color: var(--taupe); flex: 1; }
.dl-card__body .btn { align-self: flex-start; }

/* ---- Radio: spot running order ---- */
.spot { display: flex; flex-direction: column; gap: 0.75rem; }
.spot__img { width: calc(100% + 2 * clamp(1.25rem, 3vw, 2rem)); max-width: none; margin: calc(-1 * clamp(1.25rem, 3vw, 2rem)) calc(-1 * clamp(1.25rem, 3vw, 2rem)) 0.5rem; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.spot h3 { margin: 0; }
.spot .btn { align-self: flex-start; margin-top: 0.5rem; }
.runtime { display: flex; gap: 3px; margin: 0.5rem 0; font: 500 0.75rem/1 var(--font-head); }
.runtime span {
  position: relative;
  flex: var(--s) 1 0;
  min-width: 4.25rem;
  padding: 0.65rem 0.5rem;
  overflow: hidden;
  border-radius: 6px;
  background: rgb(71 49 24 / 0.08);
  white-space: nowrap;
}
.runtime span::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold);
  opacity: 0.85;
  z-index: -1;
  transform-origin: left;
}
.runtime span:nth-child(2)::before { background: var(--red); opacity: 0.9; }
.runtime span { isolation: isolate; color: var(--brown); }
.runtime span:nth-child(2) { color: #fff; }
.motion .runtime span::before { transform: scaleX(0); transition: transform 1s linear; }
.motion .runtime span:nth-child(1)::before { transition-delay: 0.5s; }
.motion .runtime span:nth-child(2)::before { transition-delay: 1.5s; transition-duration: 2.2s; }
.motion .runtime span:nth-child(3)::before { transition-delay: 3.7s; }
.motion .is-in .runtime span::before { transform: scaleX(1); }
.motion .runtime span:nth-child(2) { color: var(--brown); transition: color 0.3s 1.7s; }
.motion .is-in .runtime span:nth-child(2) { color: #fff; }

/* ---- Radio: the tuner ---- */
.tuner__dial {
  position: sticky;
  top: calc(var(--header-min) + 0.75rem);
  z-index: 2;
  margin-bottom: 2rem;
  padding: 1rem 1.25rem 0.75rem;
  border-radius: 18px;
  background: linear-gradient(#2c1d0d, #1e1408);
  box-shadow: inset 0 0 0 1px rgb(201 154 0 / 0.35), 0 16px 40px -18px rgb(0 0 0 / 0.6);
}
.tuner__scale { position: relative; height: 3.25rem; }
.tuner__scale i { position: absolute; bottom: 1.5rem; width: 1px; height: 0.5rem; background: rgb(255 252 241 / 0.3); }
.tuner__scale i.major { height: 0.9rem; background: rgb(255 252 241 / 0.55); }
.tuner__scale b {
  position: absolute; bottom: 0; transform: translateX(-50%);
  font: 500 0.625rem/1 var(--font-head); letter-spacing: 0.04em; white-space: nowrap;
  color: rgb(255 252 241 / 0.45); transition: color 0.3s;
}
.tuner__scale b.is-tuned { color: var(--gold); }
.tuner__needle {
  position: absolute; top: 0.6rem; bottom: 2.25rem; left: 6%;
  width: 3px; margin-left: -1.5px; border-radius: 3px;
  background: var(--red); box-shadow: 0 0 12px rgb(193 15 24 / 0.8);
  transition: left 0.7s var(--ease-out);
}
.tuner__now { margin: 0.4rem 0 0; font: 500 0.8125rem/1.2 var(--font-head); color: var(--gold); text-align: right; }
.tuner__list { display: grid; gap: 1rem; margin: 0; padding: 0 0 10svh; list-style: none; }
.station { padding: 1.25rem 1.5rem; border-radius: 16px; background: rgb(255 252 241 / 0.05); box-shadow: inset 0 0 0 1px rgb(255 252 241 / 0.1); transition: background-color 0.4s, box-shadow 0.4s; }
.station h3 { font-size: 1.3rem; margin-bottom: 0.1rem; }
.station p { margin: 0; color: rgb(255 252 241 / 0.75); }
.station__where { color: var(--gold) !important; font-family: var(--font-head); font-size: 0.875rem; margin-bottom: 0.35rem !important; }
.station.is-tuned { background: rgb(201 154 0 / 0.14); box-shadow: inset 0 0 0 1.5px var(--gold); }
@media (max-width: 640px) { .tuner__scale b { display: none; } .tuner__scale b.is-tuned { display: block; } }
@media (min-width: 900px) { .tuner__list { grid-template-columns: 1fr 1fr; } }

/* ---- Translations: one word, many tongues ---- */
.motion .babel { height: 320svh; }
.babel__stage { text-align: center; justify-items: center; }
.babel__word {
  position: relative;
  display: grid;
  width: 100%;
  margin: 0;
  font: 500 clamp(3.5rem, 13vw, 10rem)/1.15 var(--font-head);
  letter-spacing: -0.02em;
}
.babel__word span { grid-area: 1 / 1; transition: opacity 0.55s, filter 0.55s, transform 0.6s var(--ease-out); }
.babel__word span.is-entering { opacity: 0; filter: blur(14px); transform: translateY(0.25em); }
.babel__word span.is-leaving { opacity: 0; filter: blur(14px); transform: translateY(-0.25em); }
.babel__lang { margin: 0.5rem 0 0; font: italic 1.4rem var(--font-body); color: var(--gold); }
.babel__meter { width: min(100%, 22rem); height: 3px; margin-top: 2rem; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.babel__meter span { display: block; height: 100%; background: var(--gold); transform-origin: left; transform: scaleX(0); }

.lang { padding: 1.25rem 1.5rem; border-radius: 16px; background: var(--card-bg); box-shadow: var(--shadow); }
.lang h3 { font-size: 1.25rem; margin-bottom: 0.1rem; }
.lang__where { margin-bottom: 0.75rem; color: var(--taupe); font-size: 0.95rem; }
.lang__links { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.lang__links a {
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgb(201 154 0 / 0.14);
  font: 500 0.85rem/1.2 var(--font-head);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
}
.lang__links a:hover { background: var(--brown); color: var(--beige); }
.lang .note { margin: 0.6rem 0 0; font-size: 0.8rem; }

/* ---- Resource Library: the shelves ---- */
.shelf { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.shelf__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 1rem; margin-bottom: 1rem; }
.shelf__head h3 { margin: 0; font-size: 1.5rem; }
.shelf__more { font: 500 0.9rem var(--font-head); text-decoration: none; color: var(--red); }
.shelf__more:hover { text-decoration: underline; }
.shelf__row {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: clamp(0.75rem, 2vw, 1.5rem);
  min-height: 11rem;
  padding: 0 1rem 14px;
  overflow-x: auto;
  scrollbar-width: none;
}
.shelf__row::-webkit-scrollbar { display: none; }
.shelf__row::after {                      /* the wooden board */
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 14px;
  border-radius: 3px;
  background: linear-gradient(#8a6a3f, #5b4122);
  box-shadow: 0 10px 18px -8px rgb(71 49 24 / 0.6);
}
.shelf__book { flex: none; display: block; transform-origin: bottom center; }
.shelf__book img {
  width: auto;
  height: clamp(9rem, 16vw, 12.5rem);
  border-radius: 3px 6px 6px 3px;
  box-shadow: -3px 0 0 rgb(0 0 0 / 0.08) inset, 4px 6px 14px rgb(71 49 24 / 0.3);
  transition: transform 0.35s var(--ease-out);
}
.shelf__book:hover img { transform: translateY(-10px) rotate(-2deg); }
/* Standing up: each book tips up from lying down, one after another, as --sp grows */
.motion .shelf__book {
  --t: clamp(0, calc((var(--sp, 1) * 1.6 - var(--i) * 0.09) * 1.6), 1);
  opacity: var(--t);
  transform: rotate(calc((1 - var(--t)) * -70deg)) translateY(calc((1 - var(--t)) * 20px));
}

/* ---- Resource Library: the video reel ---- */
.reel { overflow: clip; }
.reel__stage { overflow: visible; }
.reel__track { display: flex; gap: 1.25rem; width: max-content; padding: 1.5rem var(--pad) 0; will-change: transform; }
.reel__item { width: clamp(15rem, 26vw, 21rem); display: flex; flex-direction: column; gap: 0.35rem; text-decoration: none; }
.reel__item b { margin-top: 0.4rem; font: 500 1.1rem var(--font-head); }
.reel__item > span:last-child { color: rgb(255 252 241 / 0.7); font-size: 0.95rem; }
.reel__item--more { justify-content: center; padding: 1.5rem; border-radius: 14px; box-shadow: inset 0 0 0 1.5px var(--gold); }
html:not(.motion) .reel__track { width: auto; overflow-x: auto; }
.feature { border-top: 4px solid var(--gold); }

/* ---- Authors: the book that opens ----
   .author__book is a two-panel spread. The cover (photo + name) sits on
   top of the page and swings open around its left edge as --sp goes 0 → 1
   (data-progress="enter"), revealing the bio underneath. */
.authors { display: grid; gap: clamp(4rem, 9vw, 7rem); }
.author { display: grid; gap: 2rem; align-items: start; }
.author__book { position: relative; perspective: 1600px; }
.author__page {
  display: flex; flex-direction: column; gap: 0.75rem; justify-content: center;
  min-height: 100%;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 6px 18px 18px 6px;
  background: var(--card-bg);
  box-shadow: var(--shadow-lift), inset 6px 0 12px -6px rgb(71 49 24 / 0.25);
}
.author__page .btn { align-self: flex-start; }
.author__cover {
  position: relative;
  overflow: hidden;
  border-radius: 18px 6px 6px 18px;
  background: var(--brown);
  color: var(--beige);
  box-shadow: var(--shadow-lift);
}
.author__cover img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 25%; opacity: 0.9; }
.author__cover-text { position: absolute; inset: auto 0 0; padding: 1.25rem 1.5rem; background: linear-gradient(transparent, rgb(30 20 8 / 0.85)); }
.author__cover-text h2 { margin: 0; font-size: clamp(1.75rem, 3vw, 2.25rem); }
@media (min-width: 900px) {
  .author { grid-template-columns: 1.15fr 1fr; gap: clamp(2rem, 5vw, 4rem); }
  .author--flip .author__works { order: -1; }
  .author__book { display: grid; }
  .author__page, .author__cover { grid-area: 1 / 1; }
  .author__page { min-height: 22rem; padding-left: 48%; }
  .author__cover { width: 45%; z-index: 2; }
  .author__cover img { height: 100%; aspect-ratio: auto; }
  /* opening: the cover starts closed over the whole spread, then swings to the left half */
  .motion .author__cover {
    --open: clamp(0, calc(var(--sp, 1) * 1.5 - 0.2), 1);
    width: calc(100% - 55% * var(--open));
    transform-origin: left center;
    transform: rotateY(calc((1 - var(--open)) * -8deg));
  }
  .motion .author__page > * { opacity: clamp(0, calc(var(--sp, 1) * 2 - 0.9), 1); }
}
.author__works h3 { font-size: 1.1rem; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; }
.works { display: grid; gap: 0.75rem; margin: 0 0 1rem; padding: 0; list-style: none; }
.works a { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; align-items: center; text-decoration: none; padding: 0.5rem; border-radius: 12px; transition: background-color 0.2s; }
.works a:hover { background: var(--beige-deep); }
.works img { width: 3.5rem; height: 4.5rem; object-fit: contain; filter: drop-shadow(2px 3px 6px rgb(71 49 24 / 0.25)); }
.works b { display: block; font-family: var(--font-head); font-weight: 500; }
.works span { font-size: 0.925rem; color: var(--taupe); }
.works b { color: var(--brown); }

/* ---- Literacy & ESL: letters into words ---- */
.motion .letters { height: 280svh; }
.letters { overflow: clip; }
.letters__stage { text-align: center; justify-items: center; }
.letters__board { display: grid; gap: clamp(0.4rem, 1vw, 0.75rem); margin: 1.5rem 0; }
.letters__row { display: flex; justify-content: center; gap: clamp(0.2rem, 0.6vw, 0.45rem); }
.letters__gap { width: clamp(0.8rem, 2vw, 1.6rem); }
.letters__tile {
  display: grid; place-items: center;
  width: clamp(1.9rem, 5.2vw, 4rem);
  aspect-ratio: 1;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 2px 0 #e6dcc4, 0 6px 14px rgb(71 49 24 / 0.15);
  font: 500 clamp(1.1rem, 3vw, 2.25rem)/1 var(--font-head);
  color: var(--brown);
  transition: background-color 0.3s, color 0.3s;
  will-change: transform;
}
.letters__tile.is-home { background: var(--brown); color: var(--gold); box-shadow: 0 2px 0 #2c1d0d, 0 8px 16px rgb(71 49 24 / 0.25); }
html:not(.motion) .letters__tile { background: var(--brown); color: var(--gold); }

/* Reading-level climb: five rising steps that fill in turn when revealed */
.climb__steps { display: flex; align-items: flex-end; gap: 0.5rem; height: 11rem; margin: 1rem 0 1.25rem; padding: 0; list-style: none; }
.climb__steps li {
  position: relative;
  flex: 1;
  height: calc(20% + var(--i) * 20%);
  border-radius: 8px 8px 0 0;
  background: rgb(71 49 24 / 0.08);
  overflow: hidden;
}
.climb__steps li::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(var(--gold), #b38900);
  transform-origin: bottom;
}
.climb__steps li:last-child::before { background: linear-gradient(var(--red), var(--red-dark)); }
.climb__steps span { position: absolute; left: 0; right: 0; bottom: 0.4rem; z-index: 1; text-align: center; font: 500 0.75rem var(--font-head); color: #fff; }
.motion .climb__steps li::before { transform: scaleY(0); transition: transform 0.7s var(--ease-out); transition-delay: calc(0.4s + var(--i) * 0.25s); }
.motion .climb.is-in .climb__steps li::before { transform: none; }

.wb__covers { display: flex; justify-content: center; margin-bottom: 1rem; }
.wb__covers img { width: 30%; aspect-ratio: 3 / 4; object-fit: contain; margin-inline: -4%; filter: drop-shadow(3px 5px 10px rgb(71 49 24 / 0.3)); transition: transform 0.4s var(--ease-out); }
.wb__covers img:nth-child(1) { transform: rotate(-7deg); }
.wb__covers img:nth-child(3) { transform: rotate(7deg); }
.wb:hover .wb__covers img:nth-child(1) { transform: rotate(-12deg) translateX(-10%); }
.wb:hover .wb__covers img:nth-child(3) { transform: rotate(12deg) translateX(10%); }
.wb h3 { font-size: 1.2rem; }
.wb .btn { margin-top: 0.5rem; }
.sets { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.sets .stat__num { margin: 0.25rem 0; }
.audio-assists { margin-top: 2rem; font-size: 1.25rem; }

/* Project Starfish: star + three bars */
.sf-stats { position: relative; display: grid; gap: 1.5rem; padding-top: 4rem; }
.sf-star {
  position: absolute; right: 0; top: -1rem;
  width: clamp(5rem, 10vw, 7.5rem);
  fill: var(--gold); opacity: 0.9;
  transform: translate(calc((1 - var(--sp, 1)) * -60%), calc((1 - var(--sp, 1)) * 140%)) rotate(calc(var(--sp, 1) * 220deg));
}
.sf-bar { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.25rem 1rem; align-items: center; }
.sf-bar__num { grid-row: span 2; color: var(--gold); font: 500 2rem/1 var(--font-head); }
.sf-bar--good .sf-bar__num { color: #9ccf8f; }
.sf-bar__track { height: 10px; border-radius: 10px; background: rgb(255 252 241 / 0.12); overflow: hidden; }
.sf-bar__track i { display: block; height: 100%; width: calc(var(--v) * 1%); border-radius: 10px; background: var(--gold); transform-origin: left; }
.sf-bar--good .sf-bar__track i { background: #9ccf8f; }
.sf-bar__label { font-size: 0.95rem; color: rgb(255 252 241 / 0.78); }
.motion .sf-bar__track i { transform: scaleX(0); transition: transform 1.2s var(--ease-out); }
.motion .sf-bar:nth-of-type(3) .sf-bar__track i { transition-delay: 0.4s; }
.motion .sf-bar:nth-of-type(4) .sf-bar__track i { transition-delay: 0.8s; }
.motion .sf-stats.is-in .sf-bar__track i { transform: none; }

/* ---- Wisdom Workout: wisdom's house ---- */
.motion .temple { height: 300svh; }
.temple__stage { display: grid; gap: 2rem; align-items: center; }
.temple__text h2 { font-family: var(--font-body); font-style: italic; font-weight: 500; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.25; }
.temple__phase { font-family: var(--font-head); color: var(--gold) !important; min-height: 1.6em; }
.temple__svg { width: min(100%, 560px); margin-inline: auto; overflow: visible; }
.temple__part { fill: #e9dfc8; transition: fill 0.4s; }
.temple__part.is-set { fill: var(--brown); }
.temple__part[data-part="8"].is-set { fill: var(--gold); }
html:not(.motion) .temple__part { fill: var(--brown); }
@media (min-width: 900px) { .temple__stage { grid-template-columns: 1fr 1.2fr; } }
.parts { display: grid; gap: 1rem; }
.ww-dl { display: grid; gap: var(--gap); }
@media (min-width: 900px) { .ww-dl { grid-template-columns: 1fr 1.3fr 1.3fr; } }
.num-chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(2.75rem, 1fr)); gap: 0.4rem; margin: 0.75rem 0 0; padding: 0; list-style: none; }
.num-chip {
  display: grid; place-items: center;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--beige-deep);
  font: 500 0.95rem var(--font-head);
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.num-chip:hover { background: var(--brown); color: var(--gold); transform: translateY(-2px); }

/* ---- About: chapters, quote, ministry model, testimonies, team ---- */
.chapters { display: grid; gap: clamp(1.5rem, 4vw, 2.5rem); }
.chapter { position: relative; padding-top: clamp(2.5rem, 6vw, 4rem); }
.chapter__mark {
  position: absolute; top: 0; left: -0.05em;
  font: 500 clamp(3.5rem, 9vw, 6.5rem)/1 var(--font-head);
  letter-spacing: -0.03em;
  color: rgb(201 154 0 / 0.16);
  pointer-events: none;
}
.chapter h3 { position: relative; font-size: 1.5rem; }
.chapter p { position: relative; color: var(--taupe); }
@media (min-width: 900px) { .chapters { grid-template-columns: repeat(3, 1fr); } }
.big-quote { margin: clamp(3rem, 8vw, 5rem) auto; max-width: 52rem; text-align: center; }
.big-quote blockquote { margin: 0 0 1rem; font: italic 500 clamp(1.6rem, 4vw, 2.75rem)/1.25 var(--font-body); }
.big-quote figcaption { color: var(--gold); font-family: var(--font-head); letter-spacing: 0.1em; text-transform: uppercase; font-size: 0.8125rem; }
.about-also { max-width: 46rem; margin-inline: auto; text-align: center; }
.about-also b { color: var(--brown); font-family: var(--font-head); font-weight: 500; }

.model__h { margin-top: 1.5rem; color: var(--gold); font-size: 1.1rem; letter-spacing: 0.08em; text-transform: uppercase; }
.model__wheel { position: relative; }
.model__svg { display: block; width: min(100%, 460px); margin-inline: auto; overflow: visible; }
.model__core { fill: var(--beige); }
.model__center { fill: var(--brown); font: 500 15px var(--font-head); }
.model__seg { fill: none; stroke: var(--gold); cursor: pointer; transition: stroke 0.25s, opacity 0.25s; outline: none; }
.model__seg:nth-of-type(even) { stroke: #a88200; }
.model__seg.is-hot, .model__seg:focus-visible { stroke: var(--red); }
.model__label { margin: 0.75rem 0 0; text-align: center; color: rgb(255 252 241 / 0.6); font-size: 0.875rem; }

.testi { display: flex; flex-direction: column; gap: 0.3rem; text-decoration: none; }
.testi b { margin-top: 0.5rem; font: 500 1.1rem var(--font-head); }
.testi > span:last-child { color: var(--taupe); font-size: 0.95rem; }

.team-grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 14rem), 1fr)); }
.person { overflow: hidden; border-radius: var(--radius); background: var(--card-bg); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.person img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 25%; transition: transform 0.6s var(--ease-out); }
.person:hover img { transform: scale(1.04); }
.person__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.person__body h3 { margin: 0; font-size: 1.25rem; }
.person__role { margin: 0; color: var(--gold); font: 500 0.875rem var(--font-head); }
.person details { font-size: 0.95rem; color: var(--taupe); flex: 1; }
.person summary { cursor: pointer; font-family: var(--font-head); color: var(--brown); }
.person details p { margin-top: 0.5rem; }
.person .btn { align-self: flex-start; }

/* ---- Ministries: the gold thread ---- */
.thread__wrap { position: relative; }
.thread__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.thread__track { fill: none; stroke: rgb(201 154 0 / 0.25); stroke-width: 2; stroke-dasharray: 3 7; }
.thread__line { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; }
.thread__list { position: relative; display: grid; gap: clamp(2rem, 5vw, 3rem); margin: 0; padding: 0; list-style: none; }
.ministry { position: relative; display: grid; grid-template-columns: 2rem 1fr; gap: 1rem; align-items: start; }
.ministry__knot { width: 18px; height: 18px; margin: 1.6rem auto 0; border-radius: 50%; background: var(--beige); box-shadow: inset 0 0 0 3px rgb(201 154 0 / 0.4); transition: background-color 0.3s, box-shadow 0.3s, transform 0.4s var(--ease-out); }
.ministry.is-on .ministry__knot { background: var(--gold); box-shadow: 0 0 0 6px rgb(201 154 0 / 0.2); transform: scale(1.15); }
.ministry .panel { opacity: 0.5; transform: translateX(10px); transition: opacity 0.5s, transform 0.6s var(--ease-out); }
.ministry.is-on .panel { opacity: 1; transform: none; }
html:not(.motion) .ministry .panel { opacity: 1; transform: none; }
.ministry h2 { font-size: clamp(1.4rem, 2.5vw, 1.85rem); }
.ministry__motto { font: italic 1.15rem/1.4 var(--font-body); color: var(--gold); }
.ministry .btn { margin-top: 0.25rem; }
@media (min-width: 900px) {
  .ministry { grid-template-columns: 1fr 3rem 1fr; }
  .ministry__knot { grid-column: 2; grid-row: 1; }
  .ministry .panel { grid-column: 3; grid-row: 1; }
  .ministry:nth-child(even) .panel { grid-column: 1; transform: translateX(-10px); }
  .ministry.is-on:nth-child(even) .panel { transform: none; }
}

/* ---- Volunteer: one path, three branches ---- */
.paths__svg { display: none; width: 100%; height: 8rem; margin-bottom: -0.5rem; overflow: visible; }
.paths__track { fill: none; stroke: rgb(201 154 0 / 0.25); stroke-width: 2; stroke-dasharray: 3 7; vector-effect: non-scaling-stroke; }
.paths__line { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
html:not(.motion) .paths__line { stroke-dashoffset: 0; }
.roles { display: grid; gap: var(--gap); }
.role { overflow: hidden; border-radius: var(--radius); background: var(--card-bg); box-shadow: var(--shadow); display: flex; flex-direction: column; }
.role img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.role__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.5rem; flex: 1; }
.role__body p { color: var(--taupe); flex: 1; }
.role__body .btn { align-self: flex-start; }
@media (min-width: 900px) { .roles { grid-template-columns: repeat(3, 1fr); } .paths__svg { display: block; } }

/* ---- Events: the desk calendar ---- */
.agenda__grid { display: grid; gap: 2.5rem; }
.agenda__cal-wrap { display: none; }
.event { margin-bottom: 1.5rem; border-left: 4px solid transparent; transition: border-color 0.4s, transform 0.5s var(--ease-out), box-shadow 0.4s; }
.event.is-current { border-left-color: var(--gold); transform: translateX(6px); box-shadow: var(--shadow-lift); }
.event h3 { font-size: 1.6rem; }
.event p { color: var(--taupe); }
.cal { position: relative; width: 16rem; height: 17rem; perspective: 900px; }
.cal__rings { position: absolute; top: -0.6rem; left: 0; right: 0; z-index: 5; display: flex; justify-content: space-around; }
.cal__rings i { width: 0.6rem; height: 1.6rem; border-radius: 0.3rem; background: linear-gradient(#9a9a9a, #5d5d5d); }
.cal__page {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.25rem;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-lift);
  transform-origin: top center;
  backface-visibility: hidden;
  transition: transform 0.9s var(--ease-out), opacity 0.9s;
}
.cal__page::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3.25rem; border-radius: 14px 14px 0 0; background: var(--red); }
.cal__month { position: absolute; top: 0.9rem; color: #fff; font: 500 1.1rem var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; }
.cal__day { margin-top: 2rem; font: 500 3.5rem/1 var(--font-head); color: var(--brown); }
.cal__what { color: var(--gold); font: italic 1.15rem var(--font-body); }
.cal__page[data-page="0"] { z-index: 3; }
.cal__page[data-page="1"] { z-index: 2; }
.cal__page.is-flipped { transform: rotateX(160deg); opacity: 0; }
@media (min-width: 900px) {
  .agenda__grid { grid-template-columns: 18rem 1fr; gap: 4rem; }
  .agenda__cal-wrap { display: block; position: sticky; top: calc(var(--header-min) + 3rem); align-self: start; padding-top: 1rem; }
  .agenda .event:last-child { margin-bottom: 30svh; }
}

/* ---- Distinctives: stacking cards ---- */
.stack { display: grid; gap: 2rem; padding-bottom: 10svh; }
.stack__card {
  --cover: 0;
  position: sticky;
  top: calc(var(--header-min) + 1.5rem + var(--n) * 1.25rem);
  display: grid;
  gap: 1.5rem;
  min-height: 18rem;
  padding: clamp(1.75rem, 4vw, 3rem);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-lift);
  transform: scale(calc(1 - var(--cover) * 0.05));
  transform-origin: top center;
  filter: brightness(calc(1 - var(--cover) * 0.08));
}
.stack__card:nth-child(even) { background: var(--brown); color: var(--beige); }
.stack__card:nth-child(even) p { color: rgb(255 252 241 / 0.78); }
.stack__card h2 { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.stack__card p { font-size: 1.1rem; color: var(--taupe); max-width: 40rem; }
.stack__num { font: 500 clamp(3rem, 7vw, 5rem)/1 var(--font-head); color: var(--gold); }
@media (min-width: 900px) { .stack__card { grid-template-columns: 9rem 1fr; align-items: start; } }
.dream { display: grid; gap: 1rem; margin: 0; padding: 0; list-style: none; counter-reset: dream; }
.dream li { position: relative; padding: 1.25rem 1.5rem 1.25rem 4rem; border-radius: 16px; background: rgb(255 252 241 / 0.06); box-shadow: inset 0 0 0 1px rgb(255 252 241 / 0.12); }
.dream li::before { counter-increment: dream; content: counter(dream); position: absolute; left: 1.25rem; top: 1.2rem; color: var(--gold); font: 500 1.5rem var(--font-head); }
.dream b { display: block; font: 500 1.25rem var(--font-head); }
.dream span { color: rgb(255 252 241 / 0.75); }
.motion .dream li { transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); transition-delay: calc(0.3s + var(--i) * 0.2s); }
.motion .dream:not(.is-in) li { opacity: 0; transform: translateX(1.5rem); }

/* ---- Contact: the envelope ---- */
.contact-list { display: grid; gap: 1rem; margin: 1.5rem 0; padding: 0; list-style: none; }
.contact-list li { display: flex; align-items: center; gap: 1rem; font: 500 1.1rem var(--font-head); }
.contact-list address { font-style: normal; }
.envelope { position: relative; padding-top: 3rem; }
.envelope__letter {
  position: relative; z-index: 2;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-lift);
}
.envelope__back, .envelope__front, .envelope__flap { display: none; }
@media (min-width: 900px) {
  /* The envelope is a fixed-height pocket at the bottom; only the letter's
     blank bottom margin tucks inside it, so no field is ever covered. */
  .envelope { padding: 2rem 1.5rem 0; }
  .envelope__back, .envelope__front, .envelope__flap { display: block; position: absolute; left: 0; right: 0; }
  .envelope__back { bottom: 0; height: 12rem; border-radius: 14px; background: #d9c9a3; }
  .envelope__front { bottom: 0; height: 7rem; z-index: 3; border-radius: 0 0 14px 14px; background: linear-gradient(160deg, #e8dbbb, #d9c9a3); clip-path: polygon(0 0, 50% 45%, 100% 0, 100% 100%, 0 100%); pointer-events: none; }
  .envelope__flap { bottom: 12rem; height: 6rem; z-index: 1; background: #cdb98b; clip-path: polygon(0 100%, 50% 0, 100% 100%); transform-origin: bottom center; }
  .motion .envelope__flap { transform: scaleY(calc(1 - 2 * clamp(0, calc(var(--sp, 1) * 2), 1))); }
  .envelope__letter { margin: 0 1rem 5.5rem; padding-bottom: 3rem; }
  .motion .envelope__letter { transform: translateY(calc((1 - clamp(0, calc(var(--sp, 1) * 1.6 - 0.4), 1)) * 40%)); }
}
.form.is-sent button { background: var(--gold); }

/* ---- Give: seed to tree + Donorbox frame ---- */
.sow__list { display: grid; gap: 1rem; margin: 1.5rem 0 1rem; padding: 0; list-style: none; }
.sow__list li { padding: 1rem 1.25rem; border-radius: 14px; background: var(--card-bg); box-shadow: var(--shadow); }
.sow__list b { display: block; font: 500 1.15rem var(--font-head); }
.sow__list span { color: var(--taupe); }
.sow__tree { width: min(100%, 420px); margin-inline: auto; overflow: visible; }
.sow__ground { fill: none; stroke: var(--taupe); stroke-width: 3; stroke-linecap: round; opacity: 0.5; }
.sow__branches path { fill: none; stroke: var(--brown); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.sow__branches path:first-child { stroke-width: 10; }
.sow__leaves ellipse { fill: var(--gold); transform-box: fill-box; transform-origin: center; }
.sow__leaves ellipse:nth-child(3n) { fill: #a88200; }
.sow__seed { fill: var(--red); }
html:not(.motion) .sow__branches path { stroke-dashoffset: 0; }
.give-form__frame { max-width: 44rem; margin-inline: auto; padding: 1rem; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-lift); }
.give-form__frame iframe { display: block; width: 100%; height: 900px; border: 0; }

/* ---- Store ---- */
.page--store .site-header { background: var(--beige); }
.store-hero { padding: clamp(2rem, 6vw, 4rem) 0 0; overflow: clip; }
.store-hero__inner { display: grid; gap: 2rem; align-items: center; }
.store-hero__title { font-size: clamp(2.25rem, 6vw, 4rem); max-width: 16ch; }
.store-hero__title em { font-family: var(--font-body); color: var(--gold); }
.fan { position: relative; height: clamp(14rem, 30vw, 20rem); }
.fan img {
  position: absolute; left: 50%; bottom: 0;
  width: clamp(7rem, 14vw, 10rem); aspect-ratio: 3 / 4; object-fit: contain;
  filter: drop-shadow(4px 8px 14px rgb(71 49 24 / 0.3));
  transform-origin: 50% 120%;
  transform: translateX(-50%) rotate(calc(var(--k) * 13deg)) translateY(calc(var(--k) * var(--k) * 4px));
}
.motion .fan img { animation: fan-open 1.4s var(--ease-out) both; animation-delay: calc(0.2s + (var(--k) + 2) * 0.08s); }
@keyframes fan-open { from { transform: translateX(-50%) rotate(0deg) translateY(30px); opacity: 0; } }
@media (min-width: 900px) { .store-hero__inner { grid-template-columns: 1.2fr 1fr; } }

.store { padding-top: 2rem; }
.store__bar {
  position: sticky; top: calc(var(--header-min) + 0.5rem); z-index: 5;
  display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: space-between; align-items: center;
  padding: 0.75rem; margin-bottom: 0.75rem;
  border-radius: 16px; background: rgb(255 252 241 / 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.store__tools { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.store__search, .store__sort { padding: 0.55rem 0.9rem; border: 1px solid var(--line-soft); border-radius: 999px; background: #fff; color: var(--brown); font: 0.95rem var(--font-head); }
.store__search { min-width: 13rem; }
.store__grid { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fill, minmax(min(100%, 14.5rem), 1fr)); }
.product {
  display: flex; flex-direction: column;
  overflow: hidden; border-radius: var(--radius);
  background: var(--card-bg); box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s, opacity 0.5s var(--ease-out);
}
.product.is-entering { opacity: 0; transform: translateY(14px); }
.product:not(.is-entering) { transition-delay: 0s, 0s, calc(var(--i) * 0.03s); }
.product:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.product__cover { padding: 1.25rem 1.25rem 0.5rem; border: 0; background: linear-gradient(var(--beige-deep), #fff); cursor: pointer; }
.product__cover img { width: 100%; aspect-ratio: 3 / 4; object-fit: contain; filter: drop-shadow(3px 6px 12px rgb(71 49 24 / 0.25)); transition: transform 0.4s var(--ease-out); }
.product:hover .product__cover img { transform: rotate(-2deg) scale(1.03); }
.product__body { display: flex; flex-direction: column; gap: 0.4rem; padding: 1rem 1.15rem 1.15rem; flex: 1; }
.product__kind { align-self: flex-start; padding: 0.2rem 0.6rem; border-radius: 999px; font: 500 0.7rem/1.4 var(--font-head); letter-spacing: 0.06em; text-transform: uppercase; background: var(--beige-deep); }
.product__kind--pdf { background: rgb(201 154 0 / 0.16); }
.product__kind--amazon { background: rgb(71 49 24 / 0.08); }
.product__title { margin: 0; font-size: 1.02rem; line-height: 1.3; flex: 1; }
.product__title button { padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.product__title button:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.product__foot { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.5rem; }
.product__price { font: 500 1.1rem var(--font-head); }
.product .btn { white-space: nowrap; }
.fly { position: fixed; z-index: 100; pointer-events: none; object-fit: contain; }

.pdialog { width: min(52rem, calc(100% - 2rem)); padding: 0; border: 0; border-radius: var(--radius); background: var(--beige); color: var(--brown); box-shadow: 0 30px 80px rgb(0 0 0 / 0.35); }
.pdialog::backdrop { background: rgb(30 20 8 / 0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.pdialog[open] { animation: pop 0.4s var(--ease-out); }
@keyframes pop { from { opacity: 0; transform: translateY(20px) scale(0.97); } }
.pdialog__body { display: grid; gap: 1.5rem; padding: clamp(1.5rem, 4vw, 2.5rem); }
.pdialog__img { width: 100%; max-height: 22rem; object-fit: contain; filter: drop-shadow(4px 8px 16px rgb(71 49 24 / 0.3)); }
.pdialog h2 { margin-top: 0.5rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.pdialog__price { font: 500 1.5rem var(--font-head); color: var(--gold); }
.pdialog__close { position: absolute; top: 0.75rem; right: 0.75rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--beige-deep); color: var(--brown); font-size: 1.5rem; cursor: pointer; }
@media (min-width: 720px) { .pdialog__body { grid-template-columns: 16rem 1fr; } }

.cart { position: fixed; inset: 0; z-index: 60; background: rgb(30 20 8 / 0); transition: background-color 0.35s; }
.cart.is-open { background: rgb(30 20 8 / 0.45); }
.cart__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(26rem, 100%);
  display: flex; flex-direction: column;
  background: var(--beige);
  box-shadow: -20px 0 50px rgb(0 0 0 / 0.2);
  transform: translateX(100%);
  transition: transform 0.35s var(--ease-out);
}
.cart.is-open .cart__panel { transform: none; }
.cart__head { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line-soft); }
.cart__head h2 { margin: 0; font-size: 1.5rem; }
.cart__close { width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%; background: var(--beige-deep); color: var(--brown); font-size: 1.5rem; cursor: pointer; }
.cart__items { flex: 1; overflow-y: auto; margin: 0; padding: 1rem 1.5rem; list-style: none; display: grid; gap: 1rem; align-content: start; }
.cart__line { display: grid; grid-template-columns: 3.5rem 1fr; gap: 1rem; align-items: center; }
.cart__line img { width: 3.5rem; height: 4.5rem; object-fit: contain; }
.cart__line b { display: block; font: 500 0.95rem/1.3 var(--font-head); }
.cart__line span { font-size: 0.85rem; color: var(--taupe); }
.qty { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.35rem; }
.qty button { width: 1.75rem; height: 1.75rem; border: 0; border-radius: 50%; background: var(--beige-deep); color: var(--brown); cursor: pointer; font-size: 1rem; }
.cart__empty { color: var(--taupe); }
.cart__foot { padding: 1.25rem 1.5rem; border-top: 1px solid var(--line-soft); display: grid; gap: 0.75rem; }
.cart__total { display: flex; justify-content: space-between; margin: 0; font: 500 1.15rem var(--font-head); }
.cart__checkout:disabled { opacity: 0.55; cursor: not-allowed; }
::view-transition-group(*) { animation-duration: 0.45s; animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1); }
@media (max-width: 899px) {
  /* Compact store toolbar on phones: one scrolling row of chips, then search + sort on one line */
  .store__bar { padding: 0.5rem; gap: 0.5rem; }
  .store__bar .chips { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .store__bar .chips::-webkit-scrollbar { display: none; }
  .store__bar .chip { flex: none; }
  .store__tools { width: 100%; flex-wrap: nowrap; }
  .store__search { min-width: 0; flex: 1; }
}
