/* Fabio Zoccolan — Midnight Editorial × Cobalt Sidebar
   All type on the website is upright sans-serif. Photo/plots are not cropped. */
:root {
  --cobalt: #2451f4;
  --cobalt-bright: #6591ff;
  --cobalt-light: #9ab5ff;
  --ink: #0a0d15;
  --panel: #121a28;
  --panel-2: #19243a;
  --text: #f6f8ff;
  --muted: #b3bfd3;
  --secondary: #8e9ab2;
  --rule: #303b53;
  --sidebar-width: 266px;
  --focus: #b3c7ff;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: "Inter", "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  font-style: normal;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #c1d2ff; }
a:focus-visible, button:focus-visible, .science-figure button:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 4px;
}
button { font: inherit; }
img { max-width: 100%; }
strong { font-weight: 650; }
.skip-link {
  position: fixed; z-index: 200; left: 14px; top: -80px;
  padding: 12px 16px; background: white; color: #10162d;
}
.skip-link:focus { top: 14px; }
.mobile-header, .menu-backdrop { display: none; }
.site-shell { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; min-height: 680px;
  background: linear-gradient(156deg, #2759fb 0%, #1744e6 58%, #103ed9 100%);
  padding: 46px 29px 29px;
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: inset -1px 0 rgba(255,255,255,.13);
  z-index: 30;
}
.sidebar-identity { display: block; color: white; }
.sidebar-identity:hover { color: white; }
.sidebar-monogram { color: #b8c9ff; font-size: 11px; letter-spacing: .21em; font-weight: 740; }
.sidebar-identity strong { display: block; margin-top: 19px; font-size: clamp(34px, 3.0vw, 45px); line-height: .99; font-weight: 760; letter-spacing: -.058em; }
.name-period { color: #bdd0ff; }
.sidebar-role { font-size: 15px; font-weight: 620; margin: 20px 0 7px; line-height: 1.6; }
.sidebar-affiliation { font-size: 13px; line-height: 1.75; color: #dce6ff; margin: 0; }
.sidebar-rule { height: 1px; background: rgba(255,255,255,.5); margin-top: 29px; margin-bottom: 21px; }
.site-nav { display: grid; gap: 4px; }
.site-nav a {
  display: flex; align-items: center; gap: 15px;
  padding: 13px 0 13px 10px; margin-left: -10px;
  font-size: 15px; font-weight: 510;
  color: #e8edff; border-left: 3px solid transparent;
  transition: background-color .18s, border-color .18s;
}
.site-nav a span { color: #c1ceff; font-size: 12px; font-weight: 690; letter-spacing: .05em; min-width: 19px; }
.site-nav a:hover { background: rgba(255,255,255,.09); color: white; }
.site-nav a.active { border-left-color: white; font-weight: 740; color: white; }
.sidebar-bottom { margin-top: 24px; font-size: 14px; }
.sidebar-bottom .sidebar-rule { margin-bottom: 20px; }
.sidebar-bottom a { color: white; padding: 7px 0; display: flex; justify-content: space-between; align-items: center; max-width: 180px; }
.sidebar-bottom a:hover { text-decoration: underline; }
.sidebar-bottom a span { color: #d7e2ff; }
.sidebar-note { display: block; margin-top: 21px; font-size: 12px; color: #c9d8ff; }
#main-content {
  padding: 0 clamp(24px, 4.0vw, 76px);
  min-width: 0; max-width: 1550px;
  width: 100%; margin: 0 auto;
  background: radial-gradient(circle at 99% 0, #14203a 0, rgba(10,13,21,0) 700px), var(--ink);
}
.content-section { padding: 55px 0 84px; border-bottom: 1px solid #334056; scroll-margin-top: 22px; }
.content-section:not(.home-section) { padding-top: 67px; }
.section-tag { display: flex; align-items: center; gap: 22px; margin-bottom: 40px; color: var(--cobalt-bright); font-size: 13px; letter-spacing: .1em; font-weight: 760; white-space: nowrap; }
.tag-rule, .soft-line { height: 1px; min-width: 10px; flex: 1; background: #61708f; opacity: .7; }
.eyebrow { color: #99b1ff; font-weight: 800; font-size: 11px; letter-spacing: .16em; margin: 0 0 18px; }
.eyebrow-divider { color: #68748d; margin: 0 9px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { letter-spacing: -.032em; }
h1 { font-size: clamp(53px, 5.8vw, 82px); line-height: 1.04; letter-spacing: -.066em; font-weight: 770; margin: 0 0 27px; }
.headline-dot { color: #6d94ff; }
.hero-grid { display: grid; grid-template-columns: minmax(0,1.18fr) minmax(235px,.72fr); gap: clamp(28px,4vw,75px); align-items: start; }
.hero-text { min-width: 0; }
.bio { max-width: 720px; }
.bio p { color: #d5dce9; font-size: clamp(14px,1.19vw,16px); line-height: 1.91; margin-bottom: 16px; }
.bio strong { color: #f8f9fc; }
.profile-links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.profile-link {
  display: inline-flex; gap: 6px; align-items: center; justify-content: center;
  border: 1px solid #506895; min-height: 38px; padding: 9px 13px;
  background: #151e31; color: #e6eafb; border-radius: 4px;
  font-size: 13px; font-weight: 680; white-space: nowrap;
  transition: border-color .2s, background-color .2s;
}
a.profile-link:hover { background: #243b6a; border-color: #8ba9ff; color: white; }
.profile-link.cv-link { background: #2451f4; border-color: #2451f4; color: white; }
.profile-link.cv-link:hover { background: #3564fc; }
.pending-link { opacity: .72; cursor: default; }
.pending-link small { font-size: 11px; font-weight: 420; color: #b0bfdc; }
.profile-photo { margin: 0; width: 100%; max-width: 455px; justify-self: end; }
.profile-photo img { display: block; width: 100%; height: auto; object-fit: contain; border: 1px solid #52638a; border-radius: 4px; }
.profile-photo figcaption { color: #8190ae; padding: 10px 1px 0; font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
.home-secondary { margin-top: 62px; }
.mini-heading { display: flex; gap: 13px; align-items: center; margin-bottom: 23px; }
.mini-heading h2 { margin: 0; font-size: 24px; font-weight: 740; }
.mini-line { background: #5784ff; width: 29px; height: 3px; flex: none; }
.interests-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; }
.interest-card {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 174px;
  padding: 22px 21px 18px; border: 1px solid #364b70; border-radius: 5px;
  background: linear-gradient(143deg,#1b2942 0%,#131c2e 100%);
  transition: transform .2s, border-color .2s, background-color .2s;
}
.interest-card:hover { border-color: #7499ff; transform: translateY(-2px); color: white; }
.interest-number { color: #7fa3ff; font-weight: 780; font-size: 11px; letter-spacing: .11em; }
.interest-card h3 { font-size: clamp(16px,1.42vw,21px); line-height: 1.27; margin: 17px 0 13px; font-weight: 740; }
.interest-arrow { align-self: flex-end; color: #7ea1ff; font-size: 19px; }
.home-bottom-grid { display: grid; grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); gap: 42px; margin-top: 62px; }
.home-feature p { color: #c5cede; line-height: 1.85; font-size: 15px; }
.text-action { color: #87a8ff; font-weight: 700; font-size: 15px; display: inline-block; margin-top: 7px; }
.text-action:hover { color: #bdcdff; }
.recent-entry { border-bottom: 1px solid #303c54; padding: 13px 0; display: grid; gap: 16px; grid-template-columns: 42px minmax(0,1fr); }
.recent-entry:first-of-type { padding-top: 1px; }
.recent-entry>span { color: #819fff; font-size: 13px; margin-top: 4px; }
.recent-entry strong { font-size: 15px; line-height: 1.5; display: block; font-weight: 650; }
.resource-chip { font-size: 13px; display: inline-block; color: #83a8ff; font-weight: 650; margin: 9px 14px 0 0; line-height: 1.3; }
.resource-chip:hover { color: #c7d7ff; text-decoration: underline; }
.contact-block { margin-top: 58px; border-top: 1px solid #5b6983; padding-top: 27px; display: grid; grid-template-columns: .85fr 1.15fr; gap: 26px; }
.contact-label { color: #7d9cfa; font-weight: 750; letter-spacing: .14em; font-size: 12px; }
.contact-block h2 { font-size: 32px; margin: 9px 0; font-weight: 740; }
.contact-details { padding-top: 8px; }
.contact-details>a { font-size: 17px; font-weight: 650; }
.contact-details>a span { color: var(--cobalt-bright); }
.contact-details p { font-size: 14px; color: #9faec7; margin: 10px 0 0; }
.contact-small a { color: #83a8ff; }
.section-headline { font-size: clamp(46px,4.9vw,72px); line-height: 1.06; font-weight: 775; margin: 0 0 19px; }
.section-lede { max-width: 765px; font-size: 16px; line-height: 1.77; color: #b8c4d6; margin-bottom: 44px; }
.research-theme { border-top: 1px solid #46536c; padding: 39px 0 49px; scroll-margin-top: 28px; }
.research-theme:first-of-type { border-top: 0; }
.theme-heading { display: grid; grid-template-columns: 55px minmax(0,1fr); align-items: start; gap: 12px; }
.theme-index { font-weight: 790; font-size: 34px; letter-spacing: -.06em; color: #7395ff; line-height: 1; }
.theme-kicker { color: #7098ff; letter-spacing: .14em; font-size: 11px; font-weight: 750; margin: 0 0 8px; }
.theme-heading h3 { font-size: clamp(24px,2.7vw,36px); line-height: 1.17; font-weight: 740; margin: 0; max-width: 920px; }
.theme-body { max-width: 860px; margin: 22px 0 29px 67px; }
.theme-body p { font-size: 15px; line-height: 1.92; color: #c1cad9; margin-bottom: 13px; }
.media-section-title { display: flex; align-items: center; gap: 15px; margin: 31px 0 18px; font-size: 11px; letter-spacing: .11em; color: #84a2ef; font-weight: 790; }
.media-section-title span:last-child { flex: none; color: #7d8aa3; }
.media-section-title.media-gap { margin-top: 38px; }
.media-intro { color: #a9b9d1; font-size: 14px; line-height: 1.65; max-width: 825px; margin: 0 0 20px; }
.figure-grid { display: grid; gap: 14px; align-items: start; }
.figure-grid.grid-two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.figure-grid.grid-four { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.science-figure { margin: 0; min-width: 0; }
.figure-open {
  display: block; position: relative; width: 100%; min-width: 0; padding: 0; border: 1px solid #586785; border-radius: 4px;
  overflow: hidden; background: #fff; cursor: zoom-in;
}
.figure-open img { display: block; width: 100%; aspect-ratio: 1.29 / 1; height: auto; object-fit: contain; background: #fff; }
.expand-hint { position: absolute; bottom: 0; left: 0; right: 0; padding: 11px 13px; text-align: right; color: white; background: linear-gradient(transparent,rgba(0,0,0,.66)); font-size: 13px; font-weight: 680; opacity: 0; transition: opacity .2s; }
.figure-open:hover .expand-hint,.figure-open:focus-visible .expand-hint { opacity: 1; }
.science-figure figcaption { padding: 12px 0 0; display: grid; gap: 6px; }
.science-figure figcaption strong { font-size: 14px; font-weight: 730; line-height: 1.4; }
.science-figure figcaption span { font-size: 13px; line-height: 1.54; color: #99a8c0; }
.grid-four .science-figure figcaption strong { font-size: 13px; }
.grid-four .science-figure figcaption span { font-size: 12px; }
.animation-figure { margin: 0; max-width: 865px; }
.animation-figure img { display: block; width: 100%; height: auto; object-fit: contain; background: white; border: 1px solid #586785; border-radius: 4px; }
.animation-figure figcaption { display: grid; gap: 6px; margin-top: 12px; }
.animation-figure figcaption strong { font-size: 15px; }
.animation-figure figcaption span { font-size: 13px; color: #a3b2cb; }
.associated-work { padding: 21px 0 0; margin-top: 30px; border-top: 1px solid #323f58; }
.associated-work>p { font-size: 11px; color: #7296ff; font-weight: 800; letter-spacing: .14em; margin-bottom: 4px; }
.resource-row { display: flex; flex-wrap: wrap; column-gap: 0; row-gap: 2px; }
.publication-group,.activity-group { margin: 47px 0 54px; }
.group-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid #65718b; padding-bottom: 14px; margin-bottom: 5px; }
.group-heading h3 { font-size: 27px; margin: 0; letter-spacing: -.045em; font-weight: 750; }
.group-heading>span { font-size: 11px; font-weight: 760; color: #7598ff; letter-spacing: .12em; white-space: nowrap; }
.publication-item { display: grid; grid-template-columns: 68px minmax(0,1fr); gap: 20px; border-bottom: 1px solid #303c52; padding: 24px 0 25px; }
.publication-year { color: #83a3ff; font-size: 14px; font-weight: 760; padding-top: 3px; }
.publication-copy h4 { font-size: clamp(16px,1.35vw,19px); line-height: 1.42; letter-spacing: -.016em; font-weight: 680; margin: 0 0 8px; }
.publication-copy p { margin: 0 0 6px; font-size: 14px; line-height: 1.65; }
.publication-authors { color: #c1cad9; }
.publication-venue { color: #8e9eb6; font-style: normal; }
.bibliography-download { margin-top: 8px; }
.talk-list { padding: 0; }
.talk-item { display: grid; grid-template-columns: 82px minmax(0,1fr); padding: 22px 0 26px; border-bottom: 1px solid #303b52; gap: 20px; }
.talk-date { padding-top: 2px; display: grid; justify-items: start; gap: 3px; }
.talk-date span { color: #779aff; font-size: 14px; font-weight: 770; }
.talk-date strong { color: #e0e6f5; font-size: 14px; }
.talk-label { text-transform: uppercase; letter-spacing: .11em; color: #7398ff; font-size: 11px; font-weight: 770; margin-bottom: 7px; }
.talk-details h4 { font-size: clamp(16px,1.5vw,20px); font-weight: 710; letter-spacing: -.02em; line-height: 1.4; margin: 0 0 6px; }
.talk-details>p { color: #aebbd0; line-height: 1.58; font-size: 14px; margin: 0; }
.dot-separator { color: #6c89bc; margin: 0 4px; }
.year-group { margin-top: 29px; }
.year-heading { color: #88a5ff; font-weight: 750; font-size: 22px; margin: 0 0 4px; }
.teaching-row { display: grid; grid-template-columns: 125px minmax(0,1fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid #303c52; }
.date-column { color: #80a0ff; font-size: 14px; font-weight: 750; line-height: 1.55; }
.teaching-courses p { color: #f2f5fc; font-size: 15px; line-height: 1.5; font-weight: 580; margin: 0 0 9px; }
.teaching-courses p:last-child { margin-bottom: 0; }
.student-row { display: grid; grid-template-columns: minmax(0,1fr) 145px; gap: 24px; padding: 22px 0; border-bottom: 1px solid #303c52; }
.student-row h4,.activity-row h4 { margin: 0 0 6px; font-size: 16px; font-weight: 720; line-height: 1.45; }
.student-row p,.activity-row p { font-size: 14px; line-height: 1.7; color: #b9c5d8; margin: 0 0 5px; }
.student-type { color: #8da8ff; text-align: right; font-size: 13px; font-weight: 630; }
.student-type .resource-chip { margin-right: 0; }
.subtle-text { color: #8b9bb2; font-size: 13px; }
.activity-row { display: grid; grid-template-columns: 120px minmax(0,1fr); gap: 20px; padding: 23px 0; border-bottom: 1px solid #303c52; }
.activity-row>.date-column { font-size: 13px; }
.activity-row .resource-chip { margin-top: 7px; }
.site-footer { display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; padding: 25px 0 31px; color: #8f9eba; font-size: 13px; }
.site-footer a { color: #90aaff; }
.image-dialog { width: min(96vw,1380px); max-height: 94vh; border: 1px solid #50648e; border-radius: 6px; padding: 0; background: #101725; color: white; box-shadow: 0 20px 90px rgba(0,0,0,.8); }
.image-dialog::backdrop { background: rgba(0,0,0,.88); }
.dialog-top { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 11px 18px; border-bottom: 1px solid #364461; }
.dialog-top p { font-size: 14px; font-weight: 690; margin: 0; }
.dialog-top button { color: white; background: #2451f4; border: 0; padding: 10px 14px; cursor: pointer; border-radius: 3px; }
.image-dialog img { display: block; width: auto; height: auto; max-width: min(94vw,1340px); max-height: calc(94vh - 80px); margin: 12px auto; object-fit: contain; background: white; }
@media (max-width: 1190px) {
  :root { --sidebar-width: 237px; }
  .sidebar { padding: 37px 20px 23px; }
  #main-content { padding: 0 clamp(24px,3.7vw,48px); }
  .hero-grid { gap: 27px; grid-template-columns: minmax(0,1.2fr) minmax(220px,.75fr); }
  .sidebar-identity strong { font-size: 37px; }
  .profile-link { padding: 9px 10px; }
}
@media (max-width: 920px) {
  .mobile-header { display: flex; position: sticky; top: 0; z-index: 60; background: #2050ed; color: white; height: 64px; align-items: center; justify-content: space-between; padding: 0 22px; box-shadow: 0 1px 18px rgba(0,0,0,.3); }
  .mobile-brand { color: white; font-size: 21px; font-weight: 760; letter-spacing: -.06em; }
  .mobile-brand span { color: #b9cbff; }
  .menu-toggle { background: transparent; color: white; border: 1px solid rgba(255,255,255,.5); border-radius: 4px; padding: 9px 12px; cursor: pointer; font-size: 14px; }
  .menu-symbol { margin-left: 10px; }
  .site-shell { display: block; }
  .sidebar { position: fixed; left: 0; top: 64px; bottom: 0; height: calc(100dvh - 64px); width: min(320px,85vw); min-height: 0; overflow: auto; transform: translateX(-105%); transition: transform .24s ease; z-index: 70; padding: 28px; }
  body.menu-open .sidebar { transform: translateX(0); }
  .menu-backdrop { position: fixed; z-index: 65; inset: 64px 0 0; background: rgba(0,0,0,.7); }
  body.menu-open .menu-backdrop { display: block; }
  #main-content { padding: 0 clamp(18px,5vw,45px); }
  .content-section { scroll-margin-top: 76px; }
  .research-theme { scroll-margin-top: 80px; }
  .home-section { padding-top: 42px; }
  .hero-grid { grid-template-columns: minmax(0,1.35fr) minmax(220px,.75fr); }
}
@media (max-width: 690px) {
  .section-tag { margin-bottom: 29px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-text { order: 1; }
  .profile-photo { order: 2; justify-self: start; width: min(100%,420px); }
  .bio p { font-size: 15px; }
  h1 { font-size: 58px; }
  .home-secondary { margin-top: 45px; }
  .interests-grid { grid-template-columns: 1fr; }
  .interest-card { min-height: 120px; }
  .home-bottom-grid { grid-template-columns: 1fr; gap: 34px; }
  .contact-block { grid-template-columns: 1fr; gap: 4px; }
  .content-section:not(.home-section) { padding-top: 57px; }
  .figure-grid.grid-two { grid-template-columns: 1fr; }
  .figure-grid.grid-four { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .theme-heading { grid-template-columns: 38px 1fr; gap: 10px; }
  .theme-index { font-size: 26px; }
  .theme-heading h3 { font-size: 26px; }
  .theme-body { margin-left: 0; }
  .media-section-title { font-size: 10px; gap: 9px; }
  .publication-item { grid-template-columns: 47px 1fr; gap: 12px; }
  .group-heading h3 { font-size: 24px; }
  .talk-item { grid-template-columns: 55px 1fr; gap: 13px; }
  .teaching-row,.activity-row { grid-template-columns: 1fr; gap: 5px; }
  .student-row { grid-template-columns: 1fr; gap: 10px; }
  .student-type { text-align: left; }
}
@media (max-width: 430px) {
  #main-content { padding: 0 18px; }
  .profile-links { gap: 7px; }
  .profile-link { padding: 9px 9px; }
  .figure-grid.grid-four { grid-template-columns: 1fr; }
  .section-headline { font-size: 44px; }
  .group-heading { align-items: start; }
  .group-heading>span { font-size: 10px; }
  .talk-details h4 { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
@media print {
  .sidebar,.mobile-header,.menu-backdrop,.image-dialog { display: none !important; }
  .site-shell { display: block; }
  #main-content { padding: 0 20px; background: white; color: black; }
  .content-section { break-inside: avoid-page; }
}

/* Multi-page navigation: research sections remain together on research.html. */
.single-page-section { min-height: calc(100vh - 90px); border-bottom: 0; }
.research-jumpnav { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0 35px; }
.research-jumpnav a { display: inline-block; padding: 10px 14px; font-size: 13px; font-weight: 690; line-height: 1.4; border: 1px solid #506995; border-radius: 4px; color: #e8edff; background: #182238; transition: background-color .18s, border-color .18s; }
.research-jumpnav a:hover { color: white; border-color: #a4bdff; background: #2451f4; }
@media (max-width: 690px) { .research-jumpnav { margin: 22px 0 26px; gap: 8px; } .research-jumpnav a { padding: 9px 11px; } }


/* 02 / Cobalt Blueprint — engineered grids, highlighted research */
:root{--cobalt:#2055ff;--ink:#090f20;--panel:#121f39;--panel-2:#192e55;--text:#f8faff;--muted:#c8d4e9;--rule:#355581;}
.sidebar{background:linear-gradient(180deg,#12389b 0%,#071b52 100%);border-right:1px solid #4589ff;padding-left:32px;}
.sidebar-identity strong{font-weight:820;letter-spacing:-.077em}.site-nav a.active{background:#1f54ef;border-left-color:#93b5ff;margin-right:-12px;padding-right:12px}
#main-content{background:linear-gradient(90deg,rgba(56,102,231,.05) 1px,transparent 1px) 0 0/42px 42px,linear-gradient(rgba(56,102,231,.055) 1px,transparent 1px) 0 0/42px 42px,radial-gradient(ellipse at 84% 0, #183265 0%, #090f20 48%,#080d18 100%);}
h1{font-weight:860;letter-spacing:-.079em;font-size:clamp(60px,6.3vw,90px)}
.section-tag{color:#8eaeff}.tag-rule{background:#2b559e}.eyebrow,.interest-number{color:#8cb1ff}
.bio p{color:#d5dff0;line-height:1.92}.bio strong{color:#fff}
.profile-photo img{border:3px solid #7ba4ff;box-shadow:13px 13px 0px #123a98;filter:saturate(.98)}.profile-photo figcaption{color:#8aa6d3}
.profile-link{background:rgba(27,51,91,.75);border-color:#4a78bd;box-shadow:inset 0 1px rgba(255,255,255,.08)}.profile-link.cv-link{background:#225bff}
.mini-line{height:2px;width:55px;background:#7aa0ff}
.interest-card{background:linear-gradient(147deg,#123b88,#102342 73%);border:1px solid #4378ce;border-radius:0;min-height:182px;position:relative;overflow:hidden}
.interest-card:after{content:"";width:66px;height:66px;border:1px solid #5d89c6;position:absolute;right:-28px;top:-28px;transform:rotate(45deg);opacity:.5}
.interest-card h3{font-size:clamp(16px,1.42vw,21px)}
.contact-block{border-color:#4876b4}.recent-entry{border-color:#385587}


/* Theme toggle: the dark palette is Cobalt Blueprint B. */
:root { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light; }
.theme-toggle {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; margin: 11px 0 7px; padding: 11px 13px;
  border: 1px solid rgba(188, 210, 255, .74); border-radius: 5px;
  background: rgba(21, 65, 156, .42); color: white;
  font-size: 14px; font-weight: 680; cursor: pointer;
  transition: background .18s, border-color .18s;
}
.theme-toggle:hover { background: rgba(48, 103, 225, .65); border-color: white; }
.theme-toggle:focus-visible { outline: 3px solid white; outline-offset: 3px; }
.theme-toggle-icon { font-size: 17px; line-height: 1; }

/* Copy citation buttons sit alongside paper/DOI/software links. */
.bibtex-copy {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 28px; margin: 6px 8px 0 0; padding: 4px 10px;
  color: #dce8ff; background: rgba(36,81,244,.16);
  border: 1px solid #587dbe; border-radius: 4px;
  font-size: 13px; line-height: 1.3; font-weight: 680;
  cursor: pointer;
}
.bibtex-copy:hover { color: white; background: #2759d6; border-color: #9cbbff; }
.bibtex-copy.copied { border-color: #9bb9ff; color: white; }
.bibtex-copy:disabled { cursor: default; opacity: .9; }
.copy-symbol { font-size: 15px; line-height: 1; }

/* Keep sidebar identity and role readable in both themes. */
.sidebar-role { color: #f6f9ff; }

/* Light mode: keep the cobalt sidebar; lighten the content surface and text. */
html[data-theme="light"] {
  --cobalt: #2552d7;
  --cobalt-bright: #2456bb;
  --cobalt-light: #1e4eaf;
  --ink: #f7f9fd;
  --panel: #eef3fc;
  --panel-2: #e7eef9;
  --text: #172743;
  --muted: #53647d;
  --secondary: #61738c;
  --rule: #c5d2e4;
  --focus: #2157d8;
}
html[data-theme="light"] #main-content {
  background:
    linear-gradient(90deg,rgba(38,83,169,.035) 1px,transparent 1px) 0 0/42px 42px,
    linear-gradient(rgba(38,83,169,.035) 1px,transparent 1px) 0 0/42px 42px,
    radial-gradient(ellipse at 86% 0,#e5efff 0%,#f7f9fd 54%,#fff 100%);
}
html[data-theme="light"] #main-content a:hover { color: #1848b1; }
html[data-theme="light"] .content-section { border-bottom-color: #cdd8ea; }
html[data-theme="light"] .section-tag,
html[data-theme="light"] .eyebrow,
html[data-theme="light"] .interest-number,
html[data-theme="light"] .theme-kicker,
html[data-theme="light"] .group-heading>span,
html[data-theme="light"] .associated-work>p,
html[data-theme="light"] .contact-label,
html[data-theme="light"] .talk-label,
html[data-theme="light"] .year-heading,
html[data-theme="light"] .date-column,
html[data-theme="light"] .publication-year,
html[data-theme="light"] .talk-date span,
html[data-theme="light"] .student-type,
html[data-theme="light"] .theme-index,
html[data-theme="light"] .recent-entry>span { color: #2453bb; }
html[data-theme="light"] .tag-rule,
html[data-theme="light"] .soft-line { background: #aebed7; }
html[data-theme="light"] .eyebrow-divider { color: #7789a5; }
html[data-theme="light"] .bio p { color: #3d4d67; }
html[data-theme="light"] .bio strong { color: #192b48; }
html[data-theme="light"] .profile-link {
  color: #1e437f; background: rgba(255,255,255,.88); border-color: #b9cbe5;
  box-shadow: 0 2px 6px rgba(28,68,138,.06);
}
html[data-theme="light"] a.profile-link:hover { background: #e4edff; border-color: #7396dc; color: #143e9b; }
html[data-theme="light"] .profile-link.cv-link { background: #2552dc; border-color: #2552dc; color: white; }
html[data-theme="light"] a.profile-link.cv-link:hover { background: #1945bd; color: white; }
html[data-theme="light"] .profile-photo img { border-color: #4c74bd; box-shadow: 13px 13px 0 #d3e2ff; }
html[data-theme="light"] .profile-photo figcaption { color: #576d8c; }
html[data-theme="light"] .mini-line { background: #3261d5; }
html[data-theme="light"] .interest-card {
  color: #162b4e; background: linear-gradient(145deg,#ffffff,#e7efff);
  border-color: #a9c1e9; box-shadow: 0 5px 18px rgba(44,80,155,.045);
}
html[data-theme="light"] .interest-card:after { border-color: #8ba9dd; }
html[data-theme="light"] .interest-card:hover { border-color: #3468d7; color: #173569; }
html[data-theme="light"] .interest-arrow { color: #2455c0; }
html[data-theme="light"] .home-feature p,
html[data-theme="light"] .theme-body p,
html[data-theme="light"] .publication-authors,
html[data-theme="light"] .student-row p,
html[data-theme="light"] .activity-row p,
html[data-theme="light"] .talk-details>p { color: #44536b; }
html[data-theme="light"] .recent-entry,
html[data-theme="light"] .publication-item,
html[data-theme="light"] .talk-item,
html[data-theme="light"] .teaching-row,
html[data-theme="light"] .student-row,
html[data-theme="light"] .activity-row { border-bottom-color: #d0dbeb; }
html[data-theme="light"] .text-action,
html[data-theme="light"] .resource-chip,
html[data-theme="light"] .contact-small a,
html[data-theme="light"] .site-footer a { color: #2255bb; }
html[data-theme="light"] .resource-chip:hover { color: #123d98; }
html[data-theme="light"] .contact-block,
html[data-theme="light"] .research-theme { border-color: #c3d0e4; }
html[data-theme="light"] .contact-details p,
html[data-theme="light"] .science-figure figcaption span,
html[data-theme="light"] .animation-figure figcaption span,
html[data-theme="light"] .publication-venue,
html[data-theme="light"] .subtle-text,
html[data-theme="light"] .media-intro { color: #5a6b85; }
html[data-theme="light"] .section-lede { color: #53637c; }
html[data-theme="light"] .media-section-title { color: #2b56a5; }
html[data-theme="light"] .media-section-title span:last-child { color: #667794; }
html[data-theme="light"] .figure-open,
html[data-theme="light"] .animation-figure img { border-color: #b1c5e2; }
html[data-theme="light"] .associated-work { border-color: #c6d4e8; }
html[data-theme="light"] .group-heading { border-bottom-color: #afc0da; }
html[data-theme="light"] .talk-date strong,
html[data-theme="light"] .teaching-courses p { color: #203250; }
html[data-theme="light"] .dot-separator { color: #6d86b4; }
html[data-theme="light"] .site-footer { color: #6b7c95; }
html[data-theme="light"] .research-jumpnav a {
  background: #e7eefb; border-color: #b3c6e5; color: #244576;
}
html[data-theme="light"] .research-jumpnav a:hover { color: white; border-color: #2455c7; background: #2455c7; }
html[data-theme="light"] .bibtex-copy {
  color: #204b9b; background: #e9f0ff; border-color: #abc1e8;
}
html[data-theme="light"] .bibtex-copy:hover,
html[data-theme="light"] .bibtex-copy.copied { color: white; background: #2453c3; border-color: #2453c3; }
html[data-theme="light"] .image-dialog { background: #fbfcff; color: #1c2943; border-color: #b0c5df; }
html[data-theme="light"] .dialog-top { border-color: #ccd9ec; }
html[data-theme="light"] .image-dialog::backdrop { background: rgba(13,30,68,.72); }
@media print { .theme-toggle { display:none !important; } }


/* Lorenz '63 animation — full width, no cropping */

.animation-figure {
  display: block;
  width: 100%;
  max-width: none;
  margin: 0;
  overflow: visible;
}

.animation-figure video {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center;
  margin: 0 auto;
}
