
:root {
  --deep-blue: #071a2b;
  --night-blue: #0d2740;
  --moon: #f3d59a;
  --silver: #ccd3d6;
  --forest: #3e5648;
  --paper: #e8d7b5;
  --paper-light: #f2e6cc;
  --ink: #2b251d;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  background: #03090f;
  color: var(--silver);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, a { font: inherit; }
button { color: inherit; }
button:focus-visible,
a:focus-visible { outline: 2px solid var(--moon); outline-offset: 4px; }

.library-shell {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: clamp(14px, 2vw, 32px);
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 15%, rgba(58, 91, 108, .25), transparent 32%),
    linear-gradient(150deg, #03080d 0%, #07131e 50%, #020609 100%);
}

.library-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .46;
  background-image:
    radial-gradient(circle at 17% 11%, #f9e8b9 0 1px, transparent 1.4px),
    radial-gradient(circle at 77% 17%, #f9e8b9 0 1px, transparent 1.3px),
    radial-gradient(circle at 57% 8%, #fff 0 1px, transparent 1.2px);
  background-size: 89px 97px, 137px 151px, 181px 173px;
}

.forest-haze {
  position: absolute;
  inset: auto -6% -12% -6%;
  height: 42%;
  z-index: -1;
  opacity: .28;
  filter: blur(2px);
  background:
    linear-gradient(160deg, transparent 0 48%, #0a1c1c 49% 100%),
    linear-gradient(200deg, transparent 0 51%, #0b211e 52% 100%);
  clip-path: polygon(0 50%, 7% 24%, 11% 51%, 17% 5%, 23% 49%, 31% 18%, 36% 52%, 43% 0, 51% 50%, 58% 12%, 65% 50%, 73% 4%, 80% 51%, 87% 17%, 93% 49%, 100% 28%, 100% 100%, 0 100%);
}

.book-cover {
  width: min(96vw, 1520px);
  min-height: min(88svh, 860px);
  padding: clamp(42px, 7vw, 84px) clamp(28px, 8vw, 92px);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 1px solid rgba(243, 213, 154, .43);
  border-radius: 8px 28px 28px 8px;
  color: #f7eddb;
  background:
    linear-gradient(90deg, rgba(255,255,255,.04), transparent 9%),
    radial-gradient(circle at 50% 26%, rgba(61, 99, 117, .55), transparent 25%),
    linear-gradient(160deg, #061625 0%, #0b263a 57%, #061521 100%);
  box-shadow:
    -18px 0 0 #050d14,
    -21px 0 0 rgba(243, 213, 154, .34),
    0 38px 100px rgba(0,0,0,.68),
    inset 0 0 80px rgba(0,0,0,.38);
}

.cover-art {
  position: absolute;
  z-index: 0;
  inset: -3%;
  opacity: .98;
  overflow: hidden;
  mask-image: radial-gradient(ellipse at center, #000 56%, rgba(0,0,0,.92) 72%, transparent 100%);
}
.cover-world {
  position: absolute;
  inset: 0;
  background: url('/assets/image-c33ee9ff2f59.png') center / cover no-repeat;
  filter: saturate(1.18) contrast(1.08) brightness(1.02);
  transform: scale(1.018);
  will-change: opacity, filter, transform, clip-path;
}
.cover-world-forest {
  clip-path: polygon(0 0, 56% 0, 51% 100%, 0 100%);
  transform-origin: left center;
  animation: forestEmerges 2.15s .1s cubic-bezier(.2,.7,.25,1) both;
}
.cover-world-city {
  clip-path: polygon(49% 0, 100% 0, 100% 100%, 44% 100%);
  transform-origin: right center;
  animation: cityEmerges 2.15s .32s cubic-bezier(.2,.7,.25,1) both;
}
@keyframes forestEmerges {
  from { opacity: 0; filter: saturate(.52) contrast(1.12) brightness(.2) blur(7px); transform: scale(1.04) translateX(-2.2%); }
  to { opacity: 1; filter: saturate(1.18) contrast(1.08) brightness(1.02) blur(0); transform: scale(1.018) translateX(0); }
}
@keyframes cityEmerges {
  from { opacity: 0; filter: saturate(.52) contrast(1.12) brightness(.2) blur(7px); transform: scale(1.04) translateX(2.2%); }
  to { opacity: 1; filter: saturate(1.18) contrast(1.08) brightness(1.02) blur(0); transform: scale(1.018) translateX(0); }
}
.cover-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 46%, transparent 0 42%, rgba(3,15,27,.12) 72%, rgba(3,15,27,.5) 100%),
    linear-gradient(to bottom, rgba(2,12,22,.02), transparent 62%, rgba(2,12,22,.2));
}
.book-cover > :not(.cover-art):not(.cover-magic):not(.cover-lantern-glow) { position: relative; z-index: 2; }

.cover-magic {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.firefly {
  --wing: 9px;
  --glow: 26px;
  width: 8px;
  aspect-ratio: 1;
  position: absolute;
  z-index: 2;
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255,229,151,.85));
  will-change: transform, opacity;
}
.firefly::before,
.firefly::after {
  content: "";
  width: var(--wing);
  height: calc(var(--wing) * .58);
  position: absolute;
  top: 0;
  border: 1px solid rgba(246,241,215,.5);
  background: linear-gradient(135deg, rgba(246,241,215,.48), rgba(204,211,214,.08));
  box-shadow: inset 0 0 5px rgba(255,255,255,.2);
}
.firefly::before {
  right: 52%;
  border-radius: 90% 22% 76% 20%;
  transform-origin: 100% 70%;
  animation: wingLeft .15s ease-in-out infinite alternate;
}
.firefly::after {
  left: 52%;
  border-radius: 22% 90% 20% 76%;
  transform-origin: 0 70%;
  animation: wingRight .15s ease-in-out infinite alternate;
}
.firefly i {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  display: block;
  border-radius: 52% 52% 65% 65%;
  background: radial-gradient(circle at 48% 42%, #fffde2 0 20%, #ffe69b 38%, #d99328 74%, rgba(217,147,40,.2) 100%);
  box-shadow: 0 0 6px #fff8c9, 0 0 var(--glow) rgba(249,192,74,.9), 0 0 calc(var(--glow) * 2.2) rgba(249,192,74,.3);
  animation: fireflyShimmer 1.55s ease-in-out infinite;
}
.firefly-left {
  left: 15%;
  top: 55%;
  animation: leftFirefly 8.6s 2.6s ease-in-out infinite;
}
.firefly-right {
  left: 83%;
  top: 53%;
  animation: rightFirefly 8.2s 3.05s ease-in-out infinite;
}
@keyframes wingLeft { from { transform: rotate(12deg) scaleY(.78); } to { transform: rotate(-38deg) scaleY(1); } }
@keyframes wingRight { from { transform: rotate(-12deg) scaleY(.78); } to { transform: rotate(38deg) scaleY(1); } }
@keyframes fireflyShimmer {
  0%, 100% { filter: brightness(.72); opacity: .76; }
  48% { filter: brightness(1.38); opacity: 1; }
  62% { filter: brightness(.9); opacity: .84; }
}
@keyframes leftFirefly {
  0%, 5% { opacity: 0; transform: translate(-42px, 58px) rotate(-18deg) scale(.72); }
  13% { opacity: .9; }
  31% { opacity: .74; transform: translate(32px, -22px) rotate(16deg) scale(.9); }
  52% { opacity: .94; transform: translate(-12px, -68px) rotate(-8deg) scale(1); }
  74% { opacity: .7; transform: translate(42px, -34px) rotate(18deg) scale(.88); }
  100% { opacity: 0; transform: translate(78px, -112px) rotate(6deg) scale(.7); }
}
@keyframes rightFirefly {
  0%, 8% { opacity: 0; transform: translate(44px, 46px) rotate(16deg) scale(.7); }
  17% { opacity: .88; }
  35% { opacity: .72; transform: translate(-28px, -20px) rotate(-14deg) scale(.9); }
  57% { opacity: .96; transform: translate(12px, -64px) rotate(7deg) scale(1); }
  78% { opacity: .72; transform: translate(-42px, -38px) rotate(-16deg) scale(.86); }
  100% { opacity: 0; transform: translate(-76px, -108px) rotate(-4deg) scale(.68); }
}

.cover-lantern-glow {
  width: min(24vw, 360px);
  aspect-ratio: 1;
  position: absolute;
  z-index: 1;
  top: 29%;
  right: -2%;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,214,125,.56), rgba(255,183,69,.13) 30%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0;
  animation: lanternAwakes 2.5s 2.7s ease-out both, lanternFlicker 3.8s 5.2s ease-in-out infinite;
}
@keyframes lanternAwakes {
  0%, 24% { opacity: 0; transform: scale(.72); }
  68% { opacity: .66; transform: scale(1.03); }
  100% { opacity: .56; transform: scale(1); }
}
@keyframes lanternFlicker {
  0%, 100% { opacity: .5; transform: scale(.985); filter: brightness(.94); }
  30% { opacity: .59; transform: scale(1.012); filter: brightness(1.08); }
  54% { opacity: .53; transform: scale(.995); filter: brightness(.99); }
  76% { opacity: .62; transform: scale(1.025); filter: brightness(1.12); }
}

.book-cover::before,
.book-cover::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  border: 1px solid rgba(243, 213, 154, .34);
  border-radius: 3px 20px 20px 3px;
  z-index: 3;
}
.book-cover::after { inset: 27px; opacity: .45; }
.cover-stars {
  position: absolute;
  top: 8%;
  color: var(--moon);
  letter-spacing: .6em;
  animation: starsWake 4.8s 1.5s ease-in-out both, starsBreathe 6s 6.3s ease-in-out infinite;
}
@keyframes starsWake { from { opacity: 0; filter: blur(5px); } to { opacity: 1; filter: blur(0); } }
@keyframes starsBreathe { 0%, 100% { opacity: .58; } 50% { opacity: 1; } }
.cover-moon {
  width: clamp(92px, 16vw, 154px);
  aspect-ratio: 1;
  margin-bottom: clamp(28px, 4vh, 52px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 31%, rgba(99,87,61,.25) 0 4%, transparent 5%),
    radial-gradient(circle at 63% 63%, rgba(99,87,61,.2) 0 7%, transparent 8%),
    radial-gradient(circle at 38% 68%, rgba(99,87,61,.18) 0 5%, transparent 6%),
    #f4dda9;
  box-shadow: 0 0 22px #f4dda9, 0 0 70px rgba(244,221,169,.42);
  animation: moonAwakes 4.2s 1.35s ease-out both, moonBreath 7s 5.55s ease-in-out infinite;
}
@keyframes moonAwakes {
  from { opacity: .32; transform: scale(.82); box-shadow: 0 0 8px rgba(244,221,169,.2); }
  to { opacity: 1; transform: scale(1); box-shadow: 0 0 22px #f4dda9, 0 0 70px rgba(244,221,169,.42); }
}
@keyframes moonBreath {
  0%, 100% { box-shadow: 0 0 18px #f4dda9, 0 0 58px rgba(244,221,169,.34); }
  50% { box-shadow: 0 0 27px #fff0bd, 0 0 86px rgba(244,221,169,.54); }
}
.cover-copy {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.cover-copy .cover-label { animation: titleLight 1.05s 2.35s both; }
.cover-copy h1 { animation: brandFlash 2.15s 2.55s both; }
.cover-copy .ornament { animation: titleLight 1.05s 3.08s both; }
.cover-copy .cover-thought { animation: titleLight 1.2s 3.28s both; }
.cover-copy .open-book { animation: buttonAwakes 1.2s 4.18s both; }
@keyframes brandFlash {
  0% { opacity: 0; translate: 0 8px; color: #8a7143; filter: blur(12px) brightness(.4); text-shadow: 0 0 0 transparent; }
  32% { opacity: 1; translate: 0 0; color: #fff7b8; filter: blur(0) brightness(2.45); text-shadow: 0 0 7px #fffbd7, 0 0 24px #ffd36b, 0 0 58px rgba(255,187,53,.96), 0 0 110px rgba(255,171,36,.7); }
  57% { color: #ffe7a0; filter: brightness(1.55); text-shadow: 0 0 5px #fff7c8, 0 0 20px rgba(255,209,104,.86), 0 0 52px rgba(255,176,42,.56); }
  100% { opacity: 1; translate: 0 0; color: #f7eddb; filter: blur(0) brightness(1); text-shadow: 0 2px 28px rgba(243,213,154,.24); }
}
@keyframes titleLight {
  from { opacity: 0; translate: 0 12px; filter: blur(8px) brightness(.6); text-shadow: 0 0 0 transparent; }
  70% { opacity: 1; filter: blur(0) brightness(1.18); text-shadow: 0 0 30px rgba(243,213,154,.6); }
  to { opacity: 1; translate: 0 0; filter: blur(0) brightness(1); }
}
@keyframes buttonAwakes {
  from { opacity: 0; transform: translateY(12px) scale(.96); box-shadow: 0 0 0 rgba(243,213,154,0); }
  65% { opacity: 1; transform: translateY(0) scale(1.015); box-shadow: 0 0 34px rgba(243,213,154,.25); }
  to { opacity: 1; transform: translateY(0) scale(1); box-shadow: 0 0 0 rgba(243,213,154,0); }
}
.cover-label,
.page-kicker,
.cover-author,
.chapter-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .18em;
  font-size: clamp(10px, 1.2vw, 13px);
}
.cover-label { color: var(--silver); }
.book-cover h1 {
  margin: 14px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(56px, 7vw, 104px);
  line-height: 1;
  letter-spacing: -.035em;
  text-shadow: 0 2px 28px rgba(243,213,154,.18);
}
.ornament { margin: 15px 0 28px; color: var(--moon); letter-spacing: .35em; }
.cover-thought {
  max-width: 460px;
  margin: 0 0 38px;
  color: rgba(247,237,219,.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 2.4vw, 25px);
  line-height: 1.5;
}
.open-book {
  width: min(100%, 320px);
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  border: 1px solid rgba(243,213,154,.55);
  border-radius: 999px;
  color: #f7eddb;
  background: rgba(255,255,255,.04);
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.open-book:hover { background: rgba(243,213,154,.14); transform: translateY(-2px); }
.replay-magic {
  width: 42px;
  height: 42px;
  padding: 0;
  position: absolute !important;
  z-index: 5 !important;
  top: 34px;
  right: 36px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243,213,154,.42);
  border-radius: 50%;
  color: rgba(247,237,219,.76);
  background: rgba(3,15,27,.36);
  backdrop-filter: blur(7px);
  cursor: pointer;
  transition: color .2s, background .2s, transform .2s;
}
.replay-magic:hover { color: #fff3c6; background: rgba(243,213,154,.14); transform: rotate(-24deg); }
.cover-author {
  position: absolute;
  bottom: 7%;
  color: rgba(247,237,219,.6);
  animation: titleLight 1s 3.65s both;
}

.reader {
  width: min(96vw, 1500px);
  min-height: min(92svh, 940px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  animation: bookOpen .72s cubic-bezier(.2,.78,.24,1) both;
  touch-action: pan-y;
}
@keyframes bookOpen {
  from { opacity: 0; transform: scale(.88) rotateX(4deg); }
  to { opacity: 1; transform: scale(1) rotateX(0); }
}
.reader-header,
.reader-footer {
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: rgba(232,215,181,.74);
  font-size: 12px;
}
.reader-header p,
.reader-footer p { margin: 0; text-align: center; }
.reader-header > p:nth-child(2) { font-family: Georgia, serif; font-size: 16px; color: var(--moon); }
.chapter-label { justify-self: end; }
.reader:has(.spread-intro) { grid-template-rows: auto auto 1fr auto; }
.spread-intro {
  max-width: 980px;
  margin: 0 auto 14px;
  padding: 9px 22px 11px;
  border-top: 1px solid rgba(243,213,154,.18);
  border-bottom: 1px solid rgba(243,213,154,.18);
  color: rgba(239,226,199,.84);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.45;
  text-align: center;
}
.text-button,
.page-arrow {
  border: 0;
  background: transparent;
  cursor: pointer;
}
.text-button { justify-self: start; padding: 10px 0; color: rgba(232,215,181,.74); }
.text-button:hover { color: var(--moon); }

.book-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(28px, 3.3vw, 52px) minmax(0, 1fr);
  perspective: 2200px;
  filter: drop-shadow(0 30px 46px rgba(0,0,0,.55));
}
.book-page {
  min-width: 0;
  height: clamp(560px, calc(100svh - 172px), 820px);
  min-height: 0;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: opacity .42s ease, filter .42s ease;
}
.reader:has(.spread-intro) .book-page {
  height: clamp(530px, calc(100svh - 230px), 760px);
}
.reader:has(.spread-intro) .page-content {
  padding-top: clamp(34px, 4vw, 64px);
  padding-bottom: clamp(34px, 4vw, 64px);
}
.life-page {
  border-radius: 24px 3px 3px 24px;
  color: #edf2ef;
  background:
    radial-gradient(circle at 22% 19%, rgba(243,213,154,.08), transparent 25%),
    linear-gradient(150deg, #07192a, #0d2b41 58%, #071a28);
  box-shadow: inset -34px 0 50px rgba(0,0,0,.28), inset 0 0 80px rgba(0,0,0,.24);
}
.business-page {
  border-radius: 3px 24px 24px 3px;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 18%, rgba(111,77,36,.08), transparent 24%),
    linear-gradient(130deg, #e5d1a9 0%, #f1e2c2 62%, #d8bd89 100%);
  box-shadow: inset 34px 0 50px rgba(87,59,26,.2), inset 0 0 80px rgba(86,55,22,.12);
}
.business-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}
.book-spine {
  position: relative;
  z-index: 4;
  margin: 0 -1px;
  touch-action: none;
  cursor: ew-resize;
  background: linear-gradient(90deg, #030b12, #0c2637 35%, #112d3f 52%, #07131e 78%, #02070b);
  box-shadow: inset 0 0 14px #000, 0 0 12px rgba(0,0,0,.7);
}
.book-spine:focus-visible { outline: 2px solid var(--moon); outline-offset: 3px; }
.book-spine::after {
  content: "↔";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 6;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  translate: -50% -50%;
  border: 2px solid rgba(255,232,174,.96);
  border-radius: 999px;
  color: #fff5ce;
  background: radial-gradient(circle at 42% 36%, #1b4b65 0%, #0b2d44 48%, #04131f 100%);
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 0 5px #fff8d7, 0 0 14px rgba(255,218,132,.95);
  box-shadow: 0 0 0 5px rgba(3,15,27,.76), 0 0 20px rgba(255,224,150,.82), 0 0 42px rgba(243,190,80,.48), inset 0 0 14px rgba(243,213,154,.22);
  cursor: ew-resize;
  animation: spineHandlePulse 2.2s ease-in-out infinite;
}
@keyframes spineHandlePulse {
  0%, 100% { filter: brightness(.94); box-shadow: 0 0 0 5px rgba(3,15,27,.76), 0 0 18px rgba(255,224,150,.72), 0 0 34px rgba(243,190,80,.38), inset 0 0 14px rgba(243,213,154,.2); }
  50% { filter: brightness(1.2); box-shadow: 0 0 0 5px rgba(3,15,27,.82), 0 0 26px rgba(255,232,174,.98), 0 0 52px rgba(243,190,80,.62), inset 0 0 18px rgba(243,213,154,.3); }
}
.moon-phases {
  position: absolute;
  inset: 6% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  color: var(--moon);
  font-size: clamp(12px, 1.7vw, 25px);
  text-shadow: 0 0 12px rgba(243,213,154,.45);
}
.page-content {
  width: 100%;
  height: 100%;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(48px, 7vw, 108px) clamp(28px, 6vw, 92px);
}
.page-content:has(.story-figure) { padding: 0; }
.page-content:has(.full-story) { padding: 0; }
.page-kicker {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 24px;
  padding: 7px 12px 6px;
  border: 1px solid rgba(243,213,154,.32);
  border-radius: 999px;
  color: #ffe7ac;
  background: rgba(243,213,154,.08);
  box-shadow: 0 0 24px rgba(243,213,154,.08), inset 0 0 18px rgba(243,213,154,.04);
  font-size: clamp(12px, 1.05vw, 15px);
  line-height: 1.25;
  text-shadow: 0 0 16px rgba(243,213,154,.35);
  animation: kickerWake .9s .08s ease-out both;
}
.business-page .page-kicker {
  border-color: rgba(7,26,43,.62);
  color: #10283d;
  background: rgba(7,26,43,.11);
  box-shadow: 0 0 0 1px rgba(255,255,255,.18), 0 5px 18px rgba(7,26,43,.1), inset 0 0 16px rgba(7,26,43,.04);
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
@keyframes kickerWake {
  from { opacity: 0; transform: translateY(-8px); filter: blur(5px) brightness(.72); }
  68% { opacity: 1; transform: translateY(0); filter: blur(0) brightness(1.18); }
  to { opacity: 1; transform: translateY(0); filter: blur(0) brightness(1); }
}
.page-content h2 {
  max-width: 580px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(36px, 4.1vw, 66px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.page-rule {
  width: min(180px, 38%);
  height: 1px;
  margin: 30px 0;
  background: linear-gradient(90deg, transparent, var(--moon), transparent);
}
.business-page .page-rule { background: linear-gradient(90deg, transparent, #7f6037, transparent); }
.page-content > p:not(.page-kicker) {
  max-width: 580px;
  margin: 0;
  color: rgba(237,242,239,.78);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.45vw, 22px);
  line-height: 1.55;
}
.business-page .page-content > p:not(.page-kicker) { color: rgba(43,37,29,.78); }
.page-note,
.page-content > .page-note {
  margin-top: 30px !important;
  padding-top: 20px;
  border-top: 1px solid rgba(204,211,214,.18);
  color: rgba(237,242,239,.58) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(12px, 1vw, 15px) !important;
  line-height: 1.45 !important;
}
.business-page .page-content > .page-note {
  border-color: rgba(43,37,29,.18);
  color: rgba(43,37,29,.63) !important;
}
.page-quote {
  max-width: 520px;
  margin: 32px 0 0;
  padding: 20px 0 0 22px;
  border-top: 1px solid rgba(43,37,29,.18);
  border-left: 2px solid #84633a;
  color: #5b4226;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 1.7vw, 26px);
  line-height: 1.4;
}
.quiet-list {
  width: 100%;
  max-width: 530px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  font-size: clamp(13px, 1.15vw, 17px);
}
.quiet-list li { padding: 10px 0; border-bottom: 1px solid rgba(204,211,214,.18); }
.business-page .quiet-list li { border-color: rgba(43,37,29,.2); }
.full-story {
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: clamp(42px, 5vw, 74px) clamp(28px, 5vw, 72px) 30px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.story-title-block { padding-bottom: 22px; }
.story-title-block .page-kicker { margin-bottom: 14px; }
.story-title-block h2 {
  max-width: 620px;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 3vw, 48px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.03em;
}
.story-scroll-hint {
  margin: 13px 0 0;
  color: rgba(237,242,239,.5);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.business-page .story-scroll-hint { color: rgba(43,37,29,.52); }
.story-scroll {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 22px 18px 52px 0;
  border-top: 1px solid rgba(204,211,214,.2);
  color: rgba(237,242,239,.82);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.15vw, 18px);
  line-height: 1.58;
  scrollbar-width: thin;
  scrollbar-color: rgba(243,213,154,.55) transparent;
}
.business-page .story-scroll {
  border-color: rgba(43,37,29,.2);
  color: rgba(43,37,29,.82);
  scrollbar-color: rgba(101,73,41,.55) transparent;
}
.story-scroll p { margin: 0 0 1em; }
.story-scroll p:last-child { margin-bottom: 0; }
.story-scroll:focus-visible { outline-offset: -3px; }
.story-inline-figure {
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid rgba(243,213,154,.32);
  border-radius: 3px 18px 3px 18px;
  background: rgba(3,15,27,.28);
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}
.business-page .story-inline-figure {
  border-color: rgba(90,61,31,.24);
  background: rgba(90,61,31,.08);
  box-shadow: 0 18px 42px rgba(74,48,25,.16);
}
.story-inline-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.story-signature {
  color: var(--moon);
  font-style: italic;
}
.story-disclaimer {
  margin-top: 28px !important;
  padding-top: 16px;
  border-top: 1px solid currentColor;
  opacity: .58;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .78em;
}
.story-cta {
  width: fit-content;
  margin-top: 28px;
  padding: 11px 16px;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(243,213,154,.38);
  border-radius: 999px;
  color: #ffe3a4;
  background: rgba(243,213,154,.08);
  text-decoration: none;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 13px;
  font-weight: 650;
}
.business-page .story-cta {
  border-color: rgba(91,66,38,.35);
  color: #5b4226;
  background: rgba(91,66,38,.07);
}
.story-cta:hover { border-color: var(--moon); background: rgba(243,213,154,.14); }
.business-page .story-cta:hover { border-color: #5b4226; background: rgba(91,66,38,.12); }
.story-figure {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-rows: minmax(230px, 43%) 1fr;
}
.story-image {
  min-height: 0;
  position: relative;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 74%, transparent 100%);
}
.story-image::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 64px;
  background: linear-gradient(to bottom, #071725 0%, rgba(7,23,37,.92) 42%, transparent 100%);
  pointer-events: none;
}
.story-figure img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center;
  filter: saturate(.78) contrast(1.04);
  transform: scale(1.9);
  transform-origin: 50% 64%;
}
.story-figure figcaption {
  min-height: 0;
  padding: 18px clamp(28px, 5vw, 76px) 48px;
  position: relative;
  z-index: 2;
}
.story-figure h2 {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 3.2vw, 50px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -.03em;
}
.story-figure figcaption > p:last-child {
  margin: 0;
  color: rgba(237,242,239,.72);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.5;
}
.business-page .story-figure figcaption > p:last-child { color: rgba(43,37,29,.72); }
.author-page {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: center;
  padding: clamp(40px, 6vw, 78px);
}
.author-page img {
  width: min(100%, 520px);
  max-height: 490px;
  margin: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50% 50% 8px 8px;
  border: 1px solid rgba(243,213,154,.32);
  filter: saturate(.72) contrast(1.04);
  box-shadow: 0 20px 50px rgba(0,0,0,.35);
}
.author-caption {
  max-width: 560px;
  margin: 30px auto 0;
  color: rgba(237,242,239,.76);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.45;
}
.page-links {
  width: 100%;
  min-width: 0;
  flex-shrink: 0;
  max-width: 520px;
  margin-top: 34px;
  display: grid;
  gap: 8px;
}
.page-links a {
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(204,211,214,.2);
  color: #f3ddb1;
  text-decoration: none;
  font-weight: 650;
}
.business-page .page-links a {
  border-color: rgba(43,37,29,.2);
  color: #5e4529;
}
.page-links a:hover { color: #fff; border-color: var(--moon); }
.business-page .page-links a:hover { color: #1f1a14; border-color: #6f5030; }
.page-actions > a {
  min-width: 0;
  max-width: 100%;
  height: auto;
  white-space: normal;
  overflow-wrap: anywhere;
  padding: 12px 16px;
  border: 1px solid rgba(243,213,154,.42);
  border-radius: 999px;
  background: rgba(3,15,27,.08);
}
.page-actions > a:has(.action-label) { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.action-label { min-width: 0; }
.page-actions .primary-action {
  background: rgba(243,213,154,.09);
}
.business-page .page-actions > a {
  border-color: rgba(94,69,41,.38);
  background: rgba(255,255,255,.08);
}
.business-page .page-actions .primary-action {
  background: rgba(94,69,41,.08);
}
.secondary-route,
.page-content > .secondary-route,
.contact-email,
.page-content > .contact-email {
  margin-top: 18px !important;
  color: rgba(237,242,239,.58) !important;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(14px, 1.1vw, 16px) !important;
  overflow-wrap: anywhere;
  line-height: 1.45 !important;
}
.business-page .page-content > .secondary-route,
.business-page .page-content > .contact-email { color: rgba(43,37,29,.62) !important; }
.secondary-route a,
.contact-email a { color: inherit; text-underline-offset: 3px; }
.contact-email a { font-weight: 700; }
.tagline-half,
.page-content > .tagline-half {
  margin-top: auto !important;
  padding-top: 36px;
  color: var(--moon) !important;
  font-family: Georgia, "Times New Roman", serif !important;
  font-size: clamp(15px, 1.5vw, 21px) !important;
}
.page-constellation {
  position: absolute;
  top: 9%; left: 9%;
  color: var(--moon);
  text-shadow: 80px 35px var(--moon), 37px 74px rgba(243,213,154,.7);
}
.paper-branches {
  position: absolute;
  width: 210px;
  height: 210px;
  right: -40px;
  top: -20px;
  opacity: .18;
  border-right: 2px solid #5d4b31;
  border-radius: 50%;
  transform: rotate(-27deg);
}
.paper-branches::before,
.paper-branches::after {
  content: "";
  position: absolute;
  width: 70px; height: 24px;
  border-top: 1px solid #5d4b31;
  border-radius: 50%;
}
.paper-branches::before { top: 58px; right: 5px; transform: rotate(-22deg); }
.paper-branches::after { top: 108px; right: -1px; transform: rotate(19deg); }
.page-number {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  font-family: Georgia, serif;
  font-size: 12px;
  opacity: .46;
}
.life-page .page-number { left: 30px; }
.business-page .page-number { right: 30px; }

.turn-forward {
  z-index: 6;
  transform-origin: left center;
  animation: turnForward .72s cubic-bezier(.52,.02,.25,1) both;
  backface-visibility: hidden;
}
.turn-back {
  z-index: 6;
  transform-origin: right center;
  animation: turnBack .72s cubic-bezier(.52,.02,.25,1) both;
  backface-visibility: hidden;
}
@keyframes turnForward {
  0% { transform: rotateY(0); filter: brightness(1); box-shadow: inset 34px 0 50px rgba(87,59,26,.2), 0 0 0 rgba(0,0,0,0); }
  46% { filter: brightness(.72); box-shadow: inset 16px 0 30px rgba(87,59,26,.28), -34px 8px 42px rgba(0,0,0,.42); }
  100% { transform: rotateY(-178deg); filter: brightness(.42); box-shadow: -10px 5px 18px rgba(0,0,0,.24); }
}
@keyframes turnBack {
  0% { transform: rotateY(0); filter: brightness(1); box-shadow: inset -34px 0 50px rgba(0,0,0,.28), 0 0 0 rgba(0,0,0,0); }
  46% { filter: brightness(.72); box-shadow: inset -16px 0 30px rgba(0,0,0,.3), 34px 8px 42px rgba(0,0,0,.42); }
  100% { transform: rotateY(178deg); filter: brightness(.42); box-shadow: 10px 5px 18px rgba(0,0,0,.24); }
}

.reader-footer { grid-template-columns: 52px 1fr 52px; }
.page-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--moon);
  border-radius: 50%;
  font-size: 20px;
  color: #071a2b;
  background: var(--moon);
}
.page-arrow:last-child { justify-self: end; }
.page-arrow:hover:not(:disabled) { color: #071a2b; background: #fff0ce; }
.page-arrow:focus-visible { outline: 2px solid #fff0ce; outline-offset: 4px; }
.page-arrow:disabled { opacity: .2; cursor: default; }
.reader-footer p { font-family: Georgia, serif; color: rgba(232,215,181,.62); }

.firefly-guide-trigger {
  position: fixed;
  z-index: 30;
  right: clamp(18px, 2.5vw, 38px);
  bottom: clamp(72px, 8vh, 94px);
  min-height: 48px;
  padding: 8px 16px 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,225,151,.72);
  border-radius: 999px;
  color: #fff0bd;
  background: rgba(5,20,32,.88);
  box-shadow: 0 0 0 4px rgba(3,12,20,.48), 0 0 26px rgba(243,190,80,.3);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.firefly-guide-trigger:hover,
.firefly-guide-trigger.is-open {
  transform: translateY(-2px);
  background: rgba(12,43,62,.96);
  box-shadow: 0 0 0 4px rgba(3,12,20,.55), 0 0 34px rgba(255,210,105,.52);
}
.guide-firefly {
  width: 28px;
  height: 28px;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 8px rgba(255,215,114,.8));
}
.guide-firefly::before,
.guide-firefly::after {
  content: "";
  width: 13px;
  height: 8px;
  position: absolute;
  top: 7px;
  border: 1px solid rgba(238,244,238,.55);
  background: rgba(221,232,226,.16);
}
.guide-firefly::before {
  right: 51%;
  border-radius: 90% 20% 70% 20%;
  rotate: -18deg;
}
.guide-firefly::after {
  left: 51%;
  border-radius: 20% 90% 20% 70%;
  rotate: 18deg;
}
.guide-firefly i {
  width: 8px;
  height: 13px;
  position: relative;
  z-index: 2;
  border-radius: 50% 50% 65% 65%;
  background: linear-gradient(#443c2e 0 33%, #ffe794 52%, #e9a839);
  box-shadow: 0 0 7px #fff5ba, 0 0 20px rgba(255,193,64,.9);
  animation: guideGlow 2.2s ease-in-out infinite;
}
.guide-firefly b {
  width: 2px;
  height: 2px;
  position: absolute;
  top: 3px;
  border-radius: 50%;
  background: #ffe7a0;
  box-shadow: -3px -2px 0 #ffe7a0, 3px -2px 0 #ffe7a0;
}
@keyframes guideGlow {
  0%, 100% { filter: brightness(.82); box-shadow: 0 0 6px #fff5ba, 0 0 16px rgba(255,193,64,.66); }
  50% { filter: brightness(1.28); box-shadow: 0 0 9px #fffbd6, 0 0 28px rgba(255,193,64,.96); }
}

.firefly-guide-panel {
  width: min(430px, calc(100vw - 32px));
  max-height: min(76svh, 720px);
  position: fixed;
  z-index: 31;
  right: clamp(18px, 2.5vw, 38px);
  bottom: clamp(132px, 15vh, 158px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(243,213,154,.58);
  border-radius: 22px 22px 6px 22px;
  color: #edf2ef;
  background:
    radial-gradient(circle at 88% 8%, rgba(243,213,154,.14), transparent 28%),
    linear-gradient(155deg, rgba(9,35,52,.985), rgba(4,18,29,.99));
  box-shadow: 0 28px 90px rgba(0,0,0,.7), 0 0 40px rgba(243,190,80,.14), inset 0 0 60px rgba(0,0,0,.16);
  backdrop-filter: blur(18px);
  animation: guidePanelOpen .28s cubic-bezier(.2,.78,.24,1) both;
}
@keyframes guidePanelOpen {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.guide-header {
  min-height: 54px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  border-bottom: 1px solid rgba(243,213,154,.18);
}
.guide-header p {
  margin: 0;
  color: var(--moon);
  font-family: Georgia, "Times New Roman", serif;
  text-align: center;
}
.guide-header p span { margin-right: 6px; text-shadow: 0 0 14px rgba(255,211,105,.9); }
.guide-header button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(237,242,239,.8);
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}
.guide-header button:last-child { justify-self: end; font-size: 25px; font-weight: 300; }
.guide-header button:hover:not(:disabled) { color: #fff5cb; background: rgba(243,213,154,.09); }
.guide-header button:disabled { opacity: 0; pointer-events: none; }
.guide-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(243,213,154,.45) transparent;
}
.guide-eyebrow {
  margin: 0 0 10px;
  color: #e6c985;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.guide-content h2 {
  margin: 0 0 14px;
  color: #fff3d1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 2vw, 32px);
  font-weight: 400;
  line-height: 1.14;
}
.guide-content h3 {
  margin: 24px 0 12px;
  color: #f2dfb4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 400;
}
.guide-content > p:not(.guide-eyebrow),
.guide-directions p {
  margin: 0;
  color: rgba(237,242,239,.76);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
  line-height: 1.5;
}
.guide-content > p + p { margin-top: 14px !important; }
.guide-options {
  margin-top: 20px;
  display: grid;
  gap: 8px;
}
.guide-option {
  width: 100%;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(243,213,154,.22);
  border-radius: 12px;
  color: #f6ead1;
  background: rgba(255,255,255,.035);
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.guide-option:hover {
  border-color: rgba(255,226,160,.62);
  background: rgba(243,213,154,.09);
  transform: translateX(2px);
}
.guide-option span:last-child { color: var(--moon); font-size: 22px; line-height: 1; }
.guide-directions {
  display: grid;
  gap: 12px;
}
.guide-directions section {
  padding: 16px;
  border: 1px solid rgba(204,211,214,.18);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.guide-directions section:last-child {
  border-color: rgba(243,213,154,.28);
  background: rgba(243,213,154,.055);
}
.guide-directions h2 { margin-bottom: 8px; font-size: 23px; }
.guide-privacy {
  padding: 12px 14px;
  border-left: 2px solid rgba(243,213,154,.55);
  background: rgba(243,213,154,.055);
  font-family: Inter, ui-sans-serif, system-ui, sans-serif !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}
.guide-form { margin-top: 18px; display: grid; gap: 8px; }
.guide-form label { color: rgba(237,242,239,.7); font-size: 12px; }
.guide-form textarea {
  width: 100%;
  min-height: 118px;
  resize: vertical;
  padding: 12px 13px;
  border: 1px solid rgba(204,211,214,.24);
  border-radius: 12px;
  outline: 0;
  color: #f4efe4;
  background: rgba(0,0,0,.2);
  font: 14px/1.45 Inter, ui-sans-serif, system-ui, sans-serif;
}
.guide-form textarea:focus { border-color: rgba(255,225,151,.74); box-shadow: 0 0 0 3px rgba(243,213,154,.09); }
.guide-form textarea::placeholder { color: rgba(237,242,239,.36); }
.guide-form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.guide-form-footer span { color: rgba(237,242,239,.44); font-size: 11px; }
.guide-form-footer button,
.guide-actions a,
.guide-actions button {
  padding: 11px 15px;
  border: 1px solid rgba(255,225,151,.48);
  border-radius: 999px;
  color: #fff0c5;
  background: rgba(243,213,154,.08);
  text-decoration: none;
  cursor: pointer;
}
.guide-form-footer button:hover:not(:disabled),
.guide-actions a:hover,
.guide-actions button:hover { background: rgba(243,213,154,.16); border-color: var(--moon); }
.guide-form-footer button:disabled { opacity: .35; cursor: default; }
.guide-content blockquote {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid rgba(204,211,214,.16);
  border-left: 2px solid var(--moon);
  border-radius: 0 12px 12px 0;
  color: rgba(237,242,239,.82);
  background: rgba(0,0,0,.16);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  line-height: 1.48;
  overflow-wrap: anywhere;
}
.guide-actions {
  margin-top: 22px;
  display: grid;
  gap: 9px;
}
.guide-actions a,
.guide-actions button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  font-size: 13px;
}
.guide-footer {
  min-height: 44px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid rgba(243,213,154,.14);
  color: rgba(237,242,239,.42);
  font-size: 10px;
}
.guide-footer button {
  padding: 5px 0;
  border: 0;
  color: rgba(243,213,154,.66);
  background: transparent;
  cursor: pointer;
}
.guide-footer button:hover { color: var(--moon); }

/* Larger, readable footer with a steady warm contact button. */
.guide-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 8px 12px;
  padding: 12px 14px;
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1.3;
  color: #ccd3d6;
}
.guide-footer button {
  min-width: 0;
  min-height: 44px;
  font: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}
.guide-footer > button:first-child {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
}
.guide-footer > span {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
  overflow-wrap: anywhere;
}
.guide-footer > button:nth-child(2) {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #ffe4ad;
  border-radius: 999px;
  color: #071a2b;
  background: linear-gradient(135deg, #fff0ce, #f3d59a);
  box-shadow: 0 0 16px rgba(243,213,154,.3), inset 0 1px 0 rgba(255,255,255,.65);
  font-weight: 600;
  text-align: center;
}
.guide-footer > button:nth-child(2):hover {
  color: #071a2b;
  background: #fff0ce;
  box-shadow: 0 0 20px rgba(243,213,154,.45);
}
.guide-footer button:focus-visible {
  outline: 2px solid #fff0ce;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .library-shell { padding: 8px; }
  .book-cover {
    width: calc(100vw - 28px);
    min-height: calc(100svh - 28px);
    padding-inline: 34px;
    border-radius: 5px 18px 18px 5px;
    box-shadow: -9px 0 0 #050d14, -11px 0 0 rgba(243,213,154,.3), 0 22px 60px rgba(0,0,0,.7);
  }
  .cover-art { inset: -2%; opacity: .96; }
  .cover-world {
    background-size: contain;
    background-position: center;
    transform: scale(1.04);
    mask-image: linear-gradient(to bottom, transparent 27%, rgba(0,0,0,.18) 32%, #000 43%, #000 57%, rgba(0,0,0,.18) 68%, transparent 73%);
  }
  .cover-art::after {
    background:
      linear-gradient(to bottom, #061625 0 27%, rgba(6,22,37,.34) 34%, transparent 42% 58%, rgba(6,22,37,.34) 66%, #061625 74% 100%),
      radial-gradient(ellipse at 50% 50%, transparent 32%, rgba(3,15,27,.18) 78%, rgba(6,22,37,.72) 100%);
  }
  .cover-magic {
    inset: 0;
  }
  .cover-lantern-glow { width: 58vw; top: 30%; right: -25%; }
  .firefly-left { left: 10%; top: 60%; }
  .firefly-right { left: 88%; top: 58%; }
  .replay-magic { width: 38px; height: 38px; top: 25px; right: 24px; }
  .book-cover h1 { font-size: clamp(44px, 13vw, 60px); }
  .reader { width: calc(100vw - 16px); min-height: calc(100svh - 16px); }
  .reader-header { min-height: 42px; grid-template-columns: 1fr auto; }
  .reader-header > p:nth-child(2) { justify-self: end; font-size: 14px; }
  .chapter-label { display: none; }
  .spread-intro {
    margin-bottom: 8px;
    padding: 7px 10px 8px;
    font-size: 11px;
    line-height: 1.35;
  }
  .book-stage {
    grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr);
    overflow: hidden;
    transition: grid-template-columns .48s cubic-bezier(.2,.76,.24,1);
  }
  .book-stage.mobile-focus-life { grid-template-columns: minmax(0, 1fr) 20px minmax(0, 0fr); }
  .book-stage.mobile-focus-business { grid-template-columns: minmax(0, 0fr) 20px minmax(0, 1fr); }
  .book-stage.mobile-focus-life .business-page,
  .book-stage.mobile-focus-business .life-page {
    opacity: 0;
    filter: blur(2px);
    pointer-events: none;
  }
  .book-stage.mobile-focus-life .life-page .page-content,
  .book-stage.mobile-focus-business .business-page .page-content { padding-inline: 28px; }
  .book-stage.mobile-focus-life .life-page .page-content:has(.full-story),
  .book-stage.mobile-focus-business .business-page .page-content:has(.full-story),
  .book-stage.mobile-focus-life .life-page .page-content:has(.story-figure),
  .book-stage.mobile-focus-business .business-page .page-content:has(.story-figure) { padding-inline: 0; }
  .book-page { height: calc(100svh - 108px); min-height: 0; }
  .reader:has(.spread-intro) .book-page { height: calc(100svh - 166px); }
  .life-page { border-radius: 12px 2px 2px 12px; }
  .business-page { border-radius: 2px 12px 12px 2px; }
  .page-content {
    justify-content: flex-start;
    padding: 11svh 14px 46px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
  }
  .reader:has(.spread-intro) .page-content { padding-top: 24px; padding-bottom: 34px; }
  .page-kicker {
    margin-bottom: 17px;
    padding: 6px 9px 5px;
    font-size: clamp(12px, 3.5vw, 14px);
    letter-spacing: .1em;
    line-height: 1.2;
  }
  .page-content h2 { font-size: clamp(24px, 7.1vw, 32px); line-height: 1.06; }
  .page-rule { margin: 18px 0; }
  .page-content > p:not(.page-kicker) { font-size: clamp(12px, 3.45vw, 15px); line-height: 1.45; }
  .quiet-list { margin-top: 19px; font-size: clamp(10px, 3vw, 13px); line-height: 1.25; }
  .quiet-list li { padding: 7px 0; }
  .page-note,
  .page-content > .page-note { margin-top: 18px !important; padding-top: 12px; font-size: 9px !important; }
  .page-quote { margin-top: 18px; padding: 12px 0 0 10px; font-size: 14px; }
  .full-story { padding: 7svh 11px 28px; }
  .story-title-block { padding-bottom: 12px; }
  .story-title-block .page-kicker { margin-bottom: 8px; }
  .story-title-block h2 { font-size: clamp(19px, 5.6vw, 25px); line-height: 1.05; }
  .story-scroll-hint { margin-top: 8px; font-size: 7px; letter-spacing: .04em; }
  .story-scroll { padding: 13px 7px 34px 0; font-size: 11px; line-height: 1.48; }
  .story-cta { margin-top: 20px; padding: 9px 12px; font-size: 10px; }
  .story-disclaimer { margin-top: 20px !important; padding-top: 12px; }
  .story-inline-figure { margin-bottom: 15px; border-radius: 2px 10px 2px 10px; }
  .story-figure { grid-template-rows: 35% 1fr; }
  .story-figure figcaption { padding: 10px 12px 38px; }
  .story-figure h2 { margin-bottom: 12px; font-size: clamp(21px, 6.5vw, 28px); }
  .story-figure figcaption > p:last-child { font-size: 11px; line-height: 1.35; }
  .author-page { padding: 9svh 14px 36px; display: block; }
  .author-page img { width: 100%; max-height: none; }
  .author-caption { margin-top: 18px; font-size: 11px; line-height: 1.4; }
  .page-links { margin-top: 20px; gap: 2px; }
  .page-links a { padding: 8px 0; font-size: 10px; line-height: 1.2; }
  .page-actions { gap: 10px; }
  .page-actions > a,
  .page-actions .primary-action { padding: 11px 10px; min-height: 44px; gap: 7px; border-radius: 16px; font-size: 12px; line-height: 1.4; }
  .secondary-route,
  .page-content > .secondary-route,
  .contact-email,
  .page-content > .contact-email { margin-top: 14px !important; font-size: 12px !important; line-height: 1.5 !important; }
  .tagline-half,
  .page-content > .tagline-half { padding-top: 20px; font-size: 11px !important; line-height: 1.35 !important; }
  .moon-phases { font-size: 12px; }
  .page-number { bottom: 14px; }
  .life-page .page-number { left: 15px; }
  .business-page .page-number { right: 15px; }
  .reader-footer { min-height: 50px; }
  .reader-footer p { font-size: 10px; }
  .page-arrow { width: 38px; height: 38px; }
  .firefly-guide-trigger {
    right: 13px;
    bottom: 62px;
    min-height: 43px;
    padding: 6px 12px 6px 8px;
    font-size: 12px;
  }
  .guide-firefly { width: 25px; height: 25px; }
  .firefly-guide-panel {
    width: auto;
    max-height: calc(100svh - 76px);
    inset: 8px 8px 60px;
    bottom: 60px;
    border-radius: 18px 18px 6px 18px;
  }
  .guide-content { padding: 20px 18px; }
  .guide-content h2 { font-size: 26px; }
  .guide-option { padding: 11px 12px; font-size: 13px; }
  .guide-footer { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .cover-magic { display: none; }
  .cover-world,
  .cover-lantern-glow,
  .cover-stars,
  .cover-moon,
  .cover-copy .cover-label,
  .cover-copy h1,
  .cover-copy .ornament,
  .cover-copy .cover-thought,
  .cover-copy .open-book {
    animation: none;
  }
  .replay-magic { display: none; }
}

@media (max-width: 390px) {
  .page-content { padding-inline: 11px; }
  .page-content h2 { font-size: 23px; }
  .page-content > p:not(.page-kicker) { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

.firefly-guide-trigger {
  position: fixed;
  z-index: 30;
  right: clamp(18px, 2.5vw, 38px);
  bottom: clamp(72px, 8vh, 94px);
  min-height: 48px;
  padding: 8px 16px 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255,225,151,.72);
  border-radius: 999px;
  color: #fff0bd;
  background: rgba(5,20,32,.9);
  box-shadow: 0 0 0 4px rgba(3,12,20,.48), 0 0 26px rgba(243,190,80,.3);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.firefly-guide-trigger:hover,
.firefly-guide-trigger.is-open {
  transform: translateY(-2px);
  background: rgba(12,43,62,.97);
  box-shadow: 0 0 0 4px rgba(3,12,20,.55), 0 0 34px rgba(255,210,105,.52);
}
.guide-firefly {
  width: 28px;
  height: 28px;
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  filter: drop-shadow(0 0 8px rgba(255,215,114,.8));
}
.guide-firefly::before,
.guide-firefly::after {
  content: "";
  width: 13px;
  height: 8px;
  position: absolute;
  top: 7px;
  border: 1px solid rgba(238,244,238,.55);
  background: rgba(221,232,226,.16);
}
.guide-firefly::before { right: 51%; border-radius: 90% 20% 70% 20%; rotate: -18deg; }
.guide-firefly::after { left: 51%; border-radius: 20% 90% 20% 70%; rotate: 18deg; }
.guide-firefly i {
  width: 8px;
  height: 13px;
  z-index: 2;
  border-radius: 50% 50% 65% 65%;
  background: linear-gradient(#443c2e 0 33%, #ffe794 52%, #e9a839);
  box-shadow: 0 0 7px #fff5ba, 0 0 20px rgba(255,193,64,.9);
  animation: guideGlow 2.2s ease-in-out infinite;
}
.guide-firefly b {
  width: 2px;
  height: 2px;
  position: absolute;
  top: 3px;
  border-radius: 50%;
  background: #ffe7a0;
  box-shadow: -3px -2px 0 #ffe7a0, 3px -2px 0 #ffe7a0;
}
@keyframes guideGlow {
  0%, 100% { filter: brightness(.82); box-shadow: 0 0 6px #fff5ba, 0 0 16px rgba(255,193,64,.66); }
  50% { filter: brightness(1.28); box-shadow: 0 0 9px #fffbd6, 0 0 28px rgba(255,193,64,.96); }
}
.firefly-guide-panel {
  width: min(430px, calc(100vw - 32px));
  max-height: min(76svh, 720px);
  position: fixed;
  z-index: 31;
  right: clamp(18px, 2.5vw, 38px);
  bottom: clamp(132px, 15vh, 158px);
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border: 1px solid rgba(243,213,154,.58);
  border-radius: 22px 22px 6px 22px;
  color: #edf2ef;
  background: radial-gradient(circle at 88% 8%, rgba(243,213,154,.14), transparent 28%), linear-gradient(155deg, rgba(9,35,52,.985), rgba(4,18,29,.99));
  box-shadow: 0 28px 90px rgba(0,0,0,.7), 0 0 40px rgba(243,190,80,.14);
  backdrop-filter: blur(18px);
  animation: guidePanelOpen .28s cubic-bezier(.2,.78,.24,1) both;
}
@keyframes guidePanelOpen {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.guide-header {
  min-height: 54px;
  padding: 7px 10px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  border-bottom: 1px solid rgba(243,213,154,.18);
}
.guide-header p { margin: 0; color: var(--moon); font-family: Georgia, serif; text-align: center; }
.guide-header p span { margin-right: 6px; text-shadow: 0 0 14px rgba(255,211,105,.9); }
.guide-header button {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: rgba(237,242,239,.8);
  background: transparent;
  cursor: pointer;
  font-size: 20px;
}
.guide-header button:last-child { justify-self: end; font-size: 25px; font-weight: 300; }
.guide-header button:hover:not(:disabled) { color: #fff5cb; background: rgba(243,213,154,.09); }
.guide-header button:disabled { opacity: 0; pointer-events: none; }
.guide-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(243,213,154,.45) transparent;
}
.guide-eyebrow { margin: 0 0 10px; color: #e6c985; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.guide-content h2 { margin: 0 0 14px; color: #fff3d1; font-family: Georgia, serif; font-size: clamp(25px, 2vw, 32px); font-weight: 400; line-height: 1.14; }
.guide-content h3 { margin: 24px 0 12px; color: #f2dfb4; font-family: Georgia, serif; font-size: 18px; font-weight: 400; }
.guide-content > p:not(.guide-eyebrow),
.guide-directions p { margin: 0; color: rgba(237,242,239,.76); font-family: Georgia, serif; font-size: 15px; line-height: 1.5; }
.guide-content > p + p { margin-top: 14px !important; }
.guide-options { margin-top: 20px; display: grid; gap: 8px; }
.firefly-guide-panel[hidden] { display: none; }
.guide-catalog p { color: #ccd3d6; line-height: 1.55; }
.guide-catalog .guide-option { font-size: 14px; }
.guide-catalog .guide-option:disabled { opacity: .45; cursor: not-allowed; }
.guide-checks { display: grid; gap: 16px; margin-top: 20px; font-size: 14px; line-height: 1.5; }
.guide-checks input { width: 20px; height: 20px; vertical-align: middle; accent-color: #f3d59a; }
.guide-boundaries { margin-top: 16px; font-size: 14px; line-height: 1.5; }
.guide-boundaries summary { cursor: pointer; color: #f3d59a; }
.guide-story-text { white-space: pre-wrap; overflow-wrap: anywhere; font: 18px/1.7 Georgia, serif; color: #edf2ef; margin: 20px 0; }
.guide-return { margin-bottom: 20px; }
.guide-reading-hint { margin: 0 0 8px; padding: 0 12px; color: #ccd3d6; font-size: 13px; line-height: 1.5; }
.guide-option {
  width: 100%;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(243,213,154,.22);
  border-radius: 12px;
  color: #f6ead1;
  background: rgba(255,255,255,.035);
  text-align: left;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .18s, background .18s, transform .18s;
}
.guide-option:hover { border-color: rgba(255,226,160,.62); background: rgba(243,213,154,.09); transform: translateX(2px); }
.guide-option span:last-child { color: var(--moon); font-size: 22px; line-height: 1; }
.guide-directions { display: grid; gap: 12px; }
.guide-directions section { padding: 16px; border: 1px solid rgba(204,211,214,.18); border-radius: 14px; background: rgba(255,255,255,.035); }
.guide-directions section:last-child { border-color: rgba(243,213,154,.28); background: rgba(243,213,154,.055); }
.guide-directions h2 { margin-bottom: 8px; font-size: 23px; }
.guide-privacy { padding: 12px 14px; border-left: 2px solid rgba(243,213,154,.55); background: rgba(243,213,154,.055); font-family: Inter, sans-serif !important; font-size: 12px !important; line-height: 1.45 !important; }
.guide-form { margin-top: 18px; display: grid; gap: 8px; }
.guide-form label { color: rgba(237,242,239,.7); font-size: 12px; }
.guide-form textarea { width: 100%; min-height: 118px; resize: vertical; padding: 12px 13px; border: 1px solid rgba(204,211,214,.24); border-radius: 12px; outline: 0; color: #f4efe4; background: rgba(0,0,0,.2); font: 14px/1.45 Inter, sans-serif; }
.guide-form textarea:focus { border-color: rgba(255,225,151,.74); box-shadow: 0 0 0 3px rgba(243,213,154,.09); }
.guide-form textarea::placeholder { color: rgba(237,242,239,.36); }
.guide-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guide-form-footer span { color: rgba(237,242,239,.44); font-size: 11px; }
.guide-form-footer button,
.guide-actions a,
.guide-actions button { padding: 11px 15px; border: 1px solid rgba(255,225,151,.48); border-radius: 999px; color: #fff0c5; background: rgba(243,213,154,.08); text-decoration: none; cursor: pointer; }
.guide-form-footer button:hover:not(:disabled),
.guide-actions a:hover,
.guide-actions button:hover { background: rgba(243,213,154,.16); border-color: var(--moon); }
.guide-form-footer button:disabled { opacity: .35; cursor: default; }
.guide-content blockquote { margin: 18px 0 0; padding: 14px 16px; border: 1px solid rgba(204,211,214,.16); border-left: 2px solid var(--moon); border-radius: 0 12px 12px 0; color: rgba(237,242,239,.82); background: rgba(0,0,0,.16); font: 14px/1.48 Georgia, serif; overflow-wrap: anywhere; }
.guide-actions { margin-top: 22px; display: grid; gap: 9px; }
.guide-actions a,
.guide-actions button { display: flex; align-items: center; justify-content: space-between; text-align: left; font-size: 13px; }
.guide-footer { min-height: 44px; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid rgba(243,213,154,.14); color: rgba(237,242,239,.42); font-size: 10px; }
.guide-footer button { padding: 5px 0; border: 0; color: rgba(243,213,154,.66); background: transparent; cursor: pointer; }
.guide-footer button:hover { color: var(--moon); }

/* Larger, readable footer with a steady warm contact button. */
.guide-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  gap: 8px 12px;
  padding: 12px 14px;
  flex-shrink: 0;
  font-size: 20px;
  line-height: 1.3;
  color: #ccd3d6;
}
.guide-footer button {
  min-width: 0;
  min-height: 44px;
  font: inherit;
  white-space: normal;
  overflow-wrap: anywhere;
}
.guide-footer > button:first-child {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
}
.guide-footer > span {
  grid-column: 2;
  grid-row: 1;
  text-align: right;
  overflow-wrap: anywhere;
}
.guide-footer > button:nth-child(2) {
  grid-column: 1 / -1;
  grid-row: 2;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid #ffe4ad;
  border-radius: 999px;
  color: #071a2b;
  background: linear-gradient(135deg, #fff0ce, #f3d59a);
  box-shadow: 0 0 16px rgba(243,213,154,.3), inset 0 1px 0 rgba(255,255,255,.65);
  font-weight: 600;
  text-align: center;
}
.guide-footer > button:nth-child(2):hover {
  color: #071a2b;
  background: #fff0ce;
  box-shadow: 0 0 20px rgba(243,213,154,.45);
}
.guide-footer button:focus-visible {
  outline: 2px solid #fff0ce;
  outline-offset: 3px;
}
.guide-option-primary { background: rgba(243,213,154,.16); border-color: #d8b76d; font-weight: 600; }
.guide-story-cards { display: grid; gap: 14px; margin-top: 20px; }
.guide-story-card { padding: 16px; border: 1px solid rgba(243,213,154,.24); border-radius: 14px; background: rgba(255,255,255,.025); min-width: 0; }
.guide-story-card h3 { margin: 0 0 10px; line-height: 1.3; overflow-wrap: anywhere; }
.guide-story-card .guide-option { margin-top: 12px; }
.guide-catalog-tabs { grid-template-columns: 1fr 1fr; }
.guide-catalog-tabs [aria-pressed="true"] { border-color: #d8b76d; background: rgba(243,213,154,.15); }
.guide-search { display: grid; gap: 8px; margin: 20px 0 12px; color: #ccd3d6; font-size: 14px; }
.guide-search input { width: 100%; min-width: 0; padding: 12px; border: 1px solid #858578; border-radius: 10px; background: #0c2434; color: #fff3d1; font: inherit; font-size: 16px; }
.guide-pagination { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; }
.guide-pagination button { min-height: 44px; padding: 8px 12px; color: #fff3d1; border: 1px solid #858578; border-radius: 10px; background: transparent; cursor: pointer; }
.guide-pagination button:disabled { opacity: .4; cursor: default; }
.guide-footer button { min-height: 36px; color: #e6c985; }
.guide-content :is(button,a,input,summary):focus-visible { outline: 2px solid #ffdf97; outline-offset: 3px; }
.guide-content:focus { outline: none; }
.guide-catalog { overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .firefly-guide-trigger { right: 13px; bottom: 62px; min-height: 43px; padding: 6px 12px 6px 8px; font-size: 12px; }
  .guide-firefly { width: 25px; height: 25px; }
  .firefly-guide-panel { width: auto; max-height: calc(100svh - 76px); inset: 8px 8px 60px; bottom: 60px; border-radius: 18px 18px 6px 18px; }
  .guide-content { padding: 20px 18px; }
  .guide-content h2 { font-size: 26px; }
  .guide-option { padding: 11px 12px; font-size: 13px; }
  .guide-footer { min-height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .guide-firefly i,
  .firefly-guide-panel { animation: none; }
}

    .offline-view { display: none; }
    .offline-view.is-active { display: block; }
    [hidden] { display: none !important; }
    @media (display-mode: standalone) {
      body { padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
    }
  