/* ==========================================================================
   AI Therapeutic Play Hub (VTPH v2.0 Redesign)
   Design System & Modern Stylesheet
   Clinical Direction: Bethany R. Russell, Ph.D., LMHC-QS, TPS-C, ACS
   ========================================================================== */

:root {
  /* Core Color Palette - Academic & Clinical Serenity */
  --slate-950: #020617;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  /* Primary Accent: Deep Cerulean */
  --primary-700: #0369a1;
  --primary-600: #0284c7;
  --primary-500: #0ea5e9;
  --primary-100: #e0f2fe;
  --primary-50: #f0f9ff;

  /* Secondary Accent: Academic Sage & Eucalyptus (Calm & Regulation) */
  --sage-700: #0f766e;
  --sage-600: #0d9488;
  --sage-500: #14b8a6;
  --sage-100: #ccfbf1;
  --sage-50: #f0fdfa;

  /* Warm Linen & Terracotta Highlights */
  --linen-bg: #fdfbf7;
  --linen-card: #ffffff;
  --terracotta-600: #be123c;
  --terracotta-100: #ffe4e6;
  --gold-amber: #d97706;
  --gold-amber-light: #fef3c7;

  /* UI Tokens */
  --bg-main: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-hover-border: #cbd5e1;
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-subtle: #64748b;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.09), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--slate-900);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary-600);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-700);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ==========================================================================
   Clinical Governance Top Bar
   ========================================================================== */
.clinical-top-bar {
  background: var(--slate-900);
  color: var(--slate-400);
  font-size: 0.8125rem;
  padding: 8px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.clinical-top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.78125rem;
}

.top-bar-right a {
  color: #38bdf8;
  font-weight: 500;
}

.top-bar-right a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
  transition: all var(--transition-smooth);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.brand-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--slate-900);
  letter-spacing: -0.02em;
  transition: color var(--transition-fast);
}

.brand-wrapper:hover .brand-title {
  color: var(--primary-600);
}

.nav-menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 22px;
}

.nav-item-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-700);
  transition: color var(--transition-fast);
  padding: 6px 0;
  position: relative;
}

.nav-item-link:hover, .nav-item-link.active {
  color: var(--primary-600);
}

.nav-item-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary-600);
  border-radius: 2px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Perspective Toggle */
.perspective-toggle-wrap {
  display: flex;
  align-items: center;
  background: var(--slate-100);
  padding: 3px;
  border-radius: 24px;
  border: 1px solid var(--slate-200);
}

.perspective-btn {
  border: none;
  background: transparent;
  padding: 6px 14px;
  font-size: 0.78125rem;
  font-weight: 600;
  color: var(--slate-600);
  border-radius: 20px;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.perspective-btn.active {
  background: #ffffff;
  color: var(--slate-900);
  box-shadow: var(--shadow-sm);
}

.btn-primary-portal {
  background: var(--primary-600);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 9px 18px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 2px rgba(2, 132, 199, 0.2);
}

.btn-primary-portal:hover {
  background: var(--primary-700);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px -1px rgba(2, 132, 199, 0.3);
}

/* ==========================================================================
   Hero Section: Clinical & Academic Rigor with Warmth
   ========================================================================== */
.hero-section {
  padding: 64px 0 80px 0;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-main) 100%);
  border-bottom: 1px solid var(--card-border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.badge-pill-academic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage-50);
  border: 1px solid var(--sage-100);
  color: var(--sage-700);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 30px;
  align-self: flex-start;
}

.hero-main-heading {
  font-size: 2.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  line-height: 1.15;
}

.hero-main-heading .highlight {
  color: var(--primary-600);
}

.hero-description {
  font-size: 1.125rem;
  color: var(--slate-600);
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.btn-hero-primary {
  background: var(--slate-900);
  color: #ffffff;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.btn-hero-primary:hover {
  background: var(--slate-800);
  color: #ffffff;
  transform: translateY(-1px);
}

.btn-hero-secondary {
  background: #ffffff;
  color: var(--slate-800);
  border: 1px solid var(--slate-200);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  transition: all var(--transition-fast);
}

.btn-hero-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
}

.hero-trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--slate-200);
  margin-top: 12px;
}

.trust-metric-item h4 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
}

.trust-metric-item p {
  font-size: 0.75rem;
  color: var(--slate-500);
  font-weight: 500;
  line-height: 1.35;
}

/* Hero Visual Card */
.hero-visual-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.visual-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--slate-100);
}

.visual-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot-active {
  width: 10px;
  height: 10px;
  background: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

.visual-viewport {
  height: 320px;
  background: linear-gradient(145deg, #f8fafc 0%, #e2e8f0 100%);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--slate-200);
}

.visual-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.viewport-overlay-caption {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(8px);
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 0.78125rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* ==========================================================================
   Section: Child-Empowered & Person-Centered Philosophy
   ========================================================================== */
.framework-section {
  padding: 88px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--card-border);
}

.section-header-center {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 56px auto;
}

.section-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-600);
  background: var(--primary-50);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.25rem;
  color: var(--slate-900);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.7;
}

.comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.comparison-card {
  border-radius: 14px;
  padding: 32px;
  border: 1px solid var(--card-border);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-empowered {
  background: #ffffff;
  border-top: 5px solid var(--sage-600);
  box-shadow: var(--shadow-lg);
}

.card-operant {
  background: var(--slate-50);
  border-top: 5px solid var(--slate-400);
  opacity: 0.92;
}

.comparison-card-title {
  font-size: 1.375rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.comparison-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--slate-700);
}

.comparison-item .icon {
  font-size: 1.125rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* ==========================================================================
   Section: The 4 Core Evidence-Based Modalities
   ========================================================================== */
.modalities-section {
  padding: 88px 0;
  background: var(--bg-main);
  border-bottom: 1px solid var(--card-border);
}

.modalities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.modality-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-smooth), box-shadow var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.modality-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.modality-preview {
  height: 220px;
  background: var(--slate-800);
  position: relative;
  overflow: hidden;
}

.modality-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modality-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 14px;
}

.modality-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary-600);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.modality-title {
  font-size: 1.25rem;
  color: var(--slate-900);
}

.modality-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.65;
}

.modality-principles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.principle-tag {
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
}

/* ==========================================================================
   Section: Interactive Clinical Sandtray & Expressive Studio Sandbox
   ========================================================================== */
.sandbox-section {
  padding: 88px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--card-border);
}

.sandbox-container-box {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.sandbox-tabs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: var(--slate-900);
  color: #ffffff;
}

.sandbox-nav-tabs {
  display: flex;
  gap: 12px;
}

.sandbox-tab-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  padding: 8px 18px;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sandbox-tab-btn.active {
  background: var(--primary-600);
  border-color: var(--primary-500);
}

.sandbox-workspace {
  padding: 28px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
  min-height: 520px;
}

/* Expressive Canvas Area */
.canvas-wrapper {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#expressiveCanvas {
  width: 100%;
  height: 380px;
  background: #ffffff;
  cursor: crosshair;
  touch-action: none;
}

.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
  flex-wrap: wrap;
  gap: 12px;
}

.color-palette-tray {
  display: flex;
  align-items: center;
  gap: 8px;
}

.palette-swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform var(--transition-fast);
}

.palette-swatch:hover, .palette-swatch.active {
  transform: scale(1.2);
  border-color: var(--slate-900);
}

.brush-controls-tray {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-tool-action {
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  padding: 6px 12px;
  font-size: 0.78125rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-tool-action:hover {
  background: var(--slate-200);
}

/* Virtual Sandtray Area */
.sandtray-tray {
  width: 100%;
  height: 380px;
  background: #f7ede2;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 8px solid #d4a373;
}

.sandtray-toolbar {
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid var(--slate-200);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.sandtray-item-tray {
  display: flex;
  gap: 8px;
}

.sand-symbol-btn {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.sand-symbol-btn:hover {
  background: var(--primary-50);
  border-color: var(--primary-600);
  transform: translateY(-2px);
}

.placed-symbol {
  position: absolute;
  font-size: 34px;
  cursor: move;
  user-select: none;
  transition: transform var(--transition-fast);
}

/* Polyvagal Sanctuary View */
.polyvagal-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-radius: 12px;
  height: 440px;
  padding: 24px;
  color: #ffffff;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.breathing-visual-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.8) 0%, rgba(13, 148, 136, 0.3) 70%);
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.5);
  margin-bottom: 24px;
  transition: transform 4s ease-in-out;
}

.breathing-instruction-text {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.breathing-subtext {
  font-size: 0.875rem;
  color: var(--slate-400);
  max-width: 400px;
  margin-bottom: 20px;
}

.btn-chime-trigger {
  background: var(--primary-600);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-chime-trigger:hover {
  background: var(--primary-500);
  transform: scale(1.05);
}

/* Sandbox Side Panel */
.sandbox-side-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.clinical-reflection-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: 10px;
  padding: 20px;
}

.reflection-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.reflection-body {
  font-size: 0.8125rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   Section: Historical Roots & Philosophical Foundations of Therapeutic Play
   ========================================================================== */
.roots-section {
  padding: 88px 0;
  background: var(--bg-main);
  border-bottom: 1px solid var(--card-border);
}

.roots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.roots-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.roots-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.roots-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.roots-era-badge {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--primary-600);
  background: var(--primary-50);
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.roots-thinkers {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--slate-500);
}

.roots-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--slate-900);
}

.roots-quote {
  background: var(--slate-50);
  border-left: 3px solid var(--primary-600);
  padding: 12px 16px;
  font-size: 0.8125rem;
  font-style: italic;
  color: var(--slate-700);
  line-height: 1.6;
  border-radius: 0 8px 8px 0;
}

.roots-body {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.65;
}

/* ==========================================================================
   Section: Clinical Research Leadership & Academic Direction (Dr. Russell)
   ========================================================================== */
.research-director-section {
  padding: 88px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--card-border);
}

.director-profile-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 40px;
}

.director-portrait-card {
  background: var(--bg-main);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 96px;
}

.director-portrait-wrap {
  width: 190px;
  height: 230px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 3px solid #ffffff;
  margin-bottom: 16px;
  background: #cbd5e1;
}

.director-portrait-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.director-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.director-role {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: 4px;
}

.director-location {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--slate-500);
  margin-bottom: 0;
}

.director-bio-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.director-bio-lead {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--slate-800);
  line-height: 1.6;
}

.director-bio-text {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.7;
}

.director-highlights-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 12px;
}

.director-highlight-card {
  background: var(--bg-main);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.director-highlight-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary-400);
  box-shadow: var(--shadow-sm);
}

.director-highlight-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  padding: 6px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.director-highlight-text h4 {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.director-highlight-text p {
  font-size: 0.8125rem;
  color: var(--slate-600);
  line-height: 1.5;
}

/* ==========================================================================
   Section: Longitudinal Telemetry & Clinical Progress Portal
   ========================================================================== */
.telemetry-section {
  padding: 88px 0;
  background: #ffffff;
  border-bottom: 1px solid var(--card-border);
}

.telemetry-dashboard-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.telemetry-header {
  background: var(--slate-900);
  color: #ffffff;
  padding: 20px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.telemetry-body-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  padding: 32px;
}

.chart-box {
  background: #ffffff;
  border: 1px solid var(--slate-200);
  border-radius: 12px;
  padding: 20px;
}

#telemetryChart {
  width: 100%;
  height: 260px;
}

.artwork-archive-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.artwork-thumb-item {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--slate-200);
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-sm);
}

.artwork-thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   Section: Clinical Practice Directory & Ecosystem
   ========================================================================== */
.ecosystem-section {
  padding: 88px 0;
  background: var(--bg-main);
  border-bottom: 1px solid var(--card-border);
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.ecosystem-card {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform var(--transition-fast);
}

.ecosystem-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.ecosystem-icon {
  font-size: 2rem;
}

.ecosystem-title {
  font-size: 1.25rem;
  color: var(--slate-900);
}

.ecosystem-desc {
  font-size: 0.875rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--slate-950);
  color: var(--slate-400);
  padding: 64px 0 32px 0;
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.8fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand h3 {
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.footer-brand p {
  line-height: 1.6;
  color: var(--slate-400);
}

.footer-column h4 {
  color: #ffffff;
  font-size: 0.9375rem;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--slate-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid, .comparison-grid, .modalities-grid, .sandbox-workspace, .telemetry-body-grid, .ecosystem-grid, .director-profile-grid, .director-highlights-grid {
    grid-template-columns: 1fr;
  }
  .director-portrait-card {
    position: static;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .nav-menu {
    display: none;
  }
}

@media (max-width: 640px) {
  .clinical-top-bar-inner {
    justify-content: center;
    text-align: center;
  }
  .hero-main-heading {
    font-size: 2.25rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
