:root {
  --navy-950: #03101d;
  --navy-900: #061626;
  --navy-850: #0a1d30;
  --navy-800: #0d243a;
  --ivory: #f5f0e7;
  --ivory-muted: #d8dce1;
  --blue-muted: #a9b8c9;
  --gold: #d9a84e;
  --gold-light: #edc878;
  --gold-dark: #8e632c;
  --border: rgba(217, 168, 78, 0.52);
  --border-soft: rgba(160, 183, 204, 0.23);
  --shadow: 0 22px 50px rgba(0, 5, 12, 0.3);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --header-height: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 18px); }

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 8% 45%, rgba(26, 64, 96, 0.18), transparent 30rem),
    linear-gradient(180deg, var(--navy-950) 0%, var(--navy-900) 38%, #051422 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 999;
  left: 1rem;
  top: 1rem;
  transform: translateY(-200%);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  color: var(--navy-950);
  background: var(--gold-light);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { transform: none; }

.page-shell {
  width: min(100% - 40px, 1200px);
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  height: var(--header-height);
  border-bottom: 1px solid rgba(217, 168, 78, 0.27);
  background: rgba(3, 16, 29, 0.88);
  box-shadow: 0 8px 30px rgba(0, 4, 10, 0.13);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  position: relative;
  width: min(100% - 40px, 1200px);
  height: 100%;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 48px;
  color: var(--ivory);
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border: 1.5px solid var(--gold);
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 3px rgba(217, 168, 78, 0.08);
}

.brand span {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 600;
  letter-spacing: 0.015em;
}

.site-nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.5rem); }
.site-nav a {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  color: var(--ivory-muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}
.site-nav a::after {
  position: absolute;
  right: 0; bottom: 7px; left: 0;
  height: 1px;
  background: var(--gold);
  content: "";
  transform: scaleX(0);
  transition: transform 180ms ease;
}
.site-nav a:hover { color: var(--ivory); }
.site-nav a:hover::after { transform: scaleX(1); }

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  padding: 11px 9px;
  border: 0;
  border-radius: 10px;
  color: var(--gold-light);
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 29px;
  height: 2px;
  margin: 5px 0;
  border-radius: 2px;
  background: currentColor;
  transform-origin: center;
  transition: transform 200ms ease, opacity 150ms ease;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: clamp(590px, 72vw, 720px);
  display: grid;
  overflow: hidden;
  isolation: isolate;
  background-image: url("assets/images/hero-bible.png");
  background-position: 61% center;
  background-size: cover;
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 14, 25, 0.99) 0%, rgba(3, 14, 25, 0.94) 32%, rgba(3, 14, 25, 0.54) 58%, rgba(3, 14, 25, 0.13) 100%),
    linear-gradient(0deg, var(--navy-950) 0%, transparent 22%, rgba(0, 0, 0, 0.08) 100%);
}
.hero::after {
  position: absolute;
  z-index: -1;
  right: 0; bottom: 0; left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(217, 168, 78, 0.45), transparent);
}
.hero-inner { display: grid; align-items: center; padding-block: 4.2rem 5.2rem; }
.hero-copy { width: min(680px, 57%); }
.eyebrow {
  margin: 0 0 0.65rem;
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.4;
  text-transform: uppercase;
}
h1, h2, h3, p { text-wrap: pretty; }
h1, h2, h3 { margin-top: 0; font-family: var(--serif); }
h1 {
  max-width: 650px;
  margin-bottom: 1.35rem;
  font-size: clamp(3.6rem, 6vw, 5.45rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.94;
}
h1 span { display: block; color: var(--gold-light); }
.hero-description {
  max-width: 590px;
  margin: 0 0 2rem;
  color: var(--ivory-muted);
  font-size: clamp(1.06rem, 1.6vw, 1.25rem);
  line-height: 1.65;
}

.primary-cta {
  width: fit-content;
  min-width: 280px;
  min-height: 60px;
  padding: 0.9rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border: 1px solid var(--gold-light);
  border-radius: 14px;
  color: #081522;
  background: linear-gradient(135deg, #efc873, #d9a84e 70%, #c8943c);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.45);
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.015em;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}
.primary-cta svg { width: 23px; height: 23px; fill: currentColor; }
.primary-cta:hover { transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 18px 38px rgba(0, 0, 0, 0.32); }
.primary-cta:active { transform: translateY(0); }

.platforms { position: relative; z-index: 2; margin-top: -44px; }
.platform-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.platform-card {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--ivory);
  background: linear-gradient(145deg, rgba(15, 42, 66, 0.97), rgba(4, 20, 34, 0.98));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.025);
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}
.platform-card svg { width: 28px; height: 28px; flex: 0 0 auto; fill: var(--gold-light); }
.platform-card:hover { transform: translateY(-3px); border-color: var(--gold-light); background: linear-gradient(145deg, rgba(20, 52, 80, 0.99), rgba(5, 24, 41, 0.99)); }

.content-section { padding-block: clamp(5rem, 9vw, 7.6rem); }
.section-heading { margin-bottom: clamp(1.8rem, 4vw, 2.6rem); }
.section-heading h2 {
  margin-bottom: 0;
  color: var(--gold-light);
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}

.needs-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.need-card {
  min-height: 230px;
  padding: 2rem 1.1rem 1.55rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(circle at 50% 5%, rgba(42, 88, 126, 0.18), transparent 55%),
    linear-gradient(155deg, rgba(12, 37, 59, 0.8), rgba(5, 20, 35, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}
.line-icon {
  width: 67px;
  height: 67px;
  margin-bottom: 1rem;
  fill: none;
  stroke: var(--gold-light);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.need-card h3 { margin-bottom: 0.15rem; font-size: clamp(1.6rem, 2.3vw, 2rem); font-weight: 600; line-height: 1.1; }
.need-card p { margin: 0; color: var(--ivory-muted); font-size: 0.96rem; }

.rhythm-section {
  position: relative;
  border-block: 1px solid rgba(217, 168, 78, 0.14);
  background:
    radial-gradient(circle at 50% -30%, rgba(37, 76, 110, 0.22), transparent 55%),
    rgba(3, 15, 26, 0.48);
}
.rhythm-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.time-zone {
  flex: 0 0 auto;
  margin-bottom: 0.4rem;
  padding: 0.38rem 0.75rem;
  border: 1px solid rgba(217, 168, 78, 0.4);
  border-radius: 999px;
  color: var(--blue-muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.timeline {
  position: relative;
  margin: 0;
  padding: 1.3rem 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
}
.timeline::before {
  position: absolute;
  z-index: 0;
  top: 30px; right: 11%; left: 11%;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light), var(--gold-dark));
}
.timeline-item { position: relative; z-index: 1; }
.timeline-marker {
  width: 34px;
  height: 34px;
  margin: 0 auto 1.15rem;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--gold-light);
  border-radius: 50%;
  color: var(--navy-950);
  background: var(--gold-light);
  box-shadow: 0 0 0 7px var(--navy-950);
  font-size: 0.75rem;
  font-weight: 800;
}
.timeline-card {
  height: 100%;
  min-height: 190px;
  padding: 1.6rem 1.3rem;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(13, 37, 59, 0.77), rgba(5, 20, 34, 0.86));
}
.timeline-card time { display: block; margin-bottom: 0.15rem; color: var(--gold-light); font-size: 0.82rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; }
.timeline-card h3 { margin-bottom: 0.35rem; font-size: 2rem; font-weight: 600; line-height: 1.1; }
.timeline-card p { margin: 0; color: var(--ivory-muted); font-size: 0.93rem; line-height: 1.55; }

.about-section { padding-bottom: clamp(5rem, 9vw, 7rem); }
.mission-card {
  min-height: 230px;
  padding: clamp(1.8rem, 4vw, 3.4rem);
  display: grid;
  grid-template-columns: 190px 1px 1fr;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(circle at 13% 50%, rgba(39, 84, 120, 0.19), transparent 30%),
    linear-gradient(145deg, rgba(12, 37, 59, 0.74), rgba(4, 18, 31, 0.91));
  box-shadow: var(--shadow);
}
.mission-icon { display: flex; justify-content: center; }
.mission-icon .line-icon { width: 110px; height: 110px; margin: 0; }
.mission-divider { width: 1px; height: 100%; min-height: 120px; background: linear-gradient(transparent, var(--gold), transparent); }
.mission-card p { max-width: 720px; margin: 0; color: var(--ivory); font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.65; }

.site-footer { border-top: 1px solid rgba(217, 168, 78, 0.36); background: rgba(2, 12, 22, 0.75); }
.footer-inner { padding-block: 2.2rem 1.5rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.footer-brand img { width: 54px; height: 54px; }
.footer-socials { display: flex; align-items: center; gap: 0.6rem; }
.footer-socials a {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-light);
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.footer-socials a:hover { color: var(--ivory); background: rgba(217, 168, 78, 0.1); transform: translateY(-2px); }
.footer-socials svg { width: 25px; height: 25px; fill: currentColor; }
.copyright { margin: 1.6rem 0 0; padding-top: 1.2rem; border-top: 1px solid rgba(169, 184, 201, 0.14); color: var(--blue-muted); font-size: 0.78rem; text-align: center; }

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 600ms ease, transform 600ms ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (max-width: 960px) {
  :root { --header-height: 70px; }
  .menu-toggle { display: block; }
  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: min(310px, calc(100vw - 40px));
    padding: 0.6rem;
    display: grid;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: rgba(5, 22, 37, 0.98);
    box-shadow: 0 24px 55px rgba(0, 0, 0, 0.42);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .site-nav a { padding-inline: 1rem; border-radius: 9px; font-size: 0.94rem; }
  .site-nav a:hover { background: rgba(217, 168, 78, 0.08); }
  .site-nav a::after { display: none; }
  .hero-copy { width: min(640px, 70%); }
  .platform-grid, .needs-grid { grid-template-columns: repeat(2, 1fr); }
  .needs-grid { gap: 14px; }
  .need-card { min-height: 205px; }
  .timeline { grid-template-columns: repeat(2, 1fr); row-gap: 22px; }
  .timeline::before { display: none; }
  .timeline-marker { margin-bottom: -17px; box-shadow: 0 0 0 6px var(--navy-950); }
  .timeline-card { padding-top: 2rem; text-align: center; }
}

@media (max-width: 640px) {
  .page-shell, .header-inner { width: min(100% - 36px, 1200px); }
  .brand { gap: 0.65rem; }
  .brand img { width: 44px; height: 44px; }
  .brand span { font-size: 1.36rem; }
  .hero {
    min-height: 640px;
    background-position: 69% center;
  }
  .hero::before {
    background:
      linear-gradient(90deg, rgba(3, 14, 25, 0.99) 0%, rgba(3, 14, 25, 0.83) 58%, rgba(3, 14, 25, 0.27) 100%),
      linear-gradient(0deg, var(--navy-950) 0%, rgba(3, 14, 25, 0.3) 40%, transparent 72%);
  }
  .hero-inner { align-items: start; padding-block: 3.5rem 5.4rem; }
  .hero-copy { width: 100%; }
  .hero-copy .eyebrow { max-width: 75%; }
  h1 { max-width: 500px; margin-bottom: 1.2rem; font-size: clamp(3.25rem, 15vw, 4.3rem); line-height: 0.91; }
  h1 span { max-width: 92%; }
  .hero-description { max-width: 90%; margin-bottom: 1.7rem; font-size: 1rem; line-height: 1.6; }
  .primary-cta { width: 100%; min-height: 60px; }
  .platforms { margin-top: -40px; }
  .platform-grid { gap: 10px; }
  .platform-card { min-height: 76px; gap: 0.65rem; border-radius: 14px; font-size: 1.26rem; }
  .platform-card svg { width: 25px; height: 25px; }
  .content-section { padding-block: 4.5rem; }
  .section-heading h2 { font-size: clamp(2.65rem, 12vw, 3.55rem); }
  .needs-grid { gap: 10px; }
  .need-card { min-height: 184px; padding: 1.45rem 0.75rem 1.2rem; border-radius: 14px; }
  .need-card .line-icon { width: 56px; height: 56px; margin-bottom: 0.75rem; }
  .need-card h3 { font-size: clamp(1.45rem, 6.6vw, 1.75rem); }
  .need-card p { font-size: 0.82rem; line-height: 1.35; }
  .rhythm-heading { align-items: start; flex-direction: column; gap: 1rem; }
  .time-zone { margin-bottom: 0; }
  .timeline { padding-top: 0.8rem; display: block; }
  .timeline::before {
    display: block;
    top: 26px; bottom: 22px; left: 16px;
    width: 1px; height: auto;
    background: linear-gradient(var(--gold-light), var(--gold-dark), var(--gold-light));
  }
  .timeline-item { min-height: 0; padding-left: 53px; }
  .timeline-item + .timeline-item { margin-top: 12px; }
  .timeline-marker {
    position: absolute;
    top: 24px; left: 0;
    width: 33px; height: 33px;
    margin: 0;
    background: var(--navy-900);
    color: var(--gold-light);
    box-shadow: 0 0 0 6px var(--navy-900);
  }
  .timeline-card { min-height: 124px; padding: 1.25rem 1.25rem 1.2rem; text-align: left; }
  .timeline-card h3 { margin-bottom: 0.2rem; font-size: 1.72rem; }
  .timeline-card p { font-size: 0.87rem; }
  .mission-card { min-height: 0; grid-template-columns: 92px 1px 1fr; gap: 1.25rem; padding: 1.6rem 1.1rem; }
  .mission-icon .line-icon { width: 75px; height: 75px; }
  .mission-divider { min-height: 115px; }
  .mission-card p { font-size: 1rem; line-height: 1.55; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-socials { width: 100%; justify-content: space-between; }
  .footer-socials a { border: 1px solid rgba(217, 168, 78, 0.18); }
}

@media (max-width: 370px) {
  .page-shell, .header-inner { width: min(100% - 32px, 1200px); }
  .brand span { font-size: 1.2rem; }
  .brand img { width: 41px; height: 41px; }
  .platform-grid { grid-template-columns: 1fr; }
  .platform-card { min-height: 64px; }
  .needs-grid { grid-template-columns: 1fr; }
  .need-card { min-height: 160px; }
  .mission-card { grid-template-columns: 1fr; text-align: center; }
  .mission-divider { width: 70%; height: 1px; min-height: 1px; margin-inline: auto; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
}

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