:root {
  --bg: #f3efe9;
  --blue: #8a1c3d;
  --blue-rgb: 138, 28, 61;
  --blue-deep: #4a0d21;
  --deep-rgb: 74, 13, 33;
  --tint: #f6dfe6;
  --tint-text: #f0b3c5;
  --ink: #131313;
  --white: #fff;
  --service: var(--blue);
  --study: #0f9aa6;
  --special: #9a6208;
  --pad: clamp(20px, 5vw, 80px);
  --font: "Montserrat", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--font); font-size: 1rem; line-height: 1.65; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1; text-transform: uppercase; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); font-weight: 800; }
h3 { font-size: 1rem; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; max-width: 60ch; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.small { font-size: .9rem; opacity: .85; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: var(--ink); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--pad); color: #fff; transition: background .4s, color .4s, padding .4s; }
.brand { text-decoration: none; font-weight: 200; letter-spacing: .04em; font-size: 1.2rem; }
.brand strong { font-weight: 800; }
.nav nav { display: flex; gap: 28px; align-items: center; }
.nav nav a { text-decoration: none; font-weight: 500; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.nav nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.nav .nav-cta { background: var(--blue); color: #fff; padding: 9px 20px; border-radius: 99px; text-decoration: none !important; font-weight: 600; }
.nav-toggle { display: none; background: none; border: 1px solid currentColor; color: inherit; padding: 8px 16px; border-radius: 99px; font: inherit; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
.nav.scrolled { background: rgba(243, 239, 233, .92); backdrop-filter: blur(10px); color: var(--blue); padding-top: 14px; padding-bottom: 14px; }

/* pill buttons with a round arrow, as a pair */
.pill { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; color: #fff; }
.pill span { background: var(--blue); padding: 14px 26px; border-radius: 99px; transition: background .2s; }
.pill i { font-style: normal; background: var(--blue); width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; transition: transform .25s, background .2s; }
.pill:hover i { transform: translateX(4px); }
.pill:hover span, .pill:hover i { background: var(--blue-deep); }
.pill.white span, .pill.white i { background: #fff; color: var(--blue); }
.pill.white:hover span, .pill.white:hover i { background: var(--bg); }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.solid { background: var(--blue); color: #fff; padding: 12px 24px; border-radius: 99px; text-decoration: none; font-weight: 600; box-shadow: 0 8px 18px rgba(var(--blue-rgb), .3); }
.solid:hover { background: var(--blue-deep); }
.link { color: var(--blue); font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--blue); padding-bottom: 3px; }

/* hero */
.hero { position: relative; display: flex; align-items: flex-end; min-height: min(100vh, 900px); background: var(--blue-deep); color: #fff; overflow: hidden; }
.hero-img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; object-position: center 20%; translate: 0 var(--py, 0px); }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(var(--deep-rgb), .82) 0%, rgba(var(--deep-rgb), .4) 50%, rgba(var(--deep-rgb), 0) 80%), linear-gradient(0deg, rgba(var(--deep-rgb), .85) 0%, rgba(var(--deep-rgb), 0) 55%); }
.hero-text { position: relative; z-index: 1; padding: 140px var(--pad) clamp(50px, 8vw, 100px); }
.hero h1 { font-size: clamp(2.5rem, 7vw, 6.4rem); font-weight: 800; margin-bottom: .45em; line-height: .98; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: .06em; }
.hero h1 .ln > span { display: block; }
.hero h1 b { font-weight: 800; }
.hero h1 .thin { font-weight: 200; }
.hero-sub { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.4em; }

/* marquee */
.marquee { overflow: hidden; padding: clamp(26px, 4vw, 50px) 0; background: var(--bg); }
.marquee-track { display: flex; width: max-content; animation: slide 40s linear infinite; }
.marquee span { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 800; color: var(--blue); padding: 0 clamp(24px, 4vw, 60px); white-space: nowrap; letter-spacing: -.01em; }
.marquee span.out { color: transparent; -webkit-text-stroke: 1.5px var(--blue); }
@keyframes slide { to { transform: translateX(-50%); } }

/* visit */
.visit { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(30px, 5vw, 80px); align-items: center; padding: clamp(30px, 5vw, 70px) var(--pad) clamp(70px, 9vw, 130px); max-width: 1400px; margin: 0 auto; }
.visit h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.visit h3 { margin-top: 1.6em; }
.visit .wed { margin-bottom: 1.6em; }
.shapes { position: relative; height: clamp(360px, 44vw, 560px); }
.shape { position: absolute; }
.shape > div { width: 100%; height: 100%; overflow: hidden; }
.shape img { width: 100%; height: 100%; object-fit: cover; }
.cap { width: 33%; height: 100%; transform: rotate(18deg); transform-origin: center; }
.cap > div { border-radius: 999px; }
.cap img { width: 180%; max-width: none; height: 108%; margin: -4% 0 0 -40%; transform: rotate(-18deg); }
.c-a { left: 2%; top: 0; }
.c-b { left: 40%; top: 0; }
.drop { width: 22%; aspect-ratio: 1; right: 0; bottom: 8%; height: auto; transform: rotate(-45deg); }
.drop > div { border-radius: 50% 0 50% 50%; }
.drop img { width: 150%; max-width: none; height: 150%; margin: -25% 0 0 -25%; transform: rotate(45deg); }

/* watch panel */
.watch { padding: 0 20px; }
.watch-card { background: var(--blue); color: #fff; border-radius: 14px; padding: clamp(30px, 6vw, 80px); display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(26px, 5vw, 70px); align-items: center; position: relative; overflow: hidden; }
.watch-card::before { content: ""; position: absolute; width: 60%; height: 260%; right: -12%; top: -80%; border-radius: 999px; background: rgba(255,255,255,.07); transform: rotate(30deg); }
.watch-card::after { content: ""; position: absolute; width: 30%; height: 260%; right: 22%; top: -90%; border-radius: 999px; background: rgba(255,255,255,.05); transform: rotate(30deg); }
.watch-card > * { position: relative; z-index: 1; }
.video { aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; box-shadow: 0 20px 50px rgba(var(--deep-rgb), .5); }
.video iframe { width: 100%; height: 100%; border: 0; display: block; }
.watch h2 { color: #fff; }

/* about */
.about { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px, 7vw, 110px); padding: clamp(80px, 11vw, 150px) var(--pad); align-items: center; max-width: 1300px; margin: 0 auto; }
.about-photo { margin: 0; position: relative; }
.about-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 999px 999px 0 0; border-bottom: 10px solid var(--blue); box-shadow: 10px 0 0 var(--blue); }
.about-photo figcaption { font-weight: 600; padding-top: 14px; color: var(--blue); }
blockquote { margin: 1.8em 0 0; padding-left: 20px; border-left: 4px solid var(--blue); font-size: 1.35rem; font-weight: 700; line-height: 1.3; max-width: 30ch; }
cite { display: block; margin-top: 8px; font-style: normal; font-size: .85rem; color: var(--blue); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }

/* invite */
.invite { text-align: center; padding: clamp(40px, 6vw, 80px) var(--pad) clamp(70px, 9vw, 120px); }
.invite h2 { color: var(--blue); font-size: clamp(2.4rem, 6vw, 5rem); }
.invite p { margin-left: auto; margin-right: auto; }
.invite .big { font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 700; line-height: 1.3; max-width: 28ch; }
.invite .pill { margin-top: 1em; }

/* arch loop */
.arches { overflow: hidden; padding: 0 0 clamp(70px, 9vw, 130px); }
.arch-track { display: flex; gap: clamp(16px, 2.4vw, 34px); width: max-content; animation: slide 70s linear infinite; }
.arches:hover .arch-track { animation-play-state: paused; }
.arch-track figure { margin: 0; flex: none; width: clamp(200px, 22vw, 320px); aspect-ratio: 3 / 4; border-radius: 999px 999px 0 0; overflow: hidden; border-bottom: 8px solid var(--blue); border-right: 8px solid var(--blue); background: var(--blue); }
.arch-track img { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 0 0; }

/* ministries */
.ministries { padding: 0 0 clamp(80px, 11vw, 150px); }
.section-head { max-width: 760px; margin-bottom: 2em; }
.section-head h2 { color: var(--blue); }
.ministries .section-head { padding: 0 var(--pad); }
.panels { display: flex; height: clamp(440px, 62vh, 600px); gap: 8px; padding: 0 var(--pad); }
.panel { position: relative; flex: 1; overflow: hidden; color: #fff; background: var(--blue-deep); transition: flex .6s cubic-bezier(.2,.7,.2,1); border-radius: 999px 999px 14px 14px; }
.panel:hover, .panel:focus-visible { flex: 2.6; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.panel:hover img { transform: scale(1.06); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(var(--deep-rgb), .92) 0%, rgba(var(--deep-rgb), .15) 55%, transparent 80%); }
.panel div { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 24px; text-align: center; }
.panel h3 { margin: 0 0 .25em; font-size: clamp(1.05rem, 1.7vw, 1.5rem); font-weight: 800; white-space: nowrap; }
.panel p { margin: 0 auto; font-size: .92rem; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s, opacity .5s; }
.panel:hover p, .panel:focus-visible p { max-height: 90px; opacity: 1; }

/* calendar */
.cal { padding: 0 20px clamp(60px, 8vw, 110px); }
.cal-card { background: #fff; border-radius: 14px; padding: clamp(24px, 5vw, 70px); }
.cal-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.cal-main, .cal-side { background: var(--bg); border-radius: 12px; padding: 22px; }
.cal-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cal-bar h3 { margin: 0; flex: 1; font-size: 1.15rem; font-weight: 800; }
.cal-bar button { border: 0; background: #fff; border-radius: 50%; width: 40px; height: 40px; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--blue); font-weight: 700; }
.cal-bar button:hover { background: var(--blue); color: #fff; }
.cal-bar .cal-today { width: auto; border-radius: 99px; padding: 0 16px; font-size: .8rem; font-family: var(--font); font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-grid .dow { text-align: center; font-size: .72rem; font-weight: 600; text-transform: uppercase; color: #77706a; padding: 4px 0; letter-spacing: .05em; }
.cal-grid .day { aspect-ratio: 1 / 1; min-height: 44px; border: 0; background: #fff; border-radius: 10px; font: inherit; font-weight: 600; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink); }
.cal-grid .day:hover { background: var(--tint); }
.cal-grid .day.out { background: transparent; color: #aaa39b; font-weight: 400; }
.cal-grid .day.today { box-shadow: inset 0 0 0 2px var(--blue); }
.cal-grid .day.sel { background: var(--blue); color: #fff; }
.dots { display: flex; gap: 3px; height: 8px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
.dot.service { background: var(--service); }
.dot.study { background: var(--study); }
.dot.special { background: var(--special); }
.day.sel .dot { box-shadow: 0 0 0 1.5px #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 16px; font-size: .85rem; color: #5f5953; }
.legend span { display: flex; align-items: center; gap: 6px; }
.cal-side h3 { font-size: 1.15rem; font-weight: 800; }
.ev { border-left: 4px solid var(--service); background: #fff; padding: 14px 16px; border-radius: 0 10px 10px 0; margin-bottom: 14px; }
.ev.study { border-color: var(--study); }
.ev.special { border-color: var(--special); }
.ev h4 { margin: 0 0 2px; font-size: 1rem; font-weight: 700; }
.ev .when-t { font-weight: 600; color: var(--blue); margin: 0; font-size: .9rem; }
.ev.study .when-t { color: #0b7d87; }
.ev.special .when-t { color: var(--special); }
.ev p { margin: 4px 0; font-size: .9rem; }
.ev button { margin-top: 8px; background: var(--blue); color: #fff; border: 0; padding: 9px 18px; border-radius: 99px; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.ev button:hover { background: var(--blue-deep); }
.empty { color: #6d6760; }
.upnext { margin: 22px 0 8px; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }

/* give + contact panels */
.give { padding: 0 20px 20px; }
.give-card, .contact-card { border-radius: 14px; padding: clamp(30px, 6vw, 80px); display: grid; gap: clamp(26px, 5vw, 70px); align-items: center; }
.give-card { background: #fff; grid-template-columns: 1.3fr 1fr; }
.give-card h2 { color: var(--blue); }
.qr img { background: #fff; width: 100%; max-width: 260px; margin-left: auto; padding: 8px; border: 2px solid var(--blue); border-radius: 12px; }
.contact { padding: 0 20px 20px; }
.contact-card { background: var(--blue-deep); color: #fff; grid-template-columns: 1fr 1fr; }
.contact h3 { font-size: 1.1rem; font-weight: 800; }
.contact-list p { display: flex; flex-direction: column; margin-bottom: 1em; }
.contact-list span { font-size: .75rem; color: var(--tint-text); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.contact-list a { text-underline-offset: 4px; word-break: break-word; }
.social { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.4em; }
.social a { padding: 10px 22px; border: 1px solid rgba(255,255,255,.5); border-radius: 99px; text-decoration: none; font-weight: 600; font-size: .9rem; }
.social a:hover { background: #fff; color: var(--blue-deep); }

footer { text-align: center; padding: 34px var(--pad) 44px; color: #4a4540; }
footer p { margin: 0 auto 6px; }
footer strong { font-weight: 800; }

/* motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-img { transform-origin: 60% 40%; animation: drift 24s ease-out both; }
  @keyframes drift { from { scale: 1.12; } to { scale: 1; } }
  .js .hero h1 .ln > span { transform: translateY(110%); animation: rise 1.1s cubic-bezier(.2,.75,.2,1) forwards; }
  .js .hero h1 .ln:nth-child(1) > span { animation-delay: .3s; }
  .js .hero h1 .ln:nth-child(2) > span { animation-delay: .45s; }
  .js .hero h1 .ln:nth-child(3) > span { animation-delay: .6s; }
  @keyframes rise { to { transform: none; } }
  .js .hero-sub, .js .hero .pill { opacity: 0; transform: translateY(16px); animation: fade 1s ease forwards; }
  .js .hero-sub { animation-delay: 1.1s; }
  .js .hero .pill { animation-delay: 1.3s; }
  .js .nav { opacity: 0; animation: fade 1s ease .2s forwards; }
  @keyframes fade { to { opacity: 1; transform: none; } }
  .js .rv { opacity: 0; transform: translateY(30px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.75,.2,1); transition-delay: var(--d, 0s); }
  .js .rv.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .marquee-track, .arch-track { animation: none; } .hero-img { translate: none; } }

/* responsive */
@media (max-width: 900px) {
  .nav { background: rgba(var(--deep-rgb), .95); }
  .nav.scrolled { background: rgba(243,239,233,.95); }
  .nav-toggle { display: block; }
  .nav nav { display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--bg); color: var(--blue); padding: 8px var(--pad) 20px; }
  .nav nav.open { display: flex; }
  .nav nav a { padding: 14px 0; border-bottom: 1px solid #ddd6cc; }
  .nav .nav-cta { text-align: center; margin-top: 12px; border: 0; }
  .hero { min-height: 82vh; }
  .visit, .about, .watch-card, .cal-wrap, .give-card, .contact-card { grid-template-columns: 1fr; }
  .shapes { height: 380px; }
  .about-photo img { max-width: 420px; }
  .qr img { margin: 0; }
  .panels { flex-direction: column; height: auto; }
  .panel { flex: none; height: 240px; border-radius: 120px 120px 14px 14px; }
  .panel p { max-height: 90px; opacity: 1; }
}
@media (max-width: 520px) {
  .cal-main, .cal-side { padding: 14px; }
  .cal-grid { gap: 3px; }
}

/* the slanted photos float gently */
@media (prefers-reduced-motion: no-preference) {
  .shape { animation: float 5.5s ease-in-out infinite; }
  .c-b { animation-duration: 6.5s; animation-delay: -2s; }
  .c-c { animation-duration: 4.8s; animation-delay: -1s; }
  @keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -18px; } }
}
@media (max-width: 900px) { .cap img { width: 230%; margin-left: -65%; } }
.brand, .nav nav a { white-space: nowrap; }
@media (max-width: 1150px) and (min-width: 901px) { .nav nav { gap: 16px; } .nav nav a { font-size: .72rem; letter-spacing: .03em; } .brand { font-size: 1.05rem; } }

.pill.single span { display: inline-flex; align-items: center; gap: 10px; }

/* forms (Netlify) */
.modal { border: 0; padding: 0; border-radius: 14px; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(var(--deep-rgb), .45); overflow: auto; }
.modal::backdrop { background: rgba(var(--deep-rgb), .65); backdrop-filter: blur(4px); }
.modal form { padding: clamp(24px, 5vw, 44px); }
.modal h2 { font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--blue); margin-bottom: .3em; }
.modal label { display: block; font-weight: 600; font-size: .85rem; margin: 0 0 14px; }
.modal .opt { font-weight: 400; color: #6d6760; }
.modal input[type="text"], .modal input[type="email"], .modal input[type="tel"], .modal textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 14px; font: inherit; font-weight: 400; color: var(--ink); background: var(--bg); border: 2px solid transparent; border-radius: 10px; }
.modal textarea { resize: vertical; }
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--blue); background: #fff; }
.modal .check { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.modal .check input { width: 18px; height: 18px; accent-color: var(--blue); }
.modal-x { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--bg); color: var(--blue); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.modal-x:hover { background: var(--blue); color: #fff; }
.submit { background: var(--blue); color: #fff; border: 0; padding: 15px 30px; border-radius: 99px; font: inherit; font-weight: 600; cursor: pointer; margin-top: 6px; }
.submit:hover { background: var(--blue-deep); }
.submit[disabled] { opacity: .6; cursor: wait; }
.form-note { margin: 14px 0 0; font-weight: 600; }
.form-note.ok { color: #0b7d4a; }
.form-note.err { color: #b3261e; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .modal[open] { animation: pop .35s cubic-bezier(.2,.75,.2,1); }
  @keyframes pop { from { opacity: 0; transform: translateY(18px) scale(.98); } }
}


/* stacked cards on small screens: no resize on hover (it made them jump under the cursor) */
@media (max-width: 900px) {
  .panel, .panel:hover, .panel:focus-visible { flex: none; transition: none; }
  .panel:hover img { transform: none; }
}

/* small screens: ministries as a two-column grid */
@media (max-width: 900px) {
  .panels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: auto; }
  .panel { height: clamp(260px, 62vw, 340px); border-radius: 999px 999px 14px 14px; }
  .panel:last-child { grid-column: 1 / -1; border-radius: 14px; height: clamp(200px, 48vw, 280px); }
  .panel div { left: 12px; right: 12px; bottom: 16px; }
  .panel h3 { font-size: clamp(1rem, 4.4vw, 1.4rem); white-space: normal; }
  .panel p { font-size: .8rem; line-height: 1.4; }
}


/* typographic hero: royal blue with big floating slanted shapes */
.hero { background: var(--blue); min-height: min(92vh, 860px); }
.hero::after { display: none; }
.hero-shapes { position: absolute; inset: 0; overflow: hidden; }
.hero-shapes i { position: absolute; display: block; border-radius: 999px; transform: rotate(30deg); }
.hs1 { width: 17vw; height: 95vh; right: 30%; top: -18vh; background: rgba(255,255,255,.09); animation: float 7s ease-in-out infinite; }
.hs2 { width: 17vw; height: 95vh; right: 12%; top: -4vh; background: rgba(255,255,255,.16); animation: float 8s ease-in-out -2s infinite; }
.hs3 { width: 17vw; height: 95vh; right: -6%; top: -22vh; background: var(--blue-deep); opacity: .55; animation: float 9s ease-in-out -4s infinite; }
.hs4 { width: 9vw; height: 9vw; right: 41%; bottom: 10%; border-radius: 50% 0 50% 50%; transform: rotate(-45deg); background: var(--tint-text); opacity: .85; animation: float 6s ease-in-out -1s infinite; }
.hero-text { padding-top: 160px; }
.hero h1 { font-size: clamp(2.6rem, 8.2vw, 7.4rem); }
.hero .pill.white span, .hero .pill.white i { background: #fff; color: var(--blue); }
.hero .pill.white:hover span, .hero .pill.white:hover i { background: var(--bg); }
.nav:not(.scrolled) .nav-cta { background: #fff; color: var(--blue); }
@media (max-width: 900px) {
  .hs1 { right: 38%; width: 26vw; } .hs2 { right: 12%; width: 26vw; } .hs3 { right: -14%; width: 26vw; } .hs4 { width: 14vw; height: 14vw; right: 52%; }
  .hero { min-height: 78vh; }
}
@media (prefers-reduced-motion: reduce) { .hero-shapes i { animation: none; } }

/* logo mark */
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .mark { width: 38px; height: 38px; flex: none; }
.foot-brand { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--blue); }
.foot-brand .mark { width: 32px; height: 32px; }
.foot-brand span { color: #4a4540; }
@media (max-width: 380px) { .brand span { font-size: .95rem; } }


/* hero background: the logo, very large and faint */
.hs1, .hs2, .hs3, .hs4 { display: none; }
.hero-mark { position: absolute; right: -4%; top: 50%; width: min(105vh, 70vw); height: auto; transform: translateY(-50%); color: #fff; }
.hm-glow { fill: rgba(255,255,255,.12); }
.hm-rays { opacity: .22; transform-origin: 50px 50px; }
.hm-cross { opacity: .16; }
@media (prefers-reduced-motion: no-preference) {
  .hm-rays { animation: spin 120s linear infinite; }
  .hm-glow { animation: breathe 6s ease-in-out infinite; transform-origin: 50px 50px; }
  @keyframes spin { to { transform: rotate(360deg); } }
  @keyframes breathe { 0%, 100% { opacity: .6; transform: scale(.96); } 50% { opacity: 1; transform: scale(1.04); } }
}
@media (max-width: 900px) { .hero-mark { width: 150vw; right: -55%; top: 62%; } }


/* the church's own badge, sitting inside the ring of rays */
.hero-shapes { --d: min(105vh, 70vw); }
.hero-mark { width: var(--d); }
.hm-cross, .hm-glow { display: none; }
.hm-rays { opacity: .3; }
.hero-badge { position: absolute; width: calc(var(--d) * .62); height: auto; right: calc(-4% + var(--d) * .19); top: 50%; transform: translateY(-50%); filter: drop-shadow(0 20px 50px rgba(var(--deep-rgb), .55)); }
.brand .mark, .foot-brand .mark { border-radius: 50%; object-fit: cover; }
.brand .mark { width: 46px; height: 46px; }
.foot-brand .mark { width: 40px; height: 40px; }
@media (max-width: 900px) {
  .hero-shapes { --d: 150vw; }
  .hero-mark { right: -55%; }
  .hero-badge { right: calc(-55% + var(--d) * .19); top: 62%; opacity: .3; }
}
.hero h1 { font-size: clamp(2.6rem, 6.5vw, 6.6rem); }
@media (max-width: 900px) { .hero h1 { font-size: clamp(2.6rem, 11vw, 4.6rem); } }
.hero h1 .ln { padding-right: .14em; margin-right: -.14em; }
@media (min-width: 901px) { .hero-mark { right: -10%; } .hero-badge { right: calc(-10% + var(--d) * .19); } }

/* hero motion v2: ripples instead of rays, floating badge, breathing glow */
.hero-mark { display: none; }
.hero-shapes { --rr: -10%; --rt: 50%; }
.hero-badge { right: calc(var(--rr) + var(--d) * .19); top: var(--rt); }
@media (max-width: 900px) { .hero-shapes { --rr: -55%; --rt: 62%; } }
@media (prefers-reduced-motion: no-preference) {
  .hero-badge { animation: glow 5s ease-in-out infinite; }
  @keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
  @keyframes glow { 0%, 100% { filter: drop-shadow(0 20px 50px rgba(var(--deep-rgb), .55)) drop-shadow(0 0 22px rgba(255, 205, 100, .18)); } 50% { filter: drop-shadow(0 20px 50px rgba(var(--deep-rgb), .55)) drop-shadow(0 0 60px rgba(255, 205, 100, .5)); } }
}

/* hero: rising sparkles */
.hero-shapes .sparks { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero-shapes .sparks i { position: absolute; display: block; bottom: -12px; border-radius: 50%; transform: none; background: radial-gradient(circle, #fff1c0 0%, rgba(255, 205, 100, .6) 40%, rgba(255, 205, 100, 0) 70%); opacity: 0; animation: spark-rise linear infinite; }
@keyframes spark-rise { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 85% { opacity: .8; } 100% { transform: translateY(-105vh); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .hero-shapes .sparks { display: none; } }

/* find a verse, under "Need prayer?" */
.verse-find { grid-column: 1 / -1; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(20px, 4vw, 50px); align-items: stretch; margin-top: clamp(10px, 3vw, 30px); padding-top: clamp(26px, 4vw, 44px); border-top: 1px solid rgba(255, 255, 255, .2); }
.vf-intro h3 { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 800; text-transform: uppercase; margin-bottom: .5em; }
.vf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2em 0; }
.vf-chips button { border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; padding: 9px 16px; border-radius: 99px; font: inherit; font-weight: 600; font-size: .85rem; cursor: pointer; transition: background .2s, color .2s; }
.vf-chips button:hover { background: rgba(255, 255, 255, .18); }
.vf-chips button[aria-pressed="true"] { background: #fff; color: var(--blue-deep); border-color: #fff; }
.vf-note { font-size: .8rem; opacity: .8; margin: 0; }
.vf-card { background: #fff; color: var(--ink); border-radius: 12px; padding: clamp(22px, 3.4vw, 38px); display: flex; flex-direction: column; justify-content: center; min-height: 260px; }
.vf-empty { margin: auto; text-align: center; color: #6d6760; max-width: 28ch; }
.vf-verse { border-left: 5px solid var(--blue); padding-left: clamp(14px, 2.4vw, 24px); }
.vf-verse q { display: block; quotes: "\201C" "\201D"; font-size: clamp(1.15rem, 2.1vw, 1.5rem); font-weight: 600; line-height: 1.45; }
.vf-verse cite { display: block; margin-top: 14px; font-style: normal; font-weight: 800; color: var(--blue); text-transform: none; letter-spacing: 0; font-size: .95rem; }
.vf-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.vf-actions button, .vf-actions a { border: 0; padding: 11px 20px; border-radius: 99px; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer; text-decoration: none; }
.vf-actions .vf-another { background: var(--blue); color: #fff; }
.vf-actions .vf-another:hover { background: var(--blue-deep); }
.vf-actions .vf-read { background: var(--bg); color: var(--blue); }
.vf-actions .vf-pray { background: transparent; color: var(--blue); text-decoration: underline; text-underline-offset: 4px; padding-left: 6px; padding-right: 6px; }
@media (prefers-reduced-motion: no-preference) { .vf-verse { animation: vf-in .5s cubic-bezier(.2, .75, .2, 1); } @keyframes vf-in { from { opacity: 0; transform: translateY(10px); } } }
@media (max-width: 900px) { .verse-find { grid-template-columns: 1fr; } }

/* hero performance: no animated filters; glow is a cheap fading gradient instead */
.hero-badge { animation: none; filter: none; border-radius: 50%; box-shadow: 0 24px 60px rgba(var(--deep-rgb), .55); }
.hero-shapes i.hero-glow { position: absolute; display: block; border-radius: 50%; width: calc(var(--d) * .9); aspect-ratio: 1; height: auto; right: calc(var(--rr) + var(--d) * .05); top: var(--rt); transform: translateY(-50%); background: radial-gradient(circle, rgba(255, 205, 100, .4) 0%, rgba(255, 205, 100, .13) 42%, rgba(255, 205, 100, 0) 68%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .hero-shapes i.hero-glow { animation: hero-glow-pulse 5s ease-in-out infinite; will-change: opacity, transform; }
  @keyframes hero-glow-pulse { 0%, 100% { opacity: .55; transform: translateY(-50%) scale(.96); } 50% { opacity: 1; transform: translateY(-50%) scale(1.04); } }
}
.hero-offscreen .hero-glow, .hero-offscreen .sparks i { animation-play-state: paused; }
.hero-offscreen .hero-shapes i.hero-glow { animation-play-state: paused; }

/* photo loop pace */
.arch-track { animation-duration: 225s; }

/* keep the headline clear of the badge on any screen width (the badge's left edge is 110vw minus 81% of the ring size) */
@media (min-width: 901px) {
  .hero-text { max-width: calc(110vw - 0.81 * min(105vh, 70vw) - 24px + var(--pad)); }
}

/* small phones: keep the menu button on screen and the calendar inside its card */
@media (max-width: 520px) {
  .nav { padding-left: 16px; padding-right: 16px; }
  .brand { gap: 8px; font-size: 1rem; }
  .brand .mark { width: 36px; height: 36px; }
  .nav-toggle { padding: 7px 14px; }
  .cal { padding-left: 12px; padding-right: 12px; }
  .cal-card { padding: 16px; }
  .cal-main, .cal-side { padding: 12px; }
  .cal-wrap > * { min-width: 0; }
  .cal-grid { gap: 3px; }
  .cal-grid .day { min-height: 0; }
  .cal-bar { gap: 6px; }
  .cal-bar h3 { font-size: 1rem; }
  .cal-bar button { width: 34px; height: 34px; }
  .cal-bar .cal-today { width: auto; padding: 0 12px; }
}
@media (max-width: 360px) { .brand { font-size: .88rem; } .brand .mark { width: 32px; height: 32px; } }


/* hero: badge a little further left and slightly smaller; headline never wraps its changing line */
.hero h1 .ln:nth-child(2) { white-space: nowrap; }
@media (min-width: 901px) {
  .hero h1 { font-size: clamp(2.5rem, 6.1vw, 6.2rem); }
  .hero-shapes { --rr: -2%; }
  .hero-badge { width: calc(var(--d) * .6); right: calc(var(--rr) + var(--d) * .2); }
  .hero-glow { right: calc(var(--rr) + var(--d) * .05); }
  .hero-text { max-width: calc(102vw - 0.8 * min(105vh, 70vw) - 24px + var(--pad)); }
}

/* photo row you can scroll, drag or step through (and it still drifts by itself) */
.arch-wrap { position: relative; }
.arch-track { width: auto; max-width: 100%; animation: none !important; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; padding: 0 var(--pad); cursor: grab; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.arch-track::-webkit-scrollbar { display: none; }
.arch-track.dragging { cursor: grabbing; user-select: none; }
.arch-track img { -webkit-user-drag: none; user-select: none; pointer-events: none; }
.arch-track figure { flex: none; }
.arch-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 52px; height: 52px; border-radius: 50%; border: 0; background: #fff; color: var(--blue); font-size: 1.9rem; line-height: 1; cursor: pointer; box-shadow: 0 8px 24px rgba(var(--deep-rgb), .28); transition: background .2s, color .2s; }
.arch-btn:hover { background: var(--blue); color: #fff; }
.arch-btn.prev { left: clamp(10px, 2.5vw, 34px); }
.arch-btn.next { right: clamp(10px, 2.5vw, 34px); }
@media (max-width: 700px) { .arch-btn { width: 42px; height: 42px; font-size: 1.5rem; } }

/* narrow laptops and tablets in landscape: slightly smaller headline so the longest phrase clears the badge */
@media (min-width: 901px) and (max-width: 1200px) { .hero h1 { font-size: 5vw; } }

/* left slanted photo: slide the picture over so the man's face is not sliced by the edge (shift = 17.7% of the shape's width) */
@media (min-width: 901px) { .c-a img { width: 215%; margin-left: -39.8%; } }
@media (max-width: 900px) { .c-a img { width: 245%; margin-left: -54.8%; } }
