:root {
  --ink: #18261e;
  --muted: #506055;
  --line: #cfdacf;
  --mint: #b9e5ae;
  --paper: #f7f8f2;
  --mono: "DM Mono", monospace;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 "Space Grotesk", system-ui, sans-serif; }
button, a { color: inherit; }
button { cursor: pointer; font: inherit; }
a { text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .3em; }
:focus-visible { outline: 3px solid #387b45; outline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: fixed; top: .5rem; left: .5rem; background: white; padding: .5rem; z-index: 3; transform: translateY(-150%); }
.skip:focus { transform: none; }
.top, footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; white-space: nowrap; }
.brand span { display: grid; place-items: center; width: 34px; height: 34px; background: var(--ink); color: var(--mint); font: 500 13px var(--mono); }
.nav-group, nav { display: flex; align-items: center; }
.nav-group { gap: 16px; }
nav { gap: 30px; font: 14px var(--mono); }
.launcher { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border: 1px solid transparent; border-radius: 5px; background: transparent; }
.launcher:hover, .launcher[aria-expanded="true"] { background: #e8f0e2; border-color: var(--line); }
.launcher canvas { width: 24px; image-rendering: pixelated; }
.top { position: relative; }
#arcade {
  position: absolute;
  z-index: 2;
  inset: calc(50% + 26px) 0 auto auto;
  width: min(360px, 100%);
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
}
.game-head, .score, .game-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.game-head h2 { margin: 0; font-size: 24px; }
#close, #jump { background: var(--mint); border: 1px solid var(--ink); padding: 5px 11px; }
#close { min-width: 34px; }
.score, .game-controls { font: 14px var(--mono); margin-top: 11px; }
.score { margin-bottom: 8px; }
#track { width: 100%; display: block; border: 1px solid var(--ink); image-rendering: pixelated; touch-action: manipulation; }
#game-status { margin-top: 8px; font-size: 14px; }

.hero { margin-top: 20px; }
.cover {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(28px, 6vw, 80px);
  min-height: 340px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: #102626;
  background-image: linear-gradient(#9fdfbf0d 1px, transparent 1px), linear-gradient(90deg, #9fdfbf0d 1px, transparent 1px);
  background-size: 28px 28px;
  color: #f2f8ed;
}
.eyebrow { font: 500 13px var(--mono); letter-spacing: .1em; }
.cover .eyebrow, .cover h1 span { color: var(--mint); }
.cover h1 { margin: 12px 0; font-size: clamp(48px, 8vw, 108px); line-height: 1; letter-spacing: -.07em; }
.cover .hero-description { color: #d6e6d9; font-size: clamp(17px, 2vw, 21px); max-width: 38ch; }
.hero-action {
  display: inline-flex;
  align-self: start;
  align-items: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 8px 15px;
  border: 1px solid var(--mint);
  background: var(--mint);
  color: var(--ink);
  font: 500 .875rem/1.4 var(--mono);
}
.hero-action:focus-visible { outline-color: var(--mint); }
.trace { position: absolute; z-index: -1; width: 48%; aspect-ratio: 1; right: -12%; border-radius: 50%; background: repeating-radial-gradient(circle, #94d6b24a 0 1px, transparent 2px 18px); }
.intro, .listing { display: grid; grid-template-columns: minmax(130px, 1fr) 3fr; gap: 28px; padding-block: 46px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.intro { margin-top: 12px; }
.section-label { font: 500 14px var(--mono); padding-top: 10px; }
.section-label span { display: inline-block; width: 8px; height: 8px; background: #588753; margin-right: .55em; }
h2 { font-size: clamp(28px, 4vw, 49px); line-height: 1.12; letter-spacing: -.055em; margin: 0 0 16px; }
h2 span { color: #57884d; }
h3 { font-size: 22px; line-height: 1.15; letter-spacing: -.04em; margin: 0 0 9px; }
p { margin: 0; color: var(--muted); }
.intro p { font-size: 18px; max-width: 60ch; }
.intro p + p, article p + p { margin-top: 13px; }
.profile-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; }
.profile-links a { text-decoration: underline; text-underline-offset: .25em; font-weight: 600; }
.about-details {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 24px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.about-details ul, .about-details dl { margin: 0; color: var(--muted); }
.about-details ul { padding-left: 1.2em; }
.about-details li + li { margin-top: 5px; }
.about-details dt { font-weight: 600; color: var(--ink); }
.about-details dd { margin: 0; }
.about-details dd + dt { margin-top: 10px; }
.project-entry { margin-top: 23px; padding-top: 20px; border-top: 1px solid var(--line); scroll-margin-top: 20px; }
.project-entry p, .case-study p { max-width: 64ch; }
.project-link { text-decoration: underline; text-underline-offset: .25em; }
.project-case-link { display: block; }
.project-case-link:hover { text-decoration: none; }
.project-case-link .project-link { display: inline-block; margin-top: 8px; font-weight: 600; }
.case-study { max-width: 820px; padding-block: clamp(28px, 5vw, 58px); border-bottom: 1px solid var(--line); }
.case-header { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.case-header a { font: 500 .875rem/1.5 var(--mono); }
.case-header h1 { margin: 12px 0 6px; font-size: clamp(52px, 8vw, 88px); line-height: 1.02; letter-spacing: -.07em; }
.case-header h1 span { color: #57884d; }
.project-type { font: 14px/1.5 var(--mono); }
.project-media { margin: 22px 0; }
.project-media:last-child { margin-bottom: 0; }
.project-media > a { display: block; }
.project-media img, .project-media video {
  display: block;
  width: 100%;
  height: auto;
  background: #14171e;
  border: 1px solid var(--line);
}
.project-media figcaption { margin-top: 7px; max-width: 68ch; color: var(--muted); font-size: 14px; }
.streams-architecture { margin: 28px 0 22px; border-bottom: 1px solid var(--line); }
.streams-architecture figcaption, .streams-decisions h2 { margin: 0 0 8px; font-size: 1.125rem; line-height: 1.25; font-weight: 700; }
.streams-decisions h2 { letter-spacing: normal; }
.streams-flow {
  display: grid;
  grid-template-columns: minmax(8.5rem, 1fr) minmax(0, 4fr);
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  line-height: 1.35;
}
.streams-flow > span { color: var(--muted); font: 500 .875rem/1.55 var(--mono); }
.streams-flow ol {
  --flow-gap: clamp(1.375rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--flow-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.streams-flow li { position: relative; font-size: .9375rem; font-weight: 600; }
.streams-flow li:not(:last-child)::before, .streams-flow li:not(:last-child)::after {
  content: "";
  position: absolute;
  color: #588753;
}
.streams-flow li:not(:last-child)::before {
  top: .67em;
  inset-inline-start: calc(100% + .25rem);
  width: calc(var(--flow-gap) - .5rem);
  border-top: 1px solid currentColor;
}
.streams-flow li:not(:last-child)::after {
  top: calc(.67em - 3px);
  inset-inline-end: calc(.25rem - var(--flow-gap));
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}
.streams-flow small { display: block; margin-top: 2px; color: var(--muted); font-size: .875rem; font-weight: 400; }
.streams-decisions { margin-bottom: 13px; }
#timeline { row-gap: 0; }
#timeline-title { grid-column: -2 / -1; }
.timeline {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  list-style: none;
  margin: 0;
  padding: 5px 0 0;
}
.timeline > li {
  position: relative;
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  padding-bottom: 27px;
}
.timeline > li::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 0;
  width: 10px;
  height: 10px;
  background: #588753;
}
.timeline > li:not(:last-child)::after {
  content: "";
  position: absolute;
  inset: 16px auto -6px 4px;
  border-left: 2px solid var(--line);
}
.timeline > li:last-child { padding-bottom: 0; }
.timeline-date { padding: 3px 0 0 21px; font: 14px/1.5 var(--mono); }
.timeline h3 { margin-bottom: 3px; }
.timeline-place { margin-bottom: 7px; color: var(--ink); font-weight: 600; }
.timeline > li > div { max-width: 65ch; }
.experience-points { margin: 0; padding-left: 1.2em; color: var(--muted); }
.experience-points li + li, .coursework { margin-top: 7px; }
footer { font: 14px var(--mono); }

@media (max-width: 800px) {
  .streams-flow { grid-template-columns: 1fr; gap: 6px; }
}

@media (max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .top { padding-block: 13px; gap: 10px; }
  .nav-group, nav { gap: 11px; }
  .brand { gap: 7px; }
  .brand span { width: 28px; height: 28px; }
  .hero { margin-top: 12px; }
  .cover { min-height: 250px; }
  .trace { width: 75%; }
  .intro, .listing { grid-template-columns: 1fr; gap: 12px; padding-block: 32px; }
  .timeline > li { row-gap: 4px; padding-left: 21px; }
  .timeline-date { padding-left: 0; }
}

@media (max-width: 460px) {
  .top .brand strong { display: none; }
  .about-details { grid-template-columns: 1fr; }
  .game-controls { flex-wrap: wrap; }
}
