/* =====================================================
   ECAIR — Education Center for AI Research
   Website Design System · iOS-Inspired Minimalist
   ===================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---- Design Tokens ---- */
:root {
  --ecair-navy:   #001233;
  --ecair-blue:   #002D72;
  --ecair-mid:    #0047AB;
  --ecair-bright: #0066CC;
  --ecair-sky:    #2E90FA;
  --ecair-tint:   #EBF3FF;

  --text-primary:   #1D1D1F;
  --text-secondary: #6E6E73;
  --text-tertiary:  #AEAEB2;
  --background:     #F5F5F7;
  --surface:        #FFFFFF;

  --border:       rgba(0,0,0,0.07);
  --border-mid:   rgba(0,0,0,0.12);
  --glass-bg:     rgba(255,255,255,0.82);
  --glass-dark:   rgba(0,18,51,0.88);

  --shadow-xs: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.13);
  --shadow-xl: 0 32px 64px rgba(0,0,0,0.16);

  --r-xs: 8px; --r-sm: 12px; --r-md: 18px;
  --r-lg: 24px; --r-xl: 32px; --r-full: 9999px;

  --ease:        cubic-bezier(0.4,0,0.2,1);
  --ease-spring: cubic-bezier(0.34,1.56,0.64,1);
  --t-fast: 0.15s cubic-bezier(0.4,0,0.2,1);
  --t:      0.28s cubic-bezier(0.4,0,0.2,1);
  --t-slow: 0.5s  cubic-bezier(0.4,0,0.2,1);

  --c-innovation: #0047AB;
  --c-learning:   #006B3C;
  --c-policy:     #5B3EB5;

  --s-deployed:    #006644;
  --s-active:      #003D82;
  --s-pilot:       #004EBF;
  --s-development: #A85000;
  --s-research:    #5B3EB5;
  --s-testing:     #006680;
}

/* ---- Typography ---- */
h1,h2,h3,h4,h5,h6 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.12;
  color: var(--text-primary);
}
.eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ecair-sky); display: block; margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.9rem, 4vw, 3rem);
  letter-spacing: -0.03em; margin-bottom: 18px;
}
.lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7; color: var(--text-secondary);
}
a { color: var(--ecair-bright); text-decoration: none; transition: opacity var(--t-fast); }
a:hover { opacity: 0.7; }

/* ---- Layout ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px,5vw,56px); }
.container--narrow { max-width: 780px; }
.section { padding: clamp(72px,9vw,128px) 0; }
.section-header { max-width: 660px; margin: 0 auto 64px; text-align: center; }

/* ---- Nav ---- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  transition: background var(--t), box-shadow var(--t), border-color var(--t);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--glass-bg);
  backdrop-filter: saturate(200%) blur(24px);
  -webkit-backdrop-filter: saturate(200%) blur(24px);
  box-shadow: var(--shadow-sm);
  border-color: var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 62px; max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(20px,5vw,56px);
}
.nav-logo {
  display: flex; align-items: center; gap: 11px;
  font-weight: 700; font-size: 17px; letter-spacing: -0.02em;
  color: white; transition: color var(--t); text-decoration: none;
}
.nav.scrolled .nav-logo { color: var(--text-primary); }
.nav-logo:hover { opacity: 1; }
.logomark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--ecair-sky) 0%, var(--ecair-mid) 100%);
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 14px; color: white; letter-spacing: 0;
}
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  display: block; padding: 7px 15px; border-radius: var(--r-full);
  font-size: 15px; font-weight: 500;
  color: rgba(255,255,255,0.8); transition: all var(--t-fast);
}
.nav-links a:hover { background: rgba(255,255,255,0.12); color: white; opacity: 1; }
.nav-links a.active { background: rgba(255,255,255,0.14); color: white; }
.nav.scrolled .nav-links a { color: var(--text-secondary); }
.nav.scrolled .nav-links a:hover { background: var(--background); color: var(--text-primary); opacity: 1; }
.nav.scrolled .nav-links a.active { background: var(--ecair-tint); color: var(--ecair-mid); }
.nav-mobile-btn {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: white; transition: color var(--t);
}
.nav.scrolled .nav-mobile-btn { color: var(--text-primary); }
.hamburger { display: flex; flex-direction: column; gap: 5px; }
.hamburger span {
  display: block; width: 22px; height: 2px; border-radius: 2px;
  background: currentColor; transition: transform var(--t), opacity var(--t);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: var(--r-full); border: none;
  font-family: inherit; font-size: 15px; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  line-height: 1; transition: all var(--t-fast);
}
.btn svg { width: 17px; height: 17px; flex-shrink: 0; }
.btn-white {
  background: white; color: var(--ecair-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); opacity: 1; color: var(--ecair-blue); }
.btn-ghost-white {
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.18); color: white; opacity: 1; transform: translateY(-2px); }
.btn-blue {
  background: var(--ecair-bright); color: white;
  box-shadow: 0 4px 16px rgba(0,102,204,0.3);
}
.btn-blue:hover { background: var(--ecair-mid); color: white; opacity: 1; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,102,204,0.4); }
.btn-outline {
  background: transparent; color: var(--ecair-bright);
  border: 1.5px solid var(--ecair-bright);
}
.btn-outline:hover { background: var(--ecair-tint); opacity: 1; transform: translateY(-1px); }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* ---- Hero (Home) ---- */
.hero {
  min-height: 100vh; position: relative; overflow: hidden;
  background: var(--ecair-navy);
  display: flex; align-items: center; justify-content: center;
}
.hero-orbs {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
  animation: orbFloat 20s ease infinite;
}
.orb-1 {
  width: 600px; height: 600px; top: -100px; left: -100px;
  background: radial-gradient(circle, rgba(0,102,204,0.35) 0%, transparent 70%);
  animation-duration: 18s;
}
.orb-2 {
  width: 500px; height: 500px; top: 10%; right: -80px;
  background: radial-gradient(circle, rgba(46,144,250,0.2) 0%, transparent 70%);
  animation-duration: 24s; animation-delay: -6s;
}
.orb-3 {
  width: 400px; height: 400px; bottom: -60px; left: 40%;
  background: radial-gradient(circle, rgba(91,62,181,0.22) 0%, transparent 70%);
  animation-duration: 20s; animation-delay: -10s;
}
@keyframes orbFloat {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(30px,-40px) scale(1.05); }
  66%      { transform: translate(-20px,20px) scale(0.97); }
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 10%, transparent 100%);
}
.hero-content {
  position: relative; z-index: 1; text-align: center;
  padding: clamp(100px,14vw,160px) clamp(20px,5vw,48px) clamp(80px,10vw,120px);
  max-width: 960px; margin: 0 auto;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 18px; border-radius: var(--r-full); margin-bottom: 36px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  font-size: 13px; font-weight: 500; color: rgba(255,255,255,0.65);
  letter-spacing: 0.04em; backdrop-filter: blur(8px);
}
.status-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #34C759; flex-shrink: 0;
  box-shadow: 0 0 0 3px rgba(52,199,89,0.2);
  animation: dotPulse 2.5s ease infinite;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 3px rgba(52,199,89,0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(52,199,89,0.05); }
}
.hero h1 {
  color: white; margin-bottom: 28px;
  font-size: clamp(2.8rem, 7.5vw, 5.2rem);
  font-weight: 800; letter-spacing: -0.045em; line-height: 1.0;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #60A5FA 0%, #A78BFA 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(1.05rem,2vw,1.25rem);
  color: rgba(255,255,255,0.58); max-width: 580px;
  margin: 0 auto 52px; line-height: 1.7;
}
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }
.hero-scroll-indicator {
  position: absolute; bottom: 36px; left: 50%;
  transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.3); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase;
}
.scroll-bar {
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.3));
  animation: scrollGrow 2s ease infinite;
}
@keyframes scrollGrow {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 0; }
  50%  { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ---- About Section ---- */
.about-section { background: var(--surface); }
.about-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 72px; align-items: center;
}
.about-text .section-title { text-align: left; }
.about-text .lead { margin-bottom: 36px; }
.about-cards { display: flex; flex-direction: column; gap: 16px; }
.info-card {
  background: var(--background); border-radius: var(--r-lg);
  padding: 28px 32px; border: 1px solid var(--border);
  transition: all var(--t); display: flex; gap: 20px; align-items: flex-start;
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--ecair-tint); }
.info-card-icon {
  width: 46px; height: 46px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.info-card-icon.blue { background: var(--ecair-tint); }
.info-card-icon.green { background: #D1FAE5; }
.info-card-body h4 { font-size: 15px; margin-bottom: 6px; }
.info-card-body p { font-size: 14px; color: var(--text-secondary); line-height: 1.55; }

/* ---- Stats ---- */
.stats-section {
  background: linear-gradient(130deg, var(--ecair-navy) 0%, var(--ecair-blue) 50%, var(--ecair-mid) 100%);
  padding: 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.stat-item {
  padding: clamp(40px,6vw,72px) clamp(24px,3vw,40px);
  text-align: center; border-right: 1px solid rgba(255,255,255,0.1);
  position: relative;
}
.stat-item:last-child { border-right: none; }
.stat-number {
  display: block; font-size: clamp(2.6rem,5vw,3.8rem); font-weight: 800;
  color: white; letter-spacing: -0.04em; line-height: 1; margin-bottom: 8px;
}
.stat-suffix { color: rgba(255,255,255,0.9); }
.stat-label { font-size: 14px; color: rgba(255,255,255,0.55); font-weight: 500; }

/* ---- Pillars ---- */
.pillars-section { background: var(--background); }
.pillar-cards { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.pillar-card {
  background: var(--surface); border-radius: var(--r-xl);
  padding: 40px; border: 1px solid var(--border);
  transition: all var(--t); position: relative; overflow: hidden;
}
.pillar-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  opacity: 0; transition: opacity var(--t);
}
.pillar-card.innovation::after { background: linear-gradient(90deg, #0047AB, var(--ecair-sky)); }
.pillar-card.learning::after   { background: linear-gradient(90deg, #006B3C, #22C55E); }
.pillar-card.policy::after     { background: linear-gradient(90deg, #5B3EB5, #A78BFA); }
.pillar-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-6px); border-color: transparent; }
.pillar-card:hover::after { opacity: 1; }
.pillar-num {
  font-size: 11px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 20px; display: block;
}
.pillar-card.innovation .pillar-num { color: var(--c-innovation); }
.pillar-card.learning .pillar-num   { color: var(--c-learning); }
.pillar-card.policy .pillar-num     { color: var(--c-policy); }
.pillar-icon {
  width: 60px; height: 60px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin-bottom: 24px;
}
.pillar-card.innovation .pillar-icon { background: linear-gradient(135deg, #EBF3FF, #DBEAFE); }
.pillar-card.learning .pillar-icon   { background: linear-gradient(135deg, #D1FAE5, #ECFDF5); }
.pillar-card.policy .pillar-icon     { background: linear-gradient(135deg, #EDE9FE, #F5F3FF); }
.pillar-card h3 { font-size: 20px; margin-bottom: 14px; letter-spacing: -0.02em; }
.pillar-card p  { font-size: 14.5px; color: var(--text-secondary); line-height: 1.65; margin-bottom: 28px; }
.pillar-more {
  font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--t-fast);
}
.pillar-card.innovation .pillar-more { color: var(--c-innovation); }
.pillar-card.learning .pillar-more   { color: var(--c-learning); }
.pillar-card.policy .pillar-more     { color: var(--c-policy); }
.pillar-more:hover { gap: 12px; opacity: 1; }

/* ---- Featured Projects ---- */
.featured-section { background: var(--surface); }
.projects-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }

/* ---- Project Cards ---- */
.project-card {
  background: var(--surface); border-radius: var(--r-lg);
  padding: 28px; border: 1px solid var(--border);
  transition: all var(--t); display: flex; flex-direction: column; gap: 14px;
}
.project-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.project-card[data-pillar="innovation"]:hover { box-shadow: 0 16px 48px rgba(0,71,171,0.12); }
.project-card[data-pillar="learning"]:hover   { box-shadow: 0 16px 48px rgba(0,107,60,0.12); }
.project-card[data-pillar="policy"]:hover     { box-shadow: 0 16px 48px rgba(91,62,181,0.12); }
.project-code {
  font-family: "SF Mono","Fira Code","Consolas",monospace;
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.project-card[data-pillar="innovation"] .project-code { color: var(--c-innovation); }
.project-card[data-pillar="learning"]   .project-code { color: var(--c-learning); }
.project-card[data-pillar="policy"]     .project-code { color: var(--c-policy); }
.project-card h3 { font-size: 17px; letter-spacing: -0.02em; line-height: 1.3; }
.project-full-name { font-size: 12px; color: var(--text-tertiary); line-height: 1.4; margin-top: -6px; font-style: italic; }
.project-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.project-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-top: auto;
}

/* ---- Badges ---- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: var(--r-full);
  font-size: 11.5px; font-weight: 600; white-space: nowrap;
}
.badge-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
/* Pillar */
.b-innovation { background: #EBF3FF; color: var(--c-innovation); }
.b-learning   { background: #D1FAE5; color: var(--c-learning); }
.b-policy     { background: #EDE9FE; color: var(--c-policy); }
/* Status */
.b-deployed    { background: #D3F9D8; color: #003A1A; }
.b-deployed    .badge-dot { background: #006B3C; }
.b-active      { background: #EBF3FF; color: #00257A; }
.b-active      .badge-dot { background: var(--c-innovation); }
.b-pilot       { background: #E0F2FE; color: #003A6E; }
.b-pilot       .badge-dot { background: var(--ecair-sky); animation: dotPulse 2s ease infinite; }
.b-development { background: #FFF3CD; color: #7A3A00; }
.b-development .badge-dot { background: #E07800; }
.b-research    { background: #F0ECFF; color: #3B2A80; }
.b-research    .badge-dot { background: var(--c-policy); }
.b-testing     { background: #E0F9FF; color: #004A5C; }
.b-testing     .badge-dot { background: #0099BF; }

/* ---- Partners ---- */
.partners-section {
  background: var(--background);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.partners-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 48px; }
.partner-tag {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); font-size: 14px; font-weight: 600;
  color: var(--text-secondary); transition: all var(--t);
}
.partner-tag:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--text-primary); border-color: var(--border-mid); }
.partner-icon {
  width: 32px; height: 32px; border-radius: 8px; background: var(--ecair-tint);
  display: flex; align-items: center; justify-content: center; font-size: 15px; flex-shrink: 0;
}

/* ---- News Ticker ---- */
.news-section { background: var(--surface); }
.news-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.news-card {
  background: var(--background); border-radius: var(--r-lg);
  padding: 28px; border: 1px solid var(--border);
  transition: all var(--t); display: flex; flex-direction: column; gap: 12px;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; background: var(--surface); }
.news-date { font-size: 12px; color: var(--text-tertiary); font-weight: 500; }
.news-card h4 { font-size: 16px; line-height: 1.4; letter-spacing: -0.01em; }
.news-card p { font-size: 13.5px; color: var(--text-secondary); line-height: 1.6; flex: 1; }

/* ---- Page Hero (inner pages) ---- */
.page-hero {
  padding: clamp(90px,13vw,160px) 0 clamp(64px,8vw,100px);
  background: linear-gradient(135deg, var(--ecair-navy) 0%, var(--ecair-blue) 60%, var(--ecair-mid) 100%);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 100% 100% at 50% 0%, black 20%, transparent 100%);
}
.page-hero-orb {
  position: absolute; right: -60px; top: -60px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(46,144,250,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-content { position: relative; z-index: 1; }
.page-hero h1 {
  color: white; font-size: clamp(2.2rem,5.5vw,3.8rem);
  font-weight: 800; letter-spacing: -0.04em; margin-bottom: 18px;
}
.page-hero p { color: rgba(255,255,255,0.65); font-size: clamp(1rem,1.5vw,1.15rem); line-height: 1.65; max-width: 600px; }

/* ---- Filter Bar ---- */
.filter-bar {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 8px; padding: 28px 0; border-bottom: 1px solid var(--border); margin-bottom: 40px;
}
.filter-btn {
  padding: 8px 20px; border-radius: var(--r-full);
  border: 1.5px solid var(--border-mid); background: var(--surface);
  color: var(--text-secondary); font-size: 13.5px; font-weight: 600;
  font-family: inherit; cursor: pointer; transition: all var(--t-fast);
}
.filter-btn:hover { border-color: var(--ecair-mid); color: var(--ecair-mid); background: var(--ecair-tint); }
.filter-btn.active {
  background: var(--ecair-mid); border-color: var(--ecair-mid);
  color: white; box-shadow: 0 4px 14px rgba(0,71,171,0.25);
}

/* ---- Projects Page Grid ---- */
.projects-page-section { background: var(--background); }
.projects-full-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 20px; }

/* ---- CTA Section ---- */
.cta-section {
  background: linear-gradient(135deg, var(--ecair-navy) 0%, var(--ecair-mid) 100%);
  padding: clamp(80px,10vw,120px) 0; text-align: center; position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 52px 52px;
}
.cta-section h2 { color: white; font-size: clamp(1.8rem,4vw,3rem); position: relative; margin-bottom: 16px; }
.cta-section p  { color: rgba(255,255,255,0.6); font-size: clamp(1rem,1.5vw,1.15rem); max-width: 500px; margin: 0 auto 40px; line-height: 1.65; position: relative; }
.cta-actions    { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ---- Team Page ---- */
.team-section { background: var(--background); }
.leadership-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px,1fr)); gap: 20px; margin-bottom: 80px; }
.leader-card {
  background: var(--surface); border-radius: var(--r-xl); padding: 36px;
  border: 1px solid var(--border); transition: all var(--t);
  display: flex; flex-direction: column; gap: 20px;
}
.leader-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.leader-card.featured {
  background: linear-gradient(140deg, var(--ecair-navy) 0%, var(--ecair-mid) 100%);
  border-color: transparent; color: white;
  box-shadow: 0 20px 60px rgba(0,18,51,0.3);
}
.leader-avatar {
  width: 68px; height: 68px; border-radius: var(--r-md); flex-shrink: 0;
  background: var(--ecair-tint); display: flex; align-items: center;
  justify-content: center; font-size: 22px; font-weight: 800; color: var(--ecair-mid);
}
.leader-card.featured .leader-avatar { background: rgba(255,255,255,0.15); color: white; }
.leader-name { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 4px; }
.leader-card.featured .leader-name { color: white; }
.leader-role { font-size: 13.5px; font-weight: 500; color: var(--text-secondary); line-height: 1.4; }
.leader-card.featured .leader-role { color: rgba(255,255,255,0.65); }
.leader-bio { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.leader-card.featured .leader-bio { color: rgba(255,255,255,0.6); }

/* Team Pillar Section */
.pillar-team-section { margin-bottom: 56px; }
.pillar-team-header {
  display: flex; align-items: center; gap: 16px;
  padding: 22px 28px; background: var(--surface);
  border-radius: var(--r-lg); margin-bottom: 20px; border: 1px solid var(--border);
}
.pillar-team-icon {
  width: 46px; height: 46px; border-radius: var(--r-sm); font-size: 22px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pillar-team-section.innovation .pillar-team-icon { background: var(--ecair-tint); }
.pillar-team-section.learning   .pillar-team-icon { background: #D1FAE5; }
.pillar-team-section.policy     .pillar-team-icon { background: #EDE9FE; }
.pillar-team-header h3 { font-size: 18px; margin-bottom: 3px; }
.pillar-team-header p  { font-size: 13px; color: var(--text-secondary); }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 14px; }
.member-card {
  background: var(--surface); border-radius: var(--r-md);
  padding: 22px; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 14px; transition: all var(--t);
}
.member-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: transparent; }
.member-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 700;
}
.pillar-team-section.innovation .member-avatar { background: var(--ecair-tint); color: var(--ecair-mid); }
.pillar-team-section.learning   .member-avatar { background: #D1FAE5; color: var(--c-learning); }
.pillar-team-section.policy     .member-avatar { background: #EDE9FE; color: var(--c-policy); }
.member-name { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 3px; }
.member-role { font-size: 12.5px; color: var(--text-secondary); line-height: 1.4; }

/* ---- Knowledge Hub ---- */
.knowledge-section { background: var(--background); }
.featured-report {
  background: linear-gradient(140deg, var(--ecair-navy) 0%, var(--ecair-blue) 60%, var(--ecair-mid) 100%);
  border-radius: var(--r-xl); padding: clamp(36px,5vw,56px);
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
  margin-bottom: 48px; position: relative; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,18,51,0.25);
}
.featured-report::before {
  content: ''; position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px; border-radius: 50%;
  background: rgba(255,255,255,0.04); pointer-events: none;
}
.report-label { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 14px; display: block; }
.featured-report h2 { color: white; font-size: clamp(1.4rem,3vw,2rem); margin-bottom: 12px; }
.featured-report p  { color: rgba(255,255,255,0.6); font-size: 15px; line-height: 1.6; margin-bottom: 28px; }
.featured-report-visual {
  width: 120px; height: 152px; border-radius: var(--r-md);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.15);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: rgba(255,255,255,0.5); font-size: 11px; text-align: center; flex-shrink: 0;
  backdrop-filter: blur(8px);
}
.featured-report-visual .doc-icon { font-size: 36px; color: rgba(255,255,255,0.7); }

.reports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 18px; }
.report-card {
  background: var(--surface); border-radius: var(--r-lg); padding: 26px;
  border: 1px solid var(--border); transition: all var(--t);
  display: flex; flex-direction: column; gap: 12px;
}
.report-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: transparent; }
.report-card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-card h3 { font-size: 16px; letter-spacing: -0.02em; line-height: 1.4; }
.report-card p  { font-size: 13.5px; color: var(--text-secondary); line-height: 1.55; flex: 1; }
.report-card-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border); margin-top: auto;
}
.report-date { font-size: 12px; color: var(--text-tertiary); }

/* ---- Report Type Badges ---- */
.badge-annual    { background: #FFF3CD; color: #7A3A00; }
.badge-quarterly { background: var(--ecair-tint); color: var(--ecair-mid); }
.badge-leadership{ background: #EDE9FE; color: var(--c-policy); }
.badge-policy-br { background: #D1FAE5; color: var(--c-learning); }

/* ---- Footer ---- */
.footer { background: #0A0A0F; padding: 80px 0 40px; }
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 60px;
}
.footer-brand .footer-logo {
  display: flex; align-items: center; gap: 11px; margin-bottom: 18px;
  color: white; font-weight: 700; font-size: 17px;
}
.footer-brand p { font-size: 13.5px; color: rgba(255,255,255,0.4); line-height: 1.65; max-width: 280px; margin-bottom: 24px; }
.footer-host {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-sm); font-size: 12px; color: rgba(255,255,255,0.4);
}
.footer-host strong { color: rgba(255,255,255,0.6); }
.footer-col h5 { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 22px; }
.footer-col ul  { list-style: none; display: flex; flex-direction: column; gap: 13px; }
.footer-col a   { font-size: 14px; color: rgba(255,255,255,0.55); text-decoration: none; transition: color var(--t-fast); }
.footer-col a:hover { color: white; opacity: 1; }
.footer-divider { height: 1px; background: rgba(255,255,255,0.07); margin-bottom: 32px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-bottom p { font-size: 12px; color: rgba(255,255,255,0.3); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 12px; color: rgba(255,255,255,0.35); text-decoration: none; }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.65); opacity: 1; }

/* ---- Reveal Animations ---- */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .pillar-cards { grid-template-columns: repeat(2,1fr); }
  .projects-grid { grid-template-columns: repeat(2,1fr); }
  .stats-grid    { grid-template-columns: repeat(2,1fr); }
  .stat-item     { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .stat-item:nth-child(2n) { border-right: none; }
  .stat-item:last-child, .stat-item:nth-last-child(2):first-child ~ .stat-item { border-bottom: none; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 768px) {
  .nav-links     { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 62px; left: 0; right: 0;
    background: rgba(255,255,255,0.96);
    backdrop-filter: saturate(200%) blur(24px);
    border-bottom: 1px solid var(--border);
    padding: 12px 16px; gap: 4px;
    box-shadow: var(--shadow-lg); z-index: 890;
  }
  .nav-links.open a { color: var(--text-secondary); }
  .nav-links.open a:hover { color: var(--text-primary); background: var(--background); }
  .nav-mobile-btn { display: block; }
  .about-grid    { grid-template-columns: 1fr; gap: 40px; }
  .pillar-cards  { grid-template-columns: 1fr; }
  .projects-grid { grid-template-columns: 1fr; }
  .news-grid     { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .featured-report { grid-template-columns: 1fr; }
  .featured-report-visual { display: none; }
  .leadership-grid { grid-template-columns: 1fr; }
  .hero-actions  { flex-direction: column; align-items: center; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.4rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---- Cross-reference links (Knowledge Hub → Research / Projects) ---- */
.crossref-row {
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 4px;
}
.crossref-link {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 12px; border-radius: var(--r-full);
  font-size: 11.5px; font-weight: 600; text-decoration: none;
  transition: all var(--t-fast); white-space: nowrap;
}
.crossref-research {
  background: var(--ecair-tint); color: var(--ecair-mid);
}
.crossref-research:hover { background: var(--ecair-mid); color: white; opacity: 1; }
.crossref-project {
  background: #EDE9FE; color: var(--c-policy);
}
.crossref-project:hover { background: var(--c-policy); color: white; opacity: 1; }

/* ---- Loading skeleton pulse ---- */
@keyframes shimmer {
  0%   { opacity: .5; }
  50%  { opacity: 1;  }
  100% { opacity: .5; }
}
.loading-pulse { animation: shimmer 1.6s ease infinite; }
