:root {
  --bg: #0d1419;
  --bg-dark: #090f13;
  --card: #111b22;
  --card-soft: #1b2a32;
  --border: #2d4650;
  --cyan: #6fb7c8;
  --red: #d2a24c;
  --green: #8cc7a5;
  --text: #ffffff;
  --muted: #9aa8ad;
  --soft: #d9e1e3;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 18%, rgb(111 183 200 / 10%), transparent 28rem),
    radial-gradient(circle at 86% 8%, rgb(210 162 76 / 8%), transparent 24rem),
    var(--bg);
  color: var(--text);
  font-family: "Bahnschrift", "Rajdhani", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
svg { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-sprite { display: none; }
.container { width: min(1380px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  background: rgb(13 20 25 / 92%);
  border-bottom: 1px solid rgb(45 70 80 / 55%);
  backdrop-filter: blur(14px);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 8px; letter-spacing: .06em; }
.brand-mark {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 8px;
  background: linear-gradient(135deg, var(--cyan), #8cc7a5);
  font-weight: 900; color: white;
}
.brand strong { font-size: 15px; }
.brand b { color: var(--cyan); margin-left: 6px; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a { color: #9ca3af; font-size: 14px; font-weight: 700; transition: color .2s; }
.main-nav a:hover { color: white; }
.main-nav .active { color: var(--cyan); border-bottom: 2px solid var(--cyan); padding-bottom: 4px; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.cursor-toggle, .demo-button, .panel-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 34px; padding: 8px 14px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card); color: white; transition: border-color .2s, transform .2s;
}
.cursor-toggle { border-radius: 999px; color: #d1d5db; font-size: 13px; }
.status-dot { width: 8px; height: 8px; border-radius: 999px; background: #22c55e; }
.cursor-toggle.off .status-dot { background: #6b7280; }
.demo-button, .panel-button { font-size: 14px; font-weight: 700; }
.demo-button:hover, .panel-button:hover { border-color: var(--cyan); transform: translateY(-1px); }
.demo-button svg, .panel-button svg { color: var(--cyan); }
.resume-download,
.print-resume {
  position: relative;
  overflow: hidden;
  border-color: rgb(111 183 200 / 48%);
  background:
    linear-gradient(135deg, rgb(111 183 200 / 20%), rgb(140 199 165 / 12%)),
    var(--card);
  box-shadow: 0 0 22px rgb(111 183 200 / 10%);
}
.resume-download::before,
.print-resume::before {
  content: "";
  position: absolute;
  inset: -80% auto -80% -40%;
  width: 34px;
  background: linear-gradient(90deg, transparent, rgb(255 255 255 / 38%), transparent);
  transform: rotate(18deg);
  animation: buttonShine 3.4s ease-in-out infinite;
}
.resume-download:hover,
.print-resume:hover {
  border-color: var(--cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgb(111 183 200 / 18%), 0 12px 34px rgb(0 0 0 / 18%);
}
.resume-download svg,
.print-resume svg {
  color: var(--green);
}

.hero { position: relative; min-height: 690px; padding: 104px 0 54px; overflow: hidden; }
.section-page {
  min-height: 100vh;
  padding-top: 104px;
}
.section-page:first-of-type {
  padding-top: 126px;
}
.grid-bg {
  position: absolute; inset: 0; opacity: .2;
  background-image: linear-gradient(rgb(111 183 200 / 18%) 1px, transparent 1px), linear-gradient(90deg, rgb(111 183 200 / 18%) 1px, transparent 1px);
  background-size: 50px 50px;
}
.network-dots span {
  position: absolute; width: 4px; height: 4px; border-radius: 999px;
  background: var(--cyan); opacity: .22; animation: blink 2s ease-in-out infinite;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 430px minmax(0, 1fr); gap: 44px; align-items: center; }
.portfolio-hero { min-height: 560px; }
.hero-main { display: flex; align-items: flex-start; gap: 30px; }
.face-wrap { position: relative; flex: 0 0 300px; height: 344px; }
.profile-card {
  display: grid;
  place-items: center;
  border: 1px solid rgb(45 70 80 / 55%);
  border-radius: 18px;
  background: linear-gradient(145deg, rgb(17 27 34 / 82%), rgb(9 15 19 / 92%));
  overflow: hidden;
}
.photo-ring {
  position: absolute;
  inset: 18px;
  border: 1px solid rgb(111 183 200 / 34%);
  border-radius: 16px;
  animation: photoPulse 2.8s ease-in-out infinite;
}
.face-glow {
  position: absolute; inset: 8px; filter: blur(32px);
  background: radial-gradient(circle, rgb(111 183 200 / 18%), transparent 65%);
}
.face-wrap img {
  position: relative; width: 100%; height: 100%; object-fit: cover;
  filter: drop-shadow(0 0 28px rgb(111 183 200 / 18%));
}
.photo-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid rgb(111 183 200 / 22%);
  border-radius: 10px;
  background: rgb(9 15 19 / 78%);
  backdrop-filter: blur(8px);
}
.photo-caption span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.photo-caption b {
  color: var(--soft);
  font-size: 11px;
  text-align: right;
}
.hero-copy {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
  justify-self: center;
  width: min(100%, 760px);
  padding-top: 0;
  text-align: center;
}
.availability {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 34px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border: 1px solid rgb(140 199 165 / 28%);
  border-radius: 999px;
  background: rgb(140 199 165 / 8%);
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}
.availability span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgb(140 199 165 / 64%);
}
.section-kicker {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 780px;
  margin: 0 0 14px;
  color: var(--text);
  font: 900 clamp(42px, 5.7vw, 76px) "Bahnschrift", "Segoe UI", sans-serif;
  letter-spacing: 0;
  line-height: .92;
  text-transform: none;
  filter: drop-shadow(0 0 18px rgb(111 183 200 / 12%));
}
.hero h2 { margin: 0 0 14px; max-width: 720px; color: #d1d5db; font-size: clamp(20px, 2vw, 27px); line-height: 1.24; font-weight: 650; }
.hero p { max-width: 680px; margin: 0 0 24px; color: var(--muted); font-size: 16px; line-height: 1.58; }
.hero-copy .section-kicker,
.hero-copy .availability {
  margin-left: auto;
  margin-right: auto;
}
.hero-copy h1,
.hero-copy h2,
.hero-copy p {
  margin-left: auto;
  margin-right: auto;
}
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.panel-button:hover { border-color: var(--cyan); }

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 620px;
  margin: 24px auto 0;
}
.hero-metrics article {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgb(45 70 80 / 55%);
  border-radius: 12px;
  background: rgb(17 27 34 / 68%);
}
.hero-metrics strong {
  display: block;
  color: var(--cyan);
  font-size: 25px;
  line-height: 1;
}
.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-portrait-stage {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 560px;
}
.hero-parallax {
  position: relative;
  width: 100%;
  max-width: 430px;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 100ms ease-out;
  transform-style: preserve-3d;
}
.portrait-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 999px;
  background: linear-gradient(45deg, rgb(111 183 200 / 28%), rgb(140 199 165 / 18%));
  filter: blur(44px);
  transform: scale(.9);
}
.portrait-frame {
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 2px solid rgb(111 183 200 / 30%);
  border-radius: 18px;
  overflow: hidden;
  background: rgb(9 15 19 / 92%);
  box-shadow: 0 0 34px rgb(111 183 200 / 14%), 0 24px 80px rgb(0 0 0 / 34%);
  transition: transform 500ms ease, border-color 500ms ease;
}
.portrait-frame:hover {
  transform: scale(1.02);
  border-color: rgb(111 183 200 / 52%);
}
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 58% 34%;
  opacity: .9;
}
.portrait-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgb(9 15 19 / 92%), transparent 48%, rgb(9 15 19 / 6%));
}
.terminal-overlay {
  position: absolute;
  left: 50%;
  bottom: -42px;
  z-index: 2;
  width: 106%;
  max-width: 470px;
  transform: translateX(-50%);
}
.terminal-window {
  width: 100%;
  border: 1px solid rgb(111 183 200 / 40%);
  border-radius: 14px;
  overflow: hidden;
  background: rgb(9 15 19 / 72%);
  box-shadow: 0 26px 70px rgb(0 0 0 / 42%);
  backdrop-filter: blur(14px);
  transition: transform 300ms ease;
}
.terminal-window:hover {
  transform: translateY(-6px);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 34px;
  padding: 8px 14px;
  border-bottom: 1px solid rgb(45 70 80 / 55%);
  background: rgb(17 27 34 / 86%);
}
.window-dots {
  display: flex;
  gap: 6px;
}
.window-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.window-dots span:nth-child(1) { background: #d86b6b; }
.window-dots span:nth-child(2) { background: #d2a24c; }
.window-dots span:nth-child(3) { background: #8cc7a5; }
.terminal-title {
  flex: 1;
  text-align: center;
  color: var(--muted);
  font-family: Consolas, "Courier New", monospace;
  font-size: 10px;
  letter-spacing: .12em;
}
.terminal-content {
  min-height: 142px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px;
  background: rgb(3 7 12 / 86%);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.6;
}
.command {
  margin-bottom: 4px;
  color: var(--cyan);
}
.typed-line {
  min-height: 46px;
  color: var(--muted);
}
.code-typed {
  white-space: pre-wrap;
  color: #b9cad0;
}
.code-typed .code-key {
  color: var(--cyan);
}
.code-typed .code-value {
  color: var(--green);
}
.typed-line::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1.1em;
  margin-left: 3px;
  vertical-align: -2px;
  background: var(--cyan);
  animation: cursorBlink 1s step-end infinite;
}
.terminal-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}
.terminal-status span {
  padding: 4px 8px;
  border: 1px solid rgb(111 183 200 / 20%);
  border-radius: 999px;
  color: var(--soft);
  background: rgb(111 183 200 / 7%);
  font-size: 11px;
}

.hud {
  background: rgb(17 27 34 / 92%);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  backdrop-filter: blur(8px);
}
.hud-top, .hud-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.hud-top { margin-bottom: 12px; color: var(--muted); font-size: 14px; }
.signal { display: flex; gap: 4px; align-items: end; }
.signal i { width: 4px; height: 14px; border-radius: 2px; background: var(--cyan); }
.hud-row { min-height: 74px; border-top: 1px solid rgb(45 70 80 / 50%); }
.hud-row:nth-child(2) { border-top: 0; }
.hud-icon {
  display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 50%;
  background: var(--card-soft); border: 1px solid var(--border); color: var(--cyan); font-size: 20px;
}
.hud-row div { flex: 1; }
.hud-row small { display: block; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.hud-row b { display: block; font-size: 13px; }
.green { color: var(--green) !important; }
.red { color: var(--red) !important; }
.bars, .voice { display: flex; align-items: end; gap: 3px; }
.bars i, .voice i { width: 4px; border-radius: 2px; background: var(--cyan); }
.bars i:nth-child(1) { height: 8px; }.bars i:nth-child(2) { height: 10px; }.bars i:nth-child(3) { height: 12px; }.bars i:nth-child(4) { height: 14px; }.bars i:nth-child(5) { height: 16px; }.bars i:nth-child(6) { height: 18px; }.bars i:nth-child(7) { height: 20px; }.bars i:nth-child(8) { height: 22px; }
.voice i:nth-child(1) { height: 12px; }.voice i:nth-child(2) { height: 8px; }.voice i:nth-child(3) { height: 16px; }.voice i:nth-child(4) { height: 10px; }.voice i:nth-child(5) { height: 14px; }.voice i:nth-child(6) { height: 6px; }
.radar { width: 40px; height: 40px; border: 2px solid rgb(210 162 76 / 35%); border-radius: 50%; box-shadow: inset 0 0 0 7px rgb(210 162 76 / 10%), inset 0 0 0 13px rgb(210 162 76 / 16%); animation: pulse 1.7s infinite; }

.modules { padding: 34px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading p { margin: 0; color: var(--cyan); font-size: 13px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.section-heading h2 { margin: 0; color: #d1d5db; font-size: 24px; font-weight: 700; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.module-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.module-card:hover { border-color: rgb(111 183 200 / 55%); box-shadow: 0 0 28px rgb(111 183 200 / 8%); transform: translateY(-2px); }
.module-card.red-hover:hover { border-color: rgb(210 162 76 / 55%); }
.card-body { display: flex; gap: 16px; min-height: 150px; }
.mini-panel { flex: 0 0 128px; position: relative; color: var(--muted); font-size: 10px; }
.mini-panel small, .mini-panel em { display: block; font-style: normal; line-height: 1.3; }
.mini-panel em { color: var(--cyan); }
.card-text { flex: 1; color: var(--muted); font-size: 12px; line-height: 1.25; }
.card-text b { display: block; text-align: right; color: var(--cyan); margin-bottom: 12px; font-size: 12px; }
.card-text p { margin: 4px 0; }
.module-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgb(30 58 95 / 50%); }
.module-card h3 { margin: 0; font: 800 14px "Bahnschrift", "Segoe UI", sans-serif; letter-spacing: .06em; }
.module-card footer span { display: flex; gap: 8px; }
.module-card button, .to-top {
  display: grid; place-items: center; border: 0; background: var(--card-soft); color: #9ca3af;
  width: 30px; height: 30px; border-radius: 7px; transition: background .2s, color .2s;
}
.module-card button:hover { background: #243352; color: var(--cyan); }

.server-stack { display: grid; gap: 8px; margin: 22px auto 0; width: 86px; }
.server-stack i { height: 24px; border: 1px solid var(--border); border-radius: 7px; background: linear-gradient(90deg, var(--card-soft), rgb(111 183 200 / 16%)); }
.scan-frame { position: relative; width: 92px; height: 92px; margin: 24px auto 0; border: 1px solid rgb(111 183 200 / 45%); border-radius: 14px; }
.scan-frame span { position: absolute; left: 10px; right: 10px; top: 22px; height: 2px; background: var(--cyan); animation: scan 2s linear infinite; }
.code-lines { display: grid; gap: 8px; margin-top: 24px; }
.code-lines i { height: 8px; border-radius: 99px; background: rgb(111 183 200 / 35%); }
.code-lines i:nth-child(2) { width: 80%; }.code-lines i:nth-child(3) { width: 65%; }.code-lines i:nth-child(4) { width: 90%; }
.db-core { position: relative; width: 86px; height: 86px; margin: 20px auto 0; }
.db-core i { position: absolute; inset: 0; border: 1px solid rgb(111 183 200 / 35%); border-radius: 50%; }
.db-core i:nth-child(2) { inset: 12px; }.db-core i:nth-child(3) { inset: 24px; background: radial-gradient(circle, rgb(111 183 200 / 22%), transparent 70%); }
.lock-core { width: 78px; height: 78px; margin: 22px auto 0; border-radius: 18px; border: 2px solid var(--cyan); box-shadow: inset 0 0 0 14px rgb(111 183 200 / 10%), 0 0 24px rgb(111 183 200 / 16%); }
.support-bars { display: flex; align-items: end; gap: 10px; height: 86px; margin-top: 18px; }
.support-bars i { flex: 1; border-radius: 10px 10px 4px 4px; background: linear-gradient(180deg, var(--cyan), #386b78); }
.support-bars i:nth-child(1) { height: 45%; }.support-bars i:nth-child(2) { height: 76%; }.support-bars i:nth-child(3) { height: 58%; }

.benefits { padding: 34px 0; border-block: 1px solid rgb(45 70 80 / 30%); }
.timeline-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.timeline-grid article { display: flex; align-items: flex-start; gap: 12px; padding: 18px; border: 1px solid rgb(45 70 80 / 50%); border-radius: 12px; background: var(--card); }
.timeline-grid span { display: grid; place-items: center; flex: 0 0 40px; height: 40px; border-radius: 8px; background: var(--card-soft); border: 1px solid var(--border); color: var(--cyan); font-size: 20px; }
.timeline-grid h3 { margin: 0 0 4px; color: var(--soft); font-size: 15px; }
.timeline-grid b { display: block; margin-bottom: 8px; color: var(--cyan); font-size: 13px; }
.timeline-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }

.profile-section { padding: 34px 0; }
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.profile-panel {
  border: 1px solid rgb(45 70 80 / 50%);
  border-radius: 12px;
  background: var(--card);
  padding: 22px;
}
.section-heading.compact {
  display: block;
  margin-bottom: 16px;
}
.profile-panel p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.info-list {
  display: grid;
  gap: 12px;
}
.info-list p {
  margin: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid rgb(45 70 80 / 36%);
}
.info-list p:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.info-list b,
.info-list span {
  display: block;
}
.info-list b {
  color: var(--soft);
  margin-bottom: 4px;
}
.info-list span {
  color: var(--muted);
}

.featured-publications,
.stack-section,
.projects-section,
.experience-section {
  position: relative;
  padding: 56px 0;
}
.featured-publications {
  padding-top: 34px;
  background:
    radial-gradient(circle at 82% 12%, rgb(111 183 200 / 10%), transparent 22rem),
    linear-gradient(180deg, rgb(9 15 19 / 18%), rgb(17 27 34 / 20%));
}
.stack-section {
  border-top: 1px solid rgb(45 70 80 / 26%);
  background:
    linear-gradient(180deg, rgb(17 27 34 / 34%), transparent 22rem),
    radial-gradient(circle at 16% 20%, rgb(111 183 200 / 10%), transparent 22rem);
}
.projects-section {
  background:
    radial-gradient(circle at 80% 18%, rgb(140 199 165 / 10%), transparent 22rem),
    rgb(9 15 19 / 38%);
  border-block: 1px solid rgb(45 70 80 / 30%);
}
.portfolio-heading {
  align-items: flex-start;
  margin-bottom: 28px;
}
.portfolio-heading h2 {
  max-width: 760px;
  color: var(--soft);
  font-size: clamp(21px, 2.2vw, 30px);
  line-height: 1.18;
}
.stack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}
.stack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 292px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgb(45 70 80 / 56%);
  border-radius: 12px;
  background:
    linear-gradient(145deg, rgb(17 27 34 / 92%), rgb(9 15 19 / 88%)),
    radial-gradient(circle at 80% 12%, rgb(111 183 200 / 10%), transparent 18rem);
  box-shadow: 0 20px 70px rgb(0 0 0 / 18%);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.stack-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: .62;
}
.stack-card:hover {
  transform: translateY(-4px);
  border-color: rgb(111 183 200 / 62%);
  box-shadow: 0 28px 80px rgb(0 0 0 / 26%), 0 0 28px rgb(111 183 200 / 9%);
}
.stack-feature {
  grid-row: auto;
  min-height: 292px;
}
.stack-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
  border: 1px solid rgb(111 183 200 / 35%);
  border-radius: 10px;
  color: var(--cyan);
  background: rgb(111 183 200 / 8%);
  font-size: 20px;
}
.stack-card > p {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.stack-card h3 {
  max-width: 360px;
  margin: 0 0 14px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.22;
}
.stack-card ul {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stack-card li {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.38;
}
.stack-card li::before {
  content: ">";
  margin-right: 8px;
  color: var(--green);
  font-family: Consolas, "Courier New", monospace;
}
.tech-cloud {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-content: flex-start;
}
.tech-cloud span,
.repo-tags span,
.career-pills span,
.profile-badges span {
  border: 1px solid rgb(111 183 200 / 24%);
  border-radius: 999px;
  background: rgb(111 183 200 / 7%);
  color: var(--soft);
  font-size: 12px;
  font-weight: 800;
}
.tech-cloud span {
  padding: 6px 9px;
  font-size: 11px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 22px;
}
.project-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.project-grid-four .repo-card {
  height: 400px;
  min-height: 400px;
}

.projects-page .projects-section {
  padding-bottom: 24px;
}

.projects-page .featured-publications {
  padding-top: 18px;
}

.projects-page .publication-panel {
  margin-top: 0;
}
.repo-card {
  display: grid;
  grid-template-rows: 128px 1fr;
  height: 420px;
  min-height: 420px;
  border: 1px solid rgb(45 70 80 / 56%);
  border-radius: 12px;
  overflow: hidden;
  background: rgb(17 27 34 / 82%);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.repo-card:hover {
  transform: translateY(-4px);
  border-color: rgb(140 199 165 / 58%);
  box-shadow: 0 28px 80px rgb(0 0 0 / 26%), 0 0 28px rgb(140 199 165 / 8%);
}
.featured-repo {
  grid-row: auto;
  grid-template-rows: 128px 1fr;
}
.project-grid .repo-card:nth-child(4) {
  grid-column: auto;
  grid-template-columns: 1fr;
  grid-template-rows: 128px 1fr;
  min-height: 420px;
}
.project-grid .repo-card:nth-child(4) .repo-visual {
  min-height: 128px;
  border-right: 0;
  border-bottom: 1px solid rgb(45 70 80 / 42%);
}
.repo-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 128px;
  border-bottom: 1px solid rgb(45 70 80 / 42%);
  background:
    linear-gradient(135deg, rgb(111 183 200 / 10%), transparent),
    rgb(3 7 12 / 82%);
}
.repo-top {
  position: absolute;
  left: 12px;
  right: 12px;
  top: 10px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font: 700 11px Consolas, "Courier New", monospace;
}
.repo-top span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--cyan);
  opacity: .75;
}
.repo-top span:nth-child(2) { background: var(--red); }
.repo-top span:nth-child(3) { background: var(--green); }
.repo-top b { margin-left: auto; font-weight: 700; }
.code-preview pre {
  width: calc(100% - 32px);
  margin: 38px 0 0;
  color: #b9cad0;
  white-space: pre-wrap;
  font: 10px/1.45 Consolas, "Courier New", monospace;
}
.db-ring {
  position: relative;
  width: 74px;
  height: 74px;
}
.db-ring i {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(111 183 200 / 38%);
  border-radius: 50%;
}
.db-ring i:nth-child(2) { inset: 16px; }
.db-ring i:nth-child(3) {
  inset: 32px;
  background: radial-gradient(circle, rgb(140 199 165 / 22%), transparent 70%);
  animation: pulse 2s ease-in-out infinite;
}
.db-preview strong {
  position: absolute;
  bottom: 10px;
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.health-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 14px;
}
.health-preview span,
.web-preview div {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid rgb(111 183 200 / 24%);
  border-radius: 9px;
  background: rgb(111 183 200 / 7%);
  color: var(--soft);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .08em;
}
.web-preview {
  grid-template-columns: 1fr;
  gap: 7px;
  padding: 18px;
}
.web-preview div {
  width: 100%;
  min-height: 14px;
}
.web-preview div:nth-child(1) { width: 72%; justify-self: start; }
.web-preview div:nth-child(2) { width: 92%; justify-self: end; }
.web-preview div:nth-child(3) { width: 58%; justify-self: center; }
.repo-body {
  display: flex;
  flex-direction: column;
  padding: 16px;
}
.repo-type {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.repo-body h3 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 16px;
  line-height: 1.2;
}
.repo-body p:not(.repo-type) {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.repo-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 14px;
}
.repo-tags span {
  padding: 5px 7px;
  font-size: 10px;
}
.repo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.repo-actions a {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 7px 10px;
  border: 1px solid rgb(111 183 200 / 30%);
  border-radius: 8px;
  color: var(--soft);
  font-size: 11px;
  font-weight: 900;
}
.repo-actions a:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}
.disabled-link {
  opacity: .72;
  cursor: default;
}

.publication-panel {
  padding: 22px;
  border: 1px solid rgb(111 183 200 / 24%);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgb(17 27 34 / 90%), rgb(9 15 19 / 86%)),
    radial-gradient(circle at 8% 12%, rgb(111 183 200 / 12%), transparent 22rem);
}
.publication-heading {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 8px 20px;
  align-items: start;
  margin-bottom: 18px;
}
.publication-heading p {
  grid-row: span 2;
  margin: 0;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.publication-heading h3 {
  margin: 0;
  color: var(--text);
  font-size: 24px;
  line-height: 1.15;
}
.publication-heading span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.publication-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.publication-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.publication-grid-four .publication-card {
  min-height: 390px;
}
.publication-card {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  min-height: 350px;
  padding: 18px;
  border: 1px solid rgb(45 70 80 / 50%);
  border-radius: 12px;
  background: rgb(3 7 12 / 36%);
  transition: transform .22s ease, border-color .22s ease;
}
.publication-card:hover {
  transform: translateY(-3px);
  border-color: rgb(111 183 200 / 56%);
}
.publication-index {
  display: grid;
  place-items: center;
  width: 64px;
  height: 42px;
  border: 1px solid rgb(111 183 200 / 35%);
  border-radius: 10px;
  color: var(--cyan);
  background: rgb(111 183 200 / 8%);
  font-size: 15px;
  font-weight: 900;
}
.publication-card p {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.publication-card h4 {
  margin: 0 0 10px;
  color: var(--soft);
  font-size: 18px;
  line-height: 1.22;
}
.publication-card span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.48;
}

.experience-section {
  background:
    linear-gradient(180deg, transparent, rgb(17 27 34 / 28%)),
    radial-gradient(circle at 14% 88%, rgb(210 162 76 / 8%), transparent 20rem);
}
.experience-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 18px;
}
.career-summary {
  position: sticky;
  top: 86px;
  min-height: 360px;
  align-self: start;
  padding: 24px;
  border: 1px solid rgb(45 70 80 / 56%);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgb(17 27 34 / 92%), rgb(9 15 19 / 92%)),
    radial-gradient(circle at 20% 20%, rgb(210 162 76 / 12%), transparent 18rem);
}
.career-summary > span,
.github-panel p {
  display: inline-flex;
  margin: 0 0 14px;
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.career-summary h3 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 24px;
  line-height: 1.12;
}
.career-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.career-pills,
.profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
.career-pills span,
.profile-badges span {
  padding: 7px 10px;
}
.experience-layout .timeline-grid {
  grid-template-columns: 1fr;
}
.experience-layout .timeline-grid article {
  position: relative;
  min-height: 124px;
  background: linear-gradient(135deg, rgb(17 27 34 / 86%), rgb(9 15 19 / 78%));
}
.experience-layout .timeline-grid article::before {
  content: "";
  position: absolute;
  left: 37px;
  top: 60px;
  bottom: -18px;
  width: 1px;
  background: rgb(111 183 200 / 22%);
}
.experience-layout .timeline-grid article:last-child::before {
  display: none;
}
.about-panel {
  background:
    linear-gradient(145deg, rgb(17 27 34 / 92%), rgb(9 15 19 / 84%)),
    radial-gradient(circle at 86% 20%, rgb(111 183 200 / 10%), transparent 18rem);
}
.credential-panel {
  background:
    linear-gradient(145deg, rgb(17 27 34 / 92%), rgb(9 15 19 / 84%)),
    radial-gradient(circle at 12% 18%, rgb(140 199 165 / 10%), transparent 18rem);
}
.github-strip {
  padding: 24px 0 56px;
}
.github-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 22px;
  border: 1px solid rgb(111 183 200 / 26%);
  border-radius: 14px;
  background: rgb(3 7 12 / 56%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}
.github-panel h2 {
  max-width: 720px;
  margin: 0;
  color: var(--soft);
  font-size: 20px;
  line-height: 1.25;
}

.footer { background: var(--bg-dark); border-top: 1px solid rgb(45 70 80 / 30%); padding: 44px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 28px; }
.footer h4 { margin: 0 0 16px; font: 800 15px "Bahnschrift", "Segoe UI", sans-serif; text-transform: uppercase; }
.footer p, .footer a { color: var(--muted); font-size: 13px; line-height: 1.45; }
.footer section > a { display: block; margin: 8px 0; }
.footer a:hover { color: var(--cyan); }
.contact p { display: flex; align-items: center; gap: 8px; margin: 12px 0; }
.contact svg { flex: 0 0 16px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 22px; border-top: 1px solid rgb(30 58 95 / 30%); }
.footer-bottom nav { display: flex; gap: 24px; }
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 10;
  width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 10px;
}
.to-top:hover { border-color: var(--cyan); color: var(--cyan); }

@keyframes blink { 50% { opacity: .12; } }
@keyframes pulse { 50% { transform: scale(.92); opacity: .75; } }
@keyframes scan { 0% { transform: translateY(0); } 50% { transform: translateY(48px); } 100% { transform: translateY(0); } }
@keyframes photoPulse { 50% { transform: scale(.97); opacity: .62; } }
@keyframes cursorBlink { 50% { opacity: 0; } }
@keyframes buttonShine {
  0%, 42% { left: -42%; opacity: 0; }
  52% { opacity: 1; }
  72%, 100% { left: 126%; opacity: 0; }
}

@media (max-width: 1120px) {
  .main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy,
  .hero-portrait-stage {
    grid-column: 1;
  }
  .hero-copy {
    grid-row: 2;
  }
  .hero-portrait-stage {
    grid-row: 1;
  }
  .hud { display: none; }
  .hero-portrait-stage { max-width: 520px; width: 100%; margin: 20px auto 0; }
  .stack-grid,
  .project-grid,
  .project-grid-four,
  .publication-grid-four,
  .experience-layout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .experience-layout { grid-template-columns: 1fr; }
  .stack-feature {
    grid-row: auto;
    min-height: 292px;
  }
  .featured-repo {
    grid-row: auto;
  }
  .project-grid .repo-card:nth-child(4) {
    grid-column: auto;
    grid-template-columns: 1fr;
    grid-template-rows: 128px 1fr;
  }
  .project-grid .repo-card:nth-child(4) .repo-visual {
    border-right: 0;
    border-bottom: 1px solid rgb(45 70 80 / 42%);
  }
  .career-summary {
    position: relative;
    top: auto;
    min-height: 0;
  }
  .module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-grid, .profile-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .container { width: min(100% - 24px, 1400px); }
  .header-inner { flex-wrap: wrap; }
  .header-actions { width: 100%; justify-content: space-between; gap: 8px; }
  .cursor-toggle, .demo-button { flex: 1; padding-inline: 8px; }
  .hero { padding-top: 128px; }
  .hero-main { flex-direction: column; align-items: center; text-align: center; gap: 10px; }
  .face-wrap { flex-basis: auto; width: 240px; height: 280px; }
  .hero p { margin-inline: auto; }
  .cta-row { justify-content: center; }
  .hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-portrait-stage { min-height: 500px; }
  .terminal-overlay { bottom: -34px; width: 100%; }
  .terminal-content { min-height: 126px; font-size: 12px; }
  .portfolio-heading,
  .github-panel {
    display: block;
  }
  .portfolio-heading h2,
  .github-panel h2 {
    margin-top: 10px;
    font-size: 21px;
  }
  .featured-publications,
  .stack-section,
  .projects-section,
  .experience-section {
    padding: 40px 0;
  }
  .stack-card,
  .repo-body,
  .career-summary,
  .profile-panel,
  .github-panel {
    padding: 18px;
  }
  .stack-grid {
    grid-template-columns: 1fr;
  }
  .stack-card,
  .stack-feature {
    min-height: 0;
  }
  .project-grid {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }
  .project-grid-four,
  .publication-grid-four {
    grid-template-columns: 1fr;
  }
  .project-grid .repo-card,
  .project-grid .repo-card:nth-child(even),
  .project-grid .repo-card:nth-child(odd),
  .featured-repo,
  .project-grid .repo-card:nth-child(4) {
    grid-template-rows: 112px 1fr;
    height: auto;
    min-height: 0;
    transform: none;
  }
  .project-grid .repo-card:hover,
  .project-grid .repo-card:hover:nth-child(even),
  .project-grid .repo-card:hover:nth-child(odd) {
    transform: translateY(-3px);
  }
  .health-preview {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .publication-heading,
  .publication-grid,
  .publication-card {
    grid-template-columns: 1fr;
  }
  .publication-index {
    width: 100%;
    height: 44px;
    justify-content: start;
    padding-left: 14px;
  }
  .health-preview span {
    min-height: 38px;
  }
  .code-preview pre {
    font-size: 12px;
  }
  .github-panel .panel-button {
    width: 100%;
    margin-top: 18px;
  }
  .module-grid, .footer-grid { grid-template-columns: 1fr; }
  .card-body { flex-direction: column; }
  .mini-panel { flex: none; min-height: 118px; width: 100%; }
  .section-heading { display: block; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; }
  .footer-bottom nav { flex-wrap: wrap; justify-content: center; }
}
