:root {
  --ink: #1c1a12;
  --muted: #4a4638;
  --cream: #f3ecd0;
  --paper: #efe6c0;
  --nav: #f4efd4;
  --grass-a: #4d9a3d;
  --line: #1a1a12;
  --gold: #f0d24a;
  --red: #b42318;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: "VT323", monospace;
  font-size: 22px;
  line-height: 1.35;
  min-height: 100vh;
}

a { color: inherit; }

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 22px;
  background: var(--nav);
  border-bottom: 3px solid var(--line);
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.burger {
  display: none;
  width: 40px;
  height: 40px;
  font-size: 20px;
  line-height: 1;
  background: var(--gold);
  border: 3px solid var(--line);
  color: #1a1a12;
  cursor: pointer;
  position: relative;
  z-index: 26;
}
.nav-panel {
  display: flex;
  align-items: center;
  gap: 16px;
}
.nav-scrim { display: none; }
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.mark {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  background: var(--gold);
  border: 3px solid var(--line);
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: #1a1a12;
}
.word {
  font-family: "Press Start 2P", monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
}
.icon-btn {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  background: var(--paper);
  border: 3px solid var(--line);
  padding: 8px 9px;
  cursor: pointer;
  color: var(--ink);
  white-space: nowrap;
}
.icon-btn.mute { margin-left: 0; }
.icon-btn:hover { background: var(--gold); color: #1a1a12; }
.nav nav { display: flex; align-items: center; gap: 22px; }
.nav nav a {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  text-decoration: none;
  color: var(--ink);
}
.nav nav a:hover,
.nav nav a.on { color: var(--red); }
.ext { font-size: 8px; }
.say-hey {
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  text-decoration: none;
  background: var(--gold);
  border: 3px solid var(--line);
  padding: 10px 12px;
  white-space: nowrap;
  color: #1a1a12;
}
.say-hey:hover { background: #ffe56a; }

.town-stage {
  position: absolute;
  inset: 0;
  overflow: hidden;
  cursor: crosshair;
}
.town-stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  pointer-events: none;
}

.hero-fold,
.cta-fold {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 3px solid var(--line);
}
.hero-fold { min-height: calc(100vh - 52px); }
.cta-fold { min-height: 420px; }

.hero-copy,
.cta-copy {
  position: relative;
  z-index: 2;
  pointer-events: none;
}
.hero-copy a,
.hero-copy button,
.cta-copy a,
.cta-copy button { pointer-events: auto; }

.hero-copy {
  max-width: 920px;
  padding: 56px 48px 120px;
}
.pin {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--nav);
  border: 3px solid var(--line);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  padding: 7px 10px;
  margin-bottom: 22px;
}
.dot {
  width: 8px; height: 8px;
  background: #2f7a32;
  border: 2px solid var(--line);
}
.hero-copy h1 {
  font-family: "Press Start 2P", monospace;
  font-weight: 400;
  font-size: clamp(16px, 2.8vw, 30px);
  line-height: 1.5;
  letter-spacing: 0;
  max-width: none;
  color: #1a1408;
}
.hero-copy h1 .line {
  display: block;
  white-space: nowrap;
}
.hero-copy h1 .line.mob { display: none; }
.hero-copy .name { color: #fff8d6; }
.lede {
  margin-top: 22px;
  max-width: 22em;
  font-size: 26px;
  color: #fff;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.btn {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  text-decoration: none;
  border: 3px solid var(--line);
  padding: 11px 14px;
  background: var(--gold);
  color: #1a1a12;
}
.btn.ghost { background: var(--nav); }

.stats {
  position: absolute;
  left: 28px;
  right: auto;
  bottom: 28px;
  z-index: 3;
  display: flex;
  border: 3px solid var(--line);
  background: var(--nav);
}
.stats div {
  padding: 10px 14px;
  border-right: 3px solid var(--line);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 1.5;
}
.stats div:last-child { border-right: 0; }
.stats b {
  display: block;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 4px;
}

.page {
  background: var(--cream);
}
.section {
  padding: 72px 48px;
  max-width: 1180px;
  margin: 0 auto;
}
.eyebrow {
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  color: #b42318;
  letter-spacing: 0.4px;
  margin-bottom: 16px;
}
.eyebrow span { color: var(--muted); }
.split-head {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 40px;
}
.split-head h2 {
  font-family: "Press Start 2P", monospace;
  font-weight: 400;
  font-size: clamp(28px, 4.6vw, 52px);
  line-height: 1.15;
  max-width: 10ch;
}
.split-head p {
  color: var(--muted);
  font-size: 24px;
  max-width: 28em;
}

.quests {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 28px;
}
.quest {
  text-decoration: none;
  color: inherit;
  display: block;
}
.thumb {
  position: relative;
  border: 3px solid var(--line);
  background: #ddd4b4;
  box-shadow: 6px 6px 0 var(--line);
  aspect-ratio: 16 / 11;
  overflow: hidden;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.num {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--nav);
  border: 3px solid var(--line);
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
  padding: 6px 7px;
}
.quest-meta { padding: 16px 2px 0; }
.quest-meta .tag {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  color: var(--red);
  margin-bottom: 8px;
}
.quest-meta h3 {
  font-family: "Press Start 2P", monospace;
  font-weight: 400;
  font-size: 18px;
  margin-bottom: 8px;
}
.quest-meta p { color: var(--muted); font-size: 22px; }
.more-link {
  display: inline-block;
  margin-top: 12px;
  font-family: "Press Start 2P", monospace;
  font-size: 9px;
}

.map-head { margin-bottom: 18px; }
.map-head h2 {
  font-family: "Press Start 2P", monospace;
  font-weight: 400;
  font-size: clamp(22px, 3vw, 36px);
  margin: 10px 0 8px;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 10px; }
.filters button {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  background: transparent;
  border: 0;
  padding: 8px 4px;
  cursor: pointer;
  color: var(--muted);
}
.filters button.on { color: var(--ink); border-bottom: 3px solid var(--ink); }

.full-map { list-style: none; border-top: 3px solid var(--line); }
.full-map a {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 3px solid var(--line);
  text-decoration: none;
}
.full-map em {
  font-style: normal;
  font-family: "Press Start 2P", monospace;
  font-size: 10px;
  color: var(--muted);
}
.full-map strong {
  font-family: "Press Start 2P", monospace;
  font-weight: 400;
  font-size: 13px;
}
.full-map span {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  color: var(--muted);
  align-self: center;
}
.full-map a:hover strong { color: var(--red); }

.cta-copy {
  max-width: 720px;
  padding: 80px 48px;
}
.cta-copy .eyebrow { color: #b42318; }
.cta-copy h2 {
  font-family: "Press Start 2P", monospace;
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.35;
  max-width: 16ch;
  margin: 10px 0 16px;
  color: #1a1408;
}
.cta-copy p { max-width: 28em; color: #1a1408; font-size: 24px; }
.cta-copy .btn { margin-top: 22px; display: inline-block; }

.site-foot {
  background: var(--nav);
  border-top: 3px solid var(--line);
  padding: 16px 48px 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 1.7;
}
.site-foot a { text-decoration: none; }

.case, .about, .play {
  max-width: 980px;
  margin: 0 auto;
  padding: 40px 28px 80px;
}
.case-back, .case-kicker {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  text-decoration: none;
  color: var(--muted);
}
.case-kicker { color: var(--red); margin: 16px 0 10px; }
.case-where {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin: 6px 0 14px;
}
.case-logo {
  display: block;
  max-height: 72px;
  max-width: min(240px, 70vw);
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 8px 0 22px;
  background: transparent;
}
.case h1, .about h1, .play h1 {
  font-family: "Press Start 2P", monospace;
  font-weight: 400;
  font-size: clamp(18px, 3vw, 28px);
  line-height: 1.4;
}
.intro, .about p { margin-top: 16px; color: var(--muted); }
.pull { font-size: 26px; margin: 14px 0 18px; max-width: 28em; }
.scope { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.scope span {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  border: 3px solid var(--line);
  padding: 6px 8px;
  background: var(--paper);
}
.meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 16px 0 20px;
  border-top: 3px solid var(--line);
  border-bottom: 3px solid var(--line);
  margin-bottom: 22px;
}
.meta h3, .work-block h3 {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  margin-bottom: 6px;
}
.meta p { font-size: 20px; color: var(--muted); }
.work-block { margin: 28px 0 36px; padding-top: 18px; border-top: 3px solid var(--line); }
.work-block h2 {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  line-height: 1.5;
  margin-bottom: 12px;
}
.work-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.gallery { display: grid; gap: 22px; }
.gallery img {
  width: 100%; height: auto; display: block;
  border: 3px solid var(--line);
  background: #fff;
  cursor: zoom-in;
}
.gallery img[src*="mock-"] {
  border: none;
  background: transparent;
}
.gallery figcaption {
  margin-top: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 1.5;
  color: var(--muted);
}
.hero-still { margin: 0 0 18px; }
.hero-still img {
  width: 100%; height: auto; display: block;
  background: transparent;
}
.hero-still figcaption,
.car-cap {
  margin-top: 8px;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 1.5;
  color: var(--muted);
}

.carousel { margin-top: 6px; outline: none; }
.car-stage {
  position: relative;
  border: 3px solid var(--line);
  background: #1c1a12;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.car-stage img {
  display: block;
  width: 100%;
  max-height: 72vh;
  object-fit: contain;
  background: #1c1a12;
  cursor: zoom-in;
}
.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px; height: 36px;
  font-family: "Press Start 2P", monospace;
  font-size: 16px;
  line-height: 1;
  background: var(--gold);
  border: 3px solid var(--line);
  cursor: pointer;
  z-index: 2;
  color: #1a1a12;
}
.car-prev { left: 10px; }
.car-next { right: 10px; }
.car-btn:hover { background: #ffe56a; }
.car-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}
.car-dots { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.car-dot {
  width: 10px; height: 10px;
  padding: 0;
  border: 2px solid var(--line);
  background: var(--paper);
  cursor: pointer;
}
.car-dot.on { background: var(--gold); }

.about { position: relative; overflow: visible; }
.about-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 20px 28px;
  align-items: center;
  margin: 8px 0 8px;
}
.about-hero h1 { margin: 0; }
.desk-col { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.desk-wrap {
  display: block;
  padding: 0;
  border: 3px solid var(--line);
  background: var(--paper);
  cursor: pointer;
  image-rendering: pixelated;
  line-height: 0;
  flex-shrink: 0;
}
.desk-wrap canvas {
  display: block;
  width: 300px;
  height: 225px;
  image-rendering: pixelated;
}
.desk-wrap.desk-mad {
  outline: 3px solid var(--red);
  box-shadow: 6px 6px 0 var(--line);
}
.duel-btn {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  padding: 10px 12px;
  background: var(--gold);
  color: var(--ink);
  border: 3px solid var(--line);
  cursor: pointer;
}
.paper-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.about > *:not(.paper-field) { position: relative; z-index: 1; }
.crumb {
  position: absolute;
  font-family: "Press Start 2P", monospace;
  font-size: 7px;
  line-height: 1.4;
  padding: 8px 8px 10px;
  background: #efe6c0;
  color: #3a3218;
  border: 3px solid #1a1a12;
  box-shadow: 3px 3px 0 rgba(26,26,18,.25);
  opacity: 0.62;
  white-space: nowrap;
}
html.night .desk-wrap { background: #16141c; }
html.night .crumb {
  background: #2a2434;
  color: #ead9a0;
  border-color: #b42318;
}
@media (max-width: 1180px) {
  .crumb { display: none; }
}
@media (max-width: 860px) {
  .about-hero { grid-template-columns: 1fr; }
  .desk-wrap { justify-self: start; }
  .desk-wrap canvas { width: 240px; height: 180px; }
}
.about ul { margin-top: 22px; list-style: none; }
.about li { padding: 8px 0; border-bottom: 3px solid var(--line); }
.inv {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
  margin-top: 22px;
}
.inv div {
  border-top: 3px solid var(--line);
  padding-top: 10px;
}
.inv em {
  font-style: normal;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  color: var(--muted);
}

.play {
  display: block;
}
.play-title { margin-bottom: 8px; }
.play-title .line { display: block; white-space: nowrap; }
.play-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  grid-template-rows: auto auto;
  column-gap: 28px;
  row-gap: 8px;
  align-items: start;
}
.play-board .scoreline { grid-column: 1; grid-row: 1; }
.play-board .table-wrap { grid-column: 1; grid-row: 2; }
.play-board .play-aside { grid-column: 2; grid-row: 2; }
.wager {
  display: inline-block;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  text-decoration: none;
  background: var(--gold);
  border: 3px solid var(--line);
  padding: 8px 10px;
  white-space: nowrap;
  margin-bottom: 14px;
  color: #1a1a12;
}
.table-wrap {
  position: relative;
  border: 3px solid var(--line);
  background: #2f6b46;
}
.scoreline {
  display: flex;
  justify-content: space-between;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  color: var(--ink);
  margin: 0;
}
.table-wrap canvas { display: block; width: 100%; height: auto; }
.play-msg { margin-top: 10px; }
.play-actions { margin-top: 12px; display: flex; gap: 8px; }
.play-actions button {
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  background: var(--ink); color: var(--nav);
  border: 0; padding: 10px 12px; cursor: pointer;
}
.play-actions button.ghost {
  background: var(--paper); color: var(--ink); border: 3px solid var(--line);
}
.play-aside p {
  color: var(--muted);
  font-size: 20px;
  line-height: 1.4;
  margin-top: 12px;
}

.talk {
  position: fixed;
  z-index: 40;
  max-width: 280px;
  background: var(--nav);
  border: 4px solid var(--line);
  box-shadow: 6px 6px 0 var(--line);
  padding: 10px 12px;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  line-height: 1.6;
  pointer-events: none;
}
.talk[hidden] { display: none; }
.talk .who { color: var(--red); margin-bottom: 6px; }

.lightbox {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(10,10,8,.82);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px;
}
.lightbox[hidden] { display: none !important; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  border: 4px solid var(--nav);
}
.lightbox .lb-x {
  position: absolute; top: 16px; right: 16px;
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
  background: var(--gold); border: 3px solid var(--line);
  padding: 8px 10px; cursor: pointer;
  color: #1a1a12;
}
.lightbox .lb-nav {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  font-family: "Press Start 2P", monospace;
  font-size: 18px;
  background: var(--gold); border: 3px solid var(--line);
  cursor: pointer;
  color: #1a1a12;
}
.lightbox .lb-prev { left: 16px; }
.lightbox .lb-next { right: 16px; }
.lightbox #lbCap { color: var(--nav); margin-top: 10px; font-size: 18px; }

html.night {
  --ink: #efe6c0;
  --muted: #c4b896;
  --cream: #16141c;
  --paper: #1c1a24;
  --nav: #1a1820;
}
html.night body { background: #16141c; color: #efe6c0; }
html.night .hero-copy h1 { color: #efe6c0; }
html.night .hero-copy .name { color: #f5d24a; }
html.night .lede { color: #fff; }
html.night .btn,
html.night .say-hey,
html.night .wager,
html.night .mark,
html.night .car-btn,
html.night .lightbox .lb-x,
html.night .lightbox .lb-nav,
html.night .icon-btn:hover { color: #1a1a12; }
html.night .about li,
html.night .about .inv div {
  border-color: #b42318;
}
html.night .cta-copy .eyebrow { color: #b42318; }
html.night .cta-copy h2,
html.night .cta-copy p { color: #fff; }
html.night .page { background: #16141c; }
html.night .quest, html.night .full-map a, html.night .work-block {
  background: #1c1a24;
}

@media (max-width: 860px) {
  .hero-copy, .section, .cta-copy { padding-left: 16px; padding-right: 16px; }
  .hero-copy { max-width: 100%; padding-top: 28px; }
  .pin {
    font-size: 7px;
    line-height: 1.5;
    max-width: calc(100% - 8px);
    white-space: normal;
    align-items: flex-start;
  }
  .hero-copy h1 {
    font-size: clamp(13px, 4.2vw, 16px);
    line-height: 1.5;
    letter-spacing: 0;
    max-width: 100%;
  }
  .hero-copy h1 .line {
    white-space: normal;
    overflow-wrap: break-word;
  }
  .hero-copy h1 .line.desk { display: none; }
  .hero-copy h1 .line.mob { display: block; }
  .lede {
    font-size: 18px;
    line-height: 1.35;
    max-width: 100%;
  }
  .split-head, .quests, .play-board, .meta, .work-split, .inv { grid-template-columns: 1fr; }
  .play-board .scoreline,
  .play-board .table-wrap,
  .play-board .play-aside { grid-column: 1; grid-row: auto; }
  .stats { position: relative; left: auto; right: auto; bottom: auto; margin: 16px 16px 20px; width: calc(100% - 32px); }
  .nav { flex-wrap: nowrap; padding: 10px 14px; }
  .burger { display: grid; place-items: center; }
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(10,10,8,.45);
    z-index: 24;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease;
  }
  body.menu-open .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .nav-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 84vw);
    z-index: 25;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 72px 22px 28px;
    background: var(--nav);
    border-left: 3px solid var(--line);
    transform: translateX(104%);
    transition: transform .2s ease;
  }
  body.menu-open .nav-panel { transform: translateX(0); }
  .nav nav {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }
  .nav nav a { font-size: 12px; }
  .icon-btn, .say-hey { width: 100%; text-align: center; }
  .full-map a { grid-template-columns: 40px 1fr; }
  .full-map span { grid-column: 2; }
}

/* ===== Hire pass (Oct 2026) ===== */
/* Readable body copy: pixel fonts stay for headings, labels and UI */
.lede, .quest-meta p, .split-head p, .intro, .meta p, .work-split p,
.cta-copy p, .about p, .map-head p, .about-hero p {
  font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
}
.quest-meta p { font-size: 17px; }
.split-head p { font-size: 19px; }
.lede b { font-weight: 600; }

/* Hero copy sits on a panel so it reads over the town */
.hero-panel {
  display: inline-block;
  max-width: 640px;
  background: var(--nav);
  border: 3px solid var(--line);
  box-shadow: 6px 6px 0 var(--line);
  padding: 24px 26px 26px;
}
.hero-panel .pin { margin-bottom: 18px; }
.hero-copy .hero-panel h1 { color: var(--ink); font-size: clamp(14px, 2.1vw, 22px); }
.hero-copy .hero-panel .name { color: var(--red); }
.hero-panel .lede { color: var(--ink); max-width: 34em; margin-top: 16px; }
html.night .hero-panel .lede { color: var(--ink); }
html.night .hero-copy .hero-panel .name { color: #f5d24a; }

/* Ad grids inside case studies */
.gallery.work-grid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery.work-grid figcaption { font-size: 7px; }
@media (max-width: 760px) {
  .gallery.work-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .hero-panel { padding: 18px; box-shadow: 4px 4px 0 var(--line); }
  .hero-copy .hero-panel h1 { font-size: 14px; }
  .hero-panel .lede { font-size: 15px; line-height: 1.55; }
  .hero-copy .hero-panel h1 .line { white-space: normal; }
  .lede, .intro, .meta p, .work-split p { font-size: 16px; }
}
html.night .hero-panel { border-color: #efe6c0; box-shadow: 6px 6px 0 #000; }
html.night .hero-copy .btn.ghost { background: transparent; color: #efe6c0; border-color: #efe6c0; }

/* ===== World doors: homepage cards as logo tiles ===== */
.thumb.world {
  background: var(--tile);
  display: grid;
  place-items: center;
  transition: transform .12s steps(2), box-shadow .12s steps(2);
}
.thumb.world .world-mark {
  width: auto;
  height: auto;
  max-width: 54%;
  max-height: 28%;
  margin-bottom: 36px; /* optical centre above the Enter bar */
  object-fit: contain;
  image-rendering: auto;
}
.world-name {
  font-family: "Press Start 2P", monospace;
  font-size: clamp(16px, 2.4vw, 26px);
  color: #1c1a12;
  text-align: center;
  padding: 0 16px 36px;
}
.enter {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-top: 3px solid var(--line);
  background: var(--nav);
  color: var(--ink);
  font-family: "Press Start 2P", monospace;
  font-size: 8px;
}
.enter b { font-weight: 400; }
.quest-meta h3 .cursor {
  display: inline-block;
  width: 0;
  overflow: hidden;
  color: var(--red);
  vertical-align: top;
  transition: width .1s steps(2);
}

/* Hover / keyboard focus: the door hops, the cursor appears */
.world-door:hover .thumb.world,
.world-door:focus-visible .thumb.world {
  transform: translate(-3px, -4px);
  box-shadow: 10px 10px 0 var(--line);
}
.world-door:hover .enter,
.world-door:focus-visible .enter {
  background: var(--gold);
  color: #1a1a12;
}
.world-door:hover .enter b,
.world-door:focus-visible .enter b { animation: blink .5s steps(1) infinite; }
.world-door:hover .cursor,
.world-door:focus-visible .cursor { width: 1.3em; animation: blink .5s steps(1) infinite; }
.world-door:focus-visible { outline: none; }
.world-door:focus-visible .thumb.world { outline: 3px solid var(--red); outline-offset: 4px; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .thumb.world, .quest-meta h3 .cursor { transition: none; }
  .world-door:hover .enter b, .world-door:hover .cursor,
  .world-door:focus-visible .enter b, .world-door:focus-visible .cursor { animation: none; }
}
html.night .enter { background: #1a1820; color: #efe6c0; border-top-color: #efe6c0; }
html.night .world-door:hover .enter { background: #f5d24a; color: #1a1a12; }
html.night .thumb.world { border-color: #efe6c0; }

/* Result line in case meta */
.meta .outcome { grid-column: 1 / -1; border-top: 3px solid var(--line); padding-top: 12px; }
.meta .outcome p { color: var(--ink); }

/* Sticky note on the desk */
.desk-stage { position: relative; }
.desk-sticky {
  position: absolute; top: 46px; left: 62px; z-index: 2;
  width: 68px; padding: 10px 4px 8px;
  background: #f6e27a; color: #1c1a12;
  font-family: "Press Start 2P", monospace; font-size: 7px; line-height: 1.7; text-align: center;
  border: 2px solid var(--line);
  box-shadow: 3px 3px 0 rgba(26,26,18,.55);
  transform: rotate(-9deg);
  pointer-events: none;
}
.desk-sticky::before {
  content: ""; position: absolute; top: -6px; left: 50%; width: 26px; height: 9px; margin-left: -13px;
  background: rgba(214, 198, 160, .85); transform: rotate(4deg);
}
.desk-wrap.desk-mad + .desk-sticky { animation: stickyShake .3s steps(3) 2; }
@keyframes stickyShake { 33% { transform: rotate(-14deg) translateX(-2px); } 66% { transform: rotate(-4deg) translateX(2px); } }
html.night .desk-sticky { background: #e8cf5a; }
@media (prefers-reduced-motion: reduce) { .desk-wrap.desk-mad + .desk-sticky { animation: none; } }
@media (max-width: 860px) { .desk-sticky { top: 34px; left: 44px; width: 56px; font-size: 6px; padding: 8px 3px 6px; } }

/* CV download — floppy in the nav, loot item on About, saved toast */
.save-cv { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.save-cv svg { width: 14px; height: auto; display: block; }
.save-cv:hover svg { animation: floppyHop .35s steps(2); }
@keyframes floppyHop { 50% { transform: translateY(-3px); } }
.loot {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  margin: 26px 0 8px; padding: 14px 16px;
  background: var(--nav); border: 3px solid var(--line); box-shadow: 5px 5px 0 var(--line);
}
.loot-icon svg { width: 44px; height: auto; display: block; }
.loot .loot-text p { margin: 0; max-width: none; }
.loot p.loot-kicker { font-family: "Press Start 2P", monospace; font-size: 8px; color: var(--red); margin-bottom: 6px !important; }
.loot p.loot-name { font-family: "Press Start 2P", monospace; font-size: 13px; line-height: 1.3; color: var(--ink); }
.loot p.loot-stats { font-family: "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif; font-size: 14px; color: var(--muted); margin-top: 4px !important; }
.loot-take {
  font-family: "Press Start 2P", monospace; font-size: 9px; text-decoration: none; white-space: nowrap;
  background: var(--gold); color: #1a1a12; border: 3px solid var(--line); padding: 10px 12px;
}
.loot-take:hover { background: #ffe56a; }
.loot-take:hover, .loot-take:focus-visible { animation: floppyHop .35s steps(2); }
.cv-toast {
  position: fixed; left: 50%; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); z-index: 70;
  display: flex; align-items: center; gap: 10px;
  background: var(--nav); color: var(--ink); border: 3px solid var(--line); box-shadow: 4px 4px 0 var(--line);
  padding: 10px 14px; font-family: "Press Start 2P", monospace; font-size: 9px; line-height: 1.5;
  transform: translate(-50%, 160%); transition: transform .25s steps(4); pointer-events: none;
}
.cv-toast svg { width: 22px; height: auto; flex: none; }
.cv-toast.show { transform: translate(-50%, 0); }
html.night .loot, html.night .cv-toast { background: #1a1820; color: #efe6c0; border-color: #efe6c0; box-shadow: 5px 5px 0 #000; }
html.night .loot p.loot-stats { color: #c4b896; }
@media (max-width: 620px) {
  .loot { grid-template-columns: auto 1fr; }
  .loot-take { grid-column: 1 / -1; text-align: center; }
  .cv-toast { width: calc(100% - 24px); justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .save-cv:hover svg, .loot-take:hover, .loot-take:focus-visible { animation: none; } .cv-toast { transition: none; } }

/* Day/night slider next to the logo */
.daynight {
  position: relative; flex: none;
  width: 66px; height: 32px; padding: 0; margin-left: 6px;
  background: #9fd6f5; border: 3px solid var(--line); cursor: pointer;
  box-shadow: 2px 2px 0 var(--line);
}
.daynight svg { position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; }
.daynight .dn-sun { left: 6px; }
.daynight .dn-moon { right: 6px; opacity: .35; }
.dn-knob {
  position: absolute; top: 2px; left: 34px; width: 24px; height: 22px;
  background: var(--paper); border: 3px solid var(--line);
  transition: left .2s steps(3);
}
.daynight[aria-checked="true"] { background: #2a2458; }
.daynight[aria-checked="true"] .dn-knob { left: 2px; background: #efe6c0; }
.daynight[aria-checked="true"] .dn-moon { opacity: 1; }
.daynight[aria-checked="true"] .dn-sun { opacity: .3; }
.daynight:hover .dn-knob { background: var(--gold); }
html.night .daynight { border-color: #efe6c0; box-shadow: 2px 2px 0 #000; }
html.night .daynight .dn-knob { border-color: #efe6c0; }
@media (prefers-reduced-motion: reduce) { .dn-knob { transition: none; } }

/* Uniform top-right boxes */
.nav-panel .icon-btn, .nav-panel .say-hey {
  box-sizing: border-box; width: 112px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0 8px; font-size: 9px; line-height: 1; text-align: center;
}
@media (max-width: 860px) {
  .nav-panel .icon-btn, .nav-panel .say-hey { width: 100%; height: 44px; font-size: 10px; }
}
@media (max-width: 420px) { .brand .word { font-size: 9px; } .daynight { width: 58px; } .dn-knob { left: 26px; } .daynight .dn-sun { left: 4px; } .daynight .dn-moon { right: 4px; } }
html.night .nav-panel .icon-btn { border-color: #4a4566; }
/* Narrower CV + music boxes */
@media (min-width: 861px) { .nav-panel .icon-btn { width: 74px; } }

/* Full map timeline */
.full-map a, .map-axis { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 1.25fr) 150px; align-items: center; }
.full-map strong small {
  display: block; margin-top: 8px;
  font-family: "Press Start 2P", monospace; font-size: 8px; color: var(--muted); font-weight: 400;
}
.full-map .track {
  position: relative; display: block; height: 14px;
  background-image: linear-gradient(90deg, var(--line) 2px, transparent 2px);
  background-size: calc(100% / 10.75 * 2) 100%;
  background-repeat: repeat-x;
  border-bottom: 2px dashed rgba(26,26,18,.25);
}
.full-map .track b {
  position: absolute; top: 2px; height: 10px;
  background: var(--ink); box-shadow: 2px 2px 0 rgba(26,26,18,.25);
}
.full-map .track b.now { background: var(--red); }
.full-map .track b.now::after {
  content: ""; position: absolute; right: -6px; top: 0; width: 4px; height: 10px; background: var(--red);
  animation: nowBlink 1s steps(1) infinite;
}
@keyframes nowBlink { 50% { opacity: 0; } }
.full-map a:hover .track b { background: var(--red); }
.full-map .period { text-align: right; justify-self: end; }
.map-axis { display: grid; gap: 16px; margin: 6px 0 6px; }
.map-axis .years { position: relative; display: block; height: 12px; font-family: "Press Start 2P", monospace; font-size: 7px; color: var(--muted); }
.map-axis .years i { position: absolute; top: 0; font-style: normal; white-space: nowrap; transform: translateX(-2px); }
html.night .full-map .track { background-image: linear-gradient(90deg, #efe6c0 2px, transparent 2px); border-bottom-color: rgba(239,230,192,.25); }
html.night .full-map .track b { background: #efe6c0; }
html.night .full-map .track b.now { background: #ff6b5a; }
@media (prefers-reduced-motion: reduce) { .full-map .track b.now::after { animation: none; } }
@media (max-width: 860px) {
  .map-axis { display: none; }
  .full-map a { grid-template-columns: 40px 1fr; }
  .full-map .track { grid-column: 2; }
  .full-map .period { grid-column: 2; text-align: left; justify-self: start; }
}
@media (max-width: 860px) { .full-map .track:empty { display: none; } }

/* Other worlds: scattered side quests */
.full-map .track.scatter { background-image: none; border-bottom-style: dotted; }
.full-map .track .star {
  position: absolute; width: 9px; height: 9px; background: var(--ink);
  box-shadow: 6px 0 0 -6px transparent;
  clip-path: polygon(33% 0, 66% 0, 66% 33%, 100% 33%, 100% 66%, 66% 66%, 66% 100%, 33% 100%, 33% 66%, 0 66%, 0 33%, 33% 33%);
  animation: twinkle 2.2s steps(1) infinite;
}
.full-map a:hover .track .star { background: var(--red); }
@keyframes twinkle { 0%, 60% { opacity: 1; } 61%, 80% { opacity: .2; } 81% { opacity: 1; } }
html.night .full-map .track .star { background: #f5d24a; }
@media (prefers-reduced-motion: reduce) { .full-map .track .star { animation: none; } }
