/* ================================================================
   kyle.15kmr.com — single stylesheet, no external dependencies
   ================================================================ */

:root {
  --bg:          #0d0d0d;
  --surface:     #141414;
  --surface2:    #1c1c1c;
  --border:      #262626;
  --text:        #e6e2dc;
  --muted:       #66625e;
  --accent:      #8ab5c8;
  --accent-warm: #b08858;
  --radius:      0;
  --max-w:       900px;
  --font:        "ui-monospace", "Cascadia Code", "SFMono-Regular", "Menlo", "Consolas", monospace;
  --font-serif:  Georgia, "Times New Roman", serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:          #f7f6f2;
    --surface:     #eeece9;
    --surface2:    #e4e2de;
    --border:      #ccc9c3;
    --text:        #1c1b18;
    --muted:       #6b6860;
    --accent:      #2a7da0;
    --accent-warm: #8a6030;
  }
}

html[data-theme="dark"] {
  --bg:          #0d0d0d;
  --surface:     #141414;
  --surface2:    #1c1c1c;
  --border:      #262626;
  --text:        #e6e2dc;
  --muted:       #66625e;
  --accent:      #8ab5c8;
  --accent-warm: #b08858;
}

html[data-theme="light"] {
  --bg:          #f7f6f2;
  --surface:     #eeece9;
  --surface2:    #e4e2de;
  --border:      #ccc9c3;
  --text:        #1c1b18;
  --muted:       #6b6860;
  --accent:      #2a7da0;
  --accent-warm: #8a6030;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* Base */
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.95rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Canvas background */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* All content above canvas */
nav, main, footer { position: relative; z-index: 1; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Fade-in ──────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-1 { transition-delay: 0.10s; }
.delay-2 { transition-delay: 0.20s; }
.delay-3 { transition-delay: 0.30s; }
.delay-4 { transition-delay: 0.40s; }
.delay-5 { transition-delay: 0.50s; }

/* ── Nav ──────────────────────────────────────────── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
}
.nav-brand {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
}
.nav-brand:hover { text-decoration: none; opacity: 0.8; }
.nav-brand-name {
  font-size: 0.875rem;
  font-weight: bold;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-shadow: 0 0 18px rgba(138,181,200,0.45);
}
.nav-brand-loc {
  font-size: 0.65rem;
  color: var(--muted);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
nav ul { list-style: none; display: flex; gap: 1.5rem; align-items: center; }
nav ul li a {
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
nav ul li a:hover { color: var(--text); text-decoration: none; }
nav ul li a.nav-active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ── Main ─────────────────────────────────────────── */
main {
  flex: 1;
  max-width: var(--max-w);
  width: 100%;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
}

/* ── Footer ───────────────────────────────────────── */
footer {
  text-align: center;
  padding: 1.5rem;
  color: var(--muted);
  font-size: 0.72rem;
  border-top: 1px solid var(--border);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Hero ─────────────────────────────────────────── */
.hero { padding: 3.5rem 0 2rem; }
.hero-eyebrow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: normal;
  color: var(--text);
  line-height: 1.18;
  margin-bottom: 1.25rem;
}
.hero h1 em {
  font-style: italic;
  color: var(--muted);
}
.hero-bio {
  font-size: 0.9rem;
  color: var(--muted);
  max-width: 530px;
  line-height: 1.8;
  margin-bottom: 2.25rem;
  border-left: 2px solid var(--border);
  padding-left: 1.1rem;
}
.hero-bio strong { color: var(--text); }
.hero-links { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.hero-contact-link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
}

.hero-contact-link:hover {
  color: var(--accent);
  text-decoration-thickness: 2px;
}
/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.75rem;
  font-family: var(--font);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: opacity 0.15s;
}
.btn:hover { opacity: 0.85; text-decoration: none; }
.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--surface2);
  text-decoration: none;
}

/* ── Testing block ────────────────────────────────── */
.testing-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}
.testing-desc {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}
.code-block {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.6rem 1rem;
  margin: 0;
  overflow-x: auto;
}
.code-block code {
  font-family: inherit;
  font-size: 0.85rem;
  color: var(--accent);
}

/* ── Section label ────────────────────────────────── */
.section-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-top: 3rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ── Cards (landing) ──────────────────────────────── */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.card:hover { background: var(--surface2); border-color: var(--accent); text-decoration: none; }
.card-icon {
  font-size: 0.55rem;
  margin-bottom: 0.85rem;
  display: block;
  color: var(--accent);
  opacity: 0.6;
}
.card h2 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.card p { font-size: 0.8rem; color: var(--muted); line-height: 1.65; }
.card-arrow {
  display: block;
  margin-top: 1.1rem;
  font-size: 0.75rem;
  color: var(--border);
  transition: color 0.15s;
}
.card:hover .card-arrow { color: var(--accent); }

/* ── Page header ──────────────────────────────────── */
.page-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: normal;
  margin-bottom: 0.4rem;
}
.page-header p { color: var(--muted); font-size: 0.875rem; margin-top: 0.3rem; }

/* ── Resume ───────────────────────────────────────── */
.resume-section { margin-bottom: 2.75rem; }
.resume-section h2 {
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.job { margin-bottom: 1.75rem; }
.job-header { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.25rem; }
.job-header strong { color: var(--text); }
.job-date { color: var(--muted); font-size: 0.8rem; }
.job em { color: var(--accent-warm); display: block; margin: 0.2rem 0 0.65rem; font-size: 0.85rem; }
.job-bullets {
  margin: 0.5rem 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--muted);
  list-style: none;
}
.job-bullets li { padding-left: 1.1rem; position: relative; }
.job-bullets li::before { content: "-"; position: absolute; left: 0; color: var(--border); }
.resume-contact { font-size: 0.8rem; color: var(--muted); margin-top: 0.4rem; }
.resume-contact a { color: var(--muted); }
.resume-contact a:hover { color: var(--accent); }
.skills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.5rem; }
.skills-category {
  display: block;
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
}
.skills-list { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; }
.skills-list li {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.2rem 0.6rem;
  font-size: 0.775rem;
  color: var(--muted);
}

/* ── Featured sites ───────────────────────────────── */
.featured-sites {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}
.site-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
  color: var(--text);
  transition: background 0.2s, border-color 0.2s;
}
.site-card:hover { background: var(--surface2); border-color: var(--accent); text-decoration: none; }
.site-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.site-card-name { font-weight: bold; font-size: 0.9rem; color: var(--accent); }
.site-card-arrow { color: var(--muted); font-size: 0.85rem; transition: color 0.15s; }
.site-card:hover .site-card-arrow { color: var(--accent); }
.site-card-desc { color: var(--muted); font-size: 0.825rem; margin-top: 0.35rem; }

/* ── Project detail pages ─────────────────────────── */
.proj-eyebrow {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 1rem;
}
.proj-prose {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.85;
  max-width: 680px;
  border-left: 2px solid var(--border);
  padding-left: 1.1rem;
}
.proj-back {
  margin-top: 3rem;
}

/* ── Projects ─────────────────────────────────────── */
.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.project-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
  transition: background 0.2s, border-color 0.2s;
}
.project-card:hover { background: var(--surface2); border-color: var(--accent); }
.project-top { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.project-name { font-weight: bold; font-size: 0.9rem; color: var(--accent); }
.project-stars { color: var(--muted); font-size: 0.78rem; white-space: nowrap; }
.project-desc { color: var(--muted); font-size: 0.825rem; margin: 0.35rem 0 0.65rem; }
.project-meta { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.tag {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  font-size: 0.7rem;
  color: var(--muted);
}

/* ── Homelab ──────────────────────────────────────── */
.homelab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
}
.homelab-card { background: var(--surface); border: 1px solid var(--border); padding: 1.5rem; }
.homelab-card h2 {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.homelab-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; font-size: 0.84rem; color: var(--muted); }
.homelab-card li { padding-left: 1.1rem; position: relative; }
.homelab-card li::before { content: "›"; position: absolute; left: 0; color: var(--border); }
.homelab-card li strong { color: var(--text); }

/* ── Metrics table ────────────────────────────────── */
.metrics-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.metrics-table th { text-align: left; color: var(--text-muted); font-weight: 500; border-bottom: 1px solid var(--border); padding: 0.4rem 0.75rem 0.4rem 0; }
.metrics-table td { padding: 0.45rem 0.75rem 0.45rem 0; color: var(--muted); border-bottom: 1px solid color-mix(in srgb, var(--border) 40%, transparent); }
.metrics-table td:first-child { color: var(--text); }

/* ── Benchmark ────────────────────────────────────── */

/* config card key-value grid */
.bench-kv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 0.9rem 1.5rem; margin-bottom: 1.25rem; }
.bench-kv { display: flex; flex-direction: column; gap: 0.15rem; }
.bench-kv-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-muted); }
.bench-kv-val { font-size: 0.9rem; color: var(--text); font-family: var(--mono); }

/* prompt box */
.bench-prompt-box { margin-top: 0.25rem; }
.bench-prompt-box > .bench-kv-label { display: block; margin-bottom: 0.35rem; }
.bench-prompt { margin: 0; font-size: 0.78rem; color: var(--text-muted); white-space: pre-wrap; background: var(--code-bg); border: 1px solid var(--border); border-radius: 4px; padding: 0.6rem 0.75rem; }

/* results table */
.bench-subtitle { font-size: 0.78rem; font-weight: 400; color: var(--text-muted); margin-left: 0.4rem; }
.bench-table { font-size: 0.82rem; }
.bench-table th { padding: 0.4rem 0.8rem 0.4rem 0; vertical-align: bottom; line-height: 1.3; white-space: nowrap; }
.bench-table th .th-sub { font-size: 0.7rem; font-weight: 400; color: color-mix(in srgb, var(--text-muted) 70%, transparent); text-transform: none; display: block; }
.bench-table td { padding: 0.5rem 0.8rem 0.5rem 0; white-space: nowrap; }
.bench-table td.nc, .bench-table th.nc { text-align: right; padding-left: 0.8rem; }
.bench-table .bar-col { width: 30%; padding-left: 1rem; }
.bench-table td.muted { color: var(--text-muted); }
.bench-table td.bright { color: var(--accent); font-weight: 600; }
.bench-table td.col-warn { color: #e0a84e; }
.bench-table .model-name { font-family: var(--mono); }
.bench-bar-track { background: color-mix(in srgb, var(--border) 60%, transparent); border-radius: 2px; height: 6px; width: 100%; min-width: 60px; }
.bench-bar { background: var(--accent); border-radius: 2px; height: 6px; }
.bench-footnote { margin-top: 1rem; font-size: 0.75rem; color: var(--text-muted); }

/* scrollbar — matches page vertical scrollbar */
.scroll-x { overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--border) var(--bg); }
.scroll-x::-webkit-scrollbar { height: 6px; }
.scroll-x::-webkit-scrollbar-track { background: var(--bg); }
.scroll-x::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.scroll-x::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

@media (max-width: 900px) {
  .bench-table .bar-col { display: none; }
  .bench-table th:nth-child(3), .bench-table td:nth-child(3),
  .bench-table th:nth-child(4), .bench-table td:nth-child(4) { display: none; }
}
@media (max-width: 640px) {
  .bench-table th:nth-child(5), .bench-table td:nth-child(5),
  .bench-table th:nth-child(6), .bench-table td:nth-child(6),
  .bench-table th:nth-child(9), .bench-table td:nth-child(9) { display: none; }
}

/* ── Stats ────────────────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 2rem;
}
.stat-card { background: var(--surface); border: 1px solid var(--border); padding: 1.75rem 1rem; text-align: center; }
.stat-label {
  display: block;
  font-size: 0.65rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.65rem;
}
.stat-value { display: block; font-size: 1.9rem; font-weight: bold; color: var(--accent); }
.stat-value--sm { font-size: 1.2rem; }
.stat-sub { display: block; font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; }
.stats-note { color: var(--muted); font-size: 0.825rem; margin-top: 0.5rem; }

/* ── Contact form ─────────────────────────────────── */
.contact-form { display: flex; flex-direction: column; gap: 1rem; max-width: 500px; }
.contact-form label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.contact-form input,
.contact-form textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.9rem;
  padding: 0.65rem 0.8rem;
  width: 100%;
  resize: vertical;
  transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus { outline: none; border-color: var(--accent); }

/* Alerts */
.alert {
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.875rem;
  border-left: 2px solid var(--accent);
  background: var(--surface);
  color: var(--text);
}

/* ── GitHub repos collapse ────────────────────────── */
.github-repos-collapse { border: none; }
.github-repos-collapse summary::-webkit-details-marker { display: none; }
.repos-toggle-icon { font-size: 0.65rem; color: var(--muted); transition: transform 0.2s; }
details[open] .repos-toggle-icon { transform: rotate(180deg); }

/* ── Login ────────────────────────────────────────── */
.login-section { max-width: 420px; margin: 4rem auto; text-align: center; }
.login-section h1 { font-size: 1.8rem; margin-bottom: 1.5rem; }

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
}
.login-hint { color: var(--muted); font-size: 0.875rem; margin-bottom: 1.5rem; }

.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1.25rem;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: box-shadow 0.15s, background 0.15s;
}
.btn-google:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.btn-google svg { width: 18px; height: 18px; flex-shrink: 0; }

.login-error {
  color: #e06c75;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding: 0.6rem 1rem;
  border-left: 2px solid #e06c75;
  background: var(--surface);
  text-align: left;
}

.nav-user { display: inline-flex; align-items: center; align-self: center; gap: 0.6rem; }
.nav-email { color: var(--muted); font-size: 0.75rem; letter-spacing: 0.06em; }


/* ── Theme toggle ─────────────────────────────────── */
.theme-toggle {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}
.theme-toggle-track {
  width: 28px;
  height: 15px;
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  transition: border-color 0.2s;
}
.theme-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 9px;
  height: 9px;
  background: var(--muted);
  border-radius: 50%;
  transition: transform 0.2s, background 0.2s;
}
.theme-toggle[aria-checked="true"] .theme-toggle-track { border-color: var(--accent); }
.theme-toggle[aria-checked="true"] .theme-toggle-thumb {
  transform: translateX(13px);
  background: var(--accent);
}

/* ── Status codes ─────────────────────────────────── */
.status-code { font-family: var(--font); font-size: 0.8rem; font-weight: bold; }
.status-2xx  { color: #6aab6a; }
.status-3xx  { color: var(--accent-warm); }
.status-4xx  { color: #e06c75; }
.status-5xx  { color: #e06c75; }

/* ── Admin — mobile ───────────────────────────────── */
@media (max-width: 640px) {
  /* tighter cell padding across all admin tables */
  #admin-users th, #admin-users td,
  #admin-pv-user th, #admin-pv-user td,
  #admin-anon th, #admin-anon td,
  #admin-recent th, #admin-recent td,
  #admin-contact th, #admin-contact td {
    padding: 0.35rem 0.5rem 0.35rem 0;
    font-size: 0.78rem;
  }

  /* Users: hide First Login (col 2) and Last Login (col 3) */
  #admin-users th:nth-child(2), #admin-users td:nth-child(2),
  #admin-users th:nth-child(3), #admin-users td:nth-child(3) { display: none; }

  /* Page views by user: hide Avg Time (col 5) */
  #admin-pv-user th:nth-child(5), #admin-pv-user td:nth-child(5) { display: none; }

  /* Anonymous visitors: hide Avg Time (col 6) and Client (col 7) */
  #admin-anon th:nth-child(6), #admin-anon td:nth-child(6),
  #admin-anon th:nth-child(7), #admin-anon td:nth-child(7) { display: none; }

  /* Recent activity: hide Duration (col 5) and Client (col 6) */
  #admin-recent th:nth-child(5), #admin-recent td:nth-child(5),
  #admin-recent th:nth-child(6), #admin-recent td:nth-child(6) { display: none; }

  /* Contact: hide Subject (col 4); truncate message (col 5) */
  #admin-contact th:nth-child(4), #admin-contact td:nth-child(4) { display: none; }
  #admin-contact td:nth-child(5) { max-width: 160px; }
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 860px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  nav { flex-direction: column; align-items: flex-start; gap: 0.75rem; padding: 1rem; }
  nav ul { gap: 0.75rem; flex-wrap: wrap; }
  main { padding: 2rem 1rem; }
  .hero h1 { font-size: 2.1rem; }
  .cards { grid-template-columns: 1fr; }
  .homelab-grid { grid-template-columns: 1fr; }
}
