/* ===== FONT ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,300;0,14..32,400;0,14..32,500;0,14..32,600;0,14..32,700;0,14..32,800;1,14..32,400&display=swap');

/* ===== THEME TOKENS (MIT/Harvard academic palette) ===== */
:root {
  --bg:      #ffffff;
  --surface: #f5f5f5;
  --card:    #ffffff;
  --text:    #1a1a1a;
  --muted:   #555555;
  --dim:     #888888;
  --border:  #e0e0e0;
  --accent:  #750014;   /* MIT crimson rgb(117,0,20) */
  --accent-light: #fdf2f3;
  --shadow:  0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --radius:  4px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--accent); color: #fff; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 20px;
}

.col-12 { grid-column: span 12; }
.col-6  { grid-column: span 6; }
.col-4  { grid-column: span 4; }
.col-3  { grid-column: span 3; }

.cluster { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack   { display: flex; flex-direction: column; gap: 12px; }

.sp-12 { height: 12px; }
.sp-18 { height: 18px; }
.sp-32 { height: 32px; }
.sp-48 { height: 48px; }
.sp-64 { height: 64px; }

/* ===== NAV ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0;
  background: var(--accent);
  border-bottom: 3px solid #5a0010;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.nav-bubble {
  width: 100%;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 18px 14px;
  display: block;
  border-bottom: 3px solid transparent;
  margin-bottom: -3px;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover {
  color: #ffffff;
  border-bottom-color: rgba(255,255,255,0.6);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 3px;
  color: #ffffff;
  padding: 6px 8px;
  cursor: pointer;
}

/* ===== SECTION LABEL ===== */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  line-height: 1.2;
  color: var(--text);
}

.section-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 32px;
}

/* ===== HERO ===== */
.hero {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 14px;
  color: var(--text);
}

.hero h1 span {
  color: var(--accent);
}

.hero p {
  font-size: 1.08rem;
  color: var(--muted);
  max-width: 660px;
}

/* ===== CTA BUTTONS ===== */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 3px;
  background: var(--accent);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: background 0.15s, transform 0.15s;
}
.cta:hover { background: #5a0010; transform: translateY(-1px); }

.cta.secondary {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.cta.secondary:hover { background: var(--accent-light); }

/* ===== STAT PILLS (hero row) ===== */
.stat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 32px;
}

.stat-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 7px 14px;
  background: var(--surface);
  font-size: 0.82rem;
  transition: border-color 0.15s;
}
.stat-pill:hover { border-color: var(--accent); }

.stat-pill .label { color: var(--dim); font-size: 0.68rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stat-pill .value { color: var(--text); font-weight: 700; }

/* ===== CARDS ===== */
.card {
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  transition: border-top-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-top-color: var(--accent);
  box-shadow: 0 4px 20px rgba(117,0,20,0.08);
}

.card .card-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.card .card-title {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 8px;
  color: var(--text);
}

.card .card-body {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.65;
}

.card .card-year { font-size: 0.75rem; font-weight: 700; color: var(--accent); }

/* ===== CHIPS / TAGS ===== */
.chips { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }

.chip {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 3px;
  letter-spacing: 0.03em;
}

/* Award level chips */
.chip.level-intl  { color: #166534; background: #f0fdf4; border-color: #bbf7d0; }
.chip.level-natl  { color: #1d4ed8; background: #eff6ff; border-color: #bfdbfe; }
.chip.level-state { color: var(--accent); background: var(--accent-light); border-color: #fecaca; }
.chip.level-sel   { color: #6d28d9; background: #f5f3ff; border-color: #ddd6fe; }

/* Skill category chips — matches Technical Skills section */
.chip-lang  { color: #1d4ed8; background: #eff6ff;  border-color: #bfdbfe; }  /* Languages */
.chip-ds    { color: #7c3aed; background: #f5f3ff;  border-color: #ddd6fe; }  /* Data Science & ML */
.chip-ai    { color: #be185d; background: #fdf2f8;  border-color: #fbcfe8; }  /* AI & NLP */
.chip-web   { color: #0f766e; background: #f0fdfa;  border-color: #99f6e4; }  /* Web Development */
.chip-cloud { color: #c2410c; background: #fff7ed;  border-color: #fed7aa; }  /* Cloud & Infrastructure */
.chip-bio   { color: #15803d; background: #f0fdf4;  border-color: #86efac; }  /* Bioinformatics */
.chip-eng   { color: #b45309; background: #fffbeb;  border-color: #fde68a; }  /* Engineering / Domain */

/* ===== AWARD LIST ITEM ===== */
.award-item {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 18px 20px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s;
}

.award-item:hover {
  box-shadow: 0 4px 20px rgba(117,0,20,0.1);
}

.award-rank {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  padding-top: 2px;
  text-align: center;
  letter-spacing: -0.03em;
}

.award-title { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; color: var(--text); }
.award-desc  { font-size: 0.8rem; color: var(--muted); line-height: 1.55; margin-bottom: 10px; }

/* ===== ROLE LIST ITEM ===== */
.role-item {
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  background: var(--card);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  transition: border-left-color 0.2s, box-shadow 0.2s;
}

.role-item:hover {
  border-left-color: var(--accent);
  box-shadow: 0 4px 20px rgba(117,0,20,0.08);
}

.role-title { font-size: 0.92rem; font-weight: 700; margin-bottom: 3px; color: var(--text); }
.role-org   { font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 6px; }
.role-desc  { font-size: 0.8rem; color: var(--muted); line-height: 1.55; }
.role-years { font-size: 0.72rem; color: var(--dim); white-space: nowrap; text-align: right; }

/* ===== AP TABLE ===== */
.ap-table { width: 100%; border-collapse: collapse; }

.ap-table th {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--dim);
  padding: 8px 12px;
  text-align: left;
  border-bottom: 2px solid var(--accent);
}

.ap-table td {
  font-size: 0.84rem;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.ap-table tr:last-child td { border-bottom: none; }
.score-5 { color: #166534; font-weight: 700; }
.score-4 { color: #1d4ed8; font-weight: 700; }
.score-3 { color: var(--dim); font-weight: 700; }

/* ===== STAT ROWS ===== */
.stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.84rem;
}

.stat-row:last-child { border-bottom: none; }
.stat-row-label { color: var(--muted); }
.stat-row-value { font-weight: 700; color: var(--text); }

/* ===== INLINE LINK ===== */
.nav-link-arrow {
  font-size: 0.82rem;
  color: var(--accent);
  font-weight: 600;
  transition: gap 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-link-arrow:hover { gap: 8px; text-decoration: underline; }

/* ===== FOOTER ===== */
footer {
  border-top: 3px solid var(--accent);
  padding: 40px 0;
  text-align: center;
  background: var(--surface);
}

footer p { font-size: 0.82rem; color: var(--dim); margin-bottom: 4px; }
footer .name { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 14px;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--muted);
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--accent); text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .grid { gap: 14px; }
  .col-6, .col-4, .col-3 { grid-column: span 12; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px; left: 0; right: 0;
    background: var(--accent);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding: 8px 0;
    z-index: 200;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }
  .nav-links.open li a {
    display: block;
    padding: 12px 24px;
    border-bottom: none;
    margin-bottom: 0;
  }
  .container { padding: 0 20px; }
  .role-item { grid-template-columns: 1fr; }
  .role-years { text-align: left; }
}

@media (max-width: 480px) {
  .stat-bar { gap: 7px; }
  .stat-pill { padding: 6px 10px; }
}
