/* ============================================================
   UltraSpecT – Main Stylesheet
   EU Flag palette: Navy #003399, Gold #FFCC00, White #FFFFFF
   Zero external dependencies
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

:root {
  /* EU Flag Colors */
  --navy:      #003399;
  --navy-dark: #001f6b;
  --navy-mid:  #0040bb;
  --navy-light:#e8edf8;
  --gold:      #FFCC00;
  --gold-dark: #e0a800;
  --gold-dim:  rgba(255,204,0,0.15);
  --white:     #ffffff;
  --off-white: #f7f8fc;
  --light-gray:#eef0f7;

  /* Text */
  --text:      #1a1f3a;
  --text-mid:  #3a4266;
  --text-dim:  #6b7494;
  --text-mute: #9aa3c2;

  /* Borders */
  --border:    rgba(0,51,153,0.1);
  --border2:   rgba(0,51,153,0.2);

  /* Typography */
  --font-display: 'Palatino Linotype', Palatino, 'Book Antiqua', Georgia, serif;
  --font-body:    Optima, 'Gill Sans', 'Gill Sans MT', Candara, 'Segoe UI', sans-serif;
  --font-mono:    'Courier New', Courier, monospace;

  --radius:    12px;
  --radius-sm: 7px;
  --shadow:    0 4px 24px rgba(0,51,153,0.08);
  --shadow-lg: 0 12px 48px rgba(0,51,153,0.14);
}

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

a { color: var(--navy); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--navy-mid); }
p + p { margin-top: 1em; }

/* ── LAYOUT ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 2.5rem; }
.section { padding: 6rem 0; }

/* ── REVEAL ── */
/* Reveal: content visible by default, animation added via JS */
.reveal { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.will-animate { opacity: 0; transform: translateY(28px); }
.reveal.will-animate.visible { opacity: 1; transform: translateY(0); }
.reveal-left { opacity: 1; transform: none; transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-left.will-animate { opacity: 0; transform: translateX(-28px); }
.reveal-left.will-animate.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

/* hero reveal handled by progressive enhancement above */

/* ── PILLS & LABELS ── */
.section-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--navy); background: var(--navy-light);
  border: 1px solid var(--border2);
  padding: 0.35rem 1rem; border-radius: 100px; margin-bottom: 1.2rem;
}
.section-pill::before { content:''; width:6px; height:6px; background:var(--gold); border-radius:50%; }

.pill-gold {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #7a5800; background: var(--gold-dim);
  border: 1px solid rgba(255,204,0,0.4);
  padding: 0.35rem 1rem; border-radius: 100px; margin-bottom: 1.2rem;
}

/* ── HEADINGS ── */
.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.5vw, 3rem);
  font-weight: 700; font-style: italic;
  line-height: 1.15; color: var(--navy);
  margin-bottom: 1.2rem; letter-spacing: -0.02em;
}
.section-h2.white { color: #fff; }

.section-sub {
  font-size: 1.05rem; color: var(--text-dim);
  max-width: 580px; line-height: 1.75;
}

/* ── BUTTONS ── */
.btn-navy {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--navy); color: #fff;
  padding: 0.8rem 1.9rem; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600; letter-spacing: 0.03em;
  box-shadow: 0 4px 20px rgba(0,51,153,0.3);
  transition: all 0.25s ease;
}
.btn-navy:hover { background: var(--navy-mid); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(0,51,153,0.4); color: #fff; }
.btn-navy svg { transition: transform 0.25s; }
.btn-navy:hover svg { transform: translateX(4px); }

.btn-gold {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--gold); color: var(--navy-dark);
  padding: 0.8rem 1.9rem; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.03em;
  box-shadow: 0 4px 20px rgba(255,204,0,0.35);
  transition: all 0.25s ease;
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); color: var(--navy-dark); }

.btn-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--navy); border: 1.5px solid var(--border2);
  padding: 0.8rem 1.9rem; border-radius: var(--radius-sm);
  font-size: 0.88rem; font-weight: 600;
  transition: all 0.25s ease;
}
.btn-outline:hover { border-color: var(--navy); background: var(--navy-light); }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(0,51,153,0.1); }

.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 2.5rem;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo-img { height: 36px; width: auto; }
.nav-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.nav-logo-main { font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; font-style: italic; color: var(--navy); }
.nav-logo-sub { font-family: var(--font-mono); font-size: 0.55rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-mute); margin-top: 0.3rem; display: block; }

.nav-logo-divider { width: 1px; height: 28px; background: var(--border2); margin: 0 0.25rem; }

.nav-links { display: flex; align-items: center; gap: 0.1rem; }
.nav-link {
  padding: 0.45rem 0.9rem; border-radius: 6px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-mid);
  letter-spacing: 0.02em; transition: all 0.2s;
}
.nav-link:hover { color: var(--navy); background: var(--navy-light); }
.nav-link.active { color: var(--navy); font-weight: 700; }
.nav-link.active::after { content: ''; display: block; height: 2px; background: var(--gold); border-radius: 1px; margin-top: 1px; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 0.5rem; }
.nav-toggle span { display: block; width: 22px; height: 1.5px; background: var(--text-mid); transition: all 0.3s; }

.nav-drawer { display: none; flex-direction: column; padding: 1rem 2.5rem 1.5rem; gap: 0.2rem; background: #fff; border-top: 1px solid var(--border); position: absolute; top: 100%; left: 0; right: 0; z-index: 999; box-shadow: 0 8px 24px rgba(0,0,0,0.1); }
.nav-drawer.open { display: flex; }

@media (max-width: 860px) { .nav-links { display: none; } .nav-toggle { display: flex; } }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  background: var(--navy-dark);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 100px 0 0;
}

/* Pure CSS animated background */
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, #001244 0%, #003399 50%, #001f6b 100%);
  overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  animation: gridShift 25s ease infinite alternate;
}
@keyframes gridShift { from { background-position: 0 0; } to { background-position: 20px 20px; } }

.hero-glow-1 { position: absolute; top:30%; right:15%; width:500px; height:500px; background:radial-gradient(circle, rgba(255,204,0,0.1) 0%, transparent 65%); border-radius:50%; animation:glowPulse 5s ease-in-out infinite; }
.hero-glow-2 { position: absolute; bottom:10%; left:5%;  width:400px; height:400px; background:radial-gradient(circle, rgba(100,150,255,0.12) 0%, transparent 65%); border-radius:50%; animation:glowPulse 7s ease-in-out infinite reverse; }

@keyframes glowPulse {
  0%,100% { opacity:0.7; transform:scale(1); }
  50%      { opacity:1;   transform:scale(1.12); }
}

/* Animated beam lines */
.beam-line { position:absolute; height:1px; border-radius:2px; }
.b1 { width:200px; top:18%; left:-200px; background:linear-gradient(90deg,transparent,rgba(255,204,0,0.7),transparent); animation:beamShoot 5.5s linear infinite; box-shadow:0 0 8px rgba(255,204,0,0.4); }
.b2 { width:140px; top:35%; left:-140px; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.5),transparent); animation:beamShoot 4.2s linear infinite 1.4s; }
.b3 { width:240px; top:58%; left:-240px; background:linear-gradient(90deg,transparent,rgba(100,160,255,0.7),transparent); animation:beamShoot 6.8s linear infinite 0.7s; }
.b4 { width:160px; top:74%; left:-160px; background:linear-gradient(90deg,transparent,rgba(255,204,0,0.5),transparent); animation:beamShoot 5.0s linear infinite 2.8s; box-shadow:0 0 6px rgba(255,204,0,0.3); }
.b5 { width:100px; top:88%; left:-100px; background:linear-gradient(90deg,transparent,rgba(255,255,255,0.4),transparent); animation:beamShoot 3.8s linear infinite 3.9s; }
@keyframes beamShoot { 0%{transform:translateX(0);opacity:0} 5%{opacity:1} 95%{opacity:.6} 100%{transform:translateX(110vw);opacity:0} }

/* Ring pulses */
.ring-pulse { position:absolute; top:42%; right:22%; border-radius:50%; border:1px solid rgba(255,204,0,0.25); animation:ringExpand 4s ease-out infinite; }
.r1 { width:80px;height:80px; animation-delay:0s; }
.r2 { width:80px;height:80px; animation-delay:1.33s; border-color:rgba(255,255,255,0.15); }
.r3 { width:80px;height:80px; animation-delay:2.66s; }
@keyframes ringExpand { 0%{transform:translate(0,0) scale(1);opacity:.7} 100%{transform:translate(0,0) scale(9);opacity:0} }

/* Particles */
.fp { position:absolute; border-radius:50%; animation:floatUp linear infinite; opacity:0; }
.fp1{width:2px;height:2px;left:8%;background:#FFCC00;box-shadow:0 0 5px #FFCC00;animation-duration:9s;animation-delay:0s}
.fp2{width:1px;height:1px;left:15%;background:rgba(255,255,255,0.7);animation-duration:12s;animation-delay:1.5s}
.fp3{width:2px;height:2px;left:23%;background:#FFCC00;box-shadow:0 0 5px #FFCC00;animation-duration:8s;animation-delay:3.2s}
.fp4{width:1px;height:1px;left:31%;background:rgba(255,255,255,0.6);animation-duration:11s;animation-delay:0.8s}
.fp5{width:3px;height:3px;left:42%;background:#FFCC00;box-shadow:0 0 8px #FFCC00;animation-duration:14s;animation-delay:2.1s}
.fp6{width:1px;height:1px;left:53%;background:rgba(255,255,255,0.5);animation-duration:9s;animation-delay:4.0s}
.fp7{width:2px;height:2px;left:61%;background:#FFCC00;animation-duration:10s;animation-delay:1.2s}
.fp8{width:1px;height:1px;left:72%;background:rgba(200,220,255,0.8);animation-duration:7s;animation-delay:3.7s}
.fp9{width:2px;height:2px;left:83%;background:#FFCC00;box-shadow:0 0 5px #FFCC00;animation-duration:13s;animation-delay:0.4s}
.fp10{width:1px;height:1px;left:91%;background:rgba(255,255,255,0.6);animation-duration:8s;animation-delay:5.1s}
.fp11{width:2px;height:2px;left:47%;background:rgba(200,220,255,0.7);animation-duration:11s;animation-delay:2.8s}
.fp12{width:1px;height:1px;left:66%;background:#FFCC00;animation-duration:9s;animation-delay:1.9s}
@keyframes floatUp { 0%{bottom:-10px;opacity:0}10%{opacity:.8}90%{opacity:.4}100%{bottom:105%;opacity:0} }

/* Hero content */
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto;
  gap: 4rem; align-items: center;
  max-width: 1200px; margin: 0 auto;
  padding: 3rem 2.5rem 4rem;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1.8rem;
}
.hero-eyebrow-dot { width:8px; height:8px; background:var(--gold); border-radius:50%; box-shadow:0 0 10px var(--gold); animation:pulse 2.5s infinite; }
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)}50%{opacity:.5;transform:scale(.7)} }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 700; font-style: italic;
  line-height: 0.95; color: #fff;
  letter-spacing: -0.03em; margin-bottom: 1rem;
}
.hero-title span { color: var(--gold); display: block; text-shadow: 0 0 40px rgba(255,204,0,0.4); }

.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.8vw, 1.2rem);
  font-style: italic; color: rgba(255,255,255,0.7);
  line-height: 1.5; margin-bottom: 1.5rem;
  max-width: 560px;
}

.hero-desc {
  font-size: 0.95rem; color: rgba(255,255,255,0.55);
  max-width: 520px; line-height: 1.8; margin-bottom: 2.5rem;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Data card */
.hero-card {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  padding: 1.8rem;
  backdrop-filter: blur(10px);
  min-width: 230px;
}
.hc-row { display:flex; justify-content:space-between; gap:1.5rem; padding:0.4rem 0; border-bottom:1px solid rgba(255,255,255,0.06); }
.hc-row:last-of-type { border-bottom: none; }
.hc-k { font-family:var(--font-mono); font-size:0.6rem; letter-spacing:0.15em; color:rgba(255,255,255,0.35); text-transform:uppercase; }
.hc-v { font-family:var(--font-mono); font-size:0.7rem; color:var(--gold); letter-spacing:0.04em; text-align:right; }
.hc-sep { height:1px; background:rgba(255,204,0,0.2); margin:0.6rem 0; }
.hc-status { display:flex; align-items:center; gap:0.5rem; font-family:var(--font-mono); font-size:0.62rem; letter-spacing:0.15em; color:#4ade80; }
.status-dot { width:6px;height:6px;background:#4ade80;border-radius:50%;box-shadow:0 0 8px #4ade80;animation:pulse 2s infinite; }

/* Hero scroll */
.hero-scroll { display: none; }
.hero-scroll span { font-family:var(--font-mono); font-size:0.58rem; letter-spacing:0.25em; text-transform:uppercase; color:rgba(255,255,255,0.3); }
.scroll-track { width:1px; height:50px; background:rgba(255,255,255,0.1); border-radius:1px; overflow:hidden; }
.scroll-thumb { width:100%; height:40%; background:var(--gold); border-radius:1px; animation:scrollAnim 2s ease infinite; }
@keyframes scrollAnim { 0%{transform:translateY(-100%)}100%{transform:translateY(350%)} }

/* Hero group photo band — fixed banner height, sensible crop */
.hero-photo-band {
  position: relative; z-index: 2;
  width: 100%;
  height: 520px;
  overflow: hidden;
  flex-shrink: 0;
}
.hero-photo-band img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
/* gradient fade top */
.hero-photo-band::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 140px; z-index: 1;
  background: linear-gradient(to bottom, var(--navy-dark) 0%, transparent 100%);
}
/* gradient fade bottom */
.hero-photo-band::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 140px; z-index: 1;
  background: linear-gradient(to top, rgba(0,0,30,0.7) 0%, transparent 100%);
}
.photo-band-caption {
  position: absolute; bottom: 2rem; left: 0; right: 0;
  text-align: center; z-index: 2; pointer-events: none;
}
.photo-band-caption span {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
@media (max-width: 768px) {
  .hero-photo-band { height: 320px; }
}

/* ============================================================
   METRICS BAND
   ============================================================ */
.metrics-band {
  background: var(--white);
  border-bottom: 3px solid var(--gold);
  display: flex; align-items: stretch; justify-content: center;
  flex-wrap: wrap;
  box-shadow: 0 4px 20px rgba(0,51,153,0.08);
}
.metric { display:flex; flex-direction:column; align-items:center; justify-content:center; padding:2rem 4rem; position:relative; }
.metric-num { font-family:var(--font-display); font-size:2.8rem; font-weight:700; font-style:italic; color:var(--navy); line-height:1; }
.metric-plus { position:absolute; top:1.8rem; right:calc(4rem - 0.2rem); font-size:1.4rem; color:var(--gold-dark); font-weight:700; line-height:1; }
.metric-label { font-family:var(--font-mono); font-size:0.62rem; letter-spacing:0.18em; text-transform:uppercase; color:var(--text-mute); margin-top:0.4rem; }
.metric-sep { width:1px; align-self:stretch; margin:1rem 0; background:var(--border); }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { background: var(--off-white); padding: 7rem 0; position: relative; overflow: hidden; }

/* watermark removed */

.about-grid { display:grid; grid-template-columns:1fr 1fr; gap:5rem; align-items:center; position:relative; z-index:1; }

.about-accent-line { width:48px; height:3px; background:var(--gold); border-radius:2px; margin-bottom:1.5rem; }

.about-body { font-size:1rem; color:var(--text-mid); line-height:1.85; }

.about-quote {
  margin-top: 2rem;
  padding: 1.5rem 1.8rem;
  border-left: 4px solid var(--gold);
  background: var(--white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1rem;
  color: var(--navy);
  box-shadow: var(--shadow);
}

.pillars-grid { display:grid; grid-template-columns:1fr 1fr; gap:1.2rem; }

.pillar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.pillar::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:var(--gold); transform:scaleX(0); transition:transform 0.3s ease; transform-origin:left; }
.pillar:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--border2); }
.pillar:hover::after { transform:scaleX(1); }
.pillar-icon { width:44px; height:44px; background:var(--navy-light); border-radius:10px; display:flex; align-items:center; justify-content:center; margin-bottom:1rem; }
.pillar-icon svg { color: var(--navy); }
.pillar h3 { font-size:0.9rem; font-weight:700; color:var(--navy); margin-bottom:0.4rem; }
.pillar p { font-size:0.8rem; color:var(--text-dim); line-height:1.6; }

/* ERC badge */
.erc-badge {
  display: flex; align-items: center; gap: 1.2rem;
  background: var(--white); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 1.2rem 1.5rem;
  margin-top: 2rem; box-shadow: var(--shadow);
}
.erc-badge img { height: 48px; width: auto; }
.erc-badge-text { }
.erc-badge-label { font-size:0.8rem; font-weight:700; color:var(--navy); }
.erc-badge-sub { font-family:var(--font-mono); font-size:0.65rem; color:var(--text-mute); letter-spacing:0.08em; margin-top:0.2rem; }
.erc-badge-grant { font-family:var(--font-mono); font-size:0.68rem; color:var(--navy); margin-top:0.2rem; font-weight:700; }

/* ============================================================
   RESEARCH SECTION
   ============================================================ */
.research-section { background: var(--navy); padding: 7rem 0; position: relative; overflow: hidden; }

/* watermark removed */

.wp-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; position:relative; z-index:1; }

.wp-card {
  display: block; background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); padding: 2rem;
  color: rgba(255,255,255,0.8);
  transition: all 0.3s ease; position: relative; overflow: hidden;
}
.wp-card:hover { background:rgba(255,255,255,0.1); border-color:rgba(255,204,0,0.4); transform:translateY(-6px); box-shadow:0 16px 40px rgba(0,0,0,0.3); color:rgba(255,255,255,0.9); }
.wp-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; background:var(--gold); transform:scaleX(0); transition:transform 0.3s; transform-origin:left; }
.wp-card:hover::before { transform:scaleX(1); }
.wp-num { font-family:var(--font-mono); font-size:0.62rem; letter-spacing:0.2em; color:rgba(255,204,0,0.5); margin-bottom:0.6rem; }
.wp-card h3 { font-family:var(--font-display); font-size:1.05rem; font-style:italic; font-weight:700; color:#fff; margin-bottom:0.6rem; line-height:1.3; }
.wp-card p { font-size:0.83rem; color:rgba(255,255,255,0.6); line-height:1.65; margin-bottom:1.2rem; }
.wp-tags { display:flex; flex-wrap:wrap; gap:0.4rem; }
.wp-tags span { font-family:var(--font-mono); font-size:0.6rem; padding:0.18rem 0.6rem; background:rgba(255,204,0,0.1); border:1px solid rgba(255,204,0,0.2); border-radius:100px; color:rgba(255,204,0,0.8); }
.wp-arrow { position:absolute; bottom:1.5rem; right:1.5rem; font-size:1.1rem; color:var(--gold); opacity:0; transform:translateX(-6px); transition:all 0.3s; }
.wp-card:hover .wp-arrow { opacity:1; transform:translateX(0); }

/* ============================================================
   MEMBERS SECTION (homepage teaser)
   ============================================================ */
.members-teaser { background: var(--off-white); padding: 7rem 0; }

.team-strip { display:flex; flex-wrap:nowrap; gap:1.2rem; justify-content:center; margin-top:3rem; overflow-x:auto; padding-bottom:0.5rem; }

.team-thumb {
  display: flex; flex-direction:column; align-items:center; gap:0.6rem;
  padding: 1.2rem; background:var(--white); border:1px solid var(--border);
  border-radius: var(--radius); min-width:130px;
  transition: all 0.3s ease; cursor: pointer;
}
.team-thumb:hover { border-color:var(--navy); transform:translateY(-4px); box-shadow:var(--shadow-lg); }
.team-thumb img { width:110px; height:110px; border-radius:50%; object-fit:cover; border:2px solid var(--navy-light); }
.team-thumb .tt-initials { width:110px; height:110px; border-radius:50%; background:var(--navy-light); border:2px solid var(--border2); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:1.8rem; font-style:italic; color:var(--navy); }
.team-thumb .tt-name { font-size:0.78rem; font-weight:700; color:var(--navy); text-align:center; line-height:1.3; }
.team-thumb .tt-role { font-family:var(--font-mono); font-size:0.6rem; letter-spacing:0.08em; color:var(--text-mute); text-align:center; }

/* ============================================================
   NEWS SECTION
   ============================================================ */
.news-section { background: var(--white); padding: 7rem 0; }

.news-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:1.5rem; }

.news-card {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.8rem;
  transition: all 0.3s ease; display:flex; flex-direction:column;
  position: relative; overflow: hidden;
}
.news-card::before { content:''; position:absolute; top:0; left:0; right:0; height:3px; transition:background 0.3s; background:var(--border); }
.news-card:hover { transform:translateY(-4px); box-shadow:var(--shadow-lg); border-color:var(--border2); }
.news-card.award::before   { background:var(--gold); }
.news-card.publication::before { background:var(--navy); }
.news-card.event::before   { background:#22c55e; }

.nc-type { display:inline-block; font-family:var(--font-mono); font-size:0.6rem; font-weight:700; letter-spacing:0.18em; text-transform:uppercase; padding:0.2rem 0.65rem; border-radius:100px; margin-bottom:0.6rem; width:fit-content; }
.nc-type.award   { background:rgba(255,204,0,0.15); color:#7a5800; border:1px solid rgba(255,204,0,0.3); }
.nc-type.pub     { background:var(--navy-light); color:var(--navy); border:1px solid var(--border2); }
.nc-type.event   { background:rgba(34,197,94,0.1); color:#166534; border:1px solid rgba(34,197,94,0.25); }

.nc-date { font-family:var(--font-mono); font-size:0.62rem; color:var(--text-mute); letter-spacing:0.08em; margin-bottom:0.6rem; }
.news-card h3 { font-family:var(--font-display); font-size:1rem; font-style:italic; font-weight:700; color:var(--navy); margin-bottom:0.6rem; line-height:1.4; }
.news-card p { font-size:0.83rem; color:var(--text-mid); line-height:1.65; flex:1; margin-bottom:1rem; }
.nc-link { font-size:0.78rem; font-weight:700; color:var(--navy); display:inline-flex; align-items:center; gap:0.3rem; transition:gap 0.2s; }
.nc-link:hover { gap:0.6rem; }

/* ============================================================
   FUNDING BAND
   ============================================================ */
.funding-band {
  background: var(--navy);
  padding: 4rem 0;
  border-top: 4px solid var(--gold);
}
.funding-inner {
  display: flex; align-items: center; gap: 3rem; flex-wrap: wrap;
}
.funding-logo { display:flex; align-items:center; gap:1.2rem; flex-shrink:0; }
.funding-logo img { height:56px; width:auto; }
.funding-logo-text {}
.fl-main { font-family:var(--font-display); font-size:1.1rem; font-style:italic; color:#fff; font-weight:700; }
.fl-sub { font-size:0.78rem; color:rgba(255,255,255,0.6); margin-top:0.2rem; }
.fl-grant { font-family:var(--font-mono); font-size:0.68rem; color:var(--gold); margin-top:0.2rem; letter-spacing:0.06em; }
.funding-sep { width:1px; height:60px; background:rgba(255,255,255,0.15); flex-shrink:0; }
.funding-statement { font-size:0.88rem; color:rgba(255,255,255,0.6); line-height:1.8; flex:1; min-width:280px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--navy-dark); padding: 5rem 0 2rem; }

.footer-top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem;
  padding-bottom: 3.5rem; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 2rem;
}

.footer-logo { display:flex; align-items:center; gap:0.75rem; margin-bottom:1rem; }
.footer-logo img { height:32px; width:auto; }
.footer-logo-text { font-family:var(--font-display); font-size:1.2rem; font-style:italic; font-weight:700; color:#fff; }

.footer-brand p { font-size:0.85rem; color:rgba(255,255,255,0.5); max-width:240px; line-height:1.7; }
.footer-brand .f-dates { font-family:var(--font-mono); font-size:0.65rem; color:rgba(255,255,255,0.3); letter-spacing:0.08em; margin-top:0.5rem; }

.footer-col h4 { font-family:var(--font-mono); font-size:0.62rem; letter-spacing:0.2em; text-transform:uppercase; color:var(--gold); margin-bottom:1rem; }
.footer-col { display:flex; flex-direction:column; gap:0.5rem; }
.footer-col a { font-size:0.83rem; color:rgba(255,255,255,0.5); transition:color 0.2s; }
.footer-col a:hover { color:#fff; }

.footer-bottom { text-align:center; font-family:var(--font-mono); font-size:0.65rem; letter-spacing:0.06em; color:rgba(255,255,255,0.25); }

/* ============================================================
   PAGE HEADER (inner pages)
   ============================================================ */
.page-header {
  background: var(--navy);
  padding: 120px 0 4rem;
  position: relative; overflow: hidden; text-align: center;
}
.page-header::before {
  content: ''; position:absolute; inset:0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 48px 48px; pointer-events: none;
}
.page-header::after {
  content: ''; position:absolute; bottom:-2px; left:0; right:0;
  height: 4px; background: var(--gold);
}
.page-header .section-pill { background:rgba(255,204,0,0.15); border-color:rgba(255,204,0,0.3); color:var(--gold); }
.page-header .section-pill::before { background:#fff; }
.page-header h1 { font-family:var(--font-display); font-size:clamp(2.5rem,6vw,4rem); font-style:italic; font-weight:700; color:#fff; letter-spacing:-0.02em; margin-bottom:0.75rem; position:relative; }
.page-header p { color:rgba(255,255,255,0.6); font-size:1rem; max-width:520px; margin:0 auto; position:relative; }

/* ============================================================
   PUBLICATIONS PAGE
   ============================================================ */
.pub-filter-bar { display:flex; align-items:center; gap:0.75rem; margin-bottom:3rem; flex-wrap:wrap; }
.filter-btn { padding:0.4rem 1.1rem; border-radius:100px; border:1px solid var(--border2); background:transparent; color:var(--text-dim); font-size:0.82rem; cursor:pointer; transition:all 0.2s; font-family:var(--font-body); }
.filter-btn:hover,.filter-btn.active { background:var(--navy); border-color:var(--navy); color:#fff; }
.pub-count-badge { display:inline-block; background:var(--navy-light); color:var(--navy); font-size:0.68rem; padding:0.1rem 0.5rem; border-radius:100px; margin-left:0.4rem; font-family:var(--font-mono); }

.pub-year-group { margin-bottom:3rem; }
.pub-year-heading { font-family:var(--font-display); font-size:2.8rem; font-weight:700; font-style:italic; color:rgba(0,51,153,0.12); display:flex; align-items:center; gap:1rem; margin-bottom:1.5rem; }
.pub-year-heading::after { content:''; flex:1; height:1px; background:var(--border); }

.pub-list { display:flex; flex-direction:column; gap:1rem; }
.pub-item { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem 2rem; display:grid; grid-template-columns:auto 1fr auto; gap:1.5rem; align-items:start; transition:all 0.25s; }
.pub-item:hover { border-color:var(--navy); transform:translateX(4px); box-shadow:var(--shadow); }
.pub-icon { width:36px;height:36px;background:var(--navy-light);border-radius:8px;display:flex;align-items:center;justify-content:center;font-size:1rem;flex-shrink:0; }
.pub-title { font-size:0.95rem;font-weight:700;color:var(--navy);margin-bottom:0.3rem;line-height:1.4; }
.pub-authors { font-size:0.8rem;color:var(--text-dim);margin-bottom:0.3rem; }
.pub-journal { font-size:0.8rem;color:var(--navy-mid);font-style:italic; }
.pub-doi a { font-size:0.72rem;font-family:var(--font-mono);color:var(--text-mute);white-space:nowrap;transition:color 0.2s; }
.pub-doi a:hover { color:var(--navy); }

/* ============================================================
   NEWS PAGE
   ============================================================ */
.news-filter-bar { display:flex; align-items:center; gap:0.75rem; margin-bottom:3rem; flex-wrap:wrap; }
.news-year-group { margin-bottom:4rem; }
.news-year-heading { font-family:var(--font-display); font-size:2.8rem; font-weight:700; font-style:italic; color:rgba(0,51,153,0.12); display:flex; align-items:center; gap:1rem; margin-bottom:2rem; }
.news-year-heading::after { content:''; flex:1; height:1px; background:var(--border); }
.news-month-group { margin-bottom:2rem; }
.news-month-label { font-family:var(--font-mono); font-size:0.68rem; font-weight:700; letter-spacing:0.2em; text-transform:uppercase; color:var(--text-mute); margin-bottom:1rem; }
.news-full-list { display:flex; flex-direction:column; gap:1rem; }
.news-full-item { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); padding:1.5rem 2rem; display:grid; grid-template-columns:auto 1fr; gap:1.5rem; transition:all 0.25s; }
.news-full-item:hover { border-color:var(--navy); transform:translateX(4px); box-shadow:var(--shadow); }
.news-icon { font-size:1.5rem; flex-shrink:0; }
.news-full-item h3 { font-family:var(--font-display); font-size:1rem; font-style:italic; font-weight:700; color:var(--navy); margin-bottom:0.4rem; }
.news-full-item p { font-size:0.85rem; color:var(--text-mid); line-height:1.6; }

/* ============================================================
   MEMBERS PAGE
   ============================================================ */
.members-page { background:var(--off-white); padding:5rem 0 8rem; }

.group-heading { display:flex; align-items:center; gap:1.2rem; margin:4rem 0 2rem; }
.group-heading:first-of-type { margin-top:0; }
.group-label { font-family:var(--font-display); font-size:1.3rem; font-style:italic; font-weight:700; color:var(--navy); white-space:nowrap; }
.group-line { flex:1; height:1px; background:linear-gradient(to right, var(--border2), transparent); }
.group-count { font-family:var(--font-mono); font-size:0.62rem; letter-spacing:0.15em; color:var(--text-mute); white-space:nowrap; }

.members-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(185px,1fr)); gap:1.5rem; }

/* ALL member cards: uniform square grid cards — no big/small variants */
.member-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem 1.4rem 1.6rem;
  text-align: center; cursor: pointer; transition: all 0.3s ease;
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
}
.member-card::after { content:''; position:absolute; bottom:0; left:0; right:0; height:3px; background:var(--gold); transform:scaleX(0); transition:transform 0.3s; transform-origin:left; }
.member-card:hover { transform:translateY(-6px); box-shadow:var(--shadow-lg); border-color:var(--navy); cursor:pointer; }
.member-card:hover::after { transform:scaleX(1); }
.card-leader, .card-small { /* same as .member-card — no special size */ }
.member-photo-wrap { width:96px; height:96px; margin:0 auto 1.1rem; position:relative; flex-shrink:0; }
.member-photo { width:96px; height:96px; border-radius:50%; object-fit:cover; object-position:center top; border:3px solid var(--navy-light); display:block; background:var(--light-gray); }
.member-initials { width:96px; height:96px; border-radius:50%; border:3px solid var(--border2); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:1.6rem; font-style:italic; font-weight:700; color:var(--navy); background:var(--navy-light); }
.member-card h3 { font-family:var(--font-display); font-size:0.92rem; font-weight:700; color:var(--navy); margin-bottom:0.3rem; line-height:1.3; }
.member-role { font-family:var(--font-mono); font-size:0.6rem; letter-spacing:0.1em; text-transform:uppercase; color:var(--text-mute); margin-bottom:0.4rem; }
.member-role.main-member { color:var(--navy-mid); font-weight:700; }
.member-badge { display:inline-block; font-family:var(--font-mono); font-size:0.56rem; padding:0.15rem 0.55rem; border-radius:100px; margin-top:0.3rem; font-weight:700; letter-spacing:0.08em; }
.badge-main { background:var(--navy); color:#fff; }
.badge-associate { background:var(--gold-dim); color:#7a5800; border:1px solid rgba(255,204,0,0.35); }
.leader-contact { display:none; } /* contact shown in modal only */
.ci { width:14px; height:14px; flex-shrink:0; color:var(--navy); }


.lab-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:1rem; }
.lab-card { background:var(--white); border:1px solid var(--border); border-radius:var(--radius-sm); padding:1.2rem 1.5rem; border-left:3px solid var(--gold); transition:all 0.25s; }
.lab-card:hover { box-shadow:var(--shadow); transform:translateX(4px); }
.lab-name { font-family:var(--font-display); font-size:0.95rem; font-style:italic; font-weight:700; color:var(--navy); margin-bottom:0.5rem; }
.lab-info { display:flex; gap:1rem; flex-wrap:wrap; }
.lab-info span { font-family:var(--font-mono); font-size:0.68rem; color:var(--text-mute); }
.lab-info span strong { color:var(--navy); }

.former-list { display:flex; flex-wrap:wrap; gap:0.6rem; }
.former-tag { background:var(--white); border:1px solid var(--border); border-radius:100px; padding:0.35rem 1rem; font-size:0.82rem; color:var(--text-mid); transition:all 0.2s; }
.former-tag:hover { border-color:var(--navy); color:var(--navy); }

/* MODAL */
.member-modal-overlay { display:none; position:fixed; inset:0; background:rgba(0,20,80,0.7); z-index:2000; align-items:center; justify-content:center; backdrop-filter:blur(8px); }
.member-modal-overlay.open { display:flex; }
.member-modal { background:#fff; border:1px solid var(--border2); border-radius:18px; max-width:640px; width:92%; max-height:88vh; overflow-y:auto; padding:2.5rem; position:relative; animation:modalIn 0.3s cubic-bezier(0.34,1.56,0.64,1); box-shadow:0 40px 80px rgba(0,51,153,0.2); }
@keyframes modalIn { from{opacity:0;transform:scale(0.9) translateY(30px)}to{opacity:1;transform:scale(1) translateY(0)} }
.modal-close { position:absolute; top:1.2rem; right:1.2rem; background:var(--navy-light); border:1px solid var(--border); color:var(--navy); width:34px;height:34px; border-radius:8px; cursor:pointer; font-size:1rem; display:flex; align-items:center; justify-content:center; transition:all 0.2s; }
.modal-close:hover { background:var(--navy); color:#fff; }
.modal-header { display:flex; align-items:flex-start; gap:1.5rem; margin-bottom:2rem; padding-bottom:1.5rem; border-bottom:2px solid var(--gold); }
.modal-photo { width:90px;height:90px;border-radius:50%;object-fit:cover;border:2px solid var(--navy-light);flex-shrink:0; }
.modal-initials { width:90px;height:90px;border-radius:50%;border:2px solid var(--border2);display:flex;align-items:center;justify-content:center;font-family:Palatino,serif;font-size:2rem;font-style:italic;color:var(--navy);background:var(--navy-light);flex-shrink:0; }
.modal-name { font-family:var(--font-display); font-size:1.3rem; font-style:italic; font-weight:700; color:var(--navy); }
.modal-role-label { font-family:var(--font-mono); font-size:0.68rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--text-mute); margin-top:0.3rem; }
.modal-institution { font-size:0.82rem; color:var(--text-mid); margin-top:0.25rem; }
.modal-section { margin-bottom:1.5rem; }
.modal-section h4 { font-family:var(--font-mono); font-size:0.62rem; letter-spacing:0.2em; text-transform:uppercase; color:var(--text-mute); margin-bottom:0.6rem; padding-bottom:0.4rem; border-bottom:1px solid var(--border); }
.modal-section p { font-size:0.9rem; color:var(--text-mid); line-height:1.7; }
.contact-grid { display:grid; grid-template-columns:auto 1fr; gap:0.3rem 0.8rem; align-items:center; }
.ck { font-family:var(--font-mono); font-size:0.62rem; letter-spacing:0.12em; text-transform:uppercase; color:var(--text-mute); }
.cv { font-size:0.85rem; color:var(--text-mid); }
a.cv { color:var(--navy); } a.cv:hover { color:var(--navy-mid); }

/* ============================================================
   RESEARCH PAGE
   ============================================================ */
.research-page { background:var(--off-white); padding:5rem 0 8rem; }
.project-card { background:var(--white); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; display:grid; grid-template-columns:200px 1fr; margin-bottom:1.5rem; transition:all 0.3s; }
.project-card:hover { box-shadow:var(--shadow-lg); border-color:var(--border2); transform:translateX(4px); }
.project-visual { background:var(--navy); display:flex; align-items:center; justify-content:center; font-size:3.5rem; position:relative; }
.project-visual::after { content:''; position:absolute; top:0; bottom:0; right:0; width:4px; background:var(--gold); }
.project-body { padding:2rem 2.5rem; }
.project-num { font-family:var(--font-mono); font-size:0.65rem; letter-spacing:0.15em; color:var(--text-mute); margin-bottom:0.5rem; }
.project-body h2 { font-family:var(--font-display); font-size:1.25rem; font-style:italic; font-weight:700; color:var(--navy); margin-bottom:0.6rem; }
.project-body p { font-size:0.88rem; color:var(--text-mid); line-height:1.7; }
.project-tags { display:flex; flex-wrap:wrap; gap:0.5rem; margin-top:1rem; }
.tag { font-size:0.7rem; padding:0.22rem 0.7rem; background:var(--navy-light); border:1px solid var(--border2); border-radius:100px; color:var(--navy); font-family:var(--font-mono); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width:1024px) {
  .hero-inner { grid-template-columns:1fr; }
  .hero-card { display:none; }
  .wp-grid { grid-template-columns:1fr 1fr; }
  .about-grid { grid-template-columns:1fr; gap:3rem; }
  .footer-top { grid-template-columns:1fr 1fr; }
  .project-card { grid-template-columns:1fr; }
  .project-visual { min-height:100px; }
}
@media (max-width:768px) {
  .wp-grid,.news-grid { grid-template-columns:1fr; }
  .metrics-band { flex-wrap:wrap; }
  .metric-sep { display:none; }
  .metric { padding:1.5rem 2.5rem; }
  .pillars-grid { grid-template-columns:1fr; }
  .footer-top { grid-template-columns:1fr; }
  .funding-inner { flex-direction:column; gap:1.5rem; }
  .funding-sep { display:none; }
  .hero-photo-band { height:220px; }
  .pub-item { grid-template-columns:1fr; }
}

/* ============================================================
   POLISH & SYMMETRY IMPROVEMENTS
   ============================================================ */

/* Better section headings — gold underline treatment */
.section-h2 {
  position: relative;
  padding-bottom: 1rem;
  color: var(--navy); /* ensure color is always set */
}
.section-h2.white { color: #fff !important; }
.section-h2::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 48px; height: 3px;
  background: var(--gold);
  border-radius: 2px;
}
.section-h2.white::after { background: var(--gold); }
.section-h2.centered::after { left: 50%; transform: translateX(-50%); }

/* Metrics band numbers — gradient color, scoped to metrics band only */
.metrics-band .metric-num {
  font-size: 3.2rem;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* About section pillars — equal height */
.pillars-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  align-items: stretch;
}
.pillar {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Research cards — equal height in grid */
.wp-grid { align-items: stretch; }
.wp-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.wp-card p { flex: 1; }

/* News cards — equal height */
.news-grid { align-items: stretch; }
.news-card { display: flex; flex-direction: column; }

/* Group photo band — responsive */
@media (max-width: 768px) {
  .hero-photo-band { height: 220px; }
}

/* Member cards — equal height in grid */
.members-grid { align-items: stretch; }
.member-card { height: 100%; justify-content: flex-start; }

/* Former tags — nicer hover with gold */
.former-tag:hover {
  border-color: var(--gold);
  color: var(--navy);
  background: var(--gold-dim);
}

/* Lab cards — left border gold accent */
.lab-card { border-left: 3px solid var(--gold); }

/* Footer — subtle top border gold */
.footer { border-top: 3px solid var(--gold); }

/* Nav active link — bolder gold underline */
.nav-link.active {
  position: relative;
}

/* Page header — symmetric centered layout */
.page-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Group headings on members page — gold dot decoration */
.group-label::before {
  content: '◆';
  color: var(--gold);
  margin-right: 0.6rem;
  font-size: 0.7rem;
  vertical-align: middle;
}

/* Smooth image loading */
img { transition: opacity 0.3s ease; }

/* Better button shadow on gold button */
.btn-gold:hover {
  box-shadow: 0 8px 30px rgba(255,204,0,0.4);
}

/* Research project cards — colour-coded left border */
.project-card:nth-child(1) .project-visual { background: linear-gradient(135deg,#001244,#003399); }
.project-card:nth-child(2) .project-visual { background: linear-gradient(135deg,#1a0050,#4a0080); }
.project-card:nth-child(3) .project-visual { background: linear-gradient(135deg,#003322,#006644); }

/* Publication items — nice hover */
.pub-item:hover .pub-title { color: var(--navy-mid); }

/* Section pill — centered variant */
.section-pill.centered { display: flex; margin: 0 auto 1.2rem; width: fit-content; }

/* Hero title — gold underline on UltraSpecT span */
.hero-title span {
  position: relative;
  display: inline-block;
}
.hero-title span::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), transparent);
  border-radius: 2px;
}

/* ============================================================
   MOBILE RESPONSIVE — comprehensive fixes
   ============================================================ */
@media (max-width: 600px) {

  /* General spacing */
  .section { padding: 3rem 0; }
  .container { padding: 0 1.2rem; }

  /* Hero */
  .hero-inner { padding: 2rem 1.2rem; }
  .hero-title { font-size: clamp(2rem, 10vw, 3rem); }
  .hero-title-sub { font-size: 1rem; }
  .hero-subtitle { font-size: 1rem; }
  .hero-desc { font-size: 0.85rem; }
  .hero-ctas { flex-direction: column; gap: 0.8rem; }
  .hero-ctas a { width: 100%; text-align: center; }

  /* Nav */
  .nav-logo-img { height: 28px; }
  .nav-logo-main { font-size: 1rem; }
  .nav-logo-sub { font-size: 0.55rem; }

  /* Section headings */
  .section-h2 { font-size: 1.6rem; }
  .section-pill { font-size: 0.6rem; }

  /* Research theme cards */
  .wp-grid { grid-template-columns: 1fr !important; }
  .wp-card { padding: 1.5rem; }

  /* Team strip */
  .team-strip { gap: 1rem; justify-content: flex-start; }
  .team-thumb img, .tt-initials { width: 80px !important; height: 80px !important; }

  /* News grid */
  .news-grid { grid-template-columns: 1fr !important; }
  .news-card { padding: 1.4rem; }

  /* Publications */
  .pub-item { flex-direction: column; gap: 0.8rem; }
  .pub-doi { font-size: 0.72rem; }

  /* Members grid */
  .members-grid { grid-template-columns: 1fr 1fr !important; gap: 1rem; }
  .member-card { padding: 1.2rem 0.8rem; }
  .member-photo-wrap, .member-initials { width: 70px !important; height: 70px !important; }

  /* Nahid leader card */
  .leader-card-inner { flex-direction: column !important; }

  /* Paper cards */
  .paper-grid { grid-template-columns: 1fr !important; }

  /* Footer */
  .footer-top { grid-template-columns: 1fr !important; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }

  /* Modal */
  .modal-box { margin: 0.5rem; max-height: 95vh; }
  .modal-hero { flex-direction: column; align-items: center; padding: 1.4rem; }
  .modal-hero-info { text-align: center; }
  .modal-contact-grid { grid-template-columns: 1fr !important; }
  .modal-body { padding: 1.2rem; }

  /* Metrics band */
  .metrics-band { flex-direction: column; }
  .metric-sep { display: none; }

  /* Buttons */
  .btn-gold, .btn-outline { padding: 0.7rem 1.4rem; font-size: 0.8rem; }

  /* Photos grid */
  .photos-grid { grid-template-columns: 1fr 1fr !important; gap: 0.5rem; }

  /* Former members */
  .former-list { gap: 0.4rem; }
  .former-tag { font-size: 0.72rem; padding: 0.25rem 0.7rem; }
}

@media (max-width: 400px) {
  .members-grid { grid-template-columns: 1fr !important; }
  .photos-grid { grid-template-columns: 1fr !important; }
}
