:root {
  --ink: #e8fbff;
  --muted: #84a5ad;
  --cyan: #58f5ff;
  --cyan-strong: #00cddd;
  --lime: #b7ff58;
  --violet: #b48cff;
  --orange: #ffae61;
  --night: #03080b;
  --panel: rgba(7, 18, 23, 0.78);
  --line: rgba(121, 219, 231, 0.16);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--night); }

body {
  margin: 0;
  background:
    radial-gradient(circle at 72% 8%, rgba(0, 205, 221, 0.12), transparent 30rem),
    radial-gradient(circle at 12% 35%, rgba(91, 65, 188, 0.09), transparent 28rem),
    var(--night);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; }
a { color: inherit; text-decoration: none; }

.page-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(123, 224, 237, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 224, 237, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.018;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 74px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(22px, 4vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(3, 8, 11, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 750 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  background: var(--cyan);
  color: #031013;
  box-shadow: 0 0 24px rgba(88, 245, 255, 0.3);
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 22% 100%, 0 78%);
}

.brand small { color: var(--muted); font-size: 9px; }
.nav-links { display: flex; gap: 24px; }

.nav-links button, .nav-links a {
  border: 0;
  background: transparent;
  padding: 28px 0 25px;
  color: #abc4ca;
  cursor: pointer;
  font: 650 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
  transition: 180ms ease;
}

.nav-links button:hover, .nav-links button:focus-visible, .nav-links a:hover, .nav-links a:focus-visible {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
  outline: none;
}

.nav-links button span, .nav-links a span { display: none; }
.system-status {
  justify-self: end;
  color: var(--muted);
  font: 650 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.system-status i, .availability i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 12px var(--lime);
  animation: pulse-dot 1.8s infinite;
}

.menu-button { display: none; }
.section-shell { width: min(1440px, calc(100% - 48px)); margin: 0 auto; }

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(320px, 0.92fr) minmax(440px, 1.15fr) minmax(170px, 0.36fr);
  align-items: center;
  gap: clamp(20px, 3vw, 64px);
  padding-block: 70px 55px;
}

.hero-copy { position: relative; z-index: 3; }
.eyebrow, .section-index {
  color: var(--cyan);
  font: 700 10px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 20px;
  margin-right: 10px;
  background: rgba(88, 245, 255, 0.1);
  border: 1px solid rgba(88, 245, 255, 0.28);
}

.hero h1, .section-heading h2, .about h2, .contact h2 {
  margin: 22px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero h1 { font-size: clamp(49px, 5.45vw, 88px); line-height: 0.94; }
h1 em, h2 em {
  color: var(--cyan);
  font-weight: 400;
  text-shadow: 0 0 32px rgba(88, 245, 255, 0.16);
}

.hero-summary {
  max-width: 560px;
  color: #91adb4;
  font-size: clamp(15px, 1.25vw, 19px);
  line-height: 1.75;
}

.hero-actions, .contact-actions {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-top: 34px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid var(--cyan);
  background: var(--cyan);
  color: #021013;
  cursor: pointer;
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 0 30px rgba(88, 245, 255, 0.13);
  transition: 180ms ease;
}

.primary-action:hover, .primary-action:focus-visible {
  background: #b7fbff;
  transform: translateY(-2px);
  outline: none;
  box-shadow: 0 8px 34px rgba(88, 245, 255, 0.24);
}

.text-action {
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1px solid rgba(88, 245, 255, 0.35);
  padding: 14px 0;
}

.text-action:hover, .text-action:focus-visible { color: var(--cyan); outline: none; }
.availability {
  margin-top: 36px;
  color: #6f8c93;
  font: 650 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.avatar-stage {
  position: relative;
  min-height: 660px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.avatar-stage::before {
  content: "";
  position: absolute;
  inset: 8% 0 3%;
  z-index: -3;
  background: radial-gradient(circle, rgba(88, 245, 255, 0.11), transparent 58%);
  filter: blur(18px);
}

.radar-ring {
  position: absolute;
  width: 540px;
  aspect-ratio: 1;
  border: 1px solid rgba(88, 245, 255, 0.16);
  border-radius: 50%;
}

.ring-one { animation: slow-spin 22s linear infinite; border-style: dashed; }
.ring-two { width: 420px; border-color: rgba(88, 245, 255, 0.22); }
.ring-three { width: 300px; border-color: rgba(88, 245, 255, 0.1); box-shadow: inset 0 0 50px rgba(88, 245, 255, 0.04); }

.ring-one::before, .ring-one::after {
  content: "";
  position: absolute;
  inset: -5px auto auto 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
}

.ring-one::after {
  inset: auto 12% 11% auto;
  background: var(--violet);
  box-shadow: 0 0 16px var(--violet);
}

.axis { position: absolute; background: linear-gradient(90deg, transparent, rgba(88, 245, 255, 0.12), transparent); }
.axis-x { width: 570px; height: 1px; }
.axis-y { width: 1px; height: 620px; background: linear-gradient(transparent, rgba(88, 245, 255, 0.12), transparent); }

.avatar-halo {
  position: absolute;
  width: 280px;
  height: 390px;
  border-radius: 48% 48% 35% 35%;
  background: linear-gradient(180deg, rgba(88, 245, 255, 0.1), rgba(88, 245, 255, 0.01));
  filter: blur(14px);
}

.avatar-portrait {
  position: relative;
  z-index: 5;
  width: 390px;
  height: 565px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-top: 34px;
  animation: avatar-idle 5s ease-in-out infinite;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.62)) drop-shadow(0 0 24px rgba(88, 245, 255, 0.14));
}

.avatar-portrait::before {
  content: "";
  position: absolute;
  inset: 11% 4% 3%;
  z-index: -1;
  border-radius: 48% 48% 24% 24%;
  background: radial-gradient(circle at 50% 34%, rgba(88, 245, 255, 0.13), rgba(88, 245, 255, 0.015) 57%, transparent 72%);
  box-shadow: inset 0 0 55px rgba(88, 245, 255, 0.06);
}

.avatar-portrait img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
  user-select: none;
  filter: saturate(0.96) contrast(1.03);
}

.avatar {
  position: relative;
  width: 330px;
  height: 470px;
  margin-top: 40px;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.55));
  animation: avatar-idle 5s ease-in-out infinite;
}

.avatar-head {
  position: absolute;
  z-index: 5;
  top: 28px;
  left: 50%;
  width: 154px;
  height: 190px;
  transform: translateX(-50%);
  border: 1px solid rgba(143, 246, 255, 0.75);
  border-radius: 45% 45% 47% 47% / 35% 35% 58% 58%;
  background:
    linear-gradient(90deg, transparent 48%, rgba(255,255,255,.05) 50%, transparent 52%),
    radial-gradient(circle at 50% 35%, #243f48, #10252c 62%, #071319 100%);
  box-shadow:
    inset 13px 0 24px rgba(88, 245, 255, 0.06),
    inset -13px 0 24px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(88, 245, 255, 0.12);
}

.avatar-hair {
  position: absolute;
  inset: -6px -1px auto;
  height: 63px;
  border-radius: 62% 55% 25% 22%;
  background: linear-gradient(145deg, #061013 12%, #16313a 55%, #071216);
  border-top: 1px solid rgba(88, 245, 255, 0.45);
  clip-path: polygon(0 66%, 7% 22%, 25% 4%, 58% 0, 92% 21%, 100% 58%, 85% 45%, 75% 58%, 64% 42%, 48% 55%, 34% 36%, 21% 54%, 10% 42%);
}

.avatar-ear {
  position: absolute;
  top: 79px;
  width: 16px;
  height: 40px;
  border: 1px solid rgba(88, 245, 255, 0.45);
  background: #10262d;
}

.avatar-ear.left { left: -10px; border-radius: 60% 0 0 60%; }
.avatar-ear.right { right: -10px; border-radius: 0 60% 60% 0; }

.avatar-eye {
  position: absolute;
  top: 82px;
  width: 37px;
  height: 13px;
  overflow: hidden;
  border-top: 2px solid rgba(187, 251, 255, 0.78);
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.23);
  animation: blink 5.8s infinite;
}

.avatar-eye.left { left: 29px; }
.avatar-eye.right { right: 29px; }

.avatar-eye i {
  position: absolute;
  top: 2px;
  left: 15px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: eye-look 7s ease-in-out infinite;
}

.avatar-nose {
  position: absolute;
  top: 93px;
  left: 50%;
  width: 13px;
  height: 32px;
  transform: translateX(-50%) skewX(-8deg);
  border-right: 1px solid rgba(159, 239, 246, 0.45);
  border-bottom: 1px solid rgba(159, 239, 246, 0.28);
  border-radius: 0 0 60% 0;
}

.avatar-mouth {
  position: absolute;
  left: 50%;
  bottom: 34px;
  width: 38px;
  height: 8px;
  transform: translateX(-50%);
  border-bottom: 1px solid rgba(178, 242, 247, 0.55);
  border-radius: 50%;
}

.avatar-neck {
  position: absolute;
  z-index: 2;
  top: 195px;
  left: 50%;
  width: 72px;
  height: 66px;
  transform: translateX(-50%);
  border: 1px solid rgba(88, 245, 255, 0.45);
  background: linear-gradient(90deg, #0c1e25, #17343d, #0a181d);
}

.avatar-body {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 236px;
  width: 235px;
  height: 218px;
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(88, 245, 255, 0.56);
  border-radius: 42% 42% 14% 14% / 22% 22% 8% 8%;
  background:
    linear-gradient(90deg, transparent 49.5%, rgba(88, 245, 255, 0.28) 50%, transparent 50.5%),
    linear-gradient(160deg, #16343d, #0b1d24 55%, #071318);
  box-shadow: inset 0 22px 40px rgba(88, 245, 255, 0.06), 0 0 36px rgba(88, 245, 255, 0.08);
}

.avatar-body::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -2px;
  width: 104px;
  height: 46px;
  transform: translateX(-50%);
  border: 1px solid rgba(88, 245, 255, 0.46);
  border-radius: 0 0 48% 48%;
  background: #071318;
}

.avatar-body b {
  position: absolute;
  left: 50%;
  top: 84px;
  transform: translateX(-50%);
  color: rgba(88, 245, 255, 0.5);
  font: 800 20px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.body-seam { position: absolute; top: 62px; width: 66px; height: 1px; background: rgba(88, 245, 255, 0.18); }
.seam-left { left: 18px; transform: rotate(24deg); }
.seam-right { right: 18px; transform: rotate(-24deg); }

.avatar-arm {
  position: absolute;
  z-index: 1;
  top: 268px;
  width: 62px;
  height: 186px;
  border: 1px solid rgba(88, 245, 255, 0.35);
  background: linear-gradient(90deg, #071318, #17343d, #09181e);
}

.avatar-arm.left {
  left: 20px;
  transform: rotate(8deg);
  border-radius: 48% 10% 45% 45%;
  transform-origin: top;
  animation: arm-left 6s ease-in-out infinite;
}

.avatar-arm.right {
  right: 20px;
  transform: rotate(-8deg);
  border-radius: 10% 48% 45% 45%;
  transform-origin: top;
  animation: arm-right 6s ease-in-out infinite;
}

.scan-line {
  position: absolute;
  z-index: 9;
  top: 85px;
  width: 350px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
  box-shadow: 0 0 16px rgba(88, 245, 255, 0.8);
  opacity: 0.58;
  animation: scan 4.8s ease-in-out infinite;
}

.holo-base {
  position: absolute;
  bottom: 35px;
  width: 350px;
  height: 55px;
  border: 1px solid rgba(88, 245, 255, 0.45);
  border-radius: 50%;
  transform: perspective(320px) rotateX(64deg);
  box-shadow: inset 0 0 35px rgba(88, 245, 255, 0.11), 0 0 28px rgba(88, 245, 255, 0.08);
}

.holo-base span {
  position: absolute;
  inset: 10px 36px;
  border: 1px dashed rgba(88, 245, 255, 0.35);
  border-radius: 50%;
  animation: slow-spin 8s linear infinite reverse;
}

.hud-label {
  position: absolute;
  color: #58747b;
  font: 650 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
}

.hud-label-top { top: 48px; left: 22px; }
.hud-label-bottom { right: 25px; bottom: 31px; }

.hud-node {
  position: absolute;
  z-index: 5;
  width: 58px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 245, 255, 0.32);
  background: rgba(4, 13, 17, 0.72);
  color: var(--cyan);
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
  box-shadow: 0 0 18px rgba(88, 245, 255, 0.08);
}

.hud-node::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 55px;
  height: 1px;
  background: linear-gradient(90deg, rgba(88,245,255,.4), transparent);
}

.node-a { left: 2%; top: 26%; }
.node-a::after { left: 100%; }
.node-b { right: 0; top: 40%; }
.node-b::after { right: 100%; transform: rotate(180deg); }
.node-c { left: 3%; bottom: 20%; }
.node-c::after { left: 100%; }

.hero-stats { display: grid; align-content: center; gap: 12px; }
.stat-card {
  position: relative;
  min-height: 142px;
  padding: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(10, 27, 33, 0.72), rgba(5, 13, 17, 0.65));
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 0 100%);
}

.stat-card::before { content: ""; position: absolute; top: 0; left: 0; width: 34px; height: 1px; background: var(--cyan); }
.stat-card > span, .stat-card small {
  display: block;
  color: #668188;
  font: 700 8px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.stat-card strong {
  display: block;
  margin: 12px 0;
  color: #defbff;
  font: 600 clamp(22px, 2vw, 32px)/0.9 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: -0.08em;
}

.accent-card strong { color: var(--cyan); font-size: 50px; }
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: rgba(8, 20, 25, 0.76); }
.ticker > div { width: max-content; display: flex; animation: ticker 34s linear infinite; }
.ticker span {
  display: inline-flex;
  align-items: center;
  gap: 34px;
  padding: 17px 22px;
  color: #739198;
  font: 750 10px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.16em;
}
.ticker i { color: var(--cyan); font-size: 7px; }

.about {
  display: grid;
  grid-template-columns: 0.33fr 1.05fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  padding-block: 150px;
}

.about h2, .section-heading h2, .contact h2 { font-size: clamp(40px, 4.7vw, 72px); line-height: 1.02; }
.about-heading .eyebrow { color: #769098; }
.about-copy { padding-top: 28px; color: #93adb3; font-size: 16px; line-height: 1.8; }
.about-copy > p:first-child { color: #c4d9de; font-size: 19px; }

.principles { display: grid; gap: 1px; margin-top: 35px; border: 1px solid var(--line); background: var(--line); }
.principles span {
  padding: 16px 18px;
  background: rgba(4, 12, 16, 0.92);
  color: #9cb4ba;
  font: 650 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.09em;
}
.principles b { color: var(--cyan); margin-right: 14px; }

.projects-section, .skills-section, .experience { padding-block: 130px; border-top: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 60px; align-items: end; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 440px; color: #78949b; line-height: 1.75; }

.filter-bar { display: flex; gap: 8px; margin: 58px 0 28px; overflow-x: auto; scrollbar-width: none; }
.filter-bar button {
  flex: 0 0 auto;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: rgba(6, 16, 21, 0.76);
  color: #78949b;
  cursor: pointer;
  font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-bar button:hover, .filter-bar button:focus-visible, .filter-bar button.active {
  color: #021013;
  border-color: var(--cyan);
  background: var(--cyan);
  outline: none;
}

.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; border: 1px solid var(--line); background: var(--line); }
.project-card {
  position: relative;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border: 0;
  background: #061015;
  text-align: left;
  cursor: pointer;
  transition: 220ms ease;
}

.project-card:hover, .project-card:focus-visible {
  z-index: 2;
  transform: translateY(-6px);
  outline: 1px solid var(--accent, var(--cyan));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.45), inset 0 0 50px color-mix(in srgb, var(--accent, var(--cyan)) 6%, transparent);
}

.accent-cyan { --accent: var(--cyan); }
.accent-violet { --accent: var(--violet); }
.accent-lime { --accent: var(--lime); }
.accent-orange { --accent: var(--orange); }

.project-topline { display: flex; justify-content: space-between; color: #67838a; font: 650 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.12em; }
.project-topline i { color: var(--accent); font-size: 17px; }
.project-glyph { position: relative; height: 190px; display: grid; place-items: center; margin: 18px 0 12px; }

.project-glyph::before, .project-glyph::after {
  content: "";
  position: absolute;
  width: 145px;
  height: 145px;
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  border-radius: 50%;
}

.project-glyph::after { width: 102px; height: 102px; border-style: dashed; animation: slow-spin 14s linear infinite; }
.project-glyph span {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 62%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, #041015);
  color: var(--accent);
  font: 750 24px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 12%, transparent);
  clip-path: polygon(0 0, 78% 0, 100% 22%, 100% 100%, 22% 100%, 0 78%);
}

.project-glyph i { position: absolute; width: 175px; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 48%, transparent), transparent); }
.project-content h3 { margin: 0; color: #ddf7fa; font: 550 26px/1.1 Georgia, "Times New Roman", serif; }
.project-subtitle { margin: 8px 0 16px !important; color: var(--accent) !important; font: 650 9px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace !important; letter-spacing: 0.08em; text-transform: uppercase; }
.project-content > p { color: #78949b; font-size: 13px; line-height: 1.65; }
.project-tags, .modal-tags, .skill-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.project-tags { margin-top: 18px; }
.project-tags span, .modal-tags span, .skill-cloud span {
  padding: 7px 9px;
  border: 1px solid rgba(118, 183, 192, 0.15);
  background: rgba(116, 185, 194, 0.045);
  color: #829da4;
  font: 650 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.05em;
}

.skills-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 65px; }
.skill-panel {
  min-height: 330px;
  padding: 23px;
  border: 1px solid var(--line);
  background: linear-gradient(150deg, rgba(9, 24, 30, 0.68), rgba(4, 12, 16, 0.66));
  transition: 180ms ease;
}
.skill-panel:hover { border-color: rgba(88, 245, 255, 0.38); transform: translateY(-3px); }
.skill-panel-head { display: flex; justify-content: space-between; color: #486269; font: 650 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.11em; }
.skill-panel-head i { color: var(--cyan); }
.skill-panel h3 { margin: 38px 0 8px; font: 500 26px/1.1 Georgia, "Times New Roman", serif; }
.skill-panel > p { min-height: 42px; color: #708b92; font-size: 12px; line-height: 1.55; }
.skill-cloud { margin-top: 24px; }
.skill-cloud span:hover { color: var(--cyan); border-color: rgba(88, 245, 255, 0.34); }

.experience-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 70px; border: 1px solid var(--line); background: var(--line); }
.experience-list article { position: relative; min-height: 340px; padding: 34px 27px; background: #050e12; }
.experience-marker {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 245, 255, 0.48);
  color: var(--cyan);
  font: 750 13px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.experience-number { position: absolute; top: 34px; right: 27px; color: #314950; font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.experience-list h3 { margin: 65px 0 18px; font: 500 25px/1.15 Georgia, "Times New Roman", serif; }
.experience-list p { color: #78949b; font-size: 13px; line-height: 1.75; }

.contact {
  position: relative;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-top: 1px solid var(--line);
  overflow: hidden;
}

.contact > p:not(.eyebrow) { max-width: 650px; color: #849fa6; line-height: 1.75; }
.contact-grid {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 40px;
  border: 1px solid var(--line);
  background: var(--line);
  text-align: left;
}

.contact-card {
  position: relative;
  min-height: 106px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 11px;
  padding: 20px 52px 20px 22px;
  background: rgba(5, 14, 18, 0.96);
  transition: 180ms ease;
}

.contact-card-wide { grid-column: 1 / -1; }
.contact-card span {
  color: #637f86;
  font: 700 8px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
}

.contact-card strong {
  overflow-wrap: anywhere;
  color: #cce6ea;
  font: 600 14px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.contact-card i {
  position: absolute;
  top: 50%;
  right: 22px;
  transform: translateY(-50%);
  color: var(--cyan);
  font-size: 18px;
}

.contact-card:hover,
.contact-card:focus-visible {
  z-index: 2;
  outline: 1px solid var(--cyan);
  background: rgba(8, 25, 31, 0.98);
  box-shadow: inset 0 0 38px rgba(88, 245, 255, 0.045);
}

.contact-orbit {
  position: absolute;
  z-index: -1;
  width: 570px;
  height: 570px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(88, 245, 255, 0.07);
  border-radius: 50%;
  box-shadow: inset 0 0 100px rgba(88, 245, 255, 0.025);
}

.contact-orbit::before, .contact-orbit::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  border: 1px dashed rgba(88, 245, 255, 0.09);
  border-radius: 50%;
  animation: slow-spin 35s linear infinite;
}

.contact-orbit::after { width: 280px; height: 280px; animation-direction: reverse; }
.contact-orbit span { color: rgba(88, 245, 255, 0.025); font: 800 160px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }

footer {
  min-height: 76px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 0 clamp(24px, 4vw, 72px);
  border-top: 1px solid var(--line);
  color: #516c73;
  font: 650 8px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.1em;
}
footer i { color: var(--cyan); }
footer a:hover, footer a:focus-visible { color: var(--cyan); outline: none; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(0, 4, 6, 0.82);
  backdrop-filter: blur(14px);
  animation: fade-in 160ms ease;
}
.modal-backdrop[hidden] { display: none; }

.project-modal {
  position: relative;
  width: min(840px, 100%);
  max-height: min(780px, 90vh);
  overflow-y: auto;
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid color-mix(in srgb, var(--accent) 52%, transparent);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 5%, transparent), transparent 42%), #061015;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.65), inset 0 0 70px color-mix(in srgb, var(--accent) 3%, transparent);
  clip-path: polygon(0 0, calc(100% - 28px) 0, 100% 28px, 100% 100%, 0 100%);
  animation: modal-in 220ms ease;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--accent);
  cursor: pointer;
  font-size: 26px;
}

.modal-code, .modal-category, .modal-impact span, .project-modal h3 {
  color: var(--accent);
  font: 700 9px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.modal-category { display: inline-block; margin-top: 28px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--accent) 36%, transparent); }
.project-modal h2 { margin: 18px 0 5px; font: 500 clamp(38px, 6vw, 66px)/1 Georgia, "Times New Roman", serif; letter-spacing: -0.045em; }
.modal-subtitle { margin: 0; color: var(--accent); font: 650 10px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.08em; text-transform: uppercase; }
.modal-description { max-width: 660px; margin: 32px 0; color: #a3bbc1; font-size: 16px; line-height: 1.75; }
.modal-impact { padding: 20px; border-left: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 4%, transparent); }
.modal-impact p { margin: 9px 0 0; color: #bed1d5; line-height: 1.6; }
.modal-columns { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 50px; margin-top: 36px; }
.project-modal h3 { margin-bottom: 18px; }
.project-modal ul { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.project-modal li { position: relative; padding-left: 18px; color: #839da4; font-size: 13px; line-height: 1.5; }
.project-modal li::before { content: "◆"; position: absolute; left: 0; top: 2px; color: var(--accent); font-size: 7px; }

@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes pulse-dot { 50% { opacity: 0.38; box-shadow: 0 0 4px var(--lime); } }
@keyframes avatar-idle { 50% { transform: translateY(-9px) rotate(.4deg); } }
@keyframes arm-left { 50% { transform: rotate(5deg); } }
@keyframes arm-right { 50% { transform: rotate(-5deg); } }
@keyframes blink { 0%, 43%, 47%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.08); } }
@keyframes eye-look { 0%, 100% { transform: translateX(-3px); } 45% { transform: translateX(3px); } 70% { transform: translateX(0); } }
@keyframes scan { 0%, 100% { transform: translateY(10px); opacity: .2; } 50% { transform: translateY(410px); opacity: .75; } }
@keyframes ticker { to { transform: translateX(-30%); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes modal-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }

@media (max-width: 1180px) {
  .topbar { grid-template-columns: 1fr auto; }
  .system-status { display: none; }
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); }
  .stat-card { min-height: 125px; }
  .projects-grid { grid-template-columns: repeat(2, 1fr); }
  .skills-grid { grid-template-columns: repeat(2, 1fr); }
  .experience-list { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 820px) {
  .section-shell { width: min(100% - 32px, 680px); }
  .topbar { min-height: 64px; padding-inline: 18px; }
  .brand small { display: none; }
  .menu-button {
    display: block;
    border: 1px solid var(--line);
    background: rgba(6, 18, 23, 0.7);
    padding: 10px 12px;
    font: 700 9px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
    letter-spacing: .1em;
  }
  .nav-links {
    position: fixed;
    inset: 64px 0 auto;
    display: none;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: rgba(3, 8, 11, .98);
  }
  .nav-links.is-open { display: grid; }
  .nav-links button, .nav-links a { display: flex; gap: 15px; padding: 16px; border: 1px solid var(--line); text-align: left; }
  .nav-links button span, .nav-links a span { display: inline; color: var(--cyan); }
  .hero { grid-template-columns: 1fr; padding-top: 75px; }
  .hero-copy { text-align: center; }
  .hero-summary { margin-inline: auto; }
  .hero-actions, .contact-actions { justify-content: center; }
  .avatar-stage { min-height: 560px; transform: scale(.86); margin: -50px -40px; }
  .hero-stats { grid-column: auto; grid-template-columns: 1fr; }
  .stat-card { text-align: center; }
  .about { grid-template-columns: 1fr; padding-block: 100px; }
  .about > .section-index { margin-bottom: -15px; }
  .about-copy { padding-top: 0; }
  .section-heading { grid-template-columns: 1fr; gap: 18px; }
  .projects-section, .skills-section, .experience { padding-block: 95px; }
  .projects-grid, .skills-grid, .experience-list { grid-template-columns: 1fr; }
  .project-card { min-height: 490px; }
  .modal-columns { grid-template-columns: 1fr; gap: 24px; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-card-wide { grid-column: auto; }
  footer { flex-direction: column; justify-content: center; padding-block: 22px; text-align: center; }
}

@media (max-width: 520px) {
  .brand { letter-spacing: .06em; }
  .hero h1 { font-size: clamp(42px, 13vw, 62px); }
  .hero-actions, .contact-actions { flex-direction: column; gap: 12px; }
  .primary-action { width: 100%; }
  .avatar-stage { transform: scale(.72); margin: -90px -90px; }
  .hero-stats { margin-top: -50px; }
  .about h2, .section-heading h2, .contact h2 { font-size: 40px; }
  .filter-bar { margin-top: 38px; }
  .project-card { min-height: 510px; }
  .project-modal { max-height: 94vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
