/* ───────────────────────── wbig.gs ───────────────────────── */
/* C64 Pro Mono by Style (https://style64.org/c64-truetype). Per its license,
   the font files must keep their original filenames. */
@font-face {
  font-family: "C64 Pro Mono";
  src: url("assets/fonts/C64_Pro_Mono-STYLE.woff2") format("woff2"),
       url("assets/fonts/C64_Pro_Mono-STYLE.woff") format("woff");
  font-display: swap;
}
:root {
  --bg: #0c0a1d;
  --bg-2: #15112e;
  --ink: #f4f1ff;
  --muted: #b3acd6;
  --line: rgba(255, 255, 255, 0.12);

  --c64-blue: #3e31a2;
  --c64-light: #7c70da;
  --c64-cyan: #75cec8;

  --hot: #ff4fd8;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --teal: #2dd4bf;
  --lime: #a3e635;
  --orange: #fb923c;
  --yellow: #facc15;
  --coral: #ff6b6b;

  --rainbow: linear-gradient(90deg, #ff4f6d, #ff9f43, #ffe066, #6ee7a8, #22d3ee, #8b5cf6, #ff4fd8);

  --display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --body: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --retro: "VT323", ui-monospace, monospace;
  --c64: "C64 Pro Mono", var(--retro);
  --marker: "Permanent Marker", "Comic Sans MS", cursive;

  --radius: 22px;
  --gutter: clamp(16px, 4vw, 48px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.booting { overflow: hidden; }
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--hot); color: #000; }

.skip-link {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--yellow); color: #000; padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

/* ───────── Boot sequence ───────── */
.boot {
  position: fixed; inset: 0; z-index: 50;
  display: grid; place-items: center; align-content: center; gap: 18px;
  background: radial-gradient(ellipse at center, #1a1640 0%, #05040c 70%);
  padding: 16px;
}
.boot.is-gone { display: none; }
.crt {
  width: min(880px, 100%);
  aspect-ratio: 4 / 3;
  max-height: 78vh;
  background: var(--c64-light);
  padding: clamp(18px, 5%, 56px);
  border-radius: 28px / 22px;
  box-shadow:
    0 0 0 10px #1d1a2e,
    0 0 0 12px #2b2745,
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 120px rgba(124, 112, 218, 0.35);
  position: relative;
  overflow: hidden;
  /* the border is whatever is left around a 320x200 (8:5) screen */
  container-type: size;
  display: grid; place-items: center;
}
.crt::after { /* scanlines + vignette */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45) 100%);
  mix-blend-mode: multiply;
}
.crt__screen {
  width: min(100cqw, 160cqh);
  aspect-ratio: 8 / 5;
  container-type: size;
  background: var(--c64-blue);
  color: var(--c64-light);
  /* exactly 40 columns x 25 rows of square 8x8 cells, flush with the border */
  font-family: var(--c64);
  overflow: hidden;
  text-shadow: 0 0 4px rgba(124, 112, 218, 0.7);
  animation: flicker 0.12s infinite alternate;
}
.crt__screen pre {
  margin: 0; font-family: inherit; white-space: pre; text-transform: uppercase;
  font-size: min(calc(100cqw / 40), calc(100cqh / 25)); line-height: 1;
}
.crt__screen .cur {
  display: inline-block; width: 1em; height: 1em; vertical-align: -0.125em;
  background: currentColor; animation: blink 1s steps(1) infinite;
}
@keyframes flicker { from { opacity: .97 } to { opacity: 1 } }
@keyframes blink { 50% { opacity: 0 } }
.boot__form { position: absolute; inset: 0; z-index: 2; margin: 0; }
.boot__input { /* invisible, but it's what you're typing into (and what summons a phone keyboard) */
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; border: 0; padding: 0;
  font-size: 16px; color: transparent; caret-color: transparent; background: transparent; cursor: text;
}
.boot__bar {
  width: min(880px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 8px 20px; flex-wrap: wrap;
  font-family: var(--retro); font-size: 20px; color: #9d96c9;
}
.boot__hint { margin: 0; letter-spacing: .03em; min-height: 1.2em; }
.boot__hint kbd { font: inherit; color: #fff; background: rgba(124,112,218,.25); border: 1px solid rgba(124,112,218,.6); border-radius: 4px; padding: 0 6px; white-space: nowrap; }
.boot__skip {
  font: inherit; letter-spacing: .08em; color: var(--c64-cyan); background: none; cursor: pointer;
  border: 2px solid currentColor; border-radius: 999px; padding: 2px 16px; margin-left: auto;
  transition: background .2s, color .2s;
}
.boot__skip:hover, .boot__skip:focus-visible { background: var(--c64-cyan); color: #0c0a1d; }

/* power-off: squash to a line, then a dot, then fade */
.boot.is-off .crt { animation: crtOff .55s cubic-bezier(.7,0,.3,1) forwards; }
.boot.is-off .boot__bar { opacity: 0; transition: opacity .2s; }
.boot.is-off { animation: fadeOut .4s .5s forwards; pointer-events: none; }
@keyframes crtOff {
  0%   { transform: scale(1, 1); filter: brightness(1); }
  45%  { transform: scale(1.02, .006); filter: brightness(4); }
  80%  { transform: scale(.002, .006); filter: brightness(8); }
  100% { transform: scale(0, 0); filter: brightness(10); }
}
@keyframes fadeOut { to { opacity: 0; visibility: hidden; } }

/* ───────── Hero ───────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 90px var(--gutter) 70px;
  overflow: hidden;
  isolation: isolate;
}
.hero__raster { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: .45; }
.hero::after { /* fade to page */
  content: ""; position: absolute; inset: auto 0 0 0; height: 30%; z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}
.hero__inner { max-width: 1100px; margin: 0 auto; width: 100%; }
.hero__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(56px, 17.5vw, 210px);
  line-height: .9;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  white-space: nowrap;
  cursor: default;
  width: fit-content;
}
.hero__name:focus-visible { outline-offset: 10px; }
.wobble { display: inline-flex; align-items: baseline; filter: drop-shadow(0 7px 0 rgba(0,0,0,.4)); }
.wobble .ch {
  display: inline-block;
  background: var(--rainbow);
  background-size: 700% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: slide 10s linear infinite, float 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.45s), calc(var(--i) * -0.3s);
  transition: transform .25s cubic-bezier(.3,1.6,.5,1);
  padding-bottom: .08em;
}
/* wbig.gs  ->  Wes Biggs */
.sw { display: inline-block; position: relative; perspective: 600px; width: var(--wa, auto); transition: width .45s cubic-bezier(.6,0,.2,1); }
.sw > .ch { transition: transform .5s cubic-bezier(.3,1.4,.5,1), opacity .3s; }
.sw > .ch--up { position: absolute; left: 0; top: 0; }
.is-wes .sw { width: var(--wb, auto); }
.sw > .ch--up { opacity: 0; transform: rotateY(90deg); }
.ins, .dot { display: inline-flex; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.ins { max-width: 0; opacity: 0; transition: max-width .55s cubic-bezier(.6,0,.2,1), opacity .35s; }
.gap { display: inline-block; width: .24em; }
.dot { max-width: .4em; transition: max-width .4s .1s cubic-bezier(.6,0,.2,1), opacity .25s; }
.is-wes .sw > .ch:not(.ch--up) { opacity: 0; transform: rotateY(-90deg); }
.is-wes .sw > .ch--up { opacity: 1; transform: none; }
.is-wes .ins { max-width: 1.6em; opacity: 1; transition-delay: .15s; }
.is-wes .dot { max-width: 0; opacity: 0; transition-delay: 0s; }
@keyframes slide { to { background-position: 700% 0; } }
@keyframes float { 50% { translate: 0 -0.05em; } }

.hero__line {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(26px, 4.4vw, 52px); margin: 0 0 18px; line-height: 1.15;
}
.role {
  background: linear-gradient(90deg, var(--yellow), var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.caret { color: var(--yellow); animation: blink 1s steps(1) infinite; margin-left: 2px; }
.hero__intro { max-width: 62ch; color: var(--muted); text-shadow: 0 1px 12px var(--bg), 0 0 2px var(--bg); font-size: clamp(17px, 1.6vw, 20px); margin: 0 0 28px; }
.inline-link { color: var(--ink); text-decoration-color: var(--hot); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.inline-link:hover { color: var(--hot); }
.hero__links { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  --c: var(--ink);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  border: 2px solid var(--c); color: var(--c);
  text-decoration: none; font-weight: 700;
  transition: transform .2s, background .2s, color .2s, box-shadow .2s;
}
.pill:hover { background: var(--c); color: #0c0a1d; transform: translateY(-3px) rotate(-2deg); box-shadow: 0 8px 0 rgba(0,0,0,.35); }
.pill--gh { --c: var(--cyan); }
.pill--li { --c: var(--hot); }
.pill--save { --c: var(--yellow); }
.pill--hi { --c: var(--lime); }
.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; translate: -50% 0;
  font-family: var(--retro); font-size: 18px; text-align: center; color: var(--muted); line-height: 1;
  animation: bob 2s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(8px); } }

/* ───────── Portrait: C64 multicolor until you load the hi-res ───────── */
.hero__body { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px clamp(24px, 5vw, 64px); align-items: center; }
.portrait { margin: 0; display: grid; justify-items: center; gap: 12px; }
.portrait__disc {
  --size: clamp(200px, 24vw, 300px);
  position: relative; width: var(--size); aspect-ratio: 1; padding: 0; border: 0; border-radius: 50%;
  background: none; cursor: pointer; isolation: isolate;
  transition: transform .4s cubic-bezier(.3,1.6,.5,1);
}
.portrait__disc::before { /* the border: C64 light blue at rest, tape-loading stripes while loading */
  content: ""; position: absolute; inset: -14px; z-index: -1; border-radius: 50%;
  background: var(--c64-light);
  box-shadow: 0 0 0 4px var(--bg), 0 0 60px rgba(124,112,218,.45);
}
.portrait__disc::after { /* scanlines over everything */
  content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.16) 0 1px, transparent 1px 3px);
  transition: opacity .6s;
}
.portrait__frame { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: #e9e9ee; }
.portrait__disc img, .portrait__pixels { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.portrait__disc img { transform: scale(1.3) translateY(4%); }
.portrait__pixels {
  image-rendering: pixelated; image-rendering: crisp-edges;
  clip-path: inset(0 0 0 0);
  transition: clip-path 1.1s steps(18, end);
}
.portrait.is-loading.is-hires .portrait__disc::before {
  background: repeating-linear-gradient(0deg, #ff7777 0 7px, #eeee77 7px 13px, #0088ff 13px 21px, #aaff66 21px 26px, #cc44cc 26px 33px, #3e31a2 33px 40px);
  background-size: 100% 80px;
  animation: tape .18s steps(4) infinite;
}
.portrait.is-hires .portrait__pixels { clip-path: inset(100% 0 0 0); }
.portrait.is-hires .portrait__disc::after { opacity: 0; }
.portrait.is-hires .portrait__disc { transform: rotate(-3deg) scale(1.03); }
.portrait.is-hires .portrait__disc::before { background: var(--rainbow); }
@keyframes tape { to { background-position: 0 80px; } }
@media (max-width: 760px) {
  .hero__body { grid-template-columns: 1fr; }
  .portrait { grid-row: 1; justify-items: start; }
  .portrait__disc { --size: 180px; margin: 14px; }
}

/* ───────── Marquee ───────── */
.marquee {
  overflow: hidden; border-block: 3px solid #000;
  background: var(--yellow); color: #0c0a1d;
  transform: rotate(-1.5deg) scale(1.03);
  margin: 10px 0 40px;
  box-shadow: 0 10px 0 var(--hot);
}
.marquee__track {
  display: flex; width: max-content; gap: 0;
  font-family: var(--display); font-weight: 800; font-size: clamp(20px, 3vw, 30px);
  padding: 10px 0; white-space: nowrap;
  animation: marquee 40s linear infinite;
}
.marquee__track span { padding: 0 22px; }
.marquee__track span:nth-child(even) { color: var(--violet); }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ───────── Section titles ───────── */
.section-title {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(40px, 7vw, 88px); line-height: .95; letter-spacing: -0.03em;
  margin: 0 0 12px;
}
.section-title span { display: block; font-size: .45em; font-weight: 600; letter-spacing: 0; opacity: .7; }
.section-sub { color: var(--muted); max-width: 60ch; margin: 0 0 36px; font-size: 18px; }

/* ───────── Portals ───────── */
.portals { padding: 40px var(--gutter) 60px; max-width: 1240px; margin: 0 auto; }
.portals__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.portal {
  --a: var(--hot); --b: var(--violet); --c: var(--cyan);
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 3 / 4; min-height: 280px;
  border-radius: 999px 999px 26px 26px;
  padding: 26px; text-decoration: none; color: #fff;
  overflow: hidden; isolation: isolate;
  border: 3px solid rgba(255,255,255,.15);
  transition: transform .4s cubic-bezier(.2,1.4,.4,1), border-color .3s;
}
.portal::before { /* swirl */
  content: ""; position: absolute; inset: -50%; z-index: -2;
  background: conic-gradient(from 0deg, var(--a), var(--b), var(--c), var(--a));
  animation: spin 14s linear infinite;
  filter: saturate(1.2);
}
.portal::after { /* depth */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 50% 38%, rgba(12,10,29,.0) 0 18%, rgba(12,10,29,.55) 45%, rgba(12,10,29,.95) 85%),
    repeating-radial-gradient(circle at 50% 38%, transparent 0 18px, rgba(255,255,255,.06) 18px 20px);
}
.portal:hover, .portal:focus-visible { transform: translateY(-10px) scale(1.03); border-color: #fff; }
.portal:hover::before { animation-duration: 2.5s; }
.portal__count {
  position: absolute; top: 34%; left: 50%; translate: -50% -50%;
  font-family: var(--display); font-weight: 800; font-size: 76px; line-height: 1;
  text-shadow: 0 0 30px rgba(255,255,255,.6);
  transition: transform .4s;
}
.portal:hover .portal__count { transform: scale(1.2) rotate(-8deg); }
.portal__label { font-family: var(--retro); font-size: 20px; line-height: 1.05; letter-spacing: .08em; text-transform: uppercase; opacity: .85; }
.portal__title { font-family: var(--display); font-weight: 800; font-size: 28px; line-height: 1.05; margin: 2px 0 0; }
@keyframes spin { to { transform: rotate(1turn); } }

.portal--ai    { --a: #ff4fd8; --b: #8b5cf6; --c: #22d3ee; }
.portal--c64   { --a: #3e31a2; --b: #7c70da; --c: #75cec8; }
.portal--dweb  { --a: #2dd4bf; --b: #a3e635; --c: #0ea5e9; }
.portal--fresh { --a: #ff6b6b; --b: #ffe066; --c: #ff4fd8; }
.portal--contrib { --a: #22d3ee; --b: #ff4fd8; --c: #facc15; }

/* ───────── Worlds (category sections) ───────── */
.world {
  position: relative; isolation: isolate;
  padding: 90px var(--gutter);
  overflow: hidden;
}
.world__head, .cards, .contrib, .vintage { max-width: 1240px; margin-left: auto; margin-right: auto; }
.world__eyebrow { font-family: var(--retro); font-size: 22px; letter-spacing: .06em; margin: 0 0 6px; opacity: .8; }
.world__bg { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; perspective: 1200px; }
.card {
  --accent: var(--hot);
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
  padding: 24px; border-radius: var(--radius);
  background: rgba(255,255,255,.05);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-decoration: none; color: inherit;
  transform-style: preserve-3d;
  transition: transform .25s ease-out, border-color .3s, box-shadow .3s;
  will-change: transform;
}
.card::before { /* cursor spotlight */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--accent) 30%, transparent), transparent 45%);
  opacity: 0; transition: opacity .3s;
}
.card:hover::before, .card:focus-visible::before { opacity: 1; }
.card:hover { border-color: var(--accent); box-shadow: 0 20px 50px -20px var(--accent); }
.card__img {
  margin: -24px -24px 4px; aspect-ratio: 2 / 1; overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0; background: #000;
}
.card__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.card:hover .card__img img { transform: scale(1.06); }
.world--c64 .card__img { border-radius: 0; margin: -24px -24px 4px; border-bottom: 3px solid var(--c64-light); image-rendering: pixelated; }
.card__top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.card__name { font-family: var(--display); font-weight: 800; font-size: 24px; line-height: 1.1; margin: 0; word-break: break-word; }
.card__stars { font-family: var(--retro); font-size: 20px; color: var(--yellow); white-space: nowrap; }
.card__desc { margin: 0; color: var(--muted); font-size: 16px; flex: 1; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04); white-space: nowrap;
}
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--lc, #aaa); display: inline-block; }
.badge {
  position: absolute; top: -12px; right: 18px;
  font-family: var(--marker); font-size: 15px; padding: 3px 12px; border-radius: 8px; z-index: 2;
  background: var(--hot); color: #fff; transform: rotate(4deg);
  box-shadow: 0 4px 0 rgba(0,0,0,.35);
}
.badge--frozen { background: var(--c64-cyan); color: #0c0a1d; }
.card__updated { margin-left: auto; color: var(--muted); opacity: .8; }

/* AI world: liquid neon */
.world--ai { background: radial-gradient(ellipse at 20% 0%, #2a0f4d 0%, transparent 60%), radial-gradient(ellipse at 90% 100%, #0b2d4d 0%, transparent 55%), #0f0a24; }
.world--ai .section-title { background: linear-gradient(90deg, var(--hot), var(--violet), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.world--ai .section-title span { color: var(--ink); -webkit-text-fill-color: var(--ink); }
.world--ai .world__eyebrow { color: var(--hot); }
.blobs { position: absolute; inset: 0; z-index: -1; filter: blur(60px); opacity: .55; }
.blobs b { position: absolute; width: 38vmax; height: 38vmax; border-radius: 50%; mix-blend-mode: screen; animation: drift 22s ease-in-out infinite alternate; }
.blobs b:nth-child(1) { background: #ff4fd8; top: -10%; left: -10%; }
.blobs b:nth-child(2) { background: #6d28d9; bottom: -20%; right: -10%; animation-delay: -7s; }
.blobs b:nth-child(3) { background: #0891b2; top: 30%; left: 40%; width: 26vmax; height: 26vmax; animation-delay: -12s; }
@keyframes drift { to { transform: translate(12vw, 8vh) scale(1.2); } }
.world--ai .card { --accent: var(--hot); }
.world--ai .card:nth-child(3n+2) { --accent: var(--cyan); }
.world--ai .card:nth-child(3n+3) { --accent: var(--violet); }

/* C64 world: you know the one */
.world--c64 {
  background: var(--c64-light);
  padding: clamp(28px, 5vw, 64px);
}
.world--c64 .c64-screen {
  background: var(--c64-blue); color: var(--c64-light);
  padding: clamp(36px, 5vw, 70px) var(--gutter);
  border-radius: 6px;
  position: relative; overflow: hidden;
}
.world--c64 .c64-screen::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.12) 0 1px, transparent 1px 3px);
}
.world--c64 .section-title, .world--c64 .card__name { font-family: var(--c64); font-weight: 400; text-transform: uppercase; letter-spacing: 0; }
.world--c64 .section-title { font-size: clamp(32px, 6vw, 72px); line-height: 1; }
.world--c64 .section-title span { font-weight: 400; margin-bottom: .5em; }
.world--c64 .section-sub, .world--c64 .card__desc { color: #b9b1ff; }
.world--c64 .world__eyebrow { color: #fff; font-family: var(--c64); font-size: 14px; letter-spacing: 0; }
.raster-strip { height: 14px; margin: 0 0 30px; background: linear-gradient(90deg, #000 0 4%, #880000 4% 12%, #dd8855 12% 22%, #eeee77 22% 34%, #aaff66 34% 46%, #00cc55 46% 56%, #aaffee 56% 66%, #0088ff 66% 78%, #cc44cc 78% 88%, #ff7777 88% 96%, #000 96%); background-size: 200% 100%; animation: slide 6s linear infinite; image-rendering: pixelated; }
.world--c64 .card {
  --accent: #fff;
  background: var(--c64-blue);
  border: 3px solid var(--c64-light); border-radius: 0;
  backdrop-filter: none;
  box-shadow: 6px 6px 0 #1b1466;
}
.world--c64 .card:hover { border-color: #fff; box-shadow: 10px 10px 0 #1b1466; }
.world--c64 .card__name { font-size: 16px; line-height: 1.25; color: #fff; }
.world--c64 .chip { border-color: var(--c64-light); border-radius: 0; font-family: var(--c64); font-size: 11px; padding: 2px 8px; background: transparent; }
.world--c64 .badge { font-family: var(--c64); font-size: 12px; border-radius: 0; background: #ff7777; color: #000; }
.world--c64 .badge--frozen { background: var(--c64-cyan); }
.world--c64 .card__stars { color: #eeee77; font-family: var(--c64); font-size: 14px; }
.c64-ready { font-family: var(--c64); font-size: 24px; margin: 36px 0 0; text-transform: uppercase; }
.c64-ready .cur { display: inline-block; width: 1em; height: 1em; background: var(--c64-light); vertical-align: -.125em; animation: blink 1s steps(1) infinite; }

/* Decentralized world: a graph nobody owns */
.world--dweb { background: radial-gradient(ellipse at 70% 20%, #06302d 0%, transparent 60%), #071a1c; }
.world--dweb .section-title { color: var(--teal); }
.world--dweb .section-title span { color: var(--ink); }
.world--dweb .world__eyebrow { color: var(--lime); }
.world--dweb .card { --accent: var(--teal); background: rgba(7, 26, 28, .65); border-style: dashed; }
.world--dweb .card:nth-child(even) { --accent: var(--lime); }
.world--dweb .card__name::before { content: "bafy… "; font-family: var(--retro); font-weight: 400; font-size: 18px; color: var(--teal); opacity: .6; }

/* Fresh world */
.world--fresh { background: linear-gradient(160deg, #2a0d1a, #1a0d2a); }
.world--fresh .section-title { color: var(--coral); }
.world--fresh .section-title span { color: var(--ink); }
.world--fresh .card { --accent: var(--coral); }

/* ───────── Contributions: sticker wall ───────── */
.world--contrib { background: #f7f1e3; color: #1a1430; }
.world--contrib .section-sub { color: #514a6b; }
.world--contrib .world__eyebrow { color: #7c3aed; }
.world--contrib .section-title span { opacity: .6; }
.contrib { display: grid; gap: 40px; }
.contrib__group h3 { font-family: var(--marker); font-weight: 400; font-size: 28px; margin: 0 0 16px; }
.stickers { display: flex; flex-wrap: wrap; gap: 14px 12px; align-items: center; }
.sticker {
  --rot: 0deg; --bg: #2dd4bf; --size: 1;
  display: inline-flex; flex-direction: column;
  padding: calc(8px + 6px * var(--size)) calc(12px + 8px * var(--size));
  border-radius: 14px;
  background: var(--bg); color: #120e24;
  text-decoration: none;
  border: 3px solid #120e24;
  box-shadow: 4px 5px 0 #120e24;
  transform: rotate(var(--rot));
  transition: transform .2s cubic-bezier(.3,1.6,.5,1), box-shadow .2s;
  line-height: 1.2;
}
.sticker:hover, .sticker:focus-visible { transform: rotate(0deg) scale(1.08); box-shadow: 7px 9px 0 #120e24; z-index: 2; }
.sticker__owner { font-size: 12px; opacity: .7; font-weight: 500; }
.sticker__name { font-family: var(--display); font-weight: 800; font-size: calc(16px + 9px * var(--size)); }
.sticker__note { font-size: 13px; opacity: .8; }
.sticker__meta { display: flex; gap: 8px; font-family: var(--retro); font-size: 17px; margin-top: 2px; }
.sticker__role { background: #120e24; color: var(--bg); padding: 0 6px; border-radius: 4px; }

.vintage { margin-top: 56px; padding: 28px; border: 3px dashed #120e24; border-radius: 18px; background: #efe4c8; }
.vintage__title { font-family: var(--retro); font-weight: 400; font-size: 34px; margin: 0 0 14px; }
.vintage__title small { font-size: .6em; opacity: .7; }
.vintage__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.vintage__list li { font-family: var(--retro); font-size: 20px; line-height: 1.15; background: #fffaf0; padding: 12px 14px; border-radius: 10px; border: 2px solid #120e24; }
.vintage__list b { display: block; font-size: 26px; color: #b45309; font-weight: 400; }
.vintage__list em { font-style: normal; background: #120e24; color: #facc15; padding: 0 5px; border-radius: 3px; font-size: 16px; }

/* ───────── Personal CHANGELOG: storage through the ages ───────── */
.world--changelog { background: linear-gradient(180deg, #f7f1e3 0, #0c0a1d 160px); padding-top: 140px; }
.world--changelog .section-title { color: var(--ink); }
.world--changelog .world__eyebrow { color: var(--lime); }
.media-row {
  list-style: none;
  display: flex; gap: 30px; align-items: flex-end; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 30px max(var(--gutter), calc((100vw - 1240px) / 2)) 44px;
  margin: 0 calc(var(--gutter) * -1);
  scrollbar-color: var(--hot) transparent;
}
.media-row:focus-visible { outline-offset: -6px; }
.media {
  --label: #ffe066;
  flex: 0 0 auto; width: 260px; min-height: 340px;
  scroll-snap-align: center;
  position: relative;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px;
  transition: transform .3s cubic-bezier(.3,1.6,.5,1);
}
.media:nth-child(odd) { transform: rotate(-1.5deg); }
.media:nth-child(even) { transform: rotate(1.5deg) translateY(8px); }
.media:hover { transform: rotate(0) translateY(-10px) scale(1.04); z-index: 1; }
.media__art { position: relative; height: 130px; flex: 0 0 auto; }
.media__art svg { width: 100%; height: 100%; overflow: visible; }
.media__label {
  background: var(--label); color: #1a1430;
  border-radius: 4px; padding: 10px 12px 12px; flex: 1;
  background-image: repeating-linear-gradient(transparent 0 22px, rgba(0,0,0,.12) 22px 23px);
  background-position: 0 32px;
}
.media__year { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0 8px; }
.media__year span { font-family: var(--marker); font-size: 24px; line-height: 1; white-space: nowrap; }
.media__text { font-size: 14px; line-height: 23px; margin: 6px 0 0; font-weight: 500; }
.media__text a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 2px; }

/* Floppies are square: wider card, art takes whatever height the label leaves */
.media--floppy525, .media--floppy35 { width: 320px; aspect-ratio: 1; min-height: 0; }
.media--floppy525 .media__art, .media--floppy35 .media__art { flex: 1 1 0; min-height: 0; height: auto; }
.media--floppy525 .media__label, .media--floppy35 .media__label { flex: 0 0 auto; }

/* 5¼" floppy: floppy and actually floppy. Label on top, hub & read slot below */
.media--floppy525 { background: #19171f; border-radius: 3px; box-shadow: inset 0 0 0 2px #2a2733, 0 10px 30px rgba(0,0,0,.4); }
/* hub, index hole and read slot sit at fixed spots on the disk, whatever the label's size;
   the hub is dead center, so the label has to fit in the top third */
.media--floppy525 { padding: 12px; }
.media--floppy525 .media__label { padding: 5px 9px 7px; background-image: repeating-linear-gradient(transparent 0 15px, rgba(0,0,0,.12) 15px 16px); background-position: 0 24px; }
.media--floppy525 .media__year span { font-size: 18px; }
.media--floppy525 .media__text { font-size: 11px; line-height: 16px; margin-top: 3px; }
.media--floppy525 .media__art { order: 2; position: static; }
.f525__hub {
  position: absolute; left: 50%; top: 50%; width: 28%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--bg) 0 47%, #8f8a6e 50% 69%, #0e0d12 72% 97%, #2a2733 100%);
}
.f525__index { position: absolute; left: 69%; top: 46%; width: 3.5%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: var(--bg); }
.f525__slot { position: absolute; left: 50%; top: 68%; bottom: 5%; width: 10%; translate: -50% 0; border-radius: 999px; background: #6b5f4b; box-shadow: inset 0 0 0 4px #0e0d12; }
.media--floppy525::after { content: ""; position: absolute; right: 0; top: 14%; width: 9px; height: 22px; background: var(--bg); } /* write-protect notch */

/* 3½" floppy: the save icon, in the flesh */
.media--floppy35 { background: #1b1a24; clip-path: polygon(0 0, 90% 0, 100% 6%, 100% 100%, 0 100%); border-radius: 6px; box-shadow: inset 0 0 0 2px #2c2938; }
.f35__shutter { position: absolute; top: -18px; left: 22%; width: 56%; height: 110px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, #a8a8b8, #ececf4 40%, #9a9aac); }
.f35__shutter i { position: absolute; top: 14px; left: 58%; width: 22%; height: 72px; background: #1b1a24; border-radius: 2px; }

/* Hard drive: a bare 3½" drive, platter spinning */
.media--hdd { background: linear-gradient(135deg, #d9dbe3, #9fa3b0 45%, #e6e8ee 70%, #a6aab6); border-radius: 12px; box-shadow: inset 0 0 0 2px #7b7f8c, 0 10px 30px rgba(0,0,0,.4); }
.hdd__platter {
  position: absolute; left: 14px; top: 4px; width: 124px; height: 124px; border-radius: 50%;
  background: conic-gradient(from 0deg, #cfd3dc, #6c7180, #f4f5f8, #8a8f9c, #e3e5ea, #6c7180, #cfd3dc);
  box-shadow: inset 0 0 0 3px #5e6270, 0 2px 6px rgba(0,0,0,.3);
  animation: spin 1.4s linear infinite;
}
.hdd__platter i { position: absolute; inset: 44px; border-radius: 50%; background: radial-gradient(circle, #f4f5f8 0 6px, #7b7f8c 7px 18px, #a9adb8 19px); }
.hdd__arm {
  position: absolute; right: 22px; bottom: 6px; width: 104px; height: 12px; border-radius: 6px;
  background: linear-gradient(#4a4e5a, #2d303a); transform-origin: 96px 6px; rotate: 32deg;
  animation: seek 2.6s ease-in-out infinite;
}
.hdd__arm::after { content: ""; position: absolute; right: -6px; top: -6px; width: 24px; height: 24px; border-radius: 50%; background: radial-gradient(circle, #9fa3b0 0 4px, #2d303a 5px); }
.hdd__screw { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle, #555 0 1px, #c9ccd4 2px, #7b7f8c 5px); }
@keyframes seek { 0%, 100% { rotate: 32deg; } 30% { rotate: 14deg; } 60% { rotate: 40deg; } }

/* The cloud: somebody else's computer */
.media--cloud { background: linear-gradient(180deg, #1d4ed8, #60a5fa 70%, #bfdbfe); border-radius: 26px; box-shadow: 0 10px 30px rgba(0,0,0,.4); }
.cloud__puff { fill: #fff; animation: puff 4s ease-in-out infinite; filter: drop-shadow(0 6px 0 rgba(30,58,138,.35)); }
.cloud__bits text { font-family: var(--retro); font-size: 20px; fill: #1d4ed8; animation: bit 2.4s ease-in-out infinite; }
.cloud__bits text:nth-child(2) { animation-delay: -.6s; } .cloud__bits text:nth-child(3) { animation-delay: -1.2s; } .cloud__bits text:nth-child(4) { animation-delay: -1.8s; }
@keyframes puff { 50% { transform: translateY(-6px); } }
@keyframes bit { 0%, 100% { opacity: .2; } 50% { opacity: 1; } }

/* A blockchain: blocks confirming one after another */
.media--chain { background: #062b29; border-radius: 10px; box-shadow: inset 0 0 0 2px #0f766e, 0 10px 30px rgba(0,0,0,.4); }
.media--chain line { stroke: #2dd4bf; stroke-width: 4; stroke-dasharray: 4 4; }
.chain__block rect { fill: #0b3f3b; stroke: #2dd4bf; stroke-width: 3; animation: confirm 2.4s var(--d) ease-in-out infinite; }
.chain__block text { font-family: var(--retro); font-size: 20px; fill: #a3e635; text-anchor: middle; }
@keyframes confirm { 0%, 100% { fill: #0b3f3b; } 20% { fill: #14b8a6; } }

/* A neural net: activations rippling forward */
.media--neural { background: radial-gradient(ellipse at 50% 20%, #4c1d95, #170a33 75%); border-radius: 18px; box-shadow: inset 0 0 0 2px #7c3aed, 0 10px 40px -10px #a855f7; }
.nn__lines line { stroke: #c084fc; stroke-width: 1.5; opacity: .25; animation: fire 1.75s var(--d) ease-in-out infinite; }
.nn__dots circle { fill: #22d3ee; stroke: #170a33; stroke-width: 3; animation: pulse 1.5s var(--d) ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes fire { 50% { opacity: .9; stroke: #f0abfc; } }
@keyframes pulse { 50% { fill: #ff4fd8; transform: scale(1.25); } }


/* ───────── Contact ───────── */
.world--contact { background: linear-gradient(120deg, #ff4fd8 0%, #ff8a5c 45%, #ffd23f 100%); color: #1a1430; }
.world--contact .section-sub { color: #3a1f45; }
.world--contact .world__eyebrow { color: #1a1430; }
.world--contact .section-title span { opacity: .65; }
.contact { max-width: 1240px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.contact__mailrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 22px; }
.contact__mail {
  font-family: var(--display); font-weight: 800; font-size: clamp(32px, 6.5vw, 84px); line-height: 1;
  letter-spacing: -0.03em; color: #1a1430; text-decoration: none; overflow-wrap: anywhere;
  background: linear-gradient(#1a1430, #1a1430) 0 100% / 0 6px no-repeat;
  transition: background-size .35s ease, color .2s;
  padding-bottom: 6px;
}
.contact__mail:hover, .contact__mail:focus-visible { background-size: 100% 6px; }
.contact__copy {
  font: 700 15px var(--body); padding: 8px 16px; border-radius: 999px; cursor: pointer;
  border: 2px solid #1a1430; background: transparent; color: #1a1430;
  transition: background .2s, color .2s, transform .2s;
}
.contact__copy:hover { background: #1a1430; color: #ffd23f; transform: rotate(-3deg); }
.contact__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; font-weight: 500; }
.contact__meta a { color: #1a1430; font-weight: 700; }
.arch { width: clamp(160px, 22vw, 260px); height: auto; overflow: visible; }
.arch__curve { fill: none; stroke: url(#steel); stroke-width: 12; stroke-linecap: round; filter: drop-shadow(0 6px 0 rgba(26,20,48,.35)); stroke-dasharray: 420; stroke-dashoffset: 420; transition: stroke-dashoffset 1.6s cubic-bezier(.6,0,.2,1); }
.arch__river { fill: none; stroke: #1a1430; stroke-width: 4; stroke-linecap: round; opacity: .5; }
.contact.is-in .arch__curve, .arch.is-in .arch__curve { stroke-dashoffset: 0; }
@media (max-width: 700px) { .contact { grid-template-columns: 1fr; } .arch { justify-self: end; margin-top: -20px; } }

/* ───────── Footer ───────── */
.footer { background: var(--c64-light); padding: clamp(24px, 5vw, 56px); }
.footer__screen {
  background: var(--c64-blue); color: var(--c64-light);
  font-family: var(--retro); font-size: clamp(20px, 2.6vw, 28px);
  padding: 30px var(--gutter); text-transform: uppercase; line-height: 1.25;
}
.footer__screen p { margin: 0 0 4px; }
.footer__screen a, .linkish { color: #fff; text-decoration: none; border-bottom: 2px solid transparent; }
.footer__screen a:hover, .linkish:hover { background: var(--c64-light); color: var(--c64-blue); }
.linkish { font: inherit; text-transform: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.footer__egg { opacity: .55; font-size: .8em; }
.cursor-block { display: inline-block; width: .6em; height: 1em; background: var(--c64-light); animation: blink 1s steps(1) infinite; vertical-align: -.15em; }
.footer__small { margin: 18px 0 0; font-size: 13px; color: #1b1466; text-align: center; }
.noscript { padding: 20px; text-align: center; }

/* ───────── Reveal on scroll ───────── */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.9,.3,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ───────── C64 mode (Konami code) ───────── */
body.c64-mode, body.c64-mode * {
  font-family: var(--c64) !important;
  letter-spacing: 0 !important;
}
/* C64 Pro Mono is 2.5x wider than VT323; shrink it so the page keeps its shape */
body.c64-mode { font-size-adjust: cap-height 0.5; }
body.c64-mode { text-transform: uppercase; background: var(--c64-blue); border: clamp(10px, 3vw, 36px) solid var(--c64-light); }
body.c64-mode .hero__name { letter-spacing: 0; font-weight: 400; }
body.c64-mode .world:not(.world--c64), body.c64-mode .world--contrib, body.c64-mode .vintage { background: var(--c64-blue); color: var(--c64-light); }
body.c64-mode .section-sub, body.c64-mode .card__desc { color: #b9b1ff; }
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 60;
  background: var(--c64-blue); color: #fff; border: 3px solid var(--c64-light);
  font-family: var(--retro); font-size: 22px; padding: 8px 18px; text-transform: uppercase;
  animation: toastIn .3s ease-out, fadeOut .4s 2.6s forwards;
}
@keyframes toastIn { from { transform: translateY(30px); opacity: 0; } }

/* ───────── Small screens ───────── */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding-top: 70px; }
  .portals__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .portal { min-height: 220px; padding: 16px; }
  .portal__count { font-size: 52px; }
  .portal__title { font-size: 20px; }
  .portal__label { font-size: 16px; }
  .cards { grid-template-columns: 1fr; }
  .media { width: 230px; }
  .media--floppy525, .media--floppy35 { width: 290px; }
  .world { padding-top: 64px; padding-bottom: 64px; }
}

/* ───────── Reduced motion ───────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
