/* =========================================================
   CORDASTRA — Design System
   Blue-and-yellow academic-journal palette with cinematic, restrained motion.
========================================================= */

:root {
  /* =========================================================
     Color Spectrum — Rich Blue & Yellow System
     ========================================================= */

  /* Blue Spectrum */
  --blue-950: #071324;       /* Deepest Midnight Base */
  --blue-900: #0D1F38;       /* Oxford Navy - core hero & dark surfaces */
  --blue-800: #162E52;       /* Classic Navy - cards & elevated dark surfaces */
  --blue-700: #1D3F6E;       /* Twilight Navy - structured borders & dark buttons */
  --blue-600: #2563EB;       /* Royal Cobalt - active interactive links & highlights */
  --blue-500: #3B82F6;       /* Bright Cerulean - icons, focus outlines */
  --blue-400: #60A5FA;       /* Sky Blue - accents & glow effects on dark surfaces */
  --blue-300: #93C5FD;       /* Soft Periwinkle - secondary text on dark */
  --blue-200: #C3DBF7;       /* Mist Blue - refined borders & line tracks */
  --blue-100: #E3EEFC;       /* Pale Ice Blue - badge backdrops, tag pills */
  --blue-50:  #F2F6FC;       /* Ultra-soft Ice Wash - alternate section background */

  /* Yellow & Gold Spectrum */
  --yellow-900: #78350F;     /* Deep Umber Bronze */
  --yellow-800: #92400E;     /* Rich Amber - high-contrast badge text */
  --yellow-700: #946200;     /* Deep Ochre - readable accent text on light surfaces */
  --yellow-600: #D97706;     /* Warm Marigold Amber - link hover & focus */
  --yellow-500: #F5A623;     /* Core Radiant Golden Yellow - brand accent & CTA */
  --yellow-400: #FBBF24;     /* Sunflower Yellow - active chips, glowing dots */
  --yellow-300: #FCD269;     /* Soft Buttercup - highlights, constellation nodes */
  --yellow-200: #FDE68A;     /* Primrose Yellow - delicate border highlights */
  --yellow-100: #FEF3C7;     /* Warm Custard - pill badges & tag containers */
  --yellow-50:  #FFFBEB;     /* Pale Cream Yellow - subtle hover washes */

  /* Core Semantic Mappings */
  --parchment: var(--blue-50);
  --surface: #FFFFFF;
  --forest: var(--blue-900);
  --forest-light: var(--blue-800);
  --forest-deep: var(--blue-950);
  --gold: var(--yellow-500);
  --gold-light: var(--yellow-300);
  --border: var(--blue-200);
  --border-on-forest: rgba(195, 219, 247, 0.18);

  /* Accessible text variants of the accent colors */
  --gold-text: var(--yellow-800);
  --gold-on-forest: var(--yellow-400);

  --ink: #0B1626;
  --muted: #4B5E78;
  --muted-on-forest: var(--blue-300);
  --cream-on-forest: #F4F7FC;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 6px;
  --radius: 10px;
  --max-width: 1200px;
  --max-width-narrow: 760px;

  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 200ms;
  --dur: 320ms;
  --dur-slow: 500ms;
}

/* =========================================================
   Reset & base
========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font-body);
  background-color: var(--parchment);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
input { font-family: inherit; }

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

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
  border-radius: 2px;
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.hairline { border: none; border-top: 1px solid var(--border); margin: 0; }
.hairline--forest { border-top-color: var(--border-on-forest); }

/* =========================================================
   Typography
========================================================= */
.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow-800);
  background-color: var(--yellow-100);
  border: 1px solid var(--yellow-200);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.label--inverse {
  color: var(--yellow-300);
  background-color: rgba(251, 191, 36, 0.12);
  border-color: rgba(251, 191, 36, 0.28);
}

.section-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(28px, 3.4vw, 42px);
  color: var(--forest);
  line-height: 1.18;
}
.section-heading--inverse { color: var(--cream-on-forest); }

.section-lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 620px;
  margin-top: 18px;
}
.section-lede--inverse { color: var(--muted-on-forest); }

.hero-heading {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(48px, 9vw, 96px);
  color: var(--cream-on-forest);
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.eyebrow-quiet {
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* =========================================================
   Buttons
========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 26px;
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
    border-color var(--dur) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-600));
  color: var(--cream-on-forest);
  border: 1px solid var(--blue-700);
  box-shadow: 0 4px 12px rgba(13, 31, 56, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  border-color: var(--blue-600);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.25);
}
.btn-primary:disabled { background: var(--muted); cursor: not-allowed; transform: none; box-shadow: none; }

.btn-gold {
  background: linear-gradient(135deg, var(--yellow-400), var(--yellow-500));
  color: var(--blue-950);
  font-weight: 600;
  border: 1px solid var(--yellow-400);
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.32);
}
.btn-gold:hover {
  background: linear-gradient(135deg, var(--yellow-300), var(--yellow-400));
  border-color: var(--yellow-300);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.45);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--blue-200);
  color: var(--blue-900);
}
.btn-outline:hover:not(:disabled) {
  border-color: var(--yellow-500);
  background-color: var(--yellow-50);
  color: var(--yellow-800);
  box-shadow: 0 2px 8px rgba(245, 166, 35, 0.15);
}
.btn-outline:disabled { opacity: 0.6; cursor: not-allowed; }

.btn-outline--inverse {
  border-color: rgba(195, 219, 247, 0.35);
  color: var(--cream-on-forest);
  background: rgba(13, 31, 56, 0.35);
  backdrop-filter: blur(4px);
}
.btn-outline--inverse:hover {
  border-color: var(--yellow-300);
  color: var(--yellow-300);
  background-color: rgba(251, 191, 36, 0.12);
  box-shadow: 0 4px 14px rgba(245, 166, 35, 0.2);
}

.btn-ghost-inverse { background: transparent; color: var(--cream-on-forest); border-color: transparent; padding: 13px 4px; }
.btn-ghost-inverse:hover { color: var(--gold-on-forest); }

.btn-sm {
  padding: 8px 16px;
  font-size: 13.5px;
  gap: 6px;
}

/* =========================================================
   Navigation
========================================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; width: 100%;
  z-index: 200;
  border-bottom: 1px solid transparent;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
    backdrop-filter var(--dur) var(--ease);
}
.navbar.scrolled {
  background-color: rgba(244, 246, 250, 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}
.navbar.on-dark:not(.scrolled) .nav-brand,
.navbar.on-dark:not(.scrolled) .nav-link { color: var(--cream-on-forest); }
.navbar.on-dark:not(.scrolled) .mobile-menu-btn { color: var(--cream-on-forest); }

.nav-container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: var(--forest);
  letter-spacing: 0.01em;
  transition: color var(--dur) var(--ease);
}

.nav-links { display: flex; gap: 30px; }

.nav-link {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 0;
  transition: color var(--dur) var(--ease);
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.nav-link:hover, .nav-link.active { color: var(--gold-text); }
.nav-link:hover::after, .nav-link.active::after { transform: scaleX(1); }

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

.mobile-menu-btn {
  display: none;
  color: var(--forest);
  padding: 6px;
}
.mobile-menu-btn svg { width: 24px; height: 24px; }

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  background-color: var(--surface);
  padding: 12px 24px 24px;
  border-bottom: 1px solid var(--border);
}
.mobile-menu.open { display: flex; }
.mobile-link {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-link.active { color: var(--gold-text); }
.mobile-menu .btn { margin-top: 16px; align-self: flex-start; }

@media (max-width: 860px) {
  .nav-links, .nav-actions .btn-primary { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}

/* =========================================================
   Reveal-on-scroll utility (progressive enhancement only)
========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .reveal.reveal-ready {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  }
  .reveal.revealed { opacity: 1; transform: none; }
  .reveal-group.revealed > * {
    transition-delay: calc(var(--stagger-index, 0) * 90ms);
  }
}

/* =========================================================
   Hero — Home
========================================================= */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 15% 10%, var(--blue-600) 0%, transparent 52%),
    radial-gradient(ellipse at 90% 70%, var(--blue-700) 0%, transparent 55%),
    linear-gradient(135deg, var(--blue-800), var(--blue-950));
  overflow: hidden;
  padding: 200px 24px 140px;
  isolation: isolate;
}
.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.55;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 50% 32%, rgba(251, 191, 36, 0.16) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 50%, rgba(13, 31, 56, 0) 30%, rgba(7, 19, 36, 0.4) 100%);
  pointer-events: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.hero-eyebrow {
  display: inline-block;
  color: var(--yellow-300);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  padding: 4px 16px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero-tagline {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: clamp(18px, 2.4vw, 24px);
  color: var(--yellow-300);
  margin-top: 18px;
}
.hero-description {
  font-size: 18px;
  color: var(--muted-on-forest);
  max-width: 560px;
  margin: 28px auto 0;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 44px;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-anim {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-rise var(--dur-slow) var(--ease) forwards;
  }
  @keyframes hero-rise { to { opacity: 1; transform: none; } }
}

@media (max-width: 640px) {
  .hero { padding: 160px 20px 96px; }
}

/* =========================================================
   About — split composition
========================================================= */
.about {
  padding: 120px 0;
  background: linear-gradient(120deg, var(--blue-100), var(--blue-50) 58%, var(--yellow-50));
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: center;
}
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
}
.about-copy p { color: var(--muted); font-size: 16px; margin-top: 18px; max-width: 52ch; }
.about-statement {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.6vw, 32px);
  color: var(--forest);
  line-height: 1.4;
  margin: 32px 0;
  padding-left: 24px;
  border-left: 2px solid var(--gold);
}
.about-diagram {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}
.about-diagram svg { width: 100%; height: 100%; }

/* =========================================================
   Explore — topic grid
========================================================= */
.explore {
  padding: 120px 0;
  background: linear-gradient(180deg, var(--yellow-50), var(--surface));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.explore-header { max-width: 640px; margin-bottom: 56px; }
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.topic-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
  padding: 28px 24px;
  background-color: var(--card-tint, var(--blue-50));
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.topic-card:hover, .topic-card:focus-visible {
  background-color: var(--card-hover, var(--blue-100));
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(13, 31, 56, 0.08);
  z-index: 1;
}
.topic-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur) var(--ease);
}
.topic-card:hover::before, .topic-card:focus-visible::before { transform: scaleX(1); }
.topic-num {
  font-size: 12px;
  font-weight: 600;
  color: var(--blue-700);
  letter-spacing: 0.06em;
}
.topic-name {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--forest);
}
.topic-dest {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gold-text);
  margin-top: auto;
}
.topic-dest svg {
  width: 14px; height: 14px;
  transform: translateX(-6px);
  opacity: 0;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.topic-card:hover .topic-dest svg, .topic-card:focus-visible .topic-dest svg {
  transform: translateX(0);
  opacity: 1;
}

/* =========================================================
   What We Do — editorial rows
========================================================= */
.activities {
  padding: 120px 0;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
}
.activities-header { max-width: 640px; margin-bottom: 40px; }
.activity-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 28px;
  padding: 40px 0;
  border-top: 1px solid var(--border);
  align-items: start;
}
.activity-row:last-child { border-bottom: 1px solid var(--border); }
.activity-icon { color: var(--gold); width: 40px; height: 40px; margin-top: 4px; }
.activity-body h3 {
  font-family: var(--font-heading);
  font-size: 24px;
  color: var(--forest);
  margin-bottom: 10px;
}
.activity-body p { color: var(--muted); max-width: 60ch; font-size: 16px; }

@media (min-width: 760px) {
  .activity-row { grid-template-columns: 72px 1fr; }
}

/* =========================================================
   Our Approach — four-step sequence
========================================================= */
.approach {
  padding: 120px 0 140px;
  background: linear-gradient(135deg, var(--yellow-50), var(--yellow-100));
  border-top: 1px solid var(--border);
  overflow: hidden;
}
.approach-header { max-width: 640px; margin-bottom: 72px; }
.approach-track { position: relative; }

.approach-line {
  position: absolute;
  color: var(--gold);
  pointer-events: none;
}
.approach-line--h { top: 27px; left: 0; width: 100%; height: 4px; display: none; }
.approach-line--v { top: 0; left: 27px; width: 4px; height: 100%; }
.approach-line path, .approach-line line {
  stroke: var(--gold);
  stroke-width: 2;
  fill: none;
}
.approach-line-path {
  stroke-dasharray: var(--line-length, 1000);
  stroke-dashoffset: var(--line-length, 1000);
}
@media (prefers-reduced-motion: no-preference) {
  .approach-track.drawn .approach-line-path {
    transition: stroke-dashoffset 1100ms var(--ease);
    stroke-dashoffset: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .approach-line-path { stroke-dashoffset: 0; }
}

.approach-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  position: relative;
}
.approach-step {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-left: 72px;
  position: relative;
  opacity: 0.5;
  transition: opacity var(--dur-slow) var(--ease);
}
.approach-step.active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .approach-step { opacity: 1; }
}
.approach-num {
  position: absolute;
  left: 0; top: -2px;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--muted);
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.approach-step.active .approach-num { color: var(--blue-900); border-color: var(--yellow-500); background: var(--yellow-200); }
.approach-step.active:nth-child(even) .approach-num { color: var(--blue-800); border-color: var(--blue-400); background: var(--blue-100); }
.approach-step h3 { font-family: var(--font-heading); font-size: 22px; color: var(--forest); }
.approach-step p { color: var(--muted); font-size: 15.5px; max-width: 42ch; }

@media (min-width: 900px) {
  .approach-line--h { display: block; }
  .approach-line--v { display: none; }
  .approach-steps { grid-template-columns: repeat(4, 1fr); gap: 32px; }
  .approach-step { padding-left: 0; padding-top: 88px; text-align: left; }
  .approach-num { left: 50%; transform: translateX(-50%); top: 0; }
}

/* =========================================================
   Core Objective — bold forest statement section
========================================================= */
.objective {
  background: radial-gradient(ellipse at 85% 15%, var(--blue-600), transparent 65%), linear-gradient(120deg, var(--blue-950), var(--blue-700));
  padding: 140px 24px;
  text-align: center;
}
.objective-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.objective-list p {
  font-family: var(--font-heading);
  font-size: clamp(26px, 4.6vw, 46px);
  line-height: 1.25;
  color: var(--cream-on-forest);
}
.objective-list .accent { color: var(--gold-on-forest); }
@media (prefers-reduced-motion: no-preference) {
  .objective-list.reveal-group.reveal-ready p {
    opacity: 0; transform: translateY(16px);
    transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
  }
  .objective-list.reveal-group.revealed p:nth-child(1) { transition-delay: 0ms; }
  .objective-list.reveal-group.revealed p:nth-child(2) { transition-delay: 160ms; }
  .objective-list.reveal-group.revealed p:nth-child(3) { transition-delay: 320ms; }
  .objective-list.reveal-group.revealed p { opacity: 1; transform: none; }
}

/* =========================================================
   More Than a Conference — departments
========================================================= */
.community {
  padding: 120px 0;
  background: linear-gradient(145deg, var(--blue-100), var(--blue-50) 65%, var(--yellow-50));
}
.community-header { max-width: 680px; margin-bottom: 20px; }
.community-note { color: var(--muted); font-size: 16px; max-width: 640px; margin-bottom: 56px; }
.departments-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
@media (min-width: 700px) {
  .departments-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1080px) {
  .departments-grid { grid-template-columns: repeat(3, 1fr); }
}
.department-card {
  background: var(--card-tint, var(--blue-50));
  padding: 32px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.department-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--forest);
  margin-bottom: 10px;
}
.department-card p { color: var(--muted); font-size: 15px; }
.community-skills {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 15px;
  max-width: 680px;
}
.community-skills strong { color: var(--forest); font-weight: 600; }

/* =========================================================
   Recruitment section
========================================================= */
.recruitment {
  padding: 110px 0 120px;
  background: linear-gradient(180deg, var(--blue-50) 0%, #FFFFFF 40%, var(--parchment) 100%);
  border-top: 1px solid var(--border);
  position: relative;
}
.recruitment-header {
  max-width: 760px;
  margin-bottom: 36px;
}
.recruitment-sub {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
  margin-top: 16px;
}
.recruitment-departments {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.recruitment-dept-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--blue-100);
  color: var(--blue-900);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 999px;
  border: 1px solid var(--blue-200);
}
.recruitment-card {
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(13, 31, 56, 0.08);
  overflow: hidden;
  margin-top: 32px;
}
.recruitment-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 24px;
  background: linear-gradient(90deg, var(--blue-50), #FFFFFF);
  border-bottom: 1px solid var(--border);
}
.recruitment-status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--forest);
}
.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  display: inline-block;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.recruitment-iframe-container {
  width: 100%;
  background: #FFFFFF;
  position: relative;
  min-height: 850px;
}
.recruitment-iframe-container iframe {
  display: block;
  width: 100%;
  height: 880px;
  border: 0;
}
@media (max-width: 640px) {
  .recruitment {
    padding: 70px 0 90px;
  }
  .recruitment-card-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .recruitment-iframe-container {
    min-height: 750px;
  }
  .recruitment-iframe-container iframe {
    height: 780px;
  }
}

/* =========================================================
   Closing invitation
========================================================= */
.closing {
  padding: 140px 24px;
  background: linear-gradient(120deg, var(--yellow-200), var(--yellow-100) 58%, var(--yellow-50));
  text-align: center;
  border-top: 1px solid var(--border);
}
.closing-heading {
  font-family: var(--font-heading);
  font-size: clamp(30px, 4.6vw, 52px);
  color: var(--forest);
  max-width: 780px;
  margin: 0 auto;
  line-height: 1.2;
}
.closing-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin: 22px auto 0;
}
.closing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 40px;
}

/* =========================================================
   Footer
========================================================= */
.footer {
  background: linear-gradient(135deg, var(--blue-950), var(--blue-800));
  color: var(--parchment);
  padding: 80px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  margin-bottom: 56px;
}
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
.footer-brand {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  color: var(--gold-on-forest);
  display: block;
  margin-bottom: 16px;
}
.footer-desc { color: var(--muted-on-forest); font-size: 14px; max-width: 320px; }
.footer-col h4 {
  color: var(--parchment);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--muted-on-forest);
  font-size: 14px;
  margin-bottom: 12px;
  transition: color var(--dur) var(--ease);
}
.footer-col a:hover { color: var(--gold-on-forest); }
.footer-col a[hidden] { display: none; }
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--border-on-forest);
  padding-top: 28px;
  font-size: 13px;
  color: var(--muted-on-forest);
}
@media (min-width: 760px) {
  .footer-bottom { flex-direction: row; justify-content: space-between; }
}

/* =========================================================
   Research Hub — hero, search, topics
========================================================= */
.rh-hero {
  position: relative;
  background: radial-gradient(ellipse at 10% 0%, var(--blue-600), transparent 60%), linear-gradient(120deg, var(--blue-900), var(--blue-700));
  padding: 190px 24px 96px;
  text-align: center;
  overflow: hidden;
}
.rh-hero-content { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.rh-hero .hero-description { color: var(--muted-on-forest); }

.search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--surface);
  padding: 8px;
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 10px 34px rgba(0,0,0,0.18);
  max-width: 640px;
  margin: 40px auto 0;
}
.search-input-wrapper {
  flex: 1;
  min-width: 200px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
}
.search-icon { color: var(--muted); width: 20px; height: 20px; flex-shrink: 0; }
.search-input-wrapper input {
  width: 100%;
  border: none;
  outline: none;
  font-size: 16px;
  background: transparent;
  color: var(--ink);
  padding: 12px 0;
}
.search-input-wrapper input::placeholder { color: var(--muted); }

/* Topic collections */
.topics-section {
  padding: 80px 0;
  background-color: var(--surface);
  border-bottom: 1px solid var(--border);
}
.topics-collection { margin-top: 48px; }
.topics-collection:first-of-type { margin-top: 0; }
.topics-collection h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--forest);
  margin-bottom: 20px;
}
.rh-topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}
.rh-topic-card {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  padding: 18px 20px;
  background-color: var(--card-tint, var(--blue-50));
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.rh-topic-card:hover, .rh-topic-card:focus-visible, .rh-topic-card.active {
  background-color: var(--card-hover, var(--blue-100));
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(245, 166, 35, 0.16);
}
.rh-topic-card .topic-num { font-size: 12px; font-weight: 600; color: var(--gold-text); }
.rh-topic-card .topic-name { flex: 1; font-size: 14.5px; font-weight: 500; color: var(--forest); }
.rh-topic-card .topic-arrow {
  width: 15px; height: 15px; color: var(--gold);
  opacity: 0; transform: translateX(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.rh-topic-card:hover .topic-arrow, .rh-topic-card:focus-visible .topic-arrow, .rh-topic-card.active .topic-arrow {
  opacity: 1; transform: translateX(0);
}

/* =========================================================
   Research results
========================================================= */
.results-section { padding: 76px 0 100px; min-height: 480px; }
.results-header { margin-bottom: 40px; max-width: 760px; }
.query-highlight { color: var(--gold-text); }
.results-meta { font-size: 14px; color: var(--muted); font-weight: 500; margin-top: 8px; }

.ui-states-container { display: flex; justify-content: center; }
.ui-state { display: none; text-align: center; padding: 56px 24px; max-width: 480px; }
.ui-state.active { display: block; }
.state-icon {
  width: 48px; height: 48px; margin: 0 auto 22px;
  color: var(--gold-text);
  background: rgba(245, 166, 35, 0.15);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.state-icon svg { width: 22px; height: 22px; }
.ui-state h3 { font-family: var(--font-heading); font-size: 22px; color: var(--forest); margin-bottom: 10px; }
.ui-state p { color: var(--muted); margin-bottom: 20px; font-size: 15px; }

.spinner {
  width: 38px; height: 38px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  margin: 0 auto 22px;
}
@media (prefers-reduced-motion: no-preference) {
  .spinner { animation: spin 0.9s linear infinite; }
  .btn-spinner { animation: spin 0.8s linear infinite; }
}
@keyframes spin { to { transform: rotate(360deg); } }
.btn-spinner {
  display: inline-block;
  width: 15px; height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}

/* Skeleton cards for load-more */
.skeleton-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  height: 260px;
  position: relative;
  overflow: hidden;
}
.skeleton-line {
  height: 12px;
  border-radius: 4px;
  background: var(--border);
  margin-bottom: 14px;
}
@media (prefers-reduced-motion: no-preference) {
  .skeleton-card::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(245,166,35,0.12), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.4s infinite;
  }
}
@keyframes shimmer { 100% { transform: translateX(100%); } }

.research-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 22px;
  margin-bottom: 44px;
}

.research-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.research-card:hover { transform: translateY(-3px); border-color: var(--gold-light); box-shadow: 0 14px 30px rgba(13,31,56,0.07); }
@media (prefers-reduced-motion: no-preference) {
  .research-card.card-enter {
    opacity: 0; transform: translateY(14px);
    animation: card-in var(--dur-slow) var(--ease) forwards;
  }
  @keyframes card-in { to { opacity: 1; transform: none; } }
}

.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.card-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.09em;
  color: var(--gold-text);
  background: rgba(245, 166, 35, 0.12);
  padding: 4px 8px; border-radius: 4px;
}
.card-year { font-size: 13px; color: var(--muted); font-weight: 500; }
.card-title { font-family: var(--font-heading); font-size: 19px; color: var(--forest); line-height: 1.32; margin-bottom: 10px; }
.card-authors { font-size: 13.5px; color: var(--ink); margin-bottom: 4px; }
.card-authors.is-fallback, .card-journal.is-fallback, .card-doi.is-fallback { color: var(--muted); font-style: italic; }
.card-journal { font-size: 13.5px; color: var(--muted); font-style: italic; margin-bottom: 14px; }
.card-abstract { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; flex: 1; }
.card-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border-top: 1px solid var(--border); padding-top: 14px; margin-top: auto;
}
.card-doi { font-size: 11.5px; color: var(--muted); max-width: 140px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-link { font-size: 13px; font-weight: 600; color: var(--forest); display: inline-flex; align-items: center; gap: 4px; transition: color var(--dur) var(--ease); }
.card-link svg { width: 14px; height: 14px; }
.research-card:hover .card-link { color: var(--gold-text); }

.load-more-container { text-align: center; display: none; }
.end-of-results { font-size: 14px; color: var(--muted); margin-top: 16px; }
.inline-retry {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--muted);
}

/* External discovery */
.external-search-section { padding: 72px 0; background-color: var(--parchment); border-top: 1px solid var(--border); }
.external-notice-card {
  display: flex; flex-direction: column; gap: 24px;
  background-color: var(--surface);
  padding: 40px; border-radius: var(--radius); border: 1px solid var(--border);
}
.external-links-wrapper { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
@media (min-width: 760px) {
  .external-notice-card { flex-direction: row; align-items: center; justify-content: space-between; }
  .external-links-wrapper { flex-direction: row; align-items: center; margin-top: 0; }
}
.external-heading { font-family: var(--font-heading); font-size: 23px; color: var(--forest); margin-bottom: 10px; }
.external-text { color: var(--muted); font-size: 14.5px; max-width: 560px; }

/* =========================================================
   Utility
========================================================= */
.hidden { display: none !important; }
[hidden] { display: none !important; }

@media (max-width: 640px) {
  .search-form { flex-direction: column; }
  .search-form .btn { width: 100%; }
}


/* =========================================================
   Floating Navigation Dock
   Animated icon-navigation bar at viewport bottom centre.
   Inspired by Vercel-style tooltip interactions, adapted
   to Cordastra's blue / butter-yellow / gold palette.
========================================================= */

/* --- Dock container --- */
.dock {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 180;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.dock--hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(16px);
  pointer-events: none;
}

/* --- Dock bar surface --- */
.dock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background-color: rgba(244, 246, 250, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow:
    0 4px 16px rgba(13, 31, 56, 0.08),
    0 1px 3px rgba(13, 31, 56, 0.06);
  pointer-events: auto;
}

/* --- Individual dock item --- */
.dock__item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--muted);
  transition:
    color var(--dur-fast) var(--ease),
    background-color var(--dur-fast) var(--ease),
    transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
  text-decoration: none;
  outline: none;
}

.dock__item:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 2px;
  border-radius: 12px;
}

/* Active destination highlight */
.dock__item--active {
  color: var(--forest);
  background-color: var(--yellow-200);
}
.dock__item--active .dock__icon {
  color: var(--forest);
}

/* Hover / focus lift */
.dock__item--hover,
.dock__item:hover {
  color: var(--forest);
  transform: translateY(-3px);
}

/* Press feedback */
.dock__item--pressed {
  transform: translateY(0px) scale(0.93) !important;
  transition-duration: 80ms !important;
}

/* --- Icon --- */
.dock__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: color var(--dur-fast) var(--ease);
}
.dock__icon svg {
  width: 22px;
  height: 22px;
}

/* --- Tooltip --- */
.dock__tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  padding: 6px 14px;
  background-color: var(--forest);
  color: var(--parchment);
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(13, 31, 56, 0.22);
  pointer-events: none;

  /* Hidden by default */
  opacity: 0;
  visibility: hidden;

  /* Spring-like transition */
  transition:
    opacity 180ms var(--ease),
    transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0ms linear 280ms;
}

/* Tooltip arrow */
.dock__tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--forest);
}

/* Tooltip visible state */
.dock__tooltip--visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 180ms var(--ease),
    transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
    visibility 0ms linear 0ms;
}

/* -------------------------------------------------------
   Reduced motion: immediate state changes
------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .dock__item {
    transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
  }
  .dock__item--hover,
  .dock__item:hover {
    transform: none;
  }
  .dock__tooltip {
    transition: opacity 120ms var(--ease), visibility 0ms linear 120ms;
    transform: translateX(-50%) translateY(0);
  }
  .dock__tooltip--visible {
    transition: opacity 120ms var(--ease), visibility 0ms linear 0ms;
  }
  .dock__item--pressed {
    transform: scale(0.96) !important;
  }
}

/* -------------------------------------------------------
   Mobile adaptation: compact bar with visible text labels.
   Replaces floating dock with a fixed bottom nav.
------------------------------------------------------- */
@media (max-width: 640px) {
  .dock {
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
  }
  .dock--hidden {
    transform: translateY(16px);
  }

  .dock__bar {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    gap: 0;
    padding: 4px 0;
    padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    background-color: rgba(244, 246, 250, 0.96);
    box-shadow: 0 -1px 8px rgba(13, 31, 56, 0.06);
  }

  .dock__item {
    flex-direction: column;
    gap: 2px;
    width: auto;
    height: auto;
    padding: 6px 10px 4px;
    border-radius: 8px;
    min-width: 56px;
    min-height: 44px;
  }

  .dock__item--hover,
  .dock__item:hover {
    transform: none;
  }
  .dock__item--pressed {
    transform: scale(0.95) !important;
  }

  .dock__icon {
    width: 20px;
    height: 20px;
  }
  .dock__icon svg {
    width: 20px;
    height: 20px;
  }

  /* Show labels instead of tooltips on mobile */
  .dock__tooltip {
    /* Repurpose as a visible label */
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    padding: 0;
    background: transparent;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    white-space: nowrap;
    border-radius: 0;
    box-shadow: none;
    pointer-events: none;
    transition: color var(--dur-fast) var(--ease);
  }
  .dock__tooltip::after { display: none; }
  .dock__tooltip--visible {
    transform: none;
  }

  .dock__item--active .dock__tooltip {
    color: var(--forest);
  }
}

/* -------------------------------------------------------
   Reserve space for the dock so it doesn't cover content.
   On desktop: add bottom padding to the footer section above.
   On mobile: add padding to body bottom for the fixed bar.
------------------------------------------------------- */
body {
  padding-bottom: 0; /* reset any inherited */
}
@media (max-width: 640px) {
  body {
    padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px));
  }
}
/* Desktop: the closing/footer already has enough spacing. */


/* =========================================================
   FoldText — 3D fold-unfold text animation
   Ported from React Bits <FoldText /> (MIT).
   Works with GSAP — applied to the hero heading.
========================================================= */
.fold-text {
  display: inline-block;
  color: var(--fold-text-color, currentColor);
  font-size: var(--fold-text-font-size, inherit);
  font-weight: var(--fold-text-font-weight, inherit);
  line-height: 0.95;
  letter-spacing: -0.04em;
  white-space: pre-wrap;
  user-select: text;
}

.fold-text-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;
}

.fold-text-visual {
  display: inline;
}

.fold-text-line {
  display: block;
}

.fold-text-whitespace {
  display: inline;
}

.fold-text-segment {
  display: inline-block;
  line-height: inherit;
  perspective: var(--fold-perspective, 700px);
  transform-style: preserve-3d;
  vertical-align: baseline;
}

.fold-text-segment[data-fold-split='line'] {
  display: block;
}

.fold-text-piece {
  position: relative;
  display: inline-block;
  color: inherit;
  line-height: inherit;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.fold-text-piece::after {
  content: '';
  position: absolute;
  inset: -0.08em -0.02em;
  pointer-events: none;
  opacity: var(--fold-crease, 0);
  mix-blend-mode: multiply;
  border-radius: 0.08em;
}

.fold-text-piece[data-fold-hinge='top']::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(255, 255, 255, 0.26) 100%);
}

.fold-text-piece[data-fold-hinge='bottom']::after {
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(255, 255, 255, 0.26) 100%);
}

.fold-text-piece[data-fold-hinge='left']::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(255, 255, 255, 0.26) 100%);
}

.fold-text-piece[data-fold-hinge='right']::after {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.58) 0%, rgba(0, 0, 0, 0.22) 42%, rgba(255, 255, 255, 0.26) 100%);
}

@media (prefers-reduced-motion: reduce) {
  .fold-text-piece {
    transform: none !important;
  }

  .fold-text-piece::after {
    opacity: 0 !important;
  }
}

/* Override hero-heading styles when fold-text is active.
   The fold-text CSS custom properties take over sizing. */
.hero-heading.fold-text {
  letter-spacing: -0.01em;
  line-height: 1.02;
}

/* Shared blue and yellow surface accents. */
.topic-card, .rh-topic-card, .department-card {
  --card-tint: var(--blue-50);
  --card-hover: var(--blue-100);
}
:is(.topic-card, .rh-topic-card, .department-card):nth-child(4n + 2) {
  --card-tint: var(--yellow-100);
  --card-hover: var(--yellow-200);
}
:is(.topic-card, .rh-topic-card, .department-card):nth-child(4n + 3) {
  --card-tint: var(--blue-100);
  --card-hover: var(--blue-200);
}
:is(.topic-card, .rh-topic-card, .department-card):nth-child(4n) {
  --card-tint: var(--yellow-50);
  --card-hover: var(--yellow-100);
}
.topic-card::before { background: linear-gradient(90deg, var(--blue-500), var(--yellow-400)); }
.rh-topic-card.active { border-color: var(--blue-600); box-shadow: inset 0 0 0 1px var(--blue-600); }
.activity-row:nth-child(odd) .activity-icon { color: var(--blue-600); }
.activity-row:nth-child(even) .activity-icon { color: var(--yellow-700); }
.about-diagram { background: radial-gradient(circle, var(--yellow-100), transparent 68%); }
.about-diagram svg > g:first-child { stroke: var(--blue-300); }
.about-diagram svg > circle { fill: var(--blue-700); }
.about-diagram g circle:nth-of-type(3n + 1) { fill: var(--blue-500); }
.about-diagram g circle:nth-of-type(3n + 2) { fill: var(--yellow-400); }
.about-diagram g circle:nth-of-type(3n) { fill: var(--blue-300); }
.research-card:nth-child(even) .card-label { background: var(--blue-100); color: var(--blue-700); }
.external-notice-card { background: linear-gradient(120deg, var(--yellow-100), var(--yellow-50)); border-color: var(--yellow-200); }
.search-form:focus-within { outline: 3px solid var(--yellow-300); outline-offset: 4px; }
.navbar.on-dark:not(.scrolled) .nav-link.active,
.navbar.on-dark:not(.scrolled) .nav-link:hover { color: var(--yellow-300); }
:is(.hero, .rh-hero, .objective, .footer, .navbar.on-dark:not(.scrolled)) :focus-visible { outline-color: var(--yellow-300); }
.dock__item:hover { background-color: var(--blue-100); }
::selection { background: var(--yellow-200); color: var(--blue-950); }

/* Leadership portraits and full-length notes. */
.leadership { padding: 100px 0; background: var(--surface); border-top: 1px solid var(--border); scroll-margin-top: 100px; }
.leadership-header { max-width: 760px; margin-bottom: 48px; }
.leadership-note { display: grid; grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.8fr); gap: clamp(28px, 5vw, 64px); align-items: start; padding: clamp(24px, 4vw, 48px); margin-bottom: 28px; background: linear-gradient(125deg, var(--blue-100), var(--blue-50)); border: 1px solid var(--blue-200); border-radius: 20px; }
.leadership-note--yellow { background: linear-gradient(125deg, var(--yellow-100), var(--yellow-50)); border-color: var(--yellow-200); }
.leadership-note--navy { background: linear-gradient(125deg, var(--blue-900), var(--blue-800)); border-color: var(--blue-700); }
.leadership-portrait { margin: 0; }
.leadership-portrait img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: center 35%; border-radius: 12px; box-shadow: 0 12px 28px rgba(13, 31, 56, 0.12); }
.leadership-portrait figcaption { margin-top: 20px; padding-left: 14px; border-left: 3px solid var(--yellow-500); }
.leadership-portrait strong { display: block; font-family: var(--font-heading); font-size: 21px; color: var(--blue-900); }
.leadership-portrait figcaption span { display: block; margin-top: 3px; font-size: 13px; color: var(--muted); }
.leadership-kicker { display: block; color: var(--blue-700); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; margin-bottom: 12px; }
.leadership-copy h3 { font-family: var(--font-heading); color: var(--blue-900); font-size: clamp(26px, 3vw, 34px); line-height: 1.2; margin-bottom: 24px; }
.leadership-copy blockquote { margin: 0; }
.leadership-copy p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.leadership-copy p + p { margin-top: 18px; }
.leadership-copy .leadership-pullquote { font-family: var(--font-heading); color: var(--blue-800); font-size: 21px; line-height: 1.5; padding-top: 18px; border-top: 1px solid var(--blue-200); }
.leadership-note--navy .leadership-kicker { color: var(--yellow-300); }
.leadership-note--navy h3, .leadership-note--navy strong { color: var(--cream-on-forest); }
.leadership-note--navy p, .leadership-note--navy figcaption span { color: var(--blue-100); }
@media (max-width: 700px) {
  .leadership { padding: 72px 0; }
  .leadership-note { grid-template-columns: 1fr; }
  .leadership-portrait { max-width: 300px; width: 100%; }
  .leadership-copy p { font-size: 15px; }
}

/* Research guidance remains readable with or without JavaScript. */
.research-guide { padding-top: 64px; padding-bottom: 72px; max-width: 900px; }
.research-guide h2 { font-family: var(--font-heading); font-size: clamp(26px, 4vw, 36px); margin-bottom: 20px; }
.research-guide h3 { margin: 28px 0 10px; font-size: 20px; }
.research-guide p { line-height: 1.8; }
.research-guide a { text-decoration: underline; text-underline-offset: 3px; }

/* Clear entry points and a calmer reading rhythm. */
section[id], header[id], h2[id], h3[id] { scroll-margin-top: 110px; }
a.visually-hidden:focus { position: fixed; top: 16px; left: 16px; width: auto; height: auto; clip: auto; overflow: visible; padding: 12px 20px; background: var(--yellow-200); color: var(--blue-950); z-index: 10000; }
.hero { padding-top: 172px; padding-bottom: 106px; }
.hero-description { color: var(--blue-100); }
.start-here { padding: 64px 0 72px; background: #fffdf6; border-bottom: 1px solid var(--yellow-200); }
.start-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.start-heading h2 { font: 500 clamp(24px, 3vw, 32px)/1.3 var(--font-heading); }
.pathways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pathway { display: flex; flex-direction: column; padding: 30px; border-radius: 16px; border: 1px solid var(--blue-200); transition: transform 200ms ease, box-shadow 200ms ease; }
.pathway--blue { background: var(--blue-900); color: var(--blue-50); border-color: var(--blue-900); }
.pathway--cream { background: white; }
.pathway--yellow { background: var(--yellow-200); border-color: var(--yellow-300); }
.pathway-number { font-size: 11px; letter-spacing: .12em; font-weight: 600; margin-bottom: 32px; }
.pathway--blue .pathway-number { color: var(--yellow-200); }
.pathway h3 { font: 500 26px/1.25 var(--font-heading); margin-bottom: 14px; }
.pathway p { font-size: 14px; line-height: 1.8; margin-bottom: 30px; }
.pathway-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; margin-top: auto; padding-top: 18px; border-top: 1px solid currentColor; }
.pathway-link span { font-size: 22px; }
.pathway:hover { transform: translateY(-4px); box-shadow: 0 16px 30px #0d1f3812; }
.pathway--blue:focus-visible { outline-color: var(--yellow-600); }
.origin-heading { font: 500 25px/1.3 var(--font-heading); margin: 28px 0 12px; }
.leadership-copy p { max-width: 66ch; }
.joining-guide { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(24px, 5vw, 64px); margin: 42px 0; padding: clamp(24px, 4vw, 42px); border: 1px solid var(--blue-200); border-radius: 20px; background: white; }
.joining-guide h3 { font: 500 clamp(25px, 3vw, 32px)/1.3 var(--font-heading); margin: 18px 0; }
.joining-guide p { font-size: 15px; color: var(--muted); }
.joining-questions details { border-bottom: 1px solid var(--blue-200); }
.joining-questions summary { cursor: pointer; padding: 18px 4px; font-weight: 600; font-size: 15px; }
.joining-questions details[open] summary { color: var(--blue-700); }
.joining-questions details p { padding: 0 4px 20px; }
.joining-questions a { text-decoration: underline; text-underline-offset: 3px; color: var(--blue-700); }
@media (max-width: 760px) {
 .hero { padding: 144px 20px 80px; }
 .start-heading { display: block; }
 .start-heading h2 { margin-top: 20px; }
 .pathways, .joining-guide { grid-template-columns: 1fr; }
 .pathway { padding: 26px; }
 .pathway-number { margin-bottom: 22px; }
 .start-here { padding: 44px 0; }
 .joining-guide { gap: 18px; }
 .hero-eyebrow { font-size: 10px; letter-spacing: .08em; }
}
@media (prefers-reduced-motion: reduce) { .pathway { transition: none; } .pathway:hover { transform: none; } }
