/* =========================================================
   Portfolio · Camila Términe
   Dirección: archivo / catálogo con la paleta "Cozy Night Studio"
   del modo exploración: noche índigo, crema, ámbar y ciruela.
   ========================================================= */

/* ============ Tokens ============ */
:root {
  --paper: #f6efe4;
  --paper-alt: #efe4d3;
  --card: #fffaf2;
  --ink: #2a2140;
  --ink-soft: #5a4a7a;
  --rule: #dccbb4;
  --accent: #84486b;
  --accent-ink: #fffaf2;
  --hatch: #c4a98a;
  --bug: #b3352d;
  --feature: #3f55c0;
  --positive: #3f6b47;
  --other: #6f6180;
  --font-display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
  --font-body: 'Newsreader', Georgia, serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --container: 1160px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #1a1423; --paper-alt: #211a30; --card: #2a2140;
    --ink: #f2e8d8; --ink-soft: #b9a9c9; --rule: #3b2f5c;
    --accent: #f0b64a; --accent-ink: #1a1423; --hatch: #5a4a7a;
    --bug: #ff8f8f; --feature: #8ea3ff; --positive: #8fbf8a; --other: #a99bbd;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #1a1423; --paper-alt: #211a30; --card: #2a2140;
  --ink: #f2e8d8; --ink-soft: #b9a9c9; --rule: #3b2f5c;
  --accent: #f0b64a; --accent-ink: #1a1423; --hatch: #5a4a7a;
  --bug: #ff8f8f; --feature: #8ea3ff; --positive: #8fbf8a; --other: #a99bbd;
  color-scheme: dark;
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.125rem/1.62 var(--font-body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 650; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(2rem, 4.4vw, 3rem); font-stretch: 85%; letter-spacing: -.02em; }
h3 { font-size: 1.375rem; }
p { margin: 0 0 1em; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
strong { font-weight: 600; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--font-mono); }
.container { width: min(var(--container), 100% - 32px); margin-inline: auto; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--accent); color: var(--accent-ink); padding: 10px 16px;
  font: 600 1rem var(--font-display); text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ============ Botones ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 20px; border: 1px solid transparent; border-radius: 4px;
  font: 600 1rem/1.2 var(--font-display); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-small { padding: 8px 14px; font-size: .9375rem; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 10px;
  background: transparent; color: var(--ink); border: 1px solid var(--rule); border-radius: 4px;
  cursor: pointer; font: 600 .875rem var(--font-display);
}
.icon-btn:hover { border-color: var(--ink); }

/* ============ Nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px max(16px, calc((100% - var(--container)) / 2));
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
}
.wordmark {
  font: 700 1.125rem var(--font-display); font-stretch: 80%;
  text-decoration: none; margin-right: auto; white-space: nowrap;
}
.nav-links { display: flex; gap: 22px; }
.nav-links a { font: 500 1rem var(--font-display); text-decoration: none; color: var(--ink-soft); }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a.active { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.nav-links a.nav-room { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.lang-sep { margin: 0 3px; opacity: .4; }
html[lang="es"] .lang-en, html[lang="en"] .lang-es { opacity: .4; }

.icon-moon { display: none; }
:root[data-theme="dark"] .icon-sun { display: none; }
:root[data-theme="dark"] .icon-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: none; }
  :root:not([data-theme="light"]) .icon-moon { display: block; }
}

.menu-btn { display: none; flex-direction: column; gap: 4px; }
.menu-btn span { display: block; width: 16px; height: 2px; background: currentColor; }

/* ============ Hero ============ */
.hero { padding: clamp(48px, 9vw, 112px) 0 clamp(56px, 8vw, 96px); }
.hero-name {
  font-size: clamp(4rem, 19vw, 12.5rem);
  font-weight: 750; font-stretch: 75%;
  line-height: .84; letter-spacing: -.035em;
  margin: 0 0 28px -.04em;
}
.hero-name span { display: block; }
.hero-role {
  font: 600 clamp(1.25rem, 2.4vw, 1.75rem)/1.25 var(--font-display);
  font-stretch: 90%; margin-bottom: 16px; max-width: 32ch;
}
.hero-lead { max-width: 62ch; font-size: 1.25rem; line-height: 1.55; color: var(--ink-soft); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(320px, .9fr);
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero-grid .hero-name { font-size: clamp(4rem, 11.5vw, 10rem); }

/* ============ Tic-Tac-Fade jugable ============ */
.game {
  background: var(--card); border: 1px solid var(--rule); border-radius: 8px;
  padding: clamp(18px, 2.4vw, 26px);
}
.game-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 8px; }
.game-title { font-size: 1.375rem; font-stretch: 85%; letter-spacing: -.01em; }
.game-modes { display: flex; border: 1px solid var(--rule); border-radius: 4px; overflow: hidden; }
.game-mode {
  padding: 6px 10px; border: 0; background: transparent; cursor: pointer;
  font: 600 .8125rem var(--font-display); color: var(--ink-soft);
}
.game-mode + .game-mode { border-left: 1px solid var(--rule); }
.game-mode[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.game-rule { font-size: 1rem; line-height: 1.45; color: var(--ink-soft); margin-bottom: 16px; }

.board {
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); gap: 8px;
  width: 100%; aspect-ratio: 1; max-width: 360px; margin-inline: auto;
}
.cell {
  /* min-*: 0 para que la ficha no agrande su fila al aparecer */
  position: relative; display: grid; place-items: center; min-width: 0; min-height: 0;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 4px;
  cursor: pointer; padding: 0;
  /* Un toque = una jugada: sin zoom por doble toque ni demora en mobile */
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
}
.cell:hover:not(:disabled) { border-color: var(--ink); }
.cell:disabled { cursor: default; }
.cell svg { width: 58%; height: 58%; overflow: visible; }
.cell[data-p="X"] { color: var(--ink); }
.cell[data-p="O"] { color: var(--accent); }
.cell .mark { stroke: currentColor; stroke-width: 11; stroke-linecap: round; fill: none; }
.cell.placed .mark { animation: stamp .22s ease-out; }
/* La ficha que se va a desvanecer en la próxima jugada de su dueño */
.cell.fading .mark { opacity: .32; }
.cell.fading { border-style: dashed; border-color: currentColor; }
.cell.win { background: color-mix(in srgb, currentColor 14%, var(--paper)); border-color: currentColor; }
@keyframes stamp { from { transform: scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cell.placed .mark { animation: none; } }

.game-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.game-status { margin: 0; font: 600 1rem/1.3 var(--font-display); }

/* Línea de carrera: cada tramo ocupa el ancho proporcional a su duración */
.career { margin: clamp(56px, 8vw, 88px) 0 0; }
.career-caption { max-width: 56ch; margin-bottom: 18px; font-style: italic; }
.career-rail {
  position: relative; height: 56px;
  border-bottom: 1px solid var(--ink);
}
.career-seg {
  position: absolute; height: 18px;
  left: var(--l); width: var(--w); top: var(--top);
  transform-origin: left center;
  animation: draw .9s cubic-bezier(.2, .7, .2, 1) both;
  animation-delay: var(--delay);
}
.career-seg[data-kind="archive"] {
  background: repeating-linear-gradient(-45deg, var(--hatch) 0 2px, transparent 2px 6px);
  border: 1px solid var(--hatch);
}
.career-seg[data-kind="backend"] { background: var(--ink); }
.career-seg[data-kind="games"] { background: var(--accent); }
.career-tick {
  position: absolute; bottom: -26px; left: var(--l);
  transform: translateX(-50%);
  font: 500 .8125rem var(--font-display); color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.career-tick::before {
  content: ''; position: absolute; left: 50%; top: -8px; height: 7px; width: 1px; background: var(--ink);
}
.career-tick:last-child { transform: translateX(-100%); }
.career-tick:last-child::before { left: 100%; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .career-seg { animation: none; } }

.career-notes {
  list-style: none; padding: 0; margin: 48px 0 0;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 24px 32px;
}
.career-notes li { display: grid; grid-template-columns: 18px 1fr; gap: 0 12px; }
.note-key { width: 18px; height: 18px; margin-top: 4px; }
.note-key[data-kind="archive"] { background: repeating-linear-gradient(-45deg, var(--hatch) 0 2px, transparent 2px 6px); border: 1px solid var(--hatch); }
.note-key[data-kind="backend"] { background: var(--ink); }
.note-key[data-kind="games"] { background: var(--accent); }
.note-when { font: 500 .9375rem var(--font-display); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.note-what { font: 650 1.125rem/1.3 var(--font-display); margin: 2px 0 6px; }
.note-fact { grid-column: 2; margin: 0; font-size: 1.0625rem; }

/* ============ Secciones ============ */
.section { padding: clamp(72px, 10vw, 120px) 0; border-top: 1px solid var(--rule); }
.section-alt { background: var(--paper-alt); }
.section-head { margin-bottom: clamp(36px, 5vw, 56px); max-width: 720px; }
.section-head h2 { margin-bottom: 14px; }
.section-lead { color: var(--ink-soft); font-size: 1.25rem; max-width: 60ch; margin: 0; }

.stack { font: 500 .9375rem/1.5 var(--font-display); color: var(--ink-soft); margin: 18px 0 20px; }
.points { padding-left: 1.1em; margin: 0 0 4px; }
.points li { margin-bottom: 8px; }
.points li::marker { color: var(--accent); }

/* ============ GenAI: proyectos con demo ============ */
.feature {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 56px);
  align-items: start; padding-bottom: clamp(48px, 6vw, 72px); margin-bottom: clamp(48px, 6vw, 72px);
  border-bottom: 1px solid var(--rule);
}
.feature h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-stretch: 85%; }
.feature-sub { font: 500 1.0625rem/1.35 var(--font-display); color: var(--accent); margin: 8px 0 18px; }

.demo, .log {
  background: var(--card); border: 1px solid var(--rule); border-radius: 8px;
  padding: clamp(18px, 3vw, 28px);
}
.demo-endpoint { font-size: .875rem; color: var(--ink-soft); margin-bottom: 18px; }
.demo-chart { display: grid; gap: 10px; margin-bottom: 24px; }
.bar-row {
  display: grid; grid-template-columns: 9.5em 1fr 3.5em; align-items: center; gap: 12px;
  font: 500 .8125rem var(--font-mono);
}
.bar-track { height: 10px; background: var(--paper-alt); }
.bar-fill { display: block; height: 100%; width: var(--w); background: var(--c); }
.bar-value { text-align: right; font-variant-numeric: tabular-nums; }
.demo-review { border-top: 1px dashed var(--rule); padding-top: 18px; min-height: 9.5em; }
.demo-meta { font: 500 .875rem var(--font-display); color: var(--ink-soft); margin-bottom: 6px; }
.demo-text { font-size: 1.125rem; font-style: italic; margin-bottom: 12px; }
.demo-result { font: 500 .875rem var(--font-display); }
.cat {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 3px;
  font: 500 .8125rem var(--font-mono); color: var(--card); background: var(--c);
}
.thinking { color: var(--ink-soft); }
.thinking::after { content: '…'; display: inline-block; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* Demo de Salas de Estudio: salas a la izquierda, chat a la derecha */
.rag-window {
  display: grid; grid-template-columns: 11em minmax(0, 1fr);
  border: 1px solid var(--rule); border-radius: 6px; margin-bottom: 18px; overflow: hidden;
}
.rag-rooms { list-style: none; margin: 0; padding: 8px; background: var(--paper-alt); }
.rag-rooms li { padding: 8px 10px; border-radius: 4px; font: 500 .8125rem/1.3 var(--font-display); color: var(--ink-soft); }
.rag-rooms li[aria-current] { background: var(--card); color: var(--ink); box-shadow: inset 3px 0 var(--accent); }
.rag-rooms small { display: block; font: .6875rem var(--font-mono); opacity: .8; margin-top: 2px; }
.rag-chat { padding: 16px; min-height: 23em; display: flex; flex-direction: column; gap: 10px; }
.rag-q {
  align-self: flex-end; max-width: 88%; margin: 0; padding: 8px 12px; border-radius: 10px 10px 2px 10px;
  background: var(--accent); color: var(--accent-ink); font: 500 .9375rem/1.4 var(--font-display);
}
.rag-q:empty, .rag-status:empty, .rag-a:empty, .rag-src:empty { display: none; }
.rag-q.typing::after { content: '▍'; animation: blink 1s steps(2) infinite; }
.rag-status { margin: 0; font: 500 .8125rem var(--font-mono); color: var(--ink-soft); }
.rag-a { margin: 0; font-size: 1rem; line-height: 1.55; }
.cite {
  display: inline-block; padding: 0 4px; margin: 0 1px; border-radius: 3px; vertical-align: 1px;
  font: 600 .6875rem/1.5 var(--font-mono); color: var(--accent-ink); background: var(--accent);
}
.rag-src {
  list-style: none; margin: 4px 0 0; padding: 10px 0 0; border-top: 1px dashed var(--rule);
  display: grid; gap: 4px; font: .75rem var(--font-mono); color: var(--ink-soft);
}
.rag-src .cite { margin: 0 6px 0 0; }
.rag-src.swap { animation: swap .25s ease-out; }
@media (prefers-reduced-motion: reduce) { .rag-src.swap { animation: none; } }

/* Bitácora de Tic-Tac-Fade */
.log-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; margin-bottom: 18px; border-bottom: 1px solid var(--rule);
}
.log-file { font-size: .875rem; }
.log-nav { display: flex; align-items: center; gap: 8px; }
.log-nav .icon-btn { min-width: 34px; height: 34px; padding: 0; }
.log-count { font: 500 .875rem var(--font-display); color: var(--ink-soft); min-width: 7ch; text-align: center; font-variant-numeric: tabular-nums; }
.log-title { font-size: 1.1875rem; margin-bottom: 4px; }
.log-date { font: 500 .875rem var(--font-display); color: var(--ink-soft); margin-bottom: 16px; }
.log-fields { margin: 0; }
.log-fields dt { font: 650 .9375rem var(--font-display); color: var(--accent); }
.log-fields dd { margin: 2px 0 14px; font-size: 1.0625rem; line-height: 1.55; }
.log-fields dd:last-child { margin-bottom: 0; }
.log-body.swap { animation: swap .25s ease-out; }
@keyframes swap { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .log-body.swap { animation: none; } }

.ai-more { max-width: 720px; }
.ai-more h3 { margin-bottom: 10px; }
.ai-more p { margin: 0; color: var(--ink-soft); }

/* ============ Experiencia ============ */
.jobs { list-style: none; padding: 0; margin: 0; }
.job {
  display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 8px 48px;
  padding: 36px 0; border-top: 1px solid var(--rule);
}
.job:first-child { border-top: 0; padding-top: 0; }
.job-when { font: 500 1rem/1.4 var(--font-display); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.job-where { display: block; }
.job-role { font-size: 1.5rem; }
.job-company { font: 600 1.0625rem var(--font-display); color: var(--accent); margin: 6px 0 12px; }
.job-context { color: var(--ink-soft); max-width: 68ch; }
.job ul { padding-left: 1.1em; margin: 0; max-width: 72ch; }
.job li { margin-bottom: 8px; }
.job li::marker { color: var(--accent); }
.job .stack { margin-bottom: 0; }

/* ============ Catálogo de proyectos ============ */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: -1px; position: relative; z-index: 1; }
.tab {
  padding: 9px 16px 10px; cursor: pointer;
  font: 600 .9375rem var(--font-display); color: var(--ink-soft);
  background: var(--paper-alt); border: 1px solid var(--rule); border-bottom-color: var(--ink);
  border-radius: 6px 6px 0 0;
}
.tab:hover { color: var(--ink); }
.tab[aria-pressed="true"] { background: var(--paper); color: var(--ink); border-color: var(--ink); border-bottom-color: var(--paper); }
.catalog {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px 24px;
  padding-top: 40px; border-top: 1px solid var(--ink);
}
.entry {
  position: relative; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--rule); border-radius: 2px 8px 8px 8px;
  padding: 22px 22px 20px;
}
.entry[hidden] { display: none; }
/* Pestaña de ficha: muestra el área, que es también el filtro */
.entry-tab {
  position: absolute; left: -1px; top: -26px; height: 26px; padding: 4px 12px 0;
  font: 600 .8125rem var(--font-display); color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--rule); border-bottom: 0; border-radius: 6px 6px 0 0;
}
.entry-media { margin: -22px -22px 18px; position: relative; background: var(--ink); border-radius: 0 8px 0 0; overflow: hidden; }
.entry-media video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; cursor: pointer; }
.media-toggle {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px; border-radius: 4px;
  border: 0; background: color-mix(in srgb, #000 60%, transparent); color: #fff; cursor: pointer; font-size: .8rem;
}
.entry-origin { font: 500 .875rem var(--font-display); color: var(--ink-soft); margin-bottom: 6px; }
.entry h3 { font-size: 1.3125rem; margin-bottom: 10px; }
.entry p { font-size: 1.0625rem; line-height: 1.55; }
.entry .stack { margin: auto 0 14px; padding-top: 6px; }
.entry-links { display: flex; flex-wrap: wrap; gap: 16px; font: 600 .9375rem var(--font-display); }
.entry-links a { color: var(--accent); }

/* ============ Sobre mí ============ */
.about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.about-text p { max-width: 64ch; }
.about-card { background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 24px; }
.about-card img { width: 120px; height: 120px; object-fit: cover; border-radius: 4px; margin-bottom: 20px; }
.facts { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 10px 18px; }
.facts dt { font: 500 .9375rem var(--font-display); color: var(--ink-soft); }
.facts dd { margin: 0; font-size: 1.0625rem; line-height: 1.4; }

.about-cols { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); margin-top: clamp(56px, 7vw, 88px); }
.about-cols h3 { font-size: 1.5rem; margin-bottom: 18px; }
.skills { margin: 0; display: grid; grid-template-columns: 11em 1fr; gap: 0; }
.skills dt, .skills dd { padding: 12px 0; border-top: 1px solid var(--rule); }
.skills dt { font: 600 1rem/1.5 var(--font-display); padding-right: 16px; }
.skills dd { margin: 0; font-size: 1.0625rem; line-height: 1.5; }
.edu { list-style: none; padding: 0; margin: 0; }
.edu li { padding: 12px 0; border-top: 1px solid var(--rule); }
.edu strong { display: block; font: 600 1.0625rem/1.35 var(--font-display); }
.edu span { display: block; color: var(--ink-soft); font-size: 1rem; }

/* ============ Contacto ============ */
.contact h2 { font-size: clamp(2.5rem, 7vw, 5rem); font-stretch: 78%; margin-bottom: 16px; }
.contact-email { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin: 36px 0 28px; }
.email-link {
  font: 650 clamp(1.375rem, 4vw, 2.5rem)/1.1 var(--font-display); font-stretch: 85%;
  color: var(--accent); overflow-wrap: anywhere;
}
.copied { font: 500 .9375rem var(--font-display); color: var(--positive); }
.socials { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px 28px; font: 600 1.0625rem var(--font-display); }

.footer { border-top: 1px solid var(--rule); padding: 28px 0; color: var(--ink-soft); font-size: 1rem; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer p { margin: 0; }

/* ============ Responsive ============ */
@media (max-width: 1020px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--paper); border-bottom: 1px solid var(--rule);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; font-size: 1.125rem; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 860px) {
  .feature, .about, .about-cols, .hero-grid { grid-template-columns: 1fr; }
  .hero-grid .hero-name { font-size: clamp(4rem, 19vw, 10rem); }
  .job { grid-template-columns: 1fr; }
  .career-notes { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1.0625rem; }
  .nav { gap: 12px; }
  .nav-cv { display: none; }
  .career-tick[data-minor] { display: none; }
  .skills { grid-template-columns: 1fr; }
  .skills dd { border-top: 0; padding-top: 0; }
  .bar-row { grid-template-columns: auto 1fr 3em; gap: 8px; font-size: .6875rem; }
  .rag-window { grid-template-columns: 1fr; }
  .rag-rooms { display: flex; gap: 4px; overflow-x: auto; }
  .rag-rooms li { white-space: nowrap; }
  .rag-rooms small { display: none; }
  .catalog { grid-template-columns: 1fr; }
}
.edu a { display: inline-block; margin-top: 2px; font: 600 .9375rem var(--font-display); color: var(--accent); }
