/* The Magical Story of Us — beta redesign */

:root {
  --paper: #ffffff;
  --paper-2: #ffffff;
  --card: #ffffff;
  --ink: #0b0b0b;
  --ink-soft: #3d3d3d;
  --muted: #6e6e6e;
  --line: rgba(0, 0, 0, 0.12);

  --accent: #9d7b12;
  --garnet: #561d24;
  --gold: #c39a1f;
  --gold-soft: #d6ad32;

  --night: #0a0a0a;
  --night-2: #141414;
  --night-card: #161616;
  --night-text: #f2f2f2;
  --night-muted: #a8a8a8;
  --night-line: rgba(255, 255, 255, 0.14);

  --serif: "Cormorant Garamond", "Cormorant", Georgia, serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --fs-display: clamp(2.9rem, 1.8rem + 4.6vw, 6rem);
  --fs-h1: clamp(2.6rem, 1.7rem + 3.4vw, 4.75rem);
  --fs-h2: clamp(2.1rem, 1.5rem + 2.3vw, 3.5rem);
  --fs-h3: clamp(1.55rem, 1.35rem + 0.8vw, 2rem);
  --fs-lede: clamp(1.12rem, 1.04rem + 0.4vw, 1.35rem);

  --gutter: clamp(20px, 5vw, 56px);
  --max: 1240px;
  --narrow: 740px;
  --section: clamp(72px, 10vw, 144px);
  --radius: 4px;
  --header-h: 64px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
/* Added by transitions.js on same-page anchor clicks, so arriving at a section from another page is instant. */
html.smooth-scroll { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
figure { margin: 0; }

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

p { margin: 0 0 1.1em; text-wrap: pretty; }

h1 em, h2 em, h3 em, .display em, .statement em {
  font-style: italic;
  color: var(--accent);
}

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

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

/* ---------- Layout ---------- */

.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container.narrow { max-width: calc(var(--narrow) + var(--gutter) * 2); }

.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(48px, 7vw, 96px); }
.section--flush-top { padding-top: 0; }

.bg-sand { background: var(--paper); border-block: 1px solid var(--line); }
.bg-night { background: var(--night); color: var(--night-text); }
.bg-garnet { background: var(--garnet); color: var(--night-text); }

.bg-night h1 em, .bg-night h2 em, .bg-night h3 em, .bg-night .display em,
.bg-garnet h1 em, .bg-garnet h2 em, .bg-garnet h3 em { color: var(--gold-soft); }
.bg-night :focus-visible, .bg-garnet :focus-visible { outline-color: var(--gold-soft); }

.center { text-align: center; }
.center .btn-row { justify-content: center; }

.section-head { max-width: 780px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head.center { margin-inline: auto; }
.section-head p:last-child { margin-bottom: 0; }

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  margin: 0 0 1.25rem;
  font: 600 0.72rem/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.center .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.bg-night .eyebrow, .bg-garnet .eyebrow { color: var(--gold-soft); }

.display { font-size: var(--fs-display); line-height: 1; }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

.lede {
  font-size: var(--fs-lede);
  line-height: 1.6;
  color: var(--ink-soft);
}
.bg-night .lede, .bg-garnet .lede { color: rgba(242, 242, 242, 0.84); }

.prose p { font-size: 1.06rem; color: var(--ink-soft); }
.prose strong { color: var(--ink); font-weight: 600; }
.bg-night .prose p { color: rgba(242, 242, 242, 0.82); }
.bg-night .prose strong { color: var(--night-text); }

.pullquote {
  margin: 2.25rem 0;
  padding-left: 1em;
  border-left: 2px solid var(--gold);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.25rem);
  line-height: 1.25;
  color: var(--ink);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  min-height: 48px;
  padding: 0.85em 1.75em;
  border: 1px solid transparent;
  border-radius: 8px;
  font: 600 0.76rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s;
}
.btn-icon { width: 18px; height: 18px; flex: none; margin-left: -4px; }
.btn-sm { min-height: 40px; padding: 0.7em 1.3em; font-size: 0.7rem; }

.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #333; }

.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--gold-soft); }

.btn-outline { background: transparent; color: inherit; border-color: currentColor; }
.btn-outline:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.bg-night .btn-outline:hover,
.bg-garnet .btn-outline:hover { background: var(--night-text); border-color: var(--night-text); color: var(--ink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding-block: 0.4em;
  border-bottom: 1px solid currentColor;
  font: 600 0.74rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
}
.link-arrow::after { content: "\2192"; transition: transform 0.25s var(--ease); }
.link-arrow:hover::after,
a:hover .link-arrow::after { transform: translateX(4px); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--night);
  color: var(--night-text);
  transition: box-shadow 0.3s;
}
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--night-line); }
.site-header .nav-cta { background: #fff; color: var(--ink); }
.site-header .nav-cta:hover { background: var(--gold-soft); }

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}
.brand img {
  position: relative;
  z-index: 2;
  flex: none;
  width: 70px;
  height: 70px;
  margin: 20px 0 0;
  border-radius: 50%;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.28));
}
@media (min-width: 640px) {
  .brand { gap: 14px; }
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.brand-sub {
  margin-top: 5px;
  font: 600 0.6rem/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  opacity: 0.65;
}

.nav-primary { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.2vw, 34px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 0.6em 0;
  font: 500 0.76rem/1 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }

.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-cta { display: none; }

.menu-toggle {
  display: inline-grid;
  place-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.3s var(--ease);
}

body.menu-open { overflow: hidden; }
body.menu-open .site-header {
  color: var(--night-text);
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
body.menu-open .nav-cta { visibility: hidden; }
.menu-toggle span:nth-child(2) { transition: opacity 0.2s; }
body.menu-open .menu-toggle span:first-child { transform: translateY(7.5px) rotate(45deg); }
body.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .menu-toggle span:last-child { transform: translateY(-7.5px) rotate(-45deg); }

@media (min-width: 640px) {
  .nav-cta { display: inline-flex; }
}
@media (min-width: 1080px) {
  .nav-primary { display: block; }
  .menu-toggle { display: none; }
  .nav-actions { gap: 0; }
}
@media (max-width: 379px) {
  .brand-sub { display: none; }
}

/* ---------- Mobile menu ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: calc(var(--header-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom));
  background: var(--night);
  color: var(--night-text);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
body.menu-open .mobile-menu {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.35s var(--ease);
}
.mobile-menu nav { display: flex; flex-direction: column; flex: 1; }
.mobile-menu ul { margin: 0; padding: 0; list-style: none; }
.mobile-menu li a {
  display: block;
  padding: 0.16em 0;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 8vw, 2.9rem);
  line-height: 1.2;
  text-decoration: none;
}
.mobile-menu li a[aria-current="page"] { color: var(--gold-soft); font-style: italic; }
.mobile-menu-foot {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--night-line);
}
.mobile-menu-foot .small-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.mobile-menu-foot .small-links a {
  font: 600 0.74rem/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--night-muted);
}
@media (min-width: 1080px) {
  .mobile-menu { display: none; }
}

/* Nav circle: built by beta.js into .mobile-menu. The ring of pages turns once per --nc-spin. */
.mobile-menu.is-circle {
  --nc-spin: 300s;
  --nc-r: 132px;
  --nc-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  overflow-x: hidden;
  padding: var(--header-h) 0 calc(28px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 44%, rgba(214, 173, 50, 0.16), transparent 55%),
    var(--night);
}
.nc-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, 0.7), transparent 60%),
    radial-gradient(1px 1px at 72% 12%, rgba(255, 241, 191, 0.8), transparent 60%),
    radial-gradient(1.5px 1.5px at 86% 46%, rgba(255, 255, 255, 0.6), transparent 60%),
    radial-gradient(1px 1px at 30% 64%, rgba(255, 241, 191, 0.7), transparent 60%),
    radial-gradient(1px 1px at 58% 82%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1.5px 1.5px at 8% 88%, rgba(255, 241, 191, 0.6), transparent 60%),
    radial-gradient(1px 1px at 44% 30%, rgba(255, 255, 255, 0.5), transparent 60%),
    radial-gradient(1px 1px at 92% 78%, rgba(255, 241, 191, 0.6), transparent 60%);
  background-size: 240px 240px;
  opacity: 0.7;
  pointer-events: none;
  animation: nc-drift 180s linear infinite;
}
@keyframes nc-drift { to { background-position: -240px -120px; } }

.nc-stage { position: relative; flex: 1; min-height: 420px; }
.nc-hub { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }

.nc-rings {
  position: absolute;
  left: -190px;
  top: -190px;
  width: 380px;
  height: 380px;
  overflow: visible;
  opacity: 0;
  transform: scale(0.7) rotate(-30deg);
  transition: opacity 0.5s ease, transform 0.6s var(--nc-ease);
}
body.menu-open .nc-rings { opacity: 1; transform: none; transition: opacity 0.8s ease 0.1s, transform 1.2s var(--nc-ease) 0.1s; }
.nc-rings circle { fill: none; stroke: var(--gold-soft); }
.nc-ring-main { stroke-opacity: 0.45; stroke-width: 1; stroke-dasharray: 1 5; stroke-linecap: round; }
.nc-ring-inner { stroke-opacity: 0.25; stroke-width: 1; }
.nc-ring-outer { stroke-opacity: 0.14; stroke-width: 1; }
.nc-ring-stars { transform-origin: 190px 190px; animation: nc-spin calc(var(--nc-spin) * 2) linear infinite reverse; }
.nc-ring-stars circle { fill: #f3d77e; stroke: none; }

.nc-glow {
  position: absolute;
  left: -110px;
  top: -110px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 173, 50, 0.35), rgba(214, 173, 50, 0.08) 45%, transparent 70%);
  opacity: 0;
  transition: opacity 0.6s ease;
  animation: nc-breathe 6s ease-in-out infinite;
}
body.menu-open .nc-glow { opacity: 1; transition: opacity 1s ease 0.2s; }
@keyframes nc-breathe { 50% { transform: scale(1.12); } }

.nc-sigil {
  position: absolute;
  left: -54px;
  top: -58px;
  width: 108px;
  height: 116px;
  background: linear-gradient(135deg, #f3d77e, var(--gold) 42%, #8a6a10 70%, #f3d77e);
  -webkit-mask: url("../assets/sigil-lines.png") center / contain no-repeat;
  mask: url("../assets/sigil-lines.png") center / contain no-repeat;
  filter: drop-shadow(0 0 10px rgba(214, 173, 50, 0.55));
  opacity: 0;
  transform: scale(0.5);
  transition: opacity 0.4s ease, transform 0.5s var(--nc-ease);
}
body.menu-open .nc-sigil { opacity: 1; transform: none; transition: opacity 0.7s ease 0.15s, transform 1s var(--nc-ease) 0.15s; }

.nc-orbit { position: absolute; left: 0; top: 0; margin: 0; padding: 0; list-style: none; animation: nc-spin var(--nc-spin) linear infinite; }
.nc-slot { position: absolute; left: 0; top: 0; transform: rotate(var(--a)); }
.nc-arm { position: absolute; left: 0; top: 0; transform: translateX(0); transition: transform 0.5s var(--nc-ease); }
body.menu-open .nc-arm { transform: translateX(var(--nc-r)); transition: transform 1.1s var(--nc-ease) calc(0.25s + var(--i) * 0.07s); }
.nc-upright { position: absolute; left: 0; top: 0; transform: rotate(calc(-1 * var(--a))); }
.nc-counter { position: absolute; left: 0; top: 0; animation: nc-spin var(--nc-spin) linear infinite reverse; }
body:not(.menu-open) .nc-orbit,
body:not(.menu-open) .nc-counter,
body:not(.menu-open) .nc-ring-stars,
body:not(.menu-open) .nc-stars { animation-play-state: paused; }
@keyframes nc-spin { to { transform: rotate(360deg); } }

.nc-orb {
  position: absolute;
  left: -46px;
  top: -29px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 92px;
  color: #fff;
  text-decoration: none;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.35s ease, transform 0.5s var(--nc-ease);
  -webkit-tap-highlight-color: transparent;
}
body.menu-open .nc-orb {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s ease calc(0.3s + var(--i) * 0.07s), transform 1.1s var(--nc-ease) calc(0.25s + var(--i) * 0.07s);
}
.nc-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid rgba(214, 173, 50, 0.6);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, #1d1a12, var(--night) 70%);
  box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.9), 0 0 18px rgba(214, 173, 50, 0.18);
  transition: box-shadow 0.35s ease, border-color 0.35s ease, transform 0.35s var(--nc-ease);
}
.nc-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nc-icon svg .fill { fill: var(--gold-soft); stroke: none; }
.nc-label {
  font: 600 0.62rem/1.2 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 6px #000;
}
.nc-orb[aria-current="page"] .nc-icon { border-color: #f3d77e; background: radial-gradient(circle at 50% 35%, #3a2f12, var(--night) 75%); }
.nc-orb[aria-current="page"] .nc-label { color: #f3d77e; }
.nc-orb:focus-visible { outline: none; }
.nc-orb:hover .nc-icon,
.nc-orb:focus-visible .nc-icon { border-color: #f3d77e; box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.9), 0 0 26px rgba(214, 173, 50, 0.5); }

.mobile-menu.is-choosing .nc-orb { opacity: 0.15; transition: opacity 0.4s ease; }
.mobile-menu.is-choosing .nc-orb.is-chosen { opacity: 1; }
.mobile-menu.is-choosing .nc-orb.is-chosen .nc-icon { transform: scale(1.18); border-color: #f3d77e; box-shadow: 0 0 0 4px rgba(10, 10, 10, 0.9), 0 0 40px rgba(243, 215, 126, 0.75); }
.mobile-menu.is-choosing .nc-sigil { animation: nc-flare 0.9s ease; }
@keyframes nc-flare { 40% { filter: drop-shadow(0 0 26px rgba(243, 215, 126, 0.95)); transform: scale(1.06); } }

.nc-foot {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 0 var(--gutter);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
body.menu-open .nc-foot { opacity: 1; transform: none; transition: opacity 0.6s ease 0.7s, transform 0.8s var(--nc-ease) 0.7s; }
.nc-foot .btn { width: 100%; max-width: 320px; }
.nc-social { display: flex; gap: 22px; }
.nc-social a { display: grid; place-items: center; width: 40px; height: 40px; color: var(--night-muted); }
.nc-social a:hover { color: var(--gold-soft); }
.nc-social svg { width: 20px; height: 20px; fill: currentColor; }

@media (max-width: 369px) {
  .nc-hub { transform: scale(0.86); }
}
@media (min-width: 640px) and (min-height: 820px) {
  .nc-hub { transform: scale(1.35); }
}

@media (prefers-reduced-motion: reduce) {
  .nc-orbit, .nc-counter, .nc-ring-stars, .nc-stars, .nc-glow { animation: none; }
}

/* ---------- Hero (split) ---------- */

.hero {
  padding-top: calc(var(--header-h) + clamp(32px, 6vw, 80px));
  padding-bottom: clamp(64px, 9vw, 128px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
.hero-copy .display,
.hero-copy .h1 { margin-bottom: 0.4em; }
.hero-copy .lede { max-width: 36ch; }

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 2.5rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font: 600 0.68rem/1.4 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}
.bg-night .hero-meta { border-color: var(--night-line); color: var(--night-muted); }

.hero-media {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  padding: 0 0 10% 12%;
}
.hero-media--solo { padding: 0; }

.arch {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 999px 999px var(--radius) var(--radius);
  background: var(--night-2);
}
.bg-night .arch { background: var(--night-2); }
.arch img { width: 100%; height: 100%; object-fit: cover; }

.hero-inset {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 50%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 6px solid var(--paper);
  border-radius: var(--radius);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.18);
}
.bg-night .hero-inset { border-color: var(--night); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.hero-inset img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .hero { min-height: min(100svh, 980px); display: flex; align-items: center; }
  .hero > .container { width: 100%; }
}

/* ---------- Cover hero (full-bleed image with text on it) ---------- */

.cover-hero {
  --cover-shade: 10, 10, 10;
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(88svh, 880px);
  padding: calc(var(--header-h) + 48px) 0 clamp(48px, 8vw, 104px);
  overflow: hidden;
  background: var(--night);
  color: #fff;
}
.cover-hero > .container { width: 100%; }
.cover-media { position: absolute; inset: 0; z-index: -2; }
.cover-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: cover-settle 18s ease-out both;
}
@keyframes cover-settle { from { transform: scale(1.08); } to { transform: scale(1); } }
.cover-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(var(--cover-shade), 0.6) 0%, rgba(var(--cover-shade), 0) 26%),
    linear-gradient(0deg, rgba(var(--cover-shade), 0.92) 0%, rgba(var(--cover-shade), 0.45) 42%, rgba(var(--cover-shade), 0) 70%),
    linear-gradient(90deg, rgba(var(--cover-shade), 0.6) 0%, rgba(var(--cover-shade), 0) 62%);
}
.cover-copy { max-width: 660px; }
.cover-copy .display { margin-bottom: 0.35em; }
.cover-copy .lede { max-width: 40ch; color: rgba(255, 255, 255, 0.88); }
.cover-hero .eyebrow,
.cover-hero .display em { color: var(--gold-soft); }
.cover-hero .hero-meta { border-top-color: rgba(255, 255, 255, 0.22); color: rgba(255, 255, 255, 0.75); }
.cover-hero .btn-outline { color: #fff; }

@media (max-width: 759px) {
  .cover-hero { min-height: calc(100svh - 40px); padding-bottom: 44px; }
  .cover-hero::before {
    background:
      linear-gradient(180deg, rgba(var(--cover-shade), 0.55) 0%, rgba(var(--cover-shade), 0) 22%),
      linear-gradient(0deg, rgba(var(--cover-shade), 0.95) 0%, rgba(var(--cover-shade), 0.6) 38%, rgba(var(--cover-shade), 0) 68%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .cover-media img { animation: none; }
}

.cover-hero .astro-rose {
  left: auto;
  right: -12%;
  top: 40%;
  width: min(70vw, 760px);
  translate: 0 -50%;
  opacity: 0.15;
}

/* ---------- Story slides (home hero) ---------- */

.story-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.8s ease;
}
.story-slide.is-active { opacity: 1; animation: drift-in 9s ease-out forwards; }
.story-slide:nth-child(2n).is-active { animation-name: drift-out; }
.story-slide:nth-child(3n).is-active { animation-name: drift-pan; }
@keyframes drift-in { from { transform: scale(1.12) translate(-1.5%, 1%); } to { transform: scale(1.02); } }
@keyframes drift-out { from { transform: scale(1.02); } to { transform: scale(1.12) translate(1.5%, -1%); } }
@keyframes drift-pan { from { transform: scale(1.1) translateX(2%); } to { transform: scale(1.1) translateX(-2%); } }

@media (min-width: 900px) {
  .cover-hero .cover-media {
    left: 34%;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 32%);
    mask-image: linear-gradient(90deg, transparent, #000 32%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-slide.is-active { animation: none; }
}

/* ---------- Page intro (centered) ---------- */

.page-intro {
  padding-top: calc(var(--header-h) + clamp(40px, 7vw, 96px));
  padding-bottom: clamp(48px, 6vw, 88px);
  text-align: center;
}
.page-intro .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
.page-intro .display { max-width: 16ch; margin-inline: auto; margin-bottom: 0.4em; }
.page-intro .lede { max-width: 44ch; margin-inline: auto; }

.wide-media { margin-top: clamp(40px, 6vw, 72px); }
.wide-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }

@media (min-width: 760px) {
  .wide-media img { aspect-ratio: 21 / 9; }
}

/* ---------- Paths ---------- */

.path-grid { display: grid; gap: 16px; }
.path-card {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(360px, 60vw, 480px);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--night);
  color: #fff;
  text-decoration: none;
}
.path-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.path-media img,
.path-media video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.path-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(10, 10, 10, 0) 30%, rgba(10, 10, 10, 0.85) 100%);
}
.path-video {
  opacity: 0;
  transition: opacity 0.9s ease;
}
.path-video.is-ready { opacity: 1; }
.path-body {
  padding: clamp(24px, 3vw, 36px);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.75), 0 4px 22px rgba(0, 0, 0, 0.6);
}
.path-kicker {
  margin-bottom: 0.75rem;
  font: 600 0.68rem/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #fff;
}
.path-card h3 { font-size: clamp(2rem, 1.6rem + 1.2vw, 2.6rem); margin-bottom: 0.3em; }
.path-card p { max-width: 32ch; margin-bottom: 1.25rem; font-size: 0.98rem; color: #fff; }
.path-card .link-arrow { border-color: rgba(255, 255, 255, 0.5); }

@media (min-width: 960px) {
  .path-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .path-card { min-height: 0; aspect-ratio: 3 / 4; }
}

/* ---------- Statement + principles ---------- */

.statement {
  max-width: 24ch;
  margin: 0 auto clamp(48px, 7vw, 96px);
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  text-wrap: balance;
}

.principles { display: grid; gap: clamp(32px, 4vw, 56px); }
.principle { padding-top: 24px; border-top: 1px solid var(--line); }
.principle-mark {
  display: block;
  width: 26px;
  height: 26px;
  margin-bottom: 1rem;
  color: var(--gold);
}
.principle h3 { font-size: var(--fs-h3); }
.principle p { margin: 0; color: var(--ink-soft); }

@media (min-width: 800px) {
  .principles { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Split ---------- */

.split { display: grid; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split-media img { width: 100%; border-radius: var(--radius); }
.split-media .tall { aspect-ratio: 4 / 5; object-fit: cover; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}

/* ---------- Reading list (home teaser) ---------- */

.reading-list {
  margin: 2rem 0 2.25rem;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--night-line);
}
.reading-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: 2px 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--night-line);
}
.reading-icon {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.reading-icon .fill { fill: var(--gold-soft); stroke: none; }
.reading-list .name { font-family: var(--serif); font-size: 1.55rem; line-height: 1.2; }
.reading-list .tag { font-size: 0.95rem; color: var(--night-muted); }

/* ---------- Then / Now ---------- */

.then-now { display: grid; gap: clamp(40px, 5vw, 64px); align-items: end; }
.tn-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); }
.tn-media img { width: 100%; height: 100%; object-fit: cover; }
.tn-media--artifact {
  display: grid;
  place-items: center;
  padding: 12% 10%;
  background: var(--night);
}
.tn-media--artifact img {
  height: auto;
  object-fit: contain;
  transform: rotate(-2.5deg);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}
.tn-year {
  display: block;
  margin: 1.5rem 0 0.25rem;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-style: italic;
  line-height: 1;
  color: var(--gold);
}
.tn-card h3 { font-size: var(--fs-h3); }
.tn-card p { color: var(--ink-soft); margin: 0; max-width: 40ch; }

@media (max-width: 759px) {
  .tn-media--artifact { aspect-ratio: 5 / 4; padding: 8%; }
}
@media (min-width: 760px) {
  .then-now { grid-template-columns: 1fr 1fr; }
}

/* ---------- Testimonials ---------- */

/* A swipeable row: one card plus a peek on phones, two per view from 860px. */
.quotes {
  display: flex;
  gap: 20px;
  margin: -24px calc(var(--gutter) * -1) -56px;
  padding: 24px var(--gutter) 56px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.quotes::-webkit-scrollbar { display: none; }
.quotes > .quote-card { flex: 0 0 min(86%, 460px); scroll-snap-align: start; }
.quotes > :first-child { margin-left: auto; }
.quotes > :last-child { margin-right: auto; }

.quotes-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 28px;
}
.quotes-nav[hidden] { display: none; }
.quotes-arrow {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--night-line);
  border-radius: 50%;
  background: transparent;
  color: var(--night-text);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}
.quotes-arrow:hover { border-color: var(--gold-soft); color: var(--gold-soft); }
.quotes-arrow:disabled { opacity: 0.3; cursor: default; border-color: var(--night-line); color: var(--night-text); }
.quotes-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.quotes-dots { display: flex; gap: 8px; }
.quotes-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--night-line);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.quotes-dots button[aria-current="true"] { background: var(--gold-soft); transform: scale(1.25); }

.quote-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: clamp(28px, 4vw, 48px);
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
}
.quote-card blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.15rem + 0.5vw, 1.6rem);
  line-height: 1.45;
}
.quote-card blockquote::before {
  content: "\201C";
  display: block;
  margin-bottom: 0.15em;
  font-size: 4rem;
  line-height: 0.6;
  color: var(--gold);
}
.quote-card--long blockquote { font-size: clamp(1.15rem, 1.05rem + 0.3vw, 1.3rem); }
.quote-card.is-clamped blockquote {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 9;
  overflow: hidden;
}
.quote-more {
  align-self: flex-start;
  margin-top: -8px;
  padding: 0 0 2px;
  border: 0;
  border-bottom: 1px solid var(--gold);
  background: none;
  color: inherit;
  font: 600 0.72rem/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
}
.quote-card figcaption {
  order: -1;
  display: flex;
  align-items: center;
  gap: 18px;
  font: 600 0.76rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.quote-card figcaption img {
  width: 88px;
  height: 88px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--gold);
}
.quote-card figcaption .quote-initial {
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  flex: none;
  margin: 0;
  border-radius: 50%;
  background: rgba(214, 173, 50, 0.14);
  box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--gold);
  font: italic 500 2.6rem/1 var(--serif);
  letter-spacing: 0;
  color: var(--gold);
}
.quote-card figcaption div span {
  display: block;
  margin-top: 3px;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--muted);
}

@media (min-width: 860px) {
  .quotes > .quote-card { flex-basis: calc((100% - 20px) / 2); }
}
.theme-carolee .quote-card figcaption img,
.theme-carolee .quote-card figcaption .quote-initial { box-shadow: 0 0 0 2px var(--card), 0 0 0 3.5px var(--gold); }

/* ---------- Listen band ---------- */

.listen {
  display: flex;
  flex-direction: column;
  gap: 28px;
  align-items: flex-start;
}
.listen-copy { display: flex; gap: 24px; align-items: center; }
.listen-copy img { width: 104px; height: 104px; flex: none; border-radius: 50%; object-fit: cover; }
.listen-copy .eyebrow { margin-bottom: 0.6rem; }
.listen-title {
  margin: 0 0 0.3rem;
  font-size: clamp(1.9rem, 1.5rem + 1.2vw, 2.6rem);
  line-height: 1.1;
}
.listen-copy p:not(.eyebrow) { margin: 0; max-width: 40ch; color: var(--ink-soft); }
.listen .btn-row { margin-top: 0; }

@media (min-width: 900px) {
  .listen { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ---------- Join + book ---------- */

.join-grid { display: grid; gap: clamp(56px, 7vw, 96px); align-items: center; }
.book { display: flex; justify-content: center; perspective: 1400px; }
.book-cover {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: min(290px, 68vw);
  aspect-ratio: 2 / 3;
  padding: 16% 10% 12%;
  border-radius: 3px 8px 8px 3px;
  background:
    radial-gradient(1px 1px at 18px 24px, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 71px 88px, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1.5px 1.5px at 44px 140px, rgba(255, 235, 190, 0.45), transparent),
    radial-gradient(1px 1px at 96px 39px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1px 1px at 132px 112px, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 9px 161px, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.5px 1.5px at 58px 57px, rgba(255, 235, 190, 0.35), transparent),
    radial-gradient(1px 1px at 151px 18px, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(120% 80% at 50% 0%, #1c1c1c 0%, var(--night) 70%);
  background-size: 173px 181px, 173px 181px, 173px 181px, 113px 127px, 113px 127px, 211px 197px, 211px 197px, 211px 197px, 100% 100%;
  color: var(--gold-soft);
  text-align: center;
  box-shadow: inset 7px 0 10px rgba(0, 0, 0, 0.45), 30px 40px 60px rgba(0, 0, 0, 0.4);
  transform: rotateY(-14deg) rotateX(2deg);
  transition: transform 0.8s var(--ease);
}
.book-cover::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(227, 201, 154, 0.45);
  border-radius: 2px;
  pointer-events: none;
}
.book:hover .book-cover { transform: rotateY(-4deg); }
.book-moon {
  width: 100%;
  margin: -16% 0 -18%;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 62%, transparent 92%);
  mask-image: radial-gradient(circle closest-side, #000 62%, transparent 92%);
  animation: moon-glow 8s ease-in-out infinite;
}
@keyframes moon-glow {
  50% { filter: brightness(1.12); }
}
.book-title {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.3rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
}
.book-sub {
  margin: -0.4em 0 0;
  max-width: 20ch;
  font-family: var(--serif);
  font-size: 1rem;
  font-style: italic;
  line-height: 1.3;
  color: var(--gold-soft);
}

.moon-phases {
  display: grid;
  gap: 14px;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
}
.moon-phases li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 2px 12px;
  font-size: 0.92rem;
  line-height: 1.45;
  color: rgba(242, 242, 242, 0.8);
}
.moon-phases svg { grid-row: span 2; width: 22px; height: 22px; margin-top: 1px; color: var(--gold-soft); }
.moon-phases span {
  font: 600 0.68rem/1.6 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
}

.waitlist { max-width: 520px; margin-top: 2rem; }
.waitlist-fields { display: grid; gap: 10px; }
.waitlist input {
  min-height: 48px;
  width: 100%;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.2);
  color: #fff;
  font: 400 0.95rem var(--sans);
}
.waitlist input::placeholder { color: rgba(255, 255, 255, 0.6); }
.waitlist input:focus { outline: none; border-color: var(--gold-soft); box-shadow: 0 0 0 3px rgba(214, 173, 50, 0.3); }
.waitlist-status { min-height: 1.5em; margin: 12px 0 0; font-size: 0.92rem; color: var(--gold-soft); }

@media (min-width: 560px) {
  .moon-phases { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 680px) {
  .waitlist-fields { grid-template-columns: 1fr auto; }
}
@media (prefers-reduced-motion: reduce) {
  .book-moon { animation: none; }
}
.book-authors {
  margin: 0;
  font: 600 0.6rem/1.4 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--night-muted);
}

.ml-wrap { max-width: 540px; margin-top: 1.75rem; }
.center .ml-wrap { margin-inline: auto; }

@media (min-width: 900px) {
  .join-grid { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
}

/* ---------- Footer ---------- */

.site-footer { padding-top: clamp(64px, 8vw, 104px); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 24px; }
.footer-brand,
.footer-mantra { grid-column: 1 / -1; }
.footer-brand img { width: 56px; height: 56px; border-radius: 50%; }
.footer-name { margin: 16px 0 8px; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.footer-brand p { max-width: 34ch; color: var(--night-muted); }
.footer-loc { font-size: 0.9rem; }
.footer-head {
  margin-bottom: 18px;
  font: 600 0.7rem/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.footer-links { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--night-text); opacity: 0.85; text-decoration: none; }
.footer-links a:hover { color: var(--gold-soft); opacity: 1; }
.mantra { margin-bottom: 6px; font-family: var(--serif); font-size: 1.4rem; font-style: italic; line-height: 1.25; }
.footer-mantra p:last-child { color: var(--night-muted); }

.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 28px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  padding-bottom: calc(88px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--night-line);
  font-size: 0.85rem;
  color: var(--night-muted);
}
.footer-base p { margin: 0; }
.footer-base a { color: var(--gold-soft); }

.footer-subscribe {
  display: grid;
  gap: 20px;
  margin-top: clamp(48px, 6vw, 72px);
  padding-top: clamp(32px, 4vw, 48px);
  border-top: 1px solid var(--night-line);
  scroll-margin-top: calc(var(--header-h) + 24px);
}
.footer-subscribe .footer-head { margin-bottom: 8px; }
.footer-subscribe p { margin: 0; max-width: 40ch; color: var(--night-muted); }
.footer-subscribe .waitlist { width: 100%; max-width: 520px; margin: 0; }
.footer-subscribe .waitlist-status { margin-top: 10px; }

@media (min-width: 900px) {
  .footer-subscribe { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); align-items: center; gap: 40px; }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .footer-brand,
  .footer-mantra { grid-column: auto; }
  .footer-base { padding-bottom: 28px; }
}

/* ---------- Story: chapter nav ---------- */

.chapter-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
  background: #fff;
  border-block: 1px solid var(--line);
}
.chapter-nav .container {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chapter-nav .container::-webkit-scrollbar { display: none; }
@media (min-width: 760px) {
  .chapter-nav .container { justify-content: center; gap: 48px; }
}
.chapter-nav a {
  flex: none;
  padding: 16px 0 14px;
  border-bottom: 2px solid transparent;
  font: 600 0.7rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.25s, border-color 0.25s;
}
.chapter-nav a:hover { color: var(--ink); }
.chapter-nav a.is-active { color: var(--ink); border-color: var(--gold); }

/* ---------- Story: chapters ---------- */

.chapter { scroll-margin-top: calc(var(--header-h) + 56px); }
.chapter-head { max-width: 820px; margin-bottom: clamp(40px, 5vw, 64px); }
.chapter-num {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  color: var(--gold);
}
.chapter-grid { display: grid; gap: clamp(40px, 5vw, 80px); align-items: start; }
.chapter-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); }
.chapter-media.tn-media--artifact img { aspect-ratio: auto; object-fit: contain; border-radius: 0; }

.path-timeline {
  position: relative;
  margin: 2rem 0 2.25rem;
  padding: 0 0 0 30px;
  list-style: none;
}
.path-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(var(--gold), rgba(201, 164, 103, 0.2));
  transform-origin: top;
}
.js .reveal .path-timeline::before { transform: scaleY(0); transition: transform 2.4s var(--ease) 0.3s; }
.js .reveal.is-in .path-timeline::before { transform: scaleY(1); }
.path-timeline li {
  position: relative;
  padding-bottom: 1.15rem;
  font-family: var(--serif);
  font-size: clamp(1.3rem, 1.2rem + 0.4vw, 1.55rem);
  line-height: 1.25;
}
.path-timeline li:last-child { padding-bottom: 0; }
.path-timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 0.38em;
  width: 11px;
  height: 11px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--paper);
}
.path-timeline li:last-child::before { background: var(--gold); }
.path-timeline span {
  display: block;
  margin-top: 3px;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.change { max-width: 940px; margin-inline: auto; }
.change-heads { display: none; }
.change-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--night-line); }
.change-list li {
  display: grid;
  gap: 6px;
  padding: 22px 0;
  border-bottom: 1px solid var(--night-line);
}
.change-then {
  font: 500 0.74rem/1.4 var(--sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--night-muted);
}
.change-now {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 1.3rem + 0.8vw, 2.1rem);
  line-height: 1.2;
  color: var(--night-text);
}
.change-line { display: none; }

@media (min-width: 760px) {
  .change-heads,
  .change-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 90px minmax(0, 1.25fr);
    gap: 24px;
    align-items: center;
  }
  .change-heads {
    margin-bottom: 14px;
    font: 600 0.7rem/1 var(--sans);
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--gold-soft);
  }
  .change-line {
    position: relative;
    display: block;
    height: 1px;
    background: linear-gradient(90deg, rgba(214, 173, 50, 0.15), var(--gold-soft));
    transform-origin: left;
  }
  .change-line::after {
    content: "";
    position: absolute;
    right: -3px;
    top: -3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold-soft);
    box-shadow: 0 0 8px rgba(214, 173, 50, 0.8);
  }
  .js .reveal .change-line { transform: scaleX(0); transition: transform 1.2s var(--ease); }
  .js .reveal.is-in .change-line { transform: scaleX(1); }
  .js .reveal.is-in li:nth-child(2) .change-line { transition-delay: 0.15s; }
  .js .reveal.is-in li:nth-child(3) .change-line { transition-delay: 0.3s; }
  .js .reveal.is-in li:nth-child(4) .change-line { transition-delay: 0.45s; }
  .js .reveal.is-in li:nth-child(5) .change-line { transition-delay: 0.6s; }
  .js .reveal.is-in li:nth-child(6) .change-line { transition-delay: 0.75s; }
}

@media (min-width: 960px) {
  .chapter-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .chapter-grid--flip .chapter-media { order: -1; }
}

/* ---------- Quote band ---------- */

.quote-band { text-align: center; }
.quote-band blockquote {
  max-width: 26ch;
  margin: 0 auto;
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-style: italic;
  line-height: 1.2;
  text-wrap: balance;
}
/* ---------- Astrology ---------- */

/* ---------- Limited readings (portal card) ---------- */

.portal-slot { padding-bottom: 0; }

.portal-card {
  position: relative;
  isolation: isolate;
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(214, 173, 50, 0.45);
  border-radius: 8px;
  background:
    radial-gradient(ellipse 70% 90% at 0% 0%, rgba(214, 173, 50, 0.14), transparent 60%),
    var(--night);
  color: var(--night-text);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.portal-sigil {
  position: absolute;
  z-index: -1;
  top: -150px;
  left: -150px;
  width: 420px;
  aspect-ratio: 1;
  height: auto;
  color: var(--gold-soft);
  font-family: "Segoe UI Symbol", "Noto Sans Symbols 2", "Apple Symbols", serif;
  opacity: 0.3;
  animation: portal-turn 240s linear infinite;
  pointer-events: none;
}
@keyframes portal-turn { to { transform: rotate(360deg); } }

.portal-main,
.portal-aside { padding: clamp(28px, 4.5vw, 56px); }
.portal-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(214, 173, 50, 0.3);
  background: rgba(255, 255, 255, 0.025);
}

.portal-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 1.4rem;
  padding: 7px 14px;
  border: 1px solid rgba(214, 173, 50, 0.5);
  border-radius: 20px;
  font: 600 0.7rem/1.3 var(--sans);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
}
.portal-dot {
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--gold-soft);
  box-shadow: 0 0 0 0 rgba(214, 173, 50, 0.6);
  animation: portal-pulse 2.4s ease-out infinite;
}
.portal-card[data-state="soon"] .portal-dot { animation: none; background: transparent; border: 1.5px solid var(--gold-soft); }
@keyframes portal-pulse {
  70% { box-shadow: 0 0 0 10px rgba(214, 173, 50, 0); }
  100% { box-shadow: 0 0 0 0 rgba(214, 173, 50, 0); }
}

.portal-card .eyebrow { color: var(--gold-soft); margin-bottom: 0.8rem; }
.portal-title { font-size: clamp(2.2rem, 1.6rem + 2.2vw, 3.4rem); margin-bottom: 0.45em; color: #fff; }
.portal-title span {
  display: block;
  margin-top: 0.25em;
  font-size: 0.5em;
  font-style: italic;
  color: var(--gold-soft);
}
.portal-title em { color: var(--gold-soft); }
.portal-summary { max-width: 54ch; margin: 0; color: rgba(242, 242, 242, 0.84); }

.portal-live {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  margin: 0 0 1.4rem;
  padding: 12px 18px;
  border: 1px solid rgba(214, 173, 50, 0.55);
  border-radius: 8px;
  background: rgba(214, 173, 50, 0.1);
  color: #fff;
  text-decoration: none;
  transition: background-color 0.25s, border-color 0.25s;
}
.portal-live[hidden] { display: none; }
.portal-live:hover { background: rgba(214, 173, 50, 0.2); border-color: var(--gold-soft); }
.portal-live-label { font: 600 0.68rem/1.3 var(--sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-soft); }
.portal-live-name { font: italic 500 1.25rem/1.2 var(--serif); }
.portal-live-cta { font: 600 0.72rem/1.3 var(--sans); letter-spacing: 0.12em; text-transform: uppercase; border-bottom: 1px solid currentColor; }
.portal-live-cta::after { content: " \2192"; }

.portal-transits {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 1.6rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  color: #fff;
}
.portal-transits li { display: inline-flex; align-items: center; gap: 10px; }
.portal-transits li::before { content: "✦"; font-size: 0.7em; font-style: normal; color: var(--gold-soft); }

.portal-price { margin: 0; font-family: var(--serif); font-size: clamp(2.4rem, 2rem + 1.4vw, 3.2rem); line-height: 1; color: #fff; }
.portal-price-note { margin: 0.5rem 0 0; font-size: 0.88rem; color: var(--night-muted); }
.portal-includes { margin: 1.5rem 0; padding: 0; list-style: none; font-size: 0.95rem; }
.portal-includes li { padding: 10px 0; border-top: 1px solid var(--night-line); }
.portal-includes li:last-child { border-bottom: 1px solid var(--night-line); }
.portal-left {
  margin: 0 0 1rem;
  font: 600 0.72rem/1.3 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.portal-cta { align-self: flex-start; }
.portal-aside-label { margin: 0 0 1rem; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; color: #fff; }
.portal-aside-label + .portal-aside-note { margin: -0.5rem 0 1.25rem; }
.portal-notify { margin-top: 0; }
.portal-notify .waitlist-fields { grid-template-columns: 1fr; gap: 12px; }
.portal-notify input { min-height: 52px; }
.portal-notify .btn { width: 100%; }

@media (min-width: 900px) {
  .portal-card { grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr); }
  .portal-aside { border-top: 0; border-left: 1px solid rgba(214, 173, 50, 0.3); }
  .portal-sigil { top: -170px; left: -170px; width: 480px; }
}

@media (prefers-reduced-motion: reduce) {
  .portal-sigil, .portal-dot { animation: none; }
}

.letter-sign {
  margin: 1.75rem 0 0;
  font-family: var(--serif);
  font-size: 1.7rem;
  font-style: italic;
  color: var(--accent);
}

.highlights {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.highlight { padding: clamp(28px, 3vw, 40px); background: var(--paper-2); }
.highlight-glyph {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 1.1rem;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.highlight h3 { font-size: 1.6rem; }
.highlight p { margin: 0; font-size: 1rem; color: var(--ink-soft); }

@media (min-width: 640px) {
  .highlights { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .highlights { grid-template-columns: repeat(3, 1fr); }
}

.readings { display: grid; gap: 20px; }
.reading {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--night-card);
  border: 1px solid var(--night-line);
  border-radius: var(--radius);
}
.reading-media { aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.reading-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.reading:hover .reading-media img { transform: scale(1.04); }
.reading-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3vw, 40px); }
.reading h3 { font-size: clamp(2.1rem, 1.8rem + 1vw, 2.7rem); margin-bottom: 0.2em; }
.reading-tag {
  margin-bottom: 1.4rem;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-style: italic;
  line-height: 1.4;
  color: var(--night-muted);
}
.reading-meta {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 1.5rem;
  padding-block: 14px;
  border-block: 1px solid var(--night-line);
}
.reading-price { font-family: var(--serif); font-size: 2.3rem; line-height: 1; color: var(--gold-soft); }
.reading-mins {
  font: 600 0.7rem/1 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--night-muted);
}
.reading ul { display: grid; gap: 12px; margin: 0 0 2rem; padding: 0; list-style: none; }
.reading li { position: relative; padding-left: 1.6em; font-size: 0.98rem; line-height: 1.55; color: rgba(242, 242, 242, 0.88); }
.reading li::before { content: "\2726"; position: absolute; left: 0; top: 0.2em; font-size: 0.8em; color: var(--gold-soft); }
.reading .btn { align-self: flex-start; margin-top: auto; }

@media (min-width: 860px) {
  .readings { grid-template-columns: 1fr 1fr; gap: 24px; }
}

/* ---------- Offerings ---------- */

.offer-list { display: grid; gap: clamp(64px, 8vw, 120px); }
.offer { display: grid; gap: clamp(28px, 4vw, 72px); align-items: center; }
.offer-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.offer h3 { font-size: var(--fs-h2); margin-bottom: 0.2em; }
.offer-with {
  margin-bottom: 1.25rem;
  font: 600 0.7rem/1.4 var(--sans);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}
.offer p { color: var(--ink-soft); }
.offer .btn-row { margin-top: 1.5rem; }

@media (min-width: 900px) {
  .offer { grid-template-columns: 1fr 1fr; }
  .offer:nth-child(even) .offer-media { order: 2; }
}

.programs { display: grid; gap: 20px; }
.program {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.program-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.program-body { display: flex; flex-direction: column; flex: 1; padding: clamp(24px, 3vw, 32px); }
.program h3 { font-size: 1.9rem; margin-bottom: 0.25em; }
.program .offer-with { margin-bottom: 1rem; }
.program p { font-size: 0.98rem; color: var(--ink-soft); }
.program .link-arrow { align-self: flex-start; margin-top: auto; color: var(--ink); }

@media (min-width: 760px) {
  .programs { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .programs { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Magic ---------- */

.magic { position: relative; isolation: isolate; overflow: hidden; }
.magic-layer {
  position: absolute;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.silk {
  --silk-a: #c39a1f;
  --silk-b: #fff1bf;
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: max(100%, 1100px);
  height: 100%;
  transform: translateX(-50%);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}
.bg-sand .silk { --silk-a: #9d7b12; --silk-b: #d6ad32; }
.silk-weave {
  position: absolute;
  inset: 0;
  z-index: -1;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.silk svg { display: block; width: 100%; height: 100%; overflow: visible; }
.silk path { fill: none; vector-effect: non-scaling-stroke; }
.silk-ribbon { animation: silk-drift linear infinite; }
.silk-ribbon--reverse { animation-direction: reverse; }
.silk-mote { fill: #fff6d0; animation: twinkle 3.5s ease-in-out infinite; }
.silk-mote:nth-of-type(2n) { animation-delay: 1.2s; }
.silk-mote:nth-of-type(3n) { animation-delay: 2.1s; }
@keyframes silk-drift { to { transform: translateX(-1200px); } }

.bg-sand .constellation-line { stroke: var(--accent); }
.bg-sand .constellation-star { fill: var(--accent); }

.orbits { transform-box: view-box; transform-origin: 50% 50%; animation: orbit-turn 140s linear infinite; }
.orbits ellipse { fill: none; stroke: var(--gold-soft); stroke-width: 1; vector-effect: non-scaling-stroke; }
.orbit-star { fill: var(--gold-soft); filter: drop-shadow(0 0 4px rgba(214, 173, 50, 0.9)); }
@keyframes orbit-turn { to { transform: rotate(360deg); } }

.constellation-line {
  fill: none;
  stroke: var(--gold-soft);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  opacity: 0.45;
  transition: stroke-dashoffset 4s var(--ease);
}
.constellation-star { fill: var(--gold-soft); opacity: 0; transition: opacity 1s ease; }
.is-drawn .constellation-line { stroke-dashoffset: 0; }
.is-drawn .constellation-star { opacity: 0.9; animation: twinkle 4s ease-in-out infinite; }
.constellation-star:nth-of-type(2n) { animation-delay: 1.3s; }
.constellation-star:nth-of-type(3n) { animation-delay: 2.4s; }
@keyframes twinkle { 50% { opacity: 0.25; } }

.infinity-base,
.infinity-light { fill: none; vector-effect: non-scaling-stroke; }
.infinity-base { stroke: rgba(214, 173, 50, 0.18); stroke-width: 1; }
.infinity-light {
  stroke: var(--gold-soft);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-dasharray: 0.08 0.92;
  filter: drop-shadow(0 0 6px rgba(214, 173, 50, 0.8));
  animation: infinity-run 9s linear infinite;
}
@keyframes infinity-run { to { stroke-dashoffset: -1; } }

.shimmer em,
em.shimmer {
  background: linear-gradient(100deg, var(--gold-soft) 42%, #fff6d0 50%, var(--gold-soft) 58%) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer {
  0%, 55% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: var(--mx, 50%);
  top: var(--my, 40%);
  width: 640px;
  height: 640px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 173, 50, 0.13) 0%, rgba(214, 173, 50, 0) 65%);
  transform: translate(-50%, -50%);
  transition: left 0.6s var(--ease), top 0.6s var(--ease);
  pointer-events: none;
}

.magic-paused .silk-ribbon,
.magic-paused .silk-mote,
.magic-paused .orbits,
.magic-paused .infinity-light,
.magic-paused .constellation-star,
.magic-paused.shimmer em { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .silk-ribbon, .silk-mote, .orbits, .infinity-light, .constellation-star, .shimmer em, em.shimmer { animation: none; }
  .constellation-line { transition: none; }
  .glow::before { display: none; }
}

/* ---------- Contact ---------- */

.contact-split { align-items: start; }
.contact-aside .prose a { color: var(--ink); text-decoration-color: var(--gold); text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-details { display: grid; grid-template-columns: auto auto; justify-content: start; gap: 28px 56px; margin-top: 2.25rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.contact-details p { margin: 0; }
.contact-details .contact-label {
  margin-bottom: 8px;
  font: 600 0.68rem/1.4 var(--sans);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-social { display: flex; gap: 10px; margin: 0; padding: 0; list-style: none; }
.contact-social a {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.contact-social svg { width: 18px; height: 18px; fill: currentColor; }
.contact-social a:hover { color: var(--accent); border-color: var(--gold); }

.contact-form {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.contact-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.contact-field { display: grid; gap: 8px; min-width: 0; }
.contact-field label {
  font: 600 0.7rem/1.4 var(--sans);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.contact-field label span { font-weight: 500; letter-spacing: 0.08em; text-transform: none; color: var(--muted); }
.contact-field input,
.contact-field select,
.contact-field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.22);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: 400 1rem/1.5 var(--sans);
}
.contact-field select {
  appearance: none;
  padding-right: 44px;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%239d7b12' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 16px center;
  cursor: pointer;
}
.contact-field textarea { min-height: 168px; resize: vertical; }
.contact-field input:focus,
.contact-field select:focus,
.contact-field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(214, 173, 50, 0.3); }
.contact-form .btn { width: 100%; }
.contact-form .btn:disabled { opacity: 0.6; cursor: wait; }
.contact-form .waitlist-status { margin: -6px 0 0; color: var(--ink); }
.contact-optin {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.contact-optin input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--gold); }

@media (min-width: 560px) {
  .contact-form .btn { justify-self: start; width: auto; }
}
@media (min-width: 900px) {
  .contact-split { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html, html.smooth-scroll { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .reading-media img, .book-cover { transition: none; }
}

/* ---------- Page transitions ----------
   Cross-document View Transitions between beta pages. js/transitions.js sets
   html[data-vt] to the chosen option (peel, sigil, moon, or fade for reduced
   motion) and adds html.vt-run while a transition plays. Browsers without
   support ignore all of this and load pages normally. */

@view-transition { navigation: auto; }

html[data-vt="fade"]::view-transition-group(*) { animation-duration: 0.2s; }

/* Corner peel: the old page is cut away by JS keyframes; the curl is .vt-peel. */
html[data-vt="peel"]::view-transition-old(root),
html[data-vt="peel"]::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}
html[data-vt="peel"]::view-transition-old(root) { z-index: 1; }
::view-transition-group(vt-peel),
::view-transition-new(vt-peel) { animation: none; }

.vt-peel,
.vt-sigil,
.vt-rim {
  display: none;
  position: fixed;
  pointer-events: none;
}
.vt-peel {
  inset: 0;
  filter: drop-shadow(-4px 10px 16px rgba(0, 0, 0, 0.38));
}
.vt-peel > div { position: absolute; inset: 0; }
.vt-peel-flap { transform-origin: 0 0; }
html.vt-run[data-vt="peel"] .vt-peel { display: block; view-transition-name: vt-peel; }

/* Sigil flash: old page dims to black, the sigil glows, the new page fades up. */
html[data-vt="sigil"]::view-transition,
html[data-vt="moon"]::view-transition { background: var(--night); }
html[data-vt="sigil"]::view-transition-old(root) {
  animation: vt-sigil-old 1.15s ease-in-out both;
  mix-blend-mode: normal;
}
html[data-vt="sigil"]::view-transition-new(root) {
  animation: vt-sigil-new 1.15s ease-in-out both;
  mix-blend-mode: normal;
}
::view-transition-group(vt-sigil) { animation: none; }
::view-transition-new(vt-sigil) { animation: vt-sigil-mark 1.15s ease-in-out both; }
.vt-sigil {
  left: 50%;
  top: 46%;
  width: 160px;
  height: 160px;
  margin: -80px 0 0 -80px;
  border-radius: 50%;
  background: url("../assets/sigil-400.png") center / cover no-repeat;
  box-shadow: 0 0 46px 12px rgba(214, 173, 50, 0.42), 0 0 140px 50px rgba(214, 173, 50, 0.12);
}
@media (min-width: 900px) {
  .vt-sigil { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
}
html.vt-run[data-vt="sigil"] .vt-sigil {
  display: block;
  view-transition-name: vt-sigil;
  animation: vt-gone 1.2s step-end both;
}
@keyframes vt-sigil-old {
  from { opacity: 1; filter: blur(0); }
  42%, to { opacity: 0; filter: blur(3px); }
}
@keyframes vt-sigil-new {
  from, 50% { opacity: 0; transform: scale(1.015); }
  95%, to { opacity: 1; transform: none; }
}
@keyframes vt-sigil-mark {
  from, 12% { opacity: 0; transform: scale(0.84) rotate(-10deg); }
  42% { opacity: 1; transform: scale(0.97) rotate(-1deg); }
  60% { opacity: 1; transform: scale(1) rotate(1deg); }
  90%, to { opacity: 0; transform: scale(1.06) rotate(6deg); }
}

/* Moon-phase reveal: the new page shows through a waxing crescent that grows to fill the screen. */
@property --vt-r { syntax: "<length>"; inherits: false; initial-value: 200vmax; }
@property --vt-off { syntax: "<length>"; inherits: false; initial-value: 400vmax; }

html[data-vt="moon"]::view-transition-old(root) {
  animation: vt-moon-old 1.1s ease-in-out both;
  mix-blend-mode: normal;
}
html[data-vt="moon"]::view-transition-new(root) {
  animation: vt-moon 1.1s linear both;
  mix-blend-mode: normal;
  mask-image:
    radial-gradient(circle at 50% 46%, #000 var(--vt-r), transparent calc(var(--vt-r) + 1.5px)),
    radial-gradient(circle at calc(50% - var(--vt-off)) 46%, #000 calc(var(--vt-r) * 1.02 - 5px), transparent calc(var(--vt-r) * 1.02 + 5px));
  mask-composite: subtract, add;
}
::view-transition-group(vt-rim) { animation: none; }
::view-transition-new(vt-rim) {
  animation: vt-moon 1.1s linear both, vt-rim-fade 1.1s linear both;
  mask-image:
    radial-gradient(circle at 50% 46%, transparent calc(var(--vt-r) - 1.5px), #000 var(--vt-r), rgba(0, 0, 0, 0.35) calc(var(--vt-r) + 3px), transparent calc(var(--vt-r) + 16px)),
    radial-gradient(circle at calc(50% - var(--vt-off)) 46%, #000 calc(var(--vt-r) * 1.02 - 5px), transparent calc(var(--vt-r) * 1.02 + 5px));
  mask-composite: subtract, add;
}
.vt-rim { inset: 0; background: #ecc964; }
html.vt-run[data-vt="moon"] .vt-rim {
  display: block;
  view-transition-name: vt-rim;
  animation: vt-gone 1.15s step-end both;
}
/* Radius grows on an ease-in curve; the shadow slides off so the crescent waxes to full. */
@keyframes vt-moon {
  0% { --vt-r: 7vmin; --vt-off: calc(7vmin * 0.32); }
  10% { --vt-r: calc(7vmin * 0.999 + 80vmax * 0.001); --vt-off: calc((7vmin * 0.999 + 80vmax * 0.001) * 0.406); }
  20% { --vt-r: calc(7vmin * 0.992 + 80vmax * 0.008); --vt-off: calc((7vmin * 0.992 + 80vmax * 0.008) * 0.648); }
  30% { --vt-r: calc(7vmin * 0.973 + 80vmax * 0.027); --vt-off: calc((7vmin * 0.973 + 80vmax * 0.027) * 1.004); }
  40% { --vt-r: calc(7vmin * 0.936 + 80vmax * 0.064); --vt-off: calc((7vmin * 0.936 + 80vmax * 0.064) * 1.414); }
  50% { --vt-r: calc(7vmin * 0.875 + 80vmax * 0.125); --vt-off: calc((7vmin * 0.875 + 80vmax * 0.125) * 1.805); }
  60% { --vt-r: calc(7vmin * 0.784 + 80vmax * 0.216); --vt-off: calc((7vmin * 0.784 + 80vmax * 0.216) * 2.111); }
  70% { --vt-r: calc(7vmin * 0.657 + 80vmax * 0.343); --vt-off: calc((7vmin * 0.657 + 80vmax * 0.343) * 2.278); }
  80% { --vt-r: calc(7vmin * 0.488 + 80vmax * 0.512); --vt-off: calc((7vmin * 0.488 + 80vmax * 0.512) * 2.3); }
  90% { --vt-r: calc(7vmin * 0.271 + 80vmax * 0.729); --vt-off: calc((7vmin * 0.271 + 80vmax * 0.729) * 2.3); }
  100% { --vt-r: 80vmax; --vt-off: calc(80vmax * 2.3); }
}
@keyframes vt-moon-old {
  to { opacity: 0.55; transform: scale(0.97); }
}
@keyframes vt-rim-fade {
  from, 62% { opacity: 1; }
  95%, to { opacity: 0; }
}

/* Keeps an overlay's real element invisible once its transition layer is gone. */
@keyframes vt-gone {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ---------- Carolee theme (Astrology page) ---------- */
/* Wine-dark palette from her portal page; header, footer and menus keep the main brand. */

.astro-rose {
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: 150%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: var(--gold);
  -webkit-mask: url("../assets/portal/rose-moons.png") center / contain no-repeat;
  mask: url("../assets/portal/rose-moons.png") center / contain no-repeat;
  opacity: 0.3;
  pointer-events: none;
  animation: portal-turn 240s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .astro-rose { animation: none; }
}

body.theme-carolee {
  --paper: #140b10;
  --paper-2: #1b0f16;
  --card: #23121a;
  --ink: #f4ece6;
  --ink-soft: #d8c8c2;
  --muted: #b3a19b;
  --line: rgba(228, 208, 168, 0.16);
  --accent: #e4d0a8;
  --gold: #d9a28e;
  --gold-soft: #e4d0a8;
  --night: #0f0a0c;
  --night-2: #1a0d12;
  --night-card: #23121a;
  --night-text: #f4ece6;
  --night-muted: #c3b5ab;
  --night-line: rgba(228, 208, 168, 0.14);
  --garnet: #4a1520;
  --radius: 16px;
  --rose: #8e2a40;
  --rose-hover: #a3364f;
}

body.theme-carolee .site-header,
body.theme-carolee .site-footer,
body.theme-carolee .mobile-menu {
  --paper: #ffffff;
  --ink: #0b0b0b;
  --line: rgba(0, 0, 0, 0.12);
  --accent: #9d7b12;
  --gold: #c39a1f;
  --gold-soft: #d6ad32;
  --night: #0a0a0a;
  --night-2: #141414;
  --night-card: #161616;
  --night-text: #f2f2f2;
  --night-muted: #a8a8a8;
  --night-line: rgba(255, 255, 255, 0.14);
  --radius: 4px;
}

.theme-carolee .hero { background: radial-gradient(ellipse 70% 80% at 72% 45%, #2a1220 0%, var(--night) 62%); }
.theme-carolee h2 em,
.theme-carolee .display em { color: var(--accent); }
.theme-carolee .bg-sand { background: var(--paper-2); }

.theme-carolee .btn-light,
.theme-carolee .btn-primary { background: var(--rose); border-color: var(--rose); color: #f7efe6; }
.theme-carolee .btn-light:hover,
.theme-carolee .btn-primary:hover { background: var(--rose-hover); border-color: var(--rose-hover); color: #fff; }
.theme-carolee .btn-outline { border-color: rgba(228, 208, 168, 0.6); color: var(--ink); }
.theme-carolee .btn-outline:hover { background: var(--accent); border-color: var(--accent); color: #1a0d12; }

.theme-carolee .hero-inset {
  width: 46%;
  aspect-ratio: 1;
  border: 2px solid rgba(217, 162, 142, 0.7);
  border-radius: 50%;
  box-shadow: 0 0 0 6px var(--night), 0 24px 60px rgba(0, 0, 0, 0.55);
}
.theme-carolee .split-media .tall { border-radius: 999px 999px var(--radius) var(--radius); }

.theme-carolee .highlights { overflow: hidden; border-radius: var(--radius); }
.theme-carolee .highlight { background: var(--card); }

.theme-carolee .quote-card {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
.theme-carolee .portal-card { border-radius: var(--radius); border-color: rgba(217, 162, 142, 0.4); }
.theme-carolee .cover-hero { --cover-shade: 15, 10, 12; }
