* {
  box-sizing: border-box;
}

:root {
  color: #111827;
  background: #d9cbfb;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #111827;
  overflow-x: hidden;
}

a {
  color: inherit;
}

#shader-canvas {
  position: fixed;
  inset: -15vh 0 auto;
  z-index: -1;
  width: 100vw;
  height: 130vh;
  pointer-events: none;
}

.site-shell {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 48px;
  width: min(1024px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 48px;
}

.glass-card {
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 22px 72px rgba(30, 41, 59, 0.16);
  backdrop-filter: blur(18px) saturate(145%);
}

.profile-card {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.profile-head {
  display: flex;
  gap: 24px;
  align-items: center;
}

.portrait {
  width: 96px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, 0.44);
  border-radius: 50%;
  box-shadow: 0 18px 32px rgba(30, 41, 59, 0.2);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 720px;
  font-size: clamp(36px, 7vw, 48px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: 0;
  background: linear-gradient(90deg, #4f46e5, #8b5cf6 48%, #3b82f6);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

h2 {
  font-size: clamp(30px, 6vw, 48px);
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.role {
  margin-top: 4px;
  color: rgba(31, 41, 55, 0.88);
  font-size: 18px;
  font-weight: 700;
}

.location {
  color: #111827;
  font-style: italic;
  font-weight: 700;
}

.summary {
  max-width: 780px;
  color: rgba(31, 41, 55, 0.82);
  font-size: 16px;
  line-height: 1.58;
}

.social-grid,
.image-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.social-card,
.image-tile {
  text-decoration: none;
}

.social-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 96px;
  padding: 18px;
  font-size: 19px;
  font-weight: 850;
}

.social-card img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.project-sections {
  display: grid;
  gap: 48px;
}

.project-section {
  min-width: 0;
}

.project-section h2 {
  margin-bottom: 18px;
}

.compact-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 680px;
  margin: 0 auto;
}

.image-tile {
  display: block;
  overflow: hidden;
}

.image-tile img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(30, 41, 59, 0.24);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.social-card:hover {
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 28px 84px rgba(30, 41, 59, 0.22);
  transform: translateY(-2px);
}

.image-tile:hover img {
  box-shadow: 0 28px 68px rgba(30, 41, 59, 0.3);
  transform: translateY(-2px);
}

@supports not (backdrop-filter: blur(1px)) {
  .glass-card {
    background: rgba(255, 255, 255, 0.68);
  }
}

@media (max-width: 760px) {
  .site-shell {
    gap: 32px;
    width: min(100% - 24px, 520px);
    padding-top: 24px;
  }

  .profile-card {
    padding: 18px;
  }

  .profile-head,
  .social-grid,
  .image-grid,
  .compact-grid {
    grid-template-columns: 1fr;
  }

  .profile-head {
    display: grid;
    gap: 16px;
    justify-items: start;
  }

  .project-sections {
    gap: 34px;
  }
}
