:root {
  --paper: #f3efe4;
  --paper-2: #fff9ec;
  --ink: #080704;
  --ink-2: #1f1b13;
  --gold: #c89428;
  --gold-bright: #f1bd48;
  --gold-dark: #735016;
  --brass: #b98220;
  --olive: #465139;
  --teal: #184d4a;
  --line: rgba(7, 7, 7, 0.18);
  --light-line: rgba(246, 242, 233, 0.24);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: #f3efe4;
}

::selection {
  background: var(--gold-bright);
  color: var(--ink);
}

/* handwritten margin notes */
.margin-note {
  position: absolute;
  z-index: 3;
  font-family: "Caveat", "Segoe Script", cursive;
  font-weight: 700;
  font-size: clamp(1.3rem, 1.9vw, 1.7rem);
  line-height: 1.1;
  color: var(--gold-dark);
  pointer-events: none;
  white-space: nowrap;
}

.note-impact {
  right: 2%;
  top: -46px;
  transform: rotate(-3deg);
}

.note-pastors {
  left: clamp(20px, 5vw, 70px);
  bottom: 18px;
  color: rgba(241, 189, 72, 0.85);
  transform: rotate(-2.5deg);
}

.note-services {
  right: 18px;
  top: -16px;
  transform: rotate(3deg);
}

.note-gallery {
  right: 6%;
  bottom: 6px;
  transform: rotate(-2.5deg);
}

.note-contact {
  right: -8px;
  top: -34px;
  transform: rotate(3deg);
}

/* faint ruled lines inside quote cards, like lined notebook paper */
.scripture-card,
.pastors-quote {
  background-image: repeating-linear-gradient(
    180deg,
    transparent 0,
    transparent calc(1.7em - 1px),
    rgba(8, 7, 4, 0.085) calc(1.7em - 1px),
    rgba(8, 7, 4, 0.085) 1.7em
  );
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at center, transparent 56px, rgba(115, 80, 22, 0.085) 57px, rgba(115, 80, 22, 0.085) 62px, transparent 63px),
    radial-gradient(circle at center, transparent 44px, rgba(115, 80, 22, 0.055) 45px, rgba(115, 80, 22, 0.055) 48px, transparent 49px),
    radial-gradient(circle at center, rgba(8, 7, 4, 0.06) 0 5px, rgba(8, 7, 4, 0.13) 5px 6px, transparent 7px),
    linear-gradient(90deg, transparent 0 88px, rgba(200, 148, 40, 0.30) 88px 89px, transparent 89px 95px, rgba(8, 7, 4, 0.09) 95px 96px, transparent 96px),
    linear-gradient(90deg, rgba(200, 148, 40, 0.13) 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(8, 7, 4, 0.05) 1px, transparent 1px 100%),
    radial-gradient(circle at 70% 40%, rgba(8, 7, 4, 0.045) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 150px 150px, 110px 110px, 36px 130px, auto, 82px 82px, 82px 82px, 19px 19px, auto;
  background-position: calc(100% - 64px) 132px, calc(100% - 36px) 168px, 24px 70px, 0 0, 0 0, 0 0, 0 0, 0 0;
  background-repeat: no-repeat, no-repeat, repeat-y, repeat-y, repeat, repeat, repeat, repeat;
  font-family: "Bricolage Grotesque", "Space Grotesk", "Segoe UI", Arial, sans-serif;
  line-height: 1.45;
  zoom: 0.8;
}

main {
  position: relative;
  overflow: hidden;
}

main > * {
  position: relative;
  z-index: 1;
}

main::before,
main::after {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  color: var(--ink);
  border: 2px solid currentColor;
  opacity: 0.045;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: rotate(-8deg);
}

main::before {
  right: clamp(20px, 7vw, 120px);
  top: 18vh;
  content: "Tribe of Judah";
  padding: 18px 22px;
  font-size: clamp(1.4rem, 4vw, 4rem);
}

main::after {
  left: clamp(18px, 5vw, 84px);
  bottom: 12vh;
  content: "Kissimmee Outreach";
  padding: 12px 16px;
  font-size: clamp(1rem, 2.5vw, 2.2rem);
  transform: rotate(7deg);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-180%);
  padding: 10px 14px;
  color: var(--ink);
  background: var(--gold-bright);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  gap: 24px;
  align-items: center;
  min-height: 76px;
  padding: 14px clamp(18px, 4vw, 52px);
  border-bottom: 1px solid var(--line);
  background: rgba(243, 239, 228, 0.94);
  backdrop-filter: blur(16px);
}

.site-header::before {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 4px;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 10px, var(--gold) 10px 32px, transparent 32px 48px);
  background-size: 48px 4px;
  opacity: 0.48;
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: saturate(0.9) contrast(1.08);
}

.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(16px, 2.5vw, 34px);
}

.primary-nav a,
.text-link {
  text-decoration: none;
  font-weight: 800;
}

.primary-nav a {
  position: relative;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.primary-nav a::after {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -9px;
  height: 3px;
  content: "";
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.primary-nav a.is-active::after,
.primary-nav a:hover::after {
  transform: scaleX(1);
}

.nav-donate {
  padding: 11px 16px;
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 900;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ink);
  background: transparent;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

.page-kicker {
  margin: 0 0 12px;
  color: var(--gold-dark);
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.home-hero {
  position: relative;
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1fr);
  grid-template-rows: auto auto auto;
  column-gap: clamp(24px, 5vw, 70px);
  row-gap: 14px;
  align-items: start;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: clamp(32px, 4.2vw, 58px) clamp(18px, 4vw, 54px) clamp(22px, 3.8vw, 42px);
  overflow: hidden;
}

.home-hero::before {
  position: absolute;
  right: clamp(12px, 5vw, 70px);
  top: 24px;
  width: clamp(180px, 24vw, 360px);
  aspect-ratio: 1;
  content: "";
  background: url("assets/images/logo.png") center / contain no-repeat;
  opacity: 0.055;
  filter: grayscale(1);
  pointer-events: none;
}

.home-hero::after {
  position: absolute;
  left: clamp(18px, 4vw, 54px);
  bottom: 24px;
  width: min(340px, 38vw);
  height: 1px;
  content: "";
  background: var(--gold);
}

.side-rail {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.side-rail span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid rgba(8, 7, 4, 0.22);
  background: rgba(255, 249, 236, 0.68);
}

.hero-type {
  position: relative;
  z-index: 2;
  grid-column: 1 / -1;
  max-width: 1120px;
}

.home-hero .hero-type::before,
.home-hero .hero-type::after,
.quick-paths::before,
.home-impact::after {
  position: absolute;
  pointer-events: none;
  color: var(--gold-dark);
  border: 2px solid currentColor;
  opacity: 0.09;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.home-hero .hero-type::before {
  right: 7%;
  top: 4%;
  content: "Field Notes";
  padding: 10px 14px;
  transform: rotate(5deg);
}

.home-hero .hero-type::after {
  left: 42%;
  bottom: -18px;
  content: "Kissimmee FL";
  padding: 8px 12px;
  transform: rotate(-7deg);
}

.hero-type h1,
.page-hero h1,
.contact-poster h1 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Space Grotesk", sans-serif;
  font-size: clamp(3.6rem, 8vw, 8.4rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.hero-type h1 span {
  display: block;
  white-space: nowrap;
}

.hero-type h1 span:nth-child(2),
.hero-type h1 span:nth-child(4) {
  color: var(--gold);
}

.hero-photo-stack {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.78fr;
  grid-template-rows: 1fr 0.78fr;
  gap: 12px;
  grid-column: 2;
  grid-row: 3;
  height: clamp(300px, 30vw, 390px);
  min-height: 0;
}

.photo-frame,
.journal-photo {
  position: relative;
  margin: 0;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--ink);
  background: var(--paper-2);
}

.photo-frame::before,
.journal-photo::before {
  position: absolute;
  top: -1px;
  left: -12px;
  z-index: 2;
  display: block;
  width: 84px;
  height: 20px;
  content: "";
  background: rgba(255, 249, 236, 0.78);
  border: 1px solid rgba(8, 7, 4, 0.14);
  transform: rotate(-13deg);
}

.photo-frame::after,
.journal-photo::after {
  position: absolute;
  right: -14px;
  bottom: 12px;
  z-index: 2;
  width: 76px;
  height: 18px;
  content: "";
  background: rgba(241, 189, 72, 0.5);
  border: 1px solid rgba(8, 7, 4, 0.12);
  transform: rotate(-8deg);
}

.hero-photo-one::after {
  display: none;
}

.hero-photo-three::before {
  left: auto;
  right: -12px;
  transform: rotate(12deg);
}

.photo-frame img,
.journal-photo img,
.hero-photo-stack img,
.home-impact img,
.feature-service img,
.service-index img,
.support-hero img,
.gallery-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.86) sepia(0.18) contrast(1.08);
  transition: filter 220ms ease, transform 220ms ease;
}

.hero-photo-stack img {
  object-fit: cover;
  background: var(--ink);
}

.hero-photo-one img {
  object-position: 50% 26%;
}

.hero-photo-two img {
  object-position: 50% 2%;
}

.hero-photo-three img {
  object-position: 47% 42%;
}

.photo-frame:hover img,
.journal-photo:hover img,
.home-impact figure:hover img,
.feature-service figure:hover img,
.service-index article:hover img,
.support-hero figure:hover img,
.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  filter: grayscale(0) sepia(0) contrast(1.02) saturate(1.03);
  transform: scale(1.025);
}

.hero-photo-one {
  position: relative;
  inset: auto;
  grid-column: 1 / -1;
  grid-row: 1;
}

.hero-photo-two {
  position: relative;
  left: auto;
  bottom: auto;
  width: auto;
  height: auto;
  grid-column: 1;
  grid-row: 2;
  border-color: var(--gold-bright);
}

.hero-photo-three {
  position: relative;
  right: auto;
  bottom: auto;
  width: auto;
  height: auto;
  grid-column: 2;
  grid-row: 2;
  border-color: var(--brass);
}

.hero-brief {
  grid-column: 1;
  grid-row: 3;
  display: grid;
  grid-template-columns: minmax(260px, 680px);
  gap: 18px;
  align-items: start;
  align-self: center;
  padding-top: 8px;
}

.hero-brief p {
  margin: 0;
  max-width: 620px;
  font-size: clamp(1rem, 1.6vw, 1.28rem);
  font-weight: 700;
}

.journal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.journal-actions a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px 10px 18px;
  border-left: 5px solid var(--gold);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  text-transform: uppercase;
  background: rgba(255, 249, 236, 0.62);
  font-weight: 900;
  transition: background 160ms ease, transform 160ms ease;
}

.journal-actions a:hover {
  background: var(--gold-bright);
  transform: translateY(-2px) rotate(-0.4deg);
}

.statement-band {
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  min-height: 0;
  scroll-margin-top: 78px;
}

/* faint paper grain so the ink bands read as print, not flat digital black */
.statement-band {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.93 0 0 0 0 0.85 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
}

.marquee-line {
  display: flex;
  gap: 0;
  width: max-content;
  padding: clamp(12px, 1.8vw, 22px) 0 clamp(8px, 1.2vw, 14px);
  color: var(--gold-bright);
  font-family: "Bricolage Grotesque", "Space Grotesk", sans-serif;
  font-size: clamp(1.55rem, 3.4vw, 3.35rem);
  line-height: 1;
  font-weight: 800;
  text-transform: uppercase;
  animation: drift 42s linear infinite;
}

.marquee-line span {
  white-space: nowrap;
  margin-right: 34px;
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(var(--marquee-shift, -50%)); }
}

.statement-grid {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 44px;
  align-items: center;
  padding: clamp(26px, 3.4vw, 44px) 0 clamp(34px, 4.2vw, 58px);
  border-top: 1px solid rgba(246, 242, 233, 0.2);
}

.statement-grid h2,
.identity-band h2,
.feature-service h2,
.zelle-block h2,
.sponsor-block h2 {
  margin: 0;
  font-family: "Bricolage Grotesque", "Space Grotesk", sans-serif;
  font-size: clamp(2.4rem, 7vw, 6.6rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.015em;
  text-transform: uppercase;
}

.statement-grid p,
.identity-copy p,
.page-hero p,
.feature-service p,
.service-index p,
.support-details p,
.contact-poster p {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 600;
}

.statement-grid h2 {
  font-size: clamp(2rem, 4.4vw, 4.4rem);
}

.statement-grid p {
  max-width: 650px;
}

.quick-paths {
  position: relative;
  width: min(100% - 36px, var(--max));
  margin: clamp(58px, 8vw, 108px) auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.quick-paths::before {
  right: clamp(12px, 5vw, 64px);
  top: -44px;
  content: "Hands + Feet";
  padding: 8px 12px;
  transform: rotate(6deg);
}

.path-link {
  min-height: 280px;
  display: grid;
  align-content: space-between;
  gap: 20px;
  padding: 22px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  background: rgba(255, 250, 241, 0.54);
  transition: background 180ms ease, color 180ms ease;
}

.path-link:hover,
.path-link:focus-visible {
  color: var(--ink);
  background: var(--gold-bright);
}

.path-link-emphasis {
  background:
    linear-gradient(135deg, rgba(241, 189, 72, 0.33), rgba(255, 249, 236, 0.84));
}

.path-link-emphasis:hover,
.path-link-emphasis:focus-visible {
  background: var(--ink);
  color: var(--paper);
}

.path-link span {
  color: var(--gold-dark);
  font-weight: 900;
}

.path-link strong {
  font-family: "Bricolage Grotesque", "Space Grotesk", sans-serif;
  font-size: clamp(1.65rem, 3vw, 2.55rem);
  line-height: 0.96;
  font-weight: 800;
  text-transform: uppercase;
}

.path-link small {
  font-size: 0.95rem;
  font-weight: 700;
}

.home-impact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(300px, 1fr);
  gap: clamp(24px, 6vw, 82px);
  width: min(100% - 36px, var(--max));
  margin: 0 auto clamp(74px, 9vw, 128px);
  align-items: end;
}

.home-impact::after {
  left: 8%;
  top: 8%;
  content: "Every Street";
  padding: 9px 13px;
  transform: rotate(-8deg);
}

.impact-word {
  position: absolute;
  left: -5vw;
  top: -58px;
  z-index: -1;
  color: rgba(200, 148, 40, 0.18);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(6rem, 20vw, 18rem);
  line-height: 0.75;
}

.impact-numbers {
  display: grid;
  gap: 14px;
}

.impact-numbers div,
.stat-run div {
  padding: 24px;
  border: 1px solid var(--ink);
  background: var(--paper-2);
}

.impact-numbers strong,
.stat-run strong {
  display: block;
  font-family: "Bricolage Grotesque", "Space Grotesk", sans-serif;
  font-size: clamp(2.8rem, 7vw, 6.5rem);
  font-weight: 800;
  line-height: 0.86;
}

.impact-numbers span,
.stat-run span {
  display: block;
  margin-top: 10px;
  color: var(--gold-dark);
  text-transform: uppercase;
  font-weight: 900;
}

.home-impact figure {
  height: 520px;
  margin: 0;
  border: 1px solid var(--gold);
  overflow: hidden;
}

.page-hero {
  position: relative;
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 130px) 0 clamp(48px, 7vw, 82px);
}

.page-hero::after {
  position: absolute;
  right: 0;
  top: clamp(54px, 8vw, 102px);
  z-index: -1;
  padding: 9px 13px;
  color: var(--ink);
  background: var(--gold-bright);
  border: 1px solid var(--ink);
  box-shadow: 7px 7px 0 rgba(8, 7, 4, 0.12);
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 900;
  transform: rotate(2deg);
}

body[data-page="about"] .page-hero::after {
  content: "mission log";
}

body[data-page="services"] .page-hero::after {
  content: "service notes";
}

body[data-page="support"] .page-hero::after {
  content: "giving ledger";
}

body[data-page="gallery"] .page-hero::after {
  content: "photo record";
}

body[data-page="home"] main::after {
  content: "Kissimmee Outreach";
}

body[data-page="about"] main::after {
  content: "Mission Notes";
}

body[data-page="services"] main::before {
  content: "Worship / Service";
}

body[data-page="services"] main::after {
  content: "Made Anew";
}

body[data-page="support"] main::after {
  content: "Donation Ledger";
}

body[data-page="gallery"] main::after {
  content: "Photo Archive";
}

body[data-page="contact"] main::after {
  content: "Reach Out";
}

.page-hero h1 {
  max-width: min(1100px, 100%);
  font-size: clamp(3.2rem, 8.2vw, 7.6rem);
  overflow-wrap: normal;
}

.page-hero p {
  max-width: 720px;
  margin-top: 22px;
}

.split-hero,
.support-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.72fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: end;
}

.split-hero figure,
.support-hero figure {
  height: clamp(380px, 46vw, 560px);
}

body[data-page="about"] .split-hero figure {
  height: clamp(460px, 54vw, 680px);
}

body[data-page="about"] .split-hero .photo-frame img {
  object-position: 52% 0%;
}

.mission-lab,
.support-details,
.contact-page {
  width: min(100% - 36px, var(--max));
  margin: 0 auto clamp(74px, 9vw, 126px);
}

.mission-lab {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
}

.mission-card,
.scripture-card {
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid var(--ink);
}

.mission-card {
  color: var(--paper);
  background: var(--ink);
}

.mission-card span {
  color: var(--gold-bright);
  text-transform: uppercase;
  font-weight: 900;
}

.mission-card p {
  margin: 18px 0 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.8rem, 4vw, 3.7rem);
  line-height: 1;
}

.scripture-card {
  background: var(--gold-bright);
}

.scripture-card p {
  margin: 0;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.5rem, 3vw, 2.45rem);
  line-height: 1.08;
}

.scripture-card strong {
  display: block;
  margin-top: 22px;
}

.pastors-story {
  position: relative;
  width: min(100% - 36px, var(--max));
  margin: clamp(68px, 8vw, 112px) auto;
  padding: clamp(36px, 6vw, 76px);
  overflow: hidden;
  border: 1px solid var(--ink);
  color: var(--paper);
  background:
    linear-gradient(rgba(8, 7, 4, 0.9), rgba(8, 7, 4, 0.96)),
    repeating-linear-gradient(90deg, rgba(243, 188, 69, 0.12) 0 1px, transparent 1px 72px);
  box-shadow: 14px 14px 0 rgba(200, 148, 40, 0.18);
}

.pastors-story::after {
  position: absolute;
  right: clamp(12px, 5vw, 80px);
  top: clamp(16px, 3vw, 34px);
  z-index: 0;
  padding: 12px 18px;
  border: 3px solid rgba(243, 188, 69, 0.12);
  color: rgba(243, 188, 69, 0.12);
  content: "PSALM 91";
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transform: rotate(-5deg);
}

.pastors-heading {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-bottom: clamp(24px, 4vw, 46px);
}

.pastors-story .page-kicker {
  color: var(--gold-bright);
}

.pastors-heading h2 {
  max-width: 820px;
  margin: 0;
  color: var(--gold-bright);
  font-family: "Bricolage Grotesque", "Space Grotesk", sans-serif;
  font-size: clamp(3.4rem, 11vw, 10rem);
  font-weight: 900;
  line-height: 0.84;
  text-transform: uppercase;
}

.pastors-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(360px, 1.18fr);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
}

.pastors-copy {
  display: grid;
  gap: 18px;
}

.pastors-copy p {
  margin: 0;
  max-width: 62ch;
  color: rgba(255, 250, 238, 0.92);
  font-size: clamp(1rem, 1.5vw, 1.24rem);
  font-weight: 750;
}

.pastors-copy blockquote {
  margin: clamp(8px, 2vw, 18px) 0 0;
  padding: clamp(22px, 3vw, 34px);
  border-left: 9px solid var(--gold-bright);
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.25rem, 2.35vw, 2rem);
  line-height: 1.08;
  box-shadow: 8px 8px 0 rgba(243, 188, 69, 0.28);
}

.pastors-quote span,
.pastors-quote cite {
  display: block;
  font-family: "Bricolage Grotesque", "Space Grotesk", sans-serif;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 1000;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pastors-quote span {
  margin-bottom: 10px;
  color: var(--gold);
}

.pastors-quote strong {
  display: block;
  font-weight: 900;
}

.pastors-quote cite {
  margin-top: 14px;
  color: var(--ink);
}

.pastors-photos {
  display: grid;
  /* 1.5:1 columns + fixed aspect figures = square main photo at any width */
  grid-template-columns: 1.5fr 1fr;
  grid-auto-rows: auto;
  gap: 14px;
}

.pastors-photos .journal-photo {
  min-height: 0;
  border-color: var(--gold-bright);
  background: var(--paper);
}

.pastors-photos .journal-photo:nth-child(2),
.pastors-photos .journal-photo:nth-child(3) {
  aspect-ratio: 4 / 3;
}

.pastors-photo-main {
  grid-row: span 2;
  align-self: start;
  aspect-ratio: 1 / 1;
}

.pastors-photo-main img {
  object-position: 50% 42%;
}

.pastors-photos .journal-photo:nth-child(2) img,
.pastors-photos .journal-photo:nth-child(3) img {
  object-position: 50% 18%;
}

.pastors-photos .journal-photo:nth-child(2) {
  transform: rotate(-1.4deg);
}

.pastors-photos .journal-photo:nth-child(3) {
  transform: rotate(1.2deg);
}

.identity-band {
  color: var(--paper);
  background: var(--ink);
  padding: clamp(62px, 9vw, 118px) clamp(18px, 4vw, 54px);
}

.identity-band h2 {
  color: var(--gold-bright);
}

.identity-band h2,
.identity-copy {
  width: min(100%, var(--max));
  margin-left: auto;
  margin-right: auto;
}

.identity-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin-top: 34px;
}

.stat-run {
  width: min(100% - 36px, var(--max));
  margin: clamp(64px, 8vw, 112px) auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.stat-run div {
  border-top: 0;
  border-left: 0;
}

.services-hero {
  border-bottom: 1px solid var(--ink);
}

.services-cover {
  position: relative;
  --cover-x: 0px;
  --cover-y: 0px;
  --cover-scroll: 0px;
  --cover-scale: 1.08;
  min-height: clamp(640px, calc(100svh - 76px), 940px);
  display: grid;
  place-items: center;
  padding: clamp(44px, 7vw, 86px) clamp(18px, 4vw, 54px);
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.services-cover-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 28%;
  filter: grayscale(0.45) sepia(0.2) contrast(1.05) brightness(0.46);
  transform: translate3d(var(--cover-x), calc(var(--cover-y) + var(--cover-scroll)), 0) scale(var(--cover-scale));
  transform-origin: 62% 28%;
  transition: filter 220ms ease, transform 120ms linear;
  will-change: transform;
}

.services-cover:hover .services-cover-bg {
  filter: grayscale(0) sepia(0.08) contrast(1.02) brightness(0.58);
}

.services-cover-note {
  position: relative;
  width: min(540px, 100%);
  margin-left: auto;
  padding: clamp(28px, 4vw, 48px);
  color: var(--ink);
  background: var(--gold-bright);
  border: 1px solid var(--ink);
  box-shadow: 18px 18px 0 rgba(8, 7, 4, 0.28);
}

.services-cover-note::before,
.services-cover-note::after {
  position: absolute;
  z-index: 2;
  width: 96px;
  height: 22px;
  content: "";
  background: rgba(255, 249, 236, 0.72);
  border: 1px solid rgba(8, 7, 4, 0.16);
}

.services-cover-note::before {
  top: -13px;
  left: 26px;
  transform: rotate(-5deg);
}

.services-cover-note::after {
  right: 24px;
  bottom: -12px;
  transform: rotate(6deg);
}

.services-cover-note .page-kicker {
  color: var(--ink);
}

.services-cover-note h1 {
  margin: 0 0 18px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(2.4rem, 5vw, 4.8rem);
  font-weight: 400;
  line-height: 0.95;
}

.services-cover-note p {
  margin: 14px 0 0;
  font-weight: 700;
}

.services-cover-note figure {
  margin-top: 24px;
  height: clamp(210px, 22vw, 290px);
}

.services-cover-note img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--ink);
}

body[data-page="services"] .services-cover-note,
body[data-page="services"] .made-anew-heading,
body[data-page="services"] .made-anew-mark,
body[data-page="services"] .made-anew-copy,
body[data-page="services"] .made-anew-photos,
body[data-page="services"] .made-anew-photos figure {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
  filter: none;
}

.made-anew-world {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(280px, 0.7fr);
  gap: clamp(28px, 5vw, 64px);
  padding: clamp(70px, 8vw, 118px) clamp(18px, 4vw, 54px);
  color: var(--paper);
  background: var(--ink);
}

.made-anew-world::before {
  position: absolute;
  right: clamp(20px, 8vw, 140px);
  top: 44px;
  content: "Worship Notes";
  color: rgba(241, 189, 72, 0.12);
  border: 2px solid currentColor;
  padding: 16px 22px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: rotate(6deg);
}

.made-anew-heading,
.made-anew-mark,
.made-anew-copy,
.made-anew-photos {
  position: relative;
  z-index: 1;
}

.made-anew-heading {
  grid-column: 1 / -1;
  width: min(100%, var(--max));
  margin: 0 auto;
}

.made-anew-heading h2 {
  margin: 0;
  color: var(--gold-bright);
  font-family: "Bricolage Grotesque", "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 9vw, 8rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.made-anew-mark {
  justify-self: end;
  width: min(100%, 540px);
  height: clamp(340px, 42vw, 560px);
  background: var(--ink-2);
  border-color: var(--gold);
}

.made-anew-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 18px;
  background: var(--ink-2);
}

.made-anew-copy {
  align-self: center;
  max-width: 560px;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  font-weight: 700;
}

.made-anew-copy p {
  margin: 0 0 18px;
}

.made-anew-copy .text-link {
  color: var(--gold-bright);
}

.made-anew-photos {
  grid-column: 1 / -1;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 18px;
}

.made-anew-photos figure {
  min-height: clamp(280px, 32vw, 420px);
  border-color: var(--light-line);
  background: var(--ink-2);
}

.service-notebook {
  width: min(100% - 36px, var(--max));
  margin: clamp(70px, 8vw, 118px) auto;
  display: grid;
  gap: clamp(28px, 5vw, 52px);
}

.service-notebook article {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1fr);
  min-height: clamp(430px, 58vh, 620px);
  border: 1px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 12px 12px 0 rgba(200, 148, 40, 0.13);
}

.service-notebook article:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
}

.service-notebook article:nth-child(even) figure {
  grid-column: 2;
}

.service-notebook article:nth-child(even) div {
  grid-column: 1;
  grid-row: 1;
}

.service-notebook figure {
  min-height: 100%;
}

.service-notebook figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: var(--ink);
}

.service-notebook div {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.service-notebook span {
  color: var(--gold-dark);
  text-transform: uppercase;
  font-weight: 900;
}

.service-notebook h2 {
  margin: 12px 0 0;
  font-size: clamp(2.1rem, 5vw, 5.2rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.service-notebook p {
  max-width: 620px;
  margin: 22px 0 0;
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  font-weight: 700;
}

.feature-service {
  width: min(100% - 36px, var(--max));
  margin: clamp(48px, 7vw, 92px) auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  min-height: clamp(640px, 84vh, 900px);
  border: 1px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 16px 16px 0 rgba(200, 148, 40, 0.14);
}

.feature-service figure {
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border-right: 1px solid var(--ink);
}

.feature-service div {
  display: grid;
  align-content: center;
  padding: clamp(28px, 5vw, 58px);
}

.issue-number,
.service-index span {
  color: var(--gold-dark);
  font-weight: 900;
}

.feature-service p {
  margin-top: 22px;
}

.text-link {
  width: fit-content;
  margin-top: 24px;
  color: var(--gold-dark);
  text-transform: uppercase;
}

.text-link::before {
  content: "";
  margin-right: 0;
}

.text-link::after {
  content: " /";
  margin-left: 7px;
  color: var(--gold);
}

.service-index {
  width: min(100% - 36px, var(--max));
  margin: 0 auto clamp(74px, 9vw, 126px);
  display: grid;
  gap: clamp(28px, 5vw, 54px);
}

.service-index article {
  display: grid;
  grid-template-columns: minmax(360px, 0.95fr) minmax(0, 1.05fr);
  min-height: clamp(640px, 84vh, 900px);
  border: 1px solid var(--ink);
  background: var(--paper-2);
  box-shadow: 12px 12px 0 rgba(200, 148, 40, 0.16);
}

.service-index article:nth-child(even) {
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
}

.service-index article:nth-child(even) img {
  grid-column: 2;
}

.service-index article:nth-child(even) div {
  grid-column: 1;
  grid-row: 1;
}

.service-index div {
  display: grid;
  align-content: center;
  padding: clamp(24px, 5vw, 50px);
}

.service-index h2 {
  margin: 10px 0 0;
  font-family: "Bricolage Grotesque", "Space Grotesk", sans-serif;
  font-size: clamp(2.2rem, 5.6vw, 5.9rem);
  font-weight: 800;
  line-height: 0.88;
  text-transform: uppercase;
}

.service-index p {
  max-width: 620px;
  margin-top: 18px;
}

.giving-board {
  width: min(100% - 36px, var(--max));
  margin: 0 auto 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.giving-board a {
  min-height: 250px;
  display: grid;
  align-content: space-between;
  padding: 24px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-decoration: none;
  background: var(--paper-2);
  transition: background 180ms ease, color 180ms ease;
}

.giving-board a:hover {
  color: var(--paper);
  background: var(--ink);
}

.giving-board .custom-gift {
  color: var(--ink);
  background: var(--gold-bright);
}

.giving-board span {
  font-family: "Bricolage Grotesque", "Space Grotesk", sans-serif;
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 800;
  line-height: 0.8;
}

.giving-board strong {
  display: block;
  margin-top: 22px;
  text-transform: uppercase;
}

.giving-board small {
  font-weight: 800;
}

.support-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.zelle-block,
.sponsor-block {
  min-height: 360px;
  padding: clamp(26px, 5vw, 50px);
  border: 1px solid var(--ink);
  background: var(--paper-2);
}

.zelle-block h2 {
  font-size: clamp(1.85rem, 4.5vw, 4rem);
  overflow-wrap: anywhere;
}

.zelle-block button,
.contact-form button {
  width: fit-content;
  margin-top: 24px;
  padding: 13px 18px;
  border: 1px solid var(--ink);
  color: var(--paper);
  background: var(--ink);
  text-transform: uppercase;
  font-weight: 900;
}

.gallery-page {
  width: min(100% - 36px, var(--max));
  margin: 0 auto clamp(74px, 9vw, 126px);
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.gallery-filters button {
  min-height: 42px;
  padding: 8px 14px;
  border: 1px solid var(--ink);
  background: transparent;
  text-transform: uppercase;
  font-weight: 900;
}

.gallery-filters button.active {
  color: var(--ink);
  background: var(--gold-bright);
}

.gallery-archive {
  display: grid;
  gap: clamp(54px, 8vw, 104px);
}

.archive-category {
  display: grid;
  gap: 24px;
}

.archive-category-header {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 20px;
  align-items: end;
  padding: 18px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.archive-category-header span {
  color: var(--gold-dark);
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 900;
}

.archive-category-header h2 {
  margin: 0;
  font-size: clamp(2.4rem, 7vw, 6.7rem);
  line-height: 0.86;
  text-transform: uppercase;
}

.archive-year {
  display: grid;
  gap: 14px;
}

.archive-year-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
}

.archive-year-header span {
  padding: 7px 10px;
  border: 1px solid var(--ink);
  background: var(--gold-bright);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 900;
}

.archive-year-header h3 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.editorial-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 12px;
}

.gallery-tile {
  position: relative;
  min-height: 250px;
  padding: 0;
  border: 1px solid var(--ink);
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

.gallery-tile::before {
  position: absolute;
  top: 10px;
  left: -12px;
  z-index: 2;
  width: 78px;
  height: 18px;
  content: "";
  background: rgba(255, 249, 236, 0.72);
  border: 1px solid rgba(8, 7, 4, 0.12);
  transform: rotate(-11deg);
}

.gallery-tile:nth-child(3n)::before {
  left: auto;
  right: -12px;
  transform: rotate(10deg);
}

.gallery-tile.tile-large {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-tile.tile-wide {
  grid-column: span 2;
}

.gallery-tile.tile-tall {
  grid-row: span 2;
}

.gallery-tile span {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  padding: 7px 9px;
  color: var(--ink);
  background: var(--gold-bright);
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 900;
}

.gallery-tile span strong,
.gallery-tile span small {
  display: block;
}

.gallery-tile span small {
  margin-top: 1px;
  color: rgba(8, 7, 4, 0.72);
  font-size: 0.68rem;
}

.gallery-tile.is-hidden {
  display: none;
}

.archive-category.is-hidden,
.archive-year.is-hidden {
  display: none;
}

.gallery-tile:hover img,
.gallery-tile:focus-visible img {
  filter: grayscale(0) sepia(0) contrast(1.02) saturate(1.03);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 64px 20px 32px;
  color: var(--paper);
  background: rgba(7, 7, 7, 0.92);
}

.lightbox[hidden] {
  display: none;
}

.lightbox button {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 10px 14px;
  border: 1px solid var(--paper);
  color: var(--paper);
  background: transparent;
  text-transform: uppercase;
  font-weight: 900;
}

.lightbox img {
  max-width: min(100%, 1080px);
  max-height: 78vh;
  object-fit: contain;
}

.lightbox p {
  margin: 14px 0 0;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-page {
  min-height: calc(100svh - 76px);
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(70px, 9vw, 124px) 0;
}

.contact-poster {
  position: relative;
}

.contact-poster::before {
  position: absolute;
  left: -12%;
  top: -20%;
  z-index: -1;
  content: "CONNECT";
  color: rgba(200, 148, 40, 0.18);
  font-family: "Bricolage Grotesque", "Space Grotesk", sans-serif;
  font-weight: 800;
  font-size: clamp(5rem, 14vw, 14rem);
  line-height: 0.8;
}

.contact-poster h1 {
  font-size: clamp(3.7rem, 10vw, 8rem);
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 26px;
}

.contact-links a {
  width: fit-content;
  max-width: 100%;
  color: var(--gold-dark);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.contact-form {
  display: grid;
  gap: 14px;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--ink);
  background: var(--paper-2);
}

.contact-form label {
  display: grid;
  gap: 7px;
  text-transform: uppercase;
  font-size: 0.82rem;
  font-weight: 900;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--ink);
  padding: 12px;
  background: var(--paper);
  outline: none;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  box-shadow: 0 0 0 3px rgba(200, 148, 40, 0.22);
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--gold-dark);
  font-weight: 900;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 110;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  color: var(--paper);
  background: var(--teal);
  transform: translateY(160%);
  transition: transform 180ms ease;
}

.toast.show {
  transform: translateY(0);
}

.page-shell {
  position: relative;
  min-height: 100vh;
  transform-origin: left center;
  backface-visibility: hidden;
}

/* incoming page is held invisible until JS starts the turn on first paint */
.page-shell.turn-hold {
  opacity: 0;
}

.page-shell.turn-in {
  animation: page-settle 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* gold bookmark ribbon: grows down the right edge as you read */
.scroll-ribbon {
  position: fixed;
  top: 0;
  right: 12px;
  width: 7px;
  height: 0;
  z-index: 90;
  pointer-events: none;
  background: linear-gradient(var(--gold-bright), var(--gold));
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% calc(100% - 9px), 0 100%);
  box-shadow: 0 1px 4px rgba(8, 7, 4, 0.25);
  transition: height 120ms linear;
}

/* lightbox prev/next: flip through photos like pages */
.lightbox .lightbox-nav {
  top: 50%;
  right: auto;
  padding: 6px 16px 12px;
  transform: translateY(-50%);
  border: 1px solid rgba(246, 242, 233, 0.55);
  font-size: 2.3rem;
  line-height: 1;
}

.lightbox .lightbox-nav-prev {
  left: 18px;
}

.lightbox .lightbox-nav-next {
  right: 18px;
}

.lightbox .lightbox-nav:hover,
.lightbox .lightbox-nav:focus-visible {
  color: var(--ink);
  background: var(--gold-bright);
  border-color: var(--gold-bright);
}

/* paper light sweep during the turn */
.page-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3000;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(105deg, rgba(8, 7, 4, 0.42) 0%, rgba(8, 7, 4, 0) 38%);
}

.page-shell.turn-in::after {
  animation: page-turn-shade-in 640ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page-transition-layer {
  display: none;
}

body.is-page-leaving {
  overflow: hidden;
  cursor: progress;
}

body.is-page-leaving .page-shell {
  position: relative;
  z-index: 2000;
  will-change: transform, opacity;
  animation: page-turn-away 380ms cubic-bezier(0.55, 0.06, 0.68, 0.19) both;
}

body.is-page-leaving .page-shell::after {
  animation: page-turn-shade 380ms cubic-bezier(0.55, 0.06, 0.68, 0.19) both;
}

/* old page lifts at the right edge and turns away, like a journal page */
@keyframes page-turn-away {
  0% {
    opacity: 1;
    transform: perspective(1600px) rotateY(0deg) translateX(0);
  }

  100% {
    opacity: 0;
    transform: perspective(1600px) rotateY(-16deg) translateX(-4%);
  }
}

@keyframes page-turn-shade {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

@keyframes page-turn-shade-in {
  0% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

/* new page settles down flat, like the next page coming to rest */
@keyframes page-settle {
  0% {
    opacity: 0;
    transform: perspective(1600px) rotateY(10deg) translateX(2.6%);
  }

  100% {
    opacity: 1;
    transform: perspective(1600px) rotateY(0deg) translateX(0);
  }
}

.reveal {
  opacity: 0;
  transition:
    opacity 720ms ease,
    transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1),
    clip-path 780ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 760ms ease;
  transition-delay: var(--delay, 0ms);
  will-change: opacity, transform, clip-path, filter;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  clip-path: inset(0 0 0 0);
  filter: none;
}

.reveal-rise {
  transform: translateY(38px);
}

.reveal-home-drift {
  transform: translateY(44px) rotate(-1.4deg);
  filter: blur(3px);
}

.reveal-service-clip {
  opacity: 1;
  transform: none;
  clip-path: inset(0 100% 0 0);
}

.reveal-service-lift {
  transform: translateX(56px) scale(0.97);
  filter: saturate(0.7);
}

.reveal-gallery-pop {
  transform: scale(0.9) rotate(-2deg);
  filter: contrast(0.75);
}

.reveal-about-slide {
  transform: translateX(-46px);
}

.reveal-about-swing {
  transform: translateY(36px) rotate(-3.5deg);
  transform-origin: 0 0;
}

.click-motion-target {
  position: relative;
  overflow: hidden;
}

.click-motion-target.is-clicking {
  transform: translateY(1px) scale(0.99);
}

.click-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 9;
  width: 22px;
  height: 22px;
  pointer-events: none;
  border: 2px solid var(--gold-bright);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  animation: click-ring 680ms ease forwards;
}

body[data-page="services"] .click-spark {
  width: 104px;
  height: 20px;
  border: 1px solid rgba(8, 7, 4, 0.2);
  border-radius: 0;
  background: rgba(241, 189, 72, 0.56);
  transform: translate(-50%, -50%) rotate(-8deg) scaleX(0);
  animation: click-tape 680ms ease forwards;
}

body[data-page="gallery"] .click-spark {
  width: 72px;
  height: 34px;
  border: 2px solid var(--gold-bright);
  border-radius: 0;
  background: rgba(8, 7, 4, 0.32);
  animation: click-stamp 620ms ease forwards;
}

body[data-page="gallery"] .click-spark::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "VIEW";
  color: var(--gold-bright);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

body[data-page="about"] .click-spark {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 0;
  background: var(--gold-bright);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  animation: click-diamond 680ms ease forwards;
}

@keyframes click-ring {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0); }
  70% { opacity: 0.45; transform: translate(-50%, -50%) scale(6); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(8); }
}

@keyframes click-tape {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scaleX(0); }
  45% { opacity: 0.9; transform: translate(-50%, -50%) rotate(-8deg) scaleX(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scaleX(1.12); }
}

@keyframes click-stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(1.5) rotate(-10deg); }
  35% { opacity: 0.95; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.08) rotate(-2deg); }
}

@keyframes click-diamond {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(0) rotate(0); }
  55% { opacity: 0.75; transform: translate(-50%, -50%) scale(2.2) rotate(90deg); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(3) rotate(135deg); }
}

.site-footer {
  position: relative;
  color: var(--paper);
  background: var(--ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.96 0 0 0 0 0.93 0 0 0 0 0.85 0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23g)'/%3E%3C/svg%3E");
  padding: clamp(48px, 6vw, 82px) clamp(18px, 4vw, 54px) clamp(26px, 3vw, 38px);
  overflow: hidden;
}

/* gold dashed top edge, echoing the header rule */
.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 6px;
  background:
    linear-gradient(90deg, transparent 0 10px, var(--gold) 10px 32px, transparent 32px 48px);
  background-size: 48px 6px;
  opacity: 0.85;
}

/* subtle journal stamp, same motif as the rest of the site */
.site-footer::after {
  content: "Love + Mercy";
  position: absolute;
  right: clamp(18px, 6vw, 84px);
  top: clamp(40px, 6vw, 74px);
  color: var(--gold-bright);
  border: 2px solid currentColor;
  opacity: 0.1;
  padding: 9px 13px;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
  transform: rotate(-7deg);
  pointer-events: none;
}

.footer-grid {
  position: relative;
  width: min(100%, var(--max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 0.8fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.footer-tagline {
  margin: 16px 0 12px;
  font-family: "DM Serif Display", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.02;
  color: var(--gold-bright);
}

.footer-mission {
  margin: 0 0 14px;
  max-width: 40ch;
  color: rgba(246, 242, 233, 0.72);
  font-size: 0.95rem;
  line-height: 1.5;
}

.footer-reg {
  margin: 0;
  color: rgba(246, 242, 233, 0.5);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

.footer-label {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  font-weight: 900;
}

.footer-act {
  display: grid;
  gap: 14px;
  justify-items: start;
}

.footer-give {
  display: inline-block;
  padding: 13px 22px;
  background: var(--gold-bright);
  color: var(--ink);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.86rem;
  text-decoration: none;
  border: 1px solid var(--gold-bright);
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.footer-give:hover,
.footer-give:focus-visible {
  background: transparent;
  color: var(--gold-bright);
  transform: translateY(-2px);
}

.footer-text-link {
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(246, 242, 233, 0.3);
  padding-bottom: 2px;
  transition: color 160ms ease, border-color 160ms ease;
}

.footer-text-link:hover,
.footer-text-link:focus-visible {
  color: var(--gold-bright);
  border-color: var(--gold-bright);
}

.footer-index,
.footer-reach {
  display: grid;
  gap: 11px;
  align-content: start;
}

.footer-index a,
.footer-reach a {
  width: fit-content;
  color: rgba(246, 242, 233, 0.82);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 150ms ease;
}

.footer-reach a {
  overflow-wrap: anywhere;
}

.footer-index a:hover,
.footer-index a:focus-visible,
.footer-reach a:hover,
.footer-reach a:focus-visible {
  color: var(--gold-bright);
}

.footer-baseline {
  position: relative;
  width: min(100%, var(--max));
  margin: clamp(34px, 4vw, 54px) auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(246, 242, 233, 0.16);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: rgba(246, 242, 233, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .side-rail {
    grid-column: auto;
  }

  .hero-photo-stack {
    min-height: 500px;
    grid-column: auto;
    grid-row: auto;
    order: 0;
  }

  .hero-brief {
    grid-column: auto;
    grid-row: auto;
    grid-template-columns: 1fr;
  }

  .quick-paths,
  .giving-board,
  .stat-run {
    grid-template-columns: repeat(2, 1fr);
  }

  .editorial-gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .margin-note {
    display: none;
  }

  body {
    background:
      linear-gradient(90deg, rgba(200, 148, 40, 0.13) 1px, transparent 1px 100%),
      linear-gradient(0deg, rgba(8, 7, 4, 0.05) 1px, transparent 1px 100%),
      radial-gradient(circle at 70% 40%, rgba(8, 7, 4, 0.045) 0 1px, transparent 1px 100%),
      var(--paper);
    background-size: 82px 82px, 82px 82px, 19px 19px, auto;
    background-position: 0 0;
    background-repeat: repeat;
  }

  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .primary-nav {
    position: fixed;
    inset: 76px 0 auto 0;
    display: none;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 20px;
    border-bottom: 1px solid var(--ink);
    background: var(--paper);
  }

  .primary-nav.open {
    display: grid;
  }

  .primary-nav a {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 1.2rem;
  }

  .nav-donate {
    justify-self: end;
  }

  .menu-toggle {
    display: block;
  }

  .split-hero,
  .support-hero,
  .mission-lab,
  .identity-copy,
  .feature-service,
  .support-details,
  .contact-page,
  .statement-grid,
  .home-impact,
  .pastors-layout {
    grid-template-columns: 1fr;
  }

  .pastors-photos {
    grid-template-columns: 1fr 1fr;
  }

  .feature-service figure {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .service-index article,
  .service-index article:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .service-index article:nth-child(even) img,
  .service-index article:nth-child(even) div {
    grid-column: auto;
    grid-row: auto;
  }

  .service-index img {
    height: 310px;
  }

  .made-anew-world {
    grid-template-columns: 1fr;
  }

  .made-anew-mark {
    justify-self: stretch;
    width: 100%;
    height: clamp(300px, 72vw, 480px);
  }

  .made-anew-copy {
    max-width: none;
  }

  .made-anew-photos {
    grid-template-columns: 1fr;
  }

  .made-anew-photos figure {
    min-height: clamp(260px, 68vw, 390px);
  }

  .service-notebook article,
  .service-notebook article:nth-child(even) {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .service-notebook article:nth-child(even) figure,
  .service-notebook article:nth-child(even) div {
    grid-column: auto;
    grid-row: auto;
  }

  .service-notebook figure {
    min-height: clamp(260px, 66vw, 390px);
  }

  .service-notebook div {
    padding: clamp(24px, 8vw, 42px);
  }

  .service-notebook h2 {
    font-size: clamp(2.15rem, 11vw, 4.8rem);
    overflow-wrap: anywhere;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .site-footer::after {
    display: none;
  }
}

@media (max-width: 620px) {
  body[data-page="home"] {
    zoom: 1;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-baseline {
    flex-direction: column;
    gap: 8px;
  }

  .brand span {
    display: none;
  }

  .nav-donate {
    padding: 10px 12px;
  }

  .hero-type h1,
  .page-hero h1 {
    font-size: clamp(2.85rem, 15vw, 4.8rem);
  }

  .hero-type h1 span {
    white-space: normal;
  }

  body[data-page="home"] .home-hero {
    row-gap: 18px;
    padding: 28px 18px 24px;
    overflow: visible;
  }

  body[data-page="home"] .home-hero::before,
  body[data-page="home"] .home-hero::after,
  body[data-page="home"] .home-hero .hero-type::before,
  body[data-page="home"] .home-hero .hero-type::after {
    display: none;
  }

  body[data-page="home"] .side-rail {
    display: none;
  }

  body[data-page="home"] .hero-type h1 {
    font-size: clamp(3.05rem, 15.5vw, 5.2rem);
    letter-spacing: -0.02em;
  }

  body[data-page="home"] .hero-brief {
    padding: 18px;
    border: 1px solid var(--ink);
    background: rgba(255, 249, 236, 0.78);
    box-shadow: 8px 8px 0 rgba(200, 148, 40, 0.14);
  }

  body[data-page="home"] .journal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  body[data-page="home"] .journal-actions a {
    justify-content: space-between;
  }

  .hero-photo-stack {
    min-height: 380px;
    height: 380px;
  }

  body[data-page="home"] .hero-photo-stack {
    height: auto;
    min-height: 0;
    gap: 8px;
  }

  body[data-page="home"] .hero-photo-one {
    aspect-ratio: 1.25;
  }

  body[data-page="home"] .hero-photo-two,
  body[data-page="home"] .hero-photo-three {
    aspect-ratio: 0.92;
  }

  .hero-photo-one {
    inset: auto;
  }

  .hero-photo-two {
    left: auto;
    width: auto;
  }

  .hero-photo-three {
    right: auto;
    width: auto;
  }

  .quick-paths,
  .giving-board,
  .stat-run,
  .editorial-gallery,
  .pastors-photos {
    grid-template-columns: 1fr;
  }

  .pastors-photo-main {
    grid-row: auto;
  }

  .pastors-photos .journal-photo {
    min-height: 320px;
  }

  .path-link {
    min-height: 220px;
  }

  body[data-page="home"] .statement-grid {
    gap: 18px;
    padding: 30px 0 38px;
  }

  body[data-page="home"] .statement-grid h2 {
    font-size: clamp(2.05rem, 10vw, 3.35rem);
  }

  body[data-page="home"] .marquee-line {
    font-size: clamp(1.6rem, 7vw, 2.45rem);
  }

  body[data-page="home"] .quick-paths {
    margin: 36px auto;
  }

  body[data-page="home"] .path-link {
    min-height: 150px;
    padding: 18px;
  }

  body[data-page="home"] .path-link strong {
    font-size: clamp(1.55rem, 8vw, 2.35rem);
  }

  body[data-page="home"] .home-impact {
    margin-bottom: 54px;
  }

  body[data-page="home"] .impact-word {
    display: none;
  }

  body[data-page="home"] .impact-numbers {
    gap: 10px;
  }

  .gallery-tile,
  .gallery-tile.tile-large,
  .gallery-tile.tile-wide,
  .gallery-tile.tile-tall {
    grid-column: auto;
    grid-row: auto;
    min-height: 300px;
  }

  .split-hero figure,
  .support-hero figure,
  .home-impact figure,
  .feature-service figure {
    height: 360px;
    min-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* tactile polaroid lift when hovering framed photos */
.photo-frame,
.journal-photo,
.home-impact figure,
.support-hero figure {
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease;
}

.photo-frame:hover,
.journal-photo:hover,
.home-impact figure:hover,
.support-hero figure:hover {
  transform: translateY(-5px) rotate(-0.6deg);
  box-shadow: 0 14px 26px rgba(8, 7, 4, 0.18);
}

@media (max-width: 620px) {
  .lightbox .lightbox-nav {
    font-size: 1.7rem;
    padding: 4px 12px 9px;
  }

  .lightbox .lightbox-nav-prev {
    left: 8px;
  }

  .lightbox .lightbox-nav-next {
    right: 8px;
  }

  .scroll-ribbon {
    right: 6px;
    width: 5px;
  }
}

/* on touch devices (class added by JS), photos return to color as you scroll past */
img.is-incolor {
  filter: none !important;
}

.photo-frame img,
.journal-photo img,
.gallery-tile img,
figure img {
  transition: filter 500ms ease;
}

/* --- mobile polish: compact donation tiles --- */
@media (max-width: 620px) {
  .giving-board a {
    min-height: 0;
    align-content: start;
    gap: 4px;
    padding: 20px 18px;
  }

  .giving-board span {
    font-size: 2.6rem;
  }

  .giving-board strong {
    margin-top: 8px;
  }
}

/* --- mobile polish: calmer, crisper entrance motion --- */
@media (max-width: 620px) {
  .reveal {
    transition-duration: 420ms, 460ms, 460ms, 440ms;
  }

  .reveal-rise {
    transform: translateY(16px);
  }

  .reveal-home-drift {
    transform: translateY(20px);
    filter: none;
  }

  .reveal-about-slide,
  .reveal-about-swing {
    transform: translateY(16px);
    filter: none;
  }

  .reveal-service-lift {
    transform: translateY(18px);
    filter: none;
  }

  .reveal-gallery-pop {
    transform: translateY(14px) scale(0.99);
    filter: none;
  }
}

/* smoother color return on touch scroll */
.photo-frame img,
.journal-photo img,
.gallery-tile img,
figure img {
  transition-duration: 650ms;
}

/* stacked support cards size to their content on small screens */
@media (max-width: 860px) {
  .zelle-block,
  .sponsor-block {
    min-height: 0;
  }
}

/* --- pastors photos on small screens: full photos, cleanly stacked --- */
@media (max-width: 860px) {
  .pastors-photos {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }

  .pastors-photo-main {
    grid-row: auto;
  }

  .pastors-photos .journal-photo,
  .pastors-photos .journal-photo:nth-child(2),
  .pastors-photos .journal-photo:nth-child(3),
  .pastors-photo-main {
    transform: none;
    min-height: 0;
    aspect-ratio: auto;
  }

  .pastors-photos .journal-photo img {
    height: auto;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
  }
}

/* --- mobile: fast, clean, opacity-only motion (no transform/filter/clip jank) --- */
@media (max-width: 860px) {
  .reveal {
    transition: opacity 260ms ease !important;
    transition-delay: 0ms !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
    will-change: opacity;
  }

  .journal-photo img,
  .hero-photo-stack img,
  .home-impact img,
  .feature-service img,
  .service-index img,
  .support-hero img,
  .gallery-tile img,
  figure img {
    transition-duration: 320ms;
  }
}

/* --- mobile final: zero scroll animation, always-color photos, one clean page fade --- */
@media (max-width: 860px) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
    filter: none !important;
    transition: none !important;
  }

  .journal-photo img,
  .photo-frame img,
  .hero-photo-stack img,
  .home-impact img,
  .feature-service img,
  .service-index img,
  .support-hero img,
  .gallery-tile img,
  figure img {
    filter: none !important;
    transition: none !important;
  }
}

@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  body {
    animation: page-fade-in 340ms ease-out;
  }
}

@keyframes page-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
