/* ============================================================
   Discernment Accelerator — story homepage (Oct 2026)
   Selah Seminary's homepage language (arches, strip-weave,
   gold light, Fraunces + Figtree) in the DA palette.
   ============================================================ */

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

html {
  -webkit-text-size-adjust: none;
  text-size-adjust: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

:root {
  /* DA palette */
  --ivory: #F5E9D7;
  --ivory-soft: #FAF3E6;
  --espresso: #3D2B1F;
  --night: #24180F;
  --terracotta: #B85C38;
  --terracotta-deep: #98462A;
  --camel: #D9BD94;
  --olive: #7A8450;
  /* Selah gold + weave */
  --gold: #C99A2E;
  --gold-bright: #E2B54E;
  --gold-text: #8A5A14;
  --bissap: #9E2350;
  --royal: #3E1A63;

  --color-bg: var(--ivory-soft);
  --color-surface: #ffffff;
  --color-tint: var(--ivory);
  --color-text: var(--espresso);
  --color-muted: #6B5949;
  --color-heading: var(--espresso);
  --color-accent: var(--terracotta-deep);
  --color-gold-text: var(--gold-text);
  --color-border: rgba(61, 43, 31, 0.14);
  --focus: var(--terracotta-deep);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Figtree", Arial, Helvetica, sans-serif;
  --fvs-display: "SOFT" 60, "WONK" 0;

  --text-sm: 0.9375rem;
  --text-label: 0.8125rem;
  --text-base: 1.125rem;
  --text-h3: clamp(1.5rem, 1.2rem + 1.1vw, 1.875rem);
  --text-h2: clamp(1.875rem, 1.3rem + 2vw, 2.75rem);
  --text-h1: clamp(2.25rem, 1.3rem + 3.4vw, 3.6rem);
  --text-pull: clamp(1.6rem, 1.15rem + 1.7vw, 2.4rem);

  --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
  --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem;
  --section-y: clamp(4rem, 2.5rem + 6vw, 7.5rem);
  --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  --content: 72rem;

  --radius: 14px;
  --radius-lg: 24px;
  --arch: 999px 999px var(--radius) var(--radius);
  --ease-breath: cubic-bezier(0.37, 0, 0.18, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-soft: 0 1px 2px rgba(36, 24, 15, 0.06), 0 12px 32px -12px rgba(36, 24, 15, 0.22);
  --shadow-lift: 0 2px 4px rgba(36, 24, 15, 0.08), 0 28px 48px -18px rgba(36, 24, 15, 0.4);
  --weave: repeating-linear-gradient(90deg, var(--gold) 0 22px, var(--night) 22px 26px, var(--terracotta) 26px 36px, var(--night) 36px 40px, var(--ivory) 40px 46px, var(--night) 46px 50px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #1C130C;
    --color-surface: #2A1D14;
    --color-tint: #33241A;
    --color-text: #F5E9D7;
    --color-muted: #CDBBA4;
    --color-heading: #F8EEDF;
    --color-accent: #EBA27D;
    --color-gold-text: #E2B54E;
    --color-border: rgba(217, 189, 148, 0.2);
    --focus: #E2B54E;
    color-scheme: dark;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; }
ul[role="list"], ol[role="list"] { list-style: none; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-variation-settings: var(--fvs-display);
  font-weight: 600;
  color: var(--color-heading);
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: var(--text-h1); line-height: 1.08; }
h2 { font-size: var(--text-h2); line-height: 1.15; }
h3 { font-size: var(--text-h3); font-weight: 500; line-height: 1.25; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 400; color: var(--color-accent); }
p { text-wrap: pretty; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.on-dark :focus-visible, .site-footer :focus-visible, .site-header:not(.is-solid) :focus-visible, .film-frame :focus-visible { outline-color: var(--gold-bright); }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-4); top: -4rem; z-index: 100;
  background: var(--espresso); color: var(--ivory); padding: var(--space-3) var(--space-5);
  border-radius: 4px; font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: var(--space-4); }

.container { width: min(100% - 2 * var(--gutter), var(--content)); margin-inline: auto; }
.section { padding-block: var(--section-y); position: relative; }
.measure-center { max-width: 44rem; margin-inline: auto; text-align: center; }
.measure-center .lede { margin-top: var(--space-5); }

.eyebrow {
  font-size: var(--text-label); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-gold-text); margin-bottom: var(--space-4);
}
.lede { font-size: clamp(1.125rem, 1rem + 0.4vw, 1.3rem); color: var(--color-muted); }

/* On dark grounds (always dark, in either mode) */
.on-dark { color: var(--ivory); }
.on-dark h1, .on-dark h2, .on-dark h3 { color: #FBF3E6; }
.on-dark h1 em, .on-dark h2 em { color: var(--gold-bright); }
.on-dark .eyebrow { color: var(--gold-bright); }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--terracotta-deep); --btn-fg: #FFF8EE; --btn-ring: var(--gold);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.85rem 1.5rem; min-height: 48px; border-radius: 999px; border: 0;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--btn-ring) 45%, transparent), 0 10px 24px -14px color-mix(in srgb, var(--btn-bg) 90%, black);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: radial-gradient(120px 60px at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--btn-ring) 55%, transparent), transparent 70%);
  opacity: 0; transition: opacity 0.35s;
}
.btn:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--btn-ring), 0 16px 30px -14px color-mix(in srgb, var(--btn-bg) 90%, black); }
.btn:hover::before { opacity: 1; }
.btn:active { transform: translateY(0) scale(0.97); transition-duration: 0.1s; }
.btn .arrow { transition: transform 0.35s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn-gold { --btn-bg: var(--gold-bright); --btn-fg: var(--night); --btn-ring: #FFF3CF; }
.btn-outline { --btn-bg: transparent; --btn-fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn-outline:hover { box-shadow: inset 0 0 0 1.5px var(--gold); }
.btn-lg { padding: 1.05rem 1.9rem; font-size: 1.06rem; }

.text-link {
  display: inline-block; color: var(--color-accent); font-weight: 700; text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--gold) 70%, transparent);
  transition: text-decoration-color 0.25s, text-underline-offset 0.25s;
}
.text-link:hover { text-decoration-color: var(--gold); text-underline-offset: 6px; }
.text-link span { display: inline-block; transition: transform 0.3s var(--ease-out); }
.text-link:hover span { transform: translateX(3px); }
.text-link--light { color: var(--gold-bright); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; margin-bottom: -4.75rem; color: var(--ivory);
  transition: background-color 0.4s var(--ease-breath), box-shadow 0.4s var(--ease-breath), color 0.4s;
}
.site-header.is-solid {
  background: color-mix(in srgb, var(--color-bg) 97%, transparent);
  color: var(--color-heading);
  box-shadow: 0 1px 0 var(--color-border);
}
.header-inner { display: flex; align-items: center; gap: var(--space-4); min-height: 4.75rem; }
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; flex-shrink: 0; }
.brand img { height: 2.3rem; width: auto; }
.brand .logo-light { display: none; }
.site-header.is-solid .brand .logo-dark { display: none; }
.site-header.is-solid .brand .logo-light { display: block; }
@media (prefers-color-scheme: dark) {
  .site-header.is-solid .brand .logo-light { display: none; }
  .site-header.is-solid .brand .logo-dark { display: block; }
}
.brand-program {
  padding-left: 0.85rem; border-left: 1.5px solid color-mix(in srgb, var(--gold) 70%, transparent);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; line-height: 1.25;
}
.header-actions { margin-left: auto; display: flex; gap: var(--space-3); }
.header-actions .btn { padding: 0.6rem 1.15rem; min-height: 44px; font-size: 0.95rem; }
@media (max-width: 760px) { .header-stories { display: none; } }
@media (max-width: 420px) {
  .brand img { height: 1.9rem; }
  .brand-program { font-size: 0.62rem; padding-left: 0.6rem; }
  .brand { gap: 0.6rem; }
  .header-actions .btn { padding: 0.55rem 0.9rem; font-size: 0.88rem; }
}

/* ---------- Arch media ---------- */
.arch-wrap { position: relative; isolation: isolate; }
.arch { position: relative; overflow: hidden; border-radius: var(--arch); background: var(--espresso); isolation: isolate; }
.arch img, .arch video { width: 100%; height: 100%; object-fit: cover; }
.arch::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; z-index: 2;
  background: repeating-linear-gradient(90deg, var(--gold) 0 14px, var(--espresso) 14px 18px, var(--terracotta) 18px 26px, var(--espresso) 26px 30px, var(--ivory) 30px 34px, var(--espresso) 34px 38px);
}
.arch-frame {
  position: absolute; inset: -12px; z-index: -1; pointer-events: none;
  border: 1.5px solid color-mix(in srgb, var(--gold) 70%, transparent); border-radius: var(--arch);
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 90% at 80% 0%, #5A3A24 0%, var(--espresso) 45%, var(--night) 100%);
  padding: calc(4.75rem + clamp(2.5rem, 1rem + 5vw, 5rem)) 0 clamp(3.5rem, 2rem + 5vw, 6rem);
}
.hero-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(60px); }
.hero-glow--a { width: 42vw; height: 42vw; right: -6vw; top: -10vw; background: radial-gradient(closest-side, rgba(226, 181, 78, 0.35), transparent); animation: breathe 9s var(--ease-breath) infinite alternate; }
.hero-glow--b { width: 36vw; height: 36vw; left: -12vw; bottom: -14vw; background: radial-gradient(closest-side, rgba(184, 92, 56, 0.38), transparent); animation: breathe 11s var(--ease-breath) infinite alternate-reverse; }
.hero-rays { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.9; }
@keyframes breathe { from { transform: scale(1); opacity: 0.75; } to { transform: scale(1.12); opacity: 1; } }

.hero-inner { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 4.5rem); align-items: center; }
.hero h1 { margin-bottom: var(--space-6); }
.hero-sub { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); color: #EADBC6; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-checklist { display: grid; gap: var(--space-3); margin-top: var(--space-6); max-width: 36rem; }
.hero-checklist li { position: relative; padding-left: 2.1rem; color: #F3E6D2; line-height: 1.5; }
.hero-checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.15em; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--terracotta));
}
.hero-checklist li::after {
  content: ""; position: absolute; left: 7px; top: 0.5em; width: 9px; height: 5px;
  border-left: 2px solid var(--night); border-bottom: 2px solid var(--night); transform: rotate(-45deg);
}
.hero-checklist strong { color: #FFF8EE; }
.hero-micro { margin-top: var(--space-4); font-size: var(--text-sm); color: #CDBBA4; }
.hero-media { justify-self: center; width: min(100%, 26rem); }
.hero-arch { aspect-ratio: 3 / 4; }
.hero-arch-tint { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(36, 24, 15, 0.45)); }

.faces {
  display: inline-flex; align-items: center; gap: var(--space-4); margin-top: var(--space-10);
  padding: 0.5rem 1.1rem 0.5rem 0.5rem; border-radius: 999px; text-decoration: none;
  background: rgba(250, 243, 230, 0.07); box-shadow: inset 0 0 0 1px rgba(226, 181, 78, 0.3);
  transition: background-color 0.3s, box-shadow 0.3s, transform 0.35s var(--ease-out);
}
.faces:hover { background: rgba(250, 243, 230, 0.12); box-shadow: inset 0 0 0 1px var(--gold-bright); transform: translateY(-2px); }
.faces-row { display: flex; flex-shrink: 0; }
.faces-row img {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover; object-position: 50% 30%;
  border: 2px solid var(--espresso); box-shadow: 0 0 0 1px var(--gold);
}
.faces-row img + img { margin-left: -12px; }
.faces-text { font-size: 0.92rem; line-height: 1.35; color: #F3E6D2; font-weight: 600; }
.faces-cue { display: block; color: var(--gold-bright); }
.faces:hover .faces-cue span { display: inline-block; animation: nudge 0.9s var(--ease-out) infinite alternate; }
@keyframes nudge { to { transform: translateY(3px); } }

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.25fr 0.85fr; }
  .hero-media { justify-self: end; }
}
@media (max-width: 899px) {
  .hero-media { width: min(78%, 20rem); order: -1; }
  .faces { gap: var(--space-3); }
  .faces-row img { width: 36px; height: 36px; }
}

/* ---------- Trust band ---------- */
.trust { background: var(--night); color: #EADBC6; position: relative; }
.trust::before { content: ""; display: block; height: 6px; background: var(--weave); }
.trust-inner {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: var(--space-3) var(--space-5); padding-block: var(--space-5);
  font-size: var(--text-sm); font-weight: 600; text-align: center;
}
.trust-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
@media (max-width: 760px) { .trust-dot { display: none; } .trust-inner { flex-direction: column; gap: var(--space-2); } }

/* ---------- Stories ---------- */
.stories-intro { padding-bottom: clamp(1.5rem, 1rem + 2vw, 3rem); }
.story { padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem); }
.story-row { display: grid; gap: clamp(1.75rem, 1rem + 3vw, 4rem); align-items: center; }
@media (min-width: 900px) {
  .story-row { grid-template-columns: 1.15fr 1fr; }
  .story--flip .film { order: 2; }
}

.film { margin: 0; }
.film-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border-radius: var(--radius-lg); background: var(--night); box-shadow: var(--shadow-lift);
}
.film-frame::after {                                   /* gold hairline */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(226, 181, 78, 0.35);
}
.film-frame img, .film-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.film-frame img { transition: transform 1.2s var(--ease-out); }
.film:hover .film-frame img { transform: scale(1.035); }
.film-play {
  position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; cursor: pointer;
  background: linear-gradient(180deg, transparent 35%, rgba(36, 24, 15, 0.55)); color: var(--ivory);
}
.film-play .disc {
  width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--terracotta-deep) 85%, transparent);
  box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 10px color-mix(in srgb, var(--gold) 18%, transparent);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}
.film-play .disc svg { margin-left: 3px; }
.film-play:hover .disc, .film-play:focus-visible .disc { transform: scale(1.1); box-shadow: 0 0 0 1.5px var(--gold), 0 0 0 18px color-mix(in srgb, var(--gold) 14%, transparent); }
.film-play:focus-visible { outline-offset: -6px; }
.film.is-playing .film-frame img { transform: none; }

.film-cap { margin-top: var(--space-4); display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.4rem 0.75rem; }
.film-name { font-family: var(--font-display); font-variation-settings: var(--fvs-display); font-size: 1.25rem; font-weight: 600; color: var(--color-heading); }
.film-tag {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-gold-text); padding: 0.2rem 0.6rem; border-radius: 999px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--gold) 55%, transparent);
}
.film-line { flex-basis: 100%; color: var(--color-muted); font-size: var(--text-sm); }

.shift {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.6rem;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-5);
}
.shift span:first-child { color: var(--color-muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--terracotta) 60%, transparent); text-decoration-thickness: 2px; }
.shift span:last-child { color: var(--color-accent); }
.shift-arrow { width: 34px; height: 2px; background: linear-gradient(90deg, var(--camel), var(--gold)); position: relative; }
.shift-arrow::after { content: ""; position: absolute; right: -1px; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--gold); border-right: 0; }

.pull {
  font-size: var(--text-pull); font-weight: 500; line-height: 1.2; position: relative;
}
.pull::before {
  content: "\201C"; position: absolute; left: -0.08em; top: -0.62em; font-size: 3.4em; line-height: 1;
  color: color-mix(in srgb, var(--gold) 28%, transparent); z-index: -1; font-style: normal;
}
.story-copy { position: relative; isolation: isolate; }
.story-line { margin-block: var(--space-5) var(--space-6); color: var(--color-muted); font-size: 1.08rem; }
.story-line strong { color: var(--color-text); font-weight: 700; }

/* ---------- Witness (Teddi) ---------- */
.witness {
  position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, var(--espresso) 0%, var(--night) 70%);
  padding-block: var(--section-y); margin-block: clamp(2rem, 1rem + 3vw, 4rem);
}
.witness::before, .witness::after { content: ""; position: absolute; left: 0; right: 0; height: 6px; background: var(--weave); }
.witness::before { top: 0; } .witness::after { bottom: 0; }
.witness-sun {
  position: absolute; z-index: -1; width: 60vw; height: 60vw; right: -18vw; top: -22vw; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(226, 181, 78, 0.32), rgba(184, 92, 56, 0.12) 55%, transparent);
  animation: breathe 10s var(--ease-breath) infinite alternate;
}
.witness-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.witness-photo { width: min(100%, 20rem); justify-self: center; }
.witness-photo .arch { aspect-ratio: 3 / 4; }
.witness-photo img { object-position: 50% 30%; transform: scale(1.45); transform-origin: 50% 42%; }
.witness-quote { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3.1rem); font-weight: 500; line-height: 1.14; }
.witness-line { margin-block: var(--space-6); color: #E6D6BF; font-size: 1.1rem; max-width: 40rem; }
@media (min-width: 900px) { .witness-grid { grid-template-columns: 0.7fr 1.3fr; } }

/* ---------- Who ---------- */
.who-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.who-photo { width: min(100%, 22rem); justify-self: center; }
.who-photo .arch { aspect-ratio: 2 / 3; }
.who-copy > * + * { margin-top: var(--space-5); }
.who-copy h2 { margin-top: 0; }
.who-list { display: grid; gap: var(--space-3); margin-block: var(--space-6) var(--space-8) !important; }
.who-list li {
  position: relative; padding: var(--space-4) var(--space-5) var(--space-4) 3.1rem;
  background: var(--color-surface); border-radius: var(--radius); box-shadow: var(--shadow-soft);
  border: 1px solid var(--color-border);
}
.who-list li::before {
  content: ""; position: absolute; left: 1.1rem; top: 1.35rem; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--gold-bright), var(--gold)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gold) 20%, transparent);
}
@media (min-width: 900px) { .who-grid { grid-template-columns: 0.8fr 1.2fr; } }

/* ---------- Malia & Chanty ---------- */
.duo { background: radial-gradient(100% 80% at 50% 0%, #4A3221 0%, var(--night) 75%); overflow: hidden; }
.duo h2 { font-weight: 500; }
.duo-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
  max-width: 46rem; margin: clamp(2.5rem, 2rem + 2vw, 4rem) auto 0;
}
.film--tall .film-frame { aspect-ratio: 3 / 4; border-radius: 999px 999px var(--radius-lg) var(--radius-lg); }
.film--tall .film-frame img { object-position: 50% 20%; }
.film--tall:nth-child(2) { margin-top: clamp(1.5rem, 1rem + 3vw, 4rem); }
.duo .film-name { color: #FBF3E6; }
.duo .film-line { color: #DCCAB2; font-style: italic; }
.duo .film-cap .text-link { font-size: var(--text-sm); }
@media (max-width: 520px) {
  .duo-grid { grid-template-columns: 1fr; max-width: 20rem; }
  .film--tall:nth-child(2) { margin-top: 0; }
}

/* ---------- Written voices ---------- */
.voice { margin: 0; }
.voice--feature {
  display: grid; gap: clamp(1.5rem, 1rem + 3vw, 3.5rem); align-items: center;
  max-width: 60rem; margin: clamp(2.5rem, 2rem + 2vw, 4rem) auto 0;
}
.voice-photo { width: min(60%, 15rem); justify-self: center; }
.voice-photo .arch { aspect-ratio: 3 / 4; }
.voice-photo img { object-position: 50% 25%; transform: scale(1.3); transform-origin: 50% 30%; }
.voice-quote {
  font-family: var(--font-display); font-variation-settings: var(--fvs-display);
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); line-height: 1.25; font-weight: 500; color: var(--color-heading);
}
.voice-quote em { font-style: italic; font-weight: 400; color: var(--color-accent); }
.voice-quote--sm { font-size: clamp(1.2rem, 1rem + 0.7vw, 1.45rem); }
.voice-who { display: flex; align-items: center; gap: var(--space-4); margin-top: var(--space-5); }
.voice-who strong { display: block; font-weight: 700; color: var(--color-heading); }
.voice-who span span, .voice--feature .voice-who > span { display: block; font-size: var(--text-sm); color: var(--color-muted); }
.voice--feature .voice-who { display: block; }
.voice-avatar {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
  box-shadow: 0 0 0 2px var(--color-bg), 0 0 0 3.5px var(--gold);
}
.voice-avatar--mono {
  display: grid; place-items: center; background: var(--terracotta-deep); color: #FFF8EE;
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 600;
}
.voice-pair { display: grid; gap: var(--space-6); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); }
.voice-pair .voice {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); background: var(--color-surface);
  border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft);
  position: relative; overflow: hidden;
}
.voice-pair .voice::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--weave); }
@media (min-width: 760px) {
  .voice--feature { grid-template-columns: 0.55fr 1.45fr; }
  .voice-photo { width: 100%; }
  .voice-pair { grid-template-columns: 1fr 1fr; }
}

/* ---------- Stats ---------- */
.stats { background: var(--color-tint); border-block: 1px solid var(--color-border); }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-8) var(--space-6); padding-block: clamp(2.5rem, 2rem + 2vw, 3.5rem); text-align: center; }
.stats strong { display: block; font-family: var(--font-display); font-variation-settings: var(--fvs-display); font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.6rem); font-weight: 600; color: var(--color-accent); line-height: 1.1; }
.stats span { display: block; margin-top: 0.35rem; font-size: var(--text-sm); color: var(--color-muted); }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

/* ---------- Guides ---------- */
.guides-grid { display: grid; gap: clamp(2.5rem, 2rem + 3vw, 5rem); align-items: center; }
.guides-photo { width: min(100%, 22rem); justify-self: center; }
.guides-arch { aspect-ratio: 3 / 4; }
.guides-arch img { object-position: 50% 20%; }
.guides-copy > * + * { margin-top: var(--space-5); }
.guides-copy h2 { font-weight: 500; }
.guides-actions { margin-top: var(--space-8) !important; display: grid; gap: var(--space-5); justify-items: start; }
.guides-more { font-size: var(--text-sm); color: var(--color-muted); }
@media (min-width: 900px) { .guides-grid { grid-template-columns: 0.8fr 1.2fr; } }

/* ---------- Steps ---------- */
.steps { background: var(--color-tint); }
.steps-list { display: grid; gap: var(--space-6); margin-top: clamp(2.5rem, 2rem + 2vw, 4rem); position: relative; counter-reset: none; }
.steps-list li {
  position: relative; padding: var(--space-6); background: var(--color-surface);
  border-radius: var(--radius-lg); border: 1px solid var(--color-border); box-shadow: var(--shadow-soft);
}
.steps-list h3 { font-size: 1.4rem; margin-block: var(--space-4) var(--space-2); }
.steps-list p { color: var(--color-muted); font-size: 1rem; }
.step-num {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 600;
  background: var(--espresso); color: var(--gold-bright); box-shadow: 0 0 0 4px var(--color-surface), 0 0 0 5.5px var(--gold);
}
@media (min-width: 900px) {
  .steps-list { grid-template-columns: repeat(4, 1fr); }
  .steps-list::before {
    content: ""; position: absolute; left: 3rem; right: 3rem; top: calc(1.5rem + 24px); height: 2px; z-index: 0;
    background: linear-gradient(90deg, var(--camel), var(--gold), var(--terracotta));
  }
  .steps-list li { z-index: 1; }
}

/* ---------- Closing ---------- */
.closing { position: relative; overflow: hidden; isolation: isolate; padding-block: clamp(6rem, 4rem + 8vw, 10rem); text-align: center; background: var(--night); }
.closing-photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.closing::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(70% 70% at 50% 100%, rgba(226, 181, 78, 0.3), transparent 70%), linear-gradient(180deg, rgba(36, 24, 15, 0.55), rgba(36, 24, 15, 0.82));
}
.closing-inner { max-width: 44rem; }
.closing h2 { font-size: clamp(2.4rem, 1.4rem + 4vw, 4.4rem); line-height: 1.05; }
.closing p { margin-block: var(--space-6) var(--space-8); font-size: 1.15rem; color: #EADBC6; }

/* ---------- Part of Selah ---------- */
.parent { background: var(--color-bg); padding-block: clamp(3rem, 2rem + 3vw, 4.5rem); }
.parent-inner {
  display: grid; gap: var(--space-6); align-items: center; justify-items: center; text-align: center;
  padding: clamp(1.75rem, 1rem + 3vw, 3rem); border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #F0E6F7 0%, var(--ivory) 100%);
  border: 1px solid rgba(62, 26, 99, 0.18); box-shadow: var(--shadow-soft);
}
.parent-mark { width: 56px; height: 56px; }
.parent h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); color: var(--royal); }
.parent h2 em { color: var(--royal); }
.parent p { color: #4E3F5A; margin-top: var(--space-3); max-width: 36rem; }
.parent-btn { --btn-bg: var(--royal); --btn-fg: #FAF6F0; }
@media (prefers-color-scheme: dark) {
  .parent-inner { background: linear-gradient(135deg, #2C1A3B 0%, #22102F 100%); border-color: rgba(184, 156, 226, 0.25); }
  .parent h2, .parent h2 em { color: #F3EDF7; }
  .parent p { color: #CFC2DA; }
  .parent-btn { --btn-bg: var(--gold-bright); --btn-fg: #22102F; }
}
@media (min-width: 900px) {
  .parent-inner { grid-template-columns: auto 1fr auto; justify-items: start; text-align: left; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: #EADBC6; }
.site-footer::before { content: ""; display: block; height: 8px; background: var(--weave); }
.footer-grid { display: grid; gap: var(--space-8); padding-block: var(--space-16) var(--space-10); }
.footer-brand img { height: 2.6rem; width: auto; }
.footer-line { font-size: var(--text-sm); color: #CDBBA4; max-width: 30ch; margin-top: var(--space-4); }
.footer-head { font-family: var(--font-body); font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: var(--space-4); }
.footer-links { display: grid; gap: var(--space-2); }
.footer-links a { color: #F5E9D7; text-decoration: none; font-weight: 600; font-size: var(--text-sm); text-underline-offset: 4px; }
.footer-links a:hover { color: var(--gold-bright); text-decoration: underline; }
.footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4);
  padding-block: var(--space-6) var(--space-8); border-top: 1px solid rgba(245, 233, 215, 0.14);
  font-size: 0.82rem; color: #B8A48C;
}
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-reveal].is-visible { opacity: 1; transform: none; transition: opacity 1s var(--ease-breath), transform 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
.motion-off [data-reveal] { opacity: 1 !important; transform: none !important; }
.motion-off .hero-glow, .motion-off .witness-sun { animation: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- Quiz pop-up (homepage) ---------- */
.quiz-pop {
  position: fixed; inset: 0; margin: auto; padding: 0; border: 0; overflow: hidden;
  width: min(100% - 2rem, 44rem); max-height: calc(100dvh - 2rem);
  border-radius: var(--radius-lg); color: var(--ivory);
  background: radial-gradient(120% 100% at 85% 0%, #5A3A24 0%, var(--espresso) 45%, var(--night) 100%);
  box-shadow: 0 0 0 1px rgba(226, 181, 78, 0.4), 0 40px 80px -20px rgba(0, 0, 0, 0.6);
}
.quiz-pop[open] { display: grid; grid-template-columns: 0.8fr 1.2fr; animation: pop-in 0.6s var(--ease-out); }
.quiz-pop::backdrop { background: rgba(20, 12, 7, 0.62); backdrop-filter: blur(3px); animation: fade-in 0.4s ease; }
.quiz-pop::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--weave); }
@keyframes pop-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } }
.quiz-pop-photo { padding: 1.75rem 0 1.75rem 1.75rem; display: flex; align-items: center; }
.quiz-pop-photo .arch { width: 100%; aspect-ratio: 2 / 3; }
.quiz-pop-copy { padding: 2.5rem 2rem 2.25rem; overflow-y: auto; }
.quiz-pop-copy .eyebrow { color: var(--gold-bright); }
.quiz-pop h2 { color: #FBF3E6; font-size: clamp(1.6rem, 1.2rem + 1.5vw, 2.2rem); font-weight: 500; }
.quiz-pop h2 em { color: var(--gold-bright); }
.quiz-pop-copy p:not(.eyebrow) { color: #EADBC6; margin-block: var(--space-4) var(--space-6); }
.quiz-pop-cta { width: 100%; }
.quiz-pop-later {
  display: block; margin: var(--space-4) auto 0; padding: 0.5rem; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: var(--text-sm); font-weight: 600; color: #CDBBA4;
  text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(205, 187, 164, 0.4);
}
.quiz-pop-later:hover { color: var(--gold-bright); }
.quiz-pop-close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; border: 0; cursor: pointer; color: var(--ivory);
  background: rgba(250, 243, 230, 0.1); transition: background-color 0.2s, color 0.2s, transform 0.3s var(--ease-out);
}
.quiz-pop-close:hover { background: var(--gold-bright); color: var(--night); transform: rotate(90deg); }
.quiz-pop :focus-visible { outline-color: var(--gold-bright); }
@media (max-width: 640px) {
  .quiz-pop { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92dvh; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .quiz-pop[open] { grid-template-columns: 1fr; animation-name: sheet-in; }
  .quiz-pop-photo { display: none; }
  .quiz-pop-copy { padding: 2.75rem 1.25rem calc(1.75rem + env(safe-area-inset-bottom)); }
  @keyframes sheet-in { from { transform: translateY(100%); } to { transform: none; } }
}
