/* =========================================================
   MESHUP — "The Cube" prototype
   Palette: one colour per cube face / page
   ========================================================= */
:root {
  --ink: #0d0d0d;
  --paper: #f6f2e7;
  --yellow: #ffd21f;   /* MESH / home  */
  --blue: #3db7f0;     /* U / projects */
  --pink: #ff4d8d;     /* P / about    */
  --discord: #5865f2;
  --patreon: #ff424d;

  --font-display: "Bowlby One SC", "Arial Black", Impact, sans-serif;
  --font-body: "Work Sans", system-ui, sans-serif;

  /* Pointy-top hexagon matching the logo's proportions */
  --hex: polygon(50% 0, 100% 29.6%, 100% 70%, 50% 100%, 0 70%, 0 29.6%);
  /* Flat chip hexagon for buttons/nav */
  --chip: polygon(14px 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 14px 100%, 0 50%);

  --gutter: clamp(16px, 4vw, 56px);
  --shadow: 6px 6px 0 var(--ink);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }

.sr-defs { position: absolute; width: 0; height: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--yellow); color: var(--ink); padding: 8px 14px; font-weight: 800; }
.skip:focus { left: 8px; }

:focus-visible { outline: 3px dashed var(--pink); outline-offset: 4px; }

/* line-boil wobble (JS swaps the filter id) */
.boil { filter: var(--boil, none); }

/* ---------------------------------------------------------
   Top bar
   --------------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 16px;
  padding: 10px var(--gutter);
  background: var(--ink);
  border-bottom: 4px solid var(--yellow);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand img { width: 40px; height: auto; transition: transform .4s cubic-bezier(.5,1.8,.5,1); }
.brand:hover img { transform: rotate(-12deg) scale(1.1); }
.brand span { font-family: var(--font-display); font-size: 22px; letter-spacing: .02em; }

.nav { display: flex; gap: 6px; }
.nav-hex {
  font-family: var(--font-display); font-size: 15px; text-transform: uppercase; text-decoration: none;
  padding: 9px 22px; color: var(--ink); background: var(--paper);
  clip-path: var(--chip);
  transition: background .2s, transform .2s;
}
.nav-hex:hover { transform: translateY(-2px); }
.nav-home:hover, body[data-view="home"] .nav-home { background: var(--yellow); }
.nav-projects:hover, body[data-view="projects"] .nav-projects { background: var(--blue); }
.nav-about:hover, body[data-view="about"] .nav-about { background: var(--pink); }
body[data-view="home"] .nav-home,
body[data-view="projects"] .nav-projects,
body[data-view="about"] .nav-about { text-decoration: underline 3px; text-underline-offset: 3px; }

.topbar-cta {
  font-family: var(--font-display); font-size: 15px; text-decoration: none; text-transform: uppercase;
  color: var(--yellow); border: 3px solid var(--yellow); padding: 6px 14px; border-radius: 999px;
  transition: background .2s, color .2s;
}
.topbar-cta:hover { background: var(--yellow); color: var(--ink); }

/* ---------------------------------------------------------
   Hero + the cube
   --------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 70px);
  display: grid; place-items: center; align-content: center; gap: 12px;
  padding: 40px var(--gutter) 90px;
  background:
    radial-gradient(circle at 1px 1px, rgba(13,13,13,.16) 1.6px, transparent 2px) 0 0 / 18px 18px,
    var(--yellow);
  color: var(--ink);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; display: grid; align-content: center; }
.hero-word {
  font-family: var(--font-display); line-height: .82; white-space: nowrap;
  font-size: clamp(90px, 21vw, 340px);
  color: transparent; -webkit-text-stroke: 2px rgba(13,13,13,.28);
  animation: drift 18s ease-in-out infinite alternate;
}
.hw-1 { margin-left: -4vw; }
.hw-2 { margin-left: 30vw; animation-duration: 22s; animation-direction: alternate-reverse; }
.hw-3 { margin-left: 4vw; animation-duration: 26s; }
@keyframes drift { from { transform: translateX(-4vw); } to { transform: translateX(6vw); } }

.cube-zone { position: relative; width: min(540px, 74vw, 60svh); aspect-ratio: 926 / 1110; perspective: 1100px; margin-top: 50px; }
.cube-tilt {
  position: absolute; inset: 0;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease-out;
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob { 50% { translate: 0 -10px; } }

.cube {
  position: absolute; inset: 0;
  background: var(--ink); /* hides anti-aliased seams between faces */
  -webkit-mask: url("../assets/cube-body.png") center / 100% 100% no-repeat;
          mask: url("../assets/cube-body.png") center / 100% 100% no-repeat;
}
/* soft extrusion shadow behind the cube */
.cube-tilt::before {
  content: ""; position: absolute; inset: 0; translate: 14px 18px;
  background: rgba(13,13,13,.28);
  -webkit-mask: url("../assets/cube-body.png") center / 100% 100% no-repeat;
          mask: url("../assets/cube-body.png") center / 100% 100% no-repeat;
}

.face {
  position: absolute; inset: 0; display: block;
  background: var(--face-bg, var(--ink));
  transition: background .18s;
  cursor: pointer;
}
.face .ink {
  position: absolute; inset: 0;
  background: var(--face-ink, var(--paper));
  -webkit-mask: url("../assets/cube-letters.png") center / 100% 100% no-repeat;
          mask: url("../assets/cube-letters.png") center / 100% 100% no-repeat;
  transition: background .18s, transform .3s cubic-bezier(.5,2,.5,1);
}
.face-top   { clip-path: polygon(50% -2%, 102% 29.6%, 50% 58.9%, -2% 29.6%); }
.face-left  { clip-path: polygon(-2% 29.6%, 50% 58.9%, 50% 102%, -2% 69.8%); }
.face-right { clip-path: polygon(50% 58.9%, 102% 29.6%, 102% 69.8%, 50% 102%); }

.face-top:hover,   .face-top:focus-visible   { --face-bg: var(--paper); --face-ink: var(--ink); }
.face-left:hover,  .face-left:focus-visible  { --face-bg: var(--blue);  --face-ink: var(--ink); }
.face-right:hover, .face-right:focus-visible { --face-bg: var(--pink);  --face-ink: var(--ink); }
.face:hover .ink { filter: var(--boil, none); }
.face:focus-visible { outline: none; }

/* Face labels around the cube */
.face-tag {
  position: absolute; z-index: 2; white-space: nowrap;
  font-family: var(--font-display); font-size: clamp(13px, 1.5vw, 18px); text-transform: uppercase;
  background: var(--ink); color: var(--paper); padding: 6px 14px;
  border-radius: 999px; box-shadow: 4px 4px 0 rgba(13,13,13,.25);
  transition: transform .25s cubic-bezier(.5,2,.5,1), background .2s, color .2s;
  pointer-events: none;
}
.tag-top   { top: 4%;  left: 50%; translate: -50% -110%; rotate: -3deg; }
.tag-left  { top: 62%; right: 100%; margin-right: 10px; rotate: 4deg; }
.tag-right { top: 62%; left: 100%;  margin-left: 10px; rotate: -5deg; }
.face-tag.is-hot { transform: scale(1.18); }
.tag-top.is-hot   { background: var(--paper); color: var(--ink); }
.tag-left.is-hot  { background: var(--blue);  color: var(--ink); }
.tag-right.is-hot { background: var(--pink);  color: var(--ink); }


/* ---------------------------------------------------------
   Crossing tapes
   --------------------------------------------------------- */
.tapes { position: relative; height: 140px; margin-top: -90px; z-index: 3; pointer-events: none; }
.tape {
  position: absolute; left: -5vw; width: 110vw; overflow: hidden;
  font-family: var(--font-display); font-size: clamp(18px, 2.2vw, 28px); line-height: 1; white-space: nowrap;
  padding: 14px 0; border-block: 3px solid var(--ink);
}
.tape-a { top: 20px; background: var(--ink); color: var(--yellow); rotate: -3deg; border-color: var(--yellow); }
.tape-b { top: 64px; background: var(--paper); color: var(--ink); rotate: 2.5deg; }
.tape-track { display: flex; width: max-content; animation: tape 28s linear infinite; }
.tape-b .tape-track { animation-direction: reverse; animation-duration: 34s; }
.tape-track span { padding-right: .4em; }
@keyframes tape { to { transform: translateX(-50%); } }

/* ---------------------------------------------------------
   "Now cooking" — Pemkie Island
   --------------------------------------------------------- */
.cooking {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center;
  padding: clamp(60px, 9vw, 130px) var(--gutter);
}
.eyebrow {
  margin: 0 0 10px; font-weight: 800; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--yellow);
}
.mega {
  margin: 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(56px, 10vw, 150px); line-height: .86; letter-spacing: -.01em;
}
.outline { color: transparent; -webkit-text-stroke: 2px var(--yellow); }
.big { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: clamp(30px, 4.4vw, 56px); line-height: .95; margin: 0 0 20px; }

.stamps { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-wrap: wrap; gap: 10px; }
.stamps li {
  font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .12em;
  border: 2px dashed currentColor; padding: 6px 12px; border-radius: 6px;
}
.stamps li:nth-child(1) { rotate: -3deg; color: var(--yellow); }
.stamps li:nth-child(2) { rotate: 2deg;  color: var(--blue); }
.stamps li:nth-child(3) { rotate: -1deg; color: var(--pink); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block; text-decoration: none; text-transform: uppercase;
  font-family: var(--font-display); font-size: 17px; padding: 14px 26px;
  border: 3px solid var(--ink); border-radius: 14px;
  transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translate(-3px, -3px); }
.btn:active { transform: translate(2px, 2px); box-shadow: none; }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 6px 6px 0 var(--pink); }
.btn-yellow:hover { box-shadow: 9px 9px 0 var(--pink); }
.btn-black { background: var(--ink); color: var(--paper); box-shadow: 6px 6px 0 rgba(13,13,13,.25); }
.btn-ghost-dark { color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: var(--paper); }
.btn-wiggle { animation: wiggle 4s ease-in-out infinite; }
.btn-lg { font-size: clamp(19px, 1.7vw, 23px); padding: 18px 34px; }
@keyframes wiggle {
  0%, 84%, 100% { rotate: 0deg; }
  87% { rotate: -5deg; } 90% { rotate: 4deg; } 93% { rotate: -3deg; } 96% { rotate: 2deg; }
}

/* The tilting game card */
.game-card { display: block; width: 100%; max-width: 420px; justify-self: center; perspective: 1000px; text-decoration: none; }
.game-card-inner {
  position: relative; aspect-ratio: 900 / 1377; border-radius: 22px; overflow: hidden;
  border: 6px solid var(--paper);
  box-shadow: 14px 14px 0 var(--blue);
  transform: rotate(3deg) rotateX(var(--cx, 0deg)) rotateY(var(--cy, 0deg));
  transition: transform .2s ease-out, box-shadow .2s;
  transform-style: preserve-3d;
}
.game-card:hover .game-card-inner { box-shadow: 20px 20px 0 var(--blue); }
.game-card-art { width: 100%; height: 100%; object-fit: cover; }
.game-card-logo {
  position: absolute; left: 50%; top: 24%; width: 80%; translate: -50% 0;
  filter: drop-shadow(0 6px 0 rgba(0,0,0,.35));
  transition: transform .3s cubic-bezier(.5,2,.5,1);
}
.game-card:hover .game-card-logo { transform: scale(1.07) rotate(-2deg); }
.game-card-badge {
  position: absolute; top: 16px; right: -38px; rotate: 35deg;
  background: var(--pink); color: var(--ink); padding: 6px 46px;
  font-family: var(--font-display); text-transform: uppercase; font-size: 14px;
}
.game-card-glare {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255,255,255,.75), transparent 55%);
  opacity: 0; transition: opacity .2s;
}
.game-card:hover .game-card-glare { opacity: 1; }

/* ---------------------------------------------------------
   Brains / Ideas / Stuff hexes
   --------------------------------------------------------- */
.trio {
  display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(12px, 2.5vw, 32px);
  padding: 10px var(--gutter) clamp(60px, 8vw, 110px);
}
.trio-hex {
  width: clamp(104px, 18vw, 220px); aspect-ratio: 926 / 1110; clip-path: var(--hex);
  display: grid; place-content: center; text-align: center;
  color: var(--ink); text-decoration: none;
  transition: transform .35s cubic-bezier(.5,1.8,.5,1);
}
.trio-hex:nth-of-type(2) { translate: 0 18%; }
.trio-hex:hover { transform: rotate(-8deg) scale(1.08); }
.hex-brains { background: var(--pink); }
.hex-ideas  { background: var(--blue); }
.hex-stuff  { background: var(--yellow); }
.trio-word { font-family: var(--font-display); font-size: clamp(17px, 3vw, 38px); line-height: 1; text-transform: uppercase; }

/* ---------------------------------------------------------
   Community row: Discord slab + Patreon slab
   --------------------------------------------------------- */
.discord {
  display: grid; grid-template-columns: 2.2fr 1fr; gap: clamp(14px, 2vw, 24px);
  padding: clamp(40px, 6vw, 80px) var(--gutter) 0;
}
.discord-slab {
  position: relative; display: grid; gap: 6px; overflow: hidden; text-decoration: none;
  padding: clamp(28px, 5vw, 64px); border-radius: 28px;
  background: var(--paper); color: var(--ink); border: 4px solid var(--paper);
  transition: background .25s, color .25s, transform .25s;
}
.discord-slab:hover { background: var(--discord); color: var(--paper); transform: rotate(-1deg); }
.discord-small { font-weight: 800; text-transform: uppercase; letter-spacing: .16em; font-size: 13px; }
.discord-big { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(36px, 6.4vw, 110px); line-height: .9; }
.discord-arrow {
  position: absolute; right: clamp(20px, 4vw, 56px); top: 50%; translate: 0 -50%;
  font-size: clamp(50px, 9vw, 140px); line-height: 1; transition: transform .3s cubic-bezier(.5,2,.5,1);
}
.discord-slab:hover .discord-arrow { transform: translate(10px, -10px) rotate(8deg); }

.patreon-slab {
  display: grid; align-content: center; gap: 6px; text-decoration: none;
  padding: clamp(24px, 4vw, 56px); border-radius: 28px;
  color: var(--paper); border: 4px solid var(--paper);
  transition: background .25s, border-color .25s, transform .25s;
}
.patreon-slab:hover { background: var(--patreon); border-color: var(--patreon); transform: rotate(1deg); }
.patreon-big { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(30px, 4.2vw, 72px); line-height: .9; }

/* ---------------------------------------------------------
   Stub pages (Projects / About)
   --------------------------------------------------------- */
.view-projects, .view-about { padding: clamp(40px, 7vw, 90px) var(--gutter) 60px; color: var(--ink); }
.view-projects { background: var(--blue); }
.view-about { background: var(--pink); }
body[data-view="projects"] { background: var(--blue); }
body[data-view="about"] { background: var(--pink); }
body[data-view="projects"] .topbar { border-color: var(--blue); }
body[data-view="about"] .topbar { border-color: var(--pink); }
.view-projects .eyebrow, .view-about .eyebrow { color: var(--ink); }
.page-head { margin-bottom: clamp(30px, 5vw, 60px); }

.proj {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(20px, 4vw, 50px); align-items: center;
  background: var(--paper); border: 4px solid var(--ink); border-radius: 26px; overflow: hidden;
  box-shadow: 12px 12px 0 var(--ink); margin-bottom: 50px;
}
.proj-art { width: 100%; height: 100%; object-fit: cover; min-height: 280px; }
.proj-body { padding: clamp(20px, 3vw, 40px); }
.proj-logo { width: min(320px, 80%); margin-bottom: 4px; }
.stamps-dark li { color: var(--ink) !important; }

.proj-collect { background: var(--ink); color: var(--paper); }
.proj-collect .eyebrow { color: var(--yellow); }
.proj-collect .btn-black { background: var(--yellow); color: var(--ink); }
/* Collectibles: booster packs fanned at the back-left (cut off by the panel's bottom edge),
   holographic cards fanned in front on the right. Sizes use the stage width (cqw). */
.proj-collect { align-items: stretch; }
.proj-collect .proj-body { align-self: center; }
/* clip only the bottom edge (packs get cut there); cards may spill past the sides/top */
.collect-stage { position: relative; clip-path: inset(-50% -50% 0 -50%); container-type: inline-size; aspect-ratio: 10 / 6.4; }

.packs {
  position: absolute; left: 0; bottom: -5.5cqw; width: 46cqw; aspect-ratio: 700 / 950;
  animation: pack-float 5s ease-in-out infinite;
}
@keyframes pack-float { 50% { translate: 0 -10px; } }
.pack { position: absolute; inset: 0; width: 100%; transform-origin: 50% 100%; }
.p1 { z-index: 3; transform: rotate(-7deg); filter: drop-shadow(10px 12px 0 rgba(0,0,0,.45)); }
.p2 { z-index: 2; transform: translateX(16%) rotate(-2deg); filter: brightness(.75) drop-shadow(10px 12px 0 rgba(0,0,0,.45)); }
.p3 { z-index: 1; transform: translateX(32%) rotate(3deg); filter: brightness(.55) drop-shadow(10px 12px 0 rgba(0,0,0,.45)); }

.holo-hand { position: absolute; z-index: 4; top: 6cqw; left: 36cqw; right: 2cqw; bottom: 0; }
.holo-card {
  --r: 0deg;
  position: absolute; top: 0; width: 26cqw; aspect-ratio: 716 / 1000;
  transform-origin: 50% 100%;
  transform: rotate(var(--r));
  filter: drop-shadow(6px 8px 0 rgba(0,0,0,.5));
  transition: transform .35s cubic-bezier(.5,1.6,.5,1);
}
.holo-card img { width: 100%; height: 100%; object-fit: contain; }
.c1 { --r: -7deg; left: 0; } .c2 { --r: -1deg; left: 10cqw; } .c3 { --r: 5deg; left: 20cqw; } .c4 { --r: 11deg; left: 30cqw; }
.holo-card:hover { z-index: 5; transform: translateY(-3cqw) rotate(calc(var(--r) * .4)) scale(1.08); }

/* Cards are "dealt" up from the packs when the panel scrolls into view */
.collect-stage:not(.is-dealt) .holo-card { translate: 0 110%; }
.collect-stage.is-dealt .holo-card { animation: deal .7s cubic-bezier(.3,1.4,.5,1) backwards; }
.collect-stage.is-dealt .c2 { animation-delay: .1s; }
.collect-stage.is-dealt .c3 { animation-delay: .2s; }
.collect-stage.is-dealt .c4 { animation-delay: .3s; }
@keyframes deal { from { translate: 0 110%; } }

/* Foil sits on top of the card art, masked to the card's own shape.
   Overlay blending tints the art without washing out its colours. */
.foil {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--card) center / contain no-repeat;
          mask: var(--card) center / contain no-repeat;
  background:
    linear-gradient(115deg, transparent 38%, rgba(255,255,255,.55) 48%, transparent 58%) 0 0 / 260% 260%,
    linear-gradient(125deg, #ff4d8d, #ffd21f, #4be38a, #3db7f0, #7c5cff, #ff4d8d, #ffd21f) 0 0 / 340% 340%;
  mix-blend-mode: overlay; opacity: .4;
  transition: opacity .2s;
}
.foil { animation: foil-drift 7s ease-in-out infinite alternate; } /* always shimmering */
.c2 .foil { animation-delay: -2s !important; } .c3 .foil { animation-delay: -4s !important; } .c4 .foil { animation-delay: -6s !important; }
.holo-card:hover .foil { opacity: .55; }
@keyframes foil-drift { from { background-position: 0% 0%, 0% 0%; } to { background-position: 100% 100%, 100% 100%; } }

/* "And more coming soon" plug */
.soon { display: grid; justify-items: center; text-align: center; gap: 18px; padding: clamp(40px, 7vw, 90px) 0 clamp(20px, 4vw, 40px); }
.soon .mega { font-size: clamp(44px, 8vw, 120px); }
.soon-sticker {
  width: clamp(110px, 13vw, 160px); height: auto;
  filter: drop-shadow(6px 8px 0 rgba(13,13,13,.25));
  animation: sticker-spin 9s ease-in-out infinite;
}
@keyframes sticker-spin { 0%, 100% { rotate: -8deg; } 50% { rotate: 8deg; } }

.facts { display: flex; gap: 24px; margin: 0 0 16px; }
.facts div { margin: 0; }
.facts dt { font-family: var(--font-display); font-size: 54px; line-height: 1; color: var(--yellow); }
.facts dd { margin: 0; font-weight: 600; font-size: 14px; }

.team { list-style: none; padding: 0; margin: 0 0 60px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px; }
.team li { display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 15px; }
.tc-hex {
  width: 110px; aspect-ratio: 926 / 1110; clip-path: var(--hex); background: var(--role, var(--ink)); color: var(--ink);
  display: grid; place-items: center; font-family: var(--font-display); font-size: 30px;
  transition: transform .3s cubic-bezier(.5,2,.5,1);
}
.team li:hover .tc-hex { transform: rotate(10deg) scale(1.08); }
.role-founder { --role: var(--yellow); }
.role-3d      { --role: var(--blue); }
.role-dev     { --role: #4be38a; }
.role-2d      { --role: var(--paper); }
.role-music   { --role: #9b7bff; }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.contact-tile {
  display: grid; gap: 6px; padding: 26px; text-decoration: none; border: 4px solid var(--ink); border-radius: 22px;
  background: var(--paper); box-shadow: 8px 8px 0 var(--ink); transition: transform .15s, box-shadow .15s;
}
.contact-tile:hover { transform: translate(-3px, -3px); box-shadow: 11px 11px 0 var(--ink); }
.contact-tile span { font-weight: 800; text-transform: uppercase; letter-spacing: .14em; font-size: 12px; }
.contact-tile b { font-family: var(--font-display); font-weight: 400; font-size: clamp(18px, 2vw, 24px); word-break: break-word; }
.ct-press { background: var(--yellow); } .ct-discord { background: var(--discord); color: var(--paper); } .ct-steam { background: var(--blue); }


/* ---------------------------------------------------------
   Footer
   --------------------------------------------------------- */
.footer { position: relative; overflow: hidden; background: var(--ink); padding: 60px var(--gutter) 0; border-top: 4px solid var(--yellow); }
.stickers { list-style: none; margin: 0 0 36px; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.stickers a {
  display: inline-block; text-decoration: none; text-transform: uppercase;
  font-family: var(--font-display); font-size: 16px; padding: 10px 18px; border-radius: 999px;
  color: var(--ink); border: 3px solid var(--paper);
  transition: transform .25s cubic-bezier(.5,2,.5,1);
}
.stickers li:nth-child(3n+1) a { background: var(--yellow); rotate: -3deg; }
.stickers li:nth-child(3n+2) a { background: var(--blue); rotate: 2deg; }
.stickers li:nth-child(3n)   a { background: var(--pink); rotate: -1deg; }
.stickers a:hover { transform: scale(1.12) rotate(6deg); }
.footer-meta { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; font-weight: 600; opacity: .85; }
.footer-word {
  font-family: var(--font-display); color: var(--yellow); line-height: .74; white-space: nowrap;
  font-size: 20.5vw; margin: 30px 0 -2vw -.6vw; letter-spacing: -.02em;
}

/* ---------------------------------------------------------
   Wipe transition + cursor
   --------------------------------------------------------- */
.wipe {
  position: fixed; inset: 0; z-index: 90; pointer-events: none;
  background: var(--wipe-bg, var(--yellow));
  clip-path: polygon(50% 50%, 50% 50%, 50% 50%, 50% 50%);
  display: grid; place-items: center;
}
.wipe.is-on { pointer-events: auto; }
.wipe-label {
  font-family: var(--font-display); text-transform: uppercase; color: var(--ink);
  font-size: clamp(56px, 14vw, 220px); opacity: 0; transform: scale(.7) rotate(-6deg);
  transition: opacity .2s, transform .35s cubic-bezier(.5,2,.5,1);
}
.wipe.show-label .wipe-label { opacity: 1; transform: none; }

/* Hexagon cursor: a vector shape (smooth edges) that replaces the system pointer */
html.has-cursor, html.has-cursor * { cursor: none !important; }
.cursor {
  position: fixed; left: 0; top: 0; z-index: 99; pointer-events: none;
  margin: -15.5px 0 0 -13px; /* centre the hexagon on the pointer */
  overflow: visible; opacity: 0; transition: opacity .15s;
  will-change: transform;
}
.cursor path {
  fill: var(--pink); stroke: var(--ink); stroke-width: 9;
  transform-origin: 46.5px 55.5px;
  transition: fill .15s, transform .25s cubic-bezier(.5,2,.5,1);
}
.cursor.is-on { opacity: 1; }
.cursor.is-big path { fill: var(--yellow); transform: scale(1.7) rotate(30deg); }
.cursor.is-down path { transform: scale(.8); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ---------------------------------------------------------
   Responsive
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .cooking { grid-template-columns: 1fr; }
  .proj { grid-template-columns: 1fr; }
  .proj-art { min-height: 200px; max-height: 260px; }
  .collect-stage { order: 2; } /* cards rise from the panel's real bottom edge */
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .topbar { gap: 8px; padding-block: 8px; }
  .brand span, .topbar-cta { display: none; }
  .brand img { width: 34px; }
  .nav-hex { font-size: 12px; padding: 8px 14px; }
  .hero { min-height: auto; padding-top: 28px; padding-bottom: 110px; }
  .cube-zone { width: 72vw; margin-top: 40px; }
  .tag-left  { right: auto; left: -14px; top: auto; bottom: -34px; margin: 0; }
  .tag-right { left: auto; right: -14px; top: auto; bottom: -34px; margin: 0; }
  .tag-top { translate: -50% -125%; }
  .discord-arrow { display: none; }
  .discord { grid-template-columns: 1fr; }
  .facts dt { font-size: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .boil { filter: none !important; }
}
