/* Shared theme for the homepage and all project case studies.
Nocturne palette: deep indigo base, soft violet accents, amber for
small highlight touches. KVWatch memory-bar segment colours are
kept as a data-viz palette, not theme colours. */
:root {
  color-scheme: dark;
  --paper: #12101e;
  --surface: #191631;
  --surface-raised: #1f1b3d;
  --surface-deep: #0d0b18;
  --panel: #171430;
  --panel-line: #332e52;
  --ink: #e9e4f4;
  --muted: #a29bc0;
  --line: #2e2a4e;
  --accent: #a78bfa;
  --wine: #4c3a8f;
  --crimson: #c4b0ff;
  --on-wine: #ddd2ff;
  --accent-hover: #6b56c9;
  --charcoal: #1a1735;
  --sand: #221e40;
  --gold: #d9a94e;
  --title: "Space Grotesk", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, p, figure, ul, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--title); line-height: 1.15; font-weight: 600; }
a { color: inherit; text-decoration: none; }
button, a, input, summary { -webkit-tap-highlight-color: transparent; }
a, button { touch-action: manipulation; }
img, video { display: block; max-width: 100%; }
button { font: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, video:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
::selection { background: #46348a; color: var(--ink); }
.wrap { max-width: 1200px; width: calc(100% - 96px); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 10; padding: 10px 18px; background: var(--accent); color: var(--paper); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 13px; font-size: 14px; font-weight: 600; letter-spacing: -.02em; }
.monogram { width: 40px; height: 40px; display: grid; place-items: center; background: var(--wine); color: var(--on-wine); font: 600 23px var(--title); border-radius: 3px; letter-spacing: -2px; padding-right: 2px; }
.site-nav { display: flex; gap: 34px; font-size: 14px; font-weight: 500; }
.site-nav a { padding-block: 12px; }
.site-nav a:hover, .text-link:hover, .contact-links a:hover, .site-footer a:hover { color: var(--accent); }
.site-nav a:last-child span { margin-left: 8px; }
.home-hero { display: grid; grid-template-columns: 1.45fr 1fr; gap: 100px; align-items: center; padding: 58px 0; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .13em; font-weight: 600; line-height: 1.5; display: flex; align-items: center; gap: 10px; }
.hero-copy > .eyebrow { font-size: 13px; }
.accent-diamond { width: 8px; height: 8px; background: var(--crimson); transform: rotate(45deg); flex-shrink: 0; }
.hero-copy h1 { font-size: clamp(52px, 5.8vw, 80px); letter-spacing: -.065em; line-height: 1.02; margin: 23px 0 24px; }
.accent { color: var(--crimson); }
.hero-description { font-size: 22px; font-weight: 500; letter-spacing: -.04em; margin-bottom: 9px; }
.hero-summary { font-size: 16px; line-height: 1.8; max-width: 460px; color: var(--muted); }
.actions { display: flex; gap: 25px; align-items: center; flex-wrap: wrap; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 30px; padding: 12px 19px; min-height: 46px; border: 1px solid transparent; border-radius: 3px; font-size: 14px; font-weight: 600; cursor: pointer; }
.button-primary { background: var(--wine); color: var(--on-wine); }
.button-primary:hover { background: var(--accent-hover); }
.text-link { font-size: 14px; font-weight: 600; padding: 12px 0; }
.text-link span { margin-left: 12px; }
.current-work { background: var(--charcoal); color: var(--ink); padding: 28px 30px 22px; border-radius: 5px; border-top: 3px solid var(--wine); }
.current-work .eyebrow { color: var(--accent); font-size: 13px; letter-spacing: .13em; }
.status-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; flex-shrink: 0; }
.current-work h2 { font-size: 24px; letter-spacing: -.04em; line-height: 1.3; margin: 18px 0 8px; }
.current-dates { font-size: 13px; color: var(--muted); padding-bottom: 22px; }
.focus-row { display: flex; gap: 16px; border-top: 1px solid var(--line); padding: 14px 0; }
.focus-number { font-family: var(--title); font-size: 12px; color: var(--accent); margin-top: 2px; }
.focus-row h3 { font-family: var(--body); font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.focus-row p { font-size: 13px; color: var(--muted); }
.current-link { border-top: 1px solid var(--line); padding-top: 16px; display: flex; align-items: center; justify-content: space-between; font-size: 13px; color: #d9a94e; }
.current-link:hover { color: white; }
.current-work a:focus-visible { outline-color: var(--accent); }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); padding: 24px 0; }
.highlights > div { display: flex; flex-direction: column; padding: 0 30px; border-left: 1px solid var(--line); gap: 4px; }
.highlights > div:first-child { padding-left: 0; border: 0; }
.highlight-label { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.highlights strong { font-family: var(--title); font-size: 20px; font-weight: 500; letter-spacing: -.035em; }
.highlights > div > span:last-child { font-size: 14px; color: var(--muted); }
.section { padding: 64px 0 0; scroll-margin-top: 16px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 28px; }
.section-heading .eyebrow { color: var(--accent); margin-bottom: 11px; font-size: 1.67rem;}
.section-heading h2 { font-size: 32px; letter-spacing: -.05em; }
.section-heading > p { font-size: 12px; color: var(--muted); }
.featured-projects { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.project-card { border: 1px solid var(--line); border-radius: 5px; background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.project-visual { height: 265px; display: block; position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.project-visual:focus-visible { outline-offset: -5px; }
.kv-visual { background: var(--surface-raised); padding: 19px 24px 0; }
.visual-topline { font-size: 12px; color: #d9a94e; display: flex; justify-content: space-between; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 18px; }
.visual-topline > span:first-child { display: flex; align-items: center; gap: 8px; }
.small-dot { width: 5px; height: 5px; background: var(--accent); border-radius: 50%; }
.kv-visual img { width: 100%; height: auto; border: 1px solid var(--panel-line); border-radius: 4px; box-shadow: 0 12px 30px #0002; }
.hand-visual { background: #241d44; display: flex; align-items: center; padding: 0 24px; gap: 10px; }
.hand-visual-copy { width: 52%; flex-shrink: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 25px 0; }
.visual-award { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--crimson); }
.hand-display { font-family: var(--title); font-size: 32px; font-weight: 500; letter-spacing: -.045em; line-height: 1.12; }
.hand-display > span { color: var(--accent); }
.visual-caption { font-size: 13px; line-height: 1.6; color: #b3a9d6; }
.hand-visual img { width: 45%; height: 222px; object-fit: cover; object-position: center; border-radius: 5px; border: 5px solid #3a3560; box-shadow: 0 8px 22px #0003; }
.project-copy { padding: 24px 27px; display: flex; flex: 1; flex-direction: column; }
.project-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.project-copy h3 { margin: 13px 0 12px; font-size: 29px; letter-spacing: -.045em; }
.project-copy h3 a { display: flex; justify-content: space-between; align-items: center; }
.project-copy h3 span { font-size: 21px; font-weight: 400; color: var(--accent); }
.project-copy h3 a:hover { color: var(--accent); }
.project-copy > p { font-size: 16px; line-height: 1.75; color: var(--muted); margin-bottom: 19px; max-width: 470px; }
.tags { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; padding: 0; }
.tags li { font-size: 12px; font-weight: 500; padding: 4px 9px; background: #221d44; color: #b3a9d6; border-radius: 3px; line-height: 1.5; }
.project-copy > .tags { margin-top: auto; }
.project-link { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; font-size: 14px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.project-link:hover { color: var(--accent); }
.more-work-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 15px; margin: 34px 0 15px; }
.more-work-heading h3 { font-size: 17px; letter-spacing: -.02em; }
.more-work-heading > span { font-size: 14px; color: var(--muted); }
.more-work { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--line); }
.small-project { display: grid; grid-template-columns: 82px 1fr 16px; gap: 16px; align-items: center; min-width: 0; padding: 28px 22px; border-left: 1px solid var(--line); }
.small-project:first-child { padding-left: 0; border-left: 0; }
.small-project:last-child { padding-right: 0; }
.small-project img { width: 82px; height: 78px; object-fit: cover; border-radius: 3px; background: var(--sand); }
.small-category { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.small-project h4 { font-size: 18px; letter-spacing: -.04em; margin: 6px 0; }
.small-project p { font-size: 13px; line-height: 1.55; color: var(--muted); }
.small-arrow { color: var(--accent); font-size: 18px; }
.small-project:hover h4 { color: var(--accent); }
.experience-section { padding-bottom: 60px; }
.experience-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 86px; margin-top: 36px; }
.experience-entry { border-top: 1px solid var(--line); padding: 24px 0; }
.experience-top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 8px; }
.experience-top h3 { font-size: 23px; letter-spacing: -.045em; }
.experience-top > span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.role { font-size: 14px; font-weight: 500; margin-bottom: 18px; }
.experience-entry ul { padding-left: 18px; display: grid; gap: 10px; color: var(--muted); font-size: 16px; line-height: 1.75; }
.experience-entry li::marker { color: var(--accent); }
.experience-entry > p:not(.role) { font-size: 16px; color: var(--muted); line-height: 1.75; }
.experience-entry > .inline-note:not(.role) { color: var(--accent); font-size: 14px; margin-top: 14px; }
.toolkit { border-top: 1px solid var(--line); padding-top: 26px; }
.toolkit > h3 { font-size: 20px; margin-bottom: 23px; letter-spacing: -.04em; }
.toolkit dl { display: grid; gap: 18px; }
.toolkit dt { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.toolkit dd { font-size: 15px; line-height: 1.75; color: var(--muted); }
.education-section { display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px; align-items: center; padding: 34px 38px; margin-bottom: 60px; background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--wine); border-radius: 5px; }
.education-degree .eyebrow { color: var(--accent); margin-bottom: 22px; font-size: 1.67rem; }
.education-school { font-size: 16px; font-weight: 500; margin-bottom: 10px; }
.education-degree h2 { font-size: 30px; line-height: 1.25; letter-spacing: -.04em; max-width: 520px; }
.education-degree h2 span { color: var(--accent); }
.education-major { color: var(--muted); font-size: 15px; margin-top: 10px; }
.education-facts { display: grid; gap: 24px; border-left: 1px solid var(--line); padding-left: 36px; }
.education-facts dt { font-size: 11px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 7px; }
.education-facts dd { font-family: var(--title); font-size: 21px; line-height: 1.4; letter-spacing: -.025em; }
.education-facts dd span { display: block; font-family: var(--body); font-size: 14px; color: var(--accent); margin-top: 3px; letter-spacing: 0; }
.contact-section { display: flex; justify-content: space-between; align-items: center; gap: 30px; border-top: 1px solid var(--line); padding: 40px 0 48px; }
.contact-section .eyebrow { color: var(--accent); margin-bottom: 12px; font-size: 1.67rem; }
.contact-section h2 { font-size: 32px; letter-spacing: -.05em; }
.contact-section p:not(.eyebrow) { font-size: 16px; color: var(--muted); margin-top: 12px; }
.contact-links { min-width: 320px; display: grid; gap: 16px; }
.contact-links a { display: flex; justify-content: space-between; gap: 20px; font-size: 13px; }
.contact-links a:first-child { padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-links a span { color: var(--accent); }
.contact-links .social-label { display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.social-icon { flex-shrink: 0; color: var(--accent); }
.site-footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; align-items: center; padding-block: 24px; font-size: 12px; color: var(--muted); }

/* Concise project case study */
.breadcrumb { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); margin-top: 30px; padding-block: 8px; }
.breadcrumb:hover { color: var(--accent); }
.case-hero { display: grid; grid-template-columns: 1.35fr 1fr; gap: 70px; align-items: end; padding: 37px 0 34px; }
.case-hero .eyebrow { color: var(--accent); font-size: 14px; }
.case-hero h1 { font-size: clamp(48px, 6vw, 76px); letter-spacing: -.065em; margin: 14px 0 15px; }
.case-subtitle { font-size: 24px; line-height: 1.4; letter-spacing: -.035em; max-width: 500px; }
.case-intro { font-size: 17px; line-height: 1.8; color: var(--muted); margin-top: 14px; max-width: 510px; }
.case-actions { margin-top: 24px; }
.case-meta { border-top: 1px solid var(--line); padding-top: 19px; }
.case-meta dl { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 14px; }
.case-meta dt { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 6px; }
.case-meta dd { font-size: 16px; font-weight: 500; line-height: 1.55; }
.case-meta > .tags { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); }
.case-meta .tags li { font-size: 14px; }
.source-note { font-size: 15px; line-height: 1.65; color: var(--muted); margin-top: 17px; }
.source-note strong { color: var(--ink); font-weight: 500; }
.award-strip { display: flex; align-items: center; gap: 17px; background: var(--surface-raised); border: 1px solid var(--panel-line); border-radius: 3px; padding: 14px 21px; font-size: 15px; }
.award-symbol { font-size: 25px; color: var(--gold); }
.award-strip strong { font-weight: 600; }
.award-strip p { color: #a89fc0; font-size: 14px; margin-top: 2px; }
.award-strip > a { margin-left: auto; color: #c9c0e8; font-size: 14px; white-space: nowrap; text-decoration: underline; text-underline-offset: 4px; }
.demo-section { display: grid; grid-template-columns: 1.65fr 1fr; margin-top: 28px; background: var(--charcoal); color: var(--ink); border-radius: 5px; overflow: hidden; }
.demo-player { padding: 25px; display: flex; flex-direction: column; align-items: center; background: var(--surface-deep); }
.demo-player video { height: 350px; width: 100%; background: #0d0b18; border-radius: 2px; object-fit: contain; }
.demo-player figcaption { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 12px; align-self: start; }
.demo-copy { padding: 40px 32px; display: flex; flex-direction: column; justify-content: center; }
.demo-copy .eyebrow { color: var(--accent); font-size: 14px; }
.demo-copy h2 { font-size: 35px; letter-spacing: -.04em; line-height: 1.15; margin: 20px 0 16px; }
.demo-copy > p:not(.eyebrow) { color: #a29bc0; font-size: 16px; line-height: 1.75; }
.demo-copy .demo-note { border-top: 1px solid var(--line); margin-top: 26px; padding-top: 17px; font-size: 15px; line-height: 1.7; color: var(--muted); }
.case-section { padding: 42px 0; border-bottom: 1px solid var(--line); }
.case-section-heading { display: flex; align-items: baseline; gap: 25px; margin-bottom: 24px; }
.case-section-heading .eyebrow { color: var(--accent); font-size: 18px; flex-shrink: 0; }
.case-section-heading h2 { font-size: 29px; letter-spacing: -.045em; }
.case-columns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.case-columns h3 { font-size: 18px; letter-spacing: -.025em; margin-bottom: 10px; }
.case-columns p { font-size: 16px; line-height: 1.8; color: var(--muted); }
.pipeline { display: grid; grid-template-columns: repeat(4, 1fr); list-style: none; padding: 0; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.pipeline li { padding: 22px 20px; position: relative; }
.pipeline li + li { border-left: 1px solid var(--line); }
.pipeline-number { font-family: var(--title); font-size: 14px; color: var(--accent); display: block; margin-bottom: 12px; }
.pipeline h3 { font-size: 17px; margin-bottom: 8px; }
.pipeline p { font-size: 15px; color: var(--muted); line-height: 1.75; }
.pipeline .pipeline-tech { font-size: 14px; color: var(--accent); margin-top: 13px; }
.technical-notes { margin-top: 19px; font-size: 16px; }
.technical-notes summary { cursor: pointer; font-weight: 500; padding-block: 10px; color: var(--accent); width: fit-content; }
.technical-notes > div { padding: 14px 0 3px; max-width: 850px; color: var(--muted); line-height: 1.8; }
.technical-notes p + p { margin-top: 12px; }
.recognition { display: grid; grid-template-columns: 1.2fr 1fr; gap: 50px; align-items: center; }
.recognition-copy .eyebrow { color: var(--accent); margin-bottom: 16px; font-size: 18px; }
.recognition-copy h2 { font-size: 30px; letter-spacing: -.04em; line-height: 1.2; margin-bottom: 16px; }
.recognition-copy > p:not(.eyebrow) { font-size: 16px; color: var(--muted); line-height: 1.8; }
.recognition-copy .team-credit { font-size: 15px; margin-top: 20px; }
.recognition-copy .text-link { display: inline-block; margin-top: 10px; color: var(--accent); }
.recognition-photo img { width: 100%; height: auto; max-height: 300px; object-fit: cover; object-position: center 40%; border-radius: 3px; }
.recognition-photo figcaption { font-size: 14px; line-height: 1.6; color: var(--muted); margin-top: 10px; }
.project-end { display: flex; justify-content: space-between; align-items: center; padding: 34px 0 44px; gap: 20px; }
.project-end > a:first-child { font-size: 15px; font-weight: 500; }
.next-project { text-align: right; display: flex; flex-direction: column; gap: 6px; }
.next-project span { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.next-project strong { font-family: var(--title); font-size: 25px; font-weight: 500; letter-spacing: -.04em; }
.project-end a:hover { color: var(--accent); }

/* System case study: screenshot previews stay compact; links open the full images. */
.system-showcase { display: grid; grid-template-columns: 1.65fr 1fr; background: var(--charcoal); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.system-preview { padding: 24px; background: var(--surface-deep); min-width: 0; }
.screenshot-link { display: block; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; }
.screenshot-link:focus-visible { outline-offset: -4px; }
.screenshot-link:hover { border-color: var(--accent); }
.system-preview img { width: 100%; height: auto; }
.screenshot-action { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 16px; font-size: 14px; font-weight: 500; color: var(--accent); background: var(--surface); border-top: 1px solid var(--line); }
.system-preview figcaption, .fleet-preview figcaption { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 12px; }
.system-copy { display: flex; flex-direction: column; justify-content: center; padding: 32px; }
.system-copy .eyebrow { color: var(--accent); font-size: 14px; }
.system-copy h2 { font-size: 30px; line-height: 1.2; letter-spacing: -.04em; margin: 18px 0; }
.system-copy > p:not(.eyebrow) { font-size: 16px; line-height: 1.75; color: var(--muted); }
.system-features { display: grid; gap: 10px; padding: 20px 0 0 16px; font-size: 15px; line-height: 1.7; color: var(--ink); }
.system-features li::marker { color: var(--accent); }
.fleet-heading { align-items: baseline; }
.fleet-heading h2 { font-size: 29px; }
.fleet-preview img { width: 100%; height: auto; }
.case-caption { font-size: 18px; color: var(--muted); line-height: 1.8; margin-top: 20px; max-width: 880px; }

/* Hardware and game case studies. */
.inline-source { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.source-action { display: inline-block; color: var(--accent); margin-top: 12px; }
.build-showcase { grid-template-columns: 1fr 1.2fr; }
.build-photo img { height: 390px; object-fit: contain; background: #0d0b18; }
.build-gallery-feature { margin-bottom: 20px; }
.build-gallery img { width: 100%; height: auto; }
.build-gallery figcaption { color: var(--muted); font-size: 14px; line-height: 1.65; margin-top: 10px; }
.build-gallery-detail { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: stretch; }
.build-gallery-stack { display: grid; gap: 20px; }
.build-gallery-card { min-width: 0; }
.build-gallery-portrait { display: flex; flex-direction: column; }
.build-gallery-portrait .screenshot-link { flex: 1; min-height: 0; }
.build-gallery-portrait img { height: 100%; max-height: 900px; object-fit: cover; object-position: center top; }
.system-copy h3 { font-size: 27px; line-height: 1.2; letter-spacing: -.04em; margin: 18px 0; }
.case-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.decision-panel { padding: 26px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.decision-panel .eyebrow { color: var(--accent); font-size: 14px; margin-bottom: 16px; }
.decision-panel h3 { font-size: 23px; letter-spacing: -.03em; margin-bottom: 14px; }
.decision-panel > p:not(.eyebrow) { font-size: 16px; line-height: 1.8; color: var(--muted); }
.decision-panel > .decision-spec:not(.eyebrow) { border-top: 1px solid var(--line); padding-top: 16px; margin-top: 20px; font-size: 15px; color: var(--accent); }
.game-showcase { padding: 26px; background: var(--surface); border: 1px solid var(--line); border-radius: 5px; }
.game-demo-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 22px; }
.game-demo-heading .eyebrow { color: var(--accent); font-size: 14px; margin-bottom: 12px; }
.game-demo-heading h2 { font-size: 28px; letter-spacing: -.04em; }
.game-demo-heading > p { color: var(--muted); font-size: 15px; }
.game-showcase video { width: 100%; aspect-ratio: 16 / 9; max-height: 520px; background: #0d0b18; object-fit: contain; border-radius: 3px; }
.game-showcase figcaption { color: var(--muted); font-size: 14px; line-height: 1.7; margin-top: 14px; }
.case-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; }
.case-gallery img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; background: #0d0b18; }
.control-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 35px; }
.control-list > div { display: grid; grid-template-columns: 145px 1fr; align-items: baseline; gap: 12px; }
.control-list dt { font-size: 15px; color: var(--ink); }
.control-list dd { font-size: 15px; }
.control-list kbd { font: inherit; padding: 3px 7px; border: 1px solid var(--line); border-radius: 3px; background: var(--surface); }
.showcase-photo img { max-height: 380px; object-fit: contain; background: #0d0b18; }
.music-credit { font-size: 15px; }

@media (min-width: 1450px) {
  .home-hero { gap: 130px; }
  .hero-copy h1 { font-size: 84px; }
}
@media (max-width: 1050px) {
  .wrap { width: calc(100% - 64px); }
  .home-hero { gap: 45px; grid-template-columns: 1.2fr 1fr; }
  .current-work { padding: 25px; }
  .current-work h2 { font-size: 22px; }
  .hero-copy h1 { font-size: 64px; }
  .highlights > div { padding-inline: 20px; }
  .highlights strong { font-size: 16px; }
  .hand-display { font-size: 27px; }
  .project-visual { height: 235px; }
  .hand-visual { padding-inline: 20px; }
  .hand-visual img { height: 195px; }
  .small-project { grid-template-columns: 64px 1fr 12px; gap: 12px; padding-inline: 14px; }
  .small-project img { width: 64px; height: 68px; }
  .small-project h4 { font-size: 16px; }
  .experience-layout { gap: 45px; }
  .case-hero { gap: 40px; }
  .demo-copy { padding: 25px; }
  .demo-copy h2 { font-size: 30px; }
  .system-copy { padding: 24px; }
  .system-copy h2 { font-size: 26px; }
  .case-columns { gap: 24px; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 82px; }
  .brand > span:last-child { display: none; }
  .site-nav { gap: 23px; font-size: 12px; }
  .home-hero { grid-template-columns: 1fr; gap: 35px; padding: 40px 0 30px; }
  .hero-copy h1 { font-size: clamp(58px, 10vw, 76px); margin: 20px 0; }
  .hero-summary { max-width: 530px; }
  .hero-description { font-size: 20px; }
  .current-work { padding: 22px 25px; }
  .current-work h2 { font-size: 24px; }
  .current-work h2 br { display: none; }
  .current-dates { padding-bottom: 17px; }
  .focus-row { padding: 12px 0; }
  .current-link { font-size: 12px; }
  .highlights { padding: 0; grid-template-columns: 1fr; }
  .highlights > div, .highlights > div:first-child { border-left: 0; padding: 17px 0; gap: 4px; }
  .highlights > div + div { border-top: 1px solid var(--line); }
  .highlights strong { font-size: 17px; }
  .highlight-label { margin: 0; }
  .section { padding-top: 42px; }
  .section-heading { align-items: start; gap: 15px; flex-direction: column; margin-bottom: 23px; }
  .section-heading h2 { font-size: 29px; }
  .section-heading > p br { display: none; }
  .featured-projects { grid-template-columns: 1fr; gap: 24px; }
  .project-visual { height: 270px; }
  .hand-display { font-size: 32px; }
  .hand-visual img { height: 230px; max-width: 210px; }
  .project-copy { padding: 23px; }
  .project-copy > p { max-width: none; line-height: 1.75; }
  .project-link { font-size: 13px; }
  .more-work-heading { align-items: start; flex-direction: column; gap: 7px; }
  .more-work { grid-template-columns: 1fr; }
  .small-project, .small-project:first-child, .small-project:last-child { border-left: 0; padding: 20px 0; grid-template-columns: 78px 1fr 16px; gap: 18px; }
  .small-project + .small-project { border-top: 1px solid var(--line); }
  .small-project img { width: 78px; height: 74px; }
  .small-project h4 { font-size: 18px; }
  .small-project p { font-size: 13px; }
  .experience-layout { grid-template-columns: 1fr; gap: 8px; margin-top: 26px; }
  .experience-top h3 { font-size: 22px; }
  .experience-top > span { font-size: 10px; }
  .role { line-height: 1.6; }
  .toolkit dl { grid-template-columns: 1fr 1fr; gap: 23px; }
  .experience-section { padding-bottom: 40px; }
  .education-section { grid-template-columns: 1fr; gap: 26px; padding: 26px 23px; margin-bottom: 40px; }
  .education-degree h2 { font-size: 27px; }
  .education-facts { border-left: 0; border-top: 1px solid var(--line); padding: 24px 0 0; grid-template-columns: 1fr 1fr; gap: 20px; }
  .education-facts dd { font-size: 19px; }
  .contact-section { align-items: start; flex-direction: column; gap: 25px; padding-block: 30px; }
  .contact-section h2 { font-size: 29px; }
  .contact-links { width: 100%; min-width: 0; }
  .site-footer { flex-wrap: wrap; font-size: 10px; gap: 14px; }
  .site-footer > span:nth-child(2) { display: none; }
  .breadcrumb { margin-top: 22px; }
  .case-hero { grid-template-columns: 1fr; gap: 28px; padding: 25px 0; }
  .case-hero h1 { font-size: clamp(45px, 10vw, 65px); }
  .case-subtitle { font-size: 22px; }
  .award-strip { padding: 14px; gap: 12px; flex-wrap: wrap; }
  .award-strip > a { margin-left: 0; }
  .demo-section { grid-template-columns: 1fr; }
  .system-showcase { grid-template-columns: 1fr; }
  .build-photo img { height: 340px; }
  .build-gallery-detail { grid-template-columns: 1fr; }
  .build-gallery-portrait img { height: auto; max-height: 720px; }
  .case-duo, .case-gallery, .control-list { grid-template-columns: 1fr; }
  .decision-panel { padding: 23px; }
  .game-showcase { padding: 17px; }
  .game-demo-heading { flex-direction: column; align-items: start; gap: 12px; }
  .game-demo-heading h2 { font-size: 25px; }
  .control-list > div { grid-template-columns: minmax(110px, .8fr) 1fr; }
  .system-preview { padding: 17px; }
  .system-copy { padding: 26px; }
  .system-copy h2 { font-size: 28px; }
  .system-features { font-size: 14px; }
  .demo-player { padding: 17px; }
  .demo-player video { height: 360px; }
  .demo-copy { padding: 28px; }
  .demo-copy h2 { margin: 13px 0; font-size: 30px; }
  .demo-copy .demo-note { margin-top: 20px; }
  .case-section { padding-block: 32px; }
  .case-section-heading { flex-direction: column; gap: 10px; }
  .case-section-heading h2 { font-size: 27px; }
  .case-columns { grid-template-columns: 1fr; gap: 25px; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline li { padding: 20px 17px; }
  .pipeline li:nth-child(3) { border-left: 0; }
  .pipeline li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .recognition { grid-template-columns: 1fr; gap: 25px; }
  .recognition-photo img { max-height: 340px; }
  .project-end > a:first-child { font-size: 13px; }
  .next-project strong { font-size: 22px; }
}
@media (max-width: 380px) {
  .wrap { width: calc(100% - 32px); }
  .site-nav { gap: 18px; }
  .hero-copy h1 { font-size: 55px; }
  .hero-description { font-size: 18px; }
  .actions { gap: 16px; }
  .current-work h2 { font-size: 21px; }
  .hand-display { font-size: 26px; }
  .hand-visual { padding: 0 15px; gap: 0; }
  .hand-visual img { width: 48%; height: 215px; }
  .experience-top { align-items: start; flex-direction: column; gap: 7px; }
  .toolkit dl { grid-template-columns: 1fr; }
  .education-facts { grid-template-columns: 1fr; }
  .contact-links a { font-size: 12px; }
  .case-meta dl { gap: 20px 10px; }
  .pipeline { grid-template-columns: 1fr; }
  .pipeline li + li { border-left: 0; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
/* KVWatch: compact dashboard snapshot for the homepage project card. */
.kv-visual { height: 310px; padding-inline: 20px; }
.kv-thumb { display: flex; flex-direction: column; gap: 6px; height: 250px; color: #e9e4f4; }
.kv-thumb-main { display: grid; grid-template-columns: 1.55fr .8fr; gap: 6px; flex: 1; min-height: 0; }
.kv-thumb-requests, .kv-thumb-throughput, .kv-thumb-memory { min-width: 0; background: var(--panel); border: 1px solid var(--panel-line); border-radius: 4px; padding: 7px 9px; }
.kv-thumb-panel-title { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 3px; font-size: 10px; }
.kv-thumb-panel-title strong { font-size: 11px; font-weight: 600; white-space: nowrap; }
.kv-thumb-panel-title span { color: #8f88b0; white-space: nowrap; }
.kv-thumb-request-head, .kv-thumb-request-row { display: grid; grid-template-columns: 1.15fr .9fr .8fr; gap: 5px; align-items: center; padding: 3px 0; border-bottom: 1px solid var(--panel-line); font-size: 9px; }
.kv-thumb-request-head { color: #8f88b0; text-transform: uppercase; }
.kv-thumb-request-head strong, .kv-thumb-request-row strong { font-size: 10px; font-weight: 600; color: #e9e4f4; white-space: nowrap; }
.kv-thumb-request-row.is-featured strong { color: #d9a94e; }
.kv-thumb-throughput { display: flex; flex-direction: column; gap: 3px; }
.kv-thumb-throughput > span { color: #8f88b0; font-size: 9px; text-transform: uppercase; }
.kv-thumb-throughput > strong { font-family: var(--title); font-size: 20px; line-height: 1.1; letter-spacing: -.035em; }
.kv-thumb-throughput svg { display: block; width: 100%; height: 38px; margin-top: auto; overflow: visible; }
.kv-thumb-throughput polyline { fill: none; stroke: #a78bfa; stroke-width: 3; vector-effect: non-scaling-stroke; }
.kv-thumb-memory { flex-shrink: 0; padding-block: 6px; }
.kv-thumb-memory-bar { display: flex; height: 10px; overflow: hidden; background: #221d44; }
.kv-thumb-memory-bar i:nth-child(1) { width: 27%; background: #8574e8; }
.kv-thumb-memory-bar i:nth-child(2) { width: 4%; background: #77d391; }
.kv-thumb-memory-bar i:nth-child(3) { width: 3%; background: #6d9fe8; }
.kv-thumb-memory-bar i:nth-child(4) { width: 4%; background: #e5a35e; }
.kv-thumb-memory-bar i:nth-child(5) { width: 53%; background: #49b1a8; }
.kv-thumb-memory-bar i:nth-child(6) { width: 5%; background: #c96991; }
.kv-thumb-memory-bar i:nth-child(7) { width: 4%; background: #48505f; }
.kv-thumb-memory-legend { display: flex; flex-wrap: wrap; gap: 1px 9px; margin-top: 5px; color: #8f88b0; font-size: 9px; line-height: 1.35; }
.kv-thumb-memory-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.kv-thumb-memory-legend i { width: 7px; height: 7px; flex: 0 0 7px; }
.kv-thumb-memory-legend .model { background: #8574e8; }
.kv-thumb-memory-legend .draft { background: #77d391; }
.kv-thumb-memory-legend .baseline { background: #6d9fe8; }
.kv-thumb-memory-legend .cuda { background: #e5a35e; }
.kv-thumb-memory-legend .reserved { background: #49b1a8; }
.kv-thumb-memory-legend .runtime { background: #c96991; }
.kv-thumb-memory-legend .free { background: #48505f; }
.kv-overview-preview .screenshot-link { display: block; max-height: 470px; overflow: hidden; }
.kv-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 32px; }
.kv-gallery figure { min-width: 0; margin: 0; }
.kv-tall-shot { display: block; height: 360px; overflow: hidden; border: 1px solid var(--line); border-radius: 5px; background: var(--surface-deep); }
.kv-tall-shot img { width: 100%; height: auto; }
.kv-gallery figcaption { color: var(--muted); font-size: 13px; line-height: 1.75; margin-top: 12px; }
.kv-gallery figcaption strong { color: var(--ink); font-weight: 500; }
.kv-request-preview { margin-top: 32px; }
@media (max-width: 760px) {
  .kv-gallery { grid-template-columns: 1fr; }
  .kv-tall-shot { height: 330px; }
  .kv-visual { height: 305px; }
  .kv-thumb { height: 245px; }
  .kv-overview-preview .screenshot-link { max-height: 380px; }
}
@media (max-width: 420px) {
  .kv-visual { padding-inline: 14px; }
  .kv-thumb-main { grid-template-columns: 1.5fr .75fr; }
  .kv-thumb-requests, .kv-thumb-throughput, .kv-thumb-memory { padding-inline: 6px; }
  .kv-thumb-panel-title span { display: none; }
  .kv-thumb-request-head, .kv-thumb-request-row { grid-template-columns: 1.05fr .85fr .8fr; gap: 3px; }
  .kv-thumb-throughput > strong { font-size: 17px; }
  .kv-thumb-memory-legend { gap-inline: 6px; }
}
.kv-overview-preview .screenshot-link, .kv-tall-shot { position: relative; }
.kv-overview-preview .screenshot-action, .kv-tall-shot .screenshot-action { position: absolute; bottom: 0; left: 0; right: 0; }

/* kari-ai: stat strip, spec/budget tables, benchmark bar charts, and code snippets. */
code { font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; font-size: .88em; background: var(--surface); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; }
.case-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; }
.case-stat { background: var(--surface); padding: 20px 24px; }
.case-stat strong { display: block; font-family: var(--title); font-size: 27px; font-weight: 600; letter-spacing: -.045em; line-height: 1.1; color: var(--accent); }
.case-stat span { display: block; font-size: 14px; line-height: 1.5; color: var(--muted); margin-top: 6px; }
.spec-layout { display: grid; grid-template-columns: 1.45fr 1fr; gap: 40px; align-items: start; margin-top: 26px; }
.spec-table, .cost-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table caption, .cost-table caption { text-align: left; font-family: var(--title); font-size: 17px; letter-spacing: -.02em; padding-bottom: 14px; }
.spec-table th[scope="row"] { text-align: left; font-weight: 500; font-size: 14px; color: var(--muted); white-space: nowrap; vertical-align: top; padding: 11px 0; }
.spec-table td { text-align: left; font-weight: 500; line-height: 1.6; padding: 11px 0; }
.spec-table tbody tr + tr, .cost-table tbody tr + tr { border-top: 1px solid var(--line); }
.cost-table td { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); }
.cost-table thead th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; padding: 0 0 9px; }
.bench-table th, .bench-table td, .longctx-table th, .longctx-table td { padding-inline: 10px; }
.bench-table th:nth-child(n+2), .longctx-table th:nth-child(n+2) { text-align: center; }
.bench-table td:nth-child(n+2), .longctx-table td:not(:first-child) { text-align: center; font-family: var(--title); letter-spacing: -.02em; color: var(--ink); }
.cost-table:not(.bench-table):not(.longctx-table) td:last-child { text-align: right; font-family: var(--title); letter-spacing: -.02em; color: var(--ink); }
.cost-table .is-total td { color: var(--ink); font-weight: 600; }
.cost-table .is-total td:last-child { color: var(--accent); font-size: 16px; }
.table-note { font-size: 14px; line-height: 1.7; color: var(--muted); margin-top: 10px; max-width: 760px; }
.table-scroll { overflow-x: auto; margin-top: 26px; }
.table-scroll table { min-width: 520px; }
.table-scroll .cost-table { margin-top: 0; }
.chart-wrap { display: grid; gap: 20px; margin-top: 26px; }
.bar-chart { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: 20px 22px 16px; }
.bar-chart h3 { font-size: 17px; letter-spacing: -.02em; }
.bar-chart .chart-sub { font-size: 14px; color: var(--muted); margin: 3px 0 10px; }
.bar-row { display: grid; grid-template-columns: 195px 1fr 64px; gap: 16px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.bar-row:first-of-type { border-top: 0; }
.bar-label { font-size: 14px; line-height: 1.45; color: var(--muted); min-width: 0; }
.bar-label strong { display: block; font-weight: 500; color: var(--ink); }
.bar-track { height: 20px; background: var(--panel); border-radius: 2px; overflow: hidden; }
/* Bar colours are explicit, not theme variables, so they stay distinct
   from the indigo/violet palette. Teal and amber match the site's
   dashboard data-viz hues. */
.bar-fill { display: block; height: 100%; border-radius: 2px; background: #49b1a8; }
.bar-fill.is-mine { background: #d9a94e; }
.bar-value { font-family: var(--title); font-size: 15px; letter-spacing: -.02em; color: var(--ink); text-align: right; }
.chart-legend { display: flex; gap: 22px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.chart-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-swatch { width: 10px; height: 10px; border-radius: 2px; background: #49b1a8; }
.legend-swatch.is-mine { background: #d9a94e; }
.bios-shot { margin-top: 26px; }
.bios-shot img { width: 100%; height: auto; }
.bios-card { min-width: 0; }
.bios-card img { width: 100%; height: auto; }
.code-block { background: var(--surface-deep); border: 1px solid var(--line); border-radius: 4px; padding: 16px 18px; margin: 18px 0 0; overflow-x: auto; font-family: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace; font-size: 14px; line-height: 1.8; color: var(--muted); }
.code-block .code-prompt { color: var(--accent); }
.code-block .code-cmd { color: var(--ink); }
.nvidia-smi-shot, .market-shot { margin-top: 26px; }
.build-gallery-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 26px; }
.build-gallery-2 figure { min-width: 0; }
.build-gallery-2 .screenshot-link { display: block; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; background: #0d0b18; }
.build-gallery-2 img { width: 100%; height: 440px; object-fit: contain; background: #0d0b18; }
.build-gallery-2 .spans-two { grid-column: 1 / -1; }
.build-gallery-2 .spans-two img { height: 520px; }
.build-gallery-2 figcaption { color: var(--muted); font-size: 14px; line-height: 1.65; margin-top: 10px; }
.print-gallery { margin-top: 30px; }
.print-gallery img { aspect-ratio: auto; height: 460px; object-fit: contain; background: #0d0b18; }
@media (max-width: 760px) {
  .case-stats { grid-template-columns: 1fr 1fr; }
  .spec-layout { grid-template-columns: 1fr; gap: 28px; margin-top: 22px; }
  .bar-row { grid-template-columns: 1fr 56px; row-gap: 6px; }
  .bar-label { grid-column: 1 / -1; }
  .print-gallery img { height: 340px; }
  .build-gallery-2 { grid-template-columns: 1fr; }
  .build-gallery-2 img { height: 360px; }
  .build-gallery-2 .spans-two img { height: 320px; }
  .table-scroll table { min-width: 460px; }
}
@media (max-width: 380px) {
  .case-stats { grid-template-columns: 1fr; }
}
.case-section > .eyebrow { color: var(--accent); font-size: 18px; margin: 40px 0 14px; }
.ai-visual { background: #0d0b18; display: flex; align-items: center; padding: 0 24px; gap: 10px; }
.ai-visual-copy { width: 52%; flex-shrink: 0; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; padding: 25px 0; }
.ai-visual img { width: 45%; height: 222px; object-fit: cover; object-position: center; border-radius: 5px; border: 5px solid var(--panel-line); box-shadow: 0 8px 22px #0003; }
@media (max-width: 1050px) {
  .ai-visual { padding-inline: 20px; }
  .ai-visual img { height: 195px; }
}
@media (max-width: 760px) {
  .ai-visual img { height: 230px; max-width: 210px; }
}
@media (max-width: 380px) {
  .ai-visual { padding: 0 15px; gap: 0; }
  .ai-visual img { width: 48%; height: 215px; }
}
