/* Self-hosted Google Fonts (latin + latin-ext): no third-party render-blocking request */
/* latin-ext */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/Baloo2-latin-ext-d0fd4b.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(/fonts/Baloo2-latin-224589.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Baloo2-latin-ext-d0fd4b.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/Baloo2-latin-224589.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/Baloo2-latin-ext-d0fd4b.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Baloo 2';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/Baloo2-latin-224589.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* latin-ext */
@font-face {
  font-family: 'Patrick Hand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/PatrickHand-latin-ext-fa980d.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Patrick Hand';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/PatrickHand-latin-f8005c.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0f1d23;
  --deep: #1d3640;
  --teal: #3f7a8c;
  --teal-soft: #6fa3b3;
  --cream: #f6efe2;
  --paper: #fffaf1;
  --red: #cf3c26;
  --red-dark: #a82d1b;
  --text: #f6efe2;
  --muted: #b9cbd1;
  --radius: 22px;
  --display: "Baloo 2", system-ui, sans-serif;
  --hand: "Patrick Hand", "Comic Sans MS", cursive;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font: 400 19px/1.55 var(--hand);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.05; margin: 0 0 .4em; letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4.4vw, 54px); font-weight: 800; }
h3 { font-size: 24px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.kicker { font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: 13px; color: var(--teal-soft); margin-bottom: .8em; }
.sub { color: var(--muted); max-width: 52ch; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--red); color: #fff; text-decoration: none;
  font: 800 18px/1 var(--display); letter-spacing: .01em;
  box-shadow: 0 6px 0 var(--red-dark), 0 14px 30px rgba(217, 65, 43, .35);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--red-dark), 0 18px 36px rgba(217, 65, 43, .4); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--red-dark), 0 6px 14px rgba(217, 65, 43, .3); }
.btn:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid #ffd27a; outline-offset: 3px; }
.btn-small { padding: 10px 18px; font-size: 15px; box-shadow: 0 4px 0 var(--red-dark); }
.btn-wide { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .6; pointer-events: none; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px max(16px, calc((100% - 1160px) / 2));
  background: linear-gradient(to bottom, rgba(15, 29, 35, .85), rgba(15, 29, 35, 0));
}
.brand { display: flex; align-items: center; gap: 10px; font: 800 22px/1 var(--display); text-decoration: none; }
.brand img { width: 36px; height: 36px; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a:not(.btn) { text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 16px; opacity: .85; }
.nav-links a:not(.btn):hover { opacity: 1; }

/* Scroll-scrub film */
.scrub { position: relative; }
.scrub-stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: radial-gradient(ellipse at 40% 35%, var(--deep), var(--ink) 70%); }
.scrub-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; background: center / cover no-repeat url("/assets/world/film-poster.webp"); }
@media (max-width: 760px) { .scrub-stage canvas { background-image: url("/assets/world/film-mobile-poster.webp"); } }
.scrub-vignette { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(15, 29, 35, .45), transparent 45%), linear-gradient(to top, rgba(15, 29, 35, .55), transparent 25%); }
.scrub-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(246, 239, 226, .1); }
.scrub-progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: var(--red); }
.scroll-hint { position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 16px; color: var(--muted); transition: opacity .4s; }
.scroll-hint svg { width: 22px; height: 22px; animation: bob 1.6s ease-in-out infinite; }
.scroll-hint.gone { opacity: 0; }
@keyframes bob { 50% { transform: translateY(6px); } }

.chapters { position: relative; margin-top: -100vh; margin-top: -100svh; z-index: 2; }
.chapter {
  min-height: 130vh; display: flex; flex-direction: column; justify-content: center;
  width: min(1160px, 100% - 32px); margin-inline: auto; padding-block: 18vh;
}
.chapter > * { max-width: 470px; }
.ch-right { align-items: flex-end; }
.chapter:first-child { min-height: 100vh; padding-top: 16vh; }
.chapter h2 { font-size: clamp(30px, 3.8vw, 48px); text-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.chapter p { text-shadow: 0 1px 14px rgba(0, 0, 0, .6); font-size: 21px; }
.panel {
  background: rgba(15, 29, 35, .58); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(246, 239, 226, .1); border-radius: var(--radius); padding: 26px 28px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.panel p:last-of-type { margin-bottom: 0; }
.panel .btn, .panel .tags { margin-top: 18px; }
.title { font-size: clamp(54px, 8.4vw, 112px); font-weight: 800; text-shadow: 0 4px 0 #000, 0 10px 40px rgba(0, 0, 0, .5); }
.title span { display: block; font-size: .5em; color: var(--cream); margin-top: .15em; letter-spacing: .04em; text-transform: uppercase; }
.lead { font-size: 23px; max-width: 30ch; }
.cta-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 10px; }
.price-tag { font-size: 20px; color: var(--muted); }
.price-tag b { color: var(--cream); font-family: var(--display); font-size: 26px; }
.tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border: 1.5px solid rgba(246, 239, 226, .4); border-radius: 999px; padding: 4px 14px; font-size: 16px; }

/* Rails: horizontal scrollers with arrows */
.peek { padding: 120px 0 60px; background: linear-gradient(var(--ink), var(--deep)); }
.rail-wrap { position: relative; --pad: max(16px, calc((100% - 1160px) / 2)); }
.rail {
  display: flex; gap: 28px; overflow-x: auto; padding: 40px var(--pad) 56px; scroll-padding-inline: var(--pad);
  scroll-snap-type: x proximity; perspective: 1200px; scrollbar-width: none; overscroll-behavior-x: contain; touch-action: pan-x pan-y;
}
.rail::-webkit-scrollbar { display: none; }
.rail-btn {
  position: absolute; top: calc(50% - 8px); z-index: 3; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--paper); color: var(--ink);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transform: translateY(-50%);
  transition: opacity .25s, transform .25s, background .2s;
}
.rail-btn svg { width: 24px; height: 24px; }
.rail-btn.prev { left: max(10px, calc((100% - 1160px) / 2 - 29px)); }
.rail-btn.next { right: max(10px, calc((100% - 1160px) / 2 - 29px)); }
.rail-btn.next svg { transform: rotate(180deg); }
@media (hover: hover) { .rail-btn:hover { background: #fff; } }
.rail-btn.off { opacity: 0; pointer-events: none; transform: translateY(-50%) scale(.7); }

.card3d {
  flex: 0 0 auto; height: 380px; width: auto; margin: 0; scroll-snap-align: start;
  border-radius: 18px; overflow: hidden; background: var(--paper);
  transform-style: preserve-3d; transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) translateZ(0);
  transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
  position: relative;
}
.card3d img { width: 100%; height: 100%; max-width: none; }
.rail-pages .card3d { aspect-ratio: 7 / 8; height: 460px; }
.rail-pages .card3d img { object-fit: cover; }
.rail-photos .card3d { aspect-ratio: 3 / 4; }
.rail-photos .card3d img { object-fit: cover; }
[data-lightbox] .card3d { cursor: zoom-in; }
.card3d figcaption { position: absolute; left: 14px; bottom: 14px; background: var(--paper); color: var(--ink); padding: 4px 14px; border-radius: 999px; font-size: 17px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); transform: translateZ(40px); }
.card3d::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .28), transparent 55%); opacity: var(--glare, 0); transition: opacity .3s; }

/* Gallery: masonry on wider screens, swipe rail on phones */
.gallery { padding: 90px 0 90px; background: linear-gradient(var(--deep), var(--ink)); }
@media (min-width: 641px) {
  .gallery .rail-btn { display: none; }
  .gallery .rail { display: block; columns: 3; column-gap: 20px; overflow: visible; padding: 34px var(--pad) 0; perspective: none; }
  .gallery .card3d { display: block; width: 100%; height: auto; aspect-ratio: auto; margin: 0 0 20px; break-inside: avoid; border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, .4); }
  .gallery .card3d img { height: auto; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
  .gallery .card3d:hover img { transform: scale(1.04); }
}

@media (min-width: 641px) {
  .reviews .rail-btn { display: none; }
  .reviews .rail { display: block; columns: 3; column-gap: 20px; overflow: visible; padding: 34px var(--pad) 0; perspective: none; }
  .reviews .chat { width: 100%; margin: 0 0 20px; break-inside: avoid; }
}
.more { display: flex; justify-content: center; padding: 30px 0 0; }
.btn-ghost { background: transparent; color: var(--cream); border: 2px solid rgba(246, 239, 226, .35); box-shadow: none; }
.btn-ghost:hover { background: rgba(246, 239, 226, .08); border-color: var(--cream); box-shadow: none; }

/* Subpages */
.page-hero { padding: 130px 0 10px; background: var(--ink); }
.page-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 800; }
.back { display: inline-block; margin-bottom: 28px; font-family: var(--display); font-weight: 700; font-size: 16px; text-decoration: none; opacity: .8; }
.back:hover { opacity: 1; }
.is-page { padding-top: 10px; background: var(--ink); }
@media (max-width: 640px) {
  .is-page .rail-btn { display: none; }
  .is-page .rail { display: block; columns: 2; column-gap: 12px; overflow: visible; padding: 18px 16px 0; }
  .reviews.is-page .rail { columns: 1; }
  .is-page .rail .card3d, .is-page .rail .chat { display: block; width: 100%; height: auto; aspect-ratio: auto; margin: 0 0 12px; break-inside: avoid; }
  .is-page .rail .card3d img { height: auto; }
  .page-hero { padding: 96px 0 0; }
  .page-hero h1 { font-size: 38px; }
}

/* Reviews: one message per card, styled like the app it came from */
.chat {
  flex: 0 0 340px; scroll-snap-align: start; border-radius: 26px; overflow: hidden; display: flex; flex-direction: column;
  font: 400 15.5px/1.38 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  box-shadow: 0 30px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .06);
}
.chat-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat .ava { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 50%; background: var(--ava); filter: blur(1.5px); }
.who { display: grid; gap: 5px; }
.who i { display: block; width: 92px; height: 9px; border-radius: 5px; background: var(--redact); }
.who small { font-size: 11.5px; opacity: .6; letter-spacing: .02em; }
.chat-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 18px 14px 22px; }
.b { position: relative; margin: 0; max-width: 88%; align-self: flex-start; padding: 9px 13px; border-radius: 19px; background: var(--in); color: var(--in-text); white-space: pre-line; }
.b.out { align-self: flex-end; background: var(--out); color: #fff; }
.react { position: absolute; right: 6px; bottom: -11px; font-size: 12px; line-height: 1; padding: 3px 4px; border-radius: 999px; background: var(--in); box-shadow: 0 0 0 2px var(--bg); }
.b:has(.react), .b-photo:has(.react) { margin-bottom: 10px; }
.b-photo { position: relative; margin: 0; align-self: flex-start; width: 62%; }
.b-photo img { width: 100%; height: auto; border-radius: 18px; }
.stamp { margin: 6px 0 2px; align-self: center; font-size: 11.5px; opacity: .55; letter-spacing: .03em; }
.time { margin: -2px 0 0; align-self: flex-start; font-size: 11px; opacity: .5; padding-left: 12px; }
.ms { --bg: #fff; --in: #f0f0f0; --in-text: #050505; --out: #0084ff; --line: #eee; --ava: linear-gradient(135deg, #f3c9a8, #c98f6b); --redact: #d9d9d9; background: var(--bg); color: #050505; }
.ig { --bg: #000; --in: #262626; --in-text: #f5f5f5; --out: #3797f0; --line: #1c1c1c; --ava: linear-gradient(135deg, #8aa4c2, #4d6a8b); --redact: #333; background: var(--bg); color: #f5f5f5; }
.wa { --bg: #0b141a; --in: #202c33; --in-text: #e9edef; --out: #005c4b; --line: #1f2c34; --ava: linear-gradient(135deg, #9dc89a, #4c7d5b); --redact: #2a3942; background: var(--bg); color: #e9edef; }
.wa .stamp { background: #182229; padding: 4px 10px; border-radius: 8px; opacity: .8; }
.wa .b { border-radius: 4px 12px 12px 12px; }
.fb { --bg: #fff; --ava: linear-gradient(135deg, #e2b7c8, #a56b86); --redact: #c9ccd1; background: var(--bg); color: #050505; justify-content: center; padding: 24px 18px; }
.fb-row { display: flex; gap: 10px; align-items: flex-start; }
.fb-bubble { background: #f0f2f5; border-radius: 18px; padding: 10px 14px 11px; }
.fb-bubble i { display: block; width: 104px; height: 9px; border-radius: 5px; background: var(--redact); margin: 3px 0 9px; }
.fb-bubble p { margin: 0; }
.fb-meta { display: flex; gap: 16px; align-items: center; margin: 6px 0 0 12px; font-size: 12.5px; color: #65676b; }
.fb-meta b { font-weight: 700; }

/* Share */
.btn-share {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; cursor: pointer;
  font: 800 16px/1 var(--display); color: var(--cream); background: rgba(246, 239, 226, .1); border: 2px solid rgba(246, 239, 226, .3);
  transition: background .2s, border-color .2s;
}
.btn-share:hover { background: rgba(246, 239, 226, .18); border-color: var(--cream); }
.btn-share svg, .link-share svg { width: 18px; height: 18px; flex: 0 0 auto; }
.nav-share { padding: 8px 14px; font-size: 15px; border-width: 1.5px; }
.cta-pair { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.cta-pair .btn { margin: 0; }
.link-share { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.order-share { margin: 16px 0 0; text-align: center; font-size: 16px; color: #4b5d63; }
.order-share .link-share { color: var(--teal); font-weight: 700; }
.share-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 18px; margin-top: 46px; padding: 22px 26px; border-radius: 22px; background: rgba(246, 239, 226, .06); border: 1px dashed rgba(246, 239, 226, .25); }
.share-band p { margin: 0; font-size: 20px; text-align: center; }
.share-band .btn-share { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-ghost-dark { margin-top: 10px; background: transparent; color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }

.share { padding: 0; border: 0; border-radius: 26px; width: min(520px, calc(100% - 24px)); background: var(--paper); color: var(--ink); box-shadow: 0 40px 100px rgba(0, 0, 0, .6); }
.share::backdrop { background: rgba(6, 12, 15, .7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.share-card { display: block; padding: 28px 26px 22px; position: relative; }
.share-card h2 { font-size: 28px; margin-right: 40px; }
.share-card .kicker { color: var(--teal); }
.share-x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; cursor: pointer; background: #efe6d4; color: var(--ink); font: 400 26px/1 var(--display); }
.share-msg { margin: 6px 0 16px; }
.share-msg textarea { font-size: 16px; line-height: 1.4; resize: vertical; }
.share-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.share-ch { display: grid; justify-items: center; gap: 6px; padding: 12px 6px 10px; border-radius: 16px; border: 0; cursor: pointer; background: #f3ecdf; color: var(--ink); font: 700 14px/1.1 var(--display); transition: transform .15s, background .15s; }
.share-ch:hover { background: #ebe1cf; transform: translateY(-2px); }
.share-ch[hidden] { display: none; }
.share-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; }
.share-ico svg { width: 26px; height: 26px; }
.share-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.share-actions .btn { flex: 1 1 auto; font-size: 16px; padding: 13px 18px; }
.share-actions .btn-ghost { color: var(--ink); border-color: #d9cfbd; }
.share-toast { min-height: 1.3em; margin: 10px 0 0; text-align: center; font-size: 16px; color: #1f6b3a; }

/* Lightbox */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(6, 12, 15, .96); display: none; }
.lb.open { display: block; }
.lb-track { height: 100%; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior: contain; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; display: grid; place-items: center; padding: 70px 84px; margin: 0; }
.lb-slide { scroll-snap-stop: always; }
.lb-slide img { max-width: 100%; max-height: calc(100vh - 140px); max-height: calc(100svh - 140px); width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb .rail-btn.prev { left: 18px; }
.lb .rail-btn.next { right: 18px; }
.lb-close { position: absolute; top: 16px; right: 16px; z-index: 4; width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(246, 239, 226, .14); color: var(--cream); font: 400 30px/1 var(--display); }
.lb-count { position: absolute; top: 26px; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: 17px; }
body.lb-lock { overflow: hidden; }

/* Mobile buy bar */
.sticky-buy { display: none; }

/* Why */
.why { padding: 90px 0; background: var(--deep); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 30px; }
.why-item { background: rgba(15, 29, 35, .45); border: 1px solid rgba(246, 239, 226, .08); border-radius: var(--radius); padding: 28px; }
.why-item svg { width: 54px; height: 54px; margin-bottom: 14px; }
.why-item p { color: var(--cream); margin: 0; font-size: 20px; }

/* Reviews */
.reviews { padding: 90px 0 90px; background: var(--ink); }
.reviews .rail { align-items: stretch; }

/* Authors */
.authors { padding: 100px 0; background: linear-gradient(var(--deep), var(--ink)); }
.authors-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 60px; align-items: center; }
.authors p { color: #dfe8ea; max-width: 72ch; }
.amp { color: var(--red); }
.author-card { margin: 0; justify-self: center; width: min(400px, 100%); padding: 12px; background: var(--paper); border-radius: 20px; }
.author-card img { width: 100%; height: auto; border-radius: 12px; }

/* Order */
.order { padding: 110px 0 120px; background: radial-gradient(ellipse at 25% 40%, #24505e, var(--ink) 65%); }
.order-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: center; }
.order-grid .book-wrap { order: 2; }
.book-wrap { position: relative; height: 520px; display: grid; place-items: center; perspective: 1400px; }
.book3d {
  --w: 300px; --h: 300px; --d: 32px;
  width: var(--w); height: var(--h); position: relative; transform-style: preserve-3d;
  transform: rotateX(var(--bx, 8deg)) rotateY(var(--by, -28deg));
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.book3d > div { position: absolute; }
.b-front { inset: 0; transform: translateZ(calc(var(--d) / 2)); border-radius: 3px 8px 8px 3px; overflow: hidden; box-shadow: inset 6px 0 10px rgba(0, 0, 0, .25); }
.b-front img { width: 100%; height: 100%; object-fit: cover; }
.b-front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, rgba(255, 255, 255, .22), transparent 35%, transparent 70%, rgba(0, 0, 0, .18)); }
.b-back { inset: 0; transform: rotateY(180deg) translateZ(calc(var(--d) / 2)); background: #2f6070; border-radius: 8px 3px 3px 8px; }
.b-spine { overflow: hidden; width: var(--d); height: var(--h); left: calc(50% - var(--d) / 2); transform: rotateY(-90deg) translateZ(calc(var(--w) / 2)); background: linear-gradient(90deg, #2a5867, #3a7384, #2a5867); display: grid; place-items: center; }
.b-spine span { writing-mode: vertical-rl; transform: rotate(180deg); font: 800 11px/1 var(--display); letter-spacing: .12em; color: var(--cream); white-space: nowrap; }
.b-pages { width: calc(var(--d) - 4px); height: calc(var(--h) - 8px); top: 4px; left: calc(50% - (var(--d) - 4px) / 2); transform: rotateY(90deg) translateZ(calc(var(--w) / 2 - 4px)); background: repeating-linear-gradient(90deg, #fffaf1 0 2px, #e9e0cf 2px 3px); }
.b-top { width: calc(var(--w) - 6px); height: calc(var(--d) - 4px); left: 0; top: calc(50% - (var(--d) - 4px) / 2); transform: rotateX(90deg) translateZ(calc(var(--h) / 2 - 2px)); background: repeating-linear-gradient(0deg, #fffaf1 0 2px, #e9e0cf 2px 3px); }
.book-shadow { position: absolute; bottom: 40px; width: 300px; height: 40px; border-radius: 50%; background: radial-gradient(rgba(0, 0, 0, .55), transparent 70%); filter: blur(6px); }

.order-card { background: var(--paper); color: var(--ink); border-radius: 28px; padding: 36px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45); }
.order-card .kicker { color: var(--teal); }
.order-card .sub { color: #4b5d63; }
form { display: grid; gap: 14px; }
label { display: grid; gap: 6px; font-size: 17px; color: #2b3b40; }
label i { color: #5e6d72; font-style: normal; font-size: 15px; }
input, textarea {
  font: 400 19px/1.3 var(--hand); color: var(--ink); width: 100%;
  background: #fff; border: 2px solid #e4dccb; border-radius: 14px; padding: 12px 14px;
  transition: border-color .2s;
}
input:focus, textarea:focus { border-color: var(--teal); outline: none; }
input[aria-invalid="true"] { border-color: var(--red); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end; }
.qty-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; background: #f1e9d9; border-radius: 16px; padding: 12px 16px; }
.qty { display: flex; align-items: center; background: #fff; border-radius: 999px; border: 2px solid #e4dccb; }
.qty button { width: 40px; height: 40px; border: 0; background: none; font: 800 22px/1 var(--display); color: var(--ink); cursor: pointer; border-radius: 50%; }
.qty input { width: 48px; text-align: center; border: 0; padding: 6px 0; font-family: var(--display); font-weight: 800; -moz-appearance: textfield; appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.price-tag s { margin-right: 6px; text-decoration-thickness: 2px; }
.order-price { margin: -6px 0 10px; font-size: 20px; color: #5f6e73; }
.order-price s { margin-right: 8px; text-decoration-thickness: 2px; }
.order-price b { font: 800 34px/1 var(--display); color: var(--red); }
.sum { margin: 0; padding: 14px 16px; border-radius: 16px; border: 2px solid #ece3d2; display: grid; gap: 8px; }
.sum div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sum dt { color: #4b5d63; font-size: 17px; }
.sum dd { margin: 0; font: 700 19px/1.2 var(--display); color: var(--ink); }
.sum dd.free { color: #1f6b3a; }
.sum .sum-total { border-top: 2px dashed #e4dccb; padding-top: 10px; margin-top: 2px; }
.sum .sum-total dt { color: var(--ink); font: 800 19px/1.2 var(--display); }
.sum .sum-total dd { font: 800 30px/1 var(--display); color: var(--red); }
.ship-note { margin: 0; padding: 10px 14px; border-radius: 12px; background: #e3f0e6; color: #1f5a33; font-weight: 700; font-size: 17px; }
.ship-hint { margin: -4px 0 0; color: var(--teal); font-size: 16px; }
.ship-hint[hidden] { display: none; }
.ts { min-height: 65px; }
.consent { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; font-weight: 400; color: #5e6d72; cursor: pointer; }
.consent input { width: 22px; height: 22px; flex: none; margin: 1px 0 0; accent-color: var(--teal); }
.consent input[aria-invalid] { outline: 3px solid var(--red); outline-offset: 2px; }
.consent a { color: var(--teal); font-weight: 700; }
.form-msg { min-height: 1.4em; margin: 4px 0 0; font-size: 18px; }
.form-msg.err { color: var(--red-dark); }
.form-msg.ok { color: #1f6b3a; }
.thanks { text-align: center; padding: 30px 0 10px; }
.thanks h3 { font-size: 32px; }

.foot { padding: 40px 16px 60px; text-align: center; color: var(--muted); font-size: 16px; }
.foot p { margin: 4px 0; }

/* Responsive */
@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .authors-grid, .order-grid { grid-template-columns: 1fr; gap: 30px; }
  .order-grid .book-wrap { order: 0; }
  .book-wrap { height: 360px; }
  .book3d { --w: 230px; --h: 230px; --d: 26px; }
  .book-shadow { width: 220px; bottom: 30px; }
  .author-card { max-width: 380px; margin-inline: auto; }
}
@media (max-width: 640px) {
  body { font-size: 18px; }
  h2 { font-size: 30px; }
  .nav { padding: 10px 16px; background: linear-gradient(to bottom, rgba(15, 29, 35, .9), rgba(15, 29, 35, 0)); }
  .brand { font-size: 19px; }
  .brand img { width: 32px; height: 32px; }
  .nav-links a:not(.btn) { display: none; }
  .nav-links { gap: 10px; }

  /* Hero: cat owns the top, copy sits on a dark scrim at the bottom */
  .scrub-vignette { background: linear-gradient(to top, rgba(15, 29, 35, .96) 0%, rgba(15, 29, 35, .75) 30%, rgba(15, 29, 35, 0) 58%); }
  .chapter, .chapter:first-child { min-height: 115svh; justify-content: flex-end; align-items: stretch; padding: 0 0 calc(96px + env(safe-area-inset-bottom)); width: calc(100% - 32px); }
  .chapter:first-child { min-height: 100svh; padding-bottom: 11svh; }
  .chapter .kicker { text-shadow: 0 1px 10px rgba(0, 0, 0, .8); color: var(--cream); }
  .chapter > * { max-width: none; }
  .title { font-size: 50px; text-shadow: 0 3px 0 #000, 0 8px 30px rgba(0, 0, 0, .6); }
  .title span { font-size: .44em; }
  .lead { font-size: 18px; max-width: none; margin-bottom: .6em; }
  .cta-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-row .btn { justify-content: center; }
  .price-tag { text-align: center; }
  .panel { padding: 20px 20px 22px; border-radius: 20px; background: rgba(15, 29, 35, .72); }
  .chapter h2 { font-size: 27px; }
  .chapter p { font-size: 17px; line-height: 1.5; }
  .panel .btn { width: 100%; }
  .scroll-hint { bottom: 16px; font-size: 14px; }

  /* Sections */
  .peek { padding: 72px 0 24px; }
  .peek h2 { font-size: 26px; }
  .why { padding: 56px 0 24px; }
  .gallery { padding: 56px 0 72px; }
  .gallery h2 { font-size: 26px; }
  .why h2 { font-size: 26px; }
  .why-grid { gap: 10px; margin-top: 18px; }
  .why-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; }
  .why-item svg { flex: 0 0 40px; width: 40px; height: 40px; margin: 0; }
  .why-item p { font-size: 17px; line-height: 1.4; }
  .authors { padding: 64px 0; }
  .authors p { font-size: 17px; }
  .reviews { padding: 56px 0 72px; }

  /* Rails: one card in focus, the next one peeking */
  .rail { gap: 14px; padding: 24px 16px 40px; scroll-snap-type: x mandatory; }
  .rail > * { scroll-snap-stop: always; }
  .rail-pages .card3d { height: auto; width: 76vw; }
  .rail-photos .card3d { height: auto; width: 74vw; }
  .chat { flex-basis: 84vw; }
  .card3d figcaption { font-size: 15px; left: 10px; bottom: 10px; }
  .rail-btn { width: 46px; height: 46px; top: calc(50% - 8px); }
  .rail-btn svg { width: 20px; height: 20px; }
  .rail-btn.prev { left: 6px; }
  .rail-btn.next { right: 6px; }
  .lb-slide { padding: 70px 10px 90px; }
  .lb-slide img { max-height: calc(100svh - 170px); }
  .lb .rail-btn { top: auto; bottom: 20px; transform: none; }
  .lb .rail-btn.off { transform: scale(.7); }
  .lb .rail-btn.prev { left: calc(50% - 60px); }
  .lb .rail-btn.next { right: calc(50% - 60px); }

  /* Order */
  .order { padding: 56px 0 72px; }
  .order-grid { gap: 8px; }
  .book-wrap { height: 250px; }
  .book3d { --w: 170px; --h: 170px; --d: 20px; }
  .b-spine span { font-size: 7px; letter-spacing: .06em; }
  .book-shadow { width: 170px; bottom: 26px; }
  .order-card { padding: 24px 18px; border-radius: 22px; }
  .two { grid-template-columns: 1fr; }
  .foot { padding-bottom: 110px; }

  .nav-share span { display: none; }
  .nav-share { padding: 9px; }
  .cta-pair > * { flex: 1 1 100%; justify-content: center; }
  .share-band p { font-size: 18px; }
  .share { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; }
  .share-card { padding: 24px 18px calc(18px + env(safe-area-inset-bottom)); }
  .share-card h2 { font-size: 24px; }
  .sticky-buy {
    display: flex; align-items: center; gap: 12px;
    position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 60;
    translate: 0 calc(-1 * var(--vv-gap, 0px));
    padding: 8px 8px 8px 8px; border-radius: 20px; text-decoration: none;
    background: var(--paper); color: var(--ink);
    box-shadow: 0 0 0 3px rgba(217, 65, 43, .9), 0 18px 50px rgba(0, 0, 0, .65);
    transition: transform .35s cubic-bezier(.2, .7, .2, 1), opacity .35s;
  }
  .sticky-buy img { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; box-shadow: 0 3px 8px rgba(0, 0, 0, .25); }
  .sb-text { display: grid; line-height: 1.1; flex: 1; }
  .sb-text b { font: 800 22px/1 var(--display); color: var(--ink); }
  .sb-text small { font-size: 13px; color: #5b6b70; margin-top: 3px; }
  .sticky-buy .btn { padding: 14px 22px; font-size: 17px; box-shadow: 0 4px 0 var(--red-dark); animation: nudge 3.2s ease-in-out 1.2s infinite; }
  @keyframes nudge { 0%, 86%, 100% { transform: none; } 90% { transform: scale(1.07); } 94% { transform: scale(.98); } }
  .sticky-buy.hide { transform: translateY(150%); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .scroll-hint svg { animation: none; }
  .card3d, .book3d { transition: none; }
  .sticky-buy .btn { animation: none; }
}

/* Privacy policy */
.legal { padding: 10px 0 100px; background: var(--ink); }
.legal-body { max-width: 780px; background: var(--paper); color: var(--ink); border-radius: 28px; padding: 44px 48px; box-shadow: 0 40px 80px rgba(0, 0, 0, .45); font-size: 18px; line-height: 1.6; }
.legal-body h2 { font: 800 26px/1.2 var(--display); margin: 1.6em 0 .5em; color: var(--ink); }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font: 700 20px/1.3 var(--display); margin: 1.2em 0 .3em; color: var(--teal); }
.legal-body p { margin: 0 0 .8em; }
.legal-body ul { margin: 0 0 1em; padding-left: 1.2em; display: grid; gap: .4em; }
.legal-body .basis { padding: 10px 14px; border-left: 4px solid var(--teal); background: #f1e9d9; border-radius: 0 12px 12px 0; font-size: 16px; }
.legal-body a { color: var(--teal); font-weight: 700; }
@media (max-width: 640px) { .legal-body { padding: 28px 20px; border-radius: 20px; font-size: 17px; } }
.field-err { min-height: 0; font-size: 15px; font-weight: 600; color: var(--red-dark); }
.field-err:empty { display: none; }
.consent + .field-err { margin-top: -6px; padding-left: 32px; }
