/* ═══════════════════════════════════════════════════════════════
   Reflections Clinical – Main Stylesheet
   1:1 migration from React/Tailwind dark-theme SPA
   ═══════════════════════════════════════════════════════════════ */

/* ─── CSS Custom Properties ──────────────────────────────────── */

:root {
  /* Brand palette — official values from brand playbook */
  --brand-purple: #76009f; /* Primary purple — buttons, fills, key accents */
  --brand-purple-deep: #5a0077; /* Hover / pressed state */
  --brand-purple-light: #c084dc; /* Dark-mode text accent (sufficient contrast on #0d0d0d) */
  --brand-red: #900038; /* Campaign gradients, emphasis */
  --brand-yellow: #ffdf57; /* Highlights, event energy */
  --brand-blue: #7fafc4; /* Dark-mode UI blue (contrast-safe on dark bg) */
  --brand-blue-brand: #024da1; /* Official brand blue — for print / light-bg contexts */
  --brand-orange: #f27052; /* Warm gradient support */
  --brand-red-2: #b20e00; /* Print support accent */
  /* Legacy aliases kept for backward compat */
  --brand-blue-light: #a9c7d8;
  --brand-sage: #c9d8a8;
  --brand-blush: #d8a8b8;

  /* Semantic tokens */
  --color-primary: var(--brand-purple);
  --color-secondary: var(--brand-blue);
  --color-background: #050505;
  --color-surface: #0d0d0d;
  --color-surface-2: #161616;
  --color-border: rgba(255, 255, 255, 0.1);
  --color-text: rgba(255, 255, 255, 0.9);
  --color-text-muted: rgba(255, 255, 255, 0.6);

  /* Typography */
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
  --font-display: "Outfit", "Inter", system-ui, sans-serif;

  /* Spacing */
  --section-py: clamp(4rem, 8vw, 8rem);
  --container-px: clamp(1rem, 4vw, 2rem);
  --container-max: 1280px;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out: cubic-bezier(0.21, 0.47, 0.32, 0.98);
  --duration: 0.3s;
}

/* ─── Reset & Base ───────────────────────────────────────────── */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-background);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Skip link: visually hidden until focused (WCAG 2.4.1) */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--brand-purple);
  color: #fff;
  border-radius: var(--radius-md);
  font-weight: 600;
}
.skip-link:focus {
  top: 1rem;
}

#main-content:focus {
  outline: none;
}

button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ─── Typography ─────────────────────────────────────────────── */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
}
h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}
h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}
h4 {
  font-size: 1.125rem;
}

p {
  color: var(--color-text-muted);
  max-width: 65ch;
}

.text-accent {
  color: var(--brand-purple-light);
}
.text-brand-purple {
  color: var(--brand-purple-light);
}
.text-brand-blue {
  color: var(--brand-blue);
}
.text-brand-yellow {
  color: var(--brand-yellow);
}
.text-brand-orange {
  color: var(--brand-orange);
}
.text-brand-red {
  color: #e05a7a; /* softened brand-red for dark-mode text */
}
.text-brand-sage {
  color: var(--brand-sage);
}
.text-brand-blush {
  color: var(--brand-blush);
}

/* ─── Layout ─────────────────────────────────────────────────── */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.section {
  padding-block: var(--section-py);
}

.grid {
  display: grid;
  gap: 2rem;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1023px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
}

/* ─── Glass / Surface Utilities ──────────────────────────────── */

.glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
}

.dark-glass {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
}

.surface {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}

/* ─── Buttons ────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
  transition: all var(--duration) var(--ease-out);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-purple);
  color: #fff;
}
.btn-primary:hover {
  background: var(--brand-purple-deep);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(118, 0, 159, 0.45);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid var(--color-border);
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background: transparent;
  color: var(--brand-purple-light);
  border: 1px solid var(--brand-purple);
}
.btn-outline:hover {
  background: var(--brand-purple);
  color: #fff;
}

.btn-orange {
  background: var(--brand-orange);
  color: #1a1a1a; /* white on #f27052 is 2.9:1; dark text is 6.0:1 */
}
.btn-orange:hover {
  background: #d45f38;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(242, 112, 82, 0.4);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn svg,
.btn .icon {
  width: 1em;
  height: 1em;
}

/* ─── Cards ──────────────────────────────────────────────────── */

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
  transition: all var(--duration) var(--ease-out);
}

.card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.card-glass {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: 2rem;
}

.card-featured {
  background: linear-gradient(
    135deg,
    var(--brand-purple-deep),
    var(--brand-purple),
    var(--brand-red)
  );
  border: none;
  color: #fff;
}

/* ─── Navigation ─────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: all var(--duration) var(--ease-out);
  padding: 1rem 0;
}

.site-header.scrolled {
  background: rgba(5, 5, 5, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-border);
  padding: 0.5rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

.site-logo img {
  height: 36px;
  width: auto;
  transition: height var(--duration) var(--ease-out);
}

.scrolled .site-logo img {
  height: 32px;
}

/* Desktop nav */
.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-muted);
  border-radius: var(--radius-md);
  transition:
    color var(--duration),
    background var(--duration);
}

.nav-link:hover,
.nav-item--active > .nav-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link--cta {
  background: var(--brand-purple);
  color: #fff !important;
  padding: 0.375rem 1rem !important;
  border-radius: var(--radius-md);
  font-weight: 600;
  transition: background 0.3s;
}
.nav-link--cta:hover {
  background: var(--brand-purple-light);
}
.nav-link--cta-alt {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.nav-link--cta-alt:hover {
  background: rgba(255, 255, 255, 0.22);
}

.nav-chevron {
  transition: transform var(--duration);
}

.nav-item--has-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

/* Dropdowns */
.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 200px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 0.5rem;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--duration) var(--ease-out);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.nav-item--has-dropdown:hover > .nav-dropdown,
.nav-item--has-dropdown:focus-within > .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown .nav-link {
  font-size: 0.8125rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
}

.nav-dropdown .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
  margin-left: 0.5rem;
}

/* Nav area wrapper (desktop: nav + buttons, hidden on mobile) */
.nav-area {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-cta-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.75rem;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  padding: 0.5rem;
  color: #fff;
}

.mobile-menu-toggle svg {
  width: 24px;
  height: 24px;
}

/* Hide mobile elements on desktop */
.mobile-nav,
.mobile-nav-overlay,
.mobile-nav-close {
  display: none;
}

@media (max-width: 1023px) {
  .nav-area,
  .primary-nav,
  .nav-cta {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  /* Mobile menu panel */
  .mobile-nav {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(320px, 85vw);
    background: var(--color-surface);
    border-left: 1px solid var(--color-border);
    z-index: 100;
    transform: translateX(100%);
    visibility: hidden; /* keep off-screen links out of the tab order when closed */
    transition:
      transform var(--duration) var(--ease-out),
      visibility 0s var(--duration);
    overflow-y: auto;
    padding: 1.5rem;
  }

  .mobile-nav.open {
    transform: translateX(0);
    visibility: visible;
    transition: transform var(--duration) var(--ease-out);
  }

  .mobile-nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration);
  }

  .mobile-nav-overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav-list {
    list-style: none;
    padding: 0;
    margin-top: 2rem;
  }

  .mobile-nav-list .nav-link {
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-border);
  }

  .mobile-nav-list .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0 1rem;
    display: none;
  }

  .mobile-nav-list .nav-dropdown.open {
    display: block;
  }

  .mobile-nav-close {
    display: block;
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: #fff;
    padding: 0.5rem;
  }
}

/* ─── Section Background Utilities ─────────────────────────── */

.cta-video-section,
.cta-img-section {
  position: relative;
  overflow: hidden;
}

.cta-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

.cta-img-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.cta-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 5, 5, 0.65),
    rgba(5, 5, 5, 0.8)
  );
  z-index: 1;
}

/* ─── Footer ─────────────────────────────────────────────────── */

.site-footer {
  background: var(--color-background);
  border-top: 1px solid var(--color-border);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 767px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-brand p {
  margin-top: 1rem;
  font-size: 0.875rem;
  max-width: 40ch;
}

.footer-social {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.footer-social a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  transition: all var(--duration);
}

.footer-social a:hover {
  color: #fff;
  border-color: var(--brand-purple-light);
  background: rgba(192, 132, 220, 0.12);
}

.footer-nav h4 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
}

.footer-nav li {
  margin-bottom: 0.5rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  transition: color var(--duration);
}

.footer-nav a:hover {
  color: #fff;
}

.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal {
  display: flex;
  gap: 1.5rem;
}

.footer-legal a:hover {
  color: #fff;
}

/* ─── Page Hero ──────────────────────────────────────────────── */

.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 8rem 0 4rem;
}

.page-hero--home {
  min-height: 100vh;
  padding-top: 0;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  opacity: 0.6;
}

.page-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(5, 5, 5, 0.5) 60%,
    var(--color-background) 100%
  );
}

.page-hero__orb {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.15;
  pointer-events: none;
  animation: orb-pulse 6s ease-in-out infinite alternate;
}

@keyframes orb-pulse {
  0% {
    transform: scale(1);
    opacity: 0.15;
  }
  100% {
    transform: scale(1.15);
    opacity: 0.25;
  }
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  color: #fff;
  margin-bottom: 1.5rem;
}

.page-hero__subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 80ch;
}

.page-hero--center .page-hero__content {
  text-align: center;
  margin-inline: auto;
}

.page-hero--center .page-hero__subtitle {
  margin-inline: auto;
}

/* ─── Home Hero Specific ─────────────────────────────────────── */

.home-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.home-hero__wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  line-height: 0;
  z-index: 5;
}

.home-hero__wave svg {
  width: 100%;
  height: 72px;
  display: block;
}

.home-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.home-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.home-hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at center,
    transparent 0%,
    var(--color-background) 75%
  );
}

.home-hero__floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  animation: float-orb 8s ease-in-out infinite alternate;
}

@keyframes float-orb {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(20px, -20px) scale(1.1);
  }
  100% {
    transform: translate(-10px, 10px) scale(0.95);
  }
}

.home-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  background: rgba(255, 255, 255, 0.03);
}

.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  padding-inline: var(--container-px);
}

.home-hero__logo {
  width: 80px;
  height: auto;
  margin: 0 auto 1.5rem;
  opacity: 0.9;
}

.home-hero__title {
  font-size: clamp(1.8rem, 5vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 1.5rem;
}

.home-hero__title .accent {
  color: var(--brand-purple-light);
}

.home-hero__title .hero-line-1 {
  display: block;
  color: var(--brand-purple-light);
  white-space: nowrap;
}

.home-hero__title .hero-line-2 {
  display: block;
  color: #fff;
}

.home-hero__desc {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--color-text-muted);
  max-width: 50ch;
  margin-inline: auto;
  margin-bottom: 2rem;
}

.home-hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) translateY(10px);
    opacity: 1;
  }
}

/* ─── Stats Section ──────────────────────────────────────────── */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  text-align: center;
  max-width: 860px;
  margin-inline: auto;
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: repeat(1, 1fr);
    max-width: 340px;
  }
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ─── Pillars / Feature Cards ────────────────────────────────── */

.pillar-card {
  padding: 2.5rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: all var(--duration) var(--ease-out);
}

.pillar-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.15);
}

.pillar-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: #fff;
}

.pillar-card__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.75rem;
}

/* ─── Artist Cards ───────────────────────────────────────────── */

.artist-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  background: var(--color-surface);
}

.artist-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out);
}

.artist-card:hover .artist-card__image {
  transform: scale(1.05);
}

.artist-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity var(--duration);
}

.artist-card:hover .artist-card__overlay {
  opacity: 1;
}

.artist-card__name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
}

.artist-card__work {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* ─── Parallax Section ───────────────────────────────────────── */

.parallax-section {
  position: relative;
  overflow: hidden;
  padding: var(--section-py) 0;
}

.parallax-section__bg {
  position: absolute;
  inset: -10%;
  z-index: 0;
}

.parallax-section__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.parallax-section__content {
  position: relative;
  z-index: 1;
}

.parallax-quote {
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.3;
}

.parallax-quote .accent {
  color: var(--brand-yellow);
}

/* ─── CTA Section ────────────────────────────────────────────── */

.cta-section {
  text-align: center;
  padding: var(--section-py) 0;
}

.cta-section__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1.5rem;
  color: var(--brand-yellow);
  animation: gentle-rotate 8s linear infinite;
}

@keyframes gentle-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.cta-section h2 {
  margin-bottom: 1rem;
}

.cta-section p {
  margin-inline: auto;
  margin-bottom: 2rem;
}

/* ─── Accordion (FAQ) ────────────────────────────────────────── */

.accordion {
  max-width: 768px;
  margin-inline: auto;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
}

.accordion-trigger svg {
  width: 20px;
  height: 20px;
  color: var(--color-text-muted);
  transition: transform var(--duration);
  flex-shrink: 0;
}

.accordion-item.open .accordion-trigger svg {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease-out);
}

.accordion-item.open .accordion-content {
  max-height: 500px;
}

.accordion-content__inner {
  padding-bottom: 1.25rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* ─── Forms ──────────────────────────────────────────────────── */

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 0.5rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color var(--duration);
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  /* purple-light hits 7.0:1 on the dark surface; solid #76009f was 2.1:1 */
  border-color: var(--brand-purple-light);
  box-shadow: 0 0 0 3px rgba(192, 132, 220, 0.3);
}

/* On white .form-light cards the light purple drops to 2.8:1 — use the solid brand purple (9.3:1) */
.form-light .form-input:focus,
.form-light .form-textarea:focus,
.form-light .form-select:focus {
  border-color: var(--brand-purple);
  box-shadow: 0 0 0 3px rgba(118, 0, 159, 0.25);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--color-text-muted);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-error {
  font-size: 0.8125rem;
  color: #ef4444;
  margin-top: 0.25rem;
}

/* ─── Toast Notification ─────────────────────────────────────── */

.toast-container {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 1rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  animation: toast-slide-in 0.3s var(--ease-out);
  max-width: 360px;
}

.toast--success {
  border-color: rgba(34, 197, 94, 0.3);
}

.toast--error {
  border-color: rgba(239, 68, 68, 0.4);
}

/* RSVP honeypot — hidden from real users, bots fill it */
.rfx-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.toast__title {
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.toast__message {
  color: var(--color-text-muted);
}

@keyframes toast-slide-in {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ─── Scroll Animations ──────────────────────────────────────── */

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-30px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(30px);
  transition:
    opacity 0.6s var(--ease-out),
    transform 0.6s var(--ease-out);
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

.stagger-item {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s var(--ease-out),
    transform 0.5s var(--ease-out);
}

.stagger-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Clinical Trials Phases ─────────────────────────────────── */

.trial-phases {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

@media (max-width: 767px) {
  .trial-phases {
    grid-template-columns: repeat(2, 1fr);
  }
}

.trial-phase {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: var(--radius-2xl);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.trial-phase:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

.trial-phase__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.trial-phase__title {
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

.trial-phase__desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ─── Resource Cards ─────────────────────────────────────────── */

.resource-card {
  padding: 2rem;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.resource-card__icon {
  width: 48px;
  height: 48px;
  color: var(--brand-purple-light);
}

.resource-card__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #fff;
}

.resource-card__meta {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ─── Events ─────────────────────────────────────────────────── */

.event-card {
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  overflow: hidden;
}

.event-card__date {
  display: inline-flex;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.event-card__body {
  padding: 2rem;
}

.event-card__info {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.event-card__info-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ─── TrialX Embed ───────────────────────────────────────────── */

.trialx-embed {
  width: 100%;
  border-radius: var(--radius-2xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: #fff;
}

.trialx-embed iframe {
  width: 100%;
  height: 700px;
  border: none;
  display: block;
}

/* ─── Two-Column Layout ──────────────────────────────────────── */

.two-col {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 3rem;
  align-items: start;
}

@media (max-width: 767px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

/* ─── News Grid ──────────────────────────────────────────────── */

.news-item {
  padding: 2rem 0;
  border-bottom: 1px solid var(--color-border);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 767px) {
  .news-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.news-item__date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.news-item__category {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  margin-top: 0.5rem;
}

.news-item__title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: 0.5rem;
}

/* ─── Team Grid ──────────────────────────────────────────────── */

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

@media (max-width: 767px) {
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.team-member__avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background: var(--color-surface);
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
}

.team-member__name {
  font-weight: 600;
  color: #fff;
}

.team-member__role {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* ─── Legal Pages ────────────────────────────────────────────── */

.legal-content {
  max-width: 768px;
}

.legal-content h3 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: #fff;
}

.legal-content p {
  margin-bottom: 1rem;
  line-height: 1.8;
}

.legal-content .accent-border {
  border-left: 3px solid var(--brand-purple);
  padding-left: 1.5rem;
}

/* ─── 404 Page ───────────────────────────────────────────────── */

.page-404 {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem var(--container-px);
}

.page-404__code {
  font-family: var(--font-display);
  font-size: clamp(6rem, 15vw, 12rem);
  font-weight: 800;
  color: var(--brand-purple);
  opacity: 0.3;
  line-height: 1;
}

/* ─── Reduced motion ─────────────────────────────────────────── */
/* Decorative loops only — none of these carry content, so freezing loses nothing.
   Auto-advancing carousels are guarded in their own JS via matchMedia. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .home-hero__floating-orb,
  .page-hero__orb,
  .scroll-indicator,
  .scroll-bounce,
  .cta-section__icon {
    animation: none !important;
  }
  .fade-in,
  .stagger-container > * {
    transition-duration: 0.01s !important;
  }
}

/* ─── Utility ────────────────────────────────────────────────── */

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

.text-center {
  text-align: center;
}
.mx-auto {
  margin-inline: auto;
}
.mt-2 {
  margin-top: 0.5rem;
}
.mt-4 {
  margin-top: 1rem;
}
.mt-6 {
  margin-top: 1.5rem;
}
.mt-8 {
  margin-top: 2rem;
}
.mb-4 {
  margin-bottom: 1rem;
}
.mb-8 {
  margin-bottom: 2rem;
}
.gap-4 {
  gap: 1rem;
}
.gap-6 {
  gap: 1.5rem;
}
.flex {
  display: flex;
}
.flex-wrap {
  flex-wrap: wrap;
}
.items-center {
  align-items: center;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.inline-flex {
  display: inline-flex;
}
.hidden {
  display: none;
}
.w-full {
  width: 100%;
}

@media (min-width: 768px) {
  .md\:grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .lg\:grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .lg\:hidden {
    display: none;
  }
  .lg\:flex {
    display: flex;
  }
}

/* ─── Logo Carousel ──────────────────────────────────────────── */
.logo-carousel-outer {
  position: relative;
  padding: 0.5rem 0;
}
.logo-carousel-outer::before,
.logo-carousel-outer::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 100px;
  z-index: 2;
  pointer-events: none;
}
.logo-carousel-outer::before {
  left: 0;
  background: linear-gradient(to right, var(--color-surface), transparent);
}
.logo-carousel-outer::after {
  right: 0;
  background: linear-gradient(to left, var(--color-surface), transparent);
}
.logo-carousel {
  overflow: hidden;
  cursor: grab;
  user-select: none;
  padding: 1rem 0;
}
.logo-carousel.dragging {
  cursor: grabbing;
}
.logo-track {
  display: flex;
  gap: 1.5rem;
  will-change: transform;
  align-items: center;
}
.lc-item {
  flex: 0 0 200px;
  height: 140px;
  background: #ebebeb;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  transition:
    background 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}
.lc-item:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}
.lc-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lc-bw,
.lc-color {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 100px;
  object-fit: contain;
}
.lc-bw {
  filter: grayscale(1) contrast(0.85);
  transition: opacity 0.3s ease;
}
.lc-color {
  mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(
    circle at 50% 50%,
    #000 0%,
    transparent 0%
  );
  mask-image: radial-gradient(circle at 50% 50%, #000 0%, transparent 0%);
}
/* White-logo variant — dark card on hover */
.lc-item--white .lc-bw {
  filter: grayscale(1) invert(1) contrast(0.85);
}
.lc-item--white .lc-color {
  mix-blend-mode: normal;
}
.lc-item--white:hover {
  background: #1a1a2e;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
}

/* ─── Anchor Navigation ────────────────────────────── */
.anchor-nav {
  position: sticky;
  top: 70px;
  z-index: 90;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  text-align: center;
}

.anchor-nav__list {
  display: flex;
  flex-direction: row;
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  justify-content: center;
}

.anchor-nav__link {
  display: block;
  padding: 1rem 1.5rem;
  color: var(--color-text-muted);
  font-size: 1.0625rem;
  font-weight: 500;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition:
    color 0.3s ease,
    border-bottom-color 0.3s ease;
  text-decoration: none;
}

.anchor-nav__link:hover {
  color: var(--color-text);
}

.anchor-nav__link.active {
  color: var(--brand-purple-light);
  border-bottom-color: var(--brand-purple);
}

@media (max-width: 768px) {
  .anchor-nav {
    overflow-x: auto;
  }
}

/* ─── Timeline ─────────────────────────────────────── */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand-purple);
}

.timeline__item {
  position: relative;
  padding-bottom: 3rem;
  padding-left: 3rem;
}

.timeline__dot {
  width: 14px;
  height: 14px;
  background: var(--brand-purple);
  border-radius: 50%;
  position: absolute;
  left: -7px;
  top: 0.5rem;
}

.timeline__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--brand-purple-light);
  margin-bottom: 0.5rem;
}

.timeline__title {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.timeline__content {
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: none;
}
.timeline__content p {
  max-width: none;
}

@media (max-width: 768px) {
  .timeline__item {
    padding-left: 2rem;
  }
}

/* ─── Pathway Cards ────────────────────────────────── */
.pathway-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.pathway-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  transition:
    transform 0.3s ease,
    border-color 0.3s ease;
}

.pathway-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand-purple);
}

.pathway-card__icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.pathway-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.pathway-card__link {
  color: var(--brand-purple-light);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

/* ─── Referral Steps ───────────────────────────────── */
.referral-steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  position: relative;
}

.referral-steps::before {
  content: "";
  position: absolute;
  left: 1.5rem;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.referral-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
  position: relative;
}

.referral-step__number {
  width: 3rem;
  height: 3rem;
  flex-shrink: 0;
  background: var(--brand-purple);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  z-index: 1;
  font-family: var(--font-display);
}

.referral-step__content h3 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.referral-step__content p {
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ─── Support Section ──────────────────────────────── */
.support-section {
  padding: var(--section-py) 0;
}

.support-section:nth-child(even) {
  background: var(--color-surface);
}

.support-section__header {
  margin-bottom: 2rem;
}

.support-section__header h2 {
  font-family: var(--font-display);
  margin-bottom: 1rem;
}

/* ─── Resource Link Card ───────────────────────────── */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.resource-link {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  transition: border-color 0.3s ease;
  text-decoration: none;
  display: block;
}

.resource-link:hover {
  border-color: var(--brand-purple);
}

.resource-link__name {
  font-weight: 600;
  font-size: 1.0625rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.resource-link__name::after {
  content: "↗";
  font-size: 0.75rem;
  opacity: 0.5;
}

.resource-link__desc {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ─── Gallery Grid ─────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.gallery-grid__item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.gallery-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-grid__item:hover img {
  transform: scale(1.05);
}

/* ─── Triangle Video ───────────────────────────────── */
.triangle-video {
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  width: 300px;
  height: 350px;
  overflow: hidden;
  margin: 0 auto;
}

.triangle-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 768px) {
  .triangle-video {
    width: 220px;
    height: 260px;
  }
}

/* ─── Next Steps CTA ───────────────────────────────── */
.next-steps {
  text-align: center;
  padding: var(--section-py) 0;
}

.next-steps h2 {
  font-family: var(--font-display);
  margin-bottom: 1.5rem;
}

.next-steps p {
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.next-steps__links {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Disclaimer ───────────────────────────────────── */
.disclaimer {
  background: var(--color-surface);
  border-left: 3px solid var(--brand-yellow);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  margin-bottom: 2rem;
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ─── Mobile overrides for inline-styled layouts ─────────────────
   Templates carry inline styles (white-space:nowrap one-liners, 1fr 1fr
   form/name grids) that media queries can't reach; attribute selectors +
   !important are the one way to reflow them on phones. */
@media (max-width: 767px) {
  [style*="white-space:nowrap"],
  [style*="white-space: nowrap"] {
    white-space: normal !important;
  }
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

.footer-nav a {
  overflow-wrap: anywhere;
}

/* Stat grids are inline repeat(4,1fr) on Partner + Our Impact — 2-up on phones */
@media (max-width: 767px) {
  [style*="grid-template-columns:repeat(4,1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  [style*="max-height:85vh"] {
    padding: 1.5rem !important; /* glossary modal breathing room */
  }
  [style*="text-align:justify"] {
    text-align: left !important; /* justify makes rivers at phone widths */
  }
}
