/* Gateway Life Church — v5 "Ocean State": the design system grows out of the logo.
   Wide heavy Archivo caps, navy / bay blue / crimson cross on clean white, the logo's wave as the signature
   (split headlines, section edges, moving wave lines). Cranston photography throughout.
   Tokens → base → type → buttons → nav → hero → home sections → inner pages → footer → motion. */

:root {
  --navy: #0E1F33;
  --navy-2: #13294A;
  --bay: #3E7FC9;
  --blue: #2F6FC4;
  --sky: #9FC2EE;
  --ice: #EAF1FA;
  --mist: #F4F7FB;
  --crimson: #B8294C;
  --crimson-2: #D0365C;
  --white: #FFFFFF;
  --ink: #0E1F33;
  --ink-2: #46546A;
  --ink-3: #5C6A82;
  --line: rgba(14, 31, 51, .1);

  --f: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(18px, 4vw, 56px);
  --max: 1360px;
  --sec: clamp(80px, 10vw, 150px);
  --r: 22px;
  --r-s: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 30px 70px -40px rgba(14, 31, 51, .45);
  /* smoked glass: dark, translucent, heavily blurred, with a hairline edge */
  --wave: var(--bay);
  --surface: #FFFFFF;
  --gray: #E5E9EF;          /* section backgrounds: a cool gray, a deeper gray and a bay-blue tint */
  --gray-2: #D6DCE5;
  --tint: #DAE7F6;
  --glow: rgba(255, 255, 255, .7);      /* cards and panels that sit on the page */
  --chip: var(--navy);      /* small solid navy pieces: date chips, round buttons, the selected tab */
  --crimson-t: #B8294C;     /* crimson when it is small text on the page */
  --bay-t: #2F6FC4;         /* blue when it is small text on the page */
  --card-edge: 0 0 0 0 transparent;
  --smoke: rgba(10, 18, 31, .34);
  --smoke-deep: rgba(8, 14, 25, .56);
  --smoke-nav: rgba(8, 14, 25, .62);
  --smoke-blur: blur(20px) saturate(1.5) brightness(.8);
  --smoke-line: rgba(255, 255, 255, .16);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --white: #08111D; --mist: #0B1727; --ice: #15273F; --surface: #122237;
    --gray: #0D1A2B; --gray-2: #13233A; --tint: #0F2440; --glow: rgba(62, 127, 201, .14);
    --navy: #10243D; --navy-2: #173152; --chip: #2B63B0;
    --ink: #F3F6FB; --ink-2: #BAC6D8; --ink-3: #8E9EB6;
    --line: rgba(255, 255, 255, .13);
    --crimson-t: #FF7F9E; --bay-t: #86B6F0; --wave: var(--sky);
    --shadow: 0 30px 70px -36px rgba(0, 0, 0, .85);
    --card-edge: inset 0 0 0 1px rgba(255, 255, 255, .08);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --white: #08111D; --mist: #0B1727; --ice: #15273F; --surface: #122237;
    --gray: #0D1A2B; --gray-2: #13233A; --tint: #0F2440; --glow: rgba(62, 127, 201, .14);
  --navy: #10243D; --navy-2: #173152; --chip: #2B63B0;
  --ink: #F3F6FB; --ink-2: #BAC6D8; --ink-3: #8E9EB6;
  --line: rgba(255, 255, 255, .13);
  --crimson-t: #FF7F9E; --bay-t: #86B6F0; --wave: var(--sky);
  --shadow: 0 30px 70px -36px rgba(0, 0, 0, .85);
  --card-edge: inset 0 0 0 1px rgba(255, 255, 255, .08);
}
:root[data-theme="light"] { color-scheme: light; }
.smoke { background: var(--smoke); backdrop-filter: var(--smoke-blur); -webkit-backdrop-filter: var(--smoke-blur); box-shadow: inset 0 0 0 1px var(--smoke-line), inset 0 1px 0 rgba(255, 255, 255, .12); color: #fff; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.no-smooth { scroll-behavior: auto; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 17px/1.6 var(--f); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video, iframe { display: block; max-width: 100%; }
picture { display: contents; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
p a { text-decoration: underline; text-underline-offset: .15em; }
h1, h2, h3, h4 { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--bay); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--crimson); color: #fff; }
.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
/* grid and flex children may shrink below their unwrapped headline width (the split headlines are nowrap and fit by script) */
.hero .inner > *, .phero .wrap > *, .welcome-grid > *, .pastors-grid > *, .head-row > *, .watch-grid > *, .story > *, .bio > *, .contact-grid > *, .visit-grid > *, .cta-duo > *, .foot .cta-row > * { min-width: 0; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------------------------------------------------------------- type (straight from the wordmark) */
.h-xxl, .h-xl, .h-l, .h-m { font-family: var(--f); font-weight: 800; font-stretch: 125%; text-transform: uppercase; letter-spacing: -.015em; }
.h-xxl { font-size: clamp(50px, 8.6vw, 148px); line-height: .86; }
.h-xl { font-size: clamp(42px, 6vw, 100px); line-height: .9; }
.h-l { font-size: clamp(34px, 4.2vw, 66px); line-height: .94; }
.h-m { font-size: clamp(22px, 1.9vw, 30px); line-height: 1; font-stretch: 115%; letter-spacing: -.005em; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--f); font-stretch: 110%; letter-spacing: .16em; text-transform: uppercase; color: var(--crimson-t); }
.on-dark .eyebrow, .eyebrow.light { color: var(--sky); }
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--ink-2); }
.on-dark .lead { color: rgba(255, 255, 255, .82); }
.muted { color: var(--ink-2); }
.on-dark .muted { color: rgba(255, 255, 255, .74); }
.blue { color: var(--bay-t); }

/* the logo's wave rolling through a headline: solid top colour, bay blue below a natural, slowly moving swell (no gap line) */
.split { display: block; position: relative; }
.split > span { display: block; white-space: nowrap; }
.split > .b { position: absolute; inset: 0; color: var(--wave); -webkit-mask: url(wave-mask.svg?v=6d96cdae) 0 0 / 200% 100% repeat-x; mask: url(wave-mask.svg?v=6d96cdae) 0 0 / 200% 100% repeat-x; animation: tide 16s linear infinite; }
.on-dark .split > .b, .split.sky > .b { color: var(--sky); }
@keyframes tide { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: -200% 0; mask-position: -200% 0; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  --bg: var(--crimson); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; background: var(--bg); color: var(--fg);
  font: 700 14px/1 var(--f); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  transition: background .3s, color .3s, box-shadow .3s, transform .3s var(--ease);
}
.btn::after { content: ""; width: 24px; height: 10px; flex: none; background: currentColor; -webkit-mask: url(arrow.svg?v=f1f402fe) center / contain no-repeat; mask: url(arrow.svg?v=f1f402fe) center / contain no-repeat; transition: transform .3s var(--ease); }
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -16px rgba(184, 41, 76, .8); background: var(--crimson-2); }
.btn:hover::after { transform: translateX(4px); }
.btn.no-arrow::after { display: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn.navy { --bg: var(--navy); } .btn.navy:hover { background: var(--bay); box-shadow: 0 16px 34px -16px rgba(14, 31, 51, .7); }
.btn.white { --bg: #fff; --fg: #0E1F33; } .btn.white:hover { background: #EAF1FA; box-shadow: 0 16px 34px -18px rgba(0, 0, 0, .5); }
.btn.ghost { --bg: transparent; --fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--white); box-shadow: none; }
.btn.ghost-light { --bg: rgba(255, 255, 255, .08); --fg: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn.ghost-light:hover { background: #fff; color: #0E1F33; box-shadow: none; }
.btn.sm { min-height: 46px; padding: 0 22px; font-size: 13px; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.link { display: inline-flex; align-items: center; gap: 10px; font: 700 13px/1 var(--f); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; color: var(--crimson-t); }
.link::after { content: ""; width: 24px; height: 10px; flex: none; background: currentColor; -webkit-mask: url(arrow.svg?v=f1f402fe) center / contain no-repeat; mask: url(arrow.svg?v=f1f402fe) center / contain no-repeat; transition: transform .3s var(--ease); }
.link:hover::after { transform: translateX(5px); }

/* ---------------------------------------------------------------- nav */
.top { position: fixed; inset: 0 0 auto; z-index: 60; transition: background .35s, box-shadow .35s, transform .45s var(--ease); }
/* the bar spans the screen: the logo sits at the top left of the screen itself, never hidden */
.top .wrap { width: auto; max-width: none; margin: 0; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 84px; }
.top .brand { position: relative; display: block; height: 46px; flex: none; }
.top .brand img { height: 46px; width: auto; transition: opacity .3s; }
.top .brand .dark { position: absolute; inset: 0; opacity: 0; }
.top nav { display: flex; gap: 4px; }
.top nav a { position: relative; padding: 10px 14px; font: 700 13px/1 var(--f); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.top nav a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px; background: var(--crimson); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.top nav a:hover::after, .top nav a[aria-current="page"]::after { transform: scaleX(1); }
.top .end { display: flex; align-items: center; gap: 10px; flex: none; }
.top nav { min-width: 0; white-space: nowrap; }
.top .live { display: none; align-items: center; gap: 8px; height: 46px; padding: 0 18px; border-radius: 999px; background: #fff; color: var(--crimson); font: 700 13px/1 var(--f); letter-spacing: .08em; text-transform: uppercase; }
.top .live.is-live { display: inline-flex; }
.top .live i { width: 8px; height: 8px; border-radius: 50%; background: var(--crimson); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(184, 41, 76, .6); } 70% { box-shadow: 0 0 0 8px rgba(184, 41, 76, 0); } }
.top .burger { display: none; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .14); place-content: center; gap: 6px; }
.top .burger span { display: block; width: 22px; height: 2px; background: #fff; }
/* once scrolled, the bar becomes smoked glass: dark, translucent, blurred, white type */
.top.solid { background: var(--smoke-nav); backdrop-filter: var(--smoke-blur); -webkit-backdrop-filter: var(--smoke-blur); box-shadow: inset 0 -1px 0 var(--smoke-line), 0 16px 40px -24px rgba(5, 10, 20, .6); }
.top.solid .live { background: var(--crimson); color: #fff; } .top.solid .live i { background: #fff; }
.top .invite-btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 16px; border-radius: 999px; color: #fff; font: 700 13px/1 var(--f); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; background: var(--smoke); backdrop-filter: var(--smoke-blur); -webkit-backdrop-filter: var(--smoke-blur); box-shadow: inset 0 0 0 1px var(--smoke-line); transition: background .25s; }
.top .invite-btn:hover { background: rgba(255, 255, 255, .16); }
.top .invite-btn svg { width: 17px; height: 17px; }
@media (max-width: 1280px) { .top .invite-btn span { display: none; } .top .invite-btn { width: 46px; padding: 0; justify-content: center; } }
.top.hide { transform: none; }   /* the bar no longer slides away on scroll (owner: the logo always shows) */
@media (max-width: 1080px) { .top nav { display: none; } .top .burger { display: grid; } }
@media (max-width: 560px) { .top .wrap { height: 70px; } .top .brand, .top .brand img { height: 38px; } .top .end .btn { display: none; } }

.menu { position: fixed; inset: 0; z-index: 70; background: rgba(10, 18, 31, .78); backdrop-filter: blur(26px) saturate(1.4); -webkit-backdrop-filter: blur(26px) saturate(1.4); color: #fff; display: grid; grid-template-rows: auto 1fr auto; padding-bottom: 28px; transform: translateY(-100%); transition: transform .6s var(--ease); overflow-y: auto; }
.menu.open { transform: none; }
.menu .head { width: auto; max-width: none; margin: 0; padding-inline: var(--gutter); display: flex; justify-content: space-between; align-items: center; height: 84px; }
.menu .head img { height: 46px; width: auto; }   /* same size and place as the logo in the bar, so it does not jump when the menu opens */
@media (max-width: 560px) { .menu .head { height: 70px; } .menu .head img { height: 38px; } }
.menu .x { width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); display: grid; place-items: center; }
.menu nav { display: grid; align-content: center; gap: 2px; padding: 24px 0; }
.menu nav a { justify-self: start; font: 800 clamp(32px, 7.4vw, 64px)/1.04 var(--f); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.015em; opacity: 0; transform: translateY(20px); transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s; transition-delay: calc(var(--i, 0) * 45ms + .15s); }
.menu.open nav a { opacity: 1; transform: none; }
.menu nav a[aria-current="page"] { color: var(--sky); }
.menu nav a:hover, .menu nav a:focus-visible { color: var(--crimson-2); }
.menu .foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; color: rgba(255, 255, 255, .7); font-size: 15px; }
@media (min-width: 1081px) { .menu { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; min-height: max(720px, 100svh); color: #fff; display: grid; align-content: end; isolation: isolate; overflow: hidden; background: var(--navy); }
.hero .slides { position: absolute; inset: 0; z-index: -2; }
.hero .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero .slide.on { opacity: 1; }
.hero .slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.hero .slide.on img { animation: kb 26s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.14) translate3d(0, 0, 0); } to { transform: scale(1.07) translate3d(-1.5%, 0, 0); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 16, 28, .66) 0%, rgba(9, 16, 28, .3) 24%, rgba(9, 16, 28, .34) 56%, rgba(12, 24, 41, .84) 100%), linear-gradient(90deg, rgba(9, 16, 28, .4) 0%, rgba(9, 16, 28, .1) 60%, rgba(9, 16, 28, 0) 100%); }
.hero .inner { padding: 140px 0 clamp(150px, 18vh, 200px); display: grid; gap: 26px; }
.hero h1 { max-width: none; }
.hero .lead { max-width: 50ch; margin: 0; color: rgba(255, 255, 255, .94); text-shadow: 0 1px 22px rgba(6, 12, 22, .7); }
.hero .eyebrow { flex-wrap: wrap; }
/* service times: one smoked-glass dock holding the three gatherings of the week. The next one is lit crimson and
   carries the live countdown. On phones the dock turns into three rows (day and name left, time right). */
.times { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 14px 0 0; padding: 6px; list-style: none; border-radius: 28px; width: min(100%, 900px); }
.times a { position: relative; height: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "d cd" "t t" "n n"; gap: 6px 10px; align-items: center; padding: 18px 22px 20px; border-radius: 22px; color: #fff; transition: background .3s, transform .45s var(--ease), box-shadow .3s; }
.times a:hover { background: rgba(255, 255, 255, .1); transform: translateY(-3px); }
.times .d { grid-area: d; font: 700 11px/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.times .t { grid-area: t; font: 800 clamp(26px, 2.5vw, 36px)/1 var(--f); font-stretch: 120%; text-transform: uppercase; white-space: nowrap; }
.times .t small { font-size: .5em; letter-spacing: .06em; margin-left: .25em; }
.times .n { grid-area: n; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.times .n svg { width: 15px; height: 15px; opacity: 0; transform: translateX(-6px); transition: opacity .3s, transform .4s var(--ease); }
.times a:hover .n svg { opacity: 1; transform: none; }
.times .cd { grid-area: cd; display: none; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: rgba(255, 255, 255, .2); font: 700 10.5px/1 var(--f); letter-spacing: .1em; text-transform: uppercase; font-variant-numeric: tabular-nums; white-space: nowrap; }
.times .cd::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, .7); animation: beat 1.8s infinite; }
@keyframes beat { 70% { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
.times .is-next a { background: linear-gradient(140deg, rgba(200, 48, 86, .95), rgba(160, 32, 64, .86)); box-shadow: 0 18px 40px -22px rgba(184, 41, 76, .9), inset 0 1px 0 rgba(255, 255, 255, .22); }
.times .is-next a:hover { background: linear-gradient(140deg, rgba(214, 58, 96, .98), rgba(172, 36, 70, .92)); }
.times .is-next .d { color: #fff; }
.times .is-next .n { color: rgba(255, 255, 255, .92); }
.times .is-next .cd { display: inline-flex; }
@media (max-width: 760px) {
  .times { grid-template-columns: 1fr; border-radius: 24px; }
  .times a { grid-template-columns: 1fr auto; grid-template-areas: "d t" "n t" "cd cd"; gap: 6px 14px; padding: 14px 18px; border-radius: 18px; }
  .times .t { font-size: 26px; }
  .times .cd { justify-self: start; margin-top: 4px; }
  .times a:hover { transform: none; }
}
.hero .ticks { position: absolute; right: var(--gutter); bottom: clamp(150px, 18vh, 200px); display: flex; gap: 8px; }
.hero .ticks button { width: 34px; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, .3); position: relative; overflow: hidden; padding: 0; }
.hero .ticks button.on::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fill 6.5s linear forwards; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 900px) { .hero .ticks { display: none; } }

/* wave edges and moving wave lines (the logo's wave) */
.edge { position: absolute; left: 0; right: 0; bottom: -1px; height: clamp(60px, 9vw, 130px); pointer-events: none; z-index: 1; }
.edge.top { top: -1px; bottom: auto; transform: scaleY(-1); }
.edge svg { width: 100%; height: 100%; }
.edge path { fill: var(--white); } .edge.f-mist path, .edge.f-gray path { fill: var(--gray); } .edge.f-gray2 path { fill: var(--gray-2); } .edge.f-tint path { fill: var(--tint); } .edge.f-navy path { fill: var(--navy); }
/* the footer's wave takes the colour of whatever section ends the page */
main:has(> .sec.mist:last-child) ~ .foot > .edge path { fill: var(--gray); }
.sec > .waves { bottom: clamp(40px, 7vw, 96px); }
.waves { position: absolute; left: 0; right: 0; bottom: clamp(30px, 5vw, 70px); height: 120px; pointer-events: none; overflow: hidden; z-index: 0; }
.waves svg { position: absolute; left: 0; width: 200%; max-width: none; height: 100%; animation: drift 26s linear infinite; }
.waves svg + svg { animation-duration: 38s; animation-direction: reverse; opacity: .6; }
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------- sections */
.sec { position: relative; padding: var(--sec) 0; }
.sec.mist { background: var(--gray); }
.sec.gray2 { background: var(--gray-2); }
.sec.tint { background: radial-gradient(1100px 520px at 88% 0%, var(--glow), transparent 62%), radial-gradient(900px 480px at 0% 100%, var(--glow), transparent 60%), var(--tint); }
/* a section that carries a wave divider keeps its content clear of it */
.sec.has-edge-t { padding-top: calc(var(--sec) + clamp(34px, 6vw, 90px)); }
.sec.has-edge-b { padding-bottom: calc(var(--sec) + clamp(34px, 6vw, 90px)); }
.sec.mist .cta.ice, .sec.gray2 .cta.ice { background: var(--surface); }
.sec.mist .promise, .sec.gray2 .promise { background: var(--surface); }
.sec.navy { background: var(--navy); color: #fff; }
.sec.tight-top { padding-top: clamp(40px, 5vw, 72px); }
.head-row { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.head-row h2 { margin-top: 18px; }
.head-row .lead { margin: 0; }
@media (max-width: 860px) { .head-row { grid-template-columns: 1fr; } }
.center-head { text-align: center; max-width: 900px; margin: 0 auto clamp(36px, 5vw, 64px); }
.center-head h2 { margin: 18px 0 18px; }

/* welcome + mosaic */
.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.welcome-grid h2 { margin: 18px 0 26px; }
.mosaic { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: 1fr 1fr; gap: 14px; height: clamp(420px, 46vw, 640px); }
.mosaic .m { border-radius: var(--r); overflow: hidden; position: relative; }
.mosaic .m img { width: 100%; height: 115%; object-fit: cover; }
.mosaic .m1 { grid-row: 1 / 3; }
.mosaic .tag { position: absolute; left: 14px; bottom: 14px; padding: 9px 14px; border-radius: 999px; background: var(--smoke); backdrop-filter: var(--smoke-blur); -webkit-backdrop-filter: var(--smoke-blur); box-shadow: inset 0 0 0 1px var(--smoke-line); color: #fff; font: 700 11px/1 var(--f); letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 860px) { .welcome-grid { grid-template-columns: 1fr; } .mosaic { height: 460px; } }

/* marquee band */
.band { background: var(--navy); color: #fff; overflow: hidden; padding: clamp(22px, 3vw, 36px) 0; position: relative; }
.band .row { display: flex; width: max-content; animation: marquee 34s linear infinite; }
.band .row span { display: inline-flex; align-items: center; gap: clamp(20px, 3vw, 44px); padding-right: clamp(20px, 3vw, 44px); font: 800 clamp(34px, 5vw, 78px)/1 var(--f); font-stretch: 125%; text-transform: uppercase; white-space: nowrap; }
.band .row span .o { color: transparent; -webkit-text-stroke: 1.5px rgba(159, 194, 238, .9); }
.band .row span i { width: clamp(20px, 2.4vw, 34px); height: clamp(26px, 3.1vw, 44px); background: var(--crimson); -webkit-mask: url(cross.svg?v=c8ccf4d9) center / contain no-repeat; mask: url(cross.svg?v=c8ccf4d9) center / contain no-repeat; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* gatherings: fanned stack that deals out into a row on scroll (--p 0 → 1), then the open card expands */
.gatherings { --p: 1; display: flex; gap: 18px; }
.gc {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r); overflow: hidden; min-height: 540px; color: #fff; display: grid; align-content: end; isolation: isolate;
  transform: translateX(calc((1 - var(--p)) * var(--sx, 0px))) translateY(calc((1 - var(--p)) * 40px)) rotate(calc((1 - var(--p)) * var(--rot, 0deg)));
  transition: flex-grow .8s var(--ease), box-shadow .5s;
  box-shadow: 0 30px 60px -40px rgba(14, 31, 51, .6);
}
.gc:nth-child(1) { --sx: calc(100% + 18px); --rot: -7deg; z-index: 1; }
.gc:nth-child(2) { --rot: 2deg; z-index: 3; }
.gc:nth-child(3) { --sx: calc(-100% - 18px); --rot: 8deg; z-index: 2; }
.gc.open { flex-grow: 2.15; box-shadow: 0 40px 80px -36px rgba(14, 31, 51, .75); }
.gc .more { display: grid; gap: 10px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .7s var(--ease), opacity .45s; }
.gc.open .more { max-height: 240px; opacity: 1; transition-delay: .15s; }
.gc .time { transition: font-size .7s var(--ease); }
.gc:not(.open) .time { font-size: clamp(30px, 2.6vw, 42px); }
.gc .live-tag { display: none; }
.gc.next .day::after { content: var(--next-label, " · Next"); }
.gc > img, .gc > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.gc:hover > img, .gc:hover > picture img { transform: scale(1.05); }
.gc::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 31, 51, .45) 0%, rgba(14, 31, 51, 0) 55%); }
/* the card's words sit on a smoked-glass pane inset from the edges */
.gc .in { margin: 12px; padding: clamp(18px, 2vw, 26px); display: grid; gap: 10px; border-radius: calc(var(--r) - 6px); background: var(--smoke); backdrop-filter: var(--smoke-blur); -webkit-backdrop-filter: var(--smoke-blur); box-shadow: inset 0 0 0 1px var(--smoke-line), inset 0 1px 0 rgba(255, 255, 255, .12); }
.gc .invite-pill { position: absolute; top: 16px; right: 16px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 999px; color: #fff; font: 700 12px/1 var(--f); letter-spacing: .08em; text-transform: uppercase; background: var(--smoke); backdrop-filter: var(--smoke-blur); -webkit-backdrop-filter: var(--smoke-blur); box-shadow: inset 0 0 0 1px var(--smoke-line); transition: background .25s; }
.gc .invite-pill::before { content: ""; position: absolute; inset: -6px; }
.gc .invite-pill:hover { background: var(--crimson); }
.gc .invite-pill svg { width: 15px; height: 15px; }
.gc .day { justify-self: start; padding: 8px 14px; border-radius: 999px; background: var(--crimson); font: 700 12px/1 var(--f); letter-spacing: .12em; text-transform: uppercase; }
.gc .time { font: 800 clamp(44px, 4.4vw, 68px)/.9 var(--f); font-stretch: 125%; text-transform: uppercase; }
.gc h3 { font: 700 22px/1.2 var(--f); font-stretch: 110%; }
.gc p { margin: 0; color: rgba(255, 255, 255, .82); font-size: 15px; }
.gc .link { color: var(--sky); margin-top: 6px; }
/* phones and tablets: every card open, and they stack on top of one another as you scroll */
@media (max-width: 900px) {
  .gatherings { flex-direction: column; gap: 16px; }
  .gc, .gc:nth-child(n) { position: sticky; top: calc(86px + var(--k, 0) * 16px); min-height: 440px; transform: none; z-index: calc(var(--k, 0) + 1); }
  .gc .more { max-height: none; opacity: 1; }
  .gc:not(.open) .time { font-size: clamp(40px, 11vw, 56px); }
}
.rm .gc, .no-js .gc { transform: none; }

/* bento ministries */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(220px, 20vw, 290px); gap: 14px; }
.tile { position: relative; border-radius: var(--r); overflow: hidden; color: #fff; display: grid; align-content: end; isolation: isolate; padding: clamp(18px, 2vw, 26px); }
.tile > img, .tile > picture img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.tile { padding: 12px; }
.tile::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(14, 31, 51, .35), rgba(14, 31, 51, 0) 50%); transition: background .4s; }
.tile:hover > img, .tile:hover > picture img { transform: scale(1.06); }
/* smoked-glass caption; it warms to bay blue on hover */
.tile .cap { padding: clamp(14px, 1.6vw, 20px) clamp(16px, 1.8vw, 22px); border-radius: calc(var(--r) - 8px); background: var(--smoke); backdrop-filter: var(--smoke-blur); -webkit-backdrop-filter: var(--smoke-blur); box-shadow: inset 0 0 0 1px var(--smoke-line), inset 0 1px 0 rgba(255, 255, 255, .12); transition: background .4s; }
.tile:hover .cap { background: rgba(47, 111, 196, .62); }
.tile h3 { font: 800 clamp(20px, 1.9vw, 30px)/.95 var(--f); font-stretch: 125%; text-transform: uppercase; }
.tile p { margin: 8px 0 0; font-size: 14px; color: rgba(255, 255, 255, .86); max-width: 34ch; }
.tile .go { position: absolute; top: 18px; right: 18px; width: 44px; height: 44px; border-radius: 50%; background: var(--smoke); backdrop-filter: var(--smoke-blur); -webkit-backdrop-filter: var(--smoke-blur); box-shadow: inset 0 0 0 1px var(--smoke-line); display: grid; place-items: center; transition: background .3s, transform .4s var(--ease); }
.tile:hover .go { background: var(--crimson); transform: rotate(-45deg); }
.tile .go svg { width: 18px; height: 18px; }
.tile.w2 { grid-column: span 2; } .tile.h2 { grid-row: span 2; }
.tile.solid { background: var(--crimson); } .tile.solid::before { display: none; }
.tile.solid.navy { background: var(--navy); }
@media (max-width: 960px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .bento { grid-template-columns: 1fr; grid-auto-rows: 240px; } .tile.w2 { grid-column: auto; } .tile.h2 { grid-row: auto; } }

/* watch */
.watch-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.watch-grid h2 { margin: 18px 0 22px; }
.player { position: relative; aspect-ratio: 16 / 10; border-radius: var(--r); overflow: hidden; background: #000; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player .poster { position: absolute; inset: 0; display: grid; place-items: center; cursor: pointer; isolation: isolate; }
.player .poster img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s var(--ease); }
.player .poster::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(14, 31, 51, .35); }
.player .poster:hover img { transform: scale(1.04); }
.player .play { width: 96px; height: 96px; border-radius: 50%; background: var(--crimson); display: grid; place-items: center; box-shadow: 0 0 0 14px rgba(184, 41, 76, .25); transition: transform .3s var(--ease), box-shadow .3s; }
.player .poster:hover .play { transform: scale(1.08); box-shadow: 0 0 0 20px rgba(184, 41, 76, .2); }
.player .play svg { width: 30px; height: 30px; fill: #fff; margin-left: 4px; }
.player .cap { position: absolute; left: 22px; bottom: 20px; font: 700 12px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; }
/* where to watch: two compact pills, each with the service's logo mark */
.chan-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chan { display: inline-flex; align-items: center; gap: 12px; padding: 7px 20px 7px 7px; border-radius: 999px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); transition: background .3s, transform .35s var(--ease), box-shadow .3s; }
.chan:hover { background: var(--crimson); box-shadow: 0 14px 30px -16px rgba(184, 41, 76, .9); transform: translateY(-2px); }
.chan .badge { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.chan .badge svg { width: 20px; height: 20px; }
.chan b { display: block; font: 700 14px/1.15 var(--f); font-stretch: 108%; }
.chan small { display: block; margin-top: 2px; color: rgba(255, 255, 255, .7); font-size: 12px; line-height: 1.2; }
.chan:hover small { color: rgba(255, 255, 255, .92); }
@media (max-width: 900px) { .watch-grid { grid-template-columns: 1fr; } }

/* values */
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.value { position: relative; isolation: isolate; overflow: hidden; background: var(--surface); border-radius: var(--r); padding: clamp(24px, 2.4vw, 34px); padding-bottom: clamp(40px, 4vw, 56px); box-shadow: var(--card-edge), 0 1px 0 var(--line), 0 20px 50px -40px rgba(14, 31, 51, .5); display: grid; gap: 14px; align-content: start; transition: transform .5s var(--ease), box-shadow .5s; }
.value::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(150deg, var(--crimson-2), var(--crimson) 55%, #96203F); clip-path: circle(0% at 16% 18%); transition: clip-path .7s var(--ease); }
.value::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 118px; background: var(--sky); transform: translateY(100%); pointer-events: none;
  -webkit-mask: url(wave-mask.svg?v=6d96cdae) 0 0 / 200% 100% repeat-x; mask: url(wave-mask.svg?v=6d96cdae) 0 0 / 200% 100% repeat-x; animation: tide 16s linear infinite; transition: transform .9s var(--ease); }
.value .n { font: 800 64px/.85 var(--f); font-stretch: 125%; color: var(--ice); -webkit-text-stroke: 1.5px var(--bay); transform-origin: 0 100%; transition: color .45s, -webkit-text-stroke-color .45s, transform .6s var(--ease); }
.value h3 { font: 800 24px/1 var(--f); font-stretch: 120%; text-transform: uppercase; transition: color .4s, transform .6s var(--ease); }
.value p { margin: 0; color: var(--ink-2); font-size: 15px; transition: color .4s, transform .6s var(--ease) .04s; }
.value:hover, .value:focus-visible, .value.on { transform: translateY(-10px); box-shadow: 0 34px 60px -30px rgba(184, 41, 76, .7); }
.value:hover::before, .value:focus-visible::before, .value.on::before { clip-path: circle(150% at 16% 18%); }
.value:hover::after, .value:focus-visible::after, .value.on::after { transform: none; }
.value:hover .n, .value:focus-visible .n, .value.on .n { color: rgba(255, 255, 255, .16); -webkit-text-stroke-color: #fff; transform: scale(1.12) rotate(-3deg); }
.value:hover h3, .value:focus-visible h3, .value.on h3 { color: #fff; transform: translateY(-2px); }
.value:hover p, .value:focus-visible p, .value.on p { color: rgba(255, 255, 255, .92); transform: translateY(-2px); }
@media (max-width: 960px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .values { grid-template-columns: 1fr; } }

/* plan a visit */
.visit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.visit-card { background: var(--navy); color: #fff; border-radius: var(--r); padding: clamp(28px, 3.4vw, 52px); display: grid; gap: 22px; align-content: start; position: relative; overflow: hidden; }
.visit-card h2 { margin-top: 10px; }
.visit-card ul { display: grid; gap: 0; }
.visit-card li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.visit-card li svg { width: 26px; height: 26px; color: var(--sky); }
.visit-card li b { display: block; font: 700 16px/1.25 var(--f); font-stretch: 110%; }
.visit-card li span { color: rgba(255, 255, 255, .72); font-size: 15px; }
/* one picture beside the details: the building, with the pin on the red door and the address on smoked glass.
   The picture is anchored left and keeps its own proportions, so the pin stays on the door at any panel height. */
.visit-photo { position: relative; border-radius: var(--r); overflow: hidden; min-height: 380px; background: var(--ice); }
.visit-photo .door-in { position: absolute; top: 0; left: 0; height: 100%; aspect-ratio: 1440 / 730; min-width: 100%; }
.visit-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 0 50%; }
.visit-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 18, 31, .5), rgba(10, 18, 31, 0) 42%); pointer-events: none; }
.visit-photo .pin { position: absolute; left: 24%; top: 58%; transform: translate(-50%, -100%); padding: 10px 14px; border-radius: 12px; background: var(--crimson); color: #fff; font: 700 12px/1.2 var(--f); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); }
.visit-photo .pin::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 14px; height: 14px; background: var(--crimson); transform: translateX(-50%) rotate(45deg); }
.visit-photo .addr { position: absolute; z-index: 1; left: 14px; bottom: 14px; max-width: calc(100% - 28px); display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 999px; color: #fff; font: 700 14px/1.2 var(--f); background: var(--smoke); backdrop-filter: var(--smoke-blur); -webkit-backdrop-filter: var(--smoke-blur); box-shadow: inset 0 0 0 1px var(--smoke-line); transition: background .25s; }
.visit-photo .addr:hover { background: var(--crimson); }
.visit-photo .addr svg { width: 18px; height: 18px; flex: none; color: var(--sky); }
.visit-photo .addr:hover svg { color: #fff; }
@media (max-width: 900px) { .visit-grid { grid-template-columns: 1fr; } .visit-photo { min-height: 0; aspect-ratio: 1440 / 730; } }

/* pastors */
.pastors-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.pastors-grid .ph { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.pastors-grid .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transform: scale(1.18); transform-origin: 48% 85%; }
.pastors-grid h2 { margin: 18px 0 24px; }
.pastors-grid .names { font: 700 16px/1.3 var(--f); font-stretch: 112%; letter-spacing: .08em; text-transform: uppercase; color: var(--bay-t); margin-bottom: 22px; }
.pastors-grid p { color: var(--ink-2); }
@media (max-width: 860px) { .pastors-grid { grid-template-columns: 1fr; } }

/* give + pray */
.cta-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cta { position: relative; border-radius: var(--r); padding: clamp(32px, 4vw, 64px); overflow: hidden; display: grid; gap: 18px; align-content: start; min-height: 380px; isolation: isolate; }
.cta h2 { margin-top: 6px; }
.cta.crimson { background: var(--crimson); color: #fff; }
.cta.crimson .eyebrow { color: #fff; }
.cta.crimson p { color: rgba(255, 255, 255, .86); }
.cta.ice { background: var(--ice); }
.cta.ice p { color: var(--ink-2); }
/* the headline water along the foot of each panel (same swell, same drift): it rests low and rises on hover */
.cta .mark { position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: clamp(150px, 44%, 200px); background: var(--wave); pointer-events: none; transform: translateY(26%);
  -webkit-mask: url(wave-mask.svg?v=6d96cdae) 0 0 / 200% 100% repeat-x; mask: url(wave-mask.svg?v=6d96cdae) 0 0 / 200% 100% repeat-x; animation: tide 16s linear infinite; transition: transform 1s var(--ease); }
.cta.crimson .mark { background: var(--sky); }
.cta:hover .mark, .cta:focus-within .mark { transform: none; }
@keyframes roll { to { -webkit-mask-position: -140% 100%; mask-position: -140% 100%; } }
@media (hover: none) { .cta .mark { transform: translateY(14%); } }
.cta .btns { margin-top: auto; }
@media (max-width: 860px) { .cta-duo { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- inner pages */
.phero { position: relative; min-height: clamp(520px, 74vh, 760px); color: #fff; display: grid; align-content: end; isolation: isolate; overflow: hidden; background: var(--navy); }
.phero > img, .phero > picture img { position: absolute; inset: -6% 0; width: 100%; height: 112%; object-fit: cover; z-index: -2; transform: translateY(calc(var(--py, 0) * 1px)); }
.phero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(14, 31, 51, .9), rgba(14, 31, 51, .45) 60%, rgba(14, 31, 51, .3)), linear-gradient(0deg, rgba(14, 31, 51, .7), transparent 50%); }
.phero .wrap { padding: 150px 0 clamp(110px, 14vw, 180px); display: grid; gap: 20px; }
.phero h1 { max-width: none; }
.phero .lead { max-width: 52ch; margin: 0; color: rgba(255, 255, 255, .86); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.two { grid-template-columns: 1fr 1fr; }
.cards.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .cards, .cards.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .cards, .cards.two, .cards.four { grid-template-columns: 1fr; } }
.card { background: var(--surface); border-radius: var(--r); padding: clamp(24px, 2.4vw, 34px); display: grid; gap: 12px; align-content: start; box-shadow: var(--card-edge), 0 1px 0 var(--line), 0 20px 50px -40px rgba(14, 31, 51, .5); transition: transform .4s var(--ease), box-shadow .4s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card.navy { background: var(--navy); color: #fff; } .card.navy p { color: rgba(255, 255, 255, .78); }
.card.ice { background: var(--ice); box-shadow: none; }
.card h3 { font: 800 24px/1 var(--f); font-stretch: 120%; text-transform: uppercase; }
.card p { margin: 0; color: var(--ink-2); font-size: 15px; }
.card .when { font: 700 12px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; color: var(--crimson-t); }
.card.navy .when { color: var(--sky); }
.card .btn, .card .link { justify-self: start; margin-top: 6px; }
.card .ph { border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 10; margin: -6px -6px 6px; }
.card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.card:hover .ph img { transform: scale(1.05); }
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 96px); align-items: start; }
.story h2 { margin-top: 18px; }
.story p { color: var(--ink-2); }
@media (max-width: 860px) { .story { grid-template-columns: 1fr; } }
.bio { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.bio .ph { position: sticky; top: 110px; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.bio .ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; transform: scale(1.18); transform-origin: 48% 85%; }
.bio h3 { font: 800 clamp(26px, 2.6vw, 38px)/1 var(--f); font-stretch: 122%; text-transform: uppercase; margin: 34px 0 14px; }
.bio h3:first-of-type { margin-top: 22px; }
.bio p { color: var(--ink-2); }
@media (max-width: 860px) { .bio { grid-template-columns: 1fr; } .bio .ph { position: relative; top: 0; } }
.beliefs { max-width: 1000px; margin: 0 auto; }
.beliefs details { border-top: 1px solid var(--line); }
.beliefs details:last-child { border-bottom: 1px solid var(--line); }
.beliefs summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding: 26px 0; }
.beliefs summary::-webkit-details-marker { display: none; }
.beliefs summary .n { font: 800 18px/1 var(--f); color: var(--bay-t); letter-spacing: .06em; }
.beliefs summary .t { font: 800 clamp(22px, 2.4vw, 34px)/1 var(--f); font-stretch: 122%; text-transform: uppercase; }
.beliefs summary .pm { width: 44px; height: 44px; border-radius: 50%; background: var(--ice); display: grid; place-items: center; transition: transform .35s var(--ease), background .35s, color .35s; }
.beliefs summary .pm::before { content: "+"; font: 500 24px/1 var(--f); }
.beliefs details[open] .pm { transform: rotate(45deg); background: var(--crimson); color: #fff; }
.beliefs details p { margin: 0 0 28px 80px; max-width: 70ch; color: var(--ink-2); }
.beliefs details p cite { display: block; margin-top: 12px; font: 700 12px/1.5 var(--f); letter-spacing: .12em; text-transform: uppercase; font-style: normal; color: var(--crimson-t); }
@media (max-width: 600px) { .beliefs summary { grid-template-columns: 40px 1fr auto; } .beliefs details p { margin-left: 0; } }
.ev { display: grid; grid-template-columns: 110px 1fr auto; gap: clamp(16px, 2.4vw, 32px); align-items: center; padding: 20px 24px; border-radius: 18px; background: var(--surface); box-shadow: var(--card-edge), 0 1px 0 var(--line), 0 16px 40px -34px rgba(14, 31, 51, .5); margin-bottom: 12px; transition: transform .35s var(--ease); }
.ev:hover { transform: translateX(6px); }
.ev .date { text-align: center; padding: 12px 0; border-radius: 14px; background: var(--chip); color: #fff; }
.ev .date b { display: block; font: 800 40px/1 var(--f); font-stretch: 125%; }
.ev .date small { font: 700 11px/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.ev h3 { font: 800 22px/1.05 var(--f); font-stretch: 120%; text-transform: uppercase; }
.ev p { margin: 6px 0 0; color: var(--ink-2); font-size: 15px; }
.ev .ev-desc { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 640px) { .ev { grid-template-columns: 78px 1fr; } .ev .date b { font-size: 30px; } .ev > .btn { grid-column: 1 / -1; justify-self: start; } }
.cal-wrap { background: var(--surface); border-radius: var(--r); padding: clamp(16px, 2.5vw, 32px); box-shadow: var(--card-edge), var(--shadow); }
.cal-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cal-top b { font: 800 clamp(22px, 2.4vw, 32px)/1 var(--f); font-stretch: 122%; text-transform: uppercase; }
.cal-top button { width: 44px; height: 44px; border-radius: 50%; background: var(--chip); color: #fff; display: grid; place-items: center; transition: background .25s; }
.cal-top button:hover { background: var(--crimson); }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal .dow { font: 700 11px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); text-align: center; padding: 6px 0 10px; }
.cal .day { min-height: 84px; border-radius: 12px; background: var(--mist); padding: 8px; display: grid; align-content: start; gap: 4px; }
.cal .day.out { opacity: .35; }
.cal .day.today { box-shadow: inset 0 0 0 2px var(--crimson-t); }
.cal .day .d { font: 800 16px/1 var(--f); }
.cal .day .e { font-size: 11px; font-weight: 700; line-height: 1.2; padding: 4px 6px; border-radius: 6px; background: var(--sky); color: #0E1F33; }
.cal .day .e.c { background: var(--crimson); color: #fff; } .cal .day .e.b { background: var(--chip); color: #fff; }
/* an event from the church's Planning Center calendar: outlined, so it stands apart from the weekly gatherings */
.cal .day .e.f { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--crimson-t); overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 640px) { .cal .day { min-height: 56px; padding: 5px 3px; } .cal .day .e { font-size: 9px; padding: 2px 3px; } }
.verse { position: relative; text-align: center; max-width: 1000px; margin: 0 auto; font: 800 clamp(28px, 3.6vw, 54px)/1.08 var(--f); font-stretch: 118%; text-transform: uppercase; }
.verse cite { display: block; margin-top: 24px; font: 700 13px/1 var(--f); letter-spacing: .16em; font-style: normal; color: var(--sky); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.info { display: grid; gap: 14px; }
.info .row { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 18px; background: var(--mist); }
.info .row svg { width: 52px; height: 52px; padding: 13px; border-radius: 50%; background: var(--chip); color: #fff; }
.info .row small { display: block; font: 700 11px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; color: var(--crimson-t); margin-bottom: 6px; }
.info .row a, .info .row span { font: 700 17px/1.3 var(--f); font-stretch: 108%; }
.form-card { background: var(--surface); border-radius: var(--r); padding: clamp(24px, 3vw, 44px); box-shadow: var(--card-edge), var(--shadow); }
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--mist); margin-bottom: 22px; }
.tabs [role=tab] { height: 42px; padding: 0 20px; border-radius: 999px; font: 700 13px/1 var(--f); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); transition: background .25s, color .25s; }
.tabs [aria-selected="true"] { background: var(--chip); color: #fff; }
.tabpanel[hidden] { display: none; }
.credits-list li { padding: 18px 0; border-top: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.credits-list li b { color: var(--ink); }
.credits-list a { text-decoration: underline; text-underline-offset: .15em; }

/* forms */
.form { display: grid; gap: 12px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form input, .form textarea { width: 100%; font: 400 16px/1.4 var(--f); color: var(--ink); background: var(--mist); border: 0; border-radius: 14px; padding: 16px 18px; box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, background .2s; }
.form input:focus, .form textarea:focus { outline: 0; background: var(--surface); box-shadow: inset 0 0 0 2px var(--bay); }
.form textarea { min-height: 150px; resize: vertical; }
.form label.check { display: flex; gap: 10px; align-items: center; font-size: 15px; color: var(--ink-2); }
.form label.check input { width: auto; }
.form .msg { display: none; padding: 14px 18px; border-radius: 14px; background: var(--ice); color: var(--ink); font-size: 15px; }
.form .msg.is-on { display: block; }
.form .btn { justify-self: start; }
@media (max-width: 560px) { .form .row2 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- footer */
.foot { position: relative; background: var(--navy); color: #fff; padding: clamp(110px, 12vw, 170px) 0 0; overflow: hidden; isolation: isolate; }
.foot .cta-row { display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: end; padding-bottom: clamp(48px, 6vw, 80px); border-bottom: 1px solid rgba(255, 255, 255, .12); }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: clamp(24px, 4vw, 56px); padding: clamp(40px, 5vw, 64px) 0; }
.foot .brand img { height: 74px; width: auto; }
.foot .about { margin-top: 18px; color: rgba(255, 255, 255, .7); font-size: 15px; max-width: 36ch; }
.foot h4 { font: 700 12px/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); margin-bottom: 18px; }
.foot li { margin-bottom: 10px; }
.foot li a { color: rgba(255, 255, 255, .86); font-size: 15px; }
.foot li a:hover { color: #fff; text-decoration: underline; text-underline-offset: .2em; }
.foot address { font-style: normal; color: rgba(255, 255, 255, .78); font-size: 15px; line-height: 1.75; }
.foot address a:hover { color: #fff; }
.foot .social { display: flex; gap: 10px; margin-top: 18px; }
.foot .social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background .25s, transform .25s; }
.foot .social a:hover { background: var(--crimson); transform: translateY(-2px); }
.foot .social svg { width: 18px; height: 18px; fill: #fff; }
.foot .legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 22px 0 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13px; color: rgba(255, 255, 255, .5); }
.foot .legal a { text-decoration: underline; text-underline-offset: .15em; }
.foot .legal .dev { flex-basis: 100%; display: flex; align-items: center; gap: 10px; color: rgba(255, 255, 255, .72); }
.foot .legal .dev img { height: 22px; width: auto; }
.foot .giant { font: 800 clamp(60px, 14.6vw, 250px)/.78 var(--f); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.02em; text-align: center; margin-top: clamp(10px, 2vw, 24px); color: rgba(255, 255, 255, .06); white-space: nowrap; user-select: none; transform: translateY(12%); }
@media (max-width: 960px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cta-row { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .foot .cols { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- motion */
[data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: calc(min(var(--i, 0), 6) * 80ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal="clip"] { opacity: 1; transform: none; clip-path: inset(12% 0 0 0 round var(--r)); transition: clip-path 1.2s var(--ease); }
[data-reveal="clip"].is-in { clip-path: inset(0 0 0 0 round var(--r)); }
.no-js [data-reveal], .rm [data-reveal] { opacity: 1; transform: none; clip-path: none; transition: none; }
[data-plx] { will-change: transform; }
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .split > .b, .value::after, .cta .mark, .promise::after, .mrow::after, .band .row, .waves svg, .hero .slide.on img { animation: none; }
}

/* ministry stock photos: per-photo focal points */
.tile img[src*="st-women"] { object-position: 50% 18%; }
.tile img[src*="st-men"] { object-position: 60% 50%; }


/* ================================================================ home calendar: a week that expands into the month */
.calx { margin-top: clamp(28px, 3.4vw, 48px); border-radius: var(--r); background: var(--surface); box-shadow: var(--card-edge), 0 1px 0 var(--line), 0 30px 70px -46px rgba(14, 31, 51, .55); overflow: hidden; }
.calx-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: clamp(18px, 2.2vw, 28px) clamp(18px, 2.4vw, 32px) 14px; }
.calx-head b { display: block; margin-top: 8px; font: 800 clamp(22px, 2.2vw, 30px)/1 var(--f); font-stretch: 122%; text-transform: uppercase; }
.calx-ctl { display: flex; align-items: center; gap: 8px; }
.calx-ctl .nav-b { width: 44px; height: 44px; border-radius: 50%; background: var(--mist); display: grid; place-items: center; transition: background .25s, color .25s, opacity .3s; }
.calx-ctl .nav-b:hover { background: var(--chip); color: #fff; }
.calx:not(.open) .calx-ctl .nav-b { opacity: 0; pointer-events: none; }
.calx-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; padding: 0 clamp(12px, 2vw, 26px) clamp(16px, 2vw, 24px); }
.calx-day { position: relative; min-height: 118px; padding: 12px 10px; border-radius: 16px; background: var(--mist); display: grid; align-content: start; gap: 6px; transition: background .3s, transform .3s var(--ease); }
.calx-day .dw { font: 700 11px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.calx-day .dn { font: 800 26px/1 var(--f); font-stretch: 120%; }
.calx-day.today { background: var(--chip); color: #fff; } .calx-day.today .dw { color: var(--sky); }
.calx-day.past { opacity: .5; }
.calx-ev { display: block; padding: 7px 9px; border-radius: 10px; background: #DCE9F8; color: #0E1F33; font: 700 12px/1.2 var(--f); transition: transform .25s var(--ease), background .25s; }
.calx-ev small { display: block; font-weight: 500; opacity: .8; margin-top: 2px; }
.calx-ev:hover { transform: translateY(-2px); }
.calx-ev.c { background: var(--crimson); color: #fff; } .calx-ev.b { background: var(--bay); color: #fff; } .calx-ev.p { background: var(--chip); color: #fff; }
.calx-ev.f { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--crimson-t); }
.calx-day.today .calx-ev:not(.c):not(.b) { background: rgba(255, 255, 255, .16); color: #fff; }
.calx-month { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .8s var(--ease); }
.calx.open .calx-month { grid-template-rows: 1fr; }
.calx-month > div { overflow: hidden; min-height: 0; }
.calx-month .cal { padding: 4px clamp(12px, 2vw, 26px) clamp(18px, 2.4vw, 28px); opacity: 0; transform: translateY(-10px); transition: opacity .5s .15s, transform .6s var(--ease) .15s; }
.calx.open .calx-month .cal { opacity: 1; transform: none; }
.calx.open .calx-week { display: none; }
.calx-toggle .chev { transition: transform .4s var(--ease); }
.calx.open .calx-toggle .chev { transform: rotate(180deg); }
.calx .cal .day { cursor: default; }
@media (max-width: 760px) {
  .calx-week { grid-template-columns: 1fr; }
  .calx-day { min-height: 0; grid-template-columns: 56px 1fr; align-items: center; padding: 10px 12px; }
  .calx-day .dw, .calx-day .dn { grid-column: 1; }
  .calx-day .evs { grid-column: 2; grid-row: 1 / span 2; display: grid; gap: 6px; }
  .calx-day:not(:has(.calx-ev)):not(.today) { display: none; }
}

/* ================================================================ invite sheet (smoked glass) */
.inv-ov, .invit, .dir-ov, .qr-full { position: fixed; inset: 0; z-index: 95; display: grid; place-items: center; padding: 16px; opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.inv-ov.open, .invit.open, .dir-ov.open, .qr-full.open { opacity: 1; visibility: visible; }
.inv-ov { background: rgba(5, 10, 20, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.inv-sheet { position: relative; width: min(1000px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 30px; color: #fff;
  background: var(--smoke-deep); backdrop-filter: blur(32px) saturate(1.5); -webkit-backdrop-filter: blur(32px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--smoke-line), inset 0 1px 0 rgba(255, 255, 255, .14), 0 50px 120px -40px rgba(0, 0, 0, .8);
  display: grid; grid-template-columns: 1.35fr .9fr; transform: translateY(24px) scale(.98); transition: transform .5s var(--ease); }
.inv-ov.open .inv-sheet { transform: none; }
.inv-x { position: absolute; top: 14px; right: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; }
.inv-x:hover { background: rgba(255, 255, 255, .2); }
.inv-form { padding: clamp(24px, 3vw, 40px); display: grid; gap: 18px; align-content: start; }
.inv-form h2 { font: 800 clamp(28px, 3vw, 42px)/.95 var(--f); font-stretch: 125%; text-transform: uppercase; margin-top: 8px; }
.inv-form .intro { margin: 0; color: rgba(255, 255, 255, .74); font-size: 15px; }
.inv-label { font: 700 11px/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); }
.inv-occ { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-occ button { display: grid; gap: 3px; text-align: left; padding: 12px 16px; border-radius: 16px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--smoke-line); color: #fff; transition: background .25s, box-shadow .25s; }
.inv-occ button b { font: 800 15px/1 var(--f); font-stretch: 112%; text-transform: uppercase; }
.inv-occ button small { font-size: 13px; color: rgba(255, 255, 255, .72); }
.inv-occ button[aria-pressed="true"] { background: var(--crimson); box-shadow: none; }
.inv-occ button[aria-pressed="true"] small { color: rgba(255, 255, 255, .9); }
.inv-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.inv-fields label { display: grid; gap: 6px; font: 600 12px/1 var(--f); letter-spacing: .06em; color: rgba(255, 255, 255, .72); }
.inv-fields .wide { grid-column: 1 / -1; }
.inv-fields input, .inv-fields textarea { font: 400 16px/1.4 var(--f); color: #fff; background: rgba(255, 255, 255, .08); border: 0; border-radius: 14px; padding: 13px 15px; box-shadow: inset 0 0 0 1px var(--smoke-line); width: 100%; }
.inv-fields textarea { min-height: 76px; resize: vertical; }
.inv-fields input::placeholder, .inv-fields textarea::placeholder { color: rgba(255, 255, 255, .45); }
.inv-fields input:focus, .inv-fields textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--sky); background: rgba(255, 255, 255, .12); }
.inv-bubble { position: relative; justify-self: start; max-width: 100%; padding: 14px 16px; border-radius: 20px 20px 20px 6px; background: #fff; color: #10151d; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; }
.inv-bubble .lk { color: var(--blue); }
.inv-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.inv-acts button { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-radius: 999px; color: #fff; font: 700 13px/1 var(--f); letter-spacing: .04em; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--smoke-line); transition: background .25s; }
.inv-acts button:hover { background: rgba(255, 255, 255, .16); }
.inv-acts button.primary { background: var(--crimson); box-shadow: none; }
.inv-acts button.primary:hover { background: var(--crimson-2); }
.inv-acts svg { width: 17px; height: 17px; }
.inv-qr { padding: clamp(24px, 3vw, 40px); display: grid; gap: 14px; align-content: center; justify-items: center; text-align: center; background: rgba(255, 255, 255, .05); box-shadow: inset 1px 0 0 var(--smoke-line); }
.inv-qr .code { width: min(240px, 100%); aspect-ratio: 1; padding: 14px; border-radius: 22px; background: #fff; box-shadow: 0 0 0 4px var(--crimson); }
.inv-qr .code svg { width: 100%; height: 100%; }
.inv-qr .url { max-width: 100%; font: 500 12px/1.4 var(--f); color: rgba(255, 255, 255, .6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-qr .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.inv-qr .acts button { height: 40px; padding: 0 14px; border-radius: 999px; font: 700 12px/1 var(--f); letter-spacing: .04em; color: #fff; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--smoke-line); }
.inv-qr .acts button:hover { background: rgba(255, 255, 255, .16); }
@media (max-width: 820px) { .inv-sheet { grid-template-columns: 1fr; border-radius: 26px; } .inv-qr { box-shadow: inset 0 1px 0 var(--smoke-line); } .inv-fields { grid-template-columns: 1fr; } }
.qr-full { z-index: 99; background: #fff; color: #0E1F33; align-content: center; gap: 18px; text-align: center; }
.qr-full .code { width: min(78vw, 70vh, 560px); aspect-ratio: 1; }
.qr-full .code svg { width: 100%; height: 100%; }
.qr-full b { font: 800 clamp(20px, 2.4vw, 30px)/1.1 var(--f); font-stretch: 118%; text-transform: uppercase; }
.qr-full .x { position: absolute; top: 18px; right: 18px; width: 48px; height: 48px; border-radius: 50%; background: #EEF2F8; color: #0E1F33; display: grid; place-items: center; }
.inv-toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translate(-50%, 20px); padding: 12px 18px; border-radius: 999px; font: 600 14px/1 var(--f); color: #fff; background: var(--smoke-deep); backdrop-filter: var(--smoke-blur); -webkit-backdrop-filter: var(--smoke-blur); box-shadow: inset 0 0 0 1px var(--smoke-line); opacity: 0; transition: opacity .3s, transform .3s var(--ease); pointer-events: none; }
.inv-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ================================================================ the invitation a friend opens */
.invit { z-index: 96; align-items: start; overflow-y: auto; padding: max(16px, env(safe-area-inset-top)) 16px 96px; background: rgba(5, 10, 20, .38); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.invit-card { width: min(440px, 100%); margin: 4vh auto 0; border-radius: 28px; overflow: hidden; color: #fff; background: rgba(12, 20, 34, .55); backdrop-filter: blur(28px) saturate(1.5); -webkit-backdrop-filter: blur(28px) saturate(1.5); box-shadow: inset 0 0 0 1px var(--smoke-line), 0 50px 120px -40px rgba(0, 0, 0, .8); transform: translateY(30px); transition: transform .7s var(--ease); }
.invit.open .invit-card { transform: none; }
.invit-art { aspect-ratio: 16 / 9; position: relative; }
.invit-art img { width: 100%; height: 100%; object-fit: cover; }
.invit-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(12, 20, 34, .7), transparent 60%); }
.invit-top { text-align: center; padding: 22px 24px 8px; }
.invit-h { margin: 0 0 10px; font: 800 34px/1 var(--f); font-stretch: 125%; text-transform: uppercase; }
.invit-name { margin: 0; font: 700 18px/1.2 var(--f); }
.invit-when { margin: 4px 0 0; color: rgba(255, 255, 255, .72); font-size: 15px; }
.invit-cal { display: block; width: 100%; margin: 18px 0 4px; padding: 16px; border-radius: 999px; background: #fff; color: #0E1F33; font: 800 16px/1 var(--f); font-stretch: 112%; letter-spacing: .04em; text-transform: uppercase; }
.invit-msg { padding: 6px 24px 0; }
.invit-msg p { margin: 0 0 12px; color: rgba(255, 255, 255, .88); font-size: 16px; line-height: 1.55; }
.invit-msg .hey { color: #fff; font-weight: 700; margin-top: 10px; }
.invit-msg .sign { color: #fff; font-weight: 600; }
.invit-acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 8px 18px 26px; }
.invit-acts button, .invit-acts a { height: 46px; padding: 0 18px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--f); letter-spacing: .06em; text-transform: uppercase; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.invit-acts button:hover, .invit-acts a:hover { background: rgba(255, 255, 255, .12); }
.invit-more { position: fixed; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(440px, calc(100% - 32px)); height: 56px; border-radius: 999px; background: var(--crimson); color: #fff; font: 800 15px/1 var(--f); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 20px 40px -20px rgba(184, 41, 76, .9); }
.invit-more i { display: inline-block; animation: bob 1.8s ease-in-out infinite; font-style: normal; }
@keyframes bob { 50% { transform: translateY(4px); } }

/* ================================================================ directions sheet (near-opaque so it reads over glass) */
.dir-ov { z-index: 110; background: rgba(5, 10, 20, .6); align-items: end; }
@media (min-width: 700px) { .dir-ov { align-items: center; } }
.dir-card { width: min(420px, 100%); border-radius: 26px; padding: 20px; color: #fff; background: rgba(20, 26, 38, .97); box-shadow: inset 0 0 0 1px var(--smoke-line), 0 40px 100px -40px rgba(0, 0, 0, .9); transform: translateY(30px); transition: transform .45s var(--ease); }
.dir-ov.open .dir-card { transform: none; }
.dir-card h3 { font: 800 20px/1.1 var(--f); font-stretch: 118%; text-transform: uppercase; margin: 4px 4px 4px; }
.dir-card .addr { margin: 0 4px 14px; color: rgba(255, 255, 255, .66); font-size: 14px; }
.dir-card a, .dir-card button { display: flex; align-items: center; gap: 14px; width: 100%; height: 56px; padding: 0 14px; border-radius: 16px; color: #fff; font: 600 16px/1 var(--f); text-align: left; }
.dir-card .ico.brand { background: #fff; }
.dir-card .ico.brand svg { width: 22px; height: 22px; }
.dir-card a:hover, .dir-card button:hover { background: rgba(255, 255, 255, .08); }
.dir-card .ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; font: 800 13px/1 var(--f); }
.dir-card .cancel { justify-content: center; margin-top: 8px; background: rgba(255, 255, 255, .08); }
@media (prefers-reduced-motion: reduce) { .inv-sheet, .invit-card, .dir-card { transition: none; transform: none; } .invit-more i { animation: none; } }

/* ================================================================ hope, direction, healing: three scriptures under the welcome */
.promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: clamp(48px, 6vw, 90px); }
.promise { position: relative; margin: 0; padding: clamp(24px, 2.6vw, 38px); border-radius: var(--r); background: var(--mist); display: grid; gap: 16px; align-content: start; overflow: hidden; isolation: isolate; transition: transform .5s var(--ease), background .4s, color .4s, box-shadow .5s; }
.promise::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 110px; background: var(--wave); opacity: .16; transform: translateY(34%); pointer-events: none;
  -webkit-mask: url(wave-mask.svg?v=6d96cdae) 0 0 / 200% 100% repeat-x; mask: url(wave-mask.svg?v=6d96cdae) 0 0 / 200% 100% repeat-x; animation: tide 16s linear infinite; transition: transform .9s var(--ease), opacity .5s; }
.promise figcaption { display: inline-flex; align-items: center; gap: 10px; font: 800 clamp(22px, 2vw, 30px)/1 var(--f); font-stretch: 125%; text-transform: uppercase; }
.promise figcaption::before { content: ""; width: 13px; height: 17px; background: var(--crimson-t); -webkit-mask: url(cross.svg?v=c8ccf4d9) center / contain no-repeat; mask: url(cross.svg?v=c8ccf4d9) center / contain no-repeat; }
.promise blockquote { margin: 0; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.6; color: var(--ink-2); }
.promise cite { font: 700 12px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; font-style: normal; color: var(--crimson-t); padding-bottom: 18px; }
.promise:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.promise:hover::after { transform: none; opacity: .3; }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; } }

/* ================================================================ meet our pastor: the whole section slides left
   three full-width panels side by side (intro, the pastor's story, Carissa's story); buttons, swipe or trackpad move between them */
.pastors-grid .lead { margin: 0; }
.pstory { padding-left: 0; padding-right: 0; }
.ps-track { display: flex; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.ps-track::-webkit-scrollbar { display: none; }
.ps-panel { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; display: grid; align-items: center; }
.ps-bio { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 6vw, 96px); align-items: center; }
.ps-bio > * { min-width: 0; }
.ps-head h2 { margin: 18px 0 22px; }
.ps-quote { margin: 0 0 30px; max-width: 24ch; font: 700 clamp(21px, 2vw, 30px)/1.22 var(--f); font-stretch: 108%; letter-spacing: -.01em; color: var(--bay-t); }
.ps-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.ps-ph { width: min(100%, 230px); aspect-ratio: 343 / 373; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); margin-bottom: 22px; }
#bishop .ps-ph { width: min(100%, 300px); }
.ps-ph img { width: 100%; height: 100%; object-fit: cover; }
/* on the About page the same two-column block is not inside a sliding panel, so it is always shown */
#bishop .ps-head, #bishop .ps-text { opacity: 1; transform: none; }
#bishop .ps-head[data-reveal], #bishop .ps-text[data-reveal] { transition: opacity 1s var(--ease), transform 1s var(--ease); }
.ps-nav .btn svg { margin-right: -2px; }
.btn svg.back { width: 22px; height: 10px; }
.ps-text p { color: var(--ink-2); margin: 0 0 1.15em; font-size: clamp(17px, 1.3vw, 19px); line-height: 1.7; }
.ps-text p.lead { color: var(--ink); font-size: clamp(20px, 1.75vw, 26px); line-height: 1.45; }
.ps-text p:last-child { margin-bottom: 0; }
/* the words of a panel settle in as it arrives */
.ps-bio .ps-head, .ps-bio .ps-text { opacity: 0; transform: translateX(70px); transition: opacity .8s var(--ease) .12s, transform 1s var(--ease) .12s; }
.ps-bio .ps-text { transition-delay: .22s; }
.ps-panel.is-on .ps-head, .ps-panel.is-on .ps-text { opacity: 1; transform: none; }
.rm .ps-bio .ps-head, .rm .ps-bio .ps-text, .no-js .ps-bio .ps-head, .no-js .ps-bio .ps-text { opacity: 1; transform: none; transition: none; }
.rm .ps-track { scroll-behavior: auto; }
.ps-foot { display: flex; align-items: center; gap: 16px; margin-top: clamp(28px, 4vw, 52px); }
.ps-steps { display: flex; gap: 8px; }
.ps-steps button { position: relative; width: 56px; height: 28px; padding: 0; }
.ps-steps button::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.ps-steps button.on::before { background: var(--crimson); }
.ps-steps button:hover::before { background: var(--crimson-2); }
.ps-label { font: 700 12px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
@media (max-width: 860px) { .ps-bio { grid-template-columns: 1fr; gap: 22px; } .ps-panel { align-items: start; } .ps-head h2 { margin: 14px 0 20px; } .ps-glass.ps-bio { min-height: 0; } }

/* ================================================================ ministries: an accordion.
   Only the eight names show. A row floods crimson on hover; opened, it stays crimson and unfolds its detail and link. */
.mlist { border-top: 1px solid var(--line); }
.mrow { position: relative; isolation: isolate; overflow: hidden; border-bottom: 1px solid var(--line); transition: color .35s, opacity .35s; }
.mrow::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(100deg, var(--crimson-2), var(--crimson) 55%, #96203F); clip-path: inset(0 100% 0 0); transition: clip-path .65s var(--ease); }
.mrow::after { content: ""; position: absolute; z-index: -1; left: 0; right: 0; bottom: 0; height: 70px; background: var(--sky); transform: translateY(100%); pointer-events: none;
  -webkit-mask: url(wave-mask.svg?v=6d96cdae) 0 0 / 60% 100% repeat-x; mask: url(wave-mask.svg?v=6d96cdae) 0 0 / 60% 100% repeat-x; animation: tide-s 16s linear infinite; transition: transform .8s var(--ease) .1s; }
@keyframes tide-s { from { -webkit-mask-position: 0 0; mask-position: 0 0; } to { -webkit-mask-position: 150% 0; mask-position: 150% 0; } }
.mrow h3 { margin: 0; font: inherit; }
.mrow-head { width: 100%; display: grid; grid-template-columns: 56px minmax(0, 1fr) 52px; align-items: center; gap: clamp(14px, 3vw, 44px); padding: clamp(16px, 1.8vw, 26px) clamp(8px, 1.6vw, 24px); text-align: left; color: inherit; transition: padding .55s var(--ease); }
.mrow .no { font: 800 14px/1 var(--f); letter-spacing: .12em; color: var(--bay-t); transition: color .35s; }
.mrow .nm { overflow-wrap: anywhere; font: 800 clamp(28px, 4vw, 62px)/.95 var(--f); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.015em; transition: transform .6s var(--ease); }
.mrow .pm { position: relative; width: 52px; height: 52px; border-radius: 50%; background: var(--chip); color: #fff; transition: background .35s, color .35s, transform .5s var(--ease); }
.mrow .pm::before, .mrow .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 2px; margin: -1px 0 0 -9px; border-radius: 2px; background: currentColor; transition: transform .5s var(--ease); }
.mrow .pm::after { transform: rotate(90deg); }
.mrow-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.mrow-body > div { overflow: hidden; min-height: 0; padding: 0 clamp(8px, 1.6vw, 24px) 0 calc(56px + clamp(14px, 3vw, 44px) + clamp(8px, 1.6vw, 24px)); display: grid; gap: 14px; justify-items: start; opacity: 0; transform: translateY(-8px); transition: opacity .4s, transform .6s var(--ease), padding .6s var(--ease); }
.mrow-body p { margin: 0; max-width: 56ch; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, .94); }
.mrow-body .link { color: #fff; }
.mrow:hover, .mrow.open, .mrow:has(.mrow-head:focus-visible) { color: #fff; }
.mrow:hover::before, .mrow.open::before, .mrow:has(.mrow-head:focus-visible)::before { clip-path: inset(0 0 0 0); }
.mrow:hover .no, .mrow.open .no { color: #fff; }
.mrow:hover .mrow-head, .mrow.open .mrow-head { padding-left: clamp(20px, 3.2vw, 52px); }
.mrow:hover .pm, .mrow.open .pm { background: #fff; color: var(--crimson); }
.mrow.open .pm { transform: rotate(180deg); }
.mrow.open .pm::after { transform: rotate(0deg); }
.mrow.open::after { transform: none; }
.mrow.open .mrow-body { grid-template-rows: 1fr; }
.mrow.open .mrow-body > div { opacity: 1; transform: none; padding-bottom: clamp(44px, 4vw, 60px); padding-left: calc(56px + clamp(14px, 3vw, 44px) + clamp(20px, 3.2vw, 52px)); transition-delay: .12s; }
@media (hover: hover) { .mlist:hover .mrow:not(:hover):not(.open) { opacity: .42; } }
.mrow[id] { scroll-margin-top: 100px; }
.no-js .mrow { color: inherit; } .no-js .mrow-body { grid-template-rows: 1fr; } .no-js .mrow-body > div { opacity: 1; transform: none; padding-bottom: 20px; } .no-js .mrow-body p { color: var(--ink-2); } .no-js .mrow-body .link { color: var(--crimson-t); } .no-js .mrow .pm { display: none; }
@media (max-width: 760px) {
  .mrow-head { grid-template-columns: 30px minmax(0, 1fr) 40px; gap: 12px; padding: 14px 4px; }
  .mrow:hover .mrow-head, .mrow.open .mrow-head { padding-left: 12px; }
  .mrow .nm { font-size: clamp(22px, 6.6vw, 30px); overflow-wrap: break-word; }
  .mrow .pm { width: 40px; height: 40px; }
  .mrow .pm::before, .mrow .pm::after { width: 14px; margin-left: -7px; }
  .mrow .no { font-size: 12px; }
  .mrow-body > div, .mrow.open .mrow-body > div { padding-left: 54px; padding-right: 12px; }
  .mrow.open .mrow-body > div { padding-bottom: 46px; }
  .mrow-body p { font-size: 15px; }
}
html[lang="km"] .mrow .nm { line-height: 1.45; }

/* the passcode box for publishing sits above the edit bar */
.gw-edit-pop.gw-key { position: fixed; left: 50%; bottom: 108px; transform: translateX(-50%); width: min(360px, calc(100vw - 24px)); }
.gw-edit-pop input { width: 100%; font: 400 16px/1.4 var(--f); color: #fff; background: rgba(255, 255, 255, .08); border: 0; border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--smoke-line); }
.gw-edit-pop input:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--sky); }
.gw-edit-bar [data-msg] { color: var(--sky); font-weight: 700; }

/* ================================================================ plan a visit: a pop-up card (opened by any link ending in #visit) */
.vis-ov { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 16px; background: rgba(5, 10, 20, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.vis-ov.open { opacity: 1; visibility: visible; }
.vis-card { position: relative; width: min(1040px, 100%); max-height: calc(100dvh - 32px); overflow: auto; border-radius: 30px; color: #fff; display: grid; grid-template-columns: 1.05fr .95fr;
  background: var(--smoke-deep); backdrop-filter: blur(32px) saturate(1.5); -webkit-backdrop-filter: blur(32px) saturate(1.5);
  box-shadow: inset 0 0 0 1px var(--smoke-line), inset 0 1px 0 rgba(255, 255, 255, .14), 0 50px 120px -40px rgba(0, 0, 0, .8); transform: translateY(26px) scale(.98); transition: transform .5s var(--ease); }
.vis-ov.open .vis-card { transform: none; }
.vis-card .visit-card { background: transparent; border-radius: 0; padding: clamp(24px, 3vw, 40px); gap: 16px; }
.vis-h { font: 800 clamp(30px, 3.4vw, 46px)/.95 var(--f); font-stretch: 125%; text-transform: uppercase; letter-spacing: -.015em; margin: 4px 0 0; }
.vis-card .lead { margin: 0; font-size: 17px; }
.vis-card .visit-card li { padding: 12px 0; }
.vis-card .visit-photo { border-radius: 0; min-height: 100%; }
.vis-card .inv-x { z-index: 3; background: rgba(8, 14, 25, .55); }
@media (max-width: 820px) {
  .vis-card { grid-template-columns: 1fr; border-radius: 26px; }
  .vis-card .visit-photo { order: -1; min-height: 0; aspect-ratio: 1440 / 730; }
  .vis-card .visit-card .btns .btn { flex: 1 1 auto; }
}

/* ================================================================ visitor tools: language, light/dark, edit text */
.icon-btn { position: relative; display: inline-grid; grid-auto-flow: column; place-items: center; gap: 6px; height: 46px; min-width: 46px; padding: 0 12px; border-radius: 999px; color: #fff; background: var(--smoke); backdrop-filter: var(--smoke-blur); -webkit-backdrop-filter: var(--smoke-blur); box-shadow: inset 0 0 0 1px var(--smoke-line); transition: background .25s; }
.icon-btn:hover { background: rgba(255, 255, 255, .18); }
.icon-btn svg { width: 19px; height: 19px; flex: none; }
/* other languages run longer: tighter links, and the menu button takes over sooner */
html:not([lang="en"]) .top nav a { padding-inline: 9px; letter-spacing: .05em; }
html:not([lang="en"]) .top .invite-btn span { display: none; } html:not([lang="en"]) .top .invite-btn { width: 46px; padding: 0; justify-content: center; }
@media (max-width: 1340px) { html:not([lang="en"]) .top nav { display: none; } html:not([lang="en"]) .top .burger { display: grid; } }
.icon-btn b { font: 700 12px/1 var(--f); letter-spacing: .08em; }
.i-sun { display: none; }
html.is-dark .i-sun { display: block; } html.is-dark .i-moon { display: none; }
.l-light { display: none; } html.is-dark .l-light { display: inline; } html.is-dark .l-dark { display: none; }
.menu-tools { display: flex; gap: 10px; flex: 1 1 100%; }
.menu-tools button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 50px; border-radius: 999px; color: #fff; font: 700 13px/1 var(--f); letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--smoke-line); }
.menu-tools svg { width: 18px; height: 18px; }
@media (max-width: 1180px) { .top .theme-btn { display: none; } }
@media (max-width: 560px) { .top .icon-btn { height: 44px; min-width: 44px; padding: 0 10px; } .top .invite-btn { display: none; } }
html.i18n-wait body { visibility: hidden; }
.gw-lang { position: fixed; z-index: 90; top: 82px; right: max(var(--gutter), calc((100vw - var(--max)) / 2)); width: min(300px, calc(100vw - 32px)); padding: 10px; border-radius: 22px; color: #fff; background: var(--smoke-deep); backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5); box-shadow: inset 0 0 0 1px var(--smoke-line), 0 40px 90px -40px rgba(0, 0, 0, .8); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s, transform .35s var(--ease), visibility .25s; }
.gw-lang.open { opacity: 1; visibility: visible; transform: none; }
.gw-lang h3 { font: 700 11px/1 var(--f); letter-spacing: .16em; text-transform: uppercase; color: var(--sky); padding: 10px 12px 8px; }
.gw-lang button { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 12px 14px; border-radius: 14px; color: #fff; font: 600 16px/1.2 var(--f); text-align: left; transition: background .2s; }
.gw-lang button:hover { background: rgba(255, 255, 255, .1); }
.gw-lang button[aria-pressed="true"] { background: var(--crimson); }
.gw-lang button small { font: 700 11px/1 var(--f); letter-spacing: .1em; opacity: .7; }
@media (max-width: 560px) { .gw-lang { top: 76px; right: 16px; } }
.edit-link { font: inherit; color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.gw-edit-bar { position: fixed; z-index: 130; left: 50%; bottom: max(16px, env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(760px, calc(100vw - 24px)); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 14px 12px 20px; border-radius: 22px; color: #fff; font: 500 14px/1.35 var(--f); background: var(--smoke-deep); backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5); box-shadow: inset 0 0 0 1px var(--smoke-line), 0 30px 80px -30px rgba(0, 0, 0, .8); }
.gw-edit-bar p { margin: 0; flex: 1 1 240px; }
.gw-edit-bar b { color: var(--sky); }
.gw-edit-bar .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.gw-edit-bar button, .gw-edit-pop button { height: 40px; padding: 0 16px; border-radius: 999px; color: #fff; font: 700 12px/1 var(--f); letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px var(--smoke-line); }
.gw-edit-bar button.go, .gw-edit-pop button.go { background: var(--crimson); box-shadow: none; }
.gw-edit-bar button:disabled { opacity: .4; }
body.gw-editing [data-gw-hot] { outline: 2px dashed var(--crimson-2); outline-offset: 4px; border-radius: 6px; cursor: text; }
body.gw-editing a, body.gw-editing button { cursor: text; }
.gw-edit-pop { position: absolute; z-index: 131; width: min(460px, calc(100vw - 24px)); padding: 14px; border-radius: 20px; color: #fff; background: rgba(12, 19, 32, .96); box-shadow: inset 0 0 0 1px var(--smoke-line), 0 30px 80px -30px rgba(0, 0, 0, .85); display: grid; gap: 10px; }
.gw-edit-pop label { font: 700 11px/1 var(--f); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.gw-edit-pop textarea { width: 100%; min-height: 96px; resize: vertical; font: 400 16px/1.45 var(--f); color: #fff; background: rgba(255, 255, 255, .08); border: 0; border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 0 0 1px var(--smoke-line); }
.gw-edit-pop textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--sky); }
.gw-edit-pop .acts { display: flex; justify-content: space-between; gap: 8px; }

/* scripts that stand taller than Latin capitals need more room between headline lines */
html[lang="km"] .h-xxl, html[lang="km"] .h-xl, html[lang="km"] .h-l, html[lang="km"] .h-m { line-height: 1.5; letter-spacing: 0; }
html[lang="km"] .split > span { padding: .08em 0; }
html[lang="km"] .hero .inner, html[lang="km"] .phero .wrap { gap: 26px; }
html[lang="km"] .menu nav a, html[lang="km"] .tile h3, html[lang="km"] .value h3, html[lang="km"] .card h3, html[lang="km"] .promise figcaption, html[lang="km"] .cta h2 { line-height: 1.45; }
html[lang="zh"] .h-xxl, html[lang="zh"] .h-xl, html[lang="zh"] .h-l { line-height: 1.12; letter-spacing: .02em; }

/* ================================================================ finish: type rhythm and small-screen headline scale */
h1, h2, h3, .lead, .verse { text-wrap: balance; }
p { text-wrap: pretty; }
img { image-rendering: auto; }
.btn, .link, .top nav a, .tabs [role=tab] { -webkit-tap-highlight-color: transparent; }
.btn:active { transform: translateY(0) scale(.98); }
.card, .value, .ev, .promise, .tile, .gc, .cta, .visit-card, .calx, .cal-wrap, .form-card { -webkit-font-smoothing: antialiased; }
@media (max-width: 600px) {
  /* on phones the wide caps are drawn a little narrower so the same line can be set larger */
  .hero h1, .phero h1 { font-stretch: 98%; letter-spacing: -.02em; }
  .h-xl, .h-l { font-stretch: 112%; }
  .eyebrow { font-size: 11px; letter-spacing: .12em; gap: 8px; }
  .lead { font-size: 17px; }
  .sec { padding: clamp(60px, 15vw, 88px) 0; }
  .head-row, .center-head { margin-bottom: 28px; }
  .head-row { gap: 16px; }

  /* hero: one clear action, the other two share a row; the dock sits right under them */
  .hero { min-height: 100svh; }
  .hero .inner { gap: 18px; padding: 108px 0 clamp(110px, 26vw, 150px); }
  .hero .btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .hero .btns .btn, .foot .cta-row .btns .btn, .ps-nav .btn, .visit-card .btns .btn { white-space: normal; text-align: center; line-height: 1.2; min-width: 0; }
  .hero .btns .btn { min-height: 52px; padding: 0 14px; font-size: 13px; letter-spacing: .06em; }
  .hero .btns .btn:first-child { grid-column: 1 / -1; min-height: 56px; font-size: 14px; }
  .hero .btns .btn.ghost-light::after { display: none; }
  .times { margin-top: 4px; }
  .times a { padding: 12px 16px; }
  .times .t { font-size: 23px; }
  .phero { min-height: 440px; }
  .phero .wrap { padding: 120px 0 clamp(90px, 22vw, 130px); gap: 14px; }

  /* welcome */
  .welcome-grid { gap: 30px; }
  .welcome-grid h2 { margin: 14px 0 18px; }
  .mosaic { height: 380px; gap: 10px; }
  .promises { gap: 12px; margin-top: 40px; }
  .promise { padding: 22px 22px 26px; gap: 12px; }
  .promise cite { padding-bottom: 14px; }
  .band { padding: 18px 0; }
  .band .row span { font-size: 30px; }

  /* gatherings and calendar */
  .gc, .gc:nth-child(n) { min-height: 380px; top: calc(78px + var(--k, 0) * 14px); }
  .gc .in { margin: 10px; padding: 18px; gap: 8px; }
  .gc:not(.open) .time, .gc .time { font-size: 44px; }
  .calx-head { padding: 18px 16px 12px; }
  .calx-toggle { min-height: 42px; padding: 0 16px; }
  .calx-week { padding: 0 12px 14px; }
  .calx .cal { padding-inline: 8px; }

  /* ministries: two tight columns of photo tiles, names only; the two wide tiles keep their line of text */
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
  .tile.w2 { grid-column: 1 / -1; } .tile.h2 { grid-row: auto; }
  .tile.w2 { grid-row: span 1; }
  .tile { padding: 8px; }
  .tile .cap { padding: 10px 12px; border-radius: 12px; }
  .tile h3 { font-size: 17px; }
  .tile p { display: none; }
  .tile.w2 p { display: block; font-size: 13px; margin-top: 5px; }
  .tile .go { top: 10px; right: 10px; width: 34px; height: 34px; }
  .tile .go svg { width: 14px; height: 14px; }

  /* watch, values, visit */
  .watch-grid { gap: 26px; }
  .chan-row { margin-top: 18px; }
  .chan { flex: 1 1 100%; }
  .player .play { width: 76px; height: 76px; }
  .values { gap: 10px; }
  .value { padding: 20px 22px 26px; gap: 10px; grid-template-columns: auto 1fr; align-items: center; }
  .value .n { font-size: 42px; grid-row: 1; }
  .value h3 { font-size: 20px; grid-column: 2; }
  .value p { grid-column: 1 / -1; }
  .visit-grid { gap: 12px; }
  .visit-photo .addr { font-size: 13px; padding: 10px 14px; }
  .visit-card { padding: 24px 22px; gap: 16px; }
  .visit-card li { padding: 13px 0; grid-template-columns: 34px 1fr; gap: 12px; }
  .visit-card .btns .btn { flex: 1 1 auto; }

  /* pastors and panels */
  .pastors-grid { gap: 24px; }
  .pastors-grid .ph { aspect-ratio: 4 / 4.6; }
  .pastors-grid h2 { margin: 12px 0 16px; }
  .ps-text p { font-size: 16px; line-height: 1.65; }
  .ps-text p.lead { font-size: 18px; }
  .ps-nav .btn { flex: 1 1 auto; }
  .ps-quote { margin-bottom: 20px; font-size: 20px; }
  .ps-ph, #bishop .ps-ph { width: min(100%, 200px); margin-bottom: 16px; }
  .cta-duo { gap: 12px; }
  .cta { min-height: 0; padding: 28px 24px 84px; gap: 14px; }
  .cta .mark { height: 150px; }

  /* inner pages */
  .cards, .values { gap: 10px; }
  .card { padding: 22px; }
  .ev { padding: 16px; gap: 12px 14px; border-radius: 16px; }
  .ev .btns { grid-column: 1 / -1; }
  .beliefs summary { padding: 20px 0; gap: 12px; }
  .beliefs summary .pm { width: 38px; height: 38px; }
  .bio { gap: 22px; }
  .info .row { padding: 14px 16px; grid-template-columns: 44px 1fr; gap: 12px; }
  .info .row svg { width: 44px; height: 44px; padding: 11px; }
  .info .row a, .info .row span { font-size: 15px; overflow-wrap: anywhere; }
  .form-card { padding: 20px; }
  .tabs { display: flex; width: 100%; }
  .tabs [role=tab] { flex: 1; padding: 0 10px; }
  .verse { font-size: 24px; }
  .cal-top b { font-size: 19px; white-space: nowrap; }
  .cal-wrap { padding: 14px 10px; }

  /* footer */
  .foot { padding-top: 96px; }
  .foot .cta-row { gap: 20px; padding-bottom: 40px; }
  .foot .cta-row .btns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .foot .cta-row .btns .btn { padding: 0 12px; font-size: 13px; }
  .foot .cta-row .btns .btn:first-child { grid-column: 1 / -1; }
  .foot .cta-row .btns .btn.ghost-light::after { display: none; }
  .foot .cols { gap: 28px; padding: 36px 0; }
  .foot .brand img { height: 62px; }
  .foot .legal { padding: 18px 0 22px; }

  /* menu */
  .menu nav a { font-size: clamp(34px, 10vw, 46px); line-height: 1.08; }
  .menu .foot-row .btn { flex: 1 1 100%; }
}
@media (max-width: 600px) { .foot .cols { grid-template-columns: 1fr 1fr; } .foot .cols > :first-child, .foot .cols > :last-child { grid-column: 1 / -1; } }

/* ================================================================ dark mode: component overrides (tokens are at the top).
   Each rule is written twice: for the system setting (unless the visitor chose light) and for the visitor's own switch. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .btn.navy { --bg: #2B63B0; } :root:not([data-theme="light"]) .btn.navy:hover { background: #3E7FC9; }
  :root:not([data-theme="light"]) .value .n { color: rgba(159, 194, 238, .1); -webkit-text-stroke-color: var(--sky); }
  :root:not([data-theme="light"]) .form input::placeholder, :root:not([data-theme="light"]) .form textarea::placeholder { color: var(--ink-3); }
}
:root[data-theme="dark"] .btn.navy { --bg: #2B63B0; } :root[data-theme="dark"] .btn.navy:hover { background: #3E7FC9; }
:root[data-theme="dark"] .value .n { color: rgba(159, 194, 238, .1); -webkit-text-stroke-color: var(--sky); }
:root[data-theme="dark"] .form input::placeholder, :root[data-theme="dark"] .form textarea::placeholder { color: var(--ink-3); }
