/* ─────────────────────────────────────────────
   Tokens
   ───────────────────────────────────────────── */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --text: #15171a;
  --text-2: #3d4148;
  --muted: #7a7e85;
  --line: rgba(20, 22, 26, 0.09);
  --line-strong: rgba(20, 22, 26, 0.18);
  --accent: #e2531a;
  --accent-soft: rgba(226, 83, 26, 0.1);
  --chip: rgba(20, 22, 26, 0.045);
  --grid: rgba(20, 22, 26, 0.055);
  --shadow: 0 1px 2px rgba(20, 22, 26, 0.04), 0 8px 24px -12px rgba(20, 22, 26, 0.12);
  --spot: rgba(226, 83, 26, 0.05);

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0c0d;
    --surface: #121416;
    --text: #ecebe7;
    --text-2: #b9bbbe;
    --muted: #7d8187;
    --line: rgba(236, 235, 231, 0.08);
    --line-strong: rgba(236, 235, 231, 0.18);
    --accent: #ff7a3d;
    --accent-soft: rgba(255, 122, 61, 0.12);
    --chip: rgba(236, 235, 231, 0.06);
    --grid: rgba(236, 235, 231, 0.045);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
    --spot: rgba(255, 122, 61, 0.06);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b0c0d;
  --surface: #121416;
  --text: #ecebe7;
  --text-2: #b9bbbe;
  --muted: #7d8187;
  --line: rgba(236, 235, 231, 0.08);
  --line-strong: rgba(236, 235, 231, 0.18);
  --accent: #ff7a3d;
  --accent-soft: rgba(255, 122, 61, 0.12);
  --chip: rgba(236, 235, 231, 0.06);
  --grid: rgba(236, 235, 231, 0.045);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 12px 32px -16px rgba(0, 0, 0, 0.6);
  --spot: rgba(255, 122, 61, 0.06);
  color-scheme: dark;
}

/* ─────────────────────────────────────────────
   Base
   ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background-color: var(--bg);
  background-image: radial-gradient(var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}

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

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
em { font-style: normal; color: var(--text); font-weight: 500; }
strong { font-weight: 550; color: var(--text); }

.mono { font-family: var(--mono); font-feature-settings: "zero" 0, "calt" 0; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.print-only { display: none; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip {
  position: fixed; top: 12px; left: 12px; z-index: 50;
  padding: 8px 14px; border-radius: 8px;
  background: var(--text); color: var(--bg); font-size: 14px;
  transform: translateY(-200%); transition: transform 0.2s var(--ease);
}
.skip:focus { transform: none; }

/* Cursor spotlight (desktop only, set by JS) */
.spotlight {
  pointer-events: none; position: fixed; inset: 0; z-index: 0;
  background: radial-gradient(600px circle at var(--mx, -999px) var(--my, -999px), var(--spot), transparent 40%);
  transition: opacity 0.4s;
}

/* ─────────────────────────────────────────────
   Layout
   ───────────────────────────────────────────── */
.shell {
  position: relative; z-index: 1;
  max-width: 1200px; margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 64px);
}

@media (min-width: 1024px) {
  .shell { display: flex; gap: 64px; justify-content: space-between; }
  .panel {
    position: sticky; top: 0;
    display: flex; flex-direction: column; justify-content: space-between;
    width: 44%; max-height: 100vh; padding: 88px 0 56px;
  }
  .content { width: 54%; padding: 88px 0 48px; }
}

/* ─────────────────────────────────────────────
   Identity panel
   ───────────────────────────────────────────── */
.panel { padding-top: 64px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted);
}
.led {
  width: 7px; height: 7px; border-radius: 50%; background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
  animation: blink 2.8s ease-in-out infinite;
}
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

.name {
  margin-top: 18px;
  font-size: clamp(40px, 5.2vw, 56px);
  line-height: 1.02; letter-spacing: -0.035em; font-weight: 640;
}
.role { margin-top: 14px; font-size: 19px; font-weight: 500; color: var(--text); letter-spacing: -0.01em; }
.lede { margin-top: 16px; max-width: 30ch; font-size: 16px; color: var(--muted); line-height: 1.6; }

/* Oscilloscope trace */
.scope {
  margin: 36px 0 0; max-width: 360px;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 10px 0 8px;
}
.scope canvas { display: block; width: 100%; height: 48px; }
.scope figcaption {
  display: flex; gap: 14px; margin-top: 6px;
  font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase;
}
.scope figcaption span:first-child { color: var(--accent); }

/* Section nav */
.toc { display: none; margin-top: 40px; }
@media (min-width: 1024px) { .toc { display: block; } }
.toc a {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 9px 0; color: var(--muted);
  transition: color 0.25s var(--ease);
}
.toc .idx { font-size: 11px; width: 18px; }
.toc .bar {
  height: 1px; width: 32px; background: currentColor; opacity: 0.5;
  transition: width 0.35s var(--ease), opacity 0.35s var(--ease), background-color 0.25s;
}
.toc .lbl { font-size: 12.5px; font-weight: 550; letter-spacing: 0.08em; text-transform: uppercase; }
.toc a:hover, .toc a.active { color: var(--text); }
.toc a:hover .bar, .toc a.active .bar { width: 64px; opacity: 1; }
.toc a.active .bar { background: var(--accent); }

/* Panel bottom */
.panel-bottom { margin-top: 40px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 40px; padding: 0 16px; border-radius: 999px;
  font: 500 14px/1 var(--sans); cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s, box-shadow 0.25s;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--text); color: var(--bg); }
.btn-primary:hover { box-shadow: 0 6px 20px -8px var(--text); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--text); }
.copy.copied { color: var(--accent); border-color: var(--accent); }

.links { display: flex; align-items: center; gap: 22px; margin-top: 26px; font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; }
.links a { color: var(--muted); position: relative; transition: color 0.2s; }
.links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 0.3s var(--ease);
}
.links a:hover { color: var(--text); }
.links a:hover::after { transform: scaleX(1); transform-origin: left; }

.theme-toggle {
  display: grid; place-items: center; width: 32px; height: 32px; margin-left: -8px;
  border: 0; border-radius: 50%; background: transparent; color: var(--muted); cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.theme-toggle:hover { color: var(--text); background: var(--chip); }
.theme-toggle svg { width: 16px; height: 16px; grid-area: 1 / 1; transition: transform 0.5s var(--ease), opacity 0.3s; }
.i-moon { opacity: 0; transform: rotate(-90deg) scale(0.6); }
:root[data-theme="dark"] .i-sun { opacity: 0; transform: rotate(90deg) scale(0.6); }
:root[data-theme="dark"] .i-moon { opacity: 1; transform: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { opacity: 0; transform: rotate(90deg) scale(0.6); }
  :root:not([data-theme="light"]) .i-moon { opacity: 1; transform: none; }
}

/* ─────────────────────────────────────────────
   Sections
   ───────────────────────────────────────────── */
.content { padding-top: 72px; }
.section { scroll-margin-top: 48px; padding-bottom: 112px; }
@media (max-width: 1023px) { .section { padding-bottom: 88px; } }

.section-h {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 36px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text);
}
.section-h span { color: var(--accent); }
.section-h::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Mobile: sticky section label bar */
@media (max-width: 1023px) {
  .section-h {
    position: sticky; top: 0; z-index: 5;
    margin: 0 -20px 28px; padding: 16px 20px;
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  }
}

/* About */
.about { display: grid; gap: 32px; }
@media (min-width: 640px) { .about { grid-template-columns: 1fr 168px; align-items: start; } }
.prose p { color: var(--text-2); }
.prose p + p { margin-top: 18px; }

.portrait {
  margin: 0; width: 168px; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: var(--chip); box-shadow: var(--shadow); position: relative;
}
.portrait::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); }
.portrait img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.02); transition: filter 0.6s var(--ease), transform 0.8s var(--ease); }
.portrait:hover img { filter: none; transform: scale(1.03); }
@media (max-width: 639px) { .portrait { order: -1; width: 112px; } }

.facts {
  display: grid; grid-template-columns: repeat(2, 1fr);
  margin: 40px 0 0; border-top: 1px solid var(--line);
}
@media (min-width: 640px) and (max-width: 1023px), (min-width: 1280px) { .facts { grid-template-columns: repeat(4, 1fr); } }
.facts > div { padding: 16px 16px 0 0; }
.facts dt { font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 6px 0 0; font-size: 14px; font-weight: 500; line-height: 1.4; }

/* Experience timeline */
.timeline { display: flex; flex-direction: column; gap: 6px; }
.entry {
  position: relative; display: grid; gap: 6px 24px;
  padding: 22px 24px; margin: 0 -24px; border-radius: var(--radius);
  transition: background-color 0.3s var(--ease), box-shadow 0.3s var(--ease), opacity 0.3s var(--ease);
}
@media (min-width: 640px) { .entry { grid-template-columns: 112px 1fr; } }
@media (hover: hover) and (min-width: 1024px) {
  .timeline:hover .entry { opacity: 0.5; }
  .timeline .entry:hover { opacity: 1; background: var(--surface); box-shadow: var(--shadow); }
}
.when { font-size: 12px; color: var(--muted); padding-top: 4px; letter-spacing: 0.02em; white-space: nowrap; }
.what h3 { font-size: 16.5px; line-height: 1.4; }
.what .at { color: var(--muted); font-weight: 500; }
.entry:hover .what h3 { color: var(--text); }
.where { margin-top: 4px; font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; }
.what > ul:not(.tags) { margin-top: 12px; }
.what > ul:not(.tags) li {
  position: relative; padding-left: 18px; color: var(--text-2); font-size: 15px; line-height: 1.6;
}
.what > ul:not(.tags) li + li { margin-top: 6px; }
.what > ul:not(.tags) li::before {
  content: ""; position: absolute; left: 0; top: 0.8em; width: 8px; height: 1px; background: var(--line-strong);
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tags li {
  padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent);
  font-size: 11.5px; line-height: 1.5; letter-spacing: 0.01em;
}

/* Projects */
.project h3 { font-size: 19px; line-height: 1.3; }
.project p:not(.kicker) { color: var(--text-2); font-size: 15px; }
.project p + p { margin-top: 12px; }
.kicker { margin-bottom: 10px; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.feature {
  border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  background: var(--surface); box-shadow: var(--shadow); overflow: hidden;
}
.feature h3 { margin-bottom: 12px; font-size: 22px; }
.project-media { position: relative; background: #f3f3f1; border-bottom: 1px solid var(--line); }
.media-swap { display: grid; aspect-ratio: 16 / 10; overflow: hidden; }
.media-swap img {
  grid-area: 1 / 1; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02); transition: opacity 0.6s var(--ease), transform 1.2s var(--ease);
}
.media-swap img:nth-child(2) { object-fit: contain; background: #4d4f5d; }
.media-swap img.is-on { opacity: 1; transform: none; }
.feature:hover .media-swap img.is-on:first-child { transform: scale(1.025); }

.swap-ctrl {
  position: absolute; left: 16px; bottom: 16px; display: flex; gap: 2px; padding: 3px;
  border-radius: 999px; background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08), inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.swap-ctrl button {
  border: 0; background: transparent; cursor: pointer; color: #5c6066;
  padding: 6px 12px; border-radius: 999px; font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase;
  transition: background-color 0.25s, color 0.25s;
}
.swap-ctrl button[aria-selected="true"] { background: #15171a; color: #fff; }

.project-body { padding: 28px; }
@media (max-width: 639px) { .project-body { padding: 22px; } }

.spec {
  display: grid; grid-template-columns: 1fr; margin: 24px 0 0;
  border-top: 1px solid var(--line); font-size: 12px;
}
.spec > div { display: flex; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec dt { width: 80px; flex: none; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-size: 10.5px; padding-top: 1px; }
.spec dd { margin: 0; color: var(--text); }

.project-grid { display: grid; gap: 20px; margin-top: 20px; }
@media (min-width: 640px) { .project-grid { grid-template-columns: 1fr 1fr; } }
.card {
  display: flex; flex-direction: column;
  padding: 14px 14px 22px; border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px);
  background: var(--surface);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.card > :not(.card-media) { margin-left: 8px; margin-right: 8px; }
.card h3 { font-size: 17px; margin-bottom: 8px; }
.card .tags { margin-top: auto; padding-top: 16px; }
.card-media {
  margin: 0 0 18px; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden;
  background: var(--chip); position: relative;
}
.card-media::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px var(--line); pointer-events: none; }
.card-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; transition: transform 0.8s var(--ease); }
.card:hover .card-media img { transform: scale(1.04); }

.card-diagram { display: grid; place-items: center; background: var(--bg); }
.diagram { width: 92%; height: auto; overflow: visible; }
.d-line path { fill: none; stroke: var(--line-strong); stroke-width: 1.2; stroke-dasharray: 3 4; }
.d-box rect { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.2; }
.d-box rect:nth-child(2) { stroke: var(--accent); }
.d-txt text { font: 500 10px var(--mono); fill: var(--muted); text-anchor: middle; letter-spacing: 0.08em; }
.d-txt text:nth-child(2) { fill: var(--accent); }
.d-pulse { fill: var(--accent); }

/* Education */
.edu { border-top: 1px solid var(--line); }
.edu li { display: grid; gap: 4px 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 640px) { .edu li { grid-template-columns: 112px 1fr; } }
.edu h3 { font-size: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.edu .muted { margin-top: 4px; font-size: 14.5px; }
.grade { font-size: 11.5px; font-weight: 500; color: var(--accent); letter-spacing: 0.02em; }

/* Skills */
.skills { display: grid; gap: 0 32px; border-top: 1px solid var(--line); }
@media (min-width: 640px) { .skills { grid-template-columns: 1fr 1fr; } }
.skill-group { padding: 18px 0; border-bottom: 1px solid var(--line); }
.skill-group h3 { font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.skill-group p { margin-top: 6px; font-size: 14.5px; color: var(--text-2); line-height: 1.6; }

/* Contact */
.contact { padding-top: 24px; }
.contact-h { font-size: clamp(30px, 4vw, 40px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 620; }
.contact .muted { margin-top: 16px; max-width: 46ch; }
.contact-mail {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 28px;
  font-size: clamp(17px, 2.4vw, 21px); font-weight: 500; letter-spacing: -0.01em;
  padding-bottom: 4px; border-bottom: 1px solid var(--line-strong);
  transition: border-color 0.3s, color 0.3s;
}
.contact-mail span { display: inline-block; transition: transform 0.35s var(--ease); color: var(--accent); }
.contact-mail:hover { border-color: var(--accent); }
.contact-mail:hover span { transform: translateX(5px); }

.footer {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
  padding: 28px 0 8px; border-top: 1px solid var(--line);
  font-size: 11px; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase;
}

/* ─────────────────────────────────────────────
   Reveal on scroll
   ───────────────────────────────────────────── */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .panel-top > * { animation: rise 0.9s var(--ease) both; }
.js .panel-top > *:nth-child(2) { animation-delay: 0.06s; }
.js .panel-top > *:nth-child(3) { animation-delay: 0.12s; }
.js .panel-top > *:nth-child(4) { animation-delay: 0.18s; }
.js .panel-top > *:nth-child(5) { animation-delay: 0.26s; }
.js .panel-top > *:nth-child(6) { animation-delay: 0.34s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
  .d-pulse { display: none; }
}

/* ─────────────────────────────────────────────
   Print — the page doubles as a clean CV
   ───────────────────────────────────────────── */
@media print {
  @page { size: A4; margin: 14mm 14mm 12mm; }
  :root, :root[data-theme="dark"] {
    --bg: #fff; --surface: #fff; --text: #111; --text-2: #333; --muted: #666;
    --line: #ddd; --line-strong: #bbb; --accent: #c2410c; --accent-soft: transparent; --chip: transparent;
    color-scheme: light;
  }
  html { font-size: 10pt; }
  body { background: #fff; font-size: 9.6pt; line-height: 1.45; }
  .spotlight, .skip, .scope, .toc, .panel-bottom, .contact, .footer,
  .project-media, .card-media, .portrait, .facts { display: none !important; }
  .print-only { display: block !important; margin-top: 5pt; font-size: 8.5pt; color: #333; }
  .shell { display: block; max-width: none; padding: 0; }
  .panel { position: static; display: block; width: auto; max-height: none; padding: 0 0 10pt; border-bottom: 1px solid #ddd; }
  .name { font-size: 24pt; margin-top: 4pt; }
  .role { font-size: 12pt; margin-top: 2pt; }
  .lede { max-width: none; margin-top: 4pt; font-size: 9.6pt; }
  .eyebrow { font-size: 8pt; } .led { display: none; }
  .content { width: auto; padding: 0; }
  .section { padding-bottom: 4pt; break-inside: auto; }
  .section-h { position: static; margin: 10pt 0 4pt; padding: 0; background: none; backdrop-filter: none; font-size: 8.5pt; }
  .prose p + p { margin-top: 5pt; }
  .entry { margin: 0; padding: 4pt 0; break-inside: avoid; grid-template-columns: 70pt 1fr; }
  .what h3 { font-size: 10.5pt; }
  .what > ul:not(.tags) { margin-top: 3pt; }
  .what > ul:not(.tags) li { font-size: 9.2pt; }
  .what > ul:not(.tags) li + li { margin-top: 1pt; }
  .tags { display: none; }
  .about { display: block; }
  .prose p { font-size: 9.2pt; line-height: 1.45; }
  .prose p + p { margin-top: 4pt; }
  .prose p:last-child { display: none; }
  .section-h { break-after: avoid; }
  .what > ul:not(.tags) li, .project p:not(.kicker), .skill-group p, .edu .muted { line-height: 1.4; }
  .lede { display: none; }
  .feature, .card { border: 0; box-shadow: none; overflow: visible; background: none; transform: none !important; }
  .project p:not(.kicker) { font-size: 9.2pt; }
  .project p + p { margin-top: 3pt; }
  .card { margin-top: 7pt; break-inside: avoid; }
  .project-body { padding: 0; }
  .feature h3 { font-size: 11pt; margin-bottom: 3pt; }
  .feature p:not(.kicker) { font-size: 9.2pt; }
  .spec { display: none; }
  .project-grid { display: block; margin-top: 6pt; }
  .card { padding: 0; }
  .card > :not(.card-media) { margin: 0; }
  .card h3 { font-size: 10.5pt; margin-bottom: 2pt; }
  .kicker { margin-bottom: 2pt; font-size: 7.5pt; }
  .edu li { padding: 5pt 0; grid-template-columns: 70pt 1fr; break-inside: avoid; }
  .edu h3 { font-size: 10pt; } .edu .muted { font-size: 9pt; margin-top: 0; }
  .skills { grid-template-columns: 1fr 1fr; gap: 0 18pt; }
  .skill-group { padding: 5pt 0; break-inside: avoid; }
  .skill-group p { font-size: 9pt; margin-top: 1pt; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .panel-top > * { animation: none; }
  a { color: inherit; }
}
