/* Hub: hero, bento grid, tiles of the home page, studio teaser. */

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; margin-top: calc(-1 * (var(--nav-h) + env(safe-area-inset-top))); padding-top: calc(var(--nav-h) + env(safe-area-inset-top)); overflow: hidden; }
.hero-fx { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease-out; }
.hero-fx.on { opacity: 1; }
.hero::before { /* still picture under the canvas: also the whole show without WebGL or with reduced motion */
  content: ""; position: absolute; inset: 0; z-index: -3;
  background:
    radial-gradient(60% 55% at 50% 100%, rgb(var(--accent-rgb) / 0.2), rgb(var(--accent-rgb) / 0) 70%),
    radial-gradient(45% 50% at 85% 20%, rgb(var(--accent-2-rgb) / 0.22), rgb(var(--accent-2-rgb) / 0) 70%),
    radial-gradient(40% 45% at 10% 30%, rgb(var(--accent-rgb) / 0.1), rgb(var(--accent-rgb) / 0) 70%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; z-index: -1; background: linear-gradient(to bottom, rgb(5 7 6 / 0), var(--bg)); pointer-events: none; }
.hero-glow { /* breathes with the music */
  position: absolute; z-index: -1; left: 50%; top: 46%; width: min(1100px, 120vw); aspect-ratio: 2.2; translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(var(--accent-rgb) / 0.22), rgb(var(--accent-2-rgb) / 0.08) 55%, rgb(var(--accent-2-rgb) / 0) 75%);
  opacity: calc(0.25 + var(--level) * 0.75); scale: calc(0.9 + var(--beat) * 0.22); pointer-events: none;
}
body.has-player .hero-glow { will-change: scale, opacity; }
.hero-in { display: grid; align-content: end; gap: clamp(14px, 2.2vw, 28px); min-height: min(86dvh, 860px); padding-block: clamp(40px, 9vh, 110px) clamp(40px, 7vh, 84px); }
.hero-kicker { display: flex; }
.hero-name {
  display: flex; justify-content: flex-start; margin: 0 0 0 -0.045em;
  font-weight: 900; font-stretch: 125%; font-size: min(calc((100vw - 2 * var(--gutter)) / 5.42), 243px); line-height: 0.82; letter-spacing: -0.065em;
  white-space: nowrap; user-select: none; -webkit-user-select: none;
}
.hero-name span { display: block; padding-bottom: 0.08em; }
.hero-name .dot { position: relative; color: var(--accent); text-shadow: 0 0 34px var(--glow); }
.hero-name .dot::after { /* the dot flashes on the kick: a glow layer whose opacity follows --beat */
  content: ""; position: absolute; left: 50%; bottom: 0.2em; width: 0.5em; height: 0.5em; translate: -50% 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgb(var(--accent-rgb) / 0.75), rgb(var(--accent-rgb) / 0)); opacity: var(--beat); scale: calc(1 + var(--beat) * 1.6);
}
.hero-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 22px 40px; }
.hero-stat { display: grid; gap: 2px; min-height: 44px; }
.hero-num { font-weight: 800; font-stretch: 112%; font-size: clamp(40px, 5.4vw, 76px); line-height: 1; letter-spacing: -0.045em; }
.hero-lab { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 16px; font-weight: 500; transition: color var(--dur) var(--ease-out); }
.hero-lab .ic { width: 18px; height: 18px; color: #1ed760; }
.hero-stat:hover .hero-lab { color: var(--text); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--gap); }
.bento > * { min-width: 0; }
.sec { grid-column: 1 / -1; margin: clamp(22px, 3.4vw, 44px) 0 2px; display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 700; font-stretch: 110%; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.sec:first-child { margin-top: 0; }
.sec::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--hairline-2), rgba(255, 255, 255, 0)); }
.b-spotify { grid-column: span 7; }
.b-yt { grid-column: span 5; }
.b-shop { grid-column: span 4; }
.b-soc { grid-column: span 2; }
.b-promo { grid-column: span 6; }
.b-proj { grid-column: span 3; }
.big { display: block; font-weight: 900; font-stretch: 120%; font-size: clamp(30px, 3.3vw, 48px); line-height: 0.95; letter-spacing: -0.05em; }
.chip-blue { color: #8db8ff; background: rgb(var(--accent-2-rgb) / 0.14); box-shadow: inset 0 0 0 1px rgb(var(--accent-2-rgb) / 0.34); }

.t-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -6px 0 12px; }
.t-brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
.t-brand .ic { width: 20px; height: 20px; color: rgb(var(--c)); }
.t-out { display: inline-flex; align-items: center; min-height: 44px; margin-right: -4px; padding: 0 4px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: color var(--dur) var(--ease-out); }
.t-out:hover { color: var(--text); }
.t-empty { display: grid; align-content: end; gap: 6px; min-height: 180px; height: 100%; }
.t-empty b { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; }
.t-empty span { color: var(--muted); }
.t-go, .soc-go { position: absolute; right: var(--pad); top: var(--pad); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; font-size: 16px; color: var(--muted); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--hairline); transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out), translate 0.4s var(--ease-out); pointer-events: none; }
.tile:hover > .t-go, .tile:hover > .soc-go { color: var(--accent-ink); background: var(--accent); translate: 2px -2px; }
.tile:hover > .t-go { translate: 3px 0; }

/* Spotify */
.sp { display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1fr); gap: var(--pad); align-items: stretch; }
.sp-feat { position: relative; display: block; width: 100%; aspect-ratio: 1; align-self: start; overflow: hidden; border-radius: calc(var(--radius) - 8px); background: var(--surface-2); text-align: left; cursor: pointer; }
.sp-feat img { width: 100%; height: 100%; object-fit: cover; scale: 1.02; transition: scale 0.9s var(--ease-out); }
.sp-feat:hover img { scale: 1.07; }
.sp-feat.is-playing img { scale: calc(1.05 + var(--beat) * 0.05); transition: none; will-change: scale; }
.sp-feat::after { content: ""; position: absolute; inset: 35% 0 0 0; background: linear-gradient(to bottom, rgb(0 0 0 / 0), rgb(0 0 0 / 0.86)); }
.sp-feat-meta { position: absolute; z-index: 1; left: 16px; right: 70px; bottom: 15px; display: grid; justify-items: start; gap: 6px; }
.sp-feat-meta b { font-size: clamp(17px, 1.7vw, 22px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.sp-feat-meta i { font-style: normal; font-size: 13px; color: rgb(255 255 255 / 0.7); }
.sp-feat .chip { background: rgb(0 0 0 / 0.55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.sp-feat .play { position: absolute; z-index: 1; right: 14px; bottom: 14px; width: 48px; height: 48px; background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 26px -6px var(--glow); }
.trks { display: grid; align-content: space-between; gap: 2px; margin: -6px -8px -6px 0; }
.trk { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 13px; width: 100%; min-height: 60px; padding: 6px 8px; border-radius: 16px; text-align: left; cursor: pointer; transition: background-color var(--dur) var(--ease-out); }
.trk:hover { background: rgba(255, 255, 255, 0.06); }
.trk-cv { position: relative; width: 48px; height: 48px; overflow: hidden; border-radius: 11px; background: var(--surface-2); }
.trk-cv img { width: 100%; height: 100%; object-fit: cover; }
.trk-ind { position: absolute; inset: 0; display: grid; place-items: center; background: rgb(0 0 0 / 0.55); opacity: 0; transition: opacity var(--dur) var(--ease-out); }
.trk-ind::before { content: ""; margin-left: 3px; border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent #fff; }
.trk:hover .trk-ind, .trk.is-playing .trk-ind { opacity: 1; }
.trk.is-playing .trk-ind::before { width: 12px; height: 13px; margin: 0; border: 0; background: linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px, var(--accent) 8px 12px); }
.trk.is-playing { background: rgb(var(--accent-rgb) / 0.08); }
.trk-tx { min-width: 0; display: grid; gap: 2px; }
.trk-tx b { font-size: 15px; font-weight: 700; letter-spacing: -0.015em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk.is-playing .trk-tx b { color: var(--accent); }
.trk-tx i { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* YouTube */
.b-yt { padding: 0; display: flex; flex-direction: column; }
.yt { position: relative; flex: 1; min-height: 0; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.yt img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; scale: 1.01; transition: scale 0.9s var(--ease-out); }
.yt .yt-bg { scale: 1.3; filter: blur(34px) saturate(1.3) brightness(0.6); transition: none; }
.yt.tall img:not(.yt-bg) { object-fit: contain; padding: 14px 14px 30px; }
.b-yt:hover .yt img:not(.yt-bg) { scale: 1.05; }
.yt::after { content: ""; position: absolute; inset: 55% 0 0 0; background: linear-gradient(to bottom, rgb(12 15 14 / 0), var(--surface)); pointer-events: none; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 4; }
.yt.live::after { display: none; }
.yt-go { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; width: 100%; cursor: pointer; }
.yt-btn { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / 0.94); box-shadow: 0 16px 50px -10px rgb(0 0 0 / 0.8); transition: scale 0.4s var(--ease-out), background-color var(--dur); }
.yt-btn::before { content: ""; margin-left: 5px; border-style: solid; border-width: 12px 0 12px 20px; border-color: transparent transparent transparent #0a0a0a; }
.yt-go:hover .yt-btn { scale: 1.08; background: #fff; }
.yt-meta { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 4px var(--pad) calc(var(--pad) - 6px); margin-top: -18px; }
.yt-meta .t-brand { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.yt-meta b { font-size: clamp(17px, 1.6vw, 21px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Shop tiles */
.b-shop { display: grid; grid-template-rows: auto 1fr; gap: 18px; min-height: 300px; }
.b-shop > .tile-link { position: absolute; inset: 0; }   /* not a grid row */
.hs-h { display: grid; justify-items: start; align-content: start; gap: 10px; padding-right: 48px; }
.hs-h .big { font-size: clamp(44px, 6vw, 84px); }
.hs-items { display: grid; align-content: end; gap: 8px; min-height: 96px; }
.hs-items.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hs-empty { align-self: end; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-radius: 16px; color: var(--muted); background: rgba(255, 255, 255, 0.035); box-shadow: inset 0 0 0 1px var(--hairline); font-size: 15px; }
.hs-empty::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: rx-blink 1.8s ease-in-out infinite; }
.b-shop[data-hs="beat"] .hs-empty::before { background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); }
.sk { height: 60px; border-radius: 16px; background: linear-gradient(100deg, rgba(255, 255, 255, 0.04) 30%, rgba(255, 255, 255, 0.09) 50%, rgba(255, 255, 255, 0.04) 70%); background-size: 300% 100%; animation: hub-sk 1.4s linear infinite; }
@keyframes hub-sk { from { background-position: 100% 0; } to { background-position: 0 0; } }
.kit { position: relative; z-index: 2; display: grid; gap: 8px; min-width: 0; }
.kit-cv { aspect-ratio: 1; overflow: hidden; border-radius: 16px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.kit-cv img { width: 100%; height: 100%; object-fit: cover; transition: scale 0.7s var(--ease-out); }
.kit:hover .kit-cv img { scale: 1.06; }
.kit b { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kit .price { font-size: 14px; color: var(--muted); }
.beat { position: relative; z-index: 2; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 60px; padding: 8px 14px 8px 8px; border-radius: 16px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--hairline); transition: background-color var(--dur) var(--ease-out); }
.beat:hover { background: rgba(255, 255, 255, 0.08); }
.beat-tx { min-width: 0; min-height: 44px; display: grid; align-content: center; gap: 1px; }
.beat-tx b { font-size: 15px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.beat-tx i { font-style: normal; font-size: 13px; color: var(--muted); }
.beat .price { font-size: 15px; }
/* fewer than three items: the rest of the row is a quiet door to the whole catalogue */
.kit-more .kit-cv { display: grid; place-items: center; height: 100%; aspect-ratio: auto; min-height: 100%; background: none; box-shadow: none; outline: 1px dashed var(--hairline-2); outline-offset: -1px; color: var(--muted); font-weight: 700; font-size: 15px; transition: color var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out); }
.kit-more { align-self: stretch; }
.kit-more .kit-cv i { font-style: normal; display: inline-block; transition: translate 0.4s var(--ease-out); }
.kit-more:hover .kit-cv { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.kit-more:hover .kit-cv i { translate: 3px 0; }
.beat-more { grid-template-columns: minmax(0, 1fr) auto; min-height: 52px; padding-inline: 18px; background: none; color: var(--muted); font-weight: 700; font-size: 15px; box-shadow: inset 0 0 0 1px var(--hairline); }
.beat-more i { font-style: normal; transition: translate 0.4s var(--ease-out); }
.beat-more:hover { color: var(--text); }
.beat-more:hover i { translate: 3px 0; }

/* three shop tiles in a row: the kit covers sit in two columns, the third goes to "All kits" */
.b-shop .hs-h .big { font-size: clamp(40px, 4.4vw, 68px); }
.b-shop[data-hs="plugin"] .hs-empty::before { background: var(--text); box-shadow: 0 0 12px rgb(255 255 255 / 0.5); }
.plug-cv { width: 44px; height: 44px; overflow: hidden; border-radius: 12px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); display: grid; place-items: center; font-weight: 900; font-size: 13px; color: var(--muted); }
.plug-cv img { width: 100%; height: 100%; object-fit: cover; }

/* free gift for signing in: a quiet strip under the shop, gone when there is none */
.b-gift { grid-column: 1 / -1; display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 14px 18px 14px 14px;
  background: radial-gradient(80% 140% at 0% 50%, rgb(var(--accent-rgb) / 0.12), rgb(var(--accent-rgb) / 0) 70%), var(--surface); }
.gift-cv { width: 64px; height: 64px; overflow: hidden; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); display: grid; place-items: center; font-weight: 900; color: var(--muted); }
.gift-cv img { width: 100%; height: 100%; object-fit: cover; }
.gift-tx { display: grid; gap: 2px; min-width: 0; }
.gift-k { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.gift-tx b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gift-tx i { font-style: normal; font-size: 14px; color: var(--muted); }
.gift-go { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-weight: 700; font-size: 15px; white-space: nowrap; color: var(--accent); background: rgb(var(--accent-rgb) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.3); transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out); }
.b-gift:hover .gift-go { color: var(--accent-ink); background: var(--accent); }

/* Socials */
.b-soc { display: grid; align-content: space-between; gap: 26px; min-height: 172px; }
.soc-ic { width: 44px; height: 44px; display: grid; place-items: center; }
.soc-ic .ic { width: 38px; height: 38px; color: var(--text); transition: color 0.35s var(--ease-out), scale 0.5s var(--ease-out); }
.b-soc:hover .soc-ic .ic { color: rgb(var(--c)); scale: 1.08; }
.b-soc::before { /* a big ghost of the logo colour in the corner */
  content: ""; position: absolute; z-index: -1; right: -30%; bottom: -45%; width: 90%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(var(--c) / 0.3), rgb(var(--c) / 0)); opacity: 0.55; transition: opacity 0.5s var(--ease-out), scale 0.8s var(--ease-out);
}
.b-soc:hover::before { opacity: 1; scale: 1.25; }
.soc-tx, .proj-tx { display: grid; gap: 2px; min-width: 0; }
.soc-tx b { font-size: 17px; font-weight: 800; letter-spacing: -0.025em; white-space: nowrap; }
.soc-tx i, .proj-tx i { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Projects */
.b-promo { display: grid; gap: 22px; align-content: space-between; }
.pr-h { display: grid; justify-items: start; gap: 10px; }
.pr-h p { max-width: 44ch; }
.doors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.door { position: relative; display: grid; align-content: end; gap: 3px; min-height: 104px; padding: 16px 44px 16px 16px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--hairline-2); transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), translate 0.4s var(--ease-out); }
.door b { font-size: 17px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.door i { font-style: normal; font-size: 13px; color: var(--muted); line-height: 1.3; }
.door span { position: absolute; right: 14px; top: 12px; font-size: 16px; color: var(--muted); transition: color var(--dur), translate 0.4s var(--ease-out); }
.door:hover { background: rgb(var(--c) / 0.16); box-shadow: inset 0 0 0 1px rgb(var(--c) / 0.6); translate: 0 -2px; }
.door:hover span { color: var(--text); translate: 2px -2px; }
.b-proj { display: grid; align-content: space-between; justify-items: start; gap: 34px; min-height: 200px; }
.b-proj .big { font-size: clamp(26px, 2.5vw, 36px); }
.b-studio { background: radial-gradient(120% 90% at 100% 100%, rgb(var(--accent-rgb) / 0.2), rgb(var(--accent-rgb) / 0) 60%), var(--surface); }
.b-off { cursor: default; user-select: none; }

/* ---------- studio ---------- */
.studio { display: grid; justify-items: start; align-content: center; gap: 18px; min-height: min(70dvh, 640px); padding: clamp(24px, 6vw, 72px); }
.studio .page-title { font-size: clamp(64px, 15vw, 200px); }
.studio-fx { position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 80% at 100% 100%, rgb(var(--accent-rgb) / 0.26), rgb(var(--accent-rgb) / 0) 60%), radial-gradient(50% 60% at 0% 0%, rgb(var(--accent-2-rgb) / 0.2), rgb(var(--accent-2-rgb) / 0) 65%); opacity: calc(0.75 + var(--level) * 0.25); will-change: opacity; }
.wl { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 10px; width: min(520px, 100%); margin-top: 8px; }
.wl .btn { min-height: 50px; }
.wl .error { grid-column: 1 / -1; }
.wl-done { padding: 16px 18px; border-radius: 16px; background: rgb(var(--accent-rgb) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.3); max-width: 520px; }
.wl-done b { color: var(--accent); }
.studio-back { margin-top: 10px; }

/* ---------- tablet ---------- */
@media (max-width: 1080px) {
  .b-spotify, .b-yt, .b-promo { grid-column: 1 / -1; }
  .b-soc { grid-column: span 4; }
  .b-proj { grid-column: span 6; }
  .b-shop { grid-column: span 6; }
  .b-plug { grid-column: 1 / -1; }
  .yt { flex: none; }
}
/* ---------- phone ---------- */
@media (max-width: 640px) {
  .hero-in { min-height: min(52dvh, 470px); gap: 14px; padding-block: 24px 30px; }
  .hero-row { gap: 18px; }
  .hero-cta { width: 100%; }
  .hero-cta .btn { flex: 1 1 auto; padding-inline: 16px; }
  .hero-cta .btn-primary { flex-basis: 100%; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .b-shop { grid-column: 1 / -1; min-height: 0; }
  .b-gift { grid-template-columns: 52px minmax(0, 1fr); gap: 12px 14px; padding: 12px; }
  .gift-cv { width: 52px; height: 52px; border-radius: 12px; }
  .gift-go { grid-column: 1 / -1; justify-content: center; }
  .b-soc { grid-column: span 1; min-height: 148px; gap: 18px; }
  .b-proj { grid-column: span 1; min-height: 168px; gap: 22px; }
  .sp { grid-template-columns: minmax(0, 1fr); }
  .sp-feat { aspect-ratio: 16 / 11; }
  .trks { margin: -4px -8px -8px; }
  .doors { grid-template-columns: minmax(0, 1fr); }
  .door { min-height: 84px; }
  .soc-go, .t-go { right: 12px; top: 12px; }
  .wl { grid-template-columns: minmax(0, 1fr); }
  .yt-btn { width: 64px; height: 64px; }
}
@media (max-width: 380px) {
  .soc-tx b { font-size: 15px; }
  .b-proj .big { font-size: 22px; }
}

/* ---------- drum kits of the old Telegram bot: one card = cover, name, two doors (free / buy) ---------- */
.b-kit { grid-column: span 6; display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr); gap: clamp(16px, 2vw, 26px); padding: 12px; align-items: center; }
.b-kit > .tile-link { position: absolute; inset: 0; }
.bk-cv { position: relative; display: block; width: 100%; aspect-ratio: 1; align-self: start; overflow: hidden; border-radius: calc(var(--radius) - 10px); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--hairline); }
.bk-cv img { width: 100%; height: 100%; object-fit: cover; scale: 1.02; transition: scale 0.9s var(--ease-out); }
.b-kit:hover .bk-cv img { scale: 1.06; }
.bk-cv img.is-playing, .bk-cv:has(.is-playing) img { scale: calc(1.04 + var(--beat) * 0.05); transition: none; will-change: scale; }
.bk-blank { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 900; font-size: clamp(40px, 6vw, 84px); letter-spacing: -0.06em; color: rgb(var(--accent-rgb) / 0.3); }
.bk-play { position: absolute; z-index: 2; right: 12px; bottom: 12px; width: 48px; height: 48px; background: rgb(5 7 6 / 0.7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.bk-play:hover { background: var(--accent); }
.bk-tx { display: grid; align-content: center; gap: 12px; min-width: 0; padding: 8px calc(var(--pad) - 12px) 8px 0; }
.bk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-free { color: var(--accent); background: rgb(var(--accent-rgb) / 0.08); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.2); }
.bk-title { font-size: clamp(26px, 2.6vw, 40px); font-weight: 900; font-stretch: 116%; letter-spacing: -0.045em; line-height: 0.98; overflow-wrap: anywhere; }
.bk-note { color: var(--muted); font-size: 15px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bk-doors { display: grid; gap: 8px; margin-top: 4px; }
/* a door is the bot's button: one line of what you get, one line of what it takes */
.bk-door { position: relative; z-index: 2; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; min-height: 64px; padding: 10px 14px 10px 10px; border-radius: 18px; background: rgba(255, 255, 255, 0.045); box-shadow: inset 0 0 0 1px var(--hairline-2); transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), translate 0.4s var(--ease-out); }
.bk-door:hover { translate: 0 -1px; background: rgba(255, 255, 255, 0.08); }
.bk-door-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: rgba(255, 255, 255, 0.06); color: var(--text); }
.bk-door-ic svg { width: 22px; height: 22px; }
.bk-door.is-free { background: rgb(var(--accent-rgb) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.35); }
.bk-door.is-free:hover { background: rgb(var(--accent-rgb) / 0.17); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.6), 0 14px 40px -18px var(--glow); }
.bk-door.is-free .bk-door-ic { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 22px -8px var(--glow); }
.bk-door-tx { display: grid; gap: 2px; min-width: 0; }
.bk-door-tx b { font-size: 16px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-door-tx i { font-style: normal; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-door.is-free .bk-door-tx i { color: color-mix(in srgb, var(--accent) 70%, var(--muted)); }
.bk-pls { display: flex; }
.bk-pl { width: 24px; height: 24px; margin-left: -6px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 1.5px var(--surface); color: var(--muted); }
.bk-pl:first-child { margin-left: 0; }
.bk-pl .ic { width: 13px; height: 13px; }
.bk-pl-telegram { color: #2aabee; } .bk-pl-soundcloud { color: #ff701a; } .bk-pl-youtube { color: #ff4848; } .bk-pl-spotify { color: #1ed760; } .bk-pl-instagram { color: #ff4888; } .bk-pl-tiktok { color: #40e8e2; }
.bk-door-go { font-size: 16px; color: var(--muted); transition: translate 0.4s var(--ease-out), color var(--dur); }
.bk-door:hover .bk-door-go { color: var(--text); translate: 3px 0; }
.bk-door.is-free .bk-door-go { color: var(--accent); }
@media (max-width: 1080px) { .b-kit { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .b-kit { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 10px; }
  .bk-cv { aspect-ratio: 16 / 10; }
  .bk-tx { padding: 2px 4px 6px; gap: 10px; }
  .bk-door { grid-template-columns: 40px minmax(0, 1fr) auto; min-height: 60px; }
  .bk-pls { display: none; }
  .bk-door-ic { width: 40px; height: 40px; border-radius: 12px; }
}

/* ---------- home: launcher pre-save ---------- */
.b-launch { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); align-items: center; gap: clamp(18px, 3vw, 40px);
  padding: clamp(22px, 3.4vw, 40px); overflow: hidden;
  background: radial-gradient(70% 120% at 100% 0%, rgb(var(--accent-rgb) / .2), rgb(var(--accent-rgb) / 0) 62%), radial-gradient(50% 90% at 0% 100%, rgb(var(--accent-2-rgb) / .16), rgb(var(--accent-2-rgb) / 0) 65%), var(--surface); }
.bl-tx { display: grid; justify-items: start; gap: 14px; min-width: 0; }
.bl-tx .big { font-size: clamp(30px, 4vw, 54px); }
.bl-tx p { margin: 0; max-width: 44ch; }
.bl-form { display: grid; gap: 8px; width: min(480px, 100%); }
.bl-form .wl { margin-top: 0; width: 100%; }
.bl-fine { font-size: 13px; color: var(--muted); }
.bl-win { position: relative; border-radius: 18px; background: #050706; box-shadow: 0 0 0 1px var(--hairline-2), 0 40px 80px -36px rgba(0, 0, 0, .9), 0 20px 70px -30px rgb(var(--accent-rgb) / .35);
  transform: perspective(1200px) rotateY(-7deg) rotateX(3deg); transition: transform .6s var(--ease-out); }
.b-launch:hover .bl-win { transform: perspective(1200px) rotateY(-3deg) rotateX(1deg); }
.bl-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; border-bottom: 1px solid var(--hairline); font-size: 13px; font-weight: 700; }
.bl-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .18); }
.bl-bar span { margin-left: 8px; letter-spacing: -.01em; } .bl-bar span b { color: var(--accent); }
.bl-list { display: grid; gap: 8px; padding: 12px; }
.bl-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 14px; background: rgb(var(--c) / .1); box-shadow: inset 0 0 0 1px rgb(var(--c) / .28); }
.bl-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; overflow: hidden; font-weight: 900; font-size: 13px; color: rgb(var(--c)); background: rgb(var(--c) / .16); }
.bl-ic img { width: 100%; height: 100%; object-fit: cover; }
.bl-nm { display: grid; min-width: 0; } .bl-nm b { font-size: 14px; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .bl-nm i { font-style: normal; font-size: 12px; color: var(--muted); }
.bl-bt { padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .08); color: var(--muted); }
.bl-row.on .bl-bt { background: var(--accent); color: var(--accent-ink); }
@media (max-width: 1080px) { .b-launch { grid-template-columns: minmax(0, 1fr); } .bl-win { transform: none; max-width: 520px; } }
@media (prefers-reduced-motion: reduce) { .bl-win { transition: none; } }

/* ---------- home on a phone: fewer, tighter blocks (same look as the desktop bento, nothing stacked into a long column) ---------- */
@media (max-width: 640px) {
  .sec { margin-top: 20px; }
  .hero-in { min-height: min(44dvh, 400px); }
  /* launcher tile */
  .b-launch { padding: 18px; gap: 16px; }
  .bl-tx { gap: 10px; }
  .bl-tx .big { font-size: 30px; }
  .bl-row:nth-child(n+4) { display: none; }
  .bl-win { max-width: none; }
  /* drum kits: cover on the left, the two doors side by side */
  .b-kit { grid-template-columns: 104px minmax(0, 1fr); gap: 10px 14px; padding: 12px; align-items: center; }
  .b-kit .bk-tx { display: contents; }
  .b-kit .bk-cv { grid-row: 1 / span 2; aspect-ratio: 1; border-radius: 14px; }
  .b-kit .bk-chips { align-self: end; }
  .b-kit .bk-chips .chip:nth-child(n+3), .b-kit .bk-note { display: none; }
  .b-kit .bk-title { align-self: start; font-size: 20px; }
  .b-kit .bk-doors { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .b-kit .bk-door { grid-template-columns: 30px minmax(0, 1fr); min-height: 52px; padding: 8px 10px 8px 8px; gap: 8px; border-radius: 16px; }
  .b-kit .bk-door-ic { width: 30px; height: 30px; border-radius: 9px; }
  .b-kit .bk-door-tx i, .b-kit .bk-door-go { display: none; }
  .b-kit .bk-door-tx b { font-size: 14px; }
  /* name a kick */
  .b-kn .bk-note, .b-kn .kn-slots, .b-kn .kn-slots-demo { display: none; }
  /* spotify + youtube */
  .sp-feat { aspect-ratio: 16 / 9; }
  .trks li:nth-child(n+4) { display: none; }
  /* shop: three plain tiles, the previews live on their own pages */
  .b-shop .hs-items, .b-shop .hs-h p { display: none; }
  .b-shop { grid-column: span 1; padding: 16px; }
  .b-shop[data-hs="plugin"] { grid-column: 1 / -1; }
  .b-shop .hs-h .big { font-size: 34px; }
  /* socials: one slim row each */
  .b-soc { grid-column: span 1; display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 10px 12px; }
  .b-soc .soc-ic { width: 28px; height: 28px; flex: none; }
  .b-soc .soc-ic .ic { width: 26px; height: 26px; }
  .b-soc .soc-tx i, .b-soc .soc-go { display: none; }
  .b-soc .soc-tx b { font-size: 15px; }
  /* projects */
  .b-proj { min-height: 118px; gap: 12px; }
}
