:root {
  color-scheme: light;
  --paper: #fff;
  --surface: #f5f7fa;
  --surface-blue: #edf6ff;
  --ink: #262b33;
  --muted: #616b79;
  --line: #e3e8ef;
  --blue: #2196f3;
  --accent: #0875c9;
  --night: #161d29;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #11151c;
  --surface: #191f29;
  --surface-blue: #172b40;
  --ink: #edf1f7;
  --muted: #aab5c5;
  --line: #2c3441;
  --accent: #65b7ff;
  --night: #0b1018;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
::selection { background: #bce0ff; color: #172332; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, [tabindex="0"]:focus-visible { outline: 3px solid var(--blue); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; font-weight: 650; }
h1 { font-size: clamp(36px, 4.5vw, 52px); }
h2 { font-size: 29px; }
h3 { font-size: 23px; }
p { color: var(--muted); }
[hidden] { display: none !important; }
.wrap { width: min(1080px, calc(100% - 80px)); margin-inline: auto; }
.eyebrow { font-size: 11px; font-weight: 500; letter-spacing: .025em; color: var(--muted); }
.status-dot { display: inline-block; flex-shrink: 0; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); margin-right: 9px; }
.skip-link { position: fixed; top: -80px; left: 20px; padding: 12px 20px; background: var(--ink); color: var(--paper); z-index: 100; }
.skip-link:focus { top: 12px; }
.header-shell { position: sticky; top: 0; background: var(--paper); z-index: 20; border-bottom: 1px solid var(--line); }
.site-header { height: 86px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; padding-block: 10px; }
.brand-name { font-size: 20px; font-weight: 650; line-height: 1.3; letter-spacing: -.04em; white-space: nowrap; }
nav { display: flex; align-items: center; gap: 30px; font-size: 13px; font-weight: 500; }
nav > a { position: relative; padding-block: 15px; }
nav > a:hover, nav > a[aria-current] { color: var(--accent); }
nav > a[aria-current]::after { content: ''; position: absolute; height: 2px; background: var(--accent); left: 0; right: 0; bottom: 7px; }
.theme-toggle { display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0; }
.theme-toggle:hover { background: var(--surface-blue); }
.sun-icon { display: none; }
[data-theme="dark"] .sun-icon { display: block; }
[data-theme="dark"] .moon-icon { display: none; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 80px; align-items: center; padding-block: 64px 56px; }
.intro-name { font-size: 16px; color: var(--ink); margin-bottom: 16px; }
.hero h1 { font-size: clamp(34px, 4vw, 46px); letter-spacing: -.045em; line-height: 1.2; }
.hero h1 > span { color: var(--accent); }
.hero-intro { font-size: 16px; line-height: 1.8; max-width: 620px; margin-top: 24px; }
.hero-location { font-size: 13px; margin-top: 12px; }
.hero-portrait { width: 280px; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; margin-top: 26px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 12px 18px; border: 1px solid var(--accent); border-radius: 7px; background: var(--accent); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.5; transition: background .15s; }
[data-theme="dark"] .button:not(.button-outline):not(.button-light) { color: #0b1c2e; }
.button > span { font-size: 18px; font-weight: 400; line-height: 1; }
.button:hover { filter: brightness(.93); }
.button-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.button-outline:hover { background: var(--surface-blue); filter: none; }
.button-light { background: #fff; color: #172332; border-color: #fff; }
.availability { display: inline-flex; align-items: center; font-size: 12px; color: var(--muted); margin-top: 23px; }
.availability:hover { color: var(--accent); }
.section { padding-top: 60px; }
#selected-work { padding-top: 24px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.text-link { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; font-weight: 550; line-height: 1.5; padding-block: 9px; }
.text-link > span { font-size: 18px; font-weight: 400; }
.text-link:hover { color: var(--accent); }
.section-heading > .text-link { white-space: nowrap; }
.featured-project { display: grid; grid-template-columns: 1.15fr 1fr; border-radius: 14px; background: var(--night); color: #fff; overflow: hidden; }
.featured-copy { padding: 36px; align-self: center; }
.project-heading { display: flex; align-items: center; gap: 16px; }
.app-icon { width: 52px; height: 52px; border-radius: 13px; flex-shrink: 0; }
.project-heading .eyebrow { color: #acb9cc; font-size: 11px; }
.featured-title { font-size: 34px; margin-top: 4px; }
.featured-copy > p { color: #c0cad9; font-size: 14px; margin-top: 22px; line-height: 1.8; }
.project-details { color: #c0cad9; padding-left: 18px; margin: 18px 0 0; font-size: 13px; line-height: 1.75; }
.project-details > li + li { margin-top: 8px; }
.project-details > li::marker { color: #65b7ff; }
.featured-project .actions { gap: 12px 20px; }
.featured-project .text-link:hover { color: #65b7ff; }
.app-showcase { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: center; gap: 20px; background: #1b283b; padding: 36px 28px; }
.app-showcase img { width: 100%; max-width: 185px; margin-inline: auto; }
.app-showcase figcaption { color: #bccadc; text-align: center; font-size: 11px; margin-top: 14px; }
.project-note { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding-block: 28px; border-bottom: 1px solid var(--line); }
.project-note > img { border-radius: 10px; }
.project-note h3 { font-size: 21px; }
.project-note p { font-size: 14px; max-width: 650px; margin-top: 8px; }
.experience-row { display: grid; grid-template-columns: 150px 230px minmax(0, 1fr); gap: 24px; padding-block: 25px; border-top: 1px solid var(--line); }
.experience-row:last-child { border-bottom: 1px solid var(--line); }
.job-period { color: var(--muted); font-size: 12px; padding-top: 3px; }
.experience-row h3 { font-size: 21px; }
.experience-row > div > p { font-size: 13px; margin-top: 6px; }
.job-location { font-size: 11px; color: var(--muted); display: block; margin-top: 5px; }
.job-summary { font-size: 14px; line-height: 1.75; }
.earlier-experience { margin-top: 20px; font-size: 13px; }
.site-footer { margin-top: 60px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 0; border-block: 1px solid var(--line); }
.footer-top h2 { font-size: 26px; }
.email-link { font-size: 20px; letter-spacing: -.025em; padding-block: 10px; display: inline-flex; align-items: center; gap: 14px; }
.email-link > span { color: var(--accent); }
.email-link:hover { color: var(--accent); }
.footer-bottom { padding-block: 24px; display: flex; justify-content: space-between; gap: 20px; font-size: 11px; color: var(--muted); }
.footer-bottom > div { display: flex; gap: 24px; }
.footer-bottom a:hover { color: var(--accent); }
.back-top { white-space: nowrap; }
.page-intro { padding-block: 54px 36px; }
.page-intro h1 { margin-top: 12px; }
.page-intro h1 > span { color: var(--accent); }
.page-intro > p:not(.eyebrow) { margin-top: 20px; max-width: 690px; font-size: 17px; }
.project-collection { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.project-collection > .featured-project { grid-column: 1 / -1; }
.project-card { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.project-art { height: 240px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.caffeine-art { background: var(--surface-blue); }
.caffeine-art > img { width: 105px; height: 105px; border-radius: 23px; }
.game-art { background: var(--surface); }
.game-art > img { width: 100%; height: 100%; object-fit: cover; }
.project-card-copy { padding: 28px; }
.project-card h2 { font-size: 27px; margin-top: 10px; }
.project-card p:not(.eyebrow) { margin-top: 16px; font-size: 14px; line-height: 1.8; }
.tags { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0; padding: 0; }
.tags > li { border: 1px solid var(--line); border-radius: 4px; color: var(--muted); font-size: 11px; padding: 4px 8px; line-height: 1.5; }
.archive-heading { margin-top: 50px; }
.archive-heading h2 { font-size: 27px; }
.archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 44px; margin-top: 24px; }
.archive-grid article { border-top: 1px solid var(--line); padding-top: 22px; }
.archive-grid h3 { font-size: 21px; }
.archive-grid p { margin-top: 12px; font-size: 14px; }
.resume-intro { display: flex; justify-content: space-between; align-items: center; gap: 32px; }
.resume-intro > div > p { font-size: 17px; margin-top: 16px; }
.resume-actions { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.document-source { color: var(--muted); font-size: 11px; }
.resume-document { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.document-pages { max-width: 860px; margin-inline: auto; padding: 40px; }
.document-pages figure + figure { margin-top: 32px; }
.document-pages img { width: 100%; box-shadow: 0 4px 25px #2332430f; }
.document-pages a { display: block; background: #fff; }
.document-pages figcaption { font-size: 11px; text-align: center; margin-top: 14px; color: var(--muted); }
.case-intro .back-link { margin-bottom: 20px; }
.case-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; padding: 36px 50px 24px; background: var(--surface-blue); border-radius: 14px; }
.case-gallery img { width: 100%; max-height: 490px; object-fit: contain; }
.case-gallery figcaption { font-size: 12px; color: var(--muted); text-align: center; margin-top: 16px; }
.case-section { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding-block: 36px; border-bottom: 1px solid var(--line); }
.case-section:last-child { border: 0; padding-bottom: 0; }
.case-section h2 { font-size: 27px; }
.case-section p { margin-bottom: 15px; }
.build-details { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.build-details h3 { font-size: 20px; margin-bottom: 12px; }
.build-details p { font-size: 14px; }
.error-page { min-height: 55vh; }
.error-page .button { margin-top: 28px; }

@media (max-width: 960px) {
  .hero { grid-template-columns: minmax(0, 1fr) 220px; gap: 40px; }
  .hero h1 { font-size: 36px; }
  .hero-portrait { width: 220px; }
  .featured-copy { padding: 28px; }
  .app-showcase { gap: 14px; padding-inline: 20px; }
  .experience-row { grid-template-columns: 130px 190px minmax(0, 1fr); gap: 18px; }
  .footer-top { align-items: flex-start; flex-direction: column; gap: 14px; }
}
@media (max-width: 820px) {
  .wrap { width: calc(100% - 48px); }
  .hero { grid-template-columns: minmax(0, 1fr) 190px; gap: 32px; }
  .hero-portrait { width: 190px; }
  .hero h1 { font-size: 32px; }
  .featured-project { grid-template-columns: 1fr; }
  .featured-copy { padding: 32px; }
  .app-showcase { grid-template-columns: repeat(2, minmax(0, 185px)); justify-content: center; gap: 32px; padding: 28px; }
  .experience-row { grid-template-columns: 140px minmax(0, 1fr); }
  .job-summary { grid-column: 2; }
  .project-note { grid-template-columns: 48px minmax(0, 1fr); }
  .project-note > .text-link { grid-column: 2; justify-self: start; }
  .case-section { grid-template-columns: 1fr; gap: 24px; }
  .case-gallery { padding-inline: 25px; gap: 24px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 92px; }
  .wrap { width: calc(100% - 40px); }
  .site-header { height: 74px; gap: 14px; }
  .brand-name { font-size: 17px; }
  nav { gap: 16px; font-size: 12px; }
  .theme-toggle { width: 34px; height: 34px; }
  .hero { grid-template-columns: 1fr; padding-block: 32px 40px; gap: 24px; }
  .hero-portrait { grid-row: 1; width: 96px; border-radius: 12px; }
  .hero h1 { font-size: clamp(28px, 7.2vw, 38px); }
  .intro-name { margin-bottom: 12px; font-size: 15px; }
  .hero-intro { margin-top: 20px; font-size: 15px; }
  .hero-location { font-size: 12px; }
  .actions { gap: 14px 20px; margin-top: 22px; }
  .availability { font-size: 11px; margin-top: 20px; }
  .section { padding-top: 42px; }
  #selected-work { padding-top: 12px; }
  .section-heading { margin-bottom: 20px; gap: 12px; }
  .section-heading h2 { font-size: 25px; }
  .section-heading > .text-link { font-size: 12px; gap: 7px; }
  .featured-copy { padding: 24px; }
  .project-heading { gap: 12px; }
  .project-heading .eyebrow { font-size: 10px; }
  .app-icon { width: 46px; height: 46px; border-radius: 12px; }
  .featured-title { font-size: 30px; }
  .featured-copy > p { margin-top: 20px; }
  .app-showcase { gap: 18px; padding: 24px 20px; }
  .app-showcase figcaption { font-size: 10px; }
  .project-note { gap: 12px 16px; }
  .project-note h3 { font-size: 20px; }
  .project-note p { font-size: 13px; }
  .experience-row { grid-template-columns: 1fr; gap: 10px; padding-block: 22px; }
  .job-period { font-size: 11px; }
  .experience-row h3 { font-size: 21px; }
  .job-summary { grid-column: auto; margin-top: 2px; }
  .earlier-experience { font-size: 12px; }
  .site-footer { margin-top: 42px; }
  .footer-top { padding-block: 28px; gap: 14px; }
  .footer-top h2 { font-size: 25px; }
  .email-link { font-size: clamp(16px, 4.5vw, 20px); gap: 8px; }
  .footer-bottom { flex-wrap: wrap; gap: 18px; }
  .back-top { display: none; }
  .page-intro { padding-block: 35px 28px; }
  .page-intro h1 { font-size: 38px; }
  .page-intro > p:not(.eyebrow) { font-size: 15px; margin-top: 16px; }
  .project-collection { grid-template-columns: 1fr; gap: 22px; }
  .project-art { height: 210px; }
  .project-card-copy { padding: 24px; }
  .project-card h2 { font-size: 26px; }
  .archive-heading { margin-top: 40px; }
  .archive-heading h2 { font-size: 25px; }
  .archive-grid { grid-template-columns: 1fr; gap: 24px; }
  .resume-intro { display: block; }
  .resume-intro > div > p { font-size: 15px; }
  .resume-actions { align-items: flex-start; margin-top: 22px; gap: 10px; }
  .document-pages { padding: 18px 12px; }
  .case-gallery { display: flex; gap: 20px; overflow-x: auto; padding: 24px 20px; scroll-snap-type: x proximity; }
  .case-gallery figure { flex: 0 0 min(66vw, 220px); scroll-snap-align: center; }
  .case-gallery img { max-height: none; }
  .case-gallery figcaption { font-size: 11px; }
  .case-section { gap: 22px; padding-block: 28px; }
  .case-section h2 { font-size: 25px; }
  .case-section p { font-size: 14px; }
  .build-details { grid-template-columns: 1fr; gap: 20px; }
}
@media (max-width: 420px) {
  .site-header { gap: 10px; }
  .brand-name { font-size: 15px; }
  nav { gap: 12px; }
  .section-heading h2 { font-size: 23px; }
  .featured-copy { padding: 22px; }
}
@media (max-width: 350px) {
  .brand-name { font-size: 14px; }
  nav { gap: 9px; }
  .hero .actions { gap: 15px; }
  .hero .button, .hero .text-link { font-size: 12px; }
  .section-heading > .text-link { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  @page { size: A4; margin: 0; }
  body { background: #fff; }
  .header-shell, .site-footer, .skip-link, .resume-intro, .document-pages figcaption { display: none !important; }
  .wrap, .document-pages { width: 100%; max-width: none; margin: 0; padding: 0; }
  .resume-document { border: 0; border-radius: 0; }
  .document-pages figure { break-after: page; }
  .document-pages figure + figure { margin-top: 0; }
  .document-pages img { box-shadow: none; width: 100%; }
}
