/* ==========================================================================
   Stephanie Claus — mobile-first stylesheet
   Base styles target phones; larger screens are layered on with min-width
   media queries (640px tablet, 960px desktop).
   ========================================================================== */

/* ---------- Fonts ---------- */
/* Brand fonts: Cormorant Garamond (titles, quotes; loaded from Google Fonts in
   the HTML head) and Quicksand (everything else, self-hosted). */
@font-face { font-family: 'Playfair Display'; font-weight: 100 500; font-style: normal; font-display: swap; src: url(../assets/fonts/playfair-display-regular.woff) format('woff'); }
@font-face { font-family: 'Quicksand'; font-weight: 100 500; font-style: normal; font-display: swap; src: url(../assets/fonts/quicksand-regular.woff) format('woff'); }
@font-face { font-family: 'Quicksand'; font-weight: 600 900; font-style: normal; font-display: swap; src: url(../assets/fonts/quicksand-bold.woff) format('woff'); }

/* ---------- Design tokens ---------- */
/* Colours follow the SC brand guide (brand/index.html, "Family Frame"):
   one soft gradient family per offer, white text on dark, Midnight on light. */
:root {
  --periwinkle: #8b97fd;
  --royal: #1f54b8;
  --royal-hover: #2a66d6;
  --indigo: #1d0882;
  --midnight: #0d0149;
  --night-blue: #1d2a7a;
  --cosmos: #071b6e;
  --ice: #e9f6ff;
  --ice-blue: #bdebff;
  --cyan: #19d3f0;
  --cyan-hover: #5fe3f7;
  --cream: #f5ebdd;
  --umber: #3a2e2a;
  --ink: #1c1633;

  /* Background families */
  --bg-cosmos: linear-gradient(180deg, #0b2a8f, #071b6e 55%, #051355);
  --bg-royal: linear-gradient(180deg, #2d6bdc, #1f54b8 58%, #17449a);
  --bg-sand: linear-gradient(180deg, #f2e8d2, #e6d3b3 58%, #d8c29a);
  --bg-soul: linear-gradient(180deg, #b8c4ff, #92a1fc 55%, #828fff);
  --bg-aqua: linear-gradient(180deg, #d6eff6, #c3e7f4 55%, #b1e0f2);


  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-quote: 'Playfair Display', Georgia, serif;   /* testimonials only */
  --font-ui: 'Quicksand', system-ui, sans-serif;
  --font-body: 'Quicksand', system-ui, sans-serif;

  --gutter: max(20px, env(safe-area-inset-left));
  --section-pad: clamp(56px, 12vw, 120px);
  --radius: 11px;
  --topbar-h: 56px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--topbar-h);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--midnight);
  color: var(--ice);
  font-family: var(--font-body);
  font-size: 1.0625rem;          /* 17px */
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
p { margin: 0 0 1em; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.02; letter-spacing: 0; }

:focus-visible { outline: 3px solid var(--ice); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius);
  background: var(--ice); color: var(--midnight); font-family: var(--font-ui); text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Shared components ---------- */
/* Brand title: Cormorant Garamond Bold, Title Case, no rule underneath */
.section-title {
  font-size: clamp(2.6rem, 10.5vw, 5.2rem);
  margin-bottom: 0.3em;
  max-width: 100%;
}
.section-title--center { display: block; text-align: center; margin-inline: auto; }
/* Brand subtitle: tiny Quicksand Bold caps, widely spaced */
.kicker {
  margin: 0 0 1.4em;
  font-family: var(--font-ui); font-weight: 700;
  font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; line-height: 1.5;
}
.lead { font-size: 1.125em; }
/* Four-point star, the brand's small light symbol */
.star { display: block; width: 28px; height: 28px; margin: 0 auto; background: currentColor;
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
/* Round image window with a white border */
.round {
  width: min(78vw, 380px); aspect-ratio: 1; object-fit: cover;
  border-radius: 50%; border: 4px solid #fff;
  box-shadow: 0 24px 60px -24px rgba(5, 0, 40, 0.55);
}

.button {
  display: flex; align-items: center; justify-content: center; gap: 0.4em;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: var(--radius);
  background: var(--royal);
  color: #fff;
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  box-shadow: 0 6px 18px -8px rgba(5, 0, 40, 0.6);
  transition: background-color 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.button:hover { background: var(--royal-hover); }
.button:active { transform: scale(0.97); }
.button--cyan { background: var(--cyan); color: var(--cosmos); }
.button--cyan:hover { background: var(--cyan-hover); }

.text-link {
  display: inline-block;
  padding-block: 0.2em;
  margin-top: 0.4em;
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  font-size: clamp(1.6rem, 6.4vw, 2.6rem);
  line-height: 1.2;
  text-decoration: none;
}
.text-link::after { content: '\00a0→'; display: inline-block; font-family: var(--font-ui); font-style: normal; font-weight: 400; transition: transform 0.2s; }
.text-link:hover::after { transform: translateX(6px); }
.text-link:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 0.2em; }

/* ---------- Top bar + menu ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  height: calc(var(--topbar-h) + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) var(--gutter) 0;
  background: rgba(13, 1, 73, 0.88);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform 0.3s ease, visibility 0.3s;
}
.topbar.is-visible, .topbar.is-open { transform: none; visibility: visible; }
.topbar__name { display: inline-flex; align-items: center; min-height: 48px; font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; text-decoration: none; }
.topbar__toggle {
  width: 48px; height: 48px; margin-right: -12px;
  display: grid; place-items: center;
  background: none; border: 0; color: inherit; cursor: pointer;
}
.topbar__toggle-icon, .topbar__toggle-icon::before, .topbar__toggle-icon::after {
  display: block; width: 24px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.25s, opacity 0.25s;
}
.topbar__toggle-icon { position: relative; }
.topbar__toggle-icon::before, .topbar__toggle-icon::after { content: ''; position: absolute; left: 0; }
.topbar__toggle-icon::before { top: -7px; }
.topbar__toggle-icon::after { top: 7px; }
.topbar.is-open .topbar__toggle-icon { background: transparent; }
.topbar.is-open .topbar__toggle-icon::before { transform: translateY(7px) rotate(45deg); }
.topbar.is-open .topbar__toggle-icon::after { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: absolute; top: 100%; left: 0; right: 0;
  max-height: calc(100dvh - var(--topbar-h));
  overflow-y: auto;
  background: var(--midnight);
  border-top: 1px solid rgba(233, 246, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
.menu ul { list-style: none; margin: 0; padding: 8px var(--gutter) max(16px, env(safe-area-inset-bottom)); }
.menu a {
  display: flex; align-items: center; min-height: 52px;
  font-family: var(--font-ui); font-weight: 600; font-size: 1.05rem; text-decoration: none;
  border-bottom: 1px solid rgba(233, 246, 255, 0.1);
}
.menu li:last-child a { border-bottom: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 0 var(--gutter) max(32px, env(safe-area-inset-bottom));
  background: var(--midnight);
  color: #fff;
  isolation: isolate;
}
.hero__photo {               /* phones: photo fills the top, text sits below her face */
  position: absolute; inset: 0 0 auto 0; z-index: -2;
  width: 100%; height: 62%;
  object-fit: cover;
  object-position: 32% 45%;
}
.hero::after {               /* fade the photo into the text area */
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(13, 1, 73, 0) 35%, rgba(13, 1, 73, 0.75) 52%, var(--midnight) 62%);
}
.hero__content { width: 100%; max-width: 560px; margin-inline: auto; }
.hero__name { font-size: clamp(3rem, 14vw, 5.4rem); text-shadow: 0 2px 14px rgba(13, 1, 73, 0.35); }
.hero__tagline { margin: 0.9em 0 1.8em; color: var(--ice-blue); }
.button-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.button-grid .button { font-size: 0.8rem; letter-spacing: 0.1em; padding-inline: 10px; }

/* ---------- Sanctuary Spaces (Sand) ---------- */
.sanctuary { background: var(--bg-sand); color: var(--umber); }
.sanctuary__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 78% 50%;
}
.sanctuary__body { padding: 40px var(--gutter) var(--section-pad); max-width: 680px; margin-inline: auto; }
.sanctuary .section-title { color: var(--night-blue); }
.sanctuary .kicker { color: var(--umber); }
.sanctuary .text-link { color: var(--night-blue); }

/* ---------- The Six-Crystal (book · Cosmos) ---------- */
.book {
  background: var(--bg-cosmos);
  color: #fff;
  padding: var(--section-pad) var(--gutter);
}
.book__inner { display: grid; gap: 40px; justify-items: center; max-width: 1100px; margin-inline: auto; }
.book__cover {
  width: min(64vw, 300px);
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 80px -10px rgba(25, 211, 240, 0.4);
}
.book__body { max-width: 620px; }
.book .kicker { color: var(--ice-blue); }
.book__subtitle {
  margin-bottom: 1.4em;
  font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: clamp(1.3rem, 5vw, 1.7rem); line-height: 1.3;
  color: var(--ice-blue);
}
.book__hook {
  margin: 1.4em 0 1.6em;
  font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(1.5rem, 6vw, 2.1rem); line-height: 1.25;
}
.book__facts {
  display: flex; flex-wrap: wrap; gap: 8px;
  list-style: none; margin: 0 0 1.8em; padding: 0;
  font-family: var(--font-ui); font-size: 0.9rem;
}
.book__facts li { padding: 6px 12px; border-radius: 999px; background: rgba(31, 84, 184, 0.1); color: var(--indigo); }
.book__reviews { display: grid; gap: 16px; margin: 0 0 2em; }
.book__reviews blockquote {
  margin: 0; padding: 20px 22px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}
.book__reviews blockquote p { margin: 0 0 0.5em; font-family: var(--font-quote); font-style: normal; font-weight: 400; font-size: 1.1rem; line-height: 1.5; }
.book__reviews footer { font-family: var(--font-ui); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice-blue); }
.book__cta { width: 100%; }

/* ---------- Find Your North Star (Royal) ---------- */
.northstar {
  background: var(--bg-royal);
  color: #fff;
  padding: var(--section-pad) var(--gutter);
}
.northstar__inner { display: grid; gap: 36px; justify-items: center; max-width: 1100px; margin-inline: auto; }
.northstar__head { text-align: center; }
.northstar .kicker { color: var(--ice); margin-bottom: 0; }
.northstar__body { max-width: 620px; }
.northstar__motto { margin-top: 1.4em; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(1.45rem, 5.4vw, 1.9rem); line-height: 1.25; }
.northstar .text-link { color: #fff; }

/* ---------- Made With Soul (Periwinkle) ---------- */
.soul {
  position: relative; isolation: isolate; overflow: hidden;
  padding: var(--section-pad) var(--gutter);
  background: var(--bg-soul);
  color: var(--midnight);
  text-align: center;
}
.soul::before {               /* sparkle pattern from the original design */
  content: ''; position: absolute; inset: -20% 0; z-index: -1;
  background: url(../assets/img/sparkles.svg) center / auto 82% no-repeat;
  opacity: 0.18;
  transform: translateY(var(--soul-shift, 0px));   /* parallax, set in main.js */
  will-change: transform;
}
.soul .section-title { color: #fff; }
.soul__lotus { width: min(62vw, 300px); margin: 0 auto 2em; }
.soul__intro { max-width: 30ch; margin: 0 auto 1.8em; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 5.6vw, 2.1rem); line-height: 1.3; }
.soul__note { max-width: 40ch; margin: 0 auto; }
.soul__note a { font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

/* ---------- About (Midnight) ---------- */
.about {
  background: var(--midnight);
  color: var(--ice);
  padding: var(--section-pad) var(--gutter) clamp(32px, 6vw, 56px);
  display: grid; gap: 36px; justify-items: center;
}
.about__portrait { object-position: 50% 22%; }
.about__body { max-width: 640px; }
.about__name { font-size: clamp(2.6rem, 11vw, 5rem); color: #fff; }
.about__role { margin: 0.8em 0 1.6em; color: var(--ice-blue); }
.about__glow {
  margin-top: 1.2em;
  font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(1.6rem, 6.4vw, 2.3rem); line-height: 1.25;
  color: var(--ice-blue);
}

/* Amazon store chooser under "Get the book" buttons */
.stores { margin: 0.9em 0 0; font-size: 0.85rem; color: var(--ice-blue); }
.stores a { color: inherit; font-weight: 700; text-underline-offset: 0.2em; }

/* ---------- Free meditation (Cosmos, matches the artwork's background) ---------- */
.gift { background: var(--cosmos); color: #fff; padding: var(--section-pad) var(--gutter); }
.gift__inner { display: grid; gap: 36px; justify-items: center; max-width: 1100px; margin-inline: auto; }
.gift__art {
  width: min(80vw, 380px);
  /* fade the flat blue edges into the section so no rectangle shows */
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.gift__body { max-width: 600px; }
.gift .section-title { font-size: clamp(2.3rem, 9vw, 4rem); }
.gift .kicker { color: var(--ice-blue); }
.gift__form { margin-top: 2em; padding: 24px 20px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.07); }
.gift__fields { display: grid; gap: 14px; margin-bottom: 18px; }
.gift__field span { display: block; margin-bottom: 6px; font-family: var(--font-ui); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ice-blue); }
.gift__field input {
  width: 100%; min-height: 50px; padding: 10px 14px;
  border: 1.5px solid rgba(189, 235, 255, 0.35); border-radius: var(--radius);
  background: rgba(5, 19, 85, 0.6); color: #fff;
  font: inherit; font-size: 1rem;
}
.gift__field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25, 211, 240, 0.25); }
.gift__consent { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 20px; font-size: 0.95rem; line-height: 1.5; cursor: pointer; }
.gift__consent input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cyan); }
.gift__trap { position: absolute; left: -5000px; }
.gift__submit { width: 100%; cursor: pointer; border: 0; }
.gift__submit[disabled] { opacity: 0.6; cursor: progress; }
.gift__status { margin: 14px 0 0; font-weight: 700; color: var(--ice-blue); }
.gift__status:empty { display: none; }
.gift__legal { margin: 12px 0 0; font-size: 0.8rem; color: rgba(233, 246, 255, 0.65); }

/* Hidden listening page (meditation-gift.html) */
.listen { background: var(--cosmos); color: #fff; padding: calc(var(--topbar-h) + 40px) var(--gutter) var(--section-pad); }
.listen__inner { display: grid; gap: 28px; justify-items: center; max-width: 1100px; margin-inline: auto; }
.listen__art {
  width: min(70vw, 320px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to right, transparent, #000 9%, #000 91%, transparent), linear-gradient(to bottom, transparent, #000 7%, #000 93%, transparent);
  mask-composite: intersect;
}
.listen__body { max-width: 580px; text-align: center; }
.listen .kicker { color: var(--ice-blue); margin-bottom: 0.8em; }
.listen h1 { font-size: clamp(2.4rem, 10vw, 4.2rem); margin-bottom: 0.5em; }
.listen__player { width: 100%; margin: 1.4em 0 0.4em; }
.listen__note { margin: 1.6em 0 0; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.35rem; line-height: 1.35; color: var(--ice-blue); }

/* Next step banner on the listening page (Royal, like Find Your North Star) */
.deeper { background: var(--bg-royal); color: #fff; padding: var(--section-pad) var(--gutter); }
.deeper__inner { display: grid; gap: 36px; justify-items: center; max-width: 1100px; margin-inline: auto; }
.deeper .round { width: min(64vw, 320px); }
.deeper__body { max-width: 600px; }
.deeper .kicker { color: var(--ice); margin-bottom: 0.9em; }
.deeper__motto { margin-top: 1.4em; font-family: var(--font-display); font-weight: 700; font-style: italic; font-size: clamp(1.45rem, 5.4vw, 1.9rem); line-height: 1.25; }
.deeper .text-link { color: #fff; }

@media (min-width: 960px) {
  .listen { min-height: 88vh; display: flex; align-items: center; }
  .listen__inner { grid-template-columns: 420px minmax(0, 560px); justify-content: center; align-items: center; gap: 72px; }
  .listen__art { width: 420px; }
  .listen__body { text-align: left; }
  .deeper__inner { grid-template-columns: 360px minmax(0, 600px); justify-content: center; align-items: center; gap: 80px; }
  .deeper .round { width: 360px; }
}

/* ---------- Connect ---------- */
.connect {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: flex-end;
  padding: var(--section-pad) var(--gutter) max(48px, env(safe-area-inset-bottom));
  color: #fff;
}
.connect__photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%;
}
.connect::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(13, 1, 73, 0) 25%, rgba(13, 1, 73, 0.6) 55%, rgba(13, 1, 73, 0.92) 100%);
}
.connect__content { width: 100%; max-width: 420px; margin-inline: auto; }
.connect .section-title { display: block; text-shadow: 0 2px 14px rgba(13, 1, 73, 0.35); }
.button-stack { display: grid; gap: 14px; }

/* ---------- Footer ---------- */
.footer {
  padding: 24px var(--gutter) max(24px, env(safe-area-inset-bottom));
  background: var(--midnight);
  color: rgba(233, 246, 255, 0.6);
  font-family: var(--font-ui); font-size: 0.85rem; text-align: center;
}
.footer p { margin: 0; }

/* ==========================================================================
   Tablet (≥ 640px)
   ========================================================================== */
@media (min-width: 640px) {
  :root { --gutter: max(40px, env(safe-area-inset-left)); }
  .button-grid { gap: 16px; }
  .button-grid .button { font-size: 1.05rem; }
  .sanctuary__media img { aspect-ratio: 16 / 9; }
  .book__reviews { grid-template-columns: 1fr 1fr; }
  .book__cta { width: auto; min-width: 260px; display: inline-flex; }
}

/* ==========================================================================
   Desktop (≥ 960px) — closer to the original two-column compositions
   ========================================================================== */
@media (min-width: 960px) {
  body { font-size: 1.15rem; }

  /* Hero: photo on the left, text block on the right */
  .hero { justify-content: center; padding-block: 120px; background: var(--periwinkle); }
  .hero__photo { height: 100%; object-position: 30% 40%; }
  .hero::after {
    background: linear-gradient(to right, rgba(13, 1, 73, 0) 40%, rgba(13, 1, 73, 0.45) 100%);
  }
  .hero__content { max-width: 600px; margin: 0 6vw 0 auto; }

  /* Sanctuary: text over the photo, cream wash on the left */
  .sanctuary { position: relative; isolation: isolate; min-height: 100vh; display: flex; align-items: center; }
  .sanctuary__media { position: absolute; inset: 0; z-index: -1; }
  .sanctuary__media img { width: 100%; height: 100%; aspect-ratio: auto; object-position: 70% 50%; }
  .sanctuary__media::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(to right, rgba(245, 235, 221, 0.92) 0%, rgba(245, 235, 221, 0.75) 40%, rgba(245, 235, 221, 0) 65%);
  }
  .sanctuary__body { margin: 0 0 0 7vw; padding-block: var(--section-pad); max-width: 640px; }

  /* Book: cover left, short teaser right */
  .book__inner { grid-template-columns: 360px minmax(0, 620px); align-items: center; justify-content: center; gap: 80px; }
  .book__cover { width: 360px; transform: rotate(-3deg); }

  /* North Star: title on top, round star window left, text right */
  .northstar__inner { grid-template-columns: 420px minmax(0, 560px); justify-content: center; align-items: center; column-gap: 80px; row-gap: 48px; }
  .northstar__head { grid-column: 1 / -1; }
  .northstar .round { width: 420px; }

  .soul { min-height: 80vh; display: flex; flex-direction: column; justify-content: center; }
  .soul__lotus { width: 300px; }
  .soul::before { transform: translateY(var(--soul-shift, 0px)) rotate(-90deg); background-size: auto 164%; }

  /* About: round portrait left, text right */
  .about {
    grid-template-columns: 400px minmax(0, 640px);
    justify-content: center; align-items: center; gap: 80px;
  }
  .about .round { width: 400px; }

  /* Free meditation: artwork left, text and form right */
  .gift__inner { grid-template-columns: 420px minmax(0, 600px); justify-content: center; align-items: center; gap: 80px; }
  .gift__art { width: 420px; }
  .gift__fields { grid-template-columns: 1fr 1fr; }

  /* Connect: buttons on the right, like the hero */
  .connect { align-items: center; }
  .connect::after { background: linear-gradient(to right, rgba(13, 1, 73, 0) 40%, rgba(13, 1, 73, 0.5) 100%); }
  .connect__content { max-width: 480px; margin: 0 8vw 0 auto; }
  .connect .button-stack { max-width: 320px; margin-left: auto; }
}

/* ==========================================================================
   Small desktop (960–1399px): a full-bleed photo would put the text over her
   face, so the photo gets its own left column and the text sits beside it.
   ========================================================================== */
@media (min-width: 960px) and (max-width: 1399px) {
  .hero, .connect {
    background: var(--midnight);
    padding-left: calc(55% + 48px);
    padding-right: max(48px, 5vw);
  }
  .hero__photo, .connect__photo {
    inset: 0 auto 0 0;
    width: 55%; height: 100%;
    object-position: 32% 45%;
  }
  .hero::after, .connect::after {
    background: linear-gradient(to right, rgba(13, 1, 73, 0) 40%, var(--midnight) 55%);
  }
  .hero__content, .connect__content { max-width: 480px; margin: 0; }
  .hero__name { font-size: clamp(3rem, 5.4vw, 4.6rem); }
  .connect .button-stack { max-width: none; margin-left: 0; }
}

/* ---------- Book Quest (Cosmos) ---------- */
.quest {
  background: var(--bg-cosmos);
  color: #fff;
  padding: var(--section-pad) var(--gutter);
  text-align: center;
}
.quest__inner { max-width: 1000px; margin-inline: auto; }
.quest__eyebrow { color: var(--ice-blue); }
.quest .section-title { color: #fff; }
.quest__intro { max-width: 680px; margin: 0 auto 32px; }
.quest__art { width: 100%; max-width: 520px; margin: 0 auto 20px; border-radius: var(--radius); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7); }
.quest__note { max-width: 620px; margin: 0 auto 44px; font-family: var(--font-display); font-style: italic; font-weight: 600; font-size: 1.25rem; line-height: 1.4; color: var(--ice-blue); }
.quest__h { margin: 0 0 0.6em; font-family: var(--font-display); font-size: clamp(1.7rem, 6vw, 2.2rem); line-height: 1.1; font-weight: 700; }
.quest__panel, .quest__how { max-width: 680px; margin: 0 auto 28px; padding: 30px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.07); }
.quest__time { margin: 0 0 1.2em; font-family: var(--font-ui); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ice-blue); }
.quest__dates { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; text-align: left; }
.quest__dates li { padding: 10px 14px; border-radius: 8px; background: rgba(5, 19, 85, 0.6); font-weight: 700; }
.quest__dates span { display: inline-grid; place-items: center; width: 1.6em; height: 1.6em; margin-right: 0.5em; border-radius: 50%; border: 1.5px solid var(--cyan); color: var(--cyan); font-size: 0.85em; }
.quest__dates li:nth-child(7) { grid-column: 1 / -1; }
.quest__steps { list-style: none; counter-reset: step; margin: 0; padding: 0; text-align: left; display: grid; gap: 22px; }
.quest__steps li { counter-increment: step; position: relative; padding-left: 2.6em; }
.quest__steps li::before { content: counter(step); position: absolute; left: 0; top: 0.05em; display: grid; place-items: center; width: 1.9em; height: 1.9em; border-radius: 50%; background: var(--cyan); color: var(--cosmos); font-weight: 700; }
.quest__steps a:not(.button) { color: var(--ice-blue); font-weight: 700; text-underline-offset: 0.2em; }
.quest__steps .button { display: inline-flex; margin-top: 0.9em; }
.quest__voices { margin: 52px auto 0; max-width: 760px; display: grid; gap: 30px; }
.quest__voices figcaption { grid-column: 1 / -1; margin-bottom: 0; }
.quest__voices blockquote { margin: 0; }
.quest__voices blockquote::before { content: ''; display: block; width: 22px; height: 22px; margin: 0 auto 14px; background: var(--ice-blue);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); }
.quest__voices p { margin: 0 0 0.5em; font-family: var(--font-quote); font-style: normal; font-weight: 400; font-size: 1.1rem; line-height: 1.5; }
.quest__voices footer { font-family: var(--font-ui); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ice-blue); }

@media (min-width: 640px) {
  .quest__dates { grid-template-columns: repeat(4, 1fr); }
  .quest__dates li:nth-child(7) { grid-column: auto; }
  .quest__panel, .quest__how { padding: 36px 40px; }
}
@media (min-width: 960px) {
  .quest__voices { grid-template-columns: repeat(3, 1fr); max-width: 1000px; gap: 40px; }
}

/* ---------- Love notes (homepage About + book page) ---------- */
.notes {
  background: var(--bg-royal);
  color: #fff;
  --note-star: var(--ice-blue);
  --note-small: var(--ice-blue);
  padding: clamp(48px, 9vw, 88px) var(--gutter);
  text-align: center;
}
.notes--about {              /* homepage: continues the About section */
  background: var(--midnight);
  color: var(--ice);
  padding-top: clamp(24px, 5vw, 48px);
}
.notes__title { margin: 0 0 2em; font-family: var(--font-ui); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--note-small); }
.notes__list { display: grid; max-width: 1100px; margin-inline: auto; list-style: none; padding: 0; }
.notes__item { margin: 0; padding: 0 8px; }
.notes__item + .notes__item::before {  /* four-point star between notes */
  content: ''; display: block; width: 22px; height: 22px; margin: 1.6em auto; background: var(--note-star);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
}
.notes__item blockquote { margin: 0; }
.notes__item p { margin: 0 auto 0.7em; max-width: 34ch; font-family: var(--font-quote); font-style: normal; font-weight: 400; font-size: 1.1rem; line-height: 1.5; }
.notes__item figcaption { font-family: var(--font-ui); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--note-small); }
.notes__item figcaption span { display: block; margin-top: 0.3em; letter-spacing: 0.2em; }
.notes__list--more { margin-top: 2.6em; max-width: 820px; }

@media (min-width: 900px) {
  .notes__list { grid-template-columns: repeat(3, 1fr); }
  .notes__list--more { grid-template-columns: repeat(2, 1fr); }
  .notes__item { position: relative; padding: 0 36px; }
  .notes__item + .notes__item::before { position: absolute; left: 0; top: 40%; margin: 0; transform: translate(-50%, -50%); }
}

/* ==========================================================================
   Book page (the-six-crystal.html)
   ========================================================================== */
.bp-eyebrow { margin: 0 0 0.6em; font-family: var(--font-ui); font-style: italic; font-size: clamp(1.15rem, 4vw, 1.5rem); letter-spacing: 0.04em; color: var(--royal); }
.bp-h2 { font-size: clamp(2rem, 8vw, 3.4rem); color: var(--indigo); margin-bottom: 0.6em; }
.bp-buttons { display: grid; gap: 12px; max-width: 380px; }
.bp-buttons .stores { margin: -2px 0 10px; text-align: center; }
.bp-button { background: #19d3f0; color: var(--midnight); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.95rem; }
.bp-button:hover { background: #5fe3f7; }
.bp-button--ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.7); }
.bp-button--ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* Hero: starry midnight */
.bp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  padding: calc(var(--topbar-h) + 40px) var(--gutter) var(--section-pad);
  background:
    radial-gradient(ellipse at 70% 20%, rgba(30, 153, 242, 0.35), transparent 55%),
    radial-gradient(ellipse at 20% 80%, rgba(139, 151, 253, 0.25), transparent 50%),
    var(--midnight);
  color: #fff;
}
.bp-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: url(../assets/img/sparkles.svg) center / cover no-repeat;
  opacity: 0.12;
}
.bp-hero__inner { display: grid; gap: 40px; justify-items: center; max-width: 1100px; margin-inline: auto; }
.bp-hero__cover {
  width: min(64vw, 300px);
  border-radius: 4px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.7), 0 0 80px -10px rgba(30, 153, 242, 0.55);
}
.bp-hero__body { max-width: 620px; }
.bp-hero__eyebrow { margin: 0 0 0.4em; font-family: var(--font-ui); font-style: italic; font-size: clamp(1.2rem, 4.4vw, 1.6rem); letter-spacing: 0.06em; color: #bdebff; }
.bp-hero__title { font-size: clamp(2.8rem, 12vw, 5rem); text-shadow: 0 0 24px rgba(30, 153, 242, 0.5); }
.bp-hero__subtitle { margin: 0.6em 0 1.4em; font-family: var(--font-ui); font-style: italic; font-size: clamp(1.05rem, 4vw, 1.35rem); line-height: 1.4; color: var(--ice); }
.bp-hero__question {
  margin: 0 0 1.6em; padding-top: 1.1em;
  border-top: 1.5px solid rgba(255, 255, 255, 0.6);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.4rem, 5.6vw, 2.1rem); line-height: 1.3;
}

/* Story */
.bp-story { background: #bdebff; color: var(--ink); padding: var(--section-pad) var(--gutter) 0; }
.bp-story__inner { max-width: 680px; margin-inline: auto; }
.bp-story .book__facts { margin-top: 1.6em; }
.bp-key {
  max-width: 980px; margin: 0 auto; padding: 28px 0 var(--section-pad);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(1.15rem, 4.2vw, 1.6rem); line-height: 1.5;
  letter-spacing: 0.02em; text-align: center; color: var(--royal);
}
.bp-key::before { content: '✦'; display: block; margin-bottom: 0.6em; color: #19d3f0; font-size: 1.4em; }

/* Fantasy or portal */
.bp-portal {
  display: grid; gap: 1.2em;
  padding: var(--section-pad) var(--gutter);
  background: radial-gradient(ellipse at 50% 50%, rgba(30, 153, 242, 0.35), transparent 70%), var(--indigo);
  color: #fff; text-align: center;
}
.bp-portal p { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.6rem, 6.4vw, 2.4rem); line-height: 1.25; }
.bp-portal p:nth-child(2) { color: #bdebff; }

/* Author */
.bp-author { background: #fff; color: var(--ink); padding: var(--section-pad) var(--gutter); }
.bp-author__inner { display: grid; gap: 32px; justify-items: center; max-width: 1100px; margin-inline: auto; }
.bp-author__intro, .bp-author__body { max-width: 640px; }
.bp-author__title { font-size: clamp(1.6rem, 6vw, 2.5rem); line-height: 1.25; color: var(--indigo); padding-bottom: 0.6em; margin-bottom: 1.4em; border-bottom: 1.5px solid #19d3f0; }
.bp-author__portrait { width: 100%; max-width: 420px; aspect-ratio: 2 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: 0 30px 60px -30px rgba(13, 1, 73, 0.6); }
.bp-author__quote { margin: 2em 0 1.2em; padding: 24px 22px; border-radius: var(--radius); background: #bdebff; }
.bp-author__quote blockquote { margin: 0 0 1em; }
.bp-author__quote p { margin: 0; font-family: var(--font-quote); font-style: normal; font-weight: 400; font-size: 1.25rem; line-height: 1.6; }
.bp-author__name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--indigo); }
.bp-author__role { display: block; font-family: var(--font-ui); font-style: italic; color: var(--royal); }

/* Quest teaser */
.bp-quest { background: #fff; padding: 0 var(--gutter) var(--section-pad); }
.bp-quest__inner { display: grid; justify-items: center; max-width: 1000px; margin-inline: auto; }
.bp-quest__art { width: 100%; max-width: 520px; border-radius: var(--radius); box-shadow: 0 20px 40px -20px rgba(13, 1, 73, 0.6); }
.bp-quest__card {
  position: relative; width: 100%; max-width: 520px; margin-top: 16px;
  padding: 28px 22px; border-radius: var(--radius);
  background: #bdebff; color: var(--indigo); text-align: center;
}
.bp-quest__title { font-size: clamp(1.4rem, 5.4vw, 1.9rem); line-height: 1.25; margin-bottom: 0.5em; }
.bp-quest__card .button { display: inline-flex; }

/* Closing banner */
.bp-end {
  background: var(--bg-cosmos);
  color: #fff;
  padding: var(--section-pad) var(--gutter);
  text-align: center;
}
.bp-end__cover { width: 150px; margin: 0 auto 28px; border-radius: 3px; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.7), 0 0 50px -10px rgba(25, 211, 240, 0.45); }
.bp-end .kicker { color: var(--ice-blue); margin-bottom: 0.9em; }
.bp-end__title { font-size: clamp(2.2rem, 9vw, 3.8rem); margin-bottom: 0.9em; }
.bp-end__buttons { margin-inline: auto; }

.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }

@media (min-width: 640px) {
  .bp-quest__card { padding: 36px 40px; }
  .bp-author__quote { padding: 28px 32px; }
}
@media (min-width: 960px) {
  .bp-hero { min-height: 100vh; display: flex; align-items: center; }
  .bp-hero__inner { grid-template-columns: 380px minmax(0, 620px); justify-content: center; align-items: center; gap: 80px; }
  .bp-hero__cover { width: 380px; transform: rotate(-3deg); }
  .bp-portal { grid-template-columns: repeat(3, 1fr); gap: 48px; max-width: none; padding-inline: max(var(--gutter), calc((100vw - 1100px) / 2)); }
  .bp-author__inner { grid-template-columns: minmax(0, 640px) 420px; align-items: start; justify-content: center; column-gap: 72px; row-gap: 0; }
  .bp-author__intro { grid-column: 1; }
  .bp-author__body { grid-column: 1; }
  .bp-author__portrait { grid-column: 2; grid-row: 1 / span 2; position: sticky; top: calc(var(--topbar-h) + 40px); }
  .bp-quest__inner { grid-template-columns: 460px minmax(0, 480px); align-items: center; justify-content: center; }
  .bp-quest__card { width: auto; margin: 0 0 0 -60px; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
