@import url('https://api.fontshare.com/v2/css?f[]=satoshi@400,500,700,900&display=swap');

:root {
  --green-900: #295840;
  --green-800: #214936;
  --green-700: #3b7d5c;
  --green-600: #6c9e85;
  --green-100: #cedfd6;
  --cream-500: #f6f0ed;
  --cream-300: #ece6e4;
  --cream-100: #f9f6f4;
  --yellow-500: #f7d447;
  --yellow-100: #fdf4d1;
  --mauve-300: #d7ddf1;
  --pink-300: #f5d1eb;
  --ink-900: #1f2a24;
  --ink-700: #4a5650;
  --white: #fff;

  --font: 'Satoshi', -apple-system, BlinkMacSystemFont, Helvetica, Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --shadow: 0 4px 16px rgba(31, 42, 36, .08);
  --shadow-lg: 0 14px 36px rgba(31, 42, 36, .18);
  --gutter: 20px;
  --max: 1120px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .2 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--cream-500);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }

h1, h2, h3 { line-height: 1.08; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 11vw, 4rem); font-weight: 900; }
h2 { font-size: clamp(2.125rem, 8vw, 3.5rem); font-weight: 900; }
h3 { font-size: 1.375rem; font-weight: 700; line-height: 1.25; }

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

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.svg-defs { position: absolute; width: 0; height: 0; }

.eyebrow {
  font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green-700);
}
.lede { font-size: 1.125rem; color: var(--ink-700); max-width: 32em; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--green-700); color: var(--cream-500); }
.btn-primary:hover { background: var(--green-900); }
.btn-ghost { border-color: var(--green-700); color: var(--green-900); }
.btn-ghost:hover { background: var(--green-700); color: var(--cream-500); }
.btn-cream { background: var(--cream-500); color: var(--green-900); }
.btn-cream:hover { background: var(--white); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: .9375rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(33, 73, 54, .9);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .mark { height: 30px; width: auto; }
.brand .type { height: 22px; width: auto; }
.nav { display: none; gap: 28px; }
.nav a { text-decoration: none; font-weight: 500; color: var(--green-100); transition: color .2s; }
.nav a:hover { color: var(--white); }

/* Green surfaces */
.wall { background: var(--noise), var(--green-800); color: var(--cream-500); }

/* Hero: a doorway of light */
.hero { position: relative; overflow: hidden; padding: 36px 0 0; }
.hero::before {
  content: ''; position: absolute; left: 50%; bottom: -120px; width: 900px; height: 420px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(247, 212, 71, .2), transparent);
  pointer-events: none;
}
.door {
  position: relative; width: min(100%, 540px); margin: 0 auto;
  filter: drop-shadow(0 0 44px rgba(249, 223, 117, .28));
  animation: rise 1s var(--ease) both, glow 5s ease-in-out 1.2s infinite alternate;
}
.door-cap {
  aspect-ratio: 100 / 46; margin-bottom: -1px;
  background: var(--cream-500); clip-path: url(#arch-cap);
  display: flex; align-items: flex-end; justify-content: center;
}
.door-cap img { height: 34%; width: auto; margin-bottom: 2%; }
.door-body {
  background: linear-gradient(var(--cream-500) 40%, var(--yellow-100));
  color: var(--ink-900); text-align: center;
  padding: 16px 22px 56px;
}
.door-body > * { animation: fadeUp .8s var(--ease) both; animation-delay: calc(.45s + var(--i, 0) * .12s); }
.door-body h1 { margin: 12px 0 18px; color: var(--green-900); }
.door-body .lede { margin: 0 auto; font-size: 1.0625rem; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; margin-top: 26px; }

/* Sections */
.section { padding: 72px 0; position: relative; }
.section-head { display: grid; gap: 14px; margin-bottom: 36px; }
.bg-white { background: var(--white); }

/* Video thumbs */
.thumb {
  position: relative; display: block; width: 100%; padding: 0; border: 0;
  aspect-ratio: 16 / 9; overflow: hidden; cursor: pointer;
  border-radius: var(--radius); background: var(--green-900);
  box-shadow: var(--shadow-lg);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.thumb:hover img { transform: scale(1.04); }
.thumb::after {
  content: ''; position: absolute; left: 14px; bottom: 14px; width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--cream-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23295840' d='M9 6.5v11l9-5.5z'/%3E%3C/svg%3E") center / 28px no-repeat;
  box-shadow: 0 0 0 0 rgba(246, 240, 237, .55);
  animation: pulse 2.4s ease-out infinite;
}
.thumb iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.thumb.playing { cursor: default; }
.thumb.playing::after { display: none; }

/* Questions: stage + list */
.stage-wrap { display: grid; gap: 28px; }
.stage-wrap > * { min-width: 0; }
.stage-info { padding: 22px 4px 0; }
.stage-info.swap { animation: fadeUp .45s var(--ease) both; }
.stage-num { font-size: .9375rem; font-weight: 700; color: var(--green-700); letter-spacing: .08em; }
.stage-info h3 { font-size: clamp(1.5rem, 5.5vw, 2rem); font-weight: 900; margin: 6px 0 10px; }
.stage-info p { color: var(--ink-700); }
.ask-link { display: inline-block; margin-top: 14px; font-weight: 700; color: var(--green-700); text-underline-offset: 4px; }
.ask-link:hover { color: var(--green-900); }

.rail-label { font-size: .8125rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-700); margin-bottom: 12px; }
.rail {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 12px;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.q-item {
  flex: none; width: 210px; scroll-snap-align: start; scroll-margin-left: var(--gutter);
  display: block; text-align: left; padding: 8px 8px 12px; cursor: pointer;
  background: var(--white); border: 2px solid transparent; border-radius: 14px;
  box-shadow: var(--shadow);
  transition: border-color .2s, transform .2s var(--ease);
}
.q-item:hover { transform: translateY(-3px); }
.q-item img { aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; width: 100%; height: auto; }
.q-item .num { display: block; margin: 10px 4px 2px; font-size: .8125rem; font-weight: 700; color: var(--green-700); letter-spacing: .08em; }
.q-item .q { display: block; margin: 0 4px; font-size: .9375rem; font-weight: 700; line-height: 1.3; }
.q-item[aria-current="true"] { border-color: var(--green-700); }

/* Stories */
.stories { overflow: hidden; background: var(--noise), var(--green-700); color: var(--cream-500); }
.stories .eyebrow { color: var(--green-100); }
.stories .lede { color: #e3ece7; }
.arch-line { position: absolute; right: -120px; top: 28px; width: 300px; pointer-events: none; }
.arch-line path {
  fill: none; stroke: rgba(246, 240, 237, .2); stroke-width: 2.5;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  transition: stroke-dashoffset 2.4s var(--ease) .2s;
}
.arch-line.in path { stroke-dashoffset: 0; }
.stories .wrap { position: relative; }
.stories-grid { display: grid; gap: 36px; }
.story { display: grid; gap: 16px; }
.story .tag {
  justify-self: start; padding: 3px 12px; border-radius: 999px;
  border: 1px solid rgba(246, 240, 237, .5); font-size: .8125rem; font-weight: 700;
}
.story h3 { font-size: clamp(1.5rem, 5.5vw, 2rem); font-weight: 900; }
.story p { color: #e3ece7; }
.stories-more { margin-top: 44px; }

/* About */
.about .wrap { display: grid; gap: 44px; }
.about-copy { display: grid; gap: 16px; }
.about-copy p:not(.eyebrow) { color: var(--ink-700); }
.quote { border-left: 4px solid var(--yellow-500); padding-left: 20px; }
.quote blockquote { font-size: clamp(1.5rem, 6vw, 2.25rem); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; color: var(--green-900); }
.quote cite { display: block; margin-top: 14px; font-size: .9375rem; font-style: normal; font-weight: 700; color: var(--green-700); }

/* Ask: the doorway again */
.ask { padding-bottom: 0; overflow: hidden; }
.ask .door { animation: none; width: min(100%, 480px); }
.ask .door-body > * { animation: none; }
.ask .door-body { padding-bottom: 48px; }
.ask h2 { font-size: clamp(1.875rem, 7.5vw, 2.5rem); color: var(--green-900); margin: 10px 0 12px; }
.channels { display: grid; gap: 10px; margin-top: 24px; }
.bible-link { display: inline-block; margin-top: 22px; font-weight: 700; color: var(--green-700); text-underline-offset: 4px; }

/* Footer */
.site-footer { background: var(--ink-900); color: var(--cream-500); padding: 44px 0 28px; }
.site-footer .wrap { display: grid; gap: 26px; }
.site-footer .type { height: 28px; width: auto; }
.site-footer p { color: var(--green-100); font-size: .9375rem; max-width: 30em; }
.social { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.social a { font-weight: 700; text-decoration: none; display: inline-block; padding: 8px 0; }
.social a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fine { border-top: 1px solid rgba(206, 223, 214, .2); padding-top: 18px; font-size: .8125rem !important; }

/* Scroll reveal (only when JS is running) */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * .1s); }
.js [data-reveal].in { opacity: 1; transform: none; }

@keyframes rise { from { opacity: 0; transform: translateY(48px); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }
@keyframes glow { to { filter: drop-shadow(0 0 70px rgba(249, 223, 117, .5)); } }
@keyframes pulse { 70%, 100% { box-shadow: 0 0 0 14px rgba(246, 240, 237, 0); } }

/* Tablet */
@media (min-width: 640px) {
  :root { --gutter: 32px; }
  .hero { padding-top: 56px; }
  .door-body { padding: 20px 48px 64px; }
  .hero-actions { flex-direction: row; justify-content: center; }
  .stories-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .story:nth-child(2) { margin-top: 72px; }
  .arch-line { width: 420px; right: -60px; }
}

/* Desktop */
@media (min-width: 900px) {
  .nav { display: flex; }
  .section { padding: 112px 0; }
  .ask { padding-bottom: 0; }
  .section-head { margin-bottom: 52px; }
  .stage-wrap { grid-template-columns: 1.45fr 1fr; gap: 48px; align-items: start; }
  .stage { position: sticky; top: 92px; }
  .rail { flex-direction: column; gap: 0; overflow: visible; margin: 0; padding: 0; }
  .q-item {
    width: auto; display: grid; grid-template-columns: 44px 1fr; align-items: baseline;
    padding: 15px 14px; border: 0; border-radius: 12px; background: none; box-shadow: none;
    border-top: 1px solid var(--green-100); border-radius: 0;
    transition: background-color .2s, padding-left .25s var(--ease);
  }
  .q-item:hover { transform: none; padding-left: 22px; background: var(--white); }
  .q-item img { display: none; }
  .q-item .num, .q-item .q { margin: 0; }
  .q-item .q { font-size: 1.0625rem; }
  .q-item[aria-current="true"] { background: var(--green-700); color: var(--cream-500); padding-left: 22px; }
  .q-item[aria-current="true"] .num { color: var(--yellow-500); }
  .about .wrap { grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
  .site-footer .wrap { grid-template-columns: 1fr auto; align-items: start; }
  .fine { grid-column: 1 / -1; }
  .arch-line { width: 560px; right: -40px; top: 60px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .arch-line path { stroke-dashoffset: 0; }
}
