:root {
  --navy-950: #06172c;
  --navy-900: #081e38;
  --navy-800: #0c2d52;
  --ink: #0d2138;
  --muted: #5f6f7f;
  --blue: #3478f6;
  --blue-bright: #5b91ff;
  --cyan: #79dbd0;
  --warm: #f3f0e9;
  --paper: #fbfcfd;
  --line: #dbe3eb;
  --white: #ffffff;
  --shadow: 0 30px 70px rgba(6, 23, 44, 0.12);
  --radius-lg: 32px;
  --radius-md: 20px;
  --shell: min(1180px, calc(100vw - 48px));
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, Manrope, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(6, 23, 44, 0.82);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: max-content;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 13px;
}

.brand-dot {
  width: 6px;
  height: 6px;
  margin: 18px 0 0 4px;
  border-radius: 50%;
  background: var(--cyan);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-menu a {
  position: relative;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 650;
  transition: color 180ms ease;
}

.nav-menu a::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--cyan);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}

.nav-menu a:hover,
.nav-menu a.is-current {
  color: var(--white);
}

.nav-menu a:hover::after,
.nav-menu a.is-current::after {
  transform: scaleX(1);
  transform-origin: left;
}

.language-toggle {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.language-option {
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  transition: color 180ms ease;
}

.language-option.is-active {
  color: var(--white);
}

.toggle-track {
  position: relative;
  display: block;
  width: 31px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.toggle-track span {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

html[lang="en"] .toggle-track span {
  transform: translateX(13px);
}

.menu-toggle {
  display: none;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.96fr);
  align-items: center;
  min-height: 820px;
  padding-top: calc(var(--header-height) + 56px);
  padding-bottom: 82px;
  color: var(--white);
}

.hero::before {
  position: absolute;
  z-index: -2;
  top: 0;
  right: calc((100vw - 100%) / -2);
  bottom: 0;
  left: calc((100vw - 100%) / -2);
  background:
    radial-gradient(circle at 74% 22%, rgba(52, 120, 246, 0.23), transparent 29%),
    radial-gradient(circle at 22% 96%, rgba(121, 219, 208, 0.1), transparent 23%),
    var(--navy-950);
  content: "";
}

.hero::after {
  position: absolute;
  z-index: -1;
  top: var(--header-height);
  right: calc((100vw - 100%) / -2);
  bottom: 0;
  width: 50vw;
  border-left: 1px solid rgba(255, 255, 255, 0.045);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.018), transparent);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding-right: 48px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 28px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  position: relative;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 5px rgba(121, 219, 208, 0.12);
}

.hero h1 {
  margin: 0;
  font-size: clamp(54px, 6.2vw, 88px);
  font-weight: 760;
  letter-spacing: -0.065em;
  line-height: 0.99;
}

.hero h1 > span {
  display: block;
}

.hero-accent {
  margin-top: 14px;
  color: #a9c6ff;
}

.hero-lead {
  max-width: 630px;
  margin: 32px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  min-height: 52px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button svg,
.contact-email svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.button:hover {
  transform: translateY(-3px);
}

.button-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 14px 40px rgba(52, 120, 246, 0.26);
}

.button-primary:hover {
  background: #4383fb;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
}

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.09);
}

.hero-links {
  display: flex;
  gap: 24px;
  margin-top: 30px;
}

.hero-links a {
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 700;
  transition: color 180ms ease;
}

.hero-links a:hover {
  color: var(--white);
}

.hero-visual {
  position: relative;
  min-height: 610px;
}

.visual-grid {
  position: absolute;
  inset: 7% -10% 3% 0;
  opacity: 0.25;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.11) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 5%, transparent 72%);
}

.route-line {
  position: absolute;
  inset: 25px -15px auto auto;
  width: 97%;
  overflow: visible;
}

.route-line path {
  fill: none;
  stroke: rgba(121, 219, 208, 0.32);
  stroke-dasharray: 8 11;
  stroke-width: 2;
}

.route-line circle {
  fill: var(--navy-950);
  stroke: var(--cyan);
  stroke-width: 3;
}

.route-line .route-end {
  fill: var(--cyan);
  stroke: rgba(121, 219, 208, 0.2);
  stroke-width: 10;
}

.build-card {
  position: absolute;
  z-index: 2;
  top: 112px;
  left: 55px;
  width: min(390px, 82%);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  background: rgba(10, 36, 67, 0.82);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(16px);
}

.build-card::after {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(52, 120, 246, 0.17);
  filter: blur(10px);
  content: "";
}

.build-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 19px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.55);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.window-dots {
  display: flex;
  gap: 5px;
}

.window-dots i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.26);
}

.build-status {
  display: flex;
  gap: 8px;
  padding: 22px 24px 8px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
}

.code-key {
  color: #a9c6ff;
}

.code-value {
  color: var(--cyan);
}

.build-focus {
  display: flex;
  flex-direction: column;
  padding: 22px 24px 18px;
}

.tiny-label {
  margin-bottom: 7px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.build-focus strong {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.build-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0 24px 24px;
}

.build-stack span {
  padding: 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.64);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.metric {
  position: absolute;
  z-index: 3;
  display: flex;
  flex-direction: column;
  min-width: 150px;
  padding: 17px 19px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 17px;
  background: rgba(8, 30, 56, 0.88);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.metric strong {
  color: var(--white);
  font-size: 25px;
  letter-spacing: -0.05em;
  line-height: 1;
}

.metric sup {
  color: #a9c6ff;
  font-size: 11px;
  letter-spacing: 0;
}

.metric span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.35;
}

.metric-a {
  top: 36px;
  right: 18px;
}

.metric-b {
  right: -12px;
  bottom: 111px;
}

.metric-c {
  bottom: 35px;
  left: 5px;
}

.scroll-hint {
  position: absolute;
  bottom: 24px;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.scroll-hint i {
  width: 58px;
  height: 1px;
  background: rgba(255, 255, 255, 0.22);
}

.section {
  padding: 120px 0;
}

.section-light {
  background: var(--paper);
}

.section-navy {
  background: var(--navy-900);
  color: var(--white);
}

.section-warm {
  background: var(--warm);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: 70px;
  margin-bottom: 68px;
}

.section-index {
  margin: 0 0 18px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.section-heading h2,
.about-main h2,
.contact h2 {
  max-width: 790px;
  margin: 0;
  font-size: clamp(40px, 5vw, 66px);
  font-weight: 760;
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.section-heading > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 16px;
}

.section-heading-inverse > p {
  color: rgba(255, 255, 255, 0.58);
}

.section-heading-inverse .section-index {
  color: var(--cyan);
}

.project-featured {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(440px, 1.05fr);
  min-height: 640px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 62px;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-meta span + span::before {
  margin-right: 12px;
  color: #9aabb9;
  content: "/";
}

.project-copy h3 {
  margin: 20px 0 7px;
  font-size: 43px;
  font-weight: 780;
  letter-spacing: -0.05em;
  line-height: 1.1;
}

.project-tagline {
  margin: 0 0 24px;
  color: #33506b;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.45;
}

.project-copy > p:not(.project-tagline) {
  margin: 0;
  color: var(--muted);
}

.project-points {
  display: grid;
  gap: 9px;
  margin: 25px 0;
  padding: 0;
  list-style: none;
}

.project-points li {
  position: relative;
  padding-left: 20px;
  color: #375169;
  font-size: 14px;
}

.project-points li::before {
  position: absolute;
  top: 0.67em;
  left: 1px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  content: "";
}

.tag-list,
.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  padding: 7px 10px;
  border-radius: 8px;
  background: #eef4ff;
  color: #365779;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
}

.text-link span:last-child {
  transition: transform 180ms ease;
}

.text-link:hover span:last-child {
  transform: translate(3px, -3px);
}

.campus-showcase {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  background:
    radial-gradient(circle at 23% 20%, rgba(121, 219, 208, 0.22), transparent 24%),
    linear-gradient(145deg, #0b3159 0%, #0a2342 50%, #06182e 100%);
}

.campus-showcase::before {
  position: absolute;
  inset: 0;
  opacity: 0.19;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 42px 42px;
  content: "";
  mask-image: linear-gradient(to bottom right, black, transparent 80%);
}

.phone-shot {
  position: absolute;
  overflow: hidden;
  border-radius: 24px;
  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.34);
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
}

.phone-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-shot-map {
  z-index: 2;
  top: 62px;
  left: 50%;
  width: 224px;
  height: 490px;
  transform: translateX(-50%) rotate(0deg);
}

.phone-shot-home {
  z-index: 1;
  top: 112px;
  left: 8%;
  width: 188px;
  height: 412px;
  opacity: 0.86;
  transform: rotate(-7deg);
}

.phone-shot-ar {
  z-index: 1;
  top: 112px;
  right: 8%;
  width: 188px;
  height: 412px;
  opacity: 0.86;
  transform: rotate(7deg);
}

.campus-showcase:hover .phone-shot-map {
  transform: translateX(-50%) translateY(-8px);
}

.campus-showcase:hover .phone-shot-home {
  transform: translate(-7px, -2px) rotate(-9deg);
}

.campus-showcase:hover .phone-shot-ar {
  transform: translate(7px, -2px) rotate(9deg);
}

.project-secondary {
  display: grid;
  grid-template-columns: minmax(380px, 0.8fr) minmax(0, 1.2fr);
  min-height: 430px;
  margin-top: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--white);
}

.project-copy.compact {
  justify-content: center;
  padding: 56px 64px;
}

.project-copy.compact h3 {
  font-size: 36px;
}

.project-copy.compact .tag-list {
  margin-top: 25px;
}

.circuit-visual {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #eaf0f6;
}

.circuit-visual::before {
  position: absolute;
  inset: 0;
  opacity: 0.72;
  background-image:
    linear-gradient(rgba(45, 84, 120, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(45, 84, 120, 0.12) 1px, transparent 1px);
  background-size: 28px 28px;
  content: "";
}

.circuit-chip {
  position: relative;
  z-index: 2;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  border: 2px solid #6e8aa5;
  border-radius: 20px;
  background: var(--navy-800);
  color: var(--cyan);
  box-shadow: 0 20px 40px rgba(6, 23, 44, 0.2);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 28px;
  font-weight: 800;
}

.pin {
  position: absolute;
  z-index: 1;
  width: 70px;
  height: 2px;
  background: #7490aa;
}

.pin::after {
  position: absolute;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
  content: "";
}

.pin-1 { top: 42%; left: 6%; }
.pin-2 { top: 58%; left: 6%; }
.pin-3 { top: 42%; right: 6%; }
.pin-4 { top: 58%; right: 6%; }
.pin-1::after, .pin-2::after { left: 0; }
.pin-3::after, .pin-4::after { right: 0; }

.wire {
  position: absolute;
  border: 1px solid #9eb2c4;
  border-radius: 50%;
}

.wire-a { width: 310px; height: 310px; }
.wire-b { width: 390px; height: 210px; }
.wire-c { width: 220px; height: 380px; }

.binary {
  position: absolute;
  z-index: 1;
  color: #7d94aa;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
}

.binary-a { top: 42px; left: 32px; transform: rotate(-90deg); }
.binary-b { right: 36px; bottom: 48px; }

.timeline {
  margin-top: 20px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 118px 44px 1fr;
  gap: 0;
  min-height: 240px;
}

.timeline-date {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 8px 30px 0 0;
}

.timeline-date span {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 13px;
  font-weight: 750;
}

.timeline-date small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
}

.timeline-marker {
  position: relative;
}

.timeline-marker::after {
  position: absolute;
  top: 26px;
  bottom: -26px;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
  content: "";
}

.timeline-item:last-child .timeline-marker::after {
  display: none;
}

.timeline-marker i {
  position: absolute;
  z-index: 1;
  top: 8px;
  left: 50%;
  width: 16px;
  height: 16px;
  border: 4px solid var(--navy-900);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 1px rgba(121, 219, 208, 0.45);
  transform: translateX(-50%);
}

.timeline-content {
  padding: 0 0 64px 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.timeline-item:last-child .timeline-content {
  padding-bottom: 0;
  border-bottom: 0;
}

.role-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.role-head h3 {
  margin: 0;
  font-size: 31px;
  letter-spacing: -0.04em;
}

.role-head span {
  color: rgba(255, 255, 255, 0.35);
  font-size: 11px;
  text-transform: uppercase;
}

.timeline-content h4 {
  margin: 4px 0 16px;
  color: #a9c6ff;
  font-size: 14px;
  font-weight: 650;
}

.timeline-content p {
  max-width: 820px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
}

.timeline-tags {
  margin-top: 19px;
}

.timeline-tags span {
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  color: rgba(255, 255, 255, 0.54);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 10px;
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.6fr);
  gap: 100px;
  align-items: start;
}

.about-main h2 {
  max-width: 730px;
  margin-bottom: 36px;
}

.about-main > p:not(.section-index) {
  max-width: 780px;
  margin: 0 0 18px;
  color: #596a79;
  font-size: 17px;
}

.education-card {
  display: grid;
  gap: 0;
  margin-top: 45px;
  border-top: 1px solid #ccd5dc;
}

.education-card > div {
  display: grid;
  grid-template-columns: 108px 1fr;
  padding: 22px 0;
  border-bottom: 1px solid #ccd5dc;
}

.education-card span {
  grid-row: 1 / 3;
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
  font-weight: 750;
}

.education-card strong {
  font-size: 14px;
  line-height: 1.45;
}

.education-card small {
  margin-top: 4px;
  color: #72808c;
  font-size: 12px;
}

.skills-panel {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  overflow: hidden;
  border-radius: 26px;
  background: var(--navy-900);
  color: var(--white);
  box-shadow: 0 25px 55px rgba(6, 23, 44, 0.15);
}

.skills-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 23px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.skill-group {
  padding: 22px 25px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.skill-group:last-child {
  border-bottom: 0;
}

.skill-group h3 {
  margin: 0 0 7px;
  color: #a9c6ff;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-group p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.8;
}

.credentials {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 90px;
  margin-top: 120px;
  padding-top: 60px;
  border-top: 1px solid #ccd5dc;
}

.credential-intro > span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.14em;
}

.credential-intro h3 {
  margin: 14px 0 0;
  font-size: 32px;
  letter-spacing: -0.045em;
  line-height: 1.18;
}

.credential-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.credential-grid article {
  display: flex;
  flex-direction: column;
  min-height: 235px;
  padding-left: 22px;
  border-left: 1px solid #c7d1da;
}

.credential-number {
  color: var(--blue);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 11px;
}

.credential-grid h4 {
  margin: 38px 0 11px;
  font-size: 17px;
}

.credential-grid p {
  margin: 0;
  color: #657483;
  font-size: 13px;
}

.credential-grid a {
  margin-top: auto;
  padding-top: 20px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 750;
}

.contact {
  position: relative;
  overflow: hidden;
  padding: 120px 0 86px;
  background:
    radial-gradient(circle at 90% 20%, rgba(52, 120, 246, 0.22), transparent 28%),
    var(--navy-950);
  color: var(--white);
}

.contact::after {
  position: absolute;
  right: -170px;
  bottom: -270px;
  width: 610px;
  height: 610px;
  border: 1px solid rgba(121, 219, 208, 0.16);
  border-radius: 50%;
  box-shadow: 0 0 0 82px rgba(121, 219, 208, 0.025), 0 0 0 164px rgba(121, 219, 208, 0.018);
  content: "";
}

.contact-inner {
  position: relative;
  z-index: 1;
}

.contact .section-index {
  color: var(--cyan);
}

.contact h2 {
  max-width: 850px;
}

.contact-inner > p:not(.section-index) {
  max-width: 650px;
  margin: 29px 0 0;
  color: rgba(255, 255, 255, 0.63);
  font-size: 17px;
}

.contact-email {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 840px;
  margin-top: 60px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.26);
  color: #a9c6ff;
  font-size: clamp(23px, 4vw, 45px);
  font-weight: 680;
  letter-spacing: -0.035em;
  transition: color 180ms ease, border-color 180ms ease;
}

.contact-email svg {
  width: 34px;
  transition: transform 180ms ease;
}

.contact-email:hover {
  border-color: var(--cyan);
  color: var(--white);
}

.contact-email:hover svg {
  transform: translateX(6px);
}

.contact-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 70px;
  color: rgba(255, 255, 255, 0.36);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-meta div {
  display: flex;
  gap: 22px;
}

.contact-meta a:hover {
  color: var(--white);
}

footer {
  background: #041224;
  color: rgba(255, 255, 255, 0.34);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  font-size: 11px;
}

.footer-inner a:hover {
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 650ms ease, transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1080px) {
  :root {
    --shell: min(100% - 40px, 920px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 160px;
    padding-bottom: 100px;
  }

  .hero-copy {
    max-width: 780px;
    padding-right: 0;
  }

  .hero-visual {
    width: min(100%, 650px);
    min-height: 550px;
    margin: 30px auto 0;
  }

  .hero::after {
    display: none;
  }

  .scroll-hint {
    display: none;
  }

  .project-featured {
    grid-template-columns: 1fr;
  }

  .campus-showcase {
    min-height: 600px;
  }

  .about-layout,
  .credentials {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .skills-panel {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .skills-head {
    grid-column: 1 / -1;
  }

  .skill-group:nth-of-type(odd) {
    border-left: 1px solid rgba(255, 255, 255, 0.08);
  }

  .credential-grid {
    gap: 18px;
  }
}

@media (max-width: 760px) {
  :root {
    --shell: calc(100% - 32px);
    --header-height: 70px;
    --radius-lg: 24px;
  }

  .nav {
    grid-template-columns: 1fr auto auto;
    gap: 11px;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    font-size: 18px;
  }

  .menu-toggle {
    position: relative;
    z-index: 101;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    cursor: pointer;
  }

  .menu-toggle span {
    position: absolute;
    width: 17px;
    height: 1px;
    background: var(--white);
    transition: transform 180ms ease;
  }

  .menu-toggle span:first-child { transform: translateY(-4px); }
  .menu-toggle span:last-child { transform: translateY(4px); }
  .menu-toggle[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

  .nav-menu {
    position: fixed;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 20px 16px 34px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(6, 23, 44, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .nav-menu.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-menu a {
    width: 100%;
    padding: 15px 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 17px;
  }

  .nav-menu a::after {
    display: none;
  }

  .language-toggle {
    padding-inline: 8px;
  }

  .hero {
    padding-top: 125px;
    padding-bottom: 72px;
  }

  .hero h1 {
    font-size: clamp(46px, 14vw, 64px);
  }

  .hero-lead {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hero-links {
    justify-content: center;
  }

  .hero-visual {
    min-height: 480px;
    margin-top: 12px;
  }

  .build-card {
    top: 102px;
    left: 50%;
    width: calc(100% - 42px);
    transform: translateX(-50%);
  }

  .metric {
    min-width: 122px;
    padding: 14px;
  }

  .metric strong {
    font-size: 21px;
  }

  .metric-a { top: 37px; right: 0; }
  .metric-b { right: 0; bottom: 45px; }
  .metric-c { bottom: 5px; left: 0; }

  .section {
    padding: 84px 0;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 42px;
  }

  .section-heading h2,
  .about-main h2,
  .contact h2 {
    font-size: clamp(38px, 11vw, 52px);
  }

  .project-copy,
  .project-copy.compact {
    padding: 36px 25px 40px;
  }

  .project-copy h3,
  .project-copy.compact h3 {
    font-size: 34px;
  }

  .project-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .project-meta span + span::before {
    display: none;
  }

  .campus-showcase {
    min-height: 510px;
  }

  .phone-shot-map {
    top: 48px;
    width: 184px;
    height: 403px;
  }

  .phone-shot-home,
  .phone-shot-ar {
    top: 89px;
    width: 150px;
    height: 329px;
  }

  .phone-shot-home { left: -5%; }
  .phone-shot-ar { right: -5%; }

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

  .circuit-visual {
    min-height: 320px;
  }

  .timeline-item {
    grid-template-columns: 70px 25px 1fr;
    min-height: 260px;
  }

  .timeline-date {
    padding-right: 12px;
  }

  .timeline-content {
    padding-left: 20px;
  }

  .role-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

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

  .skill-group:nth-of-type(odd) {
    border-left: 0;
  }

  .education-card > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .education-card span {
    grid-row: auto;
    margin-bottom: 4px;
  }

  .credentials {
    margin-top: 80px;
    padding-top: 45px;
  }

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

  .credential-grid article {
    min-height: 180px;
  }

  .credential-grid h4 {
    margin-top: 23px;
  }

  .contact {
    padding: 85px 0 65px;
  }

  .contact-email {
    margin-top: 44px;
    overflow-wrap: anywhere;
  }

  .contact-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
    margin-top: 55px;
  }
}

@media (max-width: 410px) {
  .language-option {
    display: none;
  }

  .language-toggle {
    gap: 0;
  }

  .phone-shot-home,
  .phone-shot-ar {
    opacity: 0.55;
  }
}

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

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
