/* =========================================================
   Mary Jane Owen — The Bookshop
   ========================================================= */
:root {
  --paper: #ffffff;
  --cream: #fbf8f3;
  --ink: #1c1820;
  --ink-2: #4b4550;
  --muted: #8a838e;
  --line: #ece7ef;
  --berry: #b5166b;        /* her magenta */
  --berry-deep: #8c0f52;
  --berry-soft: #fbe9f2;
  --sun: #f2c230;          /* the yellow farmhouse */
  --sun-soft: #fff6d6;
  --amazon: #ff9900;
  --radius: 18px;
  --shadow: 0 20px 50px -24px rgba(40, 10, 30, .35);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
}

*,*::before,*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  overflow-x: hidden;
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
.wrap { width: min(var(--wrap), 92vw); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- concept ribbon (remove once approved) ---------- */
.concept-ribbon {
  background: var(--ink); color: #fff; font-size: 12.5px; text-align: center;
  padding: 7px 40px; position: relative; letter-spacing: .02em;
}
.concept-ribbon button {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: #fff; font-size: 18px; opacity: .7;
}

/* ---------- announcement bar ---------- */
.announce {
  background: var(--berry); color: #fff; font-size: 13.5px; font-weight: 600;
  overflow: hidden; white-space: nowrap;
}
.announce-track { display: inline-flex; gap: 56px; padding: 9px 0; animation: marquee 32s linear infinite; }
.announce-track span::before { content: "✦"; margin-right: 14px; color: var(--sun); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--berry);
}
.brand-name { font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1; }
.brand-sub { font-size: 10.5px; letter-spacing: .26em; text-transform: uppercase; color: var(--berry); font-weight: 700; margin-top: 4px; }
.nav-links { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-2);
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--cream); color: var(--ink); }
.nav-links a.active { background: var(--berry-soft); color: var(--berry-deep); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); background: #fff; transition: transform .2s, border-color .2s;
}
.icon-btn:hover { transform: translateY(-2px); border-color: var(--berry); }
.icon-btn svg { width: 20px; height: 20px; }
.cart-count {
  position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px;
  background: var(--berry); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; padding: 0 5px;
}
.menu-toggle { display: none; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 15px; border: 0;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--berry); color: #fff; box-shadow: 0 12px 24px -12px var(--berry); }
.btn-primary:hover { background: var(--berry-deep); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-amazon { background: var(--amazon); color: #111; }
.btn-goodreads { background: #f4f1ea; color: #382110; border: 1.5px solid #d8cfc0; }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }

/* ---------- section basics ---------- */
section { padding: 96px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 800;
  letter-spacing: .22em; text-transform: uppercase; color: var(--berry);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(44px, 6.4vw, 84px); }
h2 { font-size: clamp(34px, 4.2vw, 54px); }
h3 { font-size: 24px; }
h1 em, h2 em { font-style: italic; color: var(--berry); font-weight: 500; }
.lead { font-size: 19px; color: var(--ink-2); max-width: 560px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head p { max-width: 460px; color: var(--ink-2); margin: 14px 0 0; }

/* ---------- 3D BOOK MOCKUP ---------- */
.book3d-scene { perspective: 1400px; }
.book3d {
  --w: 200px; --h: 318px; --d: 34px;
  width: var(--w); height: var(--h); position: relative; transform-style: preserve-3d;
  transform: rotateY(-28deg) rotateX(6deg);
}
.book3d > div { position: absolute; }
.book3d .front {
  inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 2px 6px 6px 2px; overflow: hidden;
  background: #ddd;
}
.book3d .front img { width: 100%; height: 100%; object-fit: cover; }
.book3d .front::after { /* spine crease + gloss */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.35) 0, rgba(255,255,255,.18) 2.5%, rgba(0,0,0,.12) 5%, transparent 9%),
              linear-gradient(115deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%);
}
.book3d .back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: var(--spine, #333); border-radius: 6px 2px 2px 6px; }
.book3d .spine {
  top: 0; left: calc(var(--d) / -2); width: var(--d); height: 100%;
  transform: rotateY(-90deg); background: var(--spine, #333);
  background-image: linear-gradient(90deg, rgba(0,0,0,.35), rgba(255,255,255,.12) 45%, rgba(0,0,0,.3));
}
.book3d .pages {
  top: 3px; right: calc(var(--d) / -2); width: calc(var(--d) - 2px); height: calc(100% - 6px);
  transform: rotateY(90deg);
  background: repeating-linear-gradient(90deg, #fffdf7 0 2px, #e9e3d6 2px 3px);
}
.book3d .top {
  left: 0; top: calc(var(--d) / -2); width: calc(100% - 3px); height: var(--d);
  transform: rotateX(90deg); background: repeating-linear-gradient(0deg, #fffdf7 0 2px, #e9e3d6 2px 3px);
}
.book3d .bottom {
  left: 0; bottom: calc(var(--d) / -2); width: calc(100% - 3px); height: var(--d);
  transform: rotateX(-90deg); background: #e9e3d6;
}
.book3d-shadow {
  width: 80%; height: 26px; margin: 26px auto 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(40,10,30,.35), transparent);
  filter: blur(4px);
}
.spin { animation: spin 9s ease-in-out infinite; }
@keyframes spin {
  0%   { transform: rotateY(-32deg) rotateX(6deg); }
  25%  { transform: rotateY(-8deg)  rotateX(3deg) translateY(-8px); }
  50%  { transform: rotateY(-150deg) rotateX(6deg); }
  75%  { transform: rotateY(-60deg) rotateX(4deg) translateY(-6px); }
  100% { transform: rotateY(-32deg) rotateX(6deg); }
}
.float { animation: float 6s ease-in-out infinite; }
@keyframes float {
  0%,100% { transform: rotateY(var(--ry, -28deg)) rotateX(6deg) translateY(0); }
  50%     { transform: rotateY(calc(var(--ry, -28deg) + 14deg)) rotateX(4deg) translateY(-14px); }
}

/* ---------- HOME: hero ---------- */
.hero { padding: 64px 0 40px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -10%; top: -20%; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--berry-soft), transparent 70%); z-index: -1;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 40px; }
.hero h1 { margin: 18px 0 22px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0 34px; }
.hero-proof { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 26px; border-top: 1px solid var(--line); }
.hero-proof strong { display: block; font-family: var(--serif); font-size: 30px; line-height: 1; }
.hero-proof span { font-size: 13px; color: var(--muted); font-weight: 600; }
.hero-stage { position: relative; height: 560px; }
.hero-stage > .s1, .hero-stage > .s2, .hero-stage > .s3 { position: absolute; }
.hero-stage .s1 { left: 4%; top: 120px; z-index: 2; }
.hero-stage .s2 { left: 36%; top: 30px; z-index: 3; }
.hero-stage .s3 { right: 0; top: 150px; z-index: 1; }
.hero-stage .s1 .book3d { --w: 170px; --h: 270px; --ry: -20deg; animation-delay: -1.5s; }
.hero-stage .s2 .book3d { --w: 220px; --h: 350px; --ry: -26deg; }
.hero-stage .s3 .book3d { --w: 170px; --h: 270px; --ry: -36deg; animation-delay: -3s; }
.hero-author {
  position: absolute; left: 30%; bottom: 0; z-index: 4; display: flex; align-items: center; gap: 12px;
  background: #fff; padding: 8px 18px 8px 8px; border-radius: 999px; box-shadow: var(--shadow);
}
.hero-author img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.hero-author b { display: block; font-size: 14px; }
.hero-author small { color: var(--muted); font-size: 12px; }
.sticker {
  position: absolute; right: 6%; top: 10px; z-index: 5; width: 112px; height: 112px; border-radius: 50%;
  background: var(--sun); color: var(--ink); display: grid; place-items: center; text-align: center;
  font-weight: 800; font-size: 12px; line-height: 1.2; text-transform: uppercase; letter-spacing: .06em;
  transform: rotate(12deg); box-shadow: var(--shadow); animation: wobble 5s ease-in-out infinite;
}
.sticker b { font-family: var(--serif); font-size: 26px; display: block; text-transform: none; letter-spacing: 0; }
@keyframes wobble { 50% { transform: rotate(-4deg) scale(1.04); } }

/* ---------- trust strip ---------- */
.trust { padding: 26px 0; border-block: 1px solid var(--line); background: var(--cream); }
.trust-row { display: flex; justify-content: space-between; align-items: center; gap: 22px; flex-wrap: wrap; }
.trust-item { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 14.5px; }
.trust-item .ti { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); }
.trust-item .ti svg { width: 20px; height: 20px; color: var(--berry); }
.trust-item small { display: block; font-weight: 500; color: var(--muted); font-size: 12.5px; }

/* ---------- BOOK REEL (video-style showcase) ---------- */
.reel { background: var(--ink); color: #fff; border-radius: 32px; overflow: hidden; position: relative; }
.reel-inner { display: grid; grid-template-columns: 1fr 1.1fr; min-height: 560px; }
.reel-stage {
  position: relative; display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, var(--reel-glow, #b5166b) 0, transparent 62%), #141016;
  transition: background .8s;
}
.reel-stage .book3d-scene { transition: opacity .5s, transform .7s cubic-bezier(.2,.8,.2,1); }
.reel-stage.swap .book3d-scene { opacity: 0; transform: translateX(-60px) scale(.9); }
.reel-stage .book3d { --w: 230px; --h: 366px; --d: 38px; }
.reel-rec {
  position: absolute; top: 22px; left: 22px; font-size: 11px; letter-spacing: .2em; font-weight: 800;
  display: flex; align-items: center; gap: 8px; opacity: .85;
}
.reel-rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ff3b5c; animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .2; } }
.reel-copy { padding: 60px 56px 110px; display: flex; flex-direction: column; justify-content: center; }
.reel-copy > * { transition: opacity .5s, transform .5s; }
.reel.swap .reel-copy > * { opacity: 0; transform: translateY(14px); }
.reel-series { color: var(--sun); font-weight: 800; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; }
.reel-copy h3 { font-size: clamp(36px, 4vw, 54px); margin: 14px 0 6px; }
.reel-hook { font-family: var(--serif); font-style: italic; font-size: 21px; color: #f3c6dc; margin: 0 0 18px; }
.reel-blurb { color: #cfc7d3; max-width: 520px; margin: 0 0 28px; }
.reel-meta { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; font-size: 14px; color: #cfc7d3; }
.reel-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.reel-controls {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 28px; display: flex; align-items: center; gap: 16px;
  background: linear-gradient(transparent, rgba(0,0,0,.55));
}
.reel-play { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--ink); border: 0; display: grid; place-items: center; flex: none; }
.reel-play svg { width: 16px; height: 16px; }
.reel-timeline { display: flex; gap: 6px; flex: 1; }
.reel-seg { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.22); overflow: hidden; border: 0; padding: 0; }
.reel-seg i { display: block; height: 100%; width: 0; background: #fff; }
.reel-seg.done i { width: 100%; }
.reel-time { font-variant-numeric: tabular-nums; font-size: 12px; color: #cfc7d3; flex: none; }

/* ---------- stars ---------- */
.stars { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.stars i { font-style: normal; color: #f5a623; letter-spacing: 1px; font-size: 15px; }

/* ---------- SHOP GRID ---------- */
.shop { background: var(--paper); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  padding: 10px 18px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font-weight: 700; font-size: 14px; color: var(--ink-2); transition: all .2s;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 26px; }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(5, 1fr); gap: 20px; } .product-title { font-size: 21px; } }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s, box-shadow .3s, border-color .3s;
}
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.product-media {
  position: relative; display: grid; place-items: center; padding: 34px 20px 10px; cursor: pointer;
  background: linear-gradient(180deg, var(--cream), #fff);
}
.product-media .book3d { --w: 150px; --h: 238px; --d: 26px; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.product:hover .product-media .book3d { transform: rotateY(-8deg) rotateX(2deg) translateY(-6px); }
.product-media .book3d-shadow { margin-top: 16px; }
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 3; background: var(--berry); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 8px;
}
.badge.sun { background: var(--sun); color: var(--ink); }
.quick {
  position: absolute; bottom: 64px; left: 50%; transform: translate(-50%, 10px); opacity: 0; z-index: 3;
  background: #fff; border: 0; padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.3); transition: all .25s;
}
.product:hover .quick { opacity: 1; transform: translate(-50%, 0); }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-series { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--berry); }
.product-title { font-family: var(--serif); font-size: 23px; font-weight: 600; line-height: 1.15; }
.product-hook { color: var(--ink-2); font-size: 14px; margin: 0; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-top: auto; padding-top: 10px; }
.price { font-size: 22px; font-weight: 800; }
.ku { font-size: 12px; font-weight: 800; color: #0a7d55; background: #e5f6ef; padding: 3px 8px; border-radius: 6px; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.product-actions .btn-primary { grid-column: 1 / -1; }
.product-actions .btn { padding: 11px 14px; font-size: 13.5px; }
.mini {
  height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center; gap: 4px; border: 1px solid var(--line); background: #fff;
  font-size: 12.5px; font-weight: 700; transition: all .2s;
}
.mini:hover { border-color: var(--ink); transform: translateY(-2px); }
.mini img, .mini svg { width: 20px; height: 20px; }

/* ---------- series bundles ---------- */
.bundles { background: var(--cream); }
.bundle-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.bundle {
  border-radius: 28px; padding: 40px; display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  position: relative; overflow: hidden; min-height: 330px;
}
.bundle.zombie { background: #231a17; color: #fff; }
.bundle.trixie { background: #ffe9ec; }
.bundle h3 { font-size: 34px; margin: 12px 0; }
.bundle p { margin: 0 0 24px; opacity: .85; max-width: 330px; }
.bundle .eyebrow { color: var(--sun); }
.bundle.trixie .eyebrow { color: #c8102e; }
.bundle-books { display: flex; perspective: 1200px; }
.bundle-books .book3d { --w: 120px; --h: 190px; --d: 22px; }
.bundle-books .book3d-scene:nth-child(2) { margin-left: -30px; margin-top: 30px; }

/* ---------- about teaser ---------- */
.teaser-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.portrait-frame { max-width: 440px; width: 100%; justify-self: center; }
.portrait-frame { position: relative; }
.portrait-frame img { border-radius: 260px 260px 24px 24px; width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.portrait-frame::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 2px solid var(--berry);
  border-radius: 260px 260px 24px 24px; z-index: -1;
}
.portrait-tag {
  position: absolute; left: -18px; bottom: 40px; background: #fff; padding: 14px 20px; border-radius: 16px; box-shadow: var(--shadow);
  font-family: var(--serif); font-style: italic; font-size: 18px;
}
.portrait-tag small { display: block; font-family: var(--sans); font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 32px 0; }
.fact { background: var(--cream); border-radius: 16px; padding: 18px; }
.fact .emoji { font-size: 22px; }
.fact b { display: block; font-size: 14.5px; margin-top: 6px; }
.fact span { font-size: 13px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--berry); color: #fff; border-radius: 32px; padding: 64px; display: grid;
  grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; right: -80px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%;
  border: 50px solid rgba(255,255,255,.08);
}
.cta-band h2 em { color: var(--sun); }
.cta-band p { opacity: .9; margin: 16px 0 0; }
.cta-band .actions { display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.cta-band .btn-ghost { border-color: #fff; background: transparent; color: #fff; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #cfc7d3; padding: 72px 0 28px; margin-top: 96px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.site-footer h4 { color: #fff; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; margin: 0 0 18px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14.5px; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { font-size: 14.5px; max-width: 300px; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08);
  transition: background .2s, transform .2s;
}
.socials a:hover { background: var(--berry); transform: translateY(-3px); }
.socials svg { width: 18px; height: 18px; fill: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; }

/* ---------- MODAL (quick view) ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: none; place-items: center; padding: 20px; }
.modal.open { display: grid; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(20,12,22,.6); backdrop-filter: blur(4px); animation: fade .3s; }
.modal-card {
  position: relative; background: #fff; border-radius: 28px; width: min(940px, 100%); max-height: 92vh; overflow: auto;
  display: grid; grid-template-columns: .9fr 1.1fr; animation: pop .4s cubic-bezier(.2,.9,.3,1.2);
}
.modal-media { background: var(--cream); display: grid; place-items: center; padding: 50px 30px; }
.modal-media .book3d { --w: 220px; --h: 350px; --d: 36px; }
.modal-body { padding: 44px 40px; }
.modal-body h3 { font-size: 40px; margin: 8px 0 6px; }
.modal-body .hook { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--berry); margin: 0 0 16px; }
.modal-body p.blurb { color: var(--ink-2); }
.modal-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 24px; }
.modal-meta span { background: var(--cream); padding: 6px 12px; border-radius: 8px; font-size: 13px; font-weight: 600; }
.modal-buy { display: grid; gap: 10px; }
.modal-close {
  position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff;
  box-shadow: 0 4px 14px rgba(0,0,0,.12); font-size: 20px; z-index: 2;
}
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(30px) scale(.96); } }

/* ---------- ABOUT PAGE ---------- */
.page-hero { padding: 70px 0 30px; }
.about-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.about-hero .portrait-frame img { aspect-ratio: 1/1.08; }
.about-hero .lead { margin-top: 22px; }
.signature { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--berry); margin-top: 26px; }
.story { max-width: 760px; margin: 0 auto; }
.story p { font-size: 18px; color: var(--ink-2); }
.story p:first-of-type::first-letter {
  font-family: var(--serif); float: left; font-size: 78px; line-height: .85; padding: 8px 12px 0 0; color: var(--berry);
}
.pull { font-family: var(--serif); font-style: italic; font-size: clamp(26px, 3vw, 36px); line-height: 1.3; text-align: center; max-width: 820px; margin: 0 auto; }
.pull::before, .pull::after { content: "—"; color: var(--berry); margin: 0 12px; }
.life-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.life-card { border: 1px solid var(--line); border-radius: 22px; padding: 28px; background: #fff; }
.life-card .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--berry-soft); margin-bottom: 18px; }
.life-card:nth-child(2) .ico { background: var(--sun-soft); }
.life-card:nth-child(4) .ico { background: #e7f3f7; }
.life-card h3 { font-size: 21px; margin-bottom: 8px; }
.life-card p { margin: 0; font-size: 14.5px; color: var(--ink-2); }
.timeline { position: relative; max-width: 900px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-50%); }
.tl-item { display: grid; grid-template-columns: 1fr 70px 1fr; align-items: center; margin-bottom: 30px; }
.tl-dot {
  width: 54px; height: 54px; border-radius: 50%; background: #fff; border: 2px solid var(--berry); display: grid; place-items: center;
  font-weight: 800; font-size: 13px; color: var(--berry); margin: 0 auto; position: relative; z-index: 1;
}
.tl-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; display: flex; gap: 18px; align-items: center; cursor: pointer; transition: box-shadow .3s, transform .3s; }
.tl-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.tl-card img { width: 64px; border-radius: 4px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.4); }
.tl-card b { font-family: var(--serif); font-size: 20px; display: block; line-height: 1.2; }
.tl-card small { color: var(--muted); font-weight: 600; }
.tl-item:nth-child(odd) .tl-card { grid-column: 1; }
.tl-item:nth-child(odd) .tl-dot { grid-column: 2; grid-row: 1; }
.tl-item:nth-child(even) .tl-dot { grid-column: 2; grid-row: 1; }
.tl-item:nth-child(even) .tl-card { grid-column: 3; grid-row: 1; }
.listen { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.listen a { border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 12px; border: 1px solid var(--line); transition: transform .25s, box-shadow .25s; }
.listen a:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.listen .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; }
.listen .ico svg { width: 24px; height: 24px; fill: #fff; }
.listen b { font-size: 18px; }
.listen span { font-size: 14px; color: var(--ink-2); }
.listen em { font-style: normal; font-weight: 800; font-size: 13px; color: var(--berry); margin-top: auto; }

/* ---------- CONTACT PAGE ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 50px; align-items: start; }
.mail-cards { display: grid; gap: 14px; margin: 30px 0; }
.mail-card { display: flex; gap: 16px; align-items: center; padding: 20px; border: 1px solid var(--line); border-radius: 18px; transition: border-color .2s, transform .2s; }
.mail-card:hover { border-color: var(--berry); transform: translateX(4px); }
.mail-card .ico { width: 50px; height: 50px; border-radius: 14px; background: var(--berry-soft); display: grid; place-items: center; flex: none; }
.mail-card .ico svg { width: 22px; height: 22px; color: var(--berry); }
.mail-card small { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; color: var(--muted); }
.mail-card b { font-size: 16px; word-break: break-all; }
.social-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.social-tile {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line);
  font-weight: 700; font-size: 14.5px; transition: all .2s;
}
.social-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.social-tile .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.social-tile .ico svg { width: 20px; height: 20px; fill: #fff; }
.social-tile small { display: block; font-weight: 500; color: var(--muted); font-size: 12px; }
.form-card { background: var(--cream); border-radius: 28px; padding: 44px; position: sticky; top: 100px; }
.form-card h2 { font-size: 36px; }
.form-card > p { color: var(--ink-2); margin: 10px 0 26px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 800; }
.field input, .field select, .field textarea {
  font: inherit; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--berry); box-shadow: 0 0 0 4px var(--berry-soft); }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-chips input { display: none; }
.topic-chips label { padding: 9px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .2s; }
.topic-chips input:checked + label { background: var(--ink); color: #fff; border-color: var(--ink); }
.form-status { margin-top: 14px; font-weight: 700; font-size: 14.5px; display: none; padding: 14px 16px; border-radius: 14px; }
.form-status.ok { display: block; background: #e5f6ef; color: #0a6b49; }
.form-status.err { display: block; background: #fdeaea; color: #a1182b; }
.hp { display: none !important; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .hero-grid, .teaser-grid, .about-hero, .contact-grid, .reel-inner, .cta-band, .modal-card { grid-template-columns: 1fr; }
  .hero-stage { height: 470px; }
  .bundle-grid, .listen { grid-template-columns: 1fr; }
  .life-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .reel-stage { min-height: 460px; }
  .reel-copy { padding: 40px 30px 110px; }
  .form-card { position: static; }
  .cta-band { padding: 44px 30px; }
}
@media (max-width: 760px) {
  section { padding: 70px 0; }
  .nav-links {
    position: fixed; top: 76px; left: 0; right: 0; flex-direction: column; background: #fff; padding: 16px 4vw 24px;
    border-bottom: 1px solid var(--line); transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform .3s, opacity .3s, visibility .3s; box-shadow: 0 20px 30px -20px rgba(0,0,0,.2);
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .hero-stage .s2 { left: 28%; }
  .nav-links a { display: block; padding: 14px 16px; }
  .menu-toggle { display: grid; }
  .brand-sub { display: none; }
  .hero-stage { height: 400px; }
  .hero-stage .s1 .book3d, .hero-stage .s3 .book3d { --w: 120px; --h: 190px; }
  .hero-stage .s2 .book3d { --w: 160px; --h: 254px; }
  .hero-stage .s1 { top: 110px; left: 0; } .hero-stage .s3 { top: 130px; }
  .hero-author { left: 50%; transform: translateX(-50%); white-space: nowrap; }
  .sticker { width: 88px; height: 88px; font-size: 10px; } .sticker b { font-size: 20px; }
  .bundle { grid-template-columns: 1fr; padding: 30px; }
  .facts { grid-template-columns: 1fr; }
  .life-grid, .social-grid, .row-2 { grid-template-columns: 1fr; }
  .timeline::before { left: 27px; }
  .tl-item { grid-template-columns: 54px 1fr; gap: 14px; }
  .tl-item .tl-dot, .tl-item:nth-child(odd) .tl-dot, .tl-item:nth-child(even) .tl-dot { grid-column: 1; grid-row: 1; }
  .tl-item .tl-card, .tl-item:nth-child(odd) .tl-card, .tl-item:nth-child(even) .tl-card { grid-column: 2; grid-row: 1; }
  .form-card { padding: 28px 22px; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-body { padding: 30px 24px; } .modal-body h3 { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
