/* Riffle landing page.
 * Direction: a deck of song previews you flip through like a crate of records, late at
 * night. Quick, curious, a little nocturnal. Graphite neutrals from the app, the icon's
 * cyan-to-rose blend on actions and highlights only (never on text), cyan as the accent,
 * rose only for Super Likes. Signature: the six-bar waveform, shown only where a song is
 * playing. One display family (Bricolage Grotesque, 400 to 600); body in the system font. */

:root {
  --bg: #0A0A0B;
  --surface: #141416;
  --raised: #1C1C1F;
  --text: #F2F2F3;
  --muted: #A1A1A6;
  --faint: #86868C;
  --line: rgba(242, 242, 243, 0.08);
  --line-strong: rgba(242, 242, 243, 0.16);
  --cyan: #00E5FF;
  --rose: #FF2D95;
  --grad: linear-gradient(135deg, var(--cyan), var(--rose));
  --display: 'Bricolage Grotesque', ui-sans-serif, system-ui, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --fast: 160ms;
  --enter: 480ms;
  --gutter: clamp(16px, 4vw, 48px);
  --section: clamp(96px, 11vw, 128px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scroll-behavior: smooth; }
html.reduce { scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html.intro body { overflow: hidden; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, p, ol, ul { margin: 0; }
button { font: inherit; color: inherit; }
strong { font-weight: 600; }
::selection { background: var(--cyan); color: var(--bg); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; border-radius: 8px; }

.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.skip {
  position: fixed; left: 12px; top: 12px; z-index: 200;
  padding: 8px 12px; border-radius: 8px; background: var(--text); color: var(--bg);
  transform: translateY(-200%); text-decoration: none; font-weight: 500;
}
.skip:focus { transform: none; }

.section-title {
  max-width: 16ch;
  font: 500 clamp(36px, 5vw, 72px)/1.04 var(--display);
  letter-spacing: -0.03em;
  font-variation-settings: 'opsz' 96;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; gap: 8px; height: var(--h); padding: 0 20px;
  border-radius: 10px; border: 0; cursor: pointer; text-decoration: none;
  font: 500 16px/1 var(--body); white-space: nowrap;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), box-shadow var(--fast) var(--ease), transform var(--fast) var(--ease), filter var(--fast) var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn .i { transition: transform var(--fast) var(--ease); }
.btn:hover .i { transform: translateX(2px); }
.btn--small { --h: 36px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn--small .i { width: 16px; height: 16px; }
.btn--big { --h: 56px; padding: 0 24px; font-size: 18px; }
.btn--light { background: var(--text); color: var(--bg); }
.btn--light:hover { background: #fff; }
.btn--ghost { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--gradient { background: var(--grad); color: var(--bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24); }
.btn--gradient:hover { filter: brightness(1.08); }

/* ---------- Loader (first visit): the particle opening, see particles.js ---------- */
.loader { display: none; }
html.intro .loader { display: block; position: fixed; inset: 0; z-index: 150; background: var(--bg); transition: background-color 500ms linear; }
html.intro.intro-out .loader { background: transparent; }
.loader canvas { display: block; width: 100%; height: 100%; transition: opacity 420ms linear 100ms; }
/* The real logo waits in its final place, then shows under the dots as they fade. */
html.intro .stack__card { opacity: 0 !important; transition: none !important; }
html.intro.intro-land .stack__card { opacity: 1 !important; transition: opacity 160ms linear !important; }
html.intro.intro-land .loader canvas { opacity: 0; }

/* ---------- Moved banner (old home-screen installs) ---------- */
.moved {
  position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 120;
  display: flex; align-items: center; gap: 16px; padding: 12px 12px 12px 16px;
  border-radius: 16px; background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong), 0 16px 40px rgba(0, 0, 0, 0.5);
  font-size: 15px; line-height: 1.4;
}
.moved[hidden] { display: none; }
.moved p { flex: 1; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) var(--gutter) 0;
  transition: transform var(--enter) var(--ease), background-color var(--enter) var(--ease), box-shadow var(--enter) var(--ease);
}
.nav.is-scrolled { background: rgba(10, 10, 11, 0.88); box-shadow: inset 0 -1px 0 var(--line); backdrop-filter: saturate(1.2) blur(12px); -webkit-backdrop-filter: saturate(1.2) blur(12px); }
.nav.is-hidden { transform: translateY(-110%); }
.nav__brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 500 18px/1 var(--display); }
.nav__brand svg { width: 32px; height: 32px; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 12px; border-radius: 8px; text-decoration: none; font-size: 14px; color: var(--muted);
  transition: color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a.is-current { color: var(--text); background: var(--raised); }
@media (max-width: 860px) { .nav__links { display: none; } }

/* ---------- Reveal helpers ---------- */
html.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity var(--enter) var(--ease), transform var(--enter) var(--ease); }
html.js .reveal.is-in { opacity: 1; transform: none; }
html.js .split .char { display: inline-block; transform: translateY(105%); transition: transform 640ms var(--ease); transition-delay: calc(var(--i) * 32ms + 80ms); }
html.js.ready .split .char { transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 44%); grid-template-rows: 1fr auto;
  padding: 96px var(--gutter) 40px; isolation: isolate;
  overflow-x: clip; /* the dots' canvas is wider than a phone */
}
.hero__title {
  grid-column: 1; grid-row: 1; align-self: center; position: relative; z-index: 2; pointer-events: none;
  font: 500 clamp(56px, 9.6vw, 152px)/0.94 var(--display); letter-spacing: -0.035em;
  font-variation-settings: 'opsz' 96;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }

.hero__stage {
  grid-column: 2; grid-row: 1; position: relative; z-index: 1;
  display: grid; place-items: center; perspective: 1200px;
  will-change: transform; transform-style: preserve-3d; touch-action: pan-y;
}
.stack {
  --rx: 0deg; --ry: 0deg; --sp: 0; --spread: var(--sp);
  position: relative; width: clamp(180px, 22vw, 320px); aspect-ratio: 380 / 500;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform 800ms var(--ease);
}
.stack__card { position: absolute; inset: 0; border-radius: 17% / 13%; transition: transform 1.2s var(--ease), opacity 800ms var(--ease); }
.stack__card--back { background: #23232B; box-shadow: inset 0 0 0 2px rgba(0, 229, 255, 0.32); }
.stack__card--mid { background: #2E2E38; box-shadow: inset 0 0 0 2px rgba(255, 45, 149, 0.32); }
.stack__card--front { background: var(--grad); display: grid; place-items: center; }
.stack__card--back, html.js.ready .stack__card--back { transform: translate(calc(-26% - var(--spread) * 22%), 6%) rotate(calc(-20deg - var(--spread) * 10deg)) translateZ(calc(-2px - var(--spread) * 60px)); }
.stack__card--mid, html.js.ready .stack__card--mid { transform: translate(calc(-12% - var(--spread) * 10%), 2%) rotate(calc(-9deg - var(--spread) * 5deg)) translateZ(calc(-1px - var(--spread) * 30px)); }
.stack__card--front, html.js.ready .stack__card--front { transform: translate(calc(var(--spread) * 10%), calc(var(--spread) * -4%)) rotate(calc(5deg + var(--spread) * 6deg)); }
html.js .stack__card { opacity: 0; transform: translateY(40%) rotate(0deg) scale(0.9); }
html.js.ready .stack__card { opacity: 1; }
html.js.ready .stack__card--back { transition-delay: 200ms; }
html.js.ready .stack__card--mid { transition-delay: 280ms; }
html.js.ready .stack__card--front { transition-delay: 360ms; }
/* Dots around the pointer (particles.js), drawn over the cards and tilting with them. */
.stack__dots { position: absolute; left: 50%; top: 50%; width: 280%; aspect-ratio: 1; transform: translate(-50%, -50%) translateZ(1px); pointer-events: none; }

/* The waveform: only on a card that is playing. */
.wave { display: flex; align-items: center; gap: 7%; width: 72%; height: 50%; }
.wave i { display: block; flex: 1; width: auto; height: 100%; border-radius: 99px; background: var(--bg); animation: eq 1.1s ease-in-out infinite; }
.wave i:nth-child(1) { animation-delay: -0.2s; --lo: 0.2; --hi: 0.38; }
.wave i:nth-child(2) { animation-delay: -0.5s; --lo: 0.35; --hi: 0.7; }
.wave i:nth-child(3) { animation-delay: -0.1s; --lo: 0.55; --hi: 1; }
.wave i:nth-child(4) { animation-delay: -0.7s; --lo: 0.3; --hi: 0.62; }
.wave i:nth-child(5) { animation-delay: -0.35s; --lo: 0.45; --hi: 0.86; }
.wave i:nth-child(6) { animation-delay: -0.6s; --lo: 0.2; --hi: 0.46; }
@keyframes eq { 0%, 100% { transform: scaleY(var(--lo)); } 50% { transform: scaleY(var(--hi)); } }

.hero__foot {
  grid-column: 1 / -1; grid-row: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px;
  padding-top: 24px; border-top: 1px solid var(--line);
}
.hero__lead { max-width: 36rem; color: var(--muted); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; grid-template-rows: auto auto auto; padding-top: 112px; gap: 24px; }
  .hero__title { grid-row: 1; font-size: clamp(48px, 14vw, 72px); }
  .hero__stage { grid-column: 1; grid-row: 2; padding: 32px 0 16px; }
  .stack { width: clamp(160px, 46vw, 240px); }
  .hero__foot { grid-row: 3; flex-direction: column; align-items: stretch; }
  .hero__cta .btn { flex: 1; justify-content: center; }
}

/* ---------- Marquee ---------- */
.marquee { padding: clamp(48px, 7vw, 96px) 0; overflow: hidden; border-block: 1px solid var(--line); }
.marquee__row { display: flex; white-space: nowrap; }
.marquee__row + .marquee__row { margin-top: 8px; }
.marquee__track {
  display: flex; align-items: center; gap: 0.4em; padding-right: 0.4em; flex-shrink: 0;
  font: 500 clamp(40px, 7.5vw, 120px)/1.1 var(--display); letter-spacing: -0.03em;
  will-change: transform;
}
.marquee__track .o { color: transparent; -webkit-text-stroke: 1px rgba(242, 242, 243, 0.4); }
.marquee__track b { width: 0.12em; height: 0.12em; border-radius: 50%; background: var(--faint); }
.marquee__track span { transition: color var(--fast) var(--ease); }
.marquee__track span:hover { color: var(--cyan); -webkit-text-stroke-color: transparent; }

/* ---------- Orbit (3D ring of genres) ---------- */
.orbit { position: relative; height: 260vh; }
.orbit__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: auto 1fr auto; padding: 112px var(--gutter) 32px;
}
.orbit__copy { position: relative; z-index: 2; pointer-events: none; }
.orbit__scene { position: relative; perspective: 1300px; perspective-origin: 50% 30%; display: grid; place-items: center; touch-action: pan-y; cursor: grab; }
.orbit__ring { position: relative; width: var(--cw, 200px); aspect-ratio: 3 / 4; transform-style: preserve-3d; will-change: transform; }
.ocard {
  position: absolute; inset: 0; border-radius: 16px; overflow: hidden; background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-strong); backface-visibility: hidden;
}
.ocard .art { height: 70%; bottom: auto; }
.ocard__name { position: absolute; left: 16px; right: 16px; bottom: 16px; font: 500 clamp(18px, 1.7vw, 24px)/1 var(--display); letter-spacing: -0.02em; }
.ocard__tag { position: absolute; left: 16px; bottom: 48px; font-size: 12px; color: var(--faint); }
.orbit__hint { justify-self: center; font-size: 13px; color: var(--faint); }

/* ---------- How it works ---------- */
.how { position: relative; height: 420vh; }
.how__pin {
  position: sticky; top: 0; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 4vw;
  padding: 96px var(--gutter) 40px;
}
.how__title { margin-bottom: 40px; font: 500 clamp(36px, 4.4vw, 64px)/1.04 var(--display); letter-spacing: -0.03em; }
.steps { list-style: none; padding: 0; display: grid; max-width: 560px; }
.step {
  display: grid; grid-template-columns: 48px 1fr; padding: 16px 0;
  border-top: 1px solid var(--line); opacity: 0.32; transition: opacity var(--enter) var(--ease);
}
.step.is-active { opacity: 1; }
.step__n { font: 500 14px/2 var(--display); color: var(--faint); font-variant-numeric: tabular-nums; }
.step.is-active .step__n { color: var(--cyan); }
.step h3 { font: 500 clamp(22px, 2vw, 28px)/1.2 var(--display); letter-spacing: -0.02em; }
.step p { margin-top: 4px; color: var(--muted); max-width: 440px; }
.how__bar { margin-top: 24px; height: 2px; max-width: 560px; background: var(--line); border-radius: 2px; overflow: hidden; }
.how__bar span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }

.how__device { display: grid; place-items: center; }
.phone {
  position: relative; width: clamp(232px, 22vw, 320px); aspect-ratio: 9 / 19.2; border-radius: 15% / 7%;
  background: #000; padding: 8px;
  box-shadow: inset 0 0 0 1px #2a2a30, inset 0 0 0 4px #111114, 0 48px 96px -32px rgba(0, 0, 0, 0.8);
}
.phone__island { position: absolute; top: 20px; left: 50%; width: 30%; height: 3.2%; margin-left: -15%; border-radius: 99px; background: #000; z-index: 5; }
.phone__screen { position: relative; height: 100%; border-radius: 13% / 6.2%; background: var(--bg); overflow: hidden; }
.phone__top { position: absolute; top: 9%; left: 7%; right: 7%; display: flex; justify-content: space-between; align-items: center; font: 500 13px/1 var(--display); }
.phone__pill { font: 400 11px/1 var(--body); padding: 4px 8px; border-radius: 6px; background: var(--raised); color: var(--muted); }
.pcard {
  position: absolute; left: 6%; right: 6%; top: 15%; bottom: 17%;
  border-radius: 16px; background: var(--surface); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line);
}
.pcard--next { transform: scale(0.94) translateY(8px); opacity: 0.6; }
.pcard__art { position: absolute; left: 0; right: 0; top: 0; height: 72%; display: grid; place-items: center; }
.pcard__meta { position: absolute; left: 12px; right: 12px; bottom: 12px; display: grid; gap: 2px; }
.pcard__meta strong { font: 500 15px/1.2 var(--display); }
.pcard__meta span { color: var(--muted); font-size: 11px; }
.pcard__progress { margin-top: 8px; height: 3px; border-radius: 3px; background: var(--line-strong); overflow: hidden; }
.pcard__progress span { display: block; height: 100%; background: var(--text); transform-origin: left; animation: progress 6s linear infinite; }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.wave--small { width: 56%; height: 34%; }
.wave--small i { background: rgba(10, 10, 11, 0.9); }
.pcard__stamp {
  position: absolute; top: 16px; padding: 4px 8px; border-radius: 6px; opacity: 0;
  font: 600 14px/1.2 var(--display); background: var(--bg);
}
.pcard__stamp--keep { left: 12px; color: var(--cyan); box-shadow: inset 0 0 0 2px var(--cyan); transform: rotate(-12deg); }
.pcard__stamp--super { left: 50%; top: 40%; transform: translateX(-50%); color: var(--rose); box-shadow: inset 0 0 0 2px var(--rose); white-space: nowrap; }
.phone__actions { position: absolute; left: 0; right: 0; bottom: 4.5%; display: flex; justify-content: center; gap: 6%; }
.phone__actions span {
  width: 15%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center;
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.phone__actions .i { width: 45%; height: 45%; }
.dna { position: absolute; inset: 15% 8% 17%; display: grid; place-content: center; justify-items: center; gap: 12px; text-align: center; opacity: 0; transform: scale(0.94); transition: opacity var(--enter) var(--ease), transform var(--enter) var(--ease); }
.dna__ring {
  width: 64%; aspect-ratio: 1; border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 38%, #7a8cff 38% 60%, var(--rose) 60% 82%, #2E2E38 82% 100%);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%);
}
.dna__label { font-size: 11px; color: var(--faint); }
.dna__title { font: 500 20px/1.1 var(--display); letter-spacing: -0.02em; }
.dna__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; }
.dna__chips span { font-size: 11px; padding: 4px 8px; border-radius: 6px; background: var(--raised); color: var(--muted); }

/* Phone states, one per step. */
.phone[data-step="1"] .pcard--live { animation: swipe-right 2.6s var(--ease) infinite; }
.phone[data-step="1"] .pcard__stamp--keep { animation: stamp 2.6s infinite; }
.phone[data-step="1"] .is-keep { background: var(--cyan); color: var(--bg); transform: scale(1.08); }
.phone[data-step="2"] .pcard--live { animation: swipe-up 2.6s var(--ease) infinite; }
.phone[data-step="2"] .pcard__stamp--super { animation: stamp 2.6s infinite; }
.phone[data-step="2"] .is-super { background: var(--rose); color: var(--bg); transform: scale(1.08); }
.phone[data-step="3"] .pcard { opacity: 0; transform: scale(0.9); transition: opacity var(--enter) var(--ease), transform var(--enter) var(--ease); }
.phone[data-step="3"] .dna { opacity: 1; transform: none; }
.phone[data-step="3"] .phone__actions { opacity: 0; }
@keyframes swipe-right {
  0%, 8% { transform: none; opacity: 1; }
  32% { transform: translateX(16%) rotate(6deg); }
  56% { transform: translateX(150%) rotate(24deg); opacity: 1; }
  57% { transform: none; opacity: 0; }
  74%, 100% { transform: none; opacity: 1; }
}
@keyframes swipe-up {
  0%, 8% { transform: none; opacity: 1; box-shadow: inset 0 0 0 1px var(--line); }
  32% { transform: translateY(-6%); box-shadow: inset 0 0 0 2px var(--rose); }
  56% { transform: translateY(-150%); opacity: 1; }
  57% { transform: none; opacity: 0; }
  74%, 100% { transform: none; opacity: 1; }
}
@keyframes stamp { 0%, 12% { opacity: 0; } 28%, 50% { opacity: 1; } 56%, 100% { opacity: 0; } }

@media (max-width: 860px) {
  .how__pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; gap: 16px; padding-top: 88px; }
  .how__copy { grid-row: 2; }
  .how__device { grid-row: 1; }
  .phone { width: clamp(172px, 44vw, 232px); }
  .how__title { font-size: 32px; margin-bottom: 8px; }
  .step { padding: 8px 0; }
  .step:not(.is-active) { display: none; }
}
@media (max-width: 860px) and (max-height: 700px) { .how__title { display: none; } }

/* ---------- Try it ---------- */
.try { padding: var(--section) var(--gutter); border-top: 1px solid var(--line); }
.try__head { display: grid; gap: 16px; max-width: 900px; margin-bottom: 64px; }
.try__lead { max-width: 36rem; color: var(--muted); }
.try__body { display: grid; grid-template-columns: 1fr minmax(260px, 340px); grid-template-rows: auto auto; gap: 32px 6vw; align-items: start; }
.deck {
  position: relative; grid-column: 1; justify-self: center; width: min(340px, 78vw); aspect-ratio: 3 / 4;
  margin-bottom: 32px; border-radius: 20px; touch-action: none; user-select: none; -webkit-user-select: none;
}
.deck__controls { grid-column: 1; grid-row: 2; display: flex; justify-content: center; gap: 16px; }
.round {
  width: 56px; height: 56px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--muted);
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
.round:hover { color: var(--text); background: var(--raised); }
.round:active { transform: scale(0.97); }
.round--keep:hover { background: var(--cyan); color: var(--bg); }
.round--super:hover { background: var(--rose); color: var(--bg); }
.round:disabled { opacity: 0.32; pointer-events: none; }

.gcard {
  position: absolute; inset: 0; border-radius: 20px; overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), 0 24px 48px -24px rgba(0, 0, 0, 0.8);
  transform-origin: 50% 120%; will-change: transform;
  transition: transform 560ms var(--ease), opacity 400ms var(--ease);
}
.gcard.is-dragging { transition: none; }
.gcard--static { position: relative; height: 100%; }
.gcard__art { position: absolute; left: 0; right: 0; top: 0; height: 64%; overflow: hidden; }
.gcard__body { position: absolute; left: 24px; right: 24px; bottom: 24px; display: grid; gap: 8px; }
.gcard__body h3 { font: 500 clamp(28px, 2.8vw, 36px)/1 var(--display); letter-spacing: -0.03em; }
.gcard__body p { color: var(--muted); font-size: 15px; line-height: 1.4; }
.gcard__tag { position: absolute; top: 16px; right: 16px; font: 400 12px/1 var(--body); padding: 4px 8px; border-radius: 6px; background: rgba(10, 10, 11, 0.72); }
.gcard__stamp {
  position: absolute; top: 24px; padding: 8px 12px; border-radius: 8px; opacity: 0; z-index: 2;
  font: 600 20px/1 var(--display); background: var(--bg); pointer-events: none;
}
.gcard__stamp--keep { left: 20px; color: var(--cyan); box-shadow: inset 0 0 0 2px var(--cyan); transform: rotate(-12deg); opacity: var(--keep, 0); }
.gcard__stamp--skip { right: 20px; color: var(--text); box-shadow: inset 0 0 0 2px var(--text); transform: rotate(12deg); opacity: var(--skip, 0); }
.gcard__stamp--super { left: 50%; top: 40%; transform: translateX(-50%); color: var(--rose); box-shadow: inset 0 0 0 2px var(--rose); opacity: var(--super, 0); white-space: nowrap; }

/* Generated cover art: no real album covers on the site. */
.art-a { background: radial-gradient(circle at 30% 30%, #00E5FF, transparent 55%), radial-gradient(circle at 75% 70%, #FF2D95, transparent 50%), #1b1430; }
.art-b { background: conic-gradient(from 200deg at 60% 40%, #FF2D95, #ffb36b, #2a1640, #FF2D95); }
.art { position: absolute; inset: 0; }
.art::before, .art::after { content: ''; position: absolute; }
.art--rings { background: repeating-radial-gradient(circle at 50% 110%, var(--c1) 0 14px, var(--c2) 14px 28px); }
.art--sun { background: linear-gradient(180deg, var(--c1), var(--c2)); }
.art--sun::before { width: 56%; aspect-ratio: 1; left: 22%; top: 24%; border-radius: 50%; background: repeating-linear-gradient(180deg, var(--c3) 0 10px, transparent 10px 16px); }
.art--grid { background: var(--c2); background-image: linear-gradient(var(--c1) 2px, transparent 2px), linear-gradient(90deg, var(--c1) 2px, transparent 2px); background-size: 28px 28px; }
.art--grid::before { width: 50%; aspect-ratio: 1; right: -8%; bottom: -10%; border-radius: 50%; background: var(--c3); mix-blend-mode: screen; }
.art--blur { background: var(--c2); }
.art--blur::before { inset: -20%; background: radial-gradient(circle at 30% 40%, var(--c1), transparent 45%), radial-gradient(circle at 70% 60%, var(--c3), transparent 45%); filter: blur(24px); }
.art--stripes { background: repeating-linear-gradient(-35deg, var(--c1) 0 18px, var(--c2) 18px 36px, var(--c3) 36px 54px); }
.art--waves { background: var(--c2); }
.art--waves::before { inset: 0; background: radial-gradient(ellipse 60% 30% at 50% 100%, var(--c1), transparent), repeating-radial-gradient(ellipse at 50% 120%, transparent 0 18px, var(--c3) 18px 20px); }
.art--blocks { background: linear-gradient(90deg, var(--c1) 0 33%, var(--c2) 33% 66%, var(--c3) 66%); }
.art--blocks::before { width: 40%; height: 40%; left: 30%; top: 30%; border-radius: 50%; background: var(--bg); }
.art--dots { background: var(--c2); background-image: radial-gradient(var(--c1) 22%, transparent 24%); background-size: 22px 22px; }
.art--dots::before { width: 70%; height: 70%; left: 15%; top: 15%; border-radius: 28px; background: linear-gradient(135deg, var(--c3), transparent); }

.deck__done { position: absolute; inset: 0; display: grid; align-content: center; gap: 16px; padding: 28px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-strong); }
.deck__done[hidden] { display: none; }
.deck__label { font-size: 14px; color: var(--faint); }
.deck__summary { font: 500 clamp(22px, 2.2vw, 28px)/1.2 var(--display); letter-spacing: -0.02em; }
.deck__summary em { font-style: normal; color: var(--cyan); }
.deck__done-cta { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.deck__done-cta .btn { justify-content: center; }

.tray { grid-column: 2; grid-row: 1 / 3; padding: 24px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); min-height: 200px; }
.tray__label { font-size: 14px; color: var(--faint); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.tray__label span { color: var(--text); }
.tray__chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tray__chips li {
  padding: 8px 12px; border-radius: 8px; background: var(--raised); font-weight: 500; font-size: 15px;
  animation: chip-in 300ms var(--ease) both;
}
.tray__chips li.is-super { background: var(--rose); color: var(--bg); }
.tray__chips li.tray__empty { color: var(--faint); font-size: 15px; font-weight: 400; background: none; padding: 0; animation: none; }
@keyframes chip-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 860px) {
  .try__body { grid-template-columns: 1fr; }
  .tray { grid-column: 1; grid-row: 3; min-height: 0; }
}

/* ---------- Features ---------- */
.features { position: relative; border-top: 1px solid var(--line); }
.features__pin { padding: var(--section) 0 96px; }
.features__intro { padding: 0 var(--gutter); margin-bottom: 40px; display: grid; gap: 16px; }
.features__count { font: 500 14px/1 var(--display); color: var(--faint); font-variant-numeric: tabular-nums; }
.features__count span { color: var(--text); }
.features__track {
  display: flex; gap: 16px; padding: 0 var(--gutter); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.features__track::-webkit-scrollbar { display: none; }
.panel {
  position: relative; flex: 0 0 min(84vw, 560px); height: min(72vh, 600px); min-height: 440px; scroll-snap-align: center;
  display: grid; grid-template-rows: 1fr auto; border-radius: 20px; overflow: hidden;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line);
}
.panel__art { position: relative; display: grid; place-items: center; overflow: hidden; }
.panel__copy { padding: 24px 28px 28px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.panel__n { font: 500 13px/1 var(--display); color: var(--faint); font-variant-numeric: tabular-nums; }
.panel h3 { font: 500 clamp(26px, 2.6vw, 36px)/1.05 var(--display); letter-spacing: -0.03em; }
.panel p { color: var(--muted); max-width: 420px; }

/* Desktop: the track is pinned and scrolls sideways as the page scrolls down; panels swing in 3D. */
html.pin-features .features__pin { position: sticky; top: 0; height: 100svh; display: grid; grid-template-columns: minmax(280px, 30vw) minmax(0, 1fr); align-items: center; padding: 0; overflow: hidden; perspective: 1600px; }
html.pin-features .features__intro { margin: 0; padding: 0 0 0 var(--gutter); position: relative; z-index: 3; }
html.pin-features .features__track { overflow: visible; padding: 0 var(--gutter) 0 0; will-change: transform; transform-style: preserve-3d; }
html.pin-features .panel { flex-basis: min(38vw, 560px); height: min(74vh, 640px); will-change: transform; }

.daily { position: relative; width: 60%; height: 64%; }
.daily__card {
  position: absolute; inset: 0; border-radius: 16px; display: grid; place-items: end start; padding: 16px;
  font: 500 18px/1 var(--display); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-strong);
  transform: translate(calc(var(--k) * -24px), calc(var(--k) * -16px)) rotate(calc(var(--k) * -4deg));
}
.daily__card:nth-child(1) { --k: 3; opacity: 0.4; } .daily__card:nth-child(2) { --k: 2; opacity: 0.6; } .daily__card:nth-child(3) { --k: 1; opacity: 0.8; }
.daily__card.is-today { --k: 0; background: var(--grad); color: var(--bg); font-size: 28px; }

.dig { width: 86%; overflow: visible; }
.dig path { fill: none; stroke: url(#g-brand); stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 1.6s var(--ease); }
.panel.is-in .dig path { stroke-dashoffset: 0; }
.dig circle { fill: var(--raised); stroke: var(--line-strong); stroke-width: 2; }
.dig .dig__root { fill: var(--cyan); stroke: none; }
.dig text { fill: var(--muted); font: 400 13px var(--body); text-anchor: middle; }

.ring { width: min(62%, 300px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; position: relative; }
.ring::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--cyan) 0 34%, #7a8cff 34% 58%, var(--rose) 58% 80%, #ffb36b 80% 90%, #2E2E38 90% 100%);
  -webkit-mask: radial-gradient(circle, transparent 60%, #000 61%); mask: radial-gradient(circle, transparent 60%, #000 61%);
}
.ring span { font: 500 clamp(20px, 2vw, 28px)/1.1 var(--display); letter-spacing: -0.02em; text-align: center; }

.burst { width: 40%; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: var(--rose); color: var(--bg); }
.burst .i { width: 44%; height: 44%; fill: currentColor; stroke-width: 1; }

.services { list-style: none; padding: 0; display: grid; gap: 8px; width: 72%; }
.services li {
  display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: 12px;
  font: 500 clamp(17px, 1.6vw, 22px)/1 var(--display); letter-spacing: -0.01em;
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line);
}
.services .i { color: var(--faint); }

.streak { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; width: 64%; }
.streak i { aspect-ratio: 1; border-radius: 6px; background: var(--raised); }
.streak i:nth-child(3n+1), .streak i:nth-child(5n) { background: rgba(0, 229, 255, 0.32); }
.streak i:nth-child(n+15):nth-child(-n+25) { background: var(--cyan); }
.streak i:nth-child(26) { background: var(--grad); }
.streak i:nth-child(n+27) { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }

/* ---------- Statement (light slab, opens out of a small window on scroll) ---------- */
.statement {
  margin: 0 clamp(8px, 1.4vw, 16px); padding: clamp(96px, 14vw, 192px) var(--gutter);
  border-radius: clamp(24px, 3vw, 40px); background: var(--text); color: var(--bg); will-change: clip-path;
}
.statement__text { font: 500 clamp(32px, 5.2vw, 80px)/1.04 var(--display); letter-spacing: -0.03em; max-width: 22ch; }
.statement__text .w { transition: opacity 240ms var(--ease); }
html.js .statement__text .w { opacity: 0.16; }
html.js .statement__text .w.is-lit { opacity: 1; }

/* ---------- Install ---------- */
.install { padding: var(--section) var(--gutter); display: grid; gap: 24px; }
.install__lead { max-width: 36rem; color: var(--muted); }
.install__url { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin: 16px 0; }
.install__link {
  font: 500 clamp(28px, 5vw, 72px)/1.1 var(--display); letter-spacing: -0.03em; text-decoration: none;
  background: linear-gradient(var(--line-strong), var(--line-strong)) left bottom / 100% 2px no-repeat; padding-bottom: 4px;
  transition: color var(--fast) var(--ease); overflow-wrap: anywhere;
}
.install__link:hover { color: var(--cyan); }
.install__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.howto { padding: 28px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.howto h3 { font: 500 28px/1 var(--display); letter-spacing: -0.02em; margin-bottom: 20px; }
.howto ol { padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.howto li { counter-increment: s; position: relative; padding-left: 36px; color: var(--muted); }
.howto li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font: 500 12px/1 var(--body); background: var(--raised); color: var(--text); font-variant-numeric: tabular-nums; }
.howto strong { color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .install__grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { position: relative; padding: var(--section) var(--gutter) 0; border-top: 1px solid var(--line); overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 32px; }
.footer__cta { max-width: 14ch; font: 500 clamp(36px, 5vw, 72px)/1.04 var(--display); letter-spacing: -0.03em; }
.footer__cols { display: grid; grid-template-columns: auto 1fr auto; gap: 24px 48px; align-items: start; margin-top: 96px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 14px; color: var(--faint); }
.footer__cols nav { display: grid; gap: 8px; }
.footer__cols nav a { text-decoration: none; color: var(--muted); transition: color var(--fast) var(--ease); }
.footer__cols nav a:hover { color: var(--text); }
.footer__credits { max-width: 36rem; }
.footer__credits a { color: var(--muted); }
.footer__word {
  font: 500 clamp(120px, 31vw, 560px)/0.74 var(--display); letter-spacing: -0.06em; text-align: center;
  margin: 48px -0.04em 0; transform: translateY(14%); user-select: none; color: var(--raised); perspective: 800px;
}
.footer__word .char { display: inline-block; transform-origin: 50% 100%; transition: transform 900ms var(--ease), color var(--fast) var(--ease); transition-delay: calc(var(--i) * 60ms); }
html.js .footer__word .char { transform: rotateX(-95deg); }
html.js .footer__word.is-in .char { transform: none; }
.footer__word .char:hover { color: var(--cyan); transition-delay: 0s; }
@media (max-width: 760px) { .footer__cols { grid-template-columns: 1fr; } .footer__top .btn { width: 100%; justify-content: center; } }

.defs { position: absolute; }

/* ---------- 3D and transitions ---------- */

/* Section titles flip up into place, hinged on their baseline. */
html.js .section-title.reveal { opacity: 0; transform: perspective(900px) rotateX(-75deg) translateY(24px); transform-origin: 50% 100%; transition: opacity 640ms var(--ease), transform 800ms var(--ease); }
html.js .section-title.reveal.is-in { opacity: 1; transform: none; }

/* Wipe: a gradient circle grows from where you clicked, then the app opens. */
.wipe {
  position: fixed; inset: 0; z-index: 170; pointer-events: none; background: var(--grad);
  clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); transition: clip-path 720ms var(--ease);
  display: grid; place-items: center;
}
.wipe.is-on { clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); pointer-events: auto; }
.wipe svg { width: 80px; height: 80px; opacity: 0; transform: scale(0.6) rotate(-20deg); transition: opacity 400ms var(--ease) 320ms, transform 640ms var(--ease) 320ms; }
.wipe.is-on svg { opacity: 1; transform: none; }

/* Install cards tilt toward the pointer. */
[data-tilt-card] { transition: transform 480ms var(--ease), opacity var(--enter) var(--ease); transform: perspective(900px) rotateX(var(--trx, 0deg)) rotateY(var(--try, 0deg)); }

/* ---------- Reduced motion and no-JS safety ---------- */
html.reduce *, html.reduce *::before, html.reduce *::after { animation: none !important; transition: none !important; }
html.reduce .reveal, html.reduce .split .char, html.reduce .section-title.reveal { opacity: 1 !important; transform: none !important; }
html.reduce .stack__card { opacity: 1 !important; }
html.reduce .footer__word .char { transform: none !important; }
html.reduce .orbit { height: auto; }
html.reduce .orbit__pin { position: relative; height: auto; min-height: 90svh; }
html.reduce .wipe { display: none; }
html.fallback .reveal, html.fallback .split .char, html.fallback .section-title.reveal { opacity: 1 !important; transform: none !important; }
html.fallback .stack__card { opacity: 1 !important; }
html.fallback .statement__text .w { opacity: 1; }
html.fallback .footer__word .char { transform: none !important; }
