/* City of Faith — main styles */

:root {
  --cof-gold: #e0a35f;
  --cof-purple: #9a59fd;
  --cof-purple-deep: #6047ac;
  --cof-purple-soft: #af94ff;
  --cof-cream: #f8f1e6;
  --cof-white: #fdfcff;
  --cof-ink: #252525;
  --cof-ink-soft: #353535;
  --cof-muted: #686868;
  --cof-gray: #999;
  --cof-dark: #0c0c0c;
  --cof-charcoal: #242424;
  --cof-hero: #2a2a2a;
  --cof-font: "Kumbh Sans", system-ui, sans-serif;
  --cof-font-body: "Inter", "Kumbh Sans", system-ui, sans-serif;
  --cof-max: 1200px;
  --cof-header-h: 88px;
  --cof-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --cof-featured-gradient: linear-gradient(135deg, #1e1638 0%, #2a1f4a 52%, #120e1f 100%);
  --cof-featured-text-gradient: linear-gradient(
    135deg,
    #1e1638 0%,
    #443078 24%,
    #6047ac 50%,
    #9a59fd 76%,
    #2a1f4a 100%
  );
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--cof-font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--cof-ink);
  background: var(--cof-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  width: 100%;
}

.cof-loader {
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.75rem;
  color: var(--cof-gold);
  font-family: var(--cof-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cof-loader__ring {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  border: 3px solid rgba(154, 89, 253, 0.22);
  border-top-color: var(--cof-gold);
  animation: cof-loader-spin 0.8s linear infinite;
}

.cof-loader__label {
  margin: 0;
}

.cof-loader__message {
  margin: 0;
  max-width: 22rem;
  font-family: var(--cof-font-body);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.5;
  text-transform: none;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

@keyframes cof-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes cof-loader-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.92);
  }
}

.feed-loading-overlay {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 2rem 1.25rem;
  background: #140f22;
  border-radius: inherit;
}

.featured-video-grid,
.featured-video-media,
.ig-feed__track,
.events-calendar-app {
  position: relative;
}

.is-feed-loading {
  min-height: 20rem;
}

.is-feed-loading > *:not(.feed-loading-overlay) {
  visibility: hidden;
}

.ig-feed__track.is-feed-loading {
  min-height: 16rem;
}

section.events-hero .feed-loading-overlay,
.events-calendar-loading {
  background: #fff;
}

section.events-hero .cof-loader,
.events-calendar-loading .cof-loader {
  color: var(--cof-purple-deep);
}

section.events-hero .cof-loader__message,
.events-calendar-loading .cof-loader__message {
  color: var(--cof-muted);
}

section.events-hero .cof-loader__ring,
.events-calendar-loading .cof-loader__ring {
  border-color: rgba(96, 71, 172, 0.2);
  border-top-color: var(--cof-purple);
}

@media (prefers-reduced-motion: reduce) {
  .cof-loader__ring {
    animation: cof-loader-pulse 1.2s ease-in-out infinite;
  }
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--cof-purple-deep);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--cof-purple);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--cof-font);
  line-height: 1.15;
  margin: 0 0 0.6em;
  font-weight: 700;
}

p {
  margin: 0 0 1em;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cof-purple);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 10000;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(14px) saturate(1.35);
  -webkit-backdrop-filter: blur(14px) saturate(1.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  height: var(--cof-header-h);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header {
    background: #fff;
  }
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.header-inner {
  max-width: var(--cof-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.site-logo img,
.site-logo .custom-logo {
  height: 64px;
  width: auto;
}

.primary-nav {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  min-width: 0;
}

.nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-shrink: 0;
}

.nav-menu a {
  color: #7c7c7c;
  font-family: var(--cof-font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav-menu .current-menu-item > a,
.nav-menu a:hover {
  color: var(--cof-ink);
}

.nav-more {
  position: relative;
  flex-shrink: 0;
}

.nav-more[hidden] {
  display: none !important;
}

.nav-more__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--cof-font);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #7c7c7c;
  padding: 0;
  white-space: nowrap;
}

.nav-more__toggle:hover,
.nav-more__toggle[aria-expanded="true"],
.nav-more__toggle.is-current {
  color: var(--cof-ink);
}

.nav-more__toggle.is-current {
  color: var(--cof-purple-deep);
}

.nav-more__chevron {
  display: inline-block;
  width: 0.45rem;
  height: 0.45rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  transition: transform 0.2s var(--cof-ease);
}

.nav-more__toggle[aria-expanded="true"] .nav-more__chevron {
  transform: rotate(-135deg) translateY(1px);
}

.nav-more__menu {
  position: absolute;
  top: calc(100% + 0.65rem);
  right: 0;
  min-width: 12.5rem;
  list-style: none;
  margin: 0;
  padding: 0.45rem 0;
  background: #fff;
  border: 1px solid rgba(154, 89, 253, 0.18);
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(96, 71, 172, 0.14);
  z-index: 1100;
}

.nav-more__menu[hidden] {
  display: none !important;
}

.nav-more__menu a {
  display: block;
  padding: 0.65rem 1.25rem;
  color: #7c7c7c;
  font-family: var(--cof-font);
  font-size: 0.95rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav-more__menu .current-menu-item > a,
.nav-more__menu a:hover {
  color: var(--cof-purple-deep);
  background: rgba(154, 89, 253, 0.08);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--cof-font);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--cof-ease), background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-give {
  background: var(--cof-purple);
  color: #fff !important;
  white-space: nowrap;
  animation: give-pulse 2.4s ease-in-out infinite;
}

.btn-give:hover {
  background: var(--cof-purple-deep);
  color: #fff !important;
  animation-play-state: paused;
  transform: translateY(-1px);
}

@keyframes give-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(154, 89, 253, 0.45);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 0 0 10px rgba(154, 89, 253, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn-give,
  .giving-header .btn-primary,
  .worship-services-calendar {
    animation: none;
  }
}

.btn-outline {
  background: transparent;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-primary {
  background: var(--cof-purple-deep);
  color: #fff !important;
}

.btn-primary:hover {
  background: var(--cof-purple);
}

.btn-gold {
  background: var(--cof-gold);
  color: #fff !important;
}

.btn-gold:hover {
  background: #d8974f;
}

.btn-give--mobile {
  display: none;
}

.nav-toggle,
.nav-close {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle {
  position: relative;
  width: 42px;
  height: 42px;
  padding: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--cof-ink);
  margin: 0;
  border-radius: 1px;
  transition:
    transform 0.25s var(--cof-ease),
    opacity 0.2s ease;
}

.nav-toggle span + span {
  margin-top: 5px;
}

.nav-toggle[aria-expanded="true"] span {
  position: absolute;
  margin: 0;
  left: 50%;
  top: 50%;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

/* Hero */
.hero {
  position: relative;
  min-height: calc(100vh - var(--cof-header-h));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  color: #e8e8e8;
  overflow: hidden;
  background: var(--cof-hero);
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media video,
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-media__photo {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(28, 22, 48, 0.82) 0%, rgba(36, 28, 58, 0.58) 48%, rgba(20, 20, 20, 0.35) 100%),
    radial-gradient(circle at 20% 80%, rgba(224, 163, 95, 0.12), transparent 45%);
}

.hero-content {
  position: relative;
  z-index: 2;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: var(--cof-max);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) 1.5rem clamp(2rem, 5vh, 3rem);
  width: 100%;
}

.hero-kicker {
  font-family: var(--cof-font);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cof-gold);
  margin: 0 0 1rem;
}

.hero-title {
  font-size: clamp(3.9rem, 9vw, 6.75rem);
  font-weight: 800;
  color: #fff;
  max-width: 11ch;
  margin-bottom: 0.35em;
  line-height: 0.95;
  text-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2.4vw, 1.65rem);
  font-weight: 400;
  color: rgba(255, 255, 255, 0.88);
  max-width: 34rem;
  margin-top: 0;
  margin-bottom: 2rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.welcome-strip {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow-x: clip;
  color: #1f242e;
}

.welcome-strip-inner {
  max-width: var(--cof-max);
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 0.75rem 0.85rem;
}

.welcome-strip-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 0 1 auto;
  width: max-content;
  max-width: min(100%, 20rem);
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: var(--cof-white);
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 22px rgba(36, 28, 58, 0.06);
}

.welcome-strip-label {
  font-family: var(--cof-font);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cof-purple);
}

.welcome-strip-item strong {
  font-family: var(--cof-font);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1f242e;
}

.welcome-strip-item--highlight strong {
  color: var(--cof-purple-deep);
}

/* Sections */
.section {
  padding: 5rem 0;
}

.section-inner {
  max-width: var(--cof-max);
  margin: 0 auto;
  padding: 0 1.5rem;
  min-width: 0;
}

.eyebrow {
  font-family: var(--cof-font);
  text-transform: lowercase;
  letter-spacing: 0.08em;
  color: var(--cof-purple);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--cof-ink);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--cof-muted);
  max-width: 42rem;
}

/* Mission — matched to reference home layout */
.mission {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #fff;
  padding: clamp(4rem, 10vw, 9.5rem) 0;
}

.mission-cloud-layer {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mission-cloud {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(72px);
}

.mission-cloud--1 {
  width: clamp(280px, 42vw, 520px);
  height: clamp(280px, 42vw, 520px);
  top: -10%;
  right: 4%;
  background: rgba(154, 89, 253, 0.16);
}

.mission-cloud--2 {
  width: clamp(240px, 34vw, 440px);
  height: clamp(240px, 34vw, 440px);
  bottom: -12%;
  left: 6%;
  background: rgba(96, 71, 172, 0.13);
}

.mission-cloud--3 {
  width: clamp(220px, 30vw, 400px);
  height: clamp(220px, 30vw, 400px);
  top: 38%;
  left: 32%;
  background: rgba(175, 148, 255, 0.1);
}

.mission::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(16px) saturate(1.35);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
}

.mission .section-inner {
  position: relative;
  z-index: 2;
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mission::after {
    background: rgba(255, 255, 255, 0.92);
  }
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}

.mission-visual {
  position: relative;
  padding-right: clamp(0px, 2vw, 1.5rem);
}

.mission-visual[data-scroll-slide] {
  overflow: hidden;
  border-radius: 15px;
}

.mission-visual img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  aspect-ratio: 540 / 620;
  box-shadow: 0 24px 60px rgba(36, 28, 58, 0.12);
}

.mission-visual[data-scroll-slide] img {
  width: calc(100% + 80px);
  max-width: none;
  transform: translate3d(var(--scroll-slide-x, -40px), var(--scroll-slide-y, 0px), 0);
  will-change: transform;
}

.mission-intro {
  font-family: var(--cof-font);
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 600;
  line-height: 1.45;
  color: #1f242e;
  margin-bottom: 1.25rem;
  max-width: 34rem;
}

.mission-copy {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.mission-copy-text {
  margin-bottom: clamp(2rem, 5vw, 5rem);
}

.mission-eyebrow {
  text-transform: uppercase;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  line-height: 1;
  color: var(--cof-purple);
  margin-bottom: 1.5rem;
}

.mission-title {
  font-size: clamp(2.25rem, 4vw, 3.55rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: #1f242e;
  margin-bottom: 1.5rem;
}

.mission .section-lead {
  color: #6b6560;
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: none;
}

.mission-secondary img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  aspect-ratio: 16 / 11;
  box-shadow: 0 20px 50px rgba(36, 28, 58, 0.1);
}

.mission-secondary[data-scroll-slide] {
  overflow: hidden;
  border-radius: 15px;
}

.mission-secondary[data-scroll-slide] img {
  width: calc(100% + 48px);
  max-width: none;
  transform: translate3d(0, var(--scroll-slide-y, 0px), 0);
  will-change: transform;
}

/* Featured video */
.section.featured-spotlight,
.section.featured-video {
  background-color: #1e1638;
  background-image:
    linear-gradient(135deg, #1e1638 0%, #2a1f4a 52%, #120e1f 100%),
    radial-gradient(circle at 82% 18%, rgba(154, 89, 253, 0.2), transparent 45%);
  color: #fff;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.featured-spotlight-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 auto clamp(2rem, 4vw, 2.75rem);
}

.featured-spotlight-tab {
  padding: 0.55rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--cof-font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition:
    background 0.2s var(--cof-ease),
    border-color 0.2s var(--cof-ease),
    color 0.2s var(--cof-ease),
    transform 0.2s var(--cof-ease),
    box-shadow 0.2s var(--cof-ease);
}

.featured-spotlight-tab:hover {
  border-color: rgba(154, 89, 253, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.featured-spotlight-tab:focus-visible {
  outline: 2px solid var(--cof-purple-soft);
  outline-offset: 2px;
}

.featured-spotlight-tab.is-active {
  background: var(--cof-purple);
  border-color: var(--cof-purple);
  color: #fff;
  box-shadow: 0 8px 20px rgba(96, 71, 172, 0.28);
}

@keyframes featured-spotlight-tab-giggle {
  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  15% {
    transform: rotate(-4deg) translateY(-1px);
  }

  30% {
    transform: rotate(4deg) translateY(-1px);
  }

  45% {
    transform: rotate(-3deg) translateY(0);
  }

  60% {
    transform: rotate(3deg) translateY(0);
  }

  75% {
    transform: rotate(-1deg) translateY(0);
  }
}

.featured-spotlight-tab:not(.is-active).is-giggling {
  animation: featured-spotlight-tab-giggle 0.55s var(--cof-ease);
}

.featured-spotlight-panel[hidden] {
  display: none;
}

.featured-events-date {
  margin: 0 0 1.75rem;
  font-family: var(--cof-font);
  font-size: clamp(1rem, 2vw, 1.12rem);
  font-weight: 600;
  color: rgba(232, 220, 255, 0.95);
}

.featured-events-grid {
  grid-template-areas:
    "kicker media"
    "copy media";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2rem, 4vw, 3.5rem);
  row-gap: 0.2rem;
}

.featured-events-grid .featured-video-eyebrow {
  grid-area: kicker;
  margin-bottom: 0;
}

.featured-events-grid .featured-video-copy {
  grid-area: copy;
}

.featured-events-grid .featured-video-title {
  margin-top: 0;
}

.featured-events-grid .featured-video-media {
  grid-area: media;
}

.featured-events-grid .featured-video-lead-wrap {
  margin-bottom: 0.85rem;
}

.featured-events-feature {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: min(100%, 384px);
}

.featured-events-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  touch-action: pan-y;
}

.featured-events-nav {
  position: absolute;
  top: 50%;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: none;
  cursor: pointer;
  transform: translateY(-50%);
  filter:
    drop-shadow(0 1px 0 rgba(0, 0, 0, 0.45))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.featured-events-nav:hover,
.featured-events-nav:focus-visible {
  background: rgba(255, 255, 255, 0.92);
  color: #1a122c;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}

.featured-events-nav:focus-visible {
  outline: 2px solid var(--cof-gold);
  outline-offset: 3px;
}

.featured-events-nav[hidden] {
  display: none;
}

.featured-events-nav--prev {
  left: 0.45rem;
}

.featured-events-nav--next {
  right: 0.45rem;
}

.featured-events-nav svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.featured-events-frame {
  position: relative;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  border-radius: 15px;
  overflow: hidden;
  background: #0b0814;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.featured-events-frame img,
.featured-events-frame video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: min(70vh, 560px);
  object-fit: contain;
}

.featured-events-frame img[hidden],
.featured-events-frame video[hidden] {
  display: none;
}

.featured-events-frame.is-portrait,
.featured-events-frame.is-landscape {
  width: 100%;
  max-width: 100%;
}

.featured-events-frame.is-portrait {
  aspect-ratio: 4 / 5;
}

.featured-events-frame.is-landscape {
  aspect-ratio: var(--media-ratio, 16 / 9);
}

.featured-events-frame.is-portrait img,
.featured-events-frame.is-portrait video,
.featured-events-frame.is-landscape img,
.featured-events-frame.is-landscape video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
}

.featured-events-frame.is-playing-video video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  background: #0b0814;
}

.featured-events-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 4.25rem;
  height: 4.25rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(18, 10, 32, 0.66);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  transform: translate(-50%, -50%);
}

.featured-events-play[hidden] {
  display: none;
}

.featured-events-play__icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 0.2rem;
  border-style: solid;
  border-width: 0.7rem 0 0.7rem 1.15rem;
  border-color: transparent transparent transparent #fff;
}

.featured-events-play:hover,
.featured-events-play:focus-visible {
  background: rgba(18, 10, 32, 0.82);
}

.featured-events-play:focus-visible {
  outline: 2px solid var(--cof-gold);
  outline-offset: 3px;
}

.featured-events-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  left: auto;
  z-index: 2;
  margin: 0;
  box-shadow: 0 8px 20px rgba(8, 6, 18, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.featured-events-badge.is-on-light {
  color: #1f1830;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(31, 24, 48, 0.18);
}

.featured-events-badge.is-on-dark {
  color: #f4edff;
  background: rgba(36, 24, 64, 0.62);
  border-color: rgba(255, 255, 255, 0.28);
}

/* Trims letterbox bars baked into Instagram artwork. */
.featured-events-frame.is-cropped {
  width: min(100%, calc(min(70vh, 560px) * var(--crop-ratio, 1)));
  aspect-ratio: var(--crop-ratio, 1);
}

.featured-events-frame.is-cropped img {
  position: absolute;
  top: calc(var(--crop-top, 0) * -100% / var(--crop-height, 1));
  left: calc(var(--crop-left, 0) * -100% / var(--crop-width, 1));
  width: calc(100% / var(--crop-width, 1));
  height: calc(100% / var(--crop-height, 1));
  max-width: none;
  max-height: none;
}

.featured-spotlight .btn-outline {
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff;
}

.featured-spotlight .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.featured-video-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.featured-video-grid.featured-events-grid {
  row-gap: 0.2rem;
}

.featured-video-media {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-self: center;
}

.featured-video-upnext {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.featured-video .eyebrow,
.featured-video-eyebrow {
  color: var(--cof-gold);
  margin-bottom: 0.75rem;
  text-transform: none;
  letter-spacing: 0.06em;
}

.featured-video .section-title,
.featured-video-title {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1rem;
}

.featured-video-lead {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  max-width: 34rem;
  margin: 0 0 1.25rem;
}

.featured-video-lead-wrap {
  max-width: 34rem;
  margin: 0 0 1.25rem;
}

.featured-video-lead-wrap .featured-video-lead {
  margin-bottom: 0.4rem;
  max-width: none;
}

.featured-video-readmore {
  display: inline-block;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  font-family: var(--cof-font);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--cof-gold);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.16em;
  text-decoration-thickness: 1px;
}

.featured-video-readmore:hover,
.featured-video-readmore:focus-visible {
  color: #fff;
}

.featured-video-readmore:focus-visible {
  outline: 2px solid var(--cof-gold);
  outline-offset: 3px;
}

.featured-video-readmore[hidden] {
  display: none;
}

.featured-video-meta {
  margin: 0 0 1.75rem;
}

.featured-video-tag {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: rgba(154, 89, 253, 0.22);
  border: 1px solid rgba(154, 89, 253, 0.45);
  color: #e8dcff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-video-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.featured-video-grid.is-video-playing {
  grid-template-columns: 1fr;
  justify-items: center;
}

.featured-video-player {
  margin: 0 auto;
  width: 100%;
  max-width: 384px;
  justify-self: center;
  transition:
    max-width 0.55s var(--cof-ease),
    width 0.55s var(--cof-ease);
}

.featured-video-player.is-playing {
  max-width: min(100%, 960px);
  width: 100%;
}

.featured-video-frame {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 384px;
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #0b0814;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.42),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  transition:
    max-width 0.55s var(--cof-ease),
    box-shadow 0.55s var(--cof-ease);
}

.featured-video-player.is-playing .featured-video-frame {
  max-width: 100%;
  box-shadow:
    0 32px 72px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 255, 255, 0.12);
}

.featured-video-frame video,
.featured-video-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
}

.featured-video-empty {
  display: grid;
  place-content: center;
  gap: 0.45rem;
  width: 100%;
  height: 100%;
  padding: 1.25rem;
  text-align: center;
  background:
    radial-gradient(circle at 30% 20%, rgba(154, 89, 253, 0.22), transparent 55%),
    linear-gradient(160deg, #1a1430 0%, #0d0a18 100%);
}

.featured-video-empty__title {
  margin: 0;
  font-family: var(--cof-font);
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
  color: #fff;
}

.featured-video-empty__lead {
  margin: 0 auto;
  max-width: 18rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.featured-video-status {
  flex: 1 0 100%;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

.featured-video-caption {
  margin: 0.85rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
}

.featured-video-upnext__label {
  margin: 0 0 0.65rem;
  font-family: var(--cof-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.58);
}

.featured-video-upnext__list {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.65rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.featured-video-upnext__list::-webkit-scrollbar {
  display: none;
}

.featured-video-upnext__item {
  flex: 0 0 min(78%, 220px);
  scroll-snap-align: start;
  display: grid;
  grid-template-columns: 68px minmax(0, 1fr);
  gap: 0.5rem;
  align-items: start;
  min-width: 0;
  overflow: hidden;
  padding: 0.4rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font: inherit;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.quick-events-status {
  flex: 1 0 100%;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  line-height: 1.5;
}

.featured-video-upnext__item:hover,
.featured-video-upnext__item:focus-visible {
  border-color: rgba(175, 148, 255, 0.45);
  background: rgba(154, 89, 253, 0.12);
  transform: translateY(-1px);
}

.featured-video-upnext__item.is-active {
  border-color: rgba(154, 89, 253, 0.62);
  background: rgba(154, 89, 253, 0.18);
  box-shadow: 0 0 0 1px rgba(154, 89, 253, 0.2);
}

.featured-video-upnext__thumb {
  display: block;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 16 / 9;
  background: #0b0814;
}

.featured-video-upnext__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-video-upnext__meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  overflow: hidden;
}

.featured-video-upnext__title {
  font-family: var(--cof-font);
  font-size: clamp(0.72rem, 2.2vw, 0.84rem);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  text-overflow: ellipsis;
  word-break: break-word;
}

.featured-video-upnext__tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(232, 220, 255, 0.72);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.featured-video-grid.is-video-playing .featured-video-media {
  max-width: min(100%, 960px);
  width: 100%;
}

@media (min-width: 769px) {
  .featured-video-upnext__list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .featured-video-upnext__item {
    flex: initial;
    min-width: 0;
  }
}

.featured-video-player[data-featured-video="embed"] .featured-video-frame {
  aspect-ratio: 16 / 9;
}

@media (prefers-reduced-motion: reduce) {
  .featured-video-player,
  .featured-video-frame {
    transition: none;
  }

  .featured-spotlight-tab.is-giggling {
    animation: none;
  }
}

/* Beliefs — matched to reference (light section + 4 icon cards) */
.beliefs {
  background: #fff;
  padding: clamp(2rem, 4vw, 3rem) 0 clamp(4rem, 8vw, 6rem);
  color: #1f242e;
}

.beliefs-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.beliefs-title {
  font-family: var(--cof-font);
  font-size: clamp(2.625rem, 4.8vw, 4.275rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  width: 70%;
  max-width: 70%;
  margin: 0;
}

.beliefs-title:not(.beliefs-title-animated),
.beliefs-title-line {
  background-image: var(--cof-featured-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.beliefs-title-accent {
  background-image: var(--cof-featured-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.beliefs-title-animated {
  display: grid;
  align-items: start;
  overflow: hidden;
  /* Avoid clipping on the parent — Chrome glitches when parent + children both clip text. */
  background-image: none;
  color: inherit;
  min-height: 1.2em;
}

.beliefs-title-line {
  grid-area: 1 / 1;
  transform: translate3d(0, 105%, 0);
  transition: transform 0.7s var(--cof-ease);
  pointer-events: none;
  will-change: transform;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.beliefs-title-line.is-active {
  transform: translate3d(0, 0, 0);
  pointer-events: auto;
  z-index: 2;
}

.beliefs-title-line.is-leaving {
  transform: translate3d(0, -105%, 0);
  z-index: 1;
}

.beliefs-title-line.is-prep {
  transition: none;
  transform: translate3d(0, 105%, 0);
  z-index: 0;
}

.beliefs-title-break {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .beliefs-title-animated {
    display: block;
    overflow: visible;
    min-height: 0;
  }

  .beliefs-title-line,
  .beliefs-title-line.is-active,
  .beliefs-title-line.is-leaving,
  .beliefs-title-line.is-prep {
    position: static;
    display: block;
    transform: none !important;
    transition: none !important;
    pointer-events: auto;
    will-change: auto;
    z-index: auto;
  }

  .beliefs-title-line + .beliefs-title-line {
    margin-top: 0.35em;
  }
}

.beliefs-label {
  margin: 0 0 0 auto;
  font-family: var(--cof-font);
  font-size: clamp(1.5rem, 2.4vw, 2.16rem);
  font-weight: 700;
  line-height: 1.2;
  color: #1f242e;
  text-align: right;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: flex-end;
}

.beliefs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  min-height: 300px;
}

.belief-card {
  border: 1px solid #e4ddd7;
  border-radius: 15px;
  padding: 2rem 1.35rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #fff;
  transition: transform 0.35s var(--cof-ease), box-shadow 0.35s var(--cof-ease);
}

.belief-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(36, 28, 58, 0.08);
}

.belief-icon {
  color: var(--cof-purple);
  margin-bottom: 1.1rem;
  line-height: 0;
}

.belief-icon svg {
  display: block;
  width: 51px;
  height: 51px;
}

.belief-card h3 {
  font-family: var(--cof-font);
  font-size: 1.15rem;
  font-weight: 700;
  color: #1f242e;
  margin: 0 0 0.65rem;
}

.belief-card p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: #6b6560;
}

/* Giving */
.giving {
  position: relative;
  background: #fff;
  color: rgba(255, 255, 255, 0.92);
  padding: clamp(3rem, 6vw, 5rem) clamp(1.5rem, 5vw, 3rem);
  overflow: visible;
}

.home-cloud-stage {
  position: relative;
  background: #fff;
}

.home-cloud-stage > .beliefs,
.home-cloud-stage > .giving,
.home-cloud-stage > .ministries-home {
  background: transparent;
}

.giving .section-inner {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse 75% 65% at 92% 8%, rgba(154, 89, 253, 0.14) 0%, transparent 58%),
    linear-gradient(225deg, #1a1728 0%, #121118 52%, #0d0c12 100%);
  border-radius: 20px;
  padding: clamp(3rem, 5vw, 4.5rem) clamp(1.75rem, 3vw, 2.5rem);
  box-shadow:
    0 12px 28px rgba(18, 14, 31, 0.12),
    0 28px 64px rgba(18, 14, 31, 0.24);
  overflow: hidden;
}

.giving .section-title {
  color: #fff;
}

.giving-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  line-height: 1.15;
  margin-bottom: 1.5rem;
  color: #fff;
}

.giving-title-accent {
  color: var(--cof-purple-soft);
}

.giving-eyebrow {
  color: var(--cof-purple-soft);
  margin: 0;
  white-space: nowrap;
}

.giving-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.giving-header-copy {
  max-width: 36rem;
}

.giving-header .btn-primary {
  background: var(--cof-purple);
  animation: give-pulse 2.4s ease-in-out infinite;
}

.giving-header .btn-primary:hover {
  background: var(--cof-purple-deep);
  animation-play-state: paused;
  transform: translateY(-1px);
}

.giving-tabs {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.giving-tabs-media {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  aspect-ratio: 3 / 2;
  width: 100%;
  min-width: 0;
  background: #ddd;
}

.giving-tabs-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.giving-tabs-track::-webkit-scrollbar {
  display: none;
}

.giving-tabs-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  min-width: 0;
  object-fit: cover;
  object-position: center;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.giving-tabs-slide--grid {
  display: block;
  overflow: hidden;
  background: #0f0f12;
}

.giving-matters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  width: 100%;
  height: 100%;
  padding: 0.35rem;
  box-sizing: border-box;
}

.giving-matters-grid__item {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  background: #1a1a22;
  position: relative;
  transition: transform 0.25s var(--cof-ease), box-shadow 0.25s var(--cof-ease);
}

.giving-matters-grid__item:hover:not(.is-expanded) {
  transform: scale(1.02);
  z-index: 1;
}

.giving-matters-grid__item:focus-visible {
  outline: 2px solid var(--cof-purple);
  outline-offset: 2px;
}

.giving-matters-grid__item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.giving-matters-grid.has-expanded {
  display: block;
  position: relative;
  padding: 0;
  gap: 0;
}

.giving-matters-grid.has-expanded .giving-matters-grid__item:not(.is-expanded) {
  display: none;
}

.giving-matters-grid.has-expanded .giving-matters-grid__item.is-expanded {
  display: block;
  position: absolute;
  inset: 0;
  border-radius: 0;
  cursor: zoom-out;
  animation: giving-matters-expand 0.35s var(--cof-ease);
}

@keyframes giving-matters-expand {
  from {
    opacity: 0.85;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .giving-matters-grid.has-expanded .giving-matters-grid__item.is-expanded {
    animation: none;
  }

  .giving-matters-grid__item:hover:not(.is-expanded) {
    transform: none;
  }
}

@media (min-width: 769px) {
  .giving-tabs-media {
    min-height: 280px;
  }

  .giving-tabs-track {
    overflow-x: hidden;
    scroll-snap-type: none;
  }
}

.giving-tabs-nav {
  display: flex;
  flex-direction: column;
}

.giving-tabs-btn {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  padding: 1.15rem 0;
  text-align: left;
  font-family: var(--cof-font);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: color 0.2s ease;
}

.giving-tabs-btn:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.giving-tabs-btn:hover {
  color: #fff;
}

.giving-tabs-btn.is-active {
  color: #fff;
}

.giving-tabs-btn:focus-visible {
  outline: 2px solid var(--cof-purple);
  outline-offset: 2px;
}

/* Ministries strip */
.ministries-home {
  position: relative;
  background: #fff;
  padding: clamp(5rem, 10vw, 8rem) 0 clamp(5.5rem, 11vw, 8.5rem);
}

.ministries-home-shell {
  position: relative;
  z-index: 1;
}

.ministries-home-intro {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 4rem);
}

.ministries-home-eyebrow {
  margin-bottom: 0.85rem;
}

.ministries-home-title {
  font-size: clamp(2.35rem, 4.5vw, 3.35rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.ministries-home-lead {
  margin: 0 auto;
  font-size: 1.08rem;
  line-height: 1.7;
  color: #6b6560;
}

.ministry-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 2rem);
  align-items: stretch;
}

.ministry-card {
  background: #fff;
  border: 1px solid #e4ddd7;
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(36, 28, 58, 0.05);
  transition:
    transform 0.35s var(--cof-ease),
    box-shadow 0.35s var(--cof-ease),
    border-color 0.35s var(--cof-ease);
}

.ministry-card:hover {
  color: inherit;
  transform: translateY(-6px);
  border-color: rgba(154, 89, 253, 0.22);
  box-shadow: 0 26px 54px rgba(36, 28, 58, 0.12);
}

.ministry-card:focus-visible {
  outline: 2px solid var(--cof-purple);
  outline-offset: 4px;
}

.ministry-card-media {
  position: relative;
  border-radius: 0;
  overflow: hidden;
  margin-bottom: 0;
}

.ministry-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(20, 16, 36, 0.28) 100%);
  pointer-events: none;
}

.ministry-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--cof-ease);
}

.ministry-card:hover img {
  transform: scale(1.04);
}

.ministry-card-badge {
  position: absolute;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 1;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cof-purple-deep);
  font-family: var(--cof-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ministry-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.15rem 18px 28px;
}

.ministry-card h3 {
  color: #1f242e;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.45rem;
}

.ministry-card-time {
  margin: 0 0 0.75rem;
  color: var(--cof-ink);
  font-family: var(--cof-font);
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.4;
}

.ministry-card-desc {
  margin: 0 0 1.1rem;
  color: #6b6560;
  font-size: 0.94rem;
  line-height: 1.65;
  flex: 1;
}

.ministry-card-link {
  margin-top: auto;
  font-family: var(--cof-font);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--cof-purple-deep);
  transition: color 0.2s ease, transform 0.2s ease;
}

.ministry-card-link::after {
  content: " →";
}

.ministry-card:hover .ministry-card-link {
  color: var(--cof-purple);
}

.ministries-home-cta {
  text-align: center;
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
}

/* Ministries page */
.cof-ministries {
  --cof-max: 1240px;
  --ministries-expand-ease: var(--cof-ease);
  --ministries-expand-duration: 0.32s;
  --ministries-strip-h: clamp(170px, 30vw, 280px);
  --ministries-card-w: clamp(56px, 15vw, 78px);
  --ministries-expand-w: clamp(113px, 20vw, 187px);
}

.page-hero--ministries {
  background-color: #2c224d;
  background-image: none;
  min-height: 0;
  align-items: stretch;
  padding-top: clamp(3rem, 8vw, 5rem);
  padding-bottom: clamp(2rem, 4vw, 3rem);
  overflow: visible;
}

.ministries-hero-body {
  position: relative;
  z-index: 2;
  width: 100%;
}

.ministries-hero-body .section-inner {
  z-index: 2;
}

.page-hero--ministries::before {
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(44, 34, 77, 0.82) 0%,
    rgba(15, 15, 15, 0.68) 42%,
    rgba(15, 15, 15, 0.52) 100%
  );
}

.ministries-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: visible;
}

.ministries-hero-bg-cover-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.ministries-hero-bg-cover {
  position: absolute;
  inset: -32px;
  background-color: #2c224d;
  background-size: cover;
  background-position: center;
  filter: blur(28px);
  transform: scale(1.06);
  opacity: 0;
  transition: opacity 0.55s var(--cof-ease);
}

.ministries-hero-bg-cover.is-ready {
  opacity: 1;
}

.ministries-hero-bg-cover.is-swapping {
  opacity: 0.72;
}

.ministries-hero-bg-track {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: var(--ministries-strip-h);
  margin-top: clamp(1rem, 2.5vw, 1.75rem);
  padding: 0 clamp(0.35rem, 1.5vw, 1rem) 0;
  pointer-events: auto;
  overflow: visible;
}

.ministries-hero-bg-card {
  flex: 1 1 0;
  min-width: 0;
  max-width: var(--ministries-card-w);
  height: 100%;
  margin-left: -5px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 15, 15, 0.35);
  cursor: pointer;
  position: relative;
  z-index: 1;
  align-self: flex-end;
  display: flex;
  align-items: flex-end;
  line-height: 0;
  font-size: 0;
  transform: translateY(0);
  transform-origin: bottom center;
  transition:
    flex var(--ministries-expand-duration) var(--ministries-expand-ease),
    width var(--ministries-expand-duration) var(--ministries-expand-ease),
    max-width var(--ministries-expand-duration) var(--ministries-expand-ease),
    box-shadow var(--ministries-expand-duration) var(--ministries-expand-ease),
    border-color var(--ministries-expand-duration) var(--ministries-expand-ease),
    background var(--ministries-expand-duration) var(--ministries-expand-ease),
    z-index 0s linear calc(var(--ministries-expand-duration) * 0.2);
}

.ministries-hero-bg-card:first-child {
  margin-left: 0;
}

.ministries-hero-bg-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  border-radius: 10px;
  pointer-events: none;
  transition:
    width var(--ministries-expand-duration) var(--ministries-expand-ease),
    object-position var(--ministries-expand-duration) var(--ministries-expand-ease);
}

.ministries-hero-bg-card:hover,
.ministries-hero-bg-card.is-active {
  flex: 0 0 var(--expand-w, var(--ministries-expand-w));
  width: var(--expand-w, var(--ministries-expand-w));
  max-width: none;
  height: 100%;
  transform: translateY(0);
  z-index: 50;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.42);
  transition:
    flex var(--ministries-expand-duration) var(--ministries-expand-ease),
    width var(--ministries-expand-duration) var(--ministries-expand-ease),
    max-width var(--ministries-expand-duration) var(--ministries-expand-ease),
    box-shadow var(--ministries-expand-duration) var(--ministries-expand-ease),
    border-color var(--ministries-expand-duration) var(--ministries-expand-ease),
    background var(--ministries-expand-duration) var(--ministries-expand-ease),
    z-index 0s;
}

.ministries-hero-bg-card:hover img,
.ministries-hero-bg-card.is-active img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}

.page-hero--ministries h1 {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 0.75rem;
}

.page-hero--ministries p,
.page-hero--ministries__lead {
  max-width: 40rem;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  line-height: 1.65;
}

.page-hero--ministries__lead {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  .ministries-hero-bg-cover {
    transition: none;
  }

  .ministries-hero-bg-card {
    transition: none;
  }

  .ministries-hero-bg-card:hover,
  .ministries-hero-bg-card.is-active {
    flex: 0 0 var(--expand-w, var(--ministries-expand-w));
    width: var(--expand-w, var(--ministries-expand-w));
    height: 100%;
    transform: translateY(0);
  }

  .ministries-hero-bg-card:hover img,
  .ministries-hero-bg-card.is-active img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
  }
}

.ministries-page {
  padding: clamp(4rem, 8vw, 6rem) 0 clamp(4.5rem, 9vw, 6.5rem);
  background: #fff;
}

.ministries-page-intro {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto clamp(2.5rem, 5vw, 3.5rem);
}

.ministries-page-eyebrow {
  margin-bottom: 0.75rem;
}

.ministries-page-title {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  margin-bottom: 1rem;
}

.ministries-page-lead {
  margin: 0 auto;
  color: #6b6560;
  line-height: 1.7;
}

.ministries-page-filters {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  align-items: center;
  gap: 0.65rem;
  margin: 0 auto clamp(1.75rem, 4vw, 2.5rem);
  max-width: none;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0.15rem;
  scrollbar-width: none;
  padding: 0.4rem 0 0.5rem;
}

.ministries-page-filters::-webkit-scrollbar {
  display: none;
}

.ministries-page-filter {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(96, 71, 172, 0.15);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--cof-purple-deep);
  font-family: var(--cof-font);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s var(--cof-ease),
    color 0.2s var(--cof-ease),
    border-color 0.2s var(--cof-ease),
    box-shadow 0.2s var(--cof-ease),
    transform 0.2s var(--cof-ease);
}

.ministries-page-filter:hover {
  border-color: rgba(154, 89, 253, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(96, 71, 172, 0.14);
}

.ministries-page-filter:focus-visible {
  outline: 2px solid var(--cof-purple);
  outline-offset: 2px;
}

.ministries-page-filter.is-active {
  background: var(--cof-purple-deep);
  border-color: var(--cof-purple-deep);
  color: #fff;
}

.ministries-page-filter.is-active:hover {
  box-shadow: 0 8px 20px rgba(96, 71, 172, 0.24);
}

@media (min-width: 769px) {
  .ministries-page-filters {
    flex-wrap: wrap;
    justify-content: center;
    overflow: visible;
    max-width: 56rem;
    row-gap: 0.65rem;
    padding: 0.45rem 0.25rem 0.55rem;
  }

  .ministries-page-filter {
    scroll-snap-align: unset;
  }
}

.ministries-page-grid .ministry-card.is-filter-hidden {
  display: none;
}

.ministries-page-grid {
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.ministries-page-cta {
  text-align: center;
  margin: clamp(2.75rem, 5vw, 3.75rem) 0 0;
}

.cof-ministries .section-inner {
  padding-left: clamp(1.5rem, 4vw, 2rem);
  padding-right: clamp(1.5rem, 4vw, 2rem);
}

.cof-ministries .page-hero--ministries .section-inner {
  padding-left: clamp(1.75rem, 5vw, 3rem);
  padding-right: clamp(1.75rem, 5vw, 3rem);
  z-index: 2;
}

/* Pastor */
.pastor {
  background: #fff;
  padding: clamp(4.5rem, 9vw, 7rem) 0;
}

.pastor--interactive {
  background: var(--cof-cream);
}

.pastor--interactive .pastor-grid {
  grid-template-columns: 0.9fr 1fr;
}

.pastor--interactive .pastor-photo {
  order: -1;
  justify-self: start;
}

.pastor-intro {
  font-family: var(--cof-font);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--cof-purple-deep);
  margin-bottom: 1.25rem;
  max-width: 32rem;
}

.pastor-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.pastor-photo {
  justify-self: center;
}

.pastor-photo img {
  width: min(100%, 420px);
  border-radius: 15px;
  box-shadow: 0 24px 60px rgba(36, 28, 58, 0.14);
}

.pastor-bio .section-title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
}

.pastor-role {
  color: var(--cof-muted);
  font-weight: 600;
  margin-top: -0.5rem;
}

.pastor-cta {
  margin: 1.5rem 0 0;
}

.pastor--interactive .pastor-photo {
  width: min(100%, 420px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 24px 60px rgba(36, 28, 58, 0.14);
}

.pastor--interactive .pastor-photo img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  box-shadow: none;
  display: block;
  transition: opacity 0.35s var(--cof-ease);
}

.pastor--interactive .pastor-photo img.is-swapping {
  opacity: 0.35;
}

.pastor-leaders {
  display: flex;
  flex-wrap: nowrap;
  gap: clamp(0.75rem, 1.5vw, 1rem);
  overflow-x: auto;
  overflow-y: visible;
  padding: clamp(1.5rem, 3vw, 2rem) clamp(0.25rem, 1vw, 0.5rem) 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2rem);
  border-top: 1px solid rgba(96, 71, 172, 0.12);
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scroll-padding-inline: 0.5rem;
}

.pastor-leader-thumb {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: center;
  transition: transform 0.25s var(--cof-ease);
}

.pastor-leader-thumb__photo {
  padding: 4px;
  border: 3px solid transparent;
  border-radius: 999px;
  transition:
    border-color 0.25s var(--cof-ease),
    transform 0.25s var(--cof-ease);
}

.pastor-leader-thumb img {
  display: block;
  width: clamp(68px, 10vw, 80px);
  height: clamp(68px, 10vw, 80px);
  border-radius: 999px;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(36, 28, 58, 0.14);
  transition: transform 0.25s var(--cof-ease);
}

.pastor-leader-thumb__title {
  display: block;
  max-width: 5.75rem;
  font-family: var(--cof-font);
  font-size: 0.68rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  color: var(--cof-muted);
}

.pastor-leader-thumb:hover,
.pastor-leader-thumb:focus-visible {
  transform: translateY(-4px);
}

.pastor-leader-thumb:hover .pastor-leader-thumb__photo,
.pastor-leader-thumb:focus-visible .pastor-leader-thumb__photo {
  transform: scale(1.04);
}

.pastor-leader-thumb:hover img,
.pastor-leader-thumb:focus-visible img {
  transform: scale(1.08);
}

.pastor-leader-thumb.is-active {
  transform: translateY(-2px);
}

.pastor-leader-thumb.is-active .pastor-leader-thumb__photo {
  border-color: var(--cof-purple);
}

.pastor-leader-thumb.is-active img {
  transform: scale(1.04);
}

.pastor-leader-thumb.is-active .pastor-leader-thumb__title {
  color: var(--cof-purple-deep);
}

.pastor-leader-thumb:focus-visible {
  outline: 3px solid var(--cof-purple);
  outline-offset: 3px;
}

/* Prayer CTA */
.prayer-cta {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(135deg, var(--cof-purple-deep) 0%, #4a3588 55%, #3b2d6e 100%);
  color: #fff;
  text-align: center;
  padding: clamp(5rem, 10vw, 7rem) 1.5rem;
}

.prayer-cta::before {
  content: "";
  position: absolute;
  inset: -35% -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 46% 58% at 16% 42%, rgba(255, 255, 255, 0.34) 0%, transparent 68%),
    radial-gradient(ellipse 42% 52% at 84% 24%, rgba(255, 255, 255, 0.26) 0%, transparent 64%),
    radial-gradient(ellipse 40% 50% at 58% 92%, rgba(255, 255, 255, 0.2) 0%, transparent 62%);
  filter: blur(64px);
  opacity: 0.9;
}

.prayer-cta > * {
  position: relative;
  z-index: 1;
}

.prayer-cta-eyebrow {
  font-family: var(--cof-font);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cof-gold);
  margin: 0 0 0.75rem;
}

.prayer-cta h2 {
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.5rem;
}

.prayer-cta p {
  color: rgba(255, 255, 255, 0.88);
  margin: 0 auto 1.75rem;
  max-width: 36rem;
  font-size: 1.08rem;
  line-height: 1.7;
}

.prayer-cta .btn {
  background: #fff;
  color: var(--cof-purple-deep) !important;
}

.prayer-cta .btn:hover {
  background: var(--cof-cream);
}

/* Page hero (inner) */
.page-hero {
  background: var(--cof-charcoal);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
  text-align: center;
}

.page-hero h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
}

.page-hero p {
  color: #ccc;
  max-width: 36rem;
  margin: 0 auto;
}

.page-hero--image {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: center / cover no-repeat;
}

.page-hero--image::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 15, 15, 0.55);
}

.page-hero--image .section-inner {
  position: relative;
  z-index: 1;
}

.page-hero--image.page-hero--ministries {
  align-items: stretch;
  justify-content: flex-start;
  min-height: 0;
  background-image: none;
}

@media (min-width: 769px) {
  .page-hero--image.page-hero--ministries {
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(2.25rem, 4vw, 3.25rem);
    background-image: none;
  }

  .ministries-hero-body .ministries-hero-bg-track {
    margin-top: clamp(1.25rem, 2vw, 1.5rem);
  }
}

.page-hero--worship {
  background-color: #2c224d;
  background-image: url("../images/worship-hero.webp");
  align-items: flex-start;
  min-height: clamp(520px, 62vw, 760px);
  padding: clamp(2.25rem, 5vw, 3.25rem) 0 clamp(3.5rem, 8vw, 5rem);
}

.page-hero--worship::before {
  background: linear-gradient(140deg, rgba(44, 34, 77, 0.9) 0%, rgba(82, 56, 29, 0.9) 100%);
}

.page-hero--worship .section-inner {
  width: 100%;
  max-width: var(--cof-max);
  padding-left: clamp(1.75rem, 5vw, 3rem);
  padding-right: clamp(1.75rem, 5vw, 3rem);
  isolation: isolate;
}

.page-hero--worship .page-hero__title {
  position: relative;
  z-index: 1;
  width: 75vw;
  margin: 0 auto 1rem;
  white-space: nowrap;
  font-size: clamp(3rem, 10.8vw, 8rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  color: #ffb665;
  text-shadow: 0 0 26px rgba(0, 0, 0, 0.55);
  will-change: transform, opacity;
}

.page-hero--worship .page-hero__title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(28px);
  animation: hero-fade-in-up 0.75s var(--cof-ease) forwards;
}

.page-hero--worship .page-hero__title span:nth-child(1) {
  animation-delay: 0.2s;
}

.page-hero--worship .page-hero__title span:nth-child(2) {
  animation-delay: 0.28s;
}

.page-hero--worship .page-hero__title span:nth-child(3) {
  animation-delay: 0.36s;
}

.page-hero--worship .page-hero__photo {
  position: relative;
  z-index: 2;
  display: block;
  width: 90vw;
  max-width: none;
  margin: 0.25rem calc(50% - 45vw) 0;
  border-radius: 15px;
  object-fit: cover;
  aspect-ratio: 1024 / 292;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  opacity: 0;
  transform: translateY(24px);
  animation: hero-fade-in-up 0.85s var(--cof-ease) 0.42s forwards;
  will-change: transform;
}

.page-hero--worship .page-hero__under-photo {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: clamp(1rem, 3vw, 2rem);
  width: 90vw;
  margin: -5rem calc(50% - 45vw) 0;
  padding-top: 5rem;
  will-change: transform;
}

.page-hero--worship .page-hero__lead {
  position: relative;
  z-index: 1;
  color: rgba(255, 255, 255, 0.92);
  width: 40vw;
  max-width: none;
  margin: 0;
  text-align: left;
  font-size: clamp(1rem, 2.1vw, 1.2rem);
  line-height: 1.65;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  will-change: transform, opacity;
}

/* Scroll-driven: keep tucked behind the photo until JS reveals it. */
.page-hero--worship[data-hero-parallax] .page-hero__lead {
  opacity: 0;
  transform: translateY(-5rem);
  animation: none;
}

.page-hero--worship .ig-feed {
  position: relative;
  z-index: 2;
  width: 90vw;
  margin: clamp(2rem, 5vw, 3rem) calc(50% - 45vw) 0;
  padding-top: clamp(1.25rem, 3vw, 1.75rem);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0;
  transform: translateY(18px);
  animation: hero-fade-in-up 0.85s var(--cof-ease) 0.7s forwards;
}

.page-hero--worship .ig-feed--cta {
  margin-bottom: 0;
}

.page-hero--worship .ig-feed--cta .ig-feed__header {
  margin-bottom: 0;
}

.page-hero--worship .ig-feed--cta + .ig-feed {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  animation-delay: 0.85s;
}

.page-hero--worship .ig-feed__caption {
  color: #fff;
}

.page-hero--worship .ig-feed__item {
  color: #fff;
}

.ig-feed__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  text-align: left;
}

.ig-feed__intro {
  min-width: 0;
  text-align: left;
}

.ig-feed__eyebrow {
  margin: 0 0 0.3rem;
  font-family: var(--cof-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: left;
  color: rgba(255, 182, 101, 0.9);
}

.page-hero .ig-feed__intro,
.page-hero .ig-feed__eyebrow,
.page-hero .ig-feed__title {
  text-align: left;
}

.page-hero p.ig-feed__eyebrow {
  max-width: none;
  width: 100%;
  margin: 0 0 0.3rem;
  text-align: left;
}

.ig-feed__title {
  margin: 0;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  text-align: left;
}

.ig-feed__follow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  border: 1px solid rgba(255, 182, 101, 0.55);
  border-radius: 999px;
  color: #ffb665;
  font-family: var(--cof-font);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.25s var(--cof-ease), color 0.25s var(--cof-ease), border-color 0.25s var(--cof-ease);
}

.ig-feed__follow:hover {
  background: rgba(255, 182, 101, 0.14);
  border-color: #ffb665;
  color: #ffd19a;
}

.ig-feed__status {
  margin: 0 0 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
}

.ig-feed__status.is-error {
  color: #ffc9a8;
}

.ig-feed__track {
  position: relative;
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  padding: 0.15rem 0.1rem 0.75rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.ig-feed__item {
  flex: 0 0 auto;
  width: clamp(148px, 22vw, 180px);
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 15px;
  cursor: pointer;
  scroll-snap-align: start;
  text-align: left;
  color: #fff;
  transition: transform 0.25s var(--cof-ease);
}

.ig-feed__item:hover,
.ig-feed__item:focus-visible {
  transform: translateY(-4px);
}

.ig-feed__item:focus-visible {
  outline: 2px solid #ffb665;
  outline-offset: 3px;
}

.ig-feed__media {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.ig-feed__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--cof-ease);
}

.ig-feed__item:hover img,
.ig-feed__item:focus-visible img {
  transform: scale(1.05);
}

.ig-feed__badge {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(15, 12, 24, 0.72);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ig-feed__caption {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  margin-top: 0.55rem;
  color: #fff;
  font-family: var(--cof-font);
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
}

.ig-feed__fallback {
  margin: 0.25rem 0 0.5rem;
}

.ig-lightbox {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(12, 10, 20, 0.82);
  backdrop-filter: blur(8px);
}

.ig-lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
}

.ig-lightbox__panel {
  width: min(100%, 520px);
  background: #1a1528;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}

.ig-lightbox__image {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.ig-lightbox__meta {
  padding: 1.15rem 1.25rem 1.35rem;
}

.ig-lightbox__caption {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.55;
  font-size: 0.95rem;
}

.ig-lightbox__link {
  width: 100%;
  justify-content: center;
}

.page-hero--worship .page-hero__eyebrow {
  position: relative;
  z-index: 3;
  width: fit-content;
  max-width: 40vw;
  margin: 0;
  text-align: right;
  font-size: 1.7rem;
  color: var(--cof-purple-soft);
  opacity: 0;
  transform: translateY(24px);
  animation: hero-fade-in-up 0.85s var(--cof-ease) 0.72s forwards;
  will-change: transform;
}

@keyframes hero-fade-in-up {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero--worship .page-hero__title span,
  .page-hero--worship .page-hero__photo,
  .page-hero--worship .page-hero__under-photo,
  .page-hero--worship .page-hero__lead,
  .page-hero--worship .page-hero__eyebrow,
  .page-hero--worship .ig-feed,
  .page-hero--worship[data-hero-parallax] .page-hero__lead {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .page-hero--worship .section-inner {
    isolation: auto;
  }

  .page-hero--worship .page-hero__title,
  .page-hero--worship .page-hero__photo,
  .page-hero--worship .page-hero__under-photo {
    will-change: auto;
  }

  .page-hero--worship .page-hero__lead {
    will-change: auto;
  }
}

/* Worship page */
.cof-worship main > .section:first-of-type .eyebrow,
.cof-worship main > .section:first-of-type .section-title {
  text-align: right;
}

.cof-worship .section.worship-services {
  background: #fff;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.cof-worship .section.worship-services .section-title {
  background-image: var(--cof-featured-text-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.worship-services-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.worship-services-intro-copy .eyebrow {
  margin-bottom: 0.75rem;
}

.worship-services-intro-copy .section-title {
  margin-bottom: 0;
}

.worship-services-calendar {
  flex-shrink: 0;
  transform-origin: center center;
  animation: calendar-giggle 7s var(--cof-ease) infinite;
}

.worship-services-calendar:hover {
  animation-play-state: paused;
}

@keyframes calendar-giggle {
  0%,
  91%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

  92% {
    transform: translateY(0) rotate(-6deg);
  }

  93% {
    transform: translateY(0) rotate(6deg);
  }

  94% {
    transform: translateY(0) rotate(-5deg);
  }

  95% {
    transform: translateY(0) rotate(5deg);
  }

  96% {
    transform: translateY(0) rotate(-3deg);
  }

  97% {
    transform: translateY(0) rotate(3deg);
  }

  98%,
  99% {
    transform: translateY(0) rotate(0deg);
  }
}

.cof-worship .section.worship-sunday {
  position: relative;
  overflow: hidden;
  background: #fff;
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.worship-sunday-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.worship-sunday-bg-cover-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.worship-sunday-bg-cover-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(18, 14, 31, 0.42);
}

.worship-sunday-bg-cover {
  position: absolute;
  inset: -32px;
  background-color: #2c224d;
  background-size: cover;
  background-position: center;
  filter: blur(28px);
  transform: scale(1.06);
  opacity: 0;
  z-index: 0;
  transition: opacity 1.15s var(--cof-ease);
}

.worship-sunday-bg-cover.is-visible {
  opacity: 1;
  z-index: 1;
}

.worship-sunday-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}

.worship-sunday-copy {
  color: #fff;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border-radius: 18px;
  background: rgba(18, 14, 31, 0.62);
  box-shadow: 0 24px 60px rgba(8, 6, 16, 0.28);
}

.worship-sunday-eyebrow {
  text-transform: lowercase;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
}

.worship-sunday-title {
  margin-bottom: 1rem;
  color: #fff;
}

.worship-sunday-lead {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(1.02rem, 1.7vw, 1.15rem);
  line-height: 1.75;
}

.worship-sunday-highlights {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  display: grid;
  gap: 0.95rem;
}

.worship-sunday-highlights li {
  position: relative;
  padding-left: 1.35rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
}

.worship-sunday-highlights li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}

.worship-sunday-highlights strong {
  color: #fff;
}

.worship-sunday-graphics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 1rem;
}

.worship-sunday-graphic {
  margin: 0;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(36, 28, 58, 0.12);
  transition: box-shadow 0.25s var(--cof-ease), transform 0.25s var(--cof-ease);
}

.worship-sunday-graphic.is-active {
  box-shadow:
    0 0 0 3px var(--cof-purple),
    0 20px 50px rgba(36, 28, 58, 0.16);
}

.worship-sunday-graphic:focus-visible {
  outline: 2px solid var(--cof-purple);
  outline-offset: 3px;
}

.worship-sunday-graphic--main {
  grid-column: 1 / -1;
}

.worship-sunday-graphic img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.worship-sunday-graphic--main img {
  aspect-ratio: 16 / 10;
  min-height: clamp(180px, 28vw, 260px);
}

.worship-sunday-graphic--secondary img,
.worship-sunday-graphic--tertiary img {
  aspect-ratio: 4 / 5;
  min-height: clamp(160px, 32vw, 220px);
}

.cof-worship .services-grid {
  gap: clamp(1.75rem, 3vw, 2.75rem);
  margin-top: clamp(2.75rem, 5vw, 3.75rem);
}

.cof-worship .service-card {
  border-radius: 14px;
  border-color: rgba(0, 0, 0, 0.05);
  box-shadow: 0 16px 40px rgba(44, 34, 77, 0.07);
}

.cof-worship .service-card:hover {
  border-color: rgba(154, 89, 253, 0.24);
  box-shadow: 0 28px 58px rgba(44, 34, 77, 0.14);
}

.cof-worship .service-card img {
  height: clamp(190px, 18vw, 220px);
}

.cof-worship .service-card-body {
  padding: 1.75rem 1.6rem 2rem;
}

.cof-worship .service-card h3 {
  margin-bottom: 0.65rem;
  line-height: 1.35;
}

.cof-worship .service-card p {
  line-height: 1.65;
}

.cof-worship .involved {
  background: #f4f4f4;
  padding: clamp(4.5rem, 9vw, 6.5rem) 0;
}

.cof-worship .involved-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2.5rem, 5vw, 4.75rem);
  align-items: start;
}

.cof-worship .involved-main,
.cof-worship .involved-side {
  display: flex;
  flex-direction: column;
  gap: clamp(1.5rem, 3vw, 2rem);
}

.cof-worship .involved-intro {
  max-width: 46rem;
}

.cof-worship .involved-details {
  max-width: none;
}

.cof-worship .involved-visual--circle {
  width: 100%;
}

.cof-worship .involved-visual--circle img {
  width: 100%;
  aspect-ratio: 1024 / 682;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.08);
}

.cof-worship .involved-visual[data-scroll-slide] {
  overflow: hidden;
}

.cof-worship .involved-visual--circle[data-scroll-slide] {
  border-radius: 14px;
}

.cof-worship .involved-visual--baptism[data-scroll-slide] {
  border-radius: 18px;
}

.cof-worship .involved-visual--circle[data-scroll-slide] img {
  width: calc(100% + 56px);
  max-width: none;
  transform: translate3d(calc(var(--scroll-slide-x, -40px) * 0.4), var(--scroll-slide-y, 0px), 0);
  will-change: transform;
}

.cof-worship .involved-visual--baptism img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.1);
}

.cof-worship .involved-visual--baptism[data-scroll-slide] img {
  width: calc(100% + 72px);
  max-width: none;
  transform: translate3d(var(--scroll-slide-x, -40px), calc(var(--scroll-slide-y, 0px) * -0.85), 0);
  will-change: transform;
}

.cof-worship .involved-eyebrow {
  margin-bottom: 0.65rem;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.cof-worship .involved-title {
  font-size: clamp(2.75rem, 5.5vw, 3.75rem);
  line-height: 1.05;
  margin-bottom: 1.35rem;
  color: var(--cof-ink);
}

.cof-worship .involved-text {
  color: #5f5f5f;
  font-size: 1rem;
  line-height: 1.75;
  margin: 0 0 1rem;
  max-width: none;
}

.cof-worship .involved-list {
  margin: 0 0 1.25rem;
  padding-left: 1.35rem;
  max-width: none;
  color: #5f5f5f;
  font-size: 1rem;
  line-height: 1.75;
}

.cof-worship .involved-list li + li {
  margin-top: 0.35rem;
}

.cof-worship .involved-list strong {
  color: var(--cof-ink);
  font-weight: 700;
}

.cof-worship .involved-list a {
  color: var(--cof-purple-deep);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.cof-worship .involved-list a:hover {
  color: var(--cof-purple);
}

.cof-worship .involved-cta {
  margin-top: 1.35rem;
  padding: 0.9rem 1.85rem;
  border-radius: 12px;
  background: var(--cof-purple);
}

.cof-worship .involved-cta:hover {
  background: var(--cof-purple-deep);
}

@media (max-width: 900px) {
  .cof-worship .involved-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .cof-worship .involved-intro,
  .cof-worship .involved-details,
  .cof-worship .involved-text,
  .cof-worship .involved-list {
    max-width: none;
  }

  .cof-worship .involved-visual--circle {
    width: 100%;
  }

  .cof-worship .involved-visual--baptism img {
    aspect-ratio: 16 / 11;
    max-height: 420px;
  }
}

/* About */
.about-story {
  background: #fff;
}

.about-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(3.5rem, 8vw, 6rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

.about-intro-visual {
  order: -1;
}

.about-intro-visual[data-scroll-scale] {
  transform: scale(var(--scroll-scale, 1));
  transform-origin: center top;
  will-change: transform;
}

.about-intro-visual[data-scroll-scale] img {
  box-shadow: 0 24px 60px rgba(36, 28, 58, calc(0.12 * var(--scroll-scale, 1)));
}

.about-intro-copy .eyebrow {
  text-transform: lowercase;
}

.about-intro-title {
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #1f242e;
  margin-bottom: 1.25rem;
  max-width: 16ch;
}

.about-intro-lead {
  font-family: var(--cof-font);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.55;
  color: #1f242e;
  margin-bottom: 1rem;
}

.about-intro-copy p {
  color: var(--cof-muted);
  line-height: 1.75;
}

.about-intro-visual img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  min-height: clamp(380px, 42vw, 540px);
  box-shadow: 0 24px 60px rgba(36, 28, 58, 0.12);
}

.about-history-panel {
  background: var(--cof-cream);
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.about-history-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.about-history-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  grid-template-areas:
    "copy stack"
    "founder-b founder-c"
    "founders-text founders-text";
  gap: clamp(2rem, 4vw, 3.5rem) clamp(1rem, 3vw, 1.75rem);
  align-items: start;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.about-history-copy {
  grid-area: copy;
}

.about-history-copy .eyebrow {
  text-transform: none;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
}

.about-history-copy p {
  color: #4a4540;
  line-height: 1.75;
}

.about-history-copy__more {
  display: grid;
  gap: 1rem;
}

.about-history-read-more {
  margin-top: 0.85rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cof-purple-deep);
  font-family: var(--cof-font);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.about-history-read-more:hover {
  color: var(--cof-purple);
}

.about-history-read-more:focus-visible {
  outline: 2px solid var(--cof-purple);
  outline-offset: 3px;
}

@media (min-width: 769px) {
  .about-history-read-more {
    display: none;
  }
}

.history-photo-stack {
  margin: 0;
}

@media (min-width: 769px) {
  .history-photo-stack[data-scroll-shift] .history-photo-stack__card--a {
    transform: translate3d(0, var(--scroll-shift-y, 0px), 0);
    will-change: transform;
  }
}

.history-photo-stack__hint {
  display: none;
}

.history-photo-stack__card {
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  cursor: default;
  text-align: left;
}

.history-photo-stack__photo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
  box-shadow: 0 20px 50px rgba(36, 28, 58, 0.1);
  pointer-events: none;
}

.history-photo-stack__card--a {
  grid-area: stack;
}

.history-photo-stack__card--a .history-photo-stack__photo {
  min-height: clamp(400px, 48vw, 580px);
  object-position: center top;
}

.history-photo-stack__card--b {
  grid-area: founder-b;
}

.history-photo-stack__card--c {
  grid-area: founder-c;
}

.history-photo-stack__card--b .history-photo-stack__photo,
.history-photo-stack__card--c .history-photo-stack__photo {
  aspect-ratio: 16 / 10;
  min-height: 0;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(36, 28, 58, 0.1);
}

@media (min-width: 769px) {
  .history-photo-stack {
    display: contents;
  }
}

.about-history-visual {
  overflow: hidden;
  border-radius: 15px;
}

.about-history-visual img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  object-position: center top;
  min-height: clamp(400px, 48vw, 580px);
  box-shadow: 0 20px 50px rgba(36, 28, 58, 0.1);
}

.founders-block {
  grid-area: founders-text;
  max-width: none;
  margin: 0;
  padding-top: clamp(0.5rem, 2vw, 1rem);
  border-top: 1px solid rgba(96, 71, 172, 0.12);
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .history-photo-stack__card {
    transition: none;
  }

  .history-photo-stack__card.is-shuffling.is-front {
    animation: none;
  }
}

.history-block {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 3.5rem;
}

.history-block--reverse {
  grid-template-columns: 1.1fr 0.9fr;
}

.history-block--reverse .history-visual {
  order: 2;
}

.history-visual img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  max-height: 520px;
}

.history-visual--document img {
  max-height: none;
  min-height: clamp(360px, 50vw, 560px);
  object-fit: cover;
  object-position: center top;
}

.history-visual--worship img {
  min-height: clamp(380px, 52vw, 620px);
  max-height: none;
  object-fit: cover;
}

.history-copy .eyebrow {
  text-transform: lowercase;
}

.founders-block p {
  color: var(--cof-muted);
  line-height: 1.75;
}

.pastor-quote {
  font-family: var(--cof-font);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
  color: #353535;
}

.page-hero--about {
  background-image: url("../images/about-hero.webp");
  min-height: clamp(400px, 40vw, 640px);
}

.page-hero--about::before {
  background: rgba(15, 15, 15, 0.52);
}

.page-hero--about h1 {
  position: relative;
  display: inline-block;
  font-size: clamp(3.25rem, 14.4vw, 11rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  margin-bottom: 0.35em;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 26px rgba(0, 0, 0, 0.34),
    0 22px 44px rgba(0, 0, 0, 0.26);
  transform: translate3d(0, 0, 0);
  animation: about-hero-welcome-depth 7s var(--cof-ease) infinite;
  will-change: transform, text-shadow;
}

@keyframes about-hero-welcome-depth {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.16),
      0 10px 26px rgba(0, 0, 0, 0.34),
      0 22px 44px rgba(0, 0, 0, 0.26);
  }

  50% {
    transform: translate3d(0, -5px, 0) scale(1.015);
    text-shadow:
      0 2px 0 rgba(255, 255, 255, 0.22),
      0 16px 36px rgba(0, 0, 0, 0.42),
      0 32px 64px rgba(0, 0, 0, 0.3);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-hero--about h1 {
    animation: none;
    will-change: auto;
  }
}

.page-hero--about p {
  font-size: clamp(1.05rem, 2.4vw, 1.45rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 42rem;
}

/* Leaders */
.page-hero--leaders {
  background-image: url("../images/pastors.webp");
  min-height: clamp(360px, 38vw, 560px);
}

.page-hero--leaders::before {
  background: rgba(15, 15, 15, 0.58);
}

.page-hero--leaders .eyebrow {
  color: var(--cof-gold);
  margin-bottom: 0.75rem;
}

.page-hero--leaders h1 {
  font-size: clamp(2.5rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
}

.page-hero--leaders p {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  color: rgba(255, 255, 255, 0.9);
  max-width: 40rem;
  margin: 0;
}

.cof-leaders {
  --cof-max: 1240px;
}

.cof-leaders .section-inner {
  padding-left: clamp(1.75rem, 5vw, 3rem);
  padding-right: clamp(1.75rem, 5vw, 3rem);
}

.leaders-intro {
  background: #fff;
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.leaders-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.leaders-intro-lead {
  font-family: var(--cof-font);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
  line-height: 1.55;
  color: #1f242e;
  margin-bottom: 1rem;
}

.leaders-intro-copy p {
  color: var(--cof-muted);
  line-height: 1.75;
}

.leaders-intro-visual img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(36, 28, 58, 0.12);
}

.pastor--featured {
  background: var(--cof-cream);
}

.pastor--featured .pastor-photo img {
  width: min(100%, 480px);
}

.pastor--featured .pastor-bio p:last-child {
  color: var(--cof-muted);
  line-height: 1.75;
  margin-top: 1.25rem;
}

.leaders-connect {
  background: #fff;
  padding: clamp(3.5rem, 8vw, 6rem) 0;
}

.leaders-connect-header {
  max-width: 42rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.leaders-connect-header p:last-child {
  color: var(--cof-muted);
  line-height: 1.75;
  margin-top: 0.75rem;
}

.leaders-connect-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.25rem, 2.5vw, 1.75rem);
}

.leaders-connect-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  min-height: 100%;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--cof-cream);
  border: 1px solid rgba(96, 71, 172, 0.08);
  border-radius: 15px;
  box-shadow: 0 16px 40px rgba(36, 28, 58, 0.08);
}

.leaders-connect-card__eyebrow {
  margin: 0;
  font-family: var(--cof-font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cof-purple);
}

.leaders-connect-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  color: var(--cof-purple-deep);
}

.leaders-connect-card p {
  margin: 0 0 0.5rem;
  color: var(--cof-muted);
  line-height: 1.7;
  flex: 1;
}

.leaders-connect-card .btn {
  margin-top: auto;
}

.leaders-connect-card .btn-outline {
  background: transparent;
  border: 1px solid var(--cof-purple-deep);
  color: var(--cof-purple-deep) !important;
}

.leaders-connect-card .btn-outline:hover {
  background: rgba(96, 71, 172, 0.08);
  border-color: var(--cof-purple);
  color: var(--cof-purple) !important;
}

.leaders-connect-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.5rem, 3vw, 2rem);
  background: var(--cof-dark);
  border-radius: 15px;
  color: #cecece;
}

.leaders-connect-bar__item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: min(100%, 16rem);
}

.leaders-connect-bar__label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #999;
}

.leaders-connect-bar a {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
}

.leaders-connect-bar a:hover {
  color: var(--cof-gold);
}

.leaders-connect-bar__cta {
  margin-left: auto;
}

@media (max-width: 768px) {
  .leaders-intro-grid {
    grid-template-columns: 1fr;
  }

  .leaders-intro-visual {
    order: -1;
  }

  .leaders-connect-grid {
    grid-template-columns: 1fr;
  }

  .leaders-connect-bar__cta {
    margin-left: 0;
    width: 100%;
  }

  .pastor-grid {
    grid-template-columns: 1fr;
  }

  .pastor-photo {
    order: -1;
  }
}

.about-history {
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
}

.cof-about .about-story + .family-banner {
  margin-top: 0;
}

.cof-about {
  --cof-max: 1240px;
}

.cof-about .section-inner {
  padding-left: clamp(1.75rem, 5vw, 3rem);
  padding-right: clamp(1.75rem, 5vw, 3rem);
}

.cof-about .page-hero--about .section-inner {
  padding-left: clamp(1.75rem, 5vw, 3rem);
  padding-right: clamp(1.75rem, 5vw, 3rem);
}

.cof-about .about-intro {
  padding-top: clamp(3.5rem, 8vw, 6rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.cof-about .about-history-panel {
  padding-top: clamp(3.5rem, 8vw, 5.5rem);
  padding-bottom: clamp(3.5rem, 8vw, 5.5rem);
}

.cof-about .family-banner {
  padding: clamp(3rem, 7vw, 4.5rem) clamp(1.75rem, 5vw, 3rem);
}

.cof-about .pastor-grid {
  padding-top: clamp(1rem, 2vw, 1.5rem);
}

.family-gallery {
  margin: 0;
  gap: clamp(0.75rem, 1.5vw, 1rem);
}

.family-gallery-carousel {
  margin-top: clamp(2rem, 4vw, 2.75rem);
  overflow-x: clip;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.family-gallery-carousel .family-gallery {
  display: block;
  position: relative;
  overflow: visible;
  max-width: 980px;
  margin: 0 auto;
  min-height: clamp(240px, 62vw, 320px);
  padding: clamp(0.25rem, 1.5vw, 0.5rem) 0 0;
}

.family-gallery__hint {
  display: block;
  margin: 0.85rem auto 0;
  max-width: 36rem;
  font-size: 0.82rem;
  color: var(--cof-muted);
  letter-spacing: 0.02em;
}

.family-gallery__card {
  position: absolute;
  padding: 0;
  margin: 0;
  border: 2px solid #fff;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(36, 28, 58, 0.16);
  z-index: 1;
  width: var(--gallery-width, 36%);
  aspect-ratio: 3 / 4;
  min-height: 0;
  transform: rotate(var(--gallery-rotate, 0deg));
  transition:
    transform 0.5s var(--cof-ease),
    box-shadow 0.5s var(--cof-ease),
    z-index 0s;
}

.family-gallery__card:focus-visible {
  outline: 3px solid var(--cof-purple);
  outline-offset: 3px;
}

.family-gallery__photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  pointer-events: none;
  border-radius: 10px;
}

.family-gallery__card--a {
  --gallery-rotate: -9deg;
  --gallery-width: 34%;
  left: 1%;
  bottom: 4%;
  z-index: 1;
}

.family-gallery__card--b {
  --gallery-rotate: 3deg;
  --gallery-width: 42%;
  left: 24%;
  top: 6%;
  z-index: 3;
}

.family-gallery__card--c {
  --gallery-rotate: -5deg;
  --gallery-width: 32%;
  right: 10%;
  top: 0;
  z-index: 2;
}

.family-gallery__card--d {
  --gallery-rotate: 8deg;
  --gallery-width: 34%;
  right: 2%;
  bottom: 2%;
  z-index: 1;
}

.family-gallery__card--a .family-gallery__photo {
  object-position: center 35%;
}

.family-gallery__card--b .family-gallery__photo {
  object-position: center top;
}

.family-gallery__card--c .family-gallery__photo {
  object-position: center 20%;
}

.family-gallery__card--d .family-gallery__photo {
  object-position: center 30%;
}

.family-gallery__card.is-front {
  z-index: 5;
  box-shadow: 0 14px 32px rgba(96, 71, 172, 0.28);
}

.family-gallery__card--a.is-front {
  transform: rotate(-9deg) scale(1.06) translateY(-4px);
}

.family-gallery__card--b.is-front {
  transform: rotate(3deg) scale(1.06) translateY(-4px);
}

.family-gallery__card--c.is-front {
  transform: rotate(-5deg) scale(1.06) translateY(-4px);
}

.family-gallery__card--d.is-front {
  transform: rotate(8deg) scale(1.06) translateY(-4px);
}

.family-gallery__card:not(.is-front):hover,
.family-gallery__card:not(.is-front):focus-visible,
.family-gallery__card:not(.is-front):active {
  transform: rotate(var(--gallery-rotate, 0deg)) scale(1.03) translateY(-3px);
  box-shadow: 0 12px 28px rgba(36, 28, 58, 0.22);
  z-index: 4;
}

.family-gallery__card.is-shuffling.is-front {
  animation: family-gallery-shuffle 0.65s var(--cof-ease);
}

@media (min-width: 769px) {
  .family-gallery-carousel .family-gallery {
    min-height: clamp(440px, 48vw, 560px);
    padding: clamp(0.5rem, 2vw, 1rem) 0 0;
  }

  .family-gallery__card {
    border-width: 3px;
    border-radius: 15px;
    box-shadow: 0 10px 28px rgba(36, 28, 58, 0.16);
  }

  .family-gallery__photo {
    border-radius: 12px;
  }

  .family-gallery__hint {
    margin: 1rem auto 0;
    font-size: 0.88rem;
  }

  .family-gallery__card.is-front {
    box-shadow: 0 18px 40px rgba(96, 71, 172, 0.28);
  }

  .family-gallery__card--a.is-front {
    transform: rotate(-9deg) scale(1.06) translateY(-6px);
  }

  .family-gallery__card--b.is-front {
    transform: rotate(3deg) scale(1.06) translateY(-6px);
  }

  .family-gallery__card--c.is-front {
    transform: rotate(-5deg) scale(1.06) translateY(-6px);
  }

  .family-gallery__card--d.is-front {
    transform: rotate(8deg) scale(1.06) translateY(-6px);
  }

  .family-gallery__card:not(.is-front):hover,
  .family-gallery__card:not(.is-front):focus-visible {
    transform: rotate(var(--gallery-rotate, 0deg)) scale(1.03) translateY(-4px);
    box-shadow: 0 14px 32px rgba(36, 28, 58, 0.22);
  }
}

@keyframes family-gallery-shuffle {
  0% {
    transform: rotate(var(--gallery-rotate, 0deg)) scale(1);
  }

  35% {
    transform: rotate(calc(var(--gallery-rotate, 0deg) - 5deg)) scale(1.1) translateY(-10px);
  }

  70% {
    transform: rotate(calc(var(--gallery-rotate, 0deg) + 3deg)) scale(1.07) translateY(-4px);
  }

  100% {
    transform: rotate(var(--gallery-rotate, 0deg)) scale(1.06) translateY(-6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .family-gallery__card {
    transition: none;
  }

  .family-gallery__card.is-shuffling.is-front {
    animation: none;
  }
}

.family-banner {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
}

.family-banner .eyebrow {
  text-transform: lowercase;
}

.family-banner p {
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
  color: var(--cof-muted);
  line-height: 1.65;
}

.family-banner h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 0.75rem;
}

/* Worship services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border-radius: 4px;
  box-shadow: 0 10px 30px rgba(36, 28, 58, 0.05);
  transition:
    transform 0.35s var(--cof-ease),
    box-shadow 0.35s var(--cof-ease),
    border-color 0.35s var(--cof-ease);
}

a.service-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.service-card:focus-visible {
  outline: 2px solid var(--cof-purple);
  outline-offset: 4px;
}

.service-card:hover,
a.service-card:hover {
  color: inherit;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(154, 89, 253, 0.22);
  box-shadow: 0 26px 54px rgba(36, 28, 58, 0.12);
}

.service-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--cof-ease);
}

.service-card:hover img {
  transform: scale(1.04);
}

.service-card-body {
  padding: 1.25rem;
}

.service-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
  transition: color 0.25s ease;
}

.service-card:hover h3 {
  color: var(--cof-purple-deep);
}

.service-card p {
  margin: 0;
  color: var(--cof-muted);
  font-size: 0.92rem;
}

.involved {
  background: var(--cof-cream);
}

.involved-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.involved-visual img {
  width: 100%;
  border-radius: 4px;
  max-height: 420px;
  object-fit: cover;
}

/* Contact */
.cof-contact {
  --cof-max: 1180px;
  overflow-x: clip;
}

.cof-contact .section-inner {
  width: 100%;
  max-width: var(--cof-max);
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}

.contact-hero {
  background: #f4f0ea;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.contact-hero h1 {
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #2c2c2c;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.contact-hero__lead {
  margin: 0 auto;
  max-width: 34rem;
  color: #9f9790;
  font-size: clamp(1rem, 2vw, 1.15rem);
}

/* Legal pages (Privacy / Terms) */
.cof-legal {
  overflow-x: clip;
}

.legal-hero h1 {
  font-size: clamp(2.2rem, 6vw, 4.25rem);
}

.legal-page {
  background: #fff;
  padding: clamp(1.5rem, 3vw, 2.25rem) 0 clamp(3.5rem, 7vw, 5.5rem);
}

.legal-page .section-inner {
  max-width: 46rem;
}

.legal-updated {
  margin: 0 0 1.15rem;
  color: var(--cof-muted);
  font-size: 0.95rem;
}

.legal-note {
  background: var(--cof-cream);
  border-left: 3px solid var(--cof-gold);
  padding: 1rem 1.15rem;
  margin: 0 0 1.75rem;
  color: var(--cof-ink-soft);
  line-height: 1.65;
}

.legal-page h2 {
  font-size: clamp(1.28rem, 2.2vw, 1.55rem);
  margin: 2.15rem 0 0.7rem;
  color: var(--cof-ink);
  letter-spacing: -0.02em;
}

.legal-page h3 {
  font-size: 1.05rem;
  margin: 1.35rem 0 0.45rem;
  color: var(--cof-ink);
}

.legal-page p,
.legal-page li {
  color: var(--cof-ink-soft);
  line-height: 1.72;
}

.legal-page p {
  margin: 0 0 1rem;
}

.legal-page ul {
  margin: 0.35rem 0 1.1rem;
  padding-left: 1.25rem;
}

.legal-page li {
  margin: 0.35rem 0;
}

.legal-page a {
  color: var(--cof-purple-deep);
}

.legal-page a:hover {
  color: var(--cof-purple);
}

.contact-page {
  background: #fff;
  padding: 0 0 clamp(3.5rem, 7vw, 5rem);
}

.contact-page-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(2rem, 4vw, 3rem);
  padding-top: clamp(2rem, 4vw, 3.5rem);
}

.contact-primary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(1rem, 2.5vw, 2rem);
  width: 100%;
}

.contact-form-panel {
  min-width: 0;
  width: 100%;
  padding: clamp(1.25rem, 3vw, 2.5rem);
}

.contact-form-panel h2,
.contact-outreach h2,
.contact-info-card h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 0.35rem;
}

.contact-form-intro {
  margin: 0 0 1.5rem;
  color: var(--cof-purple-soft);
  font-weight: 600;
}

.contact-form {
  width: 100%;
  max-width: none;
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cof-ink);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--cof-ink);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #b0b0b0;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form-submit {
  margin-top: 0.35rem;
  border-radius: 999px;
  padding: 0.85rem 2rem;
}

.contact-form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form-status {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  line-height: 1.5;
}

.contact-form-status.is-success {
  background: rgba(46, 125, 50, 0.12);
  color: #1b5e20;
}

.contact-form-status.is-error {
  background: rgba(198, 40, 40, 0.1);
  color: #b71c1c;
}

.contact-form.is-submitting .contact-form-submit {
  opacity: 0.7;
  pointer-events: none;
}

.contact-info-card {
  min-width: 0;
  width: 100%;
  align-self: start;
  height: auto;
  background: linear-gradient(130deg, #2c224d 0%, #52381d 100%);
  color: #fff;
  padding: clamp(1.35rem, 3vw, 2.5rem);
  border-radius: clamp(16px, 2.5vw, 24px);
  overflow: visible;
}

.contact-info-card p {
  margin: 0 0 0.75rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.65;
  overflow-wrap: break-word;
}

.contact-info-card p:last-child {
  margin-bottom: 0;
}

.contact-info-card a {
  color: #fff;
  overflow-wrap: anywhere;
}

.contact-info-card a:hover {
  color: #fff;
  opacity: 0.85;
}

.contact-info-card strong {
  display: block;
  margin-top: 0.35rem;
  color: #fff;
}

.contact-info-directions {
  font-size: clamp(0.88rem, 2.2vw, 0.95rem);
  line-height: 1.7;
}

.contact-info-divider {
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  margin: 1.25rem 0;
}

.contact-secondary-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
  width: 100%;
}

.contact-photo {
  min-width: 0;
}

.contact-photo img {
  width: 100%;
  height: auto;
  border-radius: 18px;
  object-fit: cover;
  aspect-ratio: 3 / 4;
  max-height: min(620px, 72vh);
}

.contact-outreach h2 {
  margin-bottom: 1.5rem;
}

.outreach-block + .outreach-block {
  margin-top: 1.75rem;
}

.outreach-block h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.outreach-block ul {
  margin: 0;
  padding-left: 1.25rem;
  color: #5f5f5f;
  line-height: 1.75;
  overflow-wrap: break-word;
}

.outreach-block li + li {
  margin-top: 0.2rem;
}

.outreach-block a {
  color: var(--cof-purple-deep);
  font-weight: 600;
}

/* Plan Visit */
.cof-plan-visit {
  --cof-max: 1180px;
  overflow-x: clip;
}

.cof-plan-visit .section-inner {
  width: 100%;
  max-width: var(--cof-max);
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}

.visit-hero {
  background: #f4f0ea;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.visit-hero__eyebrow {
  margin-bottom: 0.75rem;
  color: var(--cof-purple-soft);
}

.visit-hero h1 {
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #2c2c2c;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.visit-hero__lead {
  margin: 0 auto;
  max-width: 38rem;
  color: #9f9790;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.visit-quick-facts {
  padding-top: 0;
  padding-bottom: 0;
  margin-top: -0.5rem;
}

.visit-facts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.25rem);
  align-items: stretch;
}

.visit-fact-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
  padding: clamp(1.15rem, 2.5vw, 1.5rem);
  box-shadow: 0 12px 40px rgba(36, 28, 58, 0.06);
}

.visit-fact-card--highlight {
  background: linear-gradient(145deg, #f8f5ff 0%, #fff 100%);
  border-color: rgba(96, 71, 172, 0.18);
}

.visit-fact-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cof-purple-soft);
  margin-bottom: 0.35rem;
}

.visit-fact-card strong {
  display: block;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  color: var(--cof-ink);
  margin-bottom: 0.45rem;
}

.visit-fact-card p {
  margin: 0;
  color: var(--cof-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.visit-photo-cluster {
  position: relative;
  margin: 0;
  width: min(100%, 220px);
  aspect-ratio: 4 / 5;
  justify-self: center;
  align-self: center;
  overflow: visible;
}

.visit-photo-cluster__card {
  position: absolute;
  padding: 0;
  margin: 0;
  border: 3px solid #fff;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  width: 54%;
  aspect-ratio: 3 / 4;
  box-shadow: 0 10px 28px rgba(36, 28, 58, 0.18);
  z-index: 1;
  transition:
    transform 0.5s var(--cof-ease),
    box-shadow 0.5s var(--cof-ease),
    z-index 0s;
}

.visit-photo-cluster__card--1 {
  top: 2%;
  left: 0;
  transform: rotate(-8deg);
  z-index: 1;
}

.visit-photo-cluster__card--2 {
  top: 12%;
  left: 28%;
  width: 58%;
  transform: rotate(2deg);
  z-index: 2;
}

.visit-photo-cluster__card--3 {
  bottom: 0;
  right: 0;
  transform: rotate(8deg);
  z-index: 1;
}

.visit-photo-cluster__card.is-front {
  z-index: 4;
  box-shadow: 0 16px 36px rgba(36, 28, 58, 0.28);
}

.visit-photo-cluster__card--1.is-front {
  transform: rotate(-8deg) scale(1.05);
}

.visit-photo-cluster__card--2.is-front {
  transform: rotate(2deg) scale(1.05);
}

.visit-photo-cluster__card--3.is-front {
  transform: rotate(8deg) scale(1.05);
}

.visit-photo-cluster__card:focus-visible {
  outline: 3px solid var(--cof-purple);
  outline-offset: 3px;
}

.visit-photo-cluster__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.visit-photo-cluster__card--1 .visit-photo-cluster__img {
  object-position: center 20%;
}

.visit-photo-cluster__card--2 .visit-photo-cluster__img {
  object-position: center top;
}

.visit-photo-cluster__card--3 .visit-photo-cluster__img {
  object-position: center 30%;
}

.visit-photo-cluster__card.is-shuffling.is-front {
  animation: visit-cluster-shuffle 0.65s var(--cof-ease);
}

@keyframes visit-cluster-shuffle {
  0% {
    transform: rotate(var(--cluster-rotate, 0deg)) scale(1);
  }

  35% {
    transform: rotate(calc(var(--cluster-rotate, 0deg) - 6deg)) scale(1.1) translateY(-8px);
  }

  70% {
    transform: rotate(calc(var(--cluster-rotate, 0deg) + 4deg)) scale(1.06) translateY(-3px);
  }

  100% {
    transform: rotate(var(--cluster-rotate, 0deg)) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .visit-photo-cluster__card {
    transition: none;
  }

  .visit-photo-cluster__card.is-shuffling.is-front {
    animation: none;
  }
}

/* Events */
.cof-events {
  --cof-max: 1180px;
  overflow-x: clip;
}

.cof-events .section-inner {
  width: 100%;
  max-width: var(--cof-max);
  padding-left: clamp(1.25rem, 4vw, 2rem);
  padding-right: clamp(1.25rem, 4vw, 2rem);
}

.events-hero {
  background: #f4f0ea;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 5vw, 3.25rem);
  text-align: center;
}

.events-hero__eyebrow {
  margin-bottom: 0.75rem;
  color: var(--cof-purple-soft);
}

.events-hero h1 {
  font-size: clamp(2.75rem, 8vw, 6.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  color: #2c2c2c;
  margin-bottom: 0.5rem;
  text-wrap: balance;
}

.events-hero__lead {
  margin: 0 auto;
  max-width: 40rem;
  color: #9f9790;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

section.events-hero .ig-feed {
  width: 90vw;
  max-width: none;
  margin: clamp(2.75rem, 7vw, 4rem) calc(50% - 45vw) 0;
  padding-top: clamp(1.5rem, 3.5vw, 2rem);
  border-top: 1px solid rgba(44, 44, 44, 0.12);
  text-align: left;
}

section.events-hero .ig-feed--cta {
  margin-bottom: 0;
}

section.events-hero .ig-feed--cta .ig-feed__header {
  margin-bottom: 0;
}

section.events-hero .ig-feed--cta + .ig-feed {
  margin-top: 1.35rem;
  padding-top: 1.35rem;
}

section.events-hero .ig-feed__eyebrow {
  color: var(--cof-purple-deep);
}

section.events-hero .ig-feed__title {
  color: #2c2c2c;
}

section.events-hero .ig-feed__follow {
  border-color: rgba(96, 71, 172, 0.4);
  color: var(--cof-purple-deep);
}

section.events-hero .ig-feed__follow:hover {
  background: rgba(154, 89, 253, 0.1);
  border-color: var(--cof-purple);
  color: var(--cof-purple-deep);
}

section.events-hero .ig-feed__status {
  color: #6f675f;
}

section.events-hero .ig-feed__status.is-error {
  color: #8a4b2f;
}

section.events-hero .ig-feed__item:focus-visible {
  outline-color: var(--cof-purple);
}

section.events-hero .ig-feed__media {
  box-shadow: 0 12px 28px rgba(44, 44, 44, 0.12);
}

section.events-hero .ig-feed__item {
  color: #5c554e;
}

section.events-hero .ig-feed__caption {
  color: #5c554e;
}

.social-ticker {
  background: var(--cof-purple-deep);
  color: #fff;
  overflow: hidden;
}

.social-ticker__viewport {
  overflow: hidden;
}

.social-ticker__track {
  display: flex;
  width: max-content;
  animation: social-ticker-run 32s linear infinite;
}

.social-ticker:hover .social-ticker__track,
.social-ticker:focus-within .social-ticker__track {
  animation-play-state: paused;
}

.social-ticker__group {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin: 0;
  padding: 0.85rem 1.75rem;
  white-space: nowrap;
  font-family: var(--cof-font);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.social-ticker__group a {
  color: var(--cof-gold);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.social-ticker__group a:hover,
.social-ticker__group a:focus-visible {
  color: #fff;
}

@keyframes social-ticker-run {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-ticker__track {
    animation: none;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .social-ticker__group {
    flex-wrap: wrap;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding-block: 0.9rem;
  }

  .social-ticker__group[aria-hidden="true"] {
    display: none;
  }
}

.events-calendar-section {
  padding-top: clamp(1.25rem, 3vw, 2rem);
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem);
  background: #fff;
  scroll-margin-top: 6rem;
}

.events-calendar-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.events-calendar-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.events-calendar-updated {
  margin: 0;
  color: var(--cof-muted);
  font-size: 0.92rem;
}

.events-calendar-notice {
  margin: 0 0 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(154, 89, 253, 0.08);
  border: 1px solid rgba(96, 71, 172, 0.14);
  color: var(--cof-ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.events-calendar-notice a {
  color: var(--cof-purple-deep);
  font-weight: 600;
}

.events-calendar-open {
  color: var(--cof-purple-deep) !important;
  border-color: rgba(96, 71, 172, 0.25);
}

.events-calendar-open:hover {
  background: rgba(96, 71, 172, 0.08);
  color: var(--cof-purple-deep) !important;
}

.events-calendar-app {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 50px rgba(36, 28, 58, 0.1);
  background: #fff;
  min-height: 520px;
}

.events-calendar-app.is-loading .events-calendar-layout {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.events-calendar-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 2rem 1.25rem;
  color: var(--cof-muted);
  font-weight: 600;
  background: #fff;
  z-index: 2;
}

.events-calendar-loading[hidden],
.events-calendar-app.is-ready .events-calendar-loading {
  display: none;
}

.events-calendar-error {
  margin: 0;
  padding: 0.85rem 1rem;
  background: #fff4f2;
  color: #8a3b2f;
  border-bottom: 1px solid rgba(138, 59, 47, 0.12);
  font-size: 0.92rem;
}

.events-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 0;
  min-height: 520px;
}

.events-calendar-month-panel {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-right: 1px solid rgba(0, 0, 0, 0.06);
}

.events-calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.events-calendar-month-label {
  margin: 0;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  text-align: center;
  flex: 1;
}

.events-calendar-nav-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(96, 71, 172, 0.18);
  background: #fff;
  color: var(--cof-purple-deep);
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.events-calendar-nav-btn:hover {
  background: rgba(96, 71, 172, 0.06);
  border-color: rgba(96, 71, 172, 0.28);
}

.events-calendar-weekdays,
.events-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.35rem;
}

.events-calendar-weekdays {
  margin-bottom: 0.35rem;
}

.events-calendar-weekday {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cof-muted);
  padding: 0.35rem 0;
}

.events-calendar-day {
  position: relative;
  min-height: 3.4rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  background: #fafafa;
  color: inherit;
  padding: 0.45rem 0.35rem 0.35rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.events-calendar-day--spacer {
  visibility: hidden;
  pointer-events: none;
  border-color: transparent;
  background: transparent;
}

.events-calendar-day:hover,
.events-calendar-day.is-selected {
  border-color: rgba(96, 71, 172, 0.35);
  background: #fff;
  box-shadow: 0 8px 18px rgba(36, 28, 58, 0.08);
}

.events-calendar-day.is-today {
  border-color: rgba(232, 119, 34, 0.45);
}

.events-calendar-day.has-events .events-calendar-day-number {
  color: var(--cof-purple-deep);
  font-weight: 700;
}

.events-calendar-day-number {
  display: block;
  font-size: 0.88rem;
  line-height: 1;
}

.events-calendar-day-dots {
  display: flex;
  justify-content: center;
  gap: 0.18rem;
  margin-top: 0.35rem;
}

.events-calendar-day-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: var(--cof-purple);
}

.events-calendar-list-panel {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  background: linear-gradient(180deg, #fcfbff 0%, #fff 100%);
}

.events-list-heading {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
}

.events-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-height: 420px;
  overflow: auto;
}

.events-list-item {
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 20px rgba(36, 28, 58, 0.05);
}

.events-list-time {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--cof-orange);
}

.events-list-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.35;
}

.events-list-location {
  margin: 0 0 0.55rem;
  color: var(--cof-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.events-list-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--cof-purple);
  text-decoration: none;
}

.events-list-link:hover {
  text-decoration: underline;
}

.events-calendar-empty {
  margin: 0;
  color: var(--cof-muted);
  font-size: 0.92rem;
}

.events-featured {
  background: var(--cof-cream);
  padding: clamp(3rem, 6vw, 4.5rem) 0;
}

.events-featured-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
}

.events-featured-eyebrow {
  color: var(--cof-purple-soft);
  margin-bottom: 0.75rem;
}

.events-featured-date {
  margin: 0 0 1rem;
  font-family: var(--cof-font);
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 600;
  color: var(--cof-purple-deep);
}

.events-featured-text {
  margin: 0 0 1rem;
  color: var(--cof-muted);
  line-height: 1.7;
  max-width: 34rem;
}

.events-featured-location {
  margin: 0 0 1rem;
  color: #6b6560;
  font-size: 0.95rem;
}

#events-featured-cta {
  display: inline-flex;
  margin-top: 0.75rem;
  margin-bottom: clamp(1.5rem, 4vw, 2.5rem);
}

@media (min-width: 961px) {
  #events-featured-cta {
    margin-bottom: 0;
  }
}

.events-featured-visual {
  justify-self: center;
  width: min(100%, 420px);
}

.events-featured-visual img {
  width: 100%;
  border-radius: 15px;
  object-fit: cover;
  aspect-ratio: 3 / 2;
  box-shadow: 0 24px 60px rgba(36, 28, 58, 0.12);
}

.events-help {
  background: var(--cof-dark);
  color: #cecece;
}

.events-help .section-title {
  color: #fff;
}

.events-help-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: center;
}

.events-help-text {
  margin: 0.75rem 0 0;
  color: #999;
  line-height: 1.7;
  max-width: 42rem;
}

.events-help-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.events-help .btn-outline {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff !important;
}

.events-help .btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}

.visit-page {
  background: #fff;
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(3.5rem, 7vw, 5rem);
}

.visit-page-shell {
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 5vw, 4rem);
}

.visit-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.visit-steps-panel h2,
.visit-expect .section-title,
.visit-rsvp-panel h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  margin-bottom: 1.25rem;
}

.visit-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: visit-step;
}

.visit-steps li {
  position: relative;
  padding-left: 3.25rem;
  padding-bottom: 1.5rem;
  border-left: 2px solid rgba(96, 71, 172, 0.15);
  margin-left: 1rem;
}

.visit-steps li:last-child {
  padding-bottom: 0;
  border-left-color: transparent;
}

.visit-steps li::before {
  counter-increment: visit-step;
  content: counter(visit-step);
  position: absolute;
  left: -1.05rem;
  top: 0;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--cof-purple);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visit-steps h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.visit-steps p {
  margin: 0;
  color: var(--cof-muted);
  line-height: 1.65;
}

.visit-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.visit-location-card .visit-map-btn {
  margin-top: 0.5rem;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.visit-location-card .visit-map-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.visit-info-block {
  background: #f8f7fb;
  border: 1px solid rgba(96, 71, 172, 0.1);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
}

.visit-info-block h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.visit-info-block p {
  margin: 0;
  color: var(--cof-muted);
  line-height: 1.65;
}

.visit-info-block a {
  color: var(--cof-purple-deep);
  font-weight: 600;
}

.visit-expect-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.15rem);
}

.visit-expect-card {
  background: #faf9fc;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
}

.visit-expect-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.visit-expect-card p {
  margin: 0;
  color: var(--cof-muted);
  line-height: 1.6;
  font-size: 0.94rem;
}

.visit-rsvp-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  align-items: start;
}

.visit-rsvp-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  border-radius: 18px;
}

.visit-rsvp-intro {
  margin: 0 0 1.25rem;
  color: var(--cof-muted);
  line-height: 1.65;
}

.visit-rsvp-form select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--cof-ink);
}

.visit-rsvp-form input[type="date"] {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  border: 1px solid #d8d8d8;
  border-radius: 0;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: #fff;
  color: var(--cof-ink);
}

.cof-plan-visit .visit-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

.contact-panel {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 2rem;
  border-radius: 4px;
}

.contact-panel h2 {
  font-size: 1.5rem;
}

.contact-panel .btn {
  margin-top: 0.75rem;
}

.contact-details {
  list-style: none;
  margin: 0;
  padding: 0;
}

.contact-details li {
  margin-bottom: 1rem;
}

.contact-details strong {
  display: block;
  font-family: var(--cof-font);
  margin-bottom: 0.15rem;
}

.directions {
  color: var(--cof-muted);
  font-size: 0.92rem;
}

.outreach-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.outreach-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.outreach-list li:last-child {
  border-bottom: none;
}

.contact-side img {
  width: 100%;
  border-radius: 4px;
  object-fit: cover;
  max-height: 640px;
}

/* Give page */
.give-hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.give-points-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.give-point {
  background: #fff;
  padding: 1.5rem;
  border-radius: 4px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.give-point h3 {
  color: var(--cof-purple-deep);
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  background: var(--cof-dark);
  color: #cecece;
  padding: 4rem 0 0;
}

.footer-inner {
  max-width: var(--cof-max);
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-church-name {
  color: #fff;
  font-family: var(--cof-font);
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: #999;
  font-size: 0.92rem;
}

.footer-church-center-btn {
  margin-top: 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  padding: 0.75rem 1.35rem;
  background: #fff;
  color: var(--cof-ink) !important;
  border-color: #fff;
  animation: footer-cc-pulse 2.2s ease-in-out infinite;
}

.footer-church-center-btn:hover {
  background: #f4f0ea;
  color: var(--cof-ink) !important;
  border-color: #f4f0ea;
  animation-play-state: paused;
}

@keyframes footer-cc-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.55);
  }
  50% {
    transform: scale(1.045);
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-church-center-btn {
    animation: none;
  }
}

.footer-col h3 {
  color: #fff;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-menu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-menu li {
  margin-bottom: 0.5rem;
}

.footer-menu a,
.footer-contact a {
  color: #bdbdbd;
}

.footer-menu a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-contact {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.footer-contact li {
  margin-bottom: 0.55rem;
  font-size: 0.95rem;
}

.footer-visit-btn {
  display: inline-flex;
  margin: 0 0 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  padding: 0.65rem 1.2rem;
}

.footer-social {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.footer-social a:hover {
  background: var(--cof-purple);
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  max-width: var(--cof-max);
  margin: 0 auto;
  font-size: 0.85rem;
  color: #888;
}

.footer-links {
  margin: 0;
}

.footer-links a {
  color: #aaa;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible,
.footer-links a[aria-current="page"] {
  color: #fff;
}

.footer-links span {
  margin: 0 0.4rem;
  color: #666;
}

/* Scroll top */
.scroll-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--cof-purple);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  z-index: 50;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.scroll-top:hover {
  transform: translateY(-2px);
  background: var(--cof-purple-deep);
}

/* Mobile-only UI (hidden on desktop) */
.nav-backdrop,
.mobile-action-bar {
  display: none;
}

.mobile-carousel__dots {
  display: none;
}

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--cof-ease), transform 0.7s var(--cof-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* Home page — spacious rhythm & staggered motion */
.cof-home {
  --cof-max: 1240px;
  overflow-x: clip;
}

.cof-home .section-inner {
  padding-left: clamp(1.5rem, 4vw, 2.75rem);
  padding-right: clamp(1.5rem, 4vw, 2.75rem);
}

.cof-home .mission {
  padding: clamp(5rem, 12vw, 10rem) 0 clamp(2rem, 4vw, 3rem);
}

.cof-home .mission-visual {
  margin-top: clamp(-3.5rem, -7vw, -5.5rem);
}

.cof-home .section.featured-spotlight,
.cof-home .section.featured-video {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.cof-home .beliefs {
  padding-top: clamp(2.5rem, 5vw, 3.5rem);
}

.cof-home .beliefs-grid {
  gap: 1.25rem;
}

.cof-home .beliefs-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.cof-home .beliefs-grid .reveal:nth-child(3) { transition-delay: 0.16s; }
.cof-home .beliefs-grid .reveal:nth-child(4) { transition-delay: 0.24s; }

.cof-home .ministry-cards .reveal:nth-child(2) { transition-delay: 0.1s; }
.cof-home .ministry-cards .reveal:nth-child(3) { transition-delay: 0.2s; }

.cof-home .giving-tabs-media {
  box-shadow: 0 24px 60px rgba(36, 28, 58, 0.12);
}

@media (prefers-reduced-motion: reduce) {
  .cof-home .beliefs-grid .reveal,
  .cof-home .ministry-cards .reveal {
    transition-delay: 0s !important;
  }
}

/* Generic content */
.entry-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

.entry-content h1 {
  margin-bottom: 1rem;
}

/* 404 */
.error-404 {
  text-align: center;
  padding: 6rem 1.5rem;
}

.error-404 h1 {
  font-size: 3rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .contact-primary-grid,
  .contact-secondary-grid,
  .visit-main-grid,
  .visit-rsvp-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-panel {
    padding-inline: 0;
  }

  .visit-facts-grid {
    grid-template-columns: 1fr;
  }

  .visit-expect-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .events-help-grid,
  .events-featured-grid {
    grid-template-columns: 1fr;
  }

  .events-featured-visual {
    order: -1;
    margin-bottom: clamp(1rem, 3vw, 1.5rem);
  }

  .events-help-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 960px) {
  .featured-video-grid,
  .giving-header,
  .giving-tabs,
  .pastor-grid,
  .history-block,
  .history-block--reverse,
  .about-intro,
  .about-history-grid,
  .about-history-layout,
  .involved-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .featured-video-grid.featured-events-grid,
  .featured-events-grid {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    grid-template-areas:
      "kicker"
      "media"
      "copy";
    row-gap: 1.25rem;
  }

  .featured-events-grid .featured-video-media {
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .featured-events-feature {
    width: 100%;
    max-width: min(100%, 384px);
    margin-left: auto;
    margin-right: auto;
  }

  .featured-events-frame {
    width: fit-content;
    max-width: 100%;
  }

  .contact-form-row {
    grid-template-columns: 1fr;
  }

  .contact-photo img {
    max-height: none;
    aspect-ratio: 4 / 5;
  }

  .contact-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .visit-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .events-hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.25rem);
  }

  .about-intro-visual {
    order: 0;
  }

  .about-intro-visual img {
    min-height: clamp(280px, 55vw, 420px);
  }

  .about-history-layout {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "stack"
      "founders-text";
  }

  .history-photo-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(0.4rem, 1.5vw, 0.65rem);
    grid-area: stack;
    position: static;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0;
  }

  .history-photo-stack__hint {
    display: none;
  }

  .history-photo-stack__card {
    position: static;
    grid-area: auto;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: default;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(36, 28, 58, 0.1);
    z-index: auto;
    min-height: 0;
    transform: none !important;
    transition: none;
    aspect-ratio: 4 / 5;
  }

  .history-photo-stack__photo {
    border-radius: 8px;
    box-shadow: none;
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .history-photo-stack__card--a,
  .history-photo-stack__card--b,
  .history-photo-stack__card--c {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    aspect-ratio: 4 / 5;
  }

  .history-photo-stack__card--a .history-photo-stack__photo {
    min-height: 0;
    object-position: center top;
  }

  .history-photo-stack__card--b .history-photo-stack__photo,
  .history-photo-stack__card--c .history-photo-stack__photo {
    aspect-ratio: auto;
    min-height: 0;
  }

  .history-photo-stack__card.is-front,
  .history-photo-stack__card.is-shuffling,
  .history-photo-stack__card.is-shuffling.is-front {
    transform: none !important;
    animation: none;
    box-shadow: 0 4px 14px rgba(36, 28, 58, 0.1);
  }

  .about-history-visual img {
    min-height: clamp(280px, 50vw, 420px);
  }

  .history-block--reverse .history-visual {
    order: 0;
  }

  .ministry-cards,
  .services-grid {
    grid-template-columns: 1fr 1fr;
  }

  .give-points-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .beliefs-intro {
    flex-direction: column;
    align-items: stretch;
    overflow-x: clip;
  }

  .beliefs-title {
    width: 100%;
    max-width: none;
    font-size: clamp(2rem, 5.5vw, 2.75rem);
    line-height: 1.22;
    text-wrap: balance;
  }

  .beliefs-title-animated {
    min-height: 2.5em;
  }

  .beliefs-label {
    text-align: right;
    margin-left: auto;
    white-space: normal;
  }

  .beliefs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --cof-header-h: 72px;
  }

  .site-logo img,
  .site-logo .custom-logo {
    height: 52px;
  }

  .btn-give--desktop {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    margin-left: auto;
    position: relative;
    z-index: 1201;
    touch-action: manipulation;
  }

  body.nav-open .site-header {
    z-index: 1200;
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  }

  .primary-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(100%, 22rem);
    max-width: 100%;
    background: #fff;
    isolation: isolate;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    padding: 5rem 1.5rem 2rem;
    transform: translateX(100%);
    transition: transform 0.35s var(--cof-ease), visibility 0.35s var(--cof-ease);
    z-index: 1200;
    pointer-events: none;
    visibility: hidden;
    box-shadow: -16px 0 40px rgba(15, 12, 24, 0.18);
  }

  .primary-nav.is-open {
    transform: translateX(0);
    pointer-events: auto;
    visibility: visible;
    background: #fff;
  }

  /* Close control lives on the header toggle; hide duplicate drawer X. */
  .nav-close {
    display: none;
  }

  .nav-menu {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .nav-menu a {
    font-size: 1.25rem;
    color: var(--cof-ink);
  }

  .nav-more {
    display: none !important;
  }

  .btn-give--mobile {
    display: inline-flex;
    margin-top: 2rem;
    align-self: flex-start;
  }

  body.nav-open {
    overflow: hidden;
  }

  .hero {
    min-height: calc(100svh - var(--cof-header-h) - 4.75rem - env(safe-area-inset-bottom, 0px));
    min-height: calc(100dvh - var(--cof-header-h) - 4.75rem - env(safe-area-inset-bottom, 0px));
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: none;
  }

  .ministry-cards,
  .services-grid,
  .give-points-grid,
  .beliefs-grid {
    grid-template-columns: 1fr;
  }

  .contact-hero {
    padding: clamp(2rem, 8vw, 2.75rem) 0 clamp(1.25rem, 5vw, 1.75rem);
  }

  .contact-page-shell {
    gap: 1.75rem;
  }

  .contact-form-panel {
    padding: 0.25rem 0 0;
  }

  .contact-info-card {
    padding: 1.35rem 1.2rem;
  }

  .contact-form-panel h2,
  .contact-info-card h2,
  .contact-outreach h2 {
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }

  .contact-photo img {
    border-radius: 14px;
  }

  .giving-header {
    flex-direction: column;
    align-items: stretch;
  }

  .giving .section-inner {
    border-radius: 0;
  }

  .giving-eyebrow {
    white-space: normal;
    text-align: right;
  }

  .giving-tabs {
    grid-template-columns: 1fr;
    overflow-x: clip;
  }

  .giving-tabs-media {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 0;
    aspect-ratio: 3 / 2;
    height: auto;
  }

  .giving-tabs-track {
    scroll-padding-inline: 0;
  }

  .giving-tabs-slide {
    object-fit: cover;
    object-position: center;
  }

  .giving-tabs-nav {
    order: 2;
  }

  .about-history-layout {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.75rem;
  }

  .about-history-copy {
    order: 1;
  }

  .about-history-layout:has(.about-history-copy[data-history-read-more]:not(.is-expanded)) .about-history-copy__more,
  .about-history-layout:has(.about-history-copy[data-history-read-more]:not(.is-expanded)) .founders-block {
    display: none;
  }

  .history-photo-stack {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    position: static;
    order: 2;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    margin: 0;
  }

  .history-photo-stack__hint {
    display: none;
  }

  .founders-block {
    order: 4;
    padding-top: 0.5rem;
    border-top: 0;
  }

  .history-photo-stack__card {
    position: static;
    grid-area: auto;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 8px;
    overflow: hidden;
    cursor: default;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(36, 28, 58, 0.1);
    z-index: auto;
    min-height: 0;
    transform: none !important;
    transition: none;
    aspect-ratio: 4 / 5;
  }

  .history-photo-stack__card:focus-visible {
    outline: none;
  }

  .history-photo-stack__photo {
    border-radius: 8px;
    box-shadow: none;
    min-height: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .history-photo-stack__card--a,
  .history-photo-stack__card--b,
  .history-photo-stack__card--c {
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: 100%;
    aspect-ratio: 4 / 5;
  }

  .history-photo-stack__card--a .history-photo-stack__photo {
    min-height: 0;
    object-position: center top;
  }

  .history-photo-stack__card--b .history-photo-stack__photo,
  .history-photo-stack__card--c .history-photo-stack__photo {
    aspect-ratio: auto;
    min-height: 0;
  }

  .history-photo-stack__card.is-front,
  .history-photo-stack__card--a.is-front,
  .history-photo-stack__card--b.is-front,
  .history-photo-stack__card--c.is-front,
  .history-photo-stack__card.is-shuffling,
  .history-photo-stack__card.is-shuffling.is-front {
    transform: none !important;
    animation: none;
    box-shadow: 0 4px 14px rgba(36, 28, 58, 0.1);
  }

  .history-photo-stack__card:not(.is-front):active {
    transform: none !important;
  }

  .page-hero--about {
    min-height: clamp(320px, 62vw, 420px);
  }

  .page-hero--about h1 {
    font-size: clamp(3.5rem, 18vw, 4.5625rem);
  }

  .about-intro-title {
    max-width: none;
  }

  .cof-about .section-inner,
  .cof-about .page-hero--about .section-inner,
  .cof-about .family-banner {
    padding-left: clamp(1.5rem, 6vw, 2rem);
    padding-right: clamp(1.5rem, 6vw, 2rem);
  }

  .beliefs-title {
    font-size: clamp(1.75rem, 7.2vw, 2.15rem);
    line-height: 1.28;
  }

  .beliefs-title-break {
    display: block;
  }

  .beliefs-title-animated {
    min-height: 2.6em;
  }

  .beliefs-label {
    order: -1;
    margin: 0 0 0.85rem;
    text-align: left;
    align-self: flex-start;
    font-size: 1.26rem;
    font-weight: 700;
  }

  .mission-secondary {
    display: none;
  }

  .cof-worship .involved-visual--circle {
    display: none;
  }

  .worship-sunday-grid {
    grid-template-columns: 1fr;
  }

  .worship-services-intro {
    align-items: stretch;
  }

  .worship-services-calendar {
    width: 100%;
    text-align: center;
  }

  .worship-sunday-graphics {
    max-width: 34rem;
    margin: 0 auto;
    width: 100%;
  }

  .page-hero--worship .page-hero__eyebrow {
    display: none;
  }

  .page-hero--worship {
    min-height: clamp(420px, 52vw, 600px);
    padding: clamp(1.75rem, 5vw, 2.75rem) 0 clamp(2.75rem, 6vw, 3.75rem);
  }

  .page-hero--worship .page-hero__title {
    width: 90vw;
    max-width: none;
    margin: 0 calc(50% - 45vw) 1rem;
  }

  .page-hero--worship .page-hero__under-photo {
    display: none;
  }

  .page-hero--worship .ig-feed {
    width: 90vw;
    margin-top: 1.75rem;
  }

  section.events-hero .ig-feed {
    width: 90vw;
    margin-top: 2.75rem;
  }

  .ig-feed__item {
    width: clamp(132px, 38vw, 160px);
  }

  .cof-ministries .ministries-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .cof-ministries .ministries-page .section-inner {
    padding-left: 0.625rem;
    padding-right: 0.625rem;
  }

  .page-hero--image.page-hero--ministries {
    padding: clamp(3rem, 8vw, 4rem) 0 clamp(2rem, 5vw, 2.75rem);
  }

  .ministries-hero-body .ministries-hero-bg-track {
    margin-top: clamp(0.85rem, 3vw, 1.25rem);
  }

  .ministries-hero-bg-track {
    overflow-x: auto;
    justify-content: flex-start;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-inline: 1rem;
  }

  .ministries-hero-bg-track::-webkit-scrollbar {
    display: none;
  }

  .ministries-hero-bg-card {
    flex: 0 0 var(--ministries-card-w);
    max-width: none;
  }

  .cof-ministries .ministries-page-grid .ministry-card {
    border-radius: 14px;
  }

  .cof-ministries .ministries-page-grid .ministry-card-content {
    padding: 0.75rem 12px 16px;
  }

  .cof-ministries .ministries-page-grid .ministry-card h3 {
    font-size: 0.82rem;
  }

  .cof-ministries .ministries-page-grid .ministry-card-time {
    font-size: 0.72rem;
    margin-bottom: 0.45rem;
  }

  .cof-ministries .ministries-page-grid .ministry-card-desc {
    font-size: 0.76rem;
    line-height: 1.45;
    margin-bottom: 0.65rem;
  }

  .cof-ministries .ministries-page-grid .ministry-card-link {
    font-size: 0.76rem;
  }

  .cof-ministries .ministries-page-grid .ministry-card-badge {
    left: 0.5rem;
    bottom: 0.5rem;
    padding: 0.22rem 0.45rem;
    font-size: 0.56rem;
  }

  .ministries-page-filters {
    gap: 0.55rem;
    margin-bottom: 1.25rem;
    padding: 0.4rem 0.15rem 0.5rem;
  }

  .ministries-page-filter {
    padding: 0.45rem 0.9rem;
    font-size: 0.72rem;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(15, 12, 24, 0.45);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--cof-ease);
  }

  .nav-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  .mobile-action-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 900;
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -10px 40px rgba(36, 28, 58, 0.1);
    transition: transform 0.3s var(--cof-ease);
  }

  .mobile-action-bar.is-hidden {
    transform: translateY(110%);
  }

  .mobile-action-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    font-family: var(--cof-font);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
  }

  .mobile-action-bar__btn--visit {
    background: #fff;
    color: var(--cof-purple-deep);
    border: 1px solid rgba(96, 71, 172, 0.25);
  }

  .mobile-action-bar__btn--give {
    background: var(--cof-purple);
    color: #fff;
  }

  .cof-home {
    padding-bottom: calc(4.75rem + env(safe-area-inset-bottom, 0px));
  }

  .scroll-top {
    right: 1rem;
    bottom: calc(5.25rem + env(safe-area-inset-bottom, 0px));
  }

  .hero-media__video {
    display: none;
  }

  .hero-media__photo {
    display: block;
    object-position: center 35%;
  }

  .hero-content {
    padding: 2.75rem 1.25rem 3rem;
  }

  .hero-title {
    font-size: clamp(2.35rem, 11.5vw, 3.25rem);
    max-width: none;
    line-height: 1;
  }

  .hero-subtitle {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
  }

  .welcome-strip-scroll {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-width: 100%;
    padding-inline: 1.25rem;
    scroll-padding-inline: 1.25rem;
    box-sizing: border-box;
  }

  .welcome-strip-scroll::-webkit-scrollbar {
    display: none;
  }

  .welcome-strip-inner {
    display: flex;
    flex-direction: row;
    gap: 0.85rem;
    width: max-content;
    min-width: 100%;
    padding: 1.25rem 0 1.35rem;
  }

  .welcome-strip-item {
    flex: 0 0 min(78vw, 280px);
    scroll-snap-align: start;
    padding: 1rem 1.1rem;
    background: var(--cof-white);
    border: 1px solid rgba(0, 0, 0, 0.06);
  }

  .mobile-carousel {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: clip;
  }

  .cof-home .mission {
    padding: 3rem 0 2.5rem;
  }

  .mission-grid {
    grid-template-columns: 1fr;
    overflow-x: clip;
  }

  .mission-copy {
    order: 1;
  }

  .mission-visual {
    order: 2;
    margin-top: 0;
    padding-top: 1.5rem;
    padding-right: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
  }

  .cof-home .mission-visual {
    margin-top: 0;
  }

  .mission-copy-text {
    margin-bottom: 0;
  }

  .mission-visual[data-scroll-slide] img {
    transform: none;
    width: 100%;
  }

  .cof-worship .involved-visual[data-scroll-slide] img {
    transform: none;
    width: 100%;
  }

  .mobile-carousel__track.ministry-cards,
  .mobile-carousel__track.services-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    scroll-padding-inline: clamp(1.25rem, 4vw, 1.5rem);
    padding: 0 clamp(1.25rem, 4vw, 1.5rem) 0.35rem;
    margin-inline: 0;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    grid-template-columns: unset;
  }

  .mobile-carousel__track.ministry-cards::-webkit-scrollbar,
  .mobile-carousel__track.services-grid::-webkit-scrollbar {
    display: none;
  }

  .mobile-carousel__track .ministry-card {
    flex: 0 0 min(84vw, 300px);
    scroll-snap-align: start;
  }

  .mobile-carousel__track .service-card {
    flex: 0 0 min(84vw, 320px);
    scroll-snap-align: start;
  }

  .mobile-carousel__dots {
    display: flex;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 1.1rem;
  }

  .mobile-carousel__dot {
    width: 8px;
    height: 8px;
    border: none;
    border-radius: 50%;
    padding: 0;
    background: rgba(96, 71, 172, 0.22);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
  }

  .mobile-carousel__dot.is-active {
    background: var(--cof-purple);
    transform: scale(1.2);
  }

  .giving-header-copy .btn-primary {
    width: 100%;
  }

  .giving-title {
    font-size: clamp(1.4rem, 5.8vw, 1.85rem);
  }

  .giving-eyebrow {
    order: -1;
    text-align: left;
    margin-bottom: 0.75rem;
  }

  .giving-tabs-nav {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 0.5rem;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .giving-tabs-nav::-webkit-scrollbar {
    display: none;
  }

  .giving-tabs-btn {
    flex: 0 0 auto;
    scroll-snap-align: start;
    white-space: nowrap;
    border-radius: 999px;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    border: 1px solid rgba(96, 71, 172, 0.18);
    background: #fff;
    color: var(--cof-ink);
  }

  .giving-tabs-btn:hover {
    color: var(--cof-purple-deep);
  }

  .giving-tabs-btn.is-active {
    background: var(--cof-purple);
    color: #fff;
    border-color: var(--cof-purple);
  }

  .giving-tabs-btn.is-active:hover {
    color: #fff;
  }

  .giving-tabs-btn:first-child {
    border-radius: 999px;
  }

  .pastor-photo {
    order: -1;
    justify-self: start;
    width: auto;
    margin-bottom: 0.35rem;
  }

  .pastor .section-inner.pastor-grid,
  .pastor--interactive .pastor-grid {
    background: #fff;
    border: 1px solid rgba(96, 71, 172, 0.1);
    border-radius: 15px;
    padding: 1.35rem 1.65rem 1.5rem;
    box-shadow: 0 12px 32px rgba(36, 28, 58, 0.1);
  }

  .pastor .section-inner.pastor-grid {
    margin-inline: 1rem;
    padding-left: 1.65rem;
    padding-right: 1.65rem;
  }

  .pastor--interactive .section-inner.pastor-interactive {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .cof-about .pastor .section-inner.pastor-grid {
    margin-inline: 0.75rem;
  }

  .pastor-photo img {
    display: block;
    width: clamp(104px, 30vw, 128px);
    height: clamp(104px, 30vw, 128px);
    max-width: none;
    margin-inline: 0;
    border-radius: 999px;
    object-fit: cover;
    object-position: center top;
    box-shadow: 0 10px 24px rgba(36, 28, 58, 0.14);
  }

  .pastor--interactive .pastor-grid {
    display: flex;
    flex-direction: column;
  }

  .pastor--interactive .pastor-photo {
    order: -1;
    width: 100%;
    max-width: none;
    height: auto;
    aspect-ratio: 4 / 5;
    border-radius: 15px;
    overflow: hidden;
    justify-self: stretch;
    margin: 0 0 1.25rem;
    box-shadow: 0 16px 40px rgba(36, 28, 58, 0.12);
  }

  .pastor--interactive .pastor-photo img {
    width: 100%;
    height: 100%;
    max-width: none;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: center top;
  }

  .pastor--interactive .pastor-bio {
    order: 0;
  }

  .belief-card {
    padding: 1.5rem 1.15rem;
  }

  .prayer-cta {
    padding: 3rem 1.25rem;
    text-align: center;
  }

  .prayer-cta .btn {
    width: 100%;
    max-width: 280px;
  }

  .visit-expect-grid {
    grid-template-columns: 1fr;
  }

  .cof-plan-visit .visit-cta-actions {
    flex-direction: column;
    align-items: center;
  }

  .cof-plan-visit .visit-cta-actions .btn {
    width: 100%;
    max-width: 280px;
  }

  .events-calendar-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .events-calendar-open {
    width: 100%;
    text-align: center;
  }

  .events-calendar-layout {
    grid-template-columns: 1fr;
  }

  .events-calendar-month-panel {
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  .events-calendar-day {
    min-height: 2.85rem;
  }

  .events-list {
    max-height: none;
  }

  .events-help-actions .btn {
    width: 100%;
  }

  .visit-steps li {
    margin-left: 0.75rem;
    padding-left: 2.85rem;
  }

  .site-footer {
    padding-bottom: 0.5rem;
  }

  .section {
    padding: 3.5rem 0;
  }
}
