:root {
  --bg: #0b0e14;
  --bg-alt: #10141d;
  --surface: #151a24;
  --border: #232938;
  --text: #dce1ec;
  --text-dim: #8992a6;
  --accent: #5eead4;
  --accent-2: #7dd3fc;
  --accent-warm: #f0abfc;
  --amber: #fbbf24;
  --header-bg: rgba(11, 14, 20, 0.85);
  --mono: "SF Mono", "Cascadia Code", "JetBrains Mono", Consolas, "Courier New", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-h: 68px;
}

:root[data-theme="light"] {
  --bg: #f4f6fa;
  --bg-alt: #eaedf3;
  --surface: #ffffff;
  --border: #dbe0ea;
  --text: #1a2233;
  --text-dim: #5b6478;
  --accent: #0d9488;
  --accent-2: #0369a1;
  --accent-warm: #c026d3;
  --amber: #b45309;
  --header-bg: rgba(244, 246, 250, 0.85);
}

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

html { scroll-behavior: smooth; }

::selection { background: var(--accent); color: var(--bg); }

html { scrollbar-color: var(--border) var(--bg); scrollbar-width: thin; }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

@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;
  }
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
  /* The sticky stats-bar animates its own height on scroll (compact
     toggle). Scroll anchoring elsewhere on the page compensates for that
     shift by nudging scrollY, which re-crosses our JS threshold and loops
     forever. Disabling it document-wide (not just on the bar) is required
     because the browser can anchor to any visible element, not just the
     bar's own descendants. */
  overflow-anchor: none;
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(94, 234, 212, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(94, 234, 212, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent 70%);
}

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

.accent { color: var(--accent); }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav {
  max-width: 1100px;
  height: var(--header-h);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent);
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--text-dim);
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--accent); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
}

.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s, color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
}

/* Hero */
.hero {
  position: relative;
  max-width: 1100px;
  margin: 0 auto;
  padding: 90px 24px 100px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  top: -180px;
  right: -120px;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.14), transparent 70%);
  filter: blur(40px);
  z-index: -1;
  animation: drift 14s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(-40px, 40px) scale(1.15); }
}

.prompt-line {
  font-family: var(--mono);
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.prompt-symbol { color: var(--accent); margin-right: 8px; }

.type-cursor {
  display: inline-block;
  width: 8px;
  height: 1em;
  background: var(--accent);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}

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

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 22px;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f87171;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0.5); }
  70% { box-shadow: 0 0 0 8px rgba(248, 113, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(248, 113, 113, 0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  background: linear-gradient(135deg, var(--text) 30%, var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-role {
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1.15rem;
  margin-top: 10px;
}

.hero-sub {
  color: var(--text-dim);
  max-width: 46ch;
  margin-top: 18px;
  font-size: 1.02rem;
}

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

.btn {
  font-family: var(--mono);
  font-size: 0.9rem;
  padding: 12px 22px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #0b0e14;
  border-color: var(--accent);
  font-weight: 600;
}

.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); }

.btn-ghost { color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.hero-tags span {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 999px;
  transition: border-color 0.2s, color 0.2s;
}

.hero-tags span:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px 20px;
  box-shadow: 0 20px 60px -20px rgba(0,0,0,0.6);
  overflow-x: auto;
}

.hero-code pre { font-family: var(--mono); font-size: 0.82rem; line-height: 1.7; }

.c-kw { color: var(--accent-warm); }
.c-str { color: var(--accent); }
.c-prop { color: var(--accent-2); }
.c-num { color: var(--amber); }
.c-bool { color: var(--amber); }

/* Stats bar */
.stats-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-alt);
  /* Without this, the browser's scroll-anchoring silently nudges scrollY
     to compensate for this element's height animating (compact toggle),
     which re-crosses our JS threshold and creates an infinite feedback
     loop — the bar fighting itself even with no further user scrolling. */
  overflow-anchor: none;
}

.stats-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  transition: padding 0.25s ease;
}

.stat {
  text-align: center;
  transition: gap 0.25s ease;
}

.stat-num {
  display: block;
  font-family: var(--mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  transition: font-size 0.25s ease;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-top: 6px;
  transition: font-size 0.25s ease, margin-top 0.25s ease;
}

/* Compact "reminder" state once the hero has scrolled past */
.stats-bar.compact .stats-inner {
  padding: 10px 24px;
  gap: 12px;
}

.stats-bar.compact .stat {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
}

.stats-bar.compact .stat-num {
  font-size: 1.05rem;
}

.stats-bar.compact .stat-label {
  font-size: 0.68rem;
  margin-top: 0;
}

/* Sections */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 70px 24px;
  border-top: 1px solid var(--border);
  /* Nav links jump to these via #anchor. The sticky header + sticky stats
     bar sit on top of the viewport, so without this the heading scrolls
     to right behind them and gets hidden. Sized for the stats bar's full
     (non-compact) height since that's the worst case. */
  scroll-margin-top: calc(var(--header-h) + 160px);
}

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.tag {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--accent);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 6px;
}

/* About */
.about-content p {
  color: var(--text-dim);
  max-width: 68ch;
  margin-bottom: 16px;
}

.about-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.about-meta > div {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 0.92rem;
  transition: border-color 0.2s, transform 0.2s;
}

.about-meta > div:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.about-meta > div::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(94, 234, 212, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.about-meta > div:hover::after {
  opacity: 1;
}

.about-meta .label {
  display: block;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 6px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 28px;
  border-left: 1px solid var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 44px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-marker {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.15);
}

.timeline-marker.current {
  animation: marker-pulse 2s infinite;
}

@keyframes marker-pulse {
  0% { box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.15); }
  50% { box-shadow: 0 0 0 9px rgba(94, 234, 212, 0.06); }
  100% { box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.15); }
}

.timeline-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
}

.timeline-head h3 {
  font-size: 1.12rem;
  font-weight: 600;
}

.timeline-date {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.timeline-company {
  color: var(--accent-2);
  font-size: 0.9rem;
  margin: 4px 0 12px;
}

.timeline-content ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.timeline-content li {
  color: var(--text-dim);
  font-size: 0.92rem;
  padding-left: 18px;
  position: relative;
}

.timeline-content li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
}

/* Skills */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.skill-card {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 22px;
}

.skill-card::after,
.cert-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(94, 234, 212, 0.09), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.skill-card:hover::after,
.cert-card:hover::after {
  opacity: 1;
}

.skill-card.featured {
  border-color: rgba(94, 234, 212, 0.35);
  background: linear-gradient(160deg, rgba(94, 234, 212, 0.07), var(--surface) 60%);
}

.skill-card h4 {
  font-size: 0.95rem;
  color: var(--accent);
  font-family: var(--mono);
  margin-bottom: 16px;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

.chip {
  font-size: 0.82rem;
  color: var(--text);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 6px;
  font-family: var(--mono);
  transition: border-color 0.15s ease, color 0.15s ease;
}

.chip::before {
  content: "+ ";
  color: var(--accent);
  opacity: 0;
  margin-right: -0.75em;
  transition: opacity 0.15s ease, margin-right 0.15s ease;
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.chip:hover::before {
  opacity: 1;
  margin-right: 0;
}

/* Certifications */
.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.cert-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.2s, transform 0.2s;
}

.cert-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.cert-card h4 { font-size: 0.98rem; margin-bottom: 6px; }
.cert-issuer { color: var(--accent-2); font-size: 0.85rem; }
.cert-date { color: var(--text-dim); font-family: var(--mono); font-size: 0.78rem; margin-top: 8px; }

.cert-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(94, 234, 212, 0.45);
}

/* Vendor flair — Azure logo asset for Microsoft certs, CSS-drawn badges
   for vendors we don't have a logo file for */
.cert-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ms-icon {
  background: var(--bg-alt);
  padding: 6px;
}

.ms-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hc-icon {
  background: var(--bg-alt);
  padding: 6px;
}

.hc-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pc-icon {
  background: rgba(94, 234, 212, 0.15);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 700;
  border: 1px solid rgba(94, 234, 212, 0.4);
}

/* Contact */
.contact-content p {
  color: var(--text-dim);
  max-width: 56ch;
  margin-bottom: 24px;
}

.contact-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.contact-links a {
  font-family: var(--mono);
  font-size: 0.95rem;
  border: 1px solid var(--border);
  padding: 12px 20px;
  border-radius: 6px;
  transition: all 0.2s;
}

.contact-links a:hover { border-color: var(--accent); color: var(--accent); }

.email-copy-group {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.email-copy-group a {
  border-radius: 6px 0 0 6px;
  border-right: none;
}

.copy-btn {
  font-family: var(--mono);
  font-size: 0.95rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 0 6px 6px 0;
  padding: 12px 16px;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.2s;
}

.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

.copy-btn.copied {
  border-color: var(--accent);
  color: var(--accent);
}

/* Footer */
.site-footer {
  text-align: center;
  padding: 30px 24px 50px;
  color: var(--text-dim);
  font-size: 0.82rem;
  font-family: var(--mono);
}

.site-footer .uptime {
  margin-top: 10px;
  color: var(--accent);
  opacity: 0.85;
}

.site-footer .palette-hint {
  margin-top: 14px;
  font-size: 0.76rem;
  opacity: 0.65;
}

kbd {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.72rem;
  border: 1px solid var(--border);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--text);
  background: var(--surface);
}

/* Command palette */
.cmdk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(5, 7, 11, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.cmdk-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.cmdk {
  width: min(560px, 90vw);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  transform: translateY(-10px);
  transition: transform 0.18s ease;
}

.cmdk-backdrop.open .cmdk {
  transform: translateY(0);
}

.cmdk-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.cmdk-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.cmdk-dot-r { background: #f87171; }
.cmdk-dot-y { background: #fbbf24; }
.cmdk-dot-g { background: var(--accent); }

.cmdk-title {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-dim);
}

.cmdk-log {
  max-height: 260px;
  overflow-y: auto;
  padding: 14px;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cmdk-log p { margin: 0; }
.cmdk-log .cmdk-cmd { color: var(--text); }
.cmdk-log .cmdk-cmd::before { content: "> "; color: var(--accent); }

.cmdk-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--border);
}

.cmdk-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.9rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

.skills-grid .reveal:nth-child(1), .cert-grid .reveal:nth-child(1) { transition-delay: 0.02s; }
.skills-grid .reveal:nth-child(2), .cert-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.skills-grid .reveal:nth-child(3), .cert-grid .reveal:nth-child(3) { transition-delay: 0.14s; }
.skills-grid .reveal:nth-child(4), .cert-grid .reveal:nth-child(4) { transition-delay: 0.20s; }
.skills-grid .reveal:nth-child(5), .cert-grid .reveal:nth-child(5) { transition-delay: 0.26s; }
.skills-grid .reveal:nth-child(6), .cert-grid .reveal:nth-child(6) { transition-delay: 0.32s; }

/* Konami easter egg */
.konami-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.85rem;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
  z-index: 300;
  animation: toast-in 0.3s ease;
  white-space: nowrap;
}

@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

body.konami-active {
  animation: hue-party 1.2s linear infinite;
}

@keyframes hue-party {
  0% { filter: hue-rotate(0deg); }
  100% { filter: hue-rotate(360deg); }
}

/* Responsive */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-code { order: -1; }
  .about-meta { grid-template-columns: 1fr; }
  .skills-grid { grid-template-columns: 1fr; }
  .cert-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .stats-inner { grid-template-columns: 1fr 1fr; }

  /* The shrink-on-scroll "compact" behavior doesn't work reliably on
     mobile, so it's disabled here: the bar stays static in the flow and
     the compact modifiers are reset back to their normal-size values. */
  .stats-bar { position: static; }
  .stats-bar.compact .stats-inner { padding: 36px 24px; gap: 20px; }
  .stats-bar.compact .stat { display: block; }
  .stats-bar.compact .stat-num { font-size: 2rem; }
  .stats-bar.compact .stat-label { font-size: 0.8rem; margin-top: 6px; }

  /* Command palette ("terminal") is a keyboard-shortcut easter egg with
     no touch equivalent, so it's hidden entirely on mobile. */
  .palette-hint { display: none; }
  .cmdk-backdrop { display: none !important; }

  .nav-toggle { display: flex; }
  .nav-right { gap: 12px; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 300px; }
  .nav-links li { border-top: 1px solid var(--border); }
  .nav-links a { display: block; padding: 16px 24px; }
  .cert-grid { grid-template-columns: 1fr; }
  .timeline-head { flex-direction: column; align-items: flex-start; }
}
