:root {
  --navy: #0c2340;
  --accent: #096675;
  --teal: #2cb4be;
  --gold: #d3a63f;
  --ink: #243447;
  --muted: #546375;
  --surface: #f1f7f8;
  --line: #dce3eb;
  --shadow: 0 12px 35px #0c234009;
  --sans: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font: 1rem/1.6 var(--sans);
  overflow-wrap: break-word;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 0.65em; color: var(--navy); line-height: 1.25; }
h1 { max-width: 48rem; font-size: clamp(2rem, 1.25rem + 2.3vw, 3.5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.4vw, 2.4rem); letter-spacing: -0.025em; }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1rem; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a:hover { color: var(--navy); }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.wrap { width: min(100%, 1200px); margin: 0 auto; padding: 0 clamp(1.25rem, 3vw, 2.5rem); }
.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 10;
  padding: 0.65rem 1rem;
  background: var(--navy);
  color: #fff;
}
.skip-link:focus { top: 0.5rem; }

.site-header { border-top: 4px solid var(--teal); border-bottom: 1px solid var(--line); background: #fff; }
.header-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1.5rem; padding-top: 1rem; padding-bottom: 1rem; }
.brand { display: flex; align-items: center; gap: 1rem; min-width: 0; color: var(--navy); text-decoration: none; }
.brand img { width: 60px; height: 60px; flex: none; border-radius: 22%; box-shadow: 0 3px 12px #0c23401a; outline: 1px solid #0c234014; outline-offset: 3px; }
.faculty-brand { display: block; grid-column: 3; grid-row: 1; padding: 0.25rem; justify-self: end; }
.faculty-brand img { width: 76px; height: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.brand-name { font-weight: 700; font-size: 1rem; }
.brand-sub { margin-top: 0.25rem; font-size: 0.8rem; color: var(--muted); }
.header-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.lang-switch ul { display: flex; gap: 0.25rem; margin: 0; padding: 0.2rem; list-style: none; border: 1px solid var(--line); border-radius: 0.65rem; }
.lang-switch a { display: flex; align-items: center; min-height: 44px; padding: 0.4rem 0.65rem; border-radius: 0.35rem; text-decoration: none; font-size: 0.9rem; }
.lang-switch a[aria-current="page"] { background: var(--navy); color: #fff; font-weight: 600; }
.nav-toggle { display: none; align-items: center; gap: 0.65rem; min-height: 44px; padding: 0.5rem 0.75rem; background: #fff; color: var(--navy); border: 1px solid var(--line); border-radius: 0.35rem; font: inherit; cursor: pointer; }
.nav-toggle-icon, .nav-toggle-icon::before, .nav-toggle-icon::after { display: block; width: 1rem; height: 2px; background: currentColor; }
.nav-toggle-icon { position: relative; }
.nav-toggle-icon::before, .nav-toggle-icon::after { position: absolute; left: 0; content: ""; }
.nav-toggle-icon::before { top: -5px; }
.nav-toggle-icon::after { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { transform: translateY(-5px) rotate(-45deg); }
.site-nav { background: #fff; border-top: 1px solid var(--line); }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.65rem; margin: 0 auto; padding-top: 0.35rem; padding-bottom: 0.35rem; list-style: none; }
.site-nav a { display: block; padding: 0.65rem 0; color: var(--navy); font-weight: 600; font-size: 0.92rem; text-decoration: none; }
.site-nav a:hover { color: var(--accent); text-decoration: underline; }

.hero { position: relative; isolation: isolate; padding: clamp(2.5rem, 5vw, 4.5rem) 0 0; background: radial-gradient(ellipse at 90% 20%, #145163 0, transparent 60%), var(--navy); border-bottom: 4px solid var(--gold); color: #fff; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: linear-gradient(#8fe1e508 1px, transparent 1px), linear-gradient(90deg, #8fe1e508 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(90deg, transparent, #000); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 3rem; align-items: center; }
.hero h1 { color: #fff; font-size: clamp(2rem, 1.25rem + 2.15vw, 3.25rem); text-wrap: balance; }
.eyebrow { margin-bottom: 0.75rem; color: var(--accent); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.hero .eyebrow { color: #8fe1e5; }
.lead { max-width: 44rem; margin: 0; color: #d6e5ed; font-size: 1.15rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 2rem; }
.hero .action-link { background: #8fe1e5; color: var(--navy); }
.hero .action-link:hover { background: #c5f3f5; }
.hero .text-link { color: #fff; padding: 0.65rem 0; }
.hero :focus-visible { outline-color: #ffd879; }
.hero-identity { text-align: center; }
.identity-orbit { position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 1; border: 1px solid #8fe1e538; border-radius: 50%; background: radial-gradient(circle, #2cb4be15, transparent 70%); }
.identity-orbit::before { content: ""; position: absolute; inset: 26px; border: 1px dashed #8fe1e538; border-radius: 50%; }
.hero-identity img { position: relative; width: 170px; border-radius: 22%; box-shadow: 0 20px 45px #0003; }
.orbit-label { position: absolute; z-index: 1; padding: 0.35rem 0.8rem; border: 1px solid #8fe1e550; border-radius: 2rem; background: #12344f; color: #dbf7f8; font-size: 0.8rem; font-weight: 600; }
.orbit-models { top: 0; left: 50%; transform: translate(-50%, -35%); }
.orbit-algorithms { bottom: 18%; left: -3%; }
.orbit-data { bottom: 18%; right: -3%; border-color: #d3a63f80; color: #f6d796; }
.identity-caption { display: block; margin-top: 1.5rem; color: #c5e1e9; font-size: 0.8rem; }
.hero-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 3rem; }
.hero-shortcuts a { display: block; padding: 1.3rem 1.4rem; background: #ffffff09; border-top: 1px solid #ffffff26; color: #fff; text-decoration: none; transition: background 160ms ease; }
.hero-shortcuts a:hover { background: #ffffff14; }
.shortcut-label { display: block; margin-bottom: 0.3rem; color: #a6d6df; font-size: 0.78rem; }
.hero-shortcuts strong { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; font-size: 0.9rem; font-weight: 600; }
.hero-shortcuts strong span { color: #f0c568; }
.intro-band { padding: 3rem 0; background: #f6f9fa; border-bottom: 1px solid var(--line); }
.intro-band h2 { font-size: 1.65rem; max-width: 24rem; }
.intro-band p:last-child { margin-bottom: 0; }
.section { padding: clamp(2.5rem, 5vw, 4.5rem) 0; border-bottom: 1px solid var(--line); scroll-margin-top: 1rem; }
.section-head { max-width: 48rem; margin-bottom: 2rem; }
.section-head p { color: var(--muted); }
.section-head .eyebrow { color: var(--accent); }
.prose { max-width: 46rem; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 3rem; align-items: start; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.card { padding: 1.6rem; border: 1px solid var(--line); border-radius: 1rem; background: #fff; box-shadow: var(--shadow); }
.card p:last-child { margin: 0; }
.research-cards .card { --card-color: #096675; --card-tint: #e0f3f2; border-top: 3px solid var(--card-color); background: linear-gradient(160deg, #f0f9f8, #fff 75%); }
.research-cards .card:nth-child(2) { --card-color: #356eaa; --card-tint: #e4eefb; background: linear-gradient(160deg, #f0f5fc, #fff 75%); }
.research-cards .card:nth-child(3) { --card-color: #916514; --card-tint: #f7edcf; background: linear-gradient(160deg, #fcf8ec, #fff 75%); }
.card-number { display: grid; place-items: center; width: 3rem; height: 3rem; margin-bottom: 1.5rem; border-radius: 0.8rem; background: var(--card-tint); color: var(--card-color); font-size: 1rem; font-weight: 700; }
.research-cards h3 { max-width: 15rem; }
.research-cards p { font-size: 0.95rem; }
.student-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 2rem; margin-top: 2rem; padding: 2rem; border-left: 4px solid var(--teal); background: var(--surface); border-radius: 0 1rem 1rem 0; }
.student-panel h3 { margin-bottom: 0; }
.student-panel a { font-weight: 600; }
.goals-section { background: linear-gradient(120deg, var(--navy), #133a50); color: #d6e5ed; }
.goals-section h2 { color: #fff; }
.goals-section p { margin-bottom: 0; }
.team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.team-grid .card:first-child { grid-row: span 2; flex-direction: column; justify-content: center; border-top: 4px solid var(--accent); background: linear-gradient(145deg, #e9f6f5, #fff); }
.team-grid .card:first-child .member-photo { flex: none; width: 90px; height: 110px; }
.member-card { display: flex; align-items: flex-start; gap: 1rem; }
.member-card > div { min-width: 0; }
.member-photo, .member-initials { flex: 0 0 4rem; width: 4rem; height: 5rem; border-radius: 0.6rem; }
.member-photo { object-fit: cover; object-position: center top; }
.member-initials { display: grid; place-items: center; background: #e2f1f2; color: var(--accent); font-size: 1.3rem; font-weight: 600; }
.member-card h3 { font-size: 1.05rem; }
.member-card p, .member-card a { font-size: 0.9rem; }
.tag { display: inline-block; margin-bottom: 0.65rem; padding: 0.1rem 0.5rem; background: var(--surface); color: var(--accent); font-size: 0.8rem; font-weight: 600; }

.pub-title { display: block; font-style: normal; font-weight: 600; }
.pub-meta { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.9rem; }
.accepted-papers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.accepted-paper { padding: 1.5rem; border-left: 4px solid var(--gold); background: #fbf7eb; border-radius: 0 0.5rem 0.5rem 0; }
.accepted-paper h3 { font-size: 1rem; color: #77540c; }
.accepted-paper p:last-child { margin-bottom: 0; font-size: 0.9rem; }
.project-card { border-top: 4px solid var(--accent); background: var(--surface); }
#resources { background: #f1f7f8; }
#resources .card { border-left: 4px solid var(--accent); }
#resources .card:nth-child(2) { border-left-color: var(--gold); }
#contact { padding: clamp(2rem, 4vw, 3rem) 0; background: #fff; }
#contact .two-col { padding: clamp(1.5rem, 4vw, 3rem); width: min(calc(100% - 2.5rem), 1120px); border: 1px solid #c8e2e3; border-top: 4px solid var(--teal); border-radius: 1.2rem; background: linear-gradient(120deg, #eaf6f4, #f6f9fc); }
.action-link { display: inline-block; max-width: 100%; padding: 0.8rem 1.2rem; border-radius: 0.6rem; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.action-link:hover { background: var(--navy); color: #fff; }
.link-list { margin: 0; padding: 0; list-style: none; }
.link-list li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.link-list a { font-weight: 600; }
.site-footer { padding: 1.75rem 0; background: var(--navy); color: #d6e5ed; font-size: 0.9rem; }
.site-footer a { color: #8fe1e5; }
.site-footer :focus-visible { outline-color: #ffd879; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1rem 2rem; align-items: center; }
.site-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0; padding: 0; list-style: none; }

@media (max-width: 56.24em) {
  .header-bar { grid-template-columns: minmax(0, 1fr) auto; gap: 1rem; }
  .faculty-brand { grid-column: 2; }
  .header-tools { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; }
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav:not(.is-open) { display: none; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav a { padding: 0.65rem 0; border-bottom: 1px solid var(--line); }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 210px; gap: 2rem; }
  .hero-identity img { width: 115px; }
  .orbit-label { font-size: 0.7rem; padding: 0.3rem 0.6rem; }
  .hero-shortcuts a { padding: 1rem; }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .team-grid .card:first-child { grid-column: 1 / -1; grid-row: auto; flex-direction: row; align-items: center; justify-content: flex-start; }
  .two-col, .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}
@media (max-width: 40em) {
  .header-bar { gap: 0.75rem; }
  .brand { gap: 0.75rem; }
  .brand img { width: 52px; height: 52px; }
  .faculty-brand img { width: 60px; }
  .brand-name { font-size: 0.9rem; }
  .hero-grid, .student-panel, .team-grid,
  .accepted-papers { grid-template-columns: minmax(0, 1fr); }
  .hero-identity { display: none; }
  .hero-shortcuts { grid-template-columns: minmax(0, 1fr); margin-top: 2rem; }
  .hero-shortcuts a { padding: 0.9rem 1rem; }
  .hero-shortcuts strong { font-size: 0.85rem; }
  .shortcut-label { margin-bottom: 0.15rem; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 0.5rem; }
  .student-panel { padding: 1.25rem; gap: 1rem; }
  .member-card { padding: 1.25rem; gap: 0.75rem; }
  .team-grid .card:first-child .member-photo { width: 72px; height: 88px; }
  .accepted-paper { padding: 1.15rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-shortcuts a { transition: none; }
}
@media print {
  .site-nav, .nav-toggle, .lang-switch, .skip-link { display: none !important; }
  .hero, .site-footer, .goals-section { background: #fff; color: #243447; }
  .hero h1, .hero .eyebrow, .lead, .hero .text-link, .site-footer a,
  .goals-section h2 { color: #0c2340; }
  .hero-identity, .hero-actions, .hero-shortcuts, .hero::before { display: none; }
  .hero-grid { display: block; }
  .hero { padding: 1rem 0; }
  .section { padding: 1.5rem 0; }
  .team-grid, .accepted-papers { display: block; }
  .member-card { margin-bottom: 1rem; }
  .card { box-shadow: none; }
  .card, .accepted-paper { break-inside: avoid; }
  .accepted-paper { margin-bottom: 1rem; }
}
