:root {
  --bg: #07080d;
  --bg-soft: #10131d;
  --panel: rgba(18, 22, 33, 0.76);
  --panel-strong: rgba(24, 29, 42, 0.92);
  --text: #f7f8fb;
  --muted: #adb5c7;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #38e8ff;
  --green: #68f5b2;
  --gold: #ffd166;
  --rose: #ff6b9a;
  --violet: #a78bfa;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

/* ── Scroll progress bar ── */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--gold));
  box-shadow: 0 0 12px rgba(56, 232, 255, 0.7);
  transition: width 80ms linear;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(120deg, rgba(56, 232, 255, 0.08), transparent 24%),
    linear-gradient(300deg, rgba(255, 209, 102, 0.08), transparent 28%),
    var(--bg);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 86%);
}

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

#network-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  opacity: 0.72;
}

.page-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 16px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(7, 8, 13, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.24);
}

.brand,
.nav-links,
.hero-actions,
.hero-meta,
.contact-actions,
.tag-list {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 8px;
  color: #061015;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}

.nav-links {
  gap: 4px;
}

.nav-links a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  transition: color 180ms ease, background 180ms ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
}

.section {
  padding: 100px 0 0;
}

.hero {
  display: grid;
  min-height: calc(100vh - 72px);
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 56px;
  padding-top: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.hero-summary {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.8;
}

.hero-actions,
.contact-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 18px;
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button.primary {
  color: #071014;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), var(--green));
  box-shadow: 0 18px 50px rgba(56, 232, 255, 0.24);
}

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

.button.linkedin-button {
  position: relative;
  isolation: isolate;
  gap: 10px;
  overflow: hidden;
  color: #ffffff;
  border-color: rgba(56, 232, 255, 0.48);
  background:
    linear-gradient(135deg, rgba(10, 102, 194, 0.98), rgba(56, 232, 255, 0.78)),
    #0a66c2;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 16px 46px rgba(10, 102, 194, 0.34);
  animation: linkedinPulse 2.6s ease-in-out infinite;
}

.button.linkedin-button::before {
  position: absolute;
  inset: -60% -35%;
  z-index: -1;
  content: "";
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.72) 48%, transparent 62%);
  transform: translateX(-72%) rotate(8deg);
  animation: linkedinShine 3.4s ease-in-out infinite;
}

.button.linkedin-button:hover {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14) inset,
    0 20px 60px rgba(56, 232, 255, 0.36);
}

.linkedin-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 5px;
  color: #0a66c2;
  background: #ffffff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.hero-meta {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-meta span,
.hero-meta a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
}

.hero-meta .meta-pill {
  position: relative;
  overflow: hidden;
  color: var(--text);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  animation: metaGlow 3.4s ease-in-out infinite;
}

.hero-meta .meta-pill::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  transform: translateX(-100%);
  animation: metaSweep 4.5s ease-in-out infinite;
}

.hero-meta .meta-pill:hover {
  transform: translateY(-2px);
}

.hero-meta .location-pill {
  border-color: rgba(255, 209, 102, 0.42);
  background: rgba(255, 209, 102, 0.12);
  box-shadow: 0 0 26px rgba(255, 209, 102, 0.14);
}

.hero-meta .phone-pill {
  border-color: rgba(104, 245, 178, 0.42);
  background: rgba(104, 245, 178, 0.12);
  box-shadow: 0 0 26px rgba(104, 245, 178, 0.14);
  animation-delay: 0.35s;
}

.hero-meta .role-pill {
  border-color: rgba(255, 107, 154, 0.42);
  background: rgba(255, 107, 154, 0.12);
  box-shadow: 0 0 26px rgba(255, 107, 154, 0.14);
  animation-delay: 0.7s;
}

.hero-meta .location-pill:hover {
  border-color: rgba(255, 209, 102, 0.76);
  box-shadow: 0 0 38px rgba(255, 209, 102, 0.24);
}

.hero-meta .phone-pill:hover {
  border-color: rgba(104, 245, 178, 0.76);
  box-shadow: 0 0 38px rgba(104, 245, 178, 0.24);
}

.hero-meta .role-pill:hover {
  border-color: rgba(255, 107, 154, 0.76);
  box-shadow: 0 0 38px rgba(255, 107, 154, 0.24);
}

.hero-meta .linkedin-meta {
  border: 1px solid rgba(56, 232, 255, 0.42);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text);
  background: rgba(10, 102, 194, 0.16);
  box-shadow: 0 0 28px rgba(10, 102, 194, 0.18);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hero-meta .linkedin-meta:hover {
  border-color: rgba(56, 232, 255, 0.78);
  box-shadow: 0 0 38px rgba(56, 232, 255, 0.28);
  transform: translateY(-2px);
}

.system-panel {
  position: relative;
  height: min(520px, 74vh);
  min-height: 440px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 36%),
    linear-gradient(180deg, rgba(21, 25, 38, 0.9), rgba(9, 11, 17, 0.92));
  box-shadow: var(--shadow);
}

.system-panel::before {
  position: absolute;
  inset: 54px 22px 22px;
  content: "";
  background-image:
    linear-gradient(rgba(104, 245, 178, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 232, 255, 0.07) 1px, transparent 1px);
  background-size: 28px 28px;
}

.panel-topbar {
  display: flex;
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.panel-topbar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--rose);
}

.panel-topbar span:nth-child(2) {
  background: var(--gold);
}

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

.agent-core,
.service-node,
.flow-lines {
  position: absolute;
}

.agent-core {
  inset: 50%;
  display: grid;
  width: 132px;
  height: 132px;
  place-items: center;
  transform: translate(-50%, -50%);
}

.pulse-ring {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(56, 232, 255, 0.6);
  border-radius: 50%;
  animation: pulse 2.8s ease-out infinite;
}

.core-chip {
  display: grid;
  width: 88px;
  height: 88px;
  place-items: center;
  border-radius: 8px;
  color: #061015;
  background: linear-gradient(135deg, var(--green), var(--cyan));
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 0 70px rgba(56, 232, 255, 0.42);
}

.service-node {
  width: 128px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 11, 18, 0.74);
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.84rem;
  line-height: 1.25;
  backdrop-filter: blur(16px);
  animation: float 5s ease-in-out infinite;
}

.service-node small {
  color: var(--muted);
  font-family: Inter, sans-serif;
  font-size: 0.72rem;
}

.node-a {
  top: 82px;
  left: 34px;
}

.node-b {
  top: 82px;
  right: 34px;
  animation-delay: -1s;
}

.node-c {
  bottom: 72px;
  left: 42px;
  animation-delay: -2s;
}

.node-d {
  right: 34px;
  bottom: 72px;
  animation-delay: -3s;
}

.flow-lines {
  inset: 54px 0 0;
  width: 100%;
  height: calc(100% - 54px);
  pointer-events: none;
}

.flow-lines path {
  fill: none;
  stroke: rgba(56, 232, 255, 0.5);
  stroke-width: 2;
  stroke-dasharray: 8 12;
  animation: dash 4s linear infinite;
}

.stats-strip,
.skill-card,
.timeline-content,
.project-card,
.education-card,
.achievement-card,
.contact-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  overflow: hidden;
  padding: 0;
}

.stats-strip div {
  min-height: 132px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.035);
}

.stats-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 2rem;
}

.stats-strip span,
.skill-card p,
.timeline-content li,
.project-card p,
.education-card p,
.achievement-card li,
.contact-section h2 {
  color: var(--muted);
  line-height: 1.7;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.skill-grid,
.project-grid,
.education-achievements {
  display: grid;
  gap: 16px;
}

.skill-grid {
  grid-template-columns: repeat(3, 1fr);
}

.skill-card,
.project-card,
.education-card,
.achievement-card {
  padding: 24px;
  position: relative;
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1), border-color 300ms ease, background 300ms ease, box-shadow 300ms ease;
}

/* shimmer sweep on cards */
.skill-card::after,
.project-card::after,
.education-card::after,
.achievement-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(56, 232, 255, 0.07) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0ms;
  pointer-events: none;
}

.skill-card:hover::after,
.project-card:hover::after,
.education-card:hover::after,
.achievement-card:hover::after {
  transform: translateX(100%);
  transition: transform 600ms ease;
}

.skill-card:hover,
.project-card:hover,
.education-card:hover,
.achievement-card:hover {
  border-color: rgba(56, 232, 255, 0.52);
  background: var(--panel-strong);
  transform: translateY(-8px);
  box-shadow: 0 28px 80px rgba(56, 232, 255, 0.14), var(--shadow);
}

.timeline {
  position: relative;
}

.timeline::before {
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 14px;
  width: 1px;
  content: "";
  background: linear-gradient(var(--cyan), var(--gold), var(--rose));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  margin-bottom: 18px;
}

.timeline-dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border: 6px solid var(--bg);
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 30px rgba(56, 232, 255, 0.65);
  animation: dotPulse 2.4s ease-in-out infinite;
}

.timeline-item:nth-child(2) .timeline-dot { animation-delay: -0.8s; }
.timeline-item:nth-child(3) .timeline-dot { animation-delay: -1.6s; }

.role-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 8px;
}

.role-row h3 {
  margin-bottom: 0;
}

.role-row span,
.role-stack,
.project-kicker,
.education-card span {
  color: var(--green);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.timeline-content ul,
.achievement-card ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

.project-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.project-card.feature {
  grid-row: span 2;
  min-height: 370px;
  background:
    linear-gradient(135deg, rgba(56, 232, 255, 0.16), rgba(255, 107, 154, 0.08)),
    var(--panel);
}

.project-card h3 {
  font-size: 1.7rem;
}

.tag-list {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.tag-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  font-size: 0.82rem;
  font-weight: 700;
  position: relative;
  overflow: hidden;
  transition: border-color 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease;
}

.tag-list span:hover {
  border-color: rgba(56, 232, 255, 0.6);
  background: rgba(56, 232, 255, 0.12);
  color: var(--cyan);
  box-shadow: 0 0 18px rgba(56, 232, 255, 0.2);
}

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

.contact-section {
  margin: 100px 0 34px;
  padding: clamp(28px, 6vw, 64px);
  background:
    linear-gradient(135deg, rgba(104, 245, 178, 0.14), rgba(255, 209, 102, 0.08)),
    var(--panel);
}

.contact-section h2 {
  max-width: 800px;
  margin-bottom: 0;
  color: var(--text);
}

.contact-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
}

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

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* stagger delays for grid children */
.skill-grid .reveal:nth-child(2) { transition-delay: 80ms; }
.skill-grid .reveal:nth-child(3) { transition-delay: 160ms; }
.skill-grid .reveal:nth-child(4) { transition-delay: 240ms; }
.skill-grid .reveal:nth-child(5) { transition-delay: 320ms; }
.skill-grid .reveal:nth-child(6) { transition-delay: 400ms; }

.project-grid .reveal:nth-child(2) { transition-delay: 100ms; }
.project-grid .reveal:nth-child(3) { transition-delay: 200ms; }

.timeline .reveal:nth-child(2) { transition-delay: 120ms; }
.timeline .reveal:nth-child(3) { transition-delay: 240ms; }

@keyframes pulse {
  0% {
    opacity: 0.9;
    transform: scale(0.74);
  }
  100% {
    opacity: 0;
    transform: scale(1.72);
  }
}

/* second delayed pulse ring */
.pulse-ring-2 {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(104, 245, 178, 0.45);
  border-radius: 50%;
  animation: pulse 2.8s ease-out 1.4s infinite;
}

/* orbiting dot around core chip */
.orbit-ring {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px dashed rgba(56, 232, 255, 0.28);
  animation: spin 8s linear infinite;
}

.orbit-dot {
  position: absolute;
  top: -4px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 14px rgba(56, 232, 255, 0.9);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes dash {
  to {
    stroke-dashoffset: -80;
  }
}

@keyframes linkedinPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.08) inset, 0 16px 46px rgba(10,102,194,0.34);
  }
  50% {
    transform: translateY(-3px);
    box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 20px 60px rgba(56,232,255,0.42);
  }
}

@keyframes linkedinShine {
  0%,
  52% {
    transform: translateX(-72%) rotate(8deg);
  }
  100% {
    transform: translateX(72%) rotate(8deg);
  }
}

@keyframes metaGlow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.22);
  }
}

@keyframes metaSweep {
  0%,
  58% {
    opacity: 0;
    transform: translateX(-100%);
  }
  68% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(100%);
  }
}

@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(56,232,255,0.5); }
  50% { box-shadow: 0 0 42px rgba(56,232,255,0.95), 0 0 80px rgba(56,232,255,0.3); }
}

@keyframes statCount {
  from { opacity: 0; transform: translateY(14px) scale(0.88); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.stats-strip.visible strong {
  animation: statCount 600ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.stats-strip.visible div:nth-child(2) strong { animation-delay: 100ms; }
.stats-strip.visible div:nth-child(3) strong { animation-delay: 200ms; }
.stats-strip.visible div:nth-child(4) strong { animation-delay: 300ms; }

/* nav link underline slide */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 6px;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
  border-radius: 2px;
}
.nav-links a:hover::after {
  transform: scaleX(1);
}

/* hero heading gradient animation */
h1 {
  background: linear-gradient(100deg, var(--text) 0%, var(--cyan) 40%, var(--green) 70%, var(--text) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 6s linear infinite;
}

@keyframes gradientShift {
  0%   { background-position: 0% center; }
  100% { background-position: 200% center; }
}

/* cursor blink after h1 */
.hero-copy h1::after {
  content: "|";
  display: inline-block;
  margin-left: 4px;
  -webkit-text-fill-color: var(--cyan);
  animation: blink 1.1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* button primary glow pulse */
.button.primary {
  animation: primaryGlow 3s ease-in-out infinite;
}

@keyframes primaryGlow {
  0%, 100% { box-shadow: 0 18px 50px rgba(56,232,255,0.24); }
  50%       { box-shadow: 0 18px 70px rgba(56,232,255,0.52), 0 0 30px rgba(104,245,178,0.28); }
}

@media (max-width: 940px) {
  .page-shell {
    width: min(100% - 28px, 760px);
  }

  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  .nav-links a {
    padding-inline: 8px;
  }

  .hero,
  .skill-grid,
  .project-grid,
  .education-achievements {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 34px;
  }

  .system-panel {
    height: 460px;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 22px, 520px);
  }

  .section {
    padding-top: 72px;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  h1 {
    font-size: clamp(2.7rem, 15vw, 4.7rem);
  }

  .hero-summary {
    font-size: 1rem;
  }

  .stats-strip {
    grid-template-columns: 1fr;
  }

  .role-row {
    flex-direction: column;
    gap: 4px;
  }

  .timeline-content,
  .skill-card,
  .project-card,
  .education-card,
  .achievement-card {
    padding: 20px;
  }

  .system-panel {
    min-height: 410px;
  }

  .service-node {
    width: 118px;
    padding: 12px;
  }

  .node-a,
  .node-c {
    left: 16px;
  }

  .node-b,
  .node-d {
    right: 16px;
  }
}

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