/* =========================================================
   Algorithm & The Altar — site stylesheet
   Palette is drawn from the logo: circuit blue / cyan on the
   left leg, brushed silver on the right, flame orange + gold
   as the single warm accent.
   ========================================================= */

:root {
  /* surfaces — brand spec */
  --ink: #08090c;          /* near-black */
  --ink-2: #111318;        /* deep charcoal */
  --ink-3: #171a21;
  --line: #24272f;
  --line-soft: rgba(165, 170, 180, 0.08);

  /* text on dark */
  --white: #ffffff;
  --text: #f5f6f8;         /* soft white */
  --silver: #d6d9df;
  --muted: #a5aab4;        /* cool gray */
  --hint: #858a94;

  /* accents — use sparingly */
  --blue: #4d8dff;         /* electric blue: technology, interaction */
  --amber: #e9a23b;        /* flame amber: the altar, conviction */
  --amber-ink: #9a5f0c;    /* amber for text on light surfaces (contrast) */
  --cyan: var(--blue);
  --flame: var(--amber);
  --gold: var(--amber);

  /* light register */
  --paper: #f5f6f8;
  --paper-2: #eceef2;
  --paper-line: #dde0e6;
  --paper-ink: #111318;
  --paper-muted: #4b515c;

  /* type */
  --display: "Bebas Neue", "Oswald", "Arial Narrow", Impact, sans-serif;
  --sans: "Mulish", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* layout */
  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  --radius: 2px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
::selection { background: var(--flame); color: var(--ink); }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--gold); color: var(--ink);
  padding: 10px 16px; font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

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

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: 820px; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0 0 .5em; font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }

.display {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  line-height: 1.06;
}
.h3 { font-family: var(--sans); font-weight: 600; font-size: 1.3rem; line-height: 1.25; letter-spacing: 0; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--silver); max-width: 62ch; }
.muted { color: var(--muted); }
em.accent, .accent { font-style: normal; color: var(--amber); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: .74rem; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase; color: var(--flame);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 1px; background: currentColor; opacity: .8;
}

.mono { font-family: var(--mono); font-size: .8rem; letter-spacing: .08em; }

/* ---------- buttons ---------- */
.btn {
  --bg: transparent; --fg: var(--text); --bd: rgba(201,211,224,.35);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--bd);
  font-family: var(--mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  border-radius: var(--radius); cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:hover { border-color: var(--silver); }
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  --bg: var(--amber); --fg: #0b0a08; --bd: var(--amber);
  font-weight: 600;
}
.btn--primary:hover { --bg: #f2b45a; --bd: #f2b45a; }

.btn--ghost:hover { background: rgba(201,211,224,.06); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .72rem; }
.btn--block { width: 100%; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan); text-decoration: none;
}
.link-arrow::after { content: "→"; transition: transform .25s var(--ease); }
.link-arrow:hover::after { transform: translateX(4px); }

/* ---------- header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  background: rgba(7, 11, 22, 0.0);
  border-bottom: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: rgba(7, 11, 22, 0.86);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
}
/* wider container for the header so the full nav fits */
.site-header .container { max-width: 1320px; height: 100%; display: flex; align-items: center; gap: 20px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand__name { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: .005em; line-height: 1; white-space: nowrap; }
.brand__name span { color: var(--amber); padding: 0 .18em; }

.nav { margin-left: auto; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 0; }
.nav a {
  display: block; padding: 8px 9px; text-decoration: none; white-space: nowrap;
  font-size: .9rem; font-weight: 500; color: var(--silver);
  border-radius: 3px; position: relative; transition: color .2s;
}
.nav a:hover { color: var(--white); }
.nav a[aria-current="page"] { color: var(--white); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px;
  background: linear-gradient(90deg, var(--cyan), var(--flame));
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius);
  color: var(--silver); cursor: pointer; transition: border-color .2s, color .2s;
}
.icon-btn:hover { color: var(--white); border-color: var(--line); }
.icon-btn svg { width: 20px; height: 20px; }
.menu-toggle { display: none; }

@media (max-width: 1200px) {
  .nav, .header-actions .btn--cta { display: none; }
  .menu-toggle { display: inline-grid; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 420px) { .brand__name { font-size: 1.1rem; } .brand img { width: 34px; height: 34px; } }

/* ---------- mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(5, 8, 16, 0.98);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) calc(24px + env(safe-area-inset-bottom));
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; }
.mobile-menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.mobile-menu nav { flex: 1; overflow-y: auto; padding: 16px 0; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li { border-bottom: 1px solid var(--line); }
.mobile-menu nav a {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; text-decoration: none;
  font-family: var(--display); font-size: 1.75rem; font-weight: 600;
  transform: translateY(8px); opacity: 0; transition: transform .4s var(--ease), opacity .4s var(--ease);
}
.mobile-menu nav a::after { content: attr(data-num); font-family: var(--mono); font-size: .72rem; color: var(--hint); letter-spacing: .1em; }
.mobile-menu nav a[aria-current="page"] { color: var(--gold); }
.mobile-menu.is-open nav a { transform: none; opacity: 1; }
.mobile-menu.is-open li:nth-child(2) a { transition-delay: .04s; }
.mobile-menu.is-open li:nth-child(3) a { transition-delay: .08s; }
.mobile-menu.is-open li:nth-child(4) a { transition-delay: .12s; }
.mobile-menu.is-open li:nth-child(5) a { transition-delay: .16s; }
.mobile-menu.is-open li:nth-child(6) a { transition-delay: .2s; }
.mobile-menu.is-open li:nth-child(7) a { transition-delay: .24s; }
.mobile-menu__ctas { display: grid; gap: 10px; padding-top: 16px; }

/* sticky mobile CTA bar */
.mobile-cta {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(7,11,22,.92); border-top: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  gap: 10px; grid-template-columns: 1fr 1fr;
  transform: translateY(100%); transition: transform .35s var(--ease);
}
.mobile-cta.is-visible { transform: none; }
.mobile-cta .btn { min-height: 44px; padding: 8px 10px; font-size: .68rem; letter-spacing: .1em; }
@media (max-width: 1200px) { .mobile-cta { display: grid; } body { padding-bottom: 72px; } }

/* ---------- search ---------- */
.search {
  position: fixed; inset: 0; z-index: 160;
  background: rgba(5,8,16,.92);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: flex; justify-content: center; align-items: flex-start;
  padding: 12vh var(--gutter) 24px;
  opacity: 0; visibility: hidden; transition: opacity .25s var(--ease), visibility .25s;
}
.search.is-open { opacity: 1; visibility: visible; }
.search__panel { width: 100%; max-width: 680px; }
.search__field {
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--silver); padding: 6px 0 12px;
}
.search__field svg { width: 22px; height: 22px; color: var(--muted); flex-shrink: 0; }
.search__field input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: var(--white);
  font-family: var(--display); font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 500;
}
.search__field input::placeholder { color: var(--hint); }
.search__hint { margin: 12px 0 0; font-family: var(--mono); font-size: .72rem; color: var(--hint); letter-spacing: .1em; }
.search__results { list-style: none; margin: 18px 0 0; padding: 0; max-height: 56vh; overflow-y: auto; }
.search__results a {
  display: block; padding: 14px 12px; text-decoration: none; border-radius: var(--radius);
  border-bottom: 1px solid var(--line);
}
.search__results a:hover, .search__results a:focus-visible { background: var(--ink-3); outline: none; }
.search__results .r-type { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--flame); }
.search__results .r-title { display: block; font-weight: 600; font-size: 1.05rem; margin-top: 2px; }
.search__results .r-desc { display: block; color: var(--muted); font-size: .92rem; }
.search__empty { color: var(--muted); padding: 14px 0; }
mark { background: rgba(233,162,59,.22); color: inherit; border-radius: 2px; padding: 0 1px; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 136px) 0; position: relative; }
.section--tight { padding: clamp(56px, 7vw, 88px) 0; }
.section--alt { background: var(--ink-2); }
.section--line { border-top: 1px solid var(--line); }

.section--paper { background: var(--paper); color: var(--paper-ink); }
.section--paper .lead, .section--paper .muted { color: var(--paper-muted); }
.section--paper .eyebrow { color: var(--amber-ink); }
.section--paper .link-arrow { color: var(--blue); }
.section--paper .btn--ghost { --fg: var(--paper-ink); --bd: rgba(10,14,26,.3); }
.section--paper .btn--ghost:hover { background: rgba(10,14,26,.05); border-color: var(--paper-ink); }

.section-head { display: grid; gap: 16px; margin-bottom: clamp(40px, 5vw, 64px); max-width: 760px; }
.section-head--split {
  max-width: none; grid-template-columns: 1fr auto; align-items: end; gap: 24px;
}
@media (max-width: 760px) { .section-head--split { grid-template-columns: 1fr; } }
.section-head .h2, .section-head .lead { margin: 0; }

/* page hero (inner pages) */
.page-hero {
  position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(64px, 9vw, 120px)) 0 clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(700px 400px at 100% 0%, rgba(77,141,255,.07), transparent 70%),
    var(--ink);
}
.page-hero .display { max-width: 18ch; }
.page-hero .lead { margin-top: 20px; }
.page-hero__grid {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 70%);
}
.page-hero > .container { position: relative; }
.crumbs { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hint); margin-bottom: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--white); }

/* ---------- HOME: hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 96px;
  overflow: hidden; isolation: isolate;
  background: var(--ink);
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero__vignette {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7,11,22,.92) 0%, rgba(7,11,22,.6) 45%, rgba(7,11,22,0) 75%),
    linear-gradient(0deg, var(--ink) 0%, transparent 25%);
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 48px; align-items: center; }
.hero h1 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(2.3rem, 5.4vw, 4.5rem); line-height: 1.02; letter-spacing: -0.015em;
  margin: 0 0 28px; max-width: 17ch;
}
.hero h1 .line-2 { display: block; color: var(--muted); }
.hero h1 .line-2 strong { color: var(--amber); font-weight: 400; }
.hero .lead { margin: 0 0 40px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.hero__mark { position: relative; justify-self: center; width: min(100%, 400px); aspect-ratio: 1; }
.hero__mark img { position: relative; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(0,0,0,.6)); }
.hero__mark::before {
  content: ""; position: absolute; left: 50%; top: 58%; width: 70%; height: 70%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(233,162,59,.16) 0%, rgba(233,162,59,.05) 35%, transparent 65%);
  filter: blur(10px);
  animation: altar-glow 6s ease-in-out infinite;
}
@keyframes altar-glow { 0%,100% { opacity: .75; transform: translate(-50%,-50%) scale(1); } 50% { opacity: 1; transform: translate(-50%,-50%) scale(1.08); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--hint);
  text-decoration: none;
}
.hero__scroll span { width: 1px; height: 36px; background: linear-gradient(var(--hint), transparent); animation: drip 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__mark { order: -1; width: 168px; justify-self: start; margin-bottom: -8px; }
  .hero__vignette { background: linear-gradient(0deg, var(--ink) 0%, rgba(7,11,22,.75) 40%, rgba(7,11,22,.55) 100%); }
  .hero__scroll { display: none; }
}

/* ---------- credibility strip ---------- */
.cred { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.cred__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.cred__item { padding: 28px 24px; border-left: 1px solid var(--line); }
.cred__item:first-child { border-left: 0; padding-left: 0; }
.cred__label { font-family: var(--mono); font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--hint); margin-bottom: 6px; }
.cred__value { font-family: var(--display); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.cred__value small { display: block; font-family: var(--sans); font-size: .88rem; font-weight: 400; color: var(--muted); margin-top: 4px; }
@media (max-width: 900px) {
  .cred__grid { grid-template-columns: 1fr 1fr; }
  .cred__item { padding: 22px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .cred__item:nth-child(-n+2) { border-top: 0; }
  .cred__item:nth-child(odd) { padding-left: 0; }
  .cred__item:nth-child(even) { border-left: 1px solid var(--line); }
}
@media (max-width: 480px) {
  .cred__grid { grid-template-columns: 1fr; }
  .cred__item, .cred__item:nth-child(even) { border-left: 0; padding-left: 0; }
  .cred__item:nth-child(2) { border-top: 1px solid var(--line); }
}

/* ---------- creed (the central message) ---------- */
.creed { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--paper-line); }
.creed__item { padding: 32px 24px 8px 0; border-right: 1px solid var(--paper-line); padding-left: 24px; }
.creed__item:first-child { padding-left: 0; }
.creed__item:last-child { border-right: 0; }
.creed__num { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--paper-muted); }
.creed__key { font-family: var(--mono); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; margin: 22px 0 6px; color: var(--paper-muted); }
.creed__val { font-family: var(--display); font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 600; line-height: 1.08; }
.creed__item:nth-child(4) .creed__val { color: var(--amber-ink); }
.creed__item p { color: var(--paper-muted); font-size: .98rem; margin: 12px 0 0; }
@media (max-width: 900px) {
  .creed { grid-template-columns: 1fr 1fr; }
  .creed__item { padding: 28px 16px 24px; border-bottom: 1px solid var(--paper-line); }
  .creed__item:nth-child(odd) { padding-left: 0; }
  .creed__item:nth-child(2) { border-right: 0; }
}
@media (max-width: 520px) {
  .creed { grid-template-columns: 1fr; }
  .creed__item { padding-left: 0; border-right: 0; }
}

/* ---------- three questions ---------- */
.questions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; counter-reset: q; }
.question { padding: 0 32px; border-left: 1px solid var(--line); }
.question:first-child { padding-left: 0; border-left: 0; }
.question h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1.15; margin: 14px 0 12px; }
.question p { color: var(--muted); margin: 0 0 16px; }
@media (max-width: 860px) {
  .questions { grid-template-columns: 1fr; gap: 36px; }
  .question { padding: 28px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .question:first-child { padding-top: 0; border-top: 0; }
}

/* ---------- audiences ---------- */
.audiences { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.audience {
  position: relative; display: flex; flex-direction: column;
  padding: 36px 30px 30px; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-3), var(--ink-2));
  border: 1px solid var(--line); overflow: hidden;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.audience::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: var(--accent, var(--flame)); transform-origin: left; transform: scaleX(.18);
  transition: transform .5s var(--ease);
}
.audience:hover { border-color: #343944; transform: translateY(-3px); }
.audience:hover::before { transform: scaleX(1); }
.audience--pastors { --accent: var(--flame); }
.audience--tech { --accent: var(--cyan); }
.audience--seekers { --accent: var(--gold); }
.audience__icon { width: 44px; height: 44px; color: var(--accent); margin-bottom: 26px; }
.audience__for { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.audience h3 { font-family: var(--display); font-size: 1.75rem; font-weight: 600; line-height: 1.1; margin-bottom: 14px; }
.audience p { color: var(--muted); margin: 0 0 20px; }
.audience ul { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 8px; }
.audience li { position: relative; padding-left: 20px; color: var(--silver); font-size: .96rem; }
.audience li::before { content: "/"; position: absolute; left: 0; font-family: var(--mono); color: var(--accent); }
.audience .link-arrow { margin-top: auto; color: var(--text); }
@media (max-width: 960px) { .audiences { grid-template-columns: 1fr; } }

/* ---------- founder ---------- */
.founder { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(36px, 6vw, 88px); align-items: center; }
.portrait {
  position: relative; aspect-ratio: 4 / 5; background: none; border: 0; overflow: visible;
  display: grid; place-items: center;
}
.portrait img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.portrait--placeholder svg { width: 46%; height: auto; color: #2c3038; }
.portrait__tag {
  position: absolute; left: 16px; bottom: 16px; right: 16px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hint);
  display: flex; justify-content: space-between; gap: 12px;
}
.portrait::after { content: none; }
blockquote.pull {
  margin: 0 0 28px; font-family: var(--display); font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 500; line-height: 1.15; letter-spacing: -0.01em;
}
blockquote.pull::before { content: "“"; display: block; font-size: 4rem; line-height: .6; color: var(--flame); margin-bottom: 10px; }
.pull__cite { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pull__cite strong { color: var(--text); font-weight: 500; }
@media (max-width: 860px) {
  .founder { grid-template-columns: 1fr; }
  .founder .portrait { max-width: 420px; }
}

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.pillar {
  padding: 32px 28px 36px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: relative; transition: background .3s var(--ease);
}
.pillar:hover { background: rgba(77,141,255,.05); }
.pillar__code { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; color: var(--cyan); }
.pillar h3 { font-size: 1.25rem; margin: 18px 0 10px; }
.pillar p { color: var(--muted); margin: 0; font-size: .98rem; }
.pillar__ref { margin-top: 18px; font-family: var(--display); font-style: italic; color: var(--silver); font-size: 1.02rem; }
.pillar__ref span { font-family: var(--mono); font-style: normal; font-size: .68rem; letter-spacing: .1em; color: var(--hint); margin-left: 6px; }
@media (max-width: 960px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- scripture band ---------- */
.verse {
  position: relative; text-align: center; overflow: hidden;
  background:
    var(--ink);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.verse p {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem); line-height: 1.2; margin: 0 auto 24px; max-width: 26ch;
}
.verse cite { font-family: var(--mono); font-style: normal; font-size: .76rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }

/* ---------- cards (resources) ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 960px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }

.card {
  display: flex; flex-direction: column; position: relative;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px 24px; text-decoration: none;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s;
}
a.card:hover, .card:focus-within { border-color: #3a3f4a; transform: translateY(-2px); background: var(--ink-3); }
.card__meta { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 18px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: .66rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan);
}
.tag--flame { color: var(--flame); }
.tag--gold { color: var(--gold); }
.tag--muted { color: var(--hint); }
.card h3 { font-family: var(--display); font-size: 1.55rem; font-weight: 600; line-height: 1.12; margin: 0 0 10px; }
.card p { color: var(--muted); font-size: .97rem; margin: 0 0 22px; }
.card__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }
.status {
  font-family: var(--mono); font-size: .64rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 8px; border: 1px solid var(--line); border-radius: 2px; color: var(--muted); white-space: nowrap;
}
.status--soon { color: var(--gold); border-color: rgba(233,162,59,.3); }
.status--live { color: #7fe0a6; border-color: rgba(127,224,166,.3); }

.section--paper .card { background: #fff; border-color: var(--paper-line); color: var(--paper-ink); }
.section--paper .card p { color: var(--paper-muted); }
.section--paper .card__foot { border-color: var(--paper-line); }
.section--paper .tag { color: var(--blue); }
.section--paper .tag--flame { color: var(--amber-ink); }
.section--paper a.card:hover { background: #fff; border-color: #b7bcc6; }

/* resource toolbar */
.toolbar { display: grid; gap: 16px; margin-bottom: 32px; }
.searchbox {
  display: flex; align-items: center; gap: 12px;
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 16px; transition: border-color .2s;
}
.searchbox:focus-within { border-color: var(--cyan); }
.searchbox svg { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.searchbox input { flex: 1; min-width: 0; min-height: 54px; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.05rem; }
.searchbox input::placeholder { color: var(--hint); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 38px; padding: 6px 14px; border-radius: 999px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--silver);
  font-family: var(--mono); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase;
  transition: all .2s var(--ease);
}
.chip:hover { border-color: var(--silver); }
.chip[aria-pressed="true"] { background: var(--silver); color: var(--ink); border-color: var(--silver); }
.toolbar__row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.toolbar__label { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--hint); min-width: 72px; }
.result-count { font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; color: var(--muted); margin: 0 0 18px; }
.empty-state { padding: 48px 0; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* ---------- split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

.figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--ink-2); }
.figure img { width: 100%; height: auto; }
.figure figcaption { padding: 12px 16px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; color: var(--muted); border-top: 1px solid var(--line); }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 30px; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px;
  border: 1px solid var(--flame); transform: rotate(45deg) scale(.7);
}
.checklist strong { color: var(--text); font-weight: 600; }
.section--paper .checklist strong { color: var(--paper-ink); }
.section--paper .checklist li::before { border-color: var(--amber-ink); }

/* numbered list (process) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1px solid var(--line); }
.steps li { counter-increment: s; padding: 28px 24px 0 0; }
.steps li::before { content: "0" counter(s); display: block; font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; color: var(--flame); margin-bottom: 14px; }
.steps h3 { font-size: 1.12rem; margin-bottom: 6px; }
.steps p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; gap: 0 20px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* topics list (speaking) */
.topics { display: grid; gap: 0; border-top: 1px solid var(--line); }
.topic {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line); align-items: start;
}
.topic__n { font-family: var(--mono); font-size: .74rem; color: var(--hint); letter-spacing: .14em; padding-top: 8px; }
.topic h3 { font-family: var(--display); font-size: 1.6rem; font-weight: 600; line-height: 1.12; margin: 0; }
.topic p { color: var(--muted); margin: 0 0 10px; }
.topic .tags { display: flex; flex-wrap: wrap; gap: 6px 14px; }
@media (max-width: 760px) { .topic { grid-template-columns: 1fr; gap: 10px; } .topic__n { padding: 0; } }

/* format tiles */
.formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.format { padding: 26px 22px; background: #fff; border: 1px solid var(--paper-line); border-radius: var(--radius); }
.format__k { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber-ink); }
.format h3 { font-family: var(--display); font-size: 1.45rem; margin: 12px 0 8px; }
.format p { margin: 0; color: var(--paper-muted); font-size: .96rem; }
@media (max-width: 960px) { .formats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .formats { grid-template-columns: 1fr; } }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 620px) { .form__row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-family: var(--mono); font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field label .req { color: var(--flame); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  background: var(--ink); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius);
  font: inherit; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(77,141,255,.15); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff6b6b; }
.field__err { font-size: .86rem; color: #ff8a8a; min-height: 0; }
.field__err:empty { display: none; }
.form__note { font-size: .88rem; color: var(--muted); margin: 0; }
.form__status {
  padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--line); font-size: .96rem;
}
.form__status:empty { display: none; }
.form__status--ok { border-color: rgba(127,224,166,.4); color: #b5f0cc; background: rgba(127,224,166,.06); }
.form__status--warn { border-color: rgba(233,162,59,.4); color: #ffe39a; background: rgba(233,162,59,.06); }
.form__status--err { border-color: rgba(255,107,107,.4); color: #ffb3b3; background: rgba(255,107,107,.06); }

.panel {
  background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(24px, 4vw, 44px);
}

/* inline newsletter */
.signup { display: flex; gap: 10px; max-width: 520px; }
.signup input {
  flex: 1; min-width: 0; min-height: 52px; padding: 0 16px;
  background: rgba(255,255,255,.03); color: var(--text);
  border: 1px solid rgba(201,211,224,.25); border-radius: var(--radius); font: inherit;
}
.signup input:focus { outline: 0; border-color: var(--gold); }
@media (max-width: 520px) { .signup { flex-direction: column; } }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background:
    var(--ink-2);
  border-top: 1px solid var(--line);
}
.cta-band__inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: end; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
@media (max-width: 860px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__actions { justify-content: flex-start; } }

/* ---------- podcast ---------- */
.episode {
  display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 24px; align-items: center;
  padding: 24px 0; border-bottom: 1px solid var(--line);
}
.episode__n { font-family: var(--display); font-size: 2.4rem; font-weight: 600; color: var(--hint); line-height: 1; }
.episode--featured .episode__n { color: var(--gold); }
.episode h3 { font-family: var(--display); font-size: 1.5rem; margin: 6px 0 6px; }
.episode p { margin: 0; color: var(--muted); font-size: .97rem; }
@media (max-width: 680px) { .episode { grid-template-columns: 1fr; gap: 10px; } }

.platforms { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative;
  font-family: var(--display); font-size: 1.35rem; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 1.2rem; color: var(--flame); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 70ch; }

/* ---------- footer ---------- */
.site-footer { background: #060709; border-top: 1px solid var(--line); padding: 72px 0 32px; font-size: .95rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer__brand p { color: var(--muted); max-width: 34ch; margin: 18px 0 0; }
.footer__creed { margin-top: 24px; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--hint); line-height: 2; }
.footer__creed b { color: var(--silver); font-weight: 500; }
.site-footer h2 { font-family: var(--mono); font-size: .7rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--hint); margin: 0 0 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { color: var(--silver); text-decoration: none; }
.site-footer a:hover { color: var(--white); }
.footer__base {
  margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  color: var(--hint); font-family: var(--mono); font-size: .7rem; letter-spacing: .08em;
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__mark::before, .hero__scroll span { animation: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* utilities */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-s { margin-top: 16px; } .mt-m { margin-top: 32px; } .mt-l { margin-top: 56px; }
.stack > * + * { margin-top: 1em; }
.prose p { color: var(--silver); max-width: 66ch; }
.prose p.first { font-size: 1.2rem; color: var(--text); }
.section--paper .prose p { color: var(--paper-muted); }
.section--paper .prose p.first { color: var(--paper-ink); }
.row-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* topics: list reset, compact variant, paper register */
.topics { list-style: none; margin: 0; padding: 0; }
.topics--compact .topic { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; padding: 22px 0; }
.topics--compact .topic h3 { font-size: 1.4rem; margin-bottom: 6px; }
.section--paper .topics, .section--paper .topic { border-color: var(--paper-line); }
.section--paper .topic p { color: var(--paper-muted); }
.section--paper .topic__n { color: var(--amber-ink); }
@media (max-width: 760px) { .topics--compact .topic { grid-template-columns: 40px minmax(0, 1fr); } }

/* =========================================================
   Typography system: Bebas Neue (display), Mulish (text),
   IBM Plex Mono (technical labels). Bebas has one weight
   and no italic, so display elements are set at 400 and
   emphasis comes from colour, never from slanting.
   ========================================================= */
body { font-family: var(--sans); font-weight: 400; color: var(--text); }
.display, .h2, .hero h1, .brand__name, .cred__value, .creed__val, .question h3,
.audience h3, .topic h3, .format h3, .episode__n, .episode h3, .mobile-menu nav a,
.philo__word, .mission__text {
  font-family: var(--display); font-weight: 400; font-style: normal;
  letter-spacing: .01em; text-transform: uppercase;
}
.display { font-size: clamp(3.2rem, 8.5vw, 6.6rem); line-height: .92; }
.h2 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: .95; }
.hero h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: .92; max-width: 13ch; }
.hero h1 .line-2 { margin-top: .12em; }
.brand__name { font-size: 1.55rem; letter-spacing: .04em; line-height: 1; }
.cred__value { font-size: 1.7rem; line-height: 1; }
.cred__value small { font-family: var(--sans); text-transform: none; letter-spacing: 0; margin-top: 8px; }
.creed__val { font-size: clamp(2.2rem, 3.4vw, 3rem); line-height: .95; }
.question h3, .audience h3 { font-size: 2.1rem; line-height: .95; }
.topic h3 { font-size: 2rem; line-height: .95; }
.format h3 { font-size: 1.9rem; line-height: 1; }
.episode__n { font-size: 3.2rem; }
.episode h3 { font-size: 1.9rem; line-height: 1; }
.mobile-menu nav a { font-size: 2.3rem; line-height: 1; }
.mobile-menu nav a[aria-current="page"] { color: var(--amber); }
.h3 { font-family: var(--sans); font-weight: 700; }
.lead { font-weight: 400; color: var(--silver); }
.section--paper .lead { color: var(--paper-muted); }

/* text-set (Mulish) components */
blockquote.pull { font-family: var(--sans); font-weight: 300; font-size: clamp(1.5rem, 2.7vw, 2.15rem); line-height: 1.3; letter-spacing: -0.01em; }
blockquote.pull::before { font-family: var(--display); font-size: 5rem; color: var(--amber); }
.verse p { font-family: var(--sans); font-style: normal; font-weight: 300; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.3; max-width: 30ch; }
.verse cite { color: var(--amber); }
.pillar__ref { font-family: var(--sans); font-style: italic; font-weight: 400; font-size: .98rem; }
.card h3 { font-family: var(--sans); font-weight: 700; font-size: 1.22rem; line-height: 1.3; letter-spacing: -0.005em; text-transform: none; }
.faq summary { font-family: var(--sans); font-weight: 700; font-size: 1.1rem; }
.search__field input { font-family: var(--sans); font-weight: 300; }
.prose em.accent, .prose .accent { font-style: italic; }
.panel-title { font-family: var(--display); font-weight: 400; font-size: 2.2rem; line-height: 1; text-transform: uppercase; margin: 0 0 12px; }

/* paper register: amber text uses the darker ink for contrast */
.section--paper .creed__item:nth-child(4) .creed__val { color: var(--amber-ink); }
.section--paper .accent { color: var(--amber-ink); }

/* interaction colour = electric blue; amber = the altar */
.link-arrow { color: var(--blue); }
.nav a[aria-current="page"]::after { background: var(--amber); }
.audience--pastors, .audience--seekers { --accent: var(--amber); }
.audience--tech { --accent: var(--blue); }
.pillar__code { color: var(--blue); }
.tag { color: var(--blue); }
.tag--flame, .tag--gold { color: var(--amber); }
.status--live { color: var(--blue); border-color: rgba(77,141,255,.35); }
.form__status--ok { border-color: rgba(77,141,255,.4); color: #cfe0ff; background: rgba(77,141,255,.06); }
.btn--ghost { --bd: rgba(165,170,180,.4); }

/* =========================================================
   Brand philosophy: The Algorithm / The Altar
   ========================================================= */
.philo { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); }
.philo__col { padding: clamp(28px, 4vw, 48px); position: relative; }
.philo__col + .philo__col { border-left: 1px solid var(--line); }
.philo__k { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.philo__word { display: block; font-size: clamp(3rem, 6vw, 5rem); line-height: .9; margin: 14px 0 6px; }
.philo__role { font-family: var(--mono); font-size: .76rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 22px; }
.philo__col--algo .philo__role { color: var(--blue); }
.philo__col--altar .philo__role { color: var(--amber); }
.philo__col--altar { background: linear-gradient(180deg, rgba(233,162,59,.05), transparent 60%); }
.philo__col--altar::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--amber); }
.philo__col--algo::before { content: ""; position: absolute; left: 0; width: 64px; top: -1px; height: 2px; background: var(--blue); }
.philo__col p { color: var(--muted); margin: 0 0 18px; }
.philo__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.philo__list li { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border: 1px solid var(--line); color: var(--silver); }
.philo__meet {
  grid-column: 1 / -1; border-top: 1px solid var(--line);
  padding: clamp(24px, 3.5vw, 40px) clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center;
}
.philo__meet strong { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 3.6vw, 3rem); line-height: .95; text-transform: uppercase; }
.philo__meet strong span { color: var(--amber); }
.philo__meet p { margin: 0; color: var(--muted); max-width: 60ch; }
@media (max-width: 760px) {
  .philo { grid-template-columns: 1fr; }
  .philo__col + .philo__col { border-left: 0; border-top: 1px solid var(--line); }
  .philo__meet { grid-template-columns: 1fr; gap: 12px; }
}

/* =========================================================
   Mission statement
   ========================================================= */
.mission__label { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; color: var(--amber-ink); margin-bottom: 28px; }
.mission__label::after { content: ""; flex: 1; height: 1px; background: var(--paper-line); }
.mission__text { font-size: clamp(2.3rem, 5vw, 4.3rem); line-height: .98; margin: 0; max-width: 24ch; color: var(--paper-ink); }
.mission__text em { font-style: normal; color: var(--amber-ink); }
.mission__text b { font-weight: 400; color: #2f63d6; }
.mission__foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--paper-line); }
.mission__foot div { font-size: .96rem; color: var(--paper-muted); }
.mission__foot b { display: block; font-family: var(--mono); font-weight: 500; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--paper-ink); margin-bottom: 6px; }
@media (max-width: 760px) { .mission__foot { grid-template-columns: 1fr; } }

/* mission strip (compact, dark) */
.mission-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.mission-strip .container { display: grid; grid-template-columns: 180px 1fr auto; gap: 32px; align-items: center; padding-top: 36px; padding-bottom: 36px; }
.mission-strip__k { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--amber); }
.mission-strip p { margin: 0; font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 300; color: var(--silver); max-width: 70ch; }
@media (max-width: 860px) { .mission-strip .container { grid-template-columns: 1fr; gap: 14px; } }

/* tagline */
.footer__tagline { font-family: var(--display); font-size: 1.6rem; line-height: 1; letter-spacing: .02em; text-transform: uppercase; margin: 18px 0 0; color: var(--text); }
.footer__tagline span { color: var(--amber); }

/* thin altar rule: the single flame reference used in place of warm washes */
.altar-rule { width: 1px; height: 56px; margin: 0 auto 28px; background: linear-gradient(var(--amber), transparent); }

.footer__brand .footer__tagline { color: var(--text); max-width: none; }

/* restraint: amber only for altar moments; display accents use cool gray */
.display .accent { color: var(--muted); }
.mission__text { max-width: 32ch; }
.hero h1 { max-width: 15ch; font-size: clamp(3rem, 6.4vw, 5.6rem); }

/* =========================================================
   Founder photo, stats, foundation note, video library
   ========================================================= */
.portrait--photo { background: none; place-items: end center; }
.portrait--photo img { width: 100%; height: 100%; object-fit: contain; object-position: bottom center; }
.portrait--photo::after { content: none; }
.portrait--photo .portrait__tag { color: var(--silver); text-shadow: 0 1px 8px rgba(0,0,0,.8); z-index: 1; }
.portrait--photo::before { content: ""; position: absolute; inset: auto 0 0 0; height: 30%; background: linear-gradient(transparent, rgba(8,9,12,.85)); z-index: 1; pointer-events: none; }

.verse__note { font-family: var(--sans) !important; font-size: 1.05rem !important; font-weight: 400 !important; color: var(--muted); max-width: 56ch !important; margin: 28px auto 0 !important; line-height: 1.6 !important; }
.verse .eyebrow::before { display: none; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 28px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat__n { font-family: var(--display); font-size: clamp(3.2rem, 6vw, 4.8rem); line-height: .9; color: var(--text); }
.stat__n--amber { color: var(--amber); }
.stat p { color: var(--muted); margin: 12px 0 0; font-size: .98rem; }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 28px; }
}

.figure--paper { background: #fff; }
.figure--paper img { padding: 18px; }
.figure--paper figcaption { background: var(--ink-2); }

.intro-card { margin: 0; padding: clamp(24px, 3vw, 36px); border-left: 2px solid var(--amber); background: var(--ink); }
.intro-card p { margin: 0 0 14px; font-size: 1.12rem; line-height: 1.65; color: var(--silver); }
.intro-card p:last-child { margin: 0; }

/* page hero with a photo */
.page-hero--media { background: var(--ink); }
.page-hero__media { position: absolute; inset: 0; }
.page-hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 30%; opacity: .55; }
.page-hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink) 15%, rgba(8,9,12,.75) 50%, rgba(8,9,12,.2) 100%), linear-gradient(0deg, var(--ink) 0%, transparent 40%); }
@media (max-width: 760px) { .page-hero__media img { opacity: .3; } }

/* video library */
.video { display: grid; gap: 18px; align-content: start; }
.video--featured { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: center; margin-bottom: clamp(48px, 6vw, 72px); }
@media (max-width: 860px) { .video--featured { grid-template-columns: 1fr; } }
.video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); padding-top: clamp(32px, 4vw, 48px); }
@media (max-width: 760px) { .video-grid { grid-template-columns: 1fr; } }
.video__frame { position: relative; aspect-ratio: 16 / 9; background: var(--ink-2); border: 1px solid var(--line); overflow: hidden; }
.video__frame iframe, .video__frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video__play { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: #000; }
.video__play img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s var(--ease); }
.video__play:hover img { opacity: 1; }
.video__btn { position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--amber); }
.video__btn::after { content: ""; position: absolute; left: 29px; top: 23px; border-left: 20px solid #0b0a08; border-top: 13px solid transparent; border-bottom: 13px solid transparent; }
.video__soon { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 10px; padding: 20px;
  background: repeating-linear-gradient(90deg, transparent 0 55px, rgba(165,170,180,.04) 55px 56px), repeating-linear-gradient(0deg, transparent 0 55px, rgba(165,170,180,.04) 55px 56px), var(--ink-2); }
.video__soon img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.video__soon > span { position: relative; }
.video__ep { font-family: var(--display); font-size: clamp(2.4rem, 5vw, 3.6rem); line-height: .9; color: var(--text); }
.video__meta h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: .95; margin: 10px 0 10px; }
.video--featured .video__meta h3 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
.video__meta p { color: var(--muted); margin: 0 0 16px; }

/* honeypot */
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* =========================================================
   Pillar page: AI and Christianity
   ========================================================= */
.byline { margin: 18px 0 0; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.byline a { color: var(--text); text-decoration: none; border-bottom: 1px solid var(--amber); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; border-top: 1px solid var(--line); }
.toc li { counter-increment: toc; border-bottom: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 44px 1fr; gap: 12px; padding: 14px 0; text-decoration: none; color: var(--silver); transition: color .2s; }
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: .74rem; color: var(--blue); padding-top: 3px; }
.toc a:hover { color: var(--white); }
.contention { border-top: 1px solid var(--line); padding: clamp(48px, 7vw, 88px) 0; scroll-margin-top: var(--header-h); }
.contention:nth-child(even) { background: var(--ink-2); }
.contention__grid { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); }
.contention__n { font-family: var(--display); font-size: clamp(5rem, 11vw, 9rem); line-height: .8; color: #626874; }
.contention__body { max-width: 760px; }
.contention__body h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: .95; margin: 0 0 20px; }
.contention__issue { font-size: 1.15rem; color: var(--silver); margin: 0 0 18px; }
.contention__qs { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.contention__qs li { position: relative; padding-left: 26px; font-weight: 600; color: var(--text); }
.contention__qs li::before { content: "?"; position: absolute; left: 0; font-family: var(--mono); color: var(--blue); }
.scripture { margin: 0 0 24px; padding: 18px 22px; border-left: 2px solid var(--amber); background: rgba(233,162,59,.04); font-size: 1.15rem; font-style: italic; color: var(--text); }
.scripture cite { display: block; margin-top: 10px; font-family: var(--mono); font-style: normal; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--amber); }
.contention__lens { color: var(--muted); margin: 0; }
.contention__lens strong { color: var(--text); }
@media (max-width: 760px) { .contention__grid { grid-template-columns: 1fr; gap: 8px; } .contention__n { font-size: 4rem; } }
.lead a { color: var(--text); text-decoration-color: var(--amber); }

.hero__mark picture { display: contents; }
.tag--muted { color: var(--hint); }

/* About: technical foundation rows */
.research-row + .research-row { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.research__title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(2rem, 3.4vw, 2.8rem); line-height: .95; margin: 0 0 16px; }
.figure--small { max-width: 340px; }
.figure--small figcaption { font-size: .6rem; }
@media (min-width: 861px) { .research-row--reverse > :first-child { order: 0; } }
@media (max-width: 860px) { .research-row--reverse > figure { order: -1; } }

/* About: matched image pair with text on the same grid */
.research-head { max-width: 760px; margin-bottom: 32px; }
.research-pair, .research-points { display: grid; grid-template-columns: 1fr 1fr; gap: 24px clamp(24px, 4vw, 48px); }
.research-points { margin-top: 36px; }
.figure--frame { display: flex; flex-direction: column; }
.figure--frame .figure__box { aspect-ratio: 1312 / 1199; display: grid; place-items: center; overflow: hidden; }
.figure--frame .figure__box img { width: 100%; height: 100%; object-fit: contain; }
.figure--frame.figure--paper .figure__box { background: #fff; padding: clamp(8px, 1.4vw, 18px); }
.figure--frame.figure--paper .figure__box img { padding: 0; }
.figure--frame figcaption { margin-top: auto; }
@media (max-width: 760px) {
  .research-pair, .research-points { grid-template-columns: 1fr; }
}

.research-head + .research-points { margin-top: 0; }

.hero__quote{font-family:var(--sans);font-style:italic;font-weight:400;font-size:clamp(1.1rem,2vw,1.4rem);line-height:1.5;color:var(--text);border-left:2px solid var(--amber);padding-left:16px;margin:0 0 20px;max-width:46ch}
.hero__quote-key{color:var(--amber);font-weight:700}

/* founder portrait: no frame, soft fade into the page, caption beneath */
.portrait--photo { aspect-ratio: auto; display: flex; flex-direction: column; align-items: center; }
.portrait--photo img { height: auto; max-height: 560px; width: auto; max-width: 100%; object-fit: contain;
  -webkit-mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); mask-image: linear-gradient(to bottom, #000 62%, transparent 100%); }
.portrait--photo .portrait__tag { position: static; width: 100%; margin-top: 14px; text-shadow: none; }

/* light/dark toggle: show the icon of the mode you'd switch to */
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle__moon { display: none; }
html[data-theme="light"] .theme-toggle__sun { display: none; }
html[data-theme="light"] .theme-toggle__moon { display: block; }

/* wordmark line break only on phones */
.brand__br { display: none; }

/* phones: two-line wordmark so the logo, theme, search and menu buttons all fit */
@media (max-width: 520px) {
  .site-header .container, .mobile-menu__top { gap: 10px; }
  .brand__name { font-size: 1.05rem; line-height: .95; }
  .brand__br { display: inline; }
  .header-actions { gap: 4px; }
  .header-actions .icon-btn { width: 40px; height: 40px; }
}
