/* kyuwu.com: a pocket universe. Colours come from the mascots (lilac body, cream rim, cyan ring, pink blush). */

@font-face { font-family: 'Unbounded Variable'; font-style: normal; font-display: swap; font-weight: 200 900; src: url('/fonts/unbounded-latin-wght-normal.woff2') format('woff2-variations'); }
@font-face { font-family: 'Instrument Sans Variable'; font-style: normal; font-display: swap; font-weight: 400 700; src: url('/fonts/instrument-sans-latin-wght-normal.woff2') format('woff2-variations'); }
@font-face { font-family: 'JetBrains Mono Variable'; font-style: normal; font-display: swap; font-weight: 100 800; src: url('/fonts/jetbrains-mono-latin-wght-normal.woff2') format('woff2-variations'); }

:root {
  --night: #14080b;
  --ink: #2b0b12;
  --lilac: #ffc2cc;   /* strawberry milk: the soft accent */
  --violet: #d9304f;  /* Choco's hoodie */
  --cream: #fff3e4;
  --cyan: #ffcf7a;    /* caramel */
  --pink: #ff5c7f;
  --gold: #ffd98a;
  --cocoa: #8a5c4a;
  --text: #fff1ea;
  --mute: #dcb6b0;
  --display: 'Unbounded Variable', 'Arial Black', system-ui, sans-serif;
  --body: 'Instrument Sans Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono Variable', ui-monospace, 'SF Mono', Menlo, monospace;
  --pad: clamp(20px, 5vw, 72px);
  --spring: cubic-bezier(0.2, 1.5, 0.35, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--body);
  background:
    radial-gradient(90vmax 70vmax at 15% -10%, #a8243c 0%, transparent 60%),
    radial-gradient(80vmax 70vmax at 100% 30%, #6b3a1c 0%, transparent 55%),
    radial-gradient(90vmax 80vmax at 30% 110%, #8f1f52 0%, transparent 55%),
    var(--night);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p, ul, dl, dd { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 8px; }
::selection { background: var(--pink); color: var(--ink); }

.skip { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--cream); color: var(--ink); font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- the sky ---------- */

.sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -3; opacity: 0; transition: opacity 1.2s ease; }
.sky.is-live { opacity: 1; }

.stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -2; pointer-events: none; }

.grain {
  position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: 0.09;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}
.fx { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 60; pointer-events: none; }

/* ---------- shared bits ---------- */

.eyebrow {
  font: 600 0.78rem/1 var(--mono);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before { content: '✦ '; color: var(--gold); }

.title {
  font: 800 clamp(2.3rem, 8vw, 6.2rem)/0.95 var(--display);
  letter-spacing: -0.035em;
  text-wrap: balance;
  background: linear-gradient(100deg, var(--cream) 0%, var(--lilac) 20%, var(--pink) 38%, #ff8a5c 54%, var(--gold) 72%, var(--cream) 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 0.08em;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer { to { background-position: 200% 0; } }

.btn {
  display: inline-flex; align-items: center; gap: 0.6em;
  padding: 0.95em 1.5em;
  border-radius: 999px;
  font: 600 0.82rem/1 var(--display);
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--ink);
  background: linear-gradient(135deg, var(--cream), var(--acc, var(--lilac)));
  box-shadow: 0 0.5em 1.6em -0.5em var(--acc, var(--violet)), inset 0 0 0 1.5px rgb(255 255 255 / 0.55);
  transition: transform 0.35s var(--spring), box-shadow 0.3s ease;
}
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgb(255 255 255 / 0.9) 50%, transparent 70%); translate: -120% 0; transition: translate 0.7s var(--out); }
.btn:hover::after { translate: 120% 0; }
.btn--status::after { display: none; }
.btn b { font-weight: 800; display: inline-block; }
.btn[aria-pressed='true'] b { animation: note 0.5s ease-in-out infinite alternate; }
@keyframes note { to { transform: translateY(-4px) rotate(14deg) scale(1.25); } }
.btn span { display: inline-block; transition: transform 0.35s var(--spring); }
.btn:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 1em 2.2em -0.6em var(--acc, var(--violet)), inset 0 0 0 1.5px #fff; }
.btn:hover span { transform: translate(3px, -3px); }
.btn:active { transform: scale(0.96); }
.btn--ghost { background: rgb(255 255 255 / 0.06); color: var(--text); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.35); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1.5px #fff, 0 1em 2.2em -0.8em var(--pink); }
.btn--status { background: none; color: var(--text); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.3); border: 0; cursor: default; opacity: 0.8; }
.btn--status::before { content: ''; width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--acc, var(--lilac)); box-shadow: 0 0 0.8em var(--acc, var(--lilac)); }
.btn--status:hover { transform: none; box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.3); }
.btn--big { font-size: clamp(0.95rem, 2.4vw, 1.25rem); padding: 1.1em 1.9em; }

.js .reveal { opacity: 0; transform: translateY(28px) scale(0.98); transition: opacity 0.9s var(--out), transform 0.9s var(--out); transition-delay: var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- mascots ---------- */

.mascot { display: block; width: 100%; height: auto; overflow: visible; }
.m-bob { animation: bob 3.8s ease-in-out infinite; }
.m-tufts { transform-box: fill-box; transform-origin: 50% 100%; animation: tuft 3.8s ease-in-out -0.4s infinite; }
.m-open { transform-box: fill-box; transform-origin: center; animation: blink 5.4s infinite; }
.m-eye--r .m-open { animation-delay: 0.03s; }
.m-look { transition: transform 0.14s ease-out; }
.m-spark { transform-box: fill-box; transform-origin: center; animation: twinkle 2.8s ease-in-out infinite; }
.m-spark.b { animation-delay: -1s; }
.m-spark.c { animation-delay: -1.9s; }
.m-squish { transform-box: fill-box; transform-origin: 50% 100%; }
.is-booped .m-squish { animation: boop 0.6s var(--spring); }
.m-shut, .m-smile, .m-mouth--o, .m-mouth--d, .m-zz { display: none; }
[data-mood='joy'] .m-open, [data-mood='joy'] .m-mouth--w { display: none; }
[data-mood='joy'] .m-smile, [data-mood='joy'] .m-mouth--d { display: block; }
[data-mood='wink'] .m-eye--r .m-open { display: none; }
[data-mood='wink'] .m-eye--r .m-smile { display: block; }
[data-mood='curious'] .m-mouth--w { display: none; }
[data-mood='curious'] .m-mouth--o { display: block; }
[data-mood='sleepy'] .m-open, [data-mood='sleepy'] .m-mouth--w { display: none; }
[data-mood='sleepy'] .m-shut, [data-mood='sleepy'] .m-mouth--o, [data-mood='sleepy'] .m-zz { display: block; }
[data-mood='sleepy'] .m-bob { animation-duration: 6s; }
.m-zz text { animation: doze 3s ease-in-out infinite; }
.m-zz .late { animation-delay: -1.5s; }

@keyframes bob { 50% { transform: translateY(-2.4px); } }
@keyframes tuft { 50% { transform: rotate(2.5deg); } }
@keyframes blink { 0%, 93%, 100% { transform: scaleY(1); } 96% { transform: scaleY(0.08); } }
@keyframes twinkle { 0%, 100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(0.55) rotate(45deg); opacity: 0.5; } }
@keyframes boop { 0% { transform: scale(1); } 30% { transform: scale(1.12, 0.84); } 60% { transform: scale(0.94, 1.08); } 100% { transform: scale(1); } }
@keyframes doze { 0% { opacity: 0; transform: translate(-2px, 3px); } 40% { opacity: 1; } 100% { opacity: 0; transform: translate(3px, -5px); } }

/* ---------- nav ---------- */

.nav {
  position: fixed; z-index: 40; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: max(12px, env(safe-area-inset-top)) clamp(14px, 3vw, 32px) 12px;
  pointer-events: none;
  transition: transform 0.5s var(--out);
}
.nav.is-away { transform: translateY(-110%); }
.nav > * { pointer-events: auto; }
.nav__home {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  font: 700 0.9rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none;
  background: rgb(40 13 19 / 0.55); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgb(255 194 204 / 0.22);
}
.nav__mark { width: 34px; height: auto; display: block; margin: -3px 0; }
.nav__links {
  display: flex; gap: 2px; padding: 4px; border-radius: 999px;
  background: rgb(40 13 19 / 0.55); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgb(255 194 204 / 0.22);
}
.nav__links a { padding: 9px 14px; border-radius: 999px; font: 600 0.74rem/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--mute); transition: color 0.2s, background 0.2s; }
.nav__links a:hover { color: #fff; background: rgb(255 255 255 / 0.1); }
.nav__links .nav__hi { color: var(--ink); background: linear-gradient(135deg, var(--cream), var(--lilac)); }
.nav__links .nav__hi:hover { color: var(--ink); background: linear-gradient(135deg, #fff, var(--pink)); }

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

.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: 84px var(--pad) 96px;
  overflow: hidden;
}
.hero__stage { --ps: min(74vw, 40svh, 430px); position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; transform: perspective(1100px) rotateX(calc(var(--py, 0) * -5deg)) rotateY(calc(var(--px, 0) * 7deg)); transition: transform 0.35s ease-out; }

.hero__hello {
  display: inline-flex; align-items: center; gap: 0.7em;
  padding: 9px 16px; border-radius: 999px;
  font: 500 clamp(0.68rem, 1.5vw, 0.82rem)/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--mute);
  background: rgb(40 13 19 / 0.6); box-shadow: inset 0 0 0 1px rgb(255 194 204 / 0.3);
  animation: fade-up 0.9s var(--out) 0.2s both;
}
.hero__hello b { font-weight: 800; color: var(--cream); }
.hero__hello b + i + b, .hero__hello b:last-child { color: var(--pink); }
.hero__hello i { font-style: normal; color: var(--gold); animation: twinkle 2.4s ease-in-out infinite; }

.hero__choco {
  --cs: min(84vw, 46svh, 540px);
  position: relative; z-index: 2; width: var(--cs); margin: clamp(6px, 1.5svh, 18px) 0 0;
  transform: translate(calc(var(--px, 0) * 14px), calc(var(--py, 0) * 10px));
}
.choco { position: relative; display: block; width: 100%; cursor: grab; touch-action: manipulation; animation: land 1.3s var(--spring) 0.15s both; }
.choco:active { cursor: grabbing; }

/* Choco herself, wherever she turns up. The script bops .choco__bop; the reactions come from Chocojam. */
[data-choco] { display: block; }
.choco__death, .choco__bop { display: block; }
.choco__death { transform-origin: 50% 80%; }
.choco__bop { transform-origin: 50% 88%; will-change: transform; }
.choco__bop img { display: block; width: 100%; height: auto; aspect-ratio: 502 / 444; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.is-flinch .choco__bop img { animation: flinch 0.4s ease-out; }
.is-rage .choco__bop img { filter: sepia(1) saturate(7) hue-rotate(-32deg) brightness(0.95); }
.is-rage .choco__death { animation: rage 1.05s cubic-bezier(0.55, 0, 0.75, 0.35) forwards; }
.is-holy .choco__death { animation: holy 1.6s cubic-bezier(0.22, 1, 0.36, 1); }
.is-holy .choco__bop img { animation: holy-glow 1.8s ease-out; }
@keyframes flinch { 0% { transform: none; } 18% { transform: translateY(3%) scale(1.13, 0.87); } 45% { transform: translateY(-1.5%) scale(0.93, 1.08) rotate(-5deg); } 72% { transform: scale(1.03, 0.98) rotate(4deg); } 100% { transform: none; } }
@keyframes rage { 0% { transform: none; opacity: 1; } 22% { transform: translateY(6%) rotate(-7deg) scale(1.08, 0.92); opacity: 1; } 100% { transform: translateY(-190svh) rotate(55deg) scale(0.45); opacity: 0; } }
@keyframes holy { 0% { transform: translateY(-150svh) scale(0.55); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(2%) scale(1.04); } 100% { transform: none; opacity: 1; } }
@keyframes holy-glow { 0% { filter: brightness(2.4) drop-shadow(0 0 30px #ffe896); } 60% { filter: brightness(1.3) drop-shadow(0 0 18px #ffe896); } 100% { filter: brightness(1) drop-shadow(0 0 0 transparent); } }

.rays, .world__art::after {
  content: ''; position: absolute; inset: -72%; z-index: -2; border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, color-mix(in srgb, var(--ray, #ffd98a) 26%, transparent) 0deg 4deg, transparent 4deg 9deg, color-mix(in srgb, var(--ray2, #ff5c7f) 20%, transparent) 9deg 11deg, transparent 11deg 20deg);
  -webkit-mask: radial-gradient(closest-side, #000 22%, transparent 80%); mask: radial-gradient(closest-side, #000 22%, transparent 80%);
  animation: spin 60s linear infinite;
}
.halo {
  position: absolute; inset: -10%; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 226 200 / 0.6), rgb(255 92 127 / 0.3) 50%, transparent 72%);
  animation: breathe 5s ease-in-out infinite;
}
.pulse { position: absolute; inset: 6% 2%; z-index: -1; border-radius: 50%; pointer-events: none; box-shadow: inset 0 0 0 2px rgb(255 194 204 / 0.7); animation: sonar 3s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.pulse + .pulse { animation-delay: -1.5s; box-shadow: inset 0 0 0 2px rgb(255 217 138 / 0.6); }
@keyframes sonar { 0% { transform: scale(0.7); opacity: 0; } 15% { opacity: 1; } 100% { transform: scale(1.9); opacity: 0; } }

.hero__boops {
  position: absolute; z-index: 3; top: 3%; right: -2%; rotate: 8deg;
  padding: 7px 12px; border-radius: 999px 999px 999px 4px;
  font: 700 0.7rem/1 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; pointer-events: none;
  color: var(--ink); background: linear-gradient(135deg, var(--gold), var(--pink));
  box-shadow: 0 6px 20px -4px var(--pink);
  animation: tag 2.2s ease-in-out 2.2s infinite both;
}
.hero__boops.pop { animation: tag-pop 0.45s var(--spring); }
@keyframes tag { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.05); } }
@keyframes tag-pop { 0% { transform: scale(0.4) rotate(-14deg); } 100% { transform: scale(1); } }
@keyframes land { from { opacity: 0; transform: translateY(-60px) scale(0.3) rotate(-25deg); } }
@keyframes breathe { 50% { transform: scale(1.12); opacity: 0.75; } }

.hero__title {
  position: relative; z-index: 2;
  margin-top: clamp(4px, 1svh, 14px); max-width: 22ch;
  font: 800 clamp(1.45rem, 3.9vw, 3.3rem)/1.06 var(--display); letter-spacing: -0.035em; text-wrap: balance;
  background: linear-gradient(100deg, var(--cream) 0%, var(--lilac) 20%, var(--pink) 38%, #ff8a5c 54%, var(--gold) 72%, var(--cream) 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 7s linear infinite, fade-up 1s var(--out) 0.7s backwards;
  padding-bottom: 0.1em;
}
.hero__cta { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin-top: clamp(12px, 2.4svh, 28px); animation: fade-up 1s var(--out) 1s both; }

.eq {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0; height: clamp(70px, 22svh, 200px);
  display: flex; align-items: flex-end; gap: clamp(2px, 0.5vw, 6px); padding: 0 1.5vw; pointer-events: none; opacity: 0.5;
  -webkit-mask: linear-gradient(to top, #000 30%, transparent); mask: linear-gradient(to top, #000 30%, transparent);
  transition: opacity 0.6s;
}
.eq.is-live { opacity: 0.95; }
.eq i { flex: 1; height: 100%; border-radius: 6px 6px 0 0; transform: scaleY(0.04); transform-origin: 50% 100%; background: linear-gradient(to top, var(--violet), var(--pink) 45%, var(--gold)); will-change: transform; }

.hero__stage.is-shake { animation: shake 0.4s linear; }
@keyframes shake { 20% { translate: -7px 4px; } 40% { translate: 6px -5px; } 60% { translate: -4px -3px; } 80% { translate: 3px 4px; } }
.nova .hero__choco .halo { animation: nova 3.4s linear; }
@keyframes nova { 0% { filter: hue-rotate(0) brightness(1.5); } 100% { filter: hue-rotate(720deg) brightness(1); } }

.br-s { display: none; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }

.floater {
  --fs: clamp(54px, 9.5vw, 132px);
  position: absolute; z-index: 1; width: var(--fs);
  transform: translate(calc(var(--px, 0) * var(--depth, 30) * 1px), calc(var(--py, 0) * var(--depth, 30) * 1px + var(--sy, 0) * var(--depth, 30) * -6px));
  animation: pop-in 0.9s var(--spring) both;
}
.floater > span { display: block; animation: drift 7s ease-in-out infinite; transition: scale 0.4s var(--spring); }
.floater:hover > span, .floater:focus-visible > span { scale: 1.18; }
.floater--kyu { left: 20%; top: 46%; --depth: 54; --fs: clamp(46px, 7vw, 96px); animation-delay: 1.7s; rotate: 6deg; }
.floater--kyu > span { animation-duration: 7.5s; animation-delay: -3s; }
.floater--peeky { left: 7%; top: 19%; --depth: 46; animation-delay: 1.1s; rotate: -10deg; }
.floater--chatty { right: 7%; top: 15%; --depth: 30; animation-delay: 1.25s; rotate: 9deg; }
.floater--chatty > span { animation-duration: 8.5s; animation-delay: -2s; }
.floater--gold { right: 12%; bottom: 20%; --depth: 38; --fs: clamp(46px, 7.5vw, 104px); animation-delay: 1.55s; rotate: -8deg; }
.floater--gold > span { animation-duration: 6.5s; animation-delay: -1s; }
@keyframes pop-in { from { opacity: 0; scale: 0; } }
@keyframes drift { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(4deg); } }

/* ---------- tape ---------- */

.tape { position: relative; z-index: 3; margin: -34px 0 0; padding: 24px 0 40px; overflow: hidden; }
.tape__row { width: 104vw; margin-left: -2vw; overflow: hidden; }
.tape__row--a { rotate: -2deg; background: linear-gradient(90deg, var(--cream), var(--lilac) 20%, var(--cyan) 40%, var(--pink) 60%, var(--gold) 80%, var(--cream)) 0 0 / 200% 100%; animation: shimmer 9s linear infinite; color: var(--ink); box-shadow: 0 10px 40px rgb(232 72 96 / 0.45); }
.tape__row--b { rotate: 1.4deg; margin-top: -6px; background: rgb(24 8 12 / 0.8); color: var(--lilac); box-shadow: inset 0 0 0 1px rgb(255 194 204 / 0.3); }
.tape__track { display: flex; align-items: center; gap: 1.4em; width: max-content; padding: 0.7em 0; font: 800 clamp(0.95rem, 2.6vw, 1.5rem)/1 var(--display); letter-spacing: -0.01em; text-transform: uppercase; white-space: nowrap; animation: slide 26s linear infinite; }
.tape__row--b .tape__track { font-weight: 500; font-family: var(--mono); font-size: clamp(0.8rem, 2vw, 1.1rem); letter-spacing: 0.12em; animation-duration: 34s; animation-direction: reverse; }
.tape__track b { font-weight: 400; color: var(--violet); }
.tape__row--b b { color: var(--pink); }
@keyframes slide { to { transform: translateX(calc(-50% - 0.7em)); } }

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

.about { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(70px, 12vw, 160px) var(--pad) clamp(60px, 9vw, 120px); }
.about__say {
  margin-top: 26px;
  font: 600 clamp(1.6rem, 4.7vw, 3.6rem)/1.14 var(--body);
  letter-spacing: -0.025em;
  text-wrap: pretty;
}
.about__say .w { opacity: 0.16; transition: opacity 0.35s ease, color 0.6s ease; }
.about__say .w.on { opacity: 1; }
.about__say .w.pop { color: var(--lilac); }

.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(48px, 8vw, 100px); }
.fact {
  position: relative; padding: clamp(20px, 2.4vw, 32px); border-radius: 28px;
  background: linear-gradient(160deg, rgb(122 31 43 / 0.62), rgb(43 14 20 / 0.7));
  box-shadow: inset 0 0 0 1px rgb(255 194 204 / 0.22), inset 0 1px 0 0 rgb(255 255 255 / 0.25), 0 20px 50px -30px #000;
  transition: opacity 0.9s var(--out), transform 0.6s var(--spring), box-shadow 0.3s;
}
.fact:nth-child(2) { --d: 90ms; } .fact:nth-child(3) { --d: 180ms; }
.fact.in:hover { transform: translateY(-6px) rotate(-0.6deg); box-shadow: inset 0 0 0 1px rgb(255 194 204 / 0.5), 0 30px 60px -30px var(--violet); }
.fact__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 16px; font-size: 1.3rem; color: var(--ink); background: linear-gradient(135deg, var(--cream), var(--lilac)); }
.fact:nth-child(2) .fact__icon { background: linear-gradient(135deg, #fff6dc, var(--cyan)); }
.fact:nth-child(3) .fact__icon { background: linear-gradient(135deg, #ffe3ea, var(--pink)); }
.fact h3 { margin-top: 18px; font: 700 clamp(1.05rem, 1.7vw, 1.3rem)/1.15 var(--display); letter-spacing: -0.02em; }
.fact p { margin-top: 10px; color: var(--mute); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: clamp(44px, 7vw, 90px) 0 0; }
.stats div { display: flex; flex-direction: column-reverse; gap: 6px; padding-top: 16px; border-top: 1px solid rgb(255 194 204 / 0.25); }
.stats dt { font: 500 0.72rem/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.stats dd { font: 800 clamp(2.2rem, 6.6vw, 5.4rem)/0.95 var(--display); letter-spacing: -0.04em; background: linear-gradient(180deg, var(--cream), var(--lilac) 70%, var(--violet)); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }

/* ---------- skills ---------- */

.skills { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(20px, 4vw, 60px) var(--pad) clamp(60px, 9vw, 130px); }
.skills .title { margin-top: 20px; }

.job {
  position: relative; overflow: hidden;
  margin-top: clamp(28px, 4vw, 52px); padding: clamp(22px, 3.2vw, 40px);
  border-radius: 28px;
  background:
    repeating-linear-gradient(-45deg, rgb(255 217 138 / 0.08) 0 14px, transparent 14px 28px),
    linear-gradient(160deg, rgb(122 31 43 / 0.78), rgb(43 14 20 / 0.85));
  box-shadow: inset 0 0 0 1.5px rgb(255 217 138 / 0.45), 0 24px 60px -30px #000;
}
.job__label { font: 700 0.74rem/1 var(--mono); letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
.job__line { margin-top: 14px; max-width: 30ch; font: 600 clamp(1.2rem, 2.9vw, 2.1rem)/1.38 var(--body); letter-spacing: -0.015em; }
.redact {
  display: inline-block; vertical-align: -0.14em; width: 5em; max-width: 60vw; height: 1.02em; border-radius: 5px; cursor: not-allowed;
  background: linear-gradient(100deg, #0f0508 0%, #2b0b12 38%, var(--pink) 50%, #2b0b12 62%, #0f0508 100%) 0 0 / 300% 100%;
  animation: shimmer 3.2s linear infinite;
  box-shadow: 0 0 0 1px rgb(255 92 127 / 0.35);
}
.redact--s { width: 3.2em; } .redact--m { width: 5.4em; } .redact--l { width: 7em; }
.job__stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 10px clamp(18px, 4vw, 56px); margin: clamp(20px, 3vw, 34px) 0 0; }
.job__stats div { display: flex; flex-direction: column-reverse; gap: 6px; }
.job__stats dt { font: 500 0.68rem/1.2 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.job__stats dd { font: 800 clamp(1.5rem, 4.4vw, 3.2rem)/1 var(--display); letter-spacing: -0.04em; white-space: nowrap; background: linear-gradient(180deg, var(--cream), var(--gold) 70%, var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.files { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2.4vw, 30px) clamp(20px, 3.4vw, 48px); margin-top: clamp(24px, 3.4vw, 40px); padding: clamp(20px, 3vw, 34px) 0 clamp(26px, 4vw, 44px); border-top: 1px dashed rgb(255 217 138 / 0.4); }
.files h3 { display: flex; align-items: center; gap: 0.45em; font: 800 clamp(1rem, 1.7vw, 1.25rem)/1.1 var(--display); letter-spacing: -0.02em; }
.files h3 i { font: 600 0.62rem/1 var(--mono); font-style: normal; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); background: var(--gold); padding: 5px 8px; border-radius: 999px; }
.files p { margin-top: 10px; color: color-mix(in srgb, var(--text) 85%, var(--gold)); font-size: 0.98rem; }
.redact.nope { animation: shimmer 3.2s linear infinite, nope 0.4s linear; }
@keyframes nope { 20% { translate: -6px 0; } 40% { translate: 6px 0; } 60% { translate: -4px 0; } 80% { translate: 3px 0; } }
.job__stamp {
  position: absolute; right: clamp(12px, 3vw, 40px); bottom: clamp(12px, 2.4vw, 30px); rotate: -9deg;
  padding: 0.3em 0.7em; border: 3px solid var(--pink); border-radius: 10px;
  font: 900 clamp(0.95rem, 2.4vw, 1.7rem)/1 var(--display); letter-spacing: 0.06em; text-transform: uppercase; color: var(--pink);
  text-shadow: 0 0 18px rgb(255 92 127 / 0.7); box-shadow: 0 0 18px rgb(255 92 127 / 0.35), inset 0 0 12px rgb(255 92 127 / 0.25);
  opacity: 0; scale: 2.4;
}
.job.in .job__stamp { opacity: 0.92; scale: 1; transition: opacity 0.15s ease 0.7s, scale 0.35s cubic-bezier(0.3, 1.8, 0.5, 1) 0.7s; }

.decks { display: grid; grid-template-columns: repeat(6, 1fr); gap: clamp(12px, 1.6vw, 22px); margin-top: clamp(14px, 1.8vw, 24px); }
.deck {
  grid-column: span 2; padding: clamp(20px, 2.4vw, 30px); border-radius: 28px;
  background: linear-gradient(160deg, rgb(122 31 43 / 0.62), rgb(43 14 20 / 0.7));
  box-shadow: inset 0 0 0 1px rgb(255 194 204 / 0.22), inset 0 1px 0 0 rgb(255 255 255 / 0.25), 0 20px 50px -30px #000;
}
.deck:nth-child(-n + 2), .deck:nth-last-child(-n + 2) { grid-column: span 3; }
.deck:nth-child(2) { --d: 80ms; } .deck:nth-child(3) { --d: 0ms; } .deck:nth-child(4) { --d: 80ms; } .deck:nth-child(5) { --d: 160ms; }
.deck h3 { font: 800 clamp(1.15rem, 2vw, 1.5rem)/1.1 var(--display); letter-spacing: -0.03em; }
.deck p { margin-top: 8px; color: var(--mute); font-size: 0.98rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
  padding: 9px 14px; border-radius: 999px; cursor: pointer; user-select: none; -webkit-user-select: none;
  font: 600 0.8rem/1 var(--mono); letter-spacing: 0.02em; color: var(--cream);
  background: rgb(0 0 0 / 0.28); box-shadow: inset 0 0 0 1px rgb(255 194 204 / 0.32);
  transition: transform 0.35s var(--spring), box-shadow 0.25s, opacity 0.4s ease;
}
.chips li.main { color: var(--ink); font-weight: 800; background: linear-gradient(100deg, var(--cream), var(--lilac) 30%, var(--gold) 60%, var(--cream)) 0 0 / 200% 100%; animation: shimmer 5s linear infinite; box-shadow: 0 6px 22px -6px var(--pink), inset 0 0 0 1px rgb(255 255 255 / 0.7); }
.chips li.main::before { content: '★ '; color: var(--violet); }
.chips li:hover { transform: translateY(-4px) rotate(-3deg) scale(1.06); box-shadow: 0 8px 22px -6px var(--pink), inset 0 0 0 1px #fff; }
.chips li:active { transform: scale(0.92); }
.js .deck .chips li { opacity: 0; transform: translateY(14px) scale(0.5); }
.js .deck.in .chips li { opacity: 1; transform: none; transition-delay: calc(var(--i, 0) * 50ms + 150ms), 0s, calc(var(--i, 0) * 50ms + 150ms); }
.js .deck.in .chips li:hover { transform: translateY(-4px) rotate(-3deg) scale(1.06); transition-delay: 0s; }
.skills__legend { margin-top: 18px; font: 500 0.74rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.skills__legend b { color: var(--gold); }

/* ---------- worlds: cards that stack as you scroll ---------- */

.worlds { position: relative; padding: 0 clamp(8px, 1.4vw, 20px) clamp(40px, 6vw, 80px); }
.worlds__head { max-width: 1240px; margin: 0 auto; padding: clamp(30px, 6vw, 80px) calc(var(--pad) - clamp(8px, 1.4vw, 20px)) clamp(28px, 4vw, 56px); }
.worlds__head .title { margin-top: 20px; }

.world {
  position: sticky; top: var(--stick, 0px);
  padding-top: clamp(8px, 1.4vw, 20px);
  --w1: #1a1250; --w2: #5a3bb0; --w3: #1f6fb8; --acc: #b9a2ff;
}
.world--choco { --w1: #2a0a10; --w2: #c23a48; --w3: #7a3a1c; --acc: #ff9fb0; }
.world--peeky { --w1: #0a1140; --w2: #2a47c8; --w3: #1a8fb8; --acc: #88d6ff; }
.world--chatty { --w1: #2a0b3f; --w2: #a2399a; --w3: #5a3bd0; --acc: #ff9ccb; }
.world--pvg { --w1: #1e2119; --w2: #6b5a12; --w3: #3f4a2a; --acc: #fdb812; }

.world__panel {
  position: relative; overflow: hidden;
  min-height: calc(100svh - 2 * clamp(8px, 1.4vw, 20px));
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: clamp(16px, 4vw, 60px);
  padding: clamp(64px, 8vw, 110px) clamp(22px, 6vw, 90px) clamp(28px, 5vw, 70px);
  border-radius: clamp(26px, 3.4vw, 46px);
  background:
    radial-gradient(110% 90% at 88% -5%, var(--w2) 0%, transparent 62%),
    radial-gradient(90% 80% at -5% 105%, var(--w3) 0%, transparent 60%),
    var(--w1);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.14), inset 0 1px 0 0 rgb(255 255 255 / 0.3), 0 -24px 70px -10px rgb(10 3 5 / 0.7);
  transform: scale(calc(1 - var(--cover, 0) * 0.06));
  transform-origin: 50% 0;
}
.world__panel::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: radial-gradient(1.4px 1.4px at 40px 60px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 180px 130px, #fff 50%, transparent 51%), radial-gradient(1.8px 1.8px at 250px 30px, var(--acc) 50%, transparent 51%), radial-gradient(1px 1px at 110px 220px, #fff 50%, transparent 51%);
  background-size: 300px 260px;
}
.world__panel::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: #0c0406; opacity: calc(var(--cover, 0) * 0.7); }
.world:nth-of-type(even) .world__art { order: 2; }

.world__no {
  position: absolute; right: clamp(10px, 3vw, 44px); top: clamp(0px, 1vw, 16px);
  font: 900 clamp(6.5rem, 25vw, 23rem)/0.9 var(--display); letter-spacing: -0.06em;
  color: transparent; -webkit-text-stroke: 1.5px rgb(255 255 255 / 0.16);
  pointer-events: none; user-select: none;
}
.world:nth-of-type(even) .world__no { right: auto; left: clamp(10px, 3vw, 44px); }

.world__art { position: relative; z-index: 1; justify-self: center; width: min(100%, 52svh, 470px); cursor: pointer; --ray: var(--acc); --ray2: #fff; translate: calc(var(--wx, 0) * 22px) calc(var(--wy, 0) * 14px); rotate: calc(var(--wx, 0) * 5deg + var(--cover, 0) * -14deg); scale: calc(1 - var(--cover, 0) * 0.2); transition: translate 0.4s ease-out, rotate 0.4s ease-out; }
.world__art::before { content: ''; position: absolute; inset: -18%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--acc) 55%, transparent), transparent 70%); animation: breathe 6s ease-in-out infinite; }
.world__art .mascot, .world__art .choco__death { position: relative; }

.world__text { position: relative; z-index: 1; }
.world__text .eyebrow { color: var(--acc); }
.world__text h3 { margin-top: 16px; font: 800 clamp(2.1rem, 6.6vw, 5rem)/0.96 var(--display); letter-spacing: -0.04em; text-wrap: balance; }
.world__line { margin-top: clamp(14px, 1.8vw, 24px); max-width: 44ch; font-size: clamp(1rem, 1.5vw, 1.22rem); color: color-mix(in srgb, var(--text) 86%, var(--acc)); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: clamp(16px, 2vw, 26px) 0 clamp(20px, 2.6vw, 34px); }
.tags li { padding: 7px 12px; border-radius: 999px; font: 500 0.72rem/1 var(--mono); letter-spacing: 0.06em; color: var(--acc); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--acc) 45%, transparent); background: rgb(0 0 0 / 0.18); }

/* ---------- moons ---------- */

.moons { max-width: 1240px; margin: 0 auto; padding: clamp(40px, 8vw, 110px) var(--pad); }
.moons__list { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 28px); margin-top: 30px; }
.moon { display: flex; gap: 14px; align-items: flex-start; }
.moon:nth-child(2) { --d: 80ms; } .moon:nth-child(3) { --d: 160ms; } .moon:nth-child(4) { --d: 240ms; }
.moon i { flex: none; width: 34px; height: 34px; margin-top: 2px; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #fffbe0, #ffcf7a 45%, #e08a2a); box-shadow: 0 0 22px rgb(255 207 122 / 0.5), inset -5px -6px 10px rgb(38 24 92 / 0.35); animation: drift 6s ease-in-out infinite; }
.moon:nth-child(2) i { background: radial-gradient(circle at 32% 28%, #fff6de, #ccbaff 45%, #785cee); box-shadow: 0 0 22px rgb(167 139 250 / 0.55), inset -5px -6px 10px rgb(38 24 92 / 0.35); animation-delay: -2s; }
.moon:nth-child(3) i { background: radial-gradient(circle at 32% 28%, #fff, #ffb8d6 45%, #e0569e); box-shadow: 0 0 22px rgb(255 128 188 / 0.5), inset -5px -6px 10px rgb(92 24 60 / 0.35); animation-delay: -3.4s; }
.moon--egg i { background: none; border: 2px dashed rgb(255 194 204 / 0.7); box-shadow: none; animation: spin 14s linear infinite; }
.moon h3 { font: 700 1rem/1.2 var(--display); letter-spacing: -0.02em; }
.moon h3 a { text-decoration: none; background: linear-gradient(var(--pink), var(--pink)) 0 100% / 100% 2px no-repeat; transition: background-size 0.3s; }
.moon h3 a:hover { background-size: 100% 100%; color: var(--ink); }
.moon p { margin-top: 6px; font-size: 0.95rem; color: var(--mute); }
@keyframes spin { to { rotate: 360deg; } }

/* ---------- the cast: holo cards ---------- */

.cast { position: relative; padding: clamp(60px, 10vw, 140px) 0 clamp(50px, 8vw, 110px); text-align: center; overflow: hidden; }
.cast .title { margin: 20px auto 0; padding-inline: var(--pad); }
.cast__hint { margin: 18px auto 0; padding-inline: var(--pad); color: var(--mute); }

.cards { display: flex; justify-content: center; gap: clamp(14px, 2vw, 30px); margin-top: clamp(34px, 5vw, 64px); padding: 30px var(--pad) 50px; }
.card {
  --h: 262; --rx: 0deg; --ry: 0deg; --mx: 50; --my: 30; --lit: 0.35;
  flex: none; width: min(74vw, 262px); aspect-ratio: 5 / 7.5;
  perspective: 900px;
  text-align: left;
  cursor: pointer;
  user-select: none; -webkit-user-select: none;
  rotate: var(--fan, 0deg);
  transition: rotate 0.5s var(--spring), translate 0.5s var(--spring);
  outline-offset: 10px;
}
.card:nth-child(1) { --fan: -5deg; translate: 0 10px; }
.card:nth-child(2) { --fan: -1.5deg; }
.card:nth-child(3) { --fan: 2deg; translate: 0 4px; }
.card:nth-child(4) { --fan: 4deg; translate: 0 8px; }
.card:nth-child(5) { --fan: 6.5deg; translate: 0 18px; }
.card.is-held { rotate: 0deg; translate: 0 -10px; z-index: 2; }
.card__in {
  position: relative; height: 100%; display: flex; flex-direction: column;
  padding: 14px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(165deg, hsl(var(--h) 62% 26%), hsl(calc(var(--h) + 28) 58% 11%));
  box-shadow: inset 0 0 0 1.5px hsl(var(--h) 90% 84% / 0.65), inset 0 0 0 5px hsl(var(--h) 60% 12% / 0.6), 0 30px 50px -24px #000, 0 0 60px -18px hsl(var(--h) 90% 65% / 0.7);
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.5s var(--out);
  will-change: transform;
}
.card.is-held .card__in { transition: transform 0.08s linear; }
.card__in.is-spin { animation: card-spin 0.9s var(--out); }
@keyframes card-spin { 0% { transform: rotateY(0) scale(1); } 50% { transform: rotateY(180deg) scale(1.08); } 100% { transform: rotateY(360deg) scale(1); } }
.card__top { display: flex; align-items: baseline; justify-content: space-between; padding: 2px 4px 10px; }
.card__top h3 { font: 800 1.25rem/1 var(--display); letter-spacing: -0.03em; }
.card__top span { font: 500 0.66rem/1 var(--mono); letter-spacing: 0.12em; color: hsl(var(--h) 90% 86%); }
.card__art {
  position: relative; flex: 1 1 0; min-height: 0; display: grid; place-items: center; border-radius: 14px; overflow: hidden;
  background:
    radial-gradient(1.2px 1.2px at 30px 22px, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90px 70px, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 140px 30px, #ffe8a0 50%, transparent 51%),
    radial-gradient(120% 100% at 50% 100%, hsl(var(--h) 80% 46%), hsl(calc(var(--h) - 20) 70% 16%) 75%);
  background-size: 160px 110px, 160px 110px, 160px 110px, auto;
  box-shadow: inset 0 0 0 1.5px hsl(var(--h) 90% 86% / 0.5), inset 0 -30px 40px -20px hsl(var(--h) 90% 70% / 0.5);
}
.card__art > span[data-choco] { width: 88%; }
.card__art > span { display: block; width: 78%; transition: transform 0.4s var(--spring); }
.card.is-held .card__art > span { transform: scale(1.06); }
.egg { display: grid !important; place-items: center; font-size: 4.4rem; color: var(--gold); text-shadow: 0 0 30px var(--gold); animation: egg 2.6s ease-in-out infinite; aspect-ratio: 1; }
@keyframes egg { 0%, 100% { rotate: -6deg; scale: 1; } 50% { rotate: 8deg; scale: 1.14; } }
.card__type { margin-top: 12px; padding: 0 4px; font: 600 0.66rem/1.2 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: hsl(var(--h) 90% 86%); }
.card__flavor { margin-top: 8px; padding: 0 4px; font-size: 0.86rem; line-height: 1.38; color: rgb(255 255 255 / 0.84); }
.card__stats { display: flex; gap: 6px; flex-wrap: wrap; margin-top: auto; padding: 10px 4px 2px; font: 500 0.64rem/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.card__stats span { padding: 6px 8px; border-radius: 8px; background: rgb(0 0 0 / 0.28); color: rgb(255 255 255 / 0.75); }
.card__stats b { color: #fff; }
.card__stats .card__mood { margin-left: auto; color: var(--ink); background: linear-gradient(135deg, var(--cream), hsl(var(--h) 100% 84%)); font-weight: 700; }
.card__foil, .card__glare, .card__art::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
.card__art { z-index: 1; }
.card__art > span { position: relative; }
.card__glare { z-index: 2; }
.card__foil, .card__art::before {
  background:
    repeating-linear-gradient(calc(110deg + var(--mx) * 0.5deg), hsl(340 100% 70% / 0.9) 0%, hsl(50 100% 70% / 0.9) 6%, hsl(150 100% 65% / 0.9) 12%, hsl(195 100% 65% / 0.9) 18%, hsl(265 100% 75% / 0.9) 24%, hsl(340 100% 70% / 0.9) 30%);
  background-size: 260% 260%;
  background-position: calc(var(--mx) * 1%) calc(var(--my) * 1%);
  mix-blend-mode: color-dodge;
  opacity: calc(var(--lit) * 0.62);
  -webkit-mask: linear-gradient(115deg, #000 0%, rgb(0 0 0 / 0.25) 35%, #000 55%, rgb(0 0 0 / 0.3) 78%, #000 100%); mask: linear-gradient(115deg, #000 0%, rgb(0 0 0 / 0.25) 35%, #000 55%, rgb(0 0 0 / 0.3) 78%, #000 100%);
}
.card__glare {
  background: radial-gradient(circle at calc(var(--mx) * 1%) calc(var(--my) * 1%), rgb(255 255 255 / 0.75), rgb(255 255 255 / 0.12) 28%, transparent 55%);
  mix-blend-mode: overlay;
  opacity: calc(0.35 + var(--lit) * 0.65);
}

/* ---------- say hi ---------- */

.hi { position: relative; overflow: hidden; padding: clamp(70px, 11vw, 150px) var(--pad) 0; text-align: center; }
.hi__big {
  margin-top: 18px;
  font: 900 clamp(4.4rem, 23vw, 20rem)/0.84 var(--display); letter-spacing: -0.055em;
  background: linear-gradient(100deg, #fffaf0 0%, #ffc2cc 18%, #ff5c7f 36%, #ff8a5c 52%, var(--gold) 70%, #fffaf0 100%) 0 0 / 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
  padding-bottom: 0.1em;
}
.hi__dot { display: inline-block; -webkit-text-fill-color: var(--gold); animation: dot 2.4s var(--spring) infinite; }
@keyframes dot { 0%, 70%, 100% { translate: 0 0; } 82% { translate: 0 -0.22em; } }
.hi__line { max-width: 40ch; margin: clamp(10px, 2vw, 24px) auto 0; font-size: clamp(1.02rem, 1.8vw, 1.3rem); color: var(--text); text-wrap: balance; }
.hi__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: clamp(22px, 3vw, 36px); }
.hi__stage { position: relative; z-index: 1; width: min(72vw, 420px); margin: clamp(34px, 5vw, 60px) auto 0; margin-bottom: calc(min(72vw, 420px) * -0.3); --ray: var(--pink); --ray2: var(--gold); cursor: pointer; }
.hi__stage .rays { inset: -60%; }
.hi__peek { position: relative; }
.hi__small { margin-top: clamp(26px, 4vw, 44px); font: 500 0.66rem/1.5 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream); opacity: 0.85; text-shadow: 0 1px 10px rgb(43 11 18 / 0.8); }

/* ---------- extra flash: progress, pointer glow, sticker, light on the worlds' edges, kinetic names ---------- */

@property --a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

.progress {
  position: fixed; z-index: 70; top: 0; left: 0; right: 0; height: 3px; pointer-events: none;
  transform: scaleX(var(--p, 0)); transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--cyan), var(--lilac), var(--pink), var(--gold));
  box-shadow: 0 0 14px var(--pink), 0 0 4px #fff;
}

.glow {
  position: fixed; z-index: 45; left: -280px; top: -280px; width: 560px; height: 560px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(255 150 170 / 0.2), rgb(255 207 122 / 0.07) 50%, transparent);
  mix-blend-mode: screen; opacity: 0;
  transition: transform 0.22s ease-out, opacity 0.6s;
}
.glow.on { opacity: 1; }

.sticker {
  position: absolute; z-index: 4; right: var(--pad); top: clamp(-70px, -5vw, -36px);
  width: clamp(104px, 15vw, 190px); aspect-ratio: 1; rotate: 10deg;
  border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--pink) 55%, var(--lilac));
  box-shadow: 0 14px 40px -10px var(--pink), inset 0 0 0 2px rgb(255 255 255 / 0.6);
  overflow: hidden; /* the spinning ring of text is a square: keep its corners inside the circle */
}
.sticker svg { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.sticker text { font: 800 15.5px var(--display); letter-spacing: 0.02em; fill: var(--ink); }
.sticker > span { position: absolute; inset: 21% 17% 19%; display: block; }

.world__edge {
  position: absolute; inset: 0; z-index: 2; border-radius: inherit; padding: 2px; pointer-events: none; opacity: 0;
  background: conic-gradient(from var(--a), transparent 0 55%, var(--acc) 72%, #fff 80%, var(--acc) 88%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity 0.6s;
}
.world.is-on .world__edge { opacity: 1; animation: turn 5s linear infinite; }
@keyframes turn { to { --a: 360deg; } }

.world__marquee {
  position: absolute; left: 0; right: 0; bottom: clamp(-10px, -0.6vw, -4px); z-index: 0; overflow: hidden; pointer-events: none; user-select: none;
}
.world__marquee span {
  display: block; width: max-content; padding-right: 0.3em; white-space: nowrap;
  font: 900 clamp(4.2rem, 13vw, 12rem)/0.9 var(--display); letter-spacing: -0.04em; text-transform: uppercase;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--acc) 34%, transparent);
  animation: slide-half 28s linear infinite;
}
.world:nth-of-type(even) .world__marquee span { animation-direction: reverse; }
.world:not(.is-on) .world__marquee span, .world:not(.is-on) .world__art::after { animation-play-state: paused; }
@keyframes slide-half { to { transform: translateX(-50%); } }

/* a world's contents arrive when it does */
.js .world__text > *, .js .world__no { opacity: 0; transform: translateY(34px); transition: opacity 0.8s var(--out), transform 0.9s var(--out); }
.js .world__art .mascot, .js .world__art .choco__bop img { opacity: 0; transform: scale(0.3) rotate(-30deg); transition: opacity 0.5s ease, transform 1s var(--spring); }
.js .world.is-in .world__text > *, .js .world.is-in .world__no { opacity: 1; transform: none; }
.js .world.is-in .world__art .mascot, .js .world.is-in .world__art .choco__bop img { opacity: 1; transform: none; }
.world.is-in .world__text > :nth-child(1) { transition-delay: 0.1s; }
.world.is-in .world__text > :nth-child(2) { transition-delay: 0.18s; }
.world.is-in .world__text > :nth-child(3) { transition-delay: 0.26s; }
.world.is-in .world__text > :nth-child(4) { transition-delay: 0.34s; }
.world.is-in .world__text > :nth-child(5) { transition-delay: 0.42s; }
.world__text .btn { --acc: inherit; }
.world.is-in .world__art .mascot { transition-delay: 0.05s; }

.btn--big { background: linear-gradient(100deg, var(--cream), var(--lilac) 20%, var(--cyan) 40%, var(--pink) 60%, var(--gold) 80%, var(--cream)) 0 0 / 200% 100%; animation: shimmer 4s linear infinite; box-shadow: 0 0.6em 2.4em -0.4em var(--pink), inset 0 0 0 2px rgb(255 255 255 / 0.7); }

/* ---------- small screens ---------- */

@media (max-width: 899px), (hover: none) {
  .cards { justify-content: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--pad), calc(50vw - 131px)); gap: 18px; }
  .cards::-webkit-scrollbar { display: none; }
  .card { scroll-snap-align: center; }
}
@media (min-width: 900px) and (hover: hover) {
  .cards { gap: 0; }
  .card + .card { margin-left: calc((min(100vw - 2 * var(--pad), 1480px) - 262px) / 4 - 262px); }
  .card:hover, .card:focus-visible { z-index: 5; }
}

@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr; }
  .decks { grid-template-columns: 1fr; }
  .deck, .deck:nth-child(-n + 2), .deck:nth-last-child(-n + 2) { grid-column: auto; }
  .files { grid-template-columns: 1fr; }
  .job__stats { grid-template-columns: repeat(2, auto); }
  .stats { grid-template-columns: repeat(2, 1fr); row-gap: 26px; }
  .moons__list { grid-template-columns: repeat(2, 1fr); }
  .world__panel { grid-template-columns: 1fr; align-content: center; justify-items: start; padding-top: 74px; gap: clamp(10px, 3svh, 28px); }
  .world:nth-of-type(even) .world__art { order: 0; }
  .world__art { width: min(62%, 34svh); margin-left: 4%; }
  .world__no, .world:nth-of-type(even) .world__no { left: auto; right: 14px; top: 46px; }
  }
@media (max-width: 560px) {
  .br-s { display: inline; }
  .nav__links a:not(.nav__hi) { padding-inline: 10px; }
  .hero { padding-bottom: 80px; }
  .hero__title br { display: none; }
  .hero__title { max-width: 17ch; }
  .floater--peeky { left: 2%; top: 11%; }
  .floater--chatty { right: 2%; top: 13%; }
  .floater--kyu { left: auto; right: 3%; top: 44%; }
  .floater--gold { display: none; }
  .moons__list { grid-template-columns: 1fr; }
  .world__line { font-size: 0.98rem; }
}
@media (max-height: 640px) and (max-width: 860px) {
  .world__art { width: min(44%, 28svh); }
  .tags { display: none; }
  .world__line { margin-bottom: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: 0.01ms !important; }
  .tape__track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
  .about__say .w { opacity: 1; }
  .js .deck .chips li { opacity: 1; transform: none; }
  .job__stamp { opacity: 0.92; scale: 1; }
}
