* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- Focus Styles ---- */
:focus-visible {
  outline: 2px solid var(--fg-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}


:root {
  --fg: #DDE6ED;
  --fg-dim: #9eaab5;
  --fg-accent: #c8c896;
  --bg: #1a2332;
  --bg-card: #212d3f;
  --bg-card-hover: #283750;
  --bg-secondary: #3a4f6a;
  --border: #2e4058;
  --accent-glow: rgba(200, 200, 150, 0.08);
  --fg-muted: #708090;
  --green: #7ec699;
  --blue: #6cb6ff;
}

html {
  font-size: 110%;
  scroll-behavior: smooth;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  background-image:
    radial-gradient(rgba(200, 200, 150, 0.03) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
}

/* ---- Floating Nav ---- */
nav {
  position: fixed;
  top: 1.5rem;
  right: 2rem;
  display: flex;
  gap: 0.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 0.5rem;
  z-index: 100;
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-toggle {
  display: none;
}

.nav-burger {
  display: none;
}

nav a {
  color: var(--fg-dim);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}

nav a:hover {
  color: var(--fg);
  background: var(--bg-secondary);
}

.nav-icon {
  display: none;
}

.nav-active {
  color: var(--fg-accent) !important;
}

.project-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.github-stars {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--fg-dim);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

.github-stars svg {
  color: var(--fg-accent);
  flex-shrink: 0;
}

/* ---- Main ---- */
main {
  max-width: 740px;
  margin: 0 auto;
  padding: 5rem 1.5rem 3rem;
}

a {
  color: var(--fg-accent);
  text-decoration: none;
  transition: opacity 0.2s;
}
a:hover {
  opacity: 0.8;
}

/* ---- Header / Hero ---- */
header {
  margin-bottom: 4rem;
}

h1 {
  opacity: 0;
  animation: fade-up 0.6s ease 0.2s forwards;
}

.subtitle {
  opacity: 0;
  animation: fade-up 0.6s ease 0.35s forwards;
}

.header-links {
  opacity: 0;
  animation: fade-up 0.6s ease 0.5s forwards;
}

.cta-banner {
  opacity: 0;
  animation: fade-up 0.6s ease 0.65s forwards;
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f0f4f8 0%, var(--fg-dim) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 0 30px rgba(200, 200, 150, 0.15));
}

.subtitle {
  font-size: 1.25rem;
  color: var(--fg-accent);
  font-weight: 500;
  margin-bottom: 1rem;
}

.header-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.link-pill, .location-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--fg-dim);
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.link-pill:hover {
  background: var(--bg-card-hover);
  color: var(--fg);
  border-color: var(--bg-secondary);
  opacity: 1;
}

.location-pill {
  cursor: default;
}

.about-summary {
  line-height: 1.75;
  color: var(--fg-dim);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.hero-illustration {
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: center;
}

.hero-illustration svg {
  width: 100%;
  max-width: 520px;
  height: auto;
}

/* Forward stream: pod-1 → pod-2 (top lane) */
.flow-fwd { animation: flow-fwd 4s linear infinite; animation-fill-mode: backwards; }
.flow-fwd.f1 { animation-delay: 0s; }
.flow-fwd.f2 { animation-delay: 1.33s; }
.flow-fwd.f3 { animation-delay: 2.66s; }

@keyframes flow-fwd {
  0%   { transform: translate(65px, 45px); opacity: 0; }
  10%  { opacity: 0.2; }
  30%  { opacity: 0.5; }
  50%  { transform: translate(200px, 45px); opacity: 1; }
  70%  { opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { transform: translate(335px, 45px); opacity: 0; }
}

/* Reverse stream: pod-2 → pod-1 (bottom lane) */
.flow-rev { animation: flow-rev 4s linear infinite; animation-fill-mode: backwards; }
.flow-rev.r1 { animation-delay: 0s; }
.flow-rev.r2 { animation-delay: 1.33s; }
.flow-rev.r3 { animation-delay: 2.66s; }

/* Data dots: magnifying glass → dashboard (follow curve) */
.data-dot {
  offset-path: path("M200 23 C200 0 490 0 490 25");
  animation: data-ship 2.5s linear infinite;
  animation-fill-mode: backwards;
}
.data-dot.dd1 { animation-delay: 0s; }
.data-dot.dd2 { animation-delay: 1.25s; }

@keyframes data-ship {
  0%   { offset-distance: 0%; opacity: 0; }
  10%  { opacity: 0.8; }
  50%  { opacity: 1; }
  90%  { opacity: 0.8; }
  100% { offset-distance: 100%; opacity: 0; }
}

@keyframes flow-rev {
  0%   { transform: translate(335px, 65px); opacity: 0; }
  10%  { opacity: 0.2; }
  30%  { opacity: 0.5; }
  50%  { transform: translate(200px, 65px); opacity: 1; }
  70%  { opacity: 0.5; }
  90%  { opacity: 0.2; }
  100% { transform: translate(65px, 65px); opacity: 0; }
}

.about-highlights {
  margin: 0.75rem 0 0 1.25rem;
  padding: 0;
  color: var(--fg-dim);
  font-size: 0.9rem;
  line-height: 1.75;
}

/* ---- Role Awards ---- */
.role-awards {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.role-award {
  background: var(--accent-glow);
  border: 1px solid rgba(200, 200, 150, 0.15);
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 600;
}

.role-award summary {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  list-style: none;
}

.role-award summary::-webkit-details-marker {
  display: none;
}

.role-award summary::marker {
  content: '';
}

.role-award p {
  padding: 0 0.75rem 0.5rem;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--fg-dim);
  line-height: 1.5;
}

.award-year {
  font-size: 0.75rem;
  color: var(--fg-dim);
  font-weight: 400;
  margin-left: 0.2rem;
}

/* ---- Sections ---- */
section {
  margin-bottom: 4rem;
}

h2 {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, var(--bg-secondary), transparent);
}

.section-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9rem;
  color: var(--fg-accent);
  font-weight: 400;
}

h3 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--fg-dim);
  margin-bottom: 0.6rem;
}

/* ---- Skills ---- */
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.skill-category {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.skill-category:hover {
  border-color: var(--bg-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.skill-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--fg-dim);
}

.skill-titlebar-text {
  flex: 1;
  color: var(--fg-muted);
}

.skill-body {
  padding: 1.25rem;
}

.skill-desc {
  font-size: 0.85rem;
  color: var(--fg-dim);
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.skill-exploring {
  font-size: 0.8rem;
  color: var(--fg-accent);
  margin-top: 0.5rem;
  font-family: 'JetBrains Mono', monospace;
}

.skill-exploring strong {
  color: var(--fg);
}

.skill-category--direction {
  border-color: rgba(200, 200, 150, 0.2);
}

.skill-category--direction:hover {
  border-color: rgba(200, 200, 150, 0.35);
  box-shadow: 0 8px 32px rgba(200, 200, 150, 0.06);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border-radius: 6px;
  background: var(--bg-secondary);
  color: var(--fg);
  font-weight: 500;
  transition: transform 0.15s;
}

.tags i {
  font-size: 1.1rem;
}

.tags .icon-wireshark,
.tags .icon-cf,
.tags .icon-vsphere,
.tags .icon-aws {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
}

.tags .icon-wireshark {
  fill: #1679A7;
}

.tags span:hover {
  transform: translateY(-1px);
}

.tags .learning-tag {
  background: rgba(200, 200, 150, 0.15);
  color: var(--fg-accent);
  border: 1px solid rgba(200, 200, 150, 0.2);
}

/* ---- CTA Banner ---- */
.cta-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.cta-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--fg-muted);
}

.cta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--fg-dim);
  text-decoration: none;
  padding: 0.2rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.cta-pill:hover {
  background: var(--bg-card-hover);
  border-color: var(--bg-secondary);
  opacity: 1;
}

.cta-pill-logo {
  height: 0.85rem;
  width: auto;
  border-radius: 2px;
}

.cta-pill--rootcause {
  border-color: rgba(245, 158, 11, 0.2);
}

.cta-pill--rootcause:hover {
  border-color: rgba(245, 158, 11, 0.4);
}

.cta-pill--rootcause .rootcause-root {
  font-size: 0.7rem;
}

.cta-pill--rootcause .rootcause-cause {
  font-size: 0.7rem;
}

.cta-pill--nless {
  border-color: rgba(34, 197, 94, 0.15);
}

.cta-pill--nless:hover {
  border-color: rgba(34, 197, 94, 0.35);
}


@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ---- Project logos ---- */
.rootcause-logo {
  height: 3.2rem;
  width: auto;
  border-radius: 6px;
}


.rootcause-wordmark {
  display: inline-flex;
  align-items: baseline;
  letter-spacing: -0.02em;
  font-size: 1.1rem;
}

.rootcause-root {
  color: #fbbf24;
  font-family: 'JetBrains Mono', monospace;
}

.rootcause-cause {
  color: var(--fg);
}

.nless-logo {
  height: 2.8rem;
  width: auto;
  vertical-align: middle;
  border-radius: 3px;
}

.nless-logo--project {
  height: 3.2rem;
}

/* ---- Projects ---- */
.projects-grid {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.project-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
}

.project-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.project-card:hover {
  border-color: var(--bg-secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Titlebar */
.project-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  color: var(--fg-dim);
}

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

.project-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-secondary);
  transition: background 0.3s;
}

.project-card:hover .project-dots i:nth-child(1) { background: #ef4444; }
.project-card:hover .project-dots i:nth-child(2) { background: #f59e0b; }
.project-card:hover .project-dots i:nth-child(3) { background: #22c55e; }

.project-titlebar-text {
  flex: 1;
  color: var(--fg-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.project-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.project-status--live .project-status-dot {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

.project-status--live {
  color: #22c55e;
}

.project-status--oss .project-status-dot {
  background: var(--blue);
  box-shadow: 0 0 6px rgba(108, 182, 255, 0.4);
}

.project-status--oss {
  color: var(--blue);
}

.project-body {
  padding: 1.5rem;
}

/* Variants */
.project-card--rootcause {
  border-color: rgba(245, 158, 11, 0.2);
}

.project-card--rootcause::after {
  box-shadow: inset 0 0 40px rgba(245, 158, 11, 0.03);
}

.project-card--rootcause:hover {
  border-color: rgba(245, 158, 11, 0.35);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.08), 0 0 0 1px rgba(245, 158, 11, 0.1);
}

.project-card--rootcause:hover::after {
  opacity: 1;
}

.project-card--nless {
  border-color: rgba(34, 197, 94, 0.1);
}

.project-card--nless::after {
  box-shadow: inset 0 0 40px rgba(34, 197, 94, 0.02);
}

.project-card--nless:hover {
  border-color: rgba(34, 197, 94, 0.3);
  box-shadow: 0 8px 32px rgba(34, 197, 94, 0.06), 0 0 0 1px rgba(34, 197, 94, 0.08);
}

.project-card--nless:hover::after {
  opacity: 1;
}

.project-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.project-name {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--fg);
}

.project-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--fg-accent);
  border: 1px solid var(--border);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  transition: all 0.2s;
}

.project-link:hover {
  border-color: var(--bg-secondary);
  background: var(--bg-secondary);
  opacity: 1;
}

.project-desc {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}

.project-desc code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8rem;
  background: var(--bg-secondary);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  color: var(--fg);
}

.project-tech {
  margin-top: 0.25rem;
}

/* ---- Timeline ---- */
.timeline {
  position: relative;
  padding-left: 2rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 7px;
  top: 8px;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--bg-secondary), transparent);
}

.timeline-item {
  position: relative;
  margin-bottom: 2.5rem;
}

.timeline-marker {
  position: absolute;
  left: -2rem;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--bg-secondary);
  z-index: 1;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.timeline-marker.current {
  border-color: var(--fg-accent);
  box-shadow: 0 0 0 4px rgba(200, 200, 150, 0.15);
  animation: marker-pulse 3s ease-in-out infinite;
}

@keyframes marker-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(200, 200, 150, 0.15); }
  50% { box-shadow: 0 0 0 6px rgba(200, 200, 150, 0.25), 0 0 12px rgba(200, 200, 150, 0.1); }
}

.timeline-marker.current::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--fg-accent);
}

.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.timeline-content:hover {
  border-color: var(--bg-secondary);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.job-header h3 {
  font-size: 1.1rem;
  text-transform: none;
  letter-spacing: normal;
  color: var(--fg);
  margin-bottom: 0;
}

.tenure {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--fg-dim);
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
}

.role {
  margin-top: 0.75rem;
  padding-left: 1rem;
  border-left: 2px solid var(--border);
}

.role + .role {
  margin-top: 1.25rem;
}

.role-title {
  font-weight: 600;
  font-size: 0.95rem;
}

.role-dates {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  color: var(--fg-dim);
  margin-bottom: 0.5rem;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  position: relative;
  padding-left: 1rem;
  margin-bottom: 0.4rem;
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--fg-accent);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.75rem;
  top: 3px;
}

li strong {
  color: var(--fg);
  font-weight: 600;
}

/* ---- Education ---- */
.education-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.edu-icon {
  color: var(--fg-accent);
  flex-shrink: 0;
}

/* ---- 404 ---- */
.not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}

.not-found-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 480px;
}

.not-found-titlebar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--border);
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
}

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

.not-found-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bg-secondary);
  display: inline-block;
}

.not-found-titlebar-text {
  color: var(--fg-muted);
}

.not-found-body {
  padding: 2rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.not-found-code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 3rem;
  font-weight: 700;
  color: var(--fg-accent);
  letter-spacing: -0.04em;
  line-height: 1;
}

.not-found-message {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.not-found-links {
  display: flex;
  gap: 0.5rem;
}

/* ---- Contact ---- */
.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 0 !important;
}

.contact-prompt {
  font-size: 0.9rem;
  color: var(--fg-dim);
  line-height: 1.6;
}

.contact-links {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .contact-section {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* ---- Footer ---- */
footer {
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
  padding: 3rem 1.5rem 3rem;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 0.75rem;
  font-family: 'JetBrains Mono', monospace;
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}

/* ---- Scroll Reveal ---- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  nav {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    margin: 0;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    flex-direction: column;
    padding: 0;
  }

  .nav-burger {
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.75rem 1rem;
    align-self: flex-end;
  }

  .nav-burger span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--fg-dim);
    border-radius: 2px;
    transition: all 0.3s;
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(1) {
    transform: rotate(45deg) translate(4px, 4px);
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle:checked ~ .nav-burger span:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -4px);
  }

  .nav-links {
    display: none;
    flex-direction: column;
    padding: 0 0.5rem 0.5rem;
  }

  .nav-toggle:checked ~ .nav-links {
    display: flex;
  }

  .nav-links a {
    padding: 0.5rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
  }

  .nav-icon {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
  }

  main {
    padding-top: 3.5rem;
  }

  h1 {
    font-size: 2.5rem;
  }

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


  .role-awards {
    flex-direction: column;
  }

  .job-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

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

  html {
    scroll-behavior: auto;
  }

  h1, .subtitle, .header-links, .cta-banner {
    opacity: 1;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
