/* =========================================================
   Maya Da Goat — portfolio
   Vanilla Minecraft skin: 16x16 textures, 3D bevels, pixel type.
   Textures live in textures.css as data URIs.
   ========================================================= */

:root {
  --bg: #141414;
  --bg-soft: #1c1c1c;

  --panel: #c6c6c6;
  --slot: #8b8b8b;

  --ink: #ededed;
  --ink-soft: #c9c9c9;
  --muted: #a0a0a0;
  --ink-dark: #3b3b3b;
  --ink-darker: #232323;

  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.3);

  --grass: #7cbd4b;
  --grass-deep: #4f8a2c;
  --gold: #fcfc54;
  --diamond: #4aedd9;
  --redstone: #d8534f;

  --bevel-hi: #e9e9e9;
  --bevel-lo: #4a4a4a;

  --pixel: "Press Start 2P", "Courier New", monospace;
  --body: "VT323", "Courier New", monospace;
  --mono: "Press Start 2P", "Courier New", monospace;
  --serif: "Press Start 2P", "Courier New", monospace;

  --pad: clamp(1.1rem, 4vw, 4rem);
  --gap: clamp(1.2rem, 3vw, 2.5rem);
  --rule: clamp(3rem, 8vw, 6rem);
  --max: 1400px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  background-image: radial-gradient(120% 80% at 50% 0%, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.7) 100%),
    var(--tex-stone);
  background-size: 100% 100%, 96px 96px;
  background-attachment: fixed, fixed;
  font-family: var(--body);
  font-size: 1.2rem;
  line-height: 1.5;
  -webkit-font-smoothing: none;
  font-smooth: never;
  overflow-x: hidden;
}

.js body.is-booting {
  overflow: hidden;
}

h1,
h2,
h3,
p,
dl,
dd,
ul,
figure {
  margin: 0;
}

ul {
  padding: 0;
  list-style: none;
}

/* Author display rules would otherwise beat the UA rule for [hidden]. */
[hidden] {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

img {
  image-rendering: auto;
}

::selection {
  background: var(--gold);
  color: #1a1a1a;
}

:focus-visible {
  outline: 2px dashed var(--gold);
  outline-offset: 3px;
}

::-webkit-scrollbar {
  width: 14px;
}

::-webkit-scrollbar-track {
  background: #161616;
  box-shadow: inset 2px 0 0 #000;
}

::-webkit-scrollbar-thumb {
  background: #6f6f6f;
  box-shadow: inset 2px 2px 0 #a4a4a4, inset -2px -2px 0 #3a3a3a;
}

/* ---------- player skin ---------- */

/* One 64x64 skin PNG, sampled with background-position — the same way a
   resource pack crops it. --u is one skin pixel. */
.skinpart {
  background-image: url("../assets/mayagoated.png");
  background-repeat: no-repeat;
  background-size: calc(var(--u, 6px) * 64) calc(var(--u, 6px) * 64);
  image-rendering: pixelated;
}

.doll {
  --u: 6px;
  position: relative;
  display: grid;
  place-items: end center;
  width: calc(var(--u) * 20);
  height: auto;
}

/* A rendered pose of the skin, cut from the character sheet. It is a mostly
   black skin, so it sits on a soft light pool instead of the raw stone. */
.doll__render {
  position: relative;
  z-index: 1;
  display: block;
  height: calc(var(--u) * 32);
  width: auto;
  filter: brightness(1.16) contrast(1.03) drop-shadow(3px 5px 0 rgba(0, 0, 0, 0.45));
}

/* A block to stand on, so the character is not floating in the void. */
.doll__stand {
  position: absolute;
  left: 0;
  bottom: calc(var(--u) * -6);
  width: 100%;
  height: calc(var(--u) * 6);
  background-image: var(--tex-grass);
  background-size: calc(var(--u) * 2) calc(var(--u) * 2);
  image-rendering: pixelated;
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.2), inset 0 -4px 0 rgba(0, 0, 0, 0.42), 0 0 0 2px rgba(0, 0, 0, 0.55);
  z-index: 0;
}

/* The head alone, for the header and slots. */
.top__face {
  --u: 3px;
  display: inline-block;
  width: calc(var(--u) * 8);
  height: calc(var(--u) * 8);
  margin-right: 0.4rem;
  vertical-align: -6px;
  background-position: calc(var(--u) * -8) calc(var(--u) * -8);
  box-shadow: 0 0 0 2px #0b0b0b, inset 0 0 0 1px rgba(0, 0, 0, 0.5);
}

/* ---------- doodles ---------- */

.hand {
  font-family: "Caveat", "Comic Sans MS", cursive;
  font-size: 1.45rem;
  line-height: 1.1;
  color: #f0e8d2;
}

.doodle {
  fill: none;
  stroke: #f0e8d2;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.8;
}

.doodle--arrow {
  position: absolute;
  left: calc(var(--u, 6px) * -13);
  top: calc(var(--u, 6px) * -1);
  width: 78px;
  height: 58px;
  transform: rotate(-14deg);
}

.hero__player {
  position: absolute;
  right: var(--pad);
  top: 24%;
  z-index: 2;
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.5rem 0 2.4rem;
}

/* A character-select light pool, so a dark skin still reads. */
.hero__player::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  width: 260px;
  height: 300px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(124, 189, 75, 0.4) 0%, rgba(124, 189, 75, 0.12) 45%, transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero__player .hand {
  margin-top: 2.7rem;
  transform: rotate(-3deg);
  white-space: nowrap;
}

@media (min-width: 1180px) {
  .hero__player {
    display: flex;
  }
}

.doodle--heart,
.doodle--spark {
  display: inline-block;
  vertical-align: middle;
  stroke: none;
  opacity: 1;
}

.doodle--heart {
  width: 2rem;
  height: 2rem;
  margin-left: 0.5rem;
  fill: var(--redstone);
  transform: rotate(6deg);
  filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.6));
}

.doodle--spark {
  width: 1.35rem;
  height: 1.35rem;
  fill: var(--gold);
  transform: rotate(10deg) translateY(-0.5rem);
}

/* Screen-reader-only copy: present for assistive tech, never painted. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* ---------- shared type ---------- */

.mono {
  font-family: var(--pixel);
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.85);
}

.eyebrow {
  color: var(--grass);
}

.h2 {
  margin-top: 0.9rem;
  font-family: var(--pixel);
  font-size: clamp(1.05rem, 2.8vw, 2.05rem);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  text-shadow: 3px 3px 0 #0a0a0a;
}

.h2 em,
.hero__title em,
.contact__title em {
  font-family: var(--pixel);
  font-style: normal;
  font-weight: 400;
  color: var(--grass);
}

.skip {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 300;
  padding: 0.6rem 0.8rem;
  font-family: var(--pixel);
  font-size: 0.6rem;
  text-transform: uppercase;
  color: #222;
  background: var(--gold);
  box-shadow: inset -3px -3px 0 #9a9a2e, inset 3px 3px 0 #ffffa0;
  transform: translateY(-200%);
  transition: transform 0.2s steps(2, end);
}

.skip:focus {
  transform: none;
}

/* Everything clickable looks like a Minecraft button. */
.cta,
.tool,
.note__btn,
.boot__skip,
.contact__links a,
.dialog__link,
.dialog__close,
.work__arrow {
  font-family: var(--pixel);
  font-size: 0.6rem;
  line-height: 1.6;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.55);
  color: var(--ink);
  background: var(--slot);
  border: 0;
  border-radius: 0;
  box-shadow: inset -3px -3px 0 var(--bevel-lo), inset 3px 3px 0 var(--bevel-hi), 0 0 0 2px #1b1b1b;
  transition: background 0.12s linear;
}

.cta:hover,
.tool:hover,
.note__btn:hover,
.boot__skip:hover,
.contact__links a:hover,
.dialog__link:hover,
.dialog__close:hover,
.work__arrow:hover {
  background: #a7a7bd;
  color: #fff;
}

.cta:active,
.tool:active,
.dialog__link:active,
.contact__links a:active,
.boot__skip:active {
  box-shadow: inset 3px 3px 0 var(--bevel-lo), inset -3px -3px 0 var(--bevel-hi), 0 0 0 2px #1b1b1b;
}

/* ---------- boot ---------- */

.boot {
  position: fixed;
  inset: 0;
  z-index: 250;
  display: grid;
  place-items: center;
  padding: var(--pad);
  background-image: radial-gradient(circle at 50% 40%, #242424, #0d0d0d 85%), var(--tex-deepslate);
  background-size: 100% 100%, 64px 64px;
  transition: opacity 0.35s steps(3, end);
}

.boot.is-done {
  opacity: 0;
  pointer-events: none;
}

.boot__panel {
  width: min(32rem, 100%);
  padding: clamp(1.1rem, 3vw, 1.8rem);
  color: var(--ink-dark);
  background: var(--panel);
  box-shadow: inset -4px -4px 0 #6f6f6f, inset 4px 4px 0 #fff, 0 0 0 3px #2b2b2b;
}

.boot__tag {
  color: var(--ink-dark);
  opacity: 0.75;
  text-shadow: none;
  margin-bottom: 1rem;
}

.boot__lines {
  display: grid;
  gap: 0.45rem;
  min-height: 6.2rem;
  margin-bottom: 1.1rem;
  font-size: 0.58rem;
  color: #4a4a4a;
  text-shadow: none;
}

.boot__lines b {
  color: var(--grass-deep);
  font-weight: 400;
}

.boot__bar {
  height: 12px;
  background: #565656;
  box-shadow: inset 2px 2px 0 #333, inset -2px -2px 0 #7d7d7d;
  overflow: hidden;
}

.boot__bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--grass);
  box-shadow: inset 2px 2px 0 #a8e57a, inset -2px -2px 0 #4f8a2c;
}

.boot__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.7rem;
  color: #4a4a4a;
  text-shadow: none;
}

.boot__pct {
  font-family: var(--pixel);
  font-size: clamp(0.9rem, 3vw, 1.3rem);
  color: var(--ink-darker);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  text-shadow: none;
}

.boot__skip {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  padding: 0.45rem 0.6rem;
}

/* ---------- cursor: a crosshair ---------- */

.cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 220;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s linear;
}

.cursor__ring {
  display: block;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(#fff, #fff) center / 2px 100% no-repeat,
    linear-gradient(#fff, #fff) center / 100% 2px no-repeat;
  filter: drop-shadow(0 0 0.5px #000) drop-shadow(1px 1px 0 rgba(0, 0, 0, 0.9));
  transition: width 0.12s steps(2, end), height 0.12s steps(2, end), margin 0.12s steps(2, end);
}

.cursor.is-live {
  opacity: 1;
}

.cursor.is-over .cursor__ring {
  width: 26px;
  height: 26px;
  margin: -13px 0 0 -13px;
  background:
    linear-gradient(var(--gold), var(--gold)) center / 2px 100% no-repeat,
    linear-gradient(var(--gold), var(--gold)) center / 100% 2px no-repeat;
}

html.has-cursor,
html.has-cursor a,
html.has-cursor button {
  cursor: none;
}

/* ---------- header ---------- */

.top {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem var(--pad);
  background: rgba(16, 16, 16, 0.94);
  border-bottom: 2px solid #000;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(4px);
}

.top__brand {
  font-family: var(--pixel);
  font-size: 0.8rem;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 2px 2px 0 #000;
}

.top__dot {
  color: var(--gold);
}

.top__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  justify-self: start;
  color: var(--muted);
  font-size: 0.55rem;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 0;
  background: var(--grass);
  box-shadow: inset -2px -2px 0 #3f6d24, inset 2px 2px 0 #a8e57a;
  animation: blink 2.4s steps(2, end) infinite;
}

@keyframes blink {
  50% {
    opacity: 0.45;
  }
}

.top__nav {
  display: none;
  gap: 1.3rem;
  justify-self: center;
}

.top__nav a {
  position: relative;
  padding: 0.2rem 0;
  color: var(--muted);
  font-size: 0.55rem;
  transition: color 0.12s linear;
}

.top__nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.16s steps(3, end);
}

.top__nav a:hover {
  color: var(--ink);
}

.top__nav a:hover::after {
  transform: scaleX(1);
}

.top__tools {
  display: flex;
  gap: 0.45rem;
  justify-self: end;
}

.tool {
  padding: 0.4rem 0.5rem;
  font-size: 0.5rem;
  color: #e2e2e2;
  background: #5c5c5c;
  box-shadow: inset -2px -2px 0 #333, inset 2px 2px 0 #8f8f8f, 0 0 0 2px #0c0c0c;
}

.tool[aria-pressed="true"] {
  background: #6d7a5c;
  box-shadow: inset -2px -2px 0 #3a4231, inset 2px 2px 0 #a4b48c, 0 0 0 2px #0c0c0c;
}

.tool[aria-pressed="true"] span {
  color: var(--gold);
}

@media (max-width: 899px) {
  .top {
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "brand status tools"
      "nav nav nav";
    row-gap: 0.4rem;
    padding-bottom: 0.45rem;
  }

  .top__brand {
    grid-area: brand;
  }

  .top__status {
    grid-area: status;
  }

  .top__tools {
    grid-area: tools;
  }

  .top__nav {
    grid-area: nav;
    display: flex;
    gap: 1.1rem;
    justify-self: start;
  }

  .hero {
    padding-top: calc(7rem + var(--pad));
  }
}

@media (min-width: 900px) {
  .top {
    grid-template-columns: auto auto 1fr auto;
  }

  .top__nav {
    display: flex;
  }
}

/* ---------- reduced-motion note ---------- */

.note {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  z-index: 210;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  max-width: calc(100vw - 2rem);
  padding: 0.7rem 0.8rem;
  transform: translateX(-50%);
  color: var(--ink-dark);
  background: var(--panel);
  box-shadow: inset -4px -4px 0 #6f6f6f, inset 4px 4px 0 #fff, 0 0 0 3px #232323;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.3;
}

.note[hidden] {
  display: none;
}

.note__btn {
  padding: 0.4rem 0.55rem;
  font-size: 0.5rem;
  white-space: nowrap;
}

.note__close {
  padding: 0 0.2rem;
  color: #555;
  font-family: var(--pixel);
  font-size: 0.6rem;
}

.note__close:hover {
  color: #000;
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: calc(4.5rem + var(--pad)) var(--pad) 5rem;
  overflow: hidden;
}

/* The horizon: a strip of grass along the bottom, like standing at y=64. */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 26px;
  background-image: var(--tex-grass);
  background-size: 64px 64px;
  image-rendering: pixelated;
  box-shadow: 0 -3px 0 #38561f, inset 0 3px 0 rgba(255, 255, 255, 0.18);
}

.hero__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.32;
  mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 60% 40%, #000 0%, transparent 75%);
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

.hero__title {
  margin: 1.2rem 0 0;
  font-family: var(--pixel);
  font-size: clamp(1.15rem, 3.4vw, 2.4rem);
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: 0;
  text-shadow: 4px 4px 0 #0a0a0a;
}

.hero__title .line {
  display: block;
  overflow: hidden;
}

.hero__title .line > * {
  display: inline-block;
}

.hero__title em {
  color: var(--grass);
}

.hero__foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.8rem;
  margin-top: clamp(1.8rem, 5vw, 3rem);
  padding-top: 1.4rem;
  border-top: 2px solid rgba(255, 255, 255, 0.12);
}

@media (min-width: 860px) {
  .hero__foot {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 3rem;
  }
}

.hero__intro {
  max-width: 46ch;
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  color: var(--ink-soft);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.4rem 2rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  color: #f4f4f4;
  background: var(--grass-deep);
  box-shadow: inset -3px -3px 0 #2f5c19, inset 3px 3px 0 #8fd45a, 0 0 0 2px #1b1b1b;
  white-space: nowrap;
}

.cta:hover {
  background: #5da036;
  color: #fff;
}

.cta__arrow {
  display: grid;
  place-items: center;
  width: 1.1rem;
  height: 1.1rem;
  font-size: 0.6rem;
  background: rgba(0, 0, 0, 0.25);
}

.cta--small {
  padding: 0.6rem 0.75rem;
  font-size: 0.5rem;
}

.facts {
  display: grid;
  gap: 0.35rem;
  min-width: 13rem;
}

.facts div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.5rem;
  padding-bottom: 0.3rem;
  border-bottom: 2px dotted rgba(255, 255, 255, 0.14);
}

.facts dt {
  color: var(--muted);
  font-size: 0.5rem;
}

.facts dd {
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.05rem;
  line-height: 1.1;
}

/* Splash text: the yellow, tilted line Minecraft puts next to its title. */
.splash {
  position: absolute;
  left: 58%;
  top: 31%;
  z-index: 2;
  display: none;
  margin: 0;
  font-family: var(--pixel);
  font-size: clamp(0.58rem, 0.95vw, 0.76rem);
  line-height: 1.7;
  color: var(--gold);
  text-shadow: 3px 3px 0 #3a3410;
  transform: rotate(-13deg);
  animation: splash 2.4s steps(2, end) infinite;
  pointer-events: none;
}

@media (min-width: 1000px) {
  .splash {
    display: block;
  }
}

@keyframes splash {
  0%,
  100% {
    transform: rotate(-13deg) scale(1);
  }
  50% {
    transform: rotate(-10deg) scale(1.05);
  }
}

/* XP bar, because every HUD needs one. */
.xp {
  position: relative;
  height: 13px;
  margin: 0.9rem 0 0;
  background: #171717;
  box-shadow: inset 2px 2px 0 #000, inset -2px -2px 0 #3b3b3b, 0 0 0 2px #0d0d0d;
}

.xp__fill {
  position: absolute;
  top: 2px;
  left: 2px;
  bottom: 2px;
  width: 72%;
  background: linear-gradient(#b6ff5e, #62a531);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.xp__level {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--pixel);
  font-size: 0.6rem;
  color: #9dff3c;
  text-shadow: 2px 2px 0 #14300a;
}

.hero__cue {
  position: absolute;
  left: var(--pad);
  bottom: 2.4rem;
  z-index: 2;
  color: var(--ink-soft);
  font-size: 0.5rem;
}

.hero__cue span {
  display: inline-block;
  color: var(--gold);
  animation: bob 1.6s steps(2, end) infinite;
}

@keyframes bob {
  50% {
    transform: translateY(3px);
  }
}

/* ---------- ticker ---------- */

.ticker {
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
  padding: 0.6rem 0;
}

.ticker__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: slide 34s linear infinite;
}

.ticker__track span {
  display: inline-flex;
  align-items: center;
  gap: 2rem;
  font-family: var(--body);
  font-size: 1.15rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.ticker__track span::after {
  content: "✦";
  color: var(--gold);
  font-size: 0.8rem;
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

/* ---------- stats: the hotbar ---------- */

.stats {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 4vw, 3rem) var(--pad) 0;
}

.stats__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 8px;
  background: rgba(8, 8, 8, 0.6);
  box-shadow: inset 0 0 0 2px #3d3d3d, inset 0 0 0 4px #171717;
}

.stats__cell {
  padding: 0.9rem 0.8rem 0.8rem;
  background: var(--slot);
  box-shadow: inset -3px -3px 0 #5c5c5c, inset 3px 3px 0 #b6b6b6, 0 0 0 2px #2a2a2a;
}

.stats__num {
  display: block;
  font-family: var(--pixel);
  font-size: clamp(0.78rem, 2.1vw, 1.05rem);
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: #f6f6f6;
  text-shadow: 2px 2px 0 #3a3a3a;
}

.stats__cell:nth-child(2) .stats__num {
  color: var(--gold);
}

.stats__label {
  display: block;
  margin-top: 0.5rem;
  color: #e4e4e4;
  font-size: 0.46rem;
  line-height: 1.7;
  text-shadow: 1px 1px 0 #3a3a3a;
}

.stats__note {
  margin-top: 0.7rem;
  color: var(--muted);
  font-size: 0.46rem;
  line-height: 1.8;
}

@media (min-width: 760px) {
  .stats__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stats + .section {
  padding-top: clamp(2.2rem, 4vw, 3.2rem);
}

/* ---------- sections ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: var(--rule) var(--pad) 0;
  scroll-margin-top: 6rem;
}

.section__head {
  display: grid;
  gap: 0.8rem;
  max-width: 62ch;
}

.section__lede {
  color: var(--ink-soft);
  font-size: 1.15rem;
  max-width: 46ch;
}

.section__lede .mono {
  color: var(--ink);
}

/* ---------- work list: inventory rows ---------- */

.work {
  margin-top: clamp(1.6rem, 4vw, 2.8rem);
  border-top: 3px solid #2c2c2c;
}

.work__row {
  border-bottom: 3px solid #242424;
}

.work__btn {
  display: grid;
  grid-template-columns: 2.3rem 1.7rem 1fr auto;
  grid-template-areas:
    "icon num title arrow"
    "icon num tags tags";
  align-items: center;
  gap: 0.2rem 0.9rem;
  width: 100%;
  padding: 0.95rem 0.6rem;
  text-align: left;
  transition: background 0.12s linear;
}

.work__icon {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  align-self: center;
  background: #6c6c6c;
  box-shadow: inset -2px -2px 0 #474747, inset 2px 2px 0 #9c9c9c, 0 0 0 2px #151515;
}

.work__icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.work__btn:hover .work__icon,
.work__btn:focus-visible .work__icon {
  box-shadow: inset -2px -2px 0 #474747, inset 2px 2px 0 #dedede, 0 0 0 2px #151515;
}

.work__num {
  grid-area: num;
  align-self: start;
  padding-top: 0.3rem;
  color: #8a8a8a;
  font-size: 0.55rem;
}

.work__title {
  grid-area: title;
  font-family: var(--pixel);
  font-size: clamp(0.72rem, 1.6vw, 1rem);
  line-height: 1.7;
  color: var(--ink);
  text-shadow: 2px 2px 0 #0a0a0a;
  transition: color 0.12s linear, transform 0.16s steps(2, end);
}

.work__tags {
  grid-area: tags;
  color: var(--muted);
  font-size: 0.58rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.work__arrow {
  grid-area: arrow;
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  font-size: 0.55rem;
  text-shadow: none;
  color: #efefef;
  background: var(--slot);
  box-shadow: inset -2px -2px 0 var(--bevel-lo), inset 2px 2px 0 var(--bevel-hi), 0 0 0 2px #181818;
}

.work__btn:hover,
.work__btn:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.13), inset -2px -2px 0 rgba(0, 0, 0, 0.45);
}

.work__btn:hover .work__title,
.work__btn:focus-visible .work__title {
  color: var(--gold);
}

.work__btn:hover .work__arrow,
.work__btn:focus-visible .work__arrow {
  background: var(--gold);
  color: #2a2a2a;
  text-shadow: none;
  box-shadow: inset -2px -2px 0 #9a9a2e, inset 2px 2px 0 #ffffa0, 0 0 0 2px #181818;
}

@media (min-width: 760px) {
  .work__btn {
    grid-template-columns: 2.6rem 1.7rem minmax(0, 1fr) 17rem 4.5rem 1.9rem;
    grid-template-areas: "icon num title tags year arrow";
    align-items: center;
    gap: 0.9rem;
    padding: 1.1rem 0.6rem;
  }

  .work__num {
    padding-top: 0;
    align-self: center;
  }
}

.work__year {
  display: none;
  color: var(--ink-soft);
  font-size: 0.55rem;
}

@media (min-width: 760px) {
  .work__year {
    display: block;
    grid-area: year;
    text-align: right;
  }
}

.work__foot {
  margin-top: 1rem;
  color: var(--muted);
}

.work__foot code {
  color: var(--gold);
  font-family: var(--pixel);
  font-size: 0.5rem;
}

/* hover preview: a vanilla tooltip */

.preview {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  width: 15rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.14s linear;
  will-change: transform;
}

.preview.is-on {
  opacity: 1;
}

.preview__art {
  position: relative;
  display: grid;
  place-items: center;
  height: 9rem;
  overflow: hidden;
  background-color: rgba(16, 0, 16, 0.95);
  background-size: 200% 200%;
  border: 2px solid #2a0a4a;
  box-shadow: inset 0 0 0 2px #100010, 0 0 0 2px #0a000a;
  animation: drift 9s ease-in-out infinite alternate;
}

.preview__logo {
  width: 5rem;
  height: 5rem;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(3px 3px 0 rgba(0, 0, 0, 0.55));
}

@keyframes drift {
  to {
    background-position: 100% 100%;
  }
}

.preview__label {
  margin-top: 0.35rem;
  padding: 0.3rem 0.45rem;
  display: inline-block;
  color: #e8e8e8;
  background: rgba(16, 0, 16, 0.95);
  border: 2px solid #2a0a4a;
  font-size: 0.5rem;
}

/* ---------- about ---------- */

.section--split .about {
  display: grid;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  margin-top: clamp(1.6rem, 4vw, 2.6rem);
}

@media (min-width: 900px) {
  .section--split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    column-gap: clamp(2rem, 6vw, 5rem);
    align-items: start;
  }

  .section--split .about {
    margin-top: 0;
  }
}

.about__figure {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.2rem;
  justify-self: start;
}

/* Same light pool as the hero, so a dark skin keeps its edges. */
.about__figure::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 46%;
  width: 230px;
  height: 230px;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse at center, rgba(124, 189, 75, 0.24) 0%, rgba(124, 189, 75, 0.07) 45%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.about__figure img {
  position: relative;
  z-index: 1;
  width: 148px;
  height: auto;
  filter: brightness(1.18) drop-shadow(3px 4px 0 rgba(0, 0, 0, 0.4));
}

.about__figure .hand {
  position: relative;
  z-index: 1;
  font-size: 1.25rem;
  transform: rotate(-3deg);
}

.about__text {
  display: grid;
  gap: 0.9rem;
  max-width: 56ch;
  color: var(--ink-soft);
  font-size: 1.2rem;
}

.about__text strong {
  color: var(--ink);
  font-weight: 400;
}

.skills {
  display: grid;
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.skills__group {
  display: grid;
  grid-template-columns: 7rem 1fr;
  gap: 0.6rem;
  padding-top: 0.6rem;
  border-top: 2px dotted rgba(255, 255, 255, 0.14);
}

.skills__group dt {
  color: var(--muted);
  font-family: var(--pixel);
  font-size: 0.48rem;
  line-height: 1.9;
  text-transform: uppercase;
}

.skills__group dd {
  color: var(--ink);
  font-size: 1.1rem;
}

/* ---------- advancements ---------- */

.adv {
  margin-top: clamp(1.8rem, 4vw, 2.8rem);
  border-top: 3px solid #2c2c2c;
}

.adv__item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 0.3rem 1rem;
  padding: 0.9rem 0.6rem;
  border-bottom: 3px solid #242424;
}

@media (min-width: 760px) {
  .adv__item {
    grid-template-columns: 5rem 18rem 1fr;
    align-items: baseline;
  }
}

.adv__year {
  color: var(--gold);
  font-family: var(--pixel);
  font-size: 0.5rem;
}

.adv__title {
  font-family: var(--pixel);
  font-size: 0.66rem;
  line-height: 1.8;
  text-shadow: 2px 2px 0 #0a0a0a;
}

.adv__detail {
  color: var(--muted);
  font-size: 1.1rem;
}

/* ---------- contact ---------- */

.section--contact {
  padding-bottom: 2rem;
}

.contact__head {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.2rem;
}

.contact__mascot {
  width: 92px;
  height: auto;
  margin-bottom: -0.4rem;
  filter: brightness(1.18) drop-shadow(3px 4px 0 rgba(0, 0, 0, 0.35));
}

@media (max-width: 700px) {
  .contact__mascot {
    display: none;
  }
}

.contact__title {
  margin-top: 0.9rem;
  font-family: var(--pixel);
  font-size: clamp(1.05rem, 2.8vw, 2.05rem);
  line-height: 1.7;
  text-shadow: 3px 3px 0 #0a0a0a;
}

.contact__mail {
  display: inline-block;
  margin-top: clamp(1.4rem, 4vw, 2.4rem);
  font-family: var(--pixel);
  font-size: clamp(0.8rem, 3vw, 1.7rem);
  line-height: 1.6;
  color: var(--ink);
  background-image: linear-gradient(var(--gold), var(--gold));
  background-size: 0% 4px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  text-shadow: 3px 3px 0 #0a0a0a;
  transition: background-size 0.24s steps(4, end), color 0.12s linear;
}

.contact__mail:hover {
  background-size: 100% 4px;
  color: var(--gold);
}

.contact__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.8rem;
}

.contact__links a {
  padding: 0.5rem 0.65rem;
  color: #eaeaea;
}

.foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: clamp(2.4rem, 6vw, 4rem);
  padding-top: 1rem;
  border-top: 3px solid #242424;
  color: var(--muted);
  font-size: 0.46rem;
  line-height: 1.8;
}

.foot a:hover {
  color: var(--gold);
}

/* ---------- project dialog: the inventory screen ---------- */

.dialog {
  width: min(58rem, calc(100vw - 2rem));
  padding: 0;
  color: var(--ink-dark);
  background: var(--panel);
  border: 0;
  border-radius: 0;
  box-shadow: inset -5px -5px 0 #6f6f6f, inset 5px 5px 0 #fff, 0 0 0 4px #232323, 0 18px 0 rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
}

.dialog[open] {
  animation: dialog-in 0.2s steps(3, end);
}

@keyframes dialog-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.dialog__inner {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 820px) {
  .dialog__inner {
    grid-template-columns: 20rem minmax(0, 1fr);
    align-items: stretch;
  }
}

.dialog__art {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.7rem;
  min-height: 12rem;
  background-size: 200% 200%;
  box-shadow: inset 0 0 0 3px #3a3a3a, inset 0 0 0 6px rgba(255, 255, 255, 0.14);
  animation: drift 12s ease-in-out infinite alternate;
}

/* The project's own icon, framed by the art panel like an item in a slot. */
.dialog__icon {
  width: clamp(3.5rem, 11vw, 5.5rem);
  height: clamp(3.5rem, 11vw, 5.5rem);
  object-fit: contain;
  filter: drop-shadow(0 5px 0 rgba(0, 0, 0, 0.35));
}

.dialog__zip {
  padding: 0.4rem 0.5rem;
  color: var(--gold);
  background: rgba(16, 0, 16, 0.95);
  border: 2px solid #2a0a4a;
  border-radius: 0;
  font-size: 0.5rem;
  line-height: 1.6;
  letter-spacing: 0.02em;
  text-transform: none;
  text-shadow: none;
}

.dialog__body {
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding: clamp(1.1rem, 3vw, 2.2rem);
}

.dialog__body .eyebrow {
  color: var(--grass-deep);
  text-shadow: none;
  /* Keeps the line clear of the close button, on one line where it fits. */
  padding-right: 4.6rem;
  font-size: 0.56rem;
}

.dialog__close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  z-index: 2;
  padding: 0.4rem 0.5rem;
  font-size: 0.46rem;
}

.dialog__title {
  font-family: var(--pixel);
  font-size: clamp(0.85rem, 2.4vw, 1.35rem);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: 0;
  color: #2b2b2b;
  text-shadow: 2px 2px 0 rgba(255, 255, 255, 0.55);
}

.dialog__blurb {
  color: #333;
  font-size: 1.2rem;
}

.dialog__detail {
  color: #4f4f4f;
  font-size: 1.1rem;
  max-width: 52ch;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tags li {
  padding: 0.25rem 0.45rem;
  color: #f0f0f0;
  background: #7d7d7d;
  font-size: 0.44rem;
  box-shadow: inset -2px -2px 0 #4f4f4f, inset 2px 2px 0 #a8a8a8;
}

.dialog__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 0.3rem;
}

.dialog__links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.dialog__link {
  padding: 0.45rem 0.6rem;
  color: #f2f2f2;
  font-size: 0.46rem;
}

.dialog__note {
  color: #6a6a6a;
  font-size: 0.44rem;
  text-shadow: none;
}

/* A modal lives in the top layer, above the fixed crosshair. While one is open
   the custom cursor stands down and the real pointer comes back. Derived from
   the DOM rather than a JS flag, so Escape and every other dismissal path is
   covered without relying on the dialog's close event. */
html:has(dialog[open]) .cursor {
  display: none;
}

html:has(dialog[open]),
html:has(dialog[open]) a,
html:has(dialog[open]) button {
  cursor: auto;
}

/* ---------- entrance ---------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s steps(4, end), transform 0.45s steps(5, end);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

.js .hero__title .line {
  clip-path: inset(0 0 105% 0);
  transition: clip-path 0.7s steps(6, end);
}

.js .hero__title .line.is-in {
  clip-path: inset(0 0 -20% 0);
}

.js .hero__title .line:nth-child(2) {
  transition-delay: 0.07s;
}

.js .hero__title .line:nth-child(3) {
  transition-delay: 0.14s;
}

/* ---------- motion preferences ---------- */

.nomotion *,
.nomotion *::before,
.nomotion *::after {
  animation-duration: 0.001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important;
}

.nomotion .ticker__track {
  animation: none;
  transform: none;
}

.nomotion.js [data-reveal],
.nomotion.js .hero__title .line {
  opacity: 1;
  transform: none;
  clip-path: none;
}

.nomotion .cursor {
  display: none;
}

.nomotion .preview {
  display: none;
}

@media (pointer: coarse) {
  .cursor,
  .preview {
    display: none;
  }
}

@media (max-width: 640px) {
  .top__status {
    display: none;
  }

  .hero__cue {
    display: none;
  }

  .stats__label {
    font-size: 0.42rem;
  }
}
