/* ==========================================================================
   The Journey — Encountering Jesus, Inc.
   Design system + components
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* Ink — the night before dawn */
  --ink-900: #0a0e13;
  --ink-800: #10161e;
  --ink-700: #18212b;
  --ink-600: #24313d;
  --ink-500: #3a4c5a;

  /* Cream — parchment, morning light */
  --cream-50:  #fdfbf7;
  --cream-100: #f8f3ea;
  --cream-200: #efe7d8;
  --cream-300: #e2d6c1;
  --sand-400:  #c9b795;

  /* Gold — the dawn itself */
  --gold-600: #a97c2c;
  --gold-500: #c89b3c;
  --gold-400: #e0b457;
  --gold-300: #f0ce85;

  /* Sage — the ridge, the field */
  --sage-700: #2c443c;
  --sage-600: #3b5a50;
  --sage-500: #4e7266;
  --sage-300: #9db5aa;

  --rust-500: #b4573a;

  /* Semantic */
  --bg: var(--cream-50);
  --bg-alt: var(--cream-100);
  --fg: var(--ink-800);
  --fg-muted: #55636e;
  --rule: rgba(16, 22, 30, 0.10);
  --accent: var(--gold-600);

  /* Type */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step--1: clamp(0.83rem, 0.80rem + 0.15vw, 0.92rem);
  --step-0:  clamp(1.00rem, 0.96rem + 0.22vw, 1.13rem);
  --step-1:  clamp(1.20rem, 1.12rem + 0.40vw, 1.45rem);
  --step-2:  clamp(1.45rem, 1.30rem + 0.75vw, 1.95rem);
  --step-3:  clamp(1.80rem, 1.50rem + 1.50vw, 2.75rem);
  --step-4:  clamp(2.20rem, 1.65rem + 2.75vw, 4.00rem);
  --step-5:  clamp(2.70rem, 1.70rem + 5.00vw, 6.00rem);

  /* Space */
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(4.5rem, 9vw, 9rem);
  --measure: 62ch;
  --max: 1240px;
  --max-narrow: 780px;

  --radius: 4px;
  --radius-lg: 10px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.7s;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; }
html:focus-within { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  font-synthesis-weight: none;
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
a { color: inherit; }

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

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

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -120%);
  background: var(--ink-900); color: var(--cream-50);
  padding: 0.75rem 1.25rem; z-index: 200;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- Typography ---------- */
h1, h2, h3, h4, .display {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.018em;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  text-wrap: balance;
}

.display-xl { font-size: var(--step-5); }
.display-lg { font-size: var(--step-4); }
.display-md { font-size: var(--step-3); }
.display-sm { font-size: var(--step-2); line-height: 1.15; }

.lead {
  font-size: var(--step-1);
  line-height: 1.55;
  color: var(--fg-muted);
  max-width: var(--measure);
  text-wrap: pretty;
}

p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.eyebrow::before {
  content: "";
  width: 2rem; height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex: none;
}
.eyebrow.is-centered { justify-content: center; }
.eyebrow.is-centered::after {
  content: "";
  width: 2rem; height: 1px;
  background: currentColor;
  opacity: 0.6;
  flex: none;
}

.italic-accent {
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  color: var(--gold-600);
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap-narrow { max-width: var(--max-narrow); }

.section { padding-block: var(--section-y); position: relative; }
.section-head { max-width: var(--measure); margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head.is-centered { margin-inline: auto; text-align: center; }
.section-head.is-centered .lead { margin-inline: auto; }
.section-head .display-md + .lead,
.section-head .display-lg + .lead { margin-top: 1.5rem; }

.grid { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); }

/* Dark sections */
.section--dark {
  background: var(--ink-900);
  color: var(--cream-100);
  --fg-muted: #94a3ae;
  --accent: var(--gold-400);
  --rule: rgba(248, 243, 234, 0.12);
}
.section--sage {
  background: var(--sage-700);
  color: var(--cream-100);
  --fg-muted: #a9c0b6;
  --accent: var(--gold-300);
  --rule: rgba(248, 243, 234, 0.14);
}
.section--tint { background: var(--bg-alt); }

/* Film grain — used on dark surfaces */
.grain::after {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: 0.16;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--ink-900);
  --btn-fg: var(--cream-50);
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.95rem 1.6rem;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: 0.94rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  will-change: transform;
}
.btn::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(105deg, var(--gold-500), var(--gold-400));
  transform: translateY(101%);
  transition: transform 0.45s var(--ease);
  z-index: -1;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -12px rgba(10, 14, 19, 0.55); }
.btn:hover::before { transform: translateY(0); }
.btn:hover { color: var(--ink-900); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

.btn--gold { --btn-bg: var(--gold-400); --btn-fg: var(--ink-900); }
.btn--gold::before { background: linear-gradient(105deg, var(--cream-50), var(--cream-200)); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  border: 1px solid currentColor;
  box-shadow: none;
}
.btn--ghost::before { background: currentColor; }
.btn--ghost:hover { color: var(--ink-900); box-shadow: none; }
.section--dark .btn--ghost:hover,
.hero .btn--ghost:hover { color: var(--ink-900); }

.btn--light { --btn-bg: var(--cream-50); --btn-fg: var(--ink-900); }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 2.25rem; }
.btn-row.is-centered { justify-content: center; }

/* Text link with underline sweep */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  font-weight: 500;
  color: var(--accent);
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.4s var(--ease);
  padding-bottom: 2px;
}
.link:hover { background-size: 100% 1px; }
.link .arrow { transition: transform 0.3s var(--ease); }
.link:hover .arrow { transform: translateX(3px); }

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background 0.4s var(--ease), backdrop-filter 0.4s var(--ease),
              box-shadow 0.4s var(--ease), transform 0.45s var(--ease);
}
.header.is-scrolled {
  background: rgba(253, 251, 247, 0.82);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--rule), 0 10px 30px -20px rgba(10, 14, 19, 0.4);
}
.header.is-hidden { transform: translateY(-100%); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 84px;
}

/* Header colors: dark text by default, light when over hero */
.header { color: var(--ink-800); }
.header.is-over-hero:not(.is-scrolled) { color: var(--cream-50); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex: none;
}
.brand__mark { width: 34px; height: 34px; flex: none; }
.brand__mark path, .brand__mark circle { transition: stroke 0.4s var(--ease), fill 0.4s var(--ease); }
.brand__text { line-height: 1.1; }
.brand__name {
  display: block;
  font-family: var(--font-display);
  font-size: 1.08rem;
  letter-spacing: -0.01em;
}
.brand__sub {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-top: 1px;
}

.nav { display: flex; align-items: center; gap: clamp(1rem, 2vw, 2rem); }
.nav__list { display: flex; align-items: center; gap: clamp(0.9rem, 1.7vw, 1.9rem); list-style: none; padding: 0; }
.nav__link {
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 450;
  position: relative;
  padding-block: 0.4rem;
  opacity: 0.82;
  transition: opacity 0.25s var(--ease);
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav__link:hover { opacity: 1; }
.nav__link:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__link[aria-current="page"] { opacity: 1; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); background: var(--gold-500); height: 2px; }

.nav__cta { padding: 0.7rem 1.25rem; font-size: 0.86rem; }
.header:not(.is-scrolled).is-over-hero .nav__cta { --btn-bg: var(--gold-400); --btn-fg: var(--ink-900); }

/* Mobile toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  margin-right: -10px;
  position: relative;
  z-index: 120;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  width: 22px; height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.25s var(--ease), width 0.4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 17px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 27px; width: 14px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); width: 22px; }

@media (max-width: 950px) {
  .nav-toggle { display: block; }
  .header__inner { min-height: 72px; }
  .nav {
    position: fixed;
    inset: 0;
    background: var(--ink-900);
    color: var(--cream-50);
    flex-direction: column;
    justify-content: center;
    gap: 0;
    padding: var(--gutter);
    clip-path: circle(0% at calc(100% - 34px) 36px);
    transition: clip-path 0.65s var(--ease);
    pointer-events: none;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 34px) 36px); pointer-events: auto; }
  .nav__list { flex-direction: column; gap: 0; width: 100%; max-width: 420px; }
  .nav__list li { width: 100%; border-bottom: 1px solid rgba(248,243,234,0.10); }
  .nav__link {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 6vw, 2rem);
    padding-block: 0.65rem;
    opacity: 0;
    transform: translateY(14px);
  }
  .nav__link::after { display: none; }
  .nav.is-open .nav__link { opacity: 0.9; transform: none; transition: opacity 0.5s var(--ease) var(--d, 0s), transform 0.5s var(--ease) var(--d, 0s); }
  .nav__cta { margin-top: 2rem; opacity: 0; transition: opacity 0.5s var(--ease) 0.35s; }
  .nav.is-open .nav__cta { opacity: 1; }
  body.nav-open { overflow: hidden; }
  .header.is-nav-open { color: var(--cream-50); background: none; backdrop-filter: none; box-shadow: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100vh;
  display: grid;
  align-items: center;
  background: var(--ink-900);
  color: var(--cream-100);
  overflow: hidden;
  isolation: isolate;
}
.hero--short { min-height: 62svh; padding-top: 84px; }

/* Layered dawn */
.hero__sky {
  position: absolute;
  inset: 0;
  z-index: -3;
  background:
    radial-gradient(120% 85% at 50% 100%, rgba(224, 180, 87, 0.30) 0%, rgba(224, 180, 87, 0) 55%),
    radial-gradient(80% 55% at 72% 88%, rgba(180, 87, 58, 0.24) 0%, rgba(180, 87, 58, 0) 60%),
    linear-gradient(180deg, #070a0e 0%, #0d141c 42%, #1b2530 72%, #2f3b40 100%);
}
/* Slow breathing glow */
.hero__glow {
  position: absolute;
  left: 50%; bottom: -30%;
  width: min(1100px, 130vw);
  aspect-ratio: 1;
  transform: translateX(-50%);
  z-index: -3;
  background: radial-gradient(circle, rgba(240, 206, 133, 0.22) 0%, rgba(240, 206, 133, 0) 62%);
  animation: breathe 11s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.65; transform: translateX(-50%) scale(1); }
  50%      { opacity: 1;    transform: translateX(-50%) scale(1.09); }
}

/* Star field */
.hero__stars { position: absolute; inset: 0 0 40% 0; z-index: -3; opacity: 0.5; }

/* Ridge silhouettes */
.hero__ridge {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  z-index: -2;
  width: 100%;
  pointer-events: none;
}
.hero__ridge--far  { opacity: 0.55; }
.hero__ridge--near { opacity: 1; }

.hero__grain {
  position: absolute; inset: 0; z-index: -1;
  pointer-events: none;
  opacity: 0.2;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hero__inner { padding-block: clamp(9rem, 18vh, 12rem) clamp(6rem, 14vh, 9rem); }
.hero--short .hero__inner { padding-block: clamp(5rem, 12vh, 7rem) clamp(3.5rem, 8vh, 5rem); }

.hero__title { font-size: var(--step-5); max-width: 16ch; }
.hero__title .line { display: block; overflow: hidden; }
.hero__title .line > span { display: block; }
.hero__lead {
  margin-top: 2rem;
  max-width: 54ch;
  font-size: var(--step-1);
  color: rgba(248, 243, 234, 0.74);
}
.hero .eyebrow { color: var(--gold-300); }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 2.25rem;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
  font-size: 0.65rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(248, 243, 234, 0.5);
  text-decoration: none;
}
.hero__scroll .rail {
  width: 1px; height: 46px;
  background: linear-gradient(rgba(248,243,234,0.05), rgba(248,243,234,0.55));
  position: relative; overflow: hidden;
}
.hero__scroll .rail::after {
  content: ""; position: absolute; inset: 0;
  background: var(--gold-300);
  animation: railDrop 2.4s var(--ease) infinite;
}
@keyframes railDrop {
  0%   { transform: translateY(-100%); }
  55%  { transform: translateY(100%); }
  100% { transform: translateY(100%); }
}
@media (max-width: 640px) { .hero__scroll { display: none; } }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink-900);
  color: var(--cream-100);
  border-block: 1px solid rgba(248, 243, 234, 0.1);
  padding-block: 1.35rem;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-right: 2.5rem;
  flex: none;
}
.marquee__item {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.8vw, 1.5rem);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee__item:nth-child(even) { font-style: italic; color: var(--gold-300); font-variation-settings: "SOFT" 60, "WONK" 1; }
.marquee__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--gold-500); flex: none; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Pillar cards ---------- */
.pillar {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  background: var(--cream-50);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), border-color 0.5s var(--ease);
}
.section--tint .pillar { background: var(--cream-50); }
.pillar::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 90% at 50% 0%, rgba(224, 180, 87, 0.14), transparent 65%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.pillar:hover { transform: translateY(-5px); box-shadow: 0 26px 50px -30px rgba(10, 14, 19, 0.4); border-color: rgba(200, 155, 60, 0.42); }
.pillar:hover::before { opacity: 1; }
.pillar > * { position: relative; }

.pillar__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--gold-600);
  display: block;
  margin-bottom: 1.5rem;
}
.pillar__icon { width: 40px; height: 40px; margin-bottom: 1.35rem; color: var(--gold-600); }
.pillar h3 { font-size: var(--step-2); margin-bottom: 0.85rem; }
.pillar p { color: var(--fg-muted); font-size: 0.98rem; }

/* Track cards (Adult / Teen / Gatherings) */
.track {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(255,255,255,0.04), transparent);
  overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.5s var(--ease), background 0.5s var(--ease);
}
.track:hover { transform: translateY(-5px); border-color: rgba(224, 180, 87, 0.5); }
.track__tag {
  font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 1.25rem;
}
.track h3 { font-size: var(--step-2); margin-bottom: 1rem; }
.track p { color: var(--fg-muted); font-size: 0.97rem; }
.track__list { list-style: none; padding: 0; margin: 1.75rem 0 0; display: grid; gap: 0.7rem; }
.track__list li {
  display: flex; gap: 0.75rem; align-items: baseline;
  font-size: 0.95rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--rule);
}
.track__list li::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); flex: none; transform: translateY(-2px); }
.track__foot { margin-top: auto; padding-top: 2rem; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 1px;
  background: var(--rule);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat { padding: clamp(1.75rem, 3.5vw, 2.75rem) clamp(1.25rem, 2vw, 2rem); background: var(--ink-900); text-align: center; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5.5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(160deg, var(--cream-50) 20%, var(--gold-400) 95%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat__label {
  margin-top: 0.9rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(248, 243, 234, 0.55);
}

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem); }
.quote {
  position: relative;
  padding: clamp(1.75rem, 3vw, 2.5rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: rgba(248, 243, 234, 0.03);
  display: flex; flex-direction: column;
  transition: transform 0.5s var(--ease), background 0.5s var(--ease);
}
.quote:hover { transform: translateY(-4px); background: rgba(248, 243, 234, 0.06); }
.quote__mark {
  font-family: var(--font-display);
  font-size: 4.5rem; line-height: 0.7;
  color: var(--gold-500);
  opacity: 0.35;
  margin-bottom: 0.5rem;
}
.quote p {
  font-family: var(--font-display);
  font-size: var(--step-1);
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.quote cite {
  margin-top: auto;
  padding-top: 1.75rem;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

/* Pull quote */
.pullquote {
  max-width: 22ch;
  font-family: var(--font-display);
  font-size: var(--step-3);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---------- Split / feature ---------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(400px, 100%), 1fr));
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--ink-800);
}
.split__media svg { width: 100%; height: 100%; }

/* Numbered process steps */
.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-block: clamp(1.75rem, 3.5vw, 2.75rem);
  border-top: 1px solid var(--rule);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--rule); }
.step__num {
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  padding-top: 0.6rem;
  min-width: 3.5rem;
}
.step__num::before { content: "0" counter(step); }
.step h3 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.step p { color: var(--fg-muted); max-width: var(--measure); }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--rule); }
.acc-item { border-bottom: 1px solid var(--rule); }
.acc-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem) 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: var(--step-1);
  letter-spacing: -0.01em;
  transition: color 0.3s var(--ease);
}
.acc-trigger:hover { color: var(--gold-600); }
.acc-icon { position: relative; width: 16px; height: 16px; flex: none; }
.acc-icon::before, .acc-icon::after {
  content: ""; position: absolute; inset: 50% 0 auto 0;
  height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform 0.4s var(--ease);
}
.acc-icon::after { transform: rotate(90deg); }
.acc-trigger[aria-expanded="true"] { color: var(--gold-600); }
.acc-trigger[aria-expanded="true"] .acc-icon::after { transform: rotate(0deg); }
.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease);
}
.acc-panel[data-open="true"] { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { color: var(--fg-muted); max-width: var(--measure); padding-bottom: 1.75rem; }

/* ---------- Checklist columns ---------- */
.checklist { list-style: none; padding: 0; display: grid; gap: 1rem; }
.checklist li { display: flex; gap: 0.9rem; align-items: flex-start; }
.checklist svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent); }
.checklist--x svg { color: var(--fg-muted); opacity: 0.6; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink-900);
  color: var(--cream-100);
}
.cta-band__glow {
  position: absolute;
  left: 50%; top: 120%;
  width: min(900px, 120vw); aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(224, 180, 87, 0.30), transparent 62%);
  z-index: -1;
  animation: breathe 12s ease-in-out infinite;
}

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.5rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1.5rem; }
.field { display: grid; gap: 0.55rem; position: relative; }
.field > label {
  font-size: 0.74rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-muted);
}
.field .req { color: var(--rust-500); }
.field input, .field textarea, .field select {
  width: 100%;
  padding: 0.9rem 1rem;
  background: var(--cream-50);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  font-size: 1rem;
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), background 0.3s var(--ease);
}
.field textarea { min-height: 160px; 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' width='14' height='9' fill='none'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%2355636e' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.75rem;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(200, 155, 60, 0.16);
}
.field input::placeholder, .field textarea::placeholder { color: #9aa5ad; }

.radio-group { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.radio {
  position: relative;
  display: inline-flex;
}
.radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio span {
  padding: 0.7rem 1.35rem;
  border: 1px solid var(--rule);
  border-radius: 100px;
  font-size: 0.92rem;
  transition: all 0.3s var(--ease);
  background: var(--cream-50);
}
.radio input:checked + span { background: var(--ink-900); color: var(--cream-50); border-color: var(--ink-900); }
.radio input:focus-visible + span { outline: 2px solid var(--gold-500); outline-offset: 2px; }

/* Honeypot */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.form-status {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.94rem;
  display: none;
}
.form-status[data-state="ok"]  { display: block; background: rgba(78, 114, 102, 0.12); border: 1px solid var(--sage-500); color: var(--sage-700); }
.form-status[data-state="err"] { display: block; background: rgba(180, 87, 58, 0.10); border: 1px solid var(--rust-500); color: var(--rust-500); }

.btn[data-loading="true"] { pointer-events: none; opacity: 0.72; }
.btn[data-loading="true"] .btn-label::after {
  content: "";
  display: inline-block;
  width: 12px; height: 12px;
  margin-left: 0.6rem;
  border: 1.5px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -1px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Card wrapper for forms */
.card {
  background: var(--cream-50);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: clamp(1.75rem, 4vw, 3.25rem);
  box-shadow: 0 30px 60px -45px rgba(10, 14, 19, 0.5);
}

/* ---------- Give options ---------- */
.give-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: clamp(1.25rem, 2.5vw, 1.75rem); }
.give-card {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--cream-50);
  text-decoration: none;
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.give-card:hover { transform: translateY(-4px); border-color: var(--gold-500); box-shadow: 0 24px 46px -32px rgba(10,14,19,0.42); }
.give-card__icon { width: 32px; height: 32px; color: var(--gold-600); margin-bottom: 1.25rem; }
.give-card h3 { font-size: var(--step-1); margin-bottom: 0.6rem; }
.give-card p { font-size: 0.94rem; color: var(--fg-muted); }
.give-card .link { margin-top: 1.5rem; }

/* ---------- Events ---------- */
.empty-state {
  text-align: center;
  max-width: 56ch;
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 4vw, 3rem);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(200, 155, 60, 0.05), transparent 70%);
}
.empty-state svg { width: 56px; height: 56px; margin: 0 auto 1.75rem; color: var(--gold-600); }
.empty-state p { color: var(--fg-muted); margin-top: 1rem; }

.event-list { display: grid; gap: 1.25rem; }
.event {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  background: var(--cream-50);
  transition: transform 0.45s var(--ease), border-color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.event:hover { transform: translateY(-3px); border-color: var(--gold-500); box-shadow: 0 24px 46px -34px rgba(10,14,19,.42); }
.event__date {
  display: flex; flex-direction: column; align-items: center;
  min-width: 5.5rem;
  padding: 1rem 0.75rem;
  border-radius: var(--radius);
  background: var(--ink-900);
  color: var(--cream-50);
}
.event__month { display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-400); }
.event__day { display: block; font-family: var(--font-display); font-size: 2.1rem; line-height: 1.1; }
.event__through { font-size: 0.75rem; color: rgba(248,243,234,.55); }
.event__tag { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.6rem; }
.event__body h3 { font-size: var(--step-2); margin-bottom: 0.6rem; }
.event__meta { font-size: 0.86rem; color: var(--fg-muted); margin-bottom: 0.75rem; }
.event__body > p:last-child { font-size: 0.95rem; color: var(--fg-muted); }
@media (max-width: 720px) {
  .event { grid-template-columns: auto 1fr; }
  .event__action { grid-column: 1 / -1; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink-900);
  color: var(--cream-100);
  position: relative;
  overflow: hidden;
  --rule: rgba(248, 243, 234, 0.11);
}
.footer__top { padding-block: clamp(3.5rem, 7vw, 6rem) clamp(2.5rem, 5vw, 4rem); }
.footer__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4.2vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 20ch;
}
.footer__tagline em { font-style: italic; color: var(--gold-400); font-variation-settings: "SOFT" 60, "WONK" 1; }

.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-top: 1px solid var(--rule);
}
@media (max-width: 780px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand-col { grid-column: 1 / -1; } }

.footer h4 {
  font-family: var(--font-body);
  font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-400);
  margin-bottom: 1.35rem;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 0.8rem; }
.footer a { text-decoration: none; font-size: 0.94rem; color: rgba(248, 243, 234, 0.68); transition: color 0.25s var(--ease); }
.footer a:hover { color: var(--gold-300); }
.footer address { font-style: normal; font-size: 0.94rem; color: rgba(248, 243, 234, 0.68); line-height: 1.75; }

.footer__bottom {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  justify-content: space-between; align-items: center;
  padding-block: 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: rgba(248, 243, 234, 0.45);
}
.footer__bottom a { font-size: 0.82rem; }

/* ---------- Scroll reveal ----------
   Scoped to .js (set by head.js). Without JS, nothing is ever hidden. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Hero line mask animation */
.js .hero__title .line > span,
.js .hero .eyebrow,
.js .hero__lead,
.js .hero .btn-row {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn 1.1s var(--ease) forwards;
}
.hero .eyebrow { animation-delay: 0.15s; }
.hero__title .line:nth-child(1) > span { animation-delay: 0.28s; }
.hero__title .line:nth-child(2) > span { animation-delay: 0.40s; }
.hero__title .line:nth-child(3) > span { animation-delay: 0.52s; }
.hero__lead { animation-delay: 0.66s; }
.hero .btn-row { animation-delay: 0.80s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero__lead { animation-name: heroInFade; }
@keyframes heroInFade { to { opacity: 0.74; transform: none; } }

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html:focus-within { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .hero__title .line > span, .js .hero .eyebrow, .js .hero__lead, .js .hero .btn-row { opacity: 1; transform: none; }
  .js .hero__lead { opacity: 0.74; }
  .marquee__track { animation: none; }
}

/* ---------- Utilities ---------- */
.u-center { text-align: center; }
.u-mt-sm { margin-top: 1rem; }
.u-mt { margin-top: 2rem; }
.u-mt-lg { margin-top: 3.5rem; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.rule { height: 1px; background: var(--rule); border: 0; }
