/* ── Skip link (accessibility) ── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 8px;
  z-index: 10000;
  background: var(--purple-deep);
  color: var(--ivory);
  padding: 8px 16px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
  transition: top .15s ease;
}
.skip-link:focus { top: 0; }

/* ============================================================
   THE ASE ACADEMY — Global Stylesheet
   Kaleidoscope Aesthetic | Royal Purple · Burnt Orange · Lime Green
   ============================================================ */

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

:root {
  /* ── Core Palette ── */
  --purple-deep:      #2C0B47;   /* near-black royal */
  --purple-royal:     #5B2A86;
  --purple-mid:       #7B3BA8;
  --purple-soft:      #B199CE;
  --purple-mist:      #ECE4F5;

  --orange-burnt:     #C0531A;
  --orange-mid:       #D9792F;
  --orange-soft:      #F0B88A;
  --orange-mist:      #FBE9D7;

  --lime:             #B5D33D;
  --lime-deep:        #8FA82A;
  --lime-soft:        #E3EFAE;

  --ivory:            #FBF8F3;
  --ivory-warm:       #F5EFE4;
  --parchment:        #F9F3E8;
  --ink:              #1A1327;
  --ink-mid:          #3A2F4E;
  --ink-soft:         #5D5173;
  --muted:            #8F85A0;
  --line:             #E7E1ED;

  /* ── Semantic ── */
  --bg:               var(--ivory);
  --bg-alt:           var(--parchment);
  --bg-dark:          var(--purple-deep);
  --primary:          var(--purple-royal);
  --primary-dark:     var(--purple-deep);
  --primary-light:    var(--purple-mist);
  --accent:           var(--orange-burnt);
  --accent-light:     var(--orange-mist);
  --highlight:        var(--lime);
  --text:             var(--ink);
  --text-mid:         var(--ink-mid);
  --text-soft:        var(--ink-soft);
  --border:           var(--line);

  /* ── Typography ── */
  --font-display:     'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-body:        'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* ── Layout ── */
  --max-width:        1180px;
  --max-reading:      760px;
  --nav-height:       76px;

  --radius-sm:        6px;
  --radius-md:        14px;
  --radius-lg:        24px;
  --radius-xl:        36px;

  --shadow-sm:        0 2px 6px rgba(44, 11, 71, 0.06);
  --shadow-md:        0 6px 24px rgba(44, 11, 71, 0.09);
  --shadow-lg:        0 18px 48px rgba(44, 11, 71, 0.14);
  --shadow-glow:      0 0 40px rgba(91, 42, 134, 0.22);

  --ease:             cubic-bezier(.2,.8,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--accent); }
button { font-family: inherit; cursor: pointer; border: 0; background: transparent; }

/* ── Typography ── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.15;
  color: var(--primary-dark);
  font-weight: 600;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.8rem); font-weight: 600; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.65rem); }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { margin-bottom: 1.1rem; color: var(--text-mid); }
p:last-child { margin-bottom: 0; }
em { font-style: italic; color: var(--accent); }
strong { color: var(--text); font-weight: 600; }
.serif { font-family: var(--font-display); }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 999px;
  background: rgba(192, 83, 26, 0.05);
  margin-bottom: 1.25rem;
}
.accent-word { color: var(--accent); font-style: italic; }
.lime-word { color: var(--lime-deep); font-weight: 600; }

/* ── Layout helpers ── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-reading); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-royal) 100%);
  color: var(--ivory);
}
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--ivory); }
.section-dark p { color: rgba(251, 248, 243, 0.85); }
.section-title { text-align: center; margin-bottom: 14px; }
.section-subtitle {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
  color: var(--text-soft);
  font-size: 1.06rem;
}

/* ── Kaleidoscope motif — shared background decoration ── */
/* A subtle six-fold rotational pattern that sits behind hero and section
   dividers. Inline SVG via data URI so no external request. */
.kaleido-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-repeat: no-repeat;
  opacity: .55;
  z-index: 0;
}
.kaleido-soft {
  background-image:
    radial-gradient(circle at 20% 10%, rgba(192, 83, 26, 0.14), transparent 42%),
    radial-gradient(circle at 80% 30%, rgba(91, 42, 134, 0.20), transparent 48%),
    radial-gradient(circle at 60% 90%, rgba(181, 211, 61, 0.14), transparent 44%);
}
.kaleido-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: .85;
}
.kaleido-watermark {
  position: absolute;
  right: -120px; top: 50%;
  transform: translateY(-50%);
  width: 640px; height: 640px;
  opacity: .07;
  pointer-events: none;
  animation: slowspin 120s linear infinite;
}
@keyframes slowspin {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .kaleido-watermark { animation: none; }
}

/* ── Nav ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: rgba(251, 248, 243, 0.92);
  backdrop-filter: blur(12px) saturate(120%);
  -webkit-backdrop-filter: blur(12px) saturate(120%);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex; align-items: center;
  transition: box-shadow .3s var(--ease);
}
.site-nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary-dark);
  letter-spacing: 0.01em;
}
.nav-logo:hover { color: var(--accent); }
.nav-logo .logo-mark {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    var(--purple-royal) 0deg 60deg,
    var(--orange-burnt) 60deg 120deg,
    var(--lime) 120deg 180deg,
    var(--purple-mid) 180deg 240deg,
    var(--orange-mid) 240deg 300deg,
    var(--lime-deep) 300deg 360deg);
  position: relative;
  box-shadow: inset 0 0 0 3px rgba(251, 248, 243, 0.9),
              inset 0 0 0 4px rgba(44, 11, 71, 0.4),
              0 2px 6px rgba(44, 11, 71, 0.15);
  animation: slowspin 40s linear infinite;
}
.nav-logo .logo-mark::after {
  content: "";
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: var(--ivory);
  box-shadow: inset 0 0 0 1px var(--primary);
}
.nav-links {
  display: flex; gap: 28px; list-style: none;
  align-items: center;
}
.nav-links a {
  color: var(--text-mid);
  font-size: .95rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--lime));
  border-radius: 2px;
}
.nav-cta {
  background: var(--primary);
  color: var(--ivory) !important;
  padding: 10px 18px !important;
  border-radius: 999px;
  transition: all .2s var(--ease);
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-cta.active::after { display: none; }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  flex-direction: column;
  justify-content: center; align-items: center;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--primary-dark);
  transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  letter-spacing: .01em;
  transition: all .25s var(--ease);
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  line-height: 1;
}
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-sm { padding: 8px 18px; font-size: .88rem; }
.btn-primary {
  background: var(--primary);
  color: var(--ivory);
  box-shadow: 0 4px 14px rgba(91, 42, 134, 0.25);
}
.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(91, 42, 134, 0.35);
  color: var(--ivory);
}
.btn-accent {
  background: var(--accent);
  color: var(--ivory);
  box-shadow: 0 4px 14px rgba(192, 83, 26, 0.25);
}
.btn-accent:hover {
  background: #A64614;
  transform: translateY(-2px);
  color: var(--ivory);
}
.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: var(--ivory);
  transform: translateY(-2px);
}
.btn-ghost {
  background: transparent;
  color: var(--primary);
  padding: 12px 20px;
}
.btn-ghost:hover { color: var(--accent); }
.btn-lime {
  background: var(--lime);
  color: var(--purple-deep);
  font-weight: 700;
}
.btn-lime:hover { background: var(--lime-deep); color: var(--ivory); }

/* ── Hero ── */
.hero {
  position: relative;
  padding: calc(var(--nav-height) + 80px) 0 100px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 80% 20%, var(--purple-mist) 0%, transparent 55%),
    radial-gradient(ellipse at 15% 80%, var(--orange-mist) 0%, transparent 60%),
    linear-gradient(180deg, var(--ivory) 0%, var(--bg-alt) 100%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero h1 em { color: var(--accent); font-style: italic; }
.hero-lead {
  font-size: 1.18rem;
  color: var(--text-mid);
  max-width: 520px;
  margin: 1.25rem 0 2rem;
  line-height: 1.65;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Kaleidoscope visual (hero) ── */
.kaleidoscope-visual {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
}
.kaleidoscope-visual svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 16px 40px rgba(91, 42, 134, 0.22));
}
.kaleidoscope-visual .kaleido-ring-outer { animation: slowspin 90s linear infinite; transform-origin: center; }
.kaleidoscope-visual .kaleido-ring-inner { animation: slowspin 60s linear infinite reverse; transform-origin: center; }

/* ── Five C / ring graphic ── */
.five-c-graphic {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}
.five-c-graphic .c-ring {
  position: absolute; inset: 14%;
  border-radius: 50%;
  background:
    conic-gradient(from 18deg,
      var(--purple-royal) 0deg 72deg,
      var(--orange-burnt) 72deg 144deg,
      var(--lime-deep) 144deg 216deg,
      var(--purple-mid) 216deg 288deg,
      var(--orange-mid) 288deg 360deg);
  box-shadow: inset 0 0 0 8px var(--ivory), 0 16px 48px rgba(91, 42, 134, 0.22);
  animation: slowspin 120s linear infinite;
}
.five-c-graphic .c-center {
  position: absolute;
  inset: 30%;
  border-radius: 50%;
  background: var(--ivory);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: inset 0 0 0 1px var(--border), 0 8px 24px rgba(44, 11, 71, 0.1);
  padding: 16px;
  font-size: 1.1rem;
  line-height: 1.25;
}
.five-c-graphic .c-center small {
  display: block;
  margin-top: 6px;
  font-family: var(--font-body);
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 500;
}
.five-c-graphic .c-node {
  position: absolute;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--primary-dark);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.five-c-graphic .c-node small {
  display: block;
  font-weight: 400;
  font-size: .68rem;
  color: var(--text-soft);
  margin-top: 2px;
}
.five-c-graphic .curiosity     { top: -4%;  left: 50%; transform: translateX(-50%); }
.five-c-graphic .connectedness { top: 30%;  right: -8%; }
.five-c-graphic .coregulation  { bottom: 4%; right: 10%; }
.five-c-graphic .compassion    { bottom: 4%; left: 10%; }
.five-c-graphic .contribution  { top: 30%;  left: -8%; }

/* ── Stats bar ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stat-item { padding: 32px 20px; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: 0; }
.stat-number {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: .82rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}

/* ── Cards ── */
.card-grid {
  display: grid;
  gap: 24px;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent), var(--lime));
  opacity: 0;
  transition: opacity .3s var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--purple-soft);
}
.card:hover::before { opacity: 1; }
.card h3 { margin-bottom: 12px; color: var(--primary-dark); }
.card .card-icon {
  width: 54px; height: 54px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  font-size: 1.5rem;
  color: var(--ivory);
  background: linear-gradient(135deg, var(--primary), var(--purple-mid));
}
.card.accent .card-icon { background: linear-gradient(135deg, var(--accent), var(--orange-mid)); }
.card.lime .card-icon   { background: linear-gradient(135deg, var(--lime-deep), var(--lime)); color: var(--purple-deep); }

/* 5C colour-variant card */
.c-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--ivory);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  overflow: hidden;
}
.c-card::after {
  content: "";
  position: absolute;
  right: -40px; bottom: -40px;
  width: 160px; height: 160px;
  border-radius: 50%;
  opacity: .12;
  background: var(--c-color, var(--primary));
  transition: transform .6s var(--ease);
}
.c-card:hover::after { transform: scale(1.4); }
.c-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.c-card .c-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  color: var(--c-color, var(--primary));
  margin-bottom: 14px;
}
.c-card .c-badge::before {
  content: ""; width: 10px; height: 10px; border-radius: 50%;
  background: var(--c-color, var(--primary));
}
.c-card h3 { color: var(--primary-dark); margin-bottom: 10px; }
.c-card p  { color: var(--text-mid); font-size: .96rem; margin-bottom: 14px; }
.c-curiosity     { --c-color: var(--purple-royal); }
.c-connectedness { --c-color: var(--accent); }
.c-compassion    { --c-color: var(--lime-deep); }
.c-coregulation  { --c-color: var(--purple-mid); }
.c-contribution  { --c-color: var(--orange-mid); }

/* ── Pills / tags ── */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px;
  background: var(--purple-mist);
  color: var(--primary-dark);
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
}
.pill-accent { background: var(--orange-mist); color: var(--orange-burnt); }
.pill-lime   { background: var(--lime-soft); color: var(--lime-deep); }

/* ── 5C Sequence Navigator ── */
.seq-nav-wrap {
  background: var(--ivory-warm);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
}
.seq-nav-label {
  text-align: center;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 12px;
}
.seq-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
.seq-chip {
  padding: 7px 18px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  background: var(--ivory);
  color: var(--text-mid);
  border: 1.5px solid var(--border);
  text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
a.seq-chip:hover {
  background: var(--purple-mist);
  color: var(--primary-dark);
  border-color: var(--primary);
}
.seq-chip-active {
  background: var(--purple-deep);
  color: var(--ivory);
  border-color: var(--purple-deep);
  cursor: default;
}

/* ── Activity widget (interactive) ── */
.activity {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin: 32px 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.activity::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 6px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 50%, var(--lime) 100%);
}
.activity h3 { color: var(--primary-dark); }
.activity .activity-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 8px 0 20px;
}
.activity-step {
  display: none;
  padding: 20px 0;
}
.activity-step.active { display: block; animation: fadeIn .4s var(--ease); }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px);} to { opacity: 1; transform: translateY(0);} }
.activity-progress {
  display: flex; gap: 6px;
  margin-bottom: 24px;
}
.activity-progress span {
  flex: 1;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  transition: background .3s var(--ease);
}
.activity-progress span.done { background: var(--accent); }
.activity-progress span.current { background: var(--primary); }
.activity-controls {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.activity-prompt {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--primary-dark);
  line-height: 1.35;
  margin: 8px 0 20px;
}
.activity textarea,
.activity input[type="text"],
.activity input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text);
  background: var(--bg);
  resize: vertical;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.activity textarea:focus,
.activity input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 42, 134, 0.14);
}
.activity textarea { min-height: 120px; }

/* Completed activity visual state */
.activity.completed::before {
  background: linear-gradient(90deg, var(--lime-deep) 0%, var(--lime) 100%);
}
.activity.completed .activity-controls [data-activity-next] {
  background: var(--lime-deep);
  color: #fff;
  border-color: var(--lime-deep);
  pointer-events: none;
}

.choice-group {
  display: grid;
  gap: 10px;
  margin: 12px 0;
}
.choice {
  display: block;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  cursor: pointer;
  background: var(--bg);
  transition: all .2s var(--ease);
  font-weight: 500;
}
.choice:hover { border-color: var(--primary); background: var(--purple-mist); }
.choice.selected {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--ivory);
}

.scale-row {
  display: flex; justify-content: space-between; gap: 8px;
  margin: 20px 0 8px;
}
.scale-row button {
  flex: 1;
  padding: 14px 0;
  border-radius: var(--radius-md);
  background: var(--bg);
  border: 1px solid var(--border);
  font-weight: 700;
  color: var(--text-mid);
  font-size: 1.05rem;
  transition: all .2s var(--ease);
}
.scale-row button:hover { border-color: var(--primary); color: var(--primary); }
.scale-row button.selected { background: var(--primary); color: var(--ivory); border-color: var(--primary); }
.scale-ends {
  display: flex; justify-content: space-between;
  font-size: .82rem; color: var(--text-soft);
}

.reflection-output {
  padding: 20px;
  background: var(--orange-mist);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink);
  margin-top: 18px;
}
.reflection-output strong { font-family: var(--font-body); }

/* ── Accordion ── */
.accordion { margin: 24px 0; border-top: 1px solid var(--border); }
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-btn {
  width: 100%;
  text-align: left;
  padding: 22px 44px 22px 0;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--primary-dark);
  font-family: var(--font-display);
  position: relative;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.accordion-btn::after {
  content: "+";
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--accent);
  transition: transform .3s var(--ease);
}
.accordion-btn.open::after { content: "−"; }
.accordion-content {
  overflow: hidden;
  max-height: 0;
  transition: max-height .35s var(--ease);
}
.accordion-content > div { padding: 0 0 22px; color: var(--text-mid); }

/* ── Tabs ── */
.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 28px;
}
[data-tab-btn] {
  padding: 12px 18px;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  font-weight: 600;
  color: var(--text-soft);
  background: transparent;
  cursor: pointer;
  border: 0;
  border-bottom: 3px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
[data-tab-btn]:hover { color: var(--primary); }
[data-tab-btn].active {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

/* ── Timeline ── */
.timeline {
  position: relative;
  padding-left: 36px;
  border-left: 2px dashed var(--purple-soft);
  margin: 32px 0;
}
.timeline-item { position: relative; margin-bottom: 32px; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -46px; top: 4px;
  width: 18px; height: 18px;
  background: conic-gradient(var(--primary), var(--accent), var(--lime), var(--primary));
  border-radius: 50%;
  border: 3px solid var(--bg);
}

/* ── Forms ── */
.form-field { margin-bottom: 20px; }
.form-field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 8px;
  color: var(--text);
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: var(--ivory);
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(91, 42, 134, 0.14);
}

/* ── Pricing ── */
.pricing-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.pricing-card.featured::before {
  content: "Most Popular";
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--ivory);
  font-size: .72rem;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-card.featured:hover { transform: scale(1.02) translateY(-4px); }
.pricing-card h3 { color: var(--primary-dark); margin-bottom: 6px; }
.price {
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--accent);
  margin: 16px 0 4px;
  font-weight: 600;
}
.price-unit { color: var(--text-soft); font-size: .88rem; }
.pricing-features { list-style: none; margin: 24px 0; padding: 0; }
.pricing-features li {
  padding: 10px 0 10px 28px;
  position: relative;
  color: var(--text-mid);
  font-size: .95rem;
}
.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  color: var(--lime-deep);
  font-weight: 700;
}

/* ── Quote / Pull-quote ── */
blockquote, .pullquote {
  font-family: var(--font-display);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--primary-dark);
  border-left: 4px solid var(--accent);
  padding: 12px 24px;
  margin: 28px 0;
  font-style: italic;
  background: var(--bg-alt);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
blockquote cite {
  display: block;
  font-family: var(--font-body);
  font-style: normal;
  font-size: .86rem;
  color: var(--text-soft);
  margin-top: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* ── Team ── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.team-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.team-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.team-photo {
  aspect-ratio: 4 / 3;
  background:
    conic-gradient(from 120deg at 50% 50%,
      var(--purple-mist), var(--orange-mist), var(--lime-soft),
      var(--purple-soft), var(--orange-soft), var(--lime),
      var(--purple-mist));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
}
.team-photo .initials {
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--purple-deep);
  font-weight: 700;
  letter-spacing: -.04em;
  background: rgba(251, 248, 243, 0.7);
  width: 120px; height: 120px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(44, 11, 71, 0.15);
}
.team-info { padding: 24px 26px; }
.team-info h3 { color: var(--primary-dark); margin-bottom: 4px; }
.team-role {
  display: block;
  font-size: .82rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.team-bio { color: var(--text-mid); font-size: .95rem; margin-bottom: 12px; }
.team-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* ── Featured spotlight (for Matthew / Tamiko) ── */
.spotlight {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
  align-items: center;
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.spotlight::before {
  content: "";
  position: absolute;
  top: -80px; right: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: conic-gradient(from 45deg, var(--purple-mist), var(--orange-mist), var(--lime-soft), var(--purple-mist));
  opacity: .35;
}
.spotlight-photo {
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 30% 30%, var(--purple-royal) 0%, var(--purple-deep) 60%),
    conic-gradient(from 0deg, var(--purple-royal), var(--orange-burnt), var(--lime), var(--purple-royal));
  display: flex; align-items: center; justify-content: center;
  position: relative;
  box-shadow: 0 16px 40px rgba(44, 11, 71, 0.25);
  z-index: 1;
}
.spotlight-photo .initials {
  font-family: var(--font-display);
  color: var(--ivory);
  font-size: 5rem;
  font-weight: 700;
}
.spotlight-content { position: relative; z-index: 1; }

/* ── Theory of Change — interactive shapes ── */
.toc-stage { position: relative; }

/* Each clickable shape: smooth scale + dim-peer behavior.
   transform-box: fill-box keeps the scale anchored to the shape's own center
   inside SVG coordinate space. */
.toc-shape {
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.85,.25,1),
              opacity .3s var(--ease),
              filter .3s var(--ease);
  transform-box: fill-box;
  transform-origin: center;
}
.toc-shape:hover { filter: brightness(1.07); }
.toc-shape:focus { outline: none; }
.toc-shape:focus-visible polygon,
.toc-shape:focus-visible rect,
.toc-shape:focus-visible circle {
  stroke: var(--lime);
  stroke-width: 3;
}

/* Active shape: scale up and drop a soft glow */
.toc-shape.is-active {
  transform: scale(1.18);
  filter: drop-shadow(0 8px 18px rgba(91,42,134,0.32)) brightness(1.08);
}
.toc-shape.is-active polygon,
.toc-shape.is-active rect,
.toc-shape.is-active circle {
  stroke: var(--lime-deep);
  stroke-width: 3;
}

/* Peer shapes fade back so the active shape is salient */
.toc-stage.has-active .toc-shape:not(.is-active) {
  opacity: .32;
}

/* The Hidden C inline button gets its own simpler active treatment */
.toc-shape.toc-shape-button {
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  transform: none;
}
.toc-shape.toc-shape-button.is-active {
  transform: scale(1.06);
  background: var(--purple-mist);
  color: var(--purple-deep);
  filter: none;
}
.toc-stage.has-active .toc-shape.toc-shape-button:not(.is-active) {
  opacity: .55;
}

/* Floating popover anchored next to the active shape */
.toc-popover {
  position: absolute;
  z-index: 12;
  width: min(360px, calc(100% - 24px));
  background: var(--ivory);
  border: 1px solid var(--border);
  border-left: 4px solid var(--purple-royal);
  border-radius: var(--radius-lg);
  padding: 18px 22px 20px;
  box-shadow: 0 18px 50px rgba(44, 11, 71, 0.22);
  animation: toc-pop-in .28s cubic-bezier(.2,.85,.25,1);
}
.toc-popover .eyebrow {
  display: inline-block;
  margin-bottom: 6px;
}
.toc-popover h3 {
  color: var(--purple-deep);
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 4px 0 10px;
  line-height: 1.25;
}
.toc-popover p {
  color: var(--text-mid);
  font-size: .96rem;
  line-height: 1.65;
  margin: 0;
}
@keyframes toc-pop-in {
  from { opacity: 0; transform: translateY(6px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
  .toc-popover { width: calc(100% - 24px); padding: 16px 18px 18px; }
  .toc-shape.is-active { transform: scale(1.12); }
}

/* Honor reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  .toc-shape, .toc-popover { transition: none; animation: none; }
  .toc-shape.is-active { transform: none; }
}

/* ── Resource cards ── */
.resource-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.resource-card::after {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--c-color, var(--primary));
}
.resource-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.resource-card h4 { color: var(--primary-dark); margin-bottom: 8px; }
.resource-card p { font-size: .92rem; margin-bottom: 16px; flex-grow: 1; }
.resource-card .resource-footer {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: .84rem;
  color: var(--text-soft);
}

/* ── Retreat / schedule ── */
.session-card {
  background: var(--ivory);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
}
.session-time {
  font-family: var(--font-display);
  color: var(--accent);
  font-size: 1.4rem;
  line-height: 1.15;
  font-weight: 600;
}
.session-time small { display: block; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-soft); font-weight: 500; font-family: var(--font-body); margin-top: 4px; }
.session-info h4 { color: var(--primary-dark); margin-bottom: 6px; }

/* ── Featured banner ── */
.banner {
  position: relative;
  padding: 72px 0;
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-royal) 60%, var(--orange-burnt) 140%);
  color: var(--ivory);
  text-align: center;
  overflow: hidden;
}
.banner h2 { color: var(--ivory); margin-bottom: 14px; }
.banner p { color: rgba(251, 248, 243, 0.85); max-width: 640px; margin: 0 auto 28px; }

/* ── Footer ── */
.site-footer {
  background: var(--purple-deep);
  color: rgba(251, 248, 243, 0.7);
  padding: 72px 0 30px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  left: -200px; top: 50%;
  width: 600px; height: 600px;
  transform: translateY(-50%);
  background: radial-gradient(circle, var(--purple-royal) 0%, transparent 70%);
  opacity: .4;
  pointer-events: none;
}
.footer-inner {
  position: relative; z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-col h4 {
  color: var(--ivory);
  font-size: .88rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 18px;
  font-family: var(--font-body);
  font-weight: 700;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(251, 248, 243, 0.7); font-size: .94rem; }
.footer-col a:hover { color: var(--lime); }
.footer-brand {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-display);
  color: var(--ivory);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.footer-brand .logo-mark {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    var(--purple-royal) 0deg 60deg,
    var(--orange-burnt) 60deg 120deg,
    var(--lime) 120deg 180deg,
    var(--purple-mid) 180deg 240deg,
    var(--orange-mid) 240deg 300deg,
    var(--lime-deep) 300deg 360deg);
  box-shadow: inset 0 0 0 3px var(--purple-deep);
}
.footer-bottom {
  border-top: 1px solid rgba(251, 248, 243, 0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: .84rem;
}

/* ── Utility ── */
.text-center { text-align: center; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 48px; }
.mb-md { margin-bottom: 24px; }
.hidden { display: none !important; }

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ── Mobile ── */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: calc(var(--nav-height) + 40px); padding-bottom: 60px; }
  .five-c-graphic, .kaleidoscope-visual { max-width: 360px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: 0; }
  .stat-item:nth-child(1), .stat-item:nth-child(2) { border-bottom: 1px solid var(--border); }
  .spotlight { grid-template-columns: 1fr; padding: 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 72px 0; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0; right: 0;
    flex-direction: column;
    background: var(--ivory);
    padding: 20px 24px;
    gap: 14px;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 10px 0; width: 100%; }
  .stats-bar { grid-template-columns: 1fr; }
  .stat-item { border-right: 0 !important; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: 0; }
  .footer-grid { grid-template-columns: 1fr; }
  .session-card { grid-template-columns: 1fr; }
  .activity { padding: 28px 22px; }
  .hero h1 { font-size: 2.1rem; }
  #five-cs .card-body > div { display: block !important; }
}
