/* ============================================================
   Amos Bashir — Ministry Portfolio
   Theme: black & gold, editorial-elegant
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --ink:        #08070A;
  --surface:    #0E0D11;
  --surface-2:  #16151A;
  --surface-3:  #1D1B21;

  /* Gold ramp */
  --gold:       #D4AF37;
  --gold-lt:    #EBD08A;
  --gold-dk:    #A8842A;
  --gold-soft:  rgba(212, 175, 55, 0.10);
  --gold-line:  rgba(212, 175, 55, 0.22);

  /* Text */
  --text:       #EDE8DE;
  --text-mid:   #C4BDB1;
  --muted:      #A49E93;
  --on-gold:    #08070A;

  /* Lines */
  --line:       rgba(237, 232, 222, 0.10);
  --line-strong:rgba(237, 232, 222, 0.18);

  /* Feedback */
  --danger:     #F08A7A;
  --success:    #8FD3A8;

  /* Type */
  --font-display: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing scale (4/8 rhythm) */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 24px;  --sp-6: 32px;  --sp-7: 48px;  --sp-8: 64px;
  --sp-9: 96px;  --sp-10: 128px;

  /* Radius & elevation */
  --r-sm: 8px;  --r-md: 14px;  --r-lg: 20px;  --r-pill: 999px;
  --shadow-1: 0 2px 8px rgba(0,0,0,.4);
  --shadow-2: 0 12px 40px rgba(0,0,0,.55);
  --shadow-gold: 0 8px 32px rgba(212,175,55,.16);

  /* Motion */
  --ease-out: cubic-bezier(.16,.84,.44,1);
  --dur-fast: 160ms;
  --dur-mid:  260ms;

  /* Layer scale */
  --z-nav: 100;  --z-menu: 90;

  --wrap: 1160px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  line-height: 1.7;
  letter-spacing: .002em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 500; line-height: 1.12; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

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

/* Inline icon utility — always give SVGs an intrinsic size so they can never
   render at the default 300x150 replaced-element size. */
.ico { width: 18px; height: 18px; flex: none; }

.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;
}

.skip-link {
  position: absolute; left: var(--sp-4); top: -100px;
  background: var(--gold); color: var(--on-gold);
  padding: var(--sp-3) var(--sp-5); border-radius: var(--r-sm);
  font-weight: 600; z-index: 1000;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: var(--sp-4); }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--sp-5);
}
@media (min-width: 768px)  { .wrap { padding-inline: var(--sp-7); } }
@media (min-width: 1280px) { .wrap { padding-inline: var(--sp-6); } }

.section {
  padding-block: clamp(64px, 11vw, 128px);
  position: relative;
  /* clear the sticky nav (~83px) when jumped to via an anchor link */
  scroll-margin-top: 104px;
}
.section--alt { background: var(--surface); }
.section--alt::before,
.section--alt::after {
  content: ""; position: absolute; inset-inline: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line) 22%, var(--gold-line) 78%, transparent);
}
.section--alt::before { top: 0; }
.section--alt::after  { bottom: 0; }

.section__head { max-width: 640px; margin-bottom: var(--sp-8); }
.section__lede { color: var(--muted); margin-top: var(--sp-4); font-size: 1.0625rem; }

/* ---------- Type ---------- */
.eyebrow {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: var(--sp-4);
  display: flex; align-items: center; gap: var(--sp-3);
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .7; flex: none;
}

.h2 { font-size: clamp(2.125rem, 5vw, 3.375rem); }
.h2 em { font-style: italic; color: var(--gold-lt); }

.prose { max-width: 60ch; margin-top: var(--sp-5); }
.prose p + p { margin-top: var(--sp-5); }
.prose .lead { font-size: 1.1875rem; color: var(--text); }
.prose p { color: var(--text-mid); }

blockquote {
  margin: var(--sp-7) 0 0;
  padding: var(--sp-5) 0 var(--sp-5) var(--sp-6);
  border-left: 2px solid var(--gold);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.6vw, 1.625rem);
  font-style: italic;
  line-height: 1.45;
  color: var(--gold-lt);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: var(--sp-3) var(--sp-6);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: .9375rem; font-weight: 500; letter-spacing: .01em;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.btn .ico { width: 18px; height: 18px; flex: none; }

.btn--gold {
  background: linear-gradient(180deg, var(--gold-lt), var(--gold));
  color: var(--on-gold);
  font-weight: 600;
  box-shadow: var(--shadow-gold);
}
.btn--gold:hover { background: var(--gold-lt); box-shadow: 0 10px 40px rgba(212,175,55,.3); }
.btn--gold:active { transform: scale(.97); }

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn--ghost:hover { border-color: var(--gold); color: var(--gold-lt); background: var(--gold-soft); }
.btn--ghost:active { transform: scale(.97); }

.btn--sm { min-height: 44px; padding: var(--sp-2) var(--sp-5); font-size: .875rem; }
.btn--full { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: rgba(8, 7, 10, .72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-mid) var(--ease-out), background-color var(--dur-mid) var(--ease-out);
  padding-top: env(safe-area-inset-top);
}
.nav.is-stuck { border-bottom-color: var(--gold-line); background: rgba(8, 7, 10, .92); }

.nav__inner {
  max-width: var(--wrap); margin-inline: auto;
  padding: var(--sp-3) var(--sp-5);
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5);
}
@media (min-width: 768px) { .nav__inner { padding-inline: var(--sp-7); } }

.brand { display: flex; align-items: center; gap: var(--sp-3); min-height: 44px; }

.brand__mark {
  position: relative;
  display: block;
  width: 58px; height: 58px;
  flex: none;
}
.brand__logo {
  display: block;
  width: 100%; height: 100%; object-fit: contain;
  /* The mark is mostly black; a faint gold glow separates it from the dark bar */
  animation: markGlow 4.5s ease-in-out infinite;
  transition: transform var(--dur-mid) var(--ease-out);
}

/* Gleam masked to the logo's own silhouette, so the light only crosses the artwork */
.brand__shine {
  position: absolute; inset: 0;
  pointer-events: none;
  -webkit-mask-image: url('media/logo-mark.png');
          mask-image: url('media/logo-mark.png');
  -webkit-mask-size: contain;   mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  /* Warm, narrow band: a white gleam would read silver and cost the mark its gold */
  background: linear-gradient(105deg,
    transparent 43%,
    rgba(245, 219, 150, .30) 48%,
    rgba(255, 241, 199, .58) 50%,
    rgba(245, 219, 150, .30) 52%,
    transparent 57%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  animation: markShine 6.5s ease-in-out 1.4s infinite;
}

.brand:hover .brand__logo { transform: scale(1.07); }
.brand:active .brand__logo { transform: scale(1.02); }

.brand__logo.is-missing { display: none; }
.brand__logo.is-missing ~ .brand__shine { display: none; }
.brand__logo.is-missing ~ .brand__fallback { display: block; }
.brand__fallback { display: none; width: 100%; height: 100%; color: var(--gold); }

@keyframes markGlow {
  0%, 100% { filter: drop-shadow(0 0 5px rgba(212, 175, 55, .32)); }
  50%      { filter: drop-shadow(0 0 13px rgba(212, 175, 55, .62)); }
}
@keyframes markShine {
  0%,  10%  { background-position: 165% 0; }
  42%, 100% { background-position: -65% 0; }
}

.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 600;
  color: var(--text); letter-spacing: .01em;
}
.brand__role {
  font-size: .625rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}

.nav__links { display: none; align-items: center; gap: var(--sp-2); }
@media (min-width: 900px) { .nav__links { display: flex; } }
.nav__links > a:not(.btn) {
  padding: var(--sp-3) var(--sp-4);
  font-size: .9375rem; color: var(--text-mid);
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out);
}
.nav__links > a:not(.btn):hover { color: var(--gold-lt); background: var(--gold-soft); }
.nav__links > a.is-active { color: var(--gold); }
.nav__links .btn { margin-left: var(--sp-3); }

.nav__toggle {
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 48px; height: 48px; padding: 0 12px;
  background: none; border: 1px solid var(--line); border-radius: var(--r-sm);
  cursor: pointer; touch-action: manipulation;
}
@media (min-width: 900px) { .nav__toggle { display: none; } }
.nav__toggle span {
  display: block; height: 1.5px; background: var(--gold); border-radius: 2px;
  transition: transform var(--dur-mid) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  z-index: var(--z-menu);
  border-top: 1px solid var(--gold-line);
  background: rgba(8, 7, 10, .97);
  backdrop-filter: blur(16px);
  padding: var(--sp-2) var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom));
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  display: flex; align-items: center; min-height: 52px;
  padding: var(--sp-3) var(--sp-2);
  font-size: 1.0625rem; color: var(--text-mid);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:last-child { border-bottom: 0; color: var(--gold); font-weight: 500; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(72px, 13vw, 152px) 0;
  overflow: hidden;
}
.hero__glow {
  position: absolute; top: -30%; left: 50%; transform: translateX(-50%);
  width: min(1000px, 130vw); aspect-ratio: 1;
  background: radial-gradient(circle, rgba(212,175,55,.16) 0%, rgba(212,175,55,.05) 38%, transparent 68%);
  pointer-events: none;
}
.hero__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero .eyebrow { justify-content: center; }
.hero .eyebrow::after {
  content: ""; width: 28px; height: 1px; background: var(--gold); opacity: .7; flex: none;
}
/* Decorative rules crowd the label on narrow screens */
@media (max-width: 520px) {
  .hero .eyebrow::before, .hero .eyebrow::after { display: none; }
}

.hero__title {
  font-size: clamp(2.75rem, 9vw, 5.75rem);
  line-height: 1.04;
  letter-spacing: -.022em;
  margin-bottom: var(--sp-6);
}
.hero__title em {
  font-style: italic;
  background: linear-gradient(100deg, var(--gold-dk), var(--gold-lt) 45%, var(--gold) 75%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--gold-lt);
}
.hero__lede {
  max-width: 56ch; color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.125rem);
  margin-bottom: var(--sp-7);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); justify-content: center; }

.hero__marquee {
  margin-top: clamp(64px, 10vw, 112px);
  padding-block: var(--sp-5);
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.hero__marquee-track {
  display: flex; align-items: center; gap: var(--sp-5);
  width: max-content;
  animation: marquee 46s linear infinite;
}
.hero__marquee-track span {
  font-family: var(--font-display); font-size: clamp(1.125rem, 2.4vw, 1.5rem);
  font-style: italic; color: var(--text-mid); white-space: nowrap;
}
.hero__marquee-track i { color: var(--gold); font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- About ---------- */
.about { display: grid; gap: var(--sp-8); }
@media (min-width: 900px) {
  .about { grid-template-columns: 340px 1fr; gap: var(--sp-9); align-items: start; }
}

.portrait {
  position: relative; aspect-ratio: 2 / 3; /* matches media/amos.jpg — no crop */
  border-radius: var(--r-lg); overflow: hidden;
  background: var(--surface-2);
  border: 1px solid var(--gold-line);
  box-shadow: var(--shadow-2);
}
/* object-position keeps the face in frame if a differently-proportioned photo is swapped in */
.portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.portrait__placeholder {
  display: none;
  position: absolute; inset: 0;
  flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-3);
  color: var(--gold); opacity: .5;
}
.portrait__placeholder svg { width: 56px; height: 56px; }
.portrait__placeholder p { font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.portrait.is-empty img { display: none; }
.portrait.is-empty .portrait__placeholder { display: flex; }

.facts { margin-top: var(--sp-5); border-top: 1px solid var(--line); }
.facts > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--sp-4);
  padding: var(--sp-3) 0; border-bottom: 1px solid var(--line);
}
.facts dt { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.facts dd { font-size: .9375rem; color: var(--text); text-align: right; }

/* ---------- Social link ---------- */
.social {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-top: var(--sp-5);
  min-height: 56px;
  padding: var(--sp-3) var(--sp-4);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface-2);
  transition: border-color var(--dur-fast) var(--ease-out),
              background-color var(--dur-fast) var(--ease-out),
              transform var(--dur-fast) var(--ease-out);
}
.social:hover { border-color: var(--gold); background: var(--gold-soft); }
.social:active { transform: scale(.98); }

.social__ico {
  display: grid; place-items: center; width: 36px; height: 36px; flex: none;
  border-radius: var(--r-sm);
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  color: var(--gold);
}
.social__ico svg { width: 18px; height: 18px; }

.social__text {
  display: flex; flex-direction: column; gap: 1px;
  font-size: .875rem; color: var(--muted); line-height: 1.35; min-width: 0;
}
.social__text strong {
  font-size: .6875rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text);
  white-space: nowrap;
}

.social__arrow {
  width: 18px; height: 18px; /* .ico is only sized inside .btn — size it here too */
  margin-left: auto; flex: none;
  color: var(--gold);
  transition: transform var(--dur-fast) var(--ease-out);
}
.social:hover .social__arrow { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) {
  .social:hover .social__arrow { transform: none; }
}

/* ---------- Decorative cross ---------- */
.cross {
  display: flex; justify-content: center;
  margin-top: var(--sp-8);
  pointer-events: none;
}
.cross__svg {
  width: clamp(190px, 46vw, 260px); height: auto;
  filter: drop-shadow(0 0 26px rgba(212, 175, 55, .22));
  animation: crossFloat 7s ease-in-out infinite;
}

/* Halo draws itself in when the section scrolls into view */
.cross__halo {
  stroke-dasharray: 434; /* 270° of r=92 */
  stroke-dashoffset: 434;
}
.cross.is-in .cross__halo {
  animation: crossDraw 1.9s var(--ease-out) .15s forwards;
}

/* Light travelling across the gold */
.cross__sheen { animation: crossSheen 5.5s ease-in-out 1.2s infinite; }

@keyframes crossDraw  { to { stroke-dashoffset: 0; } }
@keyframes crossFloat { 50% { transform: translateY(-10px); } }
@keyframes crossSheen {
  0%        { transform: translateX(0); }
  55%, 100% { transform: translateX(460px); }
}

/* Two-column About: span both columns so it centres under the story */
@media (min-width: 900px) {
  .cross { grid-column: 1 / -1; }
}

/* Only at genuinely wide viewports is there room beside the prose without
   overlapping it. Below this it stays centred under the story, where it can
   actually be larger. */
@media (min-width: 1500px) {
  .about { position: relative; }
  .about .prose { max-width: 50ch; }
  /* .reveal.is-in sets `transform: none`, which would undo the centring below —
     so both reveal states are pinned here and only opacity animates. */
  .cross,
  .cross.reveal,
  .cross.reveal.is-in {
    position: absolute;
    top: 50%; right: -128px;
    transform: translateY(-50%);
    margin: 0;
  }
  .cross__svg { width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .cross__svg, .cross__sheen { animation: none; }
  .cross__halo { stroke-dashoffset: 0; }
  .cross.is-in .cross__halo { animation: none; }

  /* Logos keep their static glow; the gleam is removed entirely */
  .brand__logo  { animation: none; filter: drop-shadow(0 0 6px rgba(212, 175, 55, .4)); }
  .footer__logo { animation: none; filter: drop-shadow(0 0 18px rgba(212, 175, 55, .3)); }
  .brand__shine, .footer__shine { display: none; }
}

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: var(--sp-4); }
@media (min-width: 640px)  { .grid--3 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); } }
@media (min-width: 1024px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  padding: var(--sp-6);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  transition: border-color var(--dur-mid) var(--ease-out), background-color var(--dur-mid) var(--ease-out);
}
.card:hover { border-color: var(--gold-line); background: var(--surface-3); }
.card__ico {
  display: grid; place-items: center;
  width: 48px; height: 48px; margin-bottom: var(--sp-5);
  border-radius: var(--r-sm);
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  color: var(--gold);
}
.card__ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 1.375rem; margin-bottom: var(--sp-3); }
.card p { color: var(--muted); font-size: .9375rem; line-height: 1.65; }

/* ---------- Fountains Church ---------- */
.church { display: grid; gap: var(--sp-7); align-items: center; }
@media (min-width: 960px) { .church { grid-template-columns: 1fr 420px; gap: var(--sp-9); } }

.church__text { margin-top: var(--sp-5); color: var(--text-mid); max-width: 56ch; }
.church__actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-7); }

.church__card {
  display: block;
  overflow: hidden; /* clips the photo to the card's rounded corners */
  border-radius: var(--r-lg);
  border: 1px solid var(--gold-line);
  background:
    radial-gradient(120% 90% at 88% 4%, rgba(212,175,55,.14), transparent 58%),
    var(--surface-2);
  box-shadow: var(--shadow-2);
  transition: transform var(--dur-mid) var(--ease-out),
              border-color var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}
.church__card-body { padding: var(--sp-6) var(--sp-7) var(--sp-7); }

/* Photo frame: aspect-ratio matches media/fountains.jpg (1080x568) exactly, so
   the image fills the box with no crop. object-fit:cover is the guarantee that
   it can never stretch — if the frame ratio ever drifts, it crops instead of
   distorting. Never use width/height:100% without object-fit here. */
.church__photo {
  margin: 0;
  aspect-ratio: 1080 / 568;
  overflow: hidden;
  border-bottom: 1px solid var(--gold-line);
  background: var(--ink);
}
.church__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 700ms var(--ease-out);
}
.church__card:hover .church__photo img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) {
  .church__photo img, .church__card:hover .church__photo img { transition: none; transform: none; }
}
.church__card:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: var(--shadow-2), var(--shadow-gold);
}
.church__card:active { transform: translateY(-1px); }
.church__card-top {
  display: flex; align-items: center; gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}
.church__mark {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--r-sm); border: 1px solid var(--gold-line);
  background: var(--gold-soft); color: var(--gold);
}
.church__mark svg { width: 24px; height: 24px; }
.church__meta { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.church__card h3 { font-size: 1.875rem; margin-bottom: var(--sp-3); }
.church__card > p { color: var(--muted); font-size: .9375rem; }
.church__link {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  margin-top: var(--sp-6); padding-top: var(--sp-5);
  border-top: 1px solid var(--line);
  width: 100%;
  color: var(--gold); font-weight: 500; font-size: .9375rem;
}
.church__link .ico { width: 18px; height: 18px; transition: transform var(--dur-fast) var(--ease-out); }
.church__card:hover .church__link .ico { transform: translateX(4px); }

/* ---------- Collaborations ---------- */
.collab { border-top: 1px solid var(--line); }
.collab__item {
  display: grid; grid-template-columns: 52px 1fr; gap: var(--sp-4);
  padding: var(--sp-6) 0;
  border-bottom: 1px solid var(--line);
  transition: border-color var(--dur-mid) var(--ease-out);
}
@media (min-width: 768px) {
  .collab__item { grid-template-columns: 96px 1fr; gap: var(--sp-7); padding-block: var(--sp-7); }
}
.collab__item:hover { border-bottom-color: var(--gold-line); }
.collab__num {
  font-family: var(--font-display); font-size: 1.25rem;
  color: var(--gold); letter-spacing: .06em; padding-top: 4px;
}
.collab__item h3 { font-size: clamp(1.375rem, 3vw, 1.75rem); margin-bottom: var(--sp-2); }
.collab__item p { color: var(--muted); font-size: .9375rem; max-width: 62ch; }
.collab__foot { margin-top: var(--sp-7); color: var(--muted); font-size: .9375rem; }
.collab__foot a {
  color: var(--gold); border-bottom: 1px solid var(--gold-line);
  transition: border-color var(--dur-fast) var(--ease-out);
}
.collab__foot a:hover { border-bottom-color: var(--gold); }

/* ---------- Contact ---------- */
.contact { display: grid; gap: var(--sp-8); }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; gap: var(--sp-9); align-items: start; } }

.contact__text { margin-top: var(--sp-5); color: var(--text-mid); max-width: 52ch; }
.contact__list { margin-top: var(--sp-7); display: grid; gap: var(--sp-5); }
.contact__list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact__ico {
  display: grid; place-items: center; width: 44px; height: 44px; flex: none;
  border-radius: var(--r-sm); border: 1px solid var(--gold-line);
  background: var(--gold-soft); color: var(--gold);
}
.contact__ico svg { width: 22px; height: 22px; }
.contact__list li > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: .9375rem; color: var(--muted); }
.contact__list strong {
  font-size: .6875rem; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--text);
}
.contact__list a { color: var(--gold); border-bottom: 1px solid var(--gold-line); align-self: flex-start; }
.contact__list a:hover { border-bottom-color: var(--gold); }

/* ---------- Form ---------- */
.form {
  padding: var(--sp-6);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-2);
}
@media (min-width: 768px) { .form { padding: var(--sp-7); } }

.field { margin-bottom: var(--sp-5); }
.field label {
  display: block; margin-bottom: var(--sp-2);
  font-size: .8125rem; font-weight: 500; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text);
}
.req { color: var(--gold); }

.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--sp-3) var(--sp-4);
  background: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--text);
  font-size: 16px; /* prevents iOS zoom */
  font-weight: 300;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
}
.field textarea { min-height: 128px; resize: vertical; line-height: 1.6; }
.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D4AF37' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-4) center;
  background-size: 18px;
  padding-right: var(--sp-8);
}
.field select option { background: var(--surface-2); color: var(--text); }

.field input:hover, .field textarea:hover, .field select:hover { border-color: var(--line-strong); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,55,.16);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted); opacity: .6; }

.field.has-error input,
.field.has-error textarea { border-color: var(--danger); }
.field.has-error input:focus,
.field.has-error textarea:focus { box-shadow: 0 0 0 3px rgba(240,138,122,.18); }

.help { margin-top: var(--sp-2); font-size: .8125rem; color: var(--muted); }
.err { margin-top: var(--sp-2); font-size: .8125rem; color: var(--danger); min-height: 0; }
.err:empty { display: none; }
.err::before { content: "! "; font-weight: 700; }

.form__status { margin-top: var(--sp-4); font-size: .875rem; color: var(--success); text-align: center; }
.form__status.is-error { color: var(--danger); }
.form__status:empty { display: none; }
.form__note { margin-top: var(--sp-4); font-size: .75rem; color: var(--muted); text-align: center; }

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--gold-line);
  background: var(--surface);
  padding-block: var(--sp-8) calc(var(--sp-6) + env(safe-area-inset-bottom));
}
.footer__inner { display: flex; flex-direction: column; align-items: center; gap: var(--sp-6); text-align: center; }
.footer__brand { display: flex; flex-direction: column; align-items: center; gap: var(--sp-5); }
.footer__mark { position: relative; display: block; }
.footer__logo {
  /* Larger than a typical footer mark: the artwork's black fill vanishes on a dark
     background, so the gold edging needs enough pixels to stay legible. */
  display: block;
  width: clamp(200px, 42vw, 260px); height: auto; object-fit: contain;
  animation: footerGlow 6s ease-in-out infinite;
}
.footer__shine {
  position: absolute; inset: 0;
  pointer-events: none;
  -webkit-mask-image: url('media/logo.png');
          mask-image: url('media/logo.png');
  -webkit-mask-size: contain;     mask-size: contain;
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: center;  mask-position: center;
  background: linear-gradient(105deg,
    transparent 44%,
    rgba(245, 219, 150, .26) 48%,
    rgba(255, 241, 199, .5) 50%,
    rgba(245, 219, 150, .26) 52%,
    transparent 56%);
  background-size: 260% 100%;
  background-repeat: no-repeat;
  animation: markShine 9s ease-in-out 2s infinite;
}
.footer__logo.is-missing { display: none; }
.footer__logo.is-missing ~ .footer__shine { display: none; }

@keyframes footerGlow {
  0%, 100% { filter: drop-shadow(0 0 16px rgba(212, 175, 55, .26)); }
  50%      { filter: drop-shadow(0 0 30px rgba(212, 175, 55, .45)); }
}
.footer__verse {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: var(--gold-lt); max-width: 34ch; line-height: 1.4;
}
.footer__verse span {
  display: block; margin-top: var(--sp-2);
  font-family: var(--font-body); font-style: normal;
  font-size: .6875rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.footer__nav {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--sp-2) var(--sp-5);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  width: 100%;
}
.footer__nav a {
  display: inline-flex; align-items: center; min-height: 44px;
  font-size: .875rem; color: var(--muted);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__nav a:hover { color: var(--gold); }
.footer__copy { font-size: .8125rem; color: var(--muted); opacity: .8; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 620ms var(--ease-out), transform 620ms var(--ease-out);
}
.reveal.is-in { opacity: 1; transform: none; }

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

/* ---------- Print ---------- */
@media print {
  .nav, .mobile-menu, .hero__marquee, .form { display: none; }
  body { background: #fff; color: #000; }
}
