/* =========================================================================
   The King's Prayer House — design system
   Concept: "The house that keeps watch." Time is the structural device.
   ========================================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Colour */
  --midnight:    #0B0A1F;
  --midnight-2:  #12102E;
  --indigo:      #191645;
  --indigo-2:    #262162;
  --brass:       #C9A24B;
  --brass-soft:  #E8D0A0;
  --brass-deep:  #7A5A1B;
  --lake:        #74AEC2;
  --lake-deep:   #3F7E93;
  --linen:       #EAE3D4;
  --linen-2:     #F2ECE0;
  --paper:       #FCFAF6;
  --ink:         #14122B;
  --ink-70:      #423E5C;
  --ink-50:      #5D5975;
  --on-dark:     #EDEAF5;
  --on-dark-70:  rgba(237, 234, 245, .78);
  --on-dark-45:  rgba(237, 234, 245, .63);
  --rule-dark:   rgba(201, 162, 75, .28);
  --rule-light:  rgba(20, 18, 43, .14);

  /* Type */
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body:    "Karla", "Helvetica Neue", Arial, sans-serif;
  --mono:    "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: clamp(.82rem, .80rem + .10vw, .88rem);
  --step-0:  clamp(1rem, .97rem + .16vw, 1.10rem);
  --step-1:  clamp(1.18rem, 1.11rem + .32vw, 1.38rem);
  --step-2:  clamp(1.42rem, 1.28rem + .66vw, 1.85rem);
  --step-3:  clamp(1.72rem, 1.45rem + 1.28vw, 2.55rem);
  --step-4:  clamp(2.05rem, 1.55rem + 2.35vw, 3.45rem);
  --step-5:  clamp(2.45rem, 1.55rem + 4.2vw, 4.75rem);

  /* Space & shell */
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --shell: 1220px;
  --shell-narrow: 760px;
  --band-y: clamp(4rem, 9vw, 8.5rem);
  --radius: 4px;
  --arch: 999px 999px var(--radius) var(--radius) / 46% 46% 2% 2%;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--step-0);
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, video { max-width: 100%; display: block; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); font-weight: 400; line-height: 1.06; letter-spacing: -.015em; font-variation-settings: "SOFT" 20, "WONK" 1; }
p { margin: 0 0 1.05em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1.05em; padding-left: 1.15em; }
li { margin-bottom: .4em; }
a { color: inherit; }
hr { border: 0; border-top: 1px solid var(--rule-light); margin: 2.5rem 0; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--lake);
  outline-offset: 3px;
  border-radius: 2px;
}

::selection { background: var(--brass); color: var(--midnight); }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--brass); color: var(--midnight);
  padding: .7rem 1.1rem; font-weight: 700; border-radius: var(--radius);
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout primitives ---------- */
.shell { width: min(100% - (var(--gutter) * 2), var(--shell)); margin-inline: auto; }
.shell--narrow { width: min(100% - (var(--gutter) * 2), var(--shell-narrow)); }

.band { padding-block: var(--band-y); position: relative; }
.band--tight { padding-block: clamp(2.75rem, 6vw, 5rem); }
.band--paper  { background: var(--paper); }
.band--linen  { background: var(--linen); }
.band--linen-2 { background: var(--linen-2); }
.band--night  { background: var(--midnight); color: var(--on-dark); }
.band--indigo { background: var(--indigo); color: var(--on-dark); }

.band--night h1, .band--night h2, .band--night h3,
.band--indigo h1, .band--indigo h2, .band--indigo h3 { color: var(--on-dark); }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.75rem); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); align-items: start; }
.grid--aside { grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); align-items: start; }

@media (max-width: 940px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--split, .grid--aside { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .19em;
  text-transform: uppercase;
  color: var(--brass-deep);
  margin: 0 0 1.15rem;
  display: flex; align-items: center; gap: .7rem;
}
.eyebrow::before {
  content: ""; width: 1.9rem; height: 1px; background: currentColor; flex: none; opacity: .8;
}
.band--night .eyebrow, .band--indigo .eyebrow,
.hero .eyebrow, .banner .eyebrow, .footer .eyebrow { color: var(--brass); }
.eyebrow--center { justify-content: center; }
@media (max-width: 620px) {
  .eyebrow--center { display: block; text-align: center; }
  .eyebrow--center::before { display: none; }
}

.h-hero  { font-size: var(--step-5); }
.h-major { font-size: var(--step-4); }
.h-sect  { font-size: var(--step-3); }
.h-card  { font-size: var(--step-1); letter-spacing: -.005em; }

.lede { font-size: var(--step-1); line-height: 1.5; color: var(--ink-70); }
.band--night .lede, .band--indigo .lede { color: var(--on-dark-70); }
.measure { max-width: 62ch; }
.measure--tight { max-width: 46ch; }
.muted { color: var(--ink-50); }
.band--night .muted, .band--indigo .muted { color: var(--on-dark-45); }
.center { text-align: center; }
.center .eyebrow { justify-content: center; }
.center .measure { margin-inline: auto; }
.mono { font-family: var(--mono); font-size: var(--step--1); letter-spacing: .02em; }

/* Small explanatory note under a block. Prose, so not mono. */
.note { font-size: .89rem; line-height: 1.6; color: var(--ink-50); max-width: 54ch; }
.note a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.band--night .note, .band--indigo .note { color: var(--on-dark-45); }

.section-head { margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head .lede { margin-top: 1.1rem; }

.rule { height: 1px; background: var(--rule-light); border: 0; margin: 0; }
.band--night .rule, .band--indigo .rule { background: var(--rule-dark); }

/* Scripture pull */
.verse {
  font-family: var(--display);
  font-size: var(--step-2);
  line-height: 1.28;
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  max-width: 22ch;
}
.verse__ref {
  display: block; margin-top: 1.1rem;
  font-family: var(--mono); font-style: normal;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--brass);
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--brass);
  --btn-fg: var(--midnight);
  --btn-bd: var(--brass);
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .92rem 1.6rem;
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid var(--btn-bd); border-radius: 2px;
  font-weight: 700; font-size: .93rem; letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); background: var(--brass-soft); border-color: var(--brass-soft); }
.btn .arw { transition: transform .2s var(--ease); }
.btn:hover .arw { transform: translateX(3px); }

.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--rule-light); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.band--night .btn--ghost, .band--indigo .btn--ghost,
.hero .btn--ghost, .banner .btn--ghost, .footer .btn--ghost {
  --btn-bg: rgba(237,234,245,.06); --btn-fg: var(--on-dark); --btn-bd: rgba(237,234,245,.45);
}
.band--night .btn--ghost:hover, .band--indigo .btn--ghost:hover,
.hero .btn--ghost:hover, .banner .btn--ghost:hover, .footer .btn--ghost:hover {
  background: var(--on-dark); color: var(--midnight); border-color: var(--on-dark);
}

.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--paper); --btn-bd: var(--ink); }
.btn--ink:hover { background: var(--indigo); border-color: var(--indigo); }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; color: var(--brass-deep);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: border-color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow:hover { border-color: currentColor; gap: .8rem; }
.band--night .link-arrow, .band--indigo .link-arrow { color: var(--brass); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: transparent;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding-block: 1.1rem;
  transition: padding .3s var(--ease);
}
.header.is-stuck {
  background: rgba(11, 10, 31, .93);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--rule-dark);
}
.header.is-stuck .header__inner { padding-block: .65rem; }

.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--on-dark); flex: none; }
.brand__mark { width: 46px; height: auto; flex: none; }
.brand__type { display: grid; line-height: 1.05; }
.brand__name { font-family: var(--display); font-size: 1.02rem; letter-spacing: .005em; }
.brand__sub {
  font-family: var(--mono); font-size: .58rem; letter-spacing: .22em;
  text-transform: uppercase; color: var(--brass); margin-top: .28rem;
}

.nav { display: flex; align-items: center; gap: clamp(.4rem, 1.4vw, 1.15rem); }
.nav__link {
  position: relative;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .5rem .15rem;
  text-decoration: none; color: var(--on-dark);
  font-size: .88rem; font-weight: 500; letter-spacing: .01em;
  background: none; border: 0; cursor: pointer;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: .18rem;
  height: 1px; background: var(--brass);
  transition: right .25s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { right: 0; }
.nav__link[aria-current="page"] { color: var(--brass-soft); }

.nav__item { position: relative; }
.nav__caret { width: 8px; height: 8px; opacity: .6; transition: transform .2s var(--ease); }
.nav__item:hover .nav__caret, .nav__item:focus-within .nav__caret { transform: rotate(180deg); }

.nav__menu {
  position: absolute; top: calc(100% + .45rem); left: -1rem;
  min-width: 250px; padding: .55rem;
  background: var(--midnight-2); border: 1px solid var(--rule-dark); border-radius: var(--radius);
  box-shadow: 0 24px 50px -22px rgba(0,0,0,.75);
  display: grid; gap: 1px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a {
  display: grid; gap: .12rem; padding: .62rem .8rem; border-radius: 2px;
  text-decoration: none; color: var(--on-dark); font-size: .88rem;
}
.nav__menu a span { font-family: var(--mono); font-size: .66rem; letter-spacing: .11em; text-transform: uppercase; color: var(--on-dark-45); }
.nav__menu a:hover { background: rgba(201,162,75,.14); }
.nav__menu a:hover span { color: var(--brass); }

.header__cta { display: flex; align-items: center; gap: .6rem; flex: none; }
.header .btn { padding: .62rem 1.15rem; font-size: .78rem; }

.burger {
  display: none; width: 44px; height: 44px; align-items: center; justify-content: center;
  background: none; border: 1px solid rgba(237,234,245,.25); border-radius: 2px; cursor: pointer;
}
.burger span { display: block; width: 18px; height: 1.5px; background: var(--on-dark); position: relative; transition: background .2s; }
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 1.5px; background: var(--on-dark);
  transition: transform .25s var(--ease), top .2s var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after { top: 0; transform: rotate(-45deg); }

/* Light-header variant for interior pages that open on a short banner */
.header--solid { background: var(--midnight); border-bottom-color: var(--rule-dark); }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 99;
  background: var(--midnight);
  padding: 6.5rem var(--gutter) 2.5rem;
  overflow-y: auto;
  transform: translateY(-100%);
  transition: transform .42s var(--ease);
  display: none;
}
.drawer.is-open { transform: none; }
.drawer__group { border-top: 1px solid var(--rule-dark); padding: 1.05rem 0; }
.drawer__group:last-of-type { border-bottom: 1px solid var(--rule-dark); }
.drawer a { text-decoration: none; color: var(--on-dark); }
.drawer__lead { font-family: var(--display); font-size: 1.6rem; display: block; }
.drawer__subs { display: grid; gap: .55rem; margin-top: .85rem; padding-left: 1rem; border-left: 1px solid var(--rule-dark); }
.drawer__subs a { font-size: .95rem; color: var(--on-dark-70); }
.drawer__foot { margin-top: 2rem; display: grid; gap: 1rem; }
.drawer__foot .btn { justify-content: center; }

@media (max-width: 1080px) {
  .nav, .header__cta .btn--desk { display: none; }
  .burger { display: inline-flex; }
  .drawer { display: block; }
}

body.is-locked { overflow: hidden; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--midnight);
  color: var(--on-dark);
  margin-top: -84px;
  padding-top: clamp(7.5rem, 11vh + 5.25rem, 13rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
}
/* Photograph behind the hero. The scrim is heavy on purpose: the headline has
   to stay readable over whatever the church swaps in later. */
.hero__photo { position: absolute; inset: 0; z-index: -4; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 42%; }
.hero__photo::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,10,31,.92) 0%, rgba(11,10,31,.80) 40%, rgba(11,10,31,.95) 100%),
    linear-gradient(90deg, rgba(11,10,31,.5) 0%, rgba(11,10,31,.3) 50%, rgba(11,10,31,.6) 100%);
}
.hero__glow {
  position: absolute; z-index: -3;
  left: 50%; top: 8%; translate: -50% 0;
  width: min(1150px, 130vw); aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 50% 62%, rgba(64,52,140,.75) 0%, rgba(38,33,98,.42) 32%, rgba(11,10,31,0) 66%);
  pointer-events: none;
}
.hero__arch {
  position: absolute; z-index: -1;
  left: 50%; bottom: -12%; translate: -50% 0;
  width: min(620px, 82vw); aspect-ratio: 3 / 4.6;
  border: 1px solid var(--rule-dark);
  border-bottom: 0;
  border-radius: var(--arch);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, transparent 2%, #000 45%);
          mask-image: linear-gradient(to top, transparent 2%, #000 45%);
}
.hero__arch::after {
  content: ""; position: absolute; inset: 14% 14% 0;
  border: 1px solid rgba(116,174,194,.16); border-bottom: 0;
  border-radius: var(--arch);
}
.hero__grain {
  position: absolute; inset: 0; z-index: -1; opacity: .5; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}
.hero__inner { position: relative; text-align: center; }
.hero h1 { font-size: var(--step-5); font-variation-settings: "SOFT" 34, "WONK" 1; }
.hero h1 em {
  font-style: italic; color: var(--brass-soft);
  font-variation-settings: "SOFT" 70, "WONK" 1;
}
.hero__lede { margin: 1.6rem auto 0; max-width: 56ch; color: var(--on-dark-70); font-size: var(--step-1); line-height: 1.55; }
.hero .btn-row { justify-content: center; margin-top: 2.3rem; }

/* ---------- THE WATCH (signature) ---------- */
.watch {
  margin-top: clamp(3rem, 6vw, 4.75rem);
  border: 1px solid var(--rule-dark);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(38,33,98,.35), rgba(11,10,31,.35));
  backdrop-filter: blur(3px);
  padding: clamp(1.15rem, 2.4vw, 1.75rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.25rem);
  text-align: left;
}
.watch__now { display: grid; gap: .3rem; flex: none; }
.watch__label {
  font-family: var(--mono); font-size: .62rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-45);
  display: flex; align-items: center; gap: .45rem;
}
.watch__dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--lake);
  box-shadow: 0 0 0 0 rgba(116,174,194,.6);
  animation: pulse 2.6s infinite;
}
.watch__dot--live { background: #6FD08C; animation-name: pulse-live; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(116,174,194,.55); }
  70%  { box-shadow: 0 0 0 9px rgba(116,174,194,0); }
  100% { box-shadow: 0 0 0 0 rgba(116,174,194,0); }
}
@keyframes pulse-live {
  0%   { box-shadow: 0 0 0 0 rgba(111,208,140,.6); }
  70%  { box-shadow: 0 0 0 11px rgba(111,208,140,0); }
  100% { box-shadow: 0 0 0 0 rgba(111,208,140,0); }
}
.watch__time {
  font-family: var(--mono); font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  letter-spacing: .01em; color: var(--on-dark); font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.watch__dial { display: grid; gap: .5rem; min-width: 0; }
.watch__ticks {
  display: grid; grid-template-columns: repeat(24, minmax(0, 1fr));
  gap: 2px; align-items: end; height: 40px; position: relative;
}
.watch__tick {
  height: 40%; background: rgba(237,234,245,.13); border-radius: 1px;
  transition: background-color .3s var(--ease), height .3s var(--ease);
}
.watch__tick.is-open { height: 100%; background: linear-gradient(180deg, var(--brass), rgba(201,162,75,.35)); }
.watch__tick.is-now  { background: var(--lake); height: 100%; box-shadow: 0 0 14px rgba(116,174,194,.65); }
.watch__tick.is-now.is-open { background: linear-gradient(180deg, #8FE3AB, var(--lake)); }
.watch__scale {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; color: var(--on-dark-45);
}

.watch__next { text-align: right; flex: none; display: grid; gap: .3rem; }
.watch__next .watch__label { justify-content: flex-end; }
.watch__next strong { font-family: var(--display); font-size: var(--step-1); font-weight: 400; display: block; }
.watch__count { font-family: var(--mono); font-size: .78rem; color: var(--brass); font-variant-numeric: tabular-nums; }

@media (max-width: 860px) {
  .watch { grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 1.25rem 1rem; }
  .watch__dial { grid-column: 1 / -1; order: 3; }
  .watch__next { text-align: right; }
}
@media (max-width: 480px) {
  .watch__ticks { height: 30px; }
  .watch__next strong { font-size: 1.02rem; }
}

/* ---------- Page banner (interior pages) ---------- */
.banner {
  background: var(--midnight);
  color: var(--on-dark);
  margin-top: -84px;
  padding-top: clamp(8rem, 12vh + 5.5rem, 11rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  position: relative; overflow: hidden; isolation: isolate;
}
.banner::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; top: -40%; translate: -50% 0;
  width: min(1000px, 120vw); aspect-ratio: 1;
  background: radial-gradient(circle at 50% 60%, rgba(48,40,116,.7), rgba(11,10,31,0) 64%);
}
.banner h1 { font-size: var(--step-4); max-width: 18ch; }
.banner .lede { margin-top: 1.3rem; max-width: 58ch; }
.crumbs {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .17em; text-transform: uppercase;
  color: var(--on-dark-45); margin-bottom: 1.4rem;
}
.crumbs a { text-decoration: none; color: var(--brass); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { padding: 0 .5rem; opacity: .5; }

/* ---------- Cards ---------- */
.card {
  background: var(--paper);
  border: 1px solid var(--rule-light);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 2.5vw, 2rem);
  display: flex; flex-direction: column; gap: .85rem;
  transition: transform .28s var(--ease), border-color .28s var(--ease), box-shadow .28s var(--ease);
}
.band--linen .card, .band--linen-2 .card { background: var(--paper); }
.band--night .card, .band--indigo .card {
  background: rgba(255,255,255,.035); border-color: var(--rule-dark); color: var(--on-dark);
}
a.card { text-decoration: none; color: inherit; }
a.card:hover { transform: translateY(-4px); border-color: var(--brass); box-shadow: 0 22px 44px -30px rgba(20,18,43,.5); }
.card__meta {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brass-deep);
}
.band--night .card__meta, .band--indigo .card__meta { color: var(--brass); }
.card p { color: var(--ink-70); font-size: .96rem; }
.band--night .card p, .band--indigo .card p { color: var(--on-dark-70); }
.card__foot { margin-top: auto; padding-top: .5rem; }

/* Arch-topped media card */
.arch-card { display: grid; gap: 1.15rem; text-decoration: none; color: inherit; }
.arch-card__media {
  border-radius: var(--arch);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--indigo);
  position: relative;
  border: 1px solid var(--rule-light);
}
.arch-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.arch-card:hover .arch-card__media img { transform: scale(1.045); }
.arch-card__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(11,10,31,.55), rgba(11,10,31,0) 55%);
}
/* Used where no photograph exists yet. A designed tile reads as a choice;
   an abstract gradient next to real photos reads as a missing image. */
.arch-card__media--tile {
  display: grid; place-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: linear-gradient(160deg, var(--indigo-2) 0%, var(--midnight) 85%);
  border-color: var(--rule-dark);
}
.arch-card__media--tile::after { display: none; }
.arch-card__media--tile img { width: 82%; height: auto; object-fit: contain; }
.arch-card:hover .arch-card__media--tile img { transform: scale(1.03); }
.tile-verse {
  font-family: var(--display); font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  color: var(--brass-soft); font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.32; text-align: center; margin: 0;
}
.tile-verse span {
  display: block; margin-top: 1.1rem;
  font-family: var(--mono); font-style: normal; font-size: .62rem;
  letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-45);
}

.arch-card__body { display: grid; gap: .5rem; }
.arch-card h3 { font-size: var(--step-2); }
.arch-card p { font-size: .95rem; color: var(--ink-70); margin: 0; }
.band--night .arch-card p, .band--indigo .arch-card p { color: var(--on-dark-70); }

/* Full-width photograph */
.wide-figure {
  margin: 0; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--rule-light);
}
.wide-figure img { width: 100%; height: auto; display: block; }
.band--night .wide-figure, .band--indigo .wide-figure { border-color: var(--rule-dark); }

/* Figure with arch mask */
.arch-figure {
  border-radius: var(--arch);
  overflow: hidden;
  border: 1px solid var(--rule-light);
  background: var(--indigo);
}
.arch-figure img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* ---------- Week rhythm grid (structural device: days, not numbers) ---------- */
/* Columns follow however many gathering days there are, so adding or removing
   a day needs no CSS change. */
.week { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--rule-dark); border: 1px solid var(--rule-dark); border-radius: var(--radius); overflow: hidden; }
.day {
  background: var(--midnight);
  padding: clamp(1.15rem, 2vw, 1.6rem);
  display: grid; gap: .7rem; align-content: start;
  min-height: 11.5rem;
  transition: background-color .3s var(--ease);
  position: relative;
}
.day:hover { background: var(--midnight-2); }
.day.is-today { background: var(--indigo); }
.day.is-today::before {
  content: "Today"; position: absolute; top: 0; right: 0;
  background: var(--brass); color: var(--midnight);
  font-family: var(--mono); font-size: .58rem; letter-spacing: .14em; text-transform: uppercase;
  padding: .22rem .55rem;
}
.day__name {
  font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-45);
}
.day.is-today .day__name { color: var(--brass-soft); }
.day__title { font-family: var(--display); font-size: 1.22rem; line-height: 1.15; color: var(--on-dark); }
.day__time { font-family: var(--mono); font-size: .8rem; color: var(--brass); font-variant-numeric: tabular-nums; }
.day__where {
  font-size: .82rem; color: var(--on-dark-45);
  display: inline-flex; align-items: center; gap: .4rem;
}
.day__where::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--lake); flex: none; }
.day__where[data-mode="in-person"]::before { background: var(--brass); }

@media (max-width: 900px) { .day { min-height: 12rem; } }
@media (max-width: 520px) { .week { grid-template-columns: minmax(0, 1fr); } .day { min-height: 0; } }

/* Always-on strip beneath the week */
.always {
  margin-top: 1px;
  border: 1px solid var(--rule-dark); border-top: 0;
  background: linear-gradient(90deg, rgba(38,33,98,.6), rgba(11,10,31,.6));
  padding: 1.15rem clamp(1.15rem, 2vw, 1.6rem);
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.4rem;
}
.always__tag {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--midnight); background: var(--brass); padding: .28rem .6rem;
  white-space: nowrap;
}
.always__tag--alt { background: var(--lake); }
.always p { margin: 0; color: var(--on-dark-70); font-size: .94rem; }

/* ---------- Callings (pray / send / plant) ---------- */
.callings { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 0; border-top: 1px solid var(--rule-light); }
.calling { padding: clamp(1.75rem, 3vw, 2.5rem) clamp(1.25rem, 2.5vw, 2.25rem); border-bottom: 1px solid var(--rule-light); border-right: 1px solid var(--rule-light); }
.calling:last-child { border-right: 0; }
.calling__verb { font-family: var(--display); font-size: var(--step-3); display: block; margin-bottom: .55rem; }
.calling__verb::first-letter { color: var(--brass-deep); }
.calling p { color: var(--ink-70); font-size: .97rem; margin: 0; }
@media (max-width: 800px) {
  .callings { grid-template-columns: minmax(0,1fr); }
  .calling { border-right: 0; }
}

/* ---------- Accordion (statement of faith) ---------- */
.accordion { border-top: 1px solid var(--rule-light); }
.acc {
  border-bottom: 1px solid var(--rule-light);
}
.acc__btn {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 1.4rem 3rem 1.4rem 0; position: relative;
  font-family: var(--display); font-size: var(--step-1); line-height: 1.2;
  color: var(--ink);
  transition: color .2s var(--ease);
}
.acc__btn:hover { color: var(--brass-deep); }
.acc__btn::after {
  content: ""; position: absolute; right: .4rem; top: 50%; translate: 0 -50%;
  width: 13px; height: 13px;
  background:
    linear-gradient(var(--brass-deep), var(--brass-deep)) center/13px 1.5px no-repeat,
    linear-gradient(var(--brass-deep), var(--brass-deep)) center/1.5px 13px no-repeat;
  transition: transform .28s var(--ease);
}
.acc__btn[aria-expanded="true"]::after { transform: rotate(135deg); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .34s var(--ease); }
.acc__panel[data-open="true"] { grid-template-rows: 1fr; }
.acc__panel > div { overflow: hidden; }
.acc__panel .inner { padding-bottom: 1.6rem; max-width: 68ch; color: var(--ink-70); }
.acc__panel ul { padding-left: 1.1rem; }
.acc__panel li::marker { color: var(--brass-deep); }

/* ---------- Facts list (address / times / contacts) ---------- */
.facts { display: grid; gap: 0; border-top: 1px solid var(--rule-light); }
.fact {
  display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--rule-light); align-items: baseline;
}
.fact dt { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-50); }
.fact dd { margin: 0; }
.fact a { color: inherit; text-decoration-color: var(--brass); text-underline-offset: 3px; }
.band--night .facts, .band--indigo .facts { border-color: var(--rule-dark); }
.band--night .fact, .band--indigo .fact { border-color: var(--rule-dark); }
.band--night .fact dt, .band--indigo .fact dt { color: var(--on-dark-45); }
@media (max-width: 560px) { .fact { grid-template-columns: minmax(0,1fr); gap: .2rem; } }

/* ---------- Video ---------- */
.video-frame {
  aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--rule-dark); background: var(--midnight-2);
}
.video-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.video-card { display: grid; gap: .9rem; text-decoration: none; color: inherit; }
.video-card__thumb {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--radius);
  background: var(--indigo); border: 1px solid var(--rule-light);
}
.video-card__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.video-card:hover .video-card__thumb img { transform: scale(1.05); }
.video-card__play {
  position: absolute; inset: 0; display: grid; place-items: center;
}
.video-card__play span {
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(11,10,31,.62); border: 1px solid var(--brass);
  display: grid; place-items: center;
  transition: background-color .25s var(--ease), transform .25s var(--ease);
}
.video-card:hover .video-card__play span { background: var(--brass); transform: scale(1.08); }
.video-card:hover .video-card__play svg { fill: var(--midnight); }
.video-card__play svg { fill: var(--brass); width: 15px; margin-left: 3px; transition: fill .25s var(--ease); }

/* ---------- Events ---------- */
.event {
  display: grid; grid-template-columns: 6.5rem minmax(0,1fr) auto;
  gap: clamp(1rem, 3vw, 2.5rem); align-items: center;
  padding: clamp(1.35rem, 2.4vw, 1.9rem) 0;
  border-bottom: 1px solid var(--rule-light);
  text-decoration: none; color: inherit;
  transition: padding-left .25s var(--ease);
}
.event:first-child { border-top: 1px solid var(--rule-light); }
.event:hover { padding-left: .6rem; }
.band--night .event, .band--indigo .event { border-color: var(--rule-dark); }
.event__date {
  display: grid; place-items: center; text-align: center;
  border: 1px solid var(--rule-light); border-radius: var(--radius);
  padding: .6rem .3rem; line-height: 1;
}
.band--night .event__date, .band--indigo .event__date { border-color: var(--rule-dark); }
.event__mon { font-family: var(--mono); font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; color: var(--brass-deep); }
.band--night .event__mon { color: var(--brass); }
.event__day { font-family: var(--display); font-size: 2rem; margin-top: .2rem; }
.event__body h3 { font-size: var(--step-1); margin-bottom: .3rem; }
.event__body p { margin: 0; color: var(--ink-50); font-size: .92rem; }
.band--night .event__body p { color: var(--on-dark-45); }
.event__go { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-deep); white-space: nowrap; }
.band--night .event__go { color: var(--brass); }
@media (max-width: 700px) {
  .event { grid-template-columns: 4.6rem minmax(0,1fr); gap: 1rem; }
  .event__go { grid-column: 2; }
  .event__day { font-size: 1.5rem; }
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.field { display: grid; gap: .45rem; }
.field label {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-50);
}
.band--night .field label, .band--indigo .field label { color: var(--on-dark-45); }
.field input, .field select, .field textarea {
  background: var(--paper);
  border: 1px solid var(--rule-light);
  border-radius: 2px;
  padding: .82rem .95rem;
  font-size: .98rem;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
  width: 100%;
}
.band--night .field input, .band--night .field select, .band--night .field textarea,
.band--indigo .field input, .band--indigo .field select, .band--indigo .field textarea {
  background: rgba(255,255,255,.05); border-color: var(--rule-dark); color: var(--on-dark);
}
.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--brass); }
.field textarea { resize: vertical; min-height: 8.5rem; }
.field--half { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.1rem; }
@media (max-width: 560px) { .field--half { grid-template-columns: minmax(0,1fr); } }

.check { display: flex; gap: .7rem; align-items: flex-start; font-size: .89rem; color: var(--ink-70); }
.band--night .check, .band--indigo .check { color: var(--on-dark-70); }
.check input { width: 1.05rem; height: 1.05rem; margin-top: .28rem; flex: none; accent-color: var(--brass); }

.form__note { font-size: .84rem; color: var(--ink-50); }
.band--night .form__note, .band--indigo .form__note { color: var(--on-dark-45); }

.form__status {
  display: none; padding: .9rem 1.1rem; border-radius: 2px; font-size: .92rem;
  border: 1px solid var(--brass); background: rgba(201,162,75,.12);
}
.form__status.is-shown { display: block; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1rem; }
.gallery button {
  padding: 0; border: 1px solid var(--rule-light); background: var(--indigo); cursor: pointer;
  overflow: hidden; border-radius: var(--radius); aspect-ratio: 4 / 3;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), opacity .3s; }
.gallery button:hover img { transform: scale(1.06); opacity: .88; }
@media (max-width: 800px) { .gallery { grid-template-columns: repeat(2, minmax(0,1fr)); } }

.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  background: rgba(11,10,31,.94); padding: clamp(1rem, 4vw, 3rem);
  place-items: center;
}
.lightbox.is-open { display: grid; }
.lightbox img { max-height: 84vh; width: auto; border-radius: var(--radius); }
.lightbox__close {
  position: absolute; top: 1.2rem; right: 1.2rem;
  width: 46px; height: 46px; border-radius: 50%;
  background: none; border: 1px solid var(--rule-dark); color: var(--on-dark);
  font-size: 1.3rem; cursor: pointer;
}
.lightbox__close:hover { background: var(--brass); color: var(--midnight); border-color: var(--brass); }

/* ---------- Roles / list of openings ---------- */
.roles { display: grid; gap: 0; border-top: 1px solid var(--rule-light); }
.role { padding: 1.15rem 0; border-bottom: 1px solid var(--rule-light); display: grid; grid-template-columns: 12rem minmax(0,1fr); gap: 1rem; }
.role dt { font-family: var(--display); font-size: var(--step-1); }
.role dd { margin: 0; color: var(--ink-70); }
@media (max-width: 620px) { .role { grid-template-columns: minmax(0,1fr); gap: .25rem; } }
.band--night .roles, .band--indigo .roles,
.band--night .role,  .band--indigo .role  { border-color: var(--rule-dark); }
.band--night .role dt, .band--indigo .role dt { color: var(--on-dark); }
.band--night .role dd, .band--indigo .role dd { color: var(--on-dark-70); }

/* ---------- Ticker rail ---------- */
.rail {
  border-top: 1px solid var(--rule-dark); border-bottom: 1px solid var(--rule-dark);
  background: var(--midnight-2); color: var(--on-dark);
  padding: .85rem 0; overflow: hidden;
}
.rail__track { display: flex; gap: 3.5rem; width: max-content; animation: rail 44s linear infinite; }
.rail__item {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-45); display: inline-flex; align-items: center; gap: 3.5rem;
  white-space: nowrap;
}
.rail__item::after { content: "✦"; color: var(--brass); letter-spacing: 0; }
@keyframes rail { to { transform: translateX(-50%); } }

/* ---------- Footer ---------- */
.footer { background: var(--midnight); color: var(--on-dark); padding-top: clamp(3.5rem, 7vw, 6rem); }
.footer__top { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(3, minmax(0, .75fr)); gap: clamp(2rem, 4vw, 3.5rem); }
.footer__title {
  font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--brass); margin-bottom: 1.15rem; font-weight: 400;
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.footer__col a { color: var(--on-dark-70); text-decoration: none; font-size: .93rem; }
.footer__col a:hover { color: var(--brass-soft); }
.footer__brand .brand { margin-bottom: 1.3rem; }
.footer__brand p { color: var(--on-dark-70); font-size: .94rem; max-width: 34ch; }
.socials { display: flex; gap: .6rem; margin-top: 1.5rem; }
.socials a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--rule-dark); border-radius: 50%;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.socials a:hover { background: var(--brass); border-color: var(--brass); }
.socials svg { width: 17px; height: 17px; fill: var(--on-dark-70); transition: fill .2s; }
.socials a:hover svg { fill: var(--midnight); }

.footer__verse {
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(2rem, 4vw, 3rem) 0;
  border-top: 1px solid var(--rule-dark);
  text-align: center;
}
.footer__verse .verse { max-width: 30ch; margin-inline: auto; color: var(--on-dark); }

.footer__base {
  border-top: 1px solid var(--rule-dark);
  padding: 1.5rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; justify-content: space-between;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--on-dark-45);
}
.footer__base a { color: inherit; text-decoration: none; }
.footer__base a:hover { color: var(--brass); }

@media (max-width: 900px) { .footer__top { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 520px) { .footer__top { grid-template-columns: minmax(0,1fr); } }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .09s; }
.reveal[data-delay="2"] { transition-delay: .18s; }
.reveal[data-delay="3"] { transition-delay: .27s; }
.reveal[data-delay="4"] { transition-delay: .36s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .rail__track { animation: none; }
}

/* ---------- Utilities ---------- */
[hidden] { display: none !important; }
.stack-sm > * + * { margin-top: .75rem; }
.stack > * + * { margin-top: 1.5rem; }
.stack-lg > * + * { margin-top: clamp(2rem, 4vw, 3rem); }
.pad-top-0 { padding-top: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
