/* Forgotten Skills of Early America · sales page · Bygone America Press
   Palette: #151B17 smoke · #684C33 wood · #C8873A hearth amber · #AD9F8B linen · #4F6879 winter blue
   Fonts (OFL, served from fonts/): Libre Caslon Display (titles), Libre Caslon Text (text), Bygone Sans = Source Sans 3 600 (data, buttons).
   Mobile first. Motion only with prefers-reduced-motion: no-preference. */

@font-face { font-family: "Caslon Display"; src: url("fonts/LibreCaslonDisplay-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caslon Text"; src: url("fonts/LibreCaslonText-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Caslon Text"; src: url("fonts/LibreCaslonText-400Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Bygone Sans"; src: url("fonts/BygoneSans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #151B17; --night: #1B221E; --wood: #684C33; --amber: #C8873A; --amber-hi: #D99A4E; --linen: #AD9F8B;
  --winter: #4F6879; --paper: #F2EBDD; --card: #FBF7EE; --cream: #E9DFCB; --bright: #F6EFE2; --body-dark: #DCD1BC;
  --text-light: #2A2620; --muted-light: #5C4A38; --line-light: #DCCFB8;
  --display: "Caslon Display", "Big Caslon", Georgia, serif;
  --serif: "Caslon Text", "Big Caslon", Georgia, serif;
  --sans: "Bygone Sans", "Helvetica Neue", Arial, sans-serif;
  --w: 1160px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--cream); font: 400 17px/1.6 var(--serif); font-kerning: normal; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; }
.light :focus-visible { outline-color: var(--wood); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 20px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
em { font-style: italic; }

/* ---------- shared ---------- */
.label { font: 600 11.5px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--amber); margin: 0 0 12px; }
.light .label { color: var(--wood); }
h2 { font-size: 38px; line-height: 1.06; color: var(--bright); letter-spacing: -.005em; }
.light h2 { color: var(--ink); }
.lead { font-size: 18px; color: var(--body-dark); max-width: 36em; margin: 14px 0 0; }
.light .lead { color: var(--muted-light); }
.rule { width: 96px; height: 0; border-top: 1px solid var(--amber); margin: 18px 0; position: relative; transform-origin: left center; }
.rule::after { content: ""; position: absolute; left: 50%; top: -4px; width: 7px; height: 7px; background: var(--amber); transform: translateX(-50%) rotate(45deg); }
.light .rule { border-color: var(--wood); } .light .rule::after { background: var(--wood); }
section { padding: 64px 0; }
.light { background: var(--paper); color: var(--text-light); }
.dark { background: var(--night); }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; background: var(--amber); color: var(--ink); text-decoration: none;
  font: 600 16px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; padding: 0 30px; border-radius: 2px;
  box-shadow: 0 0 0 1px #E0A65E inset, 0 12px 28px -12px rgba(200,135,58,.8); transition: background .2s, transform .2s; }
.btn:hover { background: var(--amber-hi); transform: translateY(-1px); }
.price { font: 400 44px/1 var(--display); color: var(--bright); }
.price small { display: block; font: 600 11px/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--linen); margin-top: 6px; }
.light .price { color: var(--ink); } .light .price small { color: var(--muted-light); }
.buy { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.meta { font: 600 12.5px/1.6 var(--sans); color: var(--linen); margin: 16px 0 0; letter-spacing: .02em; }
.meta b { color: var(--bright); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; }
.guarantee { font: 600 13px/1.4 var(--sans); color: var(--body-dark); margin: 8px 0 0; }
.guarantee::before { content: "◆ "; color: var(--amber); font-size: 10px; vertical-align: 1px; }
.light .meta, .light .guarantee { color: var(--muted-light); } .light .meta b { color: var(--ink); }
.light .guarantee::before { color: var(--wood); }

/* ---------- 1. top ---------- */
.hero { position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 72% 40%, #3A2C1E 0%, #211d17 42%, var(--ink) 78%); }
.masthead { position: relative; max-width: var(--w); margin: 0 auto; padding: 22px 20px 0; display: flex; justify-content: center; }
.masthead .label { margin: 0; letter-spacing: .34em; }
.hero-grid { position: relative; max-width: var(--w); margin: 0 auto; padding: 22px 20px 40px; display: grid; gap: 26px; }
h1 { font-size: 46px; line-height: 1.02; color: var(--bright); letter-spacing: -.01em; margin: 0; }
h1 span { color: var(--amber); }
.hero .rule { margin: 16px 0 14px; }
.sub { font: italic 400 19px/1.4 var(--serif); color: var(--linen); margin: 0 0 12px; max-width: 30em; }
.promise { font-size: 17px; line-height: 1.55; color: var(--body-dark); margin: 0 0 22px; max-width: 32em; }

/* floating 3D book (CSS only, from the cover) */
.stage { position: relative; display: flex; justify-content: center; padding: 8px 0 36px; perspective: 1800px; }
.float { animation: float 6.5s ease-in-out infinite; }
.book { position: relative; width: 220px; aspect-ratio: 1275 / 1650; transform: rotateY(-24deg) rotateX(4deg); transform-style: preserve-3d; }
.book img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 1px 3px 3px 1px;
  box-shadow: inset 4px 0 6px -3px rgba(255,255,255,.25), 0 30px 50px -20px rgba(0,0,0,.7); }
.book .edge { position: absolute; top: 1.2%; right: -16px; width: 16px; height: 97.6%; transform-origin: left center; transform: rotateY(90deg);
  background: repeating-linear-gradient(to right, #f1e9d8 0 1px, #d6cab2 1px 2px); }
.book .spine { position: absolute; top: 0; left: 0; width: 22px; height: 100%; transform-origin: left center; transform: rotateY(-90deg);
  background: linear-gradient(to right, #0b0f0c, #2b241b 40%, #0b0f0c); }
.book::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255,255,255,0) 40%, rgba(255,240,210,.16) 50%, rgba(255,255,255,0) 60%); pointer-events: none; }
.ground { position: absolute; bottom: 6px; left: 50%; width: 200px; height: 26px; margin-left: -100px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,0,0,.8), rgba(0,0,0,0)); animation: shadow 6.5s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes shadow { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(.82); opacity: .55; } }

/* ---------- 2. strip of skills ---------- */
.strip { position: relative; background: var(--amber); color: var(--ink); overflow: hidden; white-space: nowrap; border-top: 1px solid #E0A65E; border-bottom: 1px solid #8a5a22; }
.track { display: inline-flex; padding: 13px 0; animation: scroll 160s linear infinite; }
.track span { font: italic 400 18px/1 var(--serif); padding: 0 16px; }
.track i { font-style: normal; font-size: 9px; align-self: center; opacity: .7; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- 3. four steps ---------- */
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: grid; gap: 14px; }
.steps li { background: var(--card); border: 1px solid var(--line-light); border-top: 3px solid var(--wood); padding: 20px 20px 18px; }
.steps li:first-child { border-top-color: var(--amber); }
.step { display: block; font: 600 11.5px/1.5 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--wood); }
.steps h3 { font-size: 24px; color: var(--ink); margin: 8px 0 10px; line-height: 1.12; }
.steps p { margin: 0; font-size: 16.5px; line-height: 1.55; }
.steps .quote { font: italic 400 18px/1.45 var(--serif); color: var(--ink); }
.steps .src { display: block; margin-top: 10px; font: 600 12px/1.45 var(--sans); color: var(--muted-light); }
.lore { font: 600 10.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--winter); border: 1px solid var(--winter); padding: 3px 6px 2px; white-space: nowrap; }

/* ---------- 4. come closer ---------- */
.closer-grid { display: grid; gap: 22px; margin-top: 30px; }
.plan { margin: 0; border: 1px solid rgba(200,135,58,.5); background: var(--paper); }
.map { position: relative; }
.plan img { width: 100%; }
.pt { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--ink);
  background: var(--amber); color: var(--ink); font: 600 16px/1 var(--sans); cursor: pointer; box-shadow: 0 0 0 4px rgba(200,135,58,.35); padding: 0; }
.pt[aria-pressed="true"] { background: var(--ink); color: var(--bright); border-color: var(--amber); box-shadow: 0 0 0 4px rgba(200,135,58,.55), 0 0 0 9px rgba(200,135,58,.2); }
.pt:hover { background: var(--amber-hi); }
.pt[aria-pressed="true"]:hover { background: var(--ink); }
.plan figcaption { font: 600 12px/1.5 var(--sans); color: var(--linen); padding: 10px 12px; background: var(--ink); letter-spacing: .02em; }
.panel { background: #232A25; border-top: 3px solid var(--amber); padding: 20px 18px 20px; }
.panel .num { font: 600 11px/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--amber); margin: 0; }
.panel h3 { font-size: 27px; line-height: 1.12; color: var(--bright); margin: 10px 0 14px; }
.panel .zoom { margin: 0 0 14px; border: 1px solid rgba(200,135,58,.45); background: var(--paper); overflow: hidden; }
.panel .zoom img { width: 100%; }
.panel p { margin: 0 0 10px; color: var(--body-dark); font-size: 17px; }
.panel .src { font: 600 12px/1.5 var(--sans); color: var(--linen); letter-spacing: .02em; }
.nav-pts { display: flex; gap: 12px; margin-top: 14px; }
.nav-pts button { min-width: 48px; min-height: 44px; font: 600 16px/1 var(--sans); background: transparent; color: var(--bright); border: 1px solid rgba(200,135,58,.7); cursor: pointer; border-radius: 2px; }
.nav-pts button:hover { border-color: var(--amber); color: var(--amber); }

/* ---------- 5. contents ---------- */
.contents { margin-top: 32px; display: grid; gap: 18px; }
.part { background: var(--card); border: 1px solid var(--line-light); padding: 20px 20px 10px; }
.part-n { font: 600 11px/1.4 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--wood); margin: 0 0 4px; }
.part h3 { font-size: 26px; line-height: 1.1; color: var(--ink); margin: 0 0 10px; }
.part-extra { background: transparent; border-style: dashed; align-self: start; }
.toc { list-style: none; padding: 0; margin: 0; }
.toc li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line-light); }
.toc .n { flex: 0 0 24px; font: 600 12.5px/1 var(--sans); color: var(--wood); }
.toc .t { flex: 1 1 auto; font-size: 17px; color: var(--text-light); line-height: 1.3; }
.toc .t em { display: block; font-size: 14.5px; color: var(--muted-light); margin-top: 2px; }
.toc .p { flex: 0 0 auto; font: 600 12px/1 var(--sans); color: var(--muted-light); }
.cta-mid { margin-top: 40px; padding-top: 30px; border-top: 1px solid var(--line-light); }

/* ---------- 6. flip through ---------- */
.pages { margin: 30px -20px 0; padding: 0 20px 16px; display: grid; grid-auto-flow: column; grid-auto-columns: 70%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.pages figure { margin: 0; scroll-snap-align: start; }
.pages img { width: 100%; aspect-ratio: 360 / 466; background: #fff; box-shadow: 0 18px 36px -18px rgba(0,0,0,.9), 0 0 0 1px rgba(200,135,58,.25); }
.pages figcaption { margin-top: 12px; font: 600 12.5px/1.45 var(--sans); color: var(--linen); }
.pages figcaption b { display: block; font: 400 21px/1.15 var(--display); color: var(--bright); margin-bottom: 3px; }
.swipe { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--linen); margin-top: 8px; }

/* ---------- 7. real records ---------- */
.sources { list-style: none; padding: 0; margin: 30px 0 0; display: grid; }
.sources li { display: grid; grid-template-columns: 1fr; align-content: start; gap: 3px; padding: 16px 0; border-top: 1px solid var(--line-light); }
.sources .yr { font: 600 12px/1.3 var(--sans); letter-spacing: .14em; color: var(--wood); }
.sources .who { font: 400 22px/1.15 var(--display); color: var(--ink); }
.sources .what { font-size: 15px; color: var(--muted-light); }
.sources p { margin: 6px 0 0; font: italic 400 17px/1.45 var(--serif); color: var(--text-light); }
.left-out { margin-top: 36px; background: var(--ink); color: var(--body-dark); padding: 24px 22px; border-top: 3px solid var(--winter); }
.left-out h3 { font-size: 26px; color: var(--bright); margin: 0 0 12px; }
.left-out ul { margin: 0; padding: 0 0 0 18px; }
.left-out li { margin: 0 0 10px; font-size: 16.5px; }
.left-out li::marker { color: var(--amber); }
.left-out b { color: var(--bright); font-weight: 400; font-family: var(--display); font-size: 18px; }
.left-out p { margin: 14px 0 0; font-size: 16px; color: var(--linen); }

/* ---------- 8. questions ---------- */
.faq { margin-top: 26px; border-top: 1px solid rgba(200,135,58,.4); max-width: 820px; }
.faq details { border-bottom: 1px solid rgba(200,135,58,.4); }
.faq summary { list-style: none; cursor: pointer; padding: 19px 44px 19px 0; position: relative; font: 400 22px/1.25 var(--display); color: var(--bright); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 600 24px/1 var(--sans); color: var(--amber); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 20px; color: var(--body-dark); font-size: 17px; max-width: 40em; }

/* ---------- 9. final call ---------- */
.final { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: 64px 0 90px;
  background: radial-gradient(90% 60% at 50% 25%, #33291d 0%, #1f1c17 50%, var(--ink) 85%); border-top: 1px solid rgba(200,135,58,.4); }
.final .wrap { position: relative; }
.final .stage { padding-bottom: 40px; }
.final h2 { font-size: 40px; }
.final .rule { margin-left: auto; margin-right: auto; transform-origin: center; }
.final .lead { margin-left: auto; margin-right: auto; }
.final .buy { justify-content: center; margin-top: 26px; }

/* ---------- footer ---------- */
footer { background: #0e1310; color: var(--linen); padding: 36px 0 110px; font: 600 12.5px/1.65 var(--sans); }
footer p { margin: 0 0 10px; max-width: 64em; }

/* ---------- mobile buy bar (appears after the top, CSS only) ---------- */
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(21,27,23,.97); border-top: 1px solid rgba(200,135,58,.6); }
.bar .t { margin: 0; font: 400 19px/1.1 var(--display); color: var(--bright); }
.bar .t span { display: block; font: 600 12px/1.4 var(--sans); color: var(--linen); margin-top: 3px; }
.bar .btn { min-height: 48px; padding: 0 18px; font-size: 14px; }
@supports (animation-timeline: scroll()) {
  .bar { animation: bar linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
  @keyframes bar { 0%, 80% { transform: translateY(110%); } 100% { transform: translateY(0); } }
}

/* ---------- tablet and desktop ---------- */
@media (min-width: 720px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .pages { margin: 30px 0 0; padding: 0; grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); grid-auto-columns: auto; overflow: visible; gap: 36px 28px; }
  .swipe { display: none; }
  .contents { grid-template-columns: 1fr 1fr; gap: 22px; }
  .sources { grid-template-columns: 1fr 1fr; column-gap: 48px; }
  .sources li { grid-template-columns: 110px 1fr; column-gap: 16px; }
  .sources .yr { grid-row: 1 / span 3; padding-top: 6px; }
}
@media (min-width: 960px) {
  .wrap, .masthead, .hero-grid { padding-left: 44px; padding-right: 44px; }
  section { padding: 100px 0; }
  h2 { font-size: 54px; }
  .lead { font-size: 19px; }
  .masthead { justify-content: flex-start; padding-top: 30px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; padding-top: 50px; padding-bottom: 86px; gap: 40px; }
  h1 { font-size: 80px; }
  .sub { font-size: 23px; }
  .promise { font-size: 19px; }
  .book { width: 320px; }
  .ground { width: 290px; margin-left: -145px; }
  .price { font-size: 48px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .closer-grid { grid-template-columns: 1.4fr 1fr; align-items: start; gap: 32px; }
  .pt { width: 36px; height: 36px; font-size: 15px; }
  .panel { position: sticky; top: 24px; padding: 24px 24px 22px; }
  .contents { grid-template-columns: repeat(3, 1fr); }
  .part-extra { grid-column: 3; grid-row: 1 / span 2; }
  .left-out { padding: 30px 34px; display: grid; grid-template-columns: 1fr 1.6fr; gap: 10px 40px; }
  .left-out h3 { grid-row: 1 / span 2; }
  .left-out p { margin-top: 4px; }
  .final h2 { font-size: 60px; }
  .bar { display: none; }
  footer { padding-bottom: 40px; }
}

/* ---------- backgrounds: top and final offer ---------- */
.decor { position: absolute; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.lamp { position: absolute; top: -2%; right: -30%; width: 110%; height: 104%;
  background: url("img/bg-lamp-560.webp") no-repeat right top / contain; opacity: .12;
  -webkit-mask-image: radial-gradient(closest-side, #000 50%, transparent 100%); mask-image: radial-gradient(closest-side, #000 50%, transparent 100%); }
.homestead { position: absolute; left: 0; right: 0; bottom: 0; height: 70%;
  background: url("img/bg-homestead-760.webp") no-repeat center bottom / cover; opacity: .34; }
.final .lead, .final .meta, .final .guarantee, .final .price small { text-shadow: 0 1px 10px #000, 0 0 2px #000; }
.final .meta { color: var(--cream); }
.corner { position: absolute; width: 46px; height: 46px; border: 0 solid rgba(200,135,58,.55); }
.corner::after { content: ""; position: absolute; width: 7px; height: 7px; background: var(--amber); transform: rotate(45deg); opacity: .8; }
.c1 { top: 12px; left: 12px; border-top-width: 1px; border-left-width: 1px; }
.c2 { top: 12px; right: 12px; border-top-width: 1px; border-right-width: 1px; }
.c3 { bottom: 12px; left: 12px; border-bottom-width: 1px; border-left-width: 1px; }
.c4 { bottom: 12px; right: 12px; border-bottom-width: 1px; border-right-width: 1px; }
.c1::after { top: -4px; left: -4px; } .c2::after { top: -4px; right: -4px; }
.c3::after { bottom: -4px; left: -4px; } .c4::after { bottom: -4px; right: -4px; }
.hero .c3, .hero .c4 { bottom: 62px; }
.embers i { position: absolute; bottom: -10px; width: 3px; height: 3px; border-radius: 50%; background: #F0B66A; opacity: 0; box-shadow: 0 0 6px 1px rgba(240,182,106,.6); }
.embers i:nth-child(1) { left: 7%; } .embers i:nth-child(2) { left: 15%; width: 2px; height: 2px; }
.embers i:nth-child(3) { left: 24%; } .embers i:nth-child(4) { left: 33%; width: 4px; height: 4px; }
.embers i:nth-child(5) { left: 42%; width: 2px; height: 2px; } .embers i:nth-child(6) { left: 51%; }
.embers i:nth-child(7) { left: 59%; width: 2px; height: 2px; } .embers i:nth-child(8) { left: 67%; width: 4px; height: 4px; }
.embers i:nth-child(9) { left: 75%; } .embers i:nth-child(10) { left: 83%; width: 2px; height: 2px; }
.embers i:nth-child(11) { left: 90%; } .embers i:nth-child(12) { left: 96%; width: 2px; height: 2px; }
@media (min-width: 960px) {
  .lamp { right: -4%; width: 56%; opacity: .14; }
  .homestead { background-image: url("img/bg-homestead-1200.webp"); height: 82%; opacity: .38; }
  .corner { width: 70px; height: 70px; }
  .c1, .c2 { top: 20px; } .c1, .c3 { left: 20px; } .c2, .c4 { right: 20px; } .final .c3, .final .c4 { bottom: 20px; }
  .hero .c3, .hero .c4 { bottom: 68px; }
}
@media (prefers-reduced-motion: reduce) { .embers { display: none; } }

/* ---------- motion (only when the device has not asked for less) ---------- */
.btn { position: relative; overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .lamp { animation: drift 40s ease-in-out infinite alternate; }
  .homestead { animation: breathe 30s ease-in-out infinite alternate; }
  .embers i { animation: ember 14s linear infinite; }
  .embers i:nth-child(2n) { animation-duration: 18s; animation-delay: -4s; }
  .embers i:nth-child(3n) { animation-duration: 22s; animation-delay: -9s; }
  .embers i:nth-child(4n) { animation-delay: -13s; }
  .embers i:nth-child(5n) { animation-duration: 16s; animation-delay: -6s; }
  .corner { animation: fade 1.6s .6s both; }

  .hero-copy > * { animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation: draw .9s .35s cubic-bezier(.2,.7,.2,1) both; }
  .hero-copy > :nth-child(4) { animation-delay: .2s; }
  .hero-copy > :nth-child(5) { animation-delay: .3s; }
  .hero-copy > :nth-child(n+6) { animation-delay: .42s; }
  .hero .stage { animation: appear 1.3s .2s cubic-bezier(.2,.7,.2,1) both; }
  .masthead { animation: fade 1s both; }

  /* hearth glow behind the book */
  .hero::before, .final::before { content: ""; position: absolute; z-index: -1; width: 640px; height: 640px; border-radius: 50%; pointer-events: none;
    background: radial-gradient(closest-side, rgba(200,135,58,.22), rgba(200,135,58,0)); animation: hearth 5s ease-in-out infinite; }
  .hero::before { right: -140px; top: 60px; }
  .final::before { left: 50%; top: -60px; margin-left: -320px; }

  .btn::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; pointer-events: none;
    background: linear-gradient(100deg, rgba(255,255,255,0), rgba(255,248,230,.55), rgba(255,255,255,0)); transform: skewX(-18deg);
    animation: shine 5.5s ease-in-out infinite 1.5s; }

  .pt[aria-pressed="false"] { animation: pulse 2.6s ease-out infinite; }
  .pt:nth-of-type(2) { animation-delay: .4s; } .pt:nth-of-type(3) { animation-delay: .8s; }
  .pt:nth-of-type(4) { animation-delay: 1.2s; } .pt:nth-of-type(5) { animation-delay: 1.6s; }
  .det:not([hidden]) { animation: fade-rise .5s cubic-bezier(.2,.7,.2,1) both; }
  .det:not([hidden]) .zoom img { animation: zoom 9s ease-out both; }

  .pages figure, .steps li, .part { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s; }
  .pages figure:hover { transform: translateY(-8px) rotate(-.6deg); }
  .steps li:hover, .part:hover { transform: translateY(-4px); box-shadow: 0 18px 30px -22px rgba(60,40,20,.6); }
  .faq details[open] p { animation: fade-rise .4s both; }

  @supports (animation-timeline: view()) {
    section .label, section h2, section .lead, .plan, .panel, .steps li, .part, .cta-mid,
    .pages figure, .sources li, .left-out, .faq details, .final .buy, .final .stage {
      animation: rise linear both; animation-timeline: view(); animation-range: entry 5% entry 45%; }
    section .rule { animation: draw linear both; animation-timeline: view(); animation-range: entry 10% entry 60%; }
    .steps li:nth-child(2), .pages figure:nth-child(3n+2), .part:nth-child(2), .sources li:nth-child(2n) { animation-range: entry 12% entry 55%; }
    .steps li:nth-child(3), .pages figure:nth-child(3n), .part:nth-child(3) { animation-range: entry 19% entry 65%; }
    .steps li:nth-child(4), .part:nth-child(4) { animation-range: entry 26% entry 75%; }
    .lore { display: inline-block; animation: stamp linear both; animation-timeline: view(); animation-range: entry 30% entry 70%; }
    .final .float, .hero .float { animation: float 6.5s ease-in-out infinite; }
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes fade-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes appear { from { opacity: 0; transform: translateY(40px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes draw { from { transform: scaleX(0); opacity: 0; } to { transform: scaleX(1); opacity: 1; } }
@keyframes stamp { from { opacity: 0; transform: scale(1.4) rotate(-5deg); } to { opacity: 1; transform: none; } }
@keyframes hearth { 0%, 100% { opacity: .75; transform: scale(1); } 40% { opacity: 1; transform: scale(1.06); } 70% { opacity: .85; transform: scale(.98); } }
@keyframes shine { 0%, 70% { left: -60%; } 100% { left: 130%; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(200,135,58,.75); } 70%, 100% { box-shadow: 0 0 0 16px rgba(200,135,58,0); } }
@keyframes zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-3%, 2%) scale(1.06); } }
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.05) translateY(-1%); } }
@keyframes ember { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .9; } 50% { transform: translate(18px, -45vh); }
  85% { opacity: .5; } 100% { transform: translate(-10px, -90vh); opacity: 0; } }

/* ---------- less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .float, .ground, .track { animation: none; }
  .strip { white-space: normal; }
  .track { flex-wrap: wrap; justify-content: center; }
  .track .d { display: none; }
  .bar { animation: none; transform: none; }
  .btn, .pages figure, .steps li, .part { transition: none; }
}
