:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f5f7f9;
  --panel: #ffffff;
  --text: #172c3e;
  --muted: #536272;
  --border: #dce3e9;
  --accent: #175b7b;
  --accent-soft: #eaf2f6;
  --green: #27644b;
  --green-soft: #edf5ef;
  --header: rgba(255, 255, 255, .96);
  --shadow: 0 12px 40px rgba(25, 45, 65, .05);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111c27;
  --surface: #172430;
  --panel: #1b2b39;
  --text: #edf2f7;
  --muted: #b0bdc9;
  --border: #344451;
  --accent: #9bcde5;
  --accent-soft: #243d4b;
  --green: #b2dcc2;
  --green-soft: #233c32;
  --header: rgba(17, 28, 39, .96);
  --shadow: none;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
button { font: inherit; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 3px; }
::selection { background: var(--accent-soft); color: var(--text); }
[hidden] { display: none !important; }
.container { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 12px; padding: 12px 20px; z-index: 110; color: var(--bg); background: var(--text); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; top: 0; z-index: 10; border-bottom: 1px solid var(--border); background: var(--header); backdrop-filter: blur(12px); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 82px; gap: 30px; }
.nav-logo { display: inline-flex; gap: 13px; align-items: center; font-size: 14px; font-weight: 650; white-space: nowrap; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; background: var(--text); color: var(--bg); font-size: 21px; font-weight: 750; border-radius: 6px; letter-spacing: -1px; }
.nav-links { display: flex; gap: 28px; font-size: 13px; color: var(--muted); }
.nav-links a:hover { text-decoration: underline; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-contact { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; }
.theme-toggle { border: 1px solid var(--border); background: transparent; color: var(--text); width: 33px; height: 33px; border-radius: 50%; cursor: pointer; }
.menu-toggle { display: none; width: 36px; height: 36px; align-items: center; justify-content: center; flex-direction: column; gap: 6px; background: transparent; border: 1px solid var(--border); border-radius: 5px; cursor: pointer; }
.menu-toggle span { width: 16px; height: 1.5px; background: var(--text); }
.mobile-nav { display: flex; flex-direction: column; padding-block: 10px 20px; }
.mobile-nav a { padding: 9px 0; }
.hero { display: grid; grid-template-columns: 1.5fr 1fr; column-gap: 90px; padding-top: 94px; }
.eyebrow { text-transform: uppercase; font-size: 11px; font-weight: 650; letter-spacing: 1.8px; color: var(--accent); margin-bottom: 19px; }
h1 { font-size: clamp(46px, 5vw, 68px); line-height: 1.05; letter-spacing: -3px; font-weight: 650; }
h1 > span { color: var(--accent); }
.hero-heading { font-size: clamp(24px, 2.7vw, 35px); font-weight: 450; line-height: 1.3; letter-spacing: -.9px; margin-top: 23px; }
.hero-description { font-size: 15px; line-height: 1.85; color: var(--muted); max-width: 550px; margin-top: 23px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.button { display: inline-flex; gap: 13px; align-items: center; justify-content: center; padding: 12px 18px; border: 1px solid var(--border); border-radius: 5px; font-size: 13px; font-weight: 600; transition: border-color .15s; }
.button-primary { color: var(--bg); background: var(--text); border-color: var(--text); }
.button-primary:hover { color: var(--bg); background: var(--accent); border-color: var(--accent); }
.button-secondary:hover { border-color: var(--accent); background: var(--accent-soft); }
.button-note { font-size: 10px; font-weight: 400; opacity: .8; border-inline-start: 1px solid currentColor; padding-left: 12px; }
.hero-socials { display: flex; gap: 25px; color: var(--muted); font-size: 12px; margin-top: 22px; }
.hero-socials a { display: flex; gap: 7px; }
.profile-panel { align-self: center; border: 1px solid var(--border); border-radius: 9px; padding: 28px 29px 0; box-shadow: var(--shadow); background: var(--panel); }
.availability { display: inline-flex; align-items: center; gap: 8px; color: var(--green); background: var(--green-soft); font-size: 11px; padding: 6px 10px; border-radius: 4px; font-weight: 600; }
.availability > span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.panel-label { text-transform: uppercase; font-size: 10px; letter-spacing: 1.4px; color: var(--muted); margin: 25px 0 4px; }
.profile-facts > div { padding: 11px 0; border-bottom: 1px solid var(--border); }
.profile-facts > div:last-child { border-bottom: 0; }
.profile-facts dt { font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.profile-facts dd { font-size: 13px; font-weight: 550; line-height: 1.6; }
.profile-facts dd span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); }
.panel-contact { display: flex; justify-content: space-between; gap: 12px; padding: 16px 0; margin-top: 9px; border-top: 1px solid var(--border); color: var(--accent); font-size: 12px; font-weight: 600; }
.hero-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 27px 0; margin-top: 72px; border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.hero-foot > span span { color: #8996a3; margin-inline: 14px; }
.hero-foot a { white-space: nowrap; }
.hero-foot a span { margin-left: 12px; }
.section { padding-block: 82px; }
.section-tinted { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 45px; margin-bottom: 42px; }
.section-heading .eyebrow { margin-bottom: 12px; }
h2 { font-size: clamp(25px, 3vw, 33px); font-weight: 550; line-height: 1.25; letter-spacing: -1px; text-wrap: balance; }
.section-heading > p { max-width: 275px; color: var(--muted); font-size: 13px; line-height: 1.75; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -.3px; }
.project-list { border-top: 1px solid var(--border); }
.project { display: grid; grid-template-columns: 44px minmax(0, 1fr) 165px; gap: 24px; padding: 34px 0; border-bottom: 1px solid var(--border); }
.project-index { color: var(--muted); font-size: 11px; padding-top: 4px; font-variant-numeric: tabular-nums; }
.project-meta { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: 10px; margin-bottom: 8px; }
.project h3 { font-size: 22px; margin-bottom: 12px; }
.project-body > p { color: var(--muted); font-size: 14px; max-width: 670px; }
.tech-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin-top: 19px; }
.tech-list li { padding: 3px 9px; background: var(--panel); border: 1px solid var(--border); border-radius: 3px; font-size: 10px; color: var(--muted); }
.project-status { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; padding-top: 1px; }
.tag { display: inline-block; padding: 4px 10px; border: 1px solid var(--border); border-radius: 4px; font-size: 10px; line-height: 1.6; color: var(--muted); white-space: nowrap; }
.tag-progress { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.private-note { color: var(--muted); font-size: 10px; }
.text-link { display: inline-flex; gap: 16px; margin-top: 19px; font-size: 12px; font-weight: 600; color: var(--accent); }
.text-link:hover { text-decoration: underline; }
.project-details { margin-top: 18px; font-size: 12px; color: var(--accent); }
summary { cursor: pointer; width: fit-content; }
.project-details > div { padding: 14px 0 0 17px; color: var(--muted); font-size: 13px; border-left: 2px solid var(--border); margin-top: 12px; }
.project-details p + p { margin-top: 9px; }
.experience-list { border-top: 1px solid var(--border); }
.experience-row { display: grid; grid-template-columns: 140px minmax(0, 1fr) 115px; gap: 26px; padding: 27px 0; border-bottom: 1px solid var(--border); }
.date { font-size: 11px; font-variant-numeric: tabular-nums; color: var(--muted); padding-top: 4px; }
.organization { font-size: 13px; color: var(--accent); margin-top: 4px; }
.experience-row div > p:last-child { font-size: 13px; color: var(--muted); margin-top: 10px; }
.experience-row > .tag { justify-self: end; align-self: start; }
.other-experience { padding-top: 26px; }
.other-experience > summary { font-size: 13px; font-weight: 600; }
.other-experience > summary span { color: var(--muted); font-size: 11px; font-weight: 400; margin-left: 16px; }
.other-experience-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 28px; }
.other-experience-list h3 { font-size: 14px; margin-top: 7px; }
.other-experience-list article > p:last-child { font-size: 12px; color: var(--muted); margin-top: 7px; }
.education-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.education-card { background: var(--panel); border: 1px solid var(--border); border-radius: 7px; padding: 28px; display: flex; flex-direction: column; }
.education-institution { color: var(--accent); font-size: 12px; font-weight: 550; margin-top: 22px; }
.education-card h3 { font-size: 19px; margin-top: 4px; }
.education-card h3 + p { color: var(--muted); font-size: 13px; margin-top: 14px; margin-bottom: 26px; }
.grade { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 18px; margin-top: auto; }
.grade > span { font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--muted); }
.grade strong { font-size: 25px; line-height: 1.3; font-weight: 550; letter-spacing: -.7px; }
.grade small { color: var(--muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.secondary-education { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 25px; padding: 23px 0 0; }
.secondary-education h3 { font-size: 14px; }
.secondary-education div > p { font-size: 12px; color: var(--muted); margin-top: 5px; }
.secondary-education > p { text-align: right; font-size: 12px; }
.secondary-education > p span { display: block; font-size: 11px; color: var(--muted); }
.skills-columns { display: grid; grid-template-columns: 1.25fr .8fr 1.2fr; gap: 40px; }
.skills-columns > div { border-top: 1px solid var(--border); padding-top: 20px; }
.skills-columns h3 { font-size: 12px; margin-bottom: 16px; }
.skill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 9px; padding: 0; }
.skill-list li { font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 6px 11px; border-radius: 4px; }
.study-list li { color: var(--accent); background: var(--accent-soft); border-color: transparent; }
.about-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 95px; }
.about-copy { max-width: 590px; margin-top: 26px; color: var(--muted); font-size: 14px; }
.about-copy p + p { margin-top: 17px; }
.languages { padding-top: 5px; }
.languages h3 { font-size: 13px; margin-bottom: 18px; }
.languages dl > div { display: flex; justify-content: space-between; gap: 15px; padding: 12px 0; border-top: 1px solid var(--border); font-size: 13px; }
.languages dd { color: var(--muted); font-size: 11px; }
.contact-section { display: grid; grid-template-columns: 1.4fr 1fr; gap: 100px; }
.contact-section h2 { max-width: 500px; }
.contact-section div > p:not(.eyebrow) { color: var(--muted); font-size: 14px; margin-top: 20px; max-width: 500px; }
.contact-email { display: inline-flex; align-items: center; gap: 18px; font-size: clamp(14px, 1.9vw, 21px); font-weight: 550; color: var(--accent); margin-top: 24px; overflow-wrap: anywhere; }
.contact-links { align-self: center; border-top: 1px solid var(--border); }
.contact-links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--border); font-size: 12px; }
.site-footer { border-top: 1px solid var(--border); padding: 26px 0; }
.site-footer > div { display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 11px; }
.site-footer p { font-weight: 600; }
.site-footer p span { font-weight: 400; color: var(--muted); margin-left: 16px; }
.site-footer a { color: var(--muted); }
.project-preview { margin-top: 23px; max-width: 550px; }
.project-preview img { display: block; width: 100%; height: auto; border: 1px solid var(--border); border-radius: 5px; background: #fff; }
.project-preview figcaption { font-size: 10px; color: var(--muted); margin-top: 7px; }
@media (min-width: 801px) { .mobile-nav { display: none; } }
@media (max-width: 1000px) {
  .container { width: calc(100% - 64px); }
  .nav-links { gap: 17px; }
  .hero { column-gap: 42px; padding-top: 65px; }
  .profile-panel { padding-inline: 22px; }
  .project { grid-template-columns: 30px minmax(0, 1fr) 115px; gap: 18px; }
  .about-grid, .contact-section { gap: 55px; }
  .hero-foot > span span { margin-inline: 8px; }
}
@media (max-width: 800px) {
  .nav { min-height: 70px; gap: 15px; }
  .nav-links { display: none; }
  .nav-actions { gap: 14px; }
  .menu-toggle { display: flex; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-description { max-width: 590px; }
  .profile-panel { margin-top: 40px; }
  .profile-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 25px; }
  .profile-facts > div:nth-last-child(2) { border-bottom: 0; }
  .panel-label { margin-top: 20px; }
  .hero-foot { margin-top: 40px; }
  .hero-foot > span { max-width: 390px; }
  .section { padding-block: 60px; }
  .section-heading { flex-direction: column; align-items: flex-start; gap: 18px; }
  .section-heading > p { max-width: 500px; }
  .experience-row { grid-template-columns: 105px minmax(0, 1fr); gap: 20px; }
  .experience-row > .tag { grid-column: 2; justify-self: start; }
  .skills-columns { gap: 25px; grid-template-columns: 1fr 1fr; }
  .skills-columns > div:last-child { grid-column: 1 / -1; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .contact-section { grid-template-columns: 1fr; gap: 35px; }
  .contact-links { max-width: 500px; }
}
@media (max-width: 540px) {
  .container { width: calc(100% - 40px); }
  .nav-logo { gap: 10px; font-size: 12px; }
  .logo-mark { width: 31px; height: 31px; font-size: 19px; }
  .nav-contact { display: none; }
  .hero { padding-top: 42px; }
  h1 { letter-spacing: -2px; }
  .hero-heading { font-size: 27px; }
  .hero-description { font-size: 14px; }
  .hero-actions { gap: 10px; }
  .button { padding: 12px 14px; font-size: 12px; }
  .profile-panel { padding-inline: 21px; }
  .profile-facts { display: block; }
  .profile-facts > div:nth-last-child(2) { border-bottom: 1px solid var(--border); }
  .hero-foot { align-items: flex-start; }
  .hero-foot > span { max-width: 235px; line-height: 1.9; }
  .hero-foot a { font-size: 10px; }
  .hero-foot > span span { margin-inline: 4px; }
  .section { padding-block: 48px; }
  .section-heading { margin-bottom: 30px; }
  .project { grid-template-columns: 1fr auto; gap: 13px; padding-block: 27px; }
  .project-index { grid-column: 1; grid-row: 1; }
  .project-status { grid-column: 2; grid-row: 1; }
  .project-body { grid-column: 1 / -1; grid-row: 2; }
  .project-status .private-note { display: none; }
  .project h3 { font-size: 20px; }
  .project-body > p { font-size: 13px; }
  .experience-row { grid-template-columns: 1fr; gap: 8px; }
  .experience-row > .tag { grid-column: 1; margin-top: 3px; }
  .other-experience > summary span { display: block; margin-left: 17px; margin-top: 5px; }
  .other-experience-list { grid-template-columns: 1fr; gap: 23px; }
  .education-grid { grid-template-columns: 1fr; gap: 16px; }
  .education-card { padding: 23px; }
  .secondary-education { align-items: flex-start; }
  .secondary-education > p { white-space: nowrap; }
  .secondary-education h3 { font-size: 12px; }
  .secondary-education div > p { font-size: 11px; }
  .skills-columns { grid-template-columns: 1fr; gap: 28px; }
  .skills-columns > div:last-child { grid-column: auto; }
  .site-footer > div { align-items: flex-start; }
  .site-footer p span { display: block; margin-left: 0; margin-top: 3px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  :root { --text: #111; --muted: #333; --bg: #fff; --surface: #fff; --border: #ccc; --accent: #111; }
  .site-header, .hero-foot, .hero-socials, .site-footer, .skip-link, .theme-toggle { display: none; }
  .container { width: 100%; }
  .hero, .section { padding-block: 25px; }
  .hero { column-gap: 35px; }
  .profile-panel { box-shadow: none; }
  .project, .education-card, .experience-row { break-inside: avoid; }
  .section-tinted { background: #fff; }
}

@media (max-width: 540px) {
  .project-status:has(.project-preview) { grid-column: 1 / -1; grid-row: 3; align-items: flex-start; }
  .project-status:has(.project-preview) .project-preview { max-width: 180px; margin-top: 8px; }
}
