:root {
  --bg: oklch(0.105 0 0);
  --surface: oklch(0.155 0.012 110);
  --surface-high: oklch(0.205 0.018 110);
  --ink: oklch(0.965 0.008 110);
  --muted: oklch(0.735 0.025 110);
  --primary: oklch(0.79 0.155 110);
  --primary-soft: oklch(0.79 0.155 110 / 0.12);
  --accent: oklch(0.52 0.18 252);
  --accent-soft: oklch(0.52 0.18 252 / 0.16);
  --line: oklch(0.34 0.025 110);
  --line-soft: oklch(0.34 0.025 110 / 0.48);
  --danger: oklch(0.68 0.2 30);
  --display: "Barlow Condensed", sans-serif;
  --body: "Atkinson Hyperlegible", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --container: 1200px;
  --header-height: 78px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 87% 9%, oklch(0.52 0.18 252 / 0.15), transparent 27rem),
    radial-gradient(circle at 12% 2%, oklch(0.79 0.155 110 / 0.08), transparent 24rem);
}

a { color: inherit; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }

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

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 14px;
  z-index: 20;
  padding: 10px 16px;
  background: var(--primary);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-150%);
  transition: transform 180ms var(--ease);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 12px max(24px, calc((100vw - var(--container)) / 2));
  background: oklch(0.105 0 0 / 0.88);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-transform: uppercase;
}

.brand svg { width: 32px; height: 32px; fill: var(--primary); }

.site-header nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 38px); }

.site-header nav a,
.header-contact {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 180ms ease;
}

.site-header nav a:hover { color: var(--ink); }

.header-contact {
  gap: 8px;
  color: var(--ink);
  border-bottom: 1px solid var(--primary);
}

.section-shell,
.hero,
.site-footer {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.hero {
  min-height: calc(100svh - var(--header-height));
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
  padding-block: clamp(70px, 10vw, 130px);
}

.hero-copy { min-width: 0; }

.availability,
.contact-status {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.availability span,
.contact-status span,
.console-head b i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 18px var(--primary);
}

.hero h1 {
  margin: 24px 0 0;
  max-width: 760px;
  font-family: var(--display);
  font-size: clamp(3.5rem, 6.5vw, 4.6rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.88;
  text-transform: uppercase;
  text-wrap: balance;
}

.hero h1 strong { color: var(--primary); font-weight: 700; }

.hero-role {
  margin: 32px 0 0;
  max-width: 700px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  text-wrap: balance;
}

.hero-role span { color: var(--accent); padding-inline: 5px; }

.hero-summary {
  max-width: 64ch;
  margin: 23px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  text-wrap: pretty;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms var(--ease), background 180ms ease, border-color 180ms ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--accent); color: white; }
.button-secondary { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.button-secondary:hover { border-color: var(--primary); background: var(--primary-soft); }

.contact-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
}

.contact-strip a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.contact-strip a:hover { color: var(--primary); }

.signal-console {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 8px 0 oklch(0.05 0 0 / 0.8);
}

.signal-console::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -80px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: var(--primary-soft);
  filter: blur(48px);
  pointer-events: none;
}

.console-head,
.console-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.console-head > span { color: var(--muted); text-transform: uppercase; }
.console-head b { display: flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 400; }
.console-head b i { width: 6px; height: 6px; }

.signal-path { width: 100%; height: 378px; overflow: visible; }
.path-base { fill: none; stroke: var(--line); stroke-width: 2; }
.path-active { fill: none; stroke: var(--primary); stroke-width: 3; stroke-dasharray: 0.24 0.76; stroke-linecap: round; opacity: 0.8; }
.pulse-dot { fill: var(--ink); filter: drop-shadow(0 0 8px var(--primary)); }
.event-node circle { fill: var(--surface); stroke: var(--primary); stroke-width: 3; }
.event-node text { fill: var(--ink); font: 700 14px var(--mono); text-anchor: middle; }
.event-node .parameter { fill: var(--muted); font-size: 11px; font-weight: 400; }
.event-node.verified circle { stroke: var(--accent); fill: var(--accent); }
.event-node.verified .parameter { fill: oklch(0.78 0.12 252); }

.console-foot {
  position: absolute;
  inset: auto 0 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 0;
  background: oklch(0.13 0.008 110);
}

.console-foot div { display: grid; gap: 3px; }
.console-foot span { color: var(--muted); font-size: 0.62rem; text-transform: uppercase; }
.console-foot strong { font-weight: 400; }
.console-foot .status-ok { color: var(--primary); }

.section-shell { padding-block: clamp(90px, 12vw, 150px); }

.section-heading { max-width: 780px; }
.section-heading > p,
.project-index {
  margin: 0 0 14px;
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.77rem;
}

.section-heading h2,
.contact h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2.35rem, 4.5vw, 3.8rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
  text-transform: uppercase;
  text-wrap: balance;
}

.profile {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 50px clamp(48px, 9vw, 120px);
  border-top: 1px solid var(--line-soft);
}

.profile-copy { max-width: 72ch; }
.profile-copy p { margin: 0 0 22px; color: var(--muted); font-size: 1.08rem; text-wrap: pretty; }
.profile-copy p:first-child { color: var(--ink); font-size: 1.25rem; }

.profile-principles {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  color: var(--muted);
  font-family: var(--display);
  font-size: clamp(1.2rem, 2.1vw, 1.75rem);
  font-weight: 600;
  text-transform: uppercase;
}

.profile-principles i { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

.experience { border-top: 1px solid var(--line-soft); }
.timeline { margin-top: clamp(50px, 8vw, 90px); }

.job {
  display: grid;
  grid-template-columns: minmax(210px, 0.38fr) minmax(0, 1fr);
  gap: 30px clamp(40px, 8vw, 100px);
  padding-block: clamp(42px, 6vw, 72px);
  border-top: 1px solid var(--line);
}

.job:last-child { border-bottom: 1px solid var(--line); }
.job-meta { display: flex; flex-direction: column; gap: 8px; color: var(--muted); font-family: var(--mono); font-size: 0.76rem; }
.job-meta time { color: var(--primary); }
.job-content h3 { margin: 0; font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.05; text-wrap: balance; }
.job-content ul { max-width: 76ch; padding: 0; margin: 30px 0 0; list-style: none; }
.job-content li { position: relative; padding: 0 0 16px 24px; color: var(--muted); text-wrap: pretty; }
.job-content li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

.projects {
  background: var(--surface);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.projects-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 50px;
  align-items: end;
}

.projects-intro > p { max-width: 52ch; margin: 0; color: var(--muted); font-size: 1.06rem; }
.featured-projects { margin-top: clamp(58px, 9vw, 100px); }

.project-feature {
  position: relative;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 190px;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding-block: clamp(40px, 6vw, 70px);
  border-top: 1px solid var(--line);
}

.project-feature:last-child { border-bottom: 1px solid var(--line); }
.project-index { align-self: start; color: var(--muted); }
.project-copy h3 { margin: 0; font-family: var(--display); font-size: clamp(2.2rem, 4vw, 3.3rem); letter-spacing: -0.02em; line-height: 1; text-transform: uppercase; }
.project-copy > p { max-width: 66ch; margin: 22px 0 0; color: var(--muted); text-wrap: pretty; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 25px 0 0; list-style: none; }
.tags li { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-family: var(--mono); font-size: 0.68rem; }

.project-signal { position: relative; height: 96px; }
.project-signal::before { content: ""; position: absolute; top: 47px; left: 4px; right: 4px; height: 2px; background: var(--line); }
.project-signal span { position: absolute; top: 42px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 2px solid var(--primary); }
.project-signal span:nth-child(1) { left: 0; }
.project-signal span:nth-child(2) { left: 31%; }
.project-signal span:nth-child(3) { left: 62%; }
.project-signal span:nth-child(4) { right: 0; background: var(--primary); }
.project-signal i { position: absolute; top: 21px; right: -3px; width: 18px; height: 18px; border: 1px solid var(--primary); border-radius: 50%; opacity: 0.5; animation: ping 2.4s infinite; }
.signal-blue span { border-color: var(--accent); }
.signal-blue span:nth-child(4) { background: var(--accent); }
.signal-blue i { border-color: var(--accent); }

.project-ledger { margin-top: 40px; border-top: 1px solid var(--line); }
.project-ledger article {
  display: grid;
  grid-template-columns: minmax(190px, 0.55fr) minmax(300px, 1.25fr) minmax(160px, 0.45fr);
  gap: 24px 50px;
  align-items: baseline;
  padding-block: 28px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 180ms ease, padding 180ms var(--ease);
}

.project-ledger article:hover { padding-inline: 16px; background: var(--primary-soft); }
.project-ledger span { color: var(--muted); font-family: var(--mono); font-size: 0.67rem; }
.project-ledger h3 { margin: 2px 0 0; font-family: var(--display); font-size: 1.6rem; line-height: 1; }
.project-ledger p { margin: 0; color: var(--muted); font-size: 0.95rem; text-wrap: pretty; }
.project-ledger b { color: var(--primary); font-family: var(--mono); font-size: 0.67rem; font-weight: 400; text-align: right; }

.skills { border-top: 1px solid var(--line-soft); }
.skills-matrix { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: clamp(50px, 8vw, 90px); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.skill { min-height: 260px; padding: clamp(26px, 4vw, 42px); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.skill h3 { margin: 0; color: var(--primary); font-family: var(--display); font-size: 1.5rem; line-height: 1.1; }
.skill p { margin: 22px 0 0; color: var(--muted); font-size: 0.96rem; text-wrap: pretty; }

.contact {
  min-height: 76vh;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.contact h2 { max-width: 900px; margin-top: 24px; font-size: clamp(2.8rem, 5.5vw, 4.3rem); }
.contact > p { max-width: 68ch; margin: 28px 0 0; color: var(--muted); font-size: 1.12rem; text-wrap: pretty; }
.contact-status { color: var(--primary); }

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 30px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.site-footer p { margin: 0; }
.site-footer p span { color: var(--primary); }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); text-underline-offset: 5px; }

@keyframes ping {
  0% { transform: scale(0.7); opacity: 0.6; }
  70%, 100% { transform: scale(2.1); opacity: 0; }
}

.motion-ready .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.motion-ready .reveal.is-visible { opacity: 1; transform: translateY(0); }
.motion-ready .hero-copy > * { animation: hero-in 760ms var(--ease) both; }
.motion-ready .hero-copy > *:nth-child(2) { animation-delay: 90ms; }
.motion-ready .hero-copy > *:nth-child(3) { animation-delay: 160ms; }
.motion-ready .hero-copy > *:nth-child(4) { animation-delay: 230ms; }
.motion-ready .hero-copy > *:nth-child(5) { animation-delay: 300ms; }
.motion-ready .hero-copy > *:nth-child(6) { animation-delay: 360ms; }
.motion-ready .signal-console { animation: console-in 900ms 180ms var(--ease) both; }

@keyframes hero-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes console-in {
  from { opacity: 0; transform: translateX(32px); clip-path: inset(0 0 0 90%); }
  to { opacity: 1; transform: translateX(0); clip-path: inset(0); }
}

@media (max-width: 1000px) {
  .site-header nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .signal-console { width: min(100%, 680px); min-height: 470px; }
  .profile { grid-template-columns: 1fr; }
  .profile-principles { grid-column: 1; }
  .projects-intro { grid-template-columns: 1fr; align-items: start; }
  .project-feature { grid-template-columns: 130px minmax(0, 1fr); }
  .project-signal { display: none; }
  .project-ledger article { grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr); }
  .project-ledger b { grid-column: 2; text-align: left; }
  .skills-matrix { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  :root { --header-height: 68px; }
  body { font-size: 16px; }
  .site-header { padding-inline: 18px; }
  .brand span { display: none; }
  .header-contact { font-size: 0.86rem; }
  .section-shell, .hero, .site-footer { width: min(calc(100% - 32px), var(--container)); }
  .hero { gap: 48px; padding-block: 60px 76px; }
  .hero h1 { font-size: clamp(3.2rem, 16vw, 4.1rem); }
  .hero-role { font-size: 1.45rem; }
  .hero-actions .button { width: 100%; }
  .contact-strip { display: grid; gap: 0; }
  .signal-console { min-height: 420px; }
  .signal-path { height: 330px; transform: scale(0.92); }
  .console-foot { gap: 10px; }
  .console-foot div:nth-child(2) { display: none; }
  .profile-principles { justify-content: flex-start; flex-wrap: wrap; }
  .profile-principles i { margin-inline: 4px; }
  .job { grid-template-columns: 1fr; }
  .job-meta { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .project-feature { grid-template-columns: 1fr; }
  .project-index { margin-bottom: 0; }
  .project-ledger article { grid-template-columns: 1fr; gap: 12px; padding-block: 26px; }
  .project-ledger b { grid-column: 1; }
  .project-ledger article:hover { padding-inline: 0; background: transparent; }
  .skills-matrix { grid-template-columns: 1fr; }
  .skill { min-height: 0; }
  .contact-actions, .contact-actions .button { width: 100%; }
  .site-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .pulse-dot { display: none; }
  .motion-ready .reveal { opacity: 1; transform: none; }
}

@media print {
  :root {
    --bg: white;
    --surface: white;
    --surface-high: #f4f4f1;
    --ink: #121212;
    --muted: #3f3f3b;
    --primary: #536315;
    --accent: #155ea8;
    --line: #a7a7a0;
    --line-soft: #d7d7d0;
  }
  @page { size: A4; margin: 11mm 12mm; }
  html { scroll-behavior: auto; }
  body {
    background: white;
    color: var(--ink);
    font-size: 8.8pt;
    line-height: 1.34;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body::before,
  .skip-link,
  .site-header,
  .signal-console,
  .hero-actions,
  .project-signal,
  .contact,
  .site-footer {
    display: none !important;
  }
  a { color: inherit; text-decoration: none; }
  .hero-copy > * {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  .section-shell,
  .hero {
    width: 100%;
    margin: 0;
    padding-block: 5mm;
  }
  .hero {
    min-height: 0;
    display: block;
    padding-top: 0;
    padding-bottom: 6mm;
    border-bottom: 1.5pt solid var(--primary);
  }
  .availability {
    margin: 0 0 2.5mm;
    color: var(--muted);
    font-size: 7.4pt;
  }
  .availability span { width: 5px; height: 5px; box-shadow: none; }
  .hero h1 {
    margin: 0;
    font-size: 28pt;
    line-height: 0.9;
    letter-spacing: -0.02em;
  }
  .hero-role {
    max-width: none;
    margin: 3mm 0 0;
    font-size: 13pt;
    line-height: 1.08;
  }
  .hero-summary {
    max-width: 100%;
    margin: 2mm 0 0;
    color: var(--muted);
    font-size: 9pt;
    line-height: 1.35;
  }
  .contact-strip {
    display: grid !important;
    grid-template-columns: auto auto 1fr;
    gap: 3mm 7mm;
    padding: 3.5mm 0 0;
    margin: 3.5mm 0 0;
    border-top: 0.5pt solid var(--line-soft);
  }
  .contact-strip li { min-width: 0; }
  .contact-strip a {
    min-height: 0;
    display: block;
    color: var(--ink);
    font-size: 8.3pt;
    overflow-wrap: anywhere;
  }
  .profile {
    display: grid;
    grid-template-columns: 42mm 1fr;
    gap: 7mm;
    padding-block: 6mm;
    border-top: 0;
    border-bottom: 0.5pt solid var(--line-soft);
  }
  .section-heading > p {
    margin-bottom: 1.5mm;
    color: var(--primary);
    font-size: 7pt;
  }
  .section-heading h2 {
    font-size: 18pt;
    line-height: 1;
    letter-spacing: -0.01em;
  }
  .profile-copy p {
    margin: 0 0 2mm;
    color: var(--muted);
    font-size: 8.8pt;
    line-height: 1.38;
  }
  .profile-copy p:first-child { font-size: 9.2pt; }
  .profile-principles { display: none; }
  .experience { padding-block: 6mm 4mm; }
  .timeline { margin-top: 4mm; }
  .job {
    display: grid;
    grid-template-columns: 34mm 1fr;
    gap: 5mm;
    padding-block: 3.5mm;
    break-inside: avoid;
    border-color: var(--line-soft);
  }
  .job-meta {
    gap: 1mm;
    margin: 0;
    font-size: 7.2pt;
    line-height: 1.25;
  }
  .job-content h3 {
    font-size: 12.5pt;
    line-height: 1.05;
  }
  .job-content ul { margin: 2.3mm 0 0; }
  .job-content li {
    padding: 0 0 1.1mm 3.5mm;
    color: var(--muted);
    font-size: 8.2pt;
    line-height: 1.28;
  }
  .job-content li::before {
    top: 0.48em;
    width: 4px;
    height: 4px;
  }
  .projects {
    background: white;
    break-before: page;
    border: 0;
  }
  .projects .section-shell { padding-block: 0; }
  .projects-intro {
    display: grid;
    grid-template-columns: 1fr 62mm;
    gap: 8mm;
    align-items: end;
    padding-bottom: 4mm;
    border-bottom: 1pt solid var(--primary);
  }
  .projects-intro > p {
    color: var(--muted);
    font-size: 8.3pt;
    line-height: 1.3;
  }
  .featured-projects { margin-top: 2mm; }
  .project-feature {
    display: grid;
    grid-template-columns: 32mm 1fr;
    gap: 5mm;
    align-items: start;
    padding-block: 3.5mm;
    break-inside: avoid;
    border-color: var(--line-soft);
  }
  .project-index {
    margin: 0;
    color: var(--muted);
    font-size: 6.8pt;
  }
  .project-copy h3 { font-size: 15pt; line-height: 1; }
  .project-copy > p {
    margin: 1.5mm 0 0;
    color: var(--muted);
    font-size: 8.2pt;
    line-height: 1.3;
  }
  .tags { gap: 1.2mm; margin: 1.8mm 0 0; }
  .tags li {
    padding: 0.5mm 1.4mm;
    border-color: var(--line-soft);
    font-size: 6.2pt;
  }
  .project-ledger {
    margin-top: 2mm;
    border-color: var(--line-soft);
  }
  .project-ledger article {
    display: grid;
    grid-template-columns: 45mm 1fr 43mm;
    gap: 4mm;
    align-items: center;
    padding-block: 2.2mm;
    break-inside: avoid;
    border-color: var(--line-soft);
  }
  .project-ledger span { font-size: 6pt; }
  .project-ledger h3 { font-size: 11pt; }
  .project-ledger p {
    color: var(--muted);
    font-size: 7.7pt;
    line-height: 1.25;
  }
  .project-ledger b {
    grid-column: auto;
    color: var(--primary);
    font-size: 6pt;
    text-align: right;
  }
  .skills {
    padding-block: 0;
    break-before: page;
    border: 0;
  }
  .skills .section-heading {
    padding-bottom: 4mm;
    border-bottom: 1pt solid var(--primary);
  }
  .skills-matrix {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 4mm;
    border-color: var(--line-soft);
  }
  .skill {
    min-height: 0;
    padding: 4mm;
    break-inside: avoid;
    border-color: var(--line-soft);
  }
  .skill h3 { font-size: 11.5pt; line-height: 1.05; }
  .skill p {
    margin-top: 2mm;
    color: var(--muted);
    font-size: 8pt;
    line-height: 1.3;
  }
  .motion-ready .reveal { opacity: 1 !important; transform: none !important; }
}
