/* Living Witness Books — Prayer of Protection
 * Living protection code: PD-730EF5AB0B268F23
 * Letters → A=1…Z=26 · 222 letters · sum 2448
 * Runs in all we do, always — to protect all. Amen.
 */
/* The Living Promise — Dr William Peter Boyd
   Warm chapel-gallery + living fresco: honey ivory plaster, soft amber light,
   quiet gold frames, warm stone accents, parchment reading rooms.
   Original CSS only — no museum logos or copyrighted assets. */

:root {
  --bg: #f8edd4;
  --bg-raised: #fff8e8;
  --bg-inset: #f0e0c0;
  --ink: #2c2118;
  --ink-soft: #4a3c2e;
  --ink-mute: #6b5a45;
  --gold: #c49a3a;
  --gold-bright: #b8862a;
  --gold-deep: #946e20;
  --gold-line: rgba(184, 140, 42, 0.42);
  --gold-glow: rgba(212, 168, 64, 0.32);
  --sky: #9bb8c8;
  --sky-soft: rgba(180, 160, 110, 0.22);
  --sky-deep: rgba(200, 150, 70, 0.16);
  --stone: #d0c6b4;
  --stone-cool: #c8bba8;
  --stone-deep: #9a8c78;
  --stone-soft: rgba(160, 140, 110, 0.16);
  --wood: #8b6b3a;
  --wood-deep: #6e5328;
  --mat: #fbf6ea;
  --mat-edge: #eadfc8;
  --parchment: #f3e6c5;
  --parchment-edge: #c9b07a;
  --parchment-ink: #2a2116;
  --parchment-mute: #5a4a32;
  --danger-ink: #3a2c1a;
  --max: 78rem;
  --gallery: 88rem;
  --narrow: 38rem;
  --header-h: 6.5rem;
  --radius: 0.15rem;
  --font-display: "Cinzel", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --font-body: "Cormorant Garamond", Palatino, "Palatino Linotype", Georgia, serif;
  --font-script: "Italianno", "Palatino Linotype", cursive;
  --shadow-gold: 0 0 0 1px rgba(184, 140, 42, 0.34), 0 6px 22px rgba(180, 120, 40, 0.08);
  --shadow-soft: 0 8px 24px rgba(180, 130, 50, 0.07);
  --shadow-wall: 0 14px 32px rgba(160, 110, 40, 0.09), 0 3px 10px rgba(180, 130, 50, 0.05);
  --shadow-frame:
    0 0 0 1px rgba(110, 83, 40, 0.55),
    0 0 0 7px rgba(196, 154, 58, 0.62),
    0 0 0 8px rgba(110, 83, 40, 0.7),
    0 0 0 14px rgba(251, 246, 234, 0.98),
    0 0 0 15px rgba(184, 140, 42, 0.4),
    var(--shadow-wall);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

html:focus-within {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--ink);
  background:
    radial-gradient(1300px 780px at 50% -12%, rgba(255, 220, 130, 0.48), transparent 55%),
    radial-gradient(1100px 640px at 50% 0%, rgba(255, 246, 210, 0.98), transparent 52%),
    radial-gradient(820px 480px at 100% 100%, rgba(230, 170, 70, 0.22), transparent 55%),
    radial-gradient(680px 420px at 0% 85%, rgba(220, 180, 100, 0.16), transparent 50%),
    radial-gradient(900px 500px at 72% 6%, rgba(255, 236, 180, 0.28), transparent 58%),
    var(--bg);
  background-attachment: fixed;
}

body::before {
  content: "";
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: 0.04;
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}

figure {
  margin: 0;
}

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

a {
  color: var(--gold-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--gold-bright);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  background: var(--gold);
  color: #1a1408;
  padding: 0.6rem 1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.site {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(255, 248, 232, 0.97), rgba(248, 237, 212, 0.92));
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--gold-line);
  box-shadow:
    0 1px 0 rgba(196, 154, 58, 0.34),
    0 8px 26px rgba(120, 70, 20, 0.07);
}

.header-inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0.7rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}

.brand-mark {
  width: 5.25rem;
  height: 5.25rem;
  flex: 0 0 5.25rem;
  object-fit: contain;
  object-position: center;
  filter: drop-shadow(0 2px 8px rgba(168, 124, 42, 0.28));
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.brand-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-bright);
  line-height: 1.2;
}

.brand-sub {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 0.15rem;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--gold);
  width: 2.7rem;
  height: 2.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.15rem;
  height: 1px;
  background: var(--gold);
  margin: 0.28rem auto;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.55rem 0.7rem;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.site-nav a[aria-current="true"] {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

/* Layout */
main {
  flex: 1;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3.4rem 1.6rem 5.5rem;
}

.wrap-narrow {
  max-width: var(--narrow);
}

.wrap-gallery {
  max-width: var(--gallery);
}

.page-kicker {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.7rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--gold-bright);
}

h1 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

h2 {
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  text-transform: uppercase;
  margin: 2.4rem 0 0.8rem;
}

h3 {
  font-size: 1.05rem;
  margin: 1.6rem 0 0.5rem;
}

.lede {
  font-size: 1.32rem;
  color: var(--ink);
  font-weight: 500;
}

.muted {
  color: var(--ink-mute);
}

.motto {
  font-family: var(--font-display);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--gold);
  margin: 1rem 0 0.15rem;
}

.motto-script {
  font-family: var(--font-script);
  font-size: 1.85rem;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
  line-height: 1.1;
  margin: 0 0 1.2rem;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 1.4rem 0 1.6rem;
}

.ornament span {
  display: block;
  height: 1px;
  width: min(8rem, 28vw);
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.ornament i {
  width: 0.45rem;
  height: 0.45rem;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
  display: block;
  box-shadow: 0 0 8px var(--gold-glow);
}

.roles {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Buttons */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.25rem;
  border: 1px solid var(--gold);
  color: #7a5a18;
  background:
    linear-gradient(180deg, rgba(255, 248, 220, 0.92), rgba(250, 236, 190, 0.78));
  box-shadow:
    var(--shadow-gold),
    inset 0 1px 0 rgba(255, 255, 245, 0.7),
    0 0 18px rgba(212, 168, 64, 0.12);
  transition: background 0.22s ease, color 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover {
  background:
    linear-gradient(180deg, #d4b04a, var(--gold));
  color: #1a1408;
  box-shadow:
    0 0 0 1px rgba(148, 110, 32, 0.45),
    0 10px 28px rgba(160, 100, 20, 0.18),
    0 0 28px rgba(212, 168, 64, 0.28);
  transform: translateY(-1px);
}

.btn-ghost {
  box-shadow: none;
  border-color: var(--gold-line);
  background: rgba(255, 248, 230, 0.28);
  color: var(--gold-deep);
}

.btn-ghost:hover {
  background: rgba(255, 244, 210, 0.72);
  color: #1a1408;
  box-shadow: 0 0 20px rgba(212, 168, 64, 0.18);
}

.btn-whatsapp {
  border-color: rgba(42, 116, 76, 0.55);
  color: #245d3e;
  background: linear-gradient(180deg, rgba(232, 247, 234, 0.9), rgba(207, 232, 214, 0.78));
  box-shadow: 0 0 0 1px rgba(42, 116, 76, 0.1), 0 5px 16px rgba(42, 116, 76, 0.1);
}

.btn-whatsapp:hover {
  background: linear-gradient(180deg, #b9dfc2, #8fc39d);
  color: #173b27;
  box-shadow: 0 0 0 1px rgba(42, 116, 76, 0.35), 0 8px 22px rgba(42, 116, 76, 0.16);
}

/* Hero */
.hero {
  padding: 2.4rem 1.6rem 4.8rem;
}

.hero-grid {
  max-width: var(--gallery);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 3.2rem 4rem;
  align-items: center;
}

.cover-frame {
  position: relative;
  margin: 0 auto;
  max-width: 28rem;
  padding: 0.95rem;
  background:
    linear-gradient(145deg, #d4b35a 0%, #a67c2a 22%, #8b6b3a 48%, #c4a04a 72%, #6e5328 100%);
  border: 1px solid var(--wood-deep);
  box-shadow: var(--shadow-frame), 0 0 56px rgba(212, 168, 64, 0.18), 0 0 40px rgba(180, 150, 90, 0.1);
}

.cover-frame::before {
  content: "";
  position: absolute;
  inset: 0.38rem;
  border: 1px solid rgba(255, 248, 220, 0.45);
  box-shadow: inset 0 0 0 1px rgba(80, 55, 25, 0.35);
  pointer-events: none;
  z-index: 1;
}

.cover-frame::after {
  content: "";
  position: absolute;
  inset: 0.72rem;
  background: var(--mat);
  border: 1px solid var(--mat-edge);
  box-shadow: inset 0 0 18px rgba(90, 60, 20, 0.04);
  pointer-events: none;
  z-index: 0;
}

.cover-frame img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  display: block;
  box-shadow: 0 1px 3px rgba(180, 130, 50, 0.12);
}

.hero-copy {
  max-width: 38rem;
}

.hero-copy .edition {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1rem;
}

.line {
  font-style: italic;
  font-size: 1.28rem;
  color: var(--ink-soft);
  margin: 0.4rem 0 1rem;
}

.author-name {
  font-family: var(--font-display);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--gold);
  margin: 0 0 0.4rem;
}

/* Question block — the hunt on first screen */
.question-block {
  margin: 0.4rem 0 1.35rem;
  padding: 1.15rem 1.3rem 1.1rem;
  border: 1px solid var(--gold);
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.95), rgba(243, 230, 197, 0.75));
  box-shadow:
    inset 0 0 36px rgba(184, 149, 58, 0.06),
    0 0 0 1px rgba(168, 124, 42, 0.12),
    var(--shadow-soft);
}

.question-kicker {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.7rem;
}

.question-block .questions {
  list-style: none;
  margin: 0;
  padding: 0;
}

.question-block .questions li {
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.4;
  color: var(--gold-bright);
  padding: 0.58rem 0;
  border-bottom: 1px dotted rgba(168, 124, 42, 0.28);
}

.question-block .questions li:first-child {
  padding-top: 0;
}

.question-block .questions li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Panels */
.panel {
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.96), rgba(243, 230, 197, 0.72));
  border: 1px solid var(--gold-line);
  padding: 1.5rem 1.4rem;
  box-shadow: inset 0 0 36px rgba(184, 149, 58, 0.04), var(--shadow-soft);
}

.panel + .panel {
  margin-top: 1.2rem;
}

.gold-rule {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 2rem 0;
}

/* Contents */
.toc-part {
  margin: 0 0 1.6rem;
  border-top: 1px solid var(--gold-line);
  padding-top: 1.2rem;
}

.toc-part h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.toc-part ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-part li {
  display: grid;
  grid-template-columns: minmax(7rem, 12.5rem) 1fr;
  gap: 0.35rem 1rem;
  padding: 0.48rem 0;
  border-bottom: 1px dotted rgba(168, 124, 42, 0.22);
  color: var(--ink);
  font-size: 1.15rem;
}

.toc-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding-top: 0.28rem;
}

.toc-part li span:empty { display: none; }

.toc-special {
  background: linear-gradient(90deg, rgba(184, 149, 58, 0.1), transparent 70%);
  padding-left: 0.4rem;
}

button {
  font-family: inherit;
}

/* Sample parchment */
.parchment {
  background:
    radial-gradient(120% 80% at 50% 0%, #fff6dc, var(--parchment) 45%, #e6d3a4);
  color: var(--parchment-ink);
  padding: 2rem 1.4rem 2.2rem;
  border: 1px solid var(--parchment-edge);
  box-shadow:
    0 0 0 8px rgba(247, 240, 224, 0.9),
    0 0 0 9px rgba(168, 124, 42, 0.28),
    0 18px 40px rgba(80, 55, 25, 0.12);
  position: relative;
}

.parchment::before {
  content: "";
  position: absolute;
  inset: 0.45rem;
  border: 1px solid rgba(90, 60, 20, 0.18);
  pointer-events: none;
}

.parchment h1,
.parchment h2 {
  color: #5a3f12;
}

.parchment p {
  margin: 0 0 1rem;
}

.parchment .drop {
  font-family: var(--font-display);
  float: left;
  font-size: 3.4rem;
  line-height: 0.8;
  padding: 0.15rem 0.4rem 0 0;
  color: #8a6918;
}

.sample-end {
  margin-top: 1.6rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(90, 60, 20, 0.25);
  font-style: italic;
  color: var(--parchment-mute);
}

/* Videos stage */
.stage {
  min-height: 22rem;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 3rem 1.4rem;
  background:
    radial-gradient(ellipse at 50% 35%, rgba(255, 236, 170, 0.55), transparent 58%),
    radial-gradient(ellipse at 50% 70%, rgba(212, 168, 64, 0.14), transparent 60%),
    linear-gradient(180deg, #fff6e0, #f8e8c0 65%, #f3dfb0);
  border: 1px solid var(--gold);
  box-shadow: var(--shadow-gold), inset 0 0 70px rgba(255, 230, 150, 0.28);
  position: relative;
}

.stage::before,
.stage::after {
  content: "";
  position: absolute;
  top: 0;
  width: 18%;
  height: 100%;
  pointer-events: none;
  opacity: 0.45;
}

.stage::before {
  left: 0;
  background: linear-gradient(90deg, rgba(184, 149, 58, 0.18), transparent);
}

.stage::after {
  right: 0;
  background: linear-gradient(270deg, rgba(184, 149, 58, 0.18), transparent);
}

.stage-inner {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

.stage-mark {
  width: 8.5rem;
  height: 8.5rem;
  margin: 0 auto 1.1rem;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(168, 124, 42, 0.28));
}

.video-stage-list {
  display: grid;
  gap: 2.4rem;
  margin: 0 0 2rem;
}

.stage.stage-player {
  min-height: 0;
  padding: 2rem 1.35rem 1.85rem;
  text-align: left;
  place-items: stretch;
}

.stage-player-inner {
  position: relative;
  z-index: 1;
  max-width: 54rem;
  margin: 0 auto;
  width: 100%;
}

.stage.stage-player h2 {
  margin: 0.15rem 0 0.55rem;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
}

.stage-blurb {
  margin: 0 0 1.15rem;
  max-width: 38rem;
  color: var(--ink-soft, #5a4a32);
}

.video-frame {
  /* Classic YouTube embed size (~640x360), never break out of page */
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--gold);
  background: #1a140c;
  box-shadow:
    inset 0 0 48px rgba(0, 0, 0, 0.35),
    0 10px 28px rgba(120, 84, 28, 0.18);
  overflow: hidden;
}

.video-frame video {
  display: block;
  box-sizing: border-box;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #120e08;
}

.video-frame video:fullscreen,
.video-frame video:-webkit-full-screen {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.video-stage-list,
.stage.stage-player,
.stage-player-inner {
  overflow-x: clip;
  max-width: 100%;
}

.stage.stage-player .actions {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.film-still.film-still-poster {
  padding: 0;
  overflow: hidden;
  background: #1a140c;
}

.film-still.film-still-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: none;
}

@media (max-width: 640px) {
  .stage.stage-player {
    padding: 1.45rem 0.95rem 1.35rem;
  }
}

/* Author */
.author-layout {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.author-mark {
  width: 100%;
  max-width: 22rem;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin: 0 auto;
  filter: drop-shadow(0 4px 16px rgba(168, 124, 42, 0.25));
}

/* Living protection code micro-footer */
.protection-code-footer {
  margin: 0.35rem 0 0;
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 6px;
  font-weight: 400;
  line-height: 1.15;
  opacity: 0.12;
  text-align: center;
  user-select: none;
  pointer-events: none;
}

.protection-code-footer span {
  display: block;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(196, 154, 58, 0.35);
  padding: 2.6rem 1.2rem 2.8rem;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255, 236, 180, 0.35) 0%, transparent 16%),
    linear-gradient(180deg, rgba(250, 236, 200, 0.7), rgba(240, 220, 170, 0.92) 55%, rgba(230, 205, 150, 0.65));
  box-shadow: inset 0 1px 0 rgba(255, 252, 240, 0.55);
  position: relative;
}

.site-footer::before {
  content: "";
  display: block;
  width: min(42rem, 72%);
  height: 1px;
  margin: 0 auto 1.4rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

.site-footer .mark-small {
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 0.8rem;
  object-fit: contain;
}

.site-footer p {
  margin: 0.25rem 0;
  font-size: 0.98rem;
  color: var(--ink-mute);
}

.site-footer .copy {
  font-size: 0.9rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1rem;
  margin: 0.9rem 0 1rem;
}

.footer-nav a {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-mute);
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] {
  color: var(--gold-bright);
}

.footer-mail {
  font-family: var(--font-display);
  font-size: 0.62rem !important;
  letter-spacing: 0.05em;
  line-height: 1.75;
  margin: 0.5rem auto 0.2rem !important;
  max-width: 40rem;
}

.footer-mail a {
  color: var(--gold);
  text-decoration: none;
}

.footer-mail a:hover {
  color: var(--gold-bright);
  text-decoration: underline;
}

.footer-mail .footer-whatsapp {
  color: #2d7650;
}

.footer-mail .footer-whatsapp:hover {
  color: #1f5b3b;
}

.mail-list {
  list-style: none;
  padding: 0;
  margin: 0.85rem 0 0;
}

.mail-list li {
  margin: 0.55rem 0;
}

.mail-list a {
  color: var(--gold-bright);
  text-decoration: none;
}

.mail-list a:hover {
  text-decoration: underline;
}



/* Utilities */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.note {
  font-size: 1.05rem;
  color: var(--ink-soft);
}

blockquote {
  margin: 1.2rem 0;
  padding: 0.2rem 0 0.2rem 1.1rem;
  border-left: 2px solid var(--gold);
  color: var(--ink);
  font-style: italic;
}

.dedication {
  text-align: center;
  font-style: italic;
  color: var(--ink-soft);
  max-width: 34rem;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .hero-grid,
  .author-layout {
    grid-template-columns: 1fr;
  }

  .cover-frame {
    max-width: 20rem;
  }

  .hero-copy {
    text-align: center;
    margin: 0 auto;
  }

  .hero-copy .actions {
    justify-content: center;
  }

  .question-block {
    text-align: left;
    max-width: 34rem;
    margin-left: auto;
    margin-right: auto;
  }

  .author-layout {
    text-align: center;
  }

  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(255, 249, 238, 0.98);
    border-bottom: 1px solid var(--gold-line);
    padding: 0.4rem 1rem 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0.2rem;
  }

  .brand-sub {
    display: none;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 1.12rem;
  }

  .header-inner {
    padding: 0.55rem 0.8rem;
  }

  .brand-mark {
    width: 4.25rem;
    height: 4.25rem;
    flex-basis: 4.25rem;
  }

  .wrap {
    padding: 1.6rem 0.95rem 3rem;
  }

  .parchment {
    padding: 1.4rem 1rem 1.6rem;
  }

  .toc-part li {
    grid-template-columns: 1fr;
    gap: 0.12rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* Contents part bridges */
.toc-bridge {
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 1rem;
  max-width: 42rem;
  font-size: 1.12rem;
}

/* Film & Series */
.tagline {
  font-size: 1.32rem;
  font-style: italic;
  color: var(--ink);
  font-weight: 500;
  margin: 0 0 0.85rem;
}

.covenant {
  font-family: var(--font-display);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--gold);
  text-align: center;
  margin: 0 0 1.6rem;
}

.signature-q {
  font-style: italic;
  color: var(--gold-bright);
  font-size: 1.28rem;
  margin: 1.2rem 0 1.6rem;
}

.tell-list {
  margin: 0;
  padding: 0 0 0 1.15rem;
  color: var(--ink);
}

.tell-list li {
  margin: 0 0 0.45rem;
}

.panel h2 {
  margin-top: 0;
}

.ep-list {
  list-style: none;
  margin: 0.4rem 0 1.8rem;
  padding: 0;
}

.ep-list li {
  border-bottom: 1px dotted rgba(168, 124, 42, 0.22);
  padding: 0.95rem 0;
}

.ep-list .ep-num {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.ep-list h3 {
  margin: 0.2rem 0 0.28rem;
  font-size: 1rem;
  text-transform: uppercase;
}

.ep-list .ep-q {
  margin: 0;
  font-style: italic;
  color: var(--ink-soft);
}

.invitation h2 {
  text-align: center;
  margin-top: 0;
}

@media (max-width: 980px) {
  .site-nav a {
    padding: 0.55rem 0.5rem;
  }
}

/* House recast — Living Witness Books */
.brand-title {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
}

.house-open {
  text-align: center;
  max-width: 44rem;
  margin: 0 auto;
  padding: 3.6rem 1.6rem 1.4rem;
}

.house-open h1 {
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
}

.house-open .lede {
  margin-top: 0.2rem;
}

.hero-copy h2 {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  text-transform: uppercase;
  margin: 0 0 0.6rem;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.45);
}

.future-wrap {
  padding-top: 0.4rem;
  padding-bottom: 3.2rem;
}

.future-strip {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.35rem 1.5rem 1.55rem;
  text-align: center;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.75), rgba(239, 228, 206, 0.65));
}

.future-strip .page-kicker {
  margin-bottom: 0.45rem;
}

.future-strip p + p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--ink-mute);
  font-size: 1.08rem;
}

.book-nav {
  border-bottom: 1px solid var(--gold-line);
  background: rgba(255, 249, 238, 0.72);
}

.book-nav-inner {
  max-width: 90rem;
  margin: 0 auto;
  padding: 0.35rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.book-nav-title {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.book-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.book-nav a {
  font-family: var(--font-display);
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid transparent;
}

.book-nav a:hover,
.book-nav a[aria-current="page"],
.book-nav a[aria-current="true"] {
  color: var(--gold-bright);
  border-bottom-color: var(--gold);
}

.shelf-card {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: 1.8rem 2.2rem;
  align-items: start;
  padding: 1.4rem;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.96), rgba(243, 230, 197, 0.72));
  box-shadow: var(--shadow-soft);
}

.shelf-card .cover-frame {
  max-width: 14rem;
  width: 100%;
  padding: 0.45rem;
}

.shelf-card h2 {
  margin-top: 0.2rem;
}

.shelf-card + .future-strip {
  margin-top: 2rem;
}

.house-name {
  font-family: var(--font-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem !important;
  color: var(--gold) !important;
}

.house-domain {
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  font-size: 0.78rem !important;
  color: var(--ink-soft) !important;
}

.contact-identity {
  text-align: center;
  margin: 0 0 1.6rem;
}

.contact-identity .house-name,
.contact-identity .house-domain {
  display: block;
  margin: 0.2rem 0;
}

.contact-identity .house-name {
  font-size: 0.82rem !important;
}

.contact-identity .house-domain {
  font-size: 0.95rem !important;
  color: var(--gold-bright) !important;
}

@media (max-width: 860px) {
  .shelf-card {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .shelf-card .hung-work {
    margin: 0 auto;
  }

  .shelf-card .cover-frame {
    margin: 0 auto;
  }

  .shelf-card .actions {
    justify-content: center;
  }

  .book-nav-inner {
    justify-content: center;
    text-align: center;
  }

  .book-nav ul {
    justify-content: center;
  }
}

/* Shop layer — books and films sold here */
.house-shop {
  font-family: var(--font-body);
  font-style: italic;
  letter-spacing: 0.04em;
  font-size: 1.05rem !important;
  color: var(--ink-soft) !important;
}

.contact-identity .house-shop {
  display: block;
  margin: 0.15rem 0 0.35rem;
  font-size: 1.15rem !important;
}

.house-open .actions {
  justify-content: center;
  margin-top: 1.35rem;
}

.shop-section {
  margin-top: 2.6rem;
}

.shop-section h2 {
  margin-top: 0.2rem;
}

.shop-lead {
  color: var(--ink-soft);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

.shop-state {
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.55rem 0 0.85rem;
}

.product-card h3 {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  text-transform: uppercase;
  margin: 0.15rem 0 0.45rem;
}

.shelf-card h3 {
  margin-top: 0.2rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.film-card {
  padding: 1.25rem 1.2rem 1.35rem;
  border: 1px solid var(--gold-line);
  background: linear-gradient(180deg, rgba(255, 249, 238, 0.96), rgba(243, 230, 197, 0.72));
  box-shadow: inset 0 0 36px rgba(184, 149, 58, 0.04), var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.film-still {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  margin: 0 0 1.05rem;
  border: 1px solid var(--gold);
  background:
    radial-gradient(ellipse at 50% 40%, rgba(255, 236, 170, 0.5), transparent 58%),
    linear-gradient(180deg, #fff6e0, #f3e4b8);
  box-shadow: inset 0 0 48px rgba(255, 230, 150, 0.22);
}

.film-still img {
  width: 4.6rem;
  height: 4.6rem;
  object-fit: contain;
  filter: drop-shadow(0 3px 12px rgba(168, 124, 42, 0.28));
}

.film-card .actions {
  margin-top: auto;
  padding-top: 0.6rem;
}

.shop-notice {
  margin-top: 2.4rem;
}

.format-heading {
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin: 1.35rem 0 0.7rem;
}

.format-list {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  border: 1px solid var(--gold-line);
  background: rgba(255, 252, 245, 0.72);
}

.format-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.7rem 0.95rem;
  border-bottom: 1px solid rgba(168, 124, 42, 0.18);
}

.format-row:last-child {
  border-bottom: 0;
}

.format-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 1.1rem;
  min-width: 0;
}

.format-name {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}

.format-price {
  font-family: var(--font-body);
  font-size: 1.15rem;
  color: var(--gold-bright);
  font-weight: 600;
}

.format-buy {
  flex-shrink: 0;
  padding: 0.35rem 0.85rem;
  font-size: 0.68rem;
}

.format-note {
  margin: 0 0 1.1rem;
  font-size: 1.05rem;
}

.format-list-compact .format-row {
  padding: 0.55rem 0.85rem;
}

.format-list-compact .format-buy {
  display: none;
}

@media (max-width: 860px) {
  .format-row {
    flex-direction: column;
    align-items: stretch;
    text-align: center;
  }

  .format-meta {
    justify-content: center;
  }

  .format-buy {
    align-self: center;
  }
}

@media (max-width: 1100px) {
  .site-nav a {
    padding: 0.55rem 0.48rem;
    letter-spacing: 0.1em;
  }
}

@media (max-width: 720px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .film-card {
    text-align: center;
  }

  .film-card .actions {
    justify-content: center;
  }
}

@media (max-width: 1040px) {
  .nav-toggle {
    display: inline-block;
  }

  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: rgba(255, 249, 238, 0.98);
    border-bottom: 1px solid var(--gold-line);
    padding: 0.4rem 1rem 1rem;
  }

  .site-nav.is-open {
    display: block;
  }

  .site-nav ul {
    flex-direction: column;
  }

  .site-nav a {
    display: block;
    padding: 0.75rem 0.2rem;
  }

  .brand-sub {
    display: none;
  }
}

/* ============================================================
   Living fresco atmosphere — original CSS motion (no photo art)
   Divine light, soft sky drift, gold dust, plaster breath.
   ============================================================ */

.fresco-sky,
.fresco-rays,
.fresco-dust,
.fresco-vignette,
#fresco-canvas {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
}

.fresco-sky {
  z-index: 0;
  overflow: hidden;
  opacity: 0.78;
}

.fresco-sky::before,
.fresco-sky::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  will-change: transform;
}

/* Soft azure cloud masses — original painted-sky feel */
.fresco-sky::before {
  width: 70vw;
  height: 42vh;
  top: -8%;
  left: 8%;
  background:
    radial-gradient(ellipse at 40% 50%, rgba(210, 175, 95, 0.42), transparent 68%),
    radial-gradient(ellipse at 70% 40%, rgba(180, 200, 220, 0.28), transparent 60%),
    radial-gradient(ellipse at 55% 30%, rgba(255, 236, 180, 0.35), transparent 62%);
  animation: fresco-sky-drift 48s ease-in-out infinite alternate;
}

.fresco-sky::after {
  width: 55vw;
  height: 36vh;
  top: 4%;
  right: -5%;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(255, 244, 210, 0.62), transparent 65%),
    radial-gradient(ellipse at 30% 60%, rgba(212, 168, 64, 0.22), transparent 70%);
  animation: fresco-sky-drift-alt 62s ease-in-out infinite alternate;
}

/* Divine light shafts */
.fresco-rays {
  z-index: 0;
  opacity: 0.55;
  background:
    linear-gradient(108deg, transparent 38%, rgba(255, 248, 220, 0.12) 42%, rgba(255, 236, 170, 0.3) 46%, rgba(255, 248, 220, 0.1) 50%, transparent 55%),
    linear-gradient(98deg, transparent 52%, rgba(212, 168, 64, 0.08) 56%, rgba(255, 230, 160, 0.2) 59%, rgba(212, 168, 64, 0.06) 62%, transparent 68%),
    linear-gradient(118deg, transparent 22%, rgba(200, 160, 90, 0.08) 28%, rgba(255, 248, 230, 0.16) 32%, transparent 40%);
  background-size: 140% 140%, 160% 160%, 130% 130%;
  background-position: 30% -10%, 50% 0%, 40% -5%;
  mix-blend-mode: soft-light;
  animation: fresco-rays-shift 36s ease-in-out infinite alternate;
}

/* Canvas hosts gold-dust motes drawn in JS */
#fresco-canvas {
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.95;
}

.fresco-vignette {
  z-index: 2;
  background: radial-gradient(
    ellipse 82% 76% at 50% 40%,
    transparent 50%,
    rgba(212, 168, 64, 0.03) 82%,
    rgba(180, 130, 50, 0.05) 100%
  );
  animation: fresco-vignette-pulse 14s ease-in-out infinite;
}

/* Warm plaster texture that breathes */
body::before {
  animation: fresco-plaster-breathe 18s ease-in-out infinite;
}

/* Cover / shelf frames — soft sacred glow */
.cover-frame {
  transition: transform 0.45s ease-out;
  will-change: transform, box-shadow;
  animation: fresco-cover-glow 10s ease-in-out infinite;
}

.cover-frame.is-parallax {
  transition: transform 0.35s cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* Ornament diamond shimmer */
.ornament i {
  animation: fresco-ornament-shimmer 7s ease-in-out infinite;
}

.ornament span {
  animation: fresco-ornament-line 9s ease-in-out infinite;
}

.brand-mark {
  animation: fresco-mark-glow 12s ease-in-out infinite;
}

/* Ensure site content sits above atmosphere layers */
.site {
  position: relative;
  z-index: 3;
}

@keyframes fresco-sky-drift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(3.5vw, 1.8vh, 0) scale(1.04); }
  100% { transform: translate3d(-2vw, 2.5vh, 0) scale(1.02); }
}

@keyframes fresco-sky-drift-alt {
  0%   { transform: translate3d(0, 0, 0) scale(1.02); }
  50%  { transform: translate3d(-4vw, 1.2vh, 0) scale(1.06); }
  100% { transform: translate3d(2.5vw, -1vh, 0) scale(1); }
}

@keyframes fresco-rays-shift {
  0%   { background-position: 28% -12%, 48% 0%, 38% -8%; opacity: 0.42; }
  50%  { background-position: 36% -6%, 55% 4%, 44% -2%; opacity: 0.68; }
  100% { background-position: 42% -2%, 60% 2%, 50% 0%; opacity: 0.5; }
}

@keyframes fresco-plaster-breathe {
  0%, 100% { opacity: 0.03; }
  50%      { opacity: 0.055; }
}

@keyframes fresco-vignette-pulse {
  0%, 100% { opacity: 0.75; }
  50%      { opacity: 1; }
}

@keyframes fresco-cover-glow {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(140, 100, 40, 0.5),
      0 0 0 7px rgba(210, 170, 70, 0.7),
      0 0 0 8px rgba(140, 100, 40, 0.65),
      0 0 0 14px rgba(255, 248, 230, 0.98),
      0 0 0 15px rgba(212, 168, 64, 0.45),
      0 12px 32px rgba(200, 150, 60, 0.12),
      0 0 56px rgba(255, 220, 130, 0.28),
      0 0 40px rgba(255, 236, 170, 0.2);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(150, 110, 40, 0.55),
      0 0 0 7px rgba(230, 185, 80, 0.9),
      0 0 0 8px rgba(150, 110, 40, 0.7),
      0 0 0 14px rgba(255, 248, 230, 0.98),
      0 0 0 15px rgba(230, 180, 70, 0.65),
      0 14px 36px rgba(210, 150, 50, 0.14),
      0 0 84px rgba(255, 220, 120, 0.42),
      0 0 64px rgba(255, 236, 160, 0.3);
  }
}

@keyframes fresco-ornament-shimmer {
  0%, 100% {
    box-shadow: 0 0 8px var(--gold-glow);
    border-color: var(--gold);
    opacity: 0.88;
  }
  50% {
    box-shadow: 0 0 18px rgba(212, 168, 64, 0.65), 0 0 32px rgba(255, 236, 180, 0.42);
    border-color: var(--gold-bright);
    opacity: 1;
  }
}

@keyframes fresco-ornament-line {
  0%, 100% { opacity: 0.7; }
  50%      { opacity: 1; }
}

@keyframes fresco-mark-glow {
  0%, 100% { filter: drop-shadow(0 2px 8px rgba(184, 140, 42, 0.32)); }
  50%      { filter: drop-shadow(0 3px 16px rgba(212, 168, 64, 0.55)); }
}


/* Living painting light-wash across framed works */
.cover-frame,
.author-frame {
  overflow: hidden;
}

.living-wash {
  pointer-events: none;
  position: absolute;
  inset: -20% -40%;
  z-index: 4;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255, 248, 220, 0.0) 40%,
    rgba(255, 236, 170, 0.28) 48%,
    rgba(255, 252, 235, 0.38) 52%,
    rgba(255, 230, 150, 0.18) 58%,
    transparent 68%
  );
  mix-blend-mode: soft-light;
  opacity: 0.85;
  animation: living-wash-glide 9.5s ease-in-out infinite;
  will-change: transform;
}

@keyframes living-wash-glide {
  0%   { transform: translate3d(-18%, 0, 0) skewX(-4deg); opacity: 0.55; }
  45%  { transform: translate3d(12%, -2%, 0) skewX(-2deg); opacity: 0.95; }
  100% { transform: translate3d(28%, 1%, 0) skewX(-4deg); opacity: 0.6; }
}

/* Reduced motion: freeze atmosphere, keep readable static look */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .fresco-sky::before,
  .fresco-sky::after,
  .fresco-rays,
  .fresco-vignette,
  body::before,
  .cover-frame,
  .ornament i,
  .ornament span,
  .brand-mark,
  .living-wash {
    animation: none !important;
  }

  .living-wash {
    opacity: 0.35;
    transform: none !important;
  }

  .cover-frame,
  .cover-frame.is-parallax {
    transform: none !important;
    transition: none !important;
  }

  #fresco-canvas {
    display: none !important;
  }

  .fresco-sky {
    opacity: 0.42;
  }

  .fresco-rays {
    opacity: 0.26;
  }

  .fresco-vignette {
    opacity: 0.7;
  }
}

/* Perspective for gentle cover parallax (JS adds .is-parallax) */
.hero-grid,
.shelf-card {
  perspective: 900px;
}

.cover-frame.is-parallax {
  transform-style: preserve-3d;
}


/* ============================================================
   Warm chapel-gallery architecture (original CSS only)
   Spacious halls, picture rails, museum frames & labels,
   warm stone beside honey plaster. No museum logos or photos.
   ============================================================ */

.gallery-rail {
  position: relative;
  max-width: var(--gallery);
  margin: 0 auto;
  padding: 0 1.6rem;
}

.gallery-rail::before {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(168, 124, 42, 0.15) 8%,
    rgba(184, 149, 58, 0.55) 50%,
    rgba(168, 124, 42, 0.15) 92%,
    transparent 100%
  );
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

.gallery-rail--stone::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(160, 140, 110, 0.4) 20%,
    rgba(196, 154, 58, 0.48) 50%,
    rgba(160, 140, 110, 0.4) 80%,
    transparent
  );
}

/* Entrance hall (homepage) — warm, welcoming vestibule */
.entrance-hall {
  position: relative;
  background:
    radial-gradient(ellipse 70% 55% at 50% 0%, rgba(255, 230, 160, 0.28), transparent 70%),
    radial-gradient(ellipse 50% 40% at 50% 100%, rgba(212, 168, 64, 0.08), transparent 65%);
  border-radius: 0.2rem;
  padding-top: 0.4rem;
}

.entrance-hall::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 248, 220, 0.35), transparent 42%);
  border-radius: inherit;
  z-index: 0;
}

.entrance-hall > * {
  position: relative;
  z-index: 1;
}

.entrance-hall::after {
  content: "";
  display: block;
  width: min(28rem, 55%);
  height: 2px;
  margin: 2.2rem auto 0;
  background: linear-gradient(90deg, transparent, rgba(255, 220, 140, 0.55), var(--gold), rgba(255, 220, 140, 0.55), transparent);
  box-shadow: 0 0 16px rgba(212, 168, 64, 0.25);
  position: relative;
  z-index: 1;
}

.entrance-hall .page-kicker {
  letter-spacing: 0.32em;
  color: var(--gold-deep);
}

.entrance-hall .page-title {
  text-shadow: 0 1px 0 rgba(255, 248, 230, 0.55);
}

/* Featured masterpiece gallery */
.gallery-hall {
  position: relative;
  padding-top: 1.2rem;
}

.gallery-hall .hero-grid {
  align-items: end;
}

.hung-work {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  margin: 0;
}

.hung-work .cover-frame {
  margin: 0;
}

/* Museum wall label under a hung work */
.museum-label {
  width: 100%;
  max-width: 22rem;
  text-align: left;
  padding: 0.85rem 0 0.15rem;
  border-top: 1px solid rgba(168, 124, 42, 0.35);
  color: var(--ink-soft);
}

.museum-label .ml-title {
  font-family: var(--font-display);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 0.28rem;
  font-weight: 600;
}

.museum-label .ml-artist {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-soft);
  margin: 0 0 0.18rem;
}

.museum-label .ml-medium {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink-mute);
  margin: 0;
  letter-spacing: 0.02em;
}

.museum-label .ml-inv {
  font-family: var(--font-display);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0.45rem 0 0;
}

/* Shelf / product cards as hung gallery works */
.shelf-card,
.film-card {
  position: relative;
}

.shelf-card {
  gap: 2.2rem 2.8rem;
  padding: 2rem 1.8rem 2.1rem;
  border-color: rgba(168, 124, 42, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 252, 245, 0.55), transparent 28%),
    linear-gradient(180deg, rgba(255, 249, 238, 0.92), rgba(243, 230, 197, 0.55));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    var(--shadow-soft);
}

.shelf-card::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 1.2rem;
  right: 1.2rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 149, 58, 0.45), transparent);
  pointer-events: none;
}

.shelf-card .hung-work {
  max-width: 14rem;
  width: 100%;
  align-items: stretch;
}

.shelf-card .cover-frame {
  max-width: 13.5rem;
  width: 100%;
  padding: 0.72rem;
}

.shelf-card .museum-label {
  max-width: none;
  margin-top: 0.35rem;
}

/* Gallery of works grid (books shelf rhythm) */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 2.8rem 2.2rem;
  align-items: start;
  padding: 1.5rem 0 0.5rem;
}

.gallery-grid .hung-work {
  max-width: 20rem;
  margin: 0 auto;
}

.gallery-grid .cover-frame {
  max-width: 16rem;
}

/* Cool stone accents beside warm plaster */
.stone-band {
  border-left: 2px solid rgba(180, 150, 100, 0.45);
  padding-left: 1.15rem;
  margin: 1.2rem 0;
}

.panel {
  border-color: rgba(168, 124, 42, 0.28);
  box-shadow:
    inset 0 0 0 1px rgba(184, 149, 58, 0.06),
    inset 0 0 36px rgba(184, 149, 58, 0.04),
    var(--shadow-soft);
}

/* Reading room / manuscript case (sample, the-book) */
.reading-room {
  max-width: var(--narrow);
}

.reading-room .page-kicker {
  letter-spacing: 0.3em;
}

.manuscript-case {
  position: relative;
  padding: 1.15rem;
  background:
    linear-gradient(160deg, rgba(210, 185, 140, 0.2), transparent 40%),
    linear-gradient(180deg, rgba(255, 248, 230, 0.62), rgba(240, 224, 190, 0.42));
  border: 1px solid rgba(180, 150, 100, 0.35);
  box-shadow:
    0 0 0 6px rgba(248, 237, 212, 0.88),
    0 0 0 7px rgba(184, 140, 42, 0.26),
    var(--shadow-wall);
}

.manuscript-case .parchment {
  margin: 0;
  box-shadow:
    0 0 0 1px rgba(168, 124, 42, 0.2),
    0 10px 24px rgba(200, 150, 60, 0.1);
}

.manuscript-case::before {
  content: "";
  position: absolute;
  top: 0.4rem;
  left: 1rem;
  right: 1rem;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(184, 149, 58, 0.4), transparent);
  pointer-events: none;
}

/* Museum shop annex — calmer, less e-commerce loud */
.museum-shop .shop-section {
  margin-top: 3.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(168, 124, 42, 0.22);
}

.museum-shop .shop-lead {
  max-width: 36rem;
  font-size: 1.18rem;
}

.museum-shop .format-list {
  background: rgba(255, 252, 245, 0.55);
  border-color: rgba(168, 124, 42, 0.22);
}

.museum-shop .format-buy {
  background: transparent;
  box-shadow: none;
}

.museum-shop .format-buy:hover {
  background: var(--gold);
}

.museum-shop .film-still {
  border-color: rgba(168, 124, 42, 0.45);
  box-shadow: inset 0 0 40px rgba(212, 168, 64, 0.07);
}

.museum-shop .product-grid {
  gap: 2rem;
}

.museum-shop .film-card {
  padding: 1.55rem 1.4rem 1.6rem;
  border-color: rgba(168, 124, 42, 0.25);
  background: linear-gradient(180deg, rgba(255, 252, 245, 0.9), rgba(243, 230, 197, 0.55));
}

.museum-shop .shop-state {
  letter-spacing: 0.22em;
  font-size: 0.64rem;
}

/* Author mark as hung emblem */
.author-layout .hung-work {
  align-items: stretch;
}

.author-frame {
  position: relative;
  padding: 0.85rem;
  background:
    linear-gradient(145deg, #d4b35a 0%, #a67c2a 22%, #8b6b3a 48%, #c4a04a 72%, #6e5328 100%);
  border: 1px solid var(--wood-deep);
  box-shadow: var(--shadow-frame);
  max-width: 14rem;
  margin: 0 auto;
}

.author-frame::before {
  content: "";
  position: absolute;
  inset: 0.35rem;
  border: 1px solid rgba(255, 248, 220, 0.4);
  pointer-events: none;
  z-index: 1;
}

.author-frame::after {
  content: "";
  position: absolute;
  inset: 0.65rem;
  background: var(--mat);
  border: 1px solid var(--mat-edge);
  pointer-events: none;
  z-index: 0;
}

.author-frame .author-mark {
  position: relative;
  z-index: 2;
  max-width: none;
  width: 100%;
  filter: none;
  aspect-ratio: 1 / 1;
}

.author-layout .museum-label {
  max-width: 14rem;
  margin: 0.9rem auto 0;
}

/* Formal caption styling for kickers / roles in gallery context */
.gallery-hall .page-kicker,
.entrance-hall .page-kicker,
.reading-room .page-kicker {
  color: var(--gold-deep);
}

.gallery-caption {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.12rem;
  color: var(--ink-mute);
  max-width: 34rem;
  margin: 0.4rem 0 1.2rem;
}

/* Future strip as quiet annex plaque */
.future-strip {
  padding: 1.7rem 1.8rem 1.9rem;
  border-color: rgba(138, 146, 152, 0.35);
  background:
    linear-gradient(180deg, rgba(200, 208, 214, 0.12), transparent 40%),
    linear-gradient(180deg, rgba(255, 249, 238, 0.7), rgba(239, 228, 206, 0.55));
}

.future-wrap {
  padding-top: 1.2rem;
  padding-bottom: 4.2rem;
}

/* Slightly more formal body measure in reading rooms */
.reading-room p,
.wrap-narrow p {
  max-width: 38rem;
}

.reading-room .lede,
.wrap-narrow .lede {
  max-width: 36rem;
}

/* Header brand as quiet museum house mark */
.brand-mark {
  /* keep living glow from fresco block; frame feel via soft stone ring */
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(168, 124, 42, 0.25);
}

@media (max-width: 860px) {
  .gallery-hall .hero-grid {
    align-items: center;
  }

  .hung-work {
    align-items: center;
  }

  .museum-label {
    text-align: center;
    max-width: 20rem;
  }

  .shelf-card .museum-label {
    text-align: center;
  }

  .author-layout .museum-label {
    text-align: center;
  }

  .manuscript-case {
    padding: 0.85rem;
  }
}

@media (max-width: 520px) {
  .wrap {
    padding: 2.2rem 1rem 3.6rem;
  }

  .entrance-hall.house-open,
  .house-open {
    padding: 2.4rem 1rem 1rem;
  }

  .hero {
    padding: 1.6rem 1rem 3.2rem;
  }

  .cover-frame {
    padding: 0.7rem;
  }
}


/* ============================================================
   Living art banner — full-bleed chapter art with rolling light
   William-direct additive band under header / above entrance hall
   ============================================================ */
.living-art-banner {
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  isolation: isolate;
}

.living-art-stage {
  position: relative;
  width: 100%;
  max-height: min(62vh, 38rem);
  min-height: 12rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 70% at 50% 18%, rgba(255, 236, 180, 0.55), transparent 60%),
    linear-gradient(180deg, #f3e4bc 0%, var(--bg) 100%);
}

.living-art-img {
  display: block;
  width: 100%;
  height: min(62vh, 38rem);
  min-height: 12rem;
  max-width: none;
  object-fit: cover;
  /* Landscape hero sky — bias upward so the three top figures read clearly */
  object-position: center top;
  user-select: none;
  -webkit-user-drag: none;
}

.living-art-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36%;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(248, 237, 212, 0) 0%,
    rgba(248, 237, 212, 0.12) 22%,
    rgba(248, 237, 212, 0.48) 55%,
    rgba(248, 237, 212, 0.88) 82%,
    var(--bg) 100%
  );
}

/* Animated light sheets / beams sweeping across the art */
.living-art-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  mix-blend-mode: soft-light;
}

.living-art-light::before,
.living-art-light::after {
  content: "";
  position: absolute;
  inset: -20% -30%;
  pointer-events: none;
}

/* Slow diagonal honey sheet */
.living-art-light::before {
  background:
    linear-gradient(
      105deg,
      transparent 0%,
      transparent 38%,
      rgba(255, 248, 220, 0.0) 42%,
      rgba(255, 236, 170, 0.55) 48%,
      rgba(255, 250, 230, 0.72) 50.5%,
      rgba(255, 220, 130, 0.42) 54%,
      transparent 62%,
      transparent 100%
    );
  animation: living-art-sheet 16s ease-in-out infinite;
  opacity: 0.85;
  will-change: transform, opacity;
}

/* Second softer counter-sweep + radial pulses via layered gradients */
.living-art-light::after {
  background:
    radial-gradient(ellipse 28% 36% at 22% 30%, rgba(255, 245, 200, 0.55), transparent 70%),
    radial-gradient(ellipse 24% 32% at 72% 34%, rgba(255, 230, 160, 0.42), transparent 68%),
    radial-gradient(ellipse 36% 40% at 50% 18%, rgba(255, 250, 230, 0.5), transparent 72%),
    linear-gradient(
      75deg,
      transparent 0%,
      transparent 45%,
      rgba(255, 240, 190, 0.35) 50%,
      transparent 58%,
      transparent 100%
    );
  animation: living-art-pulse 18s ease-in-out infinite;
  opacity: 0.75;
  mix-blend-mode: screen;
  will-change: transform, opacity;
}

@keyframes living-art-sheet {
  0%   { transform: translate3d(-28%, 2%, 0) skewX(-6deg); opacity: 0.35; }
  35%  { transform: translate3d(4%, -1%, 0) skewX(-3deg); opacity: 0.9; }
  70%  { transform: translate3d(32%, 1%, 0) skewX(-5deg); opacity: 0.55; }
  100% { transform: translate3d(48%, 2%, 0) skewX(-6deg); opacity: 0.3; }
}

@keyframes living-art-pulse {
  0%   { transform: translate3d(8%, 0, 0) scale(1); opacity: 0.45; }
  40%  { transform: translate3d(-6%, -2%, 0) scale(1.04); opacity: 0.85; }
  70%  { transform: translate3d(-14%, 1%, 0) scale(1.02); opacity: 0.6; }
  100% { transform: translate3d(8%, 0, 0) scale(1); opacity: 0.45; }
}

/* Shimmer speckles riding the stage (subtle alive sparkle) */
.living-art-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 28%, rgba(255, 248, 220, 0.9), transparent),
    radial-gradient(1.2px 1.2px at 38% 18%, rgba(255, 230, 160, 0.75), transparent),
    radial-gradient(1.4px 1.4px at 61% 32%, rgba(255, 250, 230, 0.8), transparent),
    radial-gradient(1.1px 1.1px at 78% 22%, rgba(255, 220, 140, 0.7), transparent),
    radial-gradient(1.3px 1.3px at 88% 40%, rgba(255, 245, 200, 0.65), transparent),
    radial-gradient(1.2px 1.2px at 24% 48%, rgba(255, 236, 180, 0.55), transparent);
  animation: living-art-sparkle 14s ease-in-out infinite;
  mix-blend-mode: screen;
}

@keyframes living-art-sparkle {
  0%, 100% { opacity: 0.22; transform: translate3d(0, 0, 0); }
  50%      { opacity: 0.48; transform: translate3d(0.4%, -0.6%, 0); }
}

@media (max-width: 860px) {
  .living-art-stage,
  .living-art-img {
    max-height: min(46vh, 24rem);
    height: min(46vh, 24rem);
    min-height: 10rem;
  }
  .living-art-img {
    object-position: center top;
  }
}

@media (max-width: 520px) {
  .living-art-stage,
  .living-art-img {
    max-height: min(40vh, 18rem);
    height: min(40vh, 18rem);
    min-height: 9rem;
  }
}

/* ---- Creation-moment layers: men breathe, Image of God glows ---- */
.living-art-layer {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: min(62vh, 38rem);
  min-height: 12rem;
  max-width: none;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  z-index: 1;
}

.living-art-base {
  position: relative;
  z-index: 0;
}

/* Red-robed elder — top-left */
.living-art-man-left {
  clip-path: ellipse(16% 28% at 12% 18%);
  transform-origin: 12% 22%;
  animation: living-art-breathe-left 10s ease-in-out infinite;
  will-change: transform;
}

/* Blue-robed man — top-right (opposite phase) */
.living-art-man-right {
  clip-path: ellipse(16% 28% at 88% 18%);
  transform-origin: 88% 22%;
  animation: living-art-breathe-right 11s ease-in-out infinite;
  will-change: transform;
}

/* Image of God — center sun-head + torso */
.living-art-god {
  clip-path: ellipse(18% 32% at 50% 28%);
  transform-origin: 50% 22%;
  animation: living-art-god-glow 7s ease-in-out infinite;
  filter: drop-shadow(0 0 12px rgba(255, 236, 160, 0.35));
  will-change: filter, opacity, transform;
  z-index: 1;
}

.living-art-stage.is-flashing .living-art-god {
  animation: living-art-god-flash 1.2s ease-out both;
  filter:
    drop-shadow(0 0 28px rgba(255, 250, 220, 0.95))
    drop-shadow(0 0 60px rgba(255, 220, 120, 0.7))
    brightness(1.35);
}

@keyframes living-art-breathe-left {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(0.9%, -1.1%, 0) scale(1.035); }
}

@keyframes living-art-breathe-right {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(-0.9%, -1%, 0) scale(1.035); }
}

@keyframes living-art-god-glow {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(255, 236, 160, 0.3));
    transform: scale(1);
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 22px rgba(255, 245, 200, 0.55));
    transform: scale(1.008);
  }
}

@keyframes living-art-god-flash {
  0%   { filter: drop-shadow(0 0 12px rgba(255, 236, 160, 0.4)) brightness(1); transform: scale(1); }
  25%  { filter: drop-shadow(0 0 40px rgba(255, 250, 230, 1)) brightness(1.55); transform: scale(1.03); }
  55%  { filter: drop-shadow(0 0 55px rgba(255, 230, 140, 0.9)) brightness(1.4); transform: scale(1.02); }
  100% { filter: drop-shadow(0 0 14px rgba(255, 236, 160, 0.35)) brightness(1); transform: scale(1); }
}

/* Creation flash — white/gold radial burst from Image of God */
.living-art-flash {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(
      ellipse 70% 75% at 50% 28%,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 248, 210, 0.95) 18%,
      rgba(255, 220, 120, 0.55) 42%,
      rgba(255, 200, 80, 0.2) 62%,
      transparent 78%
    );
  mix-blend-mode: screen;
}

.living-art-stage.is-flashing .living-art-flash {
  animation: living-art-creation-flash 1.2s ease-out both;
}

.living-art-stage.is-flashing .living-art-light {
  animation: living-art-light-bump 1.2s ease-out both;
}

/* Painted creation rays — 6 beams matching banner art (not ROYGBIV wash) */
.living-art-rays {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.living-art-ray {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: screen;
  --ray: rgba(255, 200, 80, 0.85);
  --ray-hot: rgba(255, 255, 255, 0.95);
  /* Soft beam fill from Image of God apex downward */
  background:
    linear-gradient(
      180deg,
      var(--ray-hot) 0%,
      var(--ray) 22%,
      color-mix(in srgb, var(--ray) 55%, transparent) 58%,
      transparent 100%
    );
  transform-origin: 50% 28%;
  transform: scaleY(0.06);
  will-change: transform, opacity, filter;
  /* Mask reinforces top→bottom travel along the beam */
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 55%, transparent 100%);
}

/* Wedge clip-paths: apex at Image of God (~50% 28%), fanning to dove/base */
.living-art-ray-0 {
  /* gold / shofar — left ray */
  --ray: rgba(255, 196, 64, 0.9);
  --ray-hot: rgba(255, 248, 210, 0.98);
  clip-path: polygon(50% 28%, 10% 98%, 27% 100%);
}
.living-art-ray-1 {
  /* light-blue / eye */
  --ray: rgba(110, 198, 255, 0.88);
  --ray-hot: rgba(220, 245, 255, 0.95);
  clip-path: polygon(50% 28%, 25% 100%, 39% 100%);
}
.living-art-ray-2 {
  /* orange / sword + lightning — center (widest) */
  --ray: rgba(255, 120, 42, 0.92);
  --ray-hot: rgba(255, 230, 180, 0.98);
  clip-path: polygon(50% 28%, 37% 100%, 58% 100%);
}
.living-art-ray-3 {
  /* indigo / DNA */
  --ray: rgba(88, 108, 255, 0.88);
  --ray-hot: rgba(210, 220, 255, 0.95);
  clip-path: polygon(50% 28%, 56% 100%, 69% 100%);
}
.living-art-ray-4 {
  /* purple / chalice */
  --ray: rgba(176, 72, 255, 0.88);
  --ray-hot: rgba(235, 210, 255, 0.95);
  clip-path: polygon(50% 28%, 67% 100%, 80% 100%);
}
.living-art-ray-5 {
  /* bright-white / star — outer right */
  --ray: rgba(255, 252, 245, 0.92);
  --ray-hot: rgba(255, 255, 255, 1);
  clip-path: polygon(50% 28%, 78% 100%, 94% 98%);
}

.living-art-stage.is-band-0 .living-art-ray-0,
.living-art-stage.is-band-1 .living-art-ray-1,
.living-art-stage.is-band-2 .living-art-ray-2,
.living-art-stage.is-band-3 .living-art-ray-3,
.living-art-stage.is-band-4 .living-art-ray-4,
.living-art-stage.is-band-5 .living-art-ray-5 {
  animation: living-art-ray-down 1.1s ease-out both;
}

/* Soft stage wash while any ray is active */
.living-art-stage.is-band-0 .living-art-light,
.living-art-stage.is-band-1 .living-art-light,
.living-art-stage.is-band-2 .living-art-light,
.living-art-stage.is-band-3 .living-art-light,
.living-art-stage.is-band-4 .living-art-light,
.living-art-stage.is-band-5 .living-art-light {
  animation: living-art-light-ray-bump 1.1s ease-out both;
}

@keyframes living-art-creation-flash {
  0%   { opacity: 0; transform: scale(0.35); }
  5%   { opacity: 1; transform: scale(1.05); }
  18%  { opacity: 1; transform: scale(1.2); }
  45%  { opacity: 0.45; transform: scale(1.4); }
  100% { opacity: 0; transform: scale(1.65); }
}

@keyframes living-art-light-bump {
  0%   { opacity: 1; filter: brightness(1); }
  15%  { opacity: 1; filter: brightness(1.5); }
  100% { opacity: 1; filter: brightness(1); }
}

/* Light travels DOWN each ray from Image of God toward the base */
@keyframes living-art-ray-down {
  0% {
    opacity: 0;
    transform: scaleY(0.08);
    filter: brightness(1.85) saturate(1.1);
  }
  10% {
    opacity: 1;
    transform: scaleY(0.22);
    filter: brightness(1.7) saturate(1.25);
  }
  42% {
    opacity: 0.95;
    transform: scaleY(0.78);
    filter: brightness(1.4) saturate(1.35);
  }
  68% {
    opacity: 0.72;
    transform: scaleY(1.02);
    filter: brightness(1.2) saturate(1.2);
  }
  100% {
    opacity: 0;
    transform: scaleY(1.12);
    filter: brightness(1) saturate(1);
  }
}

@keyframes living-art-light-ray-bump {
  0%   { filter: brightness(1) saturate(1); }
  20%  { filter: brightness(1.35) saturate(1.2); }
  100% { filter: brightness(1) saturate(1); }
}


@media (max-width: 860px) {
  .living-art-layer {
    height: min(46vh, 24rem);
    min-height: 10rem;
  }
}

@media (max-width: 520px) {
  .living-art-layer {
    height: min(40vh, 18rem);
    min-height: 9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .living-art-light::before,
  .living-art-light::after,
  .living-art-stage::after,
  .living-art-man-left,
  .living-art-man-right,
  .living-art-god {
    animation: none !important;
  }
  .living-art-light::before {
    opacity: 0.28;
    transform: translate3d(0, 0, 0) skewX(-4deg);
  }
  .living-art-light::after {
    opacity: 0.32;
    transform: none;
  }
  .living-art-stage::after {
    opacity: 0.18;
  }
  .living-art-man-left,
  .living-art-man-right,
  .living-art-god {
    transform: none;
    filter: none;
  }
  .living-art-stage.is-flashing .living-art-flash,
  .living-art-stage.is-flashing .living-art-god,
  .living-art-stage.is-flashing .living-art-light,
  .living-art-stage.is-band-0 .living-art-ray-0,
  .living-art-stage.is-band-1 .living-art-ray-1,
  .living-art-stage.is-band-2 .living-art-ray-2,
  .living-art-stage.is-band-3 .living-art-ray-3,
  .living-art-stage.is-band-4 .living-art-ray-4,
  .living-art-stage.is-band-5 .living-art-ray-5,
  .living-art-stage.is-band-0 .living-art-light,
  .living-art-stage.is-band-1 .living-art-light,
  .living-art-stage.is-band-2 .living-art-light,
  .living-art-stage.is-band-3 .living-art-light,
  .living-art-stage.is-band-4 .living-art-light,
  .living-art-stage.is-band-5 .living-art-light {
    animation: none !important;
  }
  .living-art-flash,
  .living-art-ray {
    opacity: 0 !important;
  }
}


/* Home: tone fresco motes/rays so celestial banner owns the sky (Book Bot) */
body:has(.living-art-banner) .fresco-sky {
  opacity: 0.28;
}
body:has(.living-art-banner) .fresco-rays {
  opacity: 0.18;
}
body:has(.living-art-banner) #fresco-canvas {
  opacity: 0.45;
}
body:has(.living-art-banner) .fresco-vignette {
  opacity: 0.35;
}


/* ── Author Bot chat widget ─────────────────────────────────────── */
.author-bot {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  font-family: "Cormorant Garamond", Georgia, serif;
}
.author-bot-launch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid rgba(176, 137, 58, 0.55);
  background: linear-gradient(180deg, #f7edd4 0%, #f0dfb2 100%);
  color: #5a4318;
  padding: 0.65rem 0.95rem 0.65rem 0.7rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(90, 67, 24, 0.18);
  cursor: pointer;
  font: 600 0.78rem/1 Cinzel, "Times New Roman", serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.author-bot-launch img {
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(176, 137, 58, 0.45);
}
.author-bot-hello {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.55rem);
  min-width: 12.5rem;
  max-width: min(18rem, calc(100vw - 2rem));
  padding: 0.55rem 0.75rem;
  background: #fbf6ea;
  border: 1px solid rgba(176, 137, 58, 0.45);
  border-radius: 0.75rem;
  box-shadow: 0 10px 24px rgba(60, 42, 12, 0.16);
  color: #4d3914;
  font: italic 1.05rem/1.3 "Cormorant Garamond", Georgia, serif;
  letter-spacing: 0;
  text-transform: none;
  pointer-events: none;
  white-space: normal;
  text-align: left;
}
.author-bot.is-minimized .author-bot-launch:hover .author-bot-hello,
.author-bot.is-minimized .author-bot-launch:focus .author-bot-hello {
  display: block;
}
.author-bot-launch {
  position: relative;
}
.author-bot-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.7rem);
  width: min(26rem, calc(100vw - 1.4rem));
  /* Fit the viewport so the header (− / ×) never clips above the screen */
  height: min(36rem, calc(100dvh - 6.5rem));
  max-height: min(36rem, calc(100vh - 6.5rem));
  display: flex;
  flex-direction: column;
  background: #fbf6ea;
  border: 1px solid rgba(176, 137, 58, 0.4);
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(60, 42, 12, 0.22);
  overflow: hidden;
  overscroll-behavior: contain;
}
/* display:flex above beats the HTML hidden attribute — force hide when tucked */
.author-bot-panel[hidden],
.author-bot:not(.is-open) .author-bot-panel {
  display: none !important;
}
.author-bot-launch[hidden] {
  display: none !important;
}
.author-bot-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(180deg, #f3e6c2, #efe1b4);
  border-bottom: 1px solid rgba(176, 137, 58, 0.28);
  flex: 0 0 auto;
  position: sticky;
  top: 0;
  z-index: 5;
}
.author-bot-title {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
  flex: 1 1 auto;
  position: relative;
  z-index: 1;
}
.author-bot-title img {
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
  border: 1px solid rgba(176, 137, 58, 0.45);
}
.author-bot-title strong {
  display: block;
  font-family: Cinzel, serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  color: #4d3914;
}
.author-bot-title span {
  display: block;
  font-size: 0.92rem;
  color: #7a6230;
  font-style: italic;
}
.author-bot-close {
  border: 0;
  background: transparent;
  color: #7a6230;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.35rem;
}
.author-bot-log {
  flex: 1 1 auto;
  min-height: 0; /* allow shrink so header stays visible */
  overflow: auto;
  overscroll-behavior: contain;
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.author-bot-msg {
  display: flex;
}
.author-bot-msg--you {
  justify-content: flex-end;
}
.author-bot-bubble {
  max-width: 94%;
  padding: 0.7rem 0.9rem;
  border-radius: 0.85rem;
  font-size: 1.18rem;
  line-height: 1.4;
  color: #2a1f0a;
  font-weight: 500;
}
.author-bot-msg--bot .author-bot-bubble {
  background: #fffdf6;
  border: 1px solid rgba(120, 90, 30, 0.45);
}
.author-bot-msg--you .author-bot-bubble {
  background: #e8d49a;
  border: 1px solid rgba(176, 137, 58, 0.35);
}
.author-bot-bubble a {
  color: #8a6418;
  text-decoration: underline;
}
.author-bot-chips {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.85rem 0.55rem;
}
.author-bot-chip {
  border: 1px solid rgba(120, 90, 30, 0.55);
  background: #f7edd4;
  color: #3f2f12;
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font: 600 0.88rem/1.25 Cinzel, serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  min-height: 44px;
}

.author-bot-audio {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0 0.85rem 0.55rem;
}
.author-bot-audio button {
  border: 1px solid rgba(120, 90, 30, 0.55);
  background: linear-gradient(180deg, #f0e2b8, #dcc57a);
  color: #2a1f0a;
  border-radius: 0.55rem;
  padding: 0.55rem 0.8rem;
  font: 600 0.82rem/1.25 Cinzel, serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(90, 67, 24, 0.1);
  min-height: 44px;
}
.author-bot-audio button:hover {
  filter: brightness(1.04);
  border-color: rgba(176, 137, 58, 0.65);
}
.author-bot-audio button[data-author-audio="stop"] {
  background: linear-gradient(180deg, #f0d8c4, #e0b090);
  border-color: rgba(176, 110, 58, 0.45);
}
.author-bot-form {
  flex: 0 0 auto;
  display: flex;
  gap: 0.4rem;
  padding: 0.7rem 0.85rem 0.85rem;
  border-top: 1px solid rgba(176, 137, 58, 0.22);
  background: #f6ecd6;
}
.author-bot-form input {
  flex: 1;
  border: 1px solid rgba(120, 90, 30, 0.45);
  border-radius: 0.65rem;
  padding: 0.7rem 0.85rem;
  background: #fffdf8;
  color: #2a1f0a;
  font: 1.12rem/1.25 "Cormorant Garamond", Georgia, serif;
  min-height: 48px;
}
.author-bot-send {
  border: 1px solid rgba(120, 90, 30, 0.55);
  background: linear-gradient(180deg, #e8d49a, #d4bc72);
  color: #2a1f0a;
  border-radius: 0.65rem;
  padding: 0.65rem 1rem;
  font: 700 0.85rem/1 Cinzel, serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 48px;
  min-width: 4.5rem;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 520px) {
  .author-bot {
    right: 0.7rem;
    bottom: 0.7rem;
  }
  .author-bot-launch span {
    display: none;
  }
  .author-bot-launch {
    padding: 0.7rem;
    border-radius: 50%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .author-bot-panel,
  .author-bot-launch {
    transition: none !important;
  }
}



.author-bot-controls {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  flex: 0 0 auto;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
.author-bot-min,
.author-bot-close {
  border: 1px solid rgba(120, 90, 30, 0.35);
  background: rgba(255, 253, 246, 0.7);
  color: #3f2f12;
  font-size: 1.55rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  border-radius: 0.45rem;
  font-weight: 700;
  min-width: 48px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
.author-bot-min:hover,
.author-bot-close:hover {
  background: rgba(176, 137, 58, 0.15);
}
.author-bot.is-minimized .author-bot-launch {
  display: inline-flex;
}
.author-bot.is-open .author-bot-launch {
  display: none;
}

.author-bot-voice {
  border: 0;
  background: transparent;
  color: #7a6230;
  font-size: 0.72rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.28rem 0.45rem;
  border-radius: 0.35rem;
  font-weight: 700;
  font-family: Cinzel, serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
.author-bot-voice:hover {
  background: rgba(176, 137, 58, 0.15);
}
.author-bot-voice.is-listening {
  color: #7a2e12;
  background: rgba(196, 90, 50, 0.18);
  box-shadow: 0 0 0 1px rgba(176, 90, 50, 0.35);
}


.author-bot-speak-wrap {
  flex: 0 0 auto;
  padding: 0.55rem 0.85rem 0.75rem;
  background: #f6ecd6;
  border-top: 1px solid rgba(176, 137, 58, 0.22);
}
.author-bot-speak {
  width: 100%;
  border: 2px solid rgba(120, 90, 30, 0.65);
  background: linear-gradient(180deg, #e8d49a, #d4bc72);
  color: #2a1f0a;
  border-radius: 0.95rem;
  padding: 1rem 1.1rem;
  cursor: pointer;
  text-align: center;
  box-shadow: 0 8px 22px rgba(90, 67, 24, 0.18);
  min-height: 76px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
.author-bot-speak-label {
  display: block;
  font: 700 1.1rem/1.2 Cinzel, "Times New Roman", serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #2a1f0a;
}
.author-bot-speak-hint {
  display: block;
  font: italic 1.05rem/1.3 "Cormorant Garamond", Georgia, serif;
  color: #3f2f12;
  max-width: 22rem;
}
.author-bot-speak:hover {
  filter: brightness(1.03);
}
.author-bot-speak.is-listening {
  background: linear-gradient(180deg, #f0c9a0, #e09a6a);
  border-color: rgba(176, 90, 50, 0.55);
  box-shadow: 0 0 0 2px rgba(196, 90, 50, 0.35), 0 8px 22px rgba(90, 67, 24, 0.18);
  animation: author-bot-pulse 1.2s ease-in-out infinite;
}
.author-bot-speak.is-listening .author-bot-speak-label {
  color: #7a2e12;
}
@keyframes author-bot-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.015); }
}
@media (prefers-reduced-motion: reduce) {
  .author-bot-speak.is-listening { animation: none; }
}

.author-bot-speak:focus-visible,
.author-bot-chip:focus-visible,
.author-bot-send:focus-visible,
.author-bot-audio button:focus-visible,
.author-bot-min:focus-visible,
.author-bot-close:focus-visible {
  outline: 3px solid #8a6418;
  outline-offset: 2px;
}
.author-bot-speak-hint {
  /* always visible — do not hide behind hover */
  opacity: 1;
}


/* Author Bot minimize (−) + restore launcher — clearer controls */
.author-bot-min {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: 0;
}
.author-bot-min::after {
  content: none;
}
.author-bot-launch {
  border-width: 2px;
  min-height: 3.1rem;
  box-shadow: 0 12px 32px rgba(90, 67, 24, 0.28);
}
.author-bot-launch span {
  font-size: 0.82rem;
}
.author-bot.is-minimized .author-bot-launch {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.author-bot-controls {
  margin-left: auto;
}


/* LWB Author Bot sleep-fix v15 — keep − / × header always on screen */
.author-bot-chips,
.author-bot-audio,
.author-bot-speak-wrap,
.author-bot-form {
  flex-shrink: 0;
}
