/* dems landing — stage 2 draft (.studio/stage2-direction.md). Loaded only on /v2, after site.css. */

/* Main buttons become white (owner request); green stays inside app screens. */
.btn--light { background: #fff; color: var(--inverse-ink); }
@media (hover: hover) and (pointer: fine) { .btn--light:hover { background: #d9d9d9; } }
.draft-tag { position: absolute; left: 12px; top: 12px; z-index: 9; font: 500 11px/14px Benzin; color: #fff; background: rgba(0, 0, 0, 0.6); border: 1px dashed rgba(255, 255, 255, 0.4); border-radius: 8px; padding: 4px 8px; }

/* ---------- hero head ---------- */
.h2 { padding: calc(var(--nav-h) + 48px) 0 32px; }
.h2__head { display: grid; gap: 24px; margin-bottom: 32px; }
.h2__copy { max-width: 680px; }
.h2__copy .t-sub { margin-top: 16px; max-width: 560px; }
.h2__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
@media (min-width: 1024px) {
  .h2 { padding-top: calc(var(--nav-h) + 64px); }
  .h2__head { grid-template-columns: 1fr auto; align-items: end; margin-bottom: 40px; }
}
/* laptop: a compact head so the stage, its caption and dots fit the first screen (1440 × 900) */
@media (min-width: 1280px) {
  .h2 { padding-top: calc(var(--nav-h) + 40px); }
  .h2__head { margin-bottom: 24px; }
  .h2 .t-hero { font-size: 36px; line-height: 40px; letter-spacing: -0.01em; }
  .h2__copy .t-sub { margin-top: 12px; font: 400 16px/24px Benzin; }
}

/* ---------- stage: wallpaper + desktop + windows ---------- */
/* phone: notifications get their own row above the window, so they never cover the app header */
.stage { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--r-scene); border: 1px solid var(--border); background: #111; padding: 124px 16px 16px; user-select: none; -webkit-user-select: none; }
/* wallpapers: one per slide. Change of slide = change of time of day:
   the new sky comes down from the top (night falls), back to slide 1 it rises from the horizon (light returns). */
.stage__walls { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.stage__wall { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.stage__wall.is-on { opacity: 1; }
.stage__wall.is-in {
  z-index: 1; opacity: 1;
  -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent 60%); mask-image: linear-gradient(to bottom, #000 40%, transparent 60%);
  -webkit-mask-size: 100% 300%; mask-size: 100% 300%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-position: 0 100%; mask-position: 0 100%;
  transform: scale(1.04); filter: brightness(1.15) saturate(1.1);
}
.stage__wall.is-in.is-rise {
  -webkit-mask-image: linear-gradient(to top, #000 40%, transparent 60%); mask-image: linear-gradient(to top, #000 40%, transparent 60%);
  -webkit-mask-position: 0 0; mask-position: 0 0;
}
.stage__wall.is-in.is-run {
  -webkit-mask-position: 0 0; mask-position: 0 0; transform: none; filter: none;
  transition: -webkit-mask-position var(--wall-t) cubic-bezier(0.65, 0, 0.35, 1), mask-position var(--wall-t) cubic-bezier(0.65, 0, 0.35, 1), transform var(--wall-t) var(--ease-out), filter var(--wall-t) var(--ease-out);
}
.stage__wall.is-in.is-rise.is-run { -webkit-mask-position: 0 100%; mask-position: 0 100%; }
/* the old sky dims while the new one comes in */
.stage__wall.is-out { filter: brightness(0.55) saturate(0.8); transition: filter var(--wall-t) cubic-bezier(0.65, 0, 0.35, 1); }
.stage { --wall-t: 2400ms; }
/* clouds keep moving: a slow drift of the whole desktop picture */
.js-motion .stage__walls { animation: wall-drift 26s ease-in-out infinite alternate; }
@keyframes wall-drift { from { transform: scale(1.03) translate3d(-0.6%, 0, 0); } to { transform: scale(1.07) translate3d(0.6%, -0.8%, 0); } }
.stage__shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.18); z-index: -1; pointer-events: none; }
.stage__menubar { position: absolute; inset: 0 0 auto; height: 32px; display: flex; align-items: center; gap: 16px; padding: 0 16px; font: 500 12px/16px Benzin; color: #fff; background: rgba(15, 15, 15, 0.5); -webkit-backdrop-filter: blur(20px) saturate(140%); backdrop-filter: blur(20px) saturate(140%); z-index: 6; }
.stage__menubar img { width: 16px; height: 16px; }
.stage__menubar .m { display: none; color: rgba(255, 255, 255, 0.8); }
.stage__menubar .sp { flex: 1; }
.stage__rank { display: inline-grid; }
/* Benzin digits differ in width ("21:41" is narrower than "21:40"): a fixed box keeps the rank pill from jumping */
.stage__menubar [data-clock] { display: inline-block; min-width: 5ch; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stage__rank .pill { grid-area: 1 / 1; justify-self: end; height: 22px; padding: 0 10px; font-size: 11px; transition: opacity 300ms var(--ease-out), transform 300ms var(--ease-out); }
.stage__rank .pill--advanced { opacity: 0; transform: translateY(4px); }
.stage.is-ranked .stage__rank .pill:first-child { opacity: 0; transform: translateY(-4px); }
.stage.is-ranked .stage__rank .pill--advanced { opacity: 1; transform: none; }
.stage__desk, .win2--finder, .stage__cursor { display: none; }

/* windows */
.win2 { position: relative; border-radius: 14px; overflow: hidden; background: var(--surface); border: 1px solid rgba(255, 255, 255, 0.16); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7), 0 8px 24px -8px rgba(0, 0, 0, 0.5); }
.win2__bar { position: relative; display: flex; align-items: center; justify-content: center; height: 36px; background: #1a1a1a; border-bottom: 1px solid var(--hairline); font: 600 12px/16px Benzin; color: var(--fg-2); }
.win2__dots { position: absolute; left: 12px; top: 50%; display: flex; gap: 8px; transform: translateY(-50%); }
.win2__dots i { width: 12px; height: 12px; border-radius: 50%; background: #4a4a4a; transition: background-color 200ms var(--ease-out); }
.win2:hover .win2__dots i:nth-child(1) { background: #ff5f57; }
.win2:hover .win2__dots i:nth-child(2) { background: #febc2e; }
.win2:hover .win2__dots i:nth-child(3) { background: #28c840; }
/* The app renders at real phone size (390 × 800) and is zoomed to fit, like iPhone Mirroring on a Mac. */
/* starting scale close to what stage2.js measures, so the window does not jump on load */
.win2--app { --z: 0.8; width: calc(390px * var(--z) + 2px); margin: 0 auto; }
@media (min-width: 768px) { .win2--app { --z: 0.5; } }
@media (min-width: 1024px) { .win2--app { --z: 0.63; } }
@media (min-width: 1280px) { .win2--app { --z: 0.69; } }
.win2__screen { position: relative; width: 390px; height: 800px; overflow: hidden; zoom: var(--z); transform: translateZ(0); /* fixed app chrome stays inside */ }

/* the app copy */
.dl-app { font-family: var(--labd-font, Benzin, sans-serif); color: var(--labd-fg, #fff); background: var(--labd-bg, #000); -webkit-font-smoothing: antialiased; }
/* Only what the window needs; everything else comes from the app CSS unchanged. */
.dl-app .labd-view--scroll { scrollbar-width: none; }
.dl-app .labd-view--scroll::-webkit-scrollbar { display: none; }
.dl-app [hidden] { display: none !important; }
.dl-app .labd-upload__audio-pick.is-drop { outline: 2px dashed rgba(255, 255, 255, 0.6); outline-offset: 4px; }
.dl-app .is-pressed { transform: scale(0.97); transition: transform 120ms var(--ease-out); }
/* the app's file input is visually hidden: show keyboard focus on the card that opens it */
.dl-app .labd-upload__audio:has(.labd-upload__file-input:focus-visible) .labd-upload__audio-pick { outline: 2px solid var(--focus); outline-offset: 2px; }
.s2-slide-stub { position: absolute; inset: 64px 16px 112px; display: grid; place-content: center; gap: 8px; text-align: center; border: 1px dashed var(--border); border-radius: var(--r-win); color: var(--fg-2); font: 500 14px/20px Benzin; }

/* cursor + tap */
.stage__cursor { position: absolute; left: 0; top: 0; width: 24px; height: 24px; z-index: 8; pointer-events: none; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)); transform-origin: 5px 3px; opacity: 0; }
.stage__tap { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: rgba(255, 255, 255, 0.35); border: 2px solid rgba(255, 255, 255, 0.8); z-index: 8; pointer-events: none; opacity: 0; }

/* desktop files */
.afile { display: grid; justify-items: center; gap: 6px; width: 112px; touch-action: none; }
.afile__ico { width: 52px; height: 65px; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35)); }
.afile__name { max-width: 120px; padding: 2px 6px; border-radius: 6px; font: 500 11px/14px Benzin; color: #fff; text-align: center; text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8); overflow-wrap: normal; word-break: normal; text-wrap: balance; }
.afile--drag { cursor: grab; }
.afile.is-grabbed { cursor: grabbing; z-index: 7; }
.afile.is-grabbed .afile__name { background: rgba(10, 132, 255, 0.85); text-shadow: none; }
.afile.is-gone { visibility: hidden; }

/* finder window */
.finder { padding: 8px 0; }
.finder li { display: grid; grid-template-columns: 14px max-content 1fr; gap: 10px; align-items: center; padding: 8px 14px; font: 500 12px/16px Benzin; white-space: nowrap; }
.finder li:nth-child(odd) { background: rgba(255, 255, 255, 0.03); }
.finder i { font-style: normal; color: var(--fg-3); font-size: 11px; }
.finder__ico { width: 14px; height: 18px; border-radius: 2px; background: #e6e7ec; clip-path: polygon(0 0, 62% 0, 100% 30%, 100% 100%, 0 100%); }

/* notifications */
.stage__toasts { position: absolute; left: 16px; right: 16px; top: 44px; z-index: 7; display: grid; gap: 8px; pointer-events: none; }
.stage__toasts .toast { background: rgba(31, 31, 31, 0.86); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-color: rgba(255, 255, 255, 0.16); }
.stage__toasts .toast { transition: opacity 400ms var(--ease-out), transform 400ms var(--ease-out); }
.stage__toasts .toast.is-new { opacity: 0; transform: translateY(-12px) scale(0.98); }
.stage__caption { transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.stage__caption.is-new { opacity: 0; transform: translateY(12px); }
.stage__toasts .toast:nth-child(n + 2) { display: none; }

/* UI inside the picture */
.stage__ui { position: relative; z-index: 6; display: grid; gap: 16px; margin-top: 16px; color: #fff; }
.stage__n { color: rgba(255, 255, 255, 0.8); }
.stage__title { font: 700 24px/32px Benzin; letter-spacing: -0.01em; text-wrap: balance; text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5); margin-top: 4px; }
.stage__controls { display: flex; align-items: center; gap: 16px; }
.stage__dots { display: flex; gap: 4px; }
.stage__dot { width: 44px; height: 44px; display: grid; place-items: center; }
.stage__dot i { position: relative; display: block; width: 28px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.stage__dot i::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.stage__dot.is-on i::after { transform: scaleX(var(--p, 1)); }
.stage__play { min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, 0.4); background: rgba(0, 0, 0, 0.25); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font: 600 13px/16px Benzin; color: #fff; transition: background-color 200ms var(--ease-out); }
.stage__play[aria-pressed="true"] { background: #fff; color: var(--inverse-ink); border-color: transparent; }
@media (hover: hover) and (pointer: fine) { .stage__play:hover { background: rgba(255, 255, 255, 0.18); } .stage__play[aria-pressed="true"]:hover { background: #d9d9d9; } }
.stage__credit { justify-self: start; padding: 8px 12px; border-radius: var(--r-inner); background: rgba(0, 0, 0, 0.42); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font: 400 12px/16px Benzin; color: rgba(255, 255, 255, 0.9); }
@media (prefers-reduced-transparency: reduce) { .stage__credit { background: rgba(0, 0, 0, 0.8); -webkit-backdrop-filter: none; backdrop-filter: none; } }
.stage__credit b { font-weight: 600; color: #fff; }

@media (min-width: 768px) {
  .stage { aspect-ratio: 4 / 3; padding: 0; }
  .stage__menubar .m { display: inline; }
  .win2--app { position: absolute; left: 50%; top: 52px; transform: translateX(-50%); z-index: 4; }
  .stage__desk { position: absolute; left: 24px; top: 64px; display: grid; gap: 20px; z-index: 5; }
  .stage__cursor { display: block; }
  .stage__toasts { left: auto; right: 16px; top: 48px; width: 260px; }
  .stage__toasts .toast:nth-child(n + 2) { display: grid; }
  .stage__toasts .toast:nth-child(n + 4) { display: none; }
  .stage__ui { position: absolute; left: 32px; right: 32px; bottom: 24px; margin: 0; grid-template-columns: 1fr auto; align-items: end; pointer-events: none; }
  .stage__ui > * { pointer-events: auto; }
  .stage__caption { grid-column: 1; max-width: 360px; }
  .stage__controls { grid-column: 1; }
  .stage__credit { grid-column: 2; grid-row: 1 / span 2; text-align: right; align-self: end; }
  .stage__tap { display: none; }
}
/* tablet and small laptop: caption, dots and credit get their own strip under the window */
@media (min-width: 768px) and (max-width: 1279px) {
  .stage__ui { left: 24px; right: 24px; bottom: 16px; }
  .stage__caption { max-width: none; }
  .stage__title { font-size: 20px; line-height: 28px; }
}
@media (min-width: 1280px) {
  .stage { aspect-ratio: 16 / 9; }
  .win2--finder { display: block; position: absolute; left: 17%; top: 22%; width: 340px; z-index: 3; transform: rotate(-2deg); opacity: 0.96; }
  .stage__toasts { right: 32px; width: 280px; }
  .stage__title { font-size: 36px; line-height: 40px; }
}

/* ---------- trending marquee: edge to edge ---------- */
.trend { padding: 64px 0 var(--section); overflow: hidden; }
.trend .t-section { margin-bottom: 32px; }
.trend__viewport { overflow-x: auto; scrollbar-width: none; cursor: grab; outline-offset: -2px; }
.trend__viewport::-webkit-scrollbar { display: none; }
.js-motion .trend__viewport { overflow: hidden; }
.trend__viewport.is-dragging { cursor: grabbing; }
.trend__track { position: relative; z-index: 1; display: flex; gap: 16px; width: max-content; padding: 0 var(--gutter); will-change: transform; }
.trend__item { position: relative; width: var(--w); flex: none; transition: translate 600ms var(--ease-out); }
.trend__item > b { display: block; margin-top: 30px; font: 600 14px/20px Benzin; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend__item > span { display: block; font: 400 14px/20px Benzin; color: var(--fg-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 1024px) { .trend__track { gap: 24px; } }

/* record shelf: sleeves stand on a dark wooden shelf, each a little crooked */
.trend { --w: 200px; --out: 0.4; }
@media (min-width: 1024px) { .trend { --w: 264px; } }
.trend__viewport { position: relative; padding: 14px 0 4px; }
/* the shelf fades into the dark at both edges: records come out of and go into the night */
.trend__viewport { --fade: 40px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 var(--fade), #000 calc(100% - var(--fade)), transparent 100%); }
@media (min-width: 1024px) { .trend__viewport { --fade: 160px; } }
.trend__viewport::before {
  content: ""; position: absolute; left: 0; right: 0; top: calc(14px + var(--w) - 1px); height: 16px; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(255, 226, 190, 0.16) 0 1px, transparent 1px 5px, rgba(0, 0, 0, 0.5) 5px 6px, transparent 6px),
    repeating-linear-gradient(90deg, rgba(255, 220, 170, 0.035) 0 2px, transparent 2px 37px, rgba(0, 0, 0, 0.08) 37px 39px, transparent 39px 83px),
    linear-gradient(to bottom, #3a2d22 0 5px, #241b14 5px 100%);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.7);
}
.rec { position: relative; aspect-ratio: 1; rotate: var(--tilt, 0deg); transform-origin: 50% 100%; transition: rotate 500ms var(--ease-out), translate 500ms var(--ease-out); }

/* sleeve: cover + wear (ring from the record inside, rubbed edges, open side on the right, paper grain) */
.rec__sleeve { position: absolute; inset: 0; z-index: 1; overflow: hidden; border-radius: 3px; background: var(--fill); box-shadow: 0 12px 16px -10px rgba(0, 0, 0, 0.9), 0 1px 2px rgba(0, 0, 0, 0.6); }
.rec__sleeve img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; filter: saturate(0.9) contrast(1.03); }
.rec__sleeve::before, .rec__sleeve::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.rec__sleeve::before {
  background:
    radial-gradient(circle at var(--rx, 50%) var(--ry, 50%), transparent 40%, rgba(0, 0, 0, 0.16) 40.8%, rgba(255, 248, 230, 0.2) 42%, rgba(255, 248, 230, 0.07) 44.5%, rgba(255, 248, 230, 0.17) 46.5%, rgba(0, 0, 0, 0.12) 47.6%, transparent 48.6%),
    linear-gradient(to left, rgba(0, 0, 0, 0.45), transparent 2.5%),
    linear-gradient(135deg, rgba(255, 246, 225, 0.16), transparent 14%, transparent 86%, rgba(255, 246, 225, 0.1)),
    radial-gradient(130% 130% at 50% 45%, transparent 58%, rgba(0, 0, 0, 0.38));
  box-shadow: inset 0 0 0 1px rgba(255, 246, 225, 0.08);
}
.rec__sleeve::after {
  opacity: 0.28; mix-blend-mode: overlay; background-size: 180px;
  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='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.4 -.2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* vinyl: grooves and the light on them stay still, the label (cover) spins at ~33 rpm */
.rec__disc {
  position: absolute; z-index: 0; top: 3%; left: 3%; width: 94%; aspect-ratio: 1; border-radius: 50%;
  background:
    conic-gradient(from 20deg, transparent 0deg, rgba(255, 255, 255, 0.11) 28deg, transparent 64deg, transparent 180deg, rgba(255, 255, 255, 0.08) 208deg, transparent 246deg),
    radial-gradient(circle, #181818 0 33%, transparent 33.5% 95%, #1a1a1a 95.5%),
    repeating-radial-gradient(circle, #0c0c0c 0 1.1px, #1c1c1c 1.6px 2.7px);
  box-shadow: 0 10px 18px -8px rgba(0, 0, 0, 0.9), inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transition: translate 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}
.rec__label { position: absolute; inset: 31%; overflow: hidden; border-radius: 50%; box-shadow: 0 0 0 2px #0e0e0e; animation: rec-spin 1.8s linear infinite paused; }
.rec__label img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rec__label::after { content: ""; position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: #050505; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25); }
@keyframes rec-spin { to { rotate: 360deg; } }

/* play button: shows on hover (always on touch screens); a ring around it fills with the preview */
.rec__play {
  position: absolute; z-index: 2; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%;
  display: grid; place-items: center; color: #0a0a0a; background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55); opacity: 0; scale: 0.8; cursor: pointer;
  transition: opacity 200ms var(--ease-out), scale 200ms var(--ease-out), background-color 200ms var(--ease-out);
}
.rec__play svg { width: 26px; height: 26px; grid-area: 1 / 1; }
.rec__play::before {
  content: ""; position: absolute; inset: -5px; border-radius: 50%; pointer-events: none;
  background: conic-gradient(var(--accent) calc(var(--p, 0) * 1turn), rgba(255, 255, 255, 0.18) 0);
  -webkit-mask: radial-gradient(circle, transparent 33px, #000 33.5px); mask: radial-gradient(circle, transparent 33px, #000 33.5px);
  opacity: 0; transition: opacity 200ms var(--ease-out);
}
.rec__i-pause { display: none; }
.rec__play:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; opacity: 1; scale: 1; }
.rec__play:active { scale: 0.92; }
@media (hover: none) {
  .rec__play { left: 12px; top: auto; bottom: 12px; width: 48px; height: 48px; margin: 0; opacity: 1; scale: 1; }
  .rec__play svg { width: 20px; height: 20px; }
  .rec__play::before { -webkit-mask: radial-gradient(circle, transparent 25px, #000 25.5px); mask: radial-gradient(circle, transparent 25px, #000 25.5px); }
}

/* playing: the disc slides to the right and spins, the records after it make room */
.trend__item.is-playing .rec__disc { translate: calc(var(--out) * 100% / 0.94) 0; }
.trend__item.is-playing .rec { rotate: 0deg; translate: 0 -4px; }
.trend__item.is-playing ~ .trend__item { translate: calc(var(--w) * var(--out)) 0; }
.trend__item.is-playing .rec__play { opacity: 1; scale: 1; }
.trend__item.is-playing .rec__play::before { opacity: 1; }
.trend__item.is-playing .rec__i-play { display: none; }
.trend__item.is-playing .rec__i-pause { display: block; }
.js-motion .trend__item.is-playing .rec__label { animation-play-state: running; }
.trend__item.is-loading .rec__play::before { opacity: 1; animation: rec-wait 1s linear infinite; background: conic-gradient(var(--accent) 0 0.2turn, rgba(255, 255, 255, 0.18) 0); }
@keyframes rec-wait { to { rotate: 360deg; } }
/* hover: the record straightens and the vinyl peeks out of the sleeve, a hint of what play does */
@media (hover: hover) {
  .trend__item:hover .rec { rotate: 0deg; translate: 0 -4px; }
  .trend__item:hover:not(.is-playing) .rec__disc { translate: 12% 0; }
  .trend__item:hover .rec__play { opacity: 1; scale: 1; }
  .rec__play:hover { background: #fff; }
}
@media (prefers-reduced-motion: reduce) { .trend__item, .rec, .rec__disc { transition: none; } .trend__item.is-loading .rec__play::before { animation: none; } }

/* ---------- QR block ---------- */
.qrb__grid { display: grid; gap: 48px; align-items: center; }
.qrb__title { font: 700 48px/48px Benzin; letter-spacing: -0.02em; text-transform: uppercase; }
.qrb__title span { display: block; }
.qrb__row { display: grid; gap: 24px; margin-top: 40px; align-items: center; }
.qrb__qr { display: none; width: 240px; height: 240px; padding: 16px; border-radius: 24px; background: #fff; }
.qrb__side { display: grid; gap: 16px; justify-items: start; max-width: 360px; }
.qrb__side .body-3 { color: var(--fg-2); }
/* Illustration: oil-painted scientist with objects floating around him.
   Three independent properties so nothing fights: `transform` = entrance, `translate` = parallax and float (JS),
   `rotate` = resting angle plus a slow sway (JS). Positions are % of the box, so the composition scales as one piece. */
.qrb { overflow-x: clip; }
.qrb__art { position: relative; width: 76%; max-width: 440px; aspect-ratio: 5 / 6; margin: 24px auto 0; }
.qrb__obj { position: absolute; height: auto; will-change: transform; user-select: none; -webkit-user-drag: none; }
.qrb__obj--hero { z-index: 2; width: 78%; left: 11%; bottom: 0; }
.qrb__obj--headphones { z-index: 1; width: 36%; left: -18%; top: 2%; rotate: -16deg; }
.qrb__obj--lyrics { z-index: 1; width: 30%; right: -14%; top: 30%; rotate: 9deg; }
.qrb__obj--cassette-a { z-index: 3; width: 40%; right: -22%; top: -4%; rotate: 12deg; }
.qrb__obj--cassette-b { z-index: 3; width: 40%; left: -22%; bottom: 16%; rotate: -9deg; }
.qrb__obj--mug { z-index: 3; width: 28%; right: -10%; bottom: 2%; rotate: 4deg; }
/* the lime of the flask and the phone spills onto the dark around him */
.qrb__glow { position: absolute; z-index: 0; left: 0; right: 0; top: 18%; bottom: 8%; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 246, 10, 0.16), rgba(124, 246, 10, 0) 100%); }
.js-motion .qrb__obj { opacity: 0; transform: translate(var(--x, 0), var(--y, 0)) scale(0.86); transition: opacity 700ms var(--ease-out) var(--d, 0ms), transform 1100ms var(--ease-out) var(--d, 0ms); }
.js-motion .qrb__art.is-in .qrb__obj { opacity: 1; transform: none; }
.js-motion .qrb__glow { opacity: 0; transition: opacity 1600ms var(--ease-out) 300ms; }
.js-motion .qrb__art.is-in .qrb__glow { opacity: 1; animation: qrb-breathe 6s ease-in-out 1.9s infinite; }
@keyframes qrb-breathe { 50% { opacity: 0.6; } }
@media (min-width: 768px) { .qrb__art { width: 56%; max-width: 480px; } }
@media (min-width: 1280px) { .qrb__art { width: 100%; max-width: 460px; margin: 0 auto; } }
@media (min-width: 768px) { .qrb__title { font-size: 60px; line-height: 60px; } }
@media (min-width: 1024px) {
  .qrb__row { grid-template-columns: 240px 1fr; gap: 32px; }
  .qrb__title { font-size: 96px; line-height: 96px; }
}
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) { .qrb__qr { display: block; } }
/* two columns only where the 96 px title and the art both fit at full size (golden ratio) */
@media (min-width: 1280px) { .qrb__grid { grid-template-columns: 1.618fr 1fr; gap: 64px; } }

/* ---------- final ---------- */
.final2__inner { display: grid; justify-items: center; gap: 24px; text-align: center; padding: 48px 0 16px; }

@media (prefers-reduced-motion: reduce) {
  .stage__cursor, .stage__tap { display: none !important; }
}

/* nav button follows the white main button on this page */
.nav__cta.btn--cta { background: #fff; color: var(--inverse-ink); }
@media (hover: hover) and (pointer: fine) { .nav__cta.btn--cta:hover { background: #d9d9d9; } }

/* ---------- problem: the folder from the stage, close up ---------- */
.win2--folder { width: 100%; }
.folder { padding: 8px 0; }
.folder li { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 12px 16px; }
.folder li + li { border-top: 1px solid var(--hairline); }
.folder .finder__ico { grid-row: 1 / span 2; }
.folder b { font: 500 14px/20px Benzin; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder span:not(.finder__ico) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder span:not(.finder__ico) { grid-column: 2; font: 400 12px/16px Benzin; color: var(--fg-3); }
.folder i { grid-column: 3; grid-row: 1 / span 2; font: 500 12px/16px Benzin; font-style: normal; color: var(--fg-3); white-space: nowrap; }
/* filling folder: fixed to four rows, new files drop in on top, older ones sink and fade at the bottom */
.folder.is-live { overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); transition: opacity 400ms var(--ease-out); }
.folder.is-reset { opacity: 0; }
.folder li.is-arriving { background: rgba(124, 246, 10, 0.08); transition: background-color 1600ms var(--ease-out); }
.folder li.is-arriving i { color: var(--fg-2); }
.folder__foot.is-bump { animation: folder-bump 400ms var(--ease-out); }
@keyframes folder-bump { 40% { color: var(--fg); transform: scale(1.04); } }
.folder__foot { padding: 12px 16px; border-top: 1px solid var(--hairline); font: 500 12px/16px Benzin; color: var(--fg-3); text-align: center; }

/* ---------- how it works: three steps that drive the show ---------- */
.how2 { display: grid; gap: 16px; }
.how2 > li { display: flex; }
.how2__step { width: 100%; display: flex; flex-direction: column; gap: 8px; text-align: left; padding: 24px; border-radius: var(--r-scene); border: 1px solid var(--border); background: var(--surface); color: var(--fg); transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out), transform 120ms var(--ease-out); }
.how2__step:active { transform: scale(0.97); }
.how2__step:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--r-scene); }
/* card: a dark card with a painted object breaking out of its top-right corner */
.how2__step { position: relative; overflow: hidden; isolation: isolate; }
/* the fade lives on the wrapper, not on the img: Safari may paint nothing for an img with both mask and filter */
.how2__art {
  position: relative; display: block; height: 232px; margin: -24px -24px 4px 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 78%, transparent); mask-image: linear-gradient(to bottom, #000 78%, transparent);
}
.how2__art img {
  position: absolute; right: 0; top: 0; display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: right top;
  transform-origin: 70% 40%; transition: transform 700ms var(--ease-out);
}
.how2__body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.how2__body .how2__text { margin-bottom: 16px; }
.how2__step .how2__go {
  align-self: flex-start; margin-top: auto; padding: 10px 16px; border-radius: var(--r-pill); color: var(--fg);
  background: var(--fill); border: 0; transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.how2__step.is-current .how2__art img { transform: translateY(-4px) scale(1.03); }
@media (hover: hover) and (pointer: fine) {
  .how2__step:hover .how2__art img { transform: translateY(-8px) rotate(-1.5deg) scale(1.04); }
  .how2__step:hover .how2__go { background: #fff; color: #0a0a0a; }
}
@media (min-width: 1024px) { .how2__art { height: 280px; } }
@media (prefers-reduced-motion: reduce) { .how2__art img { transition: none; } }
.how2__n { font: 600 12px/16px Benzin; letter-spacing: 0.04em; color: var(--fg); }
.how2__title { margin-top: 8px; }
.how2__text { color: var(--fg-2); }
.how2__go { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 16px; color: var(--fg); }
.how2__arrow { display: inline-block; width: 16px; height: 16px; flex: none; transition: transform 200ms var(--ease-out); }
.how2__step.is-current { border-color: rgba(255, 255, 255, 0.5); }
@media (hover: hover) and (pointer: fine) { .how2__step:hover { background: var(--fill); } .how2__step:hover .how2__arrow { transform: translateY(-3px); } }
@media (min-width: 768px) { .how2 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- benefit tile: real review card from the app ---------- */
/* tiles in one row share a height: the picture takes the free space and sits in its middle */
.s2 .benefit { grid-template-rows: 1fr auto; }
/* the app card is sized for a phone screen (min-height 320px): show the whole piece zoomed, like the stage window */
.tile-app { width: 100%; max-width: 420px; zoom: 0.74; background: transparent; }
.tile-app__card { position: relative; transform: none; }
.tile-app__fb { margin-top: 16px; }

/* steps title: big; on desktop fitted by JS into one line as wide as the layout */
.how2__head { max-width: none; }
.how2__h { font-size: clamp(32px, 6vw, 48px); line-height: 1.04; letter-spacing: -0.03em; }
@media (min-width: 1024px) { .how2__h[data-fitted] { white-space: nowrap; line-height: 1; } }

/* ---------- main thought: lighting words + listeners who come running (stage2.js initTagline) ---------- */
.tg2 { --c-green: #7cf60a; --c-violet: #a58bd6; --c-ochre: #d8b46a; --c-blue: #8fa6c0; padding: calc(var(--section) * 1.5) 0; overflow: hidden; }
.tg2__inner { position: relative; }
.tg2__text { position: relative; z-index: 1; max-width: 76%; font: 700 clamp(40px, 6vw, 100px)/0.98 Benzin; letter-spacing: -0.035em; text-wrap: balance; }
.tg2__line { display: block; color: var(--fg-2); }
.tg2__line--2 { margin-top: 0.12em; color: var(--fg); }
.tg2__text .w--hit { color: var(--accent); }
.js-motion .tg2__text .w { color: rgba(255, 255, 255, 0.16); transition: color 450ms var(--ease-out), text-shadow 450ms var(--ease-out); }
.js-motion .tg2__line--1 .w.is-lit { color: rgba(255, 255, 255, 0.6); }
.js-motion .tg2__line--2 .w.is-lit { color: var(--fg); }
.js-motion .tg2__text .w--hit.is-lit { color: var(--accent); text-shadow: 0 0 36px rgba(124, 246, 10, 0.35); }
.tg2__cta { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 48px; }
@media (max-width: 1023px) { .tg2__text { max-width: none; } }

/* listeners: coloured round characters with eyes. Their row sits between the text and the CTA.
   .is-run: they hop in from the edge they start at (--from, set by JS); .is-party: they bounce and react. */
.crowd { --who: 34px; position: relative; z-index: 1; height: calc(var(--who) * 1.14 + 44px); margin-top: 32px; }
.who { position: absolute; bottom: 0; left: calc(var(--n) * (100% - var(--who)) / 6 + var(--j, 0px)); width: calc(var(--who) * var(--s, 1)); height: calc(var(--who) * var(--s, 1)); border-radius: 50%; transform-origin: 50% 100%; }
.who--green { background: var(--c-green); } .who--violet { background: var(--c-violet); } .who--ochre { background: var(--c-ochre); } .who--blue { background: var(--c-blue); }
.who__eyes, .who__eyes::before { position: absolute; top: 30%; width: 18%; height: 18%; border-radius: 50%; background: #0a0a0a; }
.who__eyes { left: 24%; }
.who__eyes::before { content: ""; top: 0; left: 190%; width: 100%; height: 100%; } /* second eye at 58% of the body */
/* blink now and then, each at its own moment */
.tg2.is-party .who__eyes, .tg2.is-party .who__eyes::before { animation: who-blink 4s infinite; animation-delay: calc(var(--n) * 530ms); }
@keyframes who-blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
.who__say { position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 0; padding: 5px 10px; border-radius: var(--r-pill); background: var(--fg); color: #0a0a0a; font: 700 11px/1 Benzin; white-space: nowrap; scale: 0; transform-origin: 50% 100%; }
@media (min-width: 1024px) { .crowd { --who: 46px; width: 76%; margin-top: 40px; } .who__say { font-size: 12px; } }
@media (max-width: 1023px) { .who { --j: 0px; } } /* narrow rows: even spacing, no overlaps */

/* before the run: everyone waits outside the block, at their own edge */
.js-motion .who { transform: translateX(var(--from, -120vw)); }
.js-motion .tg2.is-run .who { animation: who-run 1.3s cubic-bezier(0.3, 0.7, 0.3, 1) both; animation-delay: calc(var(--n) * 80ms); }
@keyframes who-run {
  0% { transform: translateX(var(--from)) translateY(0) scale(1, 1); }
  14% { transform: translateX(calc(var(--from) * 0.8)) translateY(-18px) scale(0.92, 1.08); }
  28% { transform: translateX(calc(var(--from) * 0.6)) translateY(0) scale(1.1, 0.9); }
  42% { transform: translateX(calc(var(--from) * 0.4)) translateY(-18px) scale(0.92, 1.08); }
  56% { transform: translateX(calc(var(--from) * 0.22)) translateY(0) scale(1.1, 0.9); }
  70% { transform: translateX(calc(var(--from) * 0.08)) translateY(-12px) scale(0.95, 1.05); }
  86% { transform: translateX(0) translateY(0) scale(1.14, 0.86); }
  100% { transform: none; }
}
.js-motion .tg2.is-party .who { transform: none; animation: who-bob 560ms cubic-bezier(0.4, 0, 0.6, 1) infinite alternate; animation-delay: calc(var(--n) * -140ms); }
@keyframes who-bob { from { transform: translateY(0) scale(1.06, 0.94); } to { transform: translateY(-14px) scale(0.97, 1.03); } }
.tg2.is-party .who__say { scale: 1; transition: scale 420ms cubic-bezier(0.34, 1.56, 0.64, 1); transition-delay: calc(var(--n) * 90ms); }
html:not(.js-motion) .who__say { scale: 1; }
/* only while the block is on screen */
.who, .who__eyes, .who__eyes::before { animation-play-state: paused; }
.tg2.is-live .who, .tg2.is-live .who__eyes, .tg2.is-live .who__eyes::before { animation-play-state: running; }
