:root {
  --background: #0b1119;
  --background-soft: #101823;
  --surface: rgba(21, 29, 41, 0.86);
  --surface-strong: #16202c;
  --surface-hover: #1b2735;
  --foreground: #f6f8fc;
  --foreground-soft: #d4dce8;
  --muted-foreground: #99a6b9;
  --primary: #9eafff;
  --primary-bright: #c6ceff;
  --primary-ink: #0a0f18;
  --primary-soft: rgba(158, 175, 255, 0.15);
  --border: rgba(177, 193, 218, 0.18);
  --border-strong: rgba(177, 193, 218, 0.3);
  --glow: rgba(121, 145, 255, 0.19);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.27);
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
  background: var(--background);
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 5%, rgba(124, 145, 255, 0.19), transparent 31rem),
    radial-gradient(circle at 8% 30%, rgba(70, 163, 226, 0.1), transparent 31rem),
    radial-gradient(circle at 55% 83%, rgba(125, 104, 225, 0.065), transparent 34rem),
    linear-gradient(180deg, #0e141e 0%, var(--background) 44%, #0b1018 100%);
  color: var(--foreground);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.27;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 72%);
}

img {
  max-width: 100%;
}

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

a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 5px;
  border-radius: 4px;
}

::selection {
  background: var(--primary);
  color: var(--primary-ink);
}

.wrap {
  width: min(1180px, calc(100% - 96px));
  margin-inline: auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 92px;
  border-bottom: 1px solid var(--border);
  background: rgba(11, 17, 25, 0.78);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.header::before {
  position: absolute;
  inset: 0 calc((100vw - min(1180px, calc(100vw - 96px))) / -2);
  z-index: -1;
  content: "";
  background: inherit;
  border-bottom: 1px solid var(--border);
}

.brand {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -3px;
  font-weight: 800;
}

.brand span,
h1 span,
footer h2 span {
  color: var(--primary);
}

nav {
  display: flex;
  gap: 34px;
  font-size: 13px;
  font-weight: 600;
  color: var(--foreground-soft);
}

nav a,
.nav-contact,
.secondary,
.project-bottom a,
.certificates a,
.footer-bottom a {
  transition:
    color 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

nav a:hover,
.secondary:hover,
.project-bottom a:hover,
.footer-bottom a:hover {
  color: var(--primary-bright);
}

.nav-contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
  font-weight: 650;
}

.nav-contact:hover {
  border-color: rgba(145, 164, 255, 0.45);
  background: var(--primary-soft);
  color: var(--primary-bright);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 92px;
  align-items: center;
  padding-block: 94px 104px;
}

.hero::after {
  position: absolute;
  top: 8%;
  right: -13%;
  width: 460px;
  height: 460px;
  content: "";
  pointer-events: none;
  background: radial-gradient(circle, rgba(129, 151, 255, 0.16), transparent 64%);
  filter: blur(8px);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 27px;
  color: #aeb8ca;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 1.7px;
  font-weight: 650;
}

.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  margin: 0;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(145, 164, 255, 0.9);
}

h1 {
  max-width: 720px;
  margin: 0 0 34px;
  font-size: clamp(68px, 7.8vw, 112px);
  font-weight: 610;
  line-height: 0.92;
  letter-spacing: -7px;
}

.statement {
  margin: 0 0 18px;
  color: var(--foreground);
  font-size: 25px;
  font-weight: 560;
  line-height: 1.35;
  letter-spacing: -0.8px;
}

.statement span {
  color: var(--muted-foreground);
}

.intro {
  max-width: 530px;
  margin: 22px 0 32px;
  color: var(--muted-foreground);
  font-size: 16px;
}

.hero-credentials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: -12px 0 30px;
  color: #aeb8ca;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.55px;
}

.hero-credentials i {
  width: 3px;
  height: 3px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px rgba(145, 164, 255, 0.7);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-height: 46px;
  padding-inline: 18px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 650;
}

.primary {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #a8b5ff, #8398ff);
  color: var(--primary-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 10px 32px rgba(90, 113, 255, 0.18);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.primary:hover {
  color: var(--primary-ink);
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 16px 42px rgba(90, 113, 255, 0.27);
}

.secondary {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--foreground-soft);
}

.secondary:hover {
  border-color: var(--border-strong);
  background: rgba(255, 255, 255, 0.045);
  transform: translateY(-1px);
}

.hero aside {
  position: relative;
  z-index: 1;
}

.portrait {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: #121a25;
  box-shadow:
    0 26px 82px rgba(0, 0, 0, 0.27),
    0 0 0 1px rgba(158, 175, 255, 0.035);
}

.portrait::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), transparent 25%),
    linear-gradient(0deg, rgba(7, 12, 19, 0.26), transparent 34%);
}

.portrait::after {
  position: absolute;
  top: -90px;
  right: -70px;
  z-index: 2;
  width: 210px;
  height: 210px;
  content: "";
  border-radius: 50%;
  pointer-events: none;
  background: rgba(145, 164, 255, 0.24);
  filter: blur(54px);
}

.portrait img {
  display: block;
  width: 100%;
  height: 470px;
  object-fit: cover;
  object-position: 50% 22%;
  filter: saturate(0.94) contrast(1.01) brightness(1.06);
  transform: scale(1.005);
}

.photo-label {
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 3;
  padding: 8px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9px;
  background: rgba(7, 10, 15, 0.68);
  color: #d9e0ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.15px;
  backdrop-filter: blur(10px);
}

.caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 4px 0;
}

.caption strong {
  font-size: 13px;
  font-weight: 620;
}

.caption span {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--muted-foreground);
  font-size: 12px;
}

.caption b {
  color: var(--primary);
  font-size: 30px;
  font-weight: 280;
}

.strip {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.012);
}

.build-marquee-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 34px;
  min-height: 66px;
}

.build-marquee-label {
  position: relative;
  z-index: 2;
  white-space: nowrap;
  color: #748297;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.4px;
}

.build-marquee-window {
  position: relative;
  min-width: 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%);
}

.build-marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation: build-marquee-scroll 44s linear infinite;
}

.build-marquee-set {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  white-space: nowrap;
}

.build-marquee-set strong {
  color: #d2dae7;
  font-size: 14px;
  font-weight: 560;
  letter-spacing: -0.15px;
}

.build-marquee-sep {
  color: var(--primary);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1;
  opacity: 0.72;
}

@keyframes build-marquee-scroll {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-33.3333333333%, 0, 0);
  }
}

.section {
  padding-block: 112px;
}

.heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 50px;
}

h2 {
  margin: 0;
  color: #f3f6fb;
  font-size: 44px;
  font-weight: 520;
  line-height: 1.12;
  letter-spacing: -2px;
}

.heading > p {
  margin: 0 0 3px;
  color: var(--muted-foreground);
  font-size: 14px;
}

.projects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.project {
  position: relative;
  display: flex;
  min-height: 390px;
  flex-direction: column;
  overflow: hidden;
  padding: 31px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), transparent 38%),
    var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    background 220ms ease,
    box-shadow 220ms ease;
}

.project::after {
  position: absolute;
  top: -70px;
  right: -90px;
  width: 210px;
  height: 210px;
  content: "";
  border-radius: 50%;
  pointer-events: none;
  background: rgba(109, 132, 255, 0);
  filter: blur(40px);
  transition: background 220ms ease;
}

.project:hover {
  border-color: rgba(145, 164, 255, 0.24);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 42%),
    rgba(17, 22, 31, 0.93);
  box-shadow: 0 20px 58px rgba(0, 0, 0, 0.2);
  transform: translateY(-4px);
}

.project:hover::after {
  background: rgba(109, 132, 255, 0.11);
}

.project-top {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 31px;
  color: #7f8999;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  letter-spacing: 1.1px;
}

.project-top > span:last-child {
  color: #626d7e;
  font-size: 22px;
  letter-spacing: -1px;
}

.project h3 {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 0 0 16px;
  color: #f0f3f8;
  font-size: 25px;
  font-weight: 530;
  line-height: 1.22;
  letter-spacing: -0.8px;
}

.project > p {
  position: relative;
  z-index: 1;
  margin: 0 0 26px;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.72;
}

.tags {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: auto 0 27px;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  color: #aeb8c8;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1.6;
}

.project-bottom {
  position: relative;
  z-index: 1;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  color: #aab3c1;
  font-size: 13px;
}

.project-bottom a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.featured {
  border-color: rgba(145, 164, 255, 0.25);
  background:
    radial-gradient(circle at 85% 12%, rgba(126, 148, 255, 0.18), transparent 23rem),
    linear-gradient(145deg, rgba(145, 164, 255, 0.1), rgba(255, 255, 255, 0.02) 48%, transparent),
    #0e131c;
}

.featured::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(145, 164, 255, 0.9), transparent);
}

.featured .project-top,
.featured > p {
  color: #9ba8bd;
}

.featured .project-top > span:last-child {
  color: #a8b6ff;
}

.featured .tags li {
  border-color: rgba(145, 164, 255, 0.2);
  background: rgba(145, 164, 255, 0.07);
  color: #c2cbef;
}

.experience {
  position: relative;
  overflow: hidden;
  padding: 104px 0;
  border-block: 1px solid var(--border);
  background:
    radial-gradient(circle at 12% 0%, rgba(95, 119, 241, 0.09), transparent 30rem),
    rgba(10, 13, 18, 0.78);
}

.experience::after {
  position: absolute;
  right: -220px;
  bottom: -300px;
  width: 640px;
  height: 640px;
  content: "";
  border-radius: 50%;
  background: rgba(83, 105, 213, 0.07);
  filter: blur(85px);
}

.two-column {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1.16fr;
  gap: 104px;
}

.timeline {
  padding-left: 34px;
  border-left: 1px solid var(--border-strong);
}

.timeline article {
  position: relative;
  padding-bottom: 2px;
}

.timeline article::before {
  position: absolute;
  top: 7px;
  left: -39px;
  width: 9px;
  height: 9px;
  content: "";
  border: 2px solid #0b0e14;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 4px rgba(145, 164, 255, 0.1), 0 0 22px rgba(145, 164, 255, 0.35);
}

.timeline article + article {
  margin-top: 45px;
}

.date {
  margin: 0;
  color: #7e899b;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1.7;
  letter-spacing: 0.7px;
}

.date span {
  margin-left: 10px;
  padding: 4px 7px;
  border: 1px solid rgba(145, 164, 255, 0.17);
  border-radius: 6px;
  background: rgba(145, 164, 255, 0.08);
  color: #bac5ff;
  font-size: 9px;
}

.timeline h3,
.education h3 {
  margin: 12px 0 5px;
  color: #edf1f7;
  font-size: 22px;
  font-weight: 560;
  line-height: 1.3;
  letter-spacing: -0.6px;
}

.company {
  margin: 0 0 15px;
  color: #c0c9d8;
  font-size: 13px;
  font-weight: 600;
}

.timeline article > p:not(.company):not(.date) {
  margin: 0 0 12px;
  color: var(--muted-foreground);
  font-size: 15px;
}

.skills {
  border-bottom: 1px solid var(--border);
}

.skills article {
  display: grid;
  grid-template-columns: 52px 1fr 1.8fr;
  gap: 20px;
  align-items: start;
  padding: 27px 14px;
  border-top: 1px solid var(--border);
  transition:
    background 180ms ease,
    padding 180ms ease;
}

.skills article:hover {
  padding-inline: 20px;
  background: linear-gradient(90deg, rgba(145, 164, 255, 0.055), transparent 62%);
}

.skill-n {
  margin-top: 7px;
  color: #697587;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
}

.skills h3 {
  margin: 0;
  color: #e8edf5;
  font-size: 22px;
  font-weight: 530;
  letter-spacing: -0.6px;
}

.skills p {
  margin: 0 0 7px;
  color: #cbd3df;
  font-size: 15px;
}

.skills article div > span {
  color: var(--muted-foreground);
  font-size: 13px;
}

.extra {
  margin-top: 22px;
  color: #758194;
  font-size: 13px;
}


footer {
  position: relative;
  overflow: hidden;
  padding: 84px 0 28px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 72% 20%, rgba(108, 129, 244, 0.12), transparent 28rem),
    #05070a;
  color: #fff;
}

footer::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1180px, calc(100% - 96px));
  height: 1px;
  content: "";
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(145, 164, 255, 0.5), transparent);
}

footer .eyebrow {
  color: #8591a4;
}

footer h2 {
  max-width: 760px;
  font-size: clamp(45px, 5vw, 62px);
  letter-spacing: -2.6px;
}

.email {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin: 34px 0 72px;
  padding-bottom: 8px;
  border-bottom: 1px solid #364053;
  color: #e9edf6;
  font-size: clamp(19px, 2vw, 24px);
  transition:
    color 180ms ease,
    border-color 180ms ease;
}

.email:hover {
  border-color: var(--primary);
  color: var(--primary-bright);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: #727e91;
  font-size: 12px;
}

.footer-bottom > div {
  display: flex;
  gap: 24px;
}

.footer-bottom a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.skip {
  position: absolute;
  top: -100px;
  left: 20px;
  z-index: 50;
  padding: 10px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: #10151d;
  color: #fff;
}

.skip:focus {
  top: 12px;
}

@media (max-width: 950px) {
  .wrap {
    width: calc(100% - 48px);
  }

  .header::before {
    inset-inline: -24px;
  }

  .hero {
    gap: 46px;
  }

  .portrait img {
    height: 410px;
  }

  h1 {
    letter-spacing: -5px;
  }

  .two-column {
    gap: 52px;
  }


  .heading > p {
    max-width: 250px;
  }

  .skills article {
    grid-template-columns: 32px 1fr 1.4fr;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }
}

@media (max-width: 720px) {
  .wrap {
    width: calc(100% - 36px);
  }

  .header {
    position: relative;
    height: auto;
    min-height: 88px;
    flex-wrap: wrap;
    gap: 12px;
    padding-block: 16px;
    background: transparent;
    backdrop-filter: none;
  }

  .header::before {
    inset-inline: -18px;
  }

  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 15px;
    padding-top: 4px;
    font-size: 12px;
  }

  .brand {
    font-size: 30px;
  }

  .nav-contact {
    padding: 8px 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 42px;
    padding-block: 58px 62px;
  }

  .hero::after {
    top: 46%;
    right: -55%;
  }

  h1 {
    font-size: clamp(58px, 18vw, 78px);
    letter-spacing: -4px;
  }

  .eyebrow {
    font-size: 10px;
    letter-spacing: 0.9px;
  }

  .statement {
    font-size: 23px;
  }

  .hero-credentials {
    gap: 8px;
    margin-top: -10px;
    margin-bottom: 27px;
    font-size: 9px;
    letter-spacing: 0.35px;
  }

  .hero aside {
    width: 100%;
    max-width: 440px;
  }

  .portrait {
    border-radius: 22px;
  }

  .portrait img {
    height: 390px;
    object-position: center 24%;
  }


  .strip i {
    display: none;
  }

  .section {
    padding-block: 78px;
  }

  .heading {
    display: block;
    margin-bottom: 32px;
  }

  .heading > p {
    max-width: none;
    margin-top: 20px;
  }

  h2 {
    font-size: 35px;
    letter-spacing: -1.5px;
  }

  .projects,
  .two-column {
    grid-template-columns: 1fr;
  }

  .projects {
    gap: 14px;
  }

  .project {
    min-height: 0;
    padding: 25px;
    border-radius: 15px;
  }

  .experience {
    padding: 72px 0;
  }

  .two-column {
    gap: 42px;
  }

  .skills article {
    grid-template-columns: 28px 1fr;
    gap: 12px;
    padding-inline: 5px;
  }

  .skills article:hover {
    padding-inline: 5px;
  }

  .skills article > div {
    grid-column: 2;
  }

  .education {
    padding-bottom: 78px;
  }

  .certificates {
    grid-template-columns: 1fr;
  }

  footer {
    padding-top: 64px;
  }

  footer::before {
    width: calc(100% - 36px);
  }

  footer h2 {
    font-size: 42px;
    letter-spacing: -2px;
  }

  .email {
    gap: 12px;
    margin-bottom: 54px;
    font-size: 18px;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Clickable project cards */
.project {
  cursor: pointer;
}

.project-card-link {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.project-card-link:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.project-bottom {
  z-index: 3;
  pointer-events: none;
}

.project-bottom a {
  position: relative;
  z-index: 4;
  pointer-events: auto;
}

.project:hover h3 {
  color: var(--primary-bright);
}

/* Project detail pages */
.case-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 9, 13, 0.82);
  backdrop-filter: blur(18px) saturate(130%);
  -webkit-backdrop-filter: blur(18px) saturate(130%);
}

.case-header .brand {
  font-size: 30px;
}

.case-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.case-back,
.case-external {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding-inline: 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--foreground-soft);
  font-size: 12px;
  font-weight: 650;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.case-back:hover,
.case-external:hover {
  border-color: rgba(145, 164, 255, 0.32);
  background: var(--primary-soft);
  color: var(--primary-bright);
  transform: translateY(-1px);
}

.case-hero {
  position: relative;
  overflow: hidden;
  padding-block: 92px 72px;
  border-bottom: 1px solid var(--border);
}

.case-hero::after {
  position: absolute;
  top: -180px;
  right: -120px;
  width: 560px;
  height: 560px;
  content: "";
  border-radius: 50%;
  background: rgba(111, 133, 255, 0.11);
  filter: blur(90px);
  pointer-events: none;
}

.case-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 930px;
}

.case-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  color: #aeb8ca;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.4px;
}

.case-kicker::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 18px rgba(145, 164, 255, 0.8);
}

.case-hero h1 {
  max-width: 980px;
  margin: 0;
  font-size: clamp(48px, 7vw, 86px);
  line-height: 0.98;
  letter-spacing: -4.5px;
  font-weight: 590;
}

.case-lead {
  max-width: 760px;
  margin: 30px 0 0;
  color: var(--foreground-soft);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.55;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 46px;
}

.case-meta article {
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
}

.case-meta span,
.case-side-label {
  display: block;
  margin-bottom: 9px;
  color: #717d90;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.case-meta strong {
  display: block;
  color: #e7ecf5;
  font-size: 14px;
  font-weight: 580;
  line-height: 1.5;
}

.case-content {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(250px, 0.72fr);
  gap: 84px;
  padding-block: 80px 104px;
}

.case-main section + section {
  margin-top: 68px;
}

.case-main h2 {
  margin: 0 0 20px;
  font-size: 34px;
  letter-spacing: -1.5px;
}

.case-main h3 {
  margin: 32px 0 10px;
  color: #e7ecf5;
  font-size: 19px;
  font-weight: 590;
  letter-spacing: -0.35px;
}

.case-main p {
  max-width: 760px;
  margin: 0 0 17px;
  color: var(--muted-foreground);
  font-size: 16px;
  line-height: 1.8;
}

.case-main strong {
  color: var(--foreground-soft);
}

.case-list {
  max-width: 760px;
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
}

.case-list li {
  position: relative;
  padding: 14px 0 14px 25px;
  border-top: 1px solid var(--border);
  color: var(--foreground-soft);
  font-size: 15px;
  line-height: 1.65;
}

.case-list li:last-child {
  border-bottom: 1px solid var(--border);
}

.case-list li::before {
  position: absolute;
  top: 24px;
  left: 3px;
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--primary);
}

.case-numbered {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  counter-reset: case-step;
}

.case-step {
  position: relative;
  padding: 22px 22px 22px 64px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  counter-increment: case-step;
}

.case-step::before {
  position: absolute;
  top: 22px;
  left: 20px;
  content: "0" counter(case-step);
  color: var(--primary);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 11px;
  font-weight: 700;
}

.case-step h3 {
  margin: 0 0 7px;
}

.case-step p {
  margin: 0;
  font-size: 14px;
}

.case-callout {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid rgba(145, 164, 255, 0.2);
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(145, 164, 255, 0.08), transparent 58%),
    rgba(255, 255, 255, 0.018);
}

.case-callout p {
  margin: 0;
  color: #c9d2e1;
}

.case-side {
  align-self: start;
}

.case-side-inner {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 14px;
}

.case-side-card {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.case-side-card h3 {
  margin: 0 0 15px;
  color: #edf1f7;
  font-size: 16px;
  font-weight: 600;
}

.case-side-card .tags {
  margin: 0;
}

.case-side-card p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.7;
}

.case-side-card a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: var(--primary-bright);
  font-size: 13px;
  font-weight: 650;
}

.case-next {
  padding-block: 48px 76px;
  border-top: 1px solid var(--border);
}

.case-next-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.case-next a {
  display: block;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.018);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.case-next a:hover {
  border-color: rgba(145, 164, 255, 0.26);
  background: var(--primary-soft);
  transform: translateY(-2px);
}

.case-next span {
  display: block;
  margin-bottom: 7px;
  color: #707b8d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.8px;
}

.case-next strong {
  color: #e2e7ef;
  font-size: 15px;
  font-weight: 600;
}

@media (max-width: 900px) {
  .case-content {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .case-side-inner {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .case-header {
    position: relative;
    min-height: 72px;
  }

  .case-header-actions {
    gap: 7px;
  }

  .case-back,
  .case-external {
    padding-inline: 10px;
  }

  .case-external span,
  .case-back span {
    display: none;
  }

  .case-hero {
    padding-block: 62px 52px;
  }

  .case-hero h1 {
    font-size: clamp(44px, 14vw, 64px);
    letter-spacing: -3px;
  }

  .case-lead {
    font-size: 18px;
  }

  .case-meta {
    grid-template-columns: 1fr;
    margin-top: 34px;
  }

  .case-meta article {
    min-height: 0;
  }

  .case-content {
    padding-block: 58px 72px;
  }

  .case-main section + section {
    margin-top: 50px;
  }

  .case-main h2 {
    font-size: 30px;
  }

  .case-step {
    padding-left: 56px;
  }

  .case-side-inner,
  .case-next-grid {
    grid-template-columns: 1fr;
  }
}


/* YOLO project visuals */
.case-visual-grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.case-visual-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.case-visual-grid--stacked {
  grid-template-columns: 1fr;
}

.case-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    var(--surface);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}

.case-figure img {
  display: block;
  width: 100%;
  height: auto;
  background: #fff;
}

.case-figure figcaption {
  padding: 16px 18px 18px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.7;
}

.case-figure figcaption strong {
  color: var(--foreground-soft);
}

@media (max-width: 900px) {
  .case-visual-grid--two {
    grid-template-columns: 1fr;
  }
}


/* Processing-time project metrics */
.case-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 20px;
}

.case-metric {
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(145, 164, 255, 0.07), transparent 62%),
    rgba(255, 255, 255, 0.02);
}

.case-metric span {
  display: block;
  margin-bottom: 13px;
  color: #717d90;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.9px;
  text-transform: uppercase;
}

.case-metric strong {
  display: block;
  color: var(--foreground);
  font-size: clamp(23px, 2.6vw, 32px);
  font-weight: 620;
  line-height: 1;
  letter-spacing: -1.2px;
}

.case-main .case-metric-note {
  margin-top: 8px;
  font-size: 14px;
}

@media (max-width: 900px) {
  .case-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .case-metrics {
    grid-template-columns: 1fr;
  }
}


/* Compact figure variant for small summary visuals */
.case-figure--compact {
  max-width: 560px;
}

@media (max-width: 720px) {
  .case-figure--compact {
    max-width: none;
  }
}


/* Homepage project hierarchy + visual previews */
.projects-heading {
  margin-bottom: 34px;
}

.projects-section-label,
.projects-secondary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
  color: #778295;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 1.2px;
}

.projects-section-label {
  padding-top: 8px;
}

.projects-section-label span:last-child {
  color: #596476;
  letter-spacing: 0.8px;
  text-transform: lowercase;
}

.projects-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project--showcase {
  min-height: 0;
  padding: 0;
}

.project--showcase::after {
  z-index: 0;
}

.project-media {
  position: relative;
  z-index: 1;
  height: 244px;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
  background: #f4f5f7;
}

.project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) contrast(1.02) brightness(0.92);
  transform: scale(1.01);
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    filter 260ms ease;
}

.project--showcase:hover .project-media img {
  filter: saturate(1) contrast(1.03) brightness(0.98);
  transform: scale(1.035);
}

.project-media-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(4, 7, 12, 0.02) 30%, rgba(4, 7, 12, 0.48) 100%),
    linear-gradient(90deg, rgba(8, 11, 17, 0.08), transparent 38%);
}

.project-signal {
  position: absolute;
  right: 14px;
  bottom: 14px;
  z-index: 1;
  max-width: calc(100% - 28px);
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(7, 10, 15, 0.78);
  color: #e1e6ff;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.55px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.project-body {
  position: relative;
  display: flex;
  min-height: 356px;
  flex-direction: column;
  padding: 28px 30px 30px;
}

.project--showcase .project-top {
  margin-bottom: 23px;
}

.project-context {
  color: #7e8bb4 !important;
  font-size: 9px !important;
  letter-spacing: 0.8px !important;
}

.project--showcase h3 {
  max-width: 470px;
  margin-bottom: 14px;
  font-size: 27px;
}

.project-summary {
  position: relative;
  z-index: 1;
  margin: 0 0 24px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.72;
}

.project--showcase .tags {
  margin-top: auto;
  margin-bottom: 25px;
}

.project--showcase .project-bottom {
  margin-top: 0;
}

.projects-secondary-header {
  margin-top: 48px;
  margin-bottom: 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
}

.projects-secondary-header > div {
  display: flex;
  align-items: baseline;
  gap: 18px;
}

.projects-secondary-header p {
  margin: 0;
  color: #687385;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0;
}

.projects-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.project--compact {
  min-height: 300px;
  padding: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.022), transparent 42%),
    rgba(13, 17, 24, 0.68);
}

.project--compact .project-top {
  margin-bottom: 25px;
}

.project--compact h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.project--compact .project-summary {
  margin-bottom: 22px;
  font-size: 13px;
}

.project--compact .tags {
  margin-top: auto;
  margin-bottom: 22px;
}

@media (max-width: 980px) {
  .projects-featured,
  .projects-secondary {
    grid-template-columns: 1fr;
  }

  .project-media {
    height: 290px;
  }

  .project-body {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .projects-heading {
    margin-bottom: 28px;
  }

  .projects-section-label {
    margin-bottom: 12px;
  }

  .projects-section-label span:last-child {
    display: none;
  }

  .project-media {
    height: 210px;
  }

  .project-body {
    padding: 23px;
  }

  .project--showcase h3 {
    font-size: 24px;
  }

  .project-signal {
    right: 11px;
    bottom: 11px;
    font-size: 9px;
  }

  .projects-secondary-header {
    margin-top: 36px;
    padding-top: 22px;
  }

  .projects-secondary-header > div {
    display: block;
  }

  .projects-secondary-header p {
    margin-top: 6px;
  }

  .project--compact {
    min-height: 0;
    padding: 23px;
  }
}


/* Enhanced experience section */
.experience-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.42fr);
  gap: 92px;
  align-items: start;
}

.experience-intro {
  position: sticky;
  top: 118px;
}

.experience-intro .intro {
  max-width: 470px;
  margin-bottom: 30px;
}

.experience-path {
  display: grid;
  gap: 12px;
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.022);
}

.experience-path > div {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 12px;
  align-items: center;
}

.experience-path span,
.experience-path small,
.role-status,
.role-focus-grid span,
.experience-project-link > span {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  text-transform: uppercase;
}

.experience-path span {
  color: #748197;
  font-size: 9px;
  letter-spacing: 0.6px;
}

.experience-path strong {
  color: #e4e9f2;
  font-size: 13px;
  font-weight: 600;
}

.experience-path small {
  color: #8290a4;
  font-size: 8px;
  letter-spacing: 0.5px;
}

.experience-path i {
  width: 1px;
  height: 17px;
  margin-left: 43px;
  background: linear-gradient(180deg, rgba(145, 164, 255, 0.7), rgba(145, 164, 255, 0.08));
}

.experience-note {
  max-width: 445px;
  margin: 18px 0 0;
  color: #727f92;
  font-size: 13px;
  line-height: 1.75;
}

.experience-roles {
  display: grid;
  gap: 18px;
}

.experience-role {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.028), transparent 58%),
    rgba(12, 16, 23, 0.72);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.14);
}

.experience-role-current {
  border-color: rgba(145, 164, 255, 0.23);
  background:
    radial-gradient(circle at 96% 0%, rgba(116, 139, 255, 0.12), transparent 24rem),
    linear-gradient(145deg, rgba(145, 164, 255, 0.055), transparent 52%),
    rgba(12, 16, 23, 0.78);
}

.experience-role-current::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 1px;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(145, 164, 255, 0.92), transparent);
}

.role-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.role-topline .date {
  margin: 0;
}

.role-status {
  padding: 5px 8px;
  border: 1px solid rgba(145, 164, 255, 0.18);
  border-radius: 999px;
  background: rgba(145, 164, 255, 0.08);
  color: #bcc7ff;
  font-size: 8px;
  letter-spacing: 0.6px;
}

.role-status-muted {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: #788497;
}

.experience-role h3 {
  margin: 16px 0 5px;
  color: #f0f3f8;
  font-size: 28px;
  font-weight: 570;
  line-height: 1.25;
  letter-spacing: -1px;
}

.experience-role .company {
  margin-bottom: 17px;
}

.role-summary {
  max-width: 720px;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.75;
}

.role-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 25px;
}

.role-focus-grid > div {
  min-height: 145px;
  padding: 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
}

.role-focus-grid span {
  display: block;
  margin-bottom: 10px;
  color: #aebaff;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.65px;
}

.role-focus-grid p {
  margin: 0;
  color: #8d99aa;
  font-size: 13px;
  line-height: 1.65;
}

.role-focus-grid-compact > div {
  min-height: 120px;
}

.experience-project-link {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 16px;
  align-items: center;
  margin-top: 18px;
  padding: 16px 17px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.018);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.experience-project-link:hover {
  border-color: rgba(145, 164, 255, 0.28);
  background: var(--primary-soft);
  transform: translateY(-1px);
}

.experience-project-link > span {
  grid-column: 1;
  color: #6f7c90;
  font-size: 8px;
  letter-spacing: 0.65px;
}

.experience-project-link strong {
  grid-column: 1;
  color: #dce3ed;
  font-size: 13px;
  font-weight: 600;
}

.experience-project-link svg {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--primary-bright);
}

@media (max-width: 950px) {
  .experience-grid {
    grid-template-columns: minmax(240px, 0.78fr) minmax(0, 1.22fr);
    gap: 44px;
  }

  .experience-path > div {
    grid-template-columns: 74px 1fr;
  }

  .experience-path small {
    grid-column: 2;
  }

  .experience-path i {
    margin-left: 36px;
  }

  .role-focus-grid {
    grid-template-columns: 1fr;
  }

  .role-focus-grid > div {
    min-height: 0;
  }
}

@media (max-width: 720px) {
  .experience-grid {
    grid-template-columns: 1fr;
    gap: 38px;
  }

  .experience-intro {
    position: static;
  }

  .experience-path {
    margin-top: 26px;
  }

  .experience-role {
    padding: 23px;
    border-radius: 16px;
  }

  .experience-role h3 {
    font-size: 25px;
  }

  .role-focus-grid {
    grid-template-columns: 1fr;
  }

  .experience-project-link {
    padding: 14px 15px;
  }
}

@media (max-width: 420px) {
  .experience-path > div {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .experience-path small {
    grid-column: 1;
  }

  .experience-path i {
    height: 14px;
    margin-left: 3px;
  }

  .role-topline {
    align-items: flex-start;
  }

  .role-status {
    flex: 0 0 auto;
  }
}

/* Skills — capability map */
.skills-heading {
  margin-bottom: 38px;
}

.skills-foundation {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 13px;
  margin-bottom: 18px;
  padding: 15px 18px;
  border: 1px solid rgba(145, 164, 255, 0.16);
  border-radius: 13px;
  background:
    linear-gradient(90deg, rgba(145, 164, 255, 0.075), transparent 74%),
    rgba(255, 255, 255, 0.018);
}

.skills-foundation > span,
.skills-secondary span {
  color: #707d91;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
}

.skills-foundation > span {
  margin-right: 8px;
}

.skills-foundation strong {
  color: #d9e0eb;
  font-size: 13px;
  font-weight: 590;
}

.skills-foundation i {
  color: rgba(145, 164, 255, 0.52);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-style: normal;
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.skill-card {
  position: relative;
  min-height: 278px;
  overflow: hidden;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 17px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.026), transparent 60%),
    var(--surface);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    background 200ms ease;
}

.skill-card::after {
  position: absolute;
  right: -75px;
  bottom: -95px;
  width: 210px;
  height: 210px;
  content: "";
  border-radius: 50%;
  background: rgba(112, 132, 255, 0.06);
  filter: blur(34px);
  pointer-events: none;
}

.skill-card:hover {
  border-color: rgba(145, 164, 255, 0.28);
  background:
    linear-gradient(145deg, rgba(145, 164, 255, 0.07), transparent 62%),
    var(--surface-hover);
  transform: translateY(-3px);
}

.skill-card-featured {
  border-color: rgba(145, 164, 255, 0.18);
  background:
    linear-gradient(145deg, rgba(145, 164, 255, 0.08), transparent 58%),
    var(--surface);
}

.skill-card-wide {
  grid-column: 1 / -1;
  min-height: 226px;
}

.skill-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 34px;
}

.skill-card .skill-n {
  margin: 0;
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
}

.skill-level {
  padding: 5px 8px;
  border: 1px solid rgba(145, 164, 255, 0.15);
  border-radius: 999px;
  background: rgba(145, 164, 255, 0.055);
  color: #8794aa;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.9px;
}

.skill-card h3 {
  margin: 0 0 12px;
  color: #edf1f7;
  font-size: 25px;
  font-weight: 570;
  letter-spacing: -0.8px;
}

.skill-card > p {
  max-width: 570px;
  margin: 0 0 24px;
  color: var(--muted-foreground);
  font-size: 14px;
  line-height: 1.72;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.skill-tags li {
  padding: 6px 9px;
  border: 1px solid rgba(155, 170, 196, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
  color: #abb5c5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  line-height: 1.2;
}

.skills-secondary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.skills-secondary > div {
  padding: 17px 19px;
  border-top: 1px solid var(--border);
}

.skills-secondary p {
  margin: 7px 0 0;
  color: #8f9aac;
  font-size: 12px;
}

@media (max-width: 720px) {
  .skills-foundation {
    gap: 10px;
    padding: 14px;
  }

  .skills-foundation > span {
    width: 100%;
    margin-right: 0;
    margin-bottom: 2px;
  }

  .skills-grid,
  .skills-secondary {
    grid-template-columns: 1fr;
  }

  .skill-card,
  .skill-card-wide {
    grid-column: auto;
    min-height: 0;
    padding: 22px;
  }

  .skill-card-top {
    margin-bottom: 26px;
  }

  .skill-card h3 {
    font-size: 23px;
  }
}

/* Education & certifications refresh */
.education {
  padding-bottom: 112px;
}

.education-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 48px;
}

.education-head h2 {
  margin: 0;
}

.education-intro {
  max-width: 500px;
  margin: 0 0 8px;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.8;
}

.education-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(310px, 0.7fr);
  gap: 20px;
  align-items: start;
}

.degree-list {
  display: grid;
  gap: 14px;
}

.degree-card {
  position: relative;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.degree-card:hover {
  border-color: rgba(145, 164, 255, 0.24);
  background: rgba(255, 255, 255, 0.026);
  transform: translateY(-2px);
}

.degree-card-featured {
  background:
    linear-gradient(135deg, rgba(145, 164, 255, 0.06), transparent 48%),
    rgba(255, 255, 255, 0.018);
}

.degree-card-top {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.degree-index {
  flex: 0 0 auto;
  color: var(--primary);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 10px;
  font-weight: 700;
}

.degree-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: #758194;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.65px;
}

.degree-card h3 {
  margin: 0 0 12px;
  color: #eef2f8;
  font-size: 27px;
  font-weight: 560;
  line-height: 1.25;
  letter-spacing: -0.9px;
}

.degree-summary {
  max-width: 720px;
  margin: 0;
  color: var(--muted-foreground);
  font-size: 15px;
  line-height: 1.75;
}

.degree-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 128px;
  gap: 24px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.degree-label,
.certification-heading > span {
  display: block;
  margin-bottom: 8px;
  color: #6f7b8e;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1px;
}

.degree-details p {
  margin: 0;
  color: #b8c1cf;
  font-size: 13px;
  line-height: 1.7;
}

.degree-project-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 12px;
  color: var(--primary-bright);
  font-size: 12px;
  font-weight: 650;
  transition: gap 180ms ease, color 180ms ease;
}

.degree-project-link:hover {
  gap: 10px;
  color: #d0d7ff;
}

.degree-grade-block {
  padding-left: 20px;
  border-left: 1px solid var(--border);
}

.degree-grade-block strong {
  display: block;
  color: #eef2f8;
  font-size: 23px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.8px;
}

.degree-grade-block small {
  display: block;
  margin-top: 6px;
  color: var(--primary-bright);
  font-size: 11px;
}

.certification-panel {
  position: sticky;
  top: 112px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(145, 164, 255, 0.045), transparent 26%),
    var(--surface);
}

.certification-heading {
  margin-bottom: 18px;
}

.certification-heading p {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 13px;
  line-height: 1.65;
}

.certificate-list {
  display: grid;
  gap: 12px;
}

.certificate-card {
  display: block;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.02);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.certificate-card:hover {
  border-color: rgba(145, 164, 255, 0.28);
  background: rgba(145, 164, 255, 0.055);
  transform: translateY(-2px);
}

.certificate-card-top,
.certificate-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #707c90;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.6px;
}

.certificate-card h3 {
  margin: 15px 0 9px;
  color: #e8edf5;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.25px;
}

.certificate-card p {
  margin: 0 0 18px;
  color: var(--muted-foreground);
  font-size: 12px;
  line-height: 1.65;
}

.certificate-card-bottom {
  padding-top: 13px;
  border-top: 1px solid var(--border);
}

.certificate-card-bottom svg {
  color: var(--primary-bright);
}

@media (max-width: 980px) {
  .education-head {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .education-layout {
    grid-template-columns: 1fr;
  }

  .certification-panel {
    position: static;
  }

  .certificate-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .education {
    padding-bottom: 80px;
  }

  .education-head {
    margin-bottom: 34px;
  }

  .degree-card {
    padding: 22px;
  }

  .degree-card h3 {
    font-size: 23px;
  }

  .degree-details {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .degree-grade-block {
    padding: 18px 0 0;
    border-top: 1px solid var(--border);
    border-left: 0;
  }

  .certification-panel {
    padding: 18px;
  }

  .certificate-list {
    grid-template-columns: 1fr;
  }
}

/* Contact / footer refinement */
.footer-intro {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted-foreground);
  font-size: 17px;
  line-height: 1.75;
}

.footer-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.footer-focus span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #aeb8ca;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.65px;
  text-transform: uppercase;
}

#contact .email {
  margin-top: 38px;
}

@media (max-width: 720px) {
  .footer-intro {
    font-size: 15px;
  }

  .footer-focus {
    gap: 8px;
  }

  .footer-focus span {
    min-height: 30px;
    padding-inline: 10px;
    font-size: 8px;
  }
}

/* =========================================================
   Brighter premium dark refinements
   Component-level accents for the midnight-blue theme.
   Core colors and portrait treatment are defined above.
   ========================================================= */






.nav-contact,
.secondary,
.tags li,
.footer-focus span {
  background: rgba(255, 255, 255, 0.04);
}

.nav-contact:hover,
.secondary:hover {
  background: rgba(158, 175, 255, 0.12);
}






.photo-label,
.project-signal {
  background: rgba(11, 17, 26, 0.76);
  border-color: rgba(255, 255, 255, 0.22);
}

.strip {
  background:
    linear-gradient(90deg, rgba(158, 175, 255, 0.035), rgba(255, 255, 255, 0.018), rgba(158, 175, 255, 0.035));
}

.project,
.project--compact,
.experience-role,
.skill-card,
.degree-card,
.certificate-card,
.case-meta article,
.case-step,
.case-side-card,
.case-next a,
.case-metric,
.case-figure {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent 45%),
    var(--surface);
}

.project:hover,
.project--compact:hover,
.experience-role:hover,
.skill-card:hover,
.degree-card:hover,
.certificate-card:hover,
.case-next a:hover {
  border-color: rgba(158, 175, 255, 0.3);
  background:
    linear-gradient(145deg, rgba(158, 175, 255, 0.07), transparent 45%),
    var(--surface-hover);
}

.featured,
.project--showcase,
.experience-role-current,
.skill-card-featured,
.degree-card-featured {
  background:
    radial-gradient(circle at 88% 8%, rgba(132, 153, 255, 0.15), transparent 24rem),
    linear-gradient(145deg, rgba(158, 175, 255, 0.085), rgba(255, 255, 255, 0.025) 52%, transparent),
    #121b27;
}

.experience {
  background:
    radial-gradient(circle at 12% 0%, rgba(109, 136, 255, 0.14), transparent 31rem),
    radial-gradient(circle at 92% 90%, rgba(67, 153, 216, 0.06), transparent 26rem),
    rgba(14, 21, 31, 0.9);
}

.experience::after {
  background: rgba(92, 120, 235, 0.095);
}

.experience-path,
.role-focus-grid > div,
.experience-project-link,
.skills-foundation,
.certification-panel {
  background:
    linear-gradient(145deg, rgba(158, 175, 255, 0.035), transparent 55%),
    rgba(255, 255, 255, 0.03);
}

.skill-tags li,
.role-status-muted {
  background: rgba(255, 255, 255, 0.04);
}

.case-header {
  background: rgba(11, 17, 25, 0.86);
}

.case-hero {
  background:
    radial-gradient(circle at 86% 10%, rgba(124, 145, 255, 0.075), transparent 28rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent);
}

.case-hero::after {
  background: rgba(121, 145, 255, 0.15);
}

.case-callout {
  background:
    linear-gradient(135deg, rgba(158, 175, 255, 0.115), transparent 58%),
    rgba(255, 255, 255, 0.028);
}

footer {
  background:
    radial-gradient(circle at 72% 20%, rgba(121, 145, 255, 0.17), transparent 29rem),
    radial-gradient(circle at 15% 90%, rgba(65, 147, 206, 0.055), transparent 25rem),
    #0a1018;
}

@media (max-width: 720px) {
  body {
    background:
      radial-gradient(circle at 88% 3%, rgba(124, 145, 255, 0.16), transparent 22rem),
      linear-gradient(180deg, #0e141e 0%, var(--background) 50%, #0b1018 100%);
  }
}


/* =========================================================
   Command palette — Ctrl/Cmd + K
   ========================================================= */
.command-trigger {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 42;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(168, 184, 255, 0.24);
  border-radius: 12px;
  background: rgba(15, 23, 34, 0.78);
  color: var(--foreground-soft);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.command-trigger:hover {
  transform: translateY(-2px);
  border-color: rgba(168, 184, 255, 0.5);
  background: rgba(24, 35, 51, 0.92);
  color: var(--primary-bright);
}

.command-trigger:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 4px;
}

.command-trigger-icon {
  color: var(--primary-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.command-trigger-shortcut {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.45px;
  text-transform: uppercase;
}

.command-overlay[hidden] {
  display: none;
}

.command-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: start center;
  padding: min(16vh, 140px) 24px 40px;
  background: rgba(4, 8, 13, 0.62);
  backdrop-filter: blur(14px) saturate(115%);
  -webkit-backdrop-filter: blur(14px) saturate(115%);
  animation: command-overlay-in 150ms ease-out;
}

.command-panel {
  width: min(620px, 100%);
  overflow: hidden;
  border: 1px solid rgba(173, 188, 255, 0.22);
  border-radius: 20px;
  background:
    radial-gradient(circle at 90% 0%, rgba(130, 151, 255, 0.12), transparent 19rem),
    rgba(14, 21, 31, 0.96);
  box-shadow: 0 34px 110px rgba(0, 0, 0, 0.54);
  animation: command-panel-in 180ms cubic-bezier(.2,.8,.2,1);
}

.command-search-wrap {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 66px;
  padding: 0 18px;
  border-bottom: 1px solid var(--border);
}

.command-search-icon {
  color: var(--primary-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 14px;
  font-weight: 700;
}

.command-search {
  width: 100%;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--foreground);
  font: inherit;
  font-size: 16px;
}

.command-search::placeholder {
  color: #718096;
}

.command-search-wrap kbd,
.command-footer kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 27px;
  min-height: 23px;
  padding: 0 6px;
  border: 1px solid rgba(168, 184, 255, 0.16);
  border-bottom-color: rgba(168, 184, 255, 0.28);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  color: #8997aa;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  font-weight: 650;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

.command-results {
  max-height: min(58vh, 530px);
  overflow-y: auto;
  padding: 10px;
  scrollbar-width: thin;
  scrollbar-color: rgba(158, 175, 255, 0.22) transparent;
}

.command-group + .command-group {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(168, 184, 255, 0.08);
}

.command-group-label {
  margin: 0;
  padding: 8px 10px 6px;
  color: #6f7d90;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.command-item {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-radius: 11px;
  color: var(--foreground-soft);
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
}

.command-item:hover,
.command-item:focus,
.command-item.is-active {
  outline: none;
  border-color: rgba(158, 175, 255, 0.16);
  background: linear-gradient(90deg, rgba(158, 175, 255, 0.095), rgba(255, 255, 255, 0.025));
  color: var(--foreground);
}

.command-item[hidden] {
  display: none;
}

.command-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(158, 175, 255, 0.14);
  border-radius: 9px;
  background: rgba(158, 175, 255, 0.055);
  color: var(--primary-bright);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  font-weight: 700;
}

.command-item-icon--action {
  color: #b8c4d7;
}

.command-item strong,
.command-item small {
  display: block;
}

.command-item strong {
  color: inherit;
  font-size: 13px;
  font-weight: 620;
}

.command-item small {
  margin-top: 2px;
  color: #778599;
  font-size: 11px;
  line-height: 1.35;
}

.command-arrow {
  color: #66758a;
  font-size: 14px;
  transition: transform 120ms ease, color 120ms ease;
}

.command-item:hover .command-arrow,
.command-item:focus .command-arrow,
.command-item.is-active .command-arrow {
  color: var(--primary-bright);
  transform: translateX(2px);
}

.command-empty {
  margin: 0;
  padding: 32px 16px;
  color: #718096;
  text-align: center;
  font-size: 13px;
}

.command-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 43px;
  padding: 0 16px;
  border-top: 1px solid var(--border);
  color: #657388;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
}

.command-footer > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.command-footer-brand {
  margin-left: auto;
  color: #8190a5;
  font-size: 12px;
  font-weight: 750;
}

.command-footer-brand span {
  color: var(--primary);
}

body.command-open {
  overflow: hidden;
}

@keyframes command-overlay-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes command-panel-in {
  from { opacity: 0; transform: translateY(-10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 720px) {
  .command-trigger {
    right: 14px;
    bottom: 14px;
    width: 42px;
    height: 42px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .command-trigger-shortcut {
    display: none;
  }

  .command-overlay {
    align-items: end;
    padding: 18px;
  }

  .command-panel {
    width: 100%;
    max-height: 82vh;
    border-radius: 18px;
  }

  .command-results {
    max-height: 62vh;
  }

  .command-footer {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .command-overlay,
  .command-panel {
    animation: none;
  }
}

/* Featured project cursor glow */
.project--showcase {
  --glow-x: 50%;
  --glow-y: 50%;
  isolation: isolate;
}

@media (hover: hover) and (pointer: fine) {
  .project--showcase > .project-card-link::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    content: "";
    pointer-events: none;
    border-radius: inherit;
    opacity: 0;
    background: radial-gradient(
      430px circle at var(--glow-x) var(--glow-y),
      rgba(174, 188, 255, 0.16) 0%,
      rgba(118, 146, 255, 0.075) 30%,
      rgba(91, 132, 210, 0.025) 48%,
      transparent 68%
    );
    transition: opacity 180ms ease;
  }

  .project--showcase:hover > .project-card-link::before {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project--showcase > .project-card-link::before {
    transition: none;
  }
}


/* Subtle scroll reveal animations */
.reveal-on-scroll {
  opacity: 0;
  translate: 0 14px;
  transition:
    opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
    translate 620ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, translate;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  translate: 0 0;
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll.is-revealed {
    opacity: 1;
    translate: none;
    transition: none;
  }
}


/* =========================================================
   Minimal contact footer
   ========================================================= */
.contact-footer {
  padding: 78px 0 28px;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(circle at 70% 15%, rgba(121, 145, 255, 0.08), transparent 27rem),
    #0a1018;
}

.contact-footer::before {
  opacity: 0.6;
}

.contact-footer .eyebrow {
  margin-bottom: 12px;
}

.contact-title {
  max-width: none;
  margin: 0;
  font-size: clamp(46px, 5.4vw, 72px);
  font-weight: 610;
  line-height: 1;
  letter-spacing: -3.6px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 54px;
}

.contact-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 194px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 22px;
  overflow: hidden;
  border: 1px solid rgba(165, 178, 202, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
  text-align: center;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

.contact-card::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at 50% 20%, rgba(145, 164, 255, 0.09), transparent 48%);
  transition: opacity 180ms ease;
}

.contact-card:hover {
  border-color: rgba(157, 176, 255, 0.34);
  background: rgba(255, 255, 255, 0.028);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
  transform: translateY(-3px);
}

.contact-card:hover::before {
  opacity: 1;
}

.contact-card-icon {
  position: relative;
  z-index: 1;
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid rgba(165, 178, 202, 0.28);
  border-radius: 50%;
  color: #d8e0ed;
  background: rgba(255, 255, 255, 0.018);
  transition:
    border-color 180ms ease,
    color 180ms ease,
    background 180ms ease;
}

.contact-card:hover .contact-card-icon {
  border-color: rgba(157, 176, 255, 0.48);
  background: rgba(145, 164, 255, 0.08);
  color: var(--primary-bright);
}

.contact-card strong {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #f0f4fb;
  font-size: 16px;
  font-weight: 610;
  line-height: 1.45;
}

.contact-card-label {
  position: relative;
  z-index: 1;
  margin-top: 7px;
  color: #778397;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 2px;
}

.footer-bottom--minimal {
  justify-content: center;
  margin-top: 72px;
  padding-top: 26px;
  text-align: center;
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    min-height: 156px;
  }
}

@media (max-width: 720px) {
  .contact-footer {
    padding-top: 62px;
  }

  .contact-title {
    font-size: clamp(44px, 13vw, 58px);
    letter-spacing: -2.8px;
  }

  .contact-grid {
    gap: 12px;
    margin-top: 38px;
  }

  .contact-card {
    min-height: 146px;
    padding: 24px 18px;
  }

  .contact-card-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 14px;
  }

  .contact-card strong {
    font-size: 15px;
  }

  .footer-bottom--minimal {
    margin-top: 48px;
  }
}


/* What I build — scrolling marquee */
@media (max-width: 720px) {
  .build-marquee-inner {
    grid-template-columns: 1fr;
    gap: 5px;
    min-height: 78px;
    padding-block: 12px;
  }

  .build-marquee-label {
    padding-left: 2px;
  }

  .build-marquee-window {
    margin-inline: -6px;
  }

  .build-marquee-track {
    animation-duration: 36s;
  }

  .build-marquee-set {
    gap: 22px;
    padding-right: 22px;
  }

  .build-marquee-set strong {
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .build-marquee-track {
    animation: none;
    transform: none;
  }

  .build-marquee-set[aria-hidden="true"] {
    display: none;
  }
}


/* =========================================================
   Scroll progress indicator
   ========================================================= */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: 100%;
  height: 2px;
  pointer-events: none;
  background: transparent;
}

.scroll-progress-bar {
  width: 100%;
  height: 100%;
  transform: scaleX(var(--scroll-progress, 0));
  transform-origin: left center;
  background: linear-gradient(90deg, #8ea2ff 0%, #a99cff 52%, #79c6ff 100%);
  box-shadow:
    0 0 8px rgba(142, 162, 255, 0.55),
    0 0 16px rgba(121, 198, 255, 0.18);
  will-change: transform;
}

@media (max-width: 720px) {
  .scroll-progress {
    height: 2px;
  }
}


/* Navigation refinement: keep five section links comfortable on small screens */
@media (max-width: 520px) {
  .header nav {
    gap: 8px;
    font-size: 11px;
  }
}

/* =========================================================
   Project header — full-bleed sticky bar
   Keep the contents aligned with .wrap while allowing the
   header background/border to span the full viewport width.
   ========================================================= */
.case-header.wrap {
  width: 100%;
  margin-inline: 0;
  padding-inline: max(48px, calc((100vw - 1180px) / 2));
}

@media (max-width: 950px) {
  .case-header.wrap {
    padding-inline: 24px;
  }
}

@media (max-width: 720px) {
  .case-header.wrap {
    padding-inline: 18px;
  }
}

/* =========================================================
   Final mobile sticky navigation fix
   Keep both the home navigation and project header sticky in
   portrait mode. This block intentionally lives at the end of
   the stylesheet so it overrides earlier mobile media rules.
   ========================================================= */
@media (max-width: 720px) {
  /* Avoid creating a horizontal scroll container that can
     interfere with sticky positioning in mobile Safari. */
  html,
  body {
    overflow-x: clip;
  }

  .header,
  .case-header {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 900;
  }

  .header {
    background: rgba(11, 17, 25, 0.92);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
  }

  .case-header {
    background: rgba(11, 17, 25, 0.94);
    backdrop-filter: blur(18px) saturate(130%);
    -webkit-backdrop-filter: blur(18px) saturate(130%);
  }

  /* Keep the scroll indicator above the sticky navigation. */
  .scroll-progress {
    z-index: 1200;
  }
}
