/* ─────────────────────────────────────────────
   Spillway International Publications — Sample v5
   Modern Editorial: ivory ground, ink text,
   deep burgundy + restrained gilt gold.
   Motion: fluid reveals, gilt covers, and a mark that
   fully animates — it draws itself, then a gold current
   runs through it like water through a spillway.
   v5: book-team data sync (real listing copy, prices and
   store links throughout) + The Journey of the Word.
   ───────────────────────────────────────────── */

:root {
  --ivory: #faf7f1;
  --paper: #fffdf9;
  --ink: #1a1611;
  --ink-soft: #4c463c;
  --ink-faint: #8a8172;
  --accent: #6d1a2d;
  --accent-deep: #571324;
  --gold: #a9852f;
  --gold-bright: #e3c878;
  --gold-pale: #f3e9cf;
  --rule: #ddd5c6;
  --rule-dark: #1a1611;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --measure: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.is-loading { overflow: hidden; }

::selection { background: var(--accent); color: #fff; }

a { color: inherit; }

/* ─── LOADER · “book” in many tongues, then the mark in gold ─── */
.loader {
  position: fixed;
  inset: 0;
  z-index: 200;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, #fffdf9 0%, var(--ivory) 70%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: opacity .7s ease, visibility .7s ease;
}
.loader.done { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 240px;
  padding: 0 24px;
}
.loader-word {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(46px, 9vw, 88px);
  line-height: 1.15;
  color: var(--ink);
  text-align: center;
  animation: word-blink .105s steps(1) infinite;
}
.loader-final {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.loader-final.show { display: flex; animation: final-in .65s cubic-bezier(.2,.7,.25,1) both; }
/* The mark draws first; the name sets after it (v5 one-shot draw) */
.loader-final.show .loader-name { animation: final-in .6s cubic-bezier(.2,.7,.25,1) 1.05s both; }
.loader-final.show .loader-sub { animation: final-in .6s cubic-bezier(.2,.7,.25,1) 1.28s both; }
.loader-final::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 340px; height: 340px;
  transform: translate(-50%, -58%);
  background: radial-gradient(circle, rgba(227,200,120,.5) 0%, rgba(227,200,120,0) 62%);
  pointer-events: none;
}
.loader-mark .mark {
  width: 76px; height: 76px;
  filter: drop-shadow(0 0 18px rgba(201,162,39,.8)) drop-shadow(0 2px 6px rgba(169,133,47,.45));
}
.loader-name {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(30px, 5vw, 40px);
  letter-spacing: .3em;
  text-transform: uppercase;
  margin-top: 22px;
  padding-left: .3em;
}
.loader-sub {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .34em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 8px;
  padding-left: .34em;
}
.loader-hint {
  position: absolute;
  bottom: 34px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--ink-faint);
  animation: hint-pulse 1.8s ease-in-out infinite;
}
@keyframes word-blink { 0% { opacity: .25; } 30% { opacity: 1; } 100% { opacity: 1; } }
@keyframes final-in { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes hint-pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

/* ─── The mark — fully animated: it draws itself, then a gold
   current runs through it like water through a spillway.
   Base state (incl. reduced motion) is the complete static mark;
   all stroke motion lives in the no-preference block below. ─── */
.mark-wrap {
  position: relative;
  display: inline-flex;
  flex: none;
}
.mark .mg-ink path { stroke: var(--ink); }
.mark .mg-flow path { stroke: var(--gold); }
.loader-mark .mg-ink path { stroke: var(--gold); }
.loader-mark .mg-flow path { stroke: var(--gold-bright); }

@keyframes mark-breath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.022); }
}
/* Looping draw — staggered per stroke: bar, outer curve, inner curve, waves.
   The mark draws itself, holds while a gold current runs through it twice,
   then the strokes recede (like water pulling back) and it draws again. */
@keyframes md-a {
  0%   { stroke-dashoffset: 100; }
  12%  { stroke-dashoffset: 0; }
  88%  { stroke-dashoffset: 0; }
  97%  { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 100; }
}
@keyframes md-b {
  0%   { stroke-dashoffset: 100; }
  6%   { stroke-dashoffset: 100; }
  18%  { stroke-dashoffset: 0; }
  88%  { stroke-dashoffset: 0; }
  97%  { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 100; }
}
@keyframes md-c {
  0%   { stroke-dashoffset: 100; }
  10%  { stroke-dashoffset: 100; }
  22%  { stroke-dashoffset: 0; }
  89%  { stroke-dashoffset: 0; }
  98%  { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 100; }
}
@keyframes md-d {
  0%   { stroke-dashoffset: 100; }
  15%  { stroke-dashoffset: 100; }
  27%  { stroke-dashoffset: 0; }
  89%  { stroke-dashoffset: 0; }
  98%  { stroke-dashoffset: 100; }
  100% { stroke-dashoffset: 100; }
}
/* The gold current — two passes through each stroke per cycle */
@keyframes mf-a {
  0%, 27%   { stroke-dashoffset: 110; opacity: 0; }
  30%       { opacity: 1; }
  50%       { stroke-dashoffset: -16; opacity: 1; }
  53%       { stroke-dashoffset: -16; opacity: 0; }
  56%       { stroke-dashoffset: 110; opacity: 0; }
  59%       { opacity: 1; }
  79%       { stroke-dashoffset: -16; opacity: 1; }
  83%, 100% { stroke-dashoffset: -16; opacity: 0; }
}
@keyframes mf-b {
  0%, 30%   { stroke-dashoffset: 110; opacity: 0; }
  33%       { opacity: 1; }
  53%       { stroke-dashoffset: -16; opacity: 1; }
  56%       { stroke-dashoffset: -16; opacity: 0; }
  59%       { stroke-dashoffset: 110; opacity: 0; }
  62%       { opacity: 1; }
  82%       { stroke-dashoffset: -16; opacity: 1; }
  86%, 100% { stroke-dashoffset: -16; opacity: 0; }
}
@keyframes mf-c {
  0%, 33%   { stroke-dashoffset: 110; opacity: 0; }
  36%       { opacity: 1; }
  56%       { stroke-dashoffset: -16; opacity: 1; }
  59%       { stroke-dashoffset: -16; opacity: 0; }
  62%       { stroke-dashoffset: 110; opacity: 0; }
  65%       { opacity: 1; }
  85%       { stroke-dashoffset: -16; opacity: 1; }
  89%, 100% { stroke-dashoffset: -16; opacity: 0; }
}
@keyframes mf-d {
  0%, 36%   { stroke-dashoffset: 110; opacity: 0; }
  39%       { opacity: 1; }
  59%       { stroke-dashoffset: -16; opacity: 1; }
  62%       { stroke-dashoffset: -16; opacity: 0; }
  65%       { stroke-dashoffset: 110; opacity: 0; }
  68%       { opacity: 1; }
  88%       { stroke-dashoffset: -16; opacity: 1; }
  92%, 100% { stroke-dashoffset: -16; opacity: 0; }
}
/* Loader finale — one-shot: the mark draws itself in gold, the current follows */
@keyframes md-once {
  from { stroke-dashoffset: 100; }
  to   { stroke-dashoffset: 0; }
}
@keyframes mf-once {
  0%   { stroke-dashoffset: 110; opacity: 0; }
  12%  { opacity: 1; }
  86%  { opacity: 1; }
  100% { stroke-dashoffset: -16; opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .mark-draw { animation: mark-breath 7.2s ease-in-out infinite; transform-origin: center; }
  .mark-draw .md { stroke-dasharray: 100; animation: 7.2s ease-in-out infinite; }
  .mark-draw .md1 { animation-name: md-a; }
  .mark-draw .md2 { animation-name: md-b; }
  .mark-draw .md3 { animation-name: md-c; }
  .mark-draw .md4, .mark-draw .md5 { animation-name: md-d; }
  .mark-draw .mf { stroke-dasharray: 16 84; opacity: 0; animation: 7.2s linear infinite; }
  .mark-draw .mf1 { animation-name: mf-a; }
  .mark-draw .mf2 { animation-name: mf-b; }
  .mark-draw .mf3 { animation-name: mf-c; }
  .mark-draw .mf4, .mark-draw .mf5 { animation-name: mf-d; }

  .mark-once .md { stroke-dasharray: 100; stroke-dashoffset: 100; animation: md-once 1.5s ease-out both; }
  .mark-once .md1 { animation-delay: 0s; }
  .mark-once .md2 { animation-delay: .14s; }
  .mark-once .md3 { animation-delay: .28s; }
  .mark-once .md4 { animation-delay: .44s; }
  .mark-once .md5 { animation-delay: .56s; }
  .mark-once .mf { stroke-dasharray: 16 84; stroke-dashoffset: 110; opacity: 0; animation: mf-once 1.5s linear both; }
  .mark-once .mf1 { animation-delay: .55s; }
  .mark-once .mf2 { animation-delay: .69s; }
  .mark-once .mf3 { animation-delay: .83s; }
  .mark-once .mf4 { animation-delay: .99s; }
  .mark-once .mf5 { animation-delay: 1.11s; }
}

/* ─── Reveal on scroll — a page turning ─── */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .9s cubic-bezier(.2,.65,.25,1), transform .9s cubic-bezier(.2,.65,.25,1);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ─── Header ─── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 56px);
  background: rgba(250, 247, 241, .96);
  border-bottom: 1px solid var(--rule-dark);
  box-shadow: 0 1px 0 rgba(169,133,47,.35);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand .mark { width: 34px; height: 34px; display: block; }
.brand-text {
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: .01em;
  white-space: nowrap;
}
.brand-sub {
  font-weight: 400;
  font-style: italic;
  color: var(--ink-soft);
  font-size: 17px;
}
.topnav { display: flex; align-items: center; gap: clamp(15px, 2.6vw, 32px); }
.topnav a {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 4px 0;
  border-bottom: 2px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.topnav a:hover { color: var(--accent); border-bottom-color: var(--gold); }
.topnav a.nav-cta {
  color: var(--accent);
  border: 1px solid var(--accent);
  padding: 8px 14px;
}
.topnav a.nav-cta:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* ─── Buttons ─── */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 15px 26px;
  cursor: pointer;
  transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}
.btn-solid { background: var(--ink); color: var(--ivory); border: 1px solid var(--ink); }
.btn-solid:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-line { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn-line:hover { border-color: var(--gold); color: var(--accent); box-shadow: inset 0 0 0 1px var(--gold); }
.btn-gold {
  background: linear-gradient(180deg, #cda64e, var(--gold));
  color: #241a05;
  border: 1px solid #8a6d24;
}
.btn-gold:hover { box-shadow: 0 10px 26px -8px rgba(201,162,39,.75); transform: translateY(-2px); color: #1a1203; }
.btn-ghost { background: transparent; color: #f7efe2; border: 1px solid rgba(247,239,226,.65); }
.btn-ghost:hover { border-color: var(--gold-bright); color: var(--gold-pale); }
.btn-buy { background: var(--ink); color: var(--ivory); border: 1px solid var(--ink); padding: 12px 20px; }
.btn-buy:hover {
  background: linear-gradient(180deg, #cda64e, var(--gold));
  border-color: #8a6d24;
  color: #241a05;
  box-shadow: 0 8px 20px -8px rgba(169,133,47,.8);
}

/* ─── Covers — gilt edges, shine, life ─── */
.cover-wrap {
  position: relative;
  transform: perspective(900px) translateY(calc(var(--py, 0px) + var(--ty, 0px))) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  box-shadow: var(--shx, 0px) calc(14px + var(--shy, 0px)) 30px -12px rgba(26, 22, 17, .32), 0 4px 10px rgba(26, 22, 17, .1);
}
.cover-wrap > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5 / 8;
  object-fit: cover;
  background: #eee7da;
}
/* gilt spine (left) + gilded page edge (right) */
.cover-gilt::before {
  content: "";
  position: absolute;
  top: 0; bottom: 0; left: 0;
  width: 4px;
  z-index: 3;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 38%, #7d5f1e 72%, var(--gold-bright));
  box-shadow: 1px 0 3px rgba(26,22,17,.35);
  pointer-events: none;
}
.cover-gilt::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: 2px;
  z-index: 3;
  background: linear-gradient(180deg, rgba(255,246,214,.95), rgba(227,200,120,.5) 55%, rgba(255,246,214,.85));
  pointer-events: none;
  transition: width .38s cubic-bezier(.2,.65,.25,1);
}
/* lifting a cover reveals its page edges */
.book:hover .cover-gilt::after, .shop-item:hover .cover-gilt::after,
.book:focus-visible .cover-gilt::after, .shop-item:focus-within .cover-gilt::after {
  width: 6px;
  background: repeating-linear-gradient(90deg, #f7efdb 0 1.5px, #d9cbaa 1.5px 3px);
}
/* the catalogue cascade breathes a little longer — like browsing a row */
.book-grid .book.reveal { transition-duration: 1.15s, 1.15s; }
/* shine sweep */
.cover-shine {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 2;
  pointer-events: none;
}
.cover-shine::before {
  content: "";
  position: absolute;
  top: -12%; bottom: -12%;
  left: -80%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255,250,230,.42) 50%, transparent);
  transform: skewX(-14deg);
}
.reveal.in .cover-shine::before { animation: shine-sweep 1.25s ease .45s 1 both; }
.cover-wrap:hover .cover-shine::before,
.book:focus-visible .cover-shine::before,
.shop-item:focus-within .cover-shine::before { animation: shine-sweep 1s ease 1 both; }
@keyframes shine-sweep { from { left: -80%; } to { left: 135%; } }

/* gentle idle float for grid covers */
.book .cover-wrap > img,
.shop-item .cover-wrap > img { animation: cover-float 8.5s ease-in-out infinite; }
.book:nth-child(2) .cover-wrap > img, .shop-item:nth-child(2) .cover-wrap > img { animation-delay: -2.4s; }
.book:nth-child(3) .cover-wrap > img, .shop-item:nth-child(3) .cover-wrap > img { animation-delay: -4.8s; }
.book:nth-child(5) .cover-wrap > img, .shop-item:nth-child(5) .cover-wrap > img { animation-delay: -1.6s; }
.book:nth-child(6) .cover-wrap > img, .shop-item:nth-child(6) .cover-wrap > img { animation-delay: -3.9s; }
.cover-float > img { animation: cover-float 7s ease-in-out infinite; }
@keyframes cover-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* ─── Hero ─── */
.hero {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 56px) clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
  border-bottom: 1px solid var(--rule);
}
.kicker {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 28px;
}
.kicker-rule { display: inline-block; width: 44px; height: 2px; background: linear-gradient(90deg, var(--gold), var(--gold-bright)); }
.hero-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(42px, 5.6vw, 74px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin-bottom: 30px;
}
.hero-title em { font-style: italic; font-weight: 300; color: var(--accent-deep); }
.hero-intro {
  max-width: 34em;
  font-size: 17px;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-feature { max-width: 340px; justify-self: end; width: 100%; }
.hero-feature figcaption {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-dark);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fig-label {
  font-size: 11px; font-weight: 600; letter-spacing: .22em;
  text-transform: uppercase; color: var(--gold);
}
.fig-title { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-top: 2px; }
.fig-author { font-size: 13px; color: var(--ink-faint); }
.fig-blurb {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-soft);
  margin-top: 10px;
}

/* ─── Sections ─── */
.section {
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 56px);
}
.section-alt {
  max-width: none;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.section-alt > * { max-width: var(--measure); margin-left: auto; margin-right: auto; }
.section-alt .section-head, .section-alt .about-cols, .section-alt .publish-grid, .section-alt .shop-grid,
.section-alt .about-blocks, .section-alt .faq-grid {
  padding-left: clamp(20px, 5vw, 56px);
  padding-right: clamp(20px, 5vw, 56px);
}
.section-alt { padding-left: 0; padding-right: 0; }

.section-head { margin-bottom: clamp(36px, 5vw, 60px); }
.section-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-dark);
  background: linear-gradient(90deg, var(--gold), var(--gold-bright)) bottom left / 76px 2px no-repeat;
  margin-bottom: 26px;
}
.section-no { font-family: var(--serif); font-size: 20px; font-weight: 500; color: var(--accent); letter-spacing: 0; }
.section-head h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.1;
}
.section-lede { margin-top: 14px; max-width: 38em; color: var(--ink-soft); font-size: 16px; }
.lede-opening { font-family: var(--serif); font-size: 19px; color: var(--accent-deep); display: block; margin-bottom: 6px; }

/* ─── The Books ─── */
.book-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4.5vw, 56px) clamp(28px, 4vw, 52px);
}
.book { outline: none; }
.book-no {
  font-size: 11px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-faint);
  padding-bottom: 10px; margin-bottom: 16px;
  border-bottom: 1px solid var(--gold-pale);
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
}
.book-flag, .shop-flag {
  font-size: 10.5px; font-weight: 600; letter-spacing: .2em;
  text-transform: uppercase; color: var(--gold);
}
.book h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.15;
  margin-top: 20px;
}
.book-series { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-soft); margin-top: 3px; min-height: 1.4em; }
.book-author { font-size: 14px; font-weight: 500; margin-top: 8px; }
.book-genre {
  font-size: 11px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent); margin-top: 4px;
}

/* ─── INTERLUDE · Where the writing and reading begin ─── */
.feature {
  position: relative;
  overflow: hidden;
  background: linear-gradient(155deg, #571324 0%, var(--accent) 46%, #3d0c1b 100%);
  color: #f7efe2;
}
.feature-collage {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  opacity: .17;
}
.feature-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 90% at 50% 50%, rgba(61,12,27,.18) 0%, rgba(61,12,27,.87) 78%);
  z-index: 1;
}
.feature::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  z-index: 2;
}
.feature-inner {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
  padding: clamp(76px, 10vw, 132px) clamp(20px, 5vw, 48px);
}
.feature-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 30px;
}
.feature-eyebrow::before, .feature-eyebrow::after {
  content: "";
  width: 52px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}
.feature-eyebrow::after { background: linear-gradient(90deg, var(--gold), transparent); }
.feature-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.2vw, 64px);
  line-height: 1.1;
  margin-bottom: 30px;
}
.feature-title em { font-style: italic; font-weight: 300; color: var(--gold-bright); }
.feature-lines {
  font-family: var(--serif);
  font-size: clamp(17.5px, 2vw, 21px);
  line-height: 1.65;
  color: #efe3cd;
  max-width: 34em;
  margin: 0 auto;
}
.feature-lines + .feature-lines { margin-top: 16px; }
.feature-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 40px;
}

/* ─── About ─── */
.about-cols { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 5vw, 72px); }
.about-lead {
  font-family: var(--serif);
  font-weight: 400;
  font-style: italic;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.35;
  color: var(--accent-deep);
}
.about-body p { color: var(--ink-soft); font-size: 16.5px; max-width: 36em; }
.about-body p + p { margin-top: 18px; }
.craft-line {
  display: flex;
  align-items: center;
  gap: 18px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--accent-deep);
  margin-top: 32px;
  max-width: 36em;
}
.craft-rule { flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.craft-rule:last-child { background: linear-gradient(90deg, var(--gold), transparent); }

/* ─── Authors — editorial index rows ─── */
.author-list { border-top: 1px solid var(--rule-dark); }
.author-row {
  display: grid;
  grid-template-columns: 1.1fr .6fr 1.6fr;
  gap: clamp(16px, 3vw, 44px);
  align-items: baseline;
  padding: 26px 0;
  border-bottom: 1px solid var(--rule);
  transition: background .3s ease;
}
.author-row:hover { background: rgba(227,200,120,.08); }
.author-row h3 { font-family: var(--serif); font-weight: 600; font-size: 23px; }
.author-role {
  font-size: 11px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--accent);
}
.author-note { color: var(--ink-soft); font-size: 15px; }

/* ─── Shop ─── */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(32px, 4.5vw, 56px) clamp(28px, 4vw, 52px);
}
.shop-item {
  border-top: 2px solid var(--gold-pale);
  padding-top: 20px;
  outline: none;
}
.shop-item .cover-wrap { max-width: 230px; }
.shop-info { margin-top: 20px; }
.shop-flag { margin-bottom: 6px; }
.shop-info h3 { font-family: var(--serif); font-weight: 600; font-size: 23px; line-height: 1.15; }
.shop-series { font-family: var(--serif); font-style: italic; font-size: 14.5px; color: var(--ink-soft); margin-top: 3px; }
.shop-author { font-size: 14px; font-weight: 500; margin-top: 7px; }
.shop-formats {
  font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-soft); margin-top: 10px;
}
.shop-avail {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  color: var(--accent-deep);
  margin-top: 12px;
}
.shop-info .btn-buy { margin-top: 14px; }

/* ─── Publish ─── */
.publish-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(36px, 5vw, 72px); align-items: start; }
.publish-lede { color: var(--ink-soft); font-size: 16.5px; max-width: 34em; }
.publish-steps { list-style: none; margin-top: 32px; }
.publish-steps li {
  display: flex; gap: 18px; align-items: baseline;
  padding: 18px 0;
  border-top: 1px solid var(--rule);
}
.publish-steps li:last-child { border-bottom: 1px solid var(--rule); }
.step-no {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--gold);
  flex: none;
  width: 26px;
}
.publish-steps p { color: var(--ink-soft); font-size: 15.5px; }
.publish-steps b { color: var(--ink); font-weight: 600; }

.enquiry {
  background: var(--ivory);
  border: 1px solid var(--rule-dark);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.form-title {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gold-pale);
}
.enquiry label {
  display: flex; flex-direction: column; gap: 7px;
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-soft);
}
.enquiry input, .enquiry textarea {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  padding: 12px 14px;
  text-transform: none;
  letter-spacing: normal;
  width: 100%;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.enquiry input:focus, .enquiry textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(227,200,120,.45);
}
.enquiry textarea { resize: vertical; }
.enquiry .btn { align-self: flex-start; }
.form-note { font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; }
.form-note.sent { color: var(--accent); font-weight: 500; }

/* ─── Footer ─── */
.footer {
  text-align: center;
  padding: 64px 24px 56px;
  border-top: 1px solid var(--rule-dark);
  box-shadow: 0 -1px 0 rgba(169,133,47,.35);
}
.footer .mark { width: 44px; height: 44px; display: block; }
.foot-mark { margin-bottom: 16px; }
.foot-name { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.foot-tag { font-family: var(--serif); font-style: italic; color: var(--ink-soft); margin-top: 6px; }
.foot-craft {
  margin-top: 20px;
  font-size: 11px; font-weight: 600; letter-spacing: .34em;
  text-transform: uppercase; color: var(--gold);
}
.foot-legal {
  margin-top: 14px;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-feature { justify-self: start; max-width: 280px; }
  .book-grid, .shop-grid { grid-template-columns: repeat(2, 1fr); }
  .about-cols, .publish-grid { grid-template-columns: 1fr; }
  .author-row { grid-template-columns: 1fr; gap: 4px; padding: 22px 0; }
  .feature-collage { grid-template-columns: repeat(3, 1fr); }
  .feature-collage img:nth-child(n+4) { display: none; }
}
@media (max-width: 560px) {
  .topbar { flex-direction: column; align-items: flex-start; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
  .brand-sub { display: none; }
  .topnav { gap: 16px; flex-wrap: wrap; }
  .book-grid, .shop-grid { grid-template-columns: 1fr; max-width: 340px; }
  .shop-item .cover-wrap { max-width: 210px; }
  .hero-title { font-size: 40px; }
  .craft-line { flex-direction: column; gap: 10px; text-align: center; }
  .craft-rule { width: 64px; flex: none; }
}

/* ─── v4 · Highlight growth — more of the story, the facts ─── */
.fig-more {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-top: 10px;
}
.fig-facts {
  margin-top: 16px;
  border-top: 1px solid var(--gold-pale);
}
.fig-facts div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid var(--rule);
}
.fig-facts dt {
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint);
  flex: none;
}
.fig-facts dd { font-size: 13.5px; font-weight: 500; text-align: right; }
.fig-avail {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  color: var(--accent-deep);
  margin-top: 12px;
}
.fig-link {
  align-self: flex-start;
  margin-top: 8px;
  padding-bottom: 2px;
  font-size: 11px; font-weight: 600; letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  transition: color .25s ease, border-color .25s ease;
}
.fig-link:hover { color: var(--accent-deep); border-bottom-color: var(--accent); }

/* ─── v4 · Book entries — pull line, blurb, formats ─── */
.book-pull {
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--accent-deep);
  margin-top: 12px;
}
.book-blurb {
  font-size: 14.5px;
  line-height: 1.62;
  color: var(--ink-soft);
  margin-top: 8px;
}
.book-formats {
  font-size: 11px; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid var(--gold-pale);
}

/* ─── v4 · About — the three sub-blocks ─── */
.about-blocks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 4vw, 52px);
  margin-top: clamp(40px, 5vw, 64px);
}
.about-block { border-top: 2px solid var(--gold-pale); padding-top: 18px; }
.about-block h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 10px;
}
.about-block p { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

/* ─── v4 · Publish — welcome + what happens next ─── */
.publish-welcome { color: var(--ink-soft); font-size: 16.5px; max-width: 34em; margin-top: 18px; }
.publish-note { color: var(--ink-soft); font-size: 15.5px; max-width: 34em; margin-top: 26px; }

/* ─── v4 · For Readers — questions, answered ─── */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(30px, 4.5vw, 52px) clamp(36px, 5vw, 72px);
}
.faq-item { border-top: 2px solid var(--gold-pale); padding-top: 18px; }
.faq-item h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  line-height: 1.25;
  margin-bottom: 10px;
}
.faq-item p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.65; max-width: 32em; }
.faq-item a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
}
.faq-item a:hover { color: var(--accent-deep); }

/* ─── v4 · Footer — the fuller close ─── */
.foot-house {
  margin-top: 8px;
  font-size: 13px;
  letter-spacing: .05em;
  color: var(--ink-faint);
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px clamp(16px, 3vw, 30px);
  margin-top: 26px;
}
.foot-nav a {
  font-size: 11px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: color .25s ease, border-color .25s ease;
}
.foot-nav a:hover { color: var(--accent); border-bottom-color: var(--gold); }

/* ─── v5.3 · About — the house facts row (quiet, factual) ─── */
.house-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 46px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--gold-pale);
}
.house-facts div { display: flex; align-items: baseline; gap: 10px; }
.house-facts dt {
  font-size: 10.5px; font-weight: 600; letter-spacing: .18em;
  text-transform: uppercase; color: var(--ink-faint);
}
.house-facts dd { font-family: var(--serif); font-size: 17px; font-weight: 600; }

/* ─── v5.3 · The Journey of the Word — the River of the Word ─── */
#journey {
  background: var(--paper);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.river {
  position: relative;
  aspect-ratio: 1000 / 2960;
  margin-top: 18px;
}
.river::after { /* the wash deepens as the river nears today */
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(109,26,45,0) 52%,
    rgba(109,26,45,.045) 78%,
    rgba(109,26,45,.10) 100%);
}
.river-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.river-bed {
  fill: none;
  stroke: var(--gold-pale);
  stroke-width: 11;
  stroke-linecap: round;
  opacity: .55;
}
.river-draw {
  fill: none;
  stroke: url(#riverGold);
  stroke-width: 4.5;
  stroke-linecap: round;
}
.river-shimmer {
  fill: none;
  stroke: var(--gold-bright);
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-dasharray: 24 420;
  opacity: .85;
}
@media (prefers-reduced-motion: no-preference) {
  .river-shimmer { animation: river-flow 5.2s linear infinite; }
}
@keyframes river-flow { to { stroke-dashoffset: -444; } }
.river-drop {
  position: absolute;
  left: 50%;
  top: 0;
  width: 15px;
  height: 15px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, #fff6d8 0%, var(--gold-bright) 45%, var(--gold) 100%);
  box-shadow: 0 0 0 5px rgba(227,200,120,.28), 0 0 18px 6px rgba(169,133,47,.45);
  opacity: 0;
  z-index: 3;
}
.river-drop.live { opacity: 1; transition: opacity .5s ease; }
.bend-dot {
  position: absolute;
  width: 13px;
  height: 13px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--gold-bright);
  box-shadow: 0 0 0 4px var(--paper);
  z-index: 2;
}
.era {
  position: absolute;
  top: var(--bend);
  width: 43%;
  transform: translateY(-46%);
  opacity: 0;
  transition: opacity .9s cubic-bezier(.2,.65,.25,1), transform .9s cubic-bezier(.2,.65,.25,1);
  z-index: 2;
}
.era-l { left: 0; }
.era-r { right: 0; }
.era.in { opacity: 1; transform: translateY(-50%); }
.era-ghost {
  position: absolute;
  top: 50%;
  font-family: var(--serif);
  font-size: 190px;
  line-height: 1;
  color: var(--gold);
  opacity: .09;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  will-change: transform;
}
.era-l .era-ghost { right: -34px; transform: translateY(-50%); }
.era-r .era-ghost { left: -34px; transform: translateY(-50%); }
.era-ghost.ghost-drawn svg { width: 170px; height: 170px; display: block; }
.era-plate {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: linear-gradient(180deg, #fffefb 0%, var(--paper) 100%);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--gold);
  padding: 22px 24px 20px;
  box-shadow: 0 14px 34px rgba(26,22,17,.07);
}
.era-anchor {
  flex: none;
  width: 74px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 52px;
  line-height: 1;
  color: var(--accent-deep);
  background: radial-gradient(circle at 50% 42%, var(--gold-pale) 0%, rgba(243,233,207,0) 72%);
  border: 1px solid var(--gold-pale);
}
.era-anchor.glyph-hist {
  font-family: "Noto Sans Cuneiform", "Noto Sans Egyptian Hieroglyphs",
    "Noto Sans Phoenician", "Segoe UI Historic", var(--serif);
}
.era-anchor.glyph-drawn svg { width: 46px; height: 46px; }
.era-ghost.glyph-hist,
.era-ghost { font-family: "Noto Sans Egyptian Hieroglyphs", "Segoe UI Historic", var(--serif); }
.era-when {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  margin-bottom: 5px;
  color: var(--gold);
}
@media (prefers-reduced-motion: no-preference) {
  .era-when { /* gold-foil shimmer across the dates */
    background: linear-gradient(100deg, var(--gold) 20%, #d9b64f 40%, #f4e3ac 50%, #d9b64f 60%, var(--gold) 80%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: foil 6s ease-in-out infinite;
  }
}
@keyframes foil {
  0%, 100% { background-position: 110% 0; }
  50% { background-position: -10% 0; }
}
.era-text h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 24px;
  line-height: 1.2;
  margin-bottom: 6px;
}
.era-text p { color: var(--ink-soft); font-size: 15.5px; }
.era-bridge {
  margin-top: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  color: var(--accent-deep);
}
.river-mouth {
  position: absolute;
  left: 50%;
  bottom: 4px;
  transform: translateX(-50%);
  width: min(600px, 92%);
  text-align: center;
  z-index: 2;
}
.mouth-line {
  font-family: var(--serif);
  font-style: italic;
  font-size: 19px;
  color: var(--accent-deep);
  margin-bottom: 14px;
}
.mouth-covers {
  display: flex;
  justify-content: center;
  gap: 8px;
}
.mouth-covers a {
  flex: none;
  width: 52px;
  transition: transform .35s cubic-bezier(.2,.65,.25,1);
}
.mouth-covers a:hover { transform: translateY(-6px); }
.mouth-covers img {
  display: block;
  width: 52px;
  height: auto;
  box-shadow: 0 6px 16px rgba(26,22,17,.22);
  outline: 1px solid rgba(169,133,47,.5);
  outline-offset: -1px;
}

/* Journey — mid widths */
@media (max-width: 1023px) and (min-width: 761px) {
  .era { width: 46%; }
  .era-anchor { width: 60px; height: 60px; font-size: 42px; }
  .era-anchor.glyph-drawn svg { width: 38px; height: 38px; }
  .era-ghost { font-size: 140px; }
  .era-ghost.ghost-drawn svg { width: 128px; height: 128px; }
  .era-plate { padding: 18px 18px 16px; gap: 15px; }
}

/* Journey — mobile: the river runs straight, plates stack along it */
@media (max-width: 760px) {
  .river { aspect-ratio: auto; margin-top: 8px; padding: 6px 0 0 52px; }
  .river::before { /* the straightened river */
    content: "";
    position: absolute;
    left: 21px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    background: linear-gradient(180deg, var(--gold-bright) 0%, var(--gold) 60%, #7c5f21 100%);
  }
  .river::after { inset: 0; }
  .river-svg, .river-drop, .bend-dot { display: none; }
  .era {
    position: relative;
    top: auto;
    width: 100%;
    left: auto;
    right: auto;
    transform: translateY(12px);
    margin-bottom: 30px;
  }
  .era.in { transform: none; }
  .era::before { /* bend dot on the straight river */
    content: "";
    position: absolute;
    left: -37px;
    top: 34px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--gold);
    border: 2px solid var(--gold-bright);
    box-shadow: 0 0 0 4px var(--paper);
    z-index: 3;
  }
  .era-ghost { font-size: 110px; opacity: .08; }
  .era-l .era-ghost, .era-r .era-ghost { right: -8px; left: auto; }
  .era-ghost.ghost-drawn svg { width: 100px; height: 100px; }
  .era-plate { padding: 17px 17px 15px; gap: 14px; }
  .era-anchor { width: 54px; height: 54px; font-size: 36px; }
  .era-anchor.glyph-drawn svg { width: 34px; height: 34px; }
  .era-text h3 { font-size: 21px; }
  .river-mouth {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    width: 100%;
    margin-top: 4px;
  }
  .mouth-covers { flex-wrap: wrap; }
  .mouth-covers a, .mouth-covers img { width: 44px; }
}

/* ─── v5 · The 3D highlight book (Three.js; 2D cover is the fallback) ─── */
.book3d-stage {
  position: absolute;
  inset: 0;
  z-index: 4;
}
.book3d-stage canvas {
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity .6s ease;
}
.book3d-live.book3d-ready .book3d-stage canvas { opacity: 1; }
.book3d-live.book3d-ready > img { visibility: hidden; }
.book3d-live .cover-shine { display: none; }
.book3d-live::before, .book3d-live::after { display: none; }
.fig-hint {
  display: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.book3d-on .fig-hint { display: block; }

/* ─── v5 · Interlude collage — a slow drift ─── */
@keyframes collage-drift {
  0%, 100% { transform: scale(1) translateY(0); }
  50%      { transform: scale(1.045) translateY(-8px); }
}
.feature-collage img { animation: collage-drift 16s ease-in-out infinite; }
.feature-collage img:nth-child(2n) { animation-delay: -5s; }
.feature-collage img:nth-child(3n) { animation-delay: -10s; }

/* ─── v5 · Shop — paired buy buttons ─── */
.shop-info .btn-buy { margin-right: 8px; }
.shop-info .btn-buy:last-child { margin-right: 0; }

/* ─── v4 · Responsive additions ─── */
@media (max-width: 900px) {
  .about-blocks { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
}

/* ─── Reduced motion ─── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader-word, .loader-hint,
  .book .cover-wrap > img, .shop-item .cover-wrap > img, .cover-float > img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .era { opacity: 1; transform: translateY(-50%); transition: none; }
  .river-shimmer { animation: none; }
  .river-drop { display: none; }
  .mouth-covers a { transition: none; }
  .feature-collage img { animation: none; }
  .cover-gilt::after { transition: none; }
  .reveal.in .cover-shine::before, .cover-wrap:hover .cover-shine::before { animation: none; }
  .cover-wrap { transform: none; }
  .btn, .author-row { transition: none; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 760px) {
  .era { transform: none; }
}

/* ─── v5.4 · How Spillway Was Born — a burgundy chapter ───
   A bound chapter set into the book: deep burgundy field, cream
   text, and a gold stream that draws down the margin as the
   story is read — the spillway current, retold as a margin line. */
.story {
  position: relative;
  background: linear-gradient(180deg, var(--accent-deep) 0%, #47101f 55%, var(--accent-deep) 100%);
  color: #f5eedd;
  padding: clamp(72px, 9vw, 118px) clamp(20px, 5vw, 56px);
  overflow: hidden;
}
.story-glow {
  position: absolute;
  top: -180px; left: 50%;
  width: 720px; height: 480px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(227,200,120,.20) 0%, rgba(227,200,120,0) 65%);
  pointer-events: none;
}
@media (prefers-reduced-motion: no-preference) {
  .story-glow { animation: story-glow-breathe 9s ease-in-out infinite; }
  @keyframes story-glow-breathe { 0%, 100% { opacity: .65; } 50% { opacity: 1; } }
}
.story-head { position: relative; max-width: 44em; margin: 0 auto; text-align: center; }
.story-kicker {
  font-size: 11px; font-weight: 600;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--gold-bright);
}
.story-head h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(34px, 5vw, 52px); line-height: 1.12;
  color: var(--paper); margin-top: 14px;
}
.story-lede {
  margin: 16px auto 0; max-width: 36em;
  font-family: var(--serif); font-style: italic;
  font-size: 18px; line-height: 1.6;
  color: rgba(245,238,221,.85);
}
.story-body {
  --storypad: clamp(28px, 5vw, 54px);
  position: relative;
  max-width: 680px;
  margin: clamp(44px, 6vw, 64px) auto 0;
  padding-left: var(--storypad);
}
.story-stream {
  position: absolute; left: 6px; top: 8px; bottom: 8px;
  width: 2px; border-radius: 2px;
  background: rgba(227,200,120,.18);
}
.story-stream-fill {
  position: absolute; left: 0; top: 0;
  width: 100%; height: 0%;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 12px rgba(227,200,120,.55);
}
.story-drop {
  position: absolute; left: 7px; top: 0;
  width: 9px; height: 9px;
  margin-left: -3.5px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 14px 4px rgba(227,200,120,.5);
  opacity: 0; transform: translateY(-50%);
  pointer-events: none;
}
.story-drop.live { opacity: 1; }
.story-beat { position: relative; margin-bottom: 42px; }
.story-beat::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--storypad) + 2px);
  top: 7px;
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--gold-bright);
  background: var(--accent-deep);
}
.story-years {
  font-family: var(--serif);
  font-size: 13px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 9px;
}
.story-text { font-size: 17px; line-height: 1.78; color: #f1e9d6; }
.story-text em { color: var(--gold-bright); }
.story-dropcap::first-letter {
  font-family: var(--serif); font-weight: 600;
  font-size: 3.3em; line-height: .82;
  float: left;
  padding: 5px 12px 0 0;
  color: var(--gold-bright);
}
.pending-lines { margin-top: 16px; display: grid; gap: 7px; max-width: 300px; }
.pending-lines span {
  display: block; height: 3px; border-radius: 2px;
  background: rgba(245,238,221,.5);
  transform-origin: left;
}
.pending-lines span:nth-child(1) { width: 82%; }
.pending-lines span:nth-child(2) { width: 64%; }
.pending-lines span:nth-child(3) { width: 74%; }
.pending-lines span:nth-child(4) { width: 46%; }
@media (prefers-reduced-motion: no-preference) {
  .pending-lines span { transform: scaleX(0); opacity: 0; transition: transform 1.1s cubic-bezier(.2,.65,.25,1), opacity 1.1s ease; }
  .story-beat.in .pending-lines span { transform: scaleX(1); opacity: .8; }
  .story-beat.in .pending-lines span:nth-child(2) { transition-delay: .18s, .18s; }
  .story-beat.in .pending-lines span:nth-child(3) { transition-delay: .36s, .36s; }
  .story-beat.in .pending-lines span:nth-child(4) { transition-delay: .54s, .54s; }
}
.story-closing { text-align: center; margin-top: 60px; padding-top: 42px; border-top: 1px solid rgba(227,200,120,.25); }
.story-closing-orn { color: var(--gold-bright); font-size: 18px; }
@media (prefers-reduced-motion: no-preference) {
  .story-closing-orn { animation: story-orn-pulse 4.5s ease-in-out infinite; }
  @keyframes story-orn-pulse { 0%, 100% { opacity: .5; transform: scale(1); } 50% { opacity: 1; transform: scale(1.18); } }
}
.story-closing-line { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 3vw, 24px); color: #f5eedd; margin-top: 12px; }
.story-closing-punch { font-family: var(--serif); font-weight: 600; font-size: clamp(24px, 3.6vw, 30px); color: var(--gold-bright); margin-top: 6px; }
.publish-echo { font-family: var(--serif); color: var(--accent); }
@media (prefers-reduced-motion: reduce) {
  .story-glow, .story-closing-orn { animation: none; }
  .story-stream-fill { height: 100%; }
  .story-drop { display: none; }
}

/* ─── v5.5 · Story head restyle + richer motion (owner's call) ───
   The centred head is replaced by an editorial masthead: left-set
   title rising line by line, a gold rule that draws out beside the
   kicker, and the fully-animated mark held in a medallion whose
   gold arc slowly circles it. Colour tone unchanged. */
.story-head {
  display: flex;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  text-align: left;
  max-width: 920px;
}
.story-head-main { flex: 1 1 auto; min-width: 0; }
.story-kicker { display: flex; align-items: center; gap: 14px; }
.story-kicker-line {
  display: inline-block; flex: none;
  height: 1px; width: 56px;
  background: linear-gradient(90deg, transparent, var(--gold-bright));
}
.story-head h2 {
  font-size: clamp(42px, 6.4vw, 70px);
  line-height: 1.03;
  margin-top: 18px;
}
.story-title em { font-style: italic; color: var(--gold-bright); }
.story-lede { margin: 20px 0 0; }
.story-medallion {
  position: relative; flex: none;
  width: clamp(124px, 16vw, 172px);
  height: clamp(124px, 16vw, 172px);
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227,200,120,.16) 0%, rgba(227,200,120,0) 68%);
}
.story-medallion-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(227,200,120,.45);
}
.story-medallion::before {
  content: "";
  position: absolute; inset: -9px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-top-color: rgba(227,200,120,.85);
  border-right-color: rgba(227,200,120,.25);
}
.story-medallion .mark { width: 52%; height: 52%; }
.story-medallion .mark .mg-ink path { stroke: var(--gold-pale); }
.story-medallion .mark .mg-flow path { stroke: var(--gold-bright); }
@media (prefers-reduced-motion: no-preference) {
  .story-medallion::before { animation: story-ring-spin 16s linear infinite; }
  @keyframes story-ring-spin { to { transform: rotate(360deg); } }
  .story-kicker-line { width: 0; transition: width 1.1s cubic-bezier(.2,.65,.25,1) .15s; }
  .story-head.in .story-kicker-line { width: 56px; }
  .story-title-line { display: block; opacity: 0; transform: translateY(30px); transition: opacity .95s cubic-bezier(.2,.65,.25,1), transform .95s cubic-bezier(.2,.65,.25,1); }
  .story-head.in .story-title-line { opacity: 1; transform: none; }
  .story-head.in .story-title-line:nth-child(2) { transition-delay: .16s; }
  .story-head .story-lede { opacity: 0; transform: translateY(12px); transition: opacity .9s ease .5s, transform .9s ease .5s; }
  .story-head.in .story-lede { opacity: 1; transform: none; }
  .story-medallion { opacity: 0; transform: scale(.88); transition: opacity 1.1s ease .3s, transform 1.1s cubic-bezier(.2,.65,.25,1) .3s; }
  .story-head.in .story-medallion { opacity: 1; transform: none; }
  /* Beats drift in along the stream, nodes pulse once as they land,
     and the year labels settle their tracking as they arrive. */
  .story-beat.reveal { transform: translate(16px, 10px); }
  .story-beat.reveal.in { transform: none; }
  .story-beat::after {
    content: "";
    position: absolute;
    left: calc(-1 * var(--storypad) + 2px);
    top: 7px;
    width: 10px; height: 10px;
    border-radius: 50%;
    border: 1px solid var(--gold-bright);
    opacity: 0;
    pointer-events: none;
  }
  .story-beat.in::after { animation: story-node-pulse 1.7s ease-out .35s 1 both; }
  @keyframes story-node-pulse { 0% { transform: scale(1); opacity: .85; } 100% { transform: scale(3); opacity: 0; } }
  .story-beat.in .story-years { animation: story-years-settle 1.2s ease both; }
  @keyframes story-years-settle { from { letter-spacing: .4em; } to { letter-spacing: .22em; } }
  /* The closing punch earns a drawn gold underline as it lands. */
  .story-closing-punch { position: relative; display: inline-block; }
  .story-closing-punch::after {
    content: "";
    position: absolute; left: 50%; bottom: -12px;
    height: 2px; width: 0;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
    transition: width 1.3s cubic-bezier(.2,.65,.25,1) .55s;
  }
  .story-closing.in .story-closing-punch::after { width: 132px; }
}
@media (max-width: 700px) {
  .story-head { flex-direction: column; align-items: flex-start; gap: 22px; }
  .story-medallion { width: 108px; height: 108px; }
}
@media (prefers-reduced-motion: reduce) {
  .story-medallion::before { animation: none; }
  .story-title-line, .story-head .story-lede, .story-medallion { opacity: 1; transform: none; transition: none; }
  .story-kicker-line { width: 56px; transition: none; }
  .story-beat::after { display: none; }
  .story-closing-punch::after { width: 132px; transition: none; }
}

/* ─── v5.6 · Story air — ghost letters drifting + gold dust (owner's ask) ───
   Great low-opacity words breathe slowly behind the chapter, and
   fine gold motes rise through it like dust in lamplight. All of it
   sits behind the text and never touches readability. */
.story-ghost {
  position: absolute;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.story-ghost-a {
  top: 26px; right: -1%;
  font-size: clamp(120px, 21vw, 290px);
  color: rgba(245,238,221,.055);
}
.story-ghost-b {
  bottom: 18px; left: -1%;
  font-size: clamp(96px, 17vw, 230px);
  color: rgba(227,200,120,.05);
}
.story-motes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.story-motes span {
  position: absolute;
  left: var(--x); bottom: var(--b);
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(227,200,120,.95) 0%, rgba(227,200,120,0) 70%);
  opacity: 0;
}
@media (prefers-reduced-motion: no-preference) {
  .story-ghost-a span { display: inline-block; animation: story-ghost-drift-a 46s ease-in-out infinite alternate; }
  .story-ghost-b span { display: inline-block; animation: story-ghost-drift-b 58s ease-in-out infinite alternate; }
  @keyframes story-ghost-drift-a { from { transform: translateX(0); } to { transform: translateX(-56px); } }
  @keyframes story-ghost-drift-b { from { transform: translateX(0); } to { transform: translateX(64px); } }
  .story-motes span { animation: story-mote-rise var(--d) linear infinite; animation-delay: var(--dl); }
  @keyframes story-mote-rise {
    0%   { transform: translate(0, 0); opacity: 0; }
    10%  { opacity: .85; }
    55%  { opacity: .5; }
    100% { transform: translate(var(--sway), -38vh); opacity: 0; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .story-ghost span { animation: none; }
  .story-motes span { animation: none; opacity: .3; }
}

/* ─── v5.7 · Footer — from the house of SAMAYAH.Co (owner's order) ─── */
.foot-from {
  margin-top: 16px;
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.foot-from a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(169,133,47,.45);
  padding-bottom: 1px;
  transition: color .3s ease, border-color .3s ease;
}
.foot-from a:hover { color: var(--accent); border-color: var(--accent); }
