/* cumeoduagu.com
   A dark "blueprint" hero (grid lines, terminal prompt) over a light content area, with a
   timeline for experience and cards for certifications and education. Follows the visitor's
   light/dark setting. No JavaScript and no external fonts: everything is in this file. */

/* ---- Colours and sizes ---------------------------------------------------------------------- */

:root {
  /* Hero and footer: always dark. */
  --ink: #0b1620;
  --ink-2: #12212d;
  --ink-text: #e6eef3;
  --ink-muted: #93a7b5;
  --grid-line: rgba(148, 197, 222, 0.07);

  /* Content area (light mode). */
  --bg: #f5f7f9;
  --surface: #ffffff;
  --text: #17222b;
  --muted: #5b6b77;
  --border: #dde4ea;

  /* Accent: a cloud-ish cyan, darker on light backgrounds for contrast. */
  --accent: #0f7490;
  --accent-soft: rgba(15, 116, 144, 0.1);
  --accent-on-dark: #5ad1ea;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 32, 44, 0.04), 0 8px 24px rgba(16, 32, 44, 0.06);
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1a23;
    --surface: #142531;
    --text: #e3ebf0;
    --muted: #9db0bd;
    --border: #22384a;
    --accent: #5ad1ea;
    --accent-soft: rgba(90, 209, 234, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}

/* ---- Base --------------------------------------------------------------------------------- */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 2px solid var(--accent-on-dark); outline-offset: 3px; }

h1, h2, h3 { line-height: 1.2; margin: 0; }
.muted { color: var(--muted); }

.wrap { width: min(1080px, 100% - 2.5rem); margin-inline: auto; }

.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 10; background: var(--surface); padding: 0.5rem 1rem; }

/* ---- Hero ------------------------------------------------------------------------------------ */

.hero {
  position: relative;
  color: var(--ink-text);
  background:
    radial-gradient(60rem 30rem at 85% -10%, rgba(90, 209, 234, 0.18), transparent 60%),
    radial-gradient(40rem 30rem at -10% 110%, rgba(56, 120, 255, 0.12), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 40px 40px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 40px 40px,
    var(--ink);
  border-bottom: 1px solid rgba(90, 209, 234, 0.18);
  overflow: hidden;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.25rem;
}
.nav a { color: var(--ink-text); text-decoration: none; }
.nav-links { display: flex; gap: 1.5rem; list-style: none; margin: 0 0 0 auto; padding: 0; font-size: 0.95rem; }
.nav-links a { color: var(--ink-muted); }
.nav-links a:hover { color: var(--ink-text); }

.monogram {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(230, 238, 243, 0.25);
  border-radius: 8px;
}

.nav-cv {
  font-size: 0.9rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(90, 209, 234, 0.5);
  border-radius: 999px;
}
.nav-cv:hover { background: rgba(90, 209, 234, 0.12); }

.hero-body {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(3rem, 9vw, 6.5rem) clamp(3rem, 7vw, 5rem);
}

/* The whole photo, uncropped (3:4), in a thin frame that matches the hero's lines. */
.hero-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 0.4rem;
  border-radius: var(--radius);
  border: 1px solid rgba(90, 209, 234, 0.35);
  box-shadow: 0 0 0 6px rgba(90, 209, 234, 0.06), 0 18px 40px rgba(0, 0, 0, 0.35);
}

.prompt {
  font-family: var(--mono);
  font-size: 0.95rem;
  color: var(--accent-on-dark);
  margin: 0 0 1rem;
}
.prompt-sign { color: var(--ink-muted); }
.prompt-error { color: #ff9b8f; margin-top: -0.75rem; }

.cursor {
  display: inline-block;
  width: 0.55em;
  height: 1.1em;
  margin-left: 0.3em;
  vertical-align: text-bottom;
  background: var(--accent-on-dark);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(100deg, #ffffff 30%, var(--accent-on-dark));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.aka {
  display: inline-block;
  margin: 0.9rem 0 0;
  padding: 0.2rem 0.75rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--ink-muted);
  border: 1px solid rgba(90, 209, 234, 0.35);
  border-radius: 999px;
}
.aka strong { color: var(--accent-on-dark); }

.hero-title { font-size: clamp(1.1rem, 2.4vw, 1.4rem); margin: 0.75rem 0 0; color: var(--ink-text); }
.sep { color: var(--accent-on-dark); margin-inline: 0.6rem; }
.hero-summary { max-width: 33rem; color: var(--ink-muted); margin: 1.25rem 0 0; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn {
  display: inline-block;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(230, 238, 243, 0.25);
  color: var(--ink-text);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: rgba(230, 238, 243, 0.08); transform: translateY(-1px); }
.btn-primary { background: var(--accent-on-dark); border-color: var(--accent-on-dark); color: var(--ink); }
.btn-primary:hover { background: #8ce2f2; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 3rem 0 0;
  max-width: 44rem;
  border: 1px solid rgba(230, 238, 243, 0.12);
  border-radius: var(--radius);
  background: rgba(230, 238, 243, 0.12);
  overflow: hidden;
}
.stat { background: rgba(11, 22, 32, 0.85); padding: 1rem 1.25rem; }
.stat dt { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-muted); }
.stat dd { margin: 0.25rem 0 0; font-size: 1.5rem; font-weight: 600; }

/* ---- Greeting: typed out, held, erased and typed again, on a loop ---------------------------- */

.greeting {
  font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--ink-text);
  margin: 0 0 1.1rem;
  display: flex;
  align-items: center;
}
/* Width changes one character at a time (steps), so the text appears to be typed and erased.
   Each 8-second loop: type (0-30%), hold (30-80%), erase (80-95%), short pause while empty. */
.greeting-text {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  width: calc(var(--chars) * 1ch);
  animation: typing 8s steps(var(--chars)) 0.4s infinite both;
}
@keyframes typing {
  0% { width: 0; }
  30%, 80% { width: calc(var(--chars) * 1ch); }
  95%, 100% { width: 0; }
}

/* ---- Sections -------------------------------------------------------------------------------- */

.section { padding-block: clamp(3rem, 7vw, 5rem) 0; }
.section:last-child { padding-bottom: clamp(3rem, 7vw, 5rem); }
.section:has(> .collapsible) + .section { padding-top: 1rem; }

.section-title {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  font-size: clamp(1.6rem, 3.5vw, 2.1rem);
  letter-spacing: -0.02em;
  margin-bottom: 2rem;
}

.section-index { font-family: var(--mono); font-size: 0.9rem; color: var(--accent); }

.subhead { font-size: 1rem; margin: 2.25rem 0 0.9rem; color: var(--muted); font-weight: 600; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.4rem 1.6rem;
}

/* ---- About me: a journey, a quote, and "Outside work" ----------------------------------------- */

/* The journey: stops joined by a line, left to right on wide screens, top to bottom on narrow ones.
   Every stop's text is the same size; the marker and title give the hierarchy. */
.journey {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.25rem;
  position: relative;
}
.journey::before {
  content: "";
  position: absolute;
  left: 0.5rem;
  right: 0.5rem;
  top: 0.55rem;
  height: 2px;
  background: linear-gradient(90deg, var(--border), var(--accent));
}
.journey-stop { position: relative; padding-top: 2.1rem; }
.journey-stop::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
}
.journey-now::before { background: var(--accent); box-shadow: 0 0 0 6px var(--accent-soft); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px transparent; } }
.journey-marker {
  margin: 0 0 0.3rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.journey-stop h3 { font-size: 1.05rem; margin-bottom: 0.45rem; }
.journey-stop p:last-child { margin: 0; font-size: 0.95rem; color: var(--muted); line-height: 1.6; }

.about-quote {
  margin: clamp(2.5rem, 6vw, 3.5rem) 0 0;
  padding: 1.5rem 0 1.5rem 1.75rem;
  border-left: 3px solid var(--accent);
  position: relative;
}
.about-quote::before {
  content: "\201C";
  position: absolute;
  left: 1.1rem;
  top: -1.4rem;
  font-size: 5rem;
  line-height: 1;
  color: var(--accent-soft);
  font-family: Georgia, serif;
}
.about-quote p {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: -0.01em;
}

#about .subhead { margin-top: 2.5rem; }
.life { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 1rem; align-items: start; }
.life-card h4 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.life-card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.life-icon {
  width: 2.4rem;
  height: 2.4rem;
  padding: 0.45rem;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  background: var(--accent-soft);
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Narrower screens: the journey runs top to bottom, with the line down the left. */
@media (max-width: 900px) {
  .journey { grid-template-columns: 1fr; gap: 1.5rem; padding-left: 2rem; }
  .journey::before { left: 0.5rem; right: auto; top: 0.5rem; bottom: 0.5rem; width: 2px; height: auto;
                     background: linear-gradient(var(--border), var(--accent)); }
  .journey-stop { padding-top: 0; }
  .journey-stop::before { left: -1.95rem; top: 0.15rem; }
}

/* ---- Home lab drawing (templates/homelab-art.html) ------------------------------------------ */

/* The Home lab card is always dark, like the hero (a little server room), so the lights and the
   migration stand out. It re-points the colour variables, and the drawing below uses them. */
.lab-card {
  --surface: #12212d;
  --bg: #0b1620;
  --text: var(--ink-text);
  --muted: var(--ink-muted);
  --border: #2a4152;
  --accent: var(--accent-on-dark);
  --accent-soft: rgba(90, 209, 234, 0.14);
  color: var(--ink-text);
  background:
    radial-gradient(30rem 16rem at 80% 0%, rgba(90, 209, 234, 0.14), transparent 60%),
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 28px 28px,
    var(--ink);
  border-color: rgba(90, 209, 234, 0.25);
}
.lab-card h4 { color: var(--ink-text); }

.lab-art { display: block; width: 100%; height: auto; margin-top: 1.25rem; overflow: visible; }
.lab-box { fill: var(--surface); stroke: var(--border); stroke-width: 1.5; }
.lab-vm .lab-box { stroke: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.lab-hypervisor { fill: var(--accent-soft); }
.lab-metal { fill: var(--bg); }
.lab-storage { fill: var(--accent-soft); stroke: var(--accent); }
.lab-cluster { fill: none; stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 6; opacity: 0.6; }
.lab-slot { fill: none; stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 5 5; }
.lab-text { font-family: var(--mono); font-size: 12px; fill: var(--text); }
.lab-text-small { font-size: 10.5px; fill: var(--muted); }
.lab-label { fill: var(--accent); }
.lab-pod { fill: var(--accent); opacity: 0.75; }
.lab-pod-busy { animation: pod 3s ease-in-out infinite; }
/* App names inside the pods: small, dark on the cyan pod. */
.lab-pod-name { font-family: var(--mono); font-size: 9.5px; font-weight: 700; fill: var(--ink); }
@keyframes pod { 50% { opacity: 0.45; } }
.lab-led { fill: #3cf08f; filter: drop-shadow(0 0 3px #3cf08f) drop-shadow(0 0 6px rgba(60, 240, 143, 0.6)); animation: led 2.4s steps(1) infinite; }
.lab-led-2 { fill: #ffc24b; filter: drop-shadow(0 0 3px #ffc24b) drop-shadow(0 0 6px rgba(255, 194, 75, 0.6)); animation-delay: 0.9s; animation-duration: 1.7s; }
@keyframes led { 50% { opacity: 0.15; } }
.lab-link { stroke: var(--border); stroke-width: 2; }
.lab-flow { stroke: var(--accent); stroke-width: 2; stroke-dasharray: 3 9; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.lab-disk { fill: var(--accent); opacity: 0.5; filter: drop-shadow(0 0 3px var(--accent)); animation: disk 1.8s steps(1) infinite; }
.lab-disk:nth-child(2n) { animation-delay: 0.6s; }
.lab-disk:nth-child(3n) { animation-delay: 1.1s; }
@keyframes disk { 50% { opacity: 0.15; } }

/* The moves share one loop, --lab-cycle long. Which VM and app move, their paths and the keyframes
   that carry them along (lab-token-move, lab-pod-move) come from app/homelab.py on each page load;
   the timings below use the same percentages as that file.
   - Live migration (out 24-42%, back 72-87%): the copy in the empty slot fills in while the token
     travels, then it switches over (40-44%); coming back is the same in reverse.
   - Rescheduling (out 50-60%, back 90-99%), in the gaps between migrations. Pods don't live-migrate
     like VMs; Kubernetes starts a new one on the other node, which the label says. */
.lab-art { --lab-cycle: 20s; }
.lab-migrating .lab-box { stroke: var(--accent); stroke-width: 2; }
.lab-vm-home { animation: vm-home var(--lab-cycle) linear infinite; }
.lab-vm-away { animation: vm-away var(--lab-cycle) linear infinite; }
@keyframes vm-home { 0%, 40% { opacity: 1; } 44%, 72% { opacity: 0; } 86% { opacity: 0.5; } 89%, 100% { opacity: 1; } }
@keyframes vm-away { 0%, 24% { opacity: 0; } 40% { opacity: 0.5; } 44%, 86% { opacity: 1; } 89%, 100% { opacity: 0; } }

.lab-token { opacity: 0; animation: lab-token-move var(--lab-cycle) linear infinite; }
.lab-token rect { fill: var(--accent); filter: drop-shadow(0 0 6px var(--accent)); }
.lab-token text { font-family: var(--mono); font-size: 12px; font-weight: 700; fill: var(--surface); }

.lab-pod-slot { fill: none; stroke: var(--border); stroke-width: 1.5; stroke-dasharray: 3 3; }
.lab-pod-mover { animation: lab-pod-move var(--lab-cycle) linear infinite; }
.lab-pod-mover .lab-pod { opacity: 1; filter: drop-shadow(0 0 5px var(--accent)); }

/* Each path is a faint track, plus one lit copy per direction that shows (with its label) only
   while that move is happening, its dashes flowing the way things travel. */
.lab-path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 4 8; opacity: 0.15; }
@keyframes flow-back { to { stroke-dashoffset: 12; } }
.lab-vm-path-out, .lab-vm-path-back, .lab-pod-path-out, .lab-pod-path-back { opacity: 0; }
.lab-vm-path-out { animation: vm-out var(--lab-cycle) linear infinite, flow 0.8s linear infinite; }
.lab-vm-path-back { animation: vm-back var(--lab-cycle) linear infinite, flow-back 0.8s linear infinite; }
.lab-pod-path-out { animation: pod-out var(--lab-cycle) linear infinite, flow 0.8s linear infinite; }
.lab-pod-path-back { animation: pod-back var(--lab-cycle) linear infinite, flow-back 0.8s linear infinite; }
.lab-vm-label-out, .lab-vm-label-back, .lab-pod-label-out, .lab-pod-label-back { fill: var(--accent); opacity: 0; }
.lab-vm-label-out { animation: vm-out var(--lab-cycle) linear infinite; }
.lab-vm-label-back { animation: vm-back var(--lab-cycle) linear infinite; }
.lab-pod-label-out { animation: pod-out var(--lab-cycle) linear infinite; }
.lab-pod-label-back { animation: pod-back var(--lab-cycle) linear infinite; }
@keyframes vm-out { 0%, 22% { opacity: 0; } 24%, 42% { opacity: 1; } 45%, 100% { opacity: 0; } }
@keyframes vm-back { 0%, 70% { opacity: 0; } 72%, 87% { opacity: 1; } 90%, 100% { opacity: 0; } }
@keyframes pod-out { 0%, 49% { opacity: 0; } 50%, 60% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes pod-back { 0%, 89% { opacity: 0; } 90%, 99% { opacity: 1; } 100% { opacity: 0; } }

/* Without motion: everything sits where it starts. */
@media (prefers-reduced-motion: reduce) {
  .lab-vm-away { opacity: 0; }
}

/* ---- Collapsible section (Experience) ------------------------------------------------------ */

.collapsible > summary {
  list-style: none;              /* hide the browser's default triangle */
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  cursor: pointer;
  padding: 1.25rem 1.6rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}
.collapsible > summary::-webkit-details-marker { display: none; }
.collapsible > summary:hover { border-color: var(--accent); }
.collapsible > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.collapsible > summary .section-title { margin: 0; }

.collapsible-hint { font-size: 0.95rem; flex-wrap: wrap; justify-content: flex-end; color: var(--muted); display: inline-flex; align-items: center; gap: 0.9rem; }
.collapsible-action {
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}
.collapsible-action::before { content: "Show all"; }
.collapsible-action::after {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15rem) rotate(45deg);
  transition: transform 0.2s;
}
.collapsible[open] .collapsible-action::before { content: "Hide"; }
.collapsible[open] .collapsible-action::after { transform: translateY(0.1rem) rotate(-135deg); }

/* Once open, the summary becomes a plain heading row above the timeline. */
.collapsible[open] > summary {
  background: none;
  border-color: transparent;
  box-shadow: none;
  padding-inline: 0;
  margin-bottom: 1rem;
}
.collapsible[open] > .collapsible-body { animation: reveal 0.25s ease-out; }
@keyframes reveal { from { opacity: 0; transform: translateY(-6px); } }

/* ---- Experience timeline ------------------------------------------------------------------- */

.timeline { list-style: none; margin: 0; padding: 0 0 0 2rem; position: relative; }
.timeline::before {
  content: "";
  position: absolute;
  left: 0.45rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 2px;
  background: linear-gradient(var(--accent), var(--border) 30%);
}

.job { position: relative; }
.job + .job { margin-top: 1.25rem; }
.job::before {
  content: "";
  position: absolute;
  left: -1.95rem;
  top: 1.7rem;
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--muted);
}
.job-current::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.job-current .card { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }

.job-head { display: flex; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.job h3 { font-size: 1.2rem; }
.job-company { margin: 0.2rem 0 0; color: var(--accent); font-weight: 500; }
.job-meta { margin: 0; text-align: right; font-size: 0.9rem; color: var(--muted); display: grid; }
.job-dates { font-family: var(--mono); font-size: 0.85rem; color: var(--text); }
.job-description { margin: 1rem 0 0; }

.job-highlights { margin: 0.75rem 0 0; padding-left: 1.1rem; }
.job-highlights li::marker { color: var(--accent); }

.badge {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.05rem 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  vertical-align: middle;
}

/* ---- Skills, certifications, education ---------------------------------------------------- */

.chips { display: flex; flex-wrap: wrap; gap: 0.6rem; list-style: none; margin: 0; padding: 0; }
.chip {
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
}
.skill-groups { display: grid; gap: 1rem; margin: 0; }
.skill-group { display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 0.5rem 1.25rem; align-items: center; }
.skill-group dt { font-size: 0.85rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.skill-group dd { margin: 0; }
.chip-quiet { background: var(--surface); color: var(--text); font-weight: 500; border: 1px solid var(--border); }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
}

.cert { display: flex; gap: 0.85rem; align-items: flex-start; font-weight: 500; }
.cert .badge { margin-left: 0.3rem; }
.badge-muted { color: var(--muted); background: transparent; border: 1px solid var(--border); }
.cert-expired { color: var(--muted); font-weight: 400; }
.cert-expired .cert-mark { background: transparent; border: 1px solid var(--border); color: var(--muted); }
.cert-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.9rem;
}

.collapsible-body > .grid:first-child { margin-top: 0; }
.course h3 { font-size: 1.05rem; margin: 0.35rem 0 0.4rem; }
.course p { margin: 0; }
.course-years { font-family: var(--mono); font-size: 0.85rem; color: var(--accent); }

/* ---- Footer ------------------------------------------------------------------------------------ */

.footer { background: var(--ink); color: var(--ink-text); padding-block: 3rem; }
.footer a { color: var(--accent-on-dark); }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 2rem; flex-wrap: wrap; }
.footer-cta { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 0.4rem; }
.footer p { margin: 0; }
.built-with { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; font-size: 0.85rem; max-width: 30rem; }
.built-with .muted { color: var(--ink-muted); margin-right: 0.2rem; }
.tag {
  font-family: var(--mono);
  font-size: 0.78rem;
  padding: 0.15rem 0.55rem;
  border-radius: 6px;
  border: 1px solid rgba(230, 238, 243, 0.18);
  color: var(--ink-muted);
}

/* ---- 404 ---------------------------------------------------------------------------------------- */

.not-found { min-height: 100vh; display: grid; align-items: center; }

/* ---- Small screens ----------------------------------------------------------------------------- */

@media (max-width: 720px) {
  .hero-body { grid-template-columns: 1fr; }
  .skill-group { grid-template-columns: 1fr; }
  .life { grid-template-columns: 1fr; }
  /* The drawing shrinks to about half size on a phone, so its labels need to be bigger. */
  .lab-text { font-size: 19px; }
  .lab-text-small { font-size: 15px; }
  .lab-pod-name { font-size: 11px; }
  .lab-card { padding-inline: 1rem; }
  /* Shrink the greeting so it stays on one line and can still be typed out: the hero is the screen
     width minus 2.5rem, and a mono character is about 0.6em wide (+2 characters for the cursor). */
  .greeting { font-size: min(1rem, (100vw - 2.5rem) / ((var(--chars) + 2) * 0.62)); }
  .hero-photo { width: min(11rem, 50vw); margin-top: 0; }
  .nav-links { display: none; }
  .nav-cv { margin-left: auto; }
  .stats { grid-template-columns: 1fr; }
  .stat { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
  .stat dd { margin: 0; font-size: 1.15rem; text-align: right; }
  .timeline { padding-left: 1.5rem; }
  .timeline::before { left: 0.3rem; }
  .job::before { left: -1.55rem; }
  .card { padding: 1.2rem 1.25rem; }
  .job-meta { text-align: left; }
  .collapsible-hint { justify-content: flex-start; gap: 0.25rem 0.9rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor { animation: none; }
  .btn { transition: none; }
  .greeting-text { animation: none; }
  .journey-now::before { animation: none; }
  .lab-art * { animation: none !important; }
  .lab-vm-label-out, .lab-vm-label-back, .lab-pod-label-out, .lab-pod-label-back { opacity: 0; }
  .collapsible[open] > .collapsible-body { animation: none; }
  .collapsible-action::after { transition: none; }
}
