@font-face {
  font-family: Manrope;
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('assets/fonts/manrope-latin.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --background: #0b1320;
  --surface: #121e2e;
  --surface-raised: #172538;
  --text: #eaf1fa;
  --muted: #aabbd0;
  --accent: #82d7cf;
  --accent-hover: #a5e9e3;
  --accent-ink: #0b1320;
  --line: #2c3b50;
  --header: #0b1320;
  --radius: 10px;
  --content: 1160px;
}

:root[data-theme='light'] {
  color-scheme: light;
  --background: #e5ebf2;
  --surface: #dce4ee;
  --surface-raised: #d1dce8;
  --text: #17283f;
  --muted: #485c74;
  --accent: #176b65;
  --accent-hover: #10534e;
  --accent-ink: #f2f7fb;
  --line: #afbecf;
  --header: #e5ebf2;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--background); color: var(--text); font: 16px/1.75 Manrope, 'Segoe UI', sans-serif; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1.15rem; color: var(--muted); }
h1, h2, h3 { margin: 0; color: var(--text); font-weight: 600; line-height: 1.18; text-wrap: balance; }
h1 { font-size: clamp(2.55rem, 5.2vw, 4.4rem); letter-spacing: -.065em; }
h2 { font-size: clamp(1.8rem, 3.15vw, 2.7rem); letter-spacing: -.045em; }
h3 { font-size: 1.45rem; letter-spacing: -.035em; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
.container { width: min(var(--content), calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: absolute; top: 12px; left: 20px; z-index: 10; padding: 10px 18px; border-radius: 6px; background: var(--accent); color: var(--accent-ink); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

/* One shared header keeps navigation and keyboard behavior consistent. */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--header); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 88px; display: flex; align-items: center; gap: 28px; }
.site-brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.05rem; font-weight: 700; letter-spacing: -.035em; flex-shrink: 0; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 36px; border: 1px solid var(--line); border-radius: 7px; font-size: .75rem; font-weight: 600; color: var(--accent); }
.brand-dot { color: var(--accent); margin-left: -8px; }
.primary-nav { display: flex; align-items: center; gap: 26px; margin-left: auto; font-size: .875rem; }
.primary-nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); }
.primary-nav a:hover, .primary-nav a[aria-current='page'] { color: var(--accent); }
.primary-nav .nav-contact { padding: 8px 15px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); }
.theme-toggle, .menu-toggle { background: transparent; color: var(--muted); border: 0; padding: 8px 3px; min-height: 44px; font-size: .8125rem; display: inline-flex; align-items: center; gap: 6px; }
.theme-toggle:hover, .menu-toggle:hover { color: var(--accent); }
.theme-symbol { font-size: 1.2rem; }
.menu-toggle { display: none; }
.eyebrow, .project-category { color: var(--accent); font-size: .75rem; line-height: 1.55; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; margin-bottom: 17px; }
.accent-text { color: var(--accent); }
.action-row, .link-row { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 22px; min-height: 48px; padding: 11px 19px; border: 1px solid var(--line); border-radius: 7px; font-weight: 600; font-size: .875rem; transition: background-color .15s ease, border-color .15s ease; }
.button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.secondary:hover { background: var(--surface-raised); border-color: var(--accent); }
.text-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: .875rem; color: var(--accent); }
.text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.section-space { padding-top: 76px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 32px; }
.section-heading:has(> .eyebrow) { display: block; }
.section-heading .eyebrow { margin-bottom: 11px; }
.section-heading > .text-link { flex-shrink: 0; }

/* The homepage leads with identity and evidence, rather than repeated skill cards. */
.home-hero { display: grid; grid-template-columns: 1.65fr 1fr; align-items: center; gap: 64px; padding-top: 68px; padding-bottom: 51px; }
.home-hero h1 { font-size: clamp(2.8rem, 5.8vw, 4.7rem); line-height: 1.1; margin-bottom: 26px; }
.hero-intro { max-width: 580px; font-size: 1.125rem; line-height: 1.8; margin-bottom: 16px; }
.hero-role { max-width: 600px; font-size: .8125rem; margin: 0; }
.hero-portrait { width: 100%; max-width: 330px; margin: 0; justify-self: end; }
.hero-portrait img { width: 100%; aspect-ratio: 1/1.05; object-fit: cover; object-position: 50% 44%; border-radius: var(--radius); }
.hero-portrait figcaption { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: .75rem; padding-top: 12px; }
.hero-portrait figcaption span:first-child { color: var(--text); }
.focus-line { display: flex; justify-content: space-between; gap: 24px; padding-top: 20px; padding-bottom: 22px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .8125rem; }
.focus-line span::before { content: '+'; margin-right: 12px; color: var(--accent); }
.selected-work { padding-top: 52px; }
.project-row { display: grid; grid-template-columns: 36px minmax(180px, .95fr) minmax(220px, 1.35fr) auto; gap: 30px; align-items: center; padding: 29px 0; border-top: 1px solid var(--line); }
.project-row:last-child { border-bottom: 1px solid var(--line); }
.project-number { color: var(--accent); font-size: .75rem; align-self: start; padding-top: 5px; }
.project-category { font-size: .6875rem; letter-spacing: .1em; margin-bottom: 9px; }
.project-summary h3 { font-size: 1.6rem; }
.project-description p { font-size: .9375rem; margin-bottom: 6px; }
.project-description .project-note { font-size: .75rem; color: var(--muted); margin-bottom: 0; }
.project-link { color: var(--accent); display: inline-flex; align-items: center; gap: 18px; padding: 12px 0 12px 8px; min-height: 44px; font-size: .8125rem; white-space: nowrap; }
.project-link:hover { text-decoration: underline; text-underline-offset: 6px; }
.gaming-feature { background: var(--surface); display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 48px; padding: 38px; border-radius: var(--radius); }
.gaming-copy h2 { margin-bottom: 21px; }
.gaming-copy p { font-size: .9375rem; }
.gaming-copy .gaming-note { font-size: .8125rem; margin-bottom: 25px; }
.gaming-media { margin: 0; min-width: 0; }
.gameplay-main { border-radius: 6px; aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.handheld-strip { display: flex; align-items: center; gap: 14px; padding-top: 16px; }
.handheld-strip img { width: 70px; aspect-ratio: 10/9; image-rendering: pixelated; border-radius: 3px; }
.handheld-strip span { font-size: .75rem; color: var(--muted); }
.gaming-media figcaption { padding-top: 13px; color: var(--muted); font-size: .6875rem; }
.background-section { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
.background-section h2 { margin-bottom: 16px; }
.prose p { margin-bottom: 18px; }
.prose h2 { margin-bottom: 20px; }
.explore-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 48px; }
.explore-item, .contact-option { display: block; padding: 26px 0; border-top: 1px solid var(--line); }
.explore-item h3 { margin-bottom: 13px; font-size: 1.5rem; }
.explore-item p { font-size: .9375rem; margin-bottom: 12px; }
.explore-item:hover h3, .contact-option:hover h3 { color: var(--accent); }
.contact-close { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding-bottom: 80px; }
.contact-close h2 { margin-bottom: 18px; }
.contact-close p:last-child { margin-bottom: 0; }
.contact-close > .button { flex-shrink: 0; }

/* Interior pages use the same open, editorial rhythm. */
.page-intro { padding-top: 75px; padding-bottom: 5px; }
.page-intro h1 { margin-bottom: 27px; max-width: 950px; }
.page-intro .lead { max-width: 790px; font-size: 1.15rem; line-height: 1.8; }
.page-intro > .container > p:not(.eyebrow):not(.lead), .page-intro > p:not(.eyebrow):not(.lead) { max-width: 790px; }
.page-intro .action-row { margin-bottom: 22px; }
.intro-grid { display: grid; grid-template-columns: 1.5fr 1fr; align-items: center; gap: 60px; }
.intro-grid .portrait { margin: 0; width: 100%; max-width: 330px; justify-self: end; }
.portrait img { width: 100%; aspect-ratio: 1/1.12; object-fit: cover; object-position: 50% 43%; border-radius: var(--radius); }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px 56px; }
.detail-block { border-top: 1px solid var(--line); padding-top: 23px; min-width: 0; }
.detail-block h3 { margin-bottom: 15px; }
.detail-block p:last-child { margin-bottom: 0; }
.detail-block .eyebrow { margin-bottom: 14px; }
.feature-list { margin: 20px 0 0; padding: 0; list-style: none; color: var(--muted); }
.feature-list li { position: relative; padding-left: 20px; margin-bottom: 10px; }
.feature-list li::before { content: '+'; position: absolute; left: 0; color: var(--accent); }
.resume-option { display: grid; grid-template-columns: 1fr auto; gap: 45px; padding: 30px 0; border-top: 1px solid var(--line); align-items: center; }
.resume-option:last-child { border-bottom: 1px solid var(--line); }
.resume-option h3 { margin-bottom: 12px; }
.resume-option p:last-child { margin-bottom: 0; max-width: 610px; }
.resume-option .eyebrow { margin-bottom: 7px; font-size: .6875rem; }
.resume-option .link-row { margin-top: 0; gap: 20px; }
.contact-option h3 { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 12px; font-size: 1.3rem; }
.contact-option h3 span { color: var(--accent); }
.contact-option p { font-size: .9375rem; margin-bottom: 0; }
.feature-band { display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 32px; background: var(--surface); border-radius: var(--radius); }
.feature-band .prose { max-width: 720px; }
.feature-band .text-link { flex-shrink: 0; }
.feature-band p:last-child { margin-bottom: 0; }
main > .section-space:last-child { padding-bottom: 90px; }
.site-footer { padding: 37px 0 22px; border-top: 1px solid var(--line); }
.footer-top { display: flex; justify-content: space-between; gap: 40px; }
.footer-name { color: var(--text); font-size: 1.2rem; font-weight: 600; letter-spacing: -.04em; }
.footer-name span { color: var(--accent); }
.footer-top p { font-size: .8125rem; margin-top: 8px; }
.footer-links { display: flex; gap: 26px; align-items: start; flex-wrap: wrap; color: var(--muted); font-size: .8125rem; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 18px; color: var(--muted); font-size: .6875rem; }

@media (max-width: 1000px) {
  .container { width: min(var(--content), calc(100% - 56px)); }
  .header-inner { gap: 20px; }
  .primary-nav { gap: 18px; }
  .home-hero { gap: 40px; grid-template-columns: 1.5fr 1fr; }
  .home-hero h1 { font-size: clamp(2.65rem, 5.7vw, 4.7rem); }
  .hero-portrait figcaption { flex-direction: column; gap: 0; }
  .project-row { grid-template-columns: 24px .9fr 1.2fr auto; gap: 20px; }
  .project-link > span:first-child { display: none; }
  .project-link { font-size: 1.25rem; padding: 10px; }
  .gaming-feature { gap: 28px; padding: 28px; }
  .background-section, .intro-grid { gap: 40px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 100px; }
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 75px; gap: 17px; flex-wrap: wrap; }
  .site-brand { margin-right: auto; font-size: .9375rem; }
  .brand-mark { width: 29px; height: 31px; }
  .brand-dot { margin-left: -8px; }
  .navigation-ready .menu-toggle { display: inline-flex; }
  .theme-toggle { order: 2; }
  .menu-toggle { order: 3; color: var(--text); }
  .primary-nav { order: 4; margin: 0; width: 100%; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0 18px; }
  .primary-nav a { padding: 10px 5px; min-height: 48px; font-size: .9375rem; }
  .primary-nav .nav-contact { margin-top: 9px; padding-inline: 14px; }
  .home-hero { padding-top: 42px; padding-bottom: 34px; grid-template-columns: 1fr; gap: 32px; }
  .home-hero h1 { font-size: clamp(2.6rem, 7.7vw, 3.8rem); }
  .hero-intro { font-size: 1.0625rem; }
  .hero-role { max-width: 480px; }
  .hero-portrait { max-width: none; justify-self: start; }
  .hero-portrait img { width: 100%; max-height: 320px; aspect-ratio: 1.4/1; object-position: 50% 36%; }
  .hero-portrait figcaption { flex-direction: row; }
  .focus-line { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; font-size: .75rem; }
  .section-space { padding-top: 52px; }
  .section-heading { align-items: start; flex-direction: column; gap: 12px; margin-bottom: 25px; }
  .section-heading > .text-link { min-height: 34px; }
  .project-row { grid-template-columns: 24px minmax(0, 1fr) 44px; gap: 12px; padding: 25px 0; }
  .project-summary { grid-column: 2; }
  .project-number { grid-row: 1; }
  .project-description { grid-column: 2 / 4; grid-row: 2; }
  .project-link { grid-column: 3; grid-row: 1; align-self: start; }
  .project-category { font-size: .6875rem; }
  .project-summary h3 { font-size: 1.4rem; }
  .gaming-feature { grid-template-columns: 1fr; padding: 25px; gap: 28px; }
  .gaming-copy .button { max-width: 100%; }
  .gaming-media figcaption { font-size: .6875rem; }
  .background-section, .intro-grid, .editorial-grid, .explore-grid, .contact-grid { grid-template-columns: 1fr; gap: 26px; }
  .intro-grid .portrait { width: 100%; max-width: none; justify-self: start; }
  .intro-grid .portrait img { aspect-ratio: 1.25/1; max-height: 350px; object-position: 50% 37%; }
  .contact-close { align-items: start; flex-direction: column; gap: 25px; padding-bottom: 56px; }
  .page-intro { padding-top: 44px; }
  .page-intro .lead { font-size: 1.0625rem; }
  .resume-option { grid-template-columns: 1fr; gap: 20px; padding: 25px 0; }
  .resume-option .link-row { gap: 24px; }
  .feature-band { flex-direction: column; align-items: start; gap: 20px; padding: 25px; }
  .footer-top { flex-direction: column; gap: 12px; }
  .footer-links { gap: 14px 22px; }
  .footer-bottom { font-size: .6875rem; flex-wrap: wrap; gap: 8px; }
  main > .section-space:last-child { padding-bottom: 58px; }
}
@media (max-width: 380px) {
  .header-inner { gap: 12px; }
  .site-brand { gap: 7px; }
  .brand-mark { display: none; }
  .brand-dot { margin-left: -5px; }
  .theme-label { display: none; }
  .theme-toggle { width: 44px; justify-content: center; }
  h1 { font-size: 2.35rem; }
  .home-hero h1 { font-size: 2.45rem; }
  .hero-portrait figcaption { font-size: .6875rem; gap: 12px; }
  .action-row { gap: 16px; }
  .gaming-feature { padding: 19px; }
  .handheld-strip { gap: 10px; }
  .handheld-strip img { width: 58px; }
  .contact-option h3 { font-size: 1.15rem; }
  .page-intro p a { overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  :root, :root[data-theme='light'] { color-scheme: light; --background: #fff; --surface: #fff; --text: #17283f; --muted: #35465b; --accent: #176b65; --accent-ink: #fff; --line: #a9b5c4; }
  .site-header, .site-footer, .skip-link { display: none; }
  .container { width: 100%; }
  .page-intro { padding-top: 0; }
  .section-space { padding-top: 28px; }
  .resume-option, .detail-block { break-inside: avoid; }
}
