:root {
  color-scheme: light;
  --bg: #f4f7fc;
  --surface: #fff;
  --text: #10243f;
  --muted: #536780;
  --line: #d6e0ed;
  --accent: #285b9b;
  --accent-soft: #e6edf8;
  --art: #e8eff8;
  --contact: #e5edf8;
  --radius: 18px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1b34;
  --surface: #112848;
  --text: #f7f9fc;
  --muted: #b0c3df;
  --line: #294263;
  --accent: #9bbfee;
  --accent-soft: #1a365a;
  --art: #102b4b;
  --contact: #102848;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Manrope, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
button {
  font: inherit;
  cursor: pointer;
  user-select: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a {
  transition:
    background-color 160ms ease-out,
    color 160ms ease-out,
    transform 160ms ease-out;
}
button:active,
.button:active {
  transform: scale(0.97);
}
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 5px;
}
button:focus-visible {
  position: relative;
  z-index: 1;
}
p,
h1,
h2,
h3 {
  margin-top: 0;
}
p {
  color: var(--muted);
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.045em;
}
h2 {
  font-size: clamp(30px, 3.3vw, 44px);
  font-weight: 800;
  margin-bottom: 18px;
}
h3 {
  font-size: 22px;
  letter-spacing: -0.025em;
}
svg {
  width: 21px;
  height: 21px;
}
[hidden] {
  display: none !important;
}
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 48px;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  background: var(--text);
  color: var(--bg);
  padding: 12px;
  transform: translateY(-200%);
}
.skip-link:focus {
  transform: translateY(0);
}
.site-header {
  border-bottom: 1px solid var(--line);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner {
  max-width: 1200px;
  padding: 22px 48px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  width: 48px;
  height: 48px;
}
.brand-name {
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.16em;
}

nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  font-weight: 700;
}
nav a {
  padding-block: 10px;
}
.controls {
  display: flex;
  align-items: center;
  gap: 12px;
}
.languages {
  display: flex;
  gap: 2px;
}
.languages button {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  border-radius: 7px;
  min-height: 40px;
  min-width: 36px;
}
.languages button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}
.theme-toggle {
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 50%;
  width: 40px;
  height: 40px;
}
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 70px;
  padding-block: 80px 72px;
  align-items: center;
}
.eyebrow {
  color: var(--accent);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.15em;
  line-height: 1.7;
  margin-bottom: 22px;
}
.hero-name {
  font-size: 18px;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 14px;
}
.hero h1 {
  font-size: clamp(38px, 4.2vw, 57px);
  font-weight: 800;
  white-space: pre-line;
  line-height: 1.11;
  margin-bottom: 25px;
}
.hero-intro {
  max-width: 550px;
  font-size: 15px;
  line-height: 1.85;
  margin-bottom: 29px;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border-radius: 8px;
  padding: 12px 19px;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.5;
  border: 1px solid transparent;
}
.primary {
  background: #112848;
  color: #f7f9fc;
}
:root[data-theme="dark"] .primary {
  background: #9bbfee;
  color: #0a1b34;
}
.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}

.hero-profile {
  position: relative;
  padding: 0 0 28px 10px;
  max-width: 350px;
  justify-self: end;
  width: 100%;
}
.portrait-wrap {
  aspect-ratio: 1/0.99;
  border-radius: 100px 18px 18px 18px;
  position: relative;
  background: var(--art);
}
.portrait-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  border-radius: inherit;
  filter: saturate(0.72);
}

.focus-card {
  position: relative;
  margin: -18px 20px 0 -18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  box-shadow: 0 10px 25px #00000005;
}
.focus-card .eyebrow {
  margin-bottom: 6px;
  font-size: 9px;
}
.focus-value {
  font-size: 18px;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 10px;
}
.focus-value:before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 9px;
  vertical-align: middle;
}
.exploring-label {
  font-size: 9px;
  letter-spacing: 0.08em;
  margin: 0;
}
.section {
  border-top: 1px solid var(--line);
  padding-block: 56px;
  scroll-margin-top: 20px;
}
.section-heading {
  max-width: 650px;
}
.section-heading .eyebrow {
  margin-bottom: 14px;
}
.section-intro {
  font-size: 14px;
  margin-bottom: 28px;
  max-width: 610px;
}
.project-toolbar {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-block: 30px 23px;
}
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.filters button {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 8px 16px;
  min-height: 42px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
}
.filters button[aria-pressed="true"] {
  background: var(--text);
  color: var(--bg);
}
.project-count {
  font-size: 11px;
  white-space: nowrap;
  color: var(--muted);
}
.project-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.project-art {
  background: var(--art);
  padding: 44px 36px 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 330px;
}
.mock-browser {
  background: #f7f9fc;
  border: 1px solid #c7d5e8;
  border-radius: 8px;
  box-shadow: 0 16px 26px #10284815;
  transform: rotate(-3deg);
  color: #112848;
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid #dce4f0;
  padding: 10px;
  font-size: 6px;
  color: #6b7e98;
}
.mock-bar i {
  width: 4px;
  height: 4px;
  background: #afc1d8;
  border-radius: 50%;
}
.mock-bar > span {
  margin: auto;
}
.mock-content {
  padding: 15px 22px 25px;
}
.mock-nav {
  display: flex;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -1px;
}

.mock-nav > span:last-child {
  font-size: 5px;
  letter-spacing: 1px;
  margin-left: auto;
  align-self: center;
}
.mock-layout {
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  gap: 16px;
  align-items: center;
  margin-top: 20px;
}
.mock-kicker {
  font-size: 5px;
  letter-spacing: 1.4px;
  color: #285b9b;
  font-weight: 800;
}
.mock-layout strong {
  display: block;
  font-size: clamp(24px, 3vw, 39px);
  line-height: 1.1;
  letter-spacing: -2px;
  margin-block: 8px;
}
.mock-layout strong > span {
  color: #285b9b;
}
.mock-layout img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 36px 6px 6px 6px;
  filter: saturate(0.65);
}
.mock-lines {
  height: 15px;
  width: 95%;
  background: repeating-linear-gradient(
    to bottom,
    #ccd9e9 0 2px,
    transparent 2px 6px
  );
  margin-block: 10px;
}
.mock-pill {
  width: 48px;
  height: 13px;
  background: #26392f;
  border-radius: 3px;
}
.art-caption {
  font-size: 8px;
  letter-spacing: 0.18em;
  text-align: center;
  margin-top: 30px;
  color: var(--muted);
}
.project-body {
  padding: 36px;
  align-self: center;
  min-width: 0;
}
.project-meta {
  font-size: 9px;
  color: var(--accent);
  letter-spacing: 0.1em;
  font-weight: 800;
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.project-meta > span:last-child {
  color: var(--muted);
}
.project-body h3 {
  font-size: 26px;
  margin-bottom: 14px;
}
.project-body p {
  font-size: 13px;
  line-height: 1.85;
}
.tags {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.tags li {
  font-size: 11px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 5px 9px;
  color: var(--muted);
}
details {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
summary {
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  min-height: 30px;
}
details p {
  margin: 12px 0 0;
}
.empty-state {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 55px 28px;
  text-align: center;
  background: var(--surface);
}
.empty-state > span {
  font-size: 30px;
  color: var(--accent);
}
.empty-state h3 {
  margin: 15px 0 10px;
}
.empty-state p {
  font-size: 14px;
  max-width: 470px;
  margin: auto;
}
.skills-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 36px;
}
.skill-group {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  min-width: 0;
}
.index {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.skill-group h3 {
  font-size: 17px;
  margin: 20px 0 14px;
  letter-spacing: -0.02em;
}
.skill-group .tags {
  margin: 0;
}
.skill-group .tags li {
  background: var(--surface);
}
.skill-group p {
  font-size: 12px;
  line-height: 1.8;
}
.background-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 60px;
}
.timeline {
  border-left: 1px solid var(--line);
  padding-left: 28px;
}
.timeline-item {
  position: relative;
  padding-bottom: 35px;
}
.timeline-item:last-child {
  padding-bottom: 0;
}
.timeline-item:before {
  content: "";
  position: absolute;
  left: -33px;
  top: 7px;
  width: 9px;
  height: 9px;
  background: var(--accent);
  border: 2px solid var(--bg);
  border-radius: 50%;
}
.timeline-item .eyebrow {
  margin-bottom: 12px;
}
.timeline-item h3 {
  font-size: 19px;
  margin-bottom: 12px;
}
.timeline-item p,
.timeline-item li {
  font-size: 12px;
}
.timeline-item ul {
  padding-left: 17px;
  color: var(--muted);
  margin-bottom: 0;
}
.timeline-item li + li {
  margin-top: 6px;
}
.period {
  font-size: 11px !important;
  margin-bottom: 16px;
}
.learning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.learning-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 25px;
  background: var(--surface);
}
.learning-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}
.learning-top > span:last-child {
  color: var(--accent);
}
.learning-card .eyebrow {
  font-size: 8px;
  letter-spacing: 0.1em;
  margin-bottom: 9px;
}
.learning-card h3 {
  font-size: 21px;
  margin-bottom: 13px;
}
.learning-card > p:last-child {
  font-size: 12px;
  line-height: 1.85;
  margin-bottom: 0;
}
.contact-section {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  background: var(--contact);
  border: 0;
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 48px;
}
.contact-section h2 {
  font-size: clamp(27px, 3vw, 39px);
  white-space: pre-line;
}
.contact-section p:not(.eyebrow) {
  font-size: 13px;
  max-width: 370px;
}
.contact-section .eyebrow {
  margin-bottom: 15px;
}
.contact-links {
  align-self: center;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.contact-links a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.contact-links .email-link {
  font-size: clamp(14px, 1.7vw, 21px);
  font-weight: 700;
}
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 10px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}
.print-resume {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  nav a:hover,
  .contact-links a:hover,
  .site-footer a:hover {
    color: var(--accent);
  }
  .primary:hover {
    background: var(--accent);
    color: var(--bg);
  }
  .secondary:hover,
  .theme-toggle:hover,
  .filters button[aria-pressed="false"]:hover,
  .languages button[aria-pressed="false"]:hover {
    background: var(--accent-soft);
    color: var(--accent);
  }
}
@media (min-width: 1500px) {
  .hero {
    padding-block: 100px 95px;
  }
}
@media (max-width: 1000px) {
  .container {
    padding-inline: 32px;
  }
  .header-inner {
    padding-inline: 32px;
  }
  nav {
    gap: 18px;
  }
  .hero {
    gap: 36px;
    padding-block: 60px;
  }
  .hero h1 {
    font-size: 42px;
  }
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .project-art {
    padding: 32px 25px;
  }
  .project-body {
    padding: 26px;
  }
  .background-section {
    gap: 30px;
  }
  .learning-card {
    padding: 20px;
  }
  .contact-section {
    padding: 32px;
    gap: 30px;
  }
}
@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    padding: 18px 24px;
    gap: 12px;
  }
  nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    padding-top: 9px;
    gap: 12px;
    font-size: 12px;
  }
  .controls {
    margin-left: auto;
  }
  .container {
    padding-inline: max(24px, env(safe-area-inset-left, 0px));
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 35px;
    padding-block: 42px;
  }
  .hero h1 {
    font-size: clamp(34px, 7.5vw, 49px);
  }
  .hero .eyebrow {
    font-size: 9px;
  }
  .hero-intro {
    font-size: 14px;
  }
  .hero-profile {
    justify-self: start;
    max-width: none;
    display: grid;
    grid-template-columns: 115px 1fr;
    align-items: center;
    padding: 0;
    gap: 16px;
  }
  .portrait-wrap {
    border-radius: 35px 10px 10px 10px;
    aspect-ratio: 1;
  }

  .focus-card {
    margin: 0;
    padding: 16px;
    box-shadow: none;
  }
  .focus-value {
    font-size: 15px;
  }
  .exploring-label {
    font-size: 8px;
  }
  .project-card {
    grid-template-columns: 1fr;
  }
  .project-art {
    min-height: 270px;
    padding: 32px 40px 20px;
  }
  .mock-browser {
    max-width: 370px;
    width: 100%;
    margin: auto;
  }
  .mock-layout strong {
    font-size: 36px;
  }
  .mock-layout img {
    height: 130px;
  }
  .project-body {
    padding: 26px;
  }
  .section {
    padding-block: 38px;
  }
  .section-intro {
    font-size: 13px;
  }
  .project-toolbar {
    align-items: start;
    gap: 10px;
    flex-wrap: wrap;
  }
  .project-count {
    align-self: center;
  }
  .filters {
    gap: 3px;
  }
  .filters button {
    padding-inline: 12px;
  }
  .background-section {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .timeline {
    margin-left: 5px;
  }
  .learning-grid {
    grid-template-columns: 1fr;
  }
  .learning-top {
    margin-bottom: 15px;
  }
  .learning-card {
    padding: 24px;
  }
  .learning-card h3 {
    font-size: 22px;
  }
  .contact-section {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 20px;
    margin-bottom: 30px;
  }
  .contact-section h2 {
    font-size: 32px;
  }
  .site-footer {
    flex-wrap: wrap;
    font-size: 9px;
  }
  .site-footer > span:nth-child(2) {
    order: 3;
    width: 100%;
  }
  .hero-actions .button {
    flex-grow: 1;
  }

  .skills-grid {
    gap: 20px;
  }
  .skill-group h3 {
    font-size: 16px;
  }
  .section-heading h2 {
    font-size: 31px;
  }
}
@media (max-width: 360px) {
  .container {
    padding-inline: 18px;
  }
  .header-inner {
    padding-inline: 18px;
  }
  .hero-profile {
    grid-template-columns: 85px 1fr;
    gap: 12px;
  }
  .focus-card {
    padding: 12px;
  }
  .focus-card .eyebrow {
    font-size: 8px;
  }
  .focus-value {
    font-size: 13px;
  }
  .exploring-label {
    font-size: 7px;
  }
  .project-art {
    padding-inline: 26px;
  }
  .skills-grid {
    grid-template-columns: 1fr;
  }
  .filters button {
    padding-inline: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
@page {
  size: A4;
  margin: 12mm;
}
@media print {
  html {
    color-scheme: light;
  }
  body {
    margin: 0;
    background: #fff;
    color: #10243f;
    font-family: Manrope, Arial, sans-serif;
    font-size: 9pt;
    line-height: 1.5;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  body > *:not(.print-resume) {
    display: none !important;
  }
  .print-resume {
    display: block;
    --cv-ink: #10243f;
    --cv-muted: #536780;
    --cv-accent: #285b9b;
    --cv-line: #d6e0ed;
  }
  .print-resume * {
    box-sizing: border-box;
  }
  .print-resume p,
  .print-resume li {
    color: var(--cv-ink);
  }
  .print-resume a {
    color: var(--cv-ink);
    text-decoration: none;
  }
  .cv-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 7mm;
    border-top: 1.8mm solid var(--cv-accent);
    padding: 6mm 6mm 5mm;
    background: #edf2f9;
  }
  .cv-topline {
    display: flex;
    align-items: center;
    gap: 3mm;
    color: var(--cv-accent);
    font-size: 6.5pt;
    font-weight: 800;
    letter-spacing: 0.13em;
  }

  .print-resume h1 {
    margin: 2mm 0 1.5mm;
    color: var(--cv-ink);
    font-size: 28pt;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -0.04em;
  }
  .cv-header .cv-subtitle {
    margin: 0;
    font-size: 7pt;
    color: var(--cv-accent);
    font-weight: 700;
    letter-spacing: 0.09em;
  }
  .cv-header .cv-focus {
    margin: 2mm 0 0;
    color: var(--cv-muted);
    font-size: 7.5pt;
  }
  .cv-photo {
    width: 24mm;
    height: 29mm;
    object-fit: cover;
    object-position: center 30%;
    border-radius: 9mm 2mm 2mm 2mm;
    filter: saturate(0.7);
    flex-shrink: 0;
  }
  .cv-layout {
    display: grid;
    grid-template-columns: 52mm minmax(0, 1fr);
    gap: 8mm;
    margin-top: 7mm;
  }
  .cv-sidebar {
    padding-right: 5mm;
    border-right: 0.3mm solid var(--cv-line);
  }
  .cv-section {
    margin-bottom: 6mm;
  }
  .cv-section:last-child {
    margin-bottom: 0;
  }
  .print-resume h2 {
    display: flex;
    align-items: center;
    gap: 3mm;
    margin: 0 0 3mm;
    color: var(--cv-accent);
    font-size: 8pt;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    break-after: avoid;
  }
  .print-resume h2::after {
    content: "";
    flex: 1;
    height: 0.25mm;
    background: var(--cv-line);
  }
  .print-resume h3 {
    margin: 0 0 1.4mm;
    font-size: 10pt;
    line-height: 1.35;
    font-weight: 800;
    letter-spacing: -0.02em;
    break-after: avoid;
  }
  .print-resume p {
    margin: 0 0 2mm;
    font-size: 8.5pt;
    line-height: 1.6;
    orphans: 3;
    widows: 3;
  }
  .cv-contacts {
    display: flex;
    flex-direction: column;
    gap: 1.7mm;
    font-style: normal;
    font-size: 7.5pt;
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  .cv-skill {
    margin-bottom: 3.3mm;
    break-inside: avoid;
  }
  .cv-sidebar h3 {
    font-size: 8pt;
    font-weight: 700;
    letter-spacing: 0;
  }
  .cv-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1.3mm;
    list-style: none;
    padding: 0;
    margin: 1.5mm 0 0;
  }
  .cv-tags li {
    padding: 0.7mm 1.5mm;
    border: 0.2mm solid var(--cv-line);
    border-radius: 1mm;
    background: #f0f4fa;
    font-size: 7pt;
    line-height: 1.4;
  }
  .cv-sidebar .cv-note {
    color: var(--cv-muted);
    font-size: 7pt;
    margin-top: 1.2mm;
  }
  .cv-education p {
    font-size: 7.5pt;
  }
  .cv-education h3 {
    font-size: 8.5pt;
  }
  .cv-main .cv-intro {
    font-size: 8.6pt;
  }
  .cv-project {
    padding: 0 0 3.4mm;
    margin: 0 0 3.4mm;
    border-bottom: 0.2mm solid var(--cv-line);
    break-inside: avoid;
  }
  .cv-project:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
  }
  .cv-project-heading {
    display: flex;
    align-items: baseline;
    gap: 2.3mm;
    margin-bottom: 1.3mm;
  }
  .cv-project-heading h3 {
    margin: 0;
  }
  .cv-project-index {
    font-size: 7pt;
    font-weight: 700;
    color: var(--cv-accent);
  }
  .cv-status {
    margin-left: auto;
    font-size: 6.5pt;
    color: var(--cv-accent);
    white-space: nowrap;
  }
  .cv-project .cv-stack {
    color: var(--cv-muted);
    font-size: 7pt;
    margin-bottom: 1.3mm;
  }
  .cv-project-links {
    display: flex;
    gap: 4mm;
    font-size: 7pt;
  }
  .cv-project-links a {
    color: var(--cv-accent);
    text-decoration: underline;
    text-underline-offset: 1mm;
  }
  .print-resume .cv-period {
    font-size: 7pt;
    color: var(--cv-muted);
    margin-bottom: 2mm;
  }
  .cv-experience h3 {
    font-size: 9pt;
  }
  .cv-bullets {
    margin: 0;
    padding-left: 3.5mm;
    font-size: 8pt;
    line-height: 1.6;
  }
  .cv-bullets li {
    padding-left: 0.5mm;
    margin-bottom: 1mm;
  }
  .cv-bullets li::marker {
    color: var(--cv-accent);
  }
  .cv-footer {
    display: flex;
    justify-content: space-between;
    border-top: 0.3mm solid var(--cv-line);
    padding-top: 3mm;
    margin-top: 7mm;
    font-size: 6.5pt;
    color: var(--cv-muted);
  }
  .cv-footer a {
    color: var(--cv-muted);
  }
}

/* Show the whole toolkit before introducing individual areas. */
.hero-toolkit {
  margin: 0 0 27px;
  max-width: 570px;
}
.hero-toolkit > .eyebrow {
  font-size: 9px;
  margin-bottom: 12px;
}
.hero-skills {
  margin: 0;
  gap: 7px;
}
.hero-skills li {
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
}
.hero-interests {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px 14px;
  margin-top: 15px;
  font-size: 10px;
}
.hero-interests > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.hero-interests .interest-label {
  color: var(--accent);
  padding-block: 7px;
}
.focus-value:before {
  content: none;
}
@media (max-width: 720px) {
  .hero-toolkit {
    margin-bottom: 24px;
  }
  .hero-toolkit > .eyebrow {
    font-size: 9px;
  }
  .hero-interests {
    gap: 3px 12px;
  }
  .hero-interests > span {
    flex-basis: 100%;
  }
  .focus-value {
    font-size: 14px;
  }
}

/* Programming and embedded work lead; frontend is the final area. */
.skills-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.project-card + .project-card {
  margin-top: 24px;
}
.esp-art {
  align-items: center;
  background: var(--art);
}
.chip-board {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  width: min(100%, 200px);
  height: 245px;
  padding: 18px;
  border: 8px solid #6e7765;
  border-radius: 12px;
  background: #26392f;
  box-shadow: 0 15px 25px #20352420;
  transform: rotate(-5deg);
  color: #e7ece2;
}
.chip-board::before,
.chip-board::after {
  content: "";
  position: absolute;
  top: 25px;
  bottom: 25px;
  width: 9px;
  background: repeating-linear-gradient(
    to bottom,
    #bca773 0 5px,
    transparent 5px 13px
  );
}
.chip-board::before {
  left: -15px;
}
.chip-board::after {
  right: -15px;
}
.board-label {
  font-size: 11px;
  letter-spacing: 0.2em;
}
.chip-core {
  border: 1px solid #b9c1b4;
  background: #bcc4b8;
  color: #26392f;
  border-radius: 5px;
  padding: 18px 27px;
  font-size: 29px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.05em;
}
.board-caption {
  font-size: 8px;
  letter-spacing: 0.12em;
}
@media (max-width: 1000px) {
  .skills-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 500px) {
  .skills-grid {
    grid-template-columns: 1fr;
  }
}
.project-body .project-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  margin: 0 0 18px;
}
.project-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.project-source {
  margin-top: 18px;
}
.store-art {
  background: var(--accent-soft);
  align-items: center;
}
.store-symbol {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(100%, 260px);
  padding: 30px 10px;
}
.solar-sun {
  position: absolute;
  top: 4px;
  right: 24px;
  width: 65px;
  height: 65px;
  border: 12px solid #e9c77e;
  background: #f0dba7;
  border-radius: 50%;
}
.solar-panel {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  width: 205px;
  height: 135px;
  padding: 8px;
  background: #455952;
  border: 5px solid #738176;
  border-radius: 6px;
  transform: rotate(-8deg);
  box-shadow: 0 14px 24px #283b2420;
}
.solar-panel i {
  border: 1px solid #94ada0;
  background: #344c43;
  border-radius: 2px;
}
.store-symbol strong {
  margin-top: 24px;
  color: var(--text);
  font-size: 30px;
  letter-spacing: -0.05em;
}
.store-caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.16em;
}
.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.project-links .project-source {
  margin-top: 0;
}

.mock-nav .mock-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
}

/* The dotted field echoes the supplied SVG without competing with the content. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  top: 25px;
  right: -15px;
  width: min(68%, 650px);
  height: 75%;
  background-image: radial-gradient(circle, #8fb0e0 1px, transparent 1.5px);
  background-size: 22px 22px;
  opacity: 0.24;
  mask-image: radial-gradient(ellipse at 65% 40%, #000 0%, transparent 70%);
}
:root[data-theme="dark"] .hero::before {
  opacity: 0.32;
}
.portrait-wrap {
  border-radius: 56px 18px 18px 18px;
}
.focus-card {
  border-color: var(--line);
  box-shadow: 0 12px 30px #0a1b3408;
}
@media (hover: hover) and (pointer: fine) {
  :root[data-theme="dark"] .primary:hover {
    background: #c6dbf7;
    color: #0a1b34;
  }
}
@media (max-width: 720px) {
  .brand-logo {
    width: 42px;
    height: 42px;
  }
  .brand-name {
    font-size: 11px;
  }
  .hero::before {
    right: 0;
    top: 12px;
    width: 100%;
    height: 52%;
  }
  .portrait-wrap {
    border-radius: 24px 10px 10px 10px;
  }
}
@media (max-width: 360px) {
  .brand-name {
    display: none;
  }
}
@media print {
  .cv-logo {
    display: block;
    width: 9mm;
    height: 9mm;
  }
}
/* Project illustrations and real prototype photography. */
.brand-name {
  font-size: 15px;
  letter-spacing: 0.015em;
}
.garage-art {
  padding: 20px 18px 22px;
  background: #10243b;
  justify-content: center;
}
.garage-demo {
  width: 100%;
}
.garage-scene {
  display: block;
  width: 100%;
  height: auto;
}
.light-zone {
  opacity: 0;
}
.garage-demo[data-desk="on"] .zone-desk,
.garage-demo[data-wall="on"] .zone-wall,
.garage-demo[data-ceiling="on"] .zone-ceiling {
  opacity: 1;
}
.garage-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}
.light-control {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 40px;
  padding: 7px 9px;
  background: #1a314a;
  border: 1px solid #38516c;
  border-radius: 7px;
  color: #d1ddec;
  font-size: 9px;
  font-weight: 600;
}
.light-control[aria-pressed="true"] {
  background: #344039;
  border-color: #ad9562;
  color: #fff1d1;
}
.light-indicator {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6d8197;
  flex-shrink: 0;
}
.light-control[aria-pressed="true"] .light-indicator {
  background: #ffd98b;
  box-shadow: 0 0 8px #ffd98b50;
}
.zone-index {
  font-size: 8px;
  opacity: 0.65;
}
.illustration-note {
  margin: 14px 0 0;
  text-align: center;
  font-size: 8px;
  font-weight: 600;
  line-height: 1.6;
  letter-spacing: 0.08em;
}
.garage-art .illustration-note {
  color: #a5bad0;
}
.reader-art {
  padding: 12px 24px 24px;
  background: var(--art);
}
.reader-concept {
  width: 100%;
  height: auto;
  display: block;
}
.reader-art .illustration-note {
  color: var(--muted);
  margin-top: -2px;
}
.project-body .prototype-state {
  padding-left: 11px;
  border-left: 2px solid var(--line);
  font-size: 11px;
  line-height: 1.8;
  margin-bottom: 18px;
}
.project-gallery {
  grid-column: 1 / -1;
  padding: 18px 26px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.project-gallery > summary {
  min-height: 32px;
  font-size: 12px;
  color: var(--text);
}
.prototype-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 740px;
  margin: 16px auto 4px;
}
.prototype-gallery figure,
.garage-photo {
  margin: 0;
}
.prototype-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 3/4;
  border-radius: 10px;
  background: var(--art);
}
.prototype-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 60%;
}
.project-gallery figcaption {
  margin-top: 10px;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
.garage-photo {
  max-width: 580px;
  margin: 14px auto 5px;
}
.garage-photo img {
  display: block;
  width: 100%;
  max-height: 640px;
  object-fit: cover;
  border-radius: 10px;
}
@media (hover: hover) and (pointer: fine) {
  .light-control:hover {
    border-color: #bed7ed;
  }
}
@media (max-width: 720px) {
  .garage-art {
    padding: 12px 12px 24px;
  }
  .reader-art {
    padding: 10px 24px 24px;
  }
  .reader-concept {
    max-width: 420px;
    margin-inline: auto;
  }
  .project-gallery {
    padding: 18px 22px;
  }
  .light-control {
    font-size: 9px;
    padding-inline: 8px;
  }
  .prototype-gallery {
    gap: 12px;
  }
  .brand-name {
    font-size: 13px;
  }
}
@media (max-width: 360px) {
  .brand-name {
    display: inline;
    font-size: 10px;
  }
  .brand-logo {
    width: 36px;
    height: 36px;
  }
  .wordmark {
    gap: 8px;
  }
  .header-inner {
    gap: 8px;
  }
  .languages button {
    min-width: 30px;
  }
  .controls {
    gap: 8px;
  }
  .theme-toggle {
    width: 36px;
    height: 36px;
  }
  .prototype-gallery {
    grid-template-columns: 1fr;
  }
}
.store-art {
  padding: 30px 14px;
  background: var(--art);
  min-width: 0;
}
.store-home-illustration {
  display: block;
  width: 100%;
  height: auto;
}
.project-meta {
  gap: 14px;
  align-items: flex-start;
}
.project-meta > span:first-child {
  min-width: 0;
  line-height: 1.65;
}
.project-meta > span:last-child {
  flex-shrink: 0;
}
/* A compact contact sheet: four equal frames, with the entire photo visible. */
.garage-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 760px;
  margin: 20px auto 6px;
  align-items: stretch;
}
.garage-gallery figure,
.garage-gallery .garage-overview {
  grid-column: auto;
  width: auto;
  max-width: none;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
}
.garage-gallery a {
  display: block;
  aspect-ratio: 4/5;
  padding: 10px;
  overflow: hidden;
  background: var(--art);
}
.garage-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  border-radius: 6px;
}
.garage-gallery figcaption {
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 12px 16px;
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
}
@media (max-width: 720px) {
  .store-art {
    padding: 22px 12px;
  }
  .garage-gallery {
    gap: 12px;
  }
  .garage-gallery a {
    padding: 7px;
  }
  .garage-gallery figcaption {
    padding: 10px 12px;
  }
}
@media (max-width: 480px) {
  .garage-gallery {
    grid-template-columns: 1fr;
    max-width: 360px;
    gap: 16px;
  }
}

/* Crisp product previews: no filter on the content layer. */
.pinway-art {
  padding: 24px 18px;
  background: #102128;
}
.pinway-illustration {
  display: block;
  width: 100%;
  height: auto;
}
.pinway-art .illustration-note {
  color: #a2c3b1;
}
.store-art {
  padding: 24px 18px;
  background: #edf0e8;
}
@media (max-width: 720px) {
  .pinway-art,
  .store-art {
    padding: 18px 12px;
  }
}
