:root {
  --bg: #F6F3F9;
  --ink: #3E3350;
  --heading: #43355C;
  --body-text: #5A4D71;
  --muted: #6B5D85;
  --eyebrow: #8A76A8;
  --cream: #FBF9FD;
  --lavender: #EDE7F4;
  --btn-ink: #4B3A66;
  --divider: #DED4EA;
  --numeral: #B4A2CC;
  --accent: #6E5690;
  --footer-bg: #362A4B;
  --footer-brand: #C9BADC;
  --footer-text: #9D8CB8;
  --veil: #FDFCFE;
  --section-a: rgba(246,243,249,0.72);
  --section-b: rgba(236,229,243,0.66);
  --card-bg: #FBF9FD;
  --on-video: #FDFCFE;
  --on-video-soft: #EDE6F6;
  --on-video-sub: #F0EAF8;
  --nav-solid: rgba(67,53,92,0.92);
  --hero-scrim: linear-gradient(180deg, rgba(56,40,82,0.42) 0%, rgba(56,40,82,0.16) 45%, rgba(84,64,116,0.30) 100%);
  --band-gradient: linear-gradient(160deg, rgba(85,65,111,0.82) 0%, rgba(110,86,144,0.78) 45%, rgba(139,114,172,0.72) 100%);
  --cta-gradient: linear-gradient(180deg, rgba(85,65,111,0.80) 0%, rgba(67,53,92,0.85) 100%);
  --cta-text: #D9CCE8;
  --stripe-a: #DED4EA;
  --stripe-b: #E7DFF1;
  --portrait-label: #7C6B96;
  --gold: #d8b56b; /* threshold gold, reserved for needs-attention accents (crisis banner) */
  --display: 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
}

/* Deep-purple brand theme (build-log gradient #55394f → #120b22) */
html.theme-brand {
  --bg: #120B22;
  --ink: #E8E0F1;
  --heading: #F2ECF7;
  --body-text: #C9BCDA;
  --muted: #A493BF;
  --eyebrow: #B79ED1;
  --divider: rgba(237,231,244,0.16);
  --numeral: #8A6FAE;
  --accent: #C7A9E3;
  --footer-bg: #0C0717;
  --footer-text: #8F7DAB;
  --veil: #120B22;
  --section-a: rgba(18,11,34,0.78);
  --section-b: rgba(45,30,64,0.70);
  --card-bg: #241736;
  --nav-solid: rgba(18,11,34,0.92);
  --hero-scrim: linear-gradient(180deg, rgba(18,11,34,0.55) 0%, rgba(18,11,34,0.22) 45%, rgba(85,57,79,0.50) 100%);
  --band-gradient: linear-gradient(160deg, rgba(85,57,79,0.88) 0%, rgba(56,37,75,0.85) 45%, rgba(18,11,34,0.82) 100%);
  --cta-gradient: linear-gradient(180deg, rgba(56,37,75,0.88) 0%, rgba(18,11,34,0.92) 100%);
  --cta-text: #C9BCDA;
  --stripe-a: #2B1C41;
  --stripe-b: #33224C;
  --portrait-label: #A493BF;
  --display: 'Inter', system-ui, sans-serif;
  --sans: 'Inter', system-ui, sans-serif;
}

html, body { margin: 0; padding: 0; background: var(--bg); }
html { scroll-behavior: smooth; }
body { font-family: var(--sans); color: var(--ink); overflow-x: hidden; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Fixed cloud background (runs behind every page) ---- */
.sky {
  position: fixed; inset: 0; z-index: 0; overflow: hidden;
}
.sky video {
  position: absolute; top: -6%; left: 0; width: 100%; height: 112%;
  object-fit: cover; will-change: transform, filter;
  /* Photosensitivity: until the video decodes its first frame, show a 48px blur of that
     frame (inline, so it's there at first paint) on the cloud tone, never the pale --bg:
     otherwise every page load flashes pale -> clouds. #C69EBD = mean of that frame. */
  background: #C69EBD url('data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD//gAPTGF2YzYzLjEuMTAxAP/bAEMADQkKCwoIDQsKCw4ODQ8TIBUTEhITJxweFyAuKTEwLiktLDM6Sj4zNkY3LC1AV0FGTE5SU1IyPlphWlBgSlFST//bAEMBDg4OExETJhUVJk81LTVPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT//AABEIABsAMAMBIgACEQEDEQH/xAAYAAADAQEAAAAAAAAAAAAAAAADBAUGAv/EACkQAAICAQMDAgYDAAAAAAAAAAECAxEEABIhBRMxYXEUIiMyQVGBofD/xAAYAQADAQEAAAAAAAAAAAAAAAABAgQAA//EAB0RAAICAwADAAAAAAAAAAAAAAABAhEDEiEiMVH/2gAMAwEAAhEDEQA/ANIE+Ixoi0YkiFqWK7SDpfI6MFRuzWyr3efcaP0TMxRib+V3CmjJ4/i9P9PyUmU/KyKp43Hg6d5ZRbKKZDhwZ7ESRk7vBA8auRRxwwBsllUL4J450Qse/wDSALVYv9a6yzDMiQZMRZZrFgfaQL/x0sszl7C22TsjreGsP0HJeSwDW2vUH31Gw4l2tGZioPBojke3nS3Velr3ZTFMCIiLVWsgam42RJjzBUVnkkNBxyfTVmLXXxA4OzVxYuMsnbRRGSu6Mg3Yrn3Ggyu+NkMqtZZftP6PppCWR0x8JEalKgGvfVHqddkPQ3ggBq5rnUzXenRcHsPNaKLfKAWHjRcnKWdVEZsN61/es9jSyGKMFiQzkG/yNNxsVjG01pHiVmf0RzunvHMZEPF3QOlYoRDlxlgr0bO78euq+UxMYBPFaWgAEmRwOFFWL1TB1HoU7P/Z') center / cover no-repeat;
}
.sky .veil {
  position: absolute; inset: 0; background: var(--veil); opacity: 0; will-change: opacity;
}

.page { position: relative; z-index: 1; }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 48px;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}
.nav--solid {
  background: var(--nav-solid);
  box-shadow: 0 2px 20px rgba(46,32,68,0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.nav-brand {
  font-family: var(--display); font-size: 18px; letter-spacing: 0.18em;
  color: var(--cream); text-decoration: none; font-weight: 600;
  text-shadow: 0 1px 12px rgba(46,32,68,0.45);
}
.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-link {
  color: var(--cream); text-decoration: none; font-size: 14px;
  letter-spacing: 0.01em; font-weight: 500;
  text-shadow: 0 1px 10px rgba(46,32,68,0.5);
}
.nav-cta {
  color: var(--btn-ink); background: var(--lavender); text-decoration: none;
  font-size: 14px; letter-spacing: 0.01em;
  padding: 11px 24px; border-radius: 999px; font-weight: 600;
  transition: background 0.25s ease;
}
.nav-cta:hover { background: #FFFFFF; }

/* ---- Hero (homepage only) ---- */
.hero {
  position: relative; height: 100vh; min-height: 640px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-scrim {
  position: absolute; inset: 0;
  background: var(--hero-scrim);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 0 24px;
  will-change: transform, opacity;
  animation: fadeUp 1.2s ease both;
}
.hero-eyebrow {
  margin: 0 0 20px; color: var(--on-video-soft); font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}
.hero h1 {
  margin: 0; font-family: var(--display); font-weight: 500;
  font-size: 80px; line-height: 0.98; letter-spacing: -0.035em; color: var(--on-video);
  text-shadow: 0 2px 30px rgba(46,32,68,0.4);
}
.hero h1 em { font-style: normal; font-weight: 500; }
.hero-sub {
  margin: 28px auto 0; max-width: 620px; color: var(--on-video-sub);
  font-size: 18px; font-weight: 400; line-height: 1.6;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.btn-solid {
  background: var(--cream); color: var(--btn-ink); text-decoration: none;
  font-size: 14px; letter-spacing: 0.01em;
  padding: 16px 36px; border-radius: 999px; font-weight: 600;
  --btn-shadow: 0 8px 30px rgba(46,32,68,0.35);
  transition: background 0.25s ease;
}
.btn-solid:hover { background: var(--lavender); --btn-shadow: 0 12px 34px rgba(46,32,68,0.42); }
.btn-ghost {
  border: 1px solid rgba(251,249,253,0.6); color: var(--cream); text-decoration: none;
  font-size: 14px; letter-spacing: 0.01em;
  padding: 16px 36px; border-radius: 999px; font-weight: 600;
  transition: background 0.25s ease;
}
.btn-ghost:hover { background: rgba(251,249,253,0.12); }
.hero-scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: var(--on-video-soft); font-size: 12px; letter-spacing: 0.3em; text-transform: uppercase; opacity: 0.8;
}

/* ---- Welcome / Start Here (homepage) ---- */
.welcome { position: relative; padding: 130px 24px 110px; background: var(--section-a); }
.welcome-inner { max-width: 700px; margin: 0 auto; text-align: center; }
/* Welcome portal: the enso draws itself in; ambient sky drifts inside the ring */
.welcome-portal { max-width: 320px; margin: 0 auto 18px; }
.portal-frame { position: relative; aspect-ratio: 493 / 482; }
.portal-sky, .portal-sky-still {
  position: absolute; left: 9.25%; top: 6.68%; width: 83.5%; aspect-ratio: 1;
  border-radius: 50%; object-fit: cover;
  -webkit-mask-image: radial-gradient(circle, #000 55%, transparent 96%);
  mask-image: radial-gradient(circle, #000 55%, transparent 96%);
}
.portal-sky-still { background: radial-gradient(circle at 40% 35%, var(--section-b), var(--section-a)); }
.portal-enso { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--accent); }
.enso-stroke { fill: currentColor; }
.welcome-portal.portal-ready .enso-reveal { stroke-dashoffset: 1000; }
.welcome-portal.portal-drawn .enso-reveal {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 2.2s cubic-bezier(0.33, 0, 0.2, 1);
}
/* Scoped to .welcome-portal (0,2,0), not just the bare class (0,1,0): .welcome p
   (0,1,1) comes later in the cascade and would otherwise win on these two --
   the same descendant-selector-beats-single-class trap noted elsewhere in this file. */
.welcome-portal .portal-wordmark {
  font-family: var(--sans); font-weight: 600; font-size: 12px;
  letter-spacing: 0.20em; text-transform: uppercase;
  color: var(--muted); margin: 10px 0 0 0.2em;
}
.welcome-portal .portal-motto {
  font-family: var(--display); font-weight: 500; font-size: 50px;
  line-height: 1.08; letter-spacing: -0.025em;
  color: var(--heading); margin: 14px 0 0;
}
@media (prefers-reduced-motion: reduce) { .portal-sky { display: none; } }
.welcome h2 {
  font-family: var(--display); font-weight: 500;
  font-size: 44px; line-height: 1.1; letter-spacing: -0.025em; color: var(--heading); margin: 0 0 28px;
}
.welcome p { font-size: 18px; font-weight: 400; line-height: 1.7; color: var(--body-text); margin: 0 0 20px; }
.welcome p:last-child { margin-bottom: 0; }

/* ---- Section shared (eyebrow + title used across every page) ---- */
.eyebrow {
  color: var(--eyebrow); font-size: 13px; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; margin: 0 0 14px;
}
.section-title {
  font-family: var(--display); font-weight: 500;
  font-size: 36px; line-height: 1.15; letter-spacing: -0.02em; color: var(--heading); margin: 0;
}

/* ---- Start Here teaser links (homepage) ---- */
.start-links {
  display: flex; flex-direction: column; gap: 40px;
  margin: 56px auto 0; max-width: 620px; text-align: left;
}
.start-link-block h3 {
  font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.3;
  letter-spacing: -0.01em; color: var(--heading); margin: 0 0 8px;
}
.start-link-block p { font-size: 16px; font-weight: 400; line-height: 1.6; margin: 0 0 10px; }
.arrow-link {
  color: var(--accent); text-decoration: none; font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em; border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, color 0.25s ease;
}
.arrow-link:hover { border-color: currentColor; }
.arrow-link + .arrow-link { margin-left: 20px; }

/* ---- Page head (subpages: How I Work / What I Help With / Therapy Approaches) ---- */
.page-head {
  position: relative; padding: 150px 24px 60px; text-align: center; background: var(--section-a);
}
.page-head .eyebrow { display: flex; justify-content: center; }
.page-head h1 {
  font-family: var(--display); font-weight: 500; margin: 0;
  font-size: 60px; line-height: 1.05; letter-spacing: -0.03em; color: var(--heading);
}
.page-head p { max-width: 620px; margin: 20px auto 0; font-size: 17px; font-weight: 400; line-height: 1.6; color: var(--body-text); }

/* ---- Prose page (What I Help With / Therapy Approaches: single-column long-form) ---- */
.prose-page { padding: 20px 24px 120px; background: var(--section-b); }
.prose-inner { max-width: 720px; margin: 0 auto; }
.prose-inner h2 {
  font-family: var(--display); font-weight: 600; font-size: 30px; line-height: 1.2;
  letter-spacing: -0.015em; color: var(--heading); margin: 56px 0 20px;
}
.prose-inner h2:first-child { margin-top: 0; }
.prose-inner p { font-size: 18px; font-weight: 400; line-height: 1.7; color: var(--body-text); margin: 0 0 20px; }
.prose-inner p:last-of-type { margin-bottom: 0; }

/* ---- Approach / How I Work ---- */
.approach { padding: 120px 24px; background: var(--section-a); }
.approach-inner {
  max-width: 1080px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(280px, 5fr) minmax(320px, 7fr);
  gap: 72px; align-items: start;
}
.approach .section-title { line-height: 1.15; margin-bottom: 24px; }
.approach-lede { font-size: 18px; font-weight: 400; line-height: 1.7; color: var(--body-text); margin: 0 0 18px; }
.approach-lede:last-of-type { margin-bottom: 0; }
.modality-list { display: flex; flex-direction: column; }
.modality {
  display: grid; grid-template-columns: 120px 1fr; gap: 24px;
  padding: 26px 0; border-bottom: 1px solid var(--divider); align-items: baseline;
}
.modality-abbr { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--accent); }
.modality-name { font-size: 16px; font-weight: 500; color: var(--heading); letter-spacing: 0.02em; }
.modality-body { font-size: 15px; font-weight: 300; line-height: 1.7; color: var(--muted); margin-top: 6px; }
.modality-more { margin-top: 28px; }

/* ---- About Me ---- */
.about { padding: 150px 24px 120px; background: var(--section-b); }
.about-inner {
  max-width: 980px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(260px, 4fr) minmax(320px, 7fr);
  gap: 64px; align-items: start;
}
.about-portrait {
  aspect-ratio: 3 / 4; border-radius: 200px 200px 4px 4px;
  background: repeating-linear-gradient(135deg, var(--stripe-a) 0px, var(--stripe-a) 14px, var(--stripe-b) 14px, var(--stripe-b) 28px);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about .section-title { margin-bottom: 8px; }
.about-credentials {
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--eyebrow); margin: 0 0 26px;
}
.about-copy p { font-size: 18px; font-weight: 400; line-height: 1.7; color: var(--body-text); margin: 0 0 18px; }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy p:first-of-type {
  font-family: var(--display); font-weight: 500; font-size: 34px;
  line-height: 1.2; letter-spacing: -0.02em; color: var(--heading);
}

/* ---- Footer ---- */
.footer {
  background: var(--footer-bg); padding: 44px 48px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
}
.footer-brand { font-family: var(--display); font-weight: 600; font-size: 17px; letter-spacing: 0.18em; color: var(--footer-brand); }
.footer-meta { font-size: 13px; font-weight: 400; line-height: 1.5; color: var(--footer-text); }

/* ---- Theme toggle (review tool: lavender ↔ deep purple) ---- */
.theme-toggle {
  position: fixed; right: 16px; bottom: 60px; z-index: 60;
  font-family: var(--sans); font-size: 12px; letter-spacing: 0.08em;
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(251,249,253,0.35);
  background: rgba(67,53,92,0.75); color: var(--cream);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s ease;
}
.theme-toggle:hover { background: rgba(67,53,92,0.92); }

/* ---- 988 crisis banner (persistent; threshold gold = needs-attention accent) ---- */
body { padding-bottom: 44px; }
.crisis-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: rgba(24,16,38,0.96); color: var(--on-video-soft);
  border-top: 1px solid rgba(216,181,107,0.55);
  font-size: 13.5px; font-weight: 300; letter-spacing: 0.03em;
  text-align: center; padding: 11px 16px; line-height: 1.5;
}
.crisis-banner a { color: var(--gold); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }

/* ---- AI chat widget ---- */
:root {
  --chat-in-bg: var(--lavender);
  --chat-in-text: var(--body-text);
  --chat-out-bg: var(--accent);
  --chat-out-text: var(--cream);
}
html.theme-brand {
  --chat-in-bg: #2C2040;
  --chat-in-text: var(--heading);
  --chat-out-bg: var(--accent);
  --chat-out-text: #0C0717;
}

.chat-launcher {
  position: fixed; right: 16px; bottom: 112px; z-index: 60;
  font-family: var(--sans); font-size: 13px; letter-spacing: 0.06em; font-weight: 500;
  padding: 12px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(251,249,253,0.35);
  background: var(--nav-solid); color: var(--cream);
  --btn-shadow: 0 6px 24px rgba(46,32,68,0.3);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s ease;
}
.chat-launcher:hover { background: rgba(67,53,92,0.98); --btn-shadow: 0 10px 28px rgba(46,32,68,0.38); }

.chat-panel {
  position: fixed; right: 16px; bottom: 164px; z-index: 60;
  width: 340px; max-width: calc(100vw - 32px); max-height: 460px;
  display: flex; flex-direction: column;
  background: var(--card-bg); border: 1px solid var(--divider); border-radius: 16px;
  box-shadow: 0 20px 60px rgba(46,32,68,0.35);
  overflow: hidden;
  opacity: 0; transform: translateY(12px); visibility: hidden; pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
}
.chat-panel.is-open {
  opacity: 1; transform: translateY(0); visibility: visible; pointer-events: auto;
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0s;
}
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 12px; border-bottom: 1px solid var(--divider); flex: 0 0 auto;
}
.chat-header h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 18px; color: var(--heading); }
.chat-close {
  background: none; border: none; cursor: pointer; font-size: 20px; line-height: 1;
  color: var(--muted); padding: 4px 8px; border-radius: 6px;
}
.chat-close:hover { color: var(--heading); background: var(--lavender); }
.chat-disclaimer {
  flex: 0 0 auto; margin: 0; font-size: 11.5px; font-weight: 300; line-height: 1.5;
  color: var(--muted); background: var(--lavender); padding: 10px 18px; border-bottom: 1px solid var(--divider);
}
.chat-disclaimer a { color: var(--gold); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.chat-messages {
  flex: 1 1 auto; overflow-y: auto; padding: 14px 16px; min-height: 120px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; font-weight: 300; line-height: 1.55; word-wrap: break-word; }
.chat-bubble--visitor { align-self: flex-end; background: var(--chat-out-bg); color: var(--chat-out-text); border-bottom-right-radius: 4px; }
.chat-bubble--assistant { align-self: flex-start; background: var(--chat-in-bg); color: var(--chat-in-text); border-bottom-left-radius: 4px; }
.chat-bubble--crisis { border: 1.5px solid var(--gold); }
.chat-typing-dot {
  display: inline-block; width: 5px; height: 5px; margin-right: 3px; border-radius: 50%;
  background: currentColor; opacity: 0.6; animation: chatTypingPulse 1.2s ease-in-out infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.3s; margin-right: 0; }
@keyframes chatTypingPulse { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.chat-input-row {
  flex: 0 0 auto; display: flex; gap: 8px; padding: 12px 16px 16px; border-top: 1px solid var(--divider);
}
.chat-input {
  flex: 1; font-family: var(--sans); font-size: 14px; padding: 10px 14px; border-radius: 999px;
  border: 1px solid var(--divider); background: var(--bg); color: var(--ink); min-width: 0;
}
.chat-input:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; }
.chat-input:disabled { opacity: 0.6; cursor: not-allowed; }
.chat-send {
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
  padding: 10px 20px; border-radius: 999px; border: none; cursor: pointer;
  background: var(--btn-ink); color: var(--cream); transition: opacity 0.2s ease;
}
.chat-send:hover { opacity: 0.88; }
.chat-send:disabled { opacity: 0.55; cursor: not-allowed; }

@media (max-width: 420px) {
  .chat-panel { right: 8px; left: 8px; width: auto; max-width: none; }
}

/* ---- Schedule modal: particle enso behind a glass card of open slots ---- */
.schedule-modal {
  position: fixed; inset: 0; z-index: 80;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  background: rgba(54,42,75,0.72);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.45s ease, visibility 0s linear 0.45s;
}
.schedule-modal.is-open {
  opacity: 1; visibility: visible; pointer-events: auto;
  transition: opacity 0.45s ease, visibility 0s linear 0s;
}
.schedule-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.schedule-still {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
  opacity: 0.32;
}
/* The still is a clone of .portal-enso, which is absolutely positioned inside its
   own frame — reset it so flex centring applies. */
.schedule-still svg { position: static; width: 78vmin; height: auto; color: var(--accent); }
.schedule-card {
  position: relative; z-index: 1;
  width: 100%; max-width: 560px; max-height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  background: rgba(251,249,253,0.86);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  border: 1px solid rgba(222,212,234,0.7); border-radius: 20px;
  box-shadow: 0 30px 80px rgba(30,20,48,0.45);
  overflow: hidden;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.schedule-modal.is-open .schedule-card { transform: translateY(0) scale(1); }
.schedule-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 28px 28px 16px;
}
.schedule-head h2 {
  font-family: var(--sans); font-weight: 500; font-size: 26px; margin: 0 0 6px;
  color: var(--heading); letter-spacing: 0.01em;
}
.schedule-head p { margin: 0; font-size: 14px; color: var(--muted); font-weight: 300; }
.schedule-close {
  flex: none; width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--divider);
  background: transparent; color: var(--ink); font-size: 22px; line-height: 1; cursor: pointer;
}
.schedule-close:hover { background: var(--lavender); }
.schedule-body { padding: 4px 28px 28px; }
.schedule-body > p { margin: 0 0 22px; font-size: 15px; color: var(--body-text); font-weight: 300; line-height: 1.65; }
.schedule-body .btn-solid { display: inline-block; }
.schedule-body > p.schedule-aside { margin: 30px 0 0; font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.5; }
@media (max-width: 480px) {
  .schedule-modal { padding: 12px; }
  .schedule-head, .schedule-body { padding-left: 20px; padding-right: 20px; }
}

/* ---- Cloud transition: nav links fly through the clouds ----
   No background here on purpose: the canvas draws real cloud video (zoomed,
   blurred, tunnel-masked), and a tunnel opening must reveal the actual page
   underneath, not a second gradient layer between the canvas and the page. */
.cloud-transition {
  position: fixed; inset: 0; z-index: 75;
  opacity: 0; pointer-events: none;
  transition: opacity 0.18s ease;
}
.cloud-transition.is-active { opacity: 1; pointer-events: auto; }
.cloud-transition canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

/* Cross-page arrival: painted before first paint by the inline <head> guard, so
   the destination never flashes uncovered. A flat approximation of the cloud
   video's own dominant tone -- close enough that the canvas swap to the real
   footage underneath it isn't a jarring color jump. */
html.cloud-arriving::before {
  content: ''; position: fixed; inset: 0; z-index: 75;
  background: linear-gradient(160deg, var(--section-b), var(--section-a));
}

/* ---- Responsive ---- */
@media (max-width: 800px) {
  .nav { padding: 18px 20px; }
  .nav-links { gap: 18px; }
  .nav-link { display: none; }
  .approach-inner, .about-inner { grid-template-columns: 1fr; gap: 48px; }
  .about-portrait { max-width: 320px; margin: 0 auto; }
  .footer { padding: 36px 24px; justify-content: center; text-align: center; }

  /* Typography spec: mobile sizes (Kinship Website Typography & Layout) */
  .hero h1 { font-size: 48px; }
  .welcome-portal .portal-motto { font-size: 36px; }
  .welcome h2 { font-size: 36px; }
  .section-title { font-size: 31px; }
  .start-link-block h3 { font-size: 22px; }
  .page-head h1 { font-size: 42px; }
  .prose-inner h2 { font-size: 26px; }
  .prose-inner p { font-size: 17px; }
  .approach-lede { font-size: 17px; }
  .about-copy p { font-size: 17px; }
  .about-copy p:first-of-type { font-size: 32px; }
}

/* ---- Reduced motion: calm everything down in the same pass ---- */
/* Button motion, one component. Every button opts in with .btn-anim: a 2px lift
   and a soft halo on hover (the same #C9BADC the enso particles use), a short
   press on :active, and one shared focus ring. Families keep their own colours;
   their drop shadows live in --btn-shadow so the halo can stack on top.
   Tune the feel here, not per button. Reduced-motion overrides are below. */
.btn-anim {
  --btn-lift: -2px;
  --btn-press: 0.97;
  --btn-halo-size: 6px;
  --btn-halo: 0 0 0 0 rgba(201,186,220,0);
  --btn-shadow: 0 0 0 0 transparent;
  --btn-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  display: inline-block;
  transform: translateY(0) scale(1);
  box-shadow: var(--btn-halo), var(--btn-shadow);
  transition: transform 0.45s var(--btn-ease), box-shadow 0.45s var(--btn-ease),
              background 0.25s ease, color 0.25s ease, opacity 0.2s ease;
}
.btn-anim:hover {
  --btn-halo: 0 0 0 var(--btn-halo-size) rgba(201,186,220,0.35);
  transform: translateY(var(--btn-lift));
}
.btn-anim:active {
  transform: translateY(0) scale(var(--btn-press));
  transition-duration: 0.12s;
}
.btn-anim:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.btn-anim:disabled { --btn-halo: 0 0 0 0 rgba(201,186,220,0); transform: none; }

/* ---- What Is Kinship: scroll-driven flower stage ---- */
.kinship-intro { position: relative; padding: 150px 24px 60px; background: var(--section-a); }
.kinship-intro-inner { max-width: 680px; margin: 0 auto; text-align: left; }
.kinship-intro-inner h1 {
  font-family: var(--display); font-weight: 500; font-size: 44px; line-height: 1.15;
  color: var(--heading); margin: 10px 0 22px;
}
.kinship-intro-inner .lede {
  font-family: var(--display); font-weight: 500; font-size: 20px; color: var(--accent); margin: 0 0 24px;
}
.kinship-intro-inner p { font-size: 17px; line-height: 1.7; color: var(--body-text); margin: 0 0 18px; }
.kinship-intro-inner p:last-child { margin-bottom: 0; }

.kinship-stage { position: relative; height: 320vh; background: var(--section-b); }
.kinship-stage-inner {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  display: grid; grid-template-columns: 40% 60%;
}
.kinship-canvas {
  grid-column: 1; width: 100%; height: 100%; display: block;
}
.kinship-fallback-img { display: none; }
.kinship-copy {
  grid-column: 2; position: relative; height: 100%;
  display: flex; align-items: center; padding: 0 56px 0 40px;
}
.kinship-copy-scrim {
  position: absolute; inset: 0; background: rgba(253,252,254,0.30); pointer-events: none;
}
html.theme-brand .kinship-copy-scrim { background: rgba(18,11,34,0.30); }
.kinship-progress {
  position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 2px; height: 220px; display: flex; flex-direction: column;
}
.kinship-progress-track { position: relative; flex: 1; background: var(--divider); border-radius: 2px; }
.kinship-progress-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0%;
  background: var(--accent); border-radius: 2px; transition: height 0.15s linear;
}
.kinship-marker {
  position: absolute; left: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--divider); transform: translateY(-50%);
}
.kinship-marker.is-reached { background: var(--accent); }
.belief {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center;
  padding-left: 24px; opacity: 0; pointer-events: none; transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.belief.is-active { opacity: 1; pointer-events: auto; transform: translateY(0); }
.belief h2 {
  font-family: var(--display); font-weight: 500; font-size: 28px; line-height: 1.25;
  color: var(--heading); margin: 0 0 6px;
}
.belief .kinship-equation {
  font-family: var(--display); font-weight: 500; font-size: 18px; color: var(--accent); margin: 6px 0 0;
}
.belief p { font-size: 16px; line-height: 1.65; color: var(--body-text); margin: 12px 0 0; }
.belief p:first-of-type { margin-top: 12px; }

.kinship-release { padding: 120px 24px; background: var(--section-a); text-align: center; }
.kinship-release-inner { max-width: 480px; margin: 0 auto; }
.kinship-release-inner p { font-size: 17px; color: var(--body-text); margin: 0 0 28px; }

@media (max-width: 1023px) {
  .kinship-stage-inner { display: block; }
  .kinship-canvas { position: absolute; inset: 0; grid-column: auto; }
  .kinship-copy {
    position: absolute; left: 0; right: 0; bottom: 0; height: auto;
    padding: 60px 24px 48px; align-items: flex-start;
  }
  .kinship-copy-scrim { background: linear-gradient(180deg, rgba(253,252,254,0) 0%, rgba(253,252,254,0.72) 45%, rgba(253,252,254,0.9) 100%); }
  html.theme-brand .kinship-copy-scrim { background: linear-gradient(180deg, rgba(18,11,34,0) 0%, rgba(18,11,34,0.72) 45%, rgba(18,11,34,0.9) 100%); }
  .kinship-progress { left: auto; right: 16px; top: 40px; transform: none; height: 140px; }
  .belief { position: absolute; inset: auto 0 0 0; padding-left: 0; }
  .belief h2 { font-size: 22px; }
}

html.kinship-static .kinship-stage { height: auto; }
html.kinship-static .kinship-stage-inner { position: static; height: auto; display: block; }
html.kinship-static .kinship-canvas { display: none; }
html.kinship-static .kinship-fallback-img { display: block; width: 100%; max-width: 360px; margin: 0 auto 40px; }
html.kinship-static .kinship-copy-scrim { display: none; }
html.kinship-static .kinship-progress { display: none; }
html.kinship-static .kinship-copy {
  position: static; height: auto; display: block; padding: 24px;
}
html.kinship-static .belief {
  position: static; opacity: 1; pointer-events: auto; transform: none;
  padding: 32px 0; border-bottom: 1px solid var(--divider); max-width: 620px; margin: 0 auto;
}
html.kinship-static .belief:last-child { border-bottom: none; }

.kinship-svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-content { animation: none; }
  .sky video, .hero-content, .quote-band-bg, .quote-band blockquote { will-change: auto; }
  .nav, .nav-cta, .btn-solid, .btn-ghost { transition: none; }
  .chat-panel, .chat-launcher, .chat-send { transition: none; }
  .chat-typing-dot { animation: none; }
  .schedule-modal, .schedule-card { transition: none; }
  .btn-anim { transition: none; }
  .btn-anim:hover, .btn-anim:active { transform: none; }
  .schedule-canvas { display: none; }
  .schedule-still { display: flex; }
  .cloud-transition { display: none; }
  html.cloud-arriving::before { content: none; }
  .kinship-stage { height: auto; }
  .kinship-stage-inner { position: static; height: auto; display: block; }
  .kinship-canvas { display: none; }
  .kinship-fallback-img { display: block; width: 100%; max-width: 360px; margin: 0 auto 40px; }
  .kinship-copy-scrim { display: none; }
  .kinship-progress { display: none; }
  .kinship-copy { position: static; height: auto; display: block; padding: 24px; }
  .belief {
    position: static; opacity: 1; pointer-events: auto; transform: none;
    padding: 32px 0; border-bottom: 1px solid var(--divider); max-width: 620px; margin: 0 auto;
  }
  .belief:last-child { border-bottom: none; }
}
