:root {
  --bg: #ffffff;
  --bg-soft: #f5f8fb;
  --panel: #ffffff;
  --panel-solid: #ffffff;
  --line: #dce6ef;
  --line-strong: #c7d6e4;
  --text: #142235;
  --muted: #5d7085;
  --cyan: #087f9b;
  --cyan-soft: #e8f7fb;
  --violet: #6252cf;
  --green: #16865f;
  --orange: #b66d16;
  --shadow: 0 22px 58px rgba(24, 54, 82, .10);
  --shadow-soft: 0 10px 30px rgba(24, 54, 82, .07);
  --radius: 22px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.navbar { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 850; letter-spacing: -.02em; }
.brand-mark {
  width: 39px; height: 39px; border-radius: 13px; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #38c7e8, #7667e8);
  box-shadow: 0 8px 24px rgba(44, 164, 197, .22);
}
.brand-mark::before, .brand-mark::after {
  content: ""; position: absolute; border-radius: 999px; border: 2px solid rgba(255,255,255,.84);
}
.brand-mark::before { width: 24px; height: 24px; left: 7px; top: 7px; }
.brand-mark::after { width: 8px; height: 8px; left: 15px; top: 15px; background: #fff; }
.nav-links { display: flex; gap: 28px; color: var(--muted); font-size: .95rem; }
.nav-links a:hover { color: var(--cyan); }
.menu-button { display: none; border: 1px solid var(--line); background: #fff; color: var(--text); border-radius: 12px; padding: 9px 12px; cursor: pointer; }

.hero { position: relative; padding: 98px 0 76px; overflow: hidden; background: #fff; }
.hero::before {
  content: ""; position: absolute; width: 580px; height: 580px; right: -250px; top: -260px;
  background: radial-gradient(circle, rgba(72,217,255,.12), transparent 68%); pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 64px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: var(--cyan); text-transform: uppercase; letter-spacing: .15em; font-weight: 850; font-size: .78rem; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--cyan); }
h1 { margin: 18px 0 22px; font-size: clamp(3rem, 7vw, 6.4rem); line-height: .98; letter-spacing: -.065em; }
.gradient-text { background: linear-gradient(90deg, #087f9b, #3189c8 45%, #6252cf); -webkit-background-clip: text; color: transparent; }
.hero-copy { color: var(--muted); max-width: 720px; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 19px; border-radius: 14px; font-weight: 780; border: 1px solid transparent; transition: .2s ease; }
.button.primary { color: #fff; background: linear-gradient(135deg, #087f9b, #6657d5); box-shadow: 0 14px 34px rgba(26, 119, 154, .18); }
.button.secondary { border-color: var(--line-strong); background: #fff; color: var(--text); }
.button:hover { transform: translateY(-2px); }
.hero-art { position: relative; }
.hero-art::before { content: ""; position: absolute; inset: 14% 8%; filter: blur(60px); background: rgba(72,217,255,.14); border-radius: 50%; }
.hero-card { position: relative; border: 1px solid #24435f; border-radius: 28px; padding: 22px; background: #0d243a; box-shadow: var(--shadow); }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.stat { border: 1px solid rgba(179, 219, 242, .18); background: rgba(255,255,255,.045); padding: 13px; border-radius: 16px; }
.stat strong { display: block; color: #fff; font-size: 1.05rem; }
.stat span { color: #b8c9da; font-size: .76rem; }

.section { padding: 88px 0; background: #fff; }
.section.alt { background: var(--bg-soft); border-top: 1px solid #edf2f6; border-bottom: 1px solid #edf2f6; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 36px; }
.section-head h2 { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3.4rem); letter-spacing: -.045em; line-height: 1.05; }
.section-head p { color: var(--muted); max-width: 610px; margin: 0; }

.about-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 42px; align-items: center; }
.about-card, .contact-card, .project-shell { border: 1px solid var(--line); background: var(--panel); border-radius: var(--radius); box-shadow: var(--shadow-soft); }
.about-card { padding: 30px; }
.about-card p { color: var(--muted); }
.principles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.principle { padding: 20px; border: 1px solid var(--line); border-radius: 17px; background: #fff; box-shadow: 0 6px 18px rgba(28, 61, 91, .04); }
.principle b { display: block; margin-bottom: 7px; }
.principle span { color: var(--muted); font-size: .92rem; }

.theme-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.theme-card { min-height: 206px; padding: 22px; border: 1px solid var(--line); border-radius: 19px; background: #fff; box-shadow: 0 8px 24px rgba(28,61,91,.05); }
.theme-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--cyan-soft); color: var(--cyan); font-size: 1.25rem; margin-bottom: 20px; }
.theme-card h3 { margin: 0 0 9px; font-size: 1rem; }
.theme-card p { margin: 0; color: var(--muted); font-size: .88rem; }

.filter-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; }
.filter-button { cursor: pointer; color: var(--muted); border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 9px 14px; }
.filter-button.active, .filter-button:hover { background: var(--cyan-soft); color: var(--cyan); border-color: #a8d9e6; }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project-card { display: flex; flex-direction: column; min-height: 342px; padding: 24px; border: 1px solid var(--line); border-radius: 20px; background: #fff; transition: .25s ease; box-shadow: 0 8px 24px rgba(28,61,91,.05); }
.project-card.published { border-top: 4px solid var(--cyan); padding-top: 21px; }
.project-card.ongoing { border-top: 4px solid var(--orange); padding-top: 21px; }
.project-card.ongoing .status::before { background: var(--orange); box-shadow: 0 0 8px rgba(182,109,22,.28); }
.project-card:hover { transform: translateY(-5px); border-color: #a9cfdd; box-shadow: 0 20px 46px rgba(28,61,91,.11); }
.project-card[hidden] { display: none; }
.project-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; color: var(--muted); font-size: .78rem; }
.status { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 9px; background: #fff; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(22,134,95,.28); }
.project-card h3 { margin: 22px 0 11px; font-size: 1.31rem; letter-spacing: -.02em; line-height: 1.28; }
.project-card p { margin: 0; color: var(--muted); }
.project-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tag { color: #4e647a; font-size: .75rem; padding: 6px 9px; border-radius: 9px; background: #f1f5f8; }
.project-link { margin-top: auto; padding-top: 24px; color: var(--cyan); font-weight: 780; }

.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.resource-card { padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(28,61,91,.05); }
.resource-card h3 { margin: 0 0 8px; }
.resource-card p { color: var(--muted); margin-bottom: 18px; }
.resource-card a { color: var(--cyan); font-weight: 720; }

.publication-list { display: grid; gap: 14px; }
.publication-entry { display: grid; grid-template-columns: 92px 1fr auto; gap: 22px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 7px 22px rgba(28,61,91,.04); }
.publication-year { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 18px; background: var(--cyan-soft); color: var(--cyan); font-weight: 850; }
.publication-entry h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.35; }
.publication-entry p { color: var(--muted); margin: 0; font-size: .9rem; }
.publication-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.publication-links a { padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--cyan); font-weight: 720; font-size: .84rem; background: #fff; }
.publication-links a:hover { border-color: #a8d9e6; background: var(--cyan-soft); }

.contact-card { padding: 36px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.contact-card h2 { margin: 0 0 12px; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.04em; }
.contact-card p { margin: 0; color: var(--muted); }
.contact-links { display: grid; gap: 12px; }
.contact-link { border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; color: var(--muted); background: #fff; }
.contact-link:hover { color: var(--cyan); border-color: #a8d9e6; }

.site-footer { padding: 32px 0 46px; color: var(--muted); font-size: .88rem; background: #fff; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 28px; }

/* Project pages */
.project-hero { padding: 82px 0 42px; background: #fff; }
.breadcrumb { color: var(--muted); font-size: .9rem; }
.breadcrumb a:hover { color: var(--cyan); }
.project-hero h1 { font-size: clamp(2.65rem, 5.8vw, 5.45rem); max-width: 1080px; margin-bottom: 20px; }
.project-lead { max-width: 870px; font-size: 1.15rem; color: var(--muted); }
.project-shell { padding: 34px; margin: 24px 0 90px; }
.project-layout { display: grid; grid-template-columns: 1fr 300px; gap: 44px; }
.project-content h2 { margin-top: 36px; font-size: 1.65rem; letter-spacing: -.025em; }
.project-content h2:first-of-type { margin-top: 26px; }
.project-content p, .project-content li { color: var(--muted); }
.project-content ul { padding-left: 20px; }
.project-aside { align-self: start; position: sticky; top: 104px; border-left: 1px solid var(--line); padding-left: 26px; }
.aside-block { margin-bottom: 26px; }
.aside-block b { display: block; margin-bottom: 9px; }
.aside-block span, .aside-block a { display: block; color: var(--muted); font-size: .9rem; margin: 6px 0; overflow-wrap: anywhere; }
.aside-block a:hover { color: var(--cyan); }
.notice { padding: 17px 18px; border: 1px solid #f0d9b8; background: #fff9ef; color: #7b531f; border-radius: 15px; }
.paper-banner { padding: 22px; border-radius: 18px; background: linear-gradient(135deg, #eefafd, #f1efff); border: 1px solid #d8e9f1; }
.paper-banner .venue { margin: 0 0 7px; color: var(--cyan); font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.paper-banner p { margin: 0; color: #44596e; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 20px 0; }
.metric { padding: 17px; border: 1px solid var(--line); border-radius: 15px; background: #f9fbfd; }
.metric strong { display: block; color: var(--text); font-size: 1.35rem; line-height: 1.2; margin-bottom: 5px; }
.metric span { color: var(--muted); font-size: .82rem; }
.paper-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.project-figure { margin: 28px 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); }
.project-figure img { width: 100%; height: auto; }
.project-figure figcaption { padding: 13px 16px; color: var(--muted); font-size: .88rem; border-top: 1px solid var(--line); }
.paper-action { display: inline-flex; align-items: center; padding: 10px 13px; border: 1px solid var(--line-strong); border-radius: 11px; color: var(--cyan); font-weight: 750; background: #fff; }
.paper-action:hover { background: var(--cyan-soft); border-color: #a8d9e6; }



/* Team and contact page */
.team-hero { padding: 82px 0 54px; background: #fff; border-bottom: 1px solid var(--line); }
.team-hero .eyebrow { margin-top: 34px; }
.team-hero h1 { max-width: 900px; margin-bottom: 20px; }
.team-section { padding-top: 58px; }
.leadership-heading { margin-top: 0; }
.professor-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.professor-card { display: flex; flex-direction: column; padding: 32px; border: 1px solid var(--line); border-top: 4px solid var(--cyan); border-radius: 24px; background: #fff; box-shadow: var(--shadow-soft); }
.professor-card .profile-avatar { margin-bottom: 24px; }
.professor-card h2 { margin: 14px 0 5px; font-size: clamp(1.75rem, 3vw, 2.55rem); letter-spacing: -.04em; line-height: 1.08; }
.professor-card > p { color: var(--muted); }
.professor-card .profile-actions { margin-top: auto; padding-top: 18px; }
.leader-card { display: grid; grid-template-columns: 150px minmax(0, 1fr) 250px; gap: 34px; align-items: start; padding: 36px; border: 1px solid var(--line); border-top: 4px solid var(--cyan); border-radius: 24px; background: #fff; box-shadow: var(--shadow-soft); }
.profile-avatar { width: 74px; height: 74px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 22px; background: linear-gradient(135deg, #e4f8fc, #ebe9ff); color: var(--cyan); font-size: 1.35rem; font-weight: 900; letter-spacing: .03em; border: 1px solid #cde5ee; }
.profile-avatar-large { width: 136px; height: 136px; border-radius: 32px; font-size: 2.2rem; box-shadow: 0 18px 34px rgba(28,61,91,.10); }
.role-label { display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid #b9dce7; border-radius: 999px; background: var(--cyan-soft); color: var(--cyan); font-size: .75rem; font-weight: 850; letter-spacing: .06em; text-transform: uppercase; }
.leader-content h2 { margin: 14px 0 5px; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.045em; line-height: 1.05; }
.profile-title { color: var(--cyan) !important; font-weight: 720; }
.leader-content p { color: var(--muted); }
.profile-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.profile-facts { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fbfdff; }
.profile-facts div { display: grid; gap: 2px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
.profile-facts div:last-child { border-bottom: 0; }
.profile-facts span { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.profile-facts strong, .profile-facts a { color: var(--text); font-size: .9rem; overflow-wrap: anywhere; }
.profile-facts a:hover { color: var(--cyan); }
.team-heading { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin: 74px 0 28px; }
.team-heading h2 { margin: 8px 0 0; font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -.045em; line-height: 1.05; }
.team-heading p { max-width: 580px; margin: 0; color: var(--muted); }
.researcher-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.researcher-card { min-height: 360px; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: 0 8px 24px rgba(28,61,91,.05); }
.researcher-card .profile-avatar { margin-bottom: 24px; }
.researcher-card h3 { margin: 14px 0 5px; font-size: 1.55rem; letter-spacing: -.025em; line-height: 1.2; }
.researcher-card p { color: var(--muted); }
.researcher-contact { display: grid; gap: 9px; margin-top: auto; padding-top: 24px; border-top: 1px solid var(--line); }
.researcher-contact a { color: var(--cyan); font-weight: 720; overflow-wrap: anywhere; }
.researcher-contact a:hover { text-decoration: underline; }
.contact-panel { display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; margin-top: 64px; padding: 34px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-soft); }
.contact-panel h2 { margin: 8px 0 10px; font-size: clamp(1.75rem, 3vw, 2.6rem); letter-spacing: -.035em; line-height: 1.1; }
.contact-panel p { max-width: 760px; margin: 0; color: var(--muted); }
.contact-link strong, .contact-link span { display: block; }
.contact-link span { margin-top: 3px; font-size: .84rem; color: var(--muted); }
.nav-links a[aria-current="page"] { color: var(--cyan); font-weight: 750; }

@media (max-width: 1040px) {
  .leader-card { grid-template-columns: 120px 1fr; }
  .profile-avatar-large { width: 110px; height: 110px; }
  .profile-facts { grid-column: 2; grid-template-columns: repeat(2, 1fr); }
  .profile-facts div:nth-child(2) { border-right: 0; }
  .profile-facts div { border-right: 1px solid var(--line); }
  .profile-facts div:nth-child(even), .profile-facts div:last-child { border-right: 0; }
  .profile-facts div:nth-last-child(-n+2) { border-bottom: 0; }
  .theme-grid { grid-template-columns: repeat(3, 1fr); }
  .project-grid { grid-template-columns: repeat(2, 1fr); }
  .publication-entry { grid-template-columns: 80px 1fr; }
  .publication-links { grid-column: 2; justify-content: flex-start; }
}
@media (max-width: 820px) {
  .professor-grid { grid-template-columns: 1fr; }
  .leader-card { grid-template-columns: 1fr; }
  .profile-facts { grid-column: 1; }
  .team-heading { align-items: start; flex-direction: column; }
  .contact-panel { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 76px; left: 0; right: 0; padding: 20px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; box-shadow: var(--shadow-soft); }
  .nav-links.open { display: flex; }
  .menu-button { display: block; }
  .hero { padding-top: 64px; }
  .hero-grid, .about-grid, .contact-card, .project-layout { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .project-aside { position: static; border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; }
  .section-head { align-items: start; flex-direction: column; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .researcher-grid { grid-template-columns: 1fr; }
  .leader-card, .contact-panel { padding: 23px; }
  .profile-facts { grid-template-columns: 1fr; }
  .profile-facts div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .profile-facts div:last-child { border-bottom: 0 !important; }
  .team-hero { padding: 54px 0 38px; }
  .container { width: min(var(--max), calc(100% - 24px)); }
  .navbar { height: 68px; }
  .nav-links { top: 68px; }
  .hero { padding: 48px 0 52px; }
  h1 { font-size: 3.05rem; }
  .theme-grid, .project-grid, .resource-grid, .principles, .metric-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .project-shell, .about-card, .contact-card { padding: 23px; }
  .footer-row { flex-direction: column; }
  .publication-entry { grid-template-columns: 1fr; }
  .publication-year { width: 62px; height: 62px; }
  .publication-links { grid-column: 1; justify-content: flex-start; }
}
