:root {
  --bg: #0f1410;
  --bg-2: #161d17;
  --bg-3: #1d261e;
  --paper: #ece4d2;
  --paper-2: #e2d8c2;
  --ink: #1b1a16;
  --cream: #efe7d6;
  --muted: #a9a593;
  --line: rgba(239, 231, 214, 0.14);
  --red: #c8211b;
  --red-2: #e0362f;
  --serif: "Source Serif 4", Georgia, serif;
  --slab: "Zilla Slab", "Rockwell", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--cream);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--slab); font-weight: 700; line-height: 1.05; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.show-sm { display: none; }
.small { font-size: .85rem; color: var(--muted); margin: 0 0 .3em; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font-family: var(--mono);
  font-weight: 500;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 14px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--red);
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--red-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--cream); }
.btn-ghost:hover { background: rgba(255,255,255,.06); }
.btn-small { padding: 9px 16px; font-size: .78rem; }
.btn-big { padding: 18px 34px; font-size: 1rem; }
.link { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; text-decoration: none; color: var(--muted); }
.link:hover { color: var(--cream); }

.btn-block { display: block; width: 100%; text-align: center; padding: 18px 24px; letter-spacing: .12em; }
.btn-glow { box-shadow: 0 10px 30px rgba(200,33,27,.35); }
.btn-glow:hover { box-shadow: 0 14px 38px rgba(224,54,47,.5); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(15, 20, 16, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--slab); font-weight: 700; font-size: 1.15rem; text-decoration: none; margin: 0; }
.logo-mark { width: 10px; height: 22px; background: var(--red); display: inline-block; }
.nav { display: flex; gap: 24px; margin-left: auto; }
.nav a { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--cream); }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 64px 0 80px; border-bottom: 1px solid var(--line); }
.hero-bg { position: absolute; inset: 0; overflow: hidden; background: #0b0f0c; }
/* the photo: right side, graded like film, slowly drifting */
.hero-photo {
  position: absolute; top: 0; right: 0;
  width: min(72%, 1100px); height: 100%;
  background: url("hero-bg.jpg") 60% 30% / cover no-repeat;
  filter: saturate(.7) contrast(1.12) brightness(.72) sepia(.12);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 45%);
          mask-image: linear-gradient(to right, transparent 0%, #000 45%);
  transform-origin: 65% 40%;
  animation: hero-drift 40s ease-in-out infinite alternate;
}
@keyframes hero-drift {
  from { transform: scale(1.04) translate3d(0, 0, 0); }
  to   { transform: scale(1.14) translate3d(-1.5%, 1%, 0); }
}
/* low ground mist */
.hero-fog {
  position: absolute; inset: auto 0 0 0; height: 55%;
  background:
    radial-gradient(ellipse 60% 40% at 70% 100%, rgba(200, 210, 195, .10), transparent 70%),
    radial-gradient(ellipse 50% 30% at 30% 100%, rgba(200, 210, 195, .06), transparent 70%);
  animation: hero-fog 18s ease-in-out infinite alternate;
}
@keyframes hero-fog { from { transform: translateX(-3%); opacity: .7; } to { transform: translateX(3%); opacity: 1; } }
/* vignette + fade into the page */
.hero-shade {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 120% 90% at 70% 35%, transparent 40%, rgba(5, 7, 5, .75) 100%),
    linear-gradient(90deg, rgba(11, 15, 12, .95) 0%, rgba(11, 15, 12, .55) 40%, rgba(11, 15, 12, .15) 70%),
    linear-gradient(0deg, var(--bg) 0%, transparent 28%),
    linear-gradient(180deg, rgba(11, 15, 12, .6) 0%, transparent 18%);
}
/* film grain hides the softness of the photo and feels cinematic */
.hero-grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: .09; mix-blend-mode: overlay;
  animation: hero-grain 1s steps(4) infinite;
}
@keyframes hero-grain {
  0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } 100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-photo, .hero-fog, .hero-grain { animation: none; }
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.eyebrow, .section-num {
  font-family: var(--mono); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.2em;
}
.section-num::before { content: ""; display: inline-block; width: 22px; height: 2px; background: var(--red); vertical-align: middle; margin-right: 10px; }
.hero h1 { font-size: clamp(3rem, 8vw, 6rem); text-transform: uppercase; letter-spacing: -0.02em; margin-bottom: .25em; }
.red-rule { display: block; width: 120px; height: 6px; background: var(--red); margin: 0 0 24px; }
.hero h1.hero-tag { font-family: var(--slab); font-weight: 700; font-size: clamp(2.4rem, 4.2vw, 3.6rem); line-height: 1.04; letter-spacing: -0.015em; text-transform: none; margin-bottom: .35em; }
.hero-tag em { font-style: normal; color: var(--red-2); }
.hero-text { color: #c9c3b1; font-size: 1.1rem; line-height: 1.65; max-width: 540px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 16px; }
.trust { font-family: var(--mono); font-size: .75rem; color: var(--muted); letter-spacing: .04em; }

.hero-books { min-width: 0; }
.hero-show-label { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.hero-show-label .badge { position: static; white-space: nowrap; }
.slideshow-hero .slide-stage { height: min(72vh, 660px); min-height: 440px; }
/* Hero book picker */
.preview-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0 0 16px; }
.pick {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 9px 6px; cursor: pointer;
  background: rgba(15,20,16,.7); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--cream); font-family: var(--mono); text-transform: uppercase; letter-spacing: .08em;
  transition: border-color .2s, background .2s;
}
.pick:hover { border-color: rgba(239,231,214,.4); }
.pick[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.pick-num { font-size: .8rem; font-weight: 500; }
.pick-state { font-size: .6rem; opacity: .7; }
.pick.has-preview:not([aria-selected="true"]) .pick-state { color: var(--red-2); opacity: 1; }
.preview-soon {
  height: min(72vh, 660px); min-height: 440px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  padding: 28px; text-align: center;
  background: rgba(10,13,11,.75); border: 1px solid var(--line); border-radius: 8px;
}
.preview-soon .cover { width: min(200px, 45%); box-shadow: 0 18px 44px rgba(0,0,0,.55); }
.preview-soon-text { max-width: 340px; }
.preview-soon-text p { margin: 0 0 14px; font-size: .95rem; color: var(--muted); }
.preview-soon-text .preview-soon-title { font-family: var(--slab); font-weight: 700; font-size: 1.35rem; color: var(--cream); margin-bottom: 6px; }

.slideshow-hero .slide { padding: 5% 8%; }
.slideshow-hero .slide-meta { margin-bottom: 0; }

/* hero buy card */
.buy-card {
  max-width: 500px; margin-top: 30px;
  padding: 28px;
  background: rgba(16, 20, 17, .82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 30px 60px rgba(0,0,0,.45);
  backdrop-filter: blur(6px);
}
.buy-card-price { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 16px; margin: 0 0 22px; }
.buy-card .price { font-size: clamp(2.6rem, 4.5vw, 3.4rem); line-height: 1; }
.buy-card .old-price { font-family: var(--mono); font-size: 1.05rem; }
.buy-tag {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red-2); border: 1px solid var(--red); padding: 6px 10px; border-radius: 2px;
}
.buy-card .btn-block + .btn-block { margin-top: 14px; }
.buy-card .trust { text-align: center; margin: 18px 0 0; }

/* ---------- covers ---------- */
.cover { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 2px; }
.cover-placeholder {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  padding: 22px;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 10px, transparent 10px 20px),
    linear-gradient(160deg, #273127, #121812);
  border: 1px solid var(--line);
  color: var(--cream);
}
.ph-top { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: auto; }
.ph-title { font-family: var(--slab); font-weight: 700; font-size: 1.6rem; line-height: 1; text-transform: uppercase; }
.ph-rule { width: 50px; height: 4px; background: var(--red); margin: 14px 0; }
.ph-sub { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: auto; }

/* ---------- sections ---------- */
.section { padding: 100px 0; border-bottom: 1px solid var(--line); }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin-bottom: 48px; }

.book-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.book-card { display: flex; flex-direction: column; }
.book-card-cover { position: relative; display: block; text-decoration: none; margin-bottom: 18px; transition: transform .3s; }
.book-card-cover:hover { transform: translateY(-4px); }
.book-card .cover { box-shadow: 0 16px 40px rgba(0,0,0,.45); }
.badge {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase;
  background: rgba(15,20,16,.85); border: 1px solid var(--line); padding: 4px 8px; border-radius: 2px;
}
.badge-live { background: var(--red); border-color: var(--red); color: #fff; }
.book-num { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red-2); margin: 0 0 .4em; }
.book-card h3 { margin-bottom: .3em; }
.book-sub { font-style: italic; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.book-blurb { font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.book-card-actions { margin-top: auto; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; }
.soon { margin-top: auto; font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.is-coming .book-card-cover { opacity: .85; }

/* audio sneak peek: round play button on the cover */
.cover-wrap { position: relative; margin-bottom: 18px; }
.cover-wrap .book-card-cover { margin-bottom: 0; }
.audio-peek {
  --p: 0%;
  position: absolute; right: 12px; bottom: 12px; z-index: 2;
  width: 56px; height: 56px; border-radius: 50%; padding: 3px;
  background: conic-gradient(var(--cream) var(--p), rgba(255,255,255,.18) 0);
  box-shadow: 0 8px 24px rgba(0,0,0,.55);
}
.audio-btn { width: 100%; height: 100%; border-radius: 50%; border: 0; background: var(--red); cursor: pointer; display: grid; place-items: center; transition: background .2s, transform .2s; }
.audio-btn:hover { background: var(--red-2); transform: scale(1.06); }
.audio-btn:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.audio-icon { width: 0; height: 0; border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent #fff; margin-left: 4px; }
.is-playing .audio-icon { width: 14px; height: 18px; border: 0; margin: 0; border-left: 5px solid #fff; border-right: 5px solid #fff; }
.audio-peek.nudge { animation: nudge .4s; }
@keyframes nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* featured */
.featured { background: var(--bg-2); }
.featured-inner { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: center; }
.cover-lg { box-shadow: 0 40px 80px rgba(0,0,0,.6); }
.featured-sub { font-family: var(--slab); font-weight: 500; font-size: 1.3rem; color: var(--muted); }
.specs { list-style: none; padding: 0; margin: 24px 0; display: flex; flex-wrap: wrap; gap: 8px; }
.specs li { font-family: var(--mono); font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; border: 1px solid var(--line); padding: 6px 10px; border-radius: 2px; }
.price-line { display: flex; align-items: baseline; gap: 14px; margin: 0; }
.price-line.center { justify-content: center; margin: 24px 0; }
.price { font-family: var(--slab); font-weight: 700; font-size: 2.6rem; }
.old-price { color: var(--muted); font-size: 1.3rem; }
.format { font-family: var(--mono); font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 80px; border-top: 1px solid var(--line); }
.stat { padding: 28px 20px 0; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat-val { display: block; font-family: var(--slab); font-weight: 700; font-size: 3rem; line-height: 1; }
.stat-label { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }

/* paper section */
.section-paper { background: var(--paper); color: var(--ink); }
.section-paper .section-num, .section-paper .lede { color: #6b6455; }
.parts { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 48px; margin-top: 40px; }
.part h3 { font-family: var(--mono); font-weight: 500; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red); border-bottom: 2px solid var(--ink); padding-bottom: 10px; }
.part ol { list-style: none; padding: 0; margin: 0; }
.part li { padding: 9px 0; border-bottom: 1px solid rgba(27,26,22,.15); font-size: 1.05rem; }
.ch-num { font-family: var(--mono); font-size: .8rem; color: #8b8270; margin-right: 14px; }

.grades { margin-top: 80px; padding-top: 48px; border-top: 2px solid var(--ink); }
.grades > p { max-width: 680px; color: #4a4539; }
.grade-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 28px; }
.grade { background: var(--paper-2); padding: 24px; border-left: 4px solid var(--red); }
.grade p { margin: 0; font-size: .98rem; }
.grade-letter { font-family: var(--slab); font-weight: 700; font-size: 2.6rem; line-height: 1; display: block; margin-bottom: 10px; }

/* look inside: slideshow */
.slideshow { outline: none; }
.slide-stage {
  position: relative;
  height: min(78vh, 860px);
  min-height: 420px;
  background: radial-gradient(ellipse at center, #1a1a17 0%, #050505 75%);
  border: 1px solid #2a2a26;
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6), inset 0 0 120px rgba(0,0,0,.8);
  overflow: hidden;
}
.slide {
  position: absolute; inset: 0; margin: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 4% 6%;
  opacity: 0; z-index: 0;
  pointer-events: none;
  perspective: 2200px;
}
.slide.is-active { opacity: 1; z-index: 2; pointer-events: auto; }
.slide button { all: unset; cursor: zoom-in; height: 100%; display: flex; align-items: center; transform-style: preserve-3d; }
.slide img {
  max-height: 100%; width: auto; max-width: 100%;
  filter: sepia(.28) contrast(1.05) brightness(.96);
  box-shadow: 0 20px 50px rgba(0,0,0,.75), 0 0 0 1px rgba(0,0,0,.4);
  transform-origin: left center;
  backface-visibility: hidden;
}

/* page-turn effect: the page lifts from its spine (left edge) and turns over */
.slide.flip-out { opacity: 1; z-index: 3; }
.slide.under { opacity: 1; z-index: 1; }
.slide.flip-in { z-index: 3; }
.slide.flip-out img { animation: page-turn-out .7s cubic-bezier(.45, .05, .55, .95) forwards; }
.slide.flip-in img { animation: page-turn-in .7s cubic-bezier(.45, .05, .55, .95) forwards; }
@keyframes page-turn-out {
  0%   { transform: rotateY(0deg); filter: sepia(.28) contrast(1.05) brightness(.96); }
  60%  { filter: sepia(.28) contrast(1.05) brightness(.55); }
  100% { transform: rotateY(-95deg); filter: sepia(.28) contrast(1.05) brightness(.35); box-shadow: -30px 20px 60px rgba(0,0,0,.9); }
}
@keyframes page-turn-in {
  0%   { transform: rotateY(-95deg); filter: sepia(.28) contrast(1.05) brightness(.35); }
  40%  { filter: sepia(.28) contrast(1.05) brightness(.55); }
  100% { transform: rotateY(0deg); filter: sepia(.28) contrast(1.05) brightness(.96); }
}
.slide.is-active:not(.flip-in) img { animation: page-settle .7s ease; }
@keyframes page-settle { from { filter: sepia(.28) contrast(1.05) brightness(.7); } }
@media (prefers-reduced-motion: reduce) {
  .slide img { animation: none !important; }
}
.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(15,20,16,.7); border: 1px solid var(--line); color: var(--cream);
  font-size: 2rem; line-height: 1; cursor: pointer;
  transition: background .2s, opacity .2s;
}
.slide-arrow:hover { background: var(--red); border-color: var(--red); }
.slide-arrow.prev { left: 18px; }
.slide-arrow.next { right: 18px; }
.slide-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.06); }
.slide-progress span { display: block; height: 100%; width: 0; background: var(--red); }
.slide-meta { display: flex; justify-content: space-between; gap: 16px; margin: 16px 2px 18px; font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; }
.slide-meta p { margin: 0; }
.slide-cap { color: var(--cream); }
.slide-count { color: var(--muted); white-space: nowrap; }
.slide-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; }
.thumb { all: unset; flex: 0 0 64px; cursor: pointer; opacity: .45; transition: opacity .2s, transform .2s; }
.thumb img { width: 64px; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; border: 2px solid transparent; }
.thumb:hover { opacity: .8; }
.thumb.is-active { opacity: 1; }
.thumb.is-active img { border-color: var(--red); }
.thumb:focus-visible img, .slide-arrow:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* look inside: page grid */
.pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.page { margin: 0; }
.page button { all: unset; cursor: zoom-in; display: block; width: 100%; }
.page img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; object-position: top; box-shadow: 0 16px 40px rgba(0,0,0,.5); transition: transform .3s; }
.page button:hover img { transform: translateY(-4px); }
.page button:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.page figcaption { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 12px; }

/* final cta */
.cta-final { background: radial-gradient(ellipse at top, var(--bg-3), var(--bg) 70%); }
.checks { list-style: none; padding: 0; margin: 28px auto; display: inline-block; text-align: left; }
.checks li { padding: 6px 0 6px 30px; position: relative; }
.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--red-2); font-weight: 700; }

/* bundle */
.bundle { background: var(--bg-2); text-align: center; }
.bundle .lede { margin: 0 auto 20px; }
/* 4-book mockup */
.bundle-books {
  --w: clamp(120px, 17vw, 200px);
  display: flex; justify-content: center; align-items: flex-end;
  margin: 48px auto 40px; padding: 0 0 26px; perspective: 1400px;
  position: relative;
}
.bundle-books::after { /* soft floor shadow */
  content: ""; position: absolute; left: 50%; bottom: 14px; width: calc(var(--w) * 4.2); height: 34px;
  transform: translateX(-50%); background: radial-gradient(ellipse at center, rgba(0,0,0,.65), transparent 70%); z-index: 0;
}
.bundle-book {
  --mid: calc((var(--n) - 1) / 2);
  --off: calc(var(--i) - var(--mid)); /* -1.5 … 1.5 */
  position: relative; z-index: calc(10 - var(--i)); width: var(--w); flex: none;
  margin: 0 calc(var(--w) * -0.04);
  transform: translateY(calc(abs(var(--off)) * 14px)) rotateY(calc(var(--off) * -9deg)) rotate(calc(var(--off) * 3deg));
  transition: transform .35s ease;
}
@supports not (width: abs(1px)) {
  .bundle-book:nth-child(1), .bundle-book:nth-child(4) { margin-bottom: -20px; }
}
.bundle-book:nth-child(2) { z-index: 13; }
.bundle-book:nth-child(3) { z-index: 12; }
.bundle-book .cover {
  box-shadow: 0 24px 44px rgba(0,0,0,.6), inset 0 0 0 1px rgba(255,255,255,.06);
  border-radius: 2px 4px 4px 2px;
}
.bundle-book::before { /* spine highlight */
  content: ""; position: absolute; left: 0; top: 0; bottom: 26px; width: 7%; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.12) 45%, transparent);
}
.bundle-book:hover { transform: translateY(-10px) rotate(0deg); z-index: 20; }
.bundle-book-num {
  display: block; margin-top: 10px; font-family: var(--mono); font-size: .66rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.bundle-book .ph-title { font-size: clamp(.75rem, 1.4vw, 1.1rem); }
.bundle-book .ph-sub, .bundle-book .ph-top { font-size: clamp(.45rem, .8vw, .62rem); letter-spacing: .1em; }
.bundle .price-line { justify-content: center; margin-bottom: 24px; }

/* faq */
details { border-bottom: 1px solid var(--line); padding: 20px 0; }
summary { font-family: var(--slab); font-weight: 700; font-size: 1.25rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--red-2); font-family: var(--mono); }
details[open] summary::after { content: "−"; }
details p { color: var(--muted); margin: 14px 0 0; }

/* footer */
.site-footer { padding: 56px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-inner .logo { margin-bottom: 14px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(5,8,6,.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 84vh; width: auto; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.lightbox-cap { font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 16px; }
.lightbox-close { position: absolute; top: 16px; right: 20px; background: none; border: 0; color: var(--cream); font-size: 2.4rem; cursor: pointer; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .book-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner, .featured-inner { grid-template-columns: 1fr; }
  .featured-cover { max-width: 320px; }
  .nav { display: none; }
  .header-inner .btn { margin-left: auto; }
}
@media (max-width: 1000px) {
  .hero-photo {
    width: 100%; height: min(115vw, 760px);
    background-position: 62% 20%;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
            mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(11, 15, 12, .35) 0%, rgba(11, 15, 12, .55) 35%, rgba(11, 15, 12, .8) 60%, var(--bg) 100%),
      radial-gradient(ellipse 120% 70% at 60% 20%, transparent 30%, rgba(5, 7, 5, .7) 100%);
  }
  .hero-fog { top: min(60vw, 420px); bottom: auto; height: 50vw; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .wrap { padding: 0 16px; }
  .section { padding: 70px 0; }
  .hero { padding: 56px 0 70px; }
  .book-grid { grid-template-columns: 1fr 1fr; gap: 20px; }
  .book-blurb { display: none; }
  .book-card-actions { flex-direction: column; align-items: flex-start; }
  .bundle-books { --w: 23vw; margin: 32px auto 28px; }
  .bundle-books-sm { --w: 20vw; margin: 8px auto 4px; }
  .ph-title { font-size: 1.1rem; }
  .pages { grid-template-columns: 1fr 1fr; gap: 16px; }
  .slide-stage, .slideshow-hero .slide-stage { height: 70vh; min-height: 380px; }
  .preview-soon { height: 70vh; min-height: 380px; }
  .pick { padding: 8px 4px; }
  .pick-num { font-size: .72rem; }
  .slide { padding: 5% 4%; }
  .slide-arrow { width: 40px; height: 40px; font-size: 1.6rem; }
  .slide-arrow.prev { left: 8px; }
  .slide-arrow.next { right: 8px; }
  .slide-meta { flex-direction: column; gap: 4px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { padding-bottom: 20px; }
  .grade-row { grid-template-columns: 1fr; }
  .logo span:last-child { font-size: 1rem; }
  .hide-sm { display: none; }
  .show-sm { display: inline; }
  .header-inner .btn { white-space: nowrap; }
}

/* "See it unblurred" seal on page previews */
.slide-stage { position: relative; }
.unblur-seal {
  position: absolute; top: 18px; right: 18px; z-index: 5; pointer-events: none;
  width: 132px; height: 132px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(circle at 35% 30%, #d8322b, #a5160f 70%);
  color: #fff; transform: rotate(-12deg);
  box-shadow: 0 10px 26px rgba(0,0,0,.5), inset 0 0 0 4px #c8211b, inset 0 0 0 6px rgba(255,255,255,.75);
}
.slide.is-active .unblur-seal { animation: seal-in .5s .25s cubic-bezier(.2,1.6,.4,1) both; }
.unblur-seal::before { content: ""; position: absolute; inset: 11px; border: 1px dashed rgba(255,255,255,.55); border-radius: 50%; }
.seal-top, .seal-bot { font-family: var(--mono); font-size: .54rem; letter-spacing: .16em; text-transform: uppercase; opacity: .9; }
.seal-main { font-family: var(--slab); font-weight: 700; font-size: .9rem; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase; margin: 3px 0; }
@keyframes seal-in { from { transform: rotate(-30deg) scale(.4); opacity: 0; } }
@media (max-width: 700px) {
  .unblur-seal { width: 100px; height: 100px; top: 10px; right: 10px; }
  .unblur-seal::before { inset: 8px; }
  .seal-main { font-size: .68rem; }
  .seal-top, .seal-bot { font-size: .46rem; }
}
@media (prefers-reduced-motion: reduce) { .slide.is-active .unblur-seal { animation: none; } }

/* Book picker in section II */
.book-pick { max-width: 560px; margin: 0 0 40px; }
.book-pick-cta { margin: 0 auto 44px; }

/* Keep card buttons on one line */
.book-card-actions .btn, .book-card-actions .link { white-space: nowrap; }
.bundle-book .cover-placeholder { padding: 12%; }
.bundle-book .ph-rule { width: 30%; height: 3px; margin: 8% 0; }

.cta-bundle-box { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 28px auto 18px; padding-top: 24px; border-top: 1px solid var(--line); max-width: 420px; }
.cta-bundle-box .price-line { justify-content: center; }
.cta-bundle-box .price { font-size: 1.8rem; }
.cta-bundle-box { max-width: 560px; }
.bundle-books-sm { --w: clamp(84px, 11vw, 120px); margin: 8px auto 4px; padding-bottom: 22px; }
.bundle-books-sm .bundle-book-num { font-size: .58rem; margin-top: 8px; }
.bundle-books-sm .ph-title { font-size: clamp(.6rem, 1vw, .8rem); }
.bundle-books-sm .ph-sub, .bundle-books-sm .ph-top { font-size: .42rem; }

/* Footer price + button */
.footer-buy { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.footer-buy .price-line { margin: 0; display: flex; align-items: baseline; gap: 10px; }
.footer-buy .price { font-size: 1.8rem; }
@media (max-width: 700px) { .footer-buy { align-items: flex-start; } }

/* Phone: keep price, struck price and tag on one line */
@media (max-width: 480px) {
  .buy-card { padding: 22px 18px; }
  .buy-card-price { gap: 8px 10px; }
  .buy-card .price { font-size: 2.2rem; }
  .buy-card .old-price { font-size: .95rem; }
  .price-line { gap: 10px; }
  .buy-tag { font-size: .6rem; letter-spacing: .06em; padding: 5px 7px; white-space: nowrap; }
}

/* Phone header: full CTA text, smaller */
@media (max-width: 700px) {
  .header-inner { gap: 12px; }
  .header-cta { font-size: .6rem; letter-spacing: .05em; padding: 9px 10px; }
}
@media (max-width: 380px) {
  .header-inner .logo span:last-child { font-size: .9rem; }
  .header-cta { font-size: .56rem; letter-spacing: .03em; padding: 8px 8px; }
}

/* Small phones: nothing in the hero may force the page wider than the screen */
.hero-inner > * { min-width: 0; }
@media (max-width: 400px) {
  .buy-card { padding: 20px 14px; }
  .buy-card .price { font-size: 1.85rem; }
  .buy-card .old-price { font-size: .82rem; }
  .buy-card-price { gap: 8px; }
  .buy-tag { font-size: .52rem; letter-spacing: .03em; padding: 5px 6px; }
  .pick { padding: 8px 2px; }
  .pick-num { font-size: .66rem; letter-spacing: .04em; }
  .pick-state { font-size: .52rem; }
}

/* Never allow sideways scrolling on phones */
html, body { overflow-x: clip; }

.pick-state:empty { display: none; }
.pick { justify-content: center; min-height: 46px; }

/* Slideshow caption: always reserve two lines so the page never jumps */
.slide-cap {
  line-height: 1.5; min-height: 3em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.slide-count { line-height: 1.5; }

/* ---------- buy pop-up ---------- */
body.modal-open { overflow: hidden; }
.buy-modal {
  width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 32px);
  padding: 0; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg-2); color: var(--cream);
  box-shadow: 0 40px 120px rgba(0,0,0,.7);
}
.buy-modal::backdrop { background: rgba(5,8,6,.78); backdrop-filter: blur(3px); }
.buy-modal[open] { animation: bm-in .25s ease both; }
@keyframes bm-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.bm-inner { position: relative; padding: 30px 26px 22px; }
.bm-inner h2 { font-size: 1.7rem; margin: 0 0 20px; }
.bm-inner .section-num { margin-bottom: 6px; }
.bm-close {
  position: absolute; top: 12px; right: 12px; width: 38px; height: 38px;
  background: transparent; border: 1px solid var(--line); border-radius: 50%;
  color: var(--cream); font-size: 1.4rem; line-height: 1; cursor: pointer;
}
.bm-close:hover { background: rgba(255,255,255,.08); }
.bm-option {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
  background: rgba(10,13,11,.6); color: var(--cream); text-decoration: none;
  transition: border-color .2s, background .2s, transform .2s;
}
a.bm-option:hover { border-color: var(--red); background: rgba(200,33,27,.08); transform: translateY(-1px); }
.bm-option .price { font-size: 1.35rem; }
.bm-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.1; }
.bm-price .old-price { font-size: .8rem; }
.bm-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bm-title { font-family: var(--slab); font-weight: 700; font-size: 1.05rem; line-height: 1.2; }
.bm-num, .bm-sub, .bm-note { font-family: var(--mono); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.bm-note { color: var(--red-2); letter-spacing: .06em; }
.bm-thumb { width: 44px; }
.bm-thumb .cover { box-shadow: 0 6px 14px rgba(0,0,0,.5); }
.bm-thumb .cover-placeholder { padding: 4px; }
.bm-thumb .cover-placeholder > * { display: none; }
.bm-list { display: grid; gap: 10px; }
.bm-option.is-soon { opacity: .6; cursor: default; }
.bm-bundle { position: relative; border-color: var(--red); background: rgba(200,33,27,.1); padding-top: 22px; }
.bm-bundle .price { font-size: 1.7rem; }
.bm-flag {
  position: absolute; top: -10px; left: 14px; padding: 3px 8px; border-radius: 2px;
  background: var(--red); color: #fff; font-family: var(--mono); font-size: .6rem; letter-spacing: .1em; text-transform: uppercase;
}
.bm-covers { display: flex; }
.bm-covers .cover { width: 34px; box-shadow: 0 6px 14px rgba(0,0,0,.55); }
.bm-covers .cover + .cover { margin-left: -12px; }
.bm-covers .cover-placeholder { padding: 3px; }
.bm-covers .cover-placeholder > * { display: none; }
.bm-or { font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); text-align: center; margin: 18px 0 10px; }
.buy-modal .trust { text-align: center; margin: 16px 0 0; }
@media (max-width: 480px) {
  .bm-inner { padding: 26px 14px 18px; }
  .bm-inner h2 { font-size: 1.4rem; padding-right: 36px; }
  .bm-option { gap: 10px; padding: 10px; }
  .bm-bundle { padding-top: 20px; }
  .bm-covers .cover { width: 26px; }
  .bm-covers .cover + .cover { margin-left: -10px; }
  .bm-title { font-size: .95rem; }
  .bm-bundle .price { font-size: 1.4rem; }
  .bm-option .price { font-size: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) { .buy-modal[open] { animation: none; } }

/* Buy button while Stripe checkout is opening */
.is-loading { cursor: progress; opacity: .75; pointer-events: none; }
.is-loading::after { content: ""; display: inline-block; width: .8em; height: .8em; margin-left: .6em; vertical-align: -.1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ty-spin .7s linear infinite; }
@keyframes ty-spin { to { transform: rotate(360deg); } }
