/* ── TOKENS ── */
:root {
  --white: #ffffff;
  --bg: #ededed;
  --black: #000000;
  --accent: #2a967d;
  --gray: #949494;
  --gray-dark: #474747;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: 'Outfit', sans-serif; background: var(--bg); color: var(--black); overflow-x: hidden; }

/* ── HERO (video + text share one viewport — matches cursor.md / About / Give) ── */
.hero-section {
  background: var(--bg);
  position: relative;
  width: 100%;
}
/* Only the video area; white-lift is a sibling so text is not centered in the whole page */
.home-hero-viewport {
  position: relative;
  width: 100%;
  min-height: 600px;
  height: 110vh; /* legacy */
  height: 110dvh; /* stable on mobile (toolbar / URL bar) */
  overflow: hidden;
}
/* Short / landscape phones: don’t force 600px+ hero (would be ~2× viewport height) */
@media (max-height: 34rem) {
  .home-hero-viewport {
    min-height: 0;
    height: 100dvh;
  }
}
.hero-bg-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f0c14;
  z-index: 0;
}
.hero-bg-wrap.hero-bg-fallback {
  background: linear-gradient(160deg, #1a1520 0%, #2a1f35 50%, #1a2030 100%);
}
.hero-bg-wrap.hero-bg-fallback .hero-video {
  display: none;
}
.hero-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
}
.hero-bg-placeholder {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, #1a1520 0%, #2a1f35 50%, #1a2030 100%);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  font-size: 11px; letter-spacing: 3px; text-transform: uppercase;
  color: rgba(255,255,255,0.2);
}
.hero-text-wrap {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  /* Side padding + iOS / notched device safe insets */
  padding-top: max(0.5rem, env(safe-area-inset-top, 0px));
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom, 0px));
  padding-left: max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-left, 0px));
  padding-right: max(clamp(1rem, 4vw, 2.5rem), env(safe-area-inset-right, 0px));
  box-sizing: border-box;
  pointer-events: none;
}
.hero-text-wrap a {
  pointer-events: auto;
}
/* Phil 4:13 — Judson 700 + Lora italic (Edify stack: Judson + Outfit global; Lora for secondary serif) */
.hero-scripture {
  max-width: 38em;
  width: 100%;
  text-align: center;
  text-wrap: balance; /* friendlier line breaks on narrow viewports (supported browsers) */
  font-size: clamp(1.5rem, 4.2vw, 2.85rem);
  line-height: 1.28;
  text-shadow: 0 0 40px rgba(0, 0, 0, 0.55), 0 2px 24px rgba(0, 0, 0, 0.5);
}
.hero-scripture-title {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  line-height: inherit;
}
.hero-text-judson {
  font-family: 'Judson', Georgia, 'Times New Roman', serif;
  font-style: normal;
  font-weight: 700;
  color: var(--white);
}
.hero-text-lora {
  font-family: 'Lora', Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.97);
}
.hero-scripture-ref {
  margin: 0.75em 0 0 0;
  font-family: 'Outfit', sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 0.6em;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.45);
}
.hero-scripture-ref .word { display: inline-block; }
.word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(10px);
  transition: opacity 0.7s ease, filter 0.7s ease, transform 0.7s ease;
}
.word.show {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .word {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
}

/* ── WHITE CARD LIFT ── */
.white-lift {
  position: relative; z-index: 3;
  margin-top: -60px;
  border-radius: 60px 60px 0 0;
  background: var(--white);
  box-shadow: 0 0 10px -5px var(--black);
  overflow: hidden;
}

/* ── SECTIONS ── */
.section-white {
  background: var(--white);
  padding: 150px 0 200px;
}
.section-gray {
  background: var(--bg);
  padding: 325px 0 150px;
}
.section-inner {
  width: 100%; max-width: 1000px;
  margin: 0 auto; padding: 0 40px;
  display: flex; flex-direction: column; gap: 200px;
}
.section-gray .section-inner { gap: 300px; }

/* ── TWO-COLUMN ROW ── */
.row {
  display: flex; align-items: center; gap: 100px;
}
.row-img {
  flex: 1; border-radius: 30px; overflow: hidden;
  box-shadow: 0 0 10px -5px var(--black); background: #eee;
  flex-shrink: 0;
}
.row-img img { width: 120%; height: 120%; object-fit: cover; object-position: center; display: block; margin: -10%; }
.row-img-ph {
  width: 100%; min-height: 400px;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 10px;
  color: rgba(0,0,0,0.2); font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  padding: 40px;
}
.row-text { flex: 1; display: flex; flex-direction: column; gap: 30px; overflow: hidden; }

/* ── HEADINGS ── */
.s-h2 {
  font-family: 'Outfit', sans-serif; font-weight: 400;
  font-size: clamp(28px, 4vw, 64px);
  letter-spacing: -0.03em; line-height: 1em;
  color: var(--black);
}
.s-h3 {
  font-family: 'Outfit', sans-serif; font-weight: 400;
  font-size: clamp(22px, 2.5vw, 40px);
  letter-spacing: -0.03em; line-height: 0.9em;
  text-shadow: 0 0 33px rgba(0,0,0,0.09);
}
.s-body {
  font-family: 'Outfit', sans-serif; font-weight: 400;
  font-size: clamp(15px, 1.5vw, 21px);
  letter-spacing: -0.02em; line-height: 1.4em;
  color: var(--black);
}
.accent-text { color: var(--accent); }

/* ── VALUES ROW ── */
.values-row {
  display: flex; align-items: center; gap: 50px;
}
.values-right-text { flex: 1; text-align: right; }
.faith-phrases { flex: 1; }
.inline-img {
  aspect-ratio: 1.452; border-radius: 15px; overflow: hidden;
  box-shadow: 0 0 10px -5px var(--black); background: #eee;
  flex: 1; min-width: 0;
}
.inline-img img { width: 100%; height: 100%; object-fit: cover; }
.inline-img-ph {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,0.2); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
}

/* ── UNDERLINE LINK ── */
.ulink {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 16px; font-weight: 400; letter-spacing: -0.02em;
  color: var(--black); text-decoration: none;
  position: relative; padding-bottom: 3px;
  width: fit-content;
}
.ulink::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 100%;
  height: 1px; background: var(--black); transition: right 0.3s ease;
}
.ulink:hover::after { right: 0; }
.ucircle {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.6);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: transform 0.2s;
}
.ulink:hover .ucircle { transform: scale(1.2); }

/* ── WIDE ROW ── */
.wide-row {
  display: flex; align-items: center; gap: 100px;
}
.wide-img {
  aspect-ratio: 1.625; border-radius: 30px; overflow: hidden;
  box-shadow: 0 0 10px -5px var(--black); background: #eee;
  flex: 1.3 0 0; width: 0;
}
.wide-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wide-img-ph {
  width: 100%; height: 100%; min-height: 300px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,0.2); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
}
.wide-text { flex: 1; display: flex; flex-direction: column; gap: 30px; overflow: hidden; }

/* ── 3-COLUMN CARDS ── */
.cards-row {
  display: flex; align-items: flex-start; gap: 50px;
}
.card-col { flex: 1; display: flex; flex-direction: column; gap: 20px; }
.card-img {
  aspect-ratio: 1.333; border-radius: 15px; overflow: hidden;
  box-shadow: 0 0 10px -5px var(--black); background: #eee;
}
.card-img img,
.card-img .card-img-media { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-img .card-img-media { vertical-align: middle; }
.card-img-ph {
  width: 100%; height: 100%; min-height: 180px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(0,0,0,0.2); font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
}

/* ── BIG CTA ── */
.big-cta {
  display: flex; align-items: center; justify-content: space-evenly;
  width: 100%; height: 300px;
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
  text-decoration: none; overflow: hidden; position: relative;
  transition: background 0.3s;
}
.big-cta:hover { background: var(--black); }
.big-cta-text {
  font-family: 'Outfit', sans-serif; font-weight: 350;
  font-size: clamp(40px, 12vw, 180px);
  letter-spacing: -0.06em; line-height: 0.9em;
  color: var(--black); transition: color 0.3s; text-align: center;
}
.big-cta:hover .big-cta-text { color: var(--white); }
.big-cta-circle {
  width: 175px; height: 175px; border-radius: 50%;
  border: 1px solid var(--black);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: border-color 0.3s;
}
.big-cta:hover .big-cta-circle { border-color: var(--white); }
.big-cta-circle svg { transition: stroke 0.3s; }
.big-cta:hover .big-cta-circle svg { stroke: var(--white); }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(50px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: 0.1s; }
.d2 { transition-delay: 0.2s; }

/* ── CARD MICRO-INTERACTIONS ── */
.card-col {
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease;
  border-radius: 20px;
}
.card-col:hover {
  transform: translateY(-6px);
}
.card-img {
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.card-col:hover .card-img {
  transform: scale(1.03);
}
@media (prefers-reduced-motion: reduce) {
  .card-col, .card-img { transition: none; }
  .card-col:hover { transform: none; }
  .card-col:hover .card-img { transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-video { display: none; }
  .card-img .card-img-media { display: none; }
  .hero-bg-wrap { background: linear-gradient(160deg, #1a1520 0%, #2a1f35 50%, #1a2030 100%); }
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .section-inner { padding: 0 25px; gap: 80px; }
  .row, .wide-row, .values-row { flex-direction: column; gap: 40px; }
  .row-img { width: 80%; margin: 0 auto; }
  .wide-img { width: 100%; flex: none; }
  .cards-row { flex-direction: column; }
  .big-cta-circle { width: 60px; height: 60px; }
}
@media (max-width: 600px) {
  .section-white { padding: 80px 0 80px; }
  .section-gray { padding: 100px 0 80px; }
  .white-lift { border-radius: 30px 30px 0 0; }
  /* Hero video stays visible (playsinline); was display:none here which looked “frozen” on phones/narrow devtools. */
}
