/* ─────────────────────────────────────────────
   TOKENS
───────────────────────────────────────────── */
:root {
  --blue:        #2B4C7E;
  --blue-mid:    #3A6096;
  --blue-light:  #D6E4F7;
  --cream:       #FAF7F2;
  --cream-mid:   #EDE8DF;
  --orange:      #D4622A;
  --orange-soft: #F4A96A;
  --ink:         #1C1C1C;
  --charcoal:    #3A3A3A;
  --muted:       #7A7670;
  --rule:        #DDD8CE;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  --radius:   6px;
  --shadow:   0 2px 12px rgba(43,76,126,.10);
  --nav-h:    64px;
  --max-w:    1080px;
  --trans:    .22s ease;
}

/* ─────────────────────────────────────────────
   RESET / BASE
───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue-mid); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--orange); }

img { max-width: 100%; display: block; }

/* ─────────────────────────────────────────────
   NAV
───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--blue);
  display: flex;
  align-items: center;
  box-shadow: 0 2px 16px rgba(0,0,0,.18);
}

.nav-inner {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .01em;
  flex-shrink: 0;
}
.nav-brand:hover { color: var(--orange-soft); }

.nav-links {
  display: flex;
  gap: .25rem;
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: .45rem .85rem;
  border-radius: var(--radius);
  transition: background var(--trans), color var(--trans);
  display: flex;
  align-items: center;
  gap: .35rem;
}
.nav-links a .material-symbols-outlined { font-size: 1.05rem; }
.nav-links a:hover,
.nav-links a.active { background: rgba(255,255,255,.12); color: #fff; }
.nav-links a.active { color: var(--orange-soft); }

.hamburger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.hamburger span { display: block; width: 22px; height: 2px; background: #fff; margin: 4px 0; border-radius: 2px; transition: var(--trans); }

/* ─────────────────────────────────────────────
   HERO / PAGE HEADER
───────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 100%);
  color: #fff;
  padding: 2.5rem 1.5rem;
}

.page-hero .inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.page-hero .inner .material-symbols-outlined {
  font-size: 2rem;
}

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.15;
}

.page-hero .subtitle {
  color: rgba(255,255,255,.75);
  margin-top: .5rem;
  font-size: 1.05rem;
}

/* accent rule under headings */
.rule-orange {
  width: 48px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
  margin: .9rem 0 1.5rem;
}

/* ─────────────────────────────────────────────
   MAIN LAYOUT
───────────────────────────────────────────── */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1.5rem;
}

section { margin-bottom: 1rem; }

h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--blue);
  margin-bottom: .2rem;
}

h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
}

p { color: var(--charcoal); margin-bottom: 1rem; }

/* ─────────────────────────────────────────────
   CARDS
───────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.card {
  background: #fff;
  border: 1px solid var(--cream-mid);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow var(--trans), transform var(--trans);
}
.card:hover { box-shadow: 0 6px 24px rgba(43,76,126,.15); transform: translateY(-2px); }

.card-icon {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card-icon .material-symbols-outlined { color: var(--blue); font-size: 1.3rem; }

.card h3 { margin-bottom: .4rem; }
.card p { font-size: .9rem; color: var(--muted); margin: 0; }

.project-links {
  margin-top: .9rem;
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}

.project-link {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .85rem;
  font-weight: 500;
  color: var(--blue-mid);
  text-decoration: none;
}

.project-link:hover {
  color: var(--orange);
}

.project-link .material-symbols-outlined {
  font-size: 1rem;
}

.note-box {
  background: #fff8f0;
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
}
.note-box p { color: var(--charcoal); font-size: .9rem; margin: 0; }
.note-box strong { color: var(--orange); }

/* ─────────────────────────────────────────────
   PUBLICATION LIST
───────────────────────────────────────────── */
.pub-list { list-style: none; margin-top: 1rem; }
.pub-section-heading {
  list-style: none;
  margin: 1.35rem 0 .35rem;
  padding: 0;
}
.pub-section-heading h3 {
  font-family: var(--font-display);
  color: var(--blue);
  font-size: 1.35rem;
  margin: 0;
}

.pub-item {
  border-left: 3px solid var(--blue-light);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  background: #fff;
  border-radius: 0 var(--radius) var(--radius) 0;
  box-shadow: var(--shadow);
  transition: border-color var(--trans);
}
.pub-item:hover { border-left-color: var(--orange); }

.pub-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: .25rem;
}

.pub-authors { color: var(--muted); font-size: .87rem; margin-bottom: .2rem; }
.pub-venue {
  font-size: .85rem;
  color: var(--blue-mid);
  display: flex;
  align-items: center;
  gap: .3rem;
  flex-wrap: wrap;
}
.pub-venue .material-symbols-outlined { font-size: 1rem; }

.pub-tags { margin-top: .5rem; display: flex; gap: .4rem; flex-wrap: wrap; }
.tag {
  display: inline-block;
  font-size: .75rem;
  padding: .15rem .55rem;
  border-radius: 20px;
  background: var(--blue-light);
  color: var(--blue);
  font-weight: 500;
}
.tag.journal  { background: #e8f5e9; color: #2e7d32; }
.tag.conf, .tag.conference { background: var(--blue-light); color: var(--blue); }
.tag.chapter  { background: #fff8e1; color: #8a5a00; }
.tag.book     { background: #fff3e0; color: #e65100; }
.tag.preprint { background: #f3e5f5; color: #7b1fa2; }

.pub-links { margin-top: .6rem; display: flex; gap: .75rem; }
.pub-link {
  font-size: .8rem;
  font-weight: 500;
  color: var(--blue-mid);
  display: flex;
  align-items: center;
  gap: .2rem;
}
.pub-link .material-symbols-outlined { font-size: .95rem; }
.pub-link:hover { color: var(--orange); }

/* Filter bar */
.filter-bar {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.filter-btn {
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  padding: .35rem .9rem;
  border-radius: 20px;
  border: 1.5px solid var(--blue-light);
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  transition: background var(--trans), color var(--trans), border-color var(--trans);
}
.filter-btn:hover, .filter-btn.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

/* BibTeX upload area */
.bib-upload-zone {
  border: 2px dashed var(--cream-mid);
  border-radius: var(--radius);
  padding: 2rem;
  text-align: center;
  background: #fff;
  cursor: pointer;
  transition: border-color var(--trans), background var(--trans);
  margin-bottom: 1.5rem;
}
.bib-upload-zone:hover, .bib-upload-zone.drag-over {
  border-color: var(--orange);
  background: #fffaf7;
}
.bib-upload-zone .material-symbols-outlined { font-size: 2.5rem; color: var(--muted); margin-bottom: .5rem; }
.bib-upload-zone p { color: var(--muted); font-size: .9rem; margin: 0; }
.bib-upload-zone strong { color: var(--blue); }

/* ─────────────────────────────────────────────
   TEACHING / COURSES
───────────────────────────────────────────── */
.course-list { list-style: none; margin-top: 1rem; }

.course-item {
  background: #fff;
  border: 1px solid var(--cream-mid);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.course-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  cursor: pointer;
  user-select: none;
  transition: background var(--trans);
}
.course-header:hover { background: var(--cream); }

.course-code {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: var(--orange);
  text-transform: uppercase;
  flex-shrink: 0;
}

.course-name { font-weight: 600; color: var(--ink); flex: 1; }

.course-meta {
  font-size: .82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .3rem;
}
.course-meta .material-symbols-outlined { font-size: 1rem; }

.chevron { color: var(--muted); transition: transform var(--trans); }
.chevron.open { transform: rotate(180deg); }

.course-body {
  display: none;
  padding: 1rem 1.25rem 1rem;
  border-top: 1px solid var(--cream-mid);
  font-size: .88rem;
}
.course-body h3 {
  font-family: var(--font-body);
  color: var(--orange);
  font-size: .88rem;
  font-weight: 700;
}
.course-body.open { display: block; }

.materials-list { list-style: none; margin-top: .45rem; }
.material-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .4rem 0;
  font-size: .88rem;
  color: var(--charcoal);
  border-bottom: 1px solid var(--cream-mid);
}
.material-item:last-child { border-bottom: none; }
.material-item .material-symbols-outlined { font-size: 1.1rem; color: var(--blue-mid); }
.material-item a { color: var(--blue-mid); }
.material-item a:hover { color: var(--orange); }

/* ─────────────────────────────────────────────
   HOME PAGE PROFILE
───────────────────────────────────────────── */
.profile-hero {
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-mid) 60%, var(--blue) 100%);
  padding: 4rem 1.5rem;
  color: #fff;
}

.profile-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.profile-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  border: 4px solid rgba(255,255,255,.3);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar .material-symbols-outlined { font-size: 4rem; color: var(--blue-mid); }

.profile-avatar-mini {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.3);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.profile-avatar-mini img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-mini .material-symbols-outlined { font-size: 4rem; color: var(--blue-mid); }

.profile-text h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.1;
}

.profile-text .role {
  color: var(--orange-soft);
  font-size: 1.1rem;
  margin: .4rem 0 .75rem;
  font-weight: 500;
}

.profile-text .affiliation {
  color: rgba(255,255,255,.7);
  font-size: .95rem;
  display: flex;
  align-items: center;
  gap: .3rem;
}

.profile-text .bio {
  color: rgba(255,255,255,.8);
  font-size: .95rem;
  margin-top: 1rem;
  max-width: 520px;
}

.social-links {
  display: flex;
  gap: .75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.social-link {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .4rem .9rem;
  border-radius: 20px;
  border: 1.5px solid rgba(255,255,255,.35);
  color: rgba(255,255,255,.9);
  font-size: .82rem;
  font-weight: 500;
  transition: background var(--trans), border-color var(--trans);
}
.social-link:hover { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.7); color: #fff; }
.social-link .material-symbols-outlined { font-size: 1rem; }

/* quick stats strip */
.stats-strip {
  background: var(--cream-mid);
  padding: 1.25rem 1.5rem;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.stat {
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue);
  line-height: 1;
}
.stat-label {
  font-size: .78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: .2rem;
}

/* news / updates: homepage compact list */
.news-list {
  list-style: none;
  margin-top: 1rem;
  padding: 0;
}

.news-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: .65rem 0;
  border-bottom: 1px solid var(--cream-mid);
}

.news-item:last-child {
  border-bottom: none;
}

.news-date {
  font-size: .78rem;
  color: var(--muted);
  white-space: nowrap;
  padding-top: .15rem;
  min-width: 80px;
}

.news-text {
  font-size: .9rem;
  color: var(--charcoal);
}

.news-badge {
  display: inline-block;
  font-size: .7rem;
  padding: .1rem .45rem;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-weight: 600;
  margin-right: .4rem;
  vertical-align: middle;
}


/* news page: full archive */
.news-page-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.news-page-item {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1.35rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.10);
}

.news-page-item:first-child {
  border-top: 1px solid rgba(0, 0, 0, 0.10);
}

.news-page-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .45rem;
  min-width: 8.5rem;
}

.news-page-date {
  font-family: Inter, sans-serif;
  font-size: .88rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--muted, #6b6b6b);
  line-height: 1.4;
}

.news-page-content {
  min-width: 0;
}

.news-page-title {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1.15;
  margin: 0 0 .35rem 0;
  color: var(--text, #1f1f1f);
}

.news-page-text {
  margin: .25rem 0 0 0;
  line-height: 1.65;
  color: var(--charcoal);
}

.news-tag {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--orange, #c96f2d);
  color: #fff;
  font-family: Inter, sans-serif;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
  line-height: 1.2;
}

.news-tag.software {
  background: var(--blue, #2f5f8f);
}

.news-tag.project {
  background: #2e7d32;
}

.news-tag.service {
  background: #6d4c41;
}

.news-tag.event {
  background: #6a4fb3;
}

.news-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
  margin-top: .9rem;
}

.news-page-actions a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
}

.news-page-actions .material-symbols-outlined {
  font-size: 1.05rem;
}

@media (max-width: 700px) {
  .news-page-item {
    grid-template-columns: 1fr;
    gap: .55rem;
  }

  .news-page-meta {
    min-width: 0;
  }

  .news-page-date {
    font-size: .82rem;
  }

  .news-page-title {
    font-size: 1.3rem;
  }
}

/* ─────────────────────────────────────────────
   CV / ABOUT SECTION
───────────────────────────────────────────── */
.timeline { list-style: none; margin-top: 1rem; }
.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 1rem;
  padding: .45rem 0;
  border-bottom: 1px solid var(--cream-mid);
}
.timeline-item:last-child { border-bottom: none; }
.timeline-year {
  font-size: .85rem;
  color: var(--orange);
  font-weight: 600;
  padding-top: .2rem;
}
.timeline-title { font-weight: 600; color: var(--ink); font-size: .95rem; }
.timeline-sub { font-size: .85rem; color: var(--muted); margin-top: .1rem; }

/* ─────────────────────────────────────────────
   CONTACT PAGE
───────────────────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1.25rem;
}
.contact-card {
  background: #fff;
  border: 1px solid var(--cream-mid);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.contact-card .material-symbols-outlined {
  font-size: 1.5rem;
  color: var(--blue-mid);
  flex-shrink: 0;
}
.contact-card h3 { font-size: 1rem; margin-bottom: .2rem; }
.contact-card p { font-size: .88rem; color: var(--muted); margin: 0; }

/* ─────────────────────────────────────────────
   FOOTER
───────────────────────────────────────────── */

/* Logo strip — white bg so logos render true colour */
.footer-logos {
  background: #fff;
  border-top: 1px solid var(--cream-mid);
  padding: 1.5rem 1.5rem;
}
.footer-logos-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.footer-logo-item {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  opacity: .82;
  transition: opacity var(--trans);
}
.footer-logo-item:hover { opacity: 1; }

.footer-logo-img-u {
  height: 45px;
  width: auto;
  display: block;
  object-fit: contain;
}
.footer-logo-img {
  height: 35px;
  width: auto;
  display: block;
  object-fit: contain;
}
/* Fallback pill when no image is provided */
.footer-logo-pill {
  height: 45px;
  padding: 0 1.1rem;
  border: 1.5px solid var(--cream-mid);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .8rem;
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .02em;
  white-space: nowrap;
}
.footer-logo-pill .material-symbols-outlined { font-size: 1.1rem; color: var(--blue-mid); }

.footer-logo-divider {
  width: 1px;
  height: 30px;
  background: var(--cream-mid);
  flex-shrink: 0;
}

/* Credit bar */
.site-footer {
  background: var(--blue);
  color: rgba(255,255,255,.88);
  font-size: .82rem;
  padding: 1.1rem 1.5rem;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: rgba(255,255,255,.95);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--orange-soft);
  text-decoration: underline;
}

@media (max-width: 600px) {
  .footer-logos-inner { gap: 1.5rem; }
  .footer-logo-divider { display: none; }
}

/* ─────────────────────────────────────────────
   UTILITIES
───────────────────────────────────────────── */
.section-label {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange);
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .25rem;
}
.section-label .material-symbols-outlined { font-size: 1rem; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .55rem 1.2rem;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--trans), color var(--trans), box-shadow var(--trans);
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
}
.btn-primary:hover { background: #bf5422; color: #fff; box-shadow: 0 3px 12px rgba(212,98,42,.35); }

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--blue);
  color: var(--blue);
}
.btn-outline:hover { background: var(--blue); color: #fff; }

.text-muted { color: var(--muted); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

hr.rule { border: none; border-top: 1px solid var(--rule); margin: 2rem 2rem; }

/* ─────────────────────────────────────────────
   SEARCH
───────────────────────────────────────────── */
.search-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: #fff;
  border: 1.5px solid var(--cream-mid);
  border-radius: var(--radius);
  padding: .45rem .85rem;
  max-width: 380px;
  margin-bottom: 1.25rem;
}
.search-bar .material-symbols-outlined { color: var(--muted); font-size: 1.1rem; }
.search-bar input {
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: .9rem;
  color: var(--ink);
  background: transparent;
  width: 100%;
}

/* ─────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────── */
@media (max-width: 720px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--blue); padding: 1rem; gap: .25rem; }
  .nav-links.open { display: flex; }
  .hamburger { display: block; margin-left: auto; }
  .profile-inner { flex-direction: column; text-align: center; }
  .social-links { justify-content: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline-item { grid-template-columns: 80px 1fr; }
  .card-grid { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────────────
   ANIMATIONS
───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .45s ease forwards; }

@media (prefers-reduced-motion: reduce) {
  .fade-up { animation: none; }
}
