/* shared style for the inner pages — same graph paper and fonts as the home screen */
:root {
  --bg: #fff; --ink: #111; --soft: #6f6f6f; --line: #f0f0f0; --line2: #e2e2e2; --u: 32px;
  --name: "Augie Pixel", "Pixelify Sans", monospace; --head: "Pixelify Sans", "DM Mono", monospace; --body: "DM Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--body); font-size: 18px; line-height: 1.65; color: var(--ink); background-color: var(--bg);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(var(--line2) 1px, transparent 1px), linear-gradient(90deg, var(--line2) 1px, transparent 1px);
  background-size: var(--u) var(--u), var(--u) var(--u), calc(var(--u) * 4) calc(var(--u) * 4), calc(var(--u) * 4) calc(var(--u) * 4);
  background-attachment: fixed;
}
a { color: var(--ink); text-underline-offset: 4px; }
a:hover { background: var(--ink); color: var(--bg); text-decoration: none; }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

header { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 16px; }
header .home { font-family: var(--name); -webkit-font-smoothing: none; font-size: 30px; text-decoration: none; background: var(--bg); padding: 0 4px; }
header nav { display: flex; gap: 10px; flex-wrap: wrap; }
header nav a {
  text-decoration: none; background: var(--bg); border: 3px solid var(--ink); padding: 8px 16px 9px;
  font-family: var(--head); font-weight: 500; font-size: 22px; line-height: 1; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .08s, box-shadow .08s;
}
header nav a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
header nav a[aria-current] { background: var(--ink); color: var(--bg); }

main { width: min(820px, 100% - 32px); margin: 56px auto 110px; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; }
h1 { font-size: clamp(60px, 9vw, 110px); line-height: .95; margin: 0 0 18px; }
h2 { font-size: 40px; line-height: 1; margin: 64px 0 14px; }
.lead { font-size: 21px; max-width: 46ch; background: var(--bg); }
p { background: var(--bg); }

.box { background: var(--bg); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 20px 24px; margin: 18px 0 28px; }
.box h3 { font-size: 32px; margin: 0; line-height: 1.1; }
.box .meta { color: var(--soft); font-size: 15px; margin: 4px 0 10px; }
.shot { aspect-ratio: 16/9; border: 3px solid var(--ink); background: repeating-linear-gradient(-45deg, transparent 0 10px, #0000000d 10px 12px), #fafafa; display: grid; place-items: center; color: var(--soft); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; margin: 12px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.chips li { border: 2px solid var(--ink); background: var(--bg); padding: 2px 12px; font-size: 15px; }

/* experience: a timeline */
.timeline { list-style: none; padding: 0; margin: 28px 0; border-left: 4px solid var(--ink); }
.timeline li { position: relative; padding: 0 0 30px 28px; }
.timeline li::before { content: ""; position: absolute; left: -12px; top: 8px; width: 16px; height: 16px; background: var(--bg); border: 4px solid var(--ink); }
.timeline .when { font-family: var(--head); font-size: 18px; color: var(--soft); }
.timeline h3 { font-size: 30px; margin: 2px 0 4px; line-height: 1.1; }
.timeline p { margin: 0; }

/* awards: trophy grid */
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; padding: 0; list-style: none; margin: 28px 0; }
.awards li { background: var(--bg); border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 18px; }
.awards .place { display: inline-block; background: var(--ink); color: var(--bg); font-family: var(--head); font-size: 18px; padding: 2px 10px; }
.awards h3 { font-size: 26px; margin: 10px 0 4px; line-height: 1.1; }
.awards p { margin: 0; color: var(--soft); font-size: 15px; }

.back { display: inline-block; margin-top: 56px; font-family: var(--head); font-size: 22px; }
@media (max-width: 600px) { header nav a { font-size: 16px; padding: 6px 9px 7px; } header .home { font-size: 24px; } }

/* contacts & links: big buttons */
main h2 { margin-top: 36px; }
.links { list-style: none; padding: 0; margin: 12px 0 8px; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.links a { display: block; background: var(--bg); color: var(--ink); text-decoration: none; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 14px 18px; font-family: var(--head); font-weight: 600; font-size: 26px; line-height: 1.1; transition: transform .08s, box-shadow .08s; }
.links a span { display: block; font-family: var(--body); font-weight: 400; font-size: 14px; color: var(--soft); margin-top: 4px; overflow-wrap: anywhere; }
.links a:hover, .links a:focus-visible { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); background: var(--ink); color: var(--bg); outline: none; }
.links a:hover span, .links a:focus-visible span { color: #cfcfcf; }

/* projects: two per row (one on phones) */
main.wide { width: min(1080px, 100% - 32px); }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 24px 0 8px; }
.projects .box { margin: 0; display: flex; flex-direction: column; }
.projects .box > a:last-child { margin-top: auto; align-self: flex-start; }
.projects .box p:not(.meta) { margin: 0 0 14px; }
img.shot { display: block; width: 100%; height: auto; aspect-ratio: 16/9; object-fit: cover; padding: 0; box-sizing: border-box; }   /* full colour (only the about slabs are black & white) */
@media (max-width: 700px) { .projects { grid-template-columns: 1fr; } }

/* projects: tidy spacing */
.projects .box { padding: 22px 24px 24px; }
.projects .box h3 { margin-bottom: 2px; }
.projects .box .meta { margin: 0 0 14px; }
.projects .box .shot { margin: 0 0 16px; }
.projects div.shot:has(> img) { border: 0; background: none; display: block; aspect-ratio: auto; }   /* an <img class="shot"> inside a <div class="shot"> = one frame, not two */
.projects div.shot > img.shot { margin: 0; border: 3px solid var(--ink); }
.projects img.shot { border: 3px solid var(--ink); }
.projects .box > p:not(.meta) { margin: 0 0 16px; line-height: 1.55; }
.projects .box > :last-child { margin-top: auto; margin-bottom: 0; }
.projects iframe { display: block; width: 100%; max-width: 100%; height: 167px; border: 0; }

/* experience: a list down the line, one area per entry, with links that back it up */
.areas { list-style: none; padding: 0; margin: 32px 0; border-left: 4px solid var(--ink); }
.areas > li { position: relative; padding: 0 0 44px 32px; }
.areas > li:last-child { padding-bottom: 6px; }
.areas > li::before { content: ""; position: absolute; left: -12px; top: 10px; width: 16px; height: 16px; background: var(--bg); border: 4px solid var(--ink); }
.areas h3 { font-size: 34px; margin: 0 0 6px; line-height: 1.1; }
.areas .tag { font-family: var(--head); font-size: 17px; color: var(--soft); margin: 0 0 8px; }
.areas p { margin: 0 0 12px; line-height: 1.6; }
.areas .proof { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.areas .proof a { display: inline-block; border: 2px solid var(--ink); padding: 4px 12px; text-decoration: none; color: var(--ink); background: var(--bg); font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.areas .proof a:hover { background: var(--ink); color: var(--bg); }
.projects .box h3 + p:not(.meta) { margin-top: 12px; }   /* a card with no meta line (like "Right now") */

/* experience: stat badges, highlights, and the "read the story" button */
.areas > li { padding-bottom: 56px; }
.areas .tag { margin-bottom: 14px; }
.areas .stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.areas .stats span { display: flex; flex-direction: column; justify-content: center; min-width: 120px; padding: 10px 14px 11px; background: var(--ink); color: var(--bg);
  font-size: 13px; line-height: 1.3; box-shadow: 4px 4px 0 #bdbdbd; }
.areas .stats b { font-family: var(--head); font-weight: 600; font-size: 30px; line-height: 1; margin-bottom: 4px; }
.areas .hl { margin: 0 0 16px; padding-left: 20px; }
.areas .hl li { margin: 0 0 6px; line-height: 1.5; }
.areas .hl li::marker { content: "▸  "; }
.areas .proof { margin-bottom: 0; }
.story { margin-top: 18px; }
.story summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none;
  background: var(--ink); color: var(--bg); font-family: var(--head); font-weight: 600; font-size: 20px; line-height: 1;
  padding: 12px 18px 13px; border: 3px solid var(--ink); box-shadow: 5px 5px 0 #bdbdbd; transition: transform .08s, box-shadow .08s, background .1s, color .1s; }
.story summary::-webkit-details-marker { display: none; }
.story summary::after { content: "▾"; font-size: 18px; transition: transform .2s; }
.story summary:hover, .story summary:focus-visible { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 #bdbdbd; outline: none; }
.story[open] summary { background: var(--bg); color: var(--ink); box-shadow: 4px 4px 0 var(--ink); font-size: 0; }
.story[open] summary::before { content: "close story"; font-size: 20px; }
.story[open] summary::after { transform: rotate(180deg); }
.story-body { margin-top: 18px; padding: 4px 0 4px 20px; border-left: 3px dashed var(--ink); animation: storyIn .25s ease; }
.story-body p { margin: 0 0 12px; line-height: 1.65; }
.story-body .proof { margin: 0 0 18px; }
.story-body > :last-child { margin-bottom: 0; }
@keyframes storyIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 600px) { .areas .stats span { min-width: 0; flex: 1 1 40%; } .areas .stats b { font-size: 24px; } .areas > li { padding-left: 22px; } }

/* stat badges: one row, sharing the width (they wrap only on phones) */
.areas .stats { flex-wrap: nowrap; }
.areas .stats span { flex: 1 1 0; min-width: 0; }
@media (max-width: 600px) { .areas .stats { flex-wrap: wrap; } .areas .stats span { flex: 1 1 40%; } }
.areas .stats span { justify-content: flex-start; }
.areas .stats b { font-size: clamp(20px, 2.1vw, 27px); }

/* a video inside a story */
.story-body video.clip { display: block; width: 100%; max-width: 640px; aspect-ratio: 16/9; background: #111; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); margin: 4px 0 20px; }

/* awards strip at the top of Experience & awards */
h2.awards-title { font-size: 28px; margin: 40px 0 14px; }
.award-strip { list-style: none; padding: 0; margin: 0 0 8px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.award-strip li { background: var(--bg); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); padding: 12px 12px 13px; font-size: 13px; line-height: 1.35; display: flex; flex-direction: column; }
.award-strip b { font-family: var(--head); font-weight: 600; font-size: clamp(20px, 2.2vw, 28px); line-height: 1.05; margin-bottom: 6px; }
@media (max-width: 760px) { .award-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* project cards: trailer videos + the row of links at the bottom */
.projects iframe.video { display: block; width: 100%; height: auto; aspect-ratio: 16/9; border: 3px solid var(--ink); margin: 0 0 16px; background: #111; }
.projects .card-foot { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.projects .card-foot iframe { flex: 1 1 100%; }
.projects .card-foot .row { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.projects .card-foot .row:empty { display: none; }

/* black stat badges: a clean, easy-to-read font for the small text */
.areas .stats span { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px; line-height: 1.35; letter-spacing: .01em; color: #f2f2f2; padding: 12px 16px 14px; }
.areas .stats b { color: #fff; margin-bottom: 6px; }

/* ===== experience v3: quick facts + story as steps ===== */
.areas .hl { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 22px; }
.areas .hl li { margin: 0; padding-left: 12px; border-left: 3px solid var(--ink); line-height: 1.4; font-size: 15px; }
.areas .hl li::marker { content: none; }
.areas .hl b { display: block; font-family: var(--head); font-weight: 600; font-size: 17px; }
.story .steps { list-style: none; margin: 18px 0 0; padding: 0 0 0 22px; border-left: 3px dashed var(--ink); animation: storyIn .25s ease; }
.story .steps > li { position: relative; padding: 0 0 18px; }
.story .steps > li:last-child { padding-bottom: 2px; }
.story .steps > li::before { content: ""; position: absolute; left: -30px; top: 5px; width: 10px; height: 10px; background: var(--ink); }
.story .when { display: inline-block; font-family: var(--head); font-weight: 600; font-size: 15px; background: var(--ink); color: var(--bg); padding: 2px 8px 3px; margin-bottom: 6px; }
.story .steps p { margin: 0 0 8px; line-height: 1.55; }
.story .steps .proof { margin: 0; }
.story .steps video.clip { display: block; width: 100%; max-width: 560px; aspect-ratio: 16/9; background: #111; border: 3px solid var(--ink); margin: 4px 0 10px; }
@media (max-width: 600px) { .areas .hl { grid-template-columns: 1fr; } }

/* a gameplay clip that plays like a GIF (muted, looping) */
video.shot { display: block; width: 100%; height: auto; border: 3px solid var(--ink); margin: 0 0 16px; background: #111; }

/* black badges: big text in a bold, plain font so numbers are easy to read */
.areas .stats b { font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-weight: 800; letter-spacing: -.01em; font-size: clamp(22px, 2.3vw, 30px); line-height: 1.1; }

/* a logo instead of a screenshot (shown whole, centered on white) */
img.shot.logo { object-fit: contain; background: #fff; padding: 12% 18%; }
