/* ===== GIFBR SITE STYLES ===== */

/* ===== LAYOUT UTILITIES ===== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}
.container--narrow {
  max-width: var(--content-default);
}
.container--text {
  max-width: var(--content-narrow);
}

section {
  padding-block: clamp(var(--space-16), 8vw, var(--space-32));
}

/* ===== HEADER / NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: oklch(from var(--color-surface) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--color-divider);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  height: 4rem;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 2px;
  text-decoration: none;
  color: var(--color-text);
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; color: var(--color-text); }
.site-logo svg { flex-shrink: 0; }
.site-header .site-logo > svg { transform: translateY(-3px); }
.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.logo-abbr {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  color: var(--color-text);
  letter-spacing: 0.02em;
  line-height: 25px;
}
.logo-tagline {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 200;
  color: var(--color-text-muted);
  letter-spacing: 0.02em;
}

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  list-style: none;
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.nav-links a.active {
  color: var(--color-accent);
  font-weight: 600;
  position: relative;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: var(--space-3);
  right: var(--space-3);
  bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}
.nav-links a.nav-cta.active::after { display: none; }

/* Stay Connected CTA — promoted nav link styled as a button. Uses the
   purple-to-blue gradient that echoes the brand purple from the logo. */
.nav-links a.nav-cta,
.nav-drawer a.nav-cta {
  color: #fff;
  background: linear-gradient(135deg, var(--color-brand-purple) 0%, var(--color-primary) 100%);
  padding: 0.55rem var(--space-5);
  border-radius: var(--radius-md);
  font-weight: 600;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 10px oklch(from var(--color-brand-purple) l c h / 0.35);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.nav-links a.nav-cta:hover,
.nav-drawer a.nav-cta:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--color-brand-purple) 0%, var(--color-primary-hover) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px oklch(from var(--color-brand-purple) l c h / 0.5);
}

/* Nav right */
.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Theme toggle */
.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  background: none;
  border: 1px solid var(--color-border);
}
.theme-toggle:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}

/* Mobile hamburger */
.nav-mobile-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  background: none;
  border: 1px solid var(--color-border);
}
.nav-mobile-toggle:hover { color: var(--color-text); background: var(--color-surface-2); }

/* Mobile drawer */
.nav-drawer {
  display: none;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-4);
  border-top: 1px solid var(--color-divider);
  background: var(--color-surface);
}
.nav-drawer.open { display: flex; }
.nav-drawer a {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text-muted);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  text-decoration: none;
}
.nav-drawer a:hover {
  color: var(--color-text);
  background: var(--color-surface-2);
}
.nav-drawer a.active {
  color: var(--color-accent);
  font-weight: 600;
  background: var(--color-surface-2);
  border-left: 3px solid var(--color-accent);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 0.65rem var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  border: none;
  cursor: pointer;
  letter-spacing: 0.01em;
  transition: background var(--transition), color var(--transition),
              transform var(--transition), box-shadow var(--transition);
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--color-brand-purple) 0%, var(--color-primary) 100%);
  color: #fff;
  box-shadow: 0 2px 10px oklch(from var(--color-brand-purple) l c h / 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-brand-purple) 0%, var(--color-primary-hover) 100%);
  box-shadow: 0 4px 16px oklch(from var(--color-brand-purple) l c h / 0.5);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
}
.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-text-inverse);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn-ghost:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}

/* ===== HERO ===== */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--color-primary);
  padding-block: clamp(var(--space-20), 10vw, var(--space-32));
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0e2040 0%, #1B3A6B 30%, #156B8A 65%, #11A0B5 100%);
  z-index: 0;
}

/* Subtle grid texture */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  z-index: 0;
}

/* Glowing orb accent — purple → blue so the brand purple from the logo's
   neuron echoes in the hero atmosphere, fading into the navy gradient. */
.hero-bg::after {
  content: '';
  position: absolute;
  top: 32%;
  left: 0;
  transform: translate(-25%, -50%);
  width: 55vmax;
  height: 55vmax;
  background: radial-gradient(circle,
    oklch(0.55 0.28 295 / 0.35) 0%,
    oklch(0.5 0.22 285 / 0.22) 22%,
    oklch(0.45 0.15 270 / 0.12) 45%,
    transparent 75%);
  z-index: 0;
}

/* Brand watermark — full logo (neuron + "Gateway Institute / for Brain
   Research" wordmark) scaled large and faded into the hero background. The
   whole lockup is visible so the GIFBR name reads through; a soft left-edge
   mask drops opacity slightly on the neuron side so it doesn't compete with
   the h1 on the left. Mask-image uses alpha: 0 = invisible, 1 = fully kept. */
.hero-neuron {
  position: absolute;
  top: 50%;
  right: -68%;
  /* Width is proportional to viewport width so the `right` + width pair
     produces consistent geometry across viewports. With `right:-75%` and
     `width:170vw`, the element's left edge sits ~5% of the viewport INSIDE
     (not off-screen), which puts the neuron's left edge at ~12% of the
     viewport — far enough from the edge to breathe. Cap at 240rem so the
     element doesn't get ridiculous on ultrawide / 4K displays. */
  width: min(170vw, 240rem);
  aspect-ratio: 133 / 38;
  transform: translateY(-50%);
  background: url("../images/gifbr-logo.svg") no-repeat center / contain;
  opacity: 0.2;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 5) 4%, #000 0%, #000 8%, rgba(0, 0, 0, 0.3) 16%, rgba(0, 0, 0, 0.02) 62%, transparent 100%);
          mask-image: linear-gradient(to right, rgba(0, 0, 0, 5) 4%, #000 0%, #000 8%, rgba(0, 0, 0, 0.3) 16%, rgba(0, 0, 0, 0.02) 62%, transparent 100%);
}
/* Responsive: the vw-based width keeps geometry consistent across viewports,
   but on small screens the rendered watermark feels visually small because
   only a narrow viewport-slice of element content is in view. We boost width
   (more of the element flows into the viewport) and raise opacity slightly
   so the brand mark stays prominent without competing with the hero text. */
@media (max-width: 720px) {
  .hero-neuron {
    right: -145%;
    width: min(240vw, 240rem);
    opacity: 0.18;
  }
}
@media (max-width: 480px) {
  .hero-neuron {
    right: -195%;
    width: min(290vw, 240rem);
    opacity: 0.16;
  }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-6), 5vw, var(--space-16));
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}
.hero-eyebrow::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: linear-gradient(to right, var(--color-brand-purple), var(--color-accent));
  border-radius: 2px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 400;
  color: #fff;
  line-height: 1.1;
  max-width: 14ch;
  margin-bottom: var(--space-8);
}

.hero-sub {
  font-size: var(--text-lg);
  color: oklch(1 0 0 / 0.72);
  max-width: 52ch;
  line-height: 1.6;
  margin-bottom: var(--space-10);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
  margin-top: clamp(var(--space-16), 8vw, var(--space-24));
  padding-top: var(--space-12);
  border-top: 1px solid oklch(1 0 0 / 0.12);
  max-width: 640px;
}
.stat-label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(1 0 0 / 0.5);
  margin-bottom: var(--space-1);
}
.stat-value {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: #fff;
  line-height: 1;
}

@media (max-width: 640px) {
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { max-width: none; }
}

/* ===== SECTION LABELS ===== */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}
.section-eyebrow::before {
  content: '';
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--color-accent);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: var(--space-6);
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  line-height: 1.7;
  max-width: 60ch;
  margin-bottom: var(--space-12);
}

/* ===== ABOUT SECTION (Homepage) ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}
.about-text p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-6);
}
.about-text p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .about-grid { grid-template-columns: 1fr; }
}

/* ===== GOALS ===== */
.goals-section {
  background: var(--color-surface);
}

.goals-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-12);
}

.goal-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: transform var(--transition), box-shadow var(--transition),
              border-color var(--transition);
}
.goal-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}
.goal-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--color-accent);
}
.goal-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.goal-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* ===== PILLARS (taglines) ===== */
.pillars-section {
  background: linear-gradient(160deg, var(--color-primary) 0%, #0a2d5e 100%);
  padding-block: clamp(var(--space-16), 10vw, var(--space-24));
  position: relative;
  overflow: hidden;
}
.pillars-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.pillars-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.pillar {
  padding: var(--space-10) var(--space-8);
  border-radius: var(--radius-xl);
  background: oklch(1 0 0 / 0.04);
  border: 1px solid oklch(1 0 0 / 0.1);
  text-align: center;
}
.pillar-icon {
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-lg);
  background: oklch(from var(--color-accent) l c h / 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: #7EDCEC;
}
.pillar p {
  font-size: var(--text-base);
  color: oklch(1 0 0 / 0.88);
  line-height: 1.6;
  font-weight: 400;
  max-width: none;
}

@media (max-width: 768px) {
  .pillars-inner { grid-template-columns: 1fr; }
}

/* ===== CLINICAL TRIALS CALLOUT ===== */
.trials-callout {
  background: var(--color-surface);
}
.trials-card {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0a4a6e 100%);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 5vw, var(--space-16));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.trials-card-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: #fff;
  margin-bottom: var(--space-3);
}
.trials-card-text p {
  font-size: var(--text-base);
  color: oklch(1 0 0 / 0.72);
  max-width: 50ch;
}

/* ===== PAGE HERO (inner pages) ===== */
.page-hero {
  background: linear-gradient(135deg, #0e2040 0%, #1B3A6B 55%, #11A0B5 100%);
  padding-block: clamp(var(--space-16), 8vw, var(--space-24));
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
}
.page-hero::after {
  content: '';
  position: absolute;
  top: -25%;
  right: -10%;
  width: 50vmax;
  height: 50vmax;
  background: radial-gradient(circle,
    oklch(0.55 0.28 295 / 0.4) 0%,
    oklch(0.5 0.22 285 / 0.22) 25%,
    oklch(0.45 0.15 270 / 0.12) 50%,
    transparent 78%);
  z-index: 0;
  pointer-events: none;
}

/* Brand watermark for inner-page banners — same purple+cyan neuron+wordmark
   lockup as the homepage, but scaled down for the shorter page-hero band. */
.page-neuron {
  position: absolute;
  top: 50%;
  right: -68%;
  width: min(170vw, 240rem);
  aspect-ratio: 133 / 38;
  transform: translateY(-50%);
  background: url("../images/gifbr-logo.svg") no-repeat center / contain;
  opacity: 0.14;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 5) 4%, #000 0%, #000 8%, rgba(0, 0, 0, 0.3) 16%, rgba(0, 0, 0, 0.02) 62%, transparent 100%);
          mask-image: linear-gradient(to right, rgba(0, 0, 0, 5) 4%, #000 0%, #000 8%, rgba(0, 0, 0, 0.3) 16%, rgba(0, 0, 0, 0.02) 62%, transparent 100%);
}
@media (max-width: 720px) {
  .page-neuron { right: -145%; width: min(240vw, 240rem); opacity: 0.16; }
}
@media (max-width: 480px) {
  .page-neuron { right: -195%; width: min(290vw, 240rem); opacity: 0.14; }
}

.page-hero-content {
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  color: #fff;
  margin-bottom: var(--space-4);
}
.page-hero p {
  font-size: var(--text-lg);
  color: oklch(1 0 0 / 0.72);
  max-width: 60ch;
}
.page-hero .page-hero-meta {
  font-size: var(--text-sm);
  color: oklch(1 0 0 / 0.65);
  margin-top: var(--space-4);
}
.page-hero .page-hero-meta strong { color: #fff; font-weight: 600; }
.page-hero .page-hero-meta a {
  color: oklch(from var(--color-accent) 0.82 c h);
  font-weight: 500;
  white-space: nowrap;
}
.page-hero .page-hero-meta a:hover { color: #fff; text-decoration: none; }

/* ===== CONTENT BLOCKS ===== */
.content-section {
  background: var(--color-bg);
}
.content-section.alt {
  background: var(--color-surface);
}

.prose h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--color-text);
  margin-bottom: var(--space-5);
  margin-top: var(--space-10);
}
.prose h2:first-child { margin-top: 0; }
.prose p {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-5);
}
.prose p:last-child { margin-bottom: 0; }
.prose ol, .prose ul {
  padding-left: var(--space-6);
  margin-bottom: var(--space-5);
}
.prose li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-2);
}
.prose strong { color: var(--color-text); font-weight: 600; }

/* ===== INFO CARDS ===== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-6);
  margin-top: var(--space-10);
}
.info-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}
[data-theme="dark"] .info-card { background: var(--color-surface-2); }

.info-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.info-card p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ===== FACILITY / WHY PD ===== */
.facility-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(var(--space-10), 6vw, var(--space-20));
  align-items: start;
}
@media (max-width: 768px) {
  .facility-grid { grid-template-columns: 1fr; }
}

.facility-features {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
[data-theme="dark"] .feature-item { background: var(--color-surface-2); }
.feature-check {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: var(--radius-sm);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  margin-top: 1px;
}
.feature-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.5;
  max-width: none;
}

/* ===== MISSION/VISION CARDS ===== */
.mv-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
  margin-top: var(--space-10);
}
@media (max-width: 640px) {
  .mv-grid { grid-template-columns: 1fr; }
}
.mv-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  border-top: 3px solid var(--color-accent);
}
[data-theme="dark"] .mv-card { background: var(--color-surface-2); }
.mv-label {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-3);
}
.mv-card h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 400;
  color: var(--color-text);
  line-height: 1.35;
  max-width: none;
}

/* ===== PIPELINE ===== */
.pipeline-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-10);
}
.pipeline-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6) var(--space-8);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
a.pipeline-item:hover {
  text-decoration: none;
  color: var(--color-text);
  border-color: var(--color-accent);
  box-shadow: 0 4px 16px oklch(from var(--color-accent) l c h / 0.15);
  transform: translateY(-1px);
}
[data-theme="dark"] .pipeline-item { background: var(--color-surface-2); }
.pipeline-badge {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  min-width: 7rem;
}
[data-theme="dark"] .pipeline-badge { color: var(--color-primary); }
.pipeline-info h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.pipeline-info p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
}
.status-enrolling {
  background: color-mix(in oklch, var(--color-accent) 15%, transparent);
  color: var(--color-accent);
}
[data-theme="dark"] .status-enrolling {
  background: var(--color-accent-light);
  color: var(--color-accent);
}
.status-enrolling::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

@media (max-width: 600px) {
  .pipeline-item {
    grid-template-columns: 1fr;
    gap: var(--space-3);
  }
}

/* Resources grid */
.resources-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-10);
}
.resource-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-decoration: none;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
[data-theme="dark"] .resource-card { background: var(--color-surface-2); }
.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
  text-decoration: none;
}
.resource-card h3 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.resource-card p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}
.resource-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-accent);
  margin-top: var(--space-3);
}

/* ===== SPECTRUM / COLLABORATION ===== */
.collab-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-8);
}
.collab-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-8);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}
[data-theme="dark"] .collab-item { background: var(--color-surface-2); }
.collab-number {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-md);
  background: var(--color-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-accent);
}
[data-theme="dark"] .collab-number {
  background: var(--color-accent-light);
}
.collab-item h3 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.collab-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.65;
  max-width: none;
}

/* ===== STAY CONNECTED FORM ===== */
.form-section {
  background: var(--color-bg);
}
.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-8), 5vw, var(--space-16));
  max-width: 720px;
  margin-inline: auto;
}
[data-theme="dark"] .form-card { background: var(--color-surface-2); }

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}
@media (max-width: 600px) {
  .form-grid { grid-template-columns: 1fr; }
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.form-field.full { grid-column: 1 / -1; }

label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
label .req {
  color: var(--color-accent);
  margin-left: 2px;
}

input, select, textarea {
  font: inherit;
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.65rem var(--space-4);
  width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  appearance: none;
}
input::placeholder, textarea::placeholder { color: var(--color-text-faint); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-accent) 15%, transparent);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238B96AA' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-submit {
  margin-top: var(--space-6);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-4);
}

/* Radio / checkbox option groups (Google Forms-shape fields) */
.option-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  padding-top: var(--space-2);
}
.option-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
  cursor: pointer;
  margin: 0;
  width: auto;
}
.option-item input[type="radio"],
.option-item input[type="checkbox"] {
  appearance: auto;
  -webkit-appearance: auto;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  accent-color: var(--color-accent);
  flex-shrink: 0;
}
.option-item input[type="radio"]:focus,
.option-item input[type="checkbox"]:focus {
  box-shadow: none;
  border: 0;
}

.other-text {
  flex-basis: 100%;
  display: none;
  margin-top: var(--space-3);
}
.other-text.show { display: block; }

.form-thanks {
  font-size: var(--text-sm);
  color: var(--color-accent);
  font-weight: 500;
  opacity: 0;
  transition: opacity var(--transition);
}
.form-thanks.show { opacity: 1; }

.form-consent {
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.55;
  max-width: none;
}
.form-consent a { color: var(--color-accent); font-weight: 500; }

/* Long-form policy / privacy body styling */
.policy-text h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}
.policy-text h2:first-of-type { margin-top: var(--space-8); }
.policy-text p, .policy-text li {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.7;
}
.policy-text ul {
  margin-bottom: var(--space-4);
  padding-left: var(--space-6);
}
.policy-text li { margin-bottom: var(--space-2); }
.policy-text strong { color: var(--color-text); }

/* Cookie banner — minimal bottom-of-viewport notice, dismissed via OK */
.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  max-width: 36rem;
  margin-inline: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  gap: var(--space-4);
  z-index: 1000;
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity var(--transition), transform var(--transition);
}
.cookie-banner.show { opacity: 1; transform: translateY(0); }
.cookie-banner p {
  margin: 0;
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.5;
  flex: 1;
}
.cookie-banner a { color: var(--color-accent); font-weight: 500; }
.cookie-banner-actions {
  display: flex;
  flex-shrink: 0;
  gap: var(--space-2);
}
.cookie-banner-ok,
.cookie-banner-reject {
  border: none;
  border-radius: var(--radius-md);
  padding: 0.55rem var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}
.cookie-banner-ok {
  background: linear-gradient(135deg, var(--color-brand-purple) 0%, var(--color-primary) 100%);
  color: #fff;
}
.cookie-banner-ok:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px oklch(from var(--color-brand-purple) l c h / 0.4);
}
.cookie-banner-reject {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.cookie-banner-reject:hover {
  background: var(--color-surface-2);
  color: var(--color-text);
}
@media (max-width: 600px) {
  .cookie-banner { flex-direction: column; align-items: stretch; text-align: left; }
  .cookie-banner-actions { flex-direction: column; }
  .cookie-banner-ok,
  .cookie-banner-reject { width: 100%; }
}

/* ===== EXPANDED ACCESS ===== */
.policy-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: clamp(var(--space-10), 6vw, var(--space-16));
  align-items: start;
}
@media (max-width: 900px) {
  .policy-layout { grid-template-columns: 1fr; }
}
.policy-sidebar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: sticky;
  top: 6rem;
}
[data-theme="dark"] .policy-sidebar { background: var(--color-surface-2); }
.sidebar-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.sidebar-nav a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  transition: color var(--transition), background var(--transition);
}
.sidebar-nav a:hover { color: var(--color-text); background: var(--color-surface-offset); }

.criteria-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-6) 0;
}
.criteria-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
[data-theme="dark"] .criteria-item { background: var(--color-surface-2); }
.criteria-num {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  background: var(--color-primary-highlight);
  color: var(--color-primary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 700;
}
[data-theme="dark"] .criteria-num {
  background: var(--color-primary-highlight);
  color: var(--color-primary);
}
.criteria-item p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: none;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: clamp(var(--space-12), 6vw, var(--space-20));
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(var(--space-8), 4vw, var(--space-16));
}
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .site-logo { margin-bottom: var(--space-4); }
.footer-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-5);
  max-width: 32ch;
}
.footer-contact a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: var(--space-2);
}
.footer-contact a:hover { color: var(--color-accent); text-decoration: none; }

.footer-nav-group h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
}
.footer-nav-group ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  list-style: none;
}
.footer-nav-group a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer-nav-group a:hover { color: var(--color-accent); text-decoration: none; }

.footer-bottom {
  margin-top: var(--space-12);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.footer-bottom p {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  max-width: none;
}
.footer-legal-links a {
  color: var(--color-text-muted);
  font-weight: 500;
}
.footer-legal-links a:hover { color: var(--color-accent); text-decoration: none; }

/* ===== ANIMATIONS ===== */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.stagger > * { transition-delay: calc(var(--i, 0) * 80ms); }

/* Active nav link styling lives earlier in the file — this legacy rule was
   overriding it; removed. */
