/* ---------- CSS Variables ---------- */

html, body {
  margin: 0;
  padding: 0;
}

:root {
  /* Modern Light Theme Backgrounds */
  --bg: #F4F5FA;
  --bg-raised: rgba(255, 255, 255, 0.85);
  --bg-card: rgba(255, 255, 255, 0.75);

  --ink: #0F172A;
  --ink-soft: #64748B;
  --line: rgba(226, 232, 240, 0.8);

  /* Fluent Pastel Accent Colors */
  --accent: #0284C7;
  --accent-soft: rgba(2, 132, 199, 0.06);
  --accent-glow: rgba(2, 132, 199, 0.12);

  --amber: #D97706;
  --amber-soft: rgba(217, 119, 6, 0.06);

  --radius: 16px;
  --max: 1080px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --card-shadow: 0 4px 24px -2px rgba(0, 0, 0, 0.03);
  --card-shadow-hover: 0 12px 32px -4px rgba(2, 132, 199, 0.08);
}


/* ---------- DARK THEME ---------- */

[data-theme="dark"] {
  --bg: #090D16;
  --bg-raised: rgba(17, 24, 39, 0.85);
  --bg-card: rgba(17, 24, 39, 0.65);

  --ink: #F1F5F9;
  --ink-soft: #94A3B8;
  --line: rgba(30, 41, 59, 0.8);

  --accent: #38BDF8;
  --accent-soft: rgba(56, 189, 248, 0.08);
  --accent-glow: rgba(56, 189, 248, 0.15);

  --amber: #FBBF24;
  --amber-soft: rgba(251, 191, 36, 0.08);

  --card-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.2);
  --card-shadow-hover: 0 12px 30px -4px rgba(56, 189, 248, 0.12);
}


/* ---------- WINDOWS 11 MESH GRADIENT ANIMATION ---------- */

@keyframes meshShift {

  0% {
    background-position:
      0% 0%,
      100% 0%,
      100% 100%,
      0% 100%;

    filter: hue-rotate(0deg);
  }

  50% {
    background-position:
      100% 100%,
      0% 100%,
      0% 0%,
      100% 0%;

    filter: hue-rotate(25deg);
  }

  100% {
    background-position:
      0% 0%,
      100% 0%,
      100% 100%,
      0% 100%;

    filter: hue-rotate(0deg);
  }

}


/* ---------- HERO ANIMATION ---------- */

@keyframes heroIn {
  to {
    opacity: 1;
    transform: none;
  }
}


/* ---------- SCROLL CUE ANIMATION ---------- */

@keyframes cueMove {

  0%,
  100% {
    transform: scaleY(1);
    opacity: 0.3;
    transform-origin: top;
  }

  50% {
    transform: scaleY(0.3);
    opacity: 0.7;
    transform-origin: top;
  }

}


/* ---------- RESET & BASE ---------- */

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: reduce) {

  html {
    scroll-behavior: auto;
  }

  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

}


body {

  background-color: var(--bg);

  color: var(--ink);

  font-family: var(--font-body);

  font-size: 16px;

  line-height: 1.65;

  -webkit-font-smoothing: antialiased;

  overflow-x: hidden;

  position: relative;

  min-height: 100vh;

  transition:
    color 0.4s ease,
    background-color 0.4s ease;
}


/* ---------- MESH BACKGROUND ---------- */

body::before {

  content: "";

  position: fixed;

  inset: 0;

  z-index: -1;

  pointer-events: none;

  background-image:

    radial-gradient(
      at 0% 0%,
      rgba(245, 213, 230, 0.6) 0px,
      transparent 50%
    ),

    radial-gradient(
      at 100% 0%,
      rgba(224, 231, 255, 0.7) 0px,
      transparent 50%
    ),

    radial-gradient(
      at 100% 100%,
      rgba(228, 248, 205, 0.65) 0px,
      transparent 50%
    ),

    radial-gradient(
      at 0% 100%,
      rgba(254, 240, 226, 0.6) 0px,
      transparent 50%
    );

  background-size: 140% 140%;

  filter: blur(40px);

  animation:
    meshShift 18s ease-in-out infinite;
}


/* ---------- DARK MESH ---------- */

[data-theme="dark"] body::before {

  background-image:

    radial-gradient(
      at 0% 0%,
      rgba(88, 28, 135, 0.25) 0px,
      transparent 50%
    ),

    radial-gradient(
      at 100% 0%,
      rgba(30, 58, 138, 0.3) 0px,
      transparent 50%
    ),

    radial-gradient(
      at 100% 100%,
      rgba(20, 83, 45, 0.25) 0px,
      transparent 50%
    ),

    radial-gradient(
      at 0% 100%,
      rgba(120, 53, 15, 0.2) 0px,
      transparent 50%
    );
}


/* ---------- GENERAL ---------- */

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

::selection {
  background: var(--accent-soft);
  color: var(--accent);
}


.wrap {

  max-width: var(--max);

  margin: 0 auto;

  padding: 0 28px;
}


/* ---------- EYEBROW ---------- */

.eyebrow {

  font-family: var(--font-mono);

  font-size: 11px;

  letter-spacing: 0.18em;

  text-transform: uppercase;

  color: var(--ink-soft);

  display: flex;

  align-items: center;

  gap: 10px;
}


.eyebrow::before {

  content: "";

  width: 20px;

  height: 1.5px;

  background: var(--accent);

  display: inline-block;

  border-radius: 2px;
}


/* ============================================
   THEME TOGGLE
   ============================================ */

.theme-toggle {

  background: var(--bg-raised);

  backdrop-filter: blur(12px);

  -webkit-backdrop-filter: blur(12px);

  border: 1px solid var(--line);

  border-radius: var(--radius);

  width: 40px;

  height: 40px;

  cursor: pointer;

  display: flex;

  align-items: center;

  justify-content: center;

  color: var(--ink-soft);

  transition:
    all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  margin-left: 20px;
}


.theme-toggle:hover {

  border-color: var(--accent);

  color: var(--accent);

  box-shadow:
    0 0 15px var(--accent-glow);
}


.theme-toggle svg {

  width: 18px;

  height: 18px;

  fill: currentColor;
}


[data-theme="light"] .theme-toggle .sun,
body:not([data-theme="dark"]) .theme-toggle .sun {
  display: none;
}


[data-theme="dark"] .theme-toggle .moon {
  display: none;
}


/* ============================================
   NAVIGATION
   ============================================ */

header.site {

  position: fixed;

  top: 0;

  left: 0;

  right: 0;

  width: 100%;

  z-index: 50;

  background:
    rgba(244, 245, 250, 0.65);

  backdrop-filter:
    blur(20px) saturate(1.6);

  -webkit-backdrop-filter:
    blur(20px) saturate(1.6);

  border-bottom:
    1px solid var(--line);

  transition:
    background 0.4s ease,
    border-color 0.4s ease;
}


[data-theme="dark"] header.site {

  background:
    rgba(9, 13, 22, 0.65);
}


nav.wrap {

  display: flex;

  align-items: center;

  justify-content: space-between;

  height: 64px;
}


/* ---------- BRAND ---------- */

.brand {

  font-family: var(--font-display);

  font-weight: 700;

  font-size: 18px;

  letter-spacing: -0.02em;
}


.brand span {

  color: var(--accent);

  transition:
    color 0.4s ease;
}


/* ---------- NAV LINKS ---------- */

.nav-links {

  display: flex;

  align-items: center;

  gap: 32px;

  list-style: none;

  font-family: var(--font-mono);

  font-size: 12px;

  letter-spacing: 0.06em;

  text-transform: uppercase;
}


.nav-links a {

  color: var(--ink-soft);

  padding-bottom: 4px;

  border-bottom:
    1.5px solid transparent;

  transition:
    all 0.25s ease;
}


.nav-links a:hover,
.nav-links a:focus-visible {

  color: var(--ink);

  border-bottom-color:
    var(--accent);
}


/* ---------- MOBILE NAV ---------- */

.nav-toggle {

  display: none;

  background: none;

  border:
    1px solid var(--line);

  border-radius: var(--radius);

  width: 40px;

  height: 40px;

  cursor: pointer;
}


.nav-toggle span {

  display: block;

  width: 16px;

  height: 1.5px;

  background: var(--ink);

  margin: 4px auto;

  transition:
    background 0.3s ease;
}


@media (max-width: 820px) {

  .nav-links {

    position: absolute;

    top: 64px;

    left: 0;

    right: 0;

    background: var(--bg-raised);

    backdrop-filter: blur(20px);

    -webkit-backdrop-filter: blur(20px);

    border-bottom:
      1px solid var(--line);

    flex-direction: column;

    gap: 0;

    display: none;

    padding: 8px 0;
  }


  .nav-links.open {
    display: flex;
  }


  .nav-links a {

    padding: 14px 28px;

    width: 100%;

    border-bottom:
      1px solid var(--line);
  }


  .nav-toggle {
    display: block;
  }


  .theme-toggle {

    margin-left: auto;

    margin-right: 12px;
  }

}


/* ============================================
   HERO
   ============================================ */

.hero {

  position: relative;

  padding:
    96px 0 64px;

  min-height: 100vh;

  min-height: 100dvh;

  display: flex;

  flex-direction: column;

  justify-content: center;

  overflow: hidden;
}


#fieldCanvas {

  position: absolute;

  inset: 0;

  width: 100%;

  height: 100%;

  z-index: 0;

  pointer-events: none;
}


.orb {

  position: absolute;

  border-radius: 50%;

  filter: blur(80px);

  pointer-events: none;

  z-index: 0;

  opacity: 0.45;
}


.orb-1 {

  width: 420px;

  height: 420px;

  top: -80px;

  right: -60px;

  background: var(--accent-glow);
}


.orb-2 {

  width: 320px;

  height: 320px;

  bottom: 10%;

  left: -80px;

  background: var(--amber-soft);
}


.orb-3 {

  width: 260px;

  height: 260px;

  bottom: -40px;

  right: 20%;

  background: var(--accent-soft);
}


.hero-content {

  position: relative;

  z-index: 1;
}


.hero-in {

  opacity: 0;

  transform:
    translateY(20px);

  animation:
    heroIn
    0.8s
    cubic-bezier(0.16, 1, 0.3, 1)
    forwards;
}


.d1 {
  animation-delay: 0.05s;
}

.d2 {
  animation-delay: 0.12s;
}

.d3 {
  animation-delay: 0.18s;
}

.d4 {
  animation-delay: 0.25s;
}

.d5 {
  animation-delay: 0.32s;
}

.d6 {
  animation-delay: 0.40s;
}


/* ---------- HERO TITLE ---------- */

.hero-title {

  font-family:
    var(--font-display);

  font-size:
    clamp(2.4rem, 6.5vw, 4.8rem);

  line-height: 1.05;

  letter-spacing:
    -0.035em;

  margin:
    16px 0 0;

  font-weight: 700;
}


.hero-title .line {
  display: block;
}


.hero-title em {

  font-style: normal;

  color: var(--accent);

  transition:
    color 0.4s ease;
}


/* ---------- HERO ROLE ---------- */

.hero .role {

  font-family:
    var(--font-mono);

  font-size: 13px;

  color: var(--ink-soft);

  margin-top: 28px;

  letter-spacing: 0.02em;
}


/* ---------- HERO DESCRIPTION ---------- */

.hero p.lead {

  max-width: 54ch;

  color: var(--ink-soft);

  margin-top: 20px;

  font-size: 17px;

  line-height: 1.7;
}


/* ---------- HERO BUTTONS ---------- */

.hero-cta {

  display: flex;

  gap: 14px;

  margin-top: 40px;

  flex-wrap: wrap;
}


.btn {

  font-family:
    var(--font-mono);

  font-size: 12.5px;

  letter-spacing: 0.04em;

  padding:
    13px 22px;

  border-radius:
    var(--radius);

  display: inline-flex;

  align-items: center;

  gap: 8px;

  transition:
    all 0.3s
    cubic-bezier(0.16, 1, 0.3, 1);

  border:
    1px solid var(--line);

  cursor: pointer;

  position: relative;

  overflow: hidden;

  background:
    var(--bg-raised);

  backdrop-filter:
    blur(12px);

  -webkit-backdrop-filter:
    blur(12px);

  color:
    var(--ink);
}


.btn.primary {

  background:
    var(--accent);

  color: #FFFFFF;

  border-color:
    var(--accent);

  font-weight: 600;
}


.btn.primary:hover {

  transform:
    translateY(-2px);

  box-shadow:
    0 8px 20px
    var(--accent-glow);

  opacity: 0.95;
}


.btn.ghost:hover {

  border-color:
    var(--accent);

  color:
    var(--accent);

  transform:
    translateY(-2px);

  box-shadow:
    0 4px 15px
    var(--accent-glow);
}


/* ---------- SCROLL CUE ---------- */

.scroll-cue {

  position: relative;

  z-index: 1;

  display: flex;

  justify-content: center;

  margin-top: 56px;
}


.scroll-cue span {

  width: 1px;

  height: 40px;

  background:
    var(--ink-soft);

  display: block;

  animation:
    cueMove 2s
    ease-in-out
    infinite;

  opacity: 0.4;
}


/* ============================================
   ORGANIZATION LOGOS
   ============================================ */

.org-row {

  display: flex;

  align-items: center;

  gap: 12px;

  margin-bottom: 10px;
}


/* ---------- REAL LOGO ---------- */

.badge-logo {

  flex: none;

  width: 40px;

  height: 40px;

  border-radius: 12px;

  display: flex;

  align-items: center;

  justify-content: center;

  overflow: hidden;

  background:
    var(--bg-raised);

  border:
    1px solid var(--line);

  backdrop-filter:
    blur(12px);

  -webkit-backdrop-filter:
    blur(12px);

  box-shadow:
    0 2px 10px
    rgba(0, 0, 0, 0.04);

  transition:
    transform 0.3s
    cubic-bezier(0.16, 1, 0.3, 1),

    border-color 0.3s ease,

    box-shadow 0.3s ease,

    background 0.3s ease;
}


/* ---------- LOGO IMAGE ---------- */

.badge-logo img {

  width: 100%;

  height: 100%;

  object-fit: contain;

  padding: 5px;

  display: block;

  transition:
    transform 0.3s
    cubic-bezier(0.16, 1, 0.3, 1);
}


/* ---------- LOGO HOVER ---------- */

.org-row:hover .badge-logo {

  transform:
    translateY(-2px);

  border-color:
    var(--accent);

  box-shadow:
    0 6px 18px
    var(--accent-glow);
}


.org-row:hover .badge-logo img {

  transform:
    scale(1.06);
}


/* ---------- DARK LOGO BOX ---------- */

[data-theme="dark"] .badge-logo {

  background:
    rgba(17, 24, 39, 0.75);
}


/* ---------- LIGHT LOGO BOX ---------- */

[data-theme="light"] .badge-logo {

  background:
    rgba(255, 255, 255, 0.75);
}


/* ============================================
   SECTION SHELL
   ============================================ */

section {

  padding:
    80px 0;

  border-top:
    1px solid var(--line);

  transition:
    border-color 0.4s ease;
}


.section-head {

  display: flex;

  justify-content: space-between;

  align-items: flex-end;

  margin-bottom: 48px;

  gap: 24px;

  flex-wrap: wrap;
}


.section-head h2 {

  font-family:
    var(--font-display);

  font-size:
    clamp(1.6rem, 3.2vw, 2.2rem);

  margin:
    10px 0 0;

  letter-spacing:
    -0.02em;

  font-weight: 700;
}


.section-note {

  max-width: 36ch;

  color:
    var(--ink-soft);

  font-size: 14px;

  text-align: right;

  line-height: 1.6;
}


@media (max-width: 640px) {

  .section-note {
    text-align: left;
  }

}


/* ============================================
   REVEAL ANIMATION
   ============================================ */

.reveal {

  opacity: 0;

  transform:
    translateY(20px);

  transition:
    opacity 0.7s
    cubic-bezier(0.16, 1, 0.3, 1),

    transform 0.7s
    cubic-bezier(0.16, 1, 0.3, 1);
}


.reveal.in {

  opacity: 1;

  transform: none;
}


/* ============================================
   EDUCATION
   ============================================ */

.edu-item {

  display: grid;

  grid-template-columns:
    130px 1fr;

  gap: 28px;

  padding: 8px 0 4px 20px;

  position: relative;
}


.edu-item::before {

  content: "";

  position: absolute;

  left: 0;

  top: 6px;

  bottom: 6px;

  width: 1.5px;

  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--line) 85%,
    transparent 100%
  );
}


.edu-item::after {

  display: none;
}


.edu-meta {

  display: flex;

  flex-direction: column;

  gap: 8px;
}


.edu-meta .date {

  font-family: var(--font-mono);

  font-size: 11.5px;

  color: var(--ink-soft);

  padding-top: 4px;
}


.edu-status {

  font-family: var(--font-mono);

  font-size: 10.5px;

  letter-spacing: 0.06em;

  text-transform: uppercase;

  color: var(--accent);
}


.edu-body h3 {

  font-family: var(--font-display);

  font-size: 18px;

  margin: 0 0 10px;

  letter-spacing: -0.01em;

  font-weight: 600;
}


.edu-gpa {

  font-family: var(--font-mono);

  font-size: 12.5px;

  color: var(--ink-soft);

  margin: 2px 0 14px;
}


.edu-desc {

  color: var(--ink-soft);

  font-size: 14.5px;

  line-height: 1.7;

  max-width: 58ch;

  margin: 0 0 16px;
}


.edu-loc {

  font-family: var(--font-mono);

  font-size: 11.5px;

  color: var(--ink-soft);

  letter-spacing: 0.04em;
}


.edu-loc::before {

  content: "";

  display: inline-block;

  width: 6px;

  height: 6px;

  border-radius: 50%;

  background: var(--accent);

  margin-right: 8px;

  vertical-align: middle;

  opacity: 0.7;
}


@media (max-width: 700px) {

  .edu-item {

    grid-template-columns: 1fr;

    gap: 8px;

    padding-left: 18px;
  }


  .edu-item::before {

    left: 0;

    top: 4px;
  }

}


/* ============================================
   EXPERIENCE TIMELINE
   ============================================ */

.timeline {

  position: relative;
}


.timeline::before {

  content: "";

  position: absolute;

  left: 130px;

  top: 6px;

  bottom: 6px;

  width: 2px;

  transform: translateX(-50%);

  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--line) 18%,
    var(--line) 100%
  );

  transition: background 0.4s ease;
}


.titem {

  display: grid;

  grid-template-columns:
    130px 1fr;

  gap: 28px;

  padding: 28px 0;

  position: relative;
}


.titem:first-child {

  padding-top: 0;
}


.titem:last-child {

  margin-bottom: 0;
}


.titem:hover {

  background: transparent;
}


.titem::before {

  content: "";

  position: absolute;

  left: 130px;

  top: 34px;

  width: 9px;

  height: 9px;

  border-radius: 50%;

  transform: translateX(-50%);

  background: var(--bg);

  border: 2px solid var(--accent);

  box-shadow: none;

  transition:
    background 0.4s ease,
    border-color 0.4s ease;
}


.titem .date {

  font-family:
    var(--font-mono);

  font-size: 11.5px;

  color:
    var(--ink-soft);

  padding-top: 6px;
}


.titem h3 {

  font-family:
    var(--font-display);

  font-size: 17px;

  margin:
    0 0 3px;

  letter-spacing:
    -0.01em;

  font-weight: 600;
}


.titem .org {

  font-size: 13px;

  color:
    var(--accent);

  font-weight: 500;

  margin-bottom: 10px;

  transition:
    color 0.4s ease;
}


.titem ul {

  margin: 0;

  padding-left: 18px;

  color:
    var(--ink-soft);

  font-size: 14px;
}


.titem li {

  margin-bottom: 6px;
}


/* ---------- TIMELINE MOBILE ---------- */

@media (max-width: 700px) {

  .timeline::before {

    left: 5px;
  }


  .titem {

    grid-template-columns: 1fr;

    gap: 6px;

    padding-left: 22px;
  }


  .titem::before {

    left: 5px;

    top: 6px;

    bottom: auto;

    width: 9px;

    height: 9px;

    transform: translateX(-50%);
  }


  .titem .date {

    order: -1;

    padding-top: 0;
  }

}


/* ============================================
   PROJECTS & CARDS
   ============================================ */

.proj-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 24px;
}


@media (max-width: 980px) {

  .proj-grid {

    grid-template-columns:
      1fr 1fr;
  }

}


@media (max-width: 780px) {

  .proj-grid {

    grid-template-columns:
      1fr;
  }

}


.card {

  background:
    var(--bg-card);

  backdrop-filter:
    blur(16px) saturate(1.4);

  -webkit-backdrop-filter:
    blur(16px) saturate(1.4);

  border-radius:
    var(--radius);

  padding:
    32px;

  position: relative;

  display: flex;

  flex-direction: column;

  transition:
    transform 0.4s
    cubic-bezier(0.16, 1, 0.3, 1),

    box-shadow 0.4s ease,

    border-color 0.4s ease;

  border:
    1px solid var(--line);

  box-shadow:
    var(--card-shadow);
}


.project-card {

  cursor: pointer;
}


.project-card:focus-visible {

  outline: 2px solid var(--accent);

  outline-offset: 3px;
}


.card:hover {

  transform:
    translateY(-4px);

  border-color:
    rgba(2, 132, 199, 0.3);

  box-shadow:
    var(--card-shadow-hover);
}


.card .tag {

  font-family:
    var(--font-mono);

  font-size: 10.5px;

  color:
    #6366F1;

  text-transform:
    uppercase;

  letter-spacing:
    0.1em;
}


[data-theme="dark"] .card .tag {

  color:
    #818CF8;
}


.card h3 {

  font-family:
    var(--font-display);

  font-size: 19px;

  margin:
    12px 0 12px;

  letter-spacing:
    -0.01em;

  font-weight: 600;
}


.card p {

  color:
    var(--ink-soft);

  font-size:
    14.5px;

  margin:
    0 0 18px;

  line-height:
    1.65;

  flex: 1;
}


.card-actions {

  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 12px;

  flex-wrap: wrap;

  margin-top: 20px;

  padding-top: 16px;

  border-top: 1px solid var(--line);
}


.card-hint {

  font-family: var(--font-mono);

  font-size: 11px;

  letter-spacing: 0.06em;

  text-transform: uppercase;

  color: var(--ink-soft);
}


.project-card:hover .card-hint {

  color: var(--accent);
}


.card-github {

  font-size: 12px !important;

  padding: 8px 14px !important;
}


/* ---------- PROJECT LIGHTBOX ---------- */

.lightbox {

  position: fixed;

  inset: 0;

  z-index: 100;

  display: flex;

  align-items: center;

  justify-content: center;

  padding: 24px;

  background: rgba(9, 13, 22, 0.82);

  backdrop-filter: blur(10px);

  -webkit-backdrop-filter: blur(10px);
}


.lightbox[hidden] {

  display: none;
}


.lightbox-figure {

  max-width: min(960px, 100%);

  max-height: 90vh;

  margin: 0;

  text-align: center;
}


.lightbox-figure img {

  display: block;

  max-width: 100%;

  max-height: 78vh;

  margin: 0 auto;

  border-radius: 12px;

  border: 1px solid var(--line);

  background: var(--bg-raised);

  object-fit: contain;
}


.lightbox-figure figcaption {

  margin-top: 14px;

  font-family: var(--font-display);

  font-size: 15px;

  color: #F1F5F9;

  display: flex;

  flex-direction: column;

  gap: 6px;

  align-items: center;
}


.lightbox-count {

  font-family: var(--font-mono);

  font-size: 12px;

  letter-spacing: 0.06em;

  color: rgba(241, 245, 249, 0.65);
}


.lightbox-close {

  position: absolute;

  top: 18px;

  right: 22px;

  width: 44px;

  height: 44px;

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 12px;

  background: rgba(17, 24, 39, 0.7);

  color: #F1F5F9;

  font-size: 28px;

  line-height: 1;

  cursor: pointer;

  z-index: 2;

  transition: border-color 0.2s ease, color 0.2s ease;
}


.lightbox-close:hover {

  border-color: var(--accent);

  color: var(--accent);
}


.lightbox-nav {

  position: absolute;

  top: 50%;

  transform: translateY(-50%);

  width: 44px;

  height: 44px;

  border: 1px solid rgba(255, 255, 255, 0.2);

  border-radius: 12px;

  background: rgba(17, 24, 39, 0.7);

  color: #F1F5F9;

  font-size: 28px;

  line-height: 1;

  cursor: pointer;

  z-index: 2;

  transition: border-color 0.2s ease, color 0.2s ease;
}


.lightbox-prev {

  left: 18px;
}


.lightbox-next {

  right: 18px;
}


.lightbox-nav:hover {

  border-color: var(--accent);

  color: var(--accent);
}


@media (max-width: 640px) {

  .lightbox-prev {

    left: 8px;
  }


  .lightbox-next {

    right: 8px;
  }

}


/* ============================================
   CHIPS
   ============================================ */

.chip-row {

  display: flex;

  flex-wrap: wrap;

  gap: 8px;
}


.chip {

  font-family:
    var(--font-mono);

  font-size:
    11px;

  padding:
    5px 11px;

  border:
    1px solid var(--line);

  border-radius:
    8px;

  color:
    var(--ink-soft);

  background:
    var(--bg-raised);

  backdrop-filter:
    blur(8px);

  transition:
    all 0.25s ease;
}


.card:hover .chip {

  border-color:
    rgba(2, 132, 199, 0.2);
}


/* ============================================
   SKILLS
   ============================================ */

.skill-groups {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 32px;
}


@media (max-width: 780px) {

  .skill-groups {

    grid-template-columns:
      1fr;
  }

}


.skill-groups .group .label {

  font-family:
    var(--font-mono);

  font-size:
    11px;

  color:
    var(--ink-soft);

  text-transform:
    uppercase;

  letter-spacing:
    0.1em;

  margin-bottom:
    16px;
}


/* ============================================
   PUBLICATIONS
   ============================================ */

.pub {

  padding:
    24px 0;

  border-bottom:
    1px solid var(--line);

  display: grid;

  grid-template-columns:
    80px 1fr;

  gap: 24px;

  transition:
    all 0.3s
    cubic-bezier(0.16, 1, 0.3, 1);

  cursor: default;
}


.pub:hover {

  padding-left:
    12px;

  border-left:
    2px solid var(--accent);

  margin-left:
    -14px;
}


.pub:last-child {

  border-bottom:
    none;
}


.pub .year {

  font-family:
    var(--font-mono);

  color:
    var(--ink-soft);

  font-size:
    12px;
}


.pub h3 {

  font-family:
    var(--font-display);

  font-size:
    16px;

  margin:
    0 0 6px;

  font-weight:
    600;
}


.pub .venue {

  font-size:
    13px;

  color:
    var(--accent);

  margin-bottom:
    4px;

  transition:
    color 0.4s ease;
}


.pub .authors {

  font-size:
    12.5px;

  color:
    var(--ink-soft);
}


@media (max-width: 600px) {

  .pub {

    grid-template-columns:
      1fr;

    gap: 4px;
  }


  .pub:hover {

    padding-left:
      0;

    margin-left:
      0;

    border-left:
      none;
  }

}


/* ============================================
   LEADERSHIP
   ============================================ */

.lead-grid {

  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 20px;
}


@media (max-width: 780px) {

  .lead-grid {

    grid-template-columns:
      1fr;
  }

}


.lead-card {

  border:
    1px solid var(--line);

  border-radius:
    var(--radius);

  padding:
    28px;

  background:
    var(--bg-card);

  backdrop-filter:
    blur(16px) saturate(1.4);

  -webkit-backdrop-filter:
    blur(16px) saturate(1.4);

  position:
    relative;

  transition:
    transform 0.4s
    cubic-bezier(0.16, 1, 0.3, 1),

    box-shadow 0.4s ease,

    border-color 0.4s ease;

  box-shadow:
    var(--card-shadow);
}


.lead-card:hover {

  transform:
    translateY(-4px);

  border-color:
    rgba(2, 132, 199, 0.3);

  box-shadow:
    var(--card-shadow-hover);
}


.lead-card .role {

  font-family:
    var(--font-mono);

  font-size:
    10.5px;

  color:
    var(--amber);

  text-transform:
    uppercase;

  letter-spacing:
    0.1em;

  transition:
    color 0.4s ease;
}


.lead-card h3 {

  font-family:
    var(--font-display);

  font-size:
    17px;

  margin:
    10px 0 6px;

  font-weight:
    600;
}


.lead-card .when {

  font-size:
    12px;

  color:
    var(--ink-soft);

  margin-bottom:
    10px;
}


.lead-card p {

  font-size:
    13.5px;

  color:
    var(--ink-soft);

  margin:
    0;

  line-height:
    1.6;
}


/* ============================================
   CERTIFICATES / AWARDS
   ============================================ */

.simple-list {

  list-style:
    none;
}


.simple-list li {

  display:
    flex;

  justify-content:
    space-between;

  gap:
    20px;

  padding:
    16px 0;

  border-bottom:
    1px solid var(--line);

  font-size:
    14.5px;

  transition:
    all 0.25s ease;
}


.simple-list li:hover {

  padding-left:
    8px;

  color:
    var(--ink);
}


.simple-list li:last-child {

  border-bottom:
    none;
}


.simple-list .src {

  color:
    var(--ink-soft);

  font-size:
    12.5px;
}


.simple-list .when {

  font-family:
    var(--font-mono);

  font-size:
    11px;

  color:
    var(--ink-soft);

  white-space:
    nowrap;
}


/* ============================================
   REFERENCES
   ============================================ */

.two-col {

  display:
    grid;

  grid-template-columns:
    1fr 1fr;

  gap:
    40px 56px;
}


@media (max-width: 780px) {

  .two-col {

    grid-template-columns:
      1fr;

    gap:
      32px;
  }

}


.ref-item {

  position: relative;

  margin-bottom: 0;

  padding: 6px 0 6px 18px;

  border: none;

  background: transparent;
}


.ref-item::before {

  content: "";

  position: absolute;

  left: 0;

  top: 4px;

  bottom: 4px;

  width: 1.5px;

  background: linear-gradient(
    180deg,
    var(--accent) 0%,
    var(--line) 85%,
    transparent 100%
  );
}


.ref-item .name {

  font-weight: 600;

  font-family: var(--font-display);

  font-size: 16px;
}


.ref-item .role {

  font-size: 13px;

  color: var(--ink-soft);

  margin-top: 6px;
}


.ref-note {

  color: var(--ink-soft);

  font-size: 13px;

  margin-top: 10px;

  line-height: 1.5;
}


/* ============================================
   CONTACT / FOOTER
   ============================================ */

footer {

  position: relative;

  border-top:
    1px solid var(--line);

  padding:
    72px 0 40px;

  transition:
    border-color 0.4s ease;

  background: transparent;
}


.contact-grid {

  display:
    grid;

  grid-template-columns:
    1.1fr 0.9fr;

  gap:
    48px;

  margin-bottom:
    56px;
}


@media (max-width: 780px) {

  .contact-grid {

    grid-template-columns:
      1fr;
  }

}


footer h2 {

  font-family:
    var(--font-display);

  font-size:
    clamp(1.8rem, 4vw, 2.6rem);

  letter-spacing:
    -0.02em;

  margin:
    0 0 16px;

  font-weight:
    700;
}


footer p {

  color:
    var(--ink-soft);

  max-width:
    44ch;

  line-height:
    1.7;
}


.contact-list {

  list-style: none;

  margin: 28px 0 0;

  padding: 0;
}


.contact-list li {

  padding:
    14px 0;

  border-bottom:
    1px solid var(--line);

  transition:
    border-color 0.4s ease;
}


.contact-list li:hover {

  border-bottom-color: var(--accent);
}


.contact-list a {

  font-family:
    var(--font-mono);

  font-size:
    13.5px;

  transition:
    color 0.25s ease;
}


.contact-list a:hover {

  color:
    var(--accent);
}


.contact-list .k {

  display:
    block;

  font-size:
    10px;

  color:
    var(--ink-soft);

  text-transform:
    uppercase;

  letter-spacing:
    0.1em;

  margin-bottom:
    4px;

  font-family:
    var(--font-mono);
}


/* ============================================
   FOOTER FINE PRINT
   ============================================ */

.fine {

  font-family:
    var(--font-mono);

  font-size:
    11.5px;

  color:
    var(--ink-soft);

  display:
    flex;

  justify-content:
    space-between;

  flex-wrap:
    wrap;

  gap:
    8px;

  padding-top:
    28px;

  border-top:
    1px solid var(--line);

  transition:
    border-color 0.4s ease;
}