/* ==========================================================================
   אביבו · styles
   ========================================================================== */

@property --hue { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --iris { syntax: '<length>'; inherits: false; initial-value: 0px; }

:root {
  --bg: #07020f;
  --ink: #fff6ff;
  --ink-2: rgba(255, 246, 255, .76);
  --ink-3: rgba(255, 246, 255, .52);
  --acid: #c6ff00;
  --pink: #ff2bd6;
  --cyan: #00f0ff;
  --violet: #7b2bff;
  --orange: #ff7a00;
  --glass: rgba(12, 4, 28, .58);
  --line: rgba(255, 255, 255, .14);
  --hue: 0;
  --h1: hsl(calc(var(--hue) + 310) 100% 63%);
  --h2: hsl(calc(var(--hue) + 185) 100% 56%);
  --h3: hsl(calc(var(--hue) + 75) 100% 56%);
  --font: 'Rubik', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --wet: 'Rubik Wet Paint', 'Rubik', Arial, sans-serif;
  --glitch: 'Rubik Glitch', 'Rubik', Arial, sans-serif;
  --mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --out: cubic-bezier(.16, 1, .3, 1);
  --io: cubic-bezier(.7, 0, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

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

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
html.portal-on { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { margin: 0; padding: 0; }
::selection { background: var(--acid); color: #0b0016; }
:focus-visible { outline: 3px solid var(--acid); outline-offset: 3px; border-radius: 12px; }

.skip {
  position: fixed; top: 10px; right: 10px; z-index: 200;
  padding: 10px 18px; border-radius: 999px;
  background: var(--acid); color: #0b0016; font-weight: 800; text-decoration: none;
  transform: translateY(-200%); transition: transform .3s var(--out);
}
.skip:focus { transform: none; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.noscript { position: relative; z-index: 5; text-align: center; padding: 20px; background: var(--acid); color: #0b0016; font-weight: 700; }

/* --------------------------------------------------------------------------
   background layers
   -------------------------------------------------------------------------- */
#gl {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%; display: block;
}
.fallback-bg { display: none; }
.no-gl #gl { display: none; }
.no-gl .fallback-bg {
  display: block; position: fixed; inset: -30%; z-index: 0;
  background: conic-gradient(from 0deg, #ff2bd6, #7b2bff, #00f0ff, #c6ff00, #ff7a00, #ff2bd6);
  filter: blur(90px) saturate(1.4); opacity: .5;
  animation: spin 40s linear infinite;
}
.grain {
  position: fixed; inset: -120px; z-index: 1; pointer-events: none;
  opacity: .08; mix-blend-mode: overlay;
  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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .8s steps(3) infinite;
}
#trail {
  position: fixed; inset: 0; z-index: 60;
  width: 100%; height: 100%; pointer-events: none;
}
main, .foot { position: relative; z-index: 2; }

/* --------------------------------------------------------------------------
   cursor
   -------------------------------------------------------------------------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 70;
  width: 38px; height: 38px; margin: -19px 0 0 -19px;
  border-radius: 50%; border: 1.5px solid #fff;
  mix-blend-mode: difference; pointer-events: none; opacity: 0;
  transition: width .4s var(--spring), height .4s var(--spring), margin .4s var(--spring), background-color .25s, opacity .3s;
  will-change: transform;
}
.cursor::after {
  content: ''; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: #fff;
}
.has-cursor .cursor { opacity: 1; }
.cursor.big { width: 86px; height: 86px; margin: -43px 0 0 -43px; background: #fff; }
.cursor.down { width: 24px; height: 24px; margin: -12px 0 0 -12px; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button { cursor: none; }
}

/* --------------------------------------------------------------------------
   intro
   -------------------------------------------------------------------------- */
.intro { display: none; }
.js .intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; text-align: center;
  background: #050010;
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1px));
  mask: radial-gradient(circle at 50% 50%, transparent var(--iris), #000 calc(var(--iris) + 1px));
  transition: --iris 1.25s var(--io);
  animation: introSafety .01s 6s forwards;
}
.js .intro.open { --iris: 110vmax; pointer-events: none; }
.intro-eye {
  position: relative; width: 124px; height: 124px; margin: 0 auto; border-radius: 50%;
  background: conic-gradient(from 0deg, #ff2bd6, #7b2bff, #00f0ff, #c6ff00, #ff7a00, #ff2bd6);
  box-shadow: 0 0 60px rgba(255, 43, 214, .6), 0 0 140px rgba(0, 240, 255, .35);
  animation: spin 1.3s linear infinite;
}
.intro-eye::after {
  content: ''; position: absolute; inset: 28%; border-radius: 50%; background: #050010;
  animation: pupil 1.1s ease-in-out infinite alternate;
}
.intro-text { margin: 1.5rem 0 0; font-size: 1rem; font-weight: 500; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   header
   -------------------------------------------------------------------------- */
.bar {
  position: fixed; z-index: 50;
  top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px;
  max-width: 1180px; margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 7px 7px 7px 7px; padding-inline-start: 18px;
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(16px) saturate(1.7);
  backdrop-filter: blur(16px) saturate(1.7);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.bar::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from calc(var(--hue) * 1deg), var(--pink), var(--cyan), var(--acid), var(--orange), var(--violet), var(--pink));
  -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);
  opacity: .75;
}
.logo { display: inline-flex; align-items: center; gap: .4em; text-decoration: none; font-weight: 900; font-size: 1.4rem; line-height: 1; }
.logo-star { display: inline-block; color: var(--acid); font-size: 1.15em; animation: spin 6s linear infinite; text-shadow: 0 0 14px rgba(198, 255, 0, .7); }
.logo-word { background: linear-gradient(90deg, var(--h1), var(--h2), var(--h3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 2px; }
.nav a {
  padding: .5em 1em; border-radius: 999px; text-decoration: none;
  font-weight: 500; font-size: .95rem; color: var(--ink-2);
  transition: color .2s, background-color .25s, transform .3s var(--spring);
}
.nav a:hover { color: #0b0016; background: var(--acid); transform: rotate(-3deg) scale(1.06); }
.sound {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .55em 1em; border-radius: 999px; border: 1px solid var(--line);
  font-size: .85rem; font-weight: 700; color: var(--ink-2);
  transition: background-color .25s, color .25s;
}
.sound:hover { border-color: rgba(255, 255, 255, .4); color: var(--ink); }
.sound[aria-pressed="true"] { color: #0b0016; background: var(--acid); border-color: transparent; }
.sound-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.sound-bars i { width: 3px; height: 28%; border-radius: 2px; background: currentColor; }
.sound[aria-pressed="true"] .sound-bars i { animation: eq .8s ease-in-out infinite; }
.sound-bars i:nth-child(2) { animation-delay: -.2s !important; }
.sound-bars i:nth-child(3) { animation-delay: -.45s !important; }
.sound-bars i:nth-child(4) { animation-delay: -.6s !important; }

/* --------------------------------------------------------------------------
   hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 118px 16px 170px;
  overflow: clip;
  text-align: center;
}
.hero-kicker {
  margin: 0 0 clamp(.6rem, 2vh, 1.4rem);
  font-size: .86rem; font-weight: 700; letter-spacing: .08em;
  color: var(--acid); text-shadow: 0 0 14px rgba(198, 255, 0, .6);
}
.hero-stage { width: 100%; display: flex; justify-content: center; perspective: 1100px; }
.hero-scene { position: relative; transform-style: preserve-3d; will-change: transform; }

.title {
  position: relative; margin: 0;
  display: flex; justify-content: center;
  font-weight: 900; font-size: clamp(5.4rem, 24vw, 18.5rem); line-height: .86;
  transform-style: preserve-3d;
  user-select: none; -webkit-user-select: none;
}
.js:not(.ready) .title, .js:not(.ready) .orbit { visibility: hidden; }
.L { position: relative; display: block; transform-style: preserve-3d; cursor: pointer; }
.Lf {
  position: relative; display: block; transform-style: preserve-3d;
  animation: float 7s ease-in-out infinite; animation-delay: calc(var(--i) * -1.35s);
}
.face, .side { display: block; }
.face {
  position: relative; transform: translateZ(1px);
  background: linear-gradient(100deg, #fff 6%, var(--h1) 26%, #fff 42%, var(--h2) 58%, var(--h3) 76%, #fff 94%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 5.5s linear infinite;
}
.side {
  position: absolute; inset: 0; pointer-events: none;
  transform: translateZ(calc(var(--k) * -.5em / var(--n)));
  color: hsl(calc(var(--hue) + 310 - var(--k) * 170 / var(--n)) 100% calc(62% - var(--k) * 38% / var(--n)));
}
.side.back { color: #10001f; text-shadow: 0 0 .25em hsl(calc(var(--hue) + 190) 100% 55% / .6); }

.ready .L { animation: assemble 1.5s var(--out) both; animation-delay: calc(.08s + var(--i) * .09s); }
.built .L { animation: none; }
.built .L.flip { animation: flip 1.1s var(--out); }
.L.jolt { translate: var(--jx, 0) var(--jy, 0); }

.orbit {
  --os: clamp(50px, 5.8vw, 80px);
  position: absolute; left: 50%; top: 50%; width: 0; height: 0;
  transform-style: preserve-3d;
}
.orb {
  position: absolute; left: calc(var(--os) / -2); top: calc(var(--os) / -2);
  width: var(--os); height: var(--os);
  will-change: transform;
}
.orb-face {
  display: grid; place-items: center; width: 100%; height: 100%;
  border-radius: 30%; font-size: calc(var(--os) * .48); line-height: 1;
  background:
    radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .6), transparent 45%),
    linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3), inset 0 -8px 16px rgba(0, 0, 0, .25), 0 12px 30px -8px var(--c1), 0 0 40px -12px var(--c2);
  transition: transform .45s var(--spring);
}
.orb:hover .orb-face { transform: scale(1.2) rotate(-10deg); }
.orb-name {
  position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; padding: .25em .75em; border-radius: 999px;
  font-size: .8rem; font-weight: 700; background: rgba(7, 2, 15, .8);
  opacity: 0; transition: opacity .25s; pointer-events: none;
}
.orb:hover .orb-name { opacity: 1; }

.subtitle {
  margin: .3em 0 0;
  font-family: var(--wet); font-weight: 400;
  font-size: clamp(2.1rem, 7vw, 5.2rem); line-height: 1.05;
  color: var(--h3);
  filter: url(#melt) drop-shadow(0 0 22px hsl(calc(var(--hue) + 75) 100% 50% / .5));
}
.ready .subtitle { animation: drip 1.3s .55s var(--out) both; }
.lede {
  margin: 1.1rem auto 0; max-width: 34ch;
  padding: .75em 1.25em; border-radius: 22px;
  font-size: clamp(1rem, 1.45vw, 1.18rem); color: var(--ink-2);
  background: rgba(7, 2, 15, .45);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .09);
}
.lede strong { color: var(--ink); }
.ready .lede { animation: rise 1s .8s var(--out) both; }

.cue {
  position: absolute; bottom: clamp(18px, 4vh, 40px); left: 50%;
  width: 116px; height: 116px; margin-left: -58px;
  display: grid; place-items: center; border-radius: 50%; text-decoration: none;
}
.cue-ring { position: absolute; inset: 0; animation: spin 16s linear infinite; }
.cue-ring span {
  position: absolute; left: 50%; top: 4px; width: 1em; height: 54px; margin-left: -.5em;
  transform-origin: 50% 100%;
  transform: rotate(calc(var(--i) * -360deg / var(--n)));
  font: 700 11px/1 var(--font); text-align: center; color: var(--ink);
}
.cue-arrow {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--acid); color: #0b0016; font-size: 1.5rem; font-weight: 900;
  box-shadow: 0 0 34px rgba(198, 255, 0, .55);
  animation: bob 1.6s ease-in-out infinite;
  transition: transform .4s var(--spring);
}
.cue:hover .cue-arrow { transform: scale(1.15); }

.hud5 {
  position: absolute; bottom: 30px; right: clamp(16px, 3vw, 40px);
  display: flex; flex-direction: column; gap: 1px;
  font: 400 .7rem/1.45 var(--mono); color: var(--ink-3); text-align: left;
  pointer-events: none;
}
.hud5 b { font-weight: 400; color: var(--acid); }
.hud5-label { font-weight: 700; color: var(--ink); letter-spacing: .25em; margin-bottom: 2px; }

/* --------------------------------------------------------------------------
   bands
   -------------------------------------------------------------------------- */
.bands {
  position: relative; z-index: 3;
  height: clamp(170px, 19vw, 250px); margin-block: -40px -10px;
  overflow: clip; pointer-events: none;
}
.band {
  position: absolute; left: -6%; right: -6%; top: 50%;
  padding: .32em 0; overflow: hidden; white-space: nowrap;
  font-weight: 900; font-size: clamp(1.45rem, 3.8vw, 3.1rem); line-height: 1.15;
  box-shadow: 0 22px 50px -12px rgba(0, 0, 0, .65);
}
.band-a {
  background: var(--acid); color: #0b0016;
  transform: translateY(-78%) rotate(-3.4deg) skewX(calc(var(--v, 0) * 1deg));
}
.band-b {
  background: linear-gradient(90deg, var(--pink), var(--violet) 50%, var(--cyan));
  color: #fff;
  transform: translateY(-6%) rotate(2.6deg) skewX(calc(var(--v, 0) * -1deg));
}
.band-track { display: inline-flex; width: max-content; animation: marquee 46s linear infinite; }
.band-b .band-track { animation-direction: reverse; animation-duration: 58s; }
.band-track span { display: inline-flex; align-items: center; gap: .5em; padding-inline-end: .5em; }
.band-track i { font-style: normal; display: inline-block; animation: spin 5s linear infinite; }

/* --------------------------------------------------------------------------
   wormhole (projects)
   -------------------------------------------------------------------------- */
.wormhole { position: relative; height: calc((var(--count, 6) + 1.6) * 100vh); }
.wh-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.wh-head {
  position: absolute; z-index: 0; top: clamp(78px, 11vh, 104px);
  right: clamp(16px, 5vw, 64px); left: clamp(16px, 5vw, 64px);
  pointer-events: none;
}
.kicker {
  display: inline-flex; align-items: center; gap: .7em; margin: 0;
  font-size: .86rem; font-weight: 700; letter-spacing: .04em; color: var(--acid);
}
.kicker::before { content: ''; width: 28px; height: 2px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.wh-title {
  margin: .2em 0 0;
  font-size: clamp(2rem, 5.2vw, 4.3rem); font-weight: 900; line-height: .95; letter-spacing: -.02em;
}
.wh-title span { display: inline-block; font-family: var(--wet); font-weight: 400; color: var(--h1); filter: url(#melt-still); }

.wh-stage { position: absolute; inset: 0; z-index: 1; perspective: 900px; perspective-origin: 50% 55%; }
.wh-world { position: absolute; left: 50%; top: 55%; width: 0; height: 0; transform-style: preserve-3d; }

.ring {
  position: absolute; left: 0; top: 0;
  width: 128vmin; height: 84vmin; border-radius: 44%;
  border: 2px solid hsl(calc(var(--hue) + var(--k) * 47) 100% 63%);
  box-shadow: 0 0 26px hsl(calc(var(--hue) + var(--k) * 47) 100% 63% / .35), inset 0 0 26px hsl(calc(var(--hue) + var(--k) * 47) 100% 63% / .25);
  pointer-events: none; opacity: 0;
  will-change: transform, opacity;
}

.card { position: absolute; left: 0; top: 0; width: min(390px, 84vw); will-change: transform, opacity; }
.card-in {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 9px;
  padding: 22px 22px 20px; border-radius: 30px;
  background: linear-gradient(165deg, rgb(30, 11, 60), rgb(10, 3, 22));
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--c1) 70%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .04);
  transform: perspective(900px) rotateX(calc(var(--ty, 0) * 1deg)) rotateY(calc(var(--tx, 0) * 1deg));
  transition: transform .5s var(--out), border-color .3s;
}
.card.is-focus .card-in { border-color: rgba(255, 255, 255, .42); }
.card-in::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(90% 55% at 70% 0%, color-mix(in srgb, var(--c1) 50%, transparent), transparent 72%);
}
.card-foil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: .1; mix-blend-mode: screen;
  background:
    radial-gradient(circle at calc(var(--mx, .5) * 100%) calc(var(--my, .3) * 100%), rgba(255, 255, 255, .6), transparent 42%),
    repeating-linear-gradient(115deg,
      hsl(calc(var(--hue) + 0) 100% 60%) 0%, hsl(calc(var(--hue) + 90) 100% 60%) 7%,
      hsl(calc(var(--hue) + 180) 100% 60%) 14%, hsl(calc(var(--hue) + 270) 100% 60%) 21%,
      hsl(calc(var(--hue) + 360) 100% 60%) 28%);
  background-size: 100% 100%, 220% 220%;
  background-position: 0 0, calc(var(--mx, .5) * 100%) calc(var(--my, .5) * 100%);
  transition: opacity .35s;
}
.card:hover .card-foil { opacity: .2; }
.card-num {
  position: absolute; z-index: -1; top: -22px; left: 8px; pointer-events: none;
  font-size: 8rem; font-weight: 900; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .15);
}
.card-top { display: flex; align-items: center; justify-content: space-between; }
.chip {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .32em .85em; border-radius: 999px;
  font-size: .78rem; font-weight: 700;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
}
.chip::before {
  content: ''; width: 7px; height: 7px; border-radius: 50%;
  background: var(--dot, var(--acid)); box-shadow: 0 0 10px var(--dot, var(--acid));
  animation: pulse 1.6s ease-in-out infinite;
}
.chip-live { --dot: var(--acid); }
.chip-beta { --dot: var(--cyan); }
.chip-building { --dot: var(--orange); }
.chip-lab { --dot: var(--violet); }
.chip-secret { --dot: var(--pink); }
.card-year { font-family: var(--mono); font-size: .78rem; color: var(--ink-3); }
.card-link {
  display: inline-flex; align-items: center; gap: .35em;
  padding: .32em .85em; border-radius: 999px; text-decoration: none;
  font-size: .8rem; font-weight: 800;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22);
  transition: background .25s, color .25s, transform .3s var(--spring);
}
.card-link:hover, .card-link:focus-visible { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #0b0016; border-color: transparent; transform: scale(1.06); }
.card-icon { position: relative; width: 86px; height: 86px; display: grid; place-items: center; margin: 4px 0 2px; }
.card-blob {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 0 50px -8px var(--c1);
  animation: morph 9s ease-in-out infinite;
}
.card-emoji { position: relative; font-size: 44px; line-height: 1; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, .35)); }
/* a project's real logo, sized by the font-size of whatever holds it (orb, card, panel, portal) */
.logo-img {
  display: block; width: 1.3em; height: 1.3em; object-fit: cover; border-radius: 23%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .28), 0 6px 18px rgba(0, 0, 0, .4);
  -webkit-user-drag: none; user-select: none;
}
.card-emoji:has(.logo-img), .pt-emoji:has(.logo-img) { filter: none; }
.card-name {
  margin: 4px 0 0;
  font-size: clamp(2.3rem, 8.5vw, 3.2rem); font-weight: 900; line-height: .95; letter-spacing: -.02em;
  text-shadow: -1px 1px 0 var(--c1), -2px 2px 0 var(--c1), -3px 3px 0 var(--c2), -4px 4px 0 var(--c2), -6px 9px 18px rgba(0, 0, 0, .5);
}
.card-latin { margin: 0; font-family: var(--mono); font-size: .8rem; color: var(--ink-3); text-align: right; }
.card-tag { margin: 2px 0 0; min-height: 2.8em; font-size: 1.04rem; line-height: 1.4; color: var(--ink-2); }
.card-plat { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.card-plat li { padding: .25em .7em; border-radius: 8px; font-family: var(--mono); font-size: .72rem; background: rgba(255, 255, 255, .07); color: var(--ink-2); }
.card-go {
  margin-top: 8px; display: flex; align-items: center; justify-content: space-between;
  padding: .85em 1.2em; border-radius: 18px; font-weight: 800;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .18);
  transition: background .3s, color .3s, border-color .3s;
}
.card-go span { display: inline-block; transition: transform .35s var(--spring); }
.card:hover .card-go, .card-go:focus-visible { background: linear-gradient(135deg, var(--c1), var(--c2)); color: #0b0016; border-color: transparent; }
.card:hover .card-go span { transform: translateX(-7px); }
.mystery .card-name { font-family: var(--glitch); font-weight: 400; letter-spacing: .02em; }
.mystery .card-emoji { animation: spin 3s linear infinite; }
.mystery .card-in {
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 2px, transparent 2px 4px),
    linear-gradient(165deg, rgb(30, 11, 60), rgb(10, 3, 22));
}

.wh-hud {
  position: absolute; z-index: 3; left: 50%; bottom: max(18px, env(safe-area-inset-bottom));
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px;
  padding: 8px 8px 8px 16px; padding-inline-start: 18px; border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  font-family: var(--mono); font-size: .78rem; white-space: nowrap;
}
.wh-count { color: var(--ink-3); }
.wh-count b { color: var(--acid); font-size: 1.1rem; }
.wh-progress { display: block; width: clamp(70px, 14vw, 200px); height: 4px; border-radius: 4px; overflow: hidden; background: rgba(255, 255, 255, .15); }
.wh-progress i { display: block; height: 100%; width: calc(var(--p, 0) * 100%); background: linear-gradient(270deg, var(--h1), var(--h2), var(--h3)); }
.wh-now { min-width: 6.5em; font-family: var(--font); font-weight: 800; font-size: .95rem; }
.wh-flat {
  padding: .45em .95em; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font); font-weight: 700; font-size: .8rem; color: var(--ink-2);
  transition: background-color .25s, color .25s;
}
.wh-flat:hover { background: #fff; color: #0b0016; }
/* the guided tour through the house (only when the 3D house is running) */
.wh-tour { display: none; align-items: center; gap: 4px; }
.castle:not(.flat) .wh-tour { display: inline-flex; }
.wh-tour button {
  padding: .45em .8em; border-radius: 999px; border: 1px solid var(--line);
  font-family: var(--font); font-weight: 700; font-size: .8rem; color: var(--ink);
  transition: background-color .25s, color .25s;
}
.wh-tour button:hover { background: #fff; color: #0b0016; }
.wh-tour .wht-play[aria-pressed="true"] { background: var(--acid); color: #0b0016; border-color: transparent; }
@media (max-width: 700px) {
  .castle:not(.flat) .wh-progress, .castle:not(.flat) .wh-count { display: none; }
  .wh-tour button { padding: .45em .62em; }
}

.wh-dots {
  position: absolute; z-index: 3; left: clamp(14px, 3vw, 36px); top: 50%; transform: translateY(-50%);
  list-style: none; display: flex; flex-direction: column; gap: 12px;
}
.wh-dots button {
  position: relative; display: block; width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .5);
  transition: transform .35s var(--spring), background .3s, box-shadow .3s;
}
.wh-dots button:hover { transform: scale(1.3); }
.wh-dots button.on { background: linear-gradient(135deg, var(--c1), var(--c2)); border-color: transparent; transform: scale(1.45); box-shadow: 0 0 14px var(--c1); }
.wh-dots button span {
  position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; padding: .2em .7em; border-radius: 999px;
  font-size: .78rem; font-weight: 700; background: rgba(7, 2, 15, .85);
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.wh-dots button:hover span, .wh-dots button:focus-visible span { opacity: 1; }

/* flat mode: a plain grid instead of the tunnel (and the default under reduced motion) */
.flat .wormhole { height: auto; }
.flat .wh-sticky {
  position: relative; height: auto; overflow: visible;
  display: flex; flex-direction: column;
  padding: clamp(110px, 14vh, 150px) clamp(16px, 5vw, 64px) 60px;
}
.flat .wh-head { position: static; }
.flat .wh-hud { order: 2; position: static; transform: none; align-self: flex-start; margin-top: 20px; padding: 6px; }
.flat .wh-count, .flat .wh-progress, .flat .wh-now, .flat .wh-dots, .flat .ring { display: none; }
.flat .wh-stage { order: 3; position: static; perspective: none; }
.flat .wh-world {
  position: static; width: auto; height: auto; margin-top: 28px;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 22px;
}
.flat .card { position: relative; width: auto; transform: none !important; opacity: 1 !important; visibility: visible !important; }

/* --------------------------------------------------------------------------
   castle mode (castle.js loaded): the 3D world replaces the 2D background
   -------------------------------------------------------------------------- */
#castle {
  position: fixed; inset: 0; z-index: 0;
  width: 100%; height: 100%; display: block;
  opacity: 0; transition: opacity 1.8s var(--out);
}
.castle #castle { opacity: 1; }
.castle .orbit { display: none; }
.castle .hero { justify-content: flex-start; padding-top: clamp(92px, 12vh, 124px); }
.castle .hero-kicker { margin-bottom: .4rem; }
.castle .title { font-size: clamp(4.2rem, 15vw, 12rem); }
.castle .subtitle { font-size: clamp(1.9rem, 5.4vw, 4.2rem); }
.castle .lede { margin-top: auto; }
@media (min-width: 900px) {
  .castle .hero { align-items: flex-start; text-align: right; padding-inline: clamp(28px, 6vw, 110px); }
  .castle .hero-stage { width: auto; justify-content: flex-start; }
  .castle .lede { margin-inline: 0; }
  .castle .cue { left: auto; right: clamp(28px, 6vw, 110px); margin-left: 0; bottom: clamp(18px, 3vh, 34px); }
  .castle .hud5 { right: auto; left: clamp(16px, 3vw, 40px); bottom: 84px; }
}
.castle:not(.flat) .wh-world { display: none; }
.castle:not(.flat) .wh-head { transition: opacity .6s; }

.clabels { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.clabel {
  position: absolute; left: 0; top: 0; opacity: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: .35em .9em; border-radius: 14px; white-space: nowrap;
  background: rgba(7, 2, 15, .62);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border: 1px solid color-mix(in srgb, var(--c1) 60%, transparent);
  box-shadow: 0 0 22px -6px var(--c1);
  will-change: transform, opacity;
}
.clabel b { font-weight: 800; font-size: .95rem; }
.clabel i { font-style: normal; font-size: .72rem; color: var(--ink-2); }

.wh-panel { display: none; }
.castle:not(.flat) .wh-panel {
  display: flex; flex-direction: column; gap: 10px;
  position: absolute; z-index: 3; top: 50%; right: clamp(16px, 5vw, 72px);
  width: min(380px, 38vw); padding: 22px 22px 20px; border-radius: 30px;
  background: linear-gradient(165deg, rgba(30, 11, 60, .72), rgba(10, 3, 22, .82));
  -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 40px 90px -30px color-mix(in srgb, var(--c1, #ff2bd6) 75%, transparent), inset 0 0 0 1px rgba(255, 255, 255, .05);
  opacity: 0; pointer-events: none;
  transform: translateY(-46%) translateX(-24px) scale(.97);
  transition: opacity .45s var(--out), transform .7s var(--out);
}
.castle:not(.flat) .wh-panel.show { opacity: 1; pointer-events: auto; transform: translateY(-50%); }
.whp-top { display: flex; align-items: center; justify-content: space-between; }
.whp-num { font-family: var(--mono); font-size: .85rem; color: var(--ink-3); }
.whp-head { display: flex; align-items: center; gap: 14px; }
.whp-emoji {
  flex: none; width: 64px; height: 64px; display: grid; place-items: center; font-size: 34px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 0 40px -8px var(--c1);
  animation: morph 9s ease-in-out infinite;
}
.whp-name {
  margin: 0; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 900; line-height: .95; letter-spacing: -.02em;
  text-shadow: -1px 1px 0 var(--c1), -2px 2px 0 var(--c1), -3px 3px 0 var(--c2), -4px 4px 0 var(--c2);
}
.wh-panel.mystery .whp-name { font-family: var(--glitch); font-weight: 400; }
.whp-latin { margin: 4px 0 0; font-family: var(--mono); font-size: .8rem; color: var(--ink-3); text-align: right; }
.whp-tag { margin: 0; font-size: 1.05rem; line-height: 1.4; color: var(--ink-2); }
.whp-actions { display: flex; gap: 8px; margin-top: 6px; }
.whp-go, .whp-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.15em; border-radius: 18px; font-weight: 800; text-decoration: none;
  transition: transform .3s var(--spring), background .3s, color .3s;
}
.whp-go { flex: 1; background: linear-gradient(135deg, var(--c1), var(--c2)); color: #0b0016; }
.whp-link { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); }
.whp-link[hidden] { display: none; }
.whp-go:hover, .whp-link:hover { transform: scale(1.04); }
.whp-link:hover { background: #fff; color: #0b0016; }

/* --------------------------------------------------------------------------
   about
   -------------------------------------------------------------------------- */
.about {
  position: relative; max-width: 1300px; margin: 0 auto;
  padding: clamp(110px, 18vh, 200px) clamp(16px, 5vw, 64px) clamp(60px, 10vh, 120px);
}
.manifesto {
  margin: 1.3rem 0 0;
  font-size: clamp(2rem, 5.3vw, 4.7rem); font-weight: 800; line-height: 1.13; letter-spacing: -.015em;
}
.w {
  position: relative; display: inline-block; transform-origin: 50% 70%;
  transform: translateY(calc(var(--p, 0) * -.14em)) rotate(calc(var(--p, 0) * var(--r, 0) * 1deg)) scale(calc(1 + var(--p, 0) * .17));
  transition: transform .3s var(--out);
}
.w.o { color: transparent; -webkit-text-stroke: 1.5px rgba(255, 246, 255, .9); }
.w::after {
  content: attr(data-t); position: absolute; inset: 0; pointer-events: none;
  -webkit-text-stroke: 0;
  background: linear-gradient(100deg, var(--h1), var(--h2), var(--h3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: var(--p, 0);
}
.stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 14px;
  margin-top: clamp(50px, 8vh, 90px);
}
.stat {
  position: relative; overflow: hidden;
  padding: 24px 22px; border-radius: 28px;
  background: rgba(10, 4, 24, .58);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  transition: transform .5s var(--spring), border-color .3s;
}
.stat:hover { transform: translateY(-6px) rotate(-1.5deg); border-color: rgba(255, 255, 255, .32); }
.stat b {
  display: block; font-size: clamp(3rem, 6vw, 4.5rem); font-weight: 900; line-height: 1; letter-spacing: -.02em;
  background: linear-gradient(120deg, var(--h1), var(--h2) 50%, var(--h3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: .55rem; color: var(--ink-2); font-weight: 500; }

/* --------------------------------------------------------------------------
   contact
   -------------------------------------------------------------------------- */
.contact {
  position: relative; min-height: 92vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(90px, 14vh, 160px) 16px; text-align: center;
}
.contact-title { margin: .35em 0 0; font-size: clamp(2.7rem, 9.5vw, 8.2rem); font-weight: 900; line-height: .98; letter-spacing: -.02em; }
.wet { display: inline-block; font-family: var(--wet); font-weight: 400; color: var(--h1); filter: url(#melt-still); }
.contact-text { max-width: 40ch; margin: 1.2rem auto 0; font-size: clamp(1.05rem, 1.6vw, 1.3rem); color: var(--ink-2); }
.pill { margin-top: 2.6rem; display: inline-flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.capsule {
  position: relative; display: flex; width: 220px; height: 84px;
  transform: rotate(-14deg);
  filter: drop-shadow(0 26px 30px rgba(0, 0, 0, .55)) drop-shadow(0 0 40px rgba(255, 43, 214, .4));
  animation: pillFloat 4s ease-in-out infinite;
}
.capsule i { flex: 1; height: 100%; transition: transform .6s var(--spring); }
.capsule i:first-child { border-radius: 0 42px 42px 0; background: linear-gradient(180deg, #ff7cea, #ff2bd6 45%, #a3008e); }
.capsule i:last-child { border-radius: 42px 0 0 42px; background: linear-gradient(180deg, #fff, #efe6ff 45%, #b3a1d6); }
.capsule::after {
  content: ''; position: absolute; top: 11px; left: 24px; right: 24px; height: 17px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, 0));
}
.pill:hover .capsule i:first-child { transform: translateX(6px) rotate(4deg); }
.pill:hover .capsule i:last-child { transform: translateX(-6px) rotate(-4deg); }
.pill.swallowed .capsule i:first-child { transform: translateX(46px) rotate(24deg); }
.pill.swallowed .capsule i:last-child { transform: translateX(-46px) rotate(-24deg); }
.pill-label {
  padding: .6em 1.4em; border-radius: 999px;
  font-weight: 800; font-size: 1.15rem;
  background: var(--acid); color: #0b0016; box-shadow: 0 0 34px rgba(198, 255, 0, .45);
  transition: transform .35s var(--spring);
}
.pill:hover .pill-label { transform: scale(1.06) rotate(-2deg); }
.contact-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 2rem; }
.contact-links[hidden] { display: none; }
.contact-links > * { animation: rise .7s var(--out) both; animation-delay: calc(var(--d, 0) * .08s); }
.contact-links .btn { --c1: var(--acid); --c2: var(--cyan); }

.btn {
  display: inline-flex; align-items: center; gap: .5em;
  padding: .9em 1.6em; border-radius: 999px; text-decoration: none; font-weight: 800;
  background: linear-gradient(135deg, var(--c1), var(--c2)); color: #0b0016;
  box-shadow: 0 12px 40px -10px var(--c1);
  transition: transform .35s var(--spring);
}
.btn:hover { transform: translateY(-3px) scale(1.04); }
.soon {
  display: inline-flex; margin: 0; padding: .8em 1.4em; border-radius: 999px;
  border: 1.5px dashed rgba(255, 255, 255, .38); color: var(--ink-2); font-weight: 600;
}

/* --------------------------------------------------------------------------
   footer
   -------------------------------------------------------------------------- */
.foot {
  max-width: 1300px; margin: 0 auto;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 28px clamp(16px, 5vw, 64px) 96px;
  border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: .9rem;
}
.foot a { color: var(--ink-2); text-underline-offset: 4px; }
.foot a:hover { color: var(--acid); }

/* --------------------------------------------------------------------------
   dose control
   -------------------------------------------------------------------------- */
.dose {
  position: fixed; z-index: 50;
  bottom: max(14px, env(safe-area-inset-bottom)); left: 14px;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px) saturate(1.6); backdrop-filter: blur(14px) saturate(1.6);
  border: 1px solid var(--line);
  font-size: .82rem; box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}
.dose-label { font-weight: 700; color: var(--ink-2); }
.dose-dots { display: flex; gap: 6px; }
.dose-dot {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, .38);
  transition: transform .35s var(--spring), background-color .3s, box-shadow .3s;
}
.dose-dot:hover { transform: scale(1.25); }
.dose-dot.on {
  border-color: transparent;
  background: hsl(calc(var(--hue) + var(--l) * 58) 100% 60%);
  box-shadow: 0 0 12px hsl(calc(var(--hue) + var(--l) * 58) 100% 60% / .8);
}
.dose-dot[aria-checked="true"] { transform: scale(1.22); }
.dose-name {
  min-width: 6.6em; font-weight: 800;
  background: linear-gradient(90deg, var(--h1), var(--h3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --------------------------------------------------------------------------
   portal
   -------------------------------------------------------------------------- */
.portal[hidden] { display: none; }
.portal {
  position: fixed; inset: 0; z-index: 80; overflow: hidden;
  clip-path: circle(0px at var(--px, 50%) var(--py, 50%));
  transition: clip-path .85s var(--io);
}
.portal.open { clip-path: circle(150vmax at var(--px, 50%) var(--py, 50%)); }
.portal-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 85% 0%, color-mix(in srgb, var(--c1) 55%, transparent), transparent 62%),
    radial-gradient(100% 70% at 10% 100%, color-mix(in srgb, var(--c2) 55%, transparent), transparent 62%),
    rgba(7, 2, 15, .95);
}
.portal-swirl {
  position: absolute; left: 50%; top: 50%;
  width: 170vmax; height: 170vmax; margin: -85vmax 0 0 -85vmax;
  background: repeating-conic-gradient(from 0deg,
    color-mix(in srgb, var(--c1) 34%, transparent) 0deg 9deg, transparent 9deg 18deg,
    color-mix(in srgb, var(--c2) 34%, transparent) 18deg 27deg, transparent 27deg 36deg);
  -webkit-mask: radial-gradient(circle, #000 0%, transparent 62%);
  mask: radial-gradient(circle, #000 0%, transparent 62%);
  mix-blend-mode: screen; opacity: .55;
  animation: spin 70s linear infinite;
}
.portal-close {
  position: absolute; z-index: 3; top: max(16px, env(safe-area-inset-top)); left: 16px;
  display: inline-flex; align-items: center; gap: .55em;
  padding: .7em 1.25em; border-radius: 999px;
  background: #fff; color: #0b0016; font-weight: 800;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  transition: transform .35s var(--spring);
}
.portal-close:hover { transform: scale(1.06) rotate(-2deg); }
.portal-scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
.portal-inner { position: relative; max-width: 880px; margin: 0 auto; padding: 96px clamp(18px, 5vw, 40px) 90px; }
.pt-icon { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: 1.4rem; }
.pt-blob {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  box-shadow: 0 0 90px -10px var(--c1);
  animation: morph 8s ease-in-out infinite, spin 22s linear infinite;
}
.pt-emoji { position: relative; font-size: 76px; line-height: 1; animation: bob 3s ease-in-out infinite; }
.pt-kicker { margin: 0; font-size: .9rem; font-weight: 600; letter-spacing: .03em; color: var(--ink-2); }
.pt-name {
  margin: .12em 0 0;
  font-size: clamp(3.4rem, 13vw, 8.6rem); font-weight: 900; line-height: .92; letter-spacing: -.02em;
  text-shadow: -2px 2px 0 var(--c1), -4px 4px 0 var(--c1), -6px 6px 0 var(--c2), -8px 8px 0 var(--c2), -11px 12px 0 rgba(0, 0, 0, .35), 0 0 70px color-mix(in srgb, var(--c1) 60%, transparent);
}
.is-mystery .pt-name { font-family: var(--glitch); font-weight: 400; }
.pt-latin { margin: .7rem 0 0; font-family: var(--mono); color: var(--ink-3); text-align: right; }
.pt-tag { margin: 1.4rem 0 0; font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; line-height: 1.25; }
.pt-desc { margin: 1rem 0 0; max-width: 62ch; font-size: 1.1rem; line-height: 1.8; color: var(--ink-2); }
.pt-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; margin-top: 2.2rem; }
.pt-grid section {
  padding: 22px; border-radius: 24px;
  background: rgba(7, 2, 15, .55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.pt-grid h3 { margin: 0 0 .9rem; font-size: .86rem; letter-spacing: .03em; font-weight: 700; color: var(--acid); }
.pt-grid h3 + .pt-chips + h3 { margin-top: 1.2rem; }
.pt-features { list-style: none; display: grid; gap: .7rem; }
.pt-features li { display: flex; align-items: baseline; gap: .65em; font-weight: 500; }
.pt-features li::before { content: '✺'; flex: none; display: inline-block; color: var(--c1); animation: spin 6s linear infinite; }
.pt-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.pt-chips li { padding: .35em .9em; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .24); font-family: var(--mono); font-size: .8rem; }
.pt-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2rem; }
.pt-links:empty { display: none; }

/* where to find a project: its address, big, and the store buttons (cards, tour panel, portal) */
.where { display: grid; gap: 10px; justify-items: start; }
.site { display: inline-flex; align-items: baseline; gap: .3em; max-width: 100%; color: var(--ink); text-decoration: none; }
.site-host {
  font-family: var(--mono); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere;
  background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent;
  border-bottom: 2px solid transparent; transition: border-color .25s;
}
.site:hover .site-host, .site:focus-visible .site-host { border-bottom-color: var(--c1); }
.site-arrow { font-size: .75em; color: var(--ink-2); transition: transform .35s var(--spring); }
.site:hover .site-arrow, .site:focus-visible .site-arrow { transform: translate(-3px, -3px); }
.where-card { margin-top: 2px; }
.where-card .site-host { font-size: 1.55rem; }
.where-panel { margin-top: 2px; }
.where-panel .site-host { font-size: 1.75rem; }
.where-portal { margin: 1.3rem 0 .3rem; gap: 14px; }
.where-portal .site-host { font-size: clamp(1.7rem, 6.5vw, 3.1rem); }
.stores { display: flex; flex-wrap: wrap; gap: 8px; }
.store {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 12px;
  border-radius: 10px; border: 1px solid #a6a6a6; background: #000; color: #fff; text-decoration: none;
  transition: transform .3s var(--spring), box-shadow .3s;
}
.store svg { flex: none; width: 22px; height: 22px; }
.store-t { display: grid; line-height: 1.05; text-align: start; }
.store-t small { font-size: .64rem; font-weight: 500; opacity: .92; }
.store-t b { font-family: -apple-system, 'SF Pro Display', 'Helvetica Neue', Arial, sans-serif; font-size: 1.08rem; font-weight: 600; letter-spacing: -.01em; }
.store:hover, .store:focus-visible { transform: translateY(-2px); box-shadow: 0 10px 24px -8px var(--c1); }
.store-tf { border-color: #4a90ff; }
.store-tf svg { color: #4a90ff; }
.where-portal .store { height: 56px; padding: 0 18px 0 14px; border-radius: 12px; }
.where-portal .store svg { width: 28px; height: 28px; }
.where-portal .store-t small { font-size: .74rem; }
.where-portal .store-t b { font-size: 1.35rem; }
.pt-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.pt-nav button {
  padding: .7em 1.25em; border-radius: 999px; border: 1px solid var(--line);
  font-weight: 700; color: var(--ink-2);
  transition: background-color .25s, color .25s, transform .35s var(--spring);
}
.pt-nav button:hover { background: #fff; color: #0b0016; transform: scale(1.04); }
.rise { opacity: 0; }
.portal.open .rise { animation: rise .85s var(--out) both; animation-delay: calc(.3s + var(--d) * .06s); }
.portal.open.swap .rise { animation: swapOut .22s ease-in both; animation-delay: 0s; }

/* --------------------------------------------------------------------------
   dose 5 / trip mode
   -------------------------------------------------------------------------- */
.wild .Lf { animation-duration: 2.4s; }
.wild .band-track { animation-duration: 10s; }
.wild .manifesto, .wild .contact-title, .wild .wh-title { animation: wobble 2.6s ease-in-out infinite; }
.wild .card-blob, .wild .pt-blob { animation-duration: 2.2s; }
.wild .logo-star { animation-duration: .9s; }

/* --------------------------------------------------------------------------
   keyframes
   -------------------------------------------------------------------------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-40px, 25px); }
  66% { transform: translate(30px, -35px); }
  100% { transform: translate(-15px, 40px); }
}
@keyframes pupil { from { transform: scale(.7); } to { transform: scale(1.15); } }
@keyframes introSafety { to { visibility: hidden; } }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) rotateY(0deg) rotateX(0deg); }
  25% { transform: translate3d(0, -.045em, .06em) rotateY(-15deg) rotateX(4deg); }
  50% { transform: translate3d(0, .02em, 0) rotateY(0deg) rotateX(-7deg); }
  75% { transform: translate3d(0, -.03em, -.04em) rotateY(13deg) rotateX(3deg); }
}
@keyframes sheen { to { background-position: -260% 0; } }
@keyframes assemble {
  from { transform: translate3d(calc((var(--i) - 2) * .55em), -.7em, -6em) rotateX(200deg) rotateY(-100deg) rotateZ(40deg); }
  to { transform: none; }
}
@keyframes flip { from { transform: rotateX(0deg); } to { transform: rotateX(-360deg); } }
@keyframes drip {
  from { clip-path: inset(0 0 100% 0); transform: translateY(-.3em); }
  to { clip-path: inset(-20% -5% -30% -5%); transform: none; }
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px) scale(.98); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes swapOut { to { opacity: 0; transform: translateX(26px) skewX(-10deg); filter: blur(5px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes marquee { to { transform: translateX(25%); } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .5; transform: scale(.7); } }
@keyframes morph {
  0%, 100% { border-radius: 42% 58% 70% 30% / 45% 45% 55% 55%; }
  33% { border-radius: 70% 30% 46% 54% / 30% 39% 61% 70%; }
  66% { border-radius: 30% 70% 38% 62% / 58% 64% 36% 42%; }
}
@keyframes pillFloat {
  0%, 100% { transform: rotate(-14deg) translateY(0); }
  50% { transform: rotate(-8deg) translateY(-12px); }
}
@keyframes wobble {
  0%, 100% { transform: none; }
  25% { transform: skewX(5deg) scaleY(1.04); }
  75% { transform: skewX(-5deg) scaleY(.97); }
}

/* --------------------------------------------------------------------------
   small screens
   -------------------------------------------------------------------------- */
@media (max-width: 1099px) {
  .wh-hud { bottom: calc(max(14px, env(safe-area-inset-bottom)) + 58px); }
}
@media (max-width: 899px) {
  .castle:not(.flat) .wh-panel {
    top: auto; right: 16px; left: 16px; width: auto;
    bottom: calc(max(14px, env(safe-area-inset-bottom)) + 116px);
    padding: 16px 16px 14px; gap: 8px; border-radius: 24px;
    transform: translateY(24px) scale(.97);
  }
  .castle:not(.flat) .wh-panel.show { transform: none; }
  .whp-emoji { width: 52px; height: 52px; font-size: 28px; }
  .whp-tag { font-size: .95rem; }
  .whp-plat { display: none; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .bar { padding-inline-start: 16px; }
  .hero { padding-bottom: 180px; }
  .title { font-size: 29vw; }
  .hud5 { display: none; }
  .wh-hud { gap: 10px; padding-inline-start: 14px; }
  .wh-now { min-width: 0; }
  .wh-dots { display: none; }
  .card-in { padding: 18px 18px 16px; }
  .card-icon { width: 72px; height: 72px; }
  .card-emoji { font-size: 38px; }
  .card-num { font-size: 6.5rem; }
  .pt-grid { grid-template-columns: 1fr; }
  .pt-icon { width: 120px; height: 120px; }
  .pt-emoji { font-size: 60px; }
  .dose { left: 50%; transform: translateX(-50%); }
  .foot { padding-bottom: 110px; }
}
@media (max-width: 380px) {
  .wh-progress { display: none; }
  .dose-name { min-width: 0; }
}

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

/* small screens: keep the tour panel short */
@media (max-width: 700px) {
  .where-panel { gap: 6px; }
  .where-panel .site-host { font-size: 1.35rem; }
  .where-panel .store, .where-card .store { height: 38px; padding: 0 11px 0 9px; border-radius: 9px; }
  .where-panel .store svg, .where-card .store svg { width: 19px; height: 19px; }
  .where-panel .store-t b, .where-card .store-t b { font-size: .95rem; }
}
