/* New Covenant Ministries website: extra motion on the home page (and the scroll line in the header) */

/* ---------- gold line under the header that fills as you scroll */
.progress { position: absolute; left: 0; bottom: -1px; height: 3px; width: 100%; background: linear-gradient(90deg, var(--gold), #f6dfa0); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* ---------- hero: beams of light from the star, shimmering title, scroll cue */
.hero--sky { min-height: min(100svh - 4.25rem, 58rem); display: flex; align-items: center; }
.hero--sky > .wrap { width: min(100% - 2rem, var(--max)); will-change: transform; }
.beams { position: absolute; right: calc(12% + 4.5rem); top: calc(14% + 4.5rem); width: 0; height: 0; pointer-events: none; }
.beams::before { content: ""; position: absolute; left: -70vmax; top: -70vmax; width: 140vmax; height: 140vmax; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgb(255 236 180 / 9%) 0deg 3deg, transparent 3deg 14deg);
  -webkit-mask: radial-gradient(circle, #000 0 6%, rgb(0 0 0 / 50%) 22%, transparent 55%); mask: radial-gradient(circle, #000 0 6%, rgb(0 0 0 / 50%) 22%, transparent 55%);
  animation: spin 90s linear infinite, beamsIn 3s ease 1.5s both; }
@keyframes beamsIn { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 860px) { .beams { right: calc(2% + 3rem); top: 2.5rem; } }
.star-layer { position: absolute; inset: 0; pointer-events: none; will-change: transform; }
.shimmer { background: linear-gradient(100deg, #fff 0 40%, #f6dfa0 48%, #fff7e0 50%, #f0c96a 52%, #fff 60% 100%); background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: titleIn 1s cubic-bezier(.2, .7, .2, 1) .25s both, shine 6s ease-in-out 2s infinite; }
@keyframes shine { 0%, 55% { background-position: 100% 0; } 85%, 100% { background-position: 0 0; } }
.btn-glow { position: relative; }
.btn-glow::after { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid rgb(240 201 106 / 70%); animation: ring 2.6s ease-out infinite; pointer-events: none; }
@keyframes ring { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.18, 1.45); } }
.scroll-cue { position: absolute; left: 50%; bottom: 1.1rem; width: 1.6rem; height: 2.6rem; margin-left: -.8rem; border: 2px solid rgb(255 255 255 / 45%); border-radius: 999px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: .45rem; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #f0c96a; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@media (max-width: 860px) { .scroll-cue { display: none; } }

/* ---------- countdown digits flip as they change */
.countdown b.flip { animation: flip .45s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes flip { from { transform: rotateX(90deg); opacity: .2; } to { transform: none; opacity: 1; } }
.countdown div { perspective: 300px; }

/* ---------- prophecy: floating motes of light */
.motes { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.motes i { position: absolute; left: var(--x); bottom: -1rem; width: 6px; height: 6px; border-radius: 50%; background: #f6dfa0; box-shadow: 0 0 10px 3px rgb(240 201 106 / 60%); transform: scale(var(--s)); animation: mote var(--d) linear var(--w) infinite; opacity: 0; }
@keyframes mote { 0% { transform: translate(0, 0) scale(var(--s)); opacity: 0; } 15% { opacity: .8; } 50% { transform: translate(1.5rem, -45vh) scale(var(--s)); } 85% { opacity: .6; } 100% { transform: translate(-1rem, -95vh) scale(var(--s)); opacity: 0; } }

/* ---------- mission: the turning globe and the cross (from the church's logo) */
.globe-wrap { position: relative; width: min(100%, 26rem); aspect-ratio: 1; margin-inline: auto; }
.globe { width: 100%; height: 100%; display: block; }
.globe-wrap::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgb(31 107 82 / 18%), transparent 65%); }
.globe-cross { position: absolute; left: 50%; top: -6%; width: 22%; margin-left: -11%; fill: #fff; stroke: var(--green-900); stroke-width: 2.5; filter: drop-shadow(4px 6px 0 var(--green-900)) drop-shadow(0 10px 18px rgb(10 46 34 / 25%)); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }
.globe-pin { position: absolute; left: 41%; top: 40%; display: flex; align-items: center; gap: .4rem; font: 700 .78rem var(--font-body); color: var(--green-900); background: #fff; padding: .3rem .6rem .3rem .35rem; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; transition: opacity .6s .8s; }
.globe-pin i { width: .7rem; height: .7rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgb(200 150 45 / 70%); animation: ping 2s ease-out infinite; }
.globe-wrap.in .globe-pin { opacity: 1; }
@keyframes ping { to { box-shadow: 0 0 0 14px rgb(200 150 45 / 0%); } }
.ink-sweep { background: linear-gradient(transparent 62%, rgb(240 201 106 / 55%) 62% 92%, transparent 92%) no-repeat 0 0 / 0% 100%; transition: background-size 1.2s cubic-bezier(.6, 0, .2, 1) .4s; }
.reveal.in .ink-sweep { background-size: 100% 100%; }

/* ---------- service times come in one after another; the next one glows */
.stagger .time { opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .5s ease, transform .5s cubic-bezier(.2, .7, .2, 1); }
.stagger.in .time { opacity: 1; transform: none; }
.stagger.in .time:nth-child(2) { transition-delay: .1s; } .stagger.in .time:nth-child(3) { transition-delay: .2s; } .stagger.in .time:nth-child(4) { transition-delay: .3s; }
.time.is-next { animation: nextGlow 2.4s ease-in-out infinite; }
@keyframes nextGlow { 50% { box-shadow: 0 0 0 6px rgb(200 150 45 / 22%), 0 10px 30px rgb(200 150 45 / 25%); } }
.time.is-next .day { background: var(--gold); color: #1b1404; }

/* ---------- pastors: a turning gold ring */
.ringed .leader img { position: relative; z-index: 1; }
.ringed .leader > img { box-shadow: 0 0 0 5px #fff; }
.ringed .leader { position: relative; }
.ringed .leader::before { content: ""; position: absolute; left: calc(1.5rem - 7px); top: 50%; width: calc(9rem + 14px); height: calc(9rem + 14px); margin-top: calc(-4.5rem - 7px); border-radius: 50%; background: conic-gradient(var(--gold), #f6dfa0, var(--green-700), var(--gold)); animation: spin 6s linear infinite; }
@media (max-width: 520px) { .ringed .leader::before { left: 50%; top: 1.5rem; margin: -7px 0 0 calc(-4.5rem - 7px); } }

/* ---------- outreach cards: tilt toward the pointer, icons draw themselves */
.tilt { transition: transform .25s ease, box-shadow .25s ease; transform: perspective(800px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); will-change: transform; }
.tilt:hover { --ty: -6px; box-shadow: var(--shadow); }
.draw .icon svg * { stroke-dasharray: var(--len, 200); stroke-dashoffset: var(--len, 200); }
.draw.in .icon svg * { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s cubic-bezier(.6, 0, .2, 1) .3s; }
.draw .icon { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1), background .3s; }
.draw:hover .icon { transform: rotate(-8deg) scale(1.1); background: var(--gold); }

/* ---------- most recent service: a pulsing play button */
.player-pulse { display: block; }
.player-pulse img { transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.player-pulse:hover img { transform: scale(1.05); }
.play-orb { position: absolute; left: 50%; top: 50%; width: 4.5rem; height: 4.5rem; margin: -2.25rem 0 0 -2.25rem; border-radius: 50%; background: rgb(255 255 255 / 92%); color: var(--green-800); display: grid; place-items: center; box-shadow: 0 0 0 0 rgb(255 255 255 / 60%); animation: orb 2s ease-out infinite; }
.play-orb svg { width: 1.8rem; height: 1.8rem; margin-left: .25rem; }
@keyframes orb { to { box-shadow: 0 0 0 1.6rem rgb(255 255 255 / 0%); } }

/* ---------- closing banner: a sweep of light */
.cta-shine { position: relative; overflow: hidden; }
.cta-shine::after { content: ""; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / 45%), transparent); transform: skewX(-18deg); animation: sweep 5s ease-in-out 1s infinite; }
@keyframes sweep { 0%, 60% { left: -40%; } 100% { left: 130%; } }

/* reduced motion (html.calm, set by the page's script) */
  .calm .beams::before, .calm .btn-glow::after, .calm .scroll-cue span, .calm .motes i, .calm .globe-cross, .calm .globe-pin i, .calm .time.is-next, .calm .ringed .leader::before, .calm .play-orb, .calm .cta-shine::after { animation: none !important; }
  .calm .motes { display: none; }
  .calm .stagger .time, .calm .draw .icon svg * { opacity: 1; transform: none; stroke-dashoffset: 0; }

