/* ═══════════════════════════════════════════════════════
   DESIGN TOKENS
   ═══════════════════════════════════════════════════════ */
:root {
  --f-display: 'DM Serif Display', Georgia, serif;
  --f-head:    'Plus Jakarta Sans', system-ui, sans-serif;
  --f-body:    'Inter', system-ui, -apple-system, sans-serif;

  --blue:       #1a6fff;
  --blue-dark:  #0f54d9;
  --blue-light: #e8f0ff;
  --blue-glow:  rgba(26,111,255,.18);

  --ink:        #0a0f1e;
  --ink-2:      #1a2035;
  --muted:      #3d4f6e;
  --faint:      #8a96b0;
  --pale:       #c5cce0;

  --surface:    #f5f7ff;
  --surface-2:  #eef1fb;
  --border:     #e0e5f5;
  --white:      #ffffff;

  --hero-dark:  #070c1b;

  --r-sm:   6px;
  --r-md:   10px;
  --r-lg:   16px;
  --r-xl:   24px;
  --r-full: 9999px;

  --sh-xs: 0 1px 3px rgba(0,0,0,.06);
  --sh-sm: 0 2px 8px rgba(0,0,0,.08), 0 1px 3px rgba(0,0,0,.05);
  --sh-md: 0 6px 20px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --sh-lg: 0 16px 48px rgba(0,0,0,.13), 0 4px 12px rgba(0,0,0,.07);
  --sh-blue: 0 4px 18px rgba(26,111,255,.35);
}

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

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

body {
  font-family: var(--f-body);
  color: #2a3248;
  background: var(--white);
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  display: flex; flex-direction: column; min-height: 100vh;
}

main { flex: 1; }

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: -.018em;
  color: var(--ink);
}

p { margin: 0; }

a { color: var(--blue); text-decoration: none; transition: color .16s; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

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

/* ═══════════════════════════════════════════════════════
   SKIP LINK
   ═══════════════════════════════════════════════════════ */
.visually-hidden-focusable:focus {
  position: fixed; top: 12px; left: 12px; z-index: 9999;
  padding: 8px 18px; background: var(--blue); color: #fff;
  border-radius: var(--r-sm); font-size: .875rem;
}

/* ═══════════════════════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 200;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px) saturate(1.3);
  -webkit-backdrop-filter: blur(16px) saturate(1.3);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--sh-xs);
}

.site-header .navbar { padding: .8rem 0; }

/* Logo */
.navbar-brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none !important;
}
.logo-icon {
  width: 42px; height: 42px; flex-shrink: 0;
}
.logo-text { line-height: 1.2; }
.logo-text-top {
  display: block; font-family: var(--f-head);
  font-size: .875rem; font-weight: 700; color: var(--ink);
  letter-spacing: -.02em;
}
.logo-text-bot {
  display: block; font-family: var(--f-body);
  font-size: .72rem; font-weight: 500; color: var(--muted);
  letter-spacing: .02em;
}

/* Nav links */
.navbar-nav { gap: .1rem; }
.navbar-nav .nav-link {
  font-family: var(--f-body);
  font-size: .875rem; font-weight: 500;
  color: var(--muted) !important;
  padding: .48rem .95rem;
  border-radius: var(--r-sm);
  position: relative;
  transition: color .18s;
  letter-spacing: -.005em;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute; left: .95rem; right: .95rem; bottom: .1rem;
  height: 2px; border-radius: 2px;
  background: var(--blue);
  transform: scaleX(0);
  transition: transform .2s ease;
  transform-origin: left;
}
.navbar-nav .nav-link:hover { color: var(--ink) !important; text-decoration: none; }
.navbar-nav .nav-link:hover::after { transform: scaleX(1); }
.navbar-nav .nav-link.active {
  color: var(--ink) !important;
  font-weight: 600;
}
.navbar-nav .nav-link.active::after { transform: scaleX(1); }

/* Contact pill */
.nav-contact-btn {
  display: inline-flex; align-items: center;
  background: var(--blue); color: #fff !important;
  font-family: var(--f-body);
  font-size: .875rem; font-weight: 600;
  padding: .5rem 1.35rem;
  border-radius: var(--r-full);
  box-shadow: var(--sh-blue);
  transition: background .18s, box-shadow .18s, transform .12s;
  text-decoration: none !important;
  border: none; cursor: pointer;
}
.nav-contact-btn:hover {
  background: var(--blue-dark); color: #fff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(26,111,255,.42);
}

.navbar-toggler { border: 1.5px solid var(--border); padding: .35rem .5rem; border-radius: var(--r-sm); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234a5775' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ═══════════════════════════════════════════════════════
   HERO  (full-bleed image + split overlay)
   ═══════════════════════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;

  /* Fallback dark background (replace with real image) */
  background-color: var(--hero-dark);
  background-image:
    url('/img/hero-lab.jpg');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
}

/* Split overlay: dark left, fading to transparent right */
.hero::before {
  content: '';
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(7,12,27,0.97)  0%,
    rgba(7,12,27,0.95) 38%,
    rgba(7,12,27,0.88) 50%,
    rgba(7,12,27,0.62) 58%,
    rgba(7,12,27,0.30) 72%,
    rgba(7,12,27,0.08) 88%,
    rgba(7,12,27,0.00) 100%
  );
}

/* Fallback gradient if no image is provided */
.hero.no-image::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(135deg, #070c1b 0%, #0d1635 45%, #0a1f50 70%, #071028 100%);
}

.hero-content {
  position: relative; z-index: 2;
  padding: 6rem 0 5rem;
}

.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--blue);
  background: rgba(26,111,255,.12);
  border: 1px solid rgba(26,111,255,.25);
  padding: .32rem .9rem; border-radius: var(--r-full);
  margin-bottom: 1.5rem;
}
.hero-eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 8px var(--blue);
}

.hero-heading {
  font-family: var(--f-display);
  font-size: clamp(2rem, 6.5vw, 5.2rem);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.01em;
  color: #fff;
  margin-bottom: 1.5rem;
  max-width: 680px;
}
.hero-heading em { font-style: italic; color: var(--blue); }

.hero-sub {
  font-size: clamp(.95rem, 2vw, 1.08rem);
  color: rgba(190,205,235,.82);
  line-height: 1.85;
  max-width: 520px;
  margin-bottom: 2.5rem;
  font-weight: 400;
  letter-spacing: .005em;
}

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

/* Stats row inside hero */
.hero-stats-strip {
  position: relative; z-index: 2;
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(7,12,27,.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 1.6rem 0;
}

.hero-stat { text-align: center; padding: .4rem 1rem; }
.hero-stat + .hero-stat { border-left: 1px solid rgba(255,255,255,.1); }

.hero-stat-num {
  font-family: var(--f-head);
  font-size: 1.9rem; font-weight: 800;
  color: #fff; line-height: 1; margin-bottom: .22rem;
  letter-spacing: -.03em;
}
.hero-stat-num span { color: var(--blue); }
.hero-stat-lbl {
  font-size: .68rem; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: rgba(170,185,215,.65);
  font-family: var(--f-body);
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn-blue {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--blue); color: #fff;
  font-family: var(--f-body); font-size: .9rem; font-weight: 600;
  padding: .7rem 1.75rem; border-radius: var(--r-full);
  border: none; cursor: pointer;
  box-shadow: var(--sh-blue);
  transition: background .18s, transform .12s, box-shadow .18s;
  text-decoration: none !important;
}
.btn-blue:hover {
  background: var(--blue-dark); color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,111,255,.45);
}

.btn-white-outline {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(255,255,255,.1);
  color: rgba(230,238,255,.92);
  font-family: var(--f-body); font-size: .9rem; font-weight: 500;
  padding: .68rem 1.75rem; border-radius: var(--r-full);
  border: 1.5px solid rgba(255,255,255,.25);
  cursor: pointer;
  transition: background .18s, border-color .18s, transform .12s;
  text-decoration: none !important;
}
.btn-white-outline:hover {
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.45);
  color: #fff;
  transform: translateY(-2px);
}

.btn-primary {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--blue); color: #fff;
  font-family: var(--f-body); font-size: .875rem; font-weight: 600;
  padding: .65rem 1.6rem; border-radius: var(--r-full);
  border: none; cursor: pointer;
  box-shadow: var(--sh-blue);
  transition: background .18s, transform .12s, box-shadow .18s;
  text-decoration: none !important;
}
.btn-primary:hover {
  background: var(--blue-dark); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(26,111,255,.4);
}

.btn-outline {
  display: inline-flex; align-items: center; gap: .45rem;
  background: transparent; color: var(--blue);
  font-family: var(--f-body); font-size: .875rem; font-weight: 600;
  padding: .62rem 1.5rem; border-radius: var(--r-full);
  border: 2px solid var(--blue);
  cursor: pointer;
  transition: background .18s, color .18s, transform .12s;
  text-decoration: none !important;
}
.btn-outline:hover {
  background: var(--blue-light);
  color: var(--blue-dark);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent; color: var(--muted);
  font-family: var(--f-body); font-size: .875rem; font-weight: 500;
  padding: .55rem 1.1rem; border-radius: var(--r-md);
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: background .16s, border-color .16s, color .16s;
  text-decoration: none !important;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--pale); color: var(--ink); }

/* ═══════════════════════════════════════════════════════
   SECTION SCAFFOLD
   ═══════════════════════════════════════════════════════ */
.section     { padding: 5rem 0; }
.section-sm  { padding: 3.5rem 0; }
.section-alt { background: var(--surface); }
.section-dark {
  background: var(--hero-dark);
  color: rgba(200,215,240,.8);
}
.section-dark h2, .section-dark h3 { color: #fff; }

.eyebrow {
  display: inline-block;
  font-family: var(--f-body);
  font-size: .68rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--blue);
  margin-bottom: .55rem;
}

.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  letter-spacing: -.025em;
  margin-bottom: .65rem;
}

.section-lead {
  font-size: 1.025rem; color: var(--muted);
  max-width: 560px; line-height: 1.82;
  letter-spacing: .005em;
}

.section-rule {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, var(--blue), rgba(26,111,255,.3));
  border-radius: 2px; margin: .8rem 0 1.75rem;
}

/* Page inner hero (sub-pages) */
.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #070c1b 0%, #0d1a38 45%, #091328 100%);
  border-bottom: none;
  padding: 5.5rem 0 4.5rem;
  margin-bottom: 3.5rem;
}
.page-hero::before {
  content: '';
  position: absolute; top: -20%; right: 0; width: 55%; height: 140%;
  background: radial-gradient(ellipse at 80% 50%, rgba(26,111,255,.22) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(26,111,255,.5) 0%, rgba(26,111,255,.15) 50%, transparent 100%);
}
.page-hero .eyebrow { color: rgba(26,111,255,.9); }
.page-hero-title {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -.01em;
  line-height: 1.08;
  color: #fff;
}
.page-hero .section-lead {
  color: rgba(185,205,240,.78);
  max-width: 600px;
}
.page-hero .section-lead a { color: rgba(120,165,255,.9); }
.page-hero .section-lead a:hover { color: #fff; }

/* ═══════════════════════════════════════════════════════
   ABOUT — SPLIT LAYOUT
   ═══════════════════════════════════════════════════════ */
.about-split { padding: 6rem 0; background: var(--white); }

.about-split-grid {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 5rem;
  align-items: center;
}

.about-photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--r-xl);
  display: block;
}

.about-heading {
  font-family: var(--f-head);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.032em;
  color: var(--ink);
  margin-top: .4rem;
  margin-bottom: 1.5rem;
}

.about-body {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.88;
  margin-bottom: 2.25rem;
  letter-spacing: .005em;
}

.about-body strong { color: var(--ink-2); font-weight: 600; }

.btn-bio-outline {
  display: inline-flex; align-items: center;
  border: 2px solid var(--blue);
  color: var(--blue);
  background: transparent;
  font-family: var(--f-body);
  font-size: .9rem; font-weight: 600;
  padding: .72rem 2.1rem;
  border-radius: var(--r-full);
  transition: background .18s, color .18s, transform .12s;
  text-decoration: none !important;
}
.btn-bio-outline:hover {
  background: var(--blue); color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

@media (max-width: 991px) {
  .about-split-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .about-photo { aspect-ratio: 4 / 3; max-height: 420px; }
  .about-heading { font-size: clamp(1.9rem, 6vw, 2.6rem); }
}

/* ═══════════════════════════════════════════════════════
   ABOUT / AFFILIATION CARD (legacy, kept for Contact page)
   ═══════════════════════════════════════════════════════ */
.affil-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.75rem;
  box-shadow: var(--sh-sm);
}
.affil-role { font-family: var(--f-head); font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: .2rem; }
.affil-org  { font-size: .9rem; color: var(--muted); margin-bottom: .85rem; line-height: 1.55; }
.affil-meta { font-size: .83rem; color: var(--faint); }
.affil-meta + .affil-meta { margin-top: .3rem; }

/* Tags / chips */
.tag-cloud { display: flex; flex-wrap: wrap; gap: .45rem; }
.tag {
  font-size: .8rem; font-weight: 500;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: .3rem .85rem; border-radius: var(--r-full);
  transition: background .14s, border-color .14s, color .14s;
  text-decoration: none;
}
.tag:hover {
  background: var(--blue-light);
  border-color: rgba(26,111,255,.3);
  color: var(--blue-dark);
  text-decoration: none;
}

.social-pill {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .82rem; font-weight: 500; color: var(--muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: .35rem .9rem; border-radius: var(--r-full);
  text-decoration: none !important;
  transition: background .14s, border-color .14s, color .14s;
}
.social-pill:hover {
  background: var(--blue-light);
  border-color: rgba(26,111,255,.3);
  color: var(--blue);
}

/* ═══════════════════════════════════════════════════════
   NEWS FEED
   ═══════════════════════════════════════════════════════ */
.news-item {
  display: grid; grid-template-columns: 82px 1fr;
  gap: .75rem 1.25rem; padding: 1rem 0;
  border-bottom: 1px solid var(--border); align-items: baseline;
}
.news-item:first-child { padding-top: 0; }
.news-item:last-child  { border-bottom: none; }
.news-date { font-family: var(--f-body); font-size: .7rem; font-weight: 700; color: var(--blue); white-space: nowrap; letter-spacing: .08em; text-transform: uppercase; }
.news-text { font-size: .9rem; color: var(--muted); line-height: 1.68; }

/* Highlight mini-cards */
.highlight-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid var(--blue);
  border-radius: var(--r-md);
  padding: 1rem 1.15rem;
  box-shadow: var(--sh-xs);
  transition: box-shadow .18s, transform .18s;
}
.highlight-card:hover { box-shadow: var(--sh-sm); transform: translateY(-2px); }
.highlight-year {
  font-size: .7rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--blue); margin-bottom: .3rem;
}
.highlight-title {
  font-family: var(--f-head); font-size: .9rem; font-weight: 700;
  color: var(--ink); line-height: 1.42; margin-bottom: .2rem;
  letter-spacing: -.01em;
}
.highlight-venue {
  font-size: .8rem; font-style: italic; color: var(--faint);
}

/* ═══════════════════════════════════════════════════════
   PUBLICATIONS
   ═══════════════════════════════════════════════════════ */
.year-group-label {
  font-family: var(--f-head);
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: -.018em; color: var(--ink);
  display: flex; align-items: center; gap: .65rem;
  padding-bottom: .85rem;
  border-bottom: 2px solid var(--blue-light);
  margin-bottom: 1.75rem;
}
.year-group-label::before {
  content: '';
  display: inline-block; flex-shrink: 0;
  width: 10px; height: 10px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), #5b9fff);
  box-shadow: 0 0 0 3px rgba(26,111,255,.18);
}

.pub-card {
  background: linear-gradient(160deg, #ffffff 0%, #f6f9ff 55%, #eef3ff 100%);
  border: 1px solid rgba(26,111,255,.1);
  border-radius: var(--r-lg); padding: 1.85rem 2.1rem;
  margin-bottom: 1.1rem;
  box-shadow: 0 3px 14px rgba(26,111,255,.06), 0 1px 3px rgba(0,0,0,.04);
  transition: box-shadow .24s ease, transform .24s ease, border-color .24s ease;
}
.pub-card:hover {
  box-shadow: 0 10px 36px rgba(26,111,255,.13), 0 3px 8px rgba(0,0,0,.06);
  transform: translateY(-3px);
  border-color: rgba(26,111,255,.25);
}
.pub-card.highlighted {
  background: linear-gradient(160deg, #ffffff 0%, #f0f6ff 45%, #e4eeff 100%);
  border-left: 4px solid var(--blue);
  border-color: rgba(26,111,255,.25);
  padding-left: calc(2.1rem - 3px);
  box-shadow: 0 4px 20px rgba(26,111,255,.1), 0 1px 4px rgba(0,0,0,.05);
}

.pub-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: .75rem; }

.pub-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .22rem .7rem; border-radius: var(--r-full); white-space: nowrap; flex-shrink: 0;
}
.pub-badge-journal    { background: #dcfce7; color: #15803d; }
.pub-badge-conference { background: #ffedd5; color: #9a3412; }
.pub-badge-preprint   { background: #f3e8ff; color: #7e22ce; }
.pub-badge-book       { background: #dbeafe; color: #1e40af; }
.pub-badge-thesis     { background: #fce7f3; color: #9d174d; }

.pub-selected-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  background: var(--blue-light); color: var(--blue);
  padding: .22rem .7rem; border-radius: var(--r-full); white-space: nowrap;
}

.pub-title {
  font-family: var(--f-head); font-size: 1.08rem; font-weight: 700;
  line-height: 1.42; color: var(--ink); margin-bottom: .5rem;
  letter-spacing: -.018em;
}
.pub-title a { color: inherit; text-decoration: none; }
.pub-title a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.pub-authors { font-size: .88rem; color: #4a5878; margin-bottom: .25rem; line-height: 1.65; }
.pub-self    { font-weight: 700; color: var(--ink); text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }

.pub-venue { font-size: .88rem; color: var(--blue-dark); font-style: italic; font-weight: 500; margin-bottom: 1rem; letter-spacing: .005em; opacity: .85; }

.pub-footer  { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.pub-tags    { display: flex; flex-wrap: wrap; gap: .35rem; }
.pub-tag {
  font-size: .72rem; font-weight: 500;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--faint); padding: .15rem .6rem;
  border-radius: var(--r-full); text-decoration: none;
  transition: background .14s, color .14s;
}
.pub-tag:hover { background: var(--blue-light); color: var(--blue); text-decoration: none; }

.pub-links { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-left: auto; }
.pub-link {
  font-size: .78rem; font-weight: 700; color: var(--blue);
  background: rgba(26,111,255,.07);
  border: 1.5px solid rgba(26,111,255,.2); padding: .26rem .85rem; border-radius: var(--r-sm);
  transition: background .14s, border-color .14s, color .14s, box-shadow .14s; text-decoration: none;
}
.pub-link:hover {
  background: var(--blue); color: #fff;
  border-color: var(--blue);
  box-shadow: 0 2px 10px rgba(26,111,255,.3);
  text-decoration: none;
}

.pub-abstract-toggle {
  background: none; border: none; cursor: pointer;
  font-size: .78rem; font-weight: 600; color: var(--blue); padding: 0;
  transition: color .14s;
}
.pub-abstract-toggle:hover { color: var(--blue-dark); }

.pub-abstract {
  display: none; font-size: .875rem; color: var(--muted); line-height: 1.78;
  margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--border);
}
.pub-abstract.open { display: block; }

/* ═══════════════════════════════════════════════════════
   FILTER BAR
   ═══════════════════════════════════════════════════════ */
.filter-bar {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}
.filter-row { display: flex; flex-wrap: wrap; gap: .45rem; align-items: center; }
.filter-row + .filter-row { margin-top: .85rem; padding-top: .85rem; border-top: 1px solid var(--border); }
.filter-row-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--pale); margin-right: .3rem;
}
.chip {
  font-size: .78rem; font-weight: 500;
  padding: .3rem .85rem; border-radius: var(--r-full);
  border: 1.5px solid var(--border);
  background: var(--white); color: var(--muted);
  cursor: pointer; text-decoration: none; transition: all .14s ease;
}
.chip:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.chip.active {
  background: var(--blue); color: #fff; border-color: var(--blue);
  box-shadow: 0 2px 8px rgba(26,111,255,.3);
}

/* ═══════════════════════════════════════════════════════
   PROJECT CARDS
   ═══════════════════════════════════════════════════════ */
.project-grid { display: grid; gap: 1.75rem; }
@media (min-width: 768px) { .project-grid { grid-template-columns: 1fr 1fr; } }

.project-card {
  border-radius: var(--r-xl); overflow: hidden;
  display: flex; flex-direction: column;
  border: 1px solid rgba(26,111,255,.13);
  background: linear-gradient(145deg, #ffffff 0%, #f4f8ff 55%, #eaf0ff 100%);
  box-shadow: 0 4px 24px rgba(26,111,255,.07), 0 1px 4px rgba(0,0,0,.05);
  transition: box-shadow .28s ease, transform .28s ease, border-color .28s ease;
  position: relative;
}
.project-card:hover {
  box-shadow: 0 12px 40px rgba(26,111,255,.16), 0 3px 10px rgba(0,0,0,.07);
  transform: translateY(-5px);
  border-color: rgba(26,111,255,.28);
}

/* Completed card — still present, just cooler tone */
.project-card.project-card-dim {
  background: linear-gradient(145deg, #f8fafc 0%, #f0f4fa 55%, #e8eef8 100%);
  border-color: rgba(100,116,139,.22);
  box-shadow: 0 3px 16px rgba(0,0,0,.06), 0 1px 4px rgba(0,0,0,.04);
}
.project-card.project-card-dim:hover {
  box-shadow: 0 10px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  border-color: rgba(100,116,139,.38);
  transform: translateY(-4px);
}

/* Top accent strip — ongoing */
.project-card-accent {
  height: 5px;
  background: linear-gradient(90deg, #1a6fff 0%, #5b9fff 60%, rgba(26,111,255,.25) 100%);
  flex-shrink: 0;
}
/* Completed variant */
.project-card-accent.completed {
  background: linear-gradient(90deg, #b0bcd4 0%, #d4dbe8 70%, rgba(180,195,220,.2) 100%);
}

.project-card-body {
  padding: 1.9rem 2rem 1.8rem;
  display: flex; flex-direction: column; flex: 1;
}

.project-status-row {
  display: flex; align-items: center; gap: .5rem; margin-bottom: .9rem;
}
.status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.status-label { font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

.status-ongoing  .status-dot  { background: #22c55e; box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.status-ongoing  .status-label { color: #16a34a; }
.status-completed .status-dot  { background: #94a3b8; }
.status-completed .status-label { color: #64748b; }
.status-upcoming  .status-dot  { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.2); }
.status-upcoming  .status-label { color: #92400e; }

.project-title { font-family: var(--f-head); font-size: 1.15rem; font-weight: 700; line-height: 1.32; letter-spacing: -.02em; color: var(--ink); margin-bottom: .75rem; }
.project-desc  { font-size: .95rem; color: var(--muted); line-height: 1.82; margin-bottom: 1.35rem; flex: 1; letter-spacing: .003em; }

.project-meta-list { list-style: none; margin-bottom: 1.35rem; }
.project-meta-list li { font-size: .83rem; color: var(--ink-2); padding: .28rem 0; display: flex; gap: .5rem; border-bottom: 1px solid rgba(26,111,255,.07); }
.project-meta-list li:last-child { border-bottom: none; }
.project-meta-list li strong { color: var(--blue); min-width: 90px; font-weight: 700; }

.project-tag-row { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: auto; padding-top: .75rem; }
.project-tag {
  font-size: .71rem; font-weight: 600;
  background: rgba(26,111,255,.1);
  color: var(--blue);
  border: 1px solid rgba(26,111,255,.18);
  padding: .22rem .7rem; border-radius: var(--r-full);
}
.project-tag.muted {
  background: rgba(148,163,184,.1);
  color: #64748b;
  border-color: rgba(148,163,184,.2);
}

/* ═══════════════════════════════════════════════════════
   CV TIMELINE
   ═══════════════════════════════════════════════════════ */
.cv-block { margin-bottom: 3rem; }
.cv-block-title {
  font-family: var(--f-body);
  font-size: .66rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--blue);
  border-bottom: 2px solid var(--blue-light);
  padding-bottom: .6rem; margin-bottom: 1.5rem;
}

.timeline { position: relative; padding-left: 1.75rem; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 6px; bottom: 0;
  width: 2px; background: var(--surface-2); border-radius: 2px;
}

.tl-item { position: relative; padding-bottom: 1.75rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ''; position: absolute; left: -1.75rem;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--white); border: 2.5px solid var(--blue);
  top: 4px; box-shadow: 0 0 0 3px var(--blue-light);
}
.tl-item.dim::before { border-color: var(--pale); box-shadow: none; }

.tl-year  { font-family: var(--f-body); font-size: .73rem; font-weight: 700; color: var(--blue); letter-spacing: .06em; text-transform: uppercase; margin-bottom: .28rem; }
.tl-item.dim .tl-year { color: var(--pale); }
.tl-title { font-family: var(--f-head); font-size: .96rem; font-weight: 700; color: var(--ink); margin-bottom: .15rem; letter-spacing: -.015em; line-height: 1.35; }
.tl-sub   { font-family: var(--f-body); font-size: .86rem; color: var(--muted); font-style: italic; line-height: 1.55; }

.skill-group-label { font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-bottom: .5rem; }
.skill-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1.25rem; }
.skill-chip  { font-size: .78rem; font-weight: 500; background: var(--surface); border: 1px solid var(--border); color: var(--muted); padding: .25rem .75rem; border-radius: var(--r-full); }

.profile-link {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem; font-weight: 600; color: var(--blue);
  background: var(--blue-light); border: 1px solid rgba(26,111,255,.15);
  padding: .55rem 1rem; border-radius: var(--r-md);
  text-decoration: none !important;
  transition: background .15s, border-color .15s, transform .1s;
}
.profile-link:hover { background: rgba(26,111,255,.15); border-color: rgba(26,111,255,.35); color: var(--blue-dark); transform: translateX(3px); }

/* ═══════════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════════ */
.contact-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-xl); padding: 2.75rem; box-shadow: var(--sh-md);
}
.form-label { font-size: .83rem; font-weight: 600; color: var(--ink-2); margin-bottom: .45rem; display: block; }
.form-control {
  width: 100%; border: 1.5px solid var(--border); border-radius: var(--r-md);
  font-family: var(--f-body); font-size: .9rem; color: var(--ink);
  padding: .65rem .95rem; background: var(--white); transition: border-color .16s, box-shadow .16s; outline: none;
}
.form-control::placeholder { color: var(--pale); }
.form-control:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26,111,255,.12); }

.contact-info-row { display: flex; gap: 1rem; align-items: flex-start; margin-bottom: 1.5rem; }
.contact-icon-box {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--blue-light); border: 1px solid rgba(26,111,255,.15);
  border-radius: var(--r-md); display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-info-label { font-family: var(--f-body); font-size: .67rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pale); margin-bottom: .2rem; }
.contact-info-value { font-family: var(--f-body); font-size: .9rem; color: var(--ink-2); font-weight: 500; line-height: 1.62; }

.form-success {
  background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--r-md);
  color: #15803d; padding: 1rem 1.25rem; font-size: .9rem; margin-bottom: 1.5rem;
}
.form-error {
  background: #fef2f2; border: 1px solid #fca5a5; border-radius: var(--r-md);
  color: #b91c1c; padding: 1rem 1.25rem; font-size: .9rem; margin-bottom: 1.5rem;
}
.form-error a { color: #b91c1c; text-decoration: underline; }

/* ═══════════════════════════════════════════════════════
   CTA BAND
   ═══════════════════════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg, var(--surface) 0%, var(--blue-light) 100%);
  border: 1px solid rgba(26,111,255,.15);
  border-radius: var(--r-xl); padding: 3.5rem 2.5rem; text-align: center;
}
.cta-band-title { font-size: clamp(1.4rem, 3vw, 1.7rem); letter-spacing: -.022em; margin-bottom: .65rem; }
.cta-band-lead  { font-size: .95rem; color: var(--muted); max-width: 480px; margin: 0 auto 1.75rem; line-height: 1.8; letter-spacing: .005em; }

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.site-footer {
  background: var(--hero-dark);
  color: rgba(170,185,215,.65);
  padding: 4rem 0 2.25rem;
  margin-top: auto;
}

.footer-brand-name {
  font-family: var(--f-head); font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: .3rem;
  letter-spacing: -.02em;
}
.footer-brand-sub { font-family: var(--f-body); font-size: .82rem; line-height: 1.7; max-width: 220px; }
.footer-col-title {
  font-family: var(--f-body);
  font-size: .63rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.28); margin-bottom: .9rem;
}
.footer-nav-link { display: block; font-family: var(--f-body); font-size: .86rem; font-weight: 400; color: rgba(170,185,215,.65); text-decoration: none; padding: .22rem 0; transition: color .14s; }
.footer-nav-link:hover { color: #fff; text-decoration: none; }

.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,.07); margin: 2.5rem 0 1.5rem; }
.footer-bottom { font-family: var(--f-body); font-size: .77rem; color: rgba(255,255,255,.28); }

/* ═══════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════ */
.divider-rule { border: none; border-top: 1px solid var(--border); margin: 2.5rem 0; }

@media (max-width: 575px) {
  .hero-content { padding: 4rem 0 3rem; }
  .hero-heading { font-size: clamp(1.75rem, 8.5vw, 2.4rem); line-height: 1.1; }
  .hero-sub { color: #fff; }
  .contact-card { padding: 1.75rem; }
  .news-item { grid-template-columns: 70px 1fr; }
}
