/* ============================================================
   Zeek Dmello — 8-bit portfolio
   Colours live in :root. Tech Mode is slate blue, Beyond Mode is violet.
   The light theme is the html[data-theme="light"] block just below.
   ============================================================ */
:root {
  --bg: #000000;
  --bg2: #121212;
  --line: #2e2e2e;
  --text: #f2efe7;
  --muted: #b3b0a8;
  --accent: #7c9bb8;
  --accent-ink: #0b1118;
  --accent2: #8f7bff;
  --cyan: #35e0ff;
  --amber: #ffd23f;
  --hp: #ff4d5e;
  --shadow: rgba(0, 0, 0, .65);          /* hard drop shadow under buttons */
  --dot: rgba(255, 255, 255, .055);      /* the dotted page background */
  --focus: #35e0ff;
  --hud: #ffd23f;
  --tick-active: #f4fcff;
  --sprite-outline: none;                /* light theme draws a thin dark edge round the characters */
  /* energy sword in the side rail: blue in Tech Mode */
  --saber-edge: #1f8fff; --saber-mid: #7fd0ff; --saber-core: #f4fcff; --saber-glow: 64, 170, 255;
  /* the bike scene */
  --scene-far: #141414; --scene-near: #1f1f1f; --scene-win: #3a3a3a; --road: #2a2a2a; --road-edge: #f2efe7;
  --f-pixel: "Pixelify Sans", "Courier New", monospace;
  --f-caps: "Silkscreen", "Courier New", monospace;
  --f-slab: "Zilla Slab", Georgia, serif;
  --pad: clamp(72px, 9vw, 150px);
}
html[data-mode="beyond"] {
  --accent: #9d8bff;
  --accent-ink: #0e0a26;
  --accent2: #7c9bb8;
  /* ...and red in Beyond Mode */
  --saber-edge: #e0121f; --saber-mid: #ff7a7a; --saber-core: #fff3f0; --saber-glow: 255, 60, 60;
}

/* ───────────── light theme ───────────── */
html[data-theme="light"] {
  --bg: #ece7db;
  --bg2: #ded7c7;
  --line: #bdb5a2;
  --text: #15162b;
  --muted: #54566f;
  --accent: #1d2b3d;
  --accent-ink: #f2efe7;
  --accent2: #5b45d6;
  --hp: #d9263a;
  --shadow: rgba(21, 22, 43, .3);
  --dot: rgba(21, 22, 43, .075);
  --focus: #0a6fb0;
  --hud: #54566f;
  --tick-active: #15162b;
  --sprite-outline: drop-shadow(1px 0 0 rgba(21, 22, 43, .75)) drop-shadow(-1px 0 0 rgba(21, 22, 43, .75)) drop-shadow(0 1px 0 rgba(21, 22, 43, .75)) drop-shadow(0 -1px 0 rgba(21, 22, 43, .75));
  --saber-edge: #0b63d6; --saber-mid: #3d9bff; --saber-core: #e3f3ff; --saber-glow: 30, 120, 255;
  --scene-far: #cdc6b4; --scene-near: #aca592; --scene-win: #ece7db; --road: #8f8877; --road-edge: #15162b;
}
html[data-theme="light"][data-mode="beyond"] {
  --accent: #2e2176;
  --accent-ink: #ffffff;
  --accent2: #3f607e;
  --saber-edge: #b80d18; --saber-mid: #f0494f; --saber-core: #ffe6e2; --saber-glow: 230, 40, 50;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  font: 400 19px/1.5 var(--f-slab);
  background: var(--bg) radial-gradient(circle at 1px 1px, var(--dot) 1.5px, transparent 0) 0 0 / 28px 28px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
::selection { background: var(--accent); color: var(--accent-ink); }
canvas.px { image-rendering: crisp-edges; image-rendering: pixelated; display: block; }
a { color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

h1, h2, h3, p { margin: 0; }
h2 {
  font: 600 clamp(36px, 5vw, 68px)/1.02 var(--f-slab);
  letter-spacing: -.015em;
  text-wrap: balance;
}
.lede { color: var(--muted); max-width: 46ch; margin-top: 18px; text-wrap: pretty; }
.tag {
  font: 400 13px/1 var(--f-caps);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.scr { font-family: var(--f-pixel); color: var(--accent); font-weight: 500; }

/* pixel-notched border: a plus-shaped shadow leaves the corners open */
.btn, .bubble, .sheet, .win, .dialog__box, .slot, .pad, .chordtag {
  --bc: var(--text);
  box-shadow: 0 -4px 0 0 var(--bc), 0 4px 0 0 var(--bc), -4px 0 0 0 var(--bc), 4px 0 0 0 var(--bc);
}

/* ───────────── buttons ───────────── */
.btn {
  --bc: var(--accent);
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 21px/1 var(--f-pixel);
  color: var(--accent-ink); background: var(--accent);
  padding: 13px 20px; border: 0; cursor: pointer; text-decoration: none;
  filter: drop-shadow(6px 6px 0 var(--shadow));
  transition: transform .08s steps(2), filter .08s steps(2);
}
.btn:hover { transform: translate(-2px, -2px); filter: drop-shadow(8px 8px 0 var(--shadow)); }
.btn:active { transform: translate(4px, 4px); filter: none; }
.btn--ghost { --bc: var(--text); background: var(--bg); color: var(--text); }
.btn--ghost:hover { --bc: var(--accent); color: var(--accent); }
.btn--sm { font-size: 17px; padding: 8px 14px; filter: drop-shadow(4px 4px 0 var(--shadow)); }

/* ───────────── fixed chrome ───────────── */
#trail { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 40; }


.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  display: flex; align-items: center; gap: 28px;
  padding: 26px clamp(40px, 5vw, 64px) 22px;
  background: linear-gradient(var(--bg) 55%, transparent);
}
.logo {
  font: 700 30px/1 var(--f-caps); letter-spacing: .02em;
  color: var(--accent); text-decoration: none;
  text-shadow: 4px 4px 0 rgba(143, 123, 255, .45);
  margin-right: auto;
}
html[data-mode="beyond"] .logo { text-shadow: 4px 4px 0 rgba(255, 122, 26, .45); }
.logo span { color: var(--text); }
.top__nav { display: flex; gap: 26px; margin-left: auto; }   /* no corner logo, so the menu sits on the right */
.top__nav a {
  font: 400 19px/1 var(--f-pixel); color: var(--muted); text-decoration: none;
  padding: 6px 0; border-bottom: 4px solid transparent;
}
.top__nav a:hover { color: var(--text); }
.top__nav a.is-active { color: var(--accent); border-bottom-color: var(--accent); }

.rail {
  position: fixed; left: clamp(18px, 2.2vw, 36px); top: 104px; bottom: 56px; width: 44px; z-index: 20;
}
.rail canvas { position: absolute; left: 0; top: 0; }
.rail--up canvas { transform: scaleY(-1); }   /* handle at the bottom, blade pointing up */
.rail__blade { filter: drop-shadow(0 0 4px rgba(var(--saber-glow), .95)) drop-shadow(0 0 13px rgba(var(--saber-glow), .5)); }
.rail a { position: absolute; left: 48px; width: 16px; height: 16px; margin-top: -8px; text-decoration: none; }
.rail a::before {
  content: ""; position: absolute; left: 5px; top: 5px; width: 6px; height: 6px; background: var(--line);
  transition: background .15s steps(2);
}
.rail a.is-lit::before { background: var(--saber-mid); }
.rail a:hover::before { background: var(--text); }
.rail a.is-active::before { left: 3px; top: 3px; width: 10px; height: 10px; background: var(--tick-active); box-shadow: 0 0 8px rgba(var(--saber-glow), 1); }
.rail a span {
  position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  font: 400 12px/1 var(--f-caps); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  color: var(--saber-edge); opacity: 0; pointer-events: none;
}
.rail a:hover span, .rail a:focus-visible span { opacity: 1; }

.hud { display: flex; gap: 4px; position: fixed; right: clamp(40px, 5vw, 64px); bottom: 34px; z-index: 20; }
.hud__btn {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  background: var(--bg); border: 0; padding: 8px 10px;
  font: 400 12px/1 var(--f-caps); letter-spacing: .1em; text-transform: uppercase; color: var(--hud);
}
.hud__btn:hover { color: var(--text); }
.hud__btn canvas { width: 27px; }

/* ───────────── sections ───────────── */
section { position: relative; padding: 130px var(--pad) 90px; }
main > section { min-height: 100vh; }

/* landing */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center; gap: clamp(24px, 4vw, 72px);
  padding-top: 110px; padding-bottom: 60px;
}
.hero__name {
  font: 700 clamp(72px, 11.5vw, 184px)/.84 var(--f-slab);
  letter-spacing: -.03em; margin-bottom: 26px;
}
.hero__name .scr { font-weight: 700; letter-spacing: 0; }
.hero__sub { font-size: clamp(18px, 1.5vw, 22px); color: var(--muted); max-width: 40ch; min-height: 3em; text-wrap: pretty; }
.blink { width: 9px; height: 13px; background: var(--accent); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.menu { margin: 26px 0 30px; display: grid; gap: 6px; justify-items: start; }
.menu button, .menu a {
  position: relative; display: block; background: none; border: 0; cursor: pointer; text-decoration: none;
  font: 400 23px/1.2 var(--f-pixel); color: var(--text); padding: 2px 0 2px 28px;
}
.menu button::before, .menu a::before {
  content: ""; position: absolute; left: 2px; top: 50%; width: 14px; height: 18px; margin-top: -9px;
  background: var(--accent); clip-path: polygon(0 0, 100% 50%, 0 100%); opacity: 0;
}
.menu button:hover, .menu a:hover, .menu .is-active { color: var(--accent); }
.menu button:hover::before, .menu a:hover::before, .menu .is-active::before { opacity: 1; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 22px; }

.hero__art { position: relative; align-self: center; justify-self: center; width: min(80%, 470px, 54vh); margin-top: 6vh; }
.hero__bust { position: relative; width: 100%; height: auto; }
/* the sky is 64 art-pixels wide against the avatar's 36 (14 spare each side), so its pixels line up with the avatar's */
.hero__sky { position: absolute; left: -38.8889%; bottom: 0; width: 177.7778%; height: auto; }
.hero__text { position: relative; z-index: 1; }
.bubble {
  /* pinned by its bottom edge, so a long line wraps and grows up into the sky instead of over the face */
  position: absolute; z-index: 2; left: -26%; bottom: 95%;
  min-width: 96px; min-height: 58px; max-width: 14.5ch; padding: 12px 18px 14px;
  background: var(--bg);
  font: 500 clamp(24px, 2.4vw, 34px)/1.08 var(--f-pixel); color: var(--accent);
}
.bubble .caret { display: inline-block; vertical-align: -0.12em; }
.bubble::before, .bubble::after { content: ""; position: absolute; background: var(--text); width: 8px; height: 8px; }
.bubble::before { right: 16px; bottom: -12px; }
.bubble::after { right: 8px; bottom: -20px; }
.caret { width: 3px; height: 1em; margin-left: 3px; background: var(--accent); animation: blink .8s steps(1) infinite; }

.scrollhint {
  position: absolute; left: var(--pad); bottom: 30px;
  font: 400 12px/1 var(--f-caps); letter-spacing: .14em; text-transform: uppercase; text-decoration: none; color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.scrollhint i, .hint i { width: 10px; height: 8px; background: currentColor; clip-path: polygon(0 0, 100% 0, 50% 100%); animation: bob 1s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

/* about */
.about { display: grid; grid-template-columns: minmax(280px, 400px) minmax(0, 1fr); gap: clamp(40px, 7vw, 120px); align-items: center; }
.sheet { background: var(--bg2); padding: 22px 24px 26px; --bc: var(--line); }
.sheet__top { display: flex; justify-content: space-between; align-items: center; }
.sheet__class { font: 400 13px/1 var(--f-caps); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.sheet__class b { color: var(--text); font-weight: 400; margin-left: 6px; }
.hearts { display: flex; gap: 6px; }
.hearts canvas { width: 28px; animation: beat 1.2s steps(2) infinite; }
.hearts canvas:nth-child(2) { animation-delay: .15s; }
.hearts canvas:nth-child(3) { animation-delay: .3s; }
@keyframes beat { 50% { transform: translateY(-3px); } }
.sheet__stage { display: flex; align-items: flex-end; justify-content: space-between; padding: 30px 6px 0; }
.sheet__mini { width: 162px; height: auto; animation: idle 1.6s steps(2) infinite; transform-origin: 50% 100%; }
@keyframes idle { 50% { transform: translateY(-4px); } }
.sheet__floor { height: 12px; margin: 0 34px; background: repeating-linear-gradient(90deg, var(--accent) 0 12px, transparent 12px 24px); opacity: .9; }
.arrowbtn {
  width: 34px; height: 44px; margin-bottom: 70px; border: 0; cursor: pointer; background: var(--text);
  clip-path: polygon(100% 0, 100% 100%, 0 50%);
}
.arrowbtn--r { clip-path: polygon(0 0, 100% 50%, 0 100%); }
.arrowbtn:hover { background: var(--accent); }
.sheet__mode { display: flex; align-items: center; justify-content: space-between; margin-top: 26px; padding: 6px 4px 0; }
.sheet__mode span { font: 500 24px/1 var(--f-pixel); color: var(--accent); }

.stats { margin-top: 34px; display: grid; gap: 14px; max-width: 520px; }
.stats li { display: grid; grid-template-columns: 96px 1fr 52px; align-items: center; gap: 14px; font: 400 20px/1 var(--f-pixel); }
.stats b { font-weight: 400; color: var(--muted); text-align: right; }
.bar { position: relative; height: 18px; background: repeating-linear-gradient(90deg, var(--line) 0 calc(10% - 4px), transparent calc(10% - 4px) 10%); }
.bar::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: calc(var(--v) * 10%);
  background: repeating-linear-gradient(90deg, var(--accent) 0 calc(10% - 4px), transparent calc(10% - 4px) 10%);
  background-size: calc(100% / var(--v) * 10) 100%;
  clip-path: inset(0 100% 0 0);
  transition: clip-path .9s steps(10);
}
.stats.in .bar::after { clip-path: inset(0 0 0 0); }

/* skills */
.skills { min-height: 0 !important; padding-top: 70px; }
.slots { margin-top: 44px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 26px; }
.slot {
  --bc: var(--line); background: var(--bg2); padding: 22px 12px 16px; text-align: center;
  transition: transform .1s steps(2);
}
.slot b { display: block; font: 700 30px/1 var(--f-caps); color: var(--accent); }
.slot span { display: block; margin-top: 12px; font: 400 17px/1.1 var(--f-pixel); color: var(--muted); }
.slot:hover { --bc: var(--accent); transform: translateY(-6px); }
.slot:hover span { color: var(--text); }

/* projects */
.wins { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 44px 40px; align-items: start; }
.win { background: var(--bg2); opacity: 0; transform: translate(-18px, -18px); transition: opacity .01s linear, transform .25s steps(4); transition-delay: calc(var(--i) * 90ms); }
.win.in { opacity: 1; transform: none; }
.win:nth-child(even) { margin-top: 34px; }
.win__bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--text); color: var(--bg); padding: 8px 10px 8px 14px;
  font: 400 14px/1 var(--f-caps); letter-spacing: .06em;
}
.win:hover .win__bar { background: var(--accent); color: var(--accent-ink); }
.win__x {
  width: 24px; height: 24px; border: 0; cursor: pointer; background: var(--bg); position: relative;
}
.win__x::before, .win__x::after { content: ""; position: absolute; left: 4px; top: 10px; width: 16px; height: 4px; background: var(--text); transform: rotate(45deg); }
.win__x::after { transform: rotate(-45deg); }
.win__body { padding: 22px 22px 24px; }
.win.is-min .win__body { display: none; }
.win h3 { font: 600 30px/1.05 var(--f-slab); }
.win p { margin-top: 12px; color: var(--muted); font-size: 18px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.tags li { font: 400 15px/1 var(--f-pixel); padding: 5px 8px; background: var(--accent); color: var(--accent-ink); }
.link { display: inline-block; margin-top: 20px; font: 400 19px/1 var(--f-pixel); color: var(--text); text-decoration: none; border-bottom: 4px solid var(--line); padding-bottom: 4px; }
.link:hover { color: var(--accent); border-color: var(--accent); }
.win--ask .win__body { text-align: center; }
.win--ask .ask { display: flex; justify-content: center; gap: 22px; margin-top: 22px; }
.win--ask.is-denied .win__bar { background: var(--hp); color: #fff; }
.btn--no { --bc: var(--line); background: var(--line); color: var(--muted); }
.btn--no:hover { --bc: var(--text); background: var(--text); color: var(--bg); }

/* beyond tech */
.beyond { height: 210vh; padding: 0; min-height: 0 !important; }
.beyond__stage {
  position: sticky; top: 0; height: 100vh; padding: 110px var(--pad) 60px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.beyond__stage .tag { justify-content: center; }
.beyond__title { font-size: clamp(54px, 8.4vw, 132px); line-height: .9; font-weight: 700; }
.beyond__stage .lede { margin-left: auto; margin-right: auto; }
.axe { position: relative; width: min(100%, 980px); margin-top: clamp(14px, 3vh, 40px); }
.axe canvas { width: 100%; height: auto; max-height: 40vh; object-fit: contain; }
.chordtag {
  position: absolute; right: 6%; top: -6px; z-index: 2; background: var(--bg); padding: 8px 14px 10px; text-align: left;
}
.chordtag span { display: block; font: 400 11px/1 var(--f-caps); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.chordtag b { display: block; margin-top: 6px; font: 700 34px/1 var(--f-pixel); color: var(--accent); min-width: 2.2ch; }
.pads { display: flex; gap: 22px; margin-top: clamp(12px, 2.4vh, 30px); }
.pad {
  --bc: var(--line); background: var(--bg2); border: 0; cursor: pointer; width: 74px; padding: 12px 0;
  font: 600 24px/1 var(--f-pixel); color: var(--text);
}
.pad:hover { --bc: var(--text); }
.pad.is-active { --bc: var(--accent); background: var(--accent); color: var(--accent-ink); }
.hint { margin-top: 22px; font: 400 12px/1 var(--f-caps); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }

/* music */
.music { display: grid; grid-template-columns: minmax(0, .75fr) minmax(0, 1.25fr); gap: clamp(40px, 7vw, 110px); align-items: center; }
.music h2, .bikes h2 { font-size: clamp(48px, 7vw, 104px); font-weight: 700; }
.carts { margin-top: 34px; display: grid; gap: 4px; }
.carts li { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 16px 0; border-top: 4px dotted var(--line); }
.carts li:last-child { border-bottom: 4px dotted var(--line); }
.carts b { font: 500 22px/1.2 var(--f-pixel); color: var(--accent); }
.carts span { color: var(--muted); font-size: 18px; }
.music__gig { width: 100%; max-width: 720px; height: auto; justify-self: center; }
.music__gig, .sheet__mini, .dialog__face { filter: var(--sprite-outline); }

/* bikes */
.bikes { padding-bottom: 60px; display: flex; flex-direction: column; justify-content: center; }
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.chips li { font: 400 18px/1 var(--f-pixel); padding: 8px 12px; border: 4px solid var(--line); color: var(--text); }
.bikes__ride { width: calc(100% + var(--pad) * 2); margin: 30px calc(var(--pad) * -1) 0; height: auto; }

/* contact */
.contact { display: flex; flex-direction: column; justify-content: center; }
.dialog { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 34px; align-items: end; margin-top: 54px; max-width: 900px; }
.dialog__face { width: 100%; height: auto; }
.dialog__box { position: relative; background: var(--bg2); padding: 34px 26px 18px; min-height: 200px; }
.dialog__name { position: absolute; left: 22px; top: -14px; font: 400 13px/1 var(--f-caps); letter-spacing: .12em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 7px 10px; }
.dialog__text { font: 400 24px/1.25 var(--f-pixel); min-height: 2.5em; }
.menu--links { margin: 16px 0 6px; grid-template-columns: repeat(2, max-content); column-gap: 44px; }
.foot { margin-top: 90px; display: flex; justify-content: space-between; gap: 20px; font: 400 12px/1.4 var(--f-caps); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding-right: 150px; }

/* ───────────── achievement window (the easter egg) ─────────────
   Same colours in both themes: dark frame, light panel, like an old desktop dialog. */
.pop { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 24px; background: rgba(5, 6, 14, .74); }
.pop[hidden] { display: none; }
.pop__confetti { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.pop__win {
  position: relative; width: min(100%, 540px); background: #0c0d18; padding: 6px 8px 8px;
  box-shadow: 0 -4px 0 0 #f2ede2, 0 4px 0 0 #f2ede2, -4px 0 0 0 #f2ede2, 4px 0 0 0 #f2ede2;
  animation: pop-in .28s steps(5);
}
@keyframes pop-in { from { transform: translateY(26px) scale(.92); opacity: 0; } }
.pop__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 2px 10px 8px; color: #f2ede2; font: 400 15px/1 var(--f-caps); letter-spacing: .04em; }
.pop__x { position: relative; flex: none; width: 26px; height: 26px; border: 0; background: none; cursor: pointer; }
.pop__x::before, .pop__x::after { content: ""; position: absolute; left: 3px; top: 11px; width: 20px; height: 4px; background: #f2ede2; transform: rotate(45deg); }
.pop__x::after { transform: rotate(-45deg); }
.pop__x:hover::before, .pop__x:hover::after { background: var(--accent); }
.pop__frame { display: grid; grid-template-columns: minmax(0, 1fr) 28px; gap: 8px; }
.pop__body { background: #f2ede2; color: #15162b; padding: 28px 28px 26px; text-align: center; box-shadow: inset 0 0 0 3px #f2ede2, inset 0 0 0 5px #15162b; }
.pop__body h3 { font: 700 clamp(26px, 5vw, 32px)/1.08 var(--f-slab); letter-spacing: -.01em; white-space: pre-line; }
.pop__list { margin: 22px 0 0; text-align: left; }
.pop__list div { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 11px 2px; border-top: 3px dotted #bdb5a2; }
.pop__list div:last-child { border-bottom: 3px dotted #bdb5a2; }
.pop__list dt { font: 700 12px/1 var(--f-caps); letter-spacing: .1em; text-transform: uppercase; color: #54566f; }
.pop__list dd { margin: 0; font: 500 23px/1.1 var(--f-pixel); }
.pop__desc { margin: 18px 0 22px; font-size: 18px; line-height: 1.4; color: #3c3e58; text-wrap: pretty; }
.pop__body .btn { --bc: #7c9bb8; background: #7c9bb8; color: #0b1118; }
.pop__scroll { display: flex; flex-direction: column; box-shadow: inset 0 0 0 2px #f2ede2; }
.pop__scroll b { flex: 1; }
.pop__scroll i { position: relative; height: 28px; box-shadow: inset 0 0 0 2px #f2ede2; }
.pop__scroll i::before { content: ""; position: absolute; left: 8px; top: 10px; width: 12px; height: 8px; background: #f2ede2; clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.pop__scroll i:last-child::before { clip-path: polygon(0 0, 100% 0, 50% 100%); }

/* ───────────── "pixels" heading style: yellow letters, dark outline and a chunky 3D edge ───────────── */
html.hd-pixels .hero__name,
html.hd-pixels main h2 {
  color: #eef23c;                     /* same serif font as before, just the yellow and the 3D edge */
  text-shadow:
    -3px 0 #26214f, 3px 0 #26214f, 0 -3px #26214f, 0 3px #26214f,
    -3px -3px #26214f, 3px -3px #26214f, -3px 3px #26214f, 3px 3px #26214f,
    -4px 5px #26214f, -5px 7px #26214f, -6px 9px #26214f, -7px 10px #26214f;
}
html.hd-pixels .hero__name .scr, html.hd-pixels main h2 .scr { color: #eef23c; }
html.hd-pixels[data-theme="light"] .hero__name, html.hd-pixels[data-theme="light"] main h2 { color: #e4ea2a; }

/* reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .01s linear, transform .3s steps(4); }
.reveal.in { opacity: 1; transform: none; }

/* ───────────── small screens ───────────── */
@media (max-width: 900px) {
  :root { --pad: 26px; }
  body { font-size: 18px; }
  .rail, .top__nav { display: none; }
  .top .btn { margin-left: auto; }
  .top { padding: 20px 26px 18px; }
  .logo { font-size: 24px; }
  section { padding-top: 100px; padding-bottom: 70px; }
  .hero { grid-template-columns: 1fr; padding-top: 96px; gap: 10px; }
  .hero__art { order: -1; width: min(78%, 340px); margin-top: 28px; }
  .hero__name { font-size: clamp(64px, 21vw, 120px); }
  .bubble { left: -14%; bottom: 84%; }
  .scrollhint { display: none; }
  .about, .music { grid-template-columns: 1fr; }
  .sheet { max-width: 400px; }
  .win:nth-child(even) { margin-top: 0; }
  .beyond__stage { padding: 90px 20px 50px; }
  .pads { gap: 16px; }
  .pad { width: 62px; }
  .carts li { grid-template-columns: 1fr; gap: 4px; }
  .dialog { grid-template-columns: 1fr; gap: 20px; }
  .dialog__face { width: 120px; }
  .menu--links { grid-template-columns: 1fr; }
  .foot { flex-direction: column; padding-right: 0; margin-top: 60px; }
  .hud { right: 22px; bottom: 22px; }
  .hud__btn span { display: none; }
  .pop { padding: 16px; }
  .pop__body { padding: 22px 16px 20px; }
  .pop__frame { grid-template-columns: minmax(0, 1fr) 22px; gap: 6px; }
  .pop__list div { grid-template-columns: 78px minmax(0, 1fr); }
  .pop__scroll i::before { left: 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .win { opacity: 1; transform: none; }
  #trail { display: none; }
}
