/* =====================================================================
   LITTLE MOMENTS — Website Draft V1
   Shared stylesheet for every page.

   Structure
   01. Design tokens (brand colours, type, spacing)
   02. Base & typography
   03. Layout helpers
   04. Buttons, links, placeholder tags
   05. Announcement bar & header / navigation
   06. Book mock-up component (used everywhere a cover appears)
   07. Homepage sections
   08. Book preview viewer
   09. FAQ accordion
   10. Product pages
   11. Personalisation builder (create.html)
   12. Inner pages (How it works, Bespoke, Contact)
   13. Footer
   14. Motion & reduced motion
   ===================================================================== */

/* ---------- 01. DESIGN TOKENS ------------------------------------------
   Core colours are carried over from the original Little Moments site.
   "Golden hour" tones were sampled from the approved Style 1 artwork
   direction (warm sky, low sun, soft meadow greens). */
:root {
  /* Paper & cream */
  --ivory: #FBF6ED;
  --cream: #F5ECDC;
  --parchment: #EFE3CC;
  --warm-white: #FFFDF8;

  /* Midnight */
  --navy: #12192B;
  --navy-deep: #0B1120;
  --navy-soft: #263052;

  /* Ink */
  --ink: #2B2417;
  --ink-soft: #5B5142;
  --ink-muted: #7A6E5D;

  /* Accents */
  --gold: #C9A15C;
  --gold-light: #E4C486;
  --gold-glow: #F6C77A;
  --terracotta: #C97B5A;
  --terracotta-deep: #A3573A;   /* AA contrast on ivory for text & buttons */
  --blush: #E8B4A0;
  --sage: #8C9455;
  --sky-dusk: #7F95B8;

  /* Lines & shadows */
  --line: rgba(43, 36, 23, .12);
  --line-strong: rgba(43, 36, 23, .22);
  --shadow-sm: 0 2px 8px rgba(43, 36, 23, .06);
  --shadow-md: 0 14px 40px -12px rgba(43, 36, 23, .22);
  --shadow-lg: 0 40px 80px -30px rgba(18, 25, 43, .45);
  --shadow-book: 0 2px 2px rgba(0,0,0,.08), 0 30px 60px -20px rgba(18, 25, 43, .55), 0 18px 30px -18px rgba(120, 70, 30, .35);

  /* Type */
  --serif: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --fs-xs: .78rem;
  --fs-sm: .9rem;
  --fs-base: 1.0625rem;
  --fs-lg: clamp(1.1rem, 1rem + .4vw, 1.25rem);
  --fs-h3: clamp(1.3rem, 1.15rem + .6vw, 1.6rem);
  --fs-h2: clamp(2rem, 1.5rem + 2.2vw, 3.2rem);
  --fs-h1: clamp(2.5rem, 1.7rem + 3.6vw, 4.6rem);

  /* Spacing scale */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --space-9: 6.5rem;
  --section-y: clamp(4.5rem, 3rem + 6vw, 8rem);

  --container: 1200px;
  --gutter: clamp(1.25rem, .8rem + 2vw, 2.25rem);

  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --radius-pill: 999px;

  --ease: cubic-bezier(.22, .61, .36, 1);
  --header-h: 76px;
}

/* ---------- 02. BASE & TYPOGRAPHY -------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
/* Gentle paper texture across the whole site (pure CSS/SVG, no image request) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .5;
  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='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .4 0 0 0 0 .3 0 0 0 0 .2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
body > * { position: relative; z-index: 1; }
body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--gold-light); color: var(--navy); }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.12;
  letter-spacing: -.012em;
  margin: 0 0 var(--space-4);
  color: var(--ink);
  font-optical-sizing: auto;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
h4 { font-size: 1.1rem; }
p { margin: 0 0 var(--space-4); }
em { font-style: italic; }

.eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--terracotta-deep);
  margin: 0 0 var(--space-4);
}
.lede { font-size: var(--fs-lg); color: var(--ink-soft); line-height: 1.6; max-width: 38rem; }
.serif-italic { font-family: var(--serif); font-style: italic; font-weight: 400; }
.text-center { text-align: center; }
.text-center .lede { margin-inline: auto; }
.muted { color: var(--ink-muted); }
.small { font-size: var(--fs-sm); }

/* Visible, consistent focus states for keyboard users */
:focus-visible {
  outline: 3px solid var(--terracotta-deep);
  outline-offset: 3px;
  border-radius: 6px;
}
.on-dark :focus-visible, .section--dark :focus-visible { outline-color: var(--gold-light); }

.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 2000;
  background: var(--navy); color: var(--warm-white);
  padding: .75rem 1.25rem; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 03. LAYOUT HELPERS ----------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: var(--section-y); position: relative; }
.section--cream { background: var(--cream); }
.section--parchment { background: var(--parchment); }
.section--dark { background: var(--navy); color: rgba(255, 253, 248, .86); }
.section--dark h2, .section--dark h3 { color: var(--warm-white); }
.section--dark .eyebrow { color: var(--gold-light); }
.section--dark .lede { color: rgba(255, 253, 248, .78); }
.section-head { max-width: 46rem; margin-bottom: var(--space-7); }
.section-head.text-center { margin-inline: auto; }
.grid { display: grid; gap: var(--space-6); }
.stack > * + * { margin-top: var(--space-4); }

/* ---------- 04. BUTTONS, LINKS, PLACEHOLDERS ----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 52px;
  padding: .85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-family: var(--sans);
  font-size: .98rem;
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), background-color .3s, border-color .3s, color .3s;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--terracotta-deep); color: var(--warm-white); box-shadow: 0 10px 26px -10px rgba(163, 87, 58, .7); }
.btn--primary:hover { background: #8F4A30; box-shadow: 0 16px 32px -12px rgba(163, 87, 58, .8); }
.btn--navy { background: var(--navy); color: var(--warm-white); box-shadow: 0 10px 26px -12px rgba(18, 25, 43, .7); }
.btn--navy:hover { background: var(--navy-soft); }
.btn--outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--warm-white); }
.btn--gold { background: var(--gold-light); color: var(--navy-deep); box-shadow: 0 10px 30px -10px rgba(228, 196, 134, .6); }
.btn--gold:hover { background: #EDD3A0; }
.btn--ghost-light { border-color: rgba(255, 253, 248, .55); color: var(--warm-white); background: transparent; }
.btn--ghost-light:hover { background: rgba(255, 253, 248, .1); border-color: var(--warm-white); }
.btn--sm { min-height: 42px; padding: .55rem 1.15rem; font-size: .9rem; }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
.text-center .btn-row { justify-content: center; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4em;
  font-weight: 600; color: var(--terracotta-deep);
  text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .3em;
  text-decoration-color: rgba(163, 87, 58, .35);
  transition: text-decoration-color .3s, gap .3s var(--ease);
}
.link-arrow:hover { text-decoration-color: currentColor; gap: .65em; }
.section--dark .link-arrow { color: var(--gold-light); text-decoration-color: rgba(228, 196, 134, .4); }

/* Editable commercial placeholders — deliberately visible so nothing
   unconfirmed slips into launch. Search the code for "tbc" to find them all. */
.tbc {
  display: inline-block;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  font-size: .78em;
  font-weight: 600;
  letter-spacing: .02em;
  color: #7A4A12;
  background: #FCEBC4;
  border: 1px dashed #C9963C;
  border-radius: 6px;
  padding: .05em .45em;
  line-height: 1.5;
  vertical-align: baseline;
  white-space: normal;
}
.section--dark .tbc { color: #FCEBC4; background: rgba(252, 235, 196, .1); border-color: rgba(228, 196, 134, .6); }

/* Label for illustrative / placeholder artwork */
.art-note {
  display: inline-flex; align-items: center; gap: .45em;
  font-size: var(--fs-xs); color: var(--ink-muted);
  letter-spacing: .02em;
}
.art-note::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex: none; }
.section--dark .art-note { color: rgba(255, 253, 248, .6); }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- 05. ANNOUNCEMENT BAR & HEADER ------------------------------- */
.announcement {
  background: var(--navy);
  color: rgba(255, 253, 248, .9);
  font-size: var(--fs-sm);
  text-align: center;
  padding: .55rem var(--gutter);
  letter-spacing: .01em;
}
.announcement a { color: var(--gold-light); font-weight: 600; text-underline-offset: .2em; }

.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(251, 246, 237, .82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .35s var(--ease), border-color .35s, background-color .35s;
}
.site-header.is-compact { background: rgba(251, 246, 237, .94); border-bottom-color: var(--line); box-shadow: 0 8px 24px -18px rgba(43, 36, 23, .4); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-5);
  min-height: var(--header-h);
  transition: min-height .35s var(--ease);
}
.site-header.is-compact .header-inner { min-height: 60px; }

.wordmark {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--serif); font-weight: 500;
  font-size: 1.3rem; letter-spacing: .01em;
  text-decoration: none; color: var(--ink);
  white-space: nowrap;
}
.wordmark svg { width: 30px; height: 30px; }
.wordmark span em { font-style: italic; font-weight: 400; color: var(--terracotta-deep); }

.primary-nav { display: none; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(1rem, 1.6vw, 2rem); }
.primary-nav a {
  text-decoration: none; font-size: .93rem; font-weight: 500; color: var(--ink-soft);
  padding: .4rem 0; position: relative; transition: color .25s;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--terracotta); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.primary-nav a:hover { color: var(--ink); }
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); }
.primary-nav a[aria-current="page"] { color: var(--ink); }

.header-cta { display: none; }

.menu-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .4rem .9rem;
  background: transparent; border: 1.5px solid var(--line-strong); border-radius: var(--radius-pill);
  font-weight: 600; font-size: .9rem; cursor: pointer;
}
.menu-toggle__bars { width: 18px; height: 12px; position: relative; }
.menu-toggle__bars span {
  position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), opacity .2s;
}
.menu-toggle__bars span:nth-child(1) { top: 0; }
.menu-toggle__bars span:nth-child(2) { top: 5px; }
.menu-toggle__bars span:nth-child(3) { top: 10px; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__bars span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* Mobile menu panel */
.mobile-menu {
  position: fixed; inset: 0; z-index: 950;
  background: var(--navy-deep);
  color: var(--warm-white);
  padding: calc(var(--header-h) + 1rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; gap: var(--space-6);
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s linear .35s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li + li { border-top: 1px solid rgba(255, 253, 248, .1); }
.mobile-menu a:not(.btn) {
  display: block; padding: .95rem 0;
  font-family: var(--serif); font-size: 1.6rem; text-decoration: none;
}
.mobile-menu a[aria-current="page"] { color: var(--gold-light); }
.mobile-menu .btn { align-self: stretch; }
.mobile-menu__close {
  position: absolute; top: 1rem; right: var(--gutter);
  min-height: 44px; padding: .4rem 1rem;
  background: transparent; color: var(--warm-white);
  border: 1.5px solid rgba(255, 253, 248, .4); border-radius: var(--radius-pill);
  font-weight: 600; cursor: pointer;
}
.mobile-menu__note { font-size: var(--fs-sm); color: rgba(255, 253, 248, .6); margin-top: auto; }

@media (min-width: 1060px) {
  .primary-nav, .header-cta { display: block; }
  .menu-toggle, .mobile-menu { display: none; }
}

/* ---------- 06. BOOK MOCK-UP COMPONENT ------------------------------------
   <div class="book book--abc">  →  a square hardback with spine, page
   edges and a live title overlay. Title text sizes use container query
   units so the cover typography scales with the book at any size. */
.book {
  --book-w: 100%;
  position: relative;
  width: var(--book-w);
  aspect-ratio: 1 / 1;
  perspective: 1600px;
}
.book__body {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transform: rotateY(-14deg) rotateX(3deg);
  transition: transform .8s var(--ease);
}
.book:hover .book__body, .book.is-flat .book__body { transform: rotateY(-6deg) rotateX(2deg); }
.book.is-flat .book__body { transform: none; }
/* page block */
.book__body::before {
  content: ""; position: absolute; top: 1.5%; bottom: 1.5%; right: -3.6%; width: 5%;
  background: repeating-linear-gradient(90deg, #F3EBDC 0 2px, #E2D6C1 2px 3px);
  transform: rotateY(68deg); transform-origin: left center;
  border-radius: 0 3px 3px 0;
  box-shadow: inset 0 0 6px rgba(0, 0, 0, .15);
}
.book__cover {
  position: absolute; inset: 0;
  container-type: inline-size;
  border-radius: 3px 8px 8px 3px;
  overflow: hidden;
  background: var(--parchment);
  box-shadow: var(--shadow-book);
}
.book__cover img { width: 100%; height: 100%; object-fit: cover; }
/* spine crease & sheen */
.book__cover::before {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.28) 0, rgba(255,255,255,.18) 1.6%, rgba(0,0,0,.12) 3.2%, transparent 6%),
    linear-gradient(120deg, rgba(255,255,255,.18), transparent 40%, transparent 70%, rgba(0,0,0,.08));
}
.book__title {
  position: absolute; left: 0; right: 0; top: 7cqw; z-index: 1;
  text-align: center; padding-inline: 9cqw;
  color: var(--navy);
  text-shadow: 0 1px 0 rgba(255, 253, 248, .5);
}
.book__name {
  display: block;
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 11cqw; line-height: 1.02;
  color: var(--terracotta-deep);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
  overflow-wrap: anywhere;
}
.book__name.is-updating { opacity: .3; transform: translateY(2px); }
.book__series {
  display: block; margin-top: 1.4cqw;
  font-family: var(--serif); font-weight: 600;
  font-size: 6.6cqw; line-height: 1.05; letter-spacing: -.01em;
}
.book__brand {
  position: absolute; bottom: 4.5cqw; left: 0; right: 0; z-index: 1;
  text-align: center; font-size: 2.4cqw; letter-spacing: .32em; text-transform: uppercase; font-weight: 600;
  color: rgba(255, 253, 248, .9);
}
.book--123 .book__title { color: var(--warm-white); text-shadow: 0 2px 14px rgba(11, 17, 32, .45); }
.book--123 .book__name { color: var(--gold-light); }
.book__shadow {
  position: absolute; left: 6%; right: 0; bottom: -7%; height: 10%;
  background: radial-gradient(ellipse at center, rgba(43, 36, 23, .32), transparent 70%);
  filter: blur(6px); z-index: -1;
}
/* favourite-colour accent band, set by the builder */
.book__accent {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2.6cqw; z-index: 1;
  background: var(--accent, transparent);
  transition: background .4s var(--ease);
}

/* ---------- 07. HOMEPAGE SECTIONS ---------------------------------------- */
/* Hero */
.hero { position: relative; isolation: isolate; padding-block: clamp(2.5rem, 2rem + 4vw, 6rem) var(--section-y); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -1;
  width: 900px; height: 900px; right: -260px; top: -200px;
  background: radial-gradient(circle, rgba(246, 199, 122, .55), rgba(246, 199, 122, 0) 62%);
  pointer-events: none;
}
.hero__grid { display: grid; gap: var(--space-7); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.3rem); }
.hero h1 em { display: block; font-style: italic; font-weight: 400; color: var(--terracotta-deep); }
.hero .lede { margin-bottom: var(--space-6); }
.hero__links { margin-top: var(--space-5); }
.hero__facts {
  list-style: none; padding: 0; margin: var(--space-6) 0 0;
  display: flex; flex-wrap: wrap; gap: .6rem 1.4rem;
  font-size: var(--fs-sm); color: var(--ink-soft);
}
.hero__facts li { display: inline-flex; align-items: center; gap: .45rem; }
.hero__facts svg { color: var(--terracotta-deep); }

.hero__books {
  position: relative;
  display: grid; grid-template-columns: 1fr 1fr; gap: 6%;
  padding: 4% 6% 10% 2%;
}
.hero__books .book:nth-child(2) { margin-top: 18%; }
.hero__caption { text-align: center; margin-top: var(--space-3); }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1fr 1.05fr; }
}

/* Product choice cards */
.product-grid { display: grid; gap: var(--space-6); }
@media (min-width: 820px) { .product-grid { grid-template-columns: 1fr 1fr; } }
.product-card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.product-card__media {
  padding: 2.6rem 18% 3rem;
  background: radial-gradient(circle at 60% 40%, #F8DDA9, #F1CF9B 35%, #E9C29A 70%);
}
.product-card--123 .product-card__media { background: radial-gradient(circle at 60% 30%, #4A5682, #2A3358 55%, #1B2440); }
.product-card__body { padding: var(--space-6); display: flex; flex-direction: column; flex: 1; }
.product-card__body h3 { font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem); margin-bottom: var(--space-2); }
.product-card__desc { font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--ink-soft); }
.tick-list { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: .45rem; }
.tick-list li { display: flex; gap: .65rem; align-items: flex-start; }
.tick-list li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: .2em; border-radius: 50%;
  background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23A3573A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.section--dark .tick-list li::before { background-color: rgba(255,253,248,.1); }
.product-card__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.25rem;
  padding-top: var(--space-4); margin-top: auto; margin-bottom: var(--space-5);
  border-top: 1px solid var(--line);
  font-size: var(--fs-sm); color: var(--ink-soft);
}
.product-card__meta strong { color: var(--ink); font-weight: 600; }
.badge {
  position: absolute; top: 1.1rem; left: 1.1rem; z-index: 2;
  background: rgba(255, 253, 248, .92); color: var(--ink);
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: .35rem .75rem; border-radius: var(--radius-pill);
}

/* Personalisation journey */
.journey { display: grid; gap: var(--space-5); counter-reset: journey; }
@media (min-width: 760px) { .journey { grid-template-columns: repeat(3, 1fr); } }
.journey__item { position: relative; margin: 0; }
.journey__frame {
  position: relative; border-radius: var(--radius-md); overflow: hidden;
  aspect-ratio: 1 / 1; box-shadow: var(--shadow-md); background: var(--parchment);
}
.journey__frame img { width: 100%; height: 100%; object-fit: cover; }
.journey__item figcaption { margin-top: var(--space-4); }
.journey__item figcaption strong { display: block; font-family: var(--serif); font-size: 1.3rem; font-weight: 500; }
.journey__item figcaption span { font-size: var(--fs-sm); color: var(--ink-soft); }
.journey__num {
  position: absolute; top: .9rem; left: .9rem; z-index: 2;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--warm-white); color: var(--terracotta-deep);
  font-family: var(--serif); font-weight: 600; box-shadow: var(--shadow-sm);
}
.journey__item:not(:last-child)::after {
  content: ""; display: none;
}
@media (min-width: 760px) {
  .journey__item:not(:last-child)::after {
    display: block; position: absolute; top: 42%; right: -1.3rem; z-index: 3;
    width: 1.6rem; height: 1.6rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h13m-5-5 5 5-5 5' fill='none' stroke='%23A3573A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/contain no-repeat;
  }
}

.name-demo {
  display: grid; gap: var(--space-7); align-items: center;
  margin-top: var(--space-8);
  padding: clamp(1.5rem, 1rem + 3vw, 3.5rem);
  background: var(--warm-white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
@media (min-width: 860px) { .name-demo { grid-template-columns: 1.1fr .9fr; } }
.name-demo__book { max-width: 360px; width: 100%; margin-inline: auto; }

/* Form fields */
.field { display: grid; gap: .4rem; margin-bottom: var(--space-5); }
.field label, .field legend { font-weight: 600; font-size: .95rem; }
.field__hint { font-size: var(--fs-sm); color: var(--ink-muted); }
.input, .select, .textarea {
  width: 100%;
  min-height: 52px;
  padding: .8rem 1rem;
  background: var(--warm-white);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 1.05rem;
  transition: border-color .25s, box-shadow .25s;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--ink-muted); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--terracotta-deep); box-shadow: 0 0 0 4px rgba(163, 87, 58, .15); }
.input--large { font-family: var(--serif); font-size: 1.4rem; }
.field__error { color: #9B2C1F; font-size: var(--fs-sm); font-weight: 600; min-height: 1.2em; }
.input[aria-invalid="true"] { border-color: #9B2C1F; }
.preview-flag {
  display: inline-flex; gap: .5rem; align-items: flex-start;
  font-size: var(--fs-sm); color: var(--ink-soft);
  background: var(--cream); border-radius: var(--radius-sm); padding: .7rem .9rem;
}

/* Steps (How it works) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); counter-reset: step; }
@media (min-width: 700px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.step {
  position: relative; counter-increment: step;
  padding: var(--space-6) var(--space-5) var(--space-5);
  background: var(--warm-white);
  border: 1px solid var(--line); border-radius: var(--radius-md);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block; margin-bottom: var(--space-4);
  font-family: var(--serif); font-size: 2.4rem; font-weight: 400; font-style: italic; line-height: 1;
  color: var(--terracotta);
}
.step h3 { font-size: 1.3rem; margin-bottom: var(--space-2); }
.step p { color: var(--ink-soft); margin: 0; font-size: .98rem; }
.step--highlight { background: var(--navy); border-color: var(--navy); color: rgba(255,253,248,.82); }
.step--highlight h3 { color: var(--warm-white); }
.step--highlight p { color: rgba(255,253,248,.78); }
.step--highlight::before { color: var(--gold-light); }
.step__tag { display: inline-block; margin-top: var(--space-3); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-light); }

/* Benefits */
.benefits { display: grid; gap: var(--space-5); }
@media (min-width: 700px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
.benefit { padding: var(--space-5) 0; border-top: 1px solid var(--line-strong); }
.benefit__icon {
  width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; margin-bottom: var(--space-4);
  background: var(--cream); color: var(--terracotta-deep);
}
.benefit h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.benefit p { color: var(--ink-soft); margin: 0; }
.benefit--note { border-top-color: transparent; align-self: end; }

/* Book quality */
.quality { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .quality { grid-template-columns: 1fr 1fr; } }
.spec-list { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line-strong); }
.spec-list > div { display: grid; grid-template-columns: minmax(8rem, 40%) 1fr; gap: var(--space-4); padding: .95rem 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-weight: 600; }
.spec-list dd { margin: 0; color: var(--ink-soft); }
.quality__visual {
  position: relative; padding: 10% 14% 14%;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 70% 30%, #F8DDA9, #EFCB98 45%, #E3B48B);
  overflow: hidden;
}
.quality__visual::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 26%;
  background: linear-gradient(#C9A27A, #B48C66);
  z-index: 0;
}
.quality__visual .book { z-index: 1; max-width: 360px; margin-inline: auto; }

/* Bespoke teaser */
.bespoke-teaser { display: grid; gap: var(--space-7); align-items: center; overflow: hidden; }
@media (min-width: 900px) { .bespoke-teaser { grid-template-columns: 1.1fr 1fr; } }
.bespoke-teaser__art {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(circle at 30% 30%, rgba(246,199,122,.35), transparent 50%), linear-gradient(160deg, #263052, #121A30);
  border: 1px solid rgba(255,253,248,.1);
  display: grid; place-items: center;
}
.polaroids { position: relative; width: 78%; aspect-ratio: 4/3; }
.polaroid {
  position: absolute; width: 42%; aspect-ratio: 4 / 4.8;
  background: #FBF6ED; padding: 5% 5% 14%;
  box-shadow: 0 20px 40px -14px rgba(0,0,0,.6);
  border-radius: 3px;
  transition: transform .6s var(--ease);
}
.polaroid span { display: block; width: 100%; height: 100%; border-radius: 2px; }
.polaroid small { position: absolute; left: 0; right: 0; bottom: 3%; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(.65rem, .55rem + .4vw, .9rem); color: var(--ink-soft); }
.polaroid:nth-child(1) { left: 2%; top: 12%; transform: rotate(-9deg); }
.polaroid:nth-child(1) span { background: linear-gradient(160deg, #F4DDB4, #E8A27C); }
.polaroid:nth-child(2) { left: 30%; top: 0; transform: rotate(3deg); z-index: 2; }
.polaroid:nth-child(2) span { background: linear-gradient(160deg, #9FB0D8, #3C4468); }
.polaroid:nth-child(3) { right: 0; top: 16%; transform: rotate(10deg); }
.polaroid:nth-child(3) span { background: linear-gradient(160deg, #C9D0A0, #8C9455); }
.bespoke-teaser__art:hover .polaroid:nth-child(1) { transform: rotate(-12deg) translateX(-6%); }
.bespoke-teaser__art:hover .polaroid:nth-child(3) { transform: rotate(13deg) translateX(6%); }
.premium-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  border: 1px solid rgba(228,196,134,.5); color: var(--gold-light);
  padding: .3rem .8rem; border-radius: var(--radius-pill);
  font-size: var(--fs-xs); letter-spacing: .14em; text-transform: uppercase; font-weight: 600;
  margin-bottom: var(--space-4);
}

/* Testimonial placeholder */
.testimonial-placeholder {
  display: grid; gap: var(--space-5);
}
@media (min-width: 820px) { .testimonial-placeholder { grid-template-columns: repeat(3, 1fr); } }
.quote-slot {
  min-height: 180px;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4);
  background: rgba(255,253,248,.5);
  color: var(--ink-muted);
}
.quote-slot__mark { font-family: var(--serif); font-size: 3rem; line-height: .6; color: var(--gold); }
.quote-slot p { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.05rem; }

/* Final CTA */
.final-cta {
  position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, rgba(246,199,122,.45), transparent 60%), var(--navy);
  color: rgba(255,253,248,.85);
  text-align: center;
}
.final-cta h2 { color: var(--warm-white); max-width: 18ch; margin-inline: auto; }
.final-cta .lede { color: rgba(255,253,248,.78); margin-inline: auto; margin-bottom: var(--space-6); }
.final-cta__stars { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 22%, #FFF3D0 50%, transparent 51%),
    radial-gradient(1px 1px at 28% 68%, #FFF3D0 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 14%, #FFF3D0 50%, transparent 51%),
    radial-gradient(1px 1px at 62% 40%, #FFF3D0 50%, transparent 51%),
    radial-gradient(2px 2px at 78% 18%, #FFF3D0 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 60%, #FFF3D0 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 6% 80%, #FFF3D0 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 86%, #FFF3D0 50%, transparent 51%);
}
.final-cta .container { position: relative; }

/* ---------- 08. BOOK PREVIEW VIEWER -------------------------------------- */
.tabs { display: inline-flex; gap: .3rem; padding: .3rem; background: var(--parchment); border-radius: var(--radius-pill); margin-bottom: var(--space-6); }
.tabs [role="tab"] {
  min-height: 44px; padding: .55rem 1.3rem;
  border: 0; border-radius: var(--radius-pill);
  background: transparent; font-weight: 600; color: var(--ink-soft); cursor: pointer;
  transition: background .3s, color .3s, box-shadow .3s;
}
.tabs [role="tab"][aria-selected="true"] { background: var(--warm-white); color: var(--ink); box-shadow: var(--shadow-sm); }

.viewer { position: relative; }
.viewer:fullscreen { background: var(--navy-deep); padding: 4vh 4vw; display: flex; flex-direction: column; justify-content: center; }
.viewer:fullscreen .viewer__meta, .viewer:fullscreen .viewer__note { color: rgba(255,253,248,.75); }
.viewer:fullscreen .viewer__stage { max-width: min(1200px, 150vh); margin-inline: auto; width: 100%; }
.viewer__stage {
  position: relative;
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, #EAD9BC, #D9C29C);
  padding: clamp(.75rem, .4rem + 2vw, 2.25rem);
  box-shadow: inset 0 2px 30px rgba(120, 80, 40, .18);
  touch-action: pan-y;
  user-select: none;
}
.viewer__slides { position: relative; }
.viewer__slide { display: none; }
.viewer__slide.is-active { display: block; animation: pageIn .6s var(--ease); }
@keyframes pageIn {
  from { opacity: 0; transform: perspective(1400px) rotateY(-8deg) translateX(14px); transform-origin: left center; }
  to { opacity: 1; transform: none; }
}
.viewer__slide--cover { display: none; }
.viewer__slide--cover.is-active { display: grid; place-items: center; }
.viewer__slide--cover .book { width: min(56%, 420px); }

.spread {
  position: relative;
  display: grid; grid-template-columns: 1fr;
  background: var(--warm-white);
  border-radius: 4px;
  box-shadow: 0 30px 50px -28px rgba(43, 36, 23, .6), 0 2px 4px rgba(0,0,0,.06);
  overflow: hidden;
}
@media (min-width: 640px) {
  .spread { grid-template-columns: 1fr 1fr; aspect-ratio: 2 / 1; }
  .spread::after { /* centre gutter shadow */
    content: ""; position: absolute; top: 0; bottom: 0; left: 50%; width: 9%; transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(60, 40, 20, .16) 45%, rgba(60,40,20,.22) 50%, rgba(60,40,20,.16) 55%, transparent);
    pointer-events: none;
  }
}
.spread__text {
  container-type: inline-size;
  display: flex; flex-direction: column; justify-content: center;
  padding: 8% 10%;
  background: #FCF7EE;
  aspect-ratio: 2 / 1;
}
@media (min-width: 640px) { .spread__text { aspect-ratio: auto; } }
.spread__glyph {
  font-family: var(--serif); font-weight: 600; line-height: .9;
  font-size: clamp(3rem, 22cqw, 9rem); color: var(--terracotta-deep);
  margin-bottom: 4cqw;
}
.spread__glyph small { font-size: .35em; font-style: italic; font-weight: 400; color: var(--ink-muted); margin-left: .2em; }
.spread__line { font-family: var(--serif); font-size: clamp(.95rem, 5.2cqw, 1.6rem); line-height: 1.4; color: var(--ink); margin: 0; }
.spread__line strong { color: var(--terracotta-deep); font-weight: 600; }
.spread__art { aspect-ratio: 1 / 1; }
@media (min-width: 640px) { .spread__art { aspect-ratio: auto; } }
.spread__art img { width: 100%; height: 100%; object-fit: cover; }
.spread__label {
  position: absolute; z-index: 3; right: .7rem; top: .7rem;
  font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(11, 17, 32, .72); color: var(--warm-white);
  padding: .3rem .6rem; border-radius: var(--radius-pill);
}

.viewer__controls {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
  margin-top: var(--space-5);
}
.viewer__nav { display: flex; align-items: center; gap: .6rem; }
.icon-btn {
  width: 48px; height: 48px; border-radius: 50%;
  display: inline-grid; place-items: center;
  background: var(--warm-white); border: 1.5px solid var(--line-strong);
  cursor: pointer; color: var(--ink);
  transition: background .25s, transform .25s var(--ease), border-color .25s;
}
.icon-btn:hover:not(:disabled) { background: var(--ink); color: var(--warm-white); border-color: var(--ink); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.viewer__meta { font-size: var(--fs-sm); color: var(--ink-soft); font-variant-numeric: tabular-nums; min-width: 7.5rem; text-align: center; }
.viewer__thumbs { display: flex; gap: .5rem; overflow-x: auto; padding: .3rem; margin: 0; list-style: none; scrollbar-width: thin; max-width: 100%; }
.viewer__thumbs button {
  width: 64px; height: 44px; flex: none; padding: 0; border-radius: 6px; overflow: hidden;
  border: 2px solid transparent; background: var(--parchment); cursor: pointer; opacity: .65;
  transition: opacity .25s, border-color .25s;
}
.viewer__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--terracotta-deep); }
.viewer__thumbs button:hover { opacity: 1; }
.viewer__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.viewer__note { margin-top: var(--space-4); }
.viewer__name-row { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: var(--space-5); }
.viewer__name-row .input { max-width: 240px; min-height: 44px; padding-block: .5rem; }
.viewer__name-row label { font-weight: 600; font-size: var(--fs-sm); }

/* ---------- 09. FAQ ACCORDION -------------------------------------------- */
.faq { border-top: 1px solid var(--line-strong); }
.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item h3 { margin: 0; font-size: inherit; font-family: inherit; }
.faq__btn {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-4);
  padding: 1.3rem 0;
  background: none; border: 0; text-align: left; cursor: pointer;
  font-family: var(--serif); font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); font-weight: 500; color: var(--ink);
}
.faq__btn:hover { color: var(--terracotta-deep); }
.faq__icon { position: relative; width: 28px; height: 28px; flex: none; border-radius: 50%; border: 1.5px solid var(--line-strong); }
.faq__icon::before, .faq__icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.5px; background: currentColor;
  transform: translate(-50%, -50%); transition: transform .35s var(--ease);
}
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq__btn[aria-expanded="true"] .faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__panel { overflow: hidden; transition: height .4s var(--ease); }
.faq__panel[hidden] { display: none; }
.faq__panel-inner { padding: 0 0 1.4rem; color: var(--ink-soft); max-width: 46rem; }
.faq__panel-inner p:last-child { margin-bottom: 0; }
.faq-group + .faq-group { margin-top: var(--space-8); }
.faq-group h2 { font-size: clamp(1.5rem, 1.3rem + .8vw, 2rem); margin-bottom: var(--space-5); }

/* ---------- 10. PRODUCT PAGES -------------------------------------------- */
.breadcrumb { font-size: var(--fs-sm); color: var(--ink-muted); padding-top: var(--space-5); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

.pdp { display: grid; gap: var(--space-7); padding-block: var(--space-6) var(--section-y); }
@media (min-width: 960px) { .pdp { grid-template-columns: 1.08fr 1fr; align-items: start; } .pdp__buy { position: sticky; top: calc(var(--header-h) + 1rem); } }

.gallery__main {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 1 / 1;
  background: radial-gradient(circle at 60% 40%, #F8DDA9, #EFCB98 45%, #E3B48B);
  display: grid; place-items: center;
}
.pdp--123 .gallery__main { background: radial-gradient(circle at 60% 30%, #4A5682, #2A3358 55%, #1B2440); }
.gallery__panel { display: none; width: 100%; height: 100%; }
.gallery__panel.is-active { display: grid; place-items: center; animation: fadeIn .5s var(--ease); }
.gallery__panel .book { width: 62%; }
.gallery__panel > img { width: 100%; height: 100%; object-fit: cover; }
.gallery__panel--spread { padding: 6%; }
.gallery__panel--spread .spread { width: 100%; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.gallery__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.gallery__thumbs button {
  width: 100%; aspect-ratio: 1 / 1; padding: 0; border-radius: var(--radius-sm); overflow: hidden;
  border: 2px solid transparent; background: var(--parchment); cursor: pointer; opacity: .7;
  transition: opacity .25s, border-color .25s;
}
.gallery__thumbs button[aria-current="true"] { opacity: 1; border-color: var(--terracotta-deep); }
.gallery__thumbs button:hover { opacity: 1; }
.gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery__note { margin-top: var(--space-3); }

.pdp__buy h1 { font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: var(--space-3); }
.pdp__buy h1 .child-name { font-style: italic; font-weight: 400; color: var(--terracotta-deep); }
.pdp__tagline { font-family: var(--serif); font-style: italic; font-size: var(--fs-lg); color: var(--ink-soft); }
.price-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; margin: var(--space-5) 0; }
.price { font-family: var(--serif); font-size: 1.9rem; font-weight: 500; }
.buy-facts { list-style: none; margin: 0 0 var(--space-5); padding: 0; display: grid; gap: .5rem; font-size: .97rem; }
.buy-facts li { display: flex; gap: .65rem; align-items: flex-start; }
.buy-facts svg { color: var(--terracotta-deep); margin-top: .2em; }
.buy-box {
  padding: var(--space-5); border-radius: var(--radius-md);
  background: var(--warm-white); border: 1px solid var(--line);
  margin-bottom: var(--space-5);
}
.buy-box .field { margin-bottom: var(--space-4); }
.approval-callout {
  display: flex; gap: var(--space-4); align-items: flex-start;
  padding: var(--space-4) var(--space-5); border-radius: var(--radius-md);
  background: var(--navy); color: rgba(255,253,248,.85); font-size: .97rem;
}
.approval-callout strong { color: var(--warm-white); display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; }
.approval-callout svg { color: var(--gold-light); width: 28px; height: 28px; flex: none; margin-top: .15rem; }
.approval-callout p { margin: 0; }

.two-col { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } .two-col--wide-left { grid-template-columns: 1.2fr 1fr; } }

.alphabet {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: .5rem;
  list-style: none; padding: 0; margin: 0;
}
.alphabet li {
  aspect-ratio: 1 / 1; display: grid; place-items: center;
  font-family: var(--serif); font-size: 1.5rem; font-weight: 500;
  background: var(--warm-white); border: 1px solid var(--line); border-radius: 12px;
  color: var(--ink);
  transition: transform .35s var(--ease), background .3s, color .3s;
}
.alphabet li:hover { transform: translateY(-4px) rotate(-3deg); background: var(--terracotta-deep); color: var(--warm-white); }
.alphabet li.is-sample { background: var(--cream); color: var(--terracotta-deep); border-color: rgba(163,87,58,.35); }
.numbers { grid-template-columns: repeat(5, 1fr); }
.numbers li { font-size: clamp(1.4rem, 1rem + 1.6vw, 2.2rem); }

.feature-cards { display: grid; gap: var(--space-5); }
@media (min-width: 760px) { .feature-cards { grid-template-columns: repeat(3, 1fr); } }
.feature-card { padding: var(--space-6) var(--space-5); background: var(--warm-white); border: 1px solid var(--line); border-radius: var(--radius-md); }
.feature-card h3 { font-size: 1.25rem; margin-bottom: var(--space-2); }
.feature-card p { margin: 0; color: var(--ink-soft); }

.cross-sell {
  display: grid; gap: var(--space-6); align-items: center;
  padding: clamp(1.5rem, 1rem + 3vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--navy); color: rgba(255,253,248,.85);
}
.cross-sell h2 { color: var(--warm-white); font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.4rem); }
.cross-sell .book { max-width: 240px; margin-inline: auto; }
@media (min-width: 760px) { .cross-sell { grid-template-columns: 240px 1fr; } }
.cross-sell--light { background: linear-gradient(140deg, #F8DDA9, #EBC195); color: var(--ink); }
.cross-sell--light h2 { color: var(--ink); }

/* ---------- 11. PERSONALISATION BUILDER ---------------------------------- */
.builder { display: grid; gap: var(--space-7); padding-block: var(--space-6) var(--section-y); }
@media (min-width: 960px) { .builder { grid-template-columns: 1fr 1fr; align-items: start; } .builder__preview { position: sticky; top: calc(var(--header-h) + 1rem); } }
.progress { list-style: none; margin: 0 0 var(--space-6); padding: 0; display: flex; gap: .35rem; }
.progress li { flex: 1; height: 5px; border-radius: 3px; background: var(--line); transition: background .4s var(--ease); }
.progress li.is-done { background: var(--terracotta); }
.progress li.is-current { background: var(--terracotta-deep); }
.builder__step { display: none; }
.builder__step.is-active { display: block; animation: fadeIn .45s var(--ease); }
.builder__step h2 { font-size: clamp(1.6rem, 1.3rem + 1.4vw, 2.3rem); }
.builder__step:focus { outline: none; }
.step-count { font-size: var(--fs-sm); color: var(--ink-muted); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: var(--space-2); }
.builder__actions { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }

.choice-grid { display: grid; gap: var(--space-4); }
@media (min-width: 560px) { .choice-grid--2 { grid-template-columns: 1fr 1fr; } }
.choice-grid--chips { display: flex; flex-wrap: wrap; gap: .6rem; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.choice__card {
  display: flex; gap: var(--space-4); align-items: center;
  padding: var(--space-4); border-radius: var(--radius-md);
  background: var(--warm-white); border: 2px solid var(--line);
  transition: border-color .25s, box-shadow .25s, transform .3s var(--ease);
  height: 100%;
}
.choice:hover .choice__card { border-color: var(--ink-muted); }
.choice input:checked + .choice__card { border-color: var(--terracotta-deep); box-shadow: 0 0 0 4px rgba(163,87,58,.12); }
.choice input:focus-visible + .choice__card { outline: 3px solid var(--terracotta-deep); outline-offset: 3px; }
.choice__card .book { width: 82px; flex: none; }
.choice__card strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.15rem; line-height: 1.25; }
.choice__card span { font-size: var(--fs-sm); color: var(--ink-soft); }
.chip .choice__card { padding: .6rem 1.1rem; border-radius: var(--radius-pill); font-weight: 600; gap: .55rem; }
.swatch { width: 22px; height: 22px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px rgba(255,255,255,.6), 0 0 0 1px rgba(0,0,0,.12); }
.summary { margin: 0; border-top: 1px solid var(--line-strong); }
.summary > div { display: flex; justify-content: space-between; gap: var(--space-4); padding: .8rem 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.summary__total dt, .summary__total dd { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); }
.builder__preview-card { padding: clamp(1.25rem, 1rem + 2vw, 2.5rem); border-radius: var(--radius-lg); background: radial-gradient(circle at 60% 35%, #F8DDA9, #EFCB98 45%, #E3B48B); }
.builder__preview-card.is-123 { background: radial-gradient(circle at 60% 30%, #4A5682, #2A3358 55%, #1B2440); }
.builder__preview-card .book { max-width: 380px; margin: 0 auto var(--space-5); }
.dedication-preview {
  max-width: 380px; margin-inline: auto;
  background: #FCF7EE; border-radius: 4px; padding: 1.25rem 1.5rem;
  font-family: var(--serif); font-style: italic; text-align: center; color: var(--ink-soft);
  box-shadow: var(--shadow-md);
  min-height: 4rem;
}
.notice {
  display: flex; gap: .75rem; align-items: flex-start;
  margin-top: var(--space-5); padding: 1rem 1.2rem; border-radius: var(--radius-md);
  background: #FCEBC4; border: 1px solid #E5C27C; color: #5E3E10; font-weight: 500;
}
.notice[hidden] { display: none; }

/* ---------- 12. INNER PAGES ------------------------------------------------ */
.page-hero { isolation: isolate; padding-block: clamp(3rem, 2rem + 5vw, 6.5rem) clamp(2.5rem, 2rem + 3vw, 4.5rem); position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; z-index: -1; width: 700px; height: 700px; right: -220px; top: -260px;
  background: radial-gradient(circle, rgba(246,199,122,.45), transparent 62%);
}
.page-hero h1 { max-width: 18ch; }
.page-hero--dark { background: var(--navy); color: rgba(255,253,248,.85); }
.page-hero--dark h1 { color: var(--warm-white); }
.page-hero--dark .eyebrow { color: var(--gold-light); }
.page-hero--dark .lede { color: rgba(255,253,248,.78); }
.page-hero--dark::before { background: radial-gradient(circle, rgba(246,199,122,.22), transparent 62%); }

.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 23px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--terracotta), var(--gold-light)); opacity: .5; }
.timeline > li { position: relative; padding-left: 4.5rem; padding-bottom: var(--space-7); }
.timeline > li:last-child { padding-bottom: 0; }
.timeline__num {
  position: absolute; left: 0; top: 0; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--warm-white); border: 2px solid var(--terracotta);
  font-family: var(--serif); font-weight: 600; color: var(--terracotta-deep);
}
.timeline h3 { margin-bottom: var(--space-2); }
.timeline p { color: var(--ink-soft); max-width: 40rem; }
.timeline .tick-list { margin-top: var(--space-3); color: var(--ink-soft); }

.callout-box { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--warm-white); border: 1px solid var(--line); }
.callout-box h3 { margin-bottom: var(--space-3); }
.photo-guide { display: grid; gap: var(--space-4); }
@media (min-width: 640px) { .photo-guide { grid-template-columns: 1fr 1fr; } }
.photo-guide__col { padding: var(--space-5); border-radius: var(--radius-md); background: var(--warm-white); border: 1px solid var(--line); }
.photo-guide__col h3 { font-size: 1.15rem; display: flex; gap: .5rem; align-items: center; }
.photo-guide__col ul { margin: 0; padding-left: 1.1rem; color: var(--ink-soft); }
.photo-guide__col li + li { margin-top: .35rem; }

.compare { width: 100%; border-collapse: collapse; font-size: .97rem; }
.compare caption { text-align: left; font-size: var(--fs-sm); color: var(--ink-muted); padding-bottom: var(--space-3); }
.compare th, .compare td { padding: .9rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { font-family: var(--serif); font-weight: 500; font-size: 1.1rem; border-bottom: 2px solid var(--line-strong); }
.compare tbody th { font-weight: 600; width: 32%; }
.table-wrap { overflow-x: auto; border-radius: var(--radius-md); background: var(--warm-white); border: 1px solid var(--line); padding: 0 var(--space-4); }

.contact-grid { display: grid; gap: var(--space-7); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }
.contact-card { padding: var(--space-6); border-radius: var(--radius-lg); background: var(--warm-white); border: 1px solid var(--line); }
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list svg { color: var(--terracotta-deep); margin-top: .2rem; }
.contact-list strong { display: block; }
.form-row { display: grid; gap: 0 var(--space-4); }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* ---------- 13. FOOTER ---------------------------------------------------- */
.site-footer { background: var(--navy-deep); color: rgba(255,253,248,.72); padding-block: var(--space-8) var(--space-6); font-size: .95rem; }
.footer-grid { display: grid; gap: var(--space-7); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.site-footer .wordmark { color: var(--warm-white); }
.site-footer .wordmark span em { color: var(--gold-light); }
.footer-brand p { max-width: 22rem; margin-top: var(--space-4); }
.site-footer h2 { font-family: var(--sans); font-size: var(--fs-xs); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-light); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; transition: color .25s; }
.site-footer a:hover { color: var(--warm-white); text-decoration: underline; text-underline-offset: .2em; }
.site-footer :focus-visible { outline-color: var(--gold-light); }
.footer-social { display: inline-flex; align-items: center; gap: .5rem; margin-top: var(--space-5); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; border-top: 1px solid rgba(255,253,248,.1); margin-top: var(--space-7); padding-top: var(--space-5); font-size: var(--fs-sm); color: rgba(255,253,248,.55); }
.site-footer .tbc { color: #FCEBC4; background: rgba(252,235,196,.08); border-color: rgba(228,196,134,.5); }

/* ---------- 14. MOTION ------------------------------------------------------ */
/* Gentle floating books (hero) */
@keyframes floatA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.float-a { animation: floatA 7s ease-in-out infinite; }
.float-b { animation: floatB 8.5s ease-in-out infinite .8s; }

/* Reveal on scroll — only applied when JS is running (html.js) */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-delay-1 { transition-delay: .1s; }
.js .reveal-delay-2 { transition-delay: .2s; }
.js .reveal-delay-3 { transition-delay: .3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
  .float-a, .float-b { animation: none; }
  .book__body { transform: rotateY(-8deg); }
}

/* ---------- QA refinements (V1 review pass) ---------- */
.viewer { max-width: 1000px; margin-inline: auto; }
.viewer__slide--cover .book { width: min(46%, 380px); }
.quality__visual .art-note { color: rgba(43, 36, 23, .85); }
.quality__visual .art-note::before { background: var(--warm-white); }
.section--cream .benefit__icon, .feature-card .benefit__icon { background: var(--warm-white); box-shadow: var(--shadow-sm); }
.feature-card .benefit__icon { background: var(--cream); box-shadow: none; }
.benefit__icon .icon { width: 1.4em; height: 1.4em; }
.final-cta h2 { max-width: 24ch; }

/* Mobile hero: show the two books first so visitors instantly see a physical, personalised product */
@media (max-width: 899px) {
  .hero { padding-top: 1.25rem; }
  .hero__grid { gap: 1.25rem; }
  .hero__grid > :last-child { order: -1; }
  .hero__books { max-width: 380px; margin-inline: auto; padding: 2% 12% 8% 4%; }
  .hero__caption .art-note { font-size: .72rem; }
  .hero__caption { margin-top: 0; }
}
/* Prevent wide children (tables, spreads) from stretching grid columns on small screens */
.two-col > *, .pdp > *, .builder > *, .quality > *, .bespoke-teaser > *, .contact-grid > *, .hero__grid > * { min-width: 0; }

/* Small screens: spreads stack (text page above illustration), so let containers grow */
@media (max-width: 639px) {
  .spread__text { aspect-ratio: auto; padding: 2.75rem 1.5rem 1.5rem; }
  .spread__glyph { font-size: 3.4rem; margin-bottom: .75rem; }
  .spread__line { font-size: 1.05rem; }
  .gallery__main { aspect-ratio: auto; min-height: 340px; }
  .gallery__panel .book { width: 68%; margin-block: 12%; }
  .gallery__panel--spread { padding: 0; }
  .gallery__panel--spread .spread { border-radius: 0; box-shadow: none; }
  .viewer__controls { justify-content: center; }
}
/* Tiny thumbnail books in the builder's first step: artwork only, title is too small to read */
.choice__card .book__title, .choice__card .book__brand { display: none; }

/* =====================================================================
   V2 LAYER — "Cinematic" redesign
   Inspired by the two reference recordings: a full-screen chaptered hero
   with a sliced wipe transition, scroll-driven parting clouds, torn-paper
   section edges and oversized editorial type. Everything below builds on
   the V1 tokens above; delete this layer to return to the V1 look.
   ===================================================================== */
:root {
  --ember: #2B1A14;
  --ember-2: #4A2A1D;
  --cine-dur: 7s;
}

/* Glass button for use on imagery */
.btn--glass {
  background: rgba(255, 253, 248, .12); color: var(--warm-white);
  border-color: rgba(255, 253, 248, .38);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--glass:hover { background: rgba(255, 253, 248, .22); border-color: var(--warm-white); }

/* ---------- Header floats over the hero on the homepage ---------- */
.page-home .site-header { margin-bottom: calc(-1 * var(--header-h)); }
.page-home .site-header:not(.is-compact) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.page-home .site-header:not(.is-compact) .wordmark,
.page-home .site-header:not(.is-compact) .primary-nav a,
.page-home .site-header:not(.is-compact) .menu-toggle { color: var(--warm-white); }
.page-home .site-header:not(.is-compact) .wordmark span em { color: var(--gold-light); }
.page-home .site-header:not(.is-compact) .primary-nav a::after { background: var(--gold-light); }
.page-home .site-header:not(.is-compact) .menu-toggle { border-color: rgba(255, 253, 248, .45); }
.page-home .site-header:not(.is-compact) :focus-visible { outline-color: var(--gold-light); }
.page-home .site-header:not(.is-compact) .header-cta { background: var(--gold-light); color: var(--navy-deep); box-shadow: none; }

/* ---------- Cinematic hero slider ---------- */
.cine {
  position: relative; isolation: isolate;
  height: 100svh; min-height: 680px; max-height: 1080px;
  overflow: hidden; background: var(--navy-deep); color: var(--warm-white);
}
.cine__slides, .cine__slide, .cine__bg { position: absolute; inset: 0; }
.cine__slide { visibility: hidden; z-index: 1; }
.cine__slide.is-active { visibility: visible; z-index: 2; }
.cine__slide.is-entering { visibility: visible; z-index: 3; }
.cine__slide.is-leaving { visibility: visible; z-index: 2; }
.cine__bg img { width: 100%; height: 100%; object-fit: cover; transform-origin: 70% 60%; }
.cine__slide.is-active .cine__bg img, .cine__slide.is-entering .cine__bg img { animation: kenBurns 12s ease-out both; }
.cine__slide.is-leaving .cine__bg { transition: transform 1.2s var(--ease), filter 1.2s var(--ease); transform: scale(1.04); filter: brightness(.6); }
@keyframes kenBurns { from { transform: scale(1.12); } to { transform: scale(1); } }
.cine__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 17, 32, .78) 0%, rgba(11, 17, 32, .45) 38%, rgba(11, 17, 32, 0) 68%),
    linear-gradient(0deg, rgba(11, 17, 32, .7) 0%, rgba(11, 17, 32, 0) 32%),
    linear-gradient(180deg, rgba(11, 17, 32, .45) 0%, rgba(11, 17, 32, 0) 22%);
}
.cine__inner {
  position: relative; z-index: 2; height: 100%;
  display: grid; align-items: center; gap: var(--space-6);
  padding-top: calc(var(--header-h) + 1rem); padding-bottom: 150px;
}
@media (min-width: 960px) { .cine__inner { grid-template-columns: 1.15fr .85fr; } }
.cine__copy { max-width: 40rem; }
.cine__kicker {
  display: inline-flex; align-items: center; gap: .7rem;
  font-size: var(--fs-xs); font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 253, 248, .82); margin-bottom: var(--space-5);
}
.cine__kicker span {
  display: inline-grid; place-items: center; min-width: 2.4rem; height: 1.6rem; padding: 0 .5rem;
  border: 1px solid rgba(228, 196, 134, .6); border-radius: var(--radius-pill); color: var(--gold-light); letter-spacing: .08em;
}
.cine__title {
  font-size: clamp(2.7rem, 1.4rem + 4.6vw, 6rem); line-height: 1.02; letter-spacing: -.025em;
  color: var(--warm-white); margin-bottom: var(--space-5);
  text-shadow: 0 2px 30px rgba(11, 17, 32, .35);
}
.cine__title .line { display: block; }
.cine__title em { font-style: italic; font-weight: 400; color: var(--gold-light); }
.cine__lede { font-size: var(--fs-lg); color: rgba(255, 253, 248, .85); max-width: 32rem; margin-bottom: var(--space-6); }
.cine__link { margin-top: var(--space-5); }
.cine .link-arrow { color: var(--gold-light); text-decoration-color: rgba(228, 196, 134, .45); }

/* Staggered entrance for the active chapter's copy */
.js .cine__slide:not(.is-shown) .cine__kicker, .js .cine__slide:not(.is-shown) .cine__title .line, .js .cine__slide:not(.is-shown) .cine__lede, .js .cine__slide:not(.is-shown) .btn-row, .js .cine__slide:not(.is-shown) .cine__link, .js .cine__slide:not(.is-shown) .cine__books {
  opacity: 0; transform: translateY(26px);
}
.cine__slide.is-shown .cine__kicker, .cine__slide.is-shown .cine__title .line, .cine__slide.is-shown .cine__lede, .cine__slide.is-shown .btn-row, .cine__slide.is-shown .cine__link, .cine__slide.is-shown .cine__books {
  opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform 1s var(--ease);
}
.cine__slide.is-shown .cine__title .line:nth-child(1) { transition-delay: .08s; }
.cine__slide.is-shown .cine__title .line:nth-child(2) { transition-delay: .18s; }
.cine__slide.is-shown .cine__lede { transition-delay: .28s; }
.cine__slide.is-shown .btn-row { transition-delay: .36s; }
.cine__slide.is-shown .cine__link { transition-delay: .44s; }
.cine__slide.is-shown .cine__books { transition-delay: .3s; transition-duration: 1.2s; }

.cine__books { display: grid; grid-template-columns: 1fr 1fr; gap: 8%; align-items: start; max-width: 520px; justify-self: end; width: 100%; }
.cine__books .book:nth-child(2) { margin-top: 22%; }
.cine__books--single { grid-template-columns: 1fr; max-width: 340px; }
.cine .book--abc .book__title { text-shadow: none; }

.cine__ui {
  position: absolute; left: 0; right: 0; bottom: clamp(1.25rem, 3vh, 2.5rem); z-index: 5;
  display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); flex-wrap: wrap;
}
.cine__arrows { display: flex; gap: .6rem; }
.cine__arrow {
  width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center;
  background: rgba(255, 253, 248, .1); color: var(--warm-white);
  border: 1px solid rgba(255, 253, 248, .4); cursor: pointer;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transition: background .3s, transform .3s var(--ease);
}
.cine__arrow:hover { background: rgba(255, 253, 248, .25); transform: translateY(-2px); }
.cine__arrow:focus-visible { outline-color: var(--gold-light); }
.cine__pause-icon { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.cine__pause[aria-pressed="true"] .cine__pause-icon { width: 0; height: 0; border-style: solid; border-width: 7px 0 7px 12px; border-color: transparent transparent transparent currentColor; margin-left: 3px; }
.cine__tabs { display: flex; gap: clamp(1rem, 2.5vw, 2.5rem); }
.cine__tabs button {
  position: relative; background: none; border: 0; cursor: pointer; padding: .5rem 0 .9rem;
  color: rgba(255, 253, 248, .6); font-size: .92rem; font-weight: 500; text-align: left; min-width: 8.5rem;
  transition: color .3s;
}
.cine__tabs button:hover, .cine__tabs button[aria-current="true"] { color: var(--warm-white); }
.cine__tabs button:focus-visible { outline-color: var(--gold-light); }
.cine__num { font-variant-numeric: tabular-nums; color: var(--gold-light); margin-right: .35rem; font-size: .8rem; }
.cine__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 253, 248, .25); overflow: hidden; border-radius: 2px; }
.cine__bar i { position: absolute; inset: 0; background: var(--gold-light); transform-origin: left; transform: scaleX(0); }
.cine__tabs button[aria-current="true"] .cine__bar i { animation: cineBar var(--cine-dur) linear forwards; }
.cine.is-paused .cine__tabs button[aria-current="true"] .cine__bar i { animation-play-state: paused; }
@keyframes cineBar { to { transform: scaleX(1); } }
.cine__note { position: absolute; z-index: 5; top: calc(var(--header-h) + .5rem); right: var(--gutter); margin: 0; }
.cine__note .art-note { color: rgba(255, 253, 248, .6); }
.cine__scroll {
  position: absolute; z-index: 5; left: 50%; bottom: clamp(1.25rem, 3vh, 2.5rem); transform: translateX(-50%);
  display: none; flex-direction: column; align-items: center; gap: .5rem;
  color: rgba(255, 253, 248, .7); text-decoration: none; font-size: .7rem; letter-spacing: .25em; text-transform: uppercase;
}
.cine__scroll i { width: 1px; height: 36px; background: linear-gradient(rgba(255,253,248,.8), transparent); animation: scrollCue 2.2s ease-in-out infinite; transform-origin: top; }
@keyframes scrollCue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (min-width: 1200px) { .cine__scroll { display: flex; } }

@media (max-width: 959px) {
  .cine { min-height: 720px; }
  .cine__inner { align-content: end; padding-bottom: 170px; }
  .cine__books { position: absolute; top: calc(var(--header-h) + 2.2rem); right: var(--gutter); width: 46%; max-width: 280px; }
  .cine__books--single { width: 34%; }
  .cine__copy { position: relative; }
  .cine__bg::after { background: linear-gradient(0deg, rgba(11,17,32,.92) 0%, rgba(11,17,32,.65) 45%, rgba(11,17,32,.15) 75%), linear-gradient(180deg, rgba(11,17,32,.5), transparent 25%); }
  .cine__tabs button { min-width: 0; font-size: .82rem; }
  .cine__tabs { gap: 1rem; }
  .cine__note { display: none; }
}
@media (max-width: 560px) {
  .cine__tabs button .cine__label-long { display: none; }
  .cine__ui { flex-direction: column-reverse; align-items: stretch; }
  .cine__tabs { justify-content: space-between; }
  .cine__inner { padding-bottom: 190px; }
  .cine__books { width: 52%; top: calc(var(--header-h) + 1rem); }
  .cine__books--single { width: 40%; }
  .cine__lede { margin-bottom: var(--space-5); }
}

/* ---------- Torn-paper edges ---------- */
.section--torn { position: relative; }
.torn { position: absolute; left: 0; right: 0; top: -40px; height: 42px; z-index: 4; pointer-events: none; line-height: 0; }
.torn svg { width: 100%; height: 100%; }
.torn--top { top: -2px; }

/* ---------- Scroll-driven cloud reveal ---------- */
.reveal-clouds {
  --p: 0;
  position: relative; height: 230vh;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(246, 199, 122, .55), rgba(246, 199, 122, 0) 55%),
    linear-gradient(180deg, #E9B98A 0%, #B9724C 22%, var(--ember-2) 55%, var(--ember) 100%);
  color: var(--warm-white);
}
.reveal-clouds__sticky { position: sticky; top: 0; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.reveal-clouds__glow {
  position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 233, 176, .55), rgba(255, 233, 176, 0) 60%);
  transform: scale(calc(.6 + var(--p) * .7)); opacity: calc(.4 + var(--p) * .6);
}
.reveal-clouds__text {
  position: relative; z-index: 2; text-align: center; max-width: 60rem;
  opacity: calc(var(--p) * 2.2 - .55);
  transform: translateY(calc((1 - var(--p)) * 40px)) scale(calc(.94 + var(--p) * .06));
}
.reveal-clouds__text h2 {
  font-size: clamp(2.3rem, 1.2rem + 4.4vw, 5.4rem); line-height: 1.04; letter-spacing: -.025em;
  color: var(--warm-white); text-shadow: 0 4px 40px rgba(43, 26, 20, .5);
}
.reveal-clouds__text h2 em { font-style: italic; font-weight: 400; color: #FFE3AE; }
.reveal-clouds__text .eyebrow { color: #FFE3AE; }
.reveal-clouds__text .lede { color: rgba(255, 253, 248, .85); margin-inline: auto; }
.reveal-clouds__layer {
  position: absolute; z-index: 3; bottom: -10%; width: max(92vw, 820px); height: auto; max-width: none; pointer-events: none;
  will-change: transform;
}
.reveal-clouds__layer--left { left: -22%; transform: translate3d(calc(var(--p) * -58%), calc(var(--p) * 14%), 0); }
.reveal-clouds__layer--right { right: -22%; transform: translate3d(calc(var(--p) * 58%), calc(var(--p) * 14%), 0); }

/* ---------- Scroll-linked letter marquee ---------- */
.marquee { --m: 0; overflow: hidden; padding-block: clamp(2rem, 1rem + 4vw, 4.5rem); background: var(--ivory); user-select: none; }
.marquee__row {
  display: flex; gap: 2rem; white-space: nowrap; width: max-content;
  font-family: var(--serif); font-weight: 500; line-height: 1;
  font-size: clamp(3.5rem, 2rem + 9vw, 10rem); letter-spacing: -.02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(163, 87, 58, .45);
  transform: translate3d(calc(var(--m) * -1px), 0, 0);
}
.marquee__row--alt {
  color: rgba(201, 161, 92, .22); -webkit-text-stroke: 0; font-style: italic; font-weight: 400;
  transform: translate3d(calc(var(--m) * 1px - 40%), 0, 0);
}

/* ---------- Dark "how it works" band ---------- */
.section--steps { background: radial-gradient(ellipse at 80% 0%, rgba(201, 161, 92, .18), transparent 50%), var(--navy); }
.section--steps .step { background: rgba(255, 253, 248, .04); border-color: rgba(255, 253, 248, .1); }
.section--steps .step h3 { color: var(--warm-white); }
.section--steps .step p { color: rgba(255, 253, 248, .7); }
.section--steps .step::before { color: var(--gold-light); font-size: 3.2rem; }
.section--steps .step:hover { box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); border-color: rgba(228, 196, 134, .4); }
.section--steps .step--highlight { background: linear-gradient(160deg, #E4C486, #C9A15C); border-color: transparent; }
.section--steps .step--highlight h3, .section--steps .step--highlight p { color: var(--navy-deep); }
.section--steps .step--highlight::before { color: var(--navy-deep); }
.section--steps .step--highlight .step__tag { color: var(--navy-deep); }

/* ---------- Product cards: modern 3D tilt (JS sets --rx / --ry) ---------- */
.product-card { --rx: 0deg; --ry: 0deg; transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d; border-radius: 32px; }
.product-card:hover { transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px); }

/* ---------- Cinematic inner-page hero ---------- */
.page-hero--cine {
  color: var(--warm-white); background: var(--navy-deep);
  min-height: clamp(380px, 52vh, 560px); display: flex; align-items: flex-end;
}
.page-hero--cine::before { display: none; }
.page-hero__bg { position: absolute; inset: 0; z-index: -1; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; animation: kenBurns 14s ease-out both; }
.page-hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,17,32,.85), rgba(11,17,32,.45) 55%, rgba(11,17,32,.2)), linear-gradient(0deg, rgba(11,17,32,.6), transparent 50%); }
.page-hero--cine h1 { color: var(--warm-white); font-size: clamp(2.5rem, 1.5rem + 4vw, 5rem); letter-spacing: -.025em; }
.page-hero--cine .eyebrow { color: var(--gold-light); }
.page-hero--cine .lede { color: rgba(255, 253, 248, .82); }
.page-hero--cine > .container { width: 100%; }
.page-hero--dark.page-hero--cine .bespoke-teaser__art { background: rgba(11, 17, 32, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* ---------- Giant footer wordmark ---------- */
.footer-giant {
  margin: var(--space-8) 0 0; font-family: var(--serif); font-weight: 500; line-height: .85;
  font-size: clamp(3.4rem, 1rem + 13vw, 14rem); letter-spacing: -.04em; white-space: nowrap;
  background: linear-gradient(180deg, rgba(228, 196, 134, .55), rgba(228, 196, 134, 0) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  overflow: hidden;
}
.footer-giant em { font-style: italic; font-weight: 400; }

/* ---------- Reduced motion: keep everything readable and still ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal-clouds { --p: 1 !important; height: auto; }
  .reveal-clouds__sticky { position: relative; height: auto; min-height: 80vh; padding-block: 6rem; }
  .marquee__row { transform: none !important; }
  .cine__slide .cine__kicker, .cine__slide .cine__title .line, .cine__slide .cine__lede, .cine__slide .btn-row, .cine__slide .cine__link, .cine__slide .cine__books { opacity: 1; transform: none; }
  .cine__bg img, .page-hero__bg img { animation: none !important; }
  .cine__tabs button[aria-current="true"] .cine__bar i { animation: none; transform: scaleX(1); }
}

/* V2 QA: mobile hero reflow — books sit above the copy instead of floating over it */
@media (max-width: 959px) {
  .cine { min-height: 780px; }
  .cine__inner { align-content: end; gap: 1rem; padding-bottom: 130px; }
  .cine__books { position: static; order: -1; justify-self: start; width: 64%; max-width: 260px; }
  .cine__books .book:nth-child(2) { margin-top: 14%; }
  .cine__link { display: none; }
}
@media (max-width: 560px) {
  .cine__ui { flex-direction: row; align-items: flex-end; }
  .cine__arrows [data-cine-prev], .cine__arrows [data-cine-next] { display: none; }
  .cine__tabs { flex: 1; gap: .75rem; }
  .cine__inner { padding-bottom: 115px; }
  .cine__title { font-size: 2.45rem; }
  .cine__lede { font-size: 1rem; }
  .cine .btn-row .btn { flex: 1 1 auto; min-height: 48px; padding-inline: 1rem; }
}

/* V2 QA: keep the page-turn animation from ever causing sideways scroll */
.viewer__stage { overflow-x: clip; }
.section { overflow-x: clip; }
