/* Layout idea: deep-water hero that surfaces into clean paper sections; depth markers (FSW) act as section eyebrows tied to the dive/transition metaphor. */
:root {
  --abyss: #08182a;
  --deep: #0f2a44;
  --ink: #13222f;
  --paper: #f6f7f5;
  --slate: #56677a;
  --brass: #b0874a;
  --line: #d9dfe4;
  --card: #ffffff;
  --on-deep: #e8eef3;
  --on-deep-dim: #a9bccb;
  --font-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, "Courier New", monospace;
  --max: 1120px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ink: #e3e9ee; --paper: #0b1622; --slate: #9fb0c0; --line: #233446; --card: #102133;
    --brass: #c99e5c; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ink: #e3e9ee; --paper: #0b1622; --slate: #9fb0c0; --line: #233446; --card: #102133;
  --brass: #c99e5c; color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.prose { max-width: 66ch; display: grid; gap: 1em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--abyss); color: var(--on-deep); border-bottom: 1px solid #1d3550; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.01em; }
.brand svg { flex: none; }
.nav { display: flex; gap: 4px 20px; flex-wrap: wrap; }
.nav a { text-decoration: none; font-size: 0.95rem; color: var(--on-deep-dim); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--on-deep); border-bottom-color: var(--brass); }

/* Hero */
.hero { position: relative; background: linear-gradient(180deg, #0f3554 0%, var(--deep) 45%, var(--abyss) 100%); color: var(--on-deep); overflow: hidden; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,24,42,0.85) 0%, rgba(8,24,42,0.5) 45%, rgba(8,24,42,0.1) 100%); }
.hero.has-video .hero-inner { padding-top: 120px; padding-bottom: 112px; }
.hero.short.has-video .hero-inner { padding-top: 88px; padding-bottom: 80px; }
.portrait-img { width: 100%; height: auto; border-radius: 4px; border: 1px solid var(--line); }
.photo { margin: 0 0 40px; display: grid; gap: 10px; }
.photo img { width: 100%; max-height: 520px; object-fit: cover; object-position: center 10%; border-radius: 4px; }
.photo figcaption { font-size: 0.85rem; color: var(--slate); max-width: 80ch; }
.hero-inner { position: relative; padding: 96px 24px 88px; max-width: var(--max); margin: 0 auto; display: grid; gap: 22px; }
.hero p.lede { font-size: 1.2rem; color: var(--on-deep-dim); max-width: 60ch; }
.hero.short .hero-inner { padding: 64px 24px 56px; }
.depth { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brass); }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.btn { display: inline-block; text-decoration: none; font-weight: 600; font-size: 0.98rem; padding: 12px 20px; border-radius: 3px; border: 1px solid var(--brass); background: var(--brass); color: #10161c; cursor: pointer; font-family: var(--font-body); }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--on-deep); border-color: #4b6680; }
.section .btn.ghost { color: var(--ink); border-color: var(--line); }

/* Sections */
.section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.section-head { display: grid; gap: 10px; margin-bottom: 36px; max-width: 70ch; }
.section-head p { color: var(--slate); font-size: 1.05rem; }
.grid { display: grid; gap: 20px; }
.grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 4px; padding: 26px; display: grid; gap: 10px; align-content: start; }
.card p { color: var(--slate); }
.card .tag { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--brass); text-transform: uppercase; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--slate); display: grid; gap: 4px; }

/* Credibility strip */
.cred { background: var(--abyss); color: var(--on-deep-dim); padding: 22px 0; }
.cred .wrap { display: flex; flex-wrap: wrap; gap: 8px 28px; align-items: center; font-size: 0.9rem; }
.cred strong { color: var(--on-deep); font-weight: 600; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; }

/* Phases */
.phases { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: var(--card); }
.phase { padding: 28px; display: grid; gap: 10px; align-content: start; border-right: 1px solid var(--line); }
.phase:last-child { border-right: 0; }
.phase .trl { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate); }
.phase h3 { font-size: 1.45rem; letter-spacing: 0.04em; }
.phase p { color: var(--slate); }
.phase .bar { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--brass) var(--fill, 33%), var(--line) var(--fill, 33%)); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.stat { background: var(--card); padding: 26px; display: grid; gap: 8px; align-content: start; }
.stat .num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 600; font-variant-numeric: tabular-nums; line-height: 1; }
.stat p { color: var(--slate); font-size: 0.95rem; }
.stat cite { font-style: normal; font-family: var(--font-mono); font-size: 0.72rem; color: var(--slate); }
.stat cite a { color: var(--slate); }
.footnote { margin-top: 14px; font-size: 0.85rem; color: var(--slate); }

/* Quote band */
.band { background: var(--deep); color: var(--on-deep); padding: 72px 0; }
.band blockquote { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.35; max-width: 40ch; }
.band .who { margin-top: 18px; color: var(--on-deep-dim); font-size: 0.95rem; }

/* About */
.about-grid { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 48px; align-items: start; }
.portrait { aspect-ratio: 4 / 5; border-radius: 4px; background: linear-gradient(160deg, var(--deep), var(--abyss)); color: var(--on-deep-dim); display: grid; place-items: center; text-align: center; font-family: var(--font-mono); font-size: 0.8rem; padding: 20px; border: 1px solid var(--line); }
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-left: 2px solid var(--line); }
.timeline li { padding: 0 0 22px 22px; position: relative; display: grid; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--brass); }
.timeline .when { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate); }
.timeline p { color: var(--slate); }
.creds { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-family: var(--font-mono); font-size: 0.75rem; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--slate); background: var(--card); }

/* Insights */
.post { display: grid; gap: 14px; }
.post .meta { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate); }
.post-body { display: grid; gap: 1em; max-width: 66ch; }
.post-body ol { margin: 0; padding-left: 1.3em; display: grid; gap: 6px; }

/* Contact */
form { display: grid; gap: 16px; max-width: 560px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 0.95rem; }
input, textarea, select { font: inherit; font-weight: 400; padding: 11px 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--card); color: var(--ink); }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: 0.9rem; color: var(--slate); }
.form-status { padding: 14px 16px; border-left: 3px solid var(--brass); background: var(--card); display: none; }
.form-status.show { display: block; }
.contact-list { display: grid; gap: 14px; }
.contact-list div { display: grid; gap: 2px; }
.contact-list span { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }

/* Footer */
.site-footer { background: var(--abyss); color: var(--on-deep-dim); padding: 48px 0 36px; font-size: 0.9rem; }
.site-footer .wrap { display: grid; gap: 22px; }
.foot-cols { display: flex; flex-wrap: wrap; gap: 24px 56px; justify-content: space-between; }
.foot-cols nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-cols a { color: var(--on-deep-dim); text-decoration: none; }
.foot-cols a:hover { color: var(--on-deep); }
.fine { font-size: 0.8rem; color: #7f95a8; border-top: 1px solid #1d3550; padding-top: 18px; }

@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .stats { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait, .portrait-img { max-width: 280px; }
  .phase { border-right: 0; border-bottom: 1px solid var(--line); }
  .phase:last-child { border-bottom: 0; }
  .section { padding: 56px 0; }
  .hero-inner { padding: 64px 20px 60px; }
  .wrap { padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* Faith and values */
.verse { margin: 8px 0 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--brass); display: grid; gap: 6px; }
.verse p { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.4; }
.verse cite { font-style: normal; font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate); }
.sc { font-variant: small-caps; text-transform: lowercase; }
.sdg { font-family: var(--font-display); font-style: italic; color: var(--on-deep); letter-spacing: 0.04em; }
