@font-face {
  font-family: "Quadrant Mono";
  src: url("QuadrantTextMono-Regular.otf") format("opentype"),
       local("QuadrantText Mono"), local("QuadrantTextMono-Regular"),
       local("Quadrant Mono"), local("QuadrantMono");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --overlay-bg: rgba(0, 0, 0, 0.75);
}

* { box-sizing: border-box; }

html, body {
  min-height: 100%;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar { display: none; }
::-webkit-scrollbar { width: 0; height: 0; }

body {
  margin: 0;
  background: #000000;
  color: #fff;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-weight: 200;
  overflow-x: hidden;
  transition: background-color 0.35s ease, color 0.35s ease, opacity 0.45s ease;
}

body, body * {
  cursor: default;
}

::selection {
  color: #00c84f;
  background: transparent;
}
::-moz-selection {
  color: #00c84f;
  background: transparent;
}

body:not(.page-loaded) { opacity: 0; }
.page-transition { opacity: 0; }
.page-transition.page-loaded { opacity: 1; }
.page-transition.page-fading { opacity: 0; }

img {
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: default;
}

a:hover { text-decoration: underline; }

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 30px;
  background: transparent;
  border-bottom: none;
  z-index: 40;
  font-family: "Quadrant Mono", monospace;
  font-size: 16px;
  color: #fff;
  mix-blend-mode: difference;
}

.site-header .header-group {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
  gap: 0;
  font-weight: 20;
  letter-spacing: 0.004em;
  flex-wrap: nowrap;
}

.site-header .header-item {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-header .header-item .brackets {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.site-header .header-item .marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  color: inherit;
  font-size: 16px;
  line-height: 1;
  margin: 0 2px;
  position: relative;
}

.site-header .header-item .marker::before { content: attr(data-letter); }

.site-header .header-item .marker::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.site-header .header-item.active .marker::after { opacity: 1; }
.site-header .header-item.active .marker::before { content: ""; }

.site-header .header-item a {
  color: inherit;
  text-decoration: none;
  cursor: default;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.site-header .header-item .brackets { text-decoration: none; }
.site-header .header-item .label { text-decoration: none; }
.site-header .header-item:hover .label,
.site-header .header-item a:hover .label { text-decoration: underline; }

.site-footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 30px;
  background: transparent;
  border-top: none;
  z-index: 40;
  font-family: "Quadrant Mono", monospace;
  font-size: 16px;
  font-weight: 20;
  letter-spacing: 0.004em;
  color: #fff;
  mix-blend-mode: difference;
}

.site-footer .footer-left { min-width: 1px; }

.site-footer .footer-right {
  display: flex;
  gap: 90px;
  font-weight: 50;
  letter-spacing: 0.008em;
}

.footer-item {
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-item .marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  color: inherit;
  font-size: 18px;
  line-height: 1;
  margin: 0 4px;
  position: relative;
  transition: color 0.15s ease;
}

.footer-item .marker::before { content: attr(data-letter); }

.footer-item .marker::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.footer-item.active .marker::after { opacity: 1; }
.footer-item.active .marker::before { content: ""; }

.overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  z-index: 30;
  pointer-events: none;
  isolation: isolate;
}

.overlay::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay-bg);
  backdrop-filter: blur(18px) saturate(140%);
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 0.35s ease, background 0.35s ease, backdrop-filter 0.35s ease;
}

.overlay.visible {
  pointer-events: auto;
}

.overlay.visible::before {
  opacity: 1;
}

.overlay-panel {
  width: 100%;
  height: 100%;
  padding: 50px 32px 32px 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  border: none;
  box-shadow: none;
  color: #fff;
  font-family: "Quadrant Mono", monospace;
  font-size: 16px;
  font-weight: 20;
  letter-spacing: 0.004em;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  text-align: left;
  transition: color 0.35s ease, opacity 0.35s ease, transform 0.35s ease;
  mix-blend-mode: difference;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(6px);
}

.overlay-grid {
  display: flex;
  flex-direction: column;
  gap: 100px;
  width: min(95vw, 760px);
  align-self: flex-start;
  padding: 0 30px;
}

.overlay-grid p {
  margin: 0;
  font-size: inherit;
  color: #fff;
  line-height: 1.5;
  mix-blend-mode: difference;
  display: flex;
  flex-direction: column;
  gap: 12px;
  letter-spacing: inherit;
}

.overlay-grid .edu-entry {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.1;
}

.overlay-grid .contact-lines {
  gap: 2px;
}

.overlay-grid .contact-line {
  display: block;
}

.overlay-grid .contact-line.copyable,
.overlay-grid .contact-line.ig-link {
  cursor: pointer;
  text-decoration: underline;
}

.overlay-grid .edu-date { font-weight: 300; display: block; }
.overlay-grid .edu-text { display: block; }
.overlay-grid p strong {
  display: block;
  line-height: 1.4;
  font-weight: inherit;
  margin-bottom: 12px;
}
.overlay.visible .overlay-panel { opacity: 1; transform: translateY(0); }

@media (max-width: 800px) {
  .site-header { height: auto; padding: 8px 10px; }
  .site-header .header-group { gap: clamp(24px, 8vw, 120px); font-size: 16px; }
  .site-footer { padding: 0 10px; }
  .overlay-grid { width: min(96vw, 640px); }
}
