/* ==========================================================================
   CSI Parish (Malayalam) Dubai — concept
   Tokens → base → nav → journey/stage → chapters → news → finale → footer
   ========================================================================== */

:root {
  --plum: #B03068;
  --plum-deep: #7A1F48;
  --flame: #E94E24;
  --red: #E3261B;
  --pink: #F6B1CD;
  --gold: #FFB23F;
  --cream: #FFF5EA;
  --night: #2A0E1F;

  --bg: #FFF5EA;          /* animated by journey.js */
  --ink: #2A0E1F;         /* animated by journey.js */

  --f-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --f-ui: "Instrument Sans", "Helvetica Neue", Arial, sans-serif;
  --f-ml: "Baloo Chettan 2", "Noto Sans Malayalam", sans-serif;

  --nav-h: 72px;
  --radius: 18px;
  --arm: 10px;            /* the cross arm, as an interface unit */
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
[data-motion="reduced"] { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--night);
  font: 400 1.0625rem/1.6 var(--f-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .5s ease;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-variation-settings: "SOFT" 50; margin: 0; }
p { margin: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--night); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--flame); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons & links ---------- */

.btn {
  display: inline-flex; align-items: center; gap: .6em;
  padding: .85em 1.3em; border-radius: 14px; border: 2px solid transparent;
  font: 650 1rem/1 var(--f-ui); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn svg { width: 1.15em; height: 1.15em; transition: transform .25s; }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--plum); color: #fff; }
.btn-primary:hover { background: #971F55; }
.btn-ghost { border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn-ghost:hover svg { transform: none; }

.link {
  display: inline-flex; align-items: center; gap: .45em;
  font-weight: 650; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  padding-bottom: 2px; transition: background-size .3s;
}
.link svg { width: 1.05em; height: 1.05em; transition: transform .25s; }
.link:hover { background-size: 100% 2px; }
.link:hover svg { transform: translateX(3px); }
.links { display: flex; flex-wrap: wrap; gap: 1rem 1.75rem; margin-top: 1.75rem; }

.live-dot {
  width: .55em; height: .55em; border-radius: 50%; background: #FF3B3B; flex: none;
  box-shadow: 0 0 0 0 rgba(255, 59, 59, .6);
}
[data-motion="full"] .live-dot { animation: live 1.8s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 .45em rgba(255, 59, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); } }

/* ---------- navigation ---------- */

.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  display: flex; align-items: center; gap: 1.5rem; padding: 0 clamp(16px, 3vw, 40px);
  color: var(--ink);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  transition: background-color .5s ease, color .5s ease;
  backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3);
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-right: auto; }
.brand-mark { width: 44px; height: 44px; --seam: var(--bg); }
.brand-text { display: grid; line-height: 1.1; }
.brand-name { font: 700 1.05rem/1.1 var(--f-display); letter-spacing: -.01em; }
.brand-ml { font: 500 .8rem/1.3 var(--f-ml); opacity: .75; }
.nav-links { display: flex; gap: 1.4rem; font-weight: 600; font-size: .95rem; }
.nav-links a { text-decoration: none; position: relative; padding: .4rem 0; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 3px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-login { opacity: .9; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.btn-live { background: var(--ink); color: var(--bg); padding: .7em 1.05em; font-size: .92rem; white-space: nowrap; transition: background-color .5s, color .5s; }
.btn-live:hover { opacity: .9; }
.btn-live .short { display: none; }
.motion-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  width: 40px; height: 40px; justify-content: center; border-radius: 12px;
  border: 2px solid color-mix(in srgb, currentColor 25%, transparent);
  background: none; color: inherit; cursor: pointer;
}
.motion-btn svg { width: 18px; height: 18px; }
.motion-btn[aria-pressed="true"] svg { opacity: .45; }
.motion-btn.wide { width: auto; padding: 0 .9rem; font: 600 .85rem var(--f-ui); }
.menu-btn { display: none; }

/* chapter rail: squares (hubs); the active one becomes a cross */
.rail {
  position: fixed; left: 22px; top: 50%; z-index: 40; transform: translateY(-50%);
  display: grid; gap: 14px; color: var(--ink);
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.in-journey .rail { opacity: 1; pointer-events: auto; }
.rail a { position: relative; display: block; width: 16px; height: 16px; text-decoration: none; }
.rail a::before, .rail a::after {
  content: ""; position: absolute; left: 50%; top: 50%; background: currentColor;
  width: 8px; height: 8px; transform: translate(-50%, -50%); opacity: .35;
  transition: width .3s, height .3s, opacity .3s, background-color .3s;
}
.rail a[aria-current]::before { width: 5px; height: 16px; opacity: 1; background: var(--plum); }
.rail a[aria-current]::after { width: 16px; height: 5px; opacity: 1; background: var(--plum); }
[data-theme="dark"] .rail a[aria-current]::before, [data-theme="dark"] .rail a[aria-current]::after { background: var(--gold); }
.rail span {
  position: absolute; left: 26px; top: 50%; transform: translate(-6px, -50%); white-space: nowrap;
  font: 600 .8rem var(--f-ui); opacity: 0; transition: opacity .2s, transform .2s;
}
.rail a:hover span, .rail a:focus-visible span { opacity: 1; transform: translate(0, -50%); }

/* ---------- journey layout ---------- */

.journey {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.22fr);
}
.stage {
  grid-column: 2; grid-row: 1; align-self: start;
  position: sticky; top: 0; height: 100vh; height: 100svh;
  padding: calc(var(--nav-h) + 8px) clamp(12px, 3vw, 48px) 24px 0;
  pointer-events: none;
}
.stage svg { width: 100%; height: 100%; overflow: visible; }
.stage-fallback { width: min(80%, 520px); margin: 20vh auto 0; }
.chapters { grid-column: 1; grid-row: 1; padding-left: clamp(64px, 7.5vw, 128px); padding-right: clamp(16px, 2vw, 32px); }

/* ---------- stage: scene layers ---------- */

#stage .scene { opacity: min(1, calc(var(--v, 0) * 2.2)); }
#stage .scene.is-off { display: none; }
#stage .pop {
  --p: clamp(0, calc((var(--v, 0) - var(--d, 0) * .45) / .55), 1);
  opacity: var(--p);
  transform: translateY(calc((1 - var(--p)) * 22px));
}
[data-motion="reduced"] #stage .scene { transition: opacity .5s; }
[data-motion="reduced"] #stage .pop { transform: none; opacity: 1; }

/* motif */
#stage .motto, .finale .motto { font: 700 34px var(--f-ui); letter-spacing: 6px; }
#stage .m-arm, #stage .m-dot { shape-rendering: geometricPrecision; }

/* idle life — only when motion is on, only in scenes where it carries meaning */
[data-motion="full"] .m-petals path, [data-motion="full"] .m-overlap path {
  transform-box: view-box; transform-origin: 0 0;
  animation: flicker 3.2s ease-in-out infinite alternate;
}
[data-motion="full"] .m-petals g:nth-child(2n) path, [data-motion="full"] .m-overlap g:nth-child(2n) path { animation-duration: 2.6s; animation-delay: -1s; }
[data-motion="full"] .m-petals g:nth-child(3n) path, [data-motion="full"] .m-overlap g:nth-child(3n) path { animation-duration: 3.8s; animation-delay: -2s; }
html[data-scene="places"] .m-petals path, html[data-scene="places"] .m-overlap path,
html[data-scene="live"] .m-petals path { animation-name: none !important; }
html[data-scene="live"] .m-petals path { animation: eq 1.1s ease-in-out infinite alternate !important; transform-origin: 0 0; transform-box: view-box; }
@keyframes flicker { from { transform: rotate(-2deg) scale(1); } to { transform: rotate(2deg) scale(1.03); } }
@keyframes eq { from { transform: scaleY(.55); } to { transform: scaleY(1.08); } }

[data-motion="full"] #stage .blink { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .25; } }
[data-motion="full"] #stage .pulse circle { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .4; } 100% { transform: scale(1.5); opacity: 0; } }
[data-motion="full"] #stage .flow path { animation: flow 1.2s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -24; } }
[data-motion="full"] #stage .ripple { transform-box: fill-box; transform-origin: center; animation: ripple 2.2s ease-out infinite; }
@keyframes ripple { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* SVG typography */
#stage text { font-family: var(--f-ui); }
.chip-bg { fill: #FFFFFF; filter: drop-shadow(0 6px 14px rgba(42, 14, 31, .12)); }
.chip-bg.dark { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 217, 160, .35); stroke-width: 2; filter: none; }
.chip-t { font: 650 21px var(--f-ui); fill: #2A0E1F; }
.chip-t.sm { font-size: 19px; }
.chip-t.xs { font-size: 17px; }
.chip-t.dark, .chip-t.light { fill: #FFF3E6; }
.board-head { font: 700 19px var(--f-ui); letter-spacing: 5px; fill: #FFD9A0; }
.slat-a { font: 700 19px var(--f-ui); letter-spacing: 1.5px; fill: #FFD27A; }
.slat-b { font: 550 18px var(--f-ui); fill: #FFF3E6; }
.crate-t { font: 700 12px var(--f-ui); letter-spacing: 1.5px; fill: #fff; }
.live-t { font: 700 16px var(--f-ui); letter-spacing: 2px; fill: #fff; }
.screen-t { font: 600 17px var(--f-ui); fill: #fff; }
.pod-a { font: 700 15px var(--f-ui); letter-spacing: 2px; fill: #F6B1CD; }
.pod-b { font: 600 23px var(--f-display); fill: #fff; }
.pod-c { font: 500 16px var(--f-ui); fill: #fff; opacity: .7; }
.card-h { font: 700 15px var(--f-ui); letter-spacing: 2px; fill: #F6B1CD; }
.card-h.light { fill: #fff; }
.sea-t { font: italic 500 20px var(--f-display); fill: #2E7C8A; }
.mtn-t { font: 600 15px var(--f-ui); letter-spacing: 1.5px; fill: #9A7446; text-transform: uppercase; }
.compass-n { font: 800 20px var(--f-ui); fill: #0E5E68; }
.card-bg { fill: #fff; filter: drop-shadow(0 8px 18px rgba(14, 94, 104, .16)); }
.map-k { font: 700 14px var(--f-ui); letter-spacing: 2.5px; fill: #B03068; }
.map-a { font: 700 20px var(--f-display); fill: #2A0E1F; }
.map-b { font: 500 16px var(--f-ui); fill: #2A0E1F; opacity: .75; }

/* ---------- chapters ---------- */

.chapter {
  min-height: 130vh; display: flex; align-items: center;
  color: var(--night);
}
.chapter[data-theme="dark"] { color: #FFF3E6; }
.chapter-hero { min-height: 100vh; min-height: 100svh; position: relative; }
.chapter-inner { max-width: 35rem; padding: 16vh 0; opacity: var(--cv, 1); }
[data-motion="reduced"] .chapter-inner { transition: opacity .4s; }
.chapter-hero .chapter-inner { padding-top: calc(var(--nav-h) + 8vh); }

.eyebrow {
  display: flex; align-items: center; gap: .7rem; margin-bottom: 1.25rem;
  font: 700 .8rem/1.2 var(--f-ui); letter-spacing: .14em; text-transform: uppercase;
}
/* the hub square that becomes a cross when its chapter is active */
.eb-mark { position: relative; width: 16px; height: 16px; flex: none; }
.eb-mark::before, .eb-mark::after {
  content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 10px; height: 10px; background: var(--plum);
  transition: width .5s cubic-bezier(.6, 0, .2, 1), height .5s cubic-bezier(.6, 0, .2, 1);
}
.chapter[data-theme="dark"] .eb-mark::before, .chapter[data-theme="dark"] .eb-mark::after { background: var(--gold); }
.is-active .eb-mark::before, .news .eb-mark::before, .finale .eb-mark::before { width: 5px; height: 16px; }
.is-active .eb-mark::after, .news .eb-mark::after, .finale .eb-mark::after { width: 16px; height: 5px; }

h1 {
  font-size: clamp(3rem, 6.2vw, 6rem); font-weight: 760; line-height: .94; letter-spacing: -.03em;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
h2 {
  font-size: clamp(2.3rem, 4.3vw, 4rem); font-weight: 720; line-height: 1; letter-spacing: -.025em;
  font-variation-settings: "SOFT" 50, "opsz" 144;
}
h1 em, h2 em { font-style: italic; font-weight: 560; color: var(--plum); }
.chapter[data-theme="dark"] h2 em { color: var(--gold); }
#mission h2 em { color: #1F7A45; }

.verse { margin-top: 1.1rem; font: 600 1.35rem/1.4 var(--f-ml); color: var(--plum); }
.verse span { font: 500 .95rem var(--f-ui); color: var(--night); opacity: .7; }
.lede { margin-top: 1.4rem; font-size: 1.15rem; line-height: 1.62; max-width: 33rem; }
.small { margin-top: 1.4rem; font-size: .92rem; opacity: .75; }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }

.quick { display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; margin: 2.5rem 0 0; }
.quick div { border-left: var(--arm) solid var(--plum); padding-left: .9rem; }
.quick dt { font: 700 .72rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; opacity: .65; }
.quick dd { margin: .2rem 0 0; font-weight: 650; }

.scroll-cue { position: absolute; left: 0; bottom: 5vh; width: 26px; height: 54px; }
.scroll-cue span { position: absolute; left: 50%; top: 0; width: 3px; height: 100%; background: currentColor; opacity: .25; transform: translateX(-50%); }
.scroll-cue::after { content: ""; position: absolute; left: 50%; top: 0; width: 11px; height: 11px; background: var(--plum); transform: translateX(-50%); }
[data-motion="full"] .scroll-cue::after { animation: cue 1.8s cubic-bezier(.6, 0, .2, 1) infinite; }
@keyframes cue { 0% { top: 0; opacity: 0; } 30% { opacity: 1; } 100% { top: 43px; opacity: 0; } }

.facts { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .9rem; }
.facts li { display: grid; grid-template-columns: 28px 1fr; gap: .8rem; align-items: start; }
.facts + .link { margin-top: 1.6rem; }
.facts svg { width: 24px; height: 24px; color: var(--plum); margin-top: .1rem; }
#mission .facts svg { color: #1F7A45; }

/* worship: the HTML schedule is a hymn board too */
.board { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; gap: 6px; }
.board li {
  display: grid; grid-template-columns: 8.5rem 1fr; gap: .1rem 1rem; align-items: baseline;
  background: var(--plum); color: #FFF3E6; padding: .85rem 1.1rem;
}
.board li:first-child { border-radius: 12px 12px 0 0; }
.board li:last-child { border-radius: 0 0 12px 12px; }
.board .when { font-weight: 700; color: #FFD27A; letter-spacing: .03em; grid-row: span 2; }
.board .what { font-weight: 650; }
.board .where { font-size: .88rem; opacity: .75; }

/* ministries */
.ministries { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 3px solid var(--night); }
.ministries a {
  display: grid; grid-template-columns: 28px 1fr auto; gap: .9rem; align-items: center;
  padding: .95rem .25rem; border-bottom: 2px solid color-mix(in srgb, var(--night) 18%, transparent);
  text-decoration: none; transition: background-color .2s, padding .2s;
}
.ministries a:hover { background: rgba(255, 255, 255, .45); padding-left: .75rem; }
.ministries svg { width: 24px; height: 24px; color: var(--plum); }
.ministries span { font-size: .9rem; opacity: .75; text-align: right; }

/* media */
.player {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  margin-top: 2rem; padding: 1rem 1.2rem 1rem 1rem; border-radius: 20px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14);
}
.player-btn { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--plum); }
.player-btn svg { width: 30px; height: 30px; }
.player-k { font: 700 .72rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.player-t { font: 650 1.15rem/1.3 var(--f-display); }
.player-s { font-size: .88rem; opacity: .7; }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 28px; }
.eq i { width: 5px; height: 100%; background: var(--flame); border-radius: 3px 3px 0 0; transform-origin: bottom; transform: scaleY(.5); }
.eq i:nth-child(2n) { background: var(--pink); }
[data-motion="full"] .eq i { animation: eq .9s ease-in-out infinite alternate; }
.eq i:nth-child(2) { animation-delay: -.3s !important; } .eq i:nth-child(3) { animation-delay: -.6s !important; } .eq i:nth-child(4) { animation-delay: -.2s !important; }
.media-links { list-style: none; padding: 0; margin: 1.25rem 0 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.media-links a {
  display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .95rem; border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, .25); text-decoration: none; font-weight: 600; font-size: .92rem;
}
.media-links a:hover { background: rgba(255, 255, 255, .1); }

/* places */
.places { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.place { background: #fff; border-radius: var(--radius); padding: 1.2rem 1.2rem 1.1rem; box-shadow: 0 10px 30px rgba(14, 94, 104, .12); }
.place svg:first-child { width: 28px; height: 28px; color: var(--flame); }
.place h3 { margin: .6rem 0 .3rem; font-size: 1.4rem; }
.place p { font-size: .93rem; line-height: 1.5; margin-bottom: .8rem; }
.place .link { font-size: .92rem; }

/* ---------- news & events ---------- */

.news { background: var(--cream); padding: clamp(80px, 12vh, 140px) clamp(20px, 6vw, 96px); position: relative; z-index: 1; }
.news-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem 2rem; margin-bottom: 2.5rem; }
.news-head .eyebrow { width: 100%; margin-bottom: 0; }
.news-head h2 { margin-right: auto; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.card { position: relative; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: 0 1px 0 rgba(42, 14, 31, .06), 0 14px 34px rgba(42, 14, 31, .08); transition: transform .3s; }
.card:hover { transform: translateY(-4px); }
.card::before { content: ""; position: absolute; z-index: 1; left: 0; top: 0; height: var(--arm); width: 34%; background: var(--c); transition: width .45s cubic-bezier(.6, 0, .2, 1); }
.card:hover::before { width: 100%; }
.card-img { aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--pink), var(--gold)); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.tag {
  display: inline-flex; align-items: center; gap: .35rem; margin: 1.1rem 1.25rem 0;
  font: 700 .72rem var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--c);
}
.tag svg { width: 16px; height: 16px; }
.card h3 { font-size: 1.32rem; line-height: 1.2; padding: .45rem 1.25rem 1.4rem; font-weight: 650; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }

.events-h { margin: 3.5rem 0 1rem; font-size: 1.6rem; }
.events { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.events a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.2rem;
  background: #fff; border-radius: 16px; padding: .7rem 1.2rem .7rem .7rem; text-decoration: none;
  transition: transform .25s;
}
.events a:hover { transform: translateX(6px); }
.events a > svg { width: 22px; height: 22px; color: var(--plum); }
/* the date tile is the hub of the cross */
.date { display: grid; place-items: center; width: 62px; height: 62px; background: var(--plum); color: #fff; font: 700 .72rem/1 var(--f-ui); letter-spacing: .1em; text-transform: uppercase; }
.date b { font: 700 1.5rem/1 var(--f-display); letter-spacing: 0; }
.ev { display: grid; }
.ev b { font-weight: 650; }
.ev span { font-size: .9rem; opacity: .7; }

/* ---------- finale ---------- */

.finale {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(24px, 5vw, 80px);
  background: #FBD3E3; padding: clamp(80px, 12vh, 140px) clamp(20px, 6vw, 96px); position: relative; z-index: 1;
}
.finale-art svg { width: min(100%, 560px); margin-inline: auto; }
.finale h2 em { color: var(--plum); }
.subscribe { margin-top: 2.25rem; max-width: 30rem; }
.subscribe label { display: flex; align-items: center; gap: .5rem; font-weight: 700; margin-bottom: .6rem; }
.subscribe label svg { width: 20px; height: 20px; color: var(--plum); }
.field { display: flex; gap: .5rem; background: #fff; padding: 6px; border-radius: 16px; }
.field input { flex: 1; min-width: 0; border: 0; background: none; font: 500 1rem var(--f-ui); padding: 0 .8rem; color: var(--night); }
.field input:focus { outline: none; }
.field:focus-within { outline: 3px solid var(--flame); outline-offset: 2px; }

/* ---------- footer ---------- */

.footer { background: var(--night); color: #FFF3E6; padding: 64px clamp(20px, 6vw, 96px) 32px; display: grid; grid-template-columns: 1.2fr 2fr; gap: 40px; position: relative; z-index: 1; }
.footer-brand { display: flex; gap: 1rem; align-items: flex-start; font-size: .95rem; line-height: 1.6; }
.footer-mark { width: 64px; height: 64px; flex: none; --seam: var(--night); }
.footer nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer h4 { margin: 0 0 .7rem; font: 700 .75rem var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--pink); }
.footer nav a { display: block; text-decoration: none; opacity: .85; padding: .2rem 0; }
.footer nav a:hover { opacity: 1; text-decoration: underline; }
.footer-base { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 24px; font-size: .85rem; opacity: .85; }

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1180px) {
  .nav-links { gap: 1rem; font-size: .9rem; }
  .nav-login { display: none; }
}

@media (max-width: 900px) {
  :root { --nav-h: 64px; }
  .brand-mark { width: 38px; height: 38px; }
  .brand-ml { display: none; }
  .btn-live { padding: .6em .85em; font-size: .85rem; }
  .btn-live .long { display: none; }
  .btn-live .short { display: inline; }
  .nav .motion-btn { display: none; }
  .menu-btn {
    display: grid; align-content: center; gap: 5px; width: 42px; height: 42px; padding: 0 9px;
    background: none; border: 0; color: inherit; cursor: pointer; position: relative;
  }
  .menu-btn span { display: block; height: 3px; background: currentColor; transition: transform .3s, opacity .2s; }
  /* open: the three bars become an equal-armed cross, turned to read as "close" */
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .nav-links {
    position: fixed; inset: var(--nav-h) 0 auto; flex-direction: column; gap: 0; padding: 8px 20px 24px;
    background: var(--bg); color: var(--ink); font-size: 1.15rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s;
    box-shadow: 0 20px 30px rgba(0, 0, 0, .12);
  }
  .nav-links a { padding: .85rem 0; border-bottom: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
  .nav-links a::after { display: none; }
  .nav-login { display: block; }
  .menu-open .nav-links { opacity: 1; transform: none; pointer-events: auto; }

  .rail { display: none; }

  .journey { grid-template-columns: minmax(0, 1fr); }
  .stage {
    grid-column: 1; grid-row: 1; z-index: 5;
    top: var(--nav-h); height: 44svh; padding: 4px 8px 10px;
    background: var(--bg); transition: background-color .5s ease;
  }
  .stage::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -28px; height: 28px;
    background: linear-gradient(var(--bg), transparent);
  }
  .chapters { grid-column: 1; grid-row: 2; padding: 0 20px; }
  .chapter { min-height: 92svh; align-items: flex-start; }
  .chapter-inner, .chapter-hero .chapter-inner { padding: 36px 0 18svh; }
  .chapter-hero { min-height: 70svh; }
  .scroll-cue { display: none; }
  #stage .lbl:not(.board-text) { display: none; }
  .chapter-inner, .chapter-hero .chapter-inner { padding-top: 28px; }
  .lede { font-size: 1.05rem; }
  .places { grid-template-columns: 1fr; }
  .board li { grid-template-columns: 1fr; }
  .board .when { grid-row: auto; }
  .ministries span { grid-column: 2; text-align: left; }
  .ministries a { grid-template-columns: 28px 1fr; gap: .1rem .9rem; }

  .cards { grid-template-columns: 1fr; }
  .finale { grid-template-columns: 1fr; }
  .finale-art svg { width: min(80%, 380px); }
  .footer { grid-template-columns: 1fr; }
  .footer nav { grid-template-columns: 1fr 1fr; }
  .footer-base { flex-direction: column; gap: 12px; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
