/* Elim Oasis — craft layer: identity marks, motion, set pieces. Loaded after elim.css. */
:root {
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dawn: #F2B36B; --day: #E6F0F5; --dusk: #E59A55;
}
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; font: 600 14px/1 var(--sans); }
.skip:focus { top: 12px; }
h1, h2, h3, .verse-set { text-wrap: balance; }
.on-dark .lead { color: rgba(255,255,255,.8); }
.on-dark .link { color: #fff; }
.sand-2 { background: var(--sand-2); }

/* ---------- temperature bar: sand → spring → night ---------- */
.temp { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; }
.temp i { display: block; height: 100%; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, var(--orange) 0%, #6FA8C8 55%, var(--night) 100%); }

@keyframes turn { to { transform: rotate(360deg); } }
@keyframes well { 0%, 70%, 100% { transform: scale(1); opacity: 1; } 35% { transform: scale(1.5); opacity: .55; } }

/* ---------- hero ---------- */
.hero > img { transform: scale(1.08); transition: transform 14s var(--ease-out); }
.hero.in > img { transform: scale(1); }
.hero::before { background:
  radial-gradient(90% 60% at 18% 30%, rgba(239,131,6,.20), transparent 62%),
  linear-gradient(180deg, rgba(8,18,36,.12) 0%, rgba(8,18,36,.22) 40%, rgba(8,18,36,.78) 100%); }
.triad { font-size: clamp(40px, 5.4vw, 84px); line-height: 1.16; }
.triad .line { display: block; overflow: hidden; padding-bottom: .06em; }
.triad .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.3s var(--ease-out); }
.triad .line:nth-child(2) > span { transition-delay: .18s; }
.triad .line:nth-child(3) > span { transition-delay: .36s; }
.hero.in .triad .line > span { transform: none; }
.triad .you > span { color: #FFD6A3; }
.triad .you > span::after { content: ""; display: block; height: 2px; margin-top: .1em; background: var(--orange); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease-out) 1.2s; }
.hero.in .triad .you > span::after { transform: scaleX(1); }
.hero .kicker, .hero-actions, .hero .now { opacity: 0; transform: translateY(10px); transition: opacity 1s ease .9s, transform 1s var(--ease-out) .9s; }
.hero.in .kicker, .hero.in .hero-actions, .hero.in .now { opacity: 1; transform: none; }
.hero .kicker { display: flex; align-items: center; }
.water { position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; overflow: hidden; }
.water svg { width: 200%; height: 100%; display: block; animation: drift 38s linear infinite; }
.water .w1 { fill: var(--sand); }
.water .w2 { fill: var(--sand); opacity: .45; }
.water .wl { fill: none; stroke: var(--blue); stroke-opacity: .28; stroke-width: 1.2; vector-effect: non-scaling-stroke; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------- 03 the centre word ---------- */
.center-word { background: var(--sand); padding-top: var(--s5); }
.cw-head { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; align-items: center; padding-bottom: var(--s5); border-bottom: 1px solid var(--rule); }
.cw-verse { grid-column: 5 / span 8; display: grid; gap: 26px; }
.verse-set { font: 200 clamp(28px, 2.9vw, 44px)/1.55 var(--serif); letter-spacing: -.03em; text-indent: -.45em; }
.verse-set::before { content: "“"; }
.verse-set::after { content: "”"; }
.verse-set em { white-space: nowrap; font-style: normal; font-weight: 400; background-repeat: no-repeat; background-size: 100% .14em; background-position: 0 92%; transition: background-size 1.2s var(--ease-out) .4s; }
.verse-set em.s { color: var(--blue); background-image: linear-gradient(rgba(0,58,143,.22), rgba(0,58,143,.22)); }
.verse-set em.p { color: var(--orange-ink); background-image: linear-gradient(rgba(239,131,6,.3), rgba(239,131,6,.3)); }
.reveal:not(.in) .verse-set em { background-size: 0 .14em; }
.halves { display: grid; grid-template-columns: 1fr 1fr; }
.half { padding: var(--s5) 48px 0 0; display: grid; gap: 18px; align-content: start; }
.half + .half { padding: var(--s5) 0 0 48px; border-left: 1px solid var(--rule); }
.half .art { height: 120px; margin-bottom: 12px; }
.half .big { font: 200 96px/1 var(--serif); letter-spacing: -.05em; color: var(--blue); }
.half .big.p { color: var(--orange-ink); }
.half blockquote { font: 300 19px/1.7 var(--serif); color: var(--ink); border-left: 2px solid var(--rule); padding-left: 20px; margin-top: 8px; }
.half blockquote cite { display: block; font: 400 13px/1.6 var(--sans); font-style: normal; color: var(--ink-3); margin-top: 6px; }

/* ---------- 04 week chart craft ---------- */
.week .axis .sky { position: absolute; right: 0; top: 20px; bottom: 20px; width: 4px; border-radius: 2px;
  background: linear-gradient(180deg, var(--night) 0%, var(--dawn) 6%, #F7D9AE 14%, #BFD8E8 30%, #A9CBE2 72%, var(--dusk) 84%, #3D4F7A 94%, var(--night) 100%); }
.week .tick { right: 14px; }
.week.focusing .ev { opacity: .28; transition: opacity .25s ease; }
.week.focusing .ev.lit { opacity: 1; }
.week .ev { transition: opacity .25s ease, transform .25s ease; cursor: default; }
.week .ev.lit { background: rgba(255,255,255,.7); }
.nowline::after { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(239,131,6,.5); animation: pulse 2.4s infinite; }
.nowline::before { background: transparent; }
.skylegend i { width: 28px !important; height: 4px !important; border-radius: 2px; background: linear-gradient(90deg, var(--dawn), #BFD8E8, var(--dusk), var(--night)); }

/* ---------- 06 mountain tally ---------- */
.mountain { min-height: 760px; }
.mountain .copy { grid-column: 1 / span 5; }
.tally-wrap { grid-column: 8 / span 5; display: grid; gap: 18px; }
.tally-num { display: flex; align-items: flex-end; gap: 18px; }
.tally-num b { font: 200 clamp(88px, 9vw, 140px)/.85 var(--serif); letter-spacing: -.05em; }
.tally-num span { font: 400 14px/1.6 var(--sans); color: rgba(255,255,255,.78); padding-bottom: 8px; }
.tally svg { width: 100%; height: auto; display: block; }
.tally rect { fill: rgba(255,255,255,.62); transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); transition: transform .5s var(--ease-out); transition-delay: calc(var(--r) * 70ms); }
.tally.in rect { transform: scaleY(1); }
.tally rect.latest { fill: var(--orange); }
.tally-key { font: 400 13px/1.5 var(--sans); color: rgba(255,255,255,.7); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tally-key i { width: 2px; height: 12px; background: rgba(255,255,255,.7); display: inline-block; }
.tally-key i.o { background: var(--orange); margin-left: 14px; }

/* ---------- 07 nations ---------- */
.night-sec { background: var(--night); color: #fff; }
.night-sec .eyebrow { color: #8FB7D6; }
.nations-map svg { width: 100%; height: auto; display: block; }
.nations-map .grat path { stroke: rgba(255,255,255,.08); stroke-width: 1; fill: none; stroke-dasharray: 2 6; }
.nations-map .grat-l text { font: 400 11px var(--sans); fill: rgba(255,255,255,.35); text-anchor: end; }
.nations-map .out path, .nations-map .in path { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out); }
.nations-map .out path { stroke: var(--orange); stroke-width: 1.6; }
.nations-map .in path { stroke: #8FB7D6; stroke-width: 1.2; }
.nations-map.in .out path, .nations-map.in .in path { stroke-dashoffset: 0; }
.nations-map .out path:nth-child(2) { transition-delay: .25s; } .nations-map .out path:nth-child(3) { transition-delay: .5s; } .nations-map .out path:nth-child(4) { transition-delay: .75s; }
.nations-map .pin text { font: 400 15px var(--serif); fill: rgba(255,255,255,.9); }
.nations-map .pin.o circle { fill: var(--orange); }
.nations-map .pin.i circle { fill: #8FB7D6; }
.nations-map .pin.i text { fill: rgba(255,255,255,.62); font-size: 13.5px; }
.nations-map .hub circle { fill: #fff; }
.nations-map .hub .halo { fill: none; stroke: rgba(255,255,255,.5); transform-box: fill-box; transform-origin: center; animation: halo 3.2s var(--ease) infinite; }
.nations-map .hub text { font-size: 18px; font-weight: 600; }
@keyframes halo { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
.nations-map figcaption { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 18px; font: 400 14px/1.4 var(--sans); color: rgba(255,255,255,.75); align-items: center; }
.nations-map figcaption span { display: inline-flex; gap: 10px; align-items: center; }
.nations-map figcaption i { width: 18px; height: 2px; display: inline-block; }
.nations-map figcaption i.o { background: var(--orange); } .nations-map figcaption i.i { background: #8FB7D6; }
.nations-map figcaption .small { color: rgba(255,255,255,.45); margin-left: auto; }

/* ---------- 08 gallery ---------- */
.story .h3 .en { display: block; font: 400 13px/1.4 var(--sans); color: var(--ink-3); letter-spacing: .02em; margin-top: 4px; }
.story .ph { position: relative; }
.story .ph::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(42,33,31,.08); pointer-events: none; }
.story .h3 { transition: color .25s ease; }
.story:hover .h3 { color: var(--blue); }

/* ---------- 09 roots river ---------- */
.river { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); position: relative; padding-top: 44px; }
.river::before { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: linear-gradient(90deg, rgba(0,58,143,.25), var(--blue) 80%, var(--orange)); transform-origin: left; transform: scaleX(0); transition: transform 2.4s var(--ease-out); }
.river.in::before { transform: scaleX(1); }
.river li { position: relative; padding-right: 24px; display: grid; gap: 8px; opacity: 0; transform: translateY(8px); transition: opacity .8s ease, transform .8s var(--ease-out); }
.river.in li { opacity: 1; transform: none; }
.river li:nth-child(2) { transition-delay: .3s; } .river li:nth-child(3) { transition-delay: .6s; } .river li:nth-child(4) { transition-delay: .9s; } .river li:nth-child(5) { transition-delay: 1.2s; } .river li:nth-child(6) { transition-delay: 1.5s; }
.river li::before { content: ""; position: absolute; left: 0; top: -36px; width: 10px; height: 10px; border-radius: 50%; background: var(--sand-2); border: 2px solid var(--blue); }
.river li.latest::before { background: var(--orange); border-color: var(--orange); box-shadow: 0 0 0 6px rgba(239,131,6,.18); }
.river b { font: 300 24px/1.2 var(--serif); letter-spacing: -.02em; color: var(--blue); }
.river li.latest b { color: var(--orange-ink); }
.river span { font: 400 15.5px/1.6 var(--sans); color: var(--ink-2); }

/* ---------- 10 route map craft ---------- */
.map .mono { font: 400 12px var(--sans); fill: var(--ink-2); letter-spacing: 1.5px; }
.map .lbl { font: 400 13px var(--sans); fill: var(--ink-2); }
.map .sub { font: 400 11.5px var(--sans); fill: var(--ink-3); }
.map .serif { font: 400 16px var(--serif); fill: var(--ink); } .map .serif.s { font-size: 14px; }
.map .e1 { font: 600 14px var(--sans); fill: var(--blue); }
.map .bldg { fill: none; stroke: rgba(42,33,31,.35); transition: stroke .3s ease, fill .3s ease; }
.map .bldg.main { fill: var(--sand); stroke: var(--orange); stroke-width: 1.5; }
.map .walk { fill: none; stroke: var(--orange); stroke-width: 3; stroke-dasharray: 2 9; stroke-linecap: round; }
.map .leg { fill: none; stroke: var(--blue); stroke-width: 6; stroke-linecap: round; opacity: 0; transition: opacity .3s ease; }
.map .leg.on { opacity: .28; }
.map .bldg.on { stroke: var(--blue); fill: rgba(0,58,143,.06); }
.map .stn circle { fill: var(--blue); }
.map .walker { fill: var(--orange); stroke: #fff; stroke-width: 2; }
.route li { cursor: default; transition: background .25s ease; outline-offset: -2px; }
.route li:hover, .route li:focus-visible { background: rgba(255,255,255,.5); }

/* ---------- 11 paths ---------- */
.path.leave .eyebrow { color: #8FB7D6; }

/* ---------- footer ---------- */
.footer .base span:last-child { font-family: var(--serif); }

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .triad { font-size: 38px; }
  .cw-head { grid-template-columns: 1fr; gap: 32px; }
  .cw-verse { grid-column: 1; }
  .verse-set { font-size: 25px; }
  .halves { grid-template-columns: 1fr; }
  .half, .half + .half { padding: var(--s4) 0 var(--s4); border-left: 0; }
  .half + .half { border-top: 1px solid var(--rule); }
  .half .big { font-size: 72px; }
  .mountain .copy, .tally-wrap { grid-column: 1 / -1; }
  .tally-wrap { margin-top: 32px; }
  .nations-map { margin-inline: calc(-1 * var(--margin)); }
  .nations-map figcaption { padding-inline: var(--margin); }
  .nations-map .pin text { font-size: 26px; } .nations-map .pin.i text { font-size: 22px; } .nations-map .grat-l { display: none; }
  .river { grid-template-columns: 1fr; padding-top: 0; padding-left: 32px; gap: 28px; }
  .river::before { left: 4px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, rgba(0,58,143,.25), var(--blue) 80%, var(--orange)); }
  .river.in::before { transform: scaleY(1); }
  .river li::before { left: -33px; top: 6px; }
  .strip > span:first-child { display: none; }
  .strip { justify-content: flex-end; }
  .footer .base { flex-direction: column; gap: 10px; line-height: 1.5; }
  .hero .kicker { margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
}

/* scrims sit above the photo, content above the scrim */
.hero::before, .mountain::before { z-index: 1; }
.hero-in, .mountain-in { z-index: 2; }
.hero .credit, .hero .water { z-index: 2; }

/* render/capture mode: final state, no motion */
.static *, .static *::before, .static *::after { transition: none !important; animation: none !important; }

/* ---------- v4b: the Sunday schedule lives in the hero (content from the visit-first brief) ---------- */
.hero { min-height: min(88vh, 860px); }
.hero-in { padding-bottom: 116px; }
.hero-copy { grid-column: 1 / span 7; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(270deg, rgba(8,18,36,.62) 0%, rgba(8,18,36,.30) 34%, rgba(8,18,36,0) 52%); }
.sunday { grid-column: 9 / span 4; align-self: end; color: #fff; }
.sunday-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 12px; border-bottom: 2px solid #8FB7D6; }
.sunday-head h2 { font: 400 22px/32px var(--serif); letter-spacing: -.01em; }
.sunday-head span { font: 500 13px/1 var(--sans); color: rgba(255,255,255,.72); }
.sunday-rows li { display: flex; justify-content: space-between; align-items: baseline; height: 64px; padding-top: 14px; border-bottom: 1px solid rgba(255,255,255,.24); }
.sunday-rows .name { font: 400 19px/28px var(--serif); }
.sunday-rows .time { font: 300 36px/40px var(--sans); letter-spacing: -.02em; }
.now-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 14px; font: 400 14px/22px var(--sans); color: rgba(255,255,255,.78); }
.now-line b { font-weight: 600; color: #fff; }
.sunday-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; margin-top: 24px; }
.sunday-actions .link { color: #fff; min-height: 48px; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
.sunday-actions .link::after { content: none; }
.sunday .btn { height: 56px; }

@media (max-width: 900px) {
  .hero { min-height: 0; display: block; overflow: visible; }
  .hero > img { height: 268px; bottom: auto; }
  .hero::before { height: 268px; bottom: auto; }
  .hero::after { display: none; }
  .hero-in { display: block; padding: 0; }
  .hero-copy { height: 268px; padding: 28px var(--margin) 0; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 36px; }
  .hero .kicker { margin-bottom: 14px; font-size: 13px; }
  .triad { font-size: 29px; line-height: 1.22; }
  .water { top: 232px; bottom: auto; height: 40px; }
  .sunday { background: var(--sand); color: var(--ink); padding: 16px var(--margin) 8px; }
  .sunday-head { border-bottom-color: var(--blue); }
  .sunday-head span { color: var(--ink-3); }
  .sunday-rows li { height: 56px; padding-top: 12px; border-bottom-color: var(--rule); }
  .sunday-rows .name { font-size: 18px; }
  .sunday-rows .time { font-size: 30px; line-height: 34px; font-weight: 400; color: var(--ink); }
  .now-line { color: var(--ink-2); margin-top: 10px; }
  .now-line b { color: var(--ink); }
  .sunday-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 0; margin-top: 16px; }
  .sunday-actions .btn { grid-column: 1 / -1; width: 100%; justify-content: center; }
  .sunday-actions .link { color: var(--blue); }
  .sunday-actions .link:last-child { justify-self: end; }
}
@media (max-width: 359px) {
  .triad { font-size: 25px; }
  .sunday-rows .name { font-size: 17px; }
  .sunday-rows .time { font-size: 26px; }
}

/* v4b archive, bulletin, access */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.archive-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; border-bottom: 1px solid var(--rule-blue); padding-bottom: 14px; }
.archive li { display: grid; grid-template-columns: 140px 1fr 180px 180px; gap: 24px; align-items: baseline; padding: 20px 0; border-bottom: 1px solid var(--rule-blue); }
.archive .date { font: 400 14px/22px var(--sans); color: var(--ink-3); }
.archive .title { font: 400 21px/30px var(--serif); letter-spacing: -.015em; }
.archive .svc { font: 400 15px/22px var(--sans); color: var(--ink-2); }
.archive .act { display: grid; justify-items: end; text-align: right; }
.archive .act .link { min-height: 32px; }
.bulletin { margin-top: 40px; background: rgba(255,255,255,.55); padding: 24px 28px; min-height: 148px; display: grid; gap: 6px; align-content: start; max-width: 560px; }
.bulletin p { font: 400 16px/26px var(--sans); }
.access { margin-top: 24px; font: 400 16px/26px var(--sans); color: var(--ink); }
.contact a { color: inherit; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 900px) {
  .archive li { grid-template-columns: 1fr auto; gap: 4px 12px; }
  .archive .date, .archive .title { grid-column: 1 / -1; }
  .archive .title { font-size: 19px; line-height: 28px; }
}

/* ---------- 3D street map ---------- */
.map3d { position: relative; background: var(--sand); border: 0; overflow: hidden; }
.map3d-canvas, .map3d-still { width: 100%; aspect-ratio: 7 / 5; display: block; }
.map3d-canvas { background: linear-gradient(180deg, #EFE5D6, #E8DDCB); }
.map3d-fallback { display: none; }
.map3d.failed .map3d-canvas { display: none; }
.map3d.failed .map3d-fallback { display: block; }
.map3d-fallback p { font: 400 14px/22px var(--sans); color: var(--ink-2); padding: 12px 16px; }
.map3d figcaption { display: flex; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; padding: 12px 0 0; font: 400 13px/20px var(--sans); color: var(--ink-3); background: var(--spring-2); }
.m3-label { font: 400 13px/18px var(--sans); color: var(--ink); background: #FFFFFF; padding: 6px 10px; border-radius: 2px; white-space: nowrap; transform: translateY(-14px); box-shadow: 0 1px 0 rgba(42,33,31,.12); }
.m3-label b { font-weight: 600; margin-right: 6px; }
.m3-label.e1 b { color: var(--blue); }
.m3-label.church { font: 400 15px/20px var(--serif); background: var(--ink); color: #fff; transform: translateY(-74px); }
.m3-label.church b { color: #FFC27A; font-family: var(--serif); }
.m3-label.plaza { color: var(--ink-2); background: rgba(255,255,255,.85); }
.maplibregl-ctrl-attrib { font: 400 11px/16px var(--sans) !important; }

/* ---------- globe ---------- */
.globe-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.globe-stage canvas, .globe-still { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.globe-stage canvas:active { cursor: grabbing; }
.globe-fallback { display: none; }
.globe.failed canvas { display: none; }
.globe.failed .globe-fallback { display: block; }
@media (max-width: 900px) {
  .globe-stage { aspect-ratio: 1 / 1; margin-inline: calc(-1 * var(--margin)); width: calc(100% + 2 * var(--margin)); }
  .map3d-canvas, .map3d-still { aspect-ratio: 4 / 5; }
}

.half .art { height: 150px; }
.half .art svg { width: 100%; height: 100%; display: block; overflow: visible; }

@keyframes spread { 0% { transform: scale(.55); } 100% { transform: scale(1.12); } }
.tally-wrap { gap: 10px; }
.tally svg { width: 100%; height: auto; display: block; }
.tally-key { font: 400 13px/20px var(--sans); color: rgba(255,255,255,.72); max-width: 34em; }
.week .col { background: linear-gradient(180deg, rgba(242,179,107,.20) 0%, rgba(242,179,107,0) 16%, rgba(255,255,255,0) 70%, rgba(229,154,85,.14) 86%, rgba(11,36,71,.10) 100%); }
.week .col.today { background: linear-gradient(180deg, rgba(242,179,107,.26) 0%, rgba(0,58,143,.05) 16%, rgba(0,58,143,.04) 70%, rgba(229,154,85,.18) 86%, rgba(11,36,71,.14) 100%); }
.week .ev.lit { background: transparent; }
.week .ev { padding-left: 10px; border-left-width: 2px; }
/* minimal map chrome so labels stay placed when the map is exported without its library stylesheet */
.maplibregl-map { position: relative; overflow: hidden; }
.maplibregl-marker { position: absolute; top: 0; left: 0; will-change: transform; }
