/* ============================================================
   ROHO VIBES — Reiki & Energy Healing
   Design system. Built to keep Rosilyn's existing vibe:
   midnight indigo, aurora crystal light, warm gold, her own
   imagery. Fonts kept faithful to her brand: Gotu + Lato.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Gotu&family=Lato:ital,wght@0,300;0,400;0,700;0,900;1,400&display=swap');

:root {
  /* Core palette pulled from her logo, crystals and chakra art */
  --midnight:     #0c0a1d;
  --midnight-2:   #15102e;
  --indigo:       #211a47;
  --violet:       #7b5cc4;
  --amethyst:     #b08be6;
  /* Amethyst clears AA on the flat midnight ground, but the cta-card and hero
     wash it with a rgba(176,139,230,0.3) radial, which lifts the backdrop and
     drops the small uppercase eyebrow label to 4.06:1. This lighter step is for
     text sitting on those gradients. */
  --amethyst-lift: #c3a3ee;
  --aqua:          #66d6c9;
  --rose:         #e88fb8;
  --gold:         #e8b65a;
  --gold-soft:    #f2d49b;
  --cream:        #f6f1e9;
  --ink:          #1d1736;

  --text:         #ece8f7;
  --text-dim:     #b9b2d6;
  --text-deep:    #2b2350;

  --maxw: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --radius: 20px;

  --shadow-soft: 0 24px 60px -28px rgba(8, 5, 24, 0.75);
  --shadow-glow: 0 0 60px -10px rgba(176, 139, 230, 0.45);

  --display: 'Gotu', 'Lato', system-ui, sans-serif;
  --body: 'Lato', system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

/* Print: faithful pages for pen-and-paper markup (backgrounds on, nothing hidden,
   cards kept whole across page breaks). On-screen appearance is unchanged. */
@media print {
  @page { margin: 0.45in; }
  body { -webkit-print-color-adjust: exact; print-color-adjust: exact; font-size: 11pt; }
  .site-header { position: static; }
  .stars { display: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .card, .quote, .step, .stat, .package-card, .cta-card, .split, .hero-art,
  .book-embed, .book-side, .review, .roadmap-card { break-inside: avoid; }
  .section-pad { padding-block: 1.4rem; }
}

body {
  font-family: var(--body);
  color: var(--text);
  background: var(--midnight);
  font-size: 1.175rem;          /* large by default — accessibility */
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Atmospheric background ---------- */
.aurora {
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(60% 50% at 15% 8%, rgba(123, 92, 196, 0.38), transparent 60%),
    radial-gradient(55% 45% at 88% 22%, rgba(102, 214, 201, 0.20), transparent 60%),
    radial-gradient(60% 55% at 78% 92%, rgba(232, 143, 184, 0.20), transparent 60%),
    radial-gradient(70% 60% at 30% 100%, rgba(232, 182, 90, 0.14), transparent 60%),
    linear-gradient(160deg, var(--midnight) 0%, var(--midnight-2) 45%, var(--indigo) 100%);
}
.stars {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: 0.5;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,0.9), transparent),
    radial-gradient(1.5px 1.5px at 75% 18%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 50% 60%, rgba(255,255,255,0.7), transparent),
    radial-gradient(1px 1px at 12% 78%, rgba(255,255,255,0.6), transparent),
    radial-gradient(1.5px 1.5px at 88% 70%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 35% 90%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 64% 42%, rgba(255,255,255,0.6), transparent);
  background-repeat: repeat;
  background-size: 700px 700px;
  animation: drift 120s linear infinite;
}
@keyframes drift { to { background-position: 700px 700px; } }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
section { position: relative; }
.section-pad { padding-block: clamp(4rem, 9vw, 7.5rem); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--display); font-weight: 400; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 6.5vw, 4.7rem); }
h1, h2, h3, .lead, .sec-head p, .cta-card p { text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); }
p  { color: var(--text-dim); max-width: 64ch; }
.lead { font-size: clamp(1.2rem, 2vw, 1.45rem); color: var(--text); line-height: 1.6; }

.eyebrow {
  font-family: var(--body); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.32em; font-size: 0.8rem; color: var(--amethyst-lift);
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

.shimmer {
  background: linear-gradient(100deg, var(--amethyst), var(--aqua) 40%, var(--gold-soft) 70%, var(--rose));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.gold { color: var(--gold); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--body); font-weight: 700; font-size: 1.05rem;
  padding: 1rem 1.9rem; border-radius: 100px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.btn-primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  box-shadow: 0 14px 34px -14px rgba(232, 182, 90, 0.7);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -16px rgba(232, 182, 90, 0.85); }
.btn-ghost { color: var(--text); border-color: rgba(176, 139, 230, 0.5); background: rgba(123, 92, 196, 0.08); }
.btn-ghost:hover { transform: translateY(-3px); border-color: var(--amethyst); background: rgba(123, 92, 196, 0.2); }
.btn .arrow { transition: transform .25s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(12,10,29,0.85), rgba(12,10,29,0.4));
  border-bottom: 1px solid rgba(176,139,230,0.14);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; }
.brand { display: flex; align-items: center; gap: 0.75rem; text-decoration: none; }
.brand img {
  height: 72px; width: auto;
  padding: 12px 16px;
  background: radial-gradient(rgba(255,248,238,0.9), rgba(255,248,238,0.55) 48%, rgba(255,248,238,0) 76%);
  filter: drop-shadow(0 4px 14px rgba(176,139,230,0.4));
}
.brand b { font-family: var(--display); font-size: 1.25rem; color: var(--text); letter-spacing: 0.02em; }
.nav-links { display: flex; align-items: center; gap: 0.4rem; list-style: none; }
.nav-links a {
  color: var(--text-dim); text-decoration: none; font-weight: 700; font-size: 1rem;
  padding: 0.55rem 0.95rem; border-radius: 100px; transition: color .2s ease, background .2s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(123,92,196,0.18); }
.nav .btn { padding: 0.7rem 1.35rem; font-size: 1rem; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4rem, 9vw, 7rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero h1 { margin: 1.2rem 0; }
.hero .lead { margin-bottom: 2rem; max-width: 50ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.hero-quote { margin-top: 2.5rem; padding-left: 1.4rem; border-left: 2px solid var(--gold); font-style: italic; color: var(--text-dim); max-width: 46ch; }

.hero-art { position: relative; display: grid; place-items: center; }
.hero-art .portrait {
  width: min(420px, 90%); height: auto;
  border-radius: 220px 220px 28px 28px; border: 1px solid rgba(242,212,155,0.35);
  box-shadow: var(--shadow-soft); position: relative; z-index: 2;
}
.hero-art .halo {
  position: absolute; width: min(520px, 105%); aspect-ratio: 1; z-index: 1;
  background: radial-gradient(circle, rgba(176,139,230,0.5), rgba(102,214,201,0.18) 45%, transparent 68%);
  filter: blur(8px); animation: pulse 7s ease-in-out infinite;
}
.hero-art .crystal-float {
  position: absolute; width: 130px; bottom: -24px; right: 4%; z-index: 3;
  filter: drop-shadow(0 16px 30px rgba(123,92,196,0.6)); animation: float 6s ease-in-out infinite;
}
@keyframes pulse { 50% { transform: scale(1.06); opacity: 0.85; } }
@keyframes float { 50% { transform: translateY(-14px) rotate(-3deg); } }

/* ---------- Trust strip ---------- */
.strip { border-block: 1px solid rgba(176,139,230,0.14); }
.strip-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.5rem 2rem; padding-block: 1.5rem; }
.strip-item { display: flex; align-items: center; gap: 0.7rem; color: var(--text-dim); font-weight: 700; font-size: 1.02rem; }
.strip-item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 12px var(--aqua); }

/* ---------- Review rail (fades one review at a time, under the trust strip) ---------- */
.review-rail { border-bottom: 1px solid rgba(176,139,230,0.14); }
.review-rail-inner {
  position: relative; min-height: 7.5rem; display: grid; place-items: center;
  padding-block: 1.6rem; text-align: center;
}
.review-slide {
  grid-area: 1 / 1; max-width: 62ch; opacity: 0; visibility: hidden;
  transition: opacity 0.9s ease; pointer-events: none;
}
.review-slide.on { opacity: 1; visibility: visible; }
.review-slide .stars-row { color: var(--gold); letter-spacing: 3px; font-size: 0.92rem; margin-bottom: 0.5rem; }
.review-slide p {
  margin: 0 0 0.5rem; font-size: 1.12rem; line-height: 1.6; color: var(--text);
  font-style: italic; text-wrap: balance;
}
.review-slide .who { font-size: 0.95rem; font-weight: 700; color: var(--amethyst); font-style: normal; }
@media (max-width: 700px) {
  .review-rail-inner { min-height: 9.5rem; padding-block: 1.3rem; }
  .review-slide p { font-size: 1.05rem; }
}
@media (prefers-reduced-motion: reduce) {
  .review-slide { transition: none; }
}

/* ---------- Credentials (thin gold rules, not cards) ---------- */
.creds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.cred { padding: 0 2rem; border-left: 1px solid rgba(232,182,90,0.3); }
.cred:first-child { padding-left: 0; border-left: 0; }
.cred:last-child { padding-right: 0; }
.cred .cred-label {
  display: block; font-size: 0.76rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--gold); margin-bottom: 0.7rem;
}
.cred h3 { font-size: 1.3rem; margin-bottom: 0.5rem; text-wrap: balance; }
.cred p { color: var(--text-dim); font-size: 1.02rem; line-height: 1.6; text-wrap: pretty; }

.veteran-band {
  margin-top: clamp(2.5rem, 5vw, 4rem); padding: clamp(1.8rem, 4vw, 2.6rem) 1.5rem;
  border-top: 1px solid rgba(232,182,90,0.3); border-bottom: 1px solid rgba(232,182,90,0.3);
  text-align: center;
}
.veteran-band .vet-label {
  display: block; font-size: 0.8rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.2em; color: var(--gold); margin-bottom: 0.8rem;
}
.veteran-band p {
  font-family: var(--display, inherit); font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.45; color: var(--text); max-width: 40ch; margin-inline: auto; text-wrap: balance;
}

@media (max-width: 780px) {
  .creds { grid-template-columns: 1fr; gap: 2rem; }
  .cred { padding: 0 0 2rem; border-left: 0; border-bottom: 1px solid rgba(232,182,90,0.3); }
  .cred:last-child { padding-bottom: 0; border-bottom: 0; }
}

/* ---------- Newsletter signup ---------- */
.signup { display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center; margin-top: 1.6rem; }
.signup input[type="email"] {
  flex: 1 1 20rem; max-width: 24rem; background: rgba(12,10,29,0.55);
  border: 1px solid rgba(176,139,230,0.3); color: var(--text);
  border-radius: 12px; padding: 0.9rem 1.1rem; font-family: inherit; font-size: 1.05rem;
}
.signup input[type="email"]:focus {
  outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,182,90,0.16);
}
.signup-note { font-size: 0.95rem; color: var(--text-dim); margin-top: 1rem; opacity: 0.9; }
.signup-msg { margin-top: 1rem; font-size: 1.02rem; min-height: 1.5rem; }
.signup-msg.ok { color: var(--aqua); }
.signup-msg.err { color: var(--rose); }

/* ---------- Section heading ---------- */
.sec-head { max-width: 60ch; margin-bottom: clamp(2rem, 4vw, 3.5rem); }
.sec-head h2 { margin: 0.9rem 0 1rem; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }

/* ---------- Cards / services ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.5rem; }
.card {
  position: relative; padding: 2.2rem; border-radius: var(--radius);
  background: linear-gradient(165deg, rgba(33,26,71,0.85), rgba(21,16,46,0.7));
  border: 1px solid rgba(176,139,230,0.18); overflow: hidden;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.card::before {
  content: ''; position: absolute; inset: 0; opacity: 0; transition: opacity .3s ease; pointer-events: none;
  background: radial-gradient(80% 60% at 50% 0%, rgba(176,139,230,0.22), transparent 70%);
}
.card:hover { transform: translateY(-6px); border-color: rgba(232,182,90,0.45); box-shadow: var(--shadow-soft); }
.card:hover::before { opacity: 1; }
.card .ico { display: block; width: 84px; height: 84px; object-fit: contain; margin: 0 auto 1.2rem; filter: drop-shadow(0 8px 18px rgba(123,92,196,0.5)); }
.card h3 { margin-bottom: 0.7rem; }
.card p { margin-bottom: 1.3rem; }
.card .meta { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.3rem; }
.tag {
  font-size: 0.82rem; font-weight: 700; letter-spacing: 0.04em;
  padding: 0.35rem 0.85rem; border-radius: 100px;
  background: rgba(102,214,201,0.12); color: var(--aqua); border: 1px solid rgba(102,214,201,0.3);
}
.card .price { font-family: var(--display); font-size: 1.6rem; color: var(--gold-soft); }
/* Sessions & Exchange breathing room */
#sessions .card .tag { display: inline-block; }
#sessions .card h3 { margin-top: 1.1rem; margin-bottom: 0.9rem; }
#sessions .card .price { display: block; margin: 1.2rem 0; }
#sessions .card .link { margin-top: 0.25rem; }
#sessions .journey { padding: 2.8rem; }
#sessions .journey .eyebrow { margin-bottom: 1rem; }
#sessions .journey h3 { margin-top: 0.6rem; }
#sessions .journey p { margin-bottom: 1.5rem; }
#sessions .journey-list { margin: 0 0 1.7rem; padding-left: 1.2rem; line-height: 2; }
.card .price small { font-family: var(--body); font-size: 0.85rem; color: var(--text-dim); font-weight: 400; }
.card .link { color: var(--amethyst); text-decoration: none; font-weight: 700; display: inline-flex; gap: .4rem; }
.card .link:hover { color: var(--gold); }

/* ---------- Split feature ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split.rev .split-media { order: 2; }
.split-media img {
  width: 100%; border-radius: var(--radius); border: 1px solid rgba(176,139,230,0.22);
  box-shadow: var(--shadow-soft);
}
.split-media.glow { display: grid; place-items: center; }
.split-media.glow img { width: min(360px, 80%); border: 0; box-shadow: none; filter: drop-shadow(0 20px 40px rgba(123,92,196,0.55)); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; counter-reset: step; }
.step { padding: 1.8rem; border-radius: var(--radius); background: rgba(21,16,46,0.6); border: 1px solid rgba(176,139,230,0.14); }
.step .n {
  counter-increment: step; font-family: var(--display); font-size: 1.6rem; color: var(--ink);
  width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold)); margin-bottom: 1rem;
}
.step .n::before { content: counter(step); }
.step h3 { font-size: 1.3rem; margin-bottom: 0.5rem; }
.step p { font-size: 1.05rem; }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; align-items: start; }
.quotes-feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; align-items: stretch; }
.quotes-feature .quote-lead { display: flex; flex-direction: column; justify-content: center; }
.quote-stack { display: flex; flex-direction: column; gap: 1.5rem; }
.quote-stack .quote { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.beliefs { gap: 0.85rem; }
.beliefs .card { padding: 1.3rem 1.6rem; }
.beliefs .card h3 { margin-bottom: 0.35rem; }
.beliefs .card p { margin-bottom: 0; }
@media (max-width: 900px) { .quotes-feature { grid-template-columns: 1fr; } }
.quote {
  padding: 2rem; border-radius: var(--radius); background: linear-gradient(165deg, rgba(33,26,71,0.7), rgba(21,16,46,0.6));
  border: 1px solid rgba(176,139,230,0.16); position: relative;
}
.quote .mark { font-family: var(--display); font-size: 3.5rem; line-height: 0.5; color: var(--gold); opacity: 0.6; }
.quote p { color: var(--text); font-style: italic; margin: 0.5rem 0 1.2rem; }
.quote .who { font-weight: 900; color: var(--amethyst); letter-spacing: 0.02em; }
.stars-row { color: var(--gold); letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 0.6rem; }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-card {
  padding: clamp(2.5rem, 6vw, 4.5rem); border-radius: 28px;
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(176,139,230,0.3), transparent 70%),
    linear-gradient(160deg, var(--indigo), var(--midnight-2));
  border: 1px solid rgba(232,182,90,0.3); box-shadow: var(--shadow-glow);
}
.cta-card h2 { margin-bottom: 1rem; }
.cta-card p { margin: 0 auto 2rem; }
.cta-card .hero-cta { justify-content: center; }

/* ---------- Booking ---------- */
.book-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(2rem,5vw,3.5rem); align-items: start; }
.book-embed {
  border-radius: var(--radius); border: 1px solid rgba(176,139,230,0.22);
  background: rgba(21,16,46,0.55); padding: 2rem; min-height: 420px;
  display: grid; place-items: center; text-align: center;
}
.book-embed .ph { max-width: 34ch; }
.book-embed .ph .ico { font-size: 2.6rem; }
.book-side .info-row { display: flex; gap: 1rem; align-items: flex-start; padding: 1.35rem 0; border-bottom: 1px solid rgba(176,139,230,0.12); }
.book-side .info-row b { color: var(--text); display: block; margin-bottom: 0.35rem; font-size: 1.05rem; }
.book-side .info-row span { color: var(--text-dim); line-height: 1.55; }
.book-side .info-row .ico { flex: 0 0 auto; width: 26px; height: 26px; color: var(--gold); margin-top: 2px; }
.book-side .info-row .ico svg { width: 100%; height: 100%; display: block; }

/* ---------- Forms ---------- */
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; padding: 0.9rem 1.1rem; border-radius: 14px; font-family: var(--body); font-size: 1.05rem;
  background: rgba(12,10,29,0.6); border: 1px solid rgba(176,139,230,0.25); color: var(--text);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(232,182,90,0.18); }
.field textarea { min-height: 130px; resize: vertical; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid rgba(176,139,230,0.16); margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; padding-block: clamp(3rem,5vw,4rem); }
.footer-grid p { font-size: 1.15rem; }
.footer-grid h4 { font-family: var(--body); font-weight: 900; text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.98rem; color: var(--amethyst); margin-bottom: 1rem; }
.footer-grid a { display: block; color: var(--text-dim); text-decoration: none; padding: 0.35rem 0; font-size: 1.12rem; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand img {
  height: 84px; margin-bottom: 1rem;
  padding: 14px 18px;
  background: radial-gradient(rgba(255,248,238,0.9), rgba(255,248,238,0.55) 48%, rgba(255,248,238,0) 76%);
}
.footer-bottom { border-top: 1px solid rgba(176,139,230,0.1); padding-block: 1.5rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; color: var(--text-dim); font-size: 1.05rem; }

/* ---------- Reveal animation (progressive enhancement) ----------
   Content is visible by default. Only when JS is present (html.js)
   do we hide-then-reveal on scroll, so no-JS and demos never blank. */
.reveal { transition: opacity .8s ease, transform .8s ease; }
html.js .reveal { opacity: 0; transform: translateY(28px); }
html.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html.js .reveal { opacity: 1; transform: none; transition: none; }
  .stars, .halo, .crystal-float { animation: none; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: clamp(3rem, 6vw, 5rem) clamp(2rem,4vw,3rem); text-align: center; }
.page-hero p { margin-inline: auto; }
.page-hero h1 { margin: 1rem 0; font-size: clamp(2.3rem, 5vw, 3.6rem); text-wrap: balance; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid, .split, .book-grid { grid-template-columns: 1fr; }
  .split.rev .split-media { order: 0; }
  .hero-art { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .nav .btn-primary.desk { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 0.2rem;
    position: absolute; top: 100%; left: 0; right: 0; padding: 1rem var(--pad) 1.6rem;
    background: rgba(12,10,29,0.98); border-bottom: 1px solid rgba(176,139,230,0.2);
  }
  .nav-links.open a { padding: 0.85rem 1rem; font-size: 1.1rem; }
}
@media (max-width: 560px) {
  body { font-size: 1.1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .quotes { grid-template-columns: 1fr; }
  .strip-inner { justify-content: flex-start; }
}

/* ============================================================
   ACCESSIBILITY
   WCAG 2.1 AA support: a bypass link, a visible keyboard focus
   ring that survives the dark palette, screen-reader-only text,
   underlined links inside prose, and the review rail's pause
   control. Nothing here changes the look for a mouse user.
   ============================================================ */

/* Skip to content. Clipped to a pixel until it takes focus, rather than
   parked at -9999px, so it never registers as text off the side of the
   page. Fixed, so it lands inside the viewport even if the reader tabs
   while partway down. */
.skip-link {
  position: fixed; left: 0; top: 0; z-index: 200;
  width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
  border-radius: 0 0 12px 0;
  background: var(--gold); color: var(--ink);
  font-weight: 900; font-size: 1.05rem; text-decoration: none;
}
.skip-link:focus {
  width: auto; height: auto; overflow: visible; clip-path: none;
  padding: 0.85rem 1.4rem;
}

/* One visible focus ring everywhere. Gold reads clearly on every
   surface in this palette, and the dark inner line keeps it visible
   if it ever lands on a gold button. */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn-primary:focus-visible { outline-color: var(--text); }

/* Form fields already draw their own gold ring on :focus, so keep it
   and add the outline back for keyboard users. */
.signup input[type="email"]:focus-visible,
.field input:focus-visible, .field textarea:focus-visible, .field select:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

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

/* A link sitting inside a sentence cannot be told apart by colour alone
   (WCAG 1.4.1), so prose links carry an underline. */
.inline-link { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.inline-link:hover { color: var(--gold-soft); }

/* Review rail pause control. Anything that moves on its own needs a way
   to stop it (WCAG 2.2.2), reachable by keyboard and by touch. */
.rail-pause {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: rgba(12,10,29,0.7); border: 1px solid rgba(176,139,230,0.35);
  color: var(--text-dim); border-radius: 12px; cursor: pointer;
  padding: 0.5rem 0.95rem; font: inherit; font-size: 0.92rem; font-weight: 700;
}
.rail-pause:hover { color: var(--text); border-color: var(--amethyst); }
@media (max-width: 700px) {
  .rail-pause { position: static; transform: none; margin-top: 0.9rem; }
}
