:root {
  --ink: #252433;
  --paper: #fffaf1;
  --blue: #78b9e8;
  --pink: #f4a4bb;
  --pink-dark: #df6d96;
  --yellow: #ffd938;
  --green: #6fcf9d;
  --lavender: #c9b8ed;
  --orange: #ffad85;
  --line: 2px solid var(--ink);
  --shadow: 7px 8px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle, rgba(255,255,255,.26) 0 2px, transparent 3px) 0 0 / 72px 72px,
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px) 0 0 / 100% 6px,
    var(--blue);
  font-family: "DM Sans", sans-serif;
  line-height: 1.55;
}

body.game-active { overflow: hidden; }
a { color: inherit; }
button { color: inherit; font: inherit; }

:focus-visible {
  outline: 4px solid white;
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--ink);
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: -80px;
  left: 20px;
  padding: 10px 16px;
  background: var(--ink);
  color: white;
  border-radius: 0 0 10px 10px;
}
.skip-link:focus { top: 0; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 16px;
  width: min(1160px, calc(100% - 32px));
  margin: 20px auto 0;
  padding: 12px 14px 12px 20px;
  display: flex;
  align-items: center;
  gap: 30px;
  background: rgba(255,250,241,.92);
  border: var(--line);
  border-radius: 17px;
  box-shadow: 5px 6px 0 var(--ink);
  backdrop-filter: blur(12px);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font: 800 1.55rem/1 "Baloo 2", sans-serif;
  text-decoration: none;
}
.wordmark span { color: var(--pink-dark); font-size: .8em; }

.balloon-nav-wordmark {
  flex: 0 0 auto;
  gap: 3px;
  height: 32px;
}

.balloon-nav-wordmark img {
  display: block;
  width: auto;
  height: 100%;
  filter: drop-shadow(1.5px 2px 0 var(--ink));
  transition: transform .16s ease;
}

.balloon-nav-wordmark img { height: 88%; }
.balloon-nav-wordmark:hover img { transform: rotate(-2deg) translateY(-1px); }

.balloon-nav-star {
  color: var(--pink-dark);
  font-size: .95rem;
  -webkit-text-stroke: 0;
  text-shadow: none;
  transform: translateY(-5px) rotate(8deg);
  transition: transform .16s ease;
}

.balloon-nav-wordmark:hover .balloon-nav-star {
  transform: translateY(-7px) rotate(18deg) scale(1.12);
}

.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
}
.site-header nav a,
.resume-button,
.site-footer a,
.text-link {
  padding: 0;
  background: transparent;
  border: 0;
  font-weight: 700;
  font-size: .9rem;
  text-decoration-line: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
  text-decoration-color: transparent;
  cursor: pointer;
  transition: color .16s ease, text-decoration-color .16s ease;
}
.site-header nav a:hover,
.resume-button:hover,
.site-footer a:hover,
.text-link:hover {
  color: var(--pink-dark);
  text-decoration-color: var(--pink-dark);
}

.game-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  background: var(--ink);
  color: white;
  border: var(--line);
  border-radius: 999px;
  cursor: pointer;
  font: 600 .72rem "Pixelify Sans", monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--pink);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.game-toggle:hover { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--pink); }
.game-toggle[aria-pressed="true"] {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--pink-dark), 4px 4px 0 var(--ink);
}
.game-light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 2px rgba(255,255,255,.22);
}

main,
.site-footer {
  width: min(1160px, calc(100% - 32px));
  margin-inline: auto;
}

.intro {
  min-height: 730px;
  display: grid;
  grid-template-columns: minmax(360px, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(36px, 8vw, 110px);
  padding: 70px 28px 85px;
}

.portrait-wrap {
  position: relative;
  min-width: 0;
}

.portrait-stage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 13 / 14;
  margin-inline: auto;
}

#dot-portrait {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  cursor: crosshair;
  touch-action: none;
  transition: opacity .45s ease, transform .45s ease;
}

.portrait-photo {
  position: absolute;
  inset: 3%;
  width: 94%;
  height: 94%;
  object-fit: cover;
  object-position: center 31%;
  opacity: 0;
  visibility: hidden;
  transform: rotate(2deg) scale(.96);
  border: var(--line);
  border-radius: 22px;
  box-shadow: 7px 8px 0 var(--ink);
  transition: opacity .45s ease, transform .45s ease, visibility .45s;
}

.portrait-stage.show-photo #dot-portrait {
  opacity: 0;
  transform: scale(.94) rotate(-2deg);
  pointer-events: none;
}

.portrait-stage.show-photo .portrait-photo {
  opacity: 1;
  visibility: visible;
  transform: rotate(1deg) scale(1);
}

.portrait-stage.show-photo::after {
  content: "hi! ★";
  position: absolute;
  top: 1%;
  right: 3%;
  padding: 7px 13px 5px;
  background: var(--yellow);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(4deg);
  font: 600 .72rem "Pixelify Sans", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.portrait-caption {
  width: min(440px, 88%);
  margin: -5px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 10px;
  border-top: 1.5px solid rgba(37,36,51,.55);
  font: 600 .68rem "Pixelify Sans", monospace;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.portrait-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.portrait-caption button {
  padding: 4px 0;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  cursor: pointer;
  font: inherit;
  text-transform: uppercase;
}

.portrait-caption button:hover,
.portrait-caption button:focus-visible {
  color: var(--pink-dark);
}

#portrait-view-toggle {
  color: var(--pink-dark);
  font-weight: 700;
}

#morph-button[hidden] {
  display: none;
}

.eyebrow {
  margin: 0 0 10px;
  font: 600 .82rem "Pixelify Sans", monospace;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1,
h2,
h3 { margin-top: 0; font-family: "Baloo 2", sans-serif; line-height: 1; }

h1 {
  margin-bottom: 24px;
  font-size: clamp(5.5rem, 11vw, 9.6rem);
  letter-spacing: -.08em;
}
h1 span {
  color: var(--pink);
  -webkit-text-stroke: 2.5px var(--ink);
  text-shadow: 4px 5px 0 var(--pink-dark), 7px 8px 0 var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.balloon-name {
  width: min(680px, 100%);
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 0;
}

.balloon-name-row {
  display: block;
  height: auto;
  filter: drop-shadow(5px 7px 0 var(--ink));
}

.balloon-name-lana {
  width: 72%;
  margin-left: 2%;
  transform: rotate(.7deg);
}

.balloon-name-garcia {
  width: 100%;
  margin-top: -10%;
  margin-bottom: -8%;
  transform: rotate(-1deg);
}

.intro-copy > p:not(.eyebrow) {
  max-width: 620px;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 600;
}

.intro-actions {
  margin-top: 30px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.button {
  display: inline-flex;
  padding: 12px 19px;
  border: var(--line);
  border-radius: 14px;
  box-shadow: 4px 5px 0 var(--ink);
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.button:hover { transform: translate(3px,3px); box-shadow: 1px 1px 0 var(--ink); }
.button-primary { background: var(--yellow); }

.projects-section { padding: 95px 0 110px; }

.section-heading {
  margin: 0 12px 48px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 36px;
}
.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 5.6rem);
  letter-spacing: -.06em;
}
.balloon-section-heading {
  width: min(100%, 540px);
  margin-bottom: 0;
  overflow: hidden;
  line-height: 0;
}
.balloon-section-heading img {
  width: 100%;
  height: auto;
  display: block;
  margin-block: -11%;
  filter: drop-shadow(4px 6px 0 var(--ink));
}
.balloon-play-heading { width: min(72vw, 760px); }
.section-heading > p {
  max-width: 330px;
  margin: 0 0 9px;
  font-weight: 600;
}

.project-folder {
  position: relative;
  padding: 28px;
  background: var(--yellow);
  border: var(--line);
  border-radius: 0 28px 28px 28px;
  box-shadow: var(--shadow);
}

.project-tabs {
  position: absolute;
  bottom: 100%;
  left: -2px;
  max-width: calc(100% + 4px);
  display: flex;
  align-items: end;
}

.project-tabs button {
  min-width: 0;
  padding: 11px 21px 8px;
  background: var(--pink);
  border: var(--line);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  cursor: pointer;
  font: 600 .72rem "Pixelify Sans", monospace;
  transition: padding .16s ease, background .16s ease;
}
.project-tabs button + button { margin-left: -2px; }
.project-tabs button[aria-selected="true"] {
  z-index: 2;
  padding-top: 18px;
  background: var(--yellow);
}
.project-tabs button:hover { background: var(--paper); }
.project-tabs button[aria-selected="true"]:hover { background: var(--yellow); }

.project-panel {
  min-height: 570px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  background: var(--paper);
  border: var(--line);
  border-radius: 22px;
  overflow: hidden;
}
.project-panel[hidden] { display: none; }

.project-visual {
  min-width: 0;
  padding: clamp(20px, 4vw, 48px);
  display: grid;
  place-items: center;
  border-right: var(--line);
}
.visual-forekast { background: var(--lavender); }
.visual-data { background: #9fd8e1; }
.visual-map { background: #9dd7a9; }
.visual-kuseena { background: var(--orange); }

.project-screenshot-frame {
  width: 100%;
  height: auto;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: white;
  border: var(--line);
  border-radius: 15px;
  box-shadow: 6px 7px 0 rgba(37,36,51,.7);
}
.project-screenshot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
}
.project-screenshot.is-minidatadev { object-position: left center; }

.mini-window {
  width: 100%;
  overflow: hidden;
  background: white;
  border: var(--line);
  border-radius: 15px;
  box-shadow: 6px 7px 0 rgba(37,36,51,.7);
}
.window-bar {
  height: 34px;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 5px;
  background: var(--paper);
  border-bottom: 1.5px solid var(--ink);
}
.window-bar i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  background: #ff6c5c;
}
.window-bar i:nth-child(2) { background: var(--yellow); }
.window-bar i:nth-child(3) { background: var(--green); }
.window-bar span {
  margin-left: auto;
  font: 500 .62rem "Pixelify Sans", monospace;
}

.forecast-ui { min-height: 330px; padding: 20px; background: #f5f1ff; }
.forecast-nav { display: flex; align-items: center; gap: 18px; font-size: .62rem; }
.forecast-nav b { margin-right: auto; color: #6650bd; font-size: .85rem; }
.forecast-nav em { padding: 6px 9px; background: #6f55cf; color: white; border-radius: 6px; font-style: normal; }
.forecast-card {
  margin-top: 45px;
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  background: white;
  border: 1.5px solid var(--ink);
  border-radius: 12px;
}
.forecast-card small,
.forecast-card b { display: block; }
.forecast-card small { color: #746b8a; font-size: .52rem; }
.forecast-card b { margin-top: 6px; max-width: 290px; font-size: .78rem; }
.forecast-card strong { color: #6044bf; }
.forecast-meter { grid-column: 1 / -1; height: 8px; overflow: hidden; background: #dfd8f6; border-radius: 99px; }
.forecast-meter i { display: block; width: 68%; height: 100%; background: #7d62dc; }
.forecast-card footer { grid-column: 1 / -1; display: flex; gap: 7px; font-size: .5rem; }
.forecast-card footer span { padding: 3px 7px; background: #eee9fa; border-radius: 99px; }
.forecast-card footer span:last-child { margin-left: auto; background: transparent; }
.forecast-mini { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 14px; }
.forecast-mini span { height: 52px; background: white; border: 1px solid #b8acd6; border-radius: 7px; }

.data-ui,
.recipe-ui { min-height: 330px; display: grid; grid-template-columns: 29% 71%; }
.data-ui aside,
.recipe-ui aside {
  padding: 24px 15px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  background: #263f55;
  color: white;
  font-size: .62rem;
}
.data-ui aside b,
.recipe-ui aside b { margin-bottom: 12px; font: 700 .9rem "Baloo 2", sans-serif; }
.data-ui aside .selected,
.recipe-ui aside .selected { margin-left: -7px; padding: 5px 7px; background: rgba(255,255,255,.18); border-radius: 4px; }
.data-main,
.recipe-main { min-width: 0; padding: 24px; }
.data-title,
.recipe-title { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.data-title span,
.recipe-title span { padding: 6px 9px; background: var(--pink-dark); color: white; border-radius: 6px; font-size: .55rem; }
.data-chart {
  height: 190px;
  margin-top: 24px;
  padding: 12px 12px 0;
  display: flex;
  align-items: end;
  justify-content: space-around;
  gap: 8px;
  background: repeating-linear-gradient(white 0 39px, #dfecef 40px);
  border-left: 1px solid #647b89;
  border-bottom: 1px solid #647b89;
}
.data-chart i {
  width: 12%;
  height: var(--h);
  background: var(--pink);
  border: 1px solid var(--ink);
  border-radius: 3px 3px 0 0;
}
.data-chart i:nth-child(even) { background: var(--yellow); }
.data-main small { display: block; margin-top: 9px; text-align: center; color: #586f7b; }

.map-ui {
  min-height: 330px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(40deg, transparent 45%, rgba(94,164,113,.25) 45% 58%, transparent 58%),
    #d8e9bc;
}
.map-road { position: absolute; height: 34px; background: var(--paper); border-block: 1px solid #8b9286; }
.road-one { width: 120%; top: 35%; left: -10%; transform: rotate(15deg); }
.road-two { width: 100%; top: 68%; left: 4%; transform: rotate(-21deg); }
.road-three { width: 78%; top: 12%; left: 25%; transform: rotate(68deg); }
.map-water { position: absolute; width: 110px; height: 390px; right: -55px; top: -20px; background: #75c7dd; border-left: 2px solid #368b9f; border-radius: 50%; }
.map-pin {
  position: absolute;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  background: var(--pink);
  border: 1.5px solid var(--ink);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  font-style: normal;
  font-size: .65rem;
}
.pin-one { left: 20%; top: 20%; }
.pin-two { left: 54%; top: 46%; background: var(--yellow); }
.pin-three { left: 35%; bottom: 12%; background: var(--lavender); }
.map-card {
  position: absolute;
  right: 20px;
  bottom: 20px;
  width: 175px;
  padding: 11px;
  background: white;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  box-shadow: 3px 3px 0 var(--ink);
  line-height: 1.25;
}
.map-card b,
.map-card small { display: block; }
.map-card b { font-size: .67rem; }
.map-card small { margin-top: 3px; font-size: .53rem; }

.recipe-ui aside { background: #a84d30; }
.recipe-main { background: #fff9ef; }
.recipe-title b { font: 700 1rem "Baloo 2", sans-serif; }
.recipe-title span { background: #df7049; }
.recipe-cards { margin: 30px 0 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.recipe-cards i {
  min-width: 0;
  padding: 20px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: white;
  border: 1px solid #bd9a88;
  border-radius: 8px;
  font-style: normal;
}
.recipe-cards b { font-size: 1.7rem; }
.recipe-cards span { font-size: .53rem; }
.recipe-main > small { padding: 6px 9px; background: #f2ddc9; border-radius: 5px; font-size: .55rem; }

.project-copy {
  position: relative;
  min-width: 0;
  padding: clamp(30px, 5vw, 58px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.project-number {
  position: absolute;
  top: 25px;
  right: 26px;
  font: 600 .72rem "Pixelify Sans", monospace;
  color: var(--pink-dark);
}
.project-kicker {
  margin: 0 0 6px;
  font: 600 .7rem "Pixelify Sans", monospace;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.project-copy h3 {
  margin-bottom: 18px;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  letter-spacing: -.05em;
}
#panel-scrawlnsprawl .project-copy h3 {
  max-width: 100%;
  font-size: clamp(1.75rem, 2.5vw, 2.1rem);
  line-height: 1.05;
}
.project-copy > p:not(.project-kicker) { font-size: .98rem; }
.project-copy ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding: 0;
  margin: 22px 0 30px;
}
.project-copy li {
  padding: 5px 9px;
  background: #eee8dc;
  border-radius: 6px;
  font: 600 .67rem "Pixelify Sans", monospace;
}
.project-link {
  width: max-content;
  font-weight: 800;
  text-underline-offset: 5px;
  transition: color .16s ease, text-decoration-color .16s ease;
}

.project-link:hover,
.project-link:focus-visible {
  color: var(--pink-dark);
  text-decoration-color: var(--pink-dark);
}

.keyboard-section {
  padding: 30px 0 110px;
}

.keyboard-heading {
  margin: 0 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
}

.keyboard-heading h2 {
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 5.6rem);
  letter-spacing: -.06em;
}

.keyboard-heading > p {
  max-width: 420px;
  margin: 0 0 9px;
  font-weight: 600;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 23px;
  height: 23px;
  padding-inline: 4px;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  box-shadow: 1px 2px 0 var(--ink);
  font: 600 .67rem "Pixelify Sans", monospace;
}

.keyboard-shell {
  position: relative;
  padding: 26px 26px 32px;
  background: var(--pink);
  border: var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.keyboard-shell::after {
  content: "♪";
  position: absolute;
  top: -24px;
  right: 32px;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  border: var(--line);
  border-radius: 50%;
  font: 800 1.7rem "Baloo 2", sans-serif;
  transform: rotate(8deg);
}

.keyboard-status {
  min-height: 24px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 .72rem "Pixelify Sans", monospace;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.equalizer {
  height: 20px;
  display: flex;
  align-items: end;
  gap: 3px;
}

.equalizer i {
  width: 4px;
  height: 6px;
  background: var(--ink);
  border-radius: 3px;
}

.keyboard-shell.playing .equalizer i {
  animation: equalizer-bounce .4s ease-in-out infinite alternate;
}

.keyboard-shell.playing .equalizer i:nth-child(2) { animation-delay: .1s; }
.keyboard-shell.playing .equalizer i:nth-child(3) { animation-delay: .2s; }

@keyframes equalizer-bounce {
  to { height: 19px; }
}

.keyboard-keys {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 7px;
  padding: 9px 9px 14px;
  background: var(--ink);
  border: var(--line);
  border-radius: 18px;
  box-shadow: inset 0 -6px 0 #111018;
}

.music-key {
  min-width: 0;
  height: 180px;
  padding: 11px 5px 15px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  background: var(--paper);
  border: 0;
  border-radius: 9px 9px 12px 12px;
  box-shadow: 0 7px 0 #cec7ba;
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, background .12s ease;
}

.music-key span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: #ece7dd;
  border: 1.5px solid var(--ink);
  border-radius: 5px;
  font: 600 .7rem "Pixelify Sans", monospace;
}

.music-key b {
  font-size: .75rem;
}

.music-key:hover { background: var(--yellow); }

.music-key.active {
  transform: translateY(6px);
  background: var(--yellow);
  box-shadow: 0 1px 0 #cec7ba;
}

.site-footer {
  padding: 35px 4px 50px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font: 600 .72rem "Pixelify Sans", monospace;
  text-transform: uppercase;
}
.site-footer div { display: flex; gap: 22px; }

.resume-dialog {
  width: min(1080px, calc(100% - 32px));
  height: min(860px, calc(100dvh - 38px));
  max-width: none;
  max-height: none;
  padding: 0;
  background: transparent;
  border: 0;
  overflow: visible;
}

.resume-dialog::backdrop {
  background: rgba(37,36,51,.78);
  backdrop-filter: blur(6px);
}

.resume-modal {
  height: 100%;
  padding: 22px;
  display: grid;
  grid-template-rows: auto minmax(0,1fr) auto;
  gap: 14px;
  background: var(--paper);
  border: var(--line);
  border-radius: 22px;
  box-shadow: 10px 12px 0 var(--ink);
}

.resume-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.resume-header .eyebrow {
  margin-bottom: 4px;
  color: var(--pink-dark);
}

.resume-header h2 {
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  letter-spacing: -.04em;
}

.resume-close {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: var(--pink);
  border: var(--line);
  border-radius: 50%;
  box-shadow: 3px 3px 0 var(--ink);
  cursor: pointer;
  font: 700 1.6rem/1 "DM Sans", sans-serif;
  transition: transform .15s ease, box-shadow .15s ease;
}

.resume-close:hover {
  transform: translate(2px,2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.resume-viewer {
  min-height: 0;
  overflow: hidden;
  background: #36363a;
  border: var(--line);
  border-radius: 14px;
}

.resume-viewer iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

.resume-fallback {
  display: none;
}

.resume-actions {
  display: flex;
  justify-content: flex-end;
  gap: 18px;
}

.resume-actions a {
  font-weight: 800;
  font-size: .82rem;
  text-underline-offset: 4px;
  transition: color .16s ease, text-decoration-color .16s ease;
}

.resume-actions a:hover,
.resume-actions a:focus-visible {
  color: var(--pink-dark);
  text-decoration-color: var(--pink-dark);
}

body.resume-open {
  overflow: hidden;
}

#game-canvas {
  display: none;
  position: fixed;
  z-index: 70;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
body.game-active #game-canvas { display: block; }

.game-hud {
  position: fixed;
  z-index: 110;
  inset: 96px 18px auto auto;
  width: min(440px, calc(100% - 36px));
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 11px 14px;
  background: rgba(37,36,51,.94);
  color: white;
  border: 2px solid white;
  border-radius: 15px;
  box-shadow: 4px 5px 0 rgba(37,36,51,.35);
}
.game-hud[hidden] { display: none; }
.game-score { display: flex; align-items: center; gap: 7px; font: 600 .75rem "Pixelify Sans", monospace; text-transform: uppercase; }
.score-light { width: 9px; height: 9px; background: var(--pink); border-radius: 50%; box-shadow: 0 0 8px var(--pink); }
.game-hud p { grid-column: 1 / -1; grid-row: 2; margin: 0; text-align: left; font-size: .78rem; }
.game-hud > button {
  padding: 6px 10px;
  background: var(--yellow);
  border: 1.5px solid white;
  border-radius: 8px;
  cursor: pointer;
  font: 600 .68rem "Pixelify Sans", monospace;
}
.mobile-game-controls { display: none; }

@media (max-width: 860px) {
  .intro { grid-template-columns: 1fr; padding-top: 80px; }
  .portrait-wrap { order: 2; width: min(520px, 100%); margin-inline: auto; }
  .intro-copy { text-align: center; }
  .intro-copy > p:not(.eyebrow) { margin-inline: auto; }
  .intro-actions { justify-content: center; }
  .project-panel { grid-template-columns: 1fr; }
  .project-visual { min-height: 430px; border-right: 0; border-bottom: var(--line); }
  .project-copy { min-height: 390px; }
  .keyboard-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .game-hud { grid-template-columns: auto 1fr; }
  .game-hud > button { justify-self: end; }
  .game-hud p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 620px) {
  html { scroll-padding-top: 90px; }
  .site-header { width: calc(100% - 20px); margin-top: 10px; top: 8px; gap: 10px; }
  .site-header nav { display: none; }
  .balloon-nav-wordmark { height: 27px; }
  .game-toggle { margin-left: auto; }
  .balloon-play-heading { width: min(92vw, 760px); }
  main,
  .site-footer { width: calc(100% - 20px); }
  .intro { min-height: 0; padding: 72px 8px 80px; }
  h1 { font-size: clamp(4.8rem, 24vw, 6.5rem); }
  .balloon-name { width: min(100%, 560px); }
  .balloon-name-row { filter: drop-shadow(3px 4px 0 var(--ink)); }
  .projects-section { padding-top: 85px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  .project-folder { padding: 12px; border-radius: 0 17px 17px 17px; }
  .project-tabs { width: calc(100% + 4px); overflow-x: auto; scrollbar-width: none; }
  .project-tabs::-webkit-scrollbar { display: none; }
  .project-tabs button { flex: 0 0 auto; padding-inline: 15px; font-size: .64rem; }
  .project-panel { min-height: 0; border-radius: 15px; }
  .project-visual { min-height: 300px; padding: 14px; }
  .forecast-ui,
  .data-ui,
  .recipe-ui,
  .map-ui { min-height: 245px; }
  .forecast-nav span { display: none; }
  .forecast-card { margin-top: 24px; }
  .data-main,
  .recipe-main { padding: 14px; }
  .data-chart { height: 135px; }
  .recipe-cards { margin-block: 20px; gap: 5px; }
  .recipe-cards i { padding: 12px 2px; }
  .project-copy { min-height: 370px; padding: 45px 23px 28px; }
  #panel-scrawlnsprawl .project-copy h3 {
    font-size: clamp(1.65rem, 8vw, 1.9rem);
  }
  .project-number { top: 18px; right: 18px; }
  .keyboard-section { padding-bottom: 85px; }
  .keyboard-shell { padding: 22px 12px 27px; }
  .keyboard-keys { gap: 3px; padding: 6px 5px 11px; }
  .music-key { height: 126px; padding-inline: 2px; }
  .music-key span { width: 21px; height: 21px; font-size: .61rem; }
  .site-footer { flex-direction: column; text-align: center; }
  .site-footer div { justify-content: center; }
  .resume-dialog {
    width: calc(100% - 16px);
    height: calc(100dvh - 16px);
  }
  .resume-modal {
    padding: 14px;
    border-radius: 16px;
    box-shadow: 5px 6px 0 var(--ink);
  }
  .resume-header .eyebrow { font-size: .62rem; }
  .resume-viewer iframe { min-height: 360px; }
  .resume-actions { justify-content: space-between; gap: 10px; }
  .game-hud {
    grid-template-columns: 1fr auto;
    inset: auto 8px 8px;
    width: auto;
    padding: 8px;
    gap: 8px;
  }
  .game-hud p { display: none; }
  .game-hud > button { display: none; }
}

@media (hover: none) and (pointer: coarse) {
  .game-hud {
    inset: 78px 10px auto;
    width: auto;
    grid-template-columns: 1fr;
    padding: 8px 11px;
  }
  .game-hud p,
  .game-hud > button { display: none; }
  .mobile-game-controls {
    position: fixed;
    z-index: 120;
    inset: auto 18px max(18px, env(safe-area-inset-bottom));
    display: none;
    align-items: end;
    justify-content: space-between;
    pointer-events: none;
  }
  body.game-active .mobile-game-controls { display: flex; }
  .move-pad,
  .mobile-jump-button {
    pointer-events: auto;
    touch-action: none;
    -webkit-user-select: none;
    user-select: none;
  }
  .move-pad {
    --stick-x: 0px;
    --stick-y: 0px;
    position: relative;
    width: 116px;
    height: 116px;
    border: 2px solid rgba(255,255,255,.88);
    border-radius: 50%;
    background: rgba(37,36,51,.3);
    box-shadow: inset 0 0 0 4px rgba(37,36,51,.12), 3px 4px 0 rgba(37,36,51,.35);
  }
  .move-pad:focus-visible {
    outline: 4px solid var(--yellow);
    outline-offset: 4px;
  }
  .move-pad-thumb {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    transform: translate(calc(-50% + var(--stick-x)), calc(-50% + var(--stick-y)));
    background: rgba(255,250,241,.94);
    border: 2px solid var(--ink);
    border-radius: 50%;
    box-shadow: 3px 4px 0 rgba(37,36,51,.55);
    transition: transform .06s linear;
  }
  .move-pad.is-dragging .move-pad-thumb { transition: none; }
  .mobile-jump-button {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 0;
    background: rgba(244,164,187,.94);
    color: var(--ink);
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 5px 6px 0 rgba(37,36,51,.55);
    font: 700 .78rem "Pixelify Sans", monospace;
    letter-spacing: .05em;
    text-transform: uppercase;
  }
  .mobile-jump-button span { font-size: 1.35rem; line-height: .8; }
  .mobile-jump-button:active {
    transform: translate(3px,3px);
    box-shadow: 2px 3px 0 rgba(37,36,51,.55);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
