/* =============================================================================
   IMPORTS
============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Sansita Swashed:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Cormorant Garamond:wght@300;400;500;600&family=Sansita Swashed&family=Sansita+Swashed:wght@300..900&display=swap');


/* =============================================================================
   DESIGN TOKENS
============================================================================= */

:root {
  /* Background layers */
  --bg-1: #151226;
  --bg-2: #100e1f;
  --bg-3: #0a0914;
  --bg-4: #07060d;

  /* Text */
  --text:        #f0e8d5;
  --muted:       #ddd4f0;
  --accent-soft: #ddd4f0;
  --gold:        #d4a84b;
  --gold-bright: #ffd060;

  /* Glass card surfaces */
  --surface:        rgba(20, 20, 46, 0.74);
  --surface-2:      rgba(12, 26, 48, 0.78);
  --surface-border: rgba(180, 140, 255, 0.24);

  /* Feedback */
  --success: #b7e7c5;
  --error:   #ffd0d0;

  /* Shared radii */
  --radius-sm:   10px;
  --radius-md:   14px;
  --radius-lg:   18px;
  --radius-pill: 999px;

  /* Purple accent */
  --purple-border:  rgba(180, 140, 255, 0.45);
  --purple-bg:      rgba(140, 100, 240, 0.16);
  --purple-bg-dark: rgba(140, 100, 240, 0.35);
}


/* =============================================================================
   RESET & BASE
============================================================================= */

*, *::before, *::after { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body { min-height: 100%; scroll-behavior: smooth; }

.noSelect {
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}
.noSelect:focus {
    outline: none !important;
}

html { overflow-x: hidden; color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  color: var(--text);
  font-family: "Cormorant Garamond", sans-serif;
  background:
    radial-gradient(circle at 8% 10%, rgba(180,140,255,0.14), transparent 28%),
    radial-gradient(circle at 92% 20%, rgba(123,200,176,0.08), transparent 22%),
    linear-gradient(160deg, var(--bg-1) 0%, var(--bg-2) 30%, var(--bg-3) 60%, var(--bg-4) 100%);
}

/* Subtle static star-field */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.9;
  background-image:
    radial-gradient(0.6px 0.6px at 18% 22%, rgba(255,255,255,0.45) 99%, transparent 100%),
    radial-gradient(0.7px 0.7px at 74% 31%, rgba(255,255,255,0.38) 99%, transparent 100%),
    radial-gradient(0.5px 0.5px at 58% 77%, rgba(255,255,255,0.32) 99%, transparent 100%),
    radial-gradient(0.6px 0.6px at 34% 64%, rgba(255,255,255,0.28) 99%, transparent 100%),
    radial-gradient(0.6px 0.6px at 85% 82%, rgba(255,255,255,0.28) 99%, transparent 100%),
    radial-gradient(0.5px 0.5px at  9% 82%, rgba(255,255,255,0.28) 99%, transparent 100%);
}

a { color: var(--accent-soft); }


/* =============================================================================
   LAYOUT PRIMITIVES
============================================================================= */

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

/* Everything sits above the cosmic canvas (z-index 0) */
.site-header,
.page-content,
.site-footer {
  position: relative;
  z-index: 2;
}

.page-content {
  flex: 1 0 auto;
  padding: 2rem 0 2.5rem;
}

/* Page-level title + lede block */
.page-intro {
  margin: 0 auto 2rem;
  text-align: center;
  max-width: min(1200px, 92vw);
}

.page-intro h1 {
  margin: 0 0 0.4rem;
  font-family: "Sansita Swashed", serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 4.5vw, 3.2rem);
  letter-spacing: 0.02em;
  text-transform: none;
  text-shadow: 0 0 28px rgba(180, 140, 255, 0.45);
}

.page-intro .lede {
  letter-spacing: 0.18em;
  font-size: 1.1rem;
}


/* =============================================================================
   TYPOGRAPHY
============================================================================= */

h2, h3 {
  margin: 0 0 0.5rem;
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.04em;
}

h2 { font-size: 1.3rem; }

/* Muted serif sub-label */
.lede {
  margin: 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  letter-spacing: 0.06em;
}

/* Gold card heading with accent underline bar */
.section-header {
  margin: 0 0 0.5rem;
  font-family: "Sansita Swashed", serif;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(212, 168, 75, 0.3);
}

.section-header::after {
  content: "";
  display: block;
  width: 4rem;
  height: 1px;
  margin-top: 0.35rem;
  background: linear-gradient(to right, rgba(180, 140, 255, 0.5), transparent);
}

/* Italic credential label beneath a section-header */
.sub-header {
  margin: -0.2rem 0 0.9rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  color: var(--muted);
  opacity: 0.85;
}


/* =============================================================================
   GLASS CARD  (shared surface — used on every page)
============================================================================= */

.section-card {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 2rem;
  backdrop-filter: blur(8px);
  box-shadow:
    0 10px 28px rgba(4, 8, 16, 0.24),
    inset 0 0 28px rgba(70, 45, 140, 0.08);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.section-card p {
  margin: 0 0 0.65rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  line-height: 1.68;
}

.section-card p:last-child { margin-bottom: 0; }

/* JS-driven cosmic highlight */
[data-cosmic-anchor].is-cosmic-active {
  border-color: rgba(220, 190, 255, 0.55);
  box-shadow:
    0 0 0 1px rgba(220, 190, 255, 0.28),
    0 10px 28px rgba(4, 8, 16, 0.24),
    inset 0 0 28px rgba(70, 45, 140, 0.1);
  transform: translateY(-2px);
}


/* =============================================================================
   BUTTONS & CTA LINKS
============================================================================= */

button:not(.nav-dropdown-trigger):not(.modal-close) {
  border: 1px solid rgba(180, 140, 255, 0.35);
  border-radius: var(--radius-sm);
  background: var(--purple-bg);
  color: var(--text);
  font-family: "Cormorant Garamond", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  transition: background 150ms ease;
}

button:not(.nav-dropdown-trigger):not(.modal-close):hover { background: var(--purple-bg-dark); }

/* Pill-shaped CTA (Home booking link, Trainings link) */
.cta-book,
.trainings-cta {
  display: inline-block;
  border: 1px solid var(--purple-border);
  border-radius: var(--radius-pill);
  background: var(--purple-bg);
  color: var(--text);
  font-family: "Sansita Swashed", serif;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-align: center;
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.cta-book:hover,
.trainings-cta:hover {
  background: var(--purple-bg-dark);
  border-color: rgba(200, 160, 255, 0.8);
  box-shadow: 0 0 28px rgba(160, 110, 255, 0.28);
  color: var(--text);
}

.cta-book {
  padding: 0.7rem 1.8rem;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  box-shadow: 0 0 18px rgba(140, 100, 240, 0.15);
}

.trainings-cta {
  padding: 0.65rem 1.4rem;
  font-size: 0.85rem;
  margin-top: 1.25rem;
}


/* =============================================================================
   FORMS  (contact form on Pricing page)
============================================================================= */

.contact-form { display: grid; gap: 0.85rem; }
.form-field   { display: grid; gap: 0.35rem; }

label {
  color: var(--muted);
  font-family: "Cormorant Garamond", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(180, 140, 255, 0.28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0.65rem 0.75rem;
  font: inherit;
  transition: border-color 180ms ease, background 180ms ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(180, 140, 255, 0.6);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(140, 100, 240, 0.18);
}

textarea { min-height: 140px; resize: vertical; }

.submit-btn {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  border-color: rgba(180, 140, 255, 0.5);
  background: rgba(140, 100, 240, 0.22);
}

.success { margin: 0 0 0.75rem; color: var(--success); }
.error   { margin: 0; color: var(--error); font-size: 0.84rem; }

.success-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
}

.success-emoji { font-size: 2rem; }


/* =============================================================================
   SCROLL-REVEAL ANIMATION
============================================================================= */

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.35s ease-out, transform 0.35s ease-out;
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible { opacity: 1; transform: translateY(0); }


/* =============================================================================
   HEADER & NAV
============================================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 9999;
  backdrop-filter: blur(8px);
  background: rgba(8, 12, 25, 0.66);
  border-bottom: 1px solid rgba(180, 140, 255, 0.18);
}

.nav-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  color: var(--text);
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-title {
  font-family: "Sansita Swashed", serif;
  font-size: 1.24rem;
  letter-spacing: 0.08em;
  text-shadow: 0 0 20px rgba(180, 140, 255, 0.3);
}

.brand-subtitle {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.main-nav { display: flex; flex-wrap: wrap; gap: 0.55rem; align-items: center; }

/* Direct children only — does NOT apply to dropdown menu links */
.main-nav > a {
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.85rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.main-nav > a:hover{
  color: var(--text);
  background: var(--purple-bg);
}
.main-nav > a.active {
  color: var(--text);
  border-color: var(--purple-border);
  background: var(--purple-bg);
}

/* --- Nav dropdown --- */

.nav-dropdown {
  position: relative;
}

/* Trigger matches the top-level tab style exactly */
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 0.5rem 0.85rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease;
}

.nav-dropdown-trigger:hover,
.nav-dropdown.is-open .nav-dropdown-trigger{
  color: var(--text);
  background: var(--purple-bg);
} 
.nav-dropdown.active .nav-dropdown-trigger{
  color: var(--text);
  border-color: var(--purple-border);
  background: var(--purple-bg);
}

.nav-dropdown-caret {
  font-size: 0.6rem;
  transition: transform 150ms ease;
}

.nav-dropdown.is-open .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  min-width: 240px;
  margin: 0;
  padding: 0.3rem;
  list-style: none;
  background: rgba(8, 10, 22, 0.98);
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(4, 8, 16, 0.5);
  z-index: 10000;
}

.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}

/* Dropdown items — isolated from .main-nav a cascade */
.nav-dropdown-menu a {
  display: block;
  padding: 0.45rem 1rem;
  color: var(--muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  background: none;
  transition: color 120ms ease, background 120ms ease;
}

.nav-dropdown-menu a:hover {
  color: var(--text);
  background: var(--purple-bg);
  border-color: transparent;
}


/* =============================================================================
   FOOTER
============================================================================= */

.site-footer {
  flex-shrink: 0;
  margin-top: auto;
  position: relative;
  z-index: 1;  /* lower than page content — fixed overlays (modal, FAB) must sit above */
  border-top: 1px solid rgba(180, 140, 255, 0.18);
  background: rgba(5, 8, 20, 0.5);
  color: var(--muted);
  text-align: center;
  padding: 1rem;
}

.site-footer p { margin: 0.25rem 0; font-family: "Cormorant Garamond", serif; font-size: 1.02rem; }
.site-footer .subtitle { font-size: 0.8rem; }

.site-footer a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid rgba(200, 184, 232, 0.3);
  transition: color 150ms ease, border-color 150ms ease;
}

.site-footer a:hover { color: var(--text); border-bottom-color: rgba(200, 184, 232, 0.7); }




/* =============================================================================
   COSMIC SCENE  (canvas layer behind page content)
============================================================================= */

.cosmic-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  /* height is set explicitly via JS to avoid reflow from mobile address bar */
  min-height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  animation: sceneFadeIn 2s ease-out both;
}

@keyframes sceneFadeIn {
  0%   { opacity: 0; }
  40%  { opacity: 0; }
  100% { opacity: 1; }
}

/* --- Sun arc --- */

.cosmic-sun-arc {
  position: absolute;
  top: -280px;
  left: -280px;
  width: 560px;
  height: 560px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 60px solid rgba(255, 208, 96, 0.22);
  border-right-color: transparent;
  border-bottom-color: transparent;
  filter: blur(0.8px);
  box-shadow:
    0 0  60px rgba(255, 200, 60, 0.20),
    0 0 140px rgba(255, 160, 30, 0.10),
    0 0 280px rgba(255, 120, 20, 0.06);
}

/* Glowing fill disc inside the arc */
.cosmic-sun-arc::before {
  content: "";
  position: absolute;
  inset: 60px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at 50% 50%,
    rgba(255, 230, 140, 0.28) 0%,
    rgba(255, 190,  60, 0.14) 40%,
    rgba(255, 140,  20, 0.05) 70%,
    transparent 100%
  );
  filter: blur(12px);
}

/* --- Stars & constellations --- */

.cosmic-stars,
.cosmic-planets,
.cosmic-constellations {
  position: absolute;
  inset: 0;
}

.cosmic-constellations {
  width: 100%;
  height: 100%;
  opacity: 0.96;
  pointer-events: none;
}

.constellation-group {
  position: absolute;
  width: min(220px, 36vw);
  height: min(280px, 45vw);
  transform: translate3d(-50%, calc(-50% + var(--parallax-y, 0px)), 0);
  will-change: transform, opacity;
  opacity: 0.35;
  filter: drop-shadow(0 0 7px rgba(168, 210, 255, 0.16));
  transition: opacity 120ms ease, filter 120ms ease;
  animation: constellationBreathe 4s ease-in-out infinite;
}

.constellation-line {
  stroke-linecap: round;
  stroke-width: 0.8;
  transition: stroke-width 120ms ease, stroke 120ms ease, stroke-dasharray 120ms ease;
}

.constellation-group.is-lit {
  opacity: 1;
  filter: drop-shadow(0 0 16px rgba(180, 210, 255, 0.9));
  animation: none;
}

.constellation-group.is-lit .constellation-line {
  stroke-width: 1.0;
  stroke-dasharray: 0 !important;
  stroke: rgba(220, 240, 255, 0.9);
}

.constellation-star {
  fill: #fff;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
  transition: opacity 120ms ease;
}

.is-lit .constellation-star {
  fill: #e0f0ff;
  r: 1.8;
}

.constellation-label {
  fill: rgba(204, 222, 255, 0.52);
  font-family: "Sansita Swashed", serif;
  font-size: 8px;
  letter-spacing: 0.3em;
  opacity: 0.7;
}

@keyframes constellationBreathe {
  0%, 100% { opacity: 0.25; }
  50%       { opacity: 0.85; }
}


/* --- Planets --- */

/* Outer wrapper handles positioning + parallax translation only */
.cosmic-planet-wrap {
  position: absolute;
  will-change: transform;
  transform: translate3d(-50%, calc(-50% + var(--parallax-y, 0px)), 0);
  transform-style: preserve-3d;
}

/* Inner planet handles breathe animation + hover scale — isolated layer */
.cosmic-planet {
  border-radius: 50%;
  --hover-scale: 1;
  will-change: opacity;
  transform: scale(var(--hover-scale));
  opacity: 0.8;
  filter: saturate(0.9);
  backface-visibility: hidden;
  transition: opacity 150ms ease, box-shadow 150ms ease;
  animation: planetBreathe 8s ease-in-out infinite;
  animation-delay: var(--planet-delay, 0s);
  position: relative;
}

/* Terminator — dark crescent shadow on the unlit side (bottom-right, away from top-left sun) */
.cosmic-planet::before {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 28% 28%,
    transparent 40%,
    rgba(4, 6, 18, 0.45) 65%,
    rgba(2, 3, 10, 0.78) 100%
  );
  z-index: 2;
}

/* Surface bands — subtle horizontal stripes, fallback when PLANET_SVG_BANDS = false in cosmic_scene.js */
.cosmic-planet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-linear-gradient(
    160deg,
    transparent 0%,
    transparent 18%,
    rgba(255, 255, 255, 0.04) 19%,
    rgba(255, 255, 255, 0.04) 22%,
    transparent 23%,
    transparent 42%,
    rgba(0, 0, 0, 0.06) 43%,
    rgba(0, 0, 0, 0.06) 47%,
    transparent 48%
  );
  z-index: 1;
}

/* Saturn-specific banding — more bands, higher contrast, warm tones */
/* Fallback used when PLANET_SVG_BANDS = false in cosmic_scene.js */
.palette-sage:not(.has-svg-bands)::after {
  background: repeating-linear-gradient(
    160deg,
    transparent       0%,
    transparent       8%,
    rgba(210, 195, 155, 0.18)  9%,
    rgba(210, 195, 155, 0.18) 12%,
    transparent      13%,
    transparent      20%,
    rgba(140, 120,  80, 0.14) 21%,
    rgba(140, 120,  80, 0.14) 24%,
    transparent      25%,
    transparent      33%,
    rgba(200, 180, 130, 0.16) 34%,
    rgba(200, 180, 130, 0.16) 37%,
    transparent      38%,
    transparent      46%,
    rgba(100,  85,  55, 0.12) 47%,
    rgba(100,  85,  55, 0.12) 50%,
    transparent      51%,
    transparent      60%,
    rgba(190, 170, 120, 0.14) 61%,
    rgba(190, 170, 120, 0.14) 64%,
    transparent      65%
  );
}

.cosmic-planet.is-active {
  --hover-scale: 1.03;
  opacity: 1;
  filter: saturate(1.1) brightness(1.05);
  box-shadow:
    0 0 45px rgba(180, 190, 255, 0.25),
    inset -12px -12px 24px rgba(20, 25, 45, 0.25);
}

.planet-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 145%;
  height: 35%;
  transform: translate(-50%, -50%) rotate(-20deg);
  border-radius: 50%;
  border-top:    3px solid rgba(255, 255, 255, 0.95);
  border-bottom: 2px solid rgba(220, 230, 255, 0.65);
  border-left:   1px solid rgba(255, 255, 255, 0.15);
  border-right:  1px solid rgba(255, 255, 255, 0.15);
  background: radial-gradient(ellipse, transparent 55%, rgba(255,255,255,0.15) 65%, transparent 72%);
  filter: blur(1.5px);
  box-shadow:
    inset 0 0 12px rgba(255, 255, 255, 0.4),
    0 0 18px rgba(230, 240, 255, 0.5);
  z-index: 3;
  pointer-events: none;
}

@keyframes planetBreathe {
  0%, 100% { opacity: 0.70; }
  50%       { opacity: 0.9; }
}

/* --- Planet colour palettes ---
   Palette names must match in all three places:
   views.py : "palette" field in SOLAR_SYSTEM
   JS       : BAND_CONFIGS keys in cosmic_scene.js
   CSS      : .palette-{name} classes below
----------------------------------------------------------------------------- */

.palette-violet    { background: radial-gradient(circle at 25% 25%, #d4c8f0 0%, #9d88c8 30%, #7d6b9e 55%, #3d3254 100%); box-shadow: 0 0 18px 4px rgba(160, 120, 255, 0.25), inset 6px 6px 14px rgba(20, 10, 40, 0.4); }
.palette-blue      { background: radial-gradient(circle at 25% 25%, #c8dff0 0%, #7aaac8 30%, #5b7c96 55%, #2a3c4f 100%); box-shadow: 0 0 18px 4px rgba(100, 160, 255, 0.2),  inset 6px 6px 14px rgba(10, 20, 40, 0.4); }
.palette-teal      { background: radial-gradient(circle at 25% 25%, #c2e0d8 0%, #7ab8ae 30%, #58877a 55%, #24423a 100%); box-shadow: 0 0 18px 4px rgba(80, 200, 170, 0.2),   inset 6px 6px 14px rgba(10, 30, 26, 0.4); }
.palette-amber     { background: radial-gradient(circle at 25% 25%, #f0ddc0 0%, #c8a070 30%, #9c7b5c 55%, #4a3826 100%); box-shadow: 0 0 18px 4px rgba(220, 160, 80, 0.22),  inset 6px 6px 14px rgba(30, 18, 8,  0.4); }
.palette-rose      { background: radial-gradient(circle at 25% 25%, #ecc8d0 0%, #c07888 30%, #945d6a 55%, #472931 100%); box-shadow: 0 0 18px 4px rgba(220, 100, 130, 0.2),  inset 6px 6px 14px rgba(30, 10, 16, 0.4); }
.palette-slate     { background: radial-gradient(circle at 25% 25%, #ccd2dc 0%, #8c98a8 30%, #6c7687 55%, #2a303b 100%); box-shadow: 0 0 18px 4px rgba(140, 160, 200, 0.18), inset 6px 6px 14px rgba(14, 16, 22, 0.4); }
.palette-champagne { background: radial-gradient(circle at 25% 25%, #f5ede0 0%, #d4b898 30%, #b09c84 55%, #4a3e31 100%); box-shadow: 0 0 18px 4px rgba(220, 190, 140, 0.2),  inset 6px 6px 14px rgba(28, 22, 14, 0.4); }
.palette-sage      { background: radial-gradient(circle at 25% 25%, #d0dcd0 0%, #9aae9a 30%, #7b8c7c 55%, #344035 100%); box-shadow: 0 0 18px 4px rgba(120, 180, 120, 0.18), inset 6px 6px 14px rgba(14, 22, 14, 0.4); }
.palette-lilac     { background: radial-gradient(circle at 25% 25%, #e8dff0 0%, #b0a0c4 30%, #8c7b99 55%, #3b2f45 100%); box-shadow: 0 0 18px 4px rgba(170, 140, 220, 0.22), inset 6px 6px 14px rgba(20, 14, 30, 0.4); }
.palette-midnight  { background: radial-gradient(circle at 25% 25%, #d4b896 0%, #a07840 30%, #7a5828 45%, #3a2810 100%); box-shadow: 0 0 18px 4px rgba(180, 120, 60, 0.25), inset 6px 6px 14px rgba(30, 15, 5, 0.5); }
.palette-dusk-teal { background: radial-gradient(circle at 25% 25%, #6a9490 0%, #3e6460 30%, #263f3d 50%, #101e1d 100%); box-shadow: 0 0 18px 4px rgba(60,  140, 130, 0.18), inset 6px 6px 14px rgba(4,  12, 12, 0.5); }


/* =============================================================================
   HOME PAGE
============================================================================= */

/* Home hero — tighter bottom margin vs other pages */
.home-intro {
  margin-bottom: 0.5rem;
}

/* Two-column grid: profile sidebar + text cards */
.home-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2rem 2.8rem;
  margin: 2rem auto 5rem;
  max-width: 960px;
}

.home-about-me {
  grid-column: 1 / -1;
  padding: 2.4rem 2.8rem;
}

.home-profile-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  align-self: start;
}

.profile-photo {
  width: 100%;
  max-width: 280px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius-md);
  border: 1px solid rgba(180, 140, 255, 0.3);
  box-shadow: 0 8px 24px rgba(4, 8, 16, 0.4);
  filter: brightness(0.9) contrast(1.05);
}

.photo-card {
  width: 100%;
  padding: 0.65rem;
  position: relative;
  overflow: hidden;
}

/* Inner vignette to blend edges */
.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-md);
  box-shadow: inset 0 0 24px rgba(16, 20, 35, 0.6);
  pointer-events: none;
}

.photo-card-byline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0.6rem 0.25rem 0.1rem;
}

.photo-card-name {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text);
}

.photo-card-credentials {
  font-family: "Cormorant Garamond", serif;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  color: var(--muted);
  opacity: 0.85;
}

/* Decorative dashed orbit arc between profile and cards */
.connector-orbit {
  width: 180px;
  height: 58px;
  border-top: 1.5px dashed rgba(180, 140, 255, 0.5);
  border-radius: var(--radius-pill);
  opacity: 0.72;
}

.home-text-column { display: grid; gap: 1rem; }

/* --- Info cards (purple / teal / blue variants) --- */

.info-card { position: relative; }

/* Coloured dot accent on the left edge */
.info-card::before {
  content: "";
  position: absolute;
  left: -10px;
  top: 18px;
  width: 14px;
  height: 14px;
  border-radius: var(--radius-pill);
}

.info-card-purple::before {
  background: radial-gradient(circle at 40% 38%, #ffd060, #e87520);
  box-shadow: 0 0 10px rgba(255, 180, 30, 0.5);
}

.info-card-teal::before {
  background: radial-gradient(circle at 40% 38%, #a0e8d5, #2d9e7a);
  box-shadow: 0 0 10px rgba(60, 200, 160, 0.5);
}

.info-card-blue {
  border-color: rgba(120, 190, 255, 0.3);
  background: linear-gradient(135deg, rgba(14, 26, 48, 0.88), rgba(20, 40, 60, 0.88));
}

/* Per-accent underline colours */
.info-card-purple .section-header::after { background: linear-gradient(to right, rgba(255, 208, 96, 0.5), transparent); }
.info-card-teal   .section-header::after { background: linear-gradient(to right, rgba(120, 200, 176, 0.5), transparent); }
.info-card-blue   .section-header::after { background: linear-gradient(to right, rgba(120, 190, 255, 0.5), transparent); }


/* --- Services section (no outer box — cards float in the page background) --- */

.home-services {
  grid-column: 1 / -1;
  margin-top: 1.5rem;
}

.services-header {
  text-align: center;
}

.services-header::after {
  margin-left: auto;
  margin-right: auto;
  width: 6.2rem;
  background: linear-gradient(to right, rgba(120, 210, 185, 0.75), rgba(120, 190, 255, 0.3), transparent);
}

.services-particles-canvas {
  display: none;
}

.services-list {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* Service card — heading + blurb, no hover */
.service-card {
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(120, 210, 185, 0.25);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 85% 16%, rgba(140, 220, 210, 0.08), transparent 45%),
    linear-gradient(125deg, rgba(14, 24, 32, 0.82), rgba(10, 20, 28, 0.82));
  backdrop-filter: blur(3px);
  box-shadow: 0 4px 14px rgba(3, 12, 18, 0.18);
}

/* Odd last card spans full width */

.service-card-heading {
  margin: 0 0 0.6rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  color: var(--gold-bright);
}

.service-card-blurb {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.service-card-blurb li {
  position: relative;
  padding-left: 1.1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  line-height: 1.45;
  color: --text;
}

/* Small teal dash bullet */
.service-card-blurb li::before {
  content: "–";
  position: absolute;
  left: 0;
  color: rgba(120, 225, 190, 0.6);
}


/* =============================================================================
   PRICING PAGE
============================================================================= */

.pricing-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-left {
  display: grid;
  gap: 1.5rem;
  align-content: start;
}

/* Rate row — service name + price side by side */
.rate-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(180, 140, 255, 0.2);
  border-radius: var(--radius-md);
  padding: 0.8rem 0.9rem;
  margin-bottom: 0.65rem;
  cursor: pointer;
  transition: border-color 100ms ease, background 100ms ease;
}

.rate-row:hover {
  border-color: rgba(180, 140, 255, 0.45);
  background: rgba(140, 100, 240, 0.07);
}

.rate-row h3 {
  font-size: 0.95rem;
  margin: 0 0 0.15rem;
}

.rate-row p {
  margin: 0;
  color: var(--muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
}

/* Right-side price */
.rate-price {
  display: flex;
  align-items: center;
}

.rate-row strong {
  font-family: "Sansita Swashed", serif;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  white-space: nowrap;
}

/* Flash highlight on the message field after auto-fill */
@keyframes fieldHighlight {
  0%   { border-color: rgba(180, 140, 255, 0.6); box-shadow: 0 0 0 3px rgba(140, 100, 240, 0.3); }
  100% { border-color: rgba(180, 140, 255, 0.28); box-shadow: none; }
}

.field-highlighted {
  animation: fieldHighlight 1.2s ease-out forwards;
}

.section-card .note {
  margin: 0.75rem 0 0;
  color: var(--gold-bright);
  font-family: "Cormorant Garamond", serif;
  font-size: 0.95rem;
}

/* Muted intro text inside pricing / contact cards */
.section-card .direct-card-intro,
.section-card .contact-form-intro {
  margin: 0 0 1rem;
  color: var(--muted);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
}

/* Direct contact links (phone, email, etc.) */
.direct-links {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.direct-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 1rem;
  border: 1px solid rgba(120, 190, 255, 0.25);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  text-decoration: none;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  transition: background 150ms ease, border-color 150ms ease;
}

.direct-link:hover {
  background: rgba(120, 190, 255, 0.08);
  border-color: rgba(120, 190, 255, 0.5);
  color: var(--text);
}

.direct-link-icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.direct-card p { margin: 0.1rem 0; }


/* =============================================================================
   TRAININGS PAGE
============================================================================= */

.trainings-wrap {
  max-width: 960px;
  margin: 0 auto;
}

.trainings-card {
  width: 100%;
  max-width: 560px;
  padding: 2.4rem 2.8rem;
  text-align: left;
}

.trainings-sprout {
  font-size: 2.4rem;
  margin-bottom: 0.55rem;
}


/* =============================================================================
   LICENSURE PAGE
============================================================================= */

.licensure-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  max-width: 960px;
  margin: 0 auto;
  align-items: start;
}

.licensure-subheading {
  margin: 1.2rem 0 0.5rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.licensure-list {
  margin: 0 0 1rem;
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.licensure-list li {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  line-height: 1.5;
}

.licensure-disclaimer {
  max-width: 960px;
  margin: 1.5rem auto 0;
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  color: var(--muted);
  opacity: 0.7;
  line-height: 1.6;
}

.licensure-rate-inline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin: 1.2rem 0 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(180, 140, 255, 0.15);
}

.licensure-rate-label {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.05rem;
  color: var(--text);
}

.licensure-rate-price {
  font-family: "Sansita Swashed", serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--gold-bright);
  white-space: nowrap;
}

.licensure-cta {
  display: inline-block;
  margin-top: 0.25rem;
}


/* =============================================================================
   RESOURCES PAGE — GRID CARDS
============================================================================= */

.resource-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Smaller gold heading used on resource cards and inside the modal */
.resource-title {
  font-family: "Sansita Swashed", serif;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-align: center;
  color: var(--gold);
  text-shadow: 0 0 14px rgba(212, 168, 75, 0.3);
  min-height: 2.8rem;
  align-items: flex-start;
  margin: 0 0 0.5rem;
}

.resource-card {
  text-align: left;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 100ms cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 100ms ease;
}

.resource-card .tagline { flex: 1; font-size: 1rem; }

.resource-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 14px 36px rgba(80, 50, 160, 0.24), inset 0 0 28px rgba(70, 45, 140, 0.08);
}

.resource-card:focus-visible {
  outline: 2px solid rgba(180, 140, 255, 0.5);
  outline-offset: 2px;
}

.resource-emoji {
  font-size: 2rem;
  margin-bottom: 0.2rem;
  text-align: center;
}

.resource-cta {
  margin: 0.9rem 0 0;
  font-family: "Cormorant Garamond", sans-serif;
  font-size: 0.1rem;
  letter-spacing: 0.09em;
  color: rgba(200, 180, 255, 0.7);
}


/* =============================================================================
   RESOURCES PAGE — MODAL
============================================================================= */

.resource-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
  animation: modalFadeIn 300ms ease-out forwards;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.resource-modal.hidden { display: none; }

.resource-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 8, 20, 0.92);
  animation: backdropFadeIn 300ms ease-out forwards;
}

@keyframes backdropFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.resource-modal-card {
  position: relative;
  width: min(760px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  z-index: 1;
  animation: cardSlideIn 350ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardSlideIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Modal title reuses .resource-title but without the min-height alignment trick */
.resource-modal-title {
  min-height: unset;
  font-size: 1.25rem;
  margin: 0 2.5rem 0.3rem 0; /* right gap clears the close button */
}

/* Close button — plain X, top-right */
.modal-close {
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  width: auto;
  height: auto;
  border-radius: 0;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.25rem;
  color: var(--muted);
  cursor: pointer;
  transition: color 150ms ease;
}

.modal-close:hover {
  color: var(--text);
}

/* Body scrolling lock while modal is open */
.modal-open { overflow: hidden; }

/* Link list inside the modal */
.resource-modal-items {
  margin-top: 0.6rem;
}

.resource-link-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Each link is a plain row separated by a faint divider */
.resource-item {
  border-bottom: 1px solid rgba(180, 140, 255, 0.1);
}

.resource-item:last-child {
  border-bottom: none;
}

.resource-item a {
  display: block;
  padding: 0.65rem 0.75rem;
  color: inherit;
  text-decoration: none;
  border-radius: 5px;
  transition: color 120ms ease, background 120ms ease;
}

.resource-item a:hover {
  background: var(--purple-bg);
}

.resource-item-title {
  display: block;
  color: var(--text);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.35;
  transition: color 80ms ease;
}

.resource-item a:hover .resource-item-title { color: #e0cfff; }

.resource-item-title::after {
  content: " ↗";
  font-size: 0.8rem;
  opacity: 0.55;
}

.resource-item .resource-item-desc {
  display: block;
  margin: 0.2rem 0 0;
  font-family: "Cormorant Garamond", serif;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.45;
  opacity: 0.8;
}


/* =============================================================================
   RESPONSIVE — TABLET  (480px – 860px)
============================================================================= */

/* Two-column services grid on mid-size phones */
@media (min-width: 480px) and (max-width: 860px) {
  .services-list {
    grid-template-columns: 1fr 1fr;
    padding: 1rem;
    gap: 0.65rem;
  }
}

/* Resources: 2-col on tablets */
@media (min-width: 600px) and (max-width: 860px) {
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
}


/* =============================================================================
   RESPONSIVE — MOBILE  (≤ 860px)
============================================================================= */

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 6px rgba(120, 225, 190, 0.4); }
  50%       { box-shadow: 0 0 14px rgba(120, 225, 190, 0.85), 0 0 22px rgba(120, 225, 190, 0.3); }
}

@media (max-width: 860px) {

  /* --- Layout --- */

  .home-layout,
  .pricing-layout,
  .resource-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 0.75rem;
  }

  .home-layout { margin-bottom: 3rem; }
  .home-profile-column { max-width: 100%; margin: 0 auto; }

  .profile-photo {
    max-width: 120px;
    aspect-ratio: 1 / 1;
    border-radius: 50%;
    display: block;
    margin: 0 auto;
  }

  .connector-orbit { display: none; }

  /* --- Typography --- */

  .home-intro h1  { font-size: clamp(1.5rem, 7vw, 2rem); }
  .page-intro h1  { font-size: clamp(1.5rem, 7vw, 2rem); }
  .page-intro .lede { font-size: 0.88rem; letter-spacing: 0.12em; }
  h2  { font-size: 1.1rem; }
  .lede { font-size: 1rem; letter-spacing: 0.04em; }

  /* --- Cards --- */

  .section-card { padding: 1.2rem 1.1rem; }
  .home-about-me { padding: 1.4rem 1.3rem; }
  .section-card p { font-size: 1.05rem; }

  /* --- Nav --- */

  .nav-wrap { padding: 0.65rem 0; gap: 0.5rem; }
  .brand-title { font-size: 1rem; }
  .brand-subtitle { display: none; }
  .main-nav { gap: 0.3rem; }
  .main-nav a { font-size: 0.78rem; padding: 0.35rem 0.55rem; letter-spacing: 0.06em; }
  .nav-dropdown-trigger { font-size: 0.78rem; padding: 0.35rem 0.55rem; letter-spacing: 0.06em; }
  .nav-dropdown-menu { right: 0; left: auto; min-width: 220px; }

  /* --- Licensure --- */
  .licensure-layout { grid-template-columns: 1fr; }

  /* --- Footer --- */

  .site-footer p { font-size: 0.88rem; }
  .site-footer .subtitle { font-size: 0.72rem; }

  /* --- Page content --- */

  .page-content { padding: 1.25rem 0 2rem; }

  /* --- Cosmic --- */
  .constellation-group { width: min(160px, 30vw); }

  /* --- CTA pills --- */

  /* Hide the home page in-column button — the FAB replaces it on mobile */
  .home-profile-column .cta-book { display: none; }

  /* Floating action button — fixed bottom-right */
  #book-fab {
    display: inline-block;
    position: fixed;
    bottom: 1.5rem;
    right: 1.25rem;
    z-index: 9998;
    padding: 0.7rem 1.3rem;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    border-radius: var(--radius-pill);
    border: 1px solid rgba(200, 160, 255, 0.6);
    background: rgba(120, 80, 220, 0.72);
    backdrop-filter: blur(10px);
    box-shadow:
      0 4px 18px rgba(120, 80, 220, 0.45),
      0 0 0 1px rgba(200, 160, 255, 0.15);
    transition: background 150ms ease, box-shadow 150ms ease,
                transform 150ms ease, opacity 200ms ease;
  }

  #book-fab.fab-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
  }

  #book-fab:hover,
  #book-fab:focus-visible {
    background: rgba(140, 100, 240, 0.88);
    box-shadow:
      0 6px 24px rgba(140, 100, 240, 0.6),
      0 0 0 1px rgba(200, 160, 255, 0.3);
    transform: translateY(-2px);
  }

  /* --- Services --- */


  .services-list {
    grid-template-columns: 1fr;
    padding: 0.85rem;
    gap: 0.6rem;
  }

  .service-card-heading { font-size: 1.05rem; }
  .service-card-blurb li { font-size: 0.97rem; }

  /* --- Pricing --- */

  .rate-row { flex-wrap: wrap; gap: 0.4rem; padding: 0.65rem 0.75rem; }
  .rate-row h3 { font-size: 0.95rem; margin: 0; }
  .rate-row p  { font-size: 0.9rem; }
  .rate-row strong { font-size: 1rem; }

  .section-card .note { font-size: 0.85rem; margin: 0.5rem 0 0; }

  .section-card .direct-card-intro,
  .section-card .contact-form-intro { font-size: 0.95rem; margin-bottom: 0.85rem; }

  .direct-link { font-size: 0.95rem; padding: 0.6rem 0.75rem; gap: 0.55rem; }
  .direct-link-icon { font-size: 1rem; }
  .direct-card p { font-size: 1rem; }

  /* --- Forms --- */

  .contact-form { gap: 0.65rem; }
  .form-field   { gap: 0.25rem; }
  label  { font-size: 0.78rem; letter-spacing: 0.06em; }
  input, textarea { font-size: 0.95rem; padding: 0.55rem 0.65rem; }
  textarea { min-height: 110px; }
  .submit-btn { padding: 0.75rem 1rem; font-size: 0.88rem; }
  button  { font-size: 0.9rem; padding: 0.6rem 0.8rem; }

  /* --- Resource grid cards --- */

  .resource-emoji { font-size: 1.5rem; margin-bottom: 0.15rem; }
  .resource-card h2 { font-size: 1rem; margin-bottom: 0.2rem; }
  .resource-card .tagline { font-size: 0.9rem; letter-spacing: 0.02em; }
  .resource-cta { font-size: 0.75rem; margin-top: 0.5rem; }

  /* --- Resource modal (bottom sheet on mobile) --- */

  .resource-modal { 
    padding: 0; 
    align-items: flex-end;
    animation: modalFadeInMobile 250ms ease-out forwards;
  }

  @keyframes modalFadeInMobile {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }

  .resource-modal-card {
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    padding: 1.2rem 1rem 1.5rem;
    animation: bottomSheetSlideIn 350ms cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  }

  @keyframes bottomSheetSlideIn {
    from {
      opacity: 0;
      transform: translateY(-20px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  
  .resource-modal-card h2   { font-size: 1.05rem; margin-bottom: 0.25rem; }
  .resource-modal-card .tagline { font-size: 0.93rem; margin-bottom: 0.6rem; }

  .resource-modal-items,
  .resource-link-list { gap: 0.35rem; }

  .resource-item a { padding: 0.45rem 0.65rem; }
  .resource-item-title { font-size: 0.84rem; }
  .resource-item-desc  { font-size: 0.88rem; }

  .modal-close { right: 0.75rem; top: 0.6rem; font-size: 1.25rem; width: 30px; height: 30px; }
}

/* =============================================================================
   FORM ALERTS
============================================================================= */

.form-alert {
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  font-family: "Cormorant Garamond", serif;
  font-size: 1rem;
  line-height: 1.5;
}

.form-alert-error {
  background: rgba(255, 80, 80, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.35);
  color: var(--error);
}

/* =============================================================================
   REDUCED MOTION
   Respects prefers-reduced-motion for accessibility and low-powered devices.
   Disables animations, parallax transitions, and backdrop-filter blur.
============================================================================= */

@media (prefers-reduced-motion: reduce) {
  /* Kill all CSS animations and transitions */
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Freeze planets and constellations in place */
  .cosmic-planet       { animation: none; opacity: 0.75; }
  .constellation-group { animation: none; opacity: 0.4; }
  .cosmic-scene        { animation: none; opacity: 1; }

  /* Disable parallax CSS transitions on planet wraps */
  .cosmic-planet-wrap  { transition: none; }

  /* Replace backdrop-filter blur with solid background fallback
     (blur is GPU-only and has no CPU fallback — it just disappears) */
  .site-header {
    backdrop-filter: none;
    background: rgba(8, 12, 25, 0.94);
  }

  .section-card {
    backdrop-filter: none;
    background: rgba(16, 18, 38, 0.96);
  }

  /* Scroll behaviour */
  html { scroll-behavior: auto; }
}

/* Backdrop-filter fallback for browsers that don't support it at all */
@supports not (backdrop-filter: blur(1px)) {
  .site-header  { background: rgba(8, 12, 25, 0.94); }
  .section-card { background: rgba(16, 18, 38, 0.96); }
}

/* =============================================================================
   LOW-PERF MODE
   Applied via JS when frame rate can't sustain 30fps (hardware accel disabled,
   weak GPU, throttled CPU). Kills animations and expensive effects.
============================================================================= */

/* Smooth crossfade when switching to .low-perf mode.
   Transitions are added only for properties that change — hover transitions
   on individual elements are left untouched (they're in their own rules). */
.site-header       { transition: backdrop-filter 400ms ease, background 400ms ease; }
.section-card      { transition: backdrop-filter 400ms ease, background 400ms ease,
                                border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
.cosmic-sun-arc    { transition: opacity 400ms ease; }
.cosmic-scene      { transition: opacity 400ms ease; }
/* Planets and constellations already have shorter hover transitions —
   apply the longer 400ms opacity transition only when .low-perf is being added */
.low-perf .cosmic-planet,
.low-perf .constellation-group {
  transition: opacity 400ms ease !important;
}

/* Disable backdrop-filter blur — main GPU-bound offender */
.low-perf .site-header {
  backdrop-filter: none;
  background: rgba(8, 12, 25, 0.94);
}

.low-perf .section-card {
  backdrop-filter: none;
  background: rgba(16, 18, 38, 0.96);
}

.low-perf .resource-modal-backdrop { animation: none; }
.low-perf .resource-modal-card { animation: none; }

/* Stop breathing animations on planets and constellations —
   opacity changes across many elements every frame are cheap with GPU
   compositing but expensive without */
.low-perf .cosmic-planet       { animation: none; opacity: 0.85; }
.low-perf .constellation-group { animation: none; opacity: 0.55; }
.low-perf .cosmic-sun-arc      { animation: none; }
.low-perf .cosmic-scene        { animation: none; opacity: 1; }
