/* A shared, quiet header that reserves room for the scroll-revealed name. */
.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: max(12px, env(safe-area-inset-left, 0px));
  padding: 10px 16px;
  border: 2px solid #edb1bd;
  border-radius: 8px;
  background: #11151e;
  color: #fff;
  font: 500 15px/1.4 "IBM Plex Sans", sans-serif;
  transform: translateY(calc(-100% - 12px));
}
.skip-link:focus { transform: none; outline: 2px solid #fff; outline-offset: 2px; }
main[tabindex="-1"] { scroll-margin-top: 72px; }
.site-header, .sidebar { font-family: "IBM Plex Sans", sans-serif; }
.site-header, .pdf-cv .site-header { position: fixed; top: 0; left: 0; right: 0; height: 56px; }
.page-shell, .pdf-cv .page-shell { padding-top: 56px; }
[data-home-page] .page-shell { padding-top: 0; }
.site-header[data-home-header] { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 160ms ease; }
.site-header[data-home-header].visible { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-wrap, .pdf-cv .nav-wrap { max-width: 1100px; height: 56px; padding-block: 6px; gap: 20px; }
.nav-left { flex: 1 1 auto; min-width: 0; gap: 10px; }
.nav-right { flex: 0 0 auto; gap: 9px; }
.header-identity { min-width: 0; margin-left: 0; overflow: visible; opacity: 1; transform: none; transition: none; pointer-events: auto; }
.header-identity[data-scroll-reveal] { opacity: 0; transform: translateY(-4px); transition: opacity 180ms ease, transform 180ms ease; pointer-events: none; }
.header-identity[data-scroll-reveal].visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.site-header[data-home-header] .header-identity { opacity: 1; transform: none; transition: none; }
.header-identity .header-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; line-height: 1.65; text-decoration: none; }
.header-identity .header-name:hover { color: #fff; }
.header-identity .header-name:focus-visible { outline: 2px solid #edb1bd; outline-offset: 3px; border-radius: 3px; }
.header-name .egg-trigger { line-height: 1; }
.header-name .egg-mouth { bottom: -0.18em; border-bottom-width: 0.08em; }
.site-header .header-name .egg-trigger.egg-active .egg-o { color: #f5c56b; }
.site-header .header-name .egg-mouth { border-color: #f5c56b; }
.header-identity .header-role { display: none; }
.pdf-cv .header-identity { display: inline-flex; }
.desktop-nav { display: none; }
.nav-right a:focus-visible { outline: 2px solid #edb1bd; outline-offset: 3px; }
.nav-right .social-icon[href^="mailto:"] svg { width: 1.34rem; height: 1.34rem; }
.nav-right .social-icon {
  position: relative;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
}
.nav-right .social-icon:hover { background: transparent; }
.nav-right .social-icon::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff0a;
  pointer-events: none;
}
.nav-right .social-icon img, .nav-right .social-icon svg { position: relative; z-index: 1; }
.nav-right .github-image img { width: 32px; height: 32px; }
.nav-right .linkedin-image img { width: 23px; height: 23px; }
.nav-right .linkedin-image::before { border-color: #0274b3; background: #0274b3; }
.nav-right .scholar-icon::before { border-color: #4285f4; background: #4285f4; }
.nav-right .scholar-icon svg { width: 22px; height: 22px; fill: currentColor; }
.nav-right .social-icon:is(:hover, :focus-visible)::before { border-color: var(--accent-soft); }
.menu-toggle { box-sizing: border-box; padding: 0; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; color: #d8e2fd; flex: 0 0 36px; width: 36px; height: 36px; border: 1px solid #ffffff16; border-radius: 9px; background: #ffffff04; gap: 4px; }
.menu-toggle span { display: block; flex: 0 0 auto; background: currentColor; width: 16px; height: 1.5px; border-radius: 2px; }
.menu-toggle span:nth-child(2) { width: 12px; margin: 0 4px 0 0; }
.menu-toggle:hover, .menu-toggle:focus-visible { background: #ffffff0c; border-color: #ffffff30; }
.menu-toggle:focus-visible, .menu-close:focus-visible, .sidebar-nav a:focus-visible { outline: 2px solid #edb1bd; outline-offset: 3px; }
.sidebar { width: min(336px, 88vw); height: 100dvh; padding: 26px 22px; gap: 0; background: #151a25; border-right: 1px solid #ffffff14; box-shadow: 12px 0 50px #00000026; }
.sidebar-head { padding: 0 0 2px 8px; }
.sidebar-head > p { font: 600 20px/1.3 "IBM Plex Serif", Georgia, serif; color: #f1f0f3; }
.sidebar-subtitle { margin: 0 0 28px 8px; color: #929baa; font-size: 12px; }
.menu-close { border: 1px solid #ffffff12; border-radius: 8px; width: 32px; height: 32px; font-size: 25px; color: #aeb6c5; }
.menu-close:hover { background: #ffffff08; }
.sidebar-nav { gap: 5px; }
.sidebar-nav a { padding: 13px 14px; border: 1px solid transparent; border-radius: 8px; font-size: 15px; font-weight: 500; gap: 13px; transition: color 120ms ease, background 120ms ease; }
.sidebar-nav a::before { content: attr(data-nav-index) !important; font: 400 11px/1.4 "IBM Plex Sans", sans-serif; width: 20px; color: #778193; }
.sidebar-nav a:hover { transform: none; background: #ffffff05; }
.sidebar-nav a[aria-current] { background: #ffffff06; border-color: #ffffff0b; color: #f3bdca; }
.sidebar-nav a[aria-current]::before { color: #c38d9b; }
body.menu-open .page-shell { filter: blur(2px); }
.nav-left .nav-home, .nav-left .menu-toggle { display: none; }
@media (width < 1024px) {
  .site-header, .pdf-cv .site-header {
    height: 56px;
    background: #11151e;
    border-bottom: 1px solid #3b465f80;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* One floating navigation bar, shared by phones, tablets, and desktops. */
.page-shell, .pdf-cv .page-shell { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
html { scroll-padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
.mobile-bottom-nav {
  position: fixed;
  z-index: 25;
  left: calc(12px + env(safe-area-inset-left, 0px));
  right: calc(12px + env(safe-area-inset-right, 0px));
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  max-width: 460px;
  margin-inline: auto;
  gap: 2px;
  padding: 1px 5px;
  border: 1px solid rgba(235, 243, 255, 0.09);
  border-radius: 24px;
  overflow: hidden;
  clip-path: inset(0 round 24px);
  background-color: rgba(24, 30, 43, 0.72);
  background-image: linear-gradient(165deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.008) 48%, rgba(255, 255, 255, 0.025));
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 2px #ffffff1f, inset 0 -1px 2px #ffffff06;
  font-family: "IBM Plex Sans", sans-serif;
  isolation: isolate;
}
.mobile-bottom-nav::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #ffffff85, #ffffff1f 22%, #ffffff04 46%, #ffffff0b 68%, #ffffff47);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.mobile-bottom-nav a {
  position: relative;
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  border-radius: 22px;
  background: transparent;
  isolation: isolate;
  color: #edf1fa;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}
.mobile-bottom-nav a::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 6px 0;
  border: 1px solid transparent;
  border-radius: 16px;
  pointer-events: none;
}
.mobile-bottom-nav a[aria-current] { color: #fff; }
.mobile-bottom-nav a[aria-current]::before {
  border-color: #ffffff1f;
  background: linear-gradient(180deg, #ffffff19, #ffffff0d);
  box-shadow: inset 0 1px 0 #ffffff1f, 0 2px 6px #00000014;
}
.mobile-bottom-nav a:hover { color: #fff; }
.mobile-bottom-nav a:hover::before { background-color: #ffffff14; }
.mobile-bottom-nav a:focus-visible { outline: none; }
.mobile-bottom-nav a:focus-visible::before { outline: 2px solid #edb1bd; outline-offset: 1px; }
@media (max-width: 640px) {
  .nav-wrap, .pdf-cv .nav-wrap {
    padding: 6px max(12px, env(safe-area-inset-right, 0px)) 6px max(12px, env(safe-area-inset-left, 0px));
    gap: 10px;
  }
  .nav-home { display: none; }
  .header-identity .header-name { font-size: 14px; }
  .nav-right { gap: 7px; }
}
@media (max-width: 360px) {
  .header-identity .header-name { font-size: 12px; }
  .mobile-bottom-nav a { padding: 0 6px; font-size: 12px; }
}
@media (max-width: 600px), (max-width: 1023px) and (max-height: 500px) {
  .nav-right { gap: 2px; }
}
@media (max-width: 600px) {
  .site-header .nav-right .social-icon { width: 36px; }
  .site-header .nav-right .social-icon::before { inset: 6px 2px; }
}
@media (max-width: 360px) { .site-header .nav-right { gap: 0; } }
@media (min-width: 641px) {
  .mobile-bottom-nav { max-width: 500px; }
  .mobile-bottom-nav a { font-size: 14px; padding-inline: 12px; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mobile-bottom-nav { background-color: #222a3b; }
}
@media (prefers-reduced-transparency: reduce) { .mobile-bottom-nav { background-color: #222a3b; } }
@media (prefers-reduced-motion: reduce) {
  .sidebar, .site-header[data-home-header], .header-identity[data-scroll-reveal], .header-name .egg-o, .header-name .egg-mouth { transition: none; }
}
@media print {
  .site-header, .mobile-bottom-nav, .skip-link { display: none; }
  .page-shell, .pdf-cv .page-shell { padding-top: 0; padding-bottom: 0; }
}
