/* ========================================
   Monastic Academy — Training Cohort
   Layout: heymessage.framer.ai
   Colors/type: monasticacademy.org
   Fonts loaded via <link> in <head>
   ======================================== */

:root {
  --headerfont: 'Cinzel', serif;
  --bodyfont: 'Crimson Text', Georgia, 'Times New Roman', serif;

  --primary: #909167;
  --accent: #464824;
  --accent-secondary: #909167;
  --primary-dark: #202600;
  --alt: #D4D3CD;
  --neutral-grey: #f5f5f2;
  --off-black: #19190d;
  --off-white: #fafaf8;
  --white: #ffffff;
  --muted: #6b6b5e;

  --max-width: 1128px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --radius-pill: 100px;
}

/* --- Reset --- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--bodyfont);
  line-height: 1.6;
  color: var(--off-black);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, picture, video, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; }
p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

/* --- Accessibility --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 2px solid var(--accent-secondary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}
.btn:focus-visible,
.btn-cta:focus-visible {
  outline-offset: 4px;
  border-radius: var(--radius-pill);
}

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--headerfont);
  line-height: 1.12;
  color: var(--accent);
  font-kerning: normal;
}
h1 {
  font-size: clamp(3rem, 6.5vw, 5rem);
  letter-spacing: -0.015em;
  font-weight: 500;
}
h2 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -0.01em;
}
h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.6rem);
  font-weight: 600;
  line-height: 1.2;
}
p {
  font-family: var(--bodyfont);
  font-size: 1.35rem;
  line-height: 1.75;
}
a {
  color: var(--accent-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--primary); }

h1 em, h2 em {
  font-style: normal;
  color: var(--accent-secondary);
}

/* --- Performance --- */
.training,
.teacher,
.cost,
.cta,
.site-footer {
  contain: layout style paint;
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bodyfont);
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  gap: 8px;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--primary-dark);
  color: var(--white);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(70, 72, 36, 0.25);
}
.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--alt);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--off-white);
  color: var(--accent);
}

/* --- Navigation --- */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled {
  box-shadow: 0 1px 12px rgba(0, 0, 0, 0.06);
}
.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.site-nav .logo {
  font-family: var(--headerfont);
  font-size: 1.1rem;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-nav .logo:hover { color: var(--primary-dark); }
.logo-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}
/* External nav link — visually distinct */
.site-nav nav a.nav-external {
  padding: 4px 14px;
  border: 1px solid rgba(70, 72, 36, 0.3);
  border-radius: 4px;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.site-nav nav a.nav-external:hover {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}
.site-nav nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.site-nav nav a {
  font-family: var(--bodyfont);
  font-size: 1.05rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav nav a:hover { color: var(--accent); }
.site-nav nav .btn {
  padding: 10px 24px;
  font-size: 1rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--accent);
  margin: 5px 0;
  transition: 0.3s;
  border-radius: 2px;
}

/* ========================================
   HERO — left-aligned
   ======================================== */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 140px 24px 0;
  background: linear-gradient(to bottom, var(--white) 60%, var(--accent));
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}
.hero h1 {
  max-width: 850px;
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--bodyfont);
  order: 1;
  margin-bottom: 32px;
}
.hero-epigraph {
  order: 2;
  max-width: 720px;
  margin-bottom: 40px;
}
.hero-epigraph p {
  font-family: var(--bodyfont);
  font-style: normal;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--accent);
  line-height: 1.55;
  font-weight: 400;
  letter-spacing: 0;
}
.hero-teaching {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 580px;
  order: 3;
}
.hero-teaching p {
  font-family: var(--bodyfont);
  color: var(--muted);
}

/* ========================================
   MISSION — dark flowing prose (lines 6-23)
   ======================================== */
.mission {
  padding: 40px 24px 140px;
  background: var(--accent);
}
.mission-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}
.mission-line {
  font-family: var(--bodyfont);
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.35rem;
  line-height: 1.75;
}
.mission-bold {
  font-family: var(--bodyfont);
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--white);
  line-height: 1.75;
}
.mission-invitation {
  font-family: var(--bodyfont);
  color: var(--white);
  font-size: 1.45rem;
  line-height: 1.55;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 32px;
  font-weight: 600;
}
.mission-cta {
  margin-top: 12px;
}
.mission-cta .btn-cta {
  background: var(--white);
  color: var(--accent);
}
.mission-cta .btn-cta:hover {
  background: var(--alt);
  color: var(--accent);
}
.mission-deadline {
  font-family: var(--bodyfont);
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  max-width: 540px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

/* ========================================
   MISSION STATEMENT — full-bleed proclamation
   ======================================== */
.mission-statement {
  padding: clamp(80px, 10vw, 120px) 24px;
  background: linear-gradient(to bottom, rgba(70, 72, 36, 0.15), var(--white));
}
.mission-statement-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: clamp(32px, 4vw, 48px);
  text-align: center;
}
.mission-statement-inner p {
  font-family: var(--bodyfont);
  font-size: clamp(1.35rem, 2.4vw, 1.65rem);
  color: var(--muted);
  margin: 0;
  line-height: 1.65;
}
.mission-statement-inner p:first-child {
  font-family: var(--headerfont);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--accent);
}
.mission-statement-inner p:first-child em {
  font-style: normal;
  font-weight: 700;
}
.mission-rule {
  border: none;
  border-top: 1px solid var(--alt);
  width: 80px;
  margin: 0 auto;
}

/* ── CTA band: dark olive, centered ── */
.mission-cta-band {
  padding: clamp(40px, 6vw, 72px) 24px;
  background: var(--accent);
  text-align: center;
}
.mission-cta-band .mission-cta-inner {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.mission-cta-band .mission-invitation {
  font-family: var(--bodyfont);
  font-size: clamp(1.2rem, 2.4vw, 1.45rem);
  color: var(--white);
  line-height: 1.6;
  font-weight: 600;
  border: none;
  padding: 0;
  margin: 0;
}
.mission-cta-band .btn-cta {
  background: var(--white);
  color: var(--accent);
}
.mission-cta-band .btn-cta:hover {
  background: var(--alt);
  color: var(--accent);
}
.mission-cta-band .mission-deadline {
  font-family: var(--bodyfont);
  font-size: 1.35rem;
  color: rgba(255, 255, 255, 0.7);
  font-style: italic;
  max-width: 540px;
  line-height: 1.6;
}

/* ========================================
   TESTIMONIALS — scroll-driven quote crossfade
   ======================================== */
.teacher-testimonials-sentinel {
  height: auto;
  position: relative;
}
.teacher-testimonials-pinned {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--neutral-grey);
}
.teacher-testimonials-pinned .teacher {
  padding-bottom: 24px;
}
.testimonials-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 48px 48px;
  position: relative;
}
/* ── Shared scroll indicator ── */
.scroll-hint {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.25, 0.1, 0.25, 1);
  pointer-events: none;
}
.scroll-hint--down { bottom: 20px; }
.scroll-hint--up {
  position: fixed;
  top: 72px;
}
.scroll-hint--up svg { transform: rotate(180deg); }
.scroll-hint.is-visible {
  opacity: 0.7;
}
.scroll-hint svg {
  display: block;
  width: 28px;
  height: 28px;
}
.scroll-hint--down svg {
  animation: hint-drift-down 2s ease-in-out infinite;
}
.scroll-hint--up svg {
  animation: hint-drift-up 2s ease-in-out infinite;
}
@keyframes hint-drift-down {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}
@keyframes hint-drift-up {
  0%, 100% { transform: rotate(180deg) translateY(0); }
  50% { transform: rotate(180deg) translateY(6px); }
}
.testimonials-inner {
  max-width: 680px;
  width: 100%;
  padding: 0 24px;
  position: relative;
  display: grid;
  place-items: center;
}
.testimonial-item {
  grid-area: 1 / 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
.testimonial-item.is-carousel-active {
  opacity: 1;
  pointer-events: auto;
}
.testimonial-quote {
  font-family: var(--bodyfont);
  font-style: italic;
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  color: var(--accent);
  line-height: 1.7;
  font-weight: 400;
  max-width: 640px;
}
.testimonial-quote .char {
  opacity: 1;
  display: inline;
}
.testimonial-name {
  font-family: var(--sansfont);
  font-size: 1rem;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.testimonial-name .char {
  opacity: 1;
  display: inline;
}
.testimonial-dots {
  position: static;
  transform: none;
  display: flex;
  gap: 10px;
  margin-top: 24px;
}
.testimonial-dot {
  width: 9px;
  height: 9px;
  cursor: pointer;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.25;
  transition: opacity 0.3s, transform 0.3s;
}
.testimonial-dot.is-active {
  opacity: 0.7;
  transform: scale(1.3);
}
.testimonial-nav {
  display: flex;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  opacity: 0.5;
  transition: opacity 0.2s;
  cursor: pointer;
  padding: 0;
}
.testimonial-nav:hover { opacity: 0.85; }
.testimonial-nav--prev { left: 0; }
.testimonial-nav--next { right: 0; }
@media (max-width: 680px) {
  .testimonials-area { padding: 24px 24px 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .testimonial-item { transition: none; }
}

/* ========================================
   TRAINING — header + split blocks with images
   ======================================== */
.training {
  padding: clamp(56px, 8vw, 96px) 24px;
  background: var(--white);
}
.training-header {
  max-width: 700px;
  margin: 0 auto 48px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.training-header p {
  color: var(--muted);
  font-size: 1.35rem;
}
.training-split-heading {
  text-align: center;
  margin-bottom: 20px;
  font-family: var(--headerfont);
  font-size: 1.8rem;
  color: var(--accent);
}
.training-overview {
  max-width: 700px;
  margin: 0 auto 56px;
  text-align: center;
}
.training-overview p {
  color: var(--muted);
}
.training-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.training-track {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.track-image {
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 6px;
}
.track-image img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.track-title {
  font-family: var(--headerfont);
  font-size: 1.6rem;
  color: var(--accent-secondary);
  margin-bottom: 12px;
  text-align: center;
}
.track-subtitle {
  color: var(--muted);
  text-align: center;
  margin-bottom: 20px;
}

/* --- Schedule toggle --- */
.schedule-details {
  border-top: 1px solid var(--alt);
  padding-top: 12px;
}
.schedule-details summary {
  font-family: var(--bodyfont);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--accent-secondary);
  cursor: pointer;
  padding: 8px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}
.schedule-details summary::-webkit-details-marker {
  display: none;
}
.schedule-details summary::before {
  content: '+';
  font-size: 1.1rem;
  font-weight: 400;
  color: var(--accent-secondary);
  transition: transform 0.2s;
}
.schedule-details[open] summary::before {
  content: '−';
}
.schedule-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}
.schedule-table tr {
  border-bottom: 1px solid var(--alt);
}
.schedule-table tr:last-child {
  border-bottom: none;
}
.schedule-table td {
  padding: 12px 0;
  font-family: var(--bodyfont);
  font-size: 1.35rem;
  vertical-align: top;
}
.schedule-time {
  color: var(--accent-secondary);
  font-weight: 600;
  white-space: nowrap;
  width: 90px;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.schedule-activity {
  color: var(--off-black);
}

/* Legacy schedule class support */
.schedule table { width: 100%; border-collapse: collapse; }
.schedule tr { border-bottom: 1px solid var(--alt); }
.schedule tr:last-child { border-bottom: none; }
.schedule td { padding: 14px 0; font-family: var(--bodyfont); font-size: 1.35rem; vertical-align: top; }

/* ========================================
   TEACHER — horizontal split with photo (lines 74-75)
   ======================================== */
.teacher {
  padding: 100px 24px 32px;
  background: var(--neutral-grey);
}
.teacher-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.teacher-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.teacher-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.teacher-content p {
  color: var(--muted);
}

/* ========================================
   COST — compact horizontal (lines 77-79)
   ======================================== */
.cost {
  padding: 80px 24px;
  background: var(--white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.cost-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
  max-width: var(--max-width);
  margin: 0 auto;
}
.cost-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.cost-content p {
  color: var(--muted);
  max-width: 540px;
}
.cost-aside {
  background: var(--neutral-grey);
  padding: 32px 40px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
}
.cost-aside p {
  font-family: var(--bodyfont);
  font-weight: 600;
  color: var(--accent);
}

/* ========================================
   CTA — final apply
   ======================================== */
.cta {
  padding: 100px 24px;
  background: var(--accent);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.cta h2 {
  color: var(--white);
}
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--bodyfont);
  font-weight: 700;
  font-size: 1.1rem;
  padding: 20px 48px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.25s ease;
  cursor: pointer;
  border: none;
  background: var(--white);
  color: var(--accent);
}
.btn-cta:hover {
  background: var(--alt);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.cta-deadline {
  margin-top: 8px;
}
.cta-deadline-main {
  font-family: var(--bodyfont);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.02em;
  background: rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: var(--radius-pill);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--off-white);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  padding: 48px 24px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-brand .logo {
  font-family: var(--headerfont);
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-brand p {
  font-size: 1.35rem;
  color: #999;
}
.footer-nav {
  display: flex;
  gap: 32px;
}
.footer-nav a {
  font-family: var(--bodyfont);
  font-size: 1.35rem;
  color: var(--muted);
}
.footer-nav a:hover { color: var(--accent); }
.footer-copy {
  font-family: var(--bodyfont);
  font-size: 1.35rem;
  color: #999;
  text-align: center;
  padding: 24px 24px 0;
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .cost-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .cost-aside {
    max-width: none;
  }
}
@media (max-width: 810px) {
  .training-split {
    grid-template-columns: 1fr;
  }
  .teacher-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .teacher-img {
    aspect-ratio: 16 / 9;
    max-height: 300px;
  }
  .site-nav nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 8px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }
  .site-nav nav a {
    padding: 12px 0;
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .site-nav nav.open { display: flex; }
  .nav-toggle { display: block; min-width: 44px; min-height: 44px; }
  .footer-inner {
    flex-direction: column;
    gap: 24px;
    text-align: center;
  }
  .footer-nav { justify-content: center; }
  .footer-nav a {
    padding: 8px 0;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}
@media (max-width: 480px) {
  .hero { padding: 120px 20px 60px; min-height: 85vh; }
  .mission { padding: 80px 20px; }
  .training-track { padding: 32px 24px; }
  .training { padding: 80px 20px; }
  .teacher { padding: 60px 20px; }
  .cost { padding: 60px 20px; }
  .cta { padding: 80px 20px; }
}

/* ========================================
   DELIGHT — three moments only
   ======================================== */

/* 1. Hero entrance */
.hero h1,
.hero-epigraph,
.hero-teaching {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-enter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}
.hero h1       { animation-delay: 0.2s; }
.hero-epigraph { animation-delay: 0.5s; }
.hero-teaching { animation-delay: 0.7s; }

@keyframes hero-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 2. Mission lines — scroll-driven reveal (overdrive) */

/* Fallback: IntersectionObserver stagger (Firefox, older browsers) */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.08s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.24s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.32s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.40s; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 0.48s; }

/* Scroll-driven keyframes */
@keyframes scroll-reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll-driven override — Chrome, Edge, Safari
   "cover 0%" = element first peeks into viewport bottom
   "cover 25%" = element is ~25% through its total travel
   This gives a wide scroll range so the reveal is visible */
@supports (animation-timeline: view()) {
  .mission .reveal-stagger > *,
  .mission .reveal-stagger.is-visible > * {
    opacity: 0;
    transform: translateY(28px);
    transition: none;
    animation: scroll-reveal linear both;
    animation-timeline: view(block);
    animation-range: cover 10% cover 35%;
  }
}

/* 3. Apply button heartbeat */
.btn-cta {
  position: relative;
}
.btn-cta::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-pill);
  border: 2px solid rgba(255, 255, 255, 0.3);
  animation: heartbeat 2.5s ease-in-out infinite;
}
@keyframes heartbeat {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.04); }
}

/* ========================================
   REDUCED MOTION
   ======================================== */
@media (prefers-reduced-motion: reduce) {
  .btn, .btn-cta { transition: none; }
  .btn-cta::before { animation: none; }
  html { scroll-behavior: auto; }
  .hero-epigraph, .hero h1, .hero-teaching {
    opacity: 1;
    transform: none;
    animation: none;
  }
  .reveal-stagger > * {
    opacity: 1;
    transform: none;
    transition: none;
    animation: none;
  }
}
