/*
 * Art direction: a game engineer's editorial portfolio.
 * Graphite canvas, solid slate surfaces, and clear ivory typography. Amber
 * identifies primary actions, ice blue supports technical detail, and green
 * accompanies a release label. Actual gameplay supplies the rich color.
 * Space and fine borders carry the hierarchy; motion is brief and deliberate.
 */
:root {
  color-scheme: dark;
  --background: #0d1117;
  --surface: #141a23;
  --surface-raised: #1b2430;
  --text: #f2f0e9;
  --muted: #adb7c4;
  --subtle: #8291a2;
  --amber: #edbd72;
  --amber-ink: #17130d;
  --ice: #9fc4da;
  --green: #a4c9aa;
  --line: #2b3542;
  --line-strong: #445364;
  --radius: 10px;
  --font-body: "Libre Franklin", "Segoe UI", Arial, sans-serif;
  --font-editorial: "Spectral", Georgia, serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 112px; }
body { margin: 0; background: var(--background); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button, select { touch-action: manipulation; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
a, button { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease; }
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
figure, p, h1, h2, h3, h4, ul { margin: 0; }
ul { padding-left: 1.2em; }
strong { font-weight: 650; }
::selection { background: var(--amber); color: var(--amber-ink); }
:focus-visible { outline: 3px solid var(--ice); outline-offset: 5px; }
[hidden] { display: none !important; }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: clamp(20px, 4.45vw, 64px); }
.selection-status, .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: 12px; left: 16px; z-index: 100; transform: translateY(-160%); padding: 12px 20px; border-radius: 6px; background: var(--amber); color: var(--amber-ink); font-weight: 650; }
.skip-link:focus { transform: none; }

/* Quiet, fully legible navigation. */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--background); border-bottom: 1px solid var(--line); }
.site-nav { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 88px; }
.classic-brand { display: inline-flex; align-items: center; flex: none; gap: 13px; min-height: 48px; }
.classic-brand > span:first-child:not(.brand-name), .brand-mark { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border: 1px solid var(--line-strong); border-radius: 7px; font-size: 14px; font-weight: 700; letter-spacing: -.03em; color: var(--amber); background: var(--surface); }
.brand-name { display: flex; flex-direction: column; font-size: 14px; font-weight: 650; line-height: 1.35; letter-spacing: -.02em; }
.brand-name small { margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .02em; }
.nav-links, .section-links { display: flex; align-items: center; }
.nav-links { gap: 28px; }
.section-links { gap: 24px; }
.section-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 13px; font-weight: 500; }
.section-links a:hover, .section-links a[aria-current], .section-links a.is-active { color: var(--amber); }
.mode-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); font-size: 13px; font-weight: 500; white-space: nowrap; }
.mode-link:hover { border-color: var(--amber); background: var(--surface); color: var(--amber); }
.menu-toggle { display: none; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 6px; color: var(--text); background: var(--surface); font-size: 13px; }
.menu-icon { font-size: 18px; line-height: 1; }

/* The actual work is the visual centerpiece. */
.hero { padding-block: 66px 60px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: clamp(36px, 5vw, 72px); }
.hero-intro, .hero-feature { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--ice); font-family: var(--font-mono); font-size: 12px; line-height: 1.6; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 22px; height: 1px; flex: none; background: currentColor; }
.hero-intro > .eyebrow { margin-bottom: 22px; }
.hero h1 { font-size: clamp(54px, 6vw, 86px); line-height: 1.02; font-weight: 600; letter-spacing: -.062em; }
.hero h1 em { color: var(--amber); font-family: var(--font-editorial); font-weight: 400; letter-spacing: -.055em; }
.hero-summary { max-width: 42ch; margin-top: 25px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.hero-summary strong { color: var(--text); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 27px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; padding: 12px 21px; border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600; line-height: 1.4; }
.button.primary { border-color: var(--amber); background: var(--amber); color: var(--amber-ink); }
.button.primary:hover { border-color: #f4ce95; background: #f4ce95; }
.button.secondary:hover { background: var(--surface-raised); border-color: var(--ice); }
.button svg, .button .arrow { width: 17px; flex: none; }
.hero-socials { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; margin-top: 10px; }
.hero-socials a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--muted); font-size: 13px; }
.hero-socials a:hover { color: var(--amber); }
.hero-location { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 9px; color: var(--muted); font-size: 12px; line-height: 1.7; }
.hero-location::before { content: ""; width: 6px; height: 6px; flex: none; border-radius: 50%; background: var(--green); }
.hero-feature { display: block; overflow: hidden; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.hero-feature:hover { border-color: var(--amber); }
.feature-image { position: relative; aspect-ratio: 1.45; overflow: hidden; background: #080c11; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }
.feature-overlay { position: absolute; inset: 16px; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 12px; color: var(--text); font-family: var(--font-mono); font-size: 10px; line-height: 1.3; }
.feature-overlay .status { order: 2; padding: 8px 10px; border: 1px solid #4b6353; border-radius: 4px; background: #15251d; color: #c4e4c9; }
.feature-overlay > span:last-child:not(.status) { align-self: flex-end; padding: 7px 9px; border: 1px solid #4d5967; border-radius: 4px; background: #111820; color: var(--text); letter-spacing: .07em; }
.feature-copy { padding: 24px 26px 22px; }
.feature-copy .eyebrow { color: var(--subtle); font-size: 10px; }
.feature-copy .eyebrow::before { display: none; }
.feature-copy h2 { margin-top: 10px; font-size: clamp(24px, 2.3vw, 31px); font-weight: 600; line-height: 1.2; letter-spacing: -.045em; }
.feature-copy p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.feature-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--amber); font-size: 13px; font-weight: 500; }
.feature-footer > :last-child { flex: none; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.metric { min-width: 0; padding: 26px 24px 28px; border-block: 1px solid var(--line); border-inline-start: 1px solid var(--line); }
.metric:first-child { border-inline-start: 0; padding-left: 0; }
.metric:last-child { padding-right: 0; }
.metric strong { display: block; font-size: clamp(29px, 2.9vw, 39px); line-height: 1.15; font-weight: 500; letter-spacing: -.055em; }
.metric span { display: block; margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.5; }

/* Project cases leave room for the engineering story. */
.section { padding-block: 96px; scroll-margin-top: 22px; }
.section + .section { padding-top: 16px; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .65fr); align-items: end; gap: 36px; margin-bottom: 36px; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { font-size: clamp(32px, 3.45vw, 46px); line-height: 1.15; font-weight: 500; letter-spacing: -.05em; }
.section-heading > p, .section-heading > div > p { max-width: 46ch; color: var(--muted); font-size: 16px; line-height: 1.8; }
.project-browser { border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.project-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 21px 28px 17px; }
.project-count { color: var(--muted); font-family: var(--font-mono); font-size: 12px; line-height: 1.5; letter-spacing: .04em; }
.project-count strong { color: var(--text); font-weight: 500; }
.project-select-label { display: none; }
.project-tabs { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 7px; padding: 0 28px 24px; border-bottom: 1px solid var(--line); }
.project-tab { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; gap: 8px; min-width: 0; min-height: 52px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--background); color: var(--muted); font-size: 13px; line-height: 1.5; text-align: left; }
.project-tab .tab-number, .project-tab > small { flex: none; color: var(--subtle); font-family: var(--font-mono); font-size: 10px; line-height: 1.8; }
.project-tab > span { min-width: 0; }
.project-tab > span:first-child { color: var(--subtle); font-family: var(--font-mono); font-size: 10px; line-height: 1.95; }
.project-tab .tab-release { color: var(--green); font-size: 7px; line-height: 2.8; }
.project-tab:hover { border-color: var(--line-strong); color: var(--text); background: var(--surface-raised); }
.project-tab[aria-current="true"], .project-tab[aria-pressed="true"], .project-tab[aria-selected="true"], .project-tab.is-active { border-color: var(--amber); background: #30291f; color: var(--text); }
.project-tab[aria-current="true"] > span:first-child, .project-tab[aria-pressed="true"] .tab-number, .project-tab[aria-selected="true"] .tab-number { color: var(--amber); }
.project-case { padding: 30px 28px 28px; }
.case-heading { display: flex; align-items: flex-start; gap: 17px; margin-bottom: 28px; }
.case-number { flex: none; padding-top: 8px; color: var(--amber); font-family: var(--font-mono); font-size: 12px; }
.case-identity { min-width: 0; flex: 1; }
.case-identity .case-title { font-size: clamp(24px, 2.7vw, 34px); line-height: 1.2; font-weight: 600; letter-spacing: -.045em; }
.case-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-bottom: 9px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.status { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-family: var(--font-mono); font-size: 11px; }
.status::before { content: ""; width: 5px; height: 5px; flex: none; border-radius: 50%; background: currentColor; }
.status.unreleased, .status.is-unreleased, .status.prototype, .status.in-development { color: var(--ice); }
.case-share { display: inline-flex; align-items: center; justify-content: center; gap: 8px; flex: none; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--muted); background: var(--background); font-size: 12px; }
.case-share:hover { color: var(--amber); border-color: var(--amber); }
.case-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; gap: 30px; }
.case-visual, .case-content { min-width: 0; }
.case-media { position: relative; display: grid; place-items: center; overflow: hidden; aspect-ratio: 16 / 11; border: 1px solid var(--line); border-radius: 7px; background: #080c11; }
.case-media img, .case-media video { width: 100%; height: 100%; object-fit: contain; }
.case-media > a { width: 100%; height: 100%; }
.case-media > a img { height: 100%; }
.video-toggle { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 9px 13px; border: 1px solid #66707a; border-radius: 5px; background: #111820; color: var(--text); font-size: 12px; line-height: 1.4; }
.video-toggle:hover { border-color: var(--amber); color: var(--amber); }
.case-visual figcaption { margin-top: 12px; color: var(--subtle); font-size: 12px; line-height: 1.7; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.tag { padding: 5px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); background: var(--background); font-family: var(--font-mono); font-size: 10px; line-height: 1.5; }
.case-summary { color: var(--text); font-size: 17px; line-height: 1.75; letter-spacing: -.015em; }
.ownership { margin-top: 20px; padding-left: 14px; border-left: 2px solid var(--amber); color: var(--muted); font-size: 16px; line-height: 1.7; }
.ownership > span:first-child { display: block; margin-bottom: 7px; color: var(--amber); font-size: 10px; font-family: var(--font-mono); letter-spacing: .07em; }
.ownership strong { display: block; color: var(--text); font-size: 16px; font-weight: 500; line-height: 1.65; }
.ownership > span:last-child:not(:first-child) { display: block; margin-top: 5px; color: var(--muted); font-size: 13px; }
.case-block { margin-top: 24px; }
.case-block h4, .case-block h2 { margin-bottom: 8px; color: var(--ice); font-size: 12px; line-height: 1.6; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.case-block p, .case-block li { color: var(--muted); font-size: 16px; line-height: 1.8; }
.case-block ul { display: grid; gap: 7px; }
.case-block li::marker, .role-row li::marker { color: var(--subtle); }
.case-outcome { margin-top: 24px; padding: 16px 18px; border: 1px solid #384a3d; border-radius: 6px; background: #18241d; }
.case-outcome h4, .case-outcome h2 { color: var(--green); }
.case-outcome p, .case-outcome li { color: #c0cec3; }
.case-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; }
.case-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--amber); font-size: 13px; font-weight: 500; }
.case-links a:hover { text-decoration: underline; text-underline-offset: 5px; }
.evidence-note { color: var(--subtle); font-size: 12px; line-height: 1.8; }
.share-link-input { display: block; width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid var(--ice); border-radius: 5px; color: var(--text); background: var(--background); font-size: 13px; }
.project-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 28px; border-top: 1px solid var(--line); background: #111720; border-radius: 0 0 var(--radius) var(--radius); }
.project-pagination button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 44px; min-width: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--text); font-size: 12px; }
.project-pagination button:hover { border-color: var(--amber); color: var(--amber); }
.project-pagination button:disabled { opacity: .45; cursor: default; }
.project-pagination > span, .project-pagination p { color: var(--muted); font-family: var(--font-mono); font-size: 11px; text-align: center; }
.earlier-work { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 24px; margin-top: 24px; padding: 19px 0; border-bottom: 1px solid var(--line); }
.earlier-work h3 { color: var(--text); font-size: 13px; font-weight: 600; }
.earlier-work p, .earlier-work a { color: var(--muted); font-size: 13px; line-height: 1.8; }
.earlier-work a:hover { color: var(--amber); }

/* A concise professional record and a practical toolkit. */
.experience-list { border-top: 1px solid var(--line); }
.role-row { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1fr); gap: 64px; padding-block: 31px; border-bottom: 1px solid var(--line); }
.role-meta h3 { font-size: 21px; line-height: 1.4; font-weight: 550; letter-spacing: -.03em; }
.role-meta p { margin-top: 6px; color: var(--ice); font-size: 14px; }
.role-meta time { display: block; margin-top: 13px; color: var(--subtle); font-family: var(--font-mono); font-size: 11px; }
.role-index { display: block; margin-bottom: 13px; color: var(--subtle); font-family: var(--font-mono); font-size: 11px; }
.role-meta .role-dates { margin-top: 11px; color: var(--subtle); font-family: var(--font-mono); font-size: 11px; }
.role-row ul { display: grid; align-content: start; gap: 9px; }
.role-row li { padding-left: 3px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.tools-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.tool-card { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.tool-number { display: block; margin-bottom: 21px; color: var(--amber); font-family: var(--font-mono); font-size: 11px; }
.tool-card > .eyebrow { margin-bottom: 15px; color: var(--subtle); font-size: 10px; }
.tool-card h3 { font-size: 23px; line-height: 1.35; font-weight: 550; letter-spacing: -.035em; }
.tool-card p { margin-top: 12px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.tool-card .tag-row { margin-top: 20px; }
.tool-card > a, .tool-card .tool-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; color: var(--amber); font-size: 13px; }
.tool-card > a:hover, .tool-card .tool-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.skills-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.skill-card { min-width: 0; padding: 25px 24px; border-top: 2px solid var(--line-strong); background: var(--surface); border-radius: 0 0 7px 7px; }
.skill-card h3 { margin-bottom: 15px; color: var(--ice); font-size: 15px; font-weight: 550; }
.skill-card ul { display: grid; gap: 8px; list-style: none; padding: 0; }
.skill-card li { color: var(--muted); font-size: 16px; line-height: 1.7; }

/* Contact closes with a clear next action. */
#contact { padding-top: 40px; padding-bottom: 64px; }
.contact-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 64px; padding: 46px 44px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.contact-copy, .contact-details { min-width: 0; }
.contact-copy h2 { max-width: 12ch; margin-top: 18px; font-size: clamp(36px, 4vw, 52px); line-height: 1.12; font-weight: 500; letter-spacing: -.05em; }
.contact-copy h2 em { color: var(--amber); font-family: var(--font-editorial); font-weight: 400; }
.contact-copy > p:not(.eyebrow) { max-width: 42ch; margin-top: 21px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact-email { display: inline-flex; align-items: center; min-height: 44px; margin-top: 12px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.contact-email:hover { color: var(--amber); }
.contact-details { display: grid; align-content: center; gap: 25px; padding-left: 36px; border-left: 1px solid var(--line); }
.contact-details h3 { margin-bottom: 8px; color: var(--subtle); font-family: var(--font-mono); font-size: 10px; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; }
.contact-details p, .contact-details a { color: var(--text); font-size: 14px; line-height: 1.8; }
.contact-details p + p { margin-top: 13px; }
.contact-details p > span:not(.language-level) { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.language-level { color: var(--muted); font-size: 12px; }
.contact-details a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.contact-details a:hover { color: var(--amber); }
.contact-links { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 22px; }
.contact-links a { min-height: 44px; color: var(--muted); font-size: 13px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; padding-block: 22px 30px; border-top: 1px solid var(--line); color: var(--subtle); font-size: 11px; line-height: 1.7; }
.site-footer a { display: inline-flex; align-items: center; gap: 13px; min-height: 44px; color: var(--muted); }
.site-footer a span { color: var(--subtle); }
.site-footer a:hover { color: var(--amber); }
.noscript-projects { display: grid; gap: 24px; margin-top: 28px; }
.noscript-projects article { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.noscript-projects h3 { margin-bottom: 12px; font-size: 22px; font-weight: 550; }
.noscript-projects p, .noscript-projects li { color: var(--muted); font-size: 15px; line-height: 1.8; }
.noscript-projects a { display: inline-flex; align-items: center; min-height: 44px; color: var(--amber); }

@media (min-width: 1500px) {
  .hero { padding-block: 80px 72px; }
}
@media (max-width: 1100px) {
  .site-nav { gap: 20px; }
  .nav-links { gap: 18px; }
  .section-links { gap: 17px; }
  .brand-name { font-size: 13px; }
  .brand-name small { font-size: 10px; }
  .hero-grid { gap: 36px; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
  .hero h1 { font-size: clamp(54px, 6.45vw, 72px); }
  .feature-copy { padding: 22px; }
  .feature-image { aspect-ratio: 1.3; }
  .project-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .case-layout { gap: 25px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .case-summary { font-size: 16px; }
  .contact-panel { padding: 36px 32px; gap: 36px; }
  .contact-details { padding-left: 28px; }
}
@media (max-width: 900px) {
  .hero { padding-block: 50px; }
  .hero-grid { gap: 28px; }
  .hero h1 { font-size: 60px; }
  .hero-summary { font-size: 16px; }
  .hero-actions { gap: 9px; }
  .hero-actions .button { padding-inline: 16px; font-size: 13px; }
  .feature-copy { padding: 20px; }
  .feature-copy h2 { font-size: 25px; }
  .feature-copy p { font-size: 16px; }
  .feature-footer { font-size: 12px; }
  .section { padding-block: 76px; }
  .section-heading { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 28px; }
  .case-layout { grid-template-columns: 1fr; gap: 27px; }
  .case-media { aspect-ratio: 16 / 9; }
  .case-content { max-width: 72ch; }
  .role-row { gap: 36px; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .tool-card { padding: 24px; }
  .skills-grid { gap: 12px; }
  .skill-card { padding-inline: 19px; }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 92px; }
  .site-nav { min-height: 76px; gap: 16px; }
  .nav-links { gap: 10px; }
  .mode-link { padding-inline: 12px; }
  .menu-toggle:not([hidden]) { display: inline-flex; }
  .js-navigation .section-links { display: none; position: absolute; top: 100%; left: 0; right: 0; padding: 14px clamp(20px, 4.45vw, 64px) 20px; border-bottom: 1px solid var(--line-strong); background: var(--surface); }
  .js-navigation .section-links.is-open { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .js-navigation .section-links a { justify-content: center; min-height: 48px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 5px; color: var(--text); font-size: 13px; }
  .js-navigation .section-links a:hover, .js-navigation .section-links a[aria-current] { background: var(--surface-raised); border-color: var(--amber); color: var(--amber); }
  body:not(.js-navigation) .site-nav { flex-wrap: wrap; padding-block: 12px; }
  body:not(.js-navigation) .nav-links { flex-wrap: wrap; justify-content: flex-start; }
  body:not(.js-navigation) .section-links { flex-wrap: wrap; gap: 4px 16px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); }
  .hero h1 { font-size: 54px; }
  .hero-socials { gap: 18px; }
  .feature-image { aspect-ratio: 1.12; }
  .contact-panel { grid-template-columns: 1fr; gap: 32px; }
  .contact-copy h2 { max-width: 16ch; }
  .contact-details { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; padding-left: 0; padding-top: 26px; border-left: 0; border-top: 1px solid var(--line); }
  .contact-details > :last-child { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  .container { padding-inline: 24px; }
  .site-nav { min-height: 74px; }
  .classic-brand { gap: 10px; }
  .classic-brand > span:first-child:not(.brand-name), .brand-mark { width: 36px; height: 36px; font-size: 12px; }
  .brand-name { font-size: 12px; }
  .brand-name small { font-size: 9px; }
  .mode-link { min-height: 44px; padding-inline: 11px; font-size: 13px; }
  .menu-toggle { padding-inline: 11px; }
  .menu-text { display: none; }
  .js-navigation .section-links { padding-inline: 24px; }
  .hero { padding-block: 43px 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero h1 { font-size: clamp(52px, 12.5vw, 72px); line-height: 1.02; letter-spacing: -.065em; }
  .hero-intro > .eyebrow { margin-bottom: 21px; font-size: 11px; letter-spacing: .08em; }
  .hero-summary { max-width: 45ch; margin-top: 22px; font-size: 16px; }
  .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-actions .button { min-height: 50px; padding-inline: 19px; font-size: 14px; }
  .hero-socials { gap: 22px; margin-top: 10px; }
  .hero-location { margin-top: 4px; }
  .hero-feature { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1fr); }
  .feature-image { aspect-ratio: auto; min-height: 240px; }
  .feature-image img { position: absolute; inset: 0; object-position: center; }
  .feature-overlay { inset: 10px; font-size: 9px; }
  .feature-overlay .status { padding: 7px 8px; font-size: 10px; }
  .feature-copy { padding: 22px 18px 18px; }
  .feature-copy .eyebrow { font-size: 9px; letter-spacing: .07em; }
  .feature-copy h2 { font-size: 24px; }
  .feature-copy p { font-size: 16px; }
  .feature-footer { margin-top: 16px; padding-top: 13px; font-size: 11px; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric { padding: 21px 0 23px; border-block: 0; border-bottom: 1px solid var(--line); }
  .metric:nth-child(odd) { border-inline-start: 0; padding-right: 18px; }
  .metric:nth-child(even) { padding-left: 24px; }
  .metric:nth-child(-n + 2) { border-top: 1px solid var(--line); }
  .metric strong { font-size: 32px; }
  .metric span { margin-top: 6px; font-size: 12px; }
  .section { padding-block: 62px; }
  .section + .section { padding-top: 4px; }
  .section-heading { display: block; margin-bottom: 26px; }
  .section-heading h2 { font-size: 34px; }
  .section-heading > p, .section-heading > div > p { max-width: 48ch; margin-top: 18px; font-size: 16px; }
  .section-heading .eyebrow { font-size: 11px; }
  .project-toolbar { display: block; padding: 20px; border-bottom: 1px solid var(--line); }
  .project-count { font-size: 11px; }
  .project-tabs { display: none; }
  .project-select-label { display: flex; flex-direction: column; gap: 9px; margin-top: 15px; color: var(--muted); font-size: 12px; }
  .project-select-label select { width: 100%; max-width: 100%; min-height: 48px; padding: 11px 36px 11px 13px; border: 1px solid var(--line-strong); border-radius: 5px; background-color: var(--background); color: var(--text); font-size: 14px; font-weight: 500; }
  .project-case { padding: 24px 20px; }
  .case-heading { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 23px; }
  .case-number { padding-top: 5px; font-size: 11px; }
  .case-identity .case-title { font-size: 27px; }
  .case-meta { gap: 7px 12px; margin-top: 0; margin-bottom: 8px; font-size: 11px; }
  .case-share { justify-self: start; min-height: 44px; padding-inline: 11px; font-size: 12px; }
  .case-layout { gap: 24px; }
  .case-media { aspect-ratio: 4 / 3; }
  .video-toggle { top: 8px; right: 8px; min-height: 44px; padding: 8px 11px; font-size: 11px; }
  .case-visual figcaption { font-size: 11px; }
  .tag-row { gap: 6px; margin-top: 14px; }
  .tag { font-size: 9px; padding: 5px 7px; }
  .case-summary { font-size: 16px; }
  .case-block { margin-top: 22px; }
  .case-block p, .case-block li { font-size: 16px; }
  .case-outcome { margin-top: 22px; padding: 15px; }
  .project-pagination { padding: 15px 20px; gap: 10px; }
  .project-pagination button { gap: 6px; padding-inline: 10px; font-size: 11px; }
  .project-pagination > span, .project-pagination p { font-size: 10px; }
  .earlier-work { display: block; margin-top: 18px; }
  .earlier-work h3 { margin-bottom: 8px; }
  .role-row { grid-template-columns: 1fr; gap: 21px; padding-block: 27px; }
  .role-meta h3 { font-size: 22px; }
  .role-meta time { margin-top: 9px; }
  .role-row li { font-size: 16px; }
  .tools-grid { grid-template-columns: 1fr; gap: 14px; }
  .tool-card { padding: 24px; }
  .skills-grid { grid-template-columns: 1fr; gap: 12px; }
  .skill-card { padding: 22px 24px; }
  .skill-card h3 { margin-bottom: 12px; font-size: 16px; }
  .skill-card ul { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 18px; }
  .skill-card li { font-size: 16px; }
  #contact { padding-top: 10px; padding-bottom: 40px; }
  .contact-panel { gap: 28px; padding: 28px 24px; }
  .contact-copy h2 { font-size: 39px; }
  .contact-copy > p:not(.eyebrow) { margin-top: 20px; font-size: 16px; }
  .contact-actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 24px; }
  .contact-actions .button { min-height: 52px; padding-inline: 16px; font-size: 14px; }
  .contact-details { grid-template-columns: 1fr; gap: 19px; padding-top: 24px; }
  .contact-details > :last-child { grid-column: auto; }
  .contact-details p, .contact-details a { font-size: 13px; }
  .contact-links { gap: 5px 21px; }
  .site-footer { display: block; padding-block: 20px 24px; font-size: 10px; }
  .site-footer > :last-child { margin-top: 6px; }
}
@media (max-width: 400px) {
  .container { padding-inline: 20px; }
  .site-nav { gap: 10px; }
  .classic-brand { gap: 8px; }
  .classic-brand > span:first-child:not(.brand-name), .brand-mark { width: 32px; height: 36px; }
  .brand-name { font-size: 11px; }
  .brand-name small { font-size: 8px; }
  .nav-links { gap: 7px; }
  .mode-link { padding-inline: 9px; font-size: 13px; }
  .menu-toggle { padding-inline: 10px; }
  .js-navigation .section-links { padding-inline: 20px; }
  .js-navigation .section-links.is-open { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: clamp(45px, 13vw, 52px); }
  .hero-intro > .eyebrow { font-size: 10px; letter-spacing: .05em; }
  .hero-summary { font-size: 16px; }
  .hero-actions { display: grid; grid-template-columns: 1fr; align-items: stretch; gap: 10px; }
  .hero-actions .button { min-height: 50px; padding-inline: 16px; font-size: 14px; text-align: center; }
  .hero-socials { gap: 19px; }
  .hero-socials a { font-size: 12px; }
  .hero-location { font-size: 11px; }
  .hero-feature { grid-template-columns: 1fr; }
  .feature-image { aspect-ratio: 16 / 10; min-height: 0; }
  .feature-copy { padding: 21px; }
  .feature-copy p { font-size: 16px; }
  .feature-copy h2 { font-size: 27px; }
  .feature-footer { font-size: 12px; }
  .metric strong { font-size: 30px; }
  .metric span { font-size: 11px; }
  .section-heading h2 { font-size: 32px; }
  .project-toolbar, .project-case { padding-inline: 16px; }
  .case-identity .case-title { font-size: 25px; }
  .case-heading { gap: 9px; }
  .case-share { margin-left: 0; }
  .project-pagination { padding-inline: 16px; }
  .project-pagination button { padding-inline: 8px; }
  .skill-card ul { grid-template-columns: 1fr; }
  .contact-panel { padding: 26px 20px; }
  .contact-copy h2 { font-size: 35px; }
  .contact-actions .button { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Keep the overview quick to scan; deeper evidence stays one action away. */
.disclosure { margin-top: 15px; }
.disclosure summary, .screen-disclosure summary { cursor: pointer; }
.disclosure summary { min-height: 44px; padding-block: 9px; color: var(--ice); font-size: 14px; }
.disclosure summary:hover { color: var(--amber); }
.disclosure[open] summary { margin-bottom: 12px; }
.disclosure ul { padding-bottom: 8px; }
.core-skills { display: grid; gap: 18px; margin-bottom: 28px; }
.core-skills > div { display: grid; grid-template-columns: minmax(180px, .4fr) minmax(0, 1fr); gap: 30px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.core-skills h3 { color: var(--ice); font-size: 16px; font-weight: 550; }
.core-skills p { color: var(--muted); font-size: 16px; }
.toolkit-details { margin-top: 24px; }
.toolkit-details > summary { border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.back-link { display: inline-flex; min-height: 44px; align-items: center; color: var(--ice); font-size: 14px; }
.back-link:hover { color: var(--amber); }
.case-page-label { margin: 12px 0 26px; }
[data-project-page] #work { padding-top: 30px; }
.case-contact { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; padding-block: 20px 60px; }
.case-contact h2 { margin-top: 12px; font-size: 28px; line-height: 1.3; letter-spacing: -.035em; }
.case-contact .contact-actions { margin-top: 0; }
.case-links .button.primary { color: var(--amber-ink); }
@media (max-width: 680px) {
  .core-skills > div { grid-template-columns: 1fr; gap: 8px; }
  .case-media { aspect-ratio: 16 / 10; }
  .case-contact { display: block; padding-bottom: 40px; }
  .case-contact .contact-actions { margin-top: 24px; }
}

.role-highlight, .earlier-projects > p { color: var(--muted); font-size: 16px; line-height: 1.8; }

.feature-overlay .status.unreleased { border-color: #4d6278; background: #15212e; color: #b7d4e7; }
.case-project-navigation { border-top: 1px solid var(--line-strong); background: var(--background); border-radius: 0 0 var(--radius) var(--radius); }
.case-project-navigation .project-toolbar { padding-top: 26px; }
.case-project-navigation .project-toolbar h2 { font-size: 20px; line-height: 1.4; font-weight: 550; letter-spacing: -.025em; }
.case-project-navigation .project-tabs { border-bottom: 0; }
@media (min-width: 901px) and (min-height: 620px) {
  [data-project-page] .case-visual { position: sticky; top: 114px; }
}

/* Clear positioning and released-game evidence beside the lead project. */
.hero-role { margin-top: 18px; color: var(--text); font-size: 18px; font-weight: 600; line-height: 1.5; }
.hero-role + .hero-summary { margin-top: 12px; }
.release-proof { display: grid; gap: 4px; max-width: 390px; margin-top: 20px; padding: 12px 16px; border-left: 2px solid var(--green); background: var(--surface); border-radius: 0 6px 6px 0; }
.release-proof:hover { background: var(--surface-raised); }
.release-proof-label { color: var(--green); font-size: 12px; line-height: 1.5; }
.release-proof > strong { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 16px; }
.release-proof-results { display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 13px; }
.release-proof-results b { color: var(--text); font-weight: 600; }
@media (max-width: 680px) { .hero-role { font-size: 16px; } }
