/* Monastic — navy, oxblood, linen, brass. Caslon (the face of the Declaration) for display, Franklin for reading, Fell for scripture only. */
:root {
  --navy: #0a1730;
  --navy-deep: #060e1f;
  --red: #9e1b26;
  --red-bright: #c22a36;
  --linen: #e9e1cf;
  --linen-dim: #cfc6b1;
  --brass: #c9a45c;
  --iron: #2a2522;
  --ink: #1a1613;

  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --serif: "Libre Caslon Text", Georgia, serif;
  --scripture: "IM Fell English", Georgia, serif;
  --sans: "Libre Franklin", "Franklin Gothic Medium", Arial, sans-serif;

  --gutter: clamp(1.25rem, 4vw, 4rem);
  --section: clamp(5rem, 12vw, 11rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--linen);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote, ol, ul { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 400; line-height: 1.04; letter-spacing: -0.012em; text-wrap: balance; }
h2 { font-size: clamp(2.2rem, 5.2vw, 4.6rem); }
h3 { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; line-height: 1.2; }
p { text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), 82rem); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--linen); color: var(--ink); padding: .75rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  font: 600 1rem/1 var(--sans);
  color: #fff;
  background: var(--red);
  border: 1px solid var(--red);
  padding: 1.05rem 1.6rem;
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--red-bright); border-color: var(--red-bright); }
.btn-small { padding: .7rem 1.1rem; font-size: .9375rem; }
.text-link { font-weight: 500; text-underline-offset: .3em; text-decoration-thickness: 1px; }
.text-link:hover { color: var(--brass); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; gap: 2rem;
  padding: 1rem var(--gutter);
  transition: background .3s, padding .3s, box-shadow .3s;
}
.nav.is-solid { background: rgba(6, 14, 31, .92); backdrop-filter: blur(10px); padding-block: .6rem; box-shadow: 0 1px 0 rgba(233, 225, 207, .12); }
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: .4rem; text-decoration: none; }
.brand-slogan { font-family: var(--serif); font-style: italic; font-size: .95rem; line-height: 1; color: var(--brass); white-space: nowrap; }
.brand img { height: 1.5rem; width: auto; }
.footer .brand img { height: 1.75rem; }
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; }
.nav-links a { font-size: .9375rem; font-weight: 500; text-decoration: none; opacity: .85; }
.nav-links a:hover { opacity: 1; color: var(--brass); }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav .btn { margin-left: auto; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: var(--navy-deep); }
.hero-stage { position: relative; height: 100vh; height: 100svh; min-height: 36rem; overflow: hidden; }
.hero-media, .hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 60% 50%; transform-origin: 68% 50%; will-change: transform; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 14, 31, .88) 0%, rgba(6, 14, 31, .55) 38%, rgba(6, 14, 31, 0) 66%),
    linear-gradient(0deg, rgba(6, 14, 31, .7) 0%, rgba(6, 14, 31, 0) 32%),
    linear-gradient(180deg, rgba(6, 14, 31, .55) 0%, rgba(6, 14, 31, 0) 22%);
}
.hero-copy {
  position: absolute; left: var(--gutter); bottom: clamp(4.5rem, 12vh, 8rem);
  max-width: 60rem;
}
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 6.4rem); line-height: .98; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.hero h1 .line > span { display: block; }
.hero-lede { margin-top: 1.6rem; max-width: 34rem; font-size: clamp(1.02rem, 1.25vw, 1.2rem); color: rgba(233, 225, 207, .9); }
.hero-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2rem; }

.hero-verse {
  position: absolute; inset: 0;
  display: grid; place-content: center; justify-items: center;
  padding: 0 var(--gutter);
  text-align: center;
  opacity: 0; visibility: hidden;
  pointer-events: none;
}
.hero-verse p { font-family: var(--scripture); font-style: italic; font-size: clamp(1.5rem, 3.4vw, 3rem); line-height: 1.28; max-width: 22em; text-shadow: 0 2px 30px rgba(0, 0, 0, .8); }
.hero-verse cite { display: block; margin-top: 1.5rem; font-family: var(--sans); font-style: normal; font-weight: 500; font-size: 1rem; color: var(--brass); }

.hero-cue { position: absolute; right: var(--gutter); bottom: 2rem; width: 1px; height: 4.5rem; background: rgba(233, 225, 207, .25); overflow: hidden; }
.hero-cue span { position: absolute; inset: 0; background: var(--linen); animation: cue 2.2s cubic-bezier(.7, 0, .3, 1) infinite; }
@keyframes cue { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

@media (max-width: 699px) {
  .hero-media img { object-position: 50% 60%; transform-origin: 50% 75%; }
  .hero-shade { background: linear-gradient(180deg, rgba(6, 14, 31, .82) 0%, rgba(6, 14, 31, .6) 45%, rgba(6, 14, 31, .1) 72%, rgba(6, 14, 31, .55) 100%); }
  .hero-copy { top: 6.5rem; bottom: auto; right: var(--gutter); }
  .hero-cue { display: none; }
}

/* ---------- about (linen) ---------- */
.about { background: var(--linen); color: var(--ink); padding-block: var(--section); }
.about-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 7vw, 7rem); align-items: center; }
.about-photo, .serve-card figure, .convictions-photos figure { overflow: hidden; background: var(--iron); }
.about-photo { aspect-ratio: 4 / 5; }
.about-photo img, .serve-card img, .convictions-photos img { width: 100%; height: 118%; object-fit: cover; }
.about-text h2 { color: var(--navy); margin-bottom: 2rem; }
.about-text p { max-width: 36rem; }
.about-text p + p { margin-top: 1.2rem; }
.dropcap::first-letter { font-family: var(--display); float: left; font-size: 4.7em; line-height: .76; margin-top: .05em; padding-right: .08em; color: var(--red); }
@media (max-width: 800px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-photo { max-width: 26rem; }
}

/* ---------- 13 stars ---------- */
.stars { background: var(--linen); color: var(--red); padding-bottom: clamp(2rem, 5vw, 4rem); }
.stars svg { display: block; width: min(70%, 26rem); margin-inline: auto; overflow: visible; }

/* ---------- who we serve (linen) ---------- */
.serve { background: var(--linen); color: var(--ink); padding-block: clamp(2rem, 5vw, 4rem) var(--section); }
.section-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 2rem clamp(2rem, 6vw, 6rem); align-items: end; margin-bottom: clamp(3rem, 7vw, 6rem); }
.section-head h2 { color: var(--navy); }
.section-head p { max-width: 30rem; }
.serve-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 3rem); }
.serve-card figure { aspect-ratio: 4 / 5; margin-bottom: 1.5rem; }
.serve-card-low { margin-top: clamp(2rem, 7vw, 7rem); }
.serve-card h3 { color: var(--navy); margin-bottom: .6rem; }
.serve-card p { font-size: 1rem; }
@media (max-width: 800px) {
  .section-head, .serve-grid { grid-template-columns: 1fr; }
  .serve-card-low { margin-top: 0; }
  .serve-card + .serve-card { margin-top: 2rem; }
}

/* ---------- services (navy, horizontal on desktop) ---------- */
.services { background: var(--navy); position: relative; }
.services::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: var(--red); }
.services-pin { overflow: hidden; }
.services-track { display: flex; flex-direction: column; gap: 0; padding: var(--section) var(--gutter); }
.services-intro { max-width: 38rem; margin-bottom: 3.5rem; }
.services-intro h2 { margin-bottom: 1.5rem; }
.services-intro p { color: var(--linen-dim); max-width: 30rem; }
.services-hint { display: none; }
.service { padding: 2rem 0; border-top: 1px solid rgba(233, 225, 207, .18); display: grid; grid-template-columns: 3rem 1fr; gap: .5rem 1.25rem; }
.service svg { width: 2.4rem; height: 2.4rem; grid-row: span 2; fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { font-size: 1.75rem; }
.service p { color: var(--linen-dim); font-size: 1rem; max-width: 34rem; }
.service-feature h3 { color: #fff; }
.service-feature svg { stroke: var(--red-bright); }

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .has-motion .services-pin { height: 100vh; display: flex; align-items: center; }
  .has-motion .services-track { flex-direction: row; align-items: stretch; flex-wrap: nowrap; width: max-content; padding-block: 0; gap: 0; will-change: transform; }
  .has-motion .services-intro { flex: 0 0 min(40rem, 46vw); margin: 0 clamp(3rem, 6vw, 7rem) 0 0; align-self: center; }
  .has-motion .services-hint { display: block; margin-top: 2.5rem; font-family: var(--serif); font-style: italic; color: var(--brass); }
  .has-motion .service {
    flex: 0 0 clamp(21rem, 28vw, 27rem);
    display: flex; flex-direction: column; gap: 0;
    min-height: min(34rem, 64vh);
    padding: 2.5rem 2.5rem 2.75rem;
    border-top: 0; border-left: 1px solid rgba(233, 225, 207, .18);
  }
  .has-motion .service:last-child { border-right: 1px solid rgba(233, 225, 207, .18); }
  .has-motion .service svg { width: 4rem; height: 4rem; stroke-width: 1.2; margin-bottom: auto; }
  .has-motion .service h3 { font-size: clamp(2rem, 2.7vw, 2.75rem); line-height: 1.08; margin: 3rem 0 1rem; }
  .has-motion .service p { font-size: 1.0625rem; }
  .has-motion .service-feature { background: var(--red); border-left-color: var(--red); }
  .has-motion .service-feature + .service { border-left-color: transparent; }
  .has-motion .service-feature p { color: #fff; }
  .has-motion .service-feature svg { stroke: #fff; }
}

/* ---------- results ---------- */
.results { position: relative; min-height: 100vh; display: grid; align-items: end; overflow: hidden; background: var(--navy-deep); padding-block: clamp(5rem, 10vw, 8rem); }
.results-bg { position: absolute; left: 0; top: -12%; width: 100%; height: 124%; object-fit: cover; object-position: 70% 50%; }
.results-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 14, 31, .72) 0%, rgba(6, 14, 31, .25) 45%, rgba(6, 14, 31, .82) 100%); }
.results-inner { position: relative; }
.results-number { font-family: var(--display); font-size: clamp(6.5rem, 25vw, 23rem); line-height: 1.12; letter-spacing: -.03em; font-variant-numeric: tabular-nums; color: #fff; text-shadow: 0 6px 60px rgba(6, 14, 31, .55); }
.results-number .times { color: var(--red-bright); font-style: italic; margin-left: .04em; }
.results-text { margin-top: clamp(.5rem, 1vw, 1rem); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 1.25rem clamp(2rem, 6vw, 6rem); align-items: start; }
.results-text h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); }
.results-text p { max-width: 34rem; }
@media (max-width: 800px) { .results-text { grid-template-columns: 1fr; } }

/* ---------- process ---------- */
.process { position: relative; padding-block: var(--section); background: var(--navy-deep); overflow: hidden; }
.process-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 80% 50%; }
.process-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6, 14, 31, .96) 0%, rgba(6, 14, 31, .86) 45%, rgba(6, 14, 31, .35) 100%); }
.process-inner { position: relative; }
.process h2 { margin-bottom: clamp(3rem, 6vw, 5rem); }
.steps { list-style: none; padding: 0; counter-reset: step; position: relative; max-width: 40rem; }
.steps::before { content: ""; position: absolute; left: 1.35rem; top: .5rem; bottom: .5rem; width: 1px; background: rgba(233, 225, 207, .2); }
.steps::after { content: ""; position: absolute; left: 1.35rem; top: .5rem; bottom: .5rem; width: 1px; background: var(--brass); transform-origin: top; transform: scaleY(var(--progress, 1)); }
.steps li { counter-increment: step; position: relative; padding: 0 0 2.75rem 4.5rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: -.2rem; z-index: 1;
  width: 2.75rem; height: 2.75rem; border-radius: 50%;
  display: grid; place-items: center;
  font: 600 1rem/1 var(--sans);
  background: var(--navy-deep); color: var(--linen); border: 1px solid rgba(233, 225, 207, .35);
  transition: background .4s, border-color .4s, color .4s;
}
.steps li.is-on::before { background: var(--brass); border-color: var(--brass); color: var(--navy-deep); }
.steps h3 { margin-bottom: .4rem; }
.steps p { color: var(--linen-dim); max-width: 32rem; }
@media (max-width: 800px) {
  .process-shade { background: rgba(6, 14, 31, .88); }
}

/* ---------- convictions (linen) ---------- */
.convictions { background: var(--linen); color: var(--ink); padding-block: var(--section); }
.convictions-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(2.5rem, 7vw, 7rem); align-items: center; }
.convictions-text h2 { color: var(--navy); margin-bottom: 1.75rem; }
.convictions-text > p { max-width: 34rem; font-size: 1.15rem; }
.beliefs { list-style: none; padding: 0; margin-top: 2.5rem; max-width: 36rem; }
.beliefs li { padding: 1.1rem 0; border-top: 1px solid rgba(26, 22, 19, .2); }
.beliefs li:last-child { border-bottom: 1px solid rgba(26, 22, 19, .2); }
.beliefs strong { font-family: var(--serif); font-weight: 400; font-size: 1.35rem; color: var(--red); margin-right: .35rem; }
.convictions-photos { position: relative; padding-bottom: 22%; }
.photo-a { aspect-ratio: 4 / 5; width: 78%; }
.photo-b { aspect-ratio: 4 / 5; width: 48%; position: absolute; right: 0; bottom: 0; box-shadow: 0 0 0 .6rem var(--linen); }
@media (max-width: 800px) {
  .convictions-grid { grid-template-columns: 1fr; }
  .convictions-photos { max-width: 28rem; }
}

/* ---------- contact ---------- */
.contact { position: relative; padding-block: var(--section); overflow: hidden; background: var(--navy-deep); }
.contact-bg { position: absolute; left: 0; top: -10%; width: 100%; height: 120%; object-fit: cover; object-position: 60% 50%; }
.contact-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6, 14, 31, .78), rgba(6, 14, 31, .62) 50%, rgba(6, 14, 31, .9)); }
.contact { min-height: 86vh; display: grid; align-items: center; }
.contact-inner { position: relative; }
.contact-inner h2 { margin-bottom: 1.5rem; max-width: 54rem; }
.contact-inner p { max-width: 32rem; font-size: 1.15rem; margin-bottom: 2.25rem; }
.btn-large { padding: 1.3rem 2.2rem; font-size: 1.125rem; }

/* ---------- booking popup ---------- */
.book {
  width: min(100% - 2rem, 62rem); max-width: none; height: min(100% - 2rem, 52rem); max-height: none;
  padding: 0; border: 0; background: var(--linen); color: var(--ink);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.book[open] { display: flex; flex-direction: column; animation: book-in .35s cubic-bezier(.2, .8, .2, 1); }
.book::backdrop { background: rgba(6, 14, 31, .8); backdrop-filter: blur(4px); }
@keyframes book-in { from { opacity: 0; transform: translateY(24px); } }
.book-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem .9rem 1.5rem; background: var(--navy); color: var(--linen); border-bottom: 4px solid var(--red); }
.book-head h2 { font-size: 1.5rem; line-height: 1.2; }
.book-close { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; background: none; border: 1px solid rgba(233, 225, 207, .3); color: var(--linen); cursor: pointer; }
.book-close:hover { background: rgba(233, 225, 207, .12); }
.book-close svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.book-body { position: relative; flex: 1; min-height: 0; background: #fff; }
.book-body iframe { position: relative; width: 100%; height: 100%; border: 0; display: block; }
.book-loading { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(26, 22, 19, .6); }
.book-fallback { padding: .7rem 1.5rem; font-size: .875rem; background: var(--linen); border-top: 1px solid rgba(26, 22, 19, .15); }
.book-fallback a { color: var(--red); }
@media (prefers-reduced-motion: reduce) { .book[open] { animation: none; } }

/* ---------- footer ---------- */
.footer { background: var(--navy-deep); border-top: 6px solid var(--red); padding-block: 3rem; }
.footer-grid { display: grid; grid-template-columns: auto 1fr auto; gap: 1.5rem 3rem; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.footer-links a { font-size: .9375rem; text-decoration: none; opacity: .8; }
.footer-links a:hover { opacity: 1; color: var(--brass); }
.footer-motto { font-family: var(--serif); font-size: 1.25rem; color: var(--brass); }
.footer-legal { grid-column: 1 / -1; font-size: .875rem; color: var(--linen-dim); }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- motion helpers ---------- */
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.split .w > span { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-cue span { animation: none; }
  .hero-verse { position: absolute; inset: auto var(--gutter) 1.5rem auto; display: block; opacity: 1; visibility: visible; text-align: right; padding: 0; max-width: 22rem; }
  .hero-verse p { font-size: 1rem; }
  .hero-verse cite { margin-top: .4rem; font-size: .875rem; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 699px) { .hero-verse { display: none; } }

/* ---------- intro: dictionary entry (about 4.5s, then lifts like a page) ---------- */
.loader { display: none; }
.is-loading { overflow: hidden; }
.is-loading .loader {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: var(--gutter);
  background: var(--linen); color: var(--ink);
  transition: transform .85s cubic-bezier(.76, 0, .24, 1);
}
.is-leaving .loader { transform: translateY(-100%); }
.loader-entry { width: min(100%, 52rem); }
.loader-word { font-family: var(--display); font-size: clamp(3.8rem, 13vw, 10.5rem); line-height: 1; color: var(--navy); display: flex; align-items: baseline; }
.loader-word span { display: block; overflow: hidden; padding-bottom: .1em; }
.loader-word b { display: block; font-weight: 400; transform: translateY(110%); animation: intro-rise .8s cubic-bezier(.2, .8, .2, 1) forwards; }
.loader-word span:nth-of-type(1) b { animation-delay: .15s; }
.loader-word span:nth-of-type(2) b { animation-delay: .3s; }
.loader-word span:nth-of-type(3) b { animation-delay: .45s; }
.loader-word i { font-style: normal; color: var(--red); margin: 0 -.02em; opacity: 0; animation: intro-fade .4s .85s forwards; }
.loader-pron { margin-top: 1rem; font-size: clamp(1.1rem, 2.2vw, 1.6rem); color: rgba(26, 22, 19, .75); opacity: 0; animation: intro-fade .5s .95s forwards; }
.loader-pron span { font-family: "Charis SIL", "Doulos SIL", "Gentium Plus", "Segoe UI", "Lucida Sans Unicode", "DejaVu Sans", var(--sans); letter-spacing: .02em; }
.loader-pron em { font-family: var(--serif); font-size: 1.15em; color: var(--red); margin-left: .75rem; }
.loader-rule { height: 1px; margin: 1.4rem 0 1.5rem; background: rgba(26, 22, 19, .4); transform: scaleX(0); transform-origin: left; animation: intro-rule .7s 1.1s cubic-bezier(.6, 0, .2, 1) forwards; }
.loader-def { font-family: var(--serif); font-size: clamp(1.3rem, 3vw, 2.3rem); line-height: 1.35; max-width: 42rem; }
.loader-def span { opacity: 0; animation: intro-fade .45s forwards; }
@keyframes intro-rise { to { transform: translateY(0); } }
@keyframes intro-fade { to { opacity: 1; } }
@keyframes intro-rule { to { transform: scaleX(1); } }
