/* A clean, original academic portfolio inspired by content-first Quarto sites. */
:root {
  --brand: #3b3f9c;
  --brand-dark: #292e7a;
  --ink: #1d2940;
  --muted: #5f6e81;
  --soft: #f4f6fb;
  --line: #e5e9f2;
  --link-hover: #292e7a;
  --hero-text: #45536a;
  --button-bg: #fff;
  --button-border: #cbd2e8;
}
.quarto-dark {
  --brand: #aeb8ff;
  --brand-dark: #232654;
  --ink: #edf0fa;
  --muted: #bec7da;
  --soft: #2b3044;
  --line: #424b64;
  --link-hover: #dce3ff;
  --hero-text: #c8d0e3;
  --button-bg: #242839;
  --button-border: #626e94;
}
html { scrollbar-gutter: stable; }
body { color: var(--ink); font-family: Inter, "Segoe UI", system-ui, sans-serif; }
.navbar, .navbar.navbar-dark { background: var(--brand-dark) !important; }
.navbar .nav-link, .navbar .navbar-brand { color: #fff !important; }
.navbar .nav-link:hover { color: #dce3ff !important; }
html:not([lang="nl"]) .navbar-nav.me-auto > .nav-item:nth-child(even) { display:none; }
html[lang="nl"] .navbar-nav.me-auto > .nav-item:nth-child(odd) { display:none; }
.footer-nl { display:none; }
html[lang="nl"] .footer-en { display:none; }
html[lang="nl"] .footer-nl { display:inline; }
.quarto-color-scheme-toggle > i { display: none; }
.quarto-color-scheme-toggle::before { content: "🌙"; font-size: 1.15rem; line-height: 1; }
.quarto-color-scheme-toggle.alternate::before { content: "☀️"; }
a { color: var(--brand); }
a:hover { color: var(--link-hover); }
h1,h2,h3 { letter-spacing: -.025em; }
h1 { font-weight: 760; }
h2 { font-weight: 700; }
h2.publication-section,
.publication-section > h2,
h2.projects-section,
.projects-section > h2 { font-size: 1.4rem; }
.home-wrap { max-width: 1320px; margin: 0 auto; padding: 2.6rem .85rem 4rem; }
.hero { display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 3.3rem; align-items: center; margin: 0 0 1.5rem; }
.person-panel { position: relative; isolation: isolate; overflow: hidden; text-align: center; border-right: 1px solid var(--line); padding: 0 2.6rem 0 .6rem; }
.person-panel .acoustic-wave-background { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; border: 0; opacity: .3; pointer-events: none; }
.person-panel > :not(.acoustic-wave-background) { position: relative; z-index: 1; }
.person-panel .profile-photo-frame { width: min(196px, 100%); aspect-ratio: 1; overflow: hidden; border-radius: 50%; margin: 0 auto 1.1rem; }
.person-panel .profile-photo-frame p { margin: 0; }
.person-panel .profile-photo { display: block; box-sizing: border-box; width: 100%; aspect-ratio: 1; height: auto; padding: 4px; object-fit: contain; background: #fff; transform: translateY(6%) scale(1.2144); }
.person-panel h3 { font-size: 1.55rem; margin: .25rem 0 .15rem; }
.credentials { font-size: .88rem; font-weight: 700; color: var(--brand); }
.person-subtitle { display:block; font-size: .88rem; color: var(--muted); line-height: 1.6; margin: .8rem 0 1.1rem; }
.hero-copy { padding: .5rem 0; }
.hero-copy .eyebrow { color: var(--brand); font-size: .75rem; font-weight: 750; letter-spacing: .19em; }
.hero-copy h1 { max-width: 820px; line-height: 1.13; font-size: clamp(2rem, 3.7vw, 3.25rem); margin: 1.0rem 0 1.25rem; }
.hero-copy p { max-width: 980px; font-size: 1.04rem; color: var(--hero-text); line-height: 1.8; }
.button { display:inline-block; border-radius: .4rem; padding: .65rem 1rem; margin: .3rem .25rem .3rem 0; font-weight: 650; font-size: .87rem; text-decoration: none; transition: transform .12s; }
.button:hover { text-decoration:none; transform:translateY(-1px); }
.button-primary { color:white !important; background:var(--brand-dark); border:1px solid var(--brand-dark); }
.button-outline { color:var(--brand) !important; border:1px solid var(--button-border); background:var(--button-bg); }
.button-outline:hover { background:var(--soft); }
.spotlight-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1.25rem; }
.spotlight-card { display:grid; grid-template-columns:minmax(150px,34%) minmax(0,1fr); min-height:250px; overflow:hidden; border:1px solid var(--line); border-radius:.85rem; background:var(--soft); box-shadow:0 8px 20px rgba(32,38,75,.07); }
.spotlight-card > p:first-child { position:relative; z-index:0; height:250px; overflow:hidden; margin:0; }
.spotlight-card-image { display:block; width:100%; height:100%; object-fit:cover; object-position:center 30%; }
.spotlight-card-content { position:relative; z-index:1; align-self:center; padding:1.1rem 1.25rem; color:var(--ink); }
.spotlight-card-content h3 { margin:.1rem 0 .65rem; color:var(--brand); font-size:1.15rem; }
.spotlight-card-content p { color:var(--hero-text); }
.spotlight-card-content p:last-child { margin-bottom:0; }
.spotlight-card-content a { color:var(--brand); }
.spotlight-card-content a:hover { color:var(--link-hover); }
.monopole-wave-canvas {
  position: fixed;
  inset: 0;
  z-index: 40;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.feature-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:1rem; }
.feature-tile { background:var(--soft); border:1px solid var(--line); border-radius:.65rem; padding:1.2rem 1.25rem; }
.feature-tile h3 { font-size:1.12rem; margin:.1rem 0 .65rem; }
.feature-tile p { font-size:.93rem; line-height:1.65; }
.active-project-grid,
.spotlight-grid {
  perspective: 1200px;
  gap: 1.25rem;
}
.active-project-grid .feature-tile,
.spotlight-card {
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, var(--line));
  border-radius: .85rem;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--button-bg) 88%, var(--brand) 12%), var(--soft));
  box-shadow:
    0 14px 28px rgba(32, 38, 75, .10),
    0 4px 8px rgba(32, 38, 75, .06),
    inset 0 1px 0 rgba(255, 255, 255, .55);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx)) rotateY(var(--ry)) translateZ(0);
  transition: transform .18s ease-out, box-shadow .18s ease-out, border-color .18s ease-out;
  will-change: transform;
}
.active-project-grid .feature-tile { min-height: 190px; }
.active-project-grid .feature-tile::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 180px;
  height: 180px;
  right: -95px;
  top: -110px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 24%, transparent), transparent 68%);
  transform: translateZ(-12px);
  transition: transform .18s ease-out;
}
.active-project-grid .feature-tile::after,
.spotlight-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  background: radial-gradient(circle at var(--shine-x, 50%) var(--shine-y, 50%), rgba(255,255,255,.24), transparent 38%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease-out;
}
.active-project-grid .feature-tile:hover,
.active-project-grid .feature-tile:focus-within,
.spotlight-card:hover,
.spotlight-card:focus-within {
  border-color: color-mix(in srgb, var(--brand) 38%, var(--line));
  box-shadow:
    0 24px 38px rgba(32, 38, 75, .16),
    0 8px 14px rgba(32, 38, 75, .09),
    inset 0 1px 0 rgba(255, 255, 255, .65);
}
.active-project-grid .feature-tile:hover::after,
.active-project-grid .feature-tile:focus-within::after,
.spotlight-card:hover::after,
.spotlight-card:focus-within::after { opacity: 1; }
.active-project-grid .feature-tile h3,
.active-project-grid .feature-tile p,
.active-project-grid .feature-tile a {
  position: relative;
  z-index: 3;
  transform: translateZ(18px);
}
.active-project-grid .feature-tile h3 {
  margin-top: .15rem;
  font-size: 1.16rem;
  line-height: 1.25;
}
.active-project-grid .feature-tile p {
  margin-bottom: .75rem;
  line-height: 1.58;
  transform: translateZ(12px);
}
.active-project-grid .feature-tile a {
  display: inline-block;
  font-weight: 700;
  text-decoration: none;
  transform: translateZ(24px);
}
.active-project-grid .feature-tile a::after { content: " \2192"; }
.active-project-grid .feature-tile a:hover { text-decoration: underline; }
.quarto-dark .active-project-grid .feature-tile,
.quarto-dark .spotlight-card {
  box-shadow:
    0 16px 30px rgba(0, 0, 0, .26),
    0 5px 10px rgba(0, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .08);
}
@media (prefers-reduced-motion: reduce) {
  .active-project-grid .feature-tile,
  .active-project-grid .feature-tile::before,
  .active-project-grid .feature-tile::after,
  .spotlight-card,
  .spotlight-card::after {
    transition: none;
  }
}
.quarto-title-block .title { font-weight:750; }
.nav-footer { border-top:1px solid var(--line); }
@media (max-width: 800px) { .hero { grid-template-columns:1fr; gap:1.4rem; } .person-panel { border-right:0; border-bottom:1px solid var(--line); padding:0 0 1.6rem; } .hero-copy { text-align:left; } .feature-grid, .spotlight-grid { grid-template-columns:1fr; } .home-wrap { padding-top:1.2rem; } }
#quarto-content:not(:has(.home-wrap)) > main.content { padding-inline: .85rem; }
@media (min-width: 768px) {
  #quarto-content:not(:has(.home-wrap)) > main.content {
    grid-column: screen-start-inset / screen-end-inset;
    width: min(100%, calc(50vw + 567.5px));
    margin-inline: auto;
  }
  #quarto-content:not(:has(.home-wrap)) > #quarto-margin-sidebar {
    grid-column: screen-start-inset / screen-end-inset;
    justify-self: end;
    width: 164px;
    margin-right: calc(max(0px, (100% - (50vw + 567.5px)) / 2) + .85rem);
  }
  #quarto-content:not(:has(.home-wrap)) > #quarto-margin-sidebar ~ main.content {
    padding-right: calc(164px + 2.45rem);
  }
  #quarto-content:not(:has(.home-wrap)) > #quarto-margin-sidebar:has(> #TOC) {
    width: calc(164px + 2cm);
  }
  #quarto-content:not(:has(.home-wrap)) > #quarto-margin-sidebar:has(> #TOC) ~ main.content {
    padding-right: calc(164px + 2.45rem + 2cm);
  }
}
@media (min-width: 992px) {
  #quarto-content:not(:has(.home-wrap)) > #quarto-margin-sidebar { width: 215px; }
  #quarto-content:not(:has(.home-wrap)) > #quarto-margin-sidebar ~ main.content {
    padding-right: calc(215px + 2.45rem);
  }
  #quarto-content:not(:has(.home-wrap)) > #quarto-margin-sidebar:has(> #TOC) {
    width: calc(215px + 2cm);
  }
  #quarto-content:not(:has(.home-wrap)) > #quarto-margin-sidebar:has(> #TOC) ~ main.content {
    padding-right: calc(215px + 2.45rem + 2cm);
  }
}
@media (min-width: 801px) {
  #quarto-content.page-layout-full > main.content.column-page { grid-column: screen-start-inset / screen-end-inset; }
  /* Half the previous 1135px content width leaves half the side margin. */
  .home-wrap { width: min(100%, calc(50vw + 567.5px)); max-width: none; }
}
