:root {
  color-scheme: dark;
  --bg: #17181c; --surface: #202227; --ink: #f1f0ed; --muted: #a3a4ae;
  --line: #34353d; --accent: #bbc1f8; --orange: #f2b185; --green: #c7daa1; --purple: #c2b9ec; --teal: #a8d4cd;
  font-family: "Inter", "Segoe UI", Arial, sans-serif; font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 32px; }
body { margin: 0; background: var(--bg); color: var(--ink); line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button, [href] { touch-action: manipulation; }
img, svg { display: block; width: 100%; height: auto; }
figure, h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--bg); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 6px; border-radius: 3px; }
[tabindex="-1"]:focus:not(:focus-visible) { outline: none; }
.page-width { width: min(1180px, calc(100% - 112px)); margin-inline: auto; }
.skip-link { position: fixed; top: 12px; left: 16px; z-index: 20; padding: 10px 18px; background: var(--ink); color: var(--bg); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 104px; border-bottom: 1px solid var(--line); }
.wordmark { display: inline-flex; align-items: center; gap: 13px; font-weight: 600; }
.wordmark-symbol { font: 800 34px/.9 Arial, sans-serif; letter-spacing: -4px; padding-right: 4px; transform: translateY(-3px); }
.wordmark-symbol span { color: var(--accent); }
.wordmark-name { font-size: 15px; letter-spacing: -.2px; }
.site-header nav { display: flex; align-items: center; gap: 34px; font-size: 14px; }
.site-header nav a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: #c3c3cd; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--ink); }
.project-count { color: var(--muted); font: 10px/1.2 Consolas, monospace; align-self: flex-start; margin-top: 11px; }
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; padding: 72px 0 80px; align-items: center; }
.eyebrow, .project-category, .section-index, .about-kicker, .detail-index { font: 11px/1.6 Consolas, "Courier New", monospace; letter-spacing: 1.8px; text-transform: uppercase; }
.eyebrow { color: var(--muted); margin-bottom: 22px; }
.hero h1 { font-family: Arial, sans-serif; font-size: clamp(48px, 5.6vw, 76px); font-weight: 600; letter-spacing: -.065em; line-height: 1.08; }
.hero h1 > span { display: block; color: var(--accent); }
.hero-description { color: #b2b3bd; font-size: 17px; line-height: 1.8; margin-top: 26px; max-width: 390px; }
.hero-actions { display: flex; align-items: center; gap: 20px; margin-top: 31px; }
.primary-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; padding: 13px 19px; border: 1px solid var(--accent); border-radius: 5px; background: var(--accent); color: #20212d; font-size: 14px; font-weight: 600; transition: background .2s, transform .2s; }
.primary-link:hover { background: #d1d5ff; transform: translateY(-2px); }
.character-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 392px; min-width: 0; }
.character-button { width: min(100%, 350px); margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; user-select: none; -webkit-user-select: none; }
.character-button:focus-visible { outline-offset: -10px; border-radius: 42%; }
.character-button svg { overflow: visible; }
.mascot-body { transform-box: fill-box; transform-origin: 50% 90%; transform: translate(var(--character-x, 0px), var(--character-y, 0px)) rotate(var(--character-tilt, 0deg)); transition: transform .22s ease-out; }
.mascot-face { transform: translate(var(--face-x, 0px), var(--face-y, 0px)); transition: transform .16s ease-out; }
.mascot-pupil { transform: translate(var(--pupil-x, 0px), var(--pupil-y, 0px)); transition: transform .12s ease-out; }
.mascot-eye { transform-box: fill-box; transform-origin: center; }
.mascot-hand { transform-box: fill-box; transform-origin: 25% 85%; }
.is-greeting .mascot-eye { animation: character-blink .55s ease-in-out; }
.is-greeting .mascot-hand { animation: character-wave .9s ease-in-out; }
.character-status { position: absolute; top: 0; right: 12%; min-height: 26px; color: var(--accent); font-size: 14px; transform: rotate(7deg); }
.character-hint { margin-top: -6px; font-size: 11px; color: var(--muted); letter-spacing: .3px; }
@keyframes character-blink { 0%, 30%, 70%, 100% { transform: scaleY(1); } 14%, 55% { transform: scaleY(.08); } }
@keyframes character-wave { 0%, 100% { transform: rotate(0); } 20%, 60% { transform: rotate(-22deg); } 40%, 80% { transform: rotate(12deg); } }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 0 0; border-top: 1px solid var(--line); }
.section-heading h2 { font-size: 29px; font-weight: 500; letter-spacing: -1px; }
.section-index { color: var(--muted); font-size: 10px; letter-spacing: 1px; }
.project-group + .project-group { margin-top: 24px; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 28px 0 44px; }
.project-card { --project-accent: var(--orange); display: flex; flex-direction: column; min-width: 0; padding: 16px; background: #1f2025; border: 1px solid var(--line); border-radius: 20px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.project-card:hover, .project-card:focus-within { border-color: var(--project-accent); transform: translateY(-4px); box-shadow: 0 12px 28px #00000020; }
.project-card[data-color="green"] { --project-accent: var(--green); }
.project-card[data-color="purple"] { --project-accent: var(--purple); }
.project-card[data-color="teal"] { --project-accent: var(--teal); }
.project-art { display: block; position: relative; overflow: hidden; border-radius: 11px; background: #141519; aspect-ratio: 16 / 10; }
.project-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.project-card[data-cover="screenshot"] .project-art img { object-fit: contain; }
.project-art:hover img { transform: scale(1.035); }
.project-card[data-cover="screenshot"] .project-art:hover img { transform: none; }
.cover-label { position: absolute; bottom: 11px; left: 12px; color: #d4d4d8; opacity: .7; font: 8px/1.2 Consolas, monospace; letter-spacing: .7px; text-transform: uppercase; }
.art-arrow { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid #ffffff30; border-radius: 50%; color: #eee; font-size: 16px; transition: background .2s; }
.project-art:hover .art-arrow { background: #ffffff18; }
.project-category { display: flex; align-items: center; gap: 13px; color: var(--project-accent, var(--accent)); font-size: 10px; letter-spacing: 1.4px; }
.project-number { color: var(--muted); font-size: 11px; border-right: 1px solid var(--line); padding-right: 13px; }
.project-copy { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 18px 4px 0; }
.project-copy .project-category { font-size: 9px; letter-spacing: .6px; gap: 8px; align-items: baseline; }
.project-copy .project-number { font-size: 10px; padding-right: 8px; }
.project-title { font: 600 26px/1.2 Arial, sans-serif; letter-spacing: -.04em; margin: 10px 0 9px; }
.project-title a:hover { color: var(--project-accent); }
.project-role { font-size: 12px; line-height: 1.6; margin-bottom: 10px; }
.role-label { color: var(--muted); font: 10px/1.6 Consolas, monospace; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.project-description { color: var(--muted); font-size: 13px; line-height: 1.7; }
.project-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; color: #b1b2bd; }
.project-meta span { font-size: 10px; border: 1px solid var(--line); border-radius: 4px; padding: 3px 8px; }
.text-link { display: inline-flex; align-items: center; gap: 24px; font-size: 13px; font-weight: 500; min-height: 44px; border-bottom: 1px solid #62636f; padding: 6px 0; transition: color .2s, border-color .2s; }
.text-link span { font-size: 18px; line-height: 1; }
.text-link:hover { color: var(--accent); border-color: var(--accent); }
.project-copy .project-meta { margin-top: auto; padding-top: 18px; }
.project-copy > .text-link { align-self: flex-start; margin-top: 8px; }
.project-copy > .text-link:hover { color: var(--project-accent); border-color: var(--project-accent); }
.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 66px; border-top: 1px solid var(--line); padding: 76px 0 90px; }
.about-kicker { color: var(--muted); margin-bottom: 18px; }
.about-section h2 { font: 500 38px/1.2 Arial, sans-serif; letter-spacing: -1.5px; max-width: 340px; }
.about-section h2 span { color: var(--accent); }
.about-copy { color: #b1b2bd; font-size: 15px; line-height: 1.85; padding-top: 3px; }
.about-copy p + p { margin-top: 15px; }
.contact-links { display: flex; gap: 28px; margin-top: 22px; color: var(--ink); }
.resume-card { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 18px; margin-top: 30px; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.resume-icon { width: 36px; color: var(--accent); margin-top: 3px; }
.resume-card h3 { color: var(--ink); font-size: 20px; font-weight: 500; line-height: 1.4; letter-spacing: -.4px; }
.resume-card p { font-size: 13px; margin-top: 5px; color: var(--muted); }
.resume-card .text-link { color: var(--ink); margin-top: 12px; }
.resume-status { display: inline-block; color: var(--muted); font: 10px/1.5 Consolas, monospace; letter-spacing: .5px; margin-top: 17px; }
.site-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); padding: 24px 0 30px; font-size: 11px; color: var(--muted); }
.footer-name { color: var(--ink); font-weight: 600; }
#back-to-top { display: inline-flex; gap: 14px; padding: 6px 0; }
.detail { padding-top: 35px; }
.detail-nav { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
.detail-nav a { padding: 10px 0; }
.detail-nav a:hover { color: var(--ink); }
.detail-heading { margin: 48px 0 36px; }
.detail-heading h1 { font: 600 clamp(36px, 6vw, 76px)/1.12 Arial, sans-serif; letter-spacing: -.055em; margin: 15px 0 20px; overflow-wrap: anywhere; }
.detail-tagline { font-size: clamp(19px, 2vw, 25px); color: #c7c7d0; letter-spacing: -.5px; }
.detail > figure { margin: 0; }
.detail-image { max-height: 550px; object-fit: contain; border-radius: 10px; background: var(--surface); }
.cover-caption { margin-top: 12px; font-size: 10px; color: var(--muted); letter-spacing: .5px; }
.game-player { min-width: 0; }
.game-player-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; min-height: 44px; margin-bottom: 12px; }
.game-player-hint { color: var(--muted); font-size: 12px; }
.game-player-instructions { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.7; flex-shrink: 0; }
.game-player-controls, .game-player-fallback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.game-player-controls button, .game-player-fallback button, .game-player-fallback a { min-height: 40px; padding: 7px 13px; border: 1px solid #555761; border-radius: 5px; color: var(--ink); background: var(--surface); font: inherit; font-size: 12px; cursor: pointer; }
.game-player-controls button:hover, .game-player-fallback button:hover, .game-player-fallback a:hover { border-color: var(--accent); color: var(--accent); }
.game-player-feedback { padding: 15px 18px; margin-bottom: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: 13px; color: #d2d3dc; }
.game-player-fallback { margin-top: 12px; }
.game-error-detail { font-size: 11px; color: var(--muted); margin-top: 6px; overflow-wrap: anywhere; }
.game-player-surface { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #101114; }
.game-player-poster, .game-player-frame { position: absolute; inset: 0; }
.game-player-poster img { width: 100%; height: 100%; object-fit: contain; }
.game-menu-hotspot { position: absolute; top: 74.1%; width: 16.8%; height: 9.5%; padding: 0; border: 0; border-radius: 2px; background: transparent; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.game-menu-start { left: 20.3%; }
.game-menu-exit { left: 63.2%; }
.game-menu-hotspot::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: #000; opacity: 0; clip-path: polygon(7% 0, 93% 0, 100% 28%, 100% 83%, 95% 100%, 5% 100%, 0 83%, 0 28%); transition: opacity 120ms ease; }
.game-menu-hotspot:hover, .game-menu-hotspot:focus-visible { outline: none; background: transparent; box-shadow: none; }
.game-menu-hotspot:hover::after { opacity: .16; }
.game-menu-hotspot:focus-visible::after { opacity: .22; }
.game-menu-hotspot:active::after { opacity: .30; transition-duration: 40ms; }
@media (forced-colors: active) { .game-menu-hotspot:focus-visible { outline: 2px solid Highlight; outline-offset: 3px; } }
.game-player-frame iframe { display: block; width: 100%; height: 100%; border: 0; background: #101114; }
.game-player:fullscreen { display: flex; flex-direction: column; padding: 16px; width: 100%; height: 100%; background: var(--bg); }
.game-player:fullscreen .game-player-toolbar, .game-player:fullscreen .game-player-feedback { flex-shrink: 0; }
.game-player:fullscreen .game-player-surface { flex: 1; min-height: 0; aspect-ratio: auto; }
.detail-section { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 42px 0; border-bottom: 1px solid var(--line); }
.detail-section h2 { font-size: 19px; font-weight: 500; }
.detail-overview > p { font-size: 20px; max-width: 600px; }
.contribution-role { font-size: 20px; line-height: 1.5; }
.project-context { color: var(--muted); font-size: 12px; margin-top: 10px; }
.contribution-list { color: #b1b2bd; font-size: 15px; line-height: 1.8; padding-left: 19px; margin: 22px 0 0; max-width: 620px; }
.contribution-list li + li { margin-top: 12px; }
.materials-note { font-size: 13px; color: var(--muted); margin-top: 28px; }
.resource-list { display: flex; flex-wrap: wrap; gap: 16px 28px; }
.detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 30px; margin-top: 28px; }
.download-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 16px; }
.document-section { padding: 46px 0; border-bottom: 1px solid var(--line); }
.document-heading { display: flex; align-items: end; justify-content: space-between; gap: 22px; margin-bottom: 23px; }
.document-heading h2 { font-size: 27px; line-height: 1.4; font-weight: 500; letter-spacing: -.7px; margin-top: 8px; }
.document-links { display: flex; flex-wrap: wrap; gap: 22px; }
.pdf-reader { overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: #101114; }
.pdf-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); font-size: 12px; }
.pdf-toolbar label, .pdf-page-controls { display: flex; align-items: center; gap: 11px; }
.pdf-toolbar button, .pdf-toolbar select { font: inherit; color: var(--ink); background: #292b32; border: 1px solid #4a4c57; border-radius: 4px; min-height: 36px; padding: 6px 12px; }
.pdf-toolbar button { min-width: 39px; font-size: 18px; cursor: pointer; }
.pdf-toolbar button:hover:not(:disabled) { background: #383b47; }
.pdf-toolbar :disabled { opacity: .4; cursor: default; }
.pdf-toolbar select { cursor: pointer; }
.pdf-viewport { overflow: auto; max-height: 76vh; min-height: 240px; padding: 16px; overscroll-behavior: contain; }
.pdf-viewport canvas { display: block; max-width: none; margin-inline: auto; background: white; }
.pdf-status { padding: 9px 16px; border-top: 1px solid var(--line); font: 11px/1.6 Consolas, monospace; color: var(--muted); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.document-section[tabindex="-1"]:focus { outline: none; }
.document-hint { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 13px; }
.case-nav { display: flex; flex-wrap: wrap; gap: 5px 22px; padding: 25px 0; margin-top: 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: #c5c6d0; }
.case-nav > span { flex-basis: 100%; color: var(--muted); font: 10px/1.6 Consolas, monospace; text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }
.case-nav a { padding-block: 9px; }
.case-nav a:hover { color: var(--orange); }
.walkthrough-section { padding: 48px 0 55px; border-bottom: 1px solid var(--line); }
.walkthrough-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 23px; }
.walkthrough-heading h2 { font-size: 25px; font-weight: 500; letter-spacing: -.6px; }
.walkthrough-heading > span { color: var(--muted); font-size: 11px; }
.gameplay-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; background: #101114; }
.video-caption, .case-image figcaption { margin-top: 12px; font-size: 12px; color: var(--muted); line-height: 1.7; }
.case-section { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding: 52px 0; border-bottom: 1px solid var(--line); }
.case-kicker { color: var(--orange); font: 10px/1.8 Consolas, monospace; text-transform: uppercase; letter-spacing: 1.4px; padding-top: 8px; }
.case-body { min-width: 0; }
.case-body h2 { font-size: 29px; font-weight: 500; line-height: 1.3; letter-spacing: -.8px; margin-bottom: 25px; }
.case-body > p { color: #b9bac4; font-size: 16px; line-height: 1.85; }
.case-body > p + p { margin-top: 18px; }
.case-body blockquote { margin: 0 0 25px; border-left: 2px solid var(--orange); padding: 3px 0 3px 24px; color: #e0dedb; font-size: 23px; line-height: 1.55; letter-spacing: -.3px; }
.loop-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: steps; list-style: none; gap: 1px; padding: 1px; margin: 0 0 26px; background: var(--line); border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.loop-steps li { counter-increment: steps; padding: 22px; background: var(--surface); }
.loop-steps li::before { content: '0' counter(steps); color: var(--orange); font: 11px/1.6 Consolas, monospace; }
.loop-steps h3 { font-size: 20px; font-weight: 500; margin: 7px 0 9px; }
.loop-steps p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.case-image { margin: 28px 0; }
.case-image img { border-radius: 8px; background: var(--surface); }
.encounter { display: grid; grid-template-columns: 145px minmax(0, 1fr); gap: 22px; padding: 24px 0; border-top: 1px solid var(--line); }
.encounter h3 { font-size: 16px; line-height: 1.5; font-weight: 500; }
.encounter p { color: #c1c1cb; font-size: 14px; line-height: 1.75; }
.encounter .design-intent { color: var(--muted); font-size: 13px; margin-top: 11px; }
.design-intent span { display: block; color: #cec3ba; font: 9px/1.6 Consolas, monospace; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 4px; }
.ending-disclosure { margin-top: 27px; border: 1px solid var(--line); border-radius: 8px; background: #1b1d22; }
.ending-disclosure summary { cursor: pointer; padding: 19px 23px; font-size: 16px; }
.ending-disclosure summary > span { display: block; color: var(--muted); font-size: 11px; margin: 5px 0 0 20px; }
.ending-list { padding-inline: 23px; }
.ending-list article { padding: 22px 0; border-top: 1px solid var(--line); }
.ending-list h3 { color: var(--orange); font-size: 18px; font-weight: 500; }
.ending-list p { color: var(--muted); font-size: 13px; line-height: 1.7; }
.ending-list .ending-theme { color: var(--ink); font-size: 15px; margin: 8px 0 10px; }
.case-note { padding: 0 23px 23px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.gallery-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.gallery-grid--screenshots { grid-template-columns: 1fr; }
.gallery-grid img { border-radius: 6px; }
.gallery-grid figcaption { font-size: 12px; color: var(--muted); margin-top: 12px; }
.next-project { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 45px 0 55px; }
.next-project small { display: block; color: var(--muted); font-size: 11px; }
.next-project strong { display: block; font-size: 30px; letter-spacing: -1px; font-weight: 500; margin-top: 8px; }
.next-project > span { font-size: 36px; color: var(--accent); transition: transform .2s; }
.next-project:hover > span { transform: translateX(8px); }
.not-found, .fallback { padding: 90px 0; min-height: 55vh; }
.not-found p { color: var(--muted); margin: 20px 0; }
@media (min-width: 1450px) { .hero { padding-block: 92px 100px; } }
@media (max-width: 1050px) {
  .page-width { width: calc(100% - 72px); }
  .hero { gap: 24px; }
  .hero h1 { font-size: 59px; }
  .project-grid { gap: 16px; }
  .project-card { padding: 12px; border-radius: 16px; }
  .project-title { font-size: 22px; }
  .project-copy { padding-inline: 1px; }
}
@media (max-width: 760px) {
  .page-width { width: calc(100% - 40px); }
  .site-header { min-height: 80px; gap: 12px; }
  .site-header nav { gap: 16px; font-size: 13px; }
  .wordmark-name { font-size: 13px; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 48px 0 42px; }
  .hero h1 { font-size: clamp(46px, 9vw, 66px); }
  .hero-description { font-size: 16px; margin-top: 20px; max-width: 420px; }
  .eyebrow { font-size: 10px; margin-bottom: 18px; }
  .hero-actions { margin-top: 26px; }
  .character-stage { height: 270px; }
  .character-button { width: 260px; }
  .character-status { top: -4px; right: 16%; font-size: 12px; }
  .character-hint { margin-top: -10px; font-size: 10px; }
  .section-heading { padding-top: 23px; gap: 14px; }
  .section-heading h2 { font-size: 25px; white-space: nowrap; }
  .section-index { font-size: 9px; letter-spacing: .5px; max-width: 120px; text-align: right; }
  .project-grid { grid-template-columns: 1fr; gap: 20px; padding: 24px 0 32px; }
  .project-card { padding: 16px; border-radius: 20px; }
  .project-title { font-size: 26px; }
  .project-copy { padding-inline: 4px; }
  .about-section { grid-template-columns: 1fr; gap: 26px; padding: 44px 0; }
  .about-section h2 { font-size: 34px; max-width: 100%; }
  .about-copy { font-size: 14px; }
  .site-footer { font-size: 10px; gap: 12px; }
  .site-footer > span { order: 3; flex-basis: 100%; }
  .detail { padding-top: 20px; }
  .detail-heading { margin: 30px 0 25px; }
  .detail-section { grid-template-columns: 1fr; gap: 18px; padding: 30px 0; }
  .detail-actions { gap: 12px 24px; }
  .document-section { padding-block: 32px; }
  .document-heading { display: block; }
  .document-heading h2 { font-size: 24px; }
  .document-links { margin-top: 17px; }
  .pdf-toolbar { padding: 10px; }
  .pdf-toolbar button, .pdf-toolbar select { min-height: 40px; }
  .pdf-viewport { padding: 8px; min-height: 180px; max-height: 65vh; }
  .case-nav { gap: 3px 19px; }
  .case-section { grid-template-columns: 1fr; gap: 16px; padding: 34px 0; }
  .case-body h2 { font-size: 25px; margin-bottom: 20px; }
  .case-body > p { font-size: 15px; }
  .case-body blockquote { font-size: 20px; padding-left: 18px; }
  .loop-steps li { padding: 16px; }
  .loop-steps p { font-size: 12px; }
  .encounter { grid-template-columns: 1fr; gap: 12px; padding-block: 21px; }
  .walkthrough-section { padding-block: 34px; }
  .walkthrough-heading { display: block; }
  .walkthrough-heading h2 { font-size: 23px; margin-bottom: 8px; }
  .detail-overview > p { font-size: 18px; }
  .contribution-role { font-size: 18px; }
  .next-project strong { font-size: 26px; }
}
@media (max-width: 370px) {
  .site-header { flex-wrap: wrap; gap: 4px; padding-block: 14px; }
  .site-header nav { width: 100%; justify-content: space-between; gap: 15px; }
  .wordmark { gap: 8px; }
  .wordmark-name { font-size: 12px; }
  .hero h1 { font-size: 43px; }
  .hero-actions { gap: 14px; }
  .primary-link { gap: 24px; padding-inline: 15px; }
  .project-title { font-size: 24px; }
  .section-index { max-width: 85px; text-align: right; }
}
@media (pointer: coarse) { .site-footer a { min-height: 44px; display: inline-flex; align-items: center; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .project-art:hover img, .project-card:hover, .project-card:focus-within, .primary-link:hover, .next-project:hover > span { transform: none; }
}

/* The poster and video use the same first frame, without a hover zoom. */
.project-art[data-cover-motion] img { transition: none; }
.project-art[data-cover-motion]:hover img { transform: none; }
.project-art [data-cover-video] { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; pointer-events: none; }
.project-art.is-playing [data-cover-video] { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .project-art [data-cover-video] { display: none; }
}
