:root {
  --bg: #050914;
  --bg-2: #07111f;
  --panel: rgba(9, 19, 35, 0.72);
  --panel-strong: rgba(12, 27, 49, 0.88);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --text: #e8f7ff;
  --muted: #a9bdd2;
  --soft: #7f94aa;
  --line: rgba(125, 241, 255, 0.18);
  --line-strong: rgba(125, 241, 255, 0.38);
  --cyan: #53f4ff;
  --cyan-2: #20b8ff;
  --green: #74ffb6;
  --pink: #ff5ee7;
  --violet: #9867ff;
  --yellow: #ffe17a;
  --danger: #ff6b8d;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.42);
  --glow: 0 0 30px rgba(83, 244, 255, 0.28);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --header-h: 82px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-theme="light"] {
  --bg: #eef7ff;
  --bg-2: #dcefff;
  --panel: rgba(255, 255, 255, 0.7);
  --panel-strong: rgba(255, 255, 255, 0.9);
  --panel-soft: rgba(4, 20, 35, 0.06);
  --text: #07111f;
  --muted: #43556a;
  --soft: #66758a;
  --line: rgba(0, 120, 170, 0.18);
  --line-strong: rgba(0, 120, 170, 0.32);
  --shadow: 0 30px 90px rgba(54, 82, 112, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body[data-theme="light"] {
  color-scheme: light;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 15%, rgba(83, 244, 255, 0.14), transparent 32rem),
    radial-gradient(circle at 85% 6%, rgba(255, 94, 231, 0.14), transparent 34rem),
    linear-gradient(135deg, var(--bg), var(--bg-2) 50%, var(--bg));
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body::selection {
  background: rgba(83, 244, 255, 0.28);
  color: var(--text);
}

body.nav-open {
  overflow: hidden;
}

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

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

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section-pad {
  padding: 112px 0;
  position: relative;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 9999;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--cyan);
  color: #02111c;
  transform: translateY(-140%);
  transition: transform 0.25s ease;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--green));
  box-shadow: var(--glow);
  z-index: 1000;
}

#neuralCanvas,
.fx-grid,
.fx-aurora,
.fx-noise,
.fx-scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

#neuralCanvas {
  z-index: -5;
  opacity: 0.88;
}

.fx-grid {
  z-index: -4;
  background-image:
    linear-gradient(rgba(83, 244, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 244, 255, 0.07) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, transparent, black 8%, black 70%, transparent);
  animation: gridDrift 18s linear infinite;
}

.fx-aurora {
  z-index: -6;
  filter: blur(34px);
  opacity: 0.68;
  background:
    radial-gradient(circle at 20% 30%, rgba(32, 184, 255, 0.24), transparent 24rem),
    radial-gradient(circle at 70% 20%, rgba(152, 103, 255, 0.2), transparent 26rem),
    radial-gradient(circle at 60% 80%, rgba(116, 255, 182, 0.13), transparent 28rem);
  animation: auroraMove 14s ease-in-out infinite alternate;
}

.fx-noise {
  z-index: 998;
  opacity: 0.05;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220' viewBox='0 0 220 220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.8'/%3E%3C/svg%3E");
}

.fx-scanlines {
  z-index: 997;
  background: linear-gradient(to bottom, rgba(255,255,255,0.03), transparent 2px, transparent 6px);
  background-size: 100% 6px;
  opacity: 0.18;
}

.boot-screen {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1500;
  background: #02050b;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.boot-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.boot-panel {
  width: min(520px, calc(100% - 40px));
  padding: 26px;
  margin: auto;
  border: 1px solid rgba(83, 244, 255, 0.28);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(83, 244, 255, 0.08), rgba(255, 255, 255, 0.02));
  box-shadow: 0 0 60px rgba(83, 244, 255, 0.18);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.boot-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  margin-bottom: 18px;
}

.boot-dot {
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 20px var(--green);
}

.boot-bar {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  margin-bottom: 16px;
}

.boot-bar span {
  display: block;
  height: 100%;
  width: 100%;
  transform-origin: left;
  background: linear-gradient(90deg, var(--cyan), var(--pink), var(--green));
  animation: bootFill 1.25s var(--ease) forwards;
}

.boot-panel code {
  color: var(--muted);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  height: var(--header-h);
  display: flex;
  align-items: center;
  backdrop-filter: blur(22px);
  background: linear-gradient(180deg, rgba(5, 9, 20, 0.86), rgba(5, 9, 20, 0.5));
  border-bottom: 1px solid rgba(83, 244, 255, 0.12);
  transition: height 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

body[data-theme="light"] .site-header {
  background: linear-gradient(180deg, rgba(238, 247, 255, 0.86), rgba(238, 247, 255, 0.62));
}

.site-header.is-scrolled {
  height: 68px;
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.18);
}

.nav-shell {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background:
    linear-gradient(135deg, rgba(83, 244, 255, 0.2), rgba(255, 94, 231, 0.13)),
    rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  box-shadow: inset 0 0 20px rgba(83, 244, 255, 0.12), var(--glow);
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 1.02rem;
}

.brand-copy small {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.72rem;
}

.nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-list a:hover,
.nav-list a.is-active {
  color: var(--text);
  border-color: var(--line);
  background: rgba(83, 244, 255, 0.07);
  transform: translateY(-2px);
}

.nav-toggle,
.theme-toggle {
  border: 1px solid var(--line);
  background: var(--panel-soft);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span:not(.sr-only) {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: var(--cyan);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.theme-toggle {
  min-width: 96px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: 999px;
  padding: 0 12px;
}

.theme-toggle__orb {
  width: 24px;
  height: 24px;
  border-radius: 99px;
  background: radial-gradient(circle at 35% 35%, #fff, var(--cyan) 40%, var(--violet));
  box-shadow: 0 0 24px rgba(83, 244, 255, 0.45);
}

.theme-toggle__text {
  color: var(--muted);
  font-size: 0.84rem;
}

.floating-code {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.code-float {
  position: absolute;
  min-width: 210px;
  max-width: 330px;
  padding: 12px 14px;
  border: 1px solid rgba(83, 244, 255, 0.14);
  border-radius: 14px;
  background: rgba(8, 17, 31, 0.38);
  color: rgba(173, 238, 255, 0.56);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  white-space: nowrap;
  box-shadow: 0 0 26px rgba(83, 244, 255, 0.08);
  animation: floatCode var(--duration, 16s) linear infinite;
  transform: translate3d(var(--x, 0), 110vh, 0) rotate(var(--rot, 0deg));
}

.hero {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -160px;
  top: 130px;
  border-radius: 50%;
  border: 1px solid rgba(83, 244, 255, 0.16);
  box-shadow: inset 0 0 80px rgba(83, 244, 255, 0.06);
  animation: slowSpin 32s linear infinite;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 62px;
  align-items: center;
}

.hud-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
  margin-bottom: 18px;
}

.hud-label::before {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 0 18px currentColor;
}

.hero-title,
.section-heading h2,
.lab-panel h2 {
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 0.95;
}

.hero-title {
  max-width: 800px;
  font-size: clamp(3rem, 8vw, 7.4rem);
}

.hero-title .gradient-text,
.section-heading .gradient-text {
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: none;
}

.hero-subtitle {
  max-width: 680px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1.02rem, 2vw, 1.28rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 20px;
  overflow: hidden;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 800;
  letter-spacing: -0.01em;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn::after {
  content: "";
  position: absolute;
  inset: -60% -20%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  transform: translateX(-130%) rotate(12deg);
  transition: transform 0.7s var(--ease);
}

.btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

.btn:hover::after {
  transform: translateX(130%) rotate(12deg);
}

.btn-primary {
  background: linear-gradient(135deg, rgba(83, 244, 255, 0.92), rgba(116, 255, 182, 0.86));
  color: #02111c;
  border-color: transparent;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.status-chip,
.profile-card__chips span,
.card-tags span,
.project-stack span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(83, 244, 255, 0.06);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
}

.status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 14px var(--green);
}

.hero-visual {
  position: relative;
  min-height: 640px;
  display: grid;
  place-items: center;
}

.orbital-frame {
  position: absolute;
  inset: 10px;
  pointer-events: none;
}

.orbital-frame span {
  position: absolute;
  inset: 8%;
  border: 1px solid rgba(83, 244, 255, 0.16);
  border-radius: 42% 58% 56% 44% / 44% 45% 55% 56%;
  animation: morphSpin 18s linear infinite;
}

.orbital-frame span:nth-child(2) {
  inset: 16%;
  border-color: rgba(255, 94, 231, 0.14);
  animation-duration: 24s;
  animation-direction: reverse;
}

.orbital-frame span:nth-child(3) {
  inset: 25%;
  border-color: rgba(116, 255, 182, 0.14);
  animation-duration: 15s;
}

.profile-card,
.terminal-window,
.service-card,
.project-card,
.metric-card,
.skill-group,
.contact-form,
.timeline-item,
.lab-panel {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.profile-card {
  position: absolute;
  top: 4%;
  right: 7%;
  width: min(350px, 86vw);
  padding: 20px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  z-index: 2;
  animation: floatHero 6s ease-in-out infinite;
}

.profile-card__glow {
  position: absolute;
  inset: auto -20% -30% 10%;
  width: 70%;
  height: 52%;
  background: radial-gradient(circle, rgba(83, 244, 255, 0.2), transparent 68%);
  filter: blur(18px);
  pointer-events: none;
}

.profile-card__top {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.8rem;
  margin-bottom: 14px;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 99px;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
  animation: pulse 1.4s ease-in-out infinite;
}

.profile-photo-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid rgba(83, 244, 255, 0.24);
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 30% 20%, rgba(83,244,255,.18), transparent 44%),
    rgba(255,255,255,.04);
}

.profile-photo-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent, rgba(83, 244, 255, 0.14), transparent 70%);
  mix-blend-mode: screen;
}

.profile-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card__body {
  margin-top: 18px;
}

.mono,
.profile-card__body .mono {
  margin: 0 0 6px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.profile-card h2 {
  margin: 0;
  font-size: 1.55rem;
  letter-spacing: -0.03em;
}

.profile-card__body p:last-child {
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 0;
}

.profile-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-terminal {
  position: absolute;
  bottom: 5%;
  left: 1%;
  width: min(480px, 92vw);
  border-radius: var(--radius-lg);
  overflow: hidden;
  z-index: 3;
  animation: floatHero 7s ease-in-out -2s infinite;
}

.terminal-topbar {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(83, 244, 255, 0.14);
  background: rgba(3, 8, 16, 0.52);
}

.terminal-topbar span {
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: var(--danger);
}

.terminal-topbar span:nth-child(2) {
  background: var(--yellow);
}

.terminal-topbar span:nth-child(3) {
  background: var(--green);
}

.terminal-topbar strong {
  margin-left: 6px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.terminal-body {
  position: relative;
  min-height: 260px;
  padding: 18px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.terminal-body pre {
  margin: 0;
  color: #bbffdb;
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 0.88rem;
}

.terminal-body .cmd,
.terminal-body .prompt {
  color: var(--cyan);
}

.terminal-body .result {
  color: var(--green);
}

.terminal-cursor {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  margin-left: 4px;
  vertical-align: middle;
  background: var(--cyan);
  box-shadow: 0 0 16px var(--cyan);
  animation: blink 0.85s steps(2, start) infinite;
}

.metrics-section {
  position: relative;
  padding: 24px 0 74px;
}

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

.metric-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: translateY(0);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.metric-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow), var(--glow);
}

.metric-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(83, 244, 255, 0.12), transparent 42%);
  opacity: 0;
  transition: opacity 0.28s ease;
}

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

.metric-card strong {
  display: block;
  color: var(--cyan);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.07em;
}

.metric-card span {
  display: block;
  margin-top: 12px;
  font-weight: 800;
}

.metric-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 66px;
  align-items: start;
}

.section-heading {
  max-width: 760px;
}

.section-heading.center {
  text-align: center;
  margin-inline: auto;
}

.section-heading.center .hud-label {
  justify-content: center;
}

.section-heading h2,
.lab-panel h2 {
  font-size: clamp(2.3rem, 5.4vw, 4.8rem);
}

.section-heading p,
.lab-panel p {
  margin: 22px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1.05rem;
}

.about-copy {
  display: grid;
  gap: 20px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.about-copy p {
  margin: 0;
}

.principle-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
}

.principle-list li {
  position: relative;
  padding: 14px 16px 14px 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.principle-list li::before {
  content: "✓";
  position: absolute;
  left: 16px;
  top: 14px;
  color: var(--green);
  text-shadow: 0 0 18px var(--green);
}

.skill-console {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 48px;
}

.skill-group {
  position: relative;
  min-height: 250px;
  padding: 22px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.skill-group:hover {
  transform: translateY(-10px) rotateX(2deg);
  border-color: var(--line-strong);
  box-shadow: var(--shadow), var(--glow);
}

.skill-group::after {
  content: attr(data-icon);
  position: absolute;
  right: 18px;
  top: 14px;
  color: rgba(83, 244, 255, 0.12);
  font-size: 3.2rem;
  font-weight: 900;
  letter-spacing: -0.08em;
}

.skill-group h3 {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 1.05rem;
}

.skill-group ul {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.skill-group li {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(83, 244, 255, 0.07);
  border: 1px solid rgba(83, 244, 255, 0.12);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
}

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

.service-card,
.project-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-lg);
  transition: transform 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}

.service-card::before,
.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(83, 244, 255, 0.2), transparent 26rem),
    linear-gradient(135deg, rgba(255, 94, 231, 0.09), transparent 48%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.service-card:hover,
.project-card:hover {
  transform: translateY(-10px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow), var(--glow);
}

.service-card:hover::before,
.project-card:hover::before {
  opacity: 1;
}

.service-card > *,
.project-card > * {
  position: relative;
}

.card-number,
.project-category {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.78rem;
}

.service-card h3,
.project-card h3 {
  margin: 0;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.service-card p,
.project-card p {
  color: var(--muted);
  line-height: 1.72;
  margin: 16px 0 0;
}

.card-tags,
.project-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.project-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
}

.project-stack {
  margin-top: auto;
  padding-top: 22px;
}

.timeline-layout {
  align-items: center;
}

.timeline-list {
  position: relative;
  display: grid;
  gap: 16px;
}

.timeline-list::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 21px;
  width: 1px;
  background: linear-gradient(var(--cyan), var(--pink), var(--green));
  opacity: 0.5;
}

.timeline-item {
  position: relative;
  margin-left: 54px;
  padding: 22px;
  border-radius: var(--radius-lg);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -43px;
  top: 24px;
  width: 17px;
  height: 17px;
  border-radius: 99px;
  background: var(--bg);
  border: 2px solid var(--cyan);
  box-shadow: 0 0 22px rgba(83, 244, 255, 0.7);
}

.timeline-item time {
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.timeline-item h3 {
  margin: 8px 0 0;
}

.timeline-item p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.lab-panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: center;
  min-height: 360px;
  padding: clamp(26px, 6vw, 64px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.lab-panel::before {
  content: "";
  position: absolute;
  inset: -2px;
  background:
    linear-gradient(110deg, rgba(83, 244, 255, 0.18), transparent 34%, rgba(255, 94, 231, 0.12), transparent 70%, rgba(116, 255, 182, 0.16));
  opacity: 0.9;
  pointer-events: none;
}

.lab-panel > * {
  position: relative;
}

.lab-orbit {
  position: relative;
  width: 280px;
  height: 280px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  animation: slowSpin 18s linear infinite;
}

.lab-orbit::before,
.lab-orbit::after {
  content: "";
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  border: 1px dashed rgba(83, 244, 255, 0.22);
}

.lab-orbit::after {
  inset: 34%;
  border-style: solid;
}

.lab-orbit span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(83, 244, 255, 0.12);
  border: 1px solid var(--line-strong);
  color: var(--cyan);
  font-weight: 900;
  box-shadow: var(--glow);
  animation: slowSpin 18s linear infinite reverse;
}

.lab-orbit span:nth-child(1) { left: 50%; top: -28px; transform: translateX(-50%); }
.lab-orbit span:nth-child(2) { right: -28px; top: 50%; transform: translateY(-50%); }
.lab-orbit span:nth-child(3) { left: 50%; bottom: -28px; transform: translateX(-50%); }
.lab-orbit span:nth-child(4) { left: -28px; top: 50%; transform: translateY(-50%); }

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 54px;
  align-items: start;
}

.contact-links {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.035);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.contact-link:hover {
  transform: translateX(8px);
  border-color: var(--line-strong);
  background: rgba(83, 244, 255, 0.07);
}

.contact-link strong {
  color: var(--cyan);
}

.contact-link span {
  color: var(--muted);
  text-align: right;
}

.contact-form {
  display: grid;
  gap: 18px;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.052);
  color: var(--text);
  outline: none;
  padding: 14px 16px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.contact-form textarea {
  resize: vertical;
  min-height: 150px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(83, 244, 255, 0.1);
  background: rgba(83, 244, 255, 0.055);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.form-status.is-success {
  color: var(--green);
}

.form-status.is-error {
  color: #ff8aa0;
}

.form-status.is-loading {
  color: var(--cyan);
}

.contact-form .btn:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.form-note {
  color: var(--soft);
  line-height: 1.55;
  margin: -2px 0 0;
  font-size: 0.9rem;
}

.site-footer {
  padding: 28px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid p {
  margin: 0;
}

.back-top {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 99px;
  color: var(--cyan);
  background: rgba(83, 244, 255, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.back-top:hover {
  transform: translateY(-5px);
  box-shadow: var(--glow);
}

.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.75s var(--ease), transform 0.75s var(--ease);
}

.reveal[data-reveal="left"] {
  transform: translateX(-44px);
}

.reveal[data-reveal="right"] {
  transform: translateX(44px);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

@keyframes bootFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes gridDrift {
  from { background-position: 0 0; }
  to { background-position: 72px 72px; }
}

@keyframes auroraMove {
  from { transform: translate3d(-2%, -1%, 0) scale(1); }
  to { transform: translate3d(2%, 1%, 0) scale(1.08); }
}

@keyframes slowSpin {
  to { rotate: 360deg; }
}

@keyframes morphSpin {
  0% { transform: rotate(0deg) scale(1); border-radius: 42% 58% 56% 44% / 44% 45% 55% 56%; }
  50% { transform: rotate(180deg) scale(1.06); border-radius: 58% 42% 44% 56% / 56% 55% 45% 44%; }
  100% { transform: rotate(360deg) scale(1); border-radius: 42% 58% 56% 44% / 44% 45% 55% 56%; }
}

@keyframes floatHero {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -16px; }
}

@keyframes floatCode {
  0% { transform: translate3d(var(--x), 110vh, 0) rotate(var(--rot)); opacity: 0; }
  10%, 82% { opacity: var(--alpha, 0.8); }
  100% { transform: translate3d(calc(var(--x) + var(--drift)), -28vh, 0) rotate(calc(var(--rot) + 24deg)); opacity: 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.55); opacity: 0.45; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@media (max-width: 1100px) {
  .nav-list {
    position: fixed;
    inset: var(--header-h) 20px auto 20px;
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--panel-strong);
    box-shadow: var(--shadow);
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  body.nav-open .nav-list {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-list a {
    justify-content: center;
    width: 100%;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .theme-toggle {
    margin-left: auto;
  }

  .hero-grid,
  .two-col,
  .contact-grid,
  .lab-panel {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 570px;
  }

  .profile-card {
    right: 50%;
    transform: translateX(50%);
  }

  .hero-terminal {
    left: 50%;
    transform: translateX(-50%);
  }

  .skill-console,
  .service-grid,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .lab-orbit {
    margin-inline: auto;
  }
}

@media (max-width: 720px) {
  .boot-screen {
    min-height: 100svh;
    padding: 24px;
  }

  .boot-panel {
    width: min(100%, 360px);
    padding: 24px;
    transform: translateY(0);
  }

  :root {
    --header-h: 74px;
  }

  .container,
  .nav-shell {
    width: min(calc(100% - 28px), var(--container));
  }

  .section-pad {
    padding: 82px 0;
  }

  .brand-copy small,
  .theme-toggle__text {
    display: none;
  }

  .theme-toggle {
    min-width: 46px;
    justify-content: center;
    padding: 0;
  }

  .hero-grid {
    gap: 36px;
  }

  .hero-visual {
    min-height: 620px;
  }

  .profile-card {
    top: 0;
    width: min(330px, 92vw);
  }

  .hero-terminal {
    bottom: 0;
  }

  .hero-actions,
  .status-strip {
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .metrics-grid,
  .skill-console,
  .service-grid,
  .project-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    margin-left: 44px;
  }

  .timeline-list::before {
    left: 16px;
  }

  .timeline-item::before {
    left: -37px;
  }

  .lab-orbit {
    width: 230px;
    height: 230px;
  }

  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .reveal,
  .reveal[data-reveal="left"],
  .reveal[data-reveal="right"] {
    opacity: 1;
    transform: none;
  }
}
