:root {
  --navy-950: #030a13;
  --navy-900: #071323;
  --navy-800: #0b2038;
  --navy-700: #12375d;
  --blue-500: #4d9df5;
  --blue-300: #8bc4ff;
  --blue-100: #d9ecff;
  --ink: #0b1725;
  --muted: #52657a;
  --paper: #f4f7fa;
  --surface: #ffffff;
  --line: #ced9e4;
  --serif: "Libre Baskerville", Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --shadow: 0 28px 72px rgba(1, 12, 27, 0.24);
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.68;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, .button { touch-action: manipulation; }

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.65rem 1rem;
  background: white;
  color: var(--ink);
}
.skip-link:focus { top: 1rem; }

.shell { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.narrow { width: min(760px, calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section-tight { padding: clamp(2.75rem, 6vw, 4.5rem) 0; }
.section-dark { background: var(--navy-900); color: #eff7ff; }
.section-blue { background: var(--navy-800); color: #eff7ff; }
.section-white { background: var(--surface); }
.section-rule { border-top: 1px solid var(--line); }

.eyebrow, .kicker {
  margin: 0 0 1rem;
  color: var(--blue-500);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.section-dark .eyebrow, .section-blue .eyebrow, .hero .eyebrow { color: var(--blue-300); }
h1, h2, h3 { margin: 0 0 1rem; font-family: var(--serif); line-height: 1.16; }
h1 { font-size: clamp(2.65rem, 6vw, 5rem); letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -0.035em; }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); }
p { margin: 0 0 1.2rem; }
.lead { max-width: 720px; font-size: clamp(1.08rem, 2vw, 1.3rem); }
.muted { color: var(--muted); }
.section-dark .muted, .section-blue .muted, .hero .muted { color: #b6cce1; }
.statement { font: 400 clamp(1.2rem, 2.5vw, 1.6rem)/1.55 var(--serif); }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 19, 35, 0.97);
  border-bottom: 1px solid #244261;
  color: #c5d8eb;
  backdrop-filter: blur(12px);
}
.nav-shell {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.brand {
  color: #f6fbff;
  font-family: var(--serif);
  font-size: 1.18rem;
  font-weight: 700;
  line-height: 1.05;
  text-decoration: none;
  white-space: nowrap;
}
.brand span {
  display: block;
  margin-top: 0.25rem;
  color: var(--blue-300);
  font-family: var(--sans);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: clamp(0.15rem, 1.3vw, 1rem); }
.nav-links a {
  padding: 0.45rem 0.5rem;
  color: #bed1e4;
  font-size: 0.92rem;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="page"] {
  color: white;
  border-color: var(--blue-300);
}
.nav-links .nav-order {
  margin-left: 0.25rem;
  padding: 0.58rem 0.85rem;
  background: var(--blue-300);
  color: #04101d;
  border: 1px solid var(--blue-300);
}
.nav-links .nav-order:hover, .nav-links .nav-order:focus-visible {
  background: white;
  color: #04101d;
  border-color: white;
}
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid #4a6581;
  background: transparent;
  color: white;
  cursor: pointer;
}

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--navy-900);
  color: #f4f9ff;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image:
    linear-gradient(rgba(96, 170, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 170, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, #000, transparent 90%);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: 17%;
  right: -10%;
  width: 56vw;
  height: 1px;
  transform: rotate(-17deg);
  background: var(--blue-300);
  box-shadow: 0 0 50px 14px rgba(77, 157, 245, 0.42);
}
.hero-grid {
  min-height: min(840px, calc(100svh - 72px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  align-items: center;
  gap: clamp(2.5rem, 7vw, 7rem);
  padding-block: clamp(4rem, 8vw, 7rem);
}
.hero h1 { max-width: 760px; }
.hero-title-small {
  display: block;
  margin-top: 1rem;
  color: var(--blue-100);
  font-family: var(--sans);
  font-size: clamp(1.05rem, 2.1vw, 1.45rem);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.4;
}
.hero-book {
  position: relative;
  justify-self: end;
  width: min(100%, 485px);
  border: 1px solid rgba(139, 196, 255, 0.35);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}
.hero-book img { width: 100%; height: auto; object-fit: contain; }
.hero-book::after {
  content: "";
  position: absolute;
  inset: auto 10% -24px;
  height: 32px;
  background: rgba(41, 129, 230, 0.44);
  filter: blur(24px);
}
.button-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; margin-top: 1.8rem; }
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.76rem 1.15rem;
  border: 1px solid var(--blue-500);
  border-radius: var(--radius);
  background: var(--blue-500);
  color: #04101d;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); background: #95caff; }
.button-secondary { background: transparent; color: var(--ink); border-color: #8aa0b7; }
.section-dark .button-secondary, .section-blue .button-secondary, .hero .button-secondary { color: #f3f8ff; border-color: #64819e; }
.button-secondary:hover, .button-secondary:focus-visible { background: rgba(255, 255, 255, 0.09); color: inherit; }
.text-link { color: #1470cf; font-weight: 700; text-underline-offset: 0.2em; }
.section-dark .text-link, .section-blue .text-link { color: var(--blue-300); }
.fine-print { margin-top: 1rem; color: #a9bfd5; font-size: 0.88rem; }

.trust-bar { background: #0b2038; color: #dbeeff; border-block: 1px solid #274766; }
.trust-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 1.25rem 0;
  list-style: none;
  text-align: center;
}
.trust-list li { padding: 0.2rem 1rem; border-right: 1px solid #365676; font-weight: 750; letter-spacing: 0.04em; }
.trust-list li:last-child { border-right: 0; }

.split { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(2rem, 7vw, 6rem); align-items: start; }
.split > div > img { width: 100%; height: auto; object-fit: contain; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2.5rem; }
.card {
  min-height: 100%;
  padding: 1.55rem;
  border: 1px solid var(--line);
  background: var(--surface);
}
.card p { color: var(--muted); }
.card .number { display: block; margin-bottom: 1.5rem; color: var(--blue-500); font-weight: 750; }
.card-link { color: inherit; text-decoration: none; transition: border-color 0.18s ease, transform 0.18s ease; }
.card-link:hover, .card-link:focus-visible { border-color: var(--blue-500); transform: translateY(-3px); }
.four-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #32516f; }
.foundation { padding: 1.55rem; border-right: 1px solid #32516f; }
.foundation:last-child { border-right: 0; }
.foundation b { display: block; margin-bottom: 0.65rem; color: white; font: 700 1.15rem/1.35 var(--serif); }
.foundation span { color: #b7cde1; }

.quote {
  margin: 0;
  padding: 1.75rem;
  border-left: 4px solid var(--blue-500);
  background: #e7eff7;
  font: 400 clamp(1.12rem, 2vw, 1.4rem)/1.6 var(--serif);
}
.quote cite { display: block; margin-top: 1rem; color: #31608f; font: 700 0.78rem/1.4 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; }

.cinema {
  position: relative;
  min-height: clamp(500px, 62vw, 680px);
  overflow: hidden;
  border: 1px solid #31587e;
  background: radial-gradient(circle at 50% 45%, #173a5f, #071321 38%, #01040a 78%);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  color: white;
}
.cinema video { position: absolute; inset: 0; width: 100%; height: 100%; }
.cinema-video-backdrop { z-index: 0; object-fit: cover; opacity: 0.64; filter: blur(22px) saturate(1.15) brightness(0.46); transform: scale(1.1); }
.cinema-video-main { z-index: 1; object-fit: contain; opacity: 1; }
.cinema::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to bottom, rgba(1, 7, 14, 0.08), rgba(1, 7, 14, 0.48)); pointer-events: none; }
.cinema-launch, .cinema-overlay, .cinema-finale {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 2rem;
  text-align: center;
}
.cinema-launch { background: radial-gradient(circle, rgba(13, 45, 74, 0.2), rgba(1, 6, 12, 0.85)); }
.cinema-launch p { max-width: 560px; color: #c2d6e9; }
.cinema-overlay { pointer-events: none; }
.cinema-verse { max-width: 780px; font: 700 clamp(1.55rem, 4vw, 3.2rem)/1.32 var(--serif); text-shadow: 0 4px 28px black; }
.cinema-reference { margin-top: 1rem; color: var(--blue-300); font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.cinema-finale { background: radial-gradient(circle, rgba(41, 113, 181, 0.5), rgba(1, 6, 12, 0.82)); }
.cinema-finale img { width: min(260px, 45vw); margin-bottom: 1rem; box-shadow: 0 0 48px rgba(93, 171, 255, 0.35); }
.cinema-finale h3 { font-size: clamp(2rem, 5vw, 4rem); text-shadow: 0 4px 24px #000; }
.cinema-controls { position: absolute; right: 0.8rem; bottom: 0.8rem; z-index: 4; display: flex; gap: 0.45rem; }
.cinema-control { min-height: 42px; padding: 0.5rem 0.75rem; border: 1px solid #7598b8; background: rgba(2, 10, 19, 0.83); color: white; cursor: pointer; }
[hidden] { display: none !important; }

.author-grid { display: grid; grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr); align-items: center; gap: clamp(2.5rem, 8vw, 7rem); }
.author-photo { width: min(100%, 430px); overflow: hidden; border: 1px solid var(--line); background: linear-gradient(160deg, #eff5fb, #c8d7e6); box-shadow: var(--shadow); }
.author-photo img { width: 100%; height: auto; object-fit: contain; object-position: center bottom; }

.offer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.offer { padding: clamp(1.5rem, 4vw, 2.5rem); border: 1px solid #355779; background: rgba(255, 255, 255, 0.035); }
.offer .price { margin: 0.2rem 0 1rem; color: white; font: 700 clamp(1.65rem, 3vw, 2.35rem)/1.2 var(--serif); }
.offer p { color: #b8cee2; }

.page-hero { padding: clamp(4rem, 9vw, 8rem) 0; background: var(--navy-900); color: white; }
.page-hero h1 { max-width: 900px; }
.breadcrumbs { margin-bottom: 1.2rem; color: #a7c8e9; font-size: 0.9rem; }
.breadcrumbs a { text-underline-offset: 0.2em; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; justify-content: space-between; gap: clamp(2.5rem, 7vw, 6rem); align-items: start; }
.article-body h2 { margin-top: 2.8rem; font-size: clamp(1.65rem, 3vw, 2.3rem); }
.article-body h2[id] { scroll-margin-top: 105px; }
.article-body h3 { margin-top: 2rem; }
.article-body p, .article-body li { color: #30465c; }
.article-body a { color: #1269c3; text-underline-offset: 0.2em; }
.article-body blockquote { margin: 2rem 0; padding: 1.3rem 1.5rem; border-left: 4px solid var(--blue-500); background: #e8f0f8; font-family: var(--serif); }
.article-body .scripture { color: var(--ink); font-family: var(--serif); font-size: 1.08rem; }
.article-toc { margin: 2rem 0 2.75rem; padding: 1.4rem 1.55rem; border: 1px solid var(--line); background: #eef4fa; }
.article-toc h2 { margin: 0 0 0.8rem; font-size: 1.3rem; }
.article-toc ul { columns: 2; margin: 0; padding-left: 1.2rem; }
.article-toc li { margin-bottom: 0.45rem; break-inside: avoid; }
.related-teachings { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.related-teachings h2 { margin-top: 0; }
.related-teachings ul { display: grid; gap: 0.65rem; padding-left: 1.2rem; }
.article-sidebar { position: sticky; top: 105px; padding: 1.25rem; border: 1px solid var(--line); background: white; }
.article-sidebar ul { margin: 0; padding-left: 1.15rem; }
.article-sidebar a { color: #176dcc; }
.article-meta { color: #a9c3dc; font-weight: 650; }

.chapter-list { columns: 2; column-gap: 3rem; margin-top: 1.5rem; padding-left: 1.2rem; }
.chapter-list li { break-inside: avoid; margin-bottom: 0.75rem; padding-left: 0.3rem; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); background: white; }
.faq summary { cursor: pointer; padding: 1.25rem 0; font-family: var(--serif); font-size: 1.14rem; font-weight: 700; }
.faq details p { max-width: 800px; padding-bottom: 1.25rem; color: var(--muted); }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr); gap: clamp(2.5rem, 7vw, 6rem); }
.contact-form { display: grid; gap: 1rem; }
.contact-form label { display: block; margin-bottom: 0.35rem; font-weight: 700; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%;
  padding: 0.78rem 0.85rem;
  border: 1px solid #93a7bb;
  border-radius: 2px;
  background: white;
  color: var(--ink);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: 3px solid rgba(77, 157, 245, 0.32); border-color: #176dcc; }
.honeypot { position: absolute; left: -9999px; }
.notice { padding: 1.2rem; border-left: 4px solid var(--blue-500); background: #e8f0f8; }
.contact-panel { padding: 1.5rem; border: 1px solid var(--line); background: white; }
.contact-panel + .contact-panel { margin-top: 1rem; }

.sample-box { padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--line); background: white; }
.sample-box p:first-of-type::first-letter { float: left; margin: 0.1rem 0.45rem 0 0; color: #176dcc; font: 700 4.4rem/0.75 var(--serif); }
.disclaimer { margin-top: 2rem; padding: 1.25rem; border: 1px solid var(--line); background: #eef3f8; color: #455a70; font-size: 0.94rem; }

.site-footer { padding: 3rem 0; background: var(--navy-950); color: #aebfd0; }
.footer-grid { display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 1.4rem; }
.footer-logo { width: 82px; }
.footer-name { margin-bottom: 0.35rem; color: white; font: 700 1.12rem/1.3 var(--serif); }
.footer-meta { text-align: right; font-size: 0.9rem; }
.footer-meta a { color: var(--blue-300); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.75rem 1.2rem; margin-top: 0.6rem; font-size: 0.9rem; }
.footer-links a { color: #c5d5e4; }

:focus-visible { outline: 3px solid #7fbfff; outline-offset: 4px; }

@media (max-width: 900px) {
  .hero-grid, .split, .author-grid, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { min-height: auto; }
  .hero-book { order: -1; justify-self: center; width: min(72vw, 420px); }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-copy .button-row { justify-content: center; }
  .cards { grid-template-columns: 1fr 1fr; }
  .four-grid { grid-template-columns: 1fr 1fr; }
  .foundation:nth-child(2) { border-right: 0; }
  .foundation:nth-child(-n+2) { border-bottom: 1px solid #32516f; }
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .article-toc ul { columns: 1; }
}

@media (max-width: 720px) {
  .nav-toggle { display: inline-grid; place-content: center; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto;
    display: none;
    align-items: stretch;
    padding: 1rem 1.25rem 1.4rem;
    background: #071323;
    border-bottom: 1px solid #35516d;
  }
  .nav-open .nav-links { display: grid; }
  .nav-links a { padding: 0.75rem 0.5rem; }
  .nav-links .nav-order { margin: 0.35rem 0 0; text-align: center; }
  .trust-list { grid-template-columns: 1fr 1fr; }
  .trust-list li:nth-child(2) { border-right: 0; }
  .trust-list li:nth-child(-n+2) { border-bottom: 1px solid #365676; }
  .cards, .offer-grid { grid-template-columns: 1fr; }
  .chapter-list { columns: 1; }
  .footer-grid { grid-template-columns: 70px 1fr; }
  .footer-meta { grid-column: 1 / -1; text-align: left; }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .shell, .narrow { width: min(100% - 2rem, 1120px); }
  .hero-book { width: min(88vw, 380px); }
  .button-row { display: grid; }
  .button { width: 100%; }
  .four-grid { grid-template-columns: 1fr; }
  .foundation, .foundation:nth-child(2) { border-right: 0; border-bottom: 1px solid #32516f; }
  .foundation:last-child { border-bottom: 0; }
  .cinema { min-height: 560px; }
  .cinema-controls { left: 0.8rem; right: 0.8rem; justify-content: space-between; }
}

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