/* ============================================================
   TEAM PROTEUS — v4
   Improved readability, Apple-style hero, At a Glance, Staff panel
   ============================================================ */

:root {
  --blue:        rgb(75, 145, 200);
  --blue-mid:    rgb(50, 105, 165);
  --blue-dark:   rgb(22, 48, 82);
  --blue-deep:   rgb(12, 24, 45);
  --pink:        rgb(200, 80, 130);
  --pink-soft:   rgba(200, 80, 130, 0.12);
  --white:       #ffffff;
  --off-white:   #f3f6fa;
  --slate-100:   #e2e8f0;
  --slate-300:   #b0bdd0;
  --slate-400:   #8899b0;
  --slate-600:   #4a5e78;
  --slate-700:   #334155;
  --slate-900:   #0f1a2e;

  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body:    'IBM Plex Sans', system-ui, sans-serif;
  --font-mono:    'IBM Plex Mono', 'Menlo', monospace;

  --ease:     cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --speed:    0.35s;
  --max-w:    1140px;
  --radius:   6px;

  /* Readable minimums */
  --text-sm:   0.875rem;   /* 14px — smallest allowed */
  --text-base: 1rem;       /* 16px */
  --text-md:   1.063rem;   /* 17px */
  --text-lg:   1.125rem;   /* 18px */
}

/* ===== RESET ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-font-smoothing: antialiased; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--slate-700);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; transition: color var(--speed) var(--ease); }
a:hover { color: var(--pink); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
em { font-family: var(--font-display); font-style: italic; }
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 28px; }

/* ===== SECTION ===== */
.section { padding: 100px 0; position: relative; }
.section--dark { background: linear-gradient(175deg, var(--blue-deep) 0%, var(--blue-dark) 100%); color: var(--slate-300); }
.section--alt { background: var(--off-white); }

.section-eyebrow {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px;
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--pink);
}
.eyebrow-line { display: block; width: 32px; height: 1px; background: var(--pink); }

.section-heading {
  font-family: var(--font-display); font-size: clamp(2rem, 4.5vw, 2.8rem);
  font-weight: 400; line-height: 1.15; color: var(--blue-dark); margin-bottom: 14px;
}
.section-heading--light { color: var(--white); }
.section-heading em { color: var(--pink); }

.section-sub {
  font-size: var(--text-md); color: var(--slate-600); max-width: 560px;
  margin-bottom: 44px; line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 4px;
  font-family: var(--font-body); font-weight: 600; font-size: var(--text-sm);
  cursor: pointer; transition: all var(--speed) var(--ease);
  border: 1.5px solid transparent; text-decoration: none;
}
.btn-fill { background: var(--pink); color: var(--white); border-color: var(--pink); }
.btn-fill:hover { background: rgb(180,60,110); border-color: rgb(180,60,110); color: var(--white); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(200,80,130,0.3); }
.btn-ghost { background: transparent; color: var(--slate-300); border-color: var(--slate-300); }
.btn-ghost:hover { color: var(--white); border-color: var(--white); }
.btn-ghost-dark { background: transparent; color: var(--slate-400); border-color: var(--slate-300); }
.btn-ghost-dark:hover { color: var(--slate-700); border-color: var(--slate-700); }
.btn-full { width: 100%; justify-content: center; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  background: rgba(12,24,45,0.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(75,145,200,0.08);
  transition: background var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}
.navbar.scrolled { background: rgba(12,24,45,0.97); box-shadow: 0 2px 24px rgba(0,0,0,0.2); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }

.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); }
.brand-logo { width: 36px; height: 36px; border-radius: 6px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-family: var(--font-display); font-size: var(--text-base); color: var(--white); }
.brand-sub { font-family: var(--font-mono); font-size: 0.625rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--slate-400); }

.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--slate-400); font-size: var(--text-sm); font-weight: 500; position: relative; padding: 4px 0; transition: color var(--speed) var(--ease); }
.nav-links a::after { content: ''; position: absolute; bottom: -1px; left: 0; width: 0; height: 1px; background: var(--pink); transition: width var(--speed) var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-cta { padding: 7px 18px !important; border: 1.5px solid var(--pink) !important; border-radius: 4px; color: var(--pink) !important; font-weight: 600 !important; }
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--pink) !important; color: var(--white) !important; }

.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; background: none; border: none; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--white); transition: all var(--speed) var(--ease); transform-origin: center; }
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===== HERO — Fixed behind content, Apple-style ===== */
.hero {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: linear-gradient(170deg, var(--blue-deep) 0%, var(--blue-dark) 60%, rgb(35,70,115) 100%);
  overflow: hidden;
  z-index: 0;
  transform: translateZ(0); /* force GPU layer */
}

/* Spacer takes up 100vh so content starts below the hero */
.hero-spacer {
  height: 100vh;
  pointer-events: none;
}

/* All content after hero scrolls over it */
.about, .research, .cohort, .team, .glance, .join, .contact, .footer {
  position: relative;
  z-index: 1;
  background: var(--white);
}

.research, .join {
  background: linear-gradient(175deg, var(--blue-deep) 0%, var(--blue-dark) 100%);
}

.team, .contact {
  background: var(--off-white);
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-grain { position: absolute; inset: 0; opacity: 0.03; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 200px; }

.hero-cells { position: absolute; inset: 0; contain: strict; }
.cell { position: absolute; border-radius: 50%; border: 1.5px solid; animation: cellFloat 8s var(--ease) infinite; will-change: transform; }
.cell-1 { width: 220px; height: 220px; top: 12%; right: 10%; border-color: rgba(75,145,200,0.1); background: radial-gradient(circle at 40% 40%, rgba(75,145,200,0.05), transparent 70%); animation-duration: 10s; }
.cell-2 { width: 130px; height: 130px; top: 50%; right: 28%; border-color: rgba(200,80,130,0.08); animation-delay: -3s; animation-duration: 12s; }
.cell-3 { width: 70px; height: 70px; top: 22%; right: 38%; border-color: rgba(75,145,200,0.07); animation-delay: -5s; }
.cell-4 { width: 45px; height: 45px; bottom: 25%; right: 18%; border-color: rgba(200,80,130,0.1); animation-delay: -2s; animation-duration: 7s; }
.cell-5 { width: 100px; height: 100px; bottom: 35%; left: 6%; border-color: rgba(75,145,200,0.05); animation-delay: -7s; animation-duration: 14s; }

.hero-glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: 0.12; }
.glow-1 { width: 500px; height: 500px; top: -15%; right: -5%; background: var(--blue); }
.glow-2 { width: 400px; height: 400px; bottom: -10%; left: -10%; background: var(--pink); opacity: 0.08; }

.hero-container {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center;
}

.hero-content { max-width: 580px; }
.hero-logo-wrap { }

.hero-logo-img {
  width: 280px; height: 280px; object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.3));
  animation: logoFloat 6s var(--ease) infinite;
}

.specimen-label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 1.8px; text-transform: uppercase; color: var(--pink);
  margin-bottom: 24px; padding: 5px 14px 5px 10px;
  border: 1px solid rgba(200,80,130,0.25); border-radius: 2px; background: rgba(200,80,130,0.06);
}
.specimen-dot { width: 6px; height: 6px; background: var(--pink); border-radius: 50%; animation: dotPulse 2.5s ease infinite; }

.hero-title {
  font-family: var(--font-display); font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 400; color: var(--white); line-height: 1.05; margin-bottom: 22px;
}
.hero-accent {
  font-style: italic;
  background: linear-gradient(135deg, var(--blue) 20%, var(--pink) 80%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.hero-desc { font-size: var(--text-md); color: var(--slate-300); line-height: 1.8; margin-bottom: 36px; max-width: 480px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-data-strip {
  position: absolute; bottom: 0; left: 0; width: 100%; z-index: 3;
  background: rgba(12,24,45,0.85);
  border-top: 1px solid rgba(75,145,200,0.08);
}
.hero-data { display: flex; }
.data-card { flex: 1; padding: 14px 20px; border-right: 1px solid rgba(75,145,200,0.08); display: flex; flex-direction: column; gap: 2px; }
.data-card:last-child { border-right: none; }
.data-label { font-family: var(--font-mono); font-size: 0.688rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--slate-400); }
.data-value { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; color: var(--white); }
.data-value em { font-family: var(--font-display); }

/* ===== ABOUT ===== */
.about-layout { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 40px; margin-bottom: 48px; }
.about-main { max-width: 640px; }
.about-lead { font-size: var(--text-md); color: var(--slate-600); line-height: 1.8; margin-top: 8px; }

.about-sidebar-card { padding: 28px; border: 1px solid var(--slate-100); border-radius: var(--radius); background: var(--off-white); margin-top: 50px; }
.about-sidebar-card h4 { font-family: var(--font-display); font-size: var(--text-lg); color: var(--blue-dark); margin-bottom: 8px; }
.about-sidebar-card p { font-size: var(--text-sm); color: var(--slate-600); line-height: 1.7; }

.about-details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

.about-detail-card {
  padding: 24px 20px; border: 1px solid var(--slate-100); border-radius: var(--radius);
  transition: all 0.5s var(--ease-out); position: relative; overflow: hidden;
}
.about-detail-card::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: linear-gradient(90deg, var(--blue), var(--pink)); opacity: 0; transition: opacity var(--speed) var(--ease); }
.about-detail-card:hover { border-color: rgba(75,145,200,0.2); box-shadow: 0 8px 32px rgba(12,24,45,0.06); transform: translateY(-3px); }
.about-detail-card:hover::before { opacity: 1; }
.detail-number { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; color: var(--pink); letter-spacing: 1px; margin-bottom: 12px; }
.about-detail-card h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; color: var(--blue-dark); margin-bottom: 6px; }
.about-detail-card p { font-size: var(--text-sm); color: var(--slate-600); line-height: 1.65; }

/* ===== RESEARCH ===== */
.research-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }

.rc-column-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.rc-column-label { font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue); padding: 3px 10px; background: rgba(75,145,200,0.12); border: 1px solid rgba(75,145,200,0.2); border-radius: 2px; }
.rc-column-label--pub { color: var(--pink); background: rgba(200,80,130,0.12); border-color: rgba(200,80,130,0.2); }
.rc-column-count { font-family: var(--font-mono); font-size: 0.688rem; color: var(--slate-400); }

.rc-view-all-btn {
  display: block; width: 100%; margin-top: 14px; padding: 12px;
  background: rgba(255,255,255,0.04); border: 1px dashed rgba(75,145,200,0.15);
  border-radius: var(--radius); color: var(--slate-300);
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500;
  cursor: pointer; transition: all var(--speed) var(--ease); text-align: center;
}
.rc-view-all-btn:hover { background: rgba(75,145,200,0.08); border-color: var(--blue); color: var(--white); }

/* Research Modal */
.research-modal {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(12,24,45,0.7); backdrop-filter: blur(8px);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 80px;
}
.research-modal.active { display: flex; }

.rm-panel {
  background: var(--blue-deep); border: 1px solid rgba(75,145,200,0.1);
  border-radius: 12px; width: 90%; max-width: 720px; max-height: calc(100vh - 120px);
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.4);
  animation: panelIn 0.4s var(--ease-out);
}

.rm-header {
  display: flex; align-items: center; gap: 16px; padding: 24px 28px;
  border-bottom: 1px solid rgba(75,145,200,0.08); flex-shrink: 0;
}
.rm-header h2 { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); flex-shrink: 0; }
.rm-header h2 span { color: var(--pink); }
.rm-filters { display: flex; gap: 6px; margin-left: auto; }
.rm-filter {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
  padding: 6px 14px; border: 1px solid rgba(75,145,200,0.15); border-radius: 3px;
  background: transparent; color: var(--slate-400); cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.rm-filter.active { background: var(--blue); color: var(--white); border-color: var(--blue); }
.rm-filter:hover:not(.active) { border-color: var(--blue); color: var(--blue); }
.rm-close {
  background: none; border: none; font-size: 1.6rem; color: var(--slate-400);
  cursor: pointer; line-height: 1; margin-left: 12px; transition: color var(--speed) var(--ease);
}
.rm-close:hover { color: var(--white); }

.rm-body { padding: 20px 28px; overflow-y: auto; flex: 1; }
.rm-list { display: flex; flex-direction: column; gap: 12px; }

.research-card {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(75,145,200,0.1);
  border-radius: var(--radius); transition: all 0.5s var(--ease-out);
  position: relative; overflow: hidden;
}

.rc-expandable { cursor: pointer; }
.rc-expandable:hover { background: rgba(255,255,255,0.07); border-color: rgba(75,145,200,0.2); }

.rc-published { border-color: rgba(200,80,130,0.15); }
.rc-published:hover { border-color: rgba(200,80,130,0.3); }

.rc-summary { padding: 28px 24px; position: relative; }

.rc-expand-hint {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-mono); font-size: 0.688rem; font-weight: 500;
  letter-spacing: 1px; text-transform: uppercase; color: var(--slate-400);
  transition: color var(--speed) var(--ease);
}
.rc-expandable:hover .rc-expand-hint { color: var(--blue); }
.rc-expandable.rc-open .rc-expand-hint { display: none; }

/* Expanded content */
.rc-expanded {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s var(--ease);
}
.rc-expandable.rc-open .rc-expanded {
  max-height: 600px; opacity: 1;
}
.rc-expanded-body {
  padding: 0 24px 28px;
  border-top: 1px solid rgba(75,145,200,0.08);
  margin: 0 24px;
  padding-top: 20px;
  margin-left: 0; margin-right: 0;
  padding-left: 24px; padding-right: 24px;
}
.rc-full-desc p { font-size: var(--text-sm); color: var(--slate-300); line-height: 1.75; margin-bottom: 12px; }
.rc-full-desc p:last-child { margin-bottom: 0; }

.rc-meta-grid {
  display: flex; flex-wrap: wrap; gap: 20px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(75,145,200,0.08);
}

/* Authors (published cards) */
.rc-authors {
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(75,145,200,0.08);
}
.rc-authors-label {
  display: block; font-family: var(--font-mono); font-size: 0.688rem;
  font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--pink); margin-bottom: 6px;
}
.rc-authors p { font-size: var(--text-sm); color: var(--white); font-weight: 500; }

.rc-pub-meta {
  display: flex; flex-wrap: wrap; gap: 20px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid rgba(75,145,200,0.08);
}

.btn-pub {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 10px 22px; border-radius: 4px;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  background: rgba(200,80,130,0.12); color: var(--pink);
  border: 1px solid rgba(200,80,130,0.25);
  transition: all var(--speed) var(--ease); cursor: pointer; text-decoration: none;
}
.btn-pub:hover { background: var(--pink); color: var(--white); border-color: var(--pink); }

.rc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.rc-status { font-family: var(--font-mono); font-size: 0.688rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 2px; }
.rc-status--active { color: var(--blue); background: rgba(75,145,200,0.12); border: 1px solid rgba(75,145,200,0.2); }
.rc-status--published { color: var(--pink); background: rgba(200,80,130,0.12); border: 1px solid rgba(200,80,130,0.2); }
.rc-status--planned { color: var(--slate-400); background: rgba(136,153,176,0.1); border: 1px solid rgba(136,153,176,0.15); }
.rc-id { font-family: var(--font-mono); font-size: 0.75rem; color: var(--slate-400); letter-spacing: 1px; }

.research-card h3 { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; color: var(--white); margin-bottom: 10px; line-height: 1.3; }
.research-card p { font-size: var(--text-sm); color: var(--slate-300); line-height: 1.7; margin-bottom: 16px; }

.rc-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.rc-tags span { font-family: var(--font-mono); font-size: 0.688rem; font-weight: 500; padding: 3px 9px; border-radius: 2px; background: rgba(75,145,200,0.08); color: var(--blue); border: 1px solid rgba(75,145,200,0.12); }
.rc-published .rc-tags span { background: rgba(200,80,130,0.08); color: var(--pink); border-color: rgba(200,80,130,0.12); }

.rc-detail-item { display: flex; flex-direction: column; gap: 2px; }
.rc-detail-label { font-family: var(--font-mono); font-size: 0.688rem; color: var(--slate-400); letter-spacing: 1.5px; text-transform: uppercase; }
.rc-detail-value { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--white); font-weight: 500; }

.techniques-strip { margin-top: 40px; padding: 28px; background: rgba(255,255,255,0.03); border: 1px solid rgba(75,145,200,0.08); border-radius: var(--radius); }
.techniques-strip h4 { font-family: var(--font-mono); font-size: 0.688rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--slate-400); margin-bottom: 14px; }
.techniques-list { display: flex; flex-wrap: wrap; gap: 8px; }
.techniques-list span { font-family: var(--font-mono); font-size: 0.75rem; padding: 5px 12px; border-radius: 2px; background: rgba(75,145,200,0.08); color: var(--blue); border: 1px solid rgba(75,145,200,0.12); transition: all var(--speed) var(--ease); }
.techniques-list span:hover { background: rgba(75,145,200,0.15); transform: translateY(-1px); }

/* ===== COHORT ===== */
.cohort-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cohort-stats { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 4px; }

.stat-card { padding: 28px 20px; border: 1px solid var(--slate-100); border-radius: var(--radius); text-align: center; transition: all 0.5s var(--ease-out); }
.stat-card:hover { border-color: rgba(75,145,200,0.2); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(12,24,45,0.05); }
.stat-number { display: block; font-family: var(--font-display); font-size: 2.4rem; color: var(--blue-dark); line-height: 1; margin-bottom: 6px; }
.stat-label { font-family: var(--font-mono); font-size: 0.688rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--slate-600); }

.cohort-panel { padding: 28px; border: 1px solid var(--slate-100); border-radius: var(--radius); }
.cohort-panel--wide { grid-column: 1 / -1; }
.cohort-panel h3 { font-family: var(--font-display); font-size: var(--text-lg); color: var(--blue-dark); margin-bottom: 20px; }

.demo-grid { display: flex; flex-direction: column; gap: 14px; }
.demo-bar-wrap { width: 100%; height: 6px; background: var(--off-white); border-radius: 3px; overflow: hidden; }
.demo-bar { height: 100%; width: 0; background: var(--bar-color, var(--blue)); border-radius: 3px; transition: width 1.2s var(--ease-out); }
.demo-bar.animated { width: calc(var(--target-width) * 1%); }
.demo-meta { display: flex; justify-content: space-between; margin-top: 4px; }
.demo-label { font-size: var(--text-sm); color: var(--slate-700); }
.demo-pct { font-family: var(--font-mono); font-size: var(--text-sm); color: var(--pink); font-weight: 600; }

.output-list { display: flex; flex-direction: column; gap: 16px; }
.output-item { display: flex; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--slate-100); }
.output-item:last-of-type { border-bottom: none; padding-bottom: 0; }
.output-year { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; color: var(--blue); flex-shrink: 0; width: 44px; padding-top: 2px; }
.output-type { display: inline-block; font-family: var(--font-mono); font-size: 0.688rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--pink); margin-bottom: 4px; }
.output-body p { font-size: var(--text-sm); color: var(--slate-600); line-height: 1.65; }

.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.skill-item { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--slate-100); border-radius: var(--radius); font-size: var(--text-sm); color: var(--slate-700); transition: all var(--speed) var(--ease); }
.skill-item:hover { border-color: rgba(75,145,200,0.2); background: var(--off-white); transform: translateX(2px); }
.skill-icon { color: var(--pink); font-size: 0.625rem; flex-shrink: 0; }

/* ===== TEAM ===== */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.team-card { display: flex; align-items: flex-start; gap: 16px; padding: 24px; border: 1px solid var(--slate-100); border-radius: var(--radius); transition: all 0.5s var(--ease-out); background: var(--white); }
.team-card:hover { border-color: rgba(75,145,200,0.15); box-shadow: 0 4px 20px rgba(12,24,45,0.05); }
.team-card--lead { grid-column: 1 / -1; border-color: rgba(200,80,130,0.15); background: linear-gradient(135deg, rgba(200,80,130,0.03), rgba(75,145,200,0.03)); }
.team-card--open { border-style: dashed; border-color: rgba(75,145,200,0.2); }

.tc-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, var(--blue-dark), var(--blue)); display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; }
.tc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.tc-avatar--faculty { background: linear-gradient(135deg, var(--pink), var(--blue)); }
.tc-avatar--open { background: transparent; border: 1.5px dashed var(--blue); }
.tc-avatar span { font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600; color: var(--white); letter-spacing: 1px; }
.tc-avatar--open span { color: var(--blue); }

.tc-role { display: inline-block; font-family: var(--font-mono); font-size: 0.688rem; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--pink); margin-bottom: 3px; }
.tc-info h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 400; color: var(--blue-dark); margin-bottom: 5px; }
.tc-info p { font-size: var(--text-sm); color: var(--slate-600); line-height: 1.6; }
.tc-link { display: inline-block; font-family: var(--font-mono); font-size: 0.75rem; color: var(--blue) !important; margin-top: 8px; font-weight: 600; }
.tc-link:hover { color: var(--pink) !important; }
.team-note { text-align: center; font-family: var(--font-mono); font-size: 0.75rem; color: var(--slate-400); margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--slate-100); }

/* ===== TIMELINE ===== */
.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
  padding: 20px 0;
}

.timeline-line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--pink), var(--slate-300));
  transform: translateX(-50%);
}

.tl-item {
  position: relative;
  display: flex;
  align-items: flex-start;
  margin-bottom: 40px;
}
.tl-item:last-child { margin-bottom: 0; }

.tl-item--left { justify-content: flex-start; padding-right: calc(50% + 32px); }
.tl-item--right { justify-content: flex-end; padding-left: calc(50% + 32px); }

.tl-dot {
  position: absolute;
  left: 50%;
  top: 18px;
  width: 14px;
  height: 14px;
  background: var(--blue);
  border: 3px solid var(--off-white);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 2;
  transition: transform 0.3s var(--ease-out), background 0.3s var(--ease);
}
.tl-item:hover .tl-dot { transform: translateX(-50%) scale(1.3); background: var(--pink); }
.tl-dot--future { background: var(--slate-300); border-style: dashed; border-color: var(--slate-300); }

.tl-card {
  padding: 22px 24px;
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  background: var(--white);
  transition: all 0.4s var(--ease-out);
  width: 100%;
}
.tl-card:hover { border-color: rgba(75,145,200,0.2); box-shadow: 0 6px 24px rgba(12,24,45,0.06); transform: translateY(-2px); }
.tl-card--future { border-style: dashed; border-color: var(--slate-300); }

.tl-year {
  display: inline-block;
  font-family: var(--font-mono); font-size: 0.688rem; font-weight: 600;
  letter-spacing: 2px; color: var(--pink); margin-bottom: 6px;
}

.tl-card h4 { font-family: var(--font-display); font-size: var(--text-lg); color: var(--blue-dark); margin-bottom: 6px; }
.tl-card p { font-size: var(--text-sm); color: var(--slate-600); line-height: 1.65; }

/* ===== PAST MEMBERS ===== */
.team-section-label {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue);
  margin-bottom: 16px;
}

.past-members { margin-top: 32px; }

.past-members-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 16px 20px;
  background: var(--white); border: 1px solid var(--slate-100);
  border-radius: var(--radius); cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.past-members-toggle:hover { border-color: rgba(75,145,200,0.2); }

.past-toggle-label {
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--slate-600);
}
.past-toggle-icon {
  font-family: var(--font-mono); font-size: 1.2rem; color: var(--blue);
  transition: transform 0.3s var(--ease-out);
}
.past-members.open .past-toggle-icon { transform: rotate(45deg); }

.past-members-list {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height 0.5s var(--ease-out), opacity 0.4s var(--ease);
}
.past-members.open .past-members-list { max-height: 600px; opacity: 1; }

.past-members-list .team-card { margin-top: 10px; }

.team-card--past { opacity: 0.75; }
.team-card--past:hover { opacity: 1; }
.tc-avatar--past { background: var(--slate-300); }

/* ===== JOIN ===== */
.join-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.join-content { padding-top: 8px; }
.join-checklist { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.join-checklist li { display: flex; align-items: center; gap: 12px; font-size: var(--text-base); color: var(--slate-300); }
.check-icon { flex-shrink: 0; width: 20px; height: 20px; border-radius: 3px; border: 1px solid rgba(200,80,130,0.3); background: rgba(200,80,130,0.08); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 0.688rem; font-weight: 600; color: var(--pink); }

.join-form { background: rgba(255,255,255,0.04); border: 1px solid rgba(75,145,200,0.1); border-radius: var(--radius); padding: 32px; }
.join-form h3 { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); margin-bottom: 4px; }
.form-note { font-size: var(--text-sm); color: var(--slate-400); margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { margin-bottom: 12px; }
.form-field label { display: block; font-family: var(--font-mono); font-size: 0.688rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--slate-400); margin-bottom: 5px; }
.form-field input, .form-field textarea, .form-field select { width: 100%; padding: 10px 13px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); border-radius: 3px; color: var(--white); font-family: var(--font-body); font-size: var(--text-sm); transition: border-color var(--speed) var(--ease); }
.form-field input::placeholder, .form-field textarea::placeholder { color: var(--slate-400); opacity: 0.5; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--pink); background: rgba(255,255,255,0.07); }
.form-field textarea { resize: vertical; min-height: 72px; }
.form-field select { cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238899b0' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 34px; }
.form-field select option { background: var(--blue-dark); color: var(--white); }
.join-form .btn { margin-top: 4px; }

.form-success { text-align: center; padding: 40px 20px; }
.form-success-icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(75,145,200,0.12); border: 1px solid rgba(75,145,200,0.25); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--blue); margin: 0 auto 16px; }
.form-success h3 { font-family: var(--font-display); font-size: 1.3rem; color: var(--white); margin-bottom: 8px; }
.form-success p { font-size: var(--text-base); color: var(--slate-400); }
.form-success strong { color: var(--pink); }

/* ===== CONTACT ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 780px; }
.contact-card { padding: 28px 22px; border: 1px solid var(--slate-100); border-radius: var(--radius); transition: all 0.5s var(--ease-out); background: var(--white); }
.contact-card:hover { border-color: rgba(75,145,200,0.15); box-shadow: 0 4px 20px rgba(12,24,45,0.05); transform: translateY(-2px); }
.cc-icon { font-family: var(--font-mono); font-size: 1.3rem; color: var(--blue); margin-bottom: 12px; }
.contact-card h4 { font-family: var(--font-display); font-size: var(--text-base); color: var(--blue-dark); margin-bottom: 5px; }
.contact-card p { font-size: var(--text-sm); color: var(--slate-600); line-height: 1.55; }

/* ===== FOOTER ===== */
.footer { background: var(--blue-deep); padding: 48px 0 24px; border-top: 1px solid rgba(75,145,200,0.06); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; margin-bottom: 36px; }
.footer-left { max-width: 340px; }
.footer-logo { width: 32px; height: 32px; border-radius: 4px; object-fit: contain; }
.footer-brand-block { margin-bottom: 12px; }
.footer-desc { font-size: var(--text-sm); color: var(--slate-400); line-height: 1.7; }
.footer-right { display: flex; gap: 48px; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.688rem; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--slate-400); margin-bottom: 14px; }
.footer-col a { display: block; font-size: var(--text-sm); color: var(--slate-300); margin-bottom: 8px; }
.footer-col a:hover { color: var(--white); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.04); padding-top: 18px; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-family: var(--font-mono); font-size: 0.75rem; color: var(--slate-400); }

.staff-login-btn {
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--slate-400);
  background: none; border: 1px solid rgba(255,255,255,0.06); padding: 5px 14px;
  border-radius: 3px; cursor: pointer; transition: all var(--speed) var(--ease);
}
.staff-login-btn:hover { color: var(--white); border-color: rgba(255,255,255,0.2); }

/* ===== STAFF PANEL ===== */
.staff-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(12,24,45,0.6); backdrop-filter: blur(8px);
  display: none; align-items: flex-start; justify-content: center;
  padding-top: 40px;
}
.staff-overlay.active { display: flex; }

.staff-panel {
  background: var(--white); border-radius: 12px; padding: 0;
  width: 90%; max-width: 960px; max-height: calc(100vh - 80px);
  display: flex; flex-direction: column;
  box-shadow: 0 24px 80px rgba(0,0,0,0.3);
  animation: panelIn 0.4s var(--ease-out);
}

@keyframes panelIn { from { opacity: 0; transform: translateY(20px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }

.staff-login, .staff-dashboard { padding: 40px; }
.staff-login { position: relative; overflow-y: auto; }
.staff-dashboard { display: flex; flex-direction: column; overflow-y: auto; flex: 1; min-height: 0; }
.dash-tabs { flex-shrink: 0; }
.dash-content { flex: 1; overflow-y: auto; }

.staff-close {
  position: absolute; top: 16px; right: 20px; background: none; border: none;
  font-size: 1.6rem; color: var(--slate-400); cursor: pointer; line-height: 1;
  transition: color var(--speed) var(--ease);
}
.staff-close:hover { color: var(--slate-700); }

.staff-login h2, .staff-dashboard h2 {
  font-family: var(--font-display); font-size: 1.5rem; color: var(--blue-dark); margin-bottom: 8px;
}
.staff-login p { font-size: var(--text-sm); color: var(--slate-600); margin-bottom: 24px; }

#clerk-sign-in { min-height: 200px; }
#clerk-sign-in .cl-rootBox { width: 100%; }
#clerk-sign-in .cl-card { box-shadow: none !important; border: none !important; }

/* Dashboard */
.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; position: relative; }
.dash-header .staff-close { position: static; }

.dash-tabs { display: flex; gap: 8px; margin-bottom: 24px; }
.dash-tab {
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500;
  padding: 8px 18px; border: 1px solid var(--slate-100); border-radius: 4px;
  background: transparent; color: var(--slate-600); cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.dash-tab.active { background: var(--blue-dark); color: var(--white); border-color: var(--blue-dark); }
.dash-tab:hover:not(.active) { border-color: var(--blue); color: var(--blue); }

.dash-empty { font-size: var(--text-sm); color: var(--slate-400); text-align: center; padding: 32px; }

.dash-project {
  padding: 16px; border: 1px solid var(--slate-100); border-radius: var(--radius);
  margin-bottom: 12px; transition: border-color var(--speed) var(--ease);
}
.dash-project:hover { border-color: rgba(75,145,200,0.2); }

.dash-project-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 8px; }
.dash-project-title { font-family: var(--font-display); font-size: var(--text-base); color: var(--blue-dark); }
.dash-project-status { font-family: var(--font-mono); font-size: 0.688rem; color: var(--blue); font-weight: 600; letter-spacing: 1px; text-transform: uppercase; }
.dash-project-desc { font-size: var(--text-sm); color: var(--slate-600); line-height: 1.6; margin-bottom: 10px; }
.dash-project-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.dash-project-tags span { font-family: var(--font-mono); font-size: 0.688rem; padding: 2px 8px; border-radius: 2px; background: var(--off-white); color: var(--blue); }

.dash-project-actions { display: flex; gap: 8px; }
.dash-project-actions button {
  font-family: var(--font-mono); font-size: 0.75rem; padding: 4px 12px;
  border: 1px solid var(--slate-100); border-radius: 3px;
  background: transparent; color: var(--slate-600); cursor: pointer;
  transition: all var(--speed) var(--ease);
}
.dash-project-actions button:hover { border-color: var(--blue); color: var(--blue); }
.dash-project-actions button.delete-btn:hover { border-color: var(--pink); color: var(--pink); }

.dash-form-actions { display: flex; gap: 10px; margin-top: 8px; }

.staff-dashboard .form-field input,
.staff-dashboard .form-field textarea,
.staff-dashboard .form-field select {
  background: var(--off-white); border: 1px solid var(--slate-100);
  color: var(--slate-700); font-size: var(--text-sm);
}
.staff-dashboard .form-field input:focus,
.staff-dashboard .form-field textarea:focus,
.staff-dashboard .form-field select:focus { border-color: var(--blue); }
.staff-dashboard .form-field label { color: var(--slate-600); }
.staff-dashboard .form-field select option { background: var(--white); color: var(--slate-700); }

/* ===== STAFF FAB BUTTON ===== */
.staff-fab {
  position: fixed; top: 80px; right: 24px; z-index: 1500;
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 10px 20px; border-radius: 4px;
  background: var(--pink); color: var(--white); border: none;
  cursor: pointer; box-shadow: 0 4px 16px rgba(200,80,130,0.3);
  transition: all var(--speed) var(--ease);
}
.staff-fab:hover { background: rgb(180,60,110); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(200,80,130,0.4); }

/* ===== HEADER ACTIONS, PUBLISH & CANCEL ===== */
.dash-header-actions { display: flex; gap: 8px; align-items: center; margin-left: auto; margin-right: 16px; }
.dash-publish-btn { padding: 8px 18px; font-size: 0.75rem; position: relative; }
.dash-cancel-btn { padding: 8px 18px; font-size: 0.75rem; }

/* Soft-deleted items — project cards */
.dash-project.dash-deleted {
  border: 2px dashed rgb(220, 140, 50);
  background: rgba(220, 140, 50, 0.06);
  position: relative;
  padding-top: 36px;
}
.dash-project.dash-deleted .dash-project-header,
.dash-project.dash-deleted .dash-project-desc,
.dash-project.dash-deleted .dash-project-tags,
.dash-project.dash-deleted > div:not(.dash-project-actions) { opacity: 0.35; }
.dash-project.dash-deleted::before {
  content: 'MARKED FOR DELETION';
  position: absolute; top: 10px; left: 16px;
  font-family: var(--font-mono); font-size: 0.625rem; font-weight: 700;
  letter-spacing: 1.5px; color: rgb(220, 140, 50);
  background: rgba(255,255,255,0.92); padding: 2px 8px; border-radius: 2px;
}
.dash-project.dash-deleted .dash-project-actions { opacity: 1; }
.dash-project.dash-deleted .dash-project-actions .delete-btn { display: none; }
.dash-project.dash-deleted .dash-project-actions .restore-btn { display: inline-block; }
.restore-btn { display: none; }
.restore-btn { border-color: rgb(50, 160, 80) !important; color: rgb(50, 160, 80) !important; font-weight: 600; }
.restore-btn:hover { background: rgb(50, 160, 80) !important; color: var(--white) !important; }

/* List editor deleted items */
.dash-list-item.dash-deleted {
  border: 2px dashed rgb(220, 140, 50);
  background: rgba(220, 140, 50, 0.06);
  position: relative;
  padding-top: 36px;
}
.dash-list-item.dash-deleted > .form-field,
.dash-list-item.dash-deleted > .dash-inline-row,
.dash-list-item.dash-deleted > .dash-inline-row-3,
.dash-list-item.dash-deleted > .dash-checkbox-field,
.dash-list-item.dash-deleted > .drag-handle { opacity: 0.35; pointer-events: none; }
.dash-list-item.dash-deleted .dash-list-remove { display: none; }
.dash-list-item.dash-deleted::before {
  content: 'MARKED FOR DELETION';
  position: absolute; top: 10px; left: 16px;
  font-family: var(--font-mono); font-size: 0.625rem; font-weight: 700;
  letter-spacing: 1.5px; color: rgb(220, 140, 50);
  background: rgba(255,255,255,0.92); padding: 2px 8px; border-radius: 2px;
  z-index: 2;
}
.dash-list-restore {
  position: absolute; top: 6px; right: 12px;
  font-family: var(--font-mono); font-size: 0.688rem;
  padding: 4px 14px; border: 1.5px solid rgb(50, 160, 80); border-radius: 3px;
  background: rgba(255,255,255,0.95); color: rgb(50, 160, 80); cursor: pointer;
  pointer-events: auto; font-weight: 600; z-index: 2;
}
.dash-list-restore:hover { background: rgb(50, 160, 80); color: var(--white); }

/* ===== STYLE GUIDE TAB ===== */
.style-guide { padding: 4px 0; }
.sg-intro { font-size: var(--text-sm); color: var(--slate-600); margin-bottom: 20px; }
.sg-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); margin-bottom: 8px; }
.sg-table th { text-align: left; font-family: var(--font-mono); font-size: 0.688rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--slate-400); padding: 8px 12px; border-bottom: 2px solid var(--slate-100); }
.sg-table td { padding: 10px 12px; border-bottom: 1px solid var(--slate-100); color: var(--slate-700); vertical-align: middle; }
.sg-table code { font-family: var(--font-mono); font-size: 0.75rem; background: var(--off-white); padding: 2px 6px; border-radius: 3px; color: var(--pink); }
.sg-table em { font-family: var(--font-display); }
.sg-list { padding-left: 0; margin-top: 12px; }
.sg-list li { font-size: var(--text-sm); color: var(--slate-600); line-height: 1.7; margin-bottom: 10px; padding-left: 16px; position: relative; list-style: none; }
.sg-list li::before { content: '\25C6'; position: absolute; left: 0; color: var(--pink); font-size: 0.5rem; top: 5px; }
.sg-list code { font-family: var(--font-mono); font-size: 0.72rem; background: var(--off-white); padding: 1px 5px; border-radius: 3px; color: var(--blue); }
.dash-publish-badge {
  display: inline-block; min-width: 18px; height: 18px; line-height: 18px;
  padding: 0 5px; margin-left: 8px; border-radius: 9px;
  background: var(--white); color: var(--pink); font-size: 0.688rem; font-weight: 700;
  text-align: center;
}

/* ===== STUB TABS ===== */
.dash-stub { text-align: center; padding: 48px 24px; color: var(--slate-400); font-size: var(--text-sm); font-style: italic; }

/* ===== DASH PROJECT GROUP HEADERS ===== */
.dash-group-header {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue);
  margin-top: 24px; margin-bottom: 12px; padding-bottom: 8px;
  border-bottom: 1px solid var(--slate-100);
}
.dash-group-header:first-child { margin-top: 0; }
.dash-group-header--pub { color: var(--pink); }

.dash-add-btn {
  display: block; width: 100%; margin-top: 12px; margin-bottom: 24px; padding: 12px;
  background: transparent; border: 1px dashed var(--slate-100);
  border-radius: var(--radius); color: var(--slate-400);
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500;
  cursor: pointer; transition: all var(--speed) var(--ease); text-align: center;
}
.dash-add-btn:hover { background: var(--off-white); border-color: var(--blue); color: var(--blue); }

.dash-project-form-wrap {
  padding: 20px; margin-top: 12px;
  border: 1px solid var(--slate-100); border-radius: var(--radius);
  background: var(--off-white);
  max-height: none; overflow: visible;
}

/* ===== DASH PROJECTS COLUMNS ===== */
.dash-projects-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }

/* ===== DASH LIST EDITOR ===== */
.dash-list-editor { margin-bottom: 16px; }
.dash-list-item {
  padding: 14px; margin-bottom: 8px;
  border: 1px solid var(--slate-100); border-radius: var(--radius);
  background: var(--white); position: relative;
}
.dash-list-item .form-field { margin-bottom: 8px; }
.dash-list-item .form-field:last-of-type { margin-bottom: 4px; }
.dash-list-remove {
  font-family: var(--font-mono); font-size: 0.688rem; font-weight: 500;
  padding: 3px 10px; border: 1px solid var(--slate-100); border-radius: 3px;
  background: transparent; color: var(--slate-400); cursor: pointer;
  transition: all var(--speed) var(--ease); margin-top: 6px;
}
.dash-list-remove:hover { border-color: var(--pink); color: var(--pink); }
.dash-list-add {
  display: block; width: 100%; margin-top: 8px; padding: 10px;
  background: transparent; border: 1px dashed var(--slate-100);
  border-radius: var(--radius); color: var(--slate-400);
  font-family: var(--font-mono); font-size: var(--text-sm); font-weight: 500;
  cursor: pointer; transition: all var(--speed) var(--ease); text-align: center;
}
.dash-list-add:hover { background: var(--off-white); border-color: var(--blue); color: var(--blue); }
.dash-section-label {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: var(--blue);
  margin-top: 20px; margin-bottom: 10px; padding-bottom: 6px;
  border-bottom: 1px solid var(--slate-100);
}
.dash-section-label:first-child { margin-top: 0; }
.dash-section-label--pink { color: var(--pink); }
.dash-inline-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.dash-inline-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.dash-checkbox-field { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.dash-checkbox-field input[type="checkbox"] { width: auto; }
.dash-checkbox-field label { margin-bottom: 0; font-family: var(--font-mono); font-size: 0.688rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--slate-600); }

/* ===== DRAG AND DROP ===== */
.dash-list-item.drag-over, .dash-project.drag-over { border-top: 2px solid var(--blue); }
.drag-handle { display: inline-block; margin-right: 8px; color: var(--slate-300); cursor: grab; font-size: 0.875rem; user-select: none; vertical-align: middle; padding: 4px 2px; }
.drag-handle:active { cursor: grabbing; }

/* ===== ANIMATIONS ===== */
@keyframes cellFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-18px) rotate(2deg); } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.3; transform: scale(0.8); } }

.reveal-up { opacity: 0; transform: translateY(28px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal-up.visible { opacity: 1; transform: translateY(0); }

.about-detail-card.reveal-up:nth-child(2) { transition-delay: 0.07s; }
.about-detail-card.reveal-up:nth-child(3) { transition-delay: 0.14s; }
.about-detail-card.reveal-up:nth-child(4) { transition-delay: 0.21s; }
.research-card.reveal-up:nth-child(2) { transition-delay: 0.1s; }
.team-card.reveal-up:nth-child(2) { transition-delay: 0.06s; }
.team-card.reveal-up:nth-child(3) { transition-delay: 0.12s; }
.team-card.reveal-up:nth-child(4) { transition-delay: 0.18s; }
.team-card.reveal-up:nth-child(5) { transition-delay: 0.24s; }
.team-card.reveal-up:nth-child(6) { transition-delay: 0.3s; }

.hero-content { animation: heroIn 1s var(--ease-out) 0.1s both; }
.hero-logo-wrap { animation: heroIn 1s var(--ease-out) 0.3s both; }
.hero-data-strip { animation: heroIn 0.8s var(--ease-out) 0.5s both; }
@keyframes heroIn { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: translateY(0); } }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-container { grid-template-columns: 1fr; text-align: center; }
  .hero-content { max-width: 100%; }
  .hero-desc { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-logo-wrap { display: none; }
  .about-layout { grid-template-columns: 1fr; }
  .about-sidebar { display: none; }
  .about-details { grid-template-columns: repeat(2, 1fr); }
  .research-columns { grid-template-columns: 1fr; }
  .dash-projects-columns { grid-template-columns: 1fr; }
  .cohort-grid { grid-template-columns: 1fr; }
  .cohort-stats { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .join-layout { grid-template-columns: 1fr; }
  .glance-card { flex: 0 0 180px; }
  .glance-card:hover, .glance-card.expanded { flex: 0 0 340px; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; position: absolute; top: 64px; left: 0; width: 100%; background: rgba(12,24,45,0.98); backdrop-filter: blur(16px); flex-direction: column; padding: 18px 28px; gap: 12px; border-bottom: 1px solid rgba(75,145,200,0.08); }
  .nav-links.active { display: flex; }
  .hamburger { display: flex; }
  .hero-title { font-size: 2.4rem; }
  .hero-data { flex-wrap: wrap; }
  .data-card { flex: 1 1 45%; }
  .about-details { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-right { gap: 36px; }
  .footer-bottom { flex-direction: column; gap: 12px; }
  .section-heading { font-size: 1.8rem; }
  .hero-cells { opacity: 0.4; }
  .skills-grid { grid-template-columns: 1fr 1fr; }
  .staff-panel { width: 95%; max-width: 100%; margin: 16px; }
  .staff-login, .staff-dashboard { padding: 28px; }
  /* Timeline: single column on mobile */
  .timeline-line { left: 16px; }
  .tl-item--left, .tl-item--right { padding-left: 44px; padding-right: 0; justify-content: flex-start; }
  .tl-dot { left: 16px; }
  .rm-header { flex-wrap: wrap; }
  .rm-filters { margin-left: 0; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .cohort-stats { grid-template-columns: 1fr 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
}
