/* ============================================================================
   SEPP SAGT — sales page only (index.html). Other pages keep style.css.
   Direction: "Alpine Nocturne — Kupferstich". Dark cinematic, didone display
   type, brass hairlines, framed bookplate panels, constant quiet motion.
   NOTE: brand animations run regardless of prefers-reduced-motion — Windows
   desktops very often report "reduce" (OS animation effects off) and the page
   read as dead. Motion here is slow and small.
   ============================================================================ */

:root {
  /* Kaminlicht — firelit near-black, glowing amber gold. Dark, warm,
     welcoming; the light itself sells. */
  --bg: #0d0a06;
  --panel: #191208;
  --panel-deep: #120d07;
  --text: #f7f0df;
  --text-soft: #ddceb0;
  --text-dim: #a5947a;
  --brass: #c99f4a;
  --brass-soft: #e0bf76;
  --brass-bright: #ffe3a1;
  --line: rgba(224, 191, 118, 0.18);
  --frame: rgba(224, 191, 118, 0.3);
  --font-display: "DM Serif Display", Georgia, serif;
  --font-body: "Schibsted Grotesk", "Segoe UI", sans-serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

body.nocturne {
  background: var(--bg);
  color: var(--text-soft);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(224, 191, 118, 0.3); color: var(--text); }

/* ---------------------------------------------------------------------------
   Ambient layers: breathing candle aura + film grain
   --------------------------------------------------------------------------- */
.aura {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 38% at 50% -6%, rgba(255, 190, 96, 0.17), transparent 70%),
    radial-gradient(46% 36% at 84% 108%, rgba(160, 84, 20, 0.22), transparent 72%),
    radial-gradient(36% 30% at 8% 92%, rgba(120, 66, 18, 0.16), transparent 70%);
  animation: breathe 7s ease-in-out infinite;
}
@keyframes breathe {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

/* rising embers — a few warm sparks drifting up the page */
.embers {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.embers i {
  position: absolute;
  left: var(--x, 50%);
  bottom: -3vh;
  width: var(--s, 4px);
  height: var(--s, 4px);
  border-radius: 50%;
  background: radial-gradient(circle, #ffd98f 0%, rgba(255, 170, 60, 0.7) 45%, transparent 75%);
  filter: blur(0.5px);
  opacity: 0;
  animation: emberRise var(--dur, 14s) linear var(--delay, 0s) infinite;
}
@keyframes emberRise {
  0% { transform: translate(0, 0); opacity: 0; }
  8% { opacity: var(--o, 0.7); }
  60% { opacity: var(--o, 0.7); }
  100% { transform: translate(var(--dx, 30px), -108vh); opacity: 0; }
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

main, header, section, footer { position: relative; z-index: 2; }

/* ---------------------------------------------------------------------------
   Layout primitives
   --------------------------------------------------------------------------- */
.wrap {
  width: min(100% - 48px, 640px);
  margin-inline: auto;
}

section.block { padding: clamp(40px, 7.5vw, 80px) 0; }

.center { text-align: center; }

/* ---------------------------------------------------------------------------
   Typography
   --------------------------------------------------------------------------- */
h1, h2, .quote-large, .price-now {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.002em;
}

h1 {
  font-size: clamp(48px, 12vw, 96px);
  line-height: 1.0;
  margin: 12px 0 18px;
}

h2 {
  font-size: clamp(30px, 6.4vw, 46px);
  line-height: 1.1;
}

/* brass rule draws under headings when they land */
h2.hline::after {
  content: "";
  display: block;
  width: 64px;
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--brass), transparent);
  transform: scaleX(0);
  transition: transform 1s var(--ease-out) 0.35s;
}
.reveal.in h2.hline::after { transform: scaleX(1); }

h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--text);
}

.eyebrow {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

.brand {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--brass);
}

.prose p { margin-bottom: 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--text); font-weight: 600; }

/* Repeating sheen sweep across the title */
.sheen {
  background: linear-gradient(
    100deg,
    var(--text) 42%,
    #fffdf4 50%,
    var(--brass-bright) 54%,
    var(--text) 62%
  );
  background-size: 300% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.reveal.in .sheen, .reveal.in.sheen { animation: sheen 6s ease-in-out 0.6s infinite; }
@keyframes sheen {
  0% { background-position: 100% 0; }
  32% { background-position: 0% 0; }
  100% { background-position: 0% 0; }
}

/* ---------------------------------------------------------------------------
   Hero
   --------------------------------------------------------------------------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(44px, 7vh, 80px) 0 40px;
  overflow: hidden;
}

.hero-scene {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(58% 42% at 50% 12%, rgba(255, 190, 96, 0.16), transparent 68%),
    radial-gradient(80% 60% at 50% 115%, #070502 40%, transparent 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.6s ease;
}
.hero-video.is-playing { opacity: 0.55; }

.hero-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 10, 6, 0.35), rgba(13, 10, 6, 0.72) 78%, var(--bg));
}

.hero .sub {
  font-size: clamp(17px, 4.2vw, 20px);
  color: var(--text-dim);
  max-width: 30ch;
  margin-inline: auto;
}

/* Book as a physical object under candlelight */
.cover-wrap {
  perspective: 1100px;
  margin: clamp(20px, 4vh, 36px) auto clamp(18px, 3vh, 28px);
  width: clamp(168px, 42vw, 236px);
}

.book {
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(calc(-9deg + var(--ty, 0deg))) rotateX(calc(3deg + var(--tx, 0deg)));
  transition: transform 0.35s ease-out;
  animation: bookFloat 5.5s ease-in-out infinite;
}

@keyframes bookFloat {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

.book .cover {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px 10px 10px 4px;
  box-shadow:
    0 40px 70px -20px rgba(0, 0, 0, 0.85),
    0 12px 28px rgba(0, 0, 0, 0.6);
}

/* fore-edge: stacked pages on the right */
.book::before {
  content: "";
  position: absolute;
  top: 1.5%;
  right: -7px;
  width: 7px;
  height: 97%;
  border-radius: 0 3px 3px 0;
  background: repeating-linear-gradient(
    180deg,
    #e9e2cf 0 2px,
    #cfc7b0 2px 3px
  );
  transform: rotateY(58deg);
  transform-origin: left;
}

/* warm under-glow pooling on the "table" */
.book::after {
  content: "";
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: -34px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(255, 180, 88, 0.45), transparent 72%);
  filter: blur(10px);
}

/* ---------------------------------------------------------------------------
   Price + CTA
   --------------------------------------------------------------------------- */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brass-bright);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
}

.price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 14px;
  line-height: 1;
}

.price-now {
  font-size: clamp(46px, 10vw, 58px);
  color: var(--brass-bright);
  text-shadow: 0 0 36px rgba(255, 200, 100, 0.45);
}

/* concrete saving under the price — loss aversion, spelled out */
.save {
  margin-top: 12px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-bright);
  text-shadow: 0 0 18px rgba(255, 190, 90, 0.5);
}

/* quiet urgency, no fake countdown */
.urgency {
  margin-top: 6px;
  font-size: 13px;
  color: var(--text-dim);
  font-style: italic;
}
.reveal.in .price-now { animation: priceDrop 0.8s var(--ease-out) 0.2s both; }
@keyframes priceDrop {
  from { opacity: 0; transform: translateY(-28px) scale(0.9); }
  to { opacity: 1; transform: none; }
}

.price-was {
  font-size: 21px;
  color: var(--text-dim);
  text-decoration-color: rgba(224, 191, 118, 0.55);
  text-decoration-thickness: 1.5px;
}

.price-note {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--text-dim);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 10px;
  padding: 19px 34px;
  margin-top: 18px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out),
    background-color 0.25s, border-color 0.25s, color 0.25s;
}

.cta.primary {
  position: relative;
  overflow: hidden;
  color: #251503;
  background: linear-gradient(170deg, #ffdf9e, #e3b45f 52%, #c08a35);
  box-shadow:
    0 0 38px -4px rgba(255, 186, 84, 0.5),
    0 18px 40px -14px rgba(0, 0, 0, 0.8);
  animation: ctaGlow 3.2s ease-in-out infinite;
  width: min(100%, 380px);
}
@keyframes ctaGlow {
  0%, 100% { box-shadow: 0 0 28px -6px rgba(255, 186, 84, 0.42), 0 18px 40px -14px rgba(0, 0, 0, 0.8); }
  50% { box-shadow: 0 0 62px 0 rgba(255, 196, 100, 0.72), 0 18px 44px -12px rgba(0, 0, 0, 0.85); }
}

/* light glint crossing the gold every few seconds */
.cta.primary::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255, 252, 240, 0.75) 50%, transparent);
  transform: translateX(-140%) skewX(-18deg);
  animation: ctaGlint 3.8s ease-in-out infinite;
}
@keyframes ctaGlint {
  0%, 45% { transform: translateX(-140%) skewX(-18deg); }
  75%, 100% { transform: translateX(360%) skewX(-18deg); }
}

.cta.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);
  box-shadow: 0 0 72px 2px rgba(255, 200, 105, 0.8), 0 22px 48px -14px rgba(0, 0, 0, 0.9);
}
.cta.primary:active { transform: translateY(0); }

.cta .arrow { transition: transform 0.25s var(--ease-out); }
.cta:hover .arrow { transform: translateX(5px); }

.cta.secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--frame);
}
.cta.secondary:hover { border-color: var(--brass-soft); transform: translateY(-1px); }

.trust-inline {
  margin-top: 14px;
  font-size: 13.5px;
  color: var(--text-dim);
  letter-spacing: 0.01em;
}

.chapter-link {
  display: inline-block;
  margin-top: 24px;
  font-size: 15px;
  color: var(--brass-soft);
  text-decoration: none;
  border-bottom: 1px solid rgba(224, 191, 118, 0.4);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}
.chapter-link:hover { color: var(--brass-bright); border-color: var(--brass-bright); }

/* ---------------------------------------------------------------------------
   Divider — a single brass diamond, hairlines draw outward on reveal
   --------------------------------------------------------------------------- */
.divider {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100% - 48px, 380px);
  margin-inline: auto;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line));
}
.divider::after { background: linear-gradient(90deg, var(--line), transparent); }
.divider .diamond {
  width: 7px;
  height: 7px;
  background: var(--brass);
  transform: rotate(45deg);
}
.js .divider.reveal::before, .js .divider.reveal::after {
  transform: scaleX(0);
  transition: transform 1.1s var(--ease-out) 0.15s;
}
.js .divider.reveal::before { transform-origin: right; }
.js .divider.reveal::after { transform-origin: left; }
.js .divider.reveal.in::before, .js .divider.reveal.in::after { transform: scaleX(1); }

/* ---------------------------------------------------------------------------
   Gold deco objects (Nano-Banana PNGs on pure black; screen-blend melts
   the black into the page so only the glowing gold remains)
   --------------------------------------------------------------------------- */
.deco {
  display: block;
  margin-inline: auto;
  pointer-events: none;
  height: auto;
  filter: drop-shadow(0 0 26px rgba(255, 180, 80, 0.35));
}
.key-img {
  width: min(200px, 52vw);
  margin-bottom: 6px;
  animation: keyFloat 7s ease-in-out infinite;
}
@keyframes keyFloat {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-10px) rotate(0deg); }
}
.seal-img {
  width: min(150px, 40vw);
  margin-bottom: 4px;
  animation: sealFloat 6s ease-in-out infinite;
}
@keyframes sealFloat {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(3deg); }
}

/* ---------------------------------------------------------------------------
   Quote + laws
   --------------------------------------------------------------------------- */
.quote-large {
  font-size: clamp(25px, 5.6vw, 36px);
  font-style: italic;
  line-height: 1.28;
  text-align: center;
  width: min(100% - 48px, 620px);
  margin: 0 auto;
  padding: clamp(36px, 6.5vw, 64px) 0 0;
}
.quote-large cite {
  display: block;
  margin-top: 20px;
  font-family: var(--font-body);
  font-style: normal;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brass-soft);
}

/* the laws, set like a table of contents: roman numeral + rule + line */
.laws {
  list-style: none;
  text-align: left;
  max-width: 520px;
  margin: 34px auto 0;
}
.laws li {
  display: flex;
  align-items: baseline;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(224, 191, 118, 0.12);
  color: var(--text-soft);
}
.laws li:last-child { border-bottom: none; }
.laws .n {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brass-soft);
  min-width: 44px;
  text-align: right;
  flex-shrink: 0;
}
.laws .more {
  color: var(--text-dim);
  font-style: italic;
}

.teaser-list {
  list-style: none;
  text-align: left;
  max-width: 480px;
  margin: 28px auto 0;
  display: grid;
  gap: 15px;
}
.teaser-list li {
  padding-left: 26px;
  position: relative;
  color: var(--text-soft);
}
.teaser-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--brass);
  transform: rotate(45deg);
}

.laws-kicker {
  margin: 16px auto 0;
  max-width: 42ch;
  color: var(--text-dim);
}

.recognize {
  margin-top: clamp(36px, 6vw, 56px);
  padding-top: clamp(32px, 5vw, 48px);
  border-top: 1px solid var(--line);
}

/* ---------------------------------------------------------------------------
   Quote marquee — a slow brass ribbon of lines from the book
   --------------------------------------------------------------------------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  margin: clamp(40px, 7.5vw, 80px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: drift 36s linear infinite;
}
.marquee-track ul {
  list-style: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.marquee-track li {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 4vw, 22px);
  color: var(--brass-soft);
}
.marquee-track li::after {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--brass);
  transform: rotate(45deg);
  margin: 0 36px;
  flex-shrink: 0;
  opacity: 0.6;
}
@keyframes drift { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------------------------
   Author note
   --------------------------------------------------------------------------- */
.about {
  max-width: 46ch;
  margin: 20px auto 0;
}
.about p { margin-bottom: 1em; }
.about p:last-child { margin-bottom: 0; }

/* ---------------------------------------------------------------------------
   Bookplate panel — matte, double brass frame (replaces liquid glass)
   --------------------------------------------------------------------------- */
.plate {
  position: relative;
  background: linear-gradient(172deg, var(--panel), var(--panel-deep) 75%);
  border: 1px solid var(--frame);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(245, 241, 230, 0.05),
    0 30px 60px -22px rgba(0, 0, 0, 0.75);
}
.plate::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(224, 191, 118, 0.14);
  border-radius: 11px;
  pointer-events: none;
}

/* ---------------------------------------------------------------------------
   Guarantee / final offer
   --------------------------------------------------------------------------- */
.offer-card {
  width: min(100% - 32px, 620px);
  margin-inline: auto;
  padding: clamp(32px, 6vw, 48px) clamp(22px, 5vw, 44px);
  text-align: center;
}

.monogram { display: block; margin: 0 auto 6px; }
.monogram .ring-outer { fill: none; stroke: var(--brass); stroke-width: 1.5; opacity: 0.55; }
.monogram .ring-inner { fill: none; stroke: var(--brass); stroke-width: 1; opacity: 0.3; }
.monogram text {
  fill: var(--brass-soft);
  font-family: var(--font-display);
  text-anchor: middle;
  dominant-baseline: central;
}

.offer-card h3 { margin: 14px 0 14px; }
.offer-card .word { max-width: 44ch; margin: 0 auto 6px; }

.sign {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 21px;
  color: var(--brass-soft);
  margin-top: 14px;
}

.trust {
  list-style: none;
  display: grid;
  gap: 8px;
  justify-items: center;
  margin: 22px 0 24px;
  font-size: 15px;
  color: var(--text-dim);
}
.trust .ck { color: var(--brass-soft); margin-right: 8px; }

.stack { margin-top: 24px; }
.stack-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brass-soft);
}
.stack .trust { margin-top: 12px; }

/* ---------------------------------------------------------------------------
   FAQ — native accordions, hairline rows
   --------------------------------------------------------------------------- */
.faq-block { padding-top: 0; }
.faq { max-width: 560px; margin: 30px auto 0; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brass-bright); }
.faq .fx {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--brass-soft);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease-out);
}
.faq details[open] .fx { transform: rotate(45deg); }
.faq details p {
  padding: 0 2px 20px;
  color: var(--text-dim);
  max-width: 52ch;
}

.steps-inline {
  margin-top: 20px;
  font-size: 14.5px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

/* ---------------------------------------------------------------------------
   Chapter capture
   --------------------------------------------------------------------------- */
.chapter-card {
  width: min(100% - 32px, 560px);
  margin: 0 auto clamp(56px, 10vw, 96px);
  padding: clamp(30px, 6vw, 44px) clamp(22px, 5vw, 44px);
  text-align: center;
}
.chapter-card h2 { font-size: clamp(27px, 5.5vw, 36px); margin: 10px 0 12px; }
.chapter-card > p { color: var(--text-dim); font-size: 15.5px; max-width: 40ch; margin-inline: auto; }

.email-form { margin-top: 24px; display: grid; gap: 12px; }
.email-form input[type="email"] {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: rgba(13, 10, 6, 0.5);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 15px 22px;
  text-align: center;
  outline: none;
  transition: border-color 0.2s;
}
.email-form input[type="email"]::placeholder { color: var(--text-dim); }
.email-form input[type="email"]:focus { border-color: var(--brass-soft); }
.email-form .cta { margin-top: 0; }
.email-form-error { display: none; font-size: 14px; color: #e0a68e; }
.email-form-error.form-note { color: var(--brass-soft); }

.chapter-alt {
  display: inline-block;
  margin-top: 18px;
  font-size: 14.5px;
  color: var(--text-dim);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.chapter-alt:hover { color: var(--brass-soft); }

/* ---------------------------------------------------------------------------
   Footer
   --------------------------------------------------------------------------- */
.site-footer { padding-bottom: 110px; }
.site-footer .ridge {
  display: block;
  width: 100%;
  height: 72px;
  margin-bottom: 30px;
}
.site-footer .ridge polyline {
  fill: none;
  stroke: var(--brass);
  stroke-width: 1;
  opacity: 0.3;
}
.site-footer .inner {
  width: min(100% - 48px, 640px);
  margin-inline: auto;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-dim);
}
.colophon { max-width: 54ch; margin: 0 auto 20px; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-bottom: 16px; }
.footer-links a, .footer-meta a { color: var(--text-dim); text-decoration: none; border-bottom: 1px solid var(--line); padding-bottom: 1px; }
.footer-links a:hover, .footer-meta a:hover { color: var(--brass-soft); }

/* ---------------------------------------------------------------------------
   Sticky buy bar — solid, framed, springs in
   --------------------------------------------------------------------------- */
.sticky-buy {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 50;
  width: min(100% - 20px, 520px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 10px 10px 22px;
  border-radius: 14px;
  background: rgba(18, 13, 7, 0.97);
  border: 1px solid var(--frame);
  box-shadow: 0 24px 50px -14px rgba(0, 0, 0, 0.85);
  transform: translate(-50%, 130%);
  opacity: 0;
  transition: transform 0.6s cubic-bezier(0.34, 1.4, 0.64, 1), opacity 0.35s;
}
.sticky-buy.is-visible { transform: translate(-50%, 0); opacity: 1; }
.sticky-buy .t { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.25; }
.sticky-buy .p { font-size: 13.5px; color: var(--brass-soft); }
.sticky-buy .p s { color: var(--text-dim); margin-left: 6px; }
.sticky-buy .cta {
  margin-top: 0;
  padding: 14px 20px;
  font-size: 12px;
  width: auto;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Chapter toast
   --------------------------------------------------------------------------- */
.chapter-toast {
  position: fixed;
  right: 16px;
  bottom: 90px;
  z-index: 49;
  width: min(100% - 32px, 330px);
  padding: 18px 40px 18px 20px;
  border-radius: 18px;
  background: linear-gradient(165deg, var(--panel), var(--panel-deep));
  border: 1px solid var(--line);
  box-shadow: 0 24px 50px -18px rgba(0, 0, 0, 0.75);
  font-size: 14.5px;
  transform: translateY(16px);
  opacity: 0;
  transition: transform 0.45s var(--ease-out), opacity 0.35s;
  pointer-events: none;
}
.chapter-toast.is-visible { transform: none; opacity: 1; pointer-events: auto; }
.chapter-toast strong { color: var(--text); }
.toast-cta { display: inline-block; margin-top: 8px; color: var(--brass-soft); text-decoration: none; }
.toast-close {
  position: absolute;
  top: 8px;
  right: 12px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 20px;
  cursor: pointer;
}

/* ---------------------------------------------------------------------------
   Reveal on scroll — blur-to-sharp, staggered via --d
   --------------------------------------------------------------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(30px);
  filter: blur(10px);
  transition:
    opacity 1s var(--ease-out),
    transform 1s var(--ease-out),
    filter 1s var(--ease-out);
  transition-delay: calc(var(--d, 0) * 130ms);
}
.js .cover-wrap.reveal { transform: translateY(30px) scale(0.92); }
.js .reveal.in { opacity: 1; transform: none; filter: none; }

/* ---------------------------------------------------------------------------
   Wider screens: keep badge + price + CTA inside the first viewport
   --------------------------------------------------------------------------- */
@media (min-width: 760px) {
  body.nocturne { font-size: 17.5px; }
  .teaser-list { max-width: 520px; }
  .sticky-buy .t { font-size: 15px; }

  .hero { padding-top: 40px; }
  .hero h1 { font-size: clamp(60px, 7.4vw, 80px); margin: 10px 0 14px; }
  .cover-wrap { width: 198px; margin: 24px auto 20px; }
  .price-now { font-size: 52px; }
}
