/* ==========================================================================
   Bishop Ashley R. Deutschmann — deutschmann.co.uk
   Design system v3.0 — "Parchment & Ink"
   Hand-crafted static site. No frameworks, no build step.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette — light */
  --paper: #f7f2e6;
  --paper-2: #efe7d2;
  --card: #fdfaf1;
  --ink: #1b1712;
  --ink-2: #2b241b;
  --ink-soft: #57503f;
  --ink-mute: #6e6551;
  --line: rgba(27, 23, 18, 0.14);
  --line-soft: rgba(27, 23, 18, 0.08);

  /* Palette — dark */
  --dark: #16120e;
  --dark-2: #1e1913;
  --dark-3: #262017;
  --cream: #f2ead8;
  --cream-80: rgba(242, 234, 216, 0.82);
  --cream-60: rgba(242, 234, 216, 0.62);
  --cream-40: rgba(242, 234, 216, 0.42);
  --gold-line: rgba(201, 162, 74, 0.22);

  /* Accents */
  --gold: #c9a24a;
  --gold-bright: #e2c06a;
  --gold-pale: #efd9a4;
  --gold-deep: #8a681f;
  --oxblood: #722f37;
  --oxblood-bright: #a1525c;

  /* Type */
  --font-display: "Cormorant Garamond", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Source Serif 4", "Iowan Old Style", Georgia, "Times New Roman", serif;

  --fs-hero: clamp(3rem, 2.1rem + 4.6vw, 5.6rem);
  --fs-h1: clamp(2.5rem, 1.9rem + 3vw, 4.25rem);
  --fs-h2: clamp(2.15rem, 1.7rem + 2.2vw, 3.4rem);
  --fs-h3: clamp(1.6rem, 1.4rem + 1vw, 2.15rem);
  --fs-h4: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-lead: clamp(1.1rem, 1.02rem + 0.4vw, 1.3rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-tiny: 0.8125rem;

  /* Rhythm */
  --section: clamp(5rem, 3.6rem + 6vw, 8.75rem);
  --container: min(1180px, calc(100vw - 3rem));
  --container-wide: min(1320px, calc(100vw - 3rem));
  --header-h: 5.25rem;
  --header-h-small: 4.25rem;
  --radius: 10px;
  --radius-lg: 18px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-swift: cubic-bezier(0.55, 0, 0.1, 1);
  --dur: 0.7s;

  /* Shadows */
  --shadow-card: 0 2px 6px rgba(27, 23, 18, 0.05), 0 18px 44px -18px rgba(27, 23, 18, 0.22);
  --shadow-card-hover: 0 4px 10px rgba(27, 23, 18, 0.06), 0 32px 64px -20px rgba(27, 23, 18, 0.32);
  --shadow-book: 0 24px 48px -16px rgba(10, 7, 3, 0.55);
  --shadow-glow: 0 0 60px rgba(201, 162, 74, 0.18);

  /* Textures (inline SVG) */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  --crosses: url("data:image/svg+xml,%3Csvg width='72' height='72' viewBox='0 0 72 72' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23c9a24a' fill-opacity='0.5'%3E%3Cpath d='M42 40v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-36V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 40v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h-small) + 1.25rem);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.72;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: 0.01em;
  text-wrap: balance;
}

p { text-wrap: pretty; }

::selection { background: var(--gold); color: var(--dark); }

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

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

/* Skip link */
.skip-link {
  position: fixed;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--dark);
  color: var(--cream);
  font-size: var(--fs-small);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  transition: top 0.25s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

/* --------------------------------------------------------------------------
   3. Utilities
   -------------------------------------------------------------------------- */
.container { width: var(--container); margin-inline: auto; }
.container-wide { width: var(--container-wide); margin-inline: auto; }

.section { padding-block: var(--section); position: relative; }

.bg-paper { background: var(--paper); }
.bg-paper-2 { background: var(--paper-2); }

.bg-dark {
  background:
    radial-gradient(1100px 500px at 18% -10%, rgba(201, 162, 74, 0.09), transparent 60%),
    radial-gradient(900px 520px at 88% 112%, rgba(114, 47, 55, 0.12), transparent 60%),
    linear-gradient(180deg, var(--dark-2), var(--dark));
  color: var(--cream);
}

/* No blend modes here: blending a full-section overlay forces the compositor
   off its fast scrolling path and makes wheel scrolling feel sticky. */
.grain::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  background-size: 160px 160px;
  opacity: 0.04;
  pointer-events: none;
}
.bg-dark.grain::before { opacity: 0.05; }

.crosses::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--crosses);
  background-size: 72px 72px;
  opacity: 0.045;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 100%);
          mask-image: radial-gradient(80% 70% at 50% 30%, #000 30%, transparent 100%);
}

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

/* --------------------------------------------------------------------------
   4. Typography components
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.bg-dark .eyebrow, .on-dark .eyebrow { color: var(--gold); }

.eyebrow::before, .eyebrow--rules::after {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: 0.55;
}
.eyebrow--rules::after { background: linear-gradient(90deg, currentColor, transparent); }
.eyebrow--bare::before, .eyebrow--bare::after { display: none; }

.section-head { max-width: 46rem; margin-inline: auto; text-align: center; margin-bottom: clamp(3rem, 2.4rem + 3vw, 5rem); }
.section-head--left { text-align: left; margin-inline: 0; }
.section-head .eyebrow { margin-bottom: 1.1rem; }
.section-head h2 { font-size: var(--fs-h2); }
.section-head p { margin-top: 1.15rem; color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.6; }
.bg-dark .section-head p { color: var(--cream-60); }

.lead { font-size: var(--fs-lead); line-height: 1.65; color: var(--ink-soft); }
.bg-dark .lead { color: var(--cream-80); }

/* Ornamental divider: — ◆ — */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin: 1.4rem auto 0;
  color: var(--gold-deep);
}
.bg-dark .ornament { color: var(--gold); }
.ornament::before, .ornament::after {
  content: "";
  width: clamp(3rem, 6vw, 5rem);
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
}
.ornament::after { background: linear-gradient(90deg, currentColor, transparent); }
.ornament .gem {
  width: 7px; height: 7px;
  border: 1px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.9s var(--ease-out);
}
.is-inview .ornament .gem { transform: rotate(225deg); }

/* Drop cap */
.dropcap::first-letter {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 3.4em;
  line-height: 0.82;
  float: left;
  padding: 0.08em 0.12em 0 0;
  color: var(--oxblood);
}

/* Pull quote */
.pullquote {
  position: relative;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.3rem + 1.2vw, 2.2rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.35;
  color: var(--ink-2);
  padding-left: 1.6rem;
  border-left: 2px solid var(--gold);
}
.bg-dark .pullquote { color: var(--gold-pale); border-color: var(--gold-line); }
.pullquote cite {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-style: normal;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.bg-dark .pullquote cite { color: var(--cream-40); }

/* Star rating */
.stars { display: inline-flex; gap: 0.2rem; color: var(--gold); }
.stars svg { width: 17px; height: 17px; fill: currentColor; }
.stars--lg svg { width: 21px; height: 21px; }

/* --------------------------------------------------------------------------
   5. Buttons & links
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.02rem 1.9rem;
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out),
              background-color 0.35s var(--ease-out), border-color 0.35s var(--ease-out),
              color 0.35s var(--ease-out);
  will-change: transform;
}
.btn svg { width: 17px; height: 17px; flex: none; }
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--gold {
  background: linear-gradient(160deg, var(--gold-bright), var(--gold) 55%, #b18a35);
  color: #221a0e;
  box-shadow: 0 10px 26px -12px rgba(201, 162, 74, 0.65);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px -12px rgba(201, 162, 74, 0.8), var(--shadow-glow);
}
/* sheen sweep */
.btn--gold::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  left: -70%;
  width: 45%;
  background: linear-gradient(105deg, transparent, rgba(255, 252, 240, 0.5), transparent);
  transform: skewX(-22deg);
  transition: left 0.7s var(--ease-swift);
}
.btn--gold:hover::after { left: 125%; }

.btn--ghost {
  border: 1px solid var(--gold-line);
  color: var(--cream);
  background: rgba(242, 234, 216, 0.03);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.btn--ghost:hover {
  transform: translateY(-2px);
  border-color: var(--gold);
  background: rgba(201, 162, 74, 0.1);
}

.btn--outline {
  border: 1px solid rgba(27, 23, 18, 0.3);
  color: var(--ink);
  background: transparent;
}
.btn--outline:hover {
  transform: translateY(-2px);
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}

.btn--sm { padding: 0.72rem 1.3rem; font-size: 0.75rem; }

/* Arrow text link */
.link-more {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--oxblood);
  text-decoration: none;
}
.link-more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease-out); }
.link-more:hover svg { transform: translateX(4px); }
.link-more::after {
  content: "";
  position: absolute;
  left: 0; right: 100%; bottom: -3px;
  height: 1px;
  background: currentColor;
  transition: right 0.35s var(--ease-out);
}
.link-more { position: relative; }
.link-more:hover::after { right: 0; }
.bg-dark .link-more { color: var(--gold); }

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: height 0.4s var(--ease-out), background-color 0.4s var(--ease-out),
              box-shadow 0.4s var(--ease-out), border-color 0.4s var(--ease-out);
  border-bottom: 1px solid transparent;
  color: var(--cream);
}
.site-header.is-scrolled {
  height: var(--header-h-small);
  background: rgba(22, 18, 14, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  border-bottom-color: rgba(201, 162, 74, 0.14);
  box-shadow: 0 12px 32px -18px rgba(0, 0, 0, 0.6);
}

.header-inner {
  width: var(--container-wide);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
  color: var(--cream);
}
.brand svg { width: 38px; height: 38px; flex: none; transition: transform 0.5s var(--ease-out); }
.brand:hover svg { transform: rotate(8deg); }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1.05;
}
.brand-role {
  display: block;
  font-family: var(--font-body);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 0.22rem;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .brand-name { font-size: 1.08rem; }
  .brand-role { font-size: 0.54rem; letter-spacing: 0.26em; }
  .brand svg { width: 32px; height: 32px; }
}

.site-nav { display: flex; align-items: center; gap: 2rem; }
.site-nav a {
  position: relative;
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--cream-80);
  padding: 0.4rem 0;
  transition: color 0.3s;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease-out);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--gold-bright); }
.site-nav a:hover::after, .site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta { display: inline-flex; }

/* Burger */
.nav-toggle {
  display: none;
  position: relative;
  z-index: 120;
  width: 44px; height: 44px;
  border-radius: 8px;
}
.nav-toggle span {
  position: absolute;
  left: 11px; right: 11px;
  height: 2px;
  background: var(--cream);
  border-radius: 2px;
  transition: transform 0.35s var(--ease-swift), opacity 0.25s, top 0.35s var(--ease-swift);
}
.nav-toggle span:nth-child(1) { top: 15px; }
.nav-toggle span:nth-child(2) { top: 21px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 21px; transform: rotate(-45deg); }

/* Mobile overlay nav */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.4rem;
  background:
    radial-gradient(900px 480px at 50% 0%, rgba(201, 162, 74, 0.1), transparent 60%),
    linear-gradient(180deg, #1e1913, #16120e);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease-out), visibility 0.4s;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 7vw, 2.6rem);
  font-weight: 600;
  color: var(--cream);
  text-decoration: none;
  padding: 0.55rem 1rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), color 0.3s;
}
.mobile-nav a:hover { color: var(--gold-bright); }
.mobile-nav.is-open a { opacity: 1; transform: none; }
.mobile-nav .mobile-cta {
  margin-top: 1.6rem;
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
}
.mobile-nav .m-ornament { margin-bottom: 1.2rem; opacity: 0; transition: opacity 0.6s 0.1s; }
.mobile-nav.is-open .m-ornament { opacity: 1; }

@media (max-width: 920px) {
  .site-nav, .header-cta { display: none; }
  .nav-toggle { display: block; }
}

/* Scroll progress bar */
.progress-bar {
  position: fixed;
  top: 0; left: 0;
  z-index: 101;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold), var(--gold-bright));
  transform-origin: left;
  transform: scaleX(0);
  pointer-events: none;
}

/* --------------------------------------------------------------------------
   7. Hero (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: calc(var(--header-h) + 2.5rem);
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(2.5rem, 5vw, 5rem);
}
/* Parallax targets: keep them on their own compositor layers */
.hero-book, .hero-copy { will-change: transform; }

.hero-copy .eyebrow { margin-bottom: 1.6rem; }

.hero h1 {
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 0.98;
  color: var(--cream);
  margin-bottom: 1.6rem;
}
.hero h1 .foil {
  display: block;
  font-weight: 700;
  background: linear-gradient(100deg, #a8842e 0%, var(--gold-bright) 28%, #f4e3ae 50%, var(--gold-bright) 72%, #a8842e 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: foil-sheen 9s ease-in-out infinite;
}
@keyframes foil-sheen {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero-sub {
  max-width: 34rem;
  font-size: var(--fs-lead);
  line-height: 1.68;
  color: var(--cream-80);
  margin-bottom: 2.2rem;
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 2.4rem; }

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem 1.1rem;
  font-size: var(--fs-small);
  color: var(--cream-60);
}
.hero-trust .sep { width: 4px; height: 4px; transform: rotate(45deg); background: var(--gold); opacity: 0.6; }

/* Hero book composition */
.hero-book {
  position: relative;
  display: flex;
  justify-content: center;
  perspective: 1200px;
}
.hero-scene {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
}
.hero-book::before {
  content: "";
  position: absolute;
  inset: -14% -18%;
  background: radial-gradient(48% 44% at 50% 46%, rgba(201, 162, 74, 0.22), transparent 70%);
  filter: blur(6px);
  animation: glow-pulse 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glow-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}

.hero-book .book-back {
  position: absolute;
  width: 56%;
  top: 9%;
  left: 2%;
  transform: rotate(-9deg);
  border-radius: 4px 8px 8px 4px;
  box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.5);
  opacity: 0.55;
  filter: brightness(0.62) saturate(0.85);
}

.hero-book .book-main {
  position: relative;
  width: min(64%, 330px);
  animation: floaty 7s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.hero-chip {
  position: absolute;
  left: max(-1.5rem, -4vw);
  bottom: 8%;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  border-radius: 12px;
  background: rgba(30, 25, 19, 0.78);
  border: 1px solid rgba(201, 162, 74, 0.3);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.6);
  color: var(--cream);
  font-size: var(--fs-tiny);
  text-decoration: none;
  transition: transform 0.35s var(--ease-out), border-color 0.35s;
  animation: floaty 7s 0.6s ease-in-out infinite;
}
.hero-chip:hover { transform: translateY(-3px); border-color: var(--gold); }
.hero-chip strong { display: block; font-size: 0.84rem; letter-spacing: 0.02em; }
.hero-chip .stars svg { width: 12px; height: 12px; }
.hero-chip em { font-style: normal; color: var(--cream-60); }

/* Book frame (tilt target, shared) */
.book-frame {
  position: relative;
  border-radius: 4px 10px 10px 4px;
  box-shadow: var(--shadow-book);
  transform-style: preserve-3d;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.book-frame img { border-radius: inherit; width: 100%; }
/* spine + page-edge light */
.book-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.32) 0%, rgba(255, 255, 255, 0.12) 1.6%, rgba(0, 0, 0, 0.12) 3.4%, transparent 6.5%),
    linear-gradient(90deg, transparent 94%, rgba(255, 255, 255, 0.1) 98%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
  z-index: 2;
}
/* glare that follows the pointer (via --mx/--my set in JS) */
.book-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(58% 42% at var(--mx, 50%) var(--my, 30%), rgba(255, 250, 235, 0.16), transparent 68%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
  z-index: 2;
}
[data-tilt]:hover .book-frame::after, .book-frame[data-tilt]:hover::after { opacity: 1; }

/* Scroll cue */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  color: var(--cream-40);
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  font-family: var(--font-body);
  text-decoration: none;
  transition: color 0.3s;
}
.scroll-cue:hover { color: var(--gold); }
.scroll-cue .line {
  width: 1px;
  height: 44px;
  background: linear-gradient(180deg, var(--gold), transparent);
  overflow: hidden;
  position: relative;
}
.scroll-cue .line::after {
  content: "";
  position: absolute;
  top: -50%;
  left: 0;
  width: 100%;
  height: 50%;
  background: var(--cream);
  animation: cue-drop 2.2s var(--ease-swift) infinite;
}
@keyframes cue-drop {
  0% { top: -50%; }
  70%, 100% { top: 110%; }
}

@media (max-width: 920px) {
  .hero { padding-top: calc(var(--header-h) + 1rem); }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .eyebrow { margin-inline: auto; }
  .hero-sub { margin-inline: auto; }
  .hero-ctas, .hero-trust { justify-content: center; }
  .hero-book { order: -1; margin-top: 1rem; }
  .hero-book .book-main { width: min(52%, 250px); }
  .hero-chip { left: 4%; bottom: 2%; }
  .scroll-cue { display: none; }
}

/* --------------------------------------------------------------------------
   8. Verse ribbon
   -------------------------------------------------------------------------- */
.verse-ribbon {
  position: relative;
  padding: 2.6rem 1.5rem;
  text-align: center;
  background: var(--paper);
  border-bottom: 1px solid var(--line-soft);
}
.verse-ribbon p {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1.1rem + 1.4vw, 1.9rem);
  font-style: italic;
  font-weight: 500;
  color: var(--ink-2);
}
.verse-ribbon .cross-mark { color: var(--gold-deep); font-style: normal; padding-inline: 1rem; }

/* --------------------------------------------------------------------------
   9. Featured book (split)
   -------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2.75rem, 5vw, 5.5rem);
  align-items: center;
}

.feature-cover { perspective: 1100px; padding: 1rem clamp(0.5rem, 3vw, 2.5rem); }
.feature-cover .book-frame { max-width: 380px; margin-inline: auto; }
/* shelf shadow */
.cover-shelf { position: relative; }
.cover-shelf::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -26px;
  transform: translateX(-50%);
  width: 74%;
  height: 30px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(27, 23, 18, 0.32), transparent 72%);
  filter: blur(2px);
  pointer-events: none;
}

.feature-copy .eyebrow { margin-bottom: 1.2rem; }
.feature-copy h2 { font-size: var(--fs-h2); margin-bottom: 0.5rem; }
.feature-copy .subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-h4);
  font-weight: 500;
  color: var(--gold-deep);
  margin-bottom: 1.4rem;
}
.feature-copy > p { margin-bottom: 1.15rem; color: var(--ink-soft); }
.feature-copy .feature-rating { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 1.5rem; color: var(--ink-soft); font-size: var(--fs-small); }

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.6rem 0 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem 1.75rem;
}
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  font-size: var(--fs-small);
  color: var(--ink-2);
  line-height: 1.5;
}
.check-list svg {
  position: absolute;
  left: 0;
  top: 0.18em;
  width: 17px; height: 17px;
  color: var(--gold-deep);
}

.feature-quote {
  border-top: 1px solid var(--line);
  margin-top: 2.1rem;
  padding-top: 1.6rem;
}
.feature-quote p {
  font-family: var(--font-display);
  font-size: 1.28rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--ink-2);
}
.feature-quote footer {
  margin-top: 0.7rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: var(--fs-tiny);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.1rem 1.5rem; }
.cta-row--center { justify-content: center; }

@media (max-width: 920px) {
  .feature-grid { grid-template-columns: 1fr; }
  .feature-cover .book-frame { max-width: 290px; }
  .check-list { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   10. Book cards / shelf grid
   -------------------------------------------------------------------------- */
.shelf-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 2.4vw, 2.2rem);
}
.shelf-grid--bibles { max-width: 1180px; margin-inline: auto; }

.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem 1.6rem;
  box-shadow: var(--shadow-card);
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s;
}
.book-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(201, 162, 74, 0.4);
}
/* gold top hairline that grows on hover */
.book-card::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 3.5rem;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: width 0.5s var(--ease-out), opacity 0.5s;
}
.book-card:hover::before { width: 82%; opacity: 1; }

.book-card .cover-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: clamp(200px, 24vw, 264px);
  margin-bottom: 1.1rem;
  perspective: 900px;
}
.book-card .book-frame {
  width: auto;
  max-height: 100%;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
}
.book-card .book-frame img { max-height: clamp(200px, 24vw, 264px); width: auto; }
.book-card:hover .book-frame { transform: translateY(-6px) rotateX(4deg) rotateY(-5deg) scale(1.02); }

.book-card .card-shelf {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin-bottom: 1.2rem;
}

.book-card h3 {
  font-size: 1.42rem;
  line-height: 1.15;
  margin-bottom: 0.3rem;
}
.book-card h3 a { text-decoration: none; transition: color 0.3s; }
.book-card h3 a:hover { color: var(--oxblood); }
/* stretched link */
.book-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }

.book-card .card-sub {
  font-style: italic;
  font-size: var(--fs-tiny);
  color: var(--gold-deep);
  margin-bottom: 0.7rem;
}
.book-card .card-desc {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 1.3rem;
}

.book-card .card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  border-top: 1px solid var(--line-soft);
  padding-top: 1.1rem;
}
.book-card .card-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  transition: color 0.3s;
}
.book-card:hover .card-more { color: var(--oxblood); }
.book-card .card-more svg { width: 14px; height: 14px; transition: transform 0.3s var(--ease-out); }
.book-card:hover .card-more svg { transform: translateX(3px); }

.book-card .card-buy {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.6rem 1.05rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: #221a0e;
  background: linear-gradient(160deg, var(--gold-bright), var(--gold));
  border-radius: 8px;
  box-shadow: 0 8px 18px -10px rgba(201, 162, 74, 0.7);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}
.book-card .card-buy:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -10px rgba(201, 162, 74, 0.9); }
.book-card .card-buy svg { width: 13px; height: 13px; }

/* On dark band */
.bg-dark .book-card {
  background: linear-gradient(180deg, rgba(242, 234, 216, 0.05), rgba(242, 234, 216, 0.02));
  border-color: rgba(201, 162, 74, 0.16);
  box-shadow: 0 24px 48px -22px rgba(0, 0, 0, 0.6);
}
.bg-dark .book-card h3 a:hover { color: var(--gold-bright); }
.bg-dark .book-card .card-sub { color: var(--gold); }
.bg-dark .book-card .card-desc { color: var(--cream-60); }
.bg-dark .book-card .card-foot { border-top-color: rgba(242, 234, 216, 0.1); }
.bg-dark .book-card .card-more { color: var(--cream-40); }
.bg-dark .book-card:hover .card-more { color: var(--gold-bright); }

@media (max-width: 1080px) { .shelf-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .shelf-grid { grid-template-columns: 1fr; } .book-card .cover-wrap { height: 250px; } .book-card .book-frame img { max-height: 250px; } }

/* --------------------------------------------------------------------------
   11. Bible band extras
   -------------------------------------------------------------------------- */
.bible-features {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.05rem;
}
.bible-features li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  color: var(--cream-80);
  font-size: var(--fs-small);
  line-height: 1.55;
}
.bible-features .fico {
  flex: none;
  width: 38px; height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid var(--gold-line);
  background: rgba(201, 162, 74, 0.07);
  color: var(--gold);
}
.bible-features .fico svg { width: 18px; height: 18px; }
.bible-features strong { display: block; color: var(--cream); font-family: var(--font-display); font-size: 1.12rem; letter-spacing: 0.02em; }

.bible-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.bible-layout .shelf-grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 920px) {
  .bible-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bible-layout .shelf-grid { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   12. Stats strip
   -------------------------------------------------------------------------- */
.stats-strip {
  border-top: 1px solid var(--gold-line);
  border-bottom: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(201, 162, 74, 0.05), transparent);
  padding-block: 2.6rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: center;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 2rem + 2vw, 3.6rem);
  font-weight: 600;
  color: var(--gold-bright);
  line-height: 1;
}
.stat b span { font-size: inherit; }
.stat > span {
  display: block;
  margin-top: 0.55rem;
  font-size: var(--fs-tiny);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-60);
}
@media (max-width: 640px) { .stats-grid { grid-template-columns: 1fr; gap: 2rem; } }

/* --------------------------------------------------------------------------
   13. About teaser & gallery marquee
   -------------------------------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(2.75rem, 5.5vw, 6rem);
  align-items: center;
}

.arch-frame {
  position: relative;
  max-width: 400px;
  margin-inline: auto;
}
.arch-frame img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  object-fit: cover;
  object-position: top;
  border-radius: 999px 999px var(--radius) var(--radius);
  border: 1px solid rgba(138, 104, 31, 0.35);
  box-shadow: var(--shadow-card-hover);
}
.arch-frame::before {
  content: "";
  position: absolute;
  inset: -14px;
  border: 1px solid rgba(138, 104, 31, 0.3);
  border-radius: 999px 999px calc(var(--radius) + 10px) calc(var(--radius) + 10px);
  pointer-events: none;
  transition: inset 0.5s var(--ease-out);
}
.arch-frame:hover::before { inset: -9px; }
.arch-frame .arch-cross {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--gold-deep);
  background: inherit;
}

.about-copy .eyebrow { margin-bottom: 1.2rem; }
.about-copy h2 { font-size: var(--fs-h2); margin-bottom: 1.5rem; }
.about-copy p { color: var(--ink-soft); margin-bottom: 1.15rem; }
.about-copy .pullquote { margin: 1.9rem 0; }

/* Ministry marquee */
.gallery-marquee {
  --gap: 1.2rem;
  position: relative;
  overflow: hidden;
  margin-top: clamp(3rem, 5vw, 4.5rem);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee-track {
  display: flex;
  gap: var(--gap);
  width: max-content;
  animation: marquee 46s linear infinite;
}
.gallery-marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-50% - var(--gap) / 2)); }
}

.gallery-item {
  position: relative;
  flex: none;
  width: clamp(220px, 24vw, 300px);
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  filter: sepia(0.22) saturate(0.86);
  transform: scale(1.015);
  transition: filter 0.6s var(--ease-out), transform 0.8s var(--ease-out);
}
.gallery-item:hover img { filter: none; transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2rem 0.9rem 0.8rem;
  font-size: var(--fs-tiny);
  line-height: 1.4;
  color: var(--cream);
  background: linear-gradient(180deg, transparent, rgba(22, 18, 14, 0.85));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.gallery-item:hover figcaption { opacity: 1; transform: none; }

@media (max-width: 920px) {
  .about-grid { grid-template-columns: 1fr; }
  .arch-frame { max-width: 320px; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-marquee { overflow-x: auto; -webkit-mask-image: none; mask-image: none; }
  .marquee-track { animation: none; }
  .marquee-track [aria-hidden="true"] { display: none; }
}

/* --------------------------------------------------------------------------
   14. Reviews
   -------------------------------------------------------------------------- */
.reviews-masonry {
  columns: 3;
  column-gap: 1.5rem;
  max-width: 1180px;
  margin-inline: auto;
}
@media (max-width: 1024px) { .reviews-masonry { columns: 2; } }
@media (max-width: 640px) { .reviews-masonry { columns: 1; } }

.review-card {
  position: relative;
  break-inside: avoid;
  margin-bottom: 1.5rem;
  padding: 1.75rem 1.6rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s;
}
.review-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(201, 162, 74, 0.35);
}
.review-card .q-mark {
  position: absolute;
  top: 0.4rem;
  right: 1.1rem;
  font-family: var(--font-display);
  font-size: 4.6rem;
  line-height: 1;
  color: rgba(138, 104, 31, 0.14);
  pointer-events: none;
  transition: color 0.45s;
}
.review-card:hover .q-mark { color: rgba(138, 104, 31, 0.28); }
.review-card .stars { margin-bottom: 0.85rem; }
.review-card blockquote { font-size: var(--fs-small); line-height: 1.66; color: var(--ink-2); }
.review-card .review-meta {
  margin-top: 1.15rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}
.review-card .review-meta b {
  font-family: var(--font-display);
  font-size: 1.18rem;
  font-weight: 600;
  color: var(--ink);
}
.review-card .review-meta span {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--fs-tiny);
  color: var(--ink-mute);
}
.review-card .review-meta .src { color: var(--gold-deep); font-weight: 600; }

/* Endorsements */
.endorse-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1020px;
  margin: 3.5rem auto 0;
}
@media (max-width: 820px) { .endorse-grid { grid-template-columns: 1fr; } }

.endorse-card {
  position: relative;
  padding: 2.1rem 2rem;
  background: linear-gradient(160deg, var(--dark-3), var(--dark-2));
  color: var(--cream);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(201, 162, 74, 0.2);
  box-shadow: 0 28px 56px -24px rgba(22, 18, 14, 0.55);
  overflow: hidden;
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out);
}
.endorse-card:hover { transform: translateY(-5px); box-shadow: 0 34px 64px -24px rgba(22, 18, 14, 0.7); }
.endorse-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), var(--oxblood));
}
.endorse-card .tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.endorse-card blockquote {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-style: italic;
  line-height: 1.5;
  color: var(--cream-80);
}
.endorse-card footer { margin-top: 1.4rem; }
.endorse-card footer b { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--gold-bright); }
.endorse-card footer span { font-size: var(--fs-tiny); color: var(--cream-60); }

.reviews-cta { text-align: center; margin-top: 3rem; }
.reviews-cta p { color: var(--ink-mute); font-size: var(--fs-small); margin-bottom: 1.2rem; }

/* --------------------------------------------------------------------------
   15. CTA band
   -------------------------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band .big-quote {
  max-width: 52rem;
  margin: 2rem auto 0.9rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 1.35rem + 1.7vw, 2.6rem);
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  color: var(--gold-pale);
}
.cta-band .attribution {
  font-size: var(--fs-tiny);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--cream-40);
}
.cta-band .cta-row { justify-content: center; margin-top: 2.6rem; }
.cta-band .note { margin-top: 1.6rem; font-size: var(--fs-tiny); color: var(--cream-40); }
.cta-band .big-quote--light { color: var(--ink-2); }
.cta-band .attribution--light { color: var(--ink-mute); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: linear-gradient(180deg, var(--dark), #100d09);
  color: var(--cream-60);
  border-top: 1px solid rgba(201, 162, 74, 0.16);
  padding: 4.5rem 0 2rem;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand .brand { margin-bottom: 1.1rem; }
.footer-brand p { font-size: var(--fs-small); line-height: 1.7; max-width: 30rem; }

.site-footer h4 {
  font-family: var(--font-body);
  font-size: var(--fs-tiny);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.site-footer ul a {
  font-size: var(--fs-small);
  color: var(--cream-60);
  text-decoration: none;
  transition: color 0.3s, padding-left 0.3s var(--ease-out);
}
.site-footer ul a:hover { color: var(--gold-bright); padding-left: 5px; }

.footer-bottom {
  border-top: 1px solid rgba(242, 234, 216, 0.08);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: var(--fs-tiny);
  color: var(--cream-40);
}
.footer-bottom .sdg { font-family: var(--font-display); font-style: italic; font-size: 1rem; color: var(--gold-deep); }

@media (max-width: 920px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* Back to top */
.to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(30, 25, 19, 0.85);
  border: 1px solid var(--gold-line);
  color: var(--gold-bright);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out), visibility 0.4s, border-color 0.3s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--gold); }
.to-top svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   17. Page hero (subpages) & breadcrumbs
   -------------------------------------------------------------------------- */
.page-hero {
  padding-top: calc(var(--header-h) + clamp(2.5rem, 5vw, 4.5rem));
  padding-bottom: clamp(3.5rem, 5vw, 5.5rem);
  position: relative;
  overflow: hidden;
}

.page-hero h1 { font-size: var(--fs-h1); color: var(--cream); }

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  list-style: none;
  margin: 0 0 2.2rem;
  padding: 0;
  font-size: var(--fs-tiny);
  letter-spacing: 0.08em;
  color: var(--cream-40);
}
.crumbs a { color: var(--cream-60); text-decoration: none; transition: color 0.3s; }
.crumbs a:hover { color: var(--gold-bright); }
.crumbs li + li::before { content: "›"; margin-right: 0.6rem; color: var(--gold-deep); }
.crumbs [aria-current] { color: var(--gold); }

/* Book hero */
.book-hero-grid {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
.book-hero-grid .feature-cover { padding: 0.5rem 0 2rem; }
.book-hero-grid .book-frame { max-width: 330px; }
.book-hero-copy h1 { font-size: var(--fs-h1); color: var(--cream); margin: 0.35rem 0 0.6rem; }
.book-hero-copy .subtitle {
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--fs-h4);
  color: var(--gold-bright);
  margin-bottom: 1.3rem;
}
.book-hero-copy .lead { margin-bottom: 1.9rem; max-width: 40rem; }
.book-hero-copy .book-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.4rem;
  color: var(--cream-60);
  font-size: var(--fs-small);
}
.book-hero-copy .book-rating a { color: var(--cream-60); }
.book-hero-copy .book-rating a:hover { color: var(--gold-bright); }
.book-hero-copy .meta-line {
  margin-top: 1.4rem;
  font-size: var(--fs-tiny);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-40);
}
@media (max-width: 920px) {
  .book-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .book-hero-grid .book-frame { max-width: 250px; margin-inline: auto; }
  .book-hero-copy .book-rating, .book-hero-copy .cta-row { justify-content: center; }
  .book-hero-copy .lead { margin-inline: auto; }
  .crumbs { justify-content: center; }
}

/* Prose */
.prose { max-width: 46rem; margin-inline: auto; }
.prose p { margin-bottom: 1.3rem; color: var(--ink-soft); font-size: var(--fs-lead); line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }

/* Inside cards */
.inside-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.4rem;
  margin-top: 3rem;
}
.inside-card {
  padding: 1.8rem 1.6rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform 0.45s var(--ease-out), box-shadow 0.45s var(--ease-out), border-color 0.45s;
}
.inside-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-card-hover); border-color: rgba(201, 162, 74, 0.35); }
.inside-card .iico {
  width: 44px; height: 44px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 12px;
  color: var(--gold-deep);
  background: rgba(138, 104, 31, 0.1);
  border: 1px solid rgba(138, 104, 31, 0.22);
  transition: transform 0.45s var(--ease-out);
}
.inside-card:hover .iico { transform: rotate(-6deg) scale(1.06); }
.inside-card .iico svg { width: 20px; height: 20px; }
.inside-card h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.inside-card p { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.6; }

/* Related books */
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 920px) { .related-grid { grid-template-columns: 1fr; } }

/* Sticky buy bar (book pages, mobile-first) */
.buy-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 95;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
  background: rgba(22, 18, 14, 0.92);
  border-top: 1px solid rgba(201, 162, 74, 0.25);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transform: translateY(110%);
  transition: transform 0.45s var(--ease-out);
}
.buy-bar.is-visible { transform: none; }
.buy-bar img { width: 34px; border-radius: 3px; box-shadow: 0 4px 10px rgba(0,0,0,.5); }
.buy-bar .bb-title {
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 1.02rem;
  color: var(--cream);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.buy-bar .btn { padding: 0.66rem 1.15rem; font-size: 0.72rem; flex: none; }
@media (min-width: 921px) { .buy-bar { display: none; } }
body.buybar-open .to-top { bottom: calc(4.6rem + env(safe-area-inset-bottom)); }

/* --------------------------------------------------------------------------
   18. About page
   -------------------------------------------------------------------------- */
.about-hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2.5rem, 5vw, 5.5rem);
  align-items: center;
}
.about-hero-grid h1 { font-size: var(--fs-h1); color: var(--cream); margin: 0.4rem 0 1.4rem; }
.about-hero-grid .lead { max-width: 36rem; }
@media (max-width: 920px) {
  .about-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .about-hero-grid .arch-frame { max-width: 280px; }
  .about-hero-grid .lead { margin-inline: auto; }
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1.2rem;
}
.gallery-grid .gallery-item { width: auto; }
.gallery-grid .gallery-item:nth-child(1) { grid-column: span 3; aspect-ratio: 4 / 4.4; }
.gallery-grid .gallery-item:nth-child(2) { grid-column: span 3; aspect-ratio: 4 / 4.4; }
.gallery-grid .gallery-item:nth-child(3),
.gallery-grid .gallery-item:nth-child(4),
.gallery-grid .gallery-item:nth-child(5) { grid-column: span 2; aspect-ratio: 4 / 4.6; }
.gallery-grid .gallery-item figcaption { opacity: 1; transform: none; }
@media (max-width: 780px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid .gallery-item { grid-column: span 1 !important; }
  .gallery-grid .gallery-item:nth-child(5) { grid-column: span 2 !important; aspect-ratio: 16/10; }
}

/* --------------------------------------------------------------------------
   19. 404
   -------------------------------------------------------------------------- */
.notfound {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  text-align: center;
  padding-block: 7rem 4rem;
}
.notfound .code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 500;
  line-height: 1;
  background: linear-gradient(100deg, #a8842e, var(--gold-bright) 45%, #f4e3ae 55%, #a8842e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.notfound h1 { color: var(--cream); font-size: var(--fs-h3); margin: 1rem 0 0.8rem; }
.notfound p { color: var(--cream-60); max-width: 30rem; margin-inline: auto; }
.notfound .cta-row { justify-content: center; margin-top: 2.4rem; }

/* --------------------------------------------------------------------------
   20. Reveal-on-scroll system
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
  will-change: opacity, transform;
}
[data-reveal="left"] { transform: translateX(-34px); }
[data-reveal="right"] { transform: translateX(34px); }
[data-reveal="zoom"] { transform: scale(0.93); }
[data-reveal="fade"] { transform: none; }
[data-reveal].is-inview {
  opacity: 1;
  transform: none;
}

/* No-JS fallback: show everything */
html.no-js [data-reveal] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
}

/* --------------------------------------------------------------------------
   21. Ministry cards (Beyond the books — FHLM & Katolikos)
   -------------------------------------------------------------------------- */
.ministry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  max-width: 1060px;
  margin-inline: auto;
}
.inside-grid + .ministry-grid { margin-top: clamp(2.5rem, 4vw, 3.5rem); }
@media (max-width: 860px) { .ministry-grid { grid-template-columns: 1fr; } }

.ministry-card {
  position: relative;
  display: flex;
  gap: 1.4rem;
  align-items: flex-start;
  padding: 2rem 1.9rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s;
}
.ministry-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(45, 63, 102, 0.35);
}
.ministry-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, #2d3f66, rgba(45, 63, 102, 0));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.55s var(--ease-swift);
}
.ministry-card:hover::after { transform: scaleX(1); }

.ministry-logo {
  flex: none;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  transition: transform 0.5s var(--ease-out);
}
.ministry-card:hover .ministry-logo { transform: rotate(-4deg) scale(1.05); }
.ministry-logo img { max-width: 58px; max-height: 58px; border-radius: 8px; }

.ministry-card .m-body { display: block; min-width: 0; }
.ministry-card .m-tag {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #2d3f66;
  margin-bottom: 0.55rem;
}
.ministry-card h3 { font-size: 1.45rem; margin-bottom: 0.45rem; }
.ministry-card p { font-size: var(--fs-small); color: var(--ink-soft); line-height: 1.62; margin-bottom: 1rem; }
.ministry-card .m-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.1rem; }
.ministry-card .chip {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-mute);
  background: rgba(255, 255, 255, 0.5);
}
.ministry-card .link-more::after { transition: right 0.35s var(--ease-out); }
.ministry-card:hover .link-more::after { right: 0; }
.ministry-card:hover .link-more svg { transform: translateX(4px); }
@media (max-width: 520px) {
  .ministry-card { flex-direction: column; gap: 1.2rem; padding: 1.7rem 1.5rem; }
}

/* --------------------------------------------------------------------------
   22. Episcopal coat of arms figure
   -------------------------------------------------------------------------- */
.arms-figure {
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  margin: clamp(3rem, 5vw, 4.5rem) auto 0;
  max-width: 24rem;
  text-align: center;
}
.arms-figure img {
  width: min(250px, 58vw);
  height: auto;
  filter: drop-shadow(0 20px 34px rgba(27, 23, 18, 0.28));
  transition: transform 0.6s var(--ease-out);
}
.arms-figure:hover img { transform: translateY(-6px); }
.arms-figure figcaption {
  font-size: var(--fs-tiny);
  color: var(--ink-mute);
  letter-spacing: 0.04em;
  line-height: 1.65;
}
.arms-figure figcaption i {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--gold-deep);
  margin-bottom: 0.3rem;
}

/* --------------------------------------------------------------------------
   23. Clip-path text hover (nav)
   -------------------------------------------------------------------------- */
.nav-label { position: relative; display: inline-block; }
.nav-label::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  color: var(--gold-bright);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.45s var(--ease-swift);
}
.site-nav a:hover .nav-label::after,
.site-nav a.is-active .nav-label::after { clip-path: inset(0 0 0 0); }

/* --------------------------------------------------------------------------
   24. Hero canvas (light motes)
   -------------------------------------------------------------------------- */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.5;
}
@media (prefers-reduced-motion: reduce) { .hero-canvas { display: none; } }

/* --------------------------------------------------------------------------
   25. Print
   -------------------------------------------------------------------------- */
@media print {
  .site-header, .progress-bar, .to-top, .buy-bar, .scroll-cue, .mobile-nav { display: none !important; }
  .bg-dark, .site-footer { background: #fff !important; color: #000 !important; }
}
