:root {
  color-scheme: light;
  --bg: #f7f7f2; --surface: #fff; --surface-2: #f0f2ed; --hover: #e8eee7;
  --ink: #242d29; --ink-2: #3e4a43; --muted: #5e6962; --line: #dde2d9;
  --line-strong: #bac5ba; --accent: #236952; --accent-ink: #216448;
  --accent-soft: #e8f0e5; --button-ink: #fff;
  --hero: #20352d; --hero-ink: #f7f8ee; --hero-muted: #c6d4ca; --hero-line: #506258;
  --radius: 14px; --max: 1160px; --nav-height: 80px;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #171a1b; --surface: #202526; --surface-2: #292f2e; --hover: #343e38;
  --ink: #eef2eb; --ink-2: #d4ddd5; --muted: #b5c1b8; --line: #39433e;
  --line-strong: #617064; --accent: #acdbb6; --accent-ink: #b6e0c1;
  --accent-soft: #303f34; --button-ink: #172f22;
  --hero: #1c2b25; --hero-line: #4c6155;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-height) + 20px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.65; }
a { color: var(--accent-ink); text-underline-offset: 4px; }
a:hover { text-decoration-thickness: 2px; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
img { max-width: 100%; }
p { margin: 0; }
h1, h2, h3 { font-family: "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif; line-height: 1.2; text-wrap: balance; }
h1, h2, h3, ul { margin-top: 0; }
h2 { font-size: clamp(26px, 3.2vw, 34px); letter-spacing: -.025em; margin-bottom: 10px; }
h3 { font-size: 22px; letter-spacing: -.015em; margin-bottom: 10px; }
.shell { width: min(var(--max), calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: 24px; top: -100px; background: var(--surface); padding: 12px 20px; z-index: 30; }
.skip:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding-block: 12px; }
.brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; }
.topbar nav { display: flex; gap: 24px; flex-wrap: wrap; }
.topbar nav a { color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; padding-block: 10px; }
.topbar nav a:hover, .topbar nav a[aria-current] { color: var(--accent-ink); text-decoration: underline; }
.theme-picker { border: 1px solid var(--line-strong); border-radius: 999px; padding: 3px; display: flex; gap: 2px; flex-shrink: 0; }
.theme-picker button { border: 0; background: transparent; color: var(--muted); border-radius: 999px; padding: 7px 12px; font-size: 13px; font-weight: 600; min-height: 36px; }
.theme-picker button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent-soft); }
.hero-band { background: var(--hero); color: var(--hero-ink); }
.hero { padding-block: 64px 50px; display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 80px; align-items: center; }
.eyebrow, .small-label, .section-kicker { font-size: 11px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow { color: #bdd7bc; margin-bottom: 22px; }
.hero h1 { font-size: clamp(40px, 5vw, 63px); letter-spacing: -.052em; font-weight: 600; margin-bottom: 24px; }
.hero .bio { max-width: 55ch; color: var(--hero-muted); font-size: 17px; line-height: 1.8; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--line-strong); border-radius: 9px; padding: 9px 17px; background: var(--surface); color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.button:hover { background: var(--hover); text-decoration: none; }
.button.primary { background: var(--accent); border-color: var(--accent); color: var(--button-ink); }
.button.primary:hover { filter: brightness(.95); }
.hero .button.primary { background: #d8e9bf; border-color: #d8e9bf; color: #243c2a; }
.hero-contact { color: var(--hero-ink); font-size: 13px; padding: 12px 8px; text-decoration: none; }
.hero-contact:hover { text-decoration: underline; }
.hero-band :focus-visible { outline-color: #d8e9bf; }
.intro-note > .small-label { color: var(--hero-muted); margin-bottom: 12px; }
.start-link { display: flex; align-items: start; gap: 16px; padding: 20px 0; border-top: 1px solid var(--hero-line); color: var(--hero-ink); text-decoration: none; }
.start-index { font-size: 11px; color: #b8cdbb; font-variant-numeric: tabular-nums; margin-top: 4px; }
.start-link > span:nth-child(2) { flex: 1; min-width: 0; }
.start-link small { display: block; font-size: 11px; color: var(--hero-muted); margin-bottom: 5px; }
.start-link strong { display: block; font-size: 17px; line-height: 1.4; font-weight: 600; }
.start-link .start-project { display: flex; align-items: center; gap: 9px; }
.start-detail { display: block; color: var(--hero-muted); font-size: 12px; margin-top: 5px; }
.start-arrow { color: #d8e9bf; font-size: 20px; }
.start-link:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.hero-foot { border-top: 1px solid var(--hero-line); display: flex; justify-content: space-between; gap: 16px; padding-block: 17px; color: var(--hero-muted); font-size: 11px; }
.section { border-top: 1px solid var(--line); padding-block: 58px; }
#work { border-top: 0; }
.section-kicker { color: var(--accent-ink); margin-bottom: 12px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-head p { color: var(--muted); max-width: 66ch; }
.section-head > button { flex-shrink: 0; }
.work-tools { margin-bottom: 24px; }
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.work-filters button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--line-strong); border-radius: 9px; background: var(--surface); color: var(--ink-2); font-size: 14px; font-weight: 600; }
.work-filters button:hover { background: var(--hover); }
.work-filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.work-filters button span { font-size: 12px; font-variant-numeric: tabular-nums; }
.work-browse { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 16px; }
.work-browse p { font-size: 13px; color: var(--muted); }
.project-jump { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 13px; }
.project-jump-controls { display: flex; gap: 8px; min-width: 0; }
.project-jump-controls button { min-height: 44px; border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 14px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.project-jump-controls select { min-width: 0; flex: 1; }
.project-jump select { max-width: 100%; min-height: 44px; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 32px 8px 12px; font: inherit; }
.back-top { display: inline-block; margin-bottom: 16px; font-weight: 600; }
.products { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; }
.project { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project:first-child { grid-column: 1 / -1; }
.project-top { display: flex; flex-direction: column; }
.project:first-child .project-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.project-copy { padding: 26px 28px 24px; }
.project-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.project-status { display: flex; align-items: center; gap: 7px; color: var(--ink-2); font-size: 11px; margin-bottom: 14px; }
.project-status > span { width: 5px; height: 5px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.project-decision { border-left: 2px solid var(--line-strong); padding-left: 12px; margin-top: 20px; color: var(--ink-2); font-size: 13px; }
.project-decision strong { display: block; font-size: 10px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.shot { display: flex; align-items: center; justify-content: center; margin: 0; height: 320px; padding: 26px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.shot img { display: block; width: 100%; height: auto; max-height: 242px; object-fit: contain; border: 1px solid var(--line-strong); border-radius: 6px; box-shadow: 0 10px 28px #16291a12; }
.project-title { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.project-title h3 { min-width: 0; margin: 0; font-size: 25px; }
.project-icon { display: block; flex-shrink: 0; object-fit: contain; border-radius: 22%; }
.project-number { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.project .tag { color: var(--muted); font-size: 15px; }
.project .category { font-size: 11px; font-weight: 650; color: var(--accent-ink); margin-bottom: 8px; }
.project-format { color: var(--muted); font-size: 11px; margin-top: 18px; }
.illustration { margin: 0; min-height: 320px; padding: 26px 28px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.project-top > .illustration:not(.product-illustration) { height: 320px; }
.illustration-heading { display: flex; gap: 12px; align-items: center; color: var(--ink-2); margin-bottom: 14px; font-size: 14px; }
.illustration-mark { display: grid; place-items: center; flex: 0 0 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 24px; }
.workflow-steps, .connection-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.workflow-steps li, .connection-rows li { padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); font-size: 12px; line-height: 1.45; }
.workflow-steps li { display: flex; align-items: center; gap: 14px; }
.workflow-steps li span { color: var(--accent-ink); font-variant-numeric: tabular-nums; font-size: 12px; }
.connection-rows li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-block: 16px; }
.connection-rows li span { color: var(--muted); font-size: 12px; }
.illustration figcaption { margin-top: 15px; font-size: 10px; color: var(--muted); }
.product-illustration { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); gap: 10px 24px; align-items: center; align-self: stretch; background: #e9edde; border: 0; padding: 36px 28px 18px; color: #2d392f; }
.phone-preview { background: #fafbf6; border: 6px solid #354039; border-radius: 28px; padding: 20px 14px 14px; box-shadow: 12px 18px 0 #ccd5c9; max-width: 245px; min-width: 0; }
.phone-top { display: flex; justify-content: space-between; gap: 5px; font-size: 10px; font-weight: 700; margin-bottom: 22px; }
.phone-brand { display: flex; align-items: center; gap: 5px; }
.phone-brand .project-icon { width: 16px; height: 16px; }
.phone-date { font-size: 9px; color: #5b6a5d; }
.phone-title { display: block; font-size: 26px; letter-spacing: -.035em; margin: 3px 0 17px; }
.sample-tasks { display: grid; gap: 9px; }
.sample-tasks > div { display: flex; align-items: center; gap: 8px; padding: 10px 8px; background: #eef1e8; border-radius: 7px; font-size: 10px; }
.task-circle { width: 14px; height: 14px; border: 1px solid #78916c; border-radius: 50%; flex-shrink: 0; line-height: 12px; text-align: center; }
.task-circle.completed { background: #496746; color: #fff; }
.phone-tabs { display: flex; justify-content: space-between; font-size: 8px; border-top: 1px solid #d5ddce; padding-top: 16px; margin-top: 32px; color: #496746; }
.product-annotation .small-label { font-size: 9px; letter-spacing: .09em; color: #54644e; }
.product-annotation strong { display: block; font-size: 31px; letter-spacing: -.04em; line-height: 1.17; margin-top: 12px; }
.product-annotation p { font-size: 11px; margin-top: 12px; color: #54644e; }
.annotation-pill { display: inline-block; border: 1px solid #a3b29a; border-radius: 99px; padding: 6px 10px; margin-top: 20px; font-size: 10px; }
.product-illustration figcaption { grid-column: 1 / -1; color: #52604c; padding-top: 14px; }
.game-illustration { background: #272a40; color: #f2edf9; }
.game-brand { display: flex; align-items: center; gap: 10px; color: #c8bddb; margin-bottom: 8px; }
.game-illustration > strong { font-size: 16px; }
.game-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; margin-top: 22px; }
.game-cards > div { min-height: 130px; display: flex; flex-direction: column; justify-content: space-between; padding: 13px 11px; border: 1px solid #756e94; border-radius: 8px; background: #36374f; }
.game-cards > div:nth-child(2) { background: #444059; }
.game-cards span { color: #d2bfa0; font: 29px Georgia,serif; }
.game-cards b { font-size: 11px; font-weight: 500; }
.game-illustration figcaption { color: #c7bdd7; }
.project .actions { margin-top: 18px; }
.project .source { font-size: 14px; font-weight: 600; padding: 10px 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 16px 0 0; list-style: none; }
.chips li { font-size: 12px; color: var(--muted); background: var(--surface-2); border-radius: 5px; padding: 3px 8px; }
.case-study { border-top: 1px solid var(--line); }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
.case-study > summary { padding: 14px 24px; color: var(--accent-ink); display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; font-weight: 600; }
summary::after { content: "+"; font-size: 22px; line-height: 1; font-weight: 400; }
details[open] > summary::after { content: "−"; }
summary:hover { background: var(--surface-2); }
summary:focus-visible { outline-offset: -4px; }
.detail { padding: 8px 24px 28px; }
.detail dl { display: grid; grid-template-columns: 1fr; gap: 7px; margin: 0; font-size: 14px; }
.detail dt { font-size: 12px; font-weight: 650; color: var(--ink); margin-top: 12px; }
.detail dd { margin: 0; color: var(--muted); max-width: 74ch; overflow-wrap: anywhere; }
.project:first-child .detail dl { grid-template-columns: 145px minmax(0, 1fr); gap: 22px 28px; }
.project:first-child .detail dt { margin: 0; }
.detail ul { padding-left: 20px; margin-bottom: 0; }
.detail li + li { margin-top: 10px; }
.detail .caveat { font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; margin-top: 24px; }
.approach { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.approach article { border-top: 2px solid var(--line-strong); padding-top: 22px; }
.step { font-size: 13px; color: var(--accent-ink); font-weight: 600; display: block; margin-bottom: 20px; }
.approach h3 { font-size: 19px; }
.approach p { color: var(--muted); }
.skills { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.skills article { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 24px; }
.skills h3 { font-size: 20px; }
.skills ul { padding-left: 20px; margin-bottom: 0; color: var(--muted); }
.skills li + li { margin-top: 6px; }
.stacks, .evidence-date { font-size: 13px; color: var(--muted); margin-top: 20px; }
.history { display: grid; gap: 12px; }
.era { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; }
.era > summary { display: flex; align-items: center; gap: 16px; padding: 20px 24px; }
.era h3 { margin: 0; font-size: 18px; }
.era .count { color: var(--muted); font-size: 13px; margin-left: auto; white-space: nowrap; }
.era-body { padding: 0 24px 24px; }
.era-body > p { color: var(--muted); margin-bottom: 20px; }
.era ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
.era li a { font-weight: 600; overflow-wrap: anywhere; }
.era li p { color: var(--muted); margin-top: 4px; }
.contact { display: flex; align-items: center; justify-content: space-between; gap: 40px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 38px; margin-bottom: 50px; }
.contact h2 { font-size: 31px; max-width: 20ch; }
.contact p:not(.section-kicker) { color: var(--muted); font-size: 15px; max-width: 63ch; }
.contact .actions { margin: 0; flex-shrink: 0; }
footer { padding-block: 24px 40px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
footer p + p { margin-top: 8px; }
.error-page { padding-block: 80px; max-width: 640px; }
.error-page h1 { font-size: 44px; }
.error-page .eyebrow { color: var(--accent-ink); }
@media (max-width: 900px) {
  :root { --nav-height: 128px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding-block: 42px; }
  .intro-note { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
  .intro-note > .small-label { grid-column: 1 / -1; margin: 0; }
  .start-link { gap: 10px; padding-block: 15px; }
  .start-link strong { font-size: 14px; }
  .start-detail, .start-arrow { display: none; }
  .project:first-child .project-top { grid-template-columns: 1fr; }
  .product-illustration { grid-template-columns: 240px 1fr; padding: 30px 40px 20px; }
  .product-annotation strong { font-size: 40px; max-width: 9ch; }
  .topbar { flex-wrap: wrap; gap: 4px 24px; }
  .topbar nav { order: 3; width: 100%; }
  .approach { gap: 16px; }
  .approach article { padding: 20px; }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .topbar { padding-block: 8px; }
  .brand { font-size: 16px; }
  .topbar nav { justify-content: space-between; gap: 8px 12px; }
  .topbar nav a { font-size: 13px; }
  .work-filters { gap: 8px; }
  .work-filters button { font-size: 13px; padding-inline: 12px; }
  .project-jump, .project-jump select { width: 100%; }
  .project-jump { display: grid; gap: 6px; }
  .hero { padding-block: 36px 24px; gap: 30px; }
  .hero h1 { font-size: clamp(34px, 8.5vw, 48px); }
  .hero .bio { font-size: 15px; }
  .eyebrow { font-size: 10px; margin-bottom: 18px; }
  .intro-note { grid-template-columns: 1fr; gap: 0; }
  .intro-note > .small-label { margin-bottom: 12px; }
  .start-link { padding-block: 14px; }
  .start-link small { margin-bottom: 2px; }
  .start-link strong { font-size: 15px; }
  .start-arrow { display: block; }
  .hero-foot { flex-direction: column; gap: 4px; font-size: 10px; }
  .section { padding-block: 32px; }
  .section-head { align-items: start; flex-wrap: wrap; gap: 16px; }
  .products { grid-template-columns: 1fr; gap: 20px; }
  .project:first-child { grid-column: auto; }
  .project-copy { padding: 22px; }
  .product-illustration { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); padding: 28px 18px 16px; gap: 16px; }
  .product-annotation strong { font-size: 27px; }
  .product-annotation .small-label { font-size: 8px; }
  .phone-preview { padding: 18px 10px 12px; border-width: 5px; border-radius: 23px; }
  .phone-tabs { font-size: 7px; }
  .sample-tasks > div { font-size: 9px; padding-inline: 6px; }
  .task-circle { width: 12px; height: 12px; line-height: 10px; }
  .annotation-pill { font-size: 9px; padding-inline: 8px; }
  .shot { height: auto; padding: 20px; }
  .project-top > .illustration:not(.product-illustration) { height: auto; }
  .project-title h3 { font-size: 23px; }
  .detail { padding: 0 20px 24px; }
  .detail dl { grid-template-columns: 1fr; gap: 6px; }
  .project:first-child .detail dl { grid-template-columns: 1fr; gap: 7px; }
  .project:first-child .detail dt { margin-top: 12px; }
  .detail dt:not(:first-child) { margin-top: 18px; }
  .case-study > summary { padding: 14px 20px; }
  .approach, .skills { grid-template-columns: 1fr; }
  .approach article, .skills article { padding: 20px; }
  .step { margin-bottom: 12px; }
  .era > summary { padding: 18px 20px; gap: 12px; }
  .era-body { padding: 0 20px 20px; }
  .contact { flex-direction: column; align-items: start; padding: 24px; margin-bottom: 34px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .theme-picker, .topbar nav, #expand-all, .work-tools, .back-top { display: none; }
  .site-header { position: static; }
  .project[hidden] { display: block !important; }
  body { background: white; color: black; }
  .shell { width: 100%; }
  .hero-band { background: white; color: black; }
  .hero .bio, .eyebrow, .hero-foot, .hero-contact { color: #333; }
  .intro-note { display: none; }
  .hero { display: block; padding-block: 24px; }
  .products { display: block; }
  .project { margin-bottom: 20px; }
  .project, .skills article, .approach article { break-inside: avoid; }
}
