/* ==========================================================================
   ZUNIFY: the site is the player.
   Zune Metro typography · Zune HD panorama · WP7 live tiles · Web Audio
   ========================================================================== */

:root {
  --bg: #050506;
  --bg-2: #0b0b0d;
  --tile: #111114;
  --tile-2: #17171b;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f5f5f6;
  --text-2: #a3a3ab;
  --text-3: #5d5d66;

  --accent: #ec008c;
  --accent-rgb: 236, 0, 140;
  --accent-2: #ff6a00;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Outfit', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  --gutter: clamp(20px, 5vw, 80px);
}

/* The classic Zune pink → orange, plus the other five accents */
body[data-accent="magenta"] { --accent: #ec008c; --accent-rgb: 236, 0, 140;  --accent-2: #ff6a00; }
body[data-accent="orange"]  { --accent: #ff5000; --accent-rgb: 255, 80, 0;   --accent-2: #ffc400; }
body[data-accent="cyan"]    { --accent: #00a2e8; --accent-rgb: 0, 162, 232;  --accent-2: #8a5cff; }
body[data-accent="green"]   { --accent: #8cbf26; --accent-rgb: 140, 191, 38; --accent-2: #00c2a8; }
body[data-accent="red"]     { --accent: #e50914; --accent-rgb: 229, 9, 20;   --accent-2: #ff8a00; }
body[data-accent="yellow"]  { --accent: #ffb900; --accent-rgb: 255, 185, 0;  --accent-2: #ff3d6e; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
code, .mono { font-family: var(--mono); font-weight: 400; }
code {
  font-size: 0.82em;
  padding: 1px 6px;
  background: rgba(255, 255, 255, 0.07);
  border-radius: 3px;
  color: var(--text);
}
::selection { background: rgba(var(--accent-rgb), 0.5); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.zune-gradient {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-2) 60%, var(--accent) 120%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-flow 8s ease-in-out infinite alternate;
}
@keyframes gradient-flow { to { background-position: 100% 0; } }

/* Film grain over everything: analog warmth */
.grain {
  position: fixed;
  inset: -50%;
  z-index: 200;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.8s steps(4) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-3%, 2%); }
  50% { transform: translate(2%, -3%); }
  75% { transform: translate(-2%, -1%); }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 54px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 1rem;
  white-space: nowrap;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background-color 0.3s, color 0.3s, border-color 0.3s;
}
.btn small { font-weight: 400; opacity: 0.7; font-size: 0.82em; }
.btn-primary {
  color: #fff;
  background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--accent-2)));
  box-shadow: 0 10px 40px -10px rgba(var(--accent-rgb), 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 18px 50px -10px rgba(var(--accent-rgb), 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25); }
.btn-line { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, 0.03); backdrop-filter: blur(8px); }
.btn-line:hover { border-color: var(--accent); color: #fff; background: rgba(var(--accent-rgb), 0.12); transform: translateY(-3px); }
.btn-block { width: 100%; }
.btn-two { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-two small { font-size: 0.72rem; margin-top: 3px; }
.js-os-icon:empty { display: none; }
.js-os-icon svg { display: block; width: 20px; height: 20px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 76px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: background-color 0.4s, backdrop-filter 0.4s, border-color 0.4s, height 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  height: 64px;
  background: rgba(5, 5, 6, 0.72);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom-color: var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-disc {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(from 210deg, var(--accent), var(--accent-2), var(--accent));
  box-shadow: 0 0 24px -4px rgba(var(--accent-rgb), 0.8);
  animation: spin 9s linear infinite;
}
.brand-disc span {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--bg);
  display: grid; place-items: center;
  font-size: 0.95rem;
  font-weight: 500;
  padding-bottom: 2px;
  animation: spin 9s linear infinite reverse;
}
.brand-word { font-size: 1.4rem; font-weight: 300; letter-spacing: 0.01em; }

.nav-pivot { display: flex; gap: clamp(18px, 3vw, 40px); }
.nav-pivot a {
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--text-3);
  transition: color 0.25s;
}
.nav-pivot a:hover, .nav-pivot a.active { color: var(--text); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-weight: 500;
  font-size: 0.92rem;
  transition: background-color 0.3s, border-color 0.3s;
}
.nav-cta:hover { background: var(--accent); border-color: var(--accent); }
.nav-cta .js-os-icon svg { width: 15px; height: 15px; }

/* ==========================================================================
   1. HERO
   ========================================================================== */
.hero {
  --bass: 0;
  --energy: 0;
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px var(--gutter) 30px;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

/* Album-art mosaic, straight from the app's Now Playing */
.mosaic {
  position: absolute;
  inset: -3%;
  z-index: -3;
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  grid-auto-rows: calc(106vw / 9);
  grid-auto-flow: dense;
  gap: 3px;
  opacity: 0.62;
  transform: scale(calc(1.03 + var(--bass) * 0.035));
  transition: transform 0.12s linear;
}
.m-tile {
  position: relative;
  perspective: 900px;
  background: #0d0d10;
}
.m-tile.span2 { grid-column: span 2; grid-row: span 2; }
.m-tile.wide { grid-column: span 2; }
.m-tile.tall { grid-row: span 2; }
.m-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.9s var(--ease);
}
.m-tile.flipped .m-inner { transform: rotateY(180deg); }
.m-inner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  filter: brightness(0.62) saturate(1.15);
  transition: filter 0.5s;
}
.m-inner img + img { transform: rotateY(180deg); }
.m-tile.hit img { filter: brightness(1.05) saturate(1.3); transition-duration: 0.05s; }

.hero-tint {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.94) 0%, rgba(5, 5, 6, 0.72) 38%, rgba(5, 5, 6, 0.28) 70%, rgba(5, 5, 6, 0.55) 100%),
    linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 6, 0) 26%),
    linear-gradient(180deg, rgba(5, 5, 6, 0.85) 0%, rgba(5, 5, 6, 0) 18%),
    radial-gradient(60% 70% at 72% 50%, rgba(var(--accent-rgb), calc(0.18 + var(--bass) * 0.25)), transparent 70%);
}

/* Giant drifting type rows */
.typeart { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.type-row { position: absolute; left: 0; white-space: nowrap; line-height: 0.85; }
.type-track { display: inline-flex; will-change: transform; }
.type-track span { padding-right: 0.35em; }
.type-row.r1 { top: 9%; font-size: clamp(8rem, 24vw, 26rem); font-weight: 100; letter-spacing: -0.04em; color: rgba(255, 255, 255, 0.06); }
.type-row.r2 { top: 50%; font-size: clamp(2.6rem, 6.4vw, 7rem); font-weight: 800; text-transform: uppercase; letter-spacing: -0.02em; color: rgba(255, 255, 255, 0.07); }
.type-row.r3 { bottom: 15%; font-size: clamp(5rem, 14vw, 15rem); font-weight: 200; letter-spacing: -0.03em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, 0.1); }
.type-row.r4 { top: 84px; font-size: clamp(1rem, 1.8vw, 1.6rem); font-family: var(--mono); color: rgba(var(--accent-rgb), 0.55); letter-spacing: 0.05em; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(30px, 5vw, 90px);
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  font-size: 0.95rem;
  color: var(--text-2);
}
.live-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(var(--accent-rgb), 0.6);
  animation: pulse 2s ease-out infinite;
}
@keyframes pulse { to { box-shadow: 0 0 0 12px rgba(var(--accent-rgb), 0); } }
.ver:not(:empty) {
  font-family: var(--mono);
  font-size: 0.75rem;
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  color: var(--text);
}

.hero-title {
  margin: 0;
  font-size: clamp(4.2rem, 10.5vw, 11rem);
  font-weight: 200;
  line-height: 0.86;
  letter-spacing: -0.055em;
}
.hero-title > span { display: block; padding-bottom: 0.06em; }
.hero-title .zune-gradient { font-weight: 300; }

.hero-lede {
  max-width: 520px;
  margin: 30px 0 0;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  color: var(--text-2);
}

.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }

/* ---------- The disc ---------- */
.disc-stage {
  position: relative;
  justify-self: center;
  width: min(36vw, 500px);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.spectrum {
  position: absolute;
  inset: -34%;
  width: 168%;
  height: 168%;
  pointer-events: none;
}
.disc {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  transform: scale(calc(1 + var(--bass) * 0.045));
  transition: transform 0.08s linear, box-shadow 0.3s;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.14),
    0 0 0 12px rgba(255, 255, 255, 0.025),
    0 30px 90px -20px rgba(0, 0, 0, 0.9),
    0 0 calc(60px + var(--bass) * 120px) rgba(var(--accent-rgb), calc(0.25 + var(--bass) * 0.45));
}
.disc-art {
  position: absolute;
  inset: 0;
  animation: spin 14s linear infinite;
  animation-play-state: paused;
}
.playing .disc-art { animation-play-state: running; }
.disc-art img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.6s; }
.disc-grooves {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 0 27%, rgba(0, 0, 0, 0.35) 27.5% 28.5%, transparent 29%),
    repeating-radial-gradient(circle, rgba(0, 0, 0, 0) 0 3px, rgba(0, 0, 0, 0.16) 3px 4px),
    conic-gradient(from 30deg, rgba(255, 255, 255, 0) 0deg, rgba(255, 255, 255, 0.13) 40deg, rgba(255, 255, 255, 0) 90deg, rgba(255, 255, 255, 0) 200deg, rgba(255, 255, 255, 0.09) 230deg, rgba(255, 255, 255, 0) 270deg);
  mix-blend-mode: hard-light;
}
.disc-hub {
  position: absolute;
  left: 50%; top: 50%;
  width: 27%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(8, 8, 10, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.4s var(--ease), background-color 0.3s, border-color 0.3s;
}
.disc:hover .disc-hub { transform: translate(-50%, -50%) scale(1.08); border-color: var(--accent); }
.disc-hub svg { width: 38%; height: 38%; fill: #fff; }
.disc-hub .i-play { margin-left: 8%; }
.i-pause { display: none; }
.playing .i-pause { display: block; }
.playing .i-play { display: none; }

.disc-hint {
  position: absolute;
  bottom: -64px;
  left: 0; right: 0;
  margin: 0;
  text-align: center;
  font-size: 1rem;
  color: var(--text-2);
}
.disc-hint .mono { font-size: 0.72rem; color: var(--text-3); }

.hero-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding-top: 40px;
}
.np-chip { display: flex; flex-direction: column; gap: 2px; opacity: 0.55; transition: opacity 0.5s; }
.playing .np-chip { opacity: 1; }
.np-chip .mono { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--accent); }
.np-chip b { font-size: 1.25rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.02em; }
.np-chip span:last-child { color: var(--text-2); font-size: 0.95rem; }

.scroll-cue {
  width: 28px; height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--line-2);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.scroll-cue span {
  width: 3px; height: 9px;
  border-radius: 3px;
  background: var(--accent);
  animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(16px); opacity: 0; } 100% { opacity: 0; } }

/* Intro choreography */
.intro { opacity: 0; transform: translateY(50px); animation: intro 1.4s var(--ease) forwards; }
.i1 { animation-delay: 0.15s; }
.i2 { animation-delay: 0.3s; }
.i3 { animation-delay: 0.45s; }
.i4 { animation-delay: 0.65s; }
.i5 { animation-delay: 0.8s; }
.disc-stage.intro { transform: scale(0.85) rotate(-25deg); animation-name: intro-disc; animation-duration: 1.8s; }
@keyframes intro { to { opacity: 1; transform: none; } }
@keyframes intro-disc { to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   2. MANIFESTO
   ========================================================================== */
.manifesto { height: 280vh; position: relative; }
.manifesto-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--gutter);
}
.label {
  margin: 0 0 26px;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.manifesto-text {
  margin: 0;
  max-width: 1300px;
  font-size: clamp(2.1rem, 5.6vw, 5.6rem);
  font-weight: 300;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
.manifesto-text .w {
  color: #1d1d22;
  transition: color 0.35s, text-shadow 0.35s;
}
.manifesto-text .w.lit { color: var(--text); }
.manifesto-text .w.em.lit {
  background: linear-gradient(100deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 400;
}

/* ==========================================================================
   3. PANORAMA
   ========================================================================== */
.panorama { position: relative; height: 500vh; }
.pano-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}
.pano-title {
  position: absolute;
  top: 2vh;
  left: 0;
  font-size: 46vh;
  font-weight: 100;
  line-height: 0.8;
  letter-spacing: -0.05em;
  color: rgba(255, 255, 255, 0.045);
  white-space: nowrap;
  will-change: transform;
  pointer-events: none;
}
.pano-track {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7vw;
  padding: 60px 30vw 0 var(--gutter);
  width: max-content;
  will-change: transform;
}
.pano-panel { width: min(60vw, 960px, calc((100vh - 300px) * 1.52)); flex-shrink: 0; }
.pano-panel header { display: flex; flex-direction: column; margin-bottom: 18px; }
.pano-panel header .mono { font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.pano-panel h2 {
  margin: 0 0 0 -0.04em;
  font-size: clamp(3.4rem, 7.4vw, 7.4rem);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.shot {
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #000;
  box-shadow: 0 50px 120px -40px rgba(var(--accent-rgb), 0.45), 0 30px 60px -30px #000;
  transform: perspective(1400px) rotateY(var(--ry, 0deg)) scale(var(--s, 1));
  transition: transform 0.2s linear;
}
.shot img { width: 100%; }
.pano-panel p { max-width: 560px; margin: 20px 0 0; color: var(--text-2); font-size: 1.08rem; }

.pano-progress {
  position: absolute;
  left: var(--gutter); right: var(--gutter); bottom: 34px;
  height: 2px;
  background: var(--line);
}
.pano-progress span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ==========================================================================
   4. LIVE TILES
   ========================================================================== */
.tiles-section, .demo, .download { padding: 160px var(--gutter); position: relative; }

.section-head { max-width: 900px; margin-bottom: 60px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.display {
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.6rem);
  font-weight: 200;
  line-height: 0.95;
  letter-spacing: -0.045em;
}
.display.giant { font-size: clamp(4.4rem, 13vw, 13rem); line-height: 0.85; }
.ghost { color: var(--text-3); }
.lede { margin: 24px 0 0; color: var(--text-2); font-size: 1.15rem; max-width: 640px; }
.center .lede { margin-left: auto; margin-right: auto; }

.tiles {
  --beat: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(200px, 18vw, 270px);
  gap: 10px;
  perspective: 1200px;
}
.tile {
  position: relative;
  overflow: hidden;
  background: var(--tile);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transform: rotateX(var(--tx, 0deg)) rotateY(var(--ty, 0deg));
  transition: transform 0.25s var(--ease), background-color 0.3s;
}
.tile:hover { background: var(--tile-2); }
.tile h3 { margin: 0 0 6px; font-size: 1.55rem; font-weight: 300; line-height: 1.1; letter-spacing: -0.015em; }
.tile p { margin: 0; color: var(--text-2); font-size: 0.95rem; line-height: 1.45; }
.tile .mono { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; }

.t-np { grid-column: span 2; grid-row: span 2; padding: 0; }
.t-formats { grid-column: span 2; }
.t-keys { grid-column: span 2; }

/* Live peek (cover ↔ text) */
.peek { position: absolute; inset: 0; transition: transform 1.1s var(--ease); }
.live-peek.peeked .peek { transform: translateY(-100%); }
.peek .face { position: absolute; left: 0; right: 0; height: 100%; }
.peek .face-a { top: 0; }
.peek .face-a img { width: 100%; height: 100%; object-fit: cover; }
.peek .face-b {
  top: 100%;
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 45%, var(--accent-2)));
}
.peek .face-b h3 { font-size: clamp(2rem, 3.4vw, 3.2rem); font-weight: 300; line-height: 1; margin-bottom: 18px; }
.peek .face-b p { color: rgba(255, 255, 255, 0.85); font-size: 1.05rem; max-width: 34ch; }
.peek .face-b .mono { position: absolute; top: 30px; left: 34px; }

.accent-tile { background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--accent-2))); }
.accent-tile:hover { background: linear-gradient(150deg, var(--accent), color-mix(in srgb, var(--accent) 40%, var(--accent-2))); }
.accent-tile p { color: rgba(255, 255, 255, 0.85); }
.t-formats .mono { position: absolute; top: 24px; left: 26px; }

.ticker { height: clamp(4.4rem, 8vw, 7.4rem); overflow: hidden; margin-bottom: 8px; }
.ticker-inner { display: flex; flex-direction: column; transition: transform 0.7s var(--ease); }
.ticker-inner b {
  height: clamp(4.4rem, 8vw, 7.4rem);
  font-size: clamp(4.4rem, 8vw, 7.4rem);
  line-height: 1;
  font-weight: 200;
  letter-spacing: -0.04em;
}

.t-private { perspective: 600px; }
.flip { position: absolute; inset: 26px 26px auto 26px; height: 55%; transform-style: preserve-3d; transition: transform 0.9s var(--ease); }
.t-private.flipped .flip { transform: rotateX(180deg); }
.flip .face { position: absolute; inset: 0; backface-visibility: hidden; display: flex; align-items: flex-end; gap: 12px; }
.flip .face-b { transform: rotateX(180deg); }
.huge { font-size: clamp(4rem, 7vw, 6.4rem); line-height: 0.8; font-weight: 100; color: var(--accent); }
.flip .mono { padding-bottom: 6px; color: var(--text-2); }

.eq {
  position: absolute;
  inset: 26px 26px auto 26px;
  height: 52%;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.eq i {
  flex: 1;
  height: 100%;
  transform-origin: 50% 100%;
  transform: scaleY(0.06);
  background: linear-gradient(0deg, var(--accent), var(--accent-2));
  border-radius: 2px 2px 0 0;
}

.heart {
  position: absolute;
  top: 26px; left: 26px;
  width: 54px; height: 54px;
  fill: var(--accent);
  filter: drop-shadow(0 0 calc(8px + var(--beat) * 26px) rgba(var(--accent-rgb), 0.8));
  transform: scale(calc(1 + var(--beat) * 0.28));
  transition: transform 0.08s linear;
  animation: heartbeat 1.6s ease-in-out infinite;
}
.tiles.playing .heart { animation: none; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.18); } 30% { transform: scale(1); } 45% { transform: scale(1.12); } }

.keys { position: absolute; top: 26px; left: 26px; display: flex; gap: 8px; }
kbd {
  font-family: var(--mono);
  font-size: 1.1rem;
  min-width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: linear-gradient(180deg, #232329, #18181d);
  border: 1px solid var(--line-2);
  box-shadow: 0 3px 0 #0a0a0c, inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: var(--text);
  transition: transform 0.1s, box-shadow 0.1s, color 0.2s;
}
kbd.wide { min-width: 74px; }
kbd.pressed { transform: translateY(3px); box-shadow: 0 0 0 #0a0a0c, inset 0 1px 0 rgba(255, 255, 255, 0.08); color: var(--accent); }
kbd.inline { display: inline-grid; min-width: 0; height: auto; padding: 0 6px; font-size: 0.78em; border-radius: 4px; box-shadow: 0 2px 0 #0a0a0c; vertical-align: 1px; }

.t-accents { justify-content: space-between; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  width: 30px; height: 30px;
  position: relative;
  transition: transform 0.3s var(--ease);
}
.swatch:hover { transform: scale(1.18); }
.swatch[data-accent="magenta"] { background: #ec008c; }
.swatch[data-accent="orange"]  { background: #ff5000; }
.swatch[data-accent="cyan"]    { background: #00a2e8; }
.swatch[data-accent="green"]   { background: #8cbf26; }
.swatch[data-accent="red"]     { background: #e50914; }
.swatch[data-accent="yellow"]  { background: #ffb900; }
.swatch.active::after { content: ''; position: absolute; inset: -5px; border: 2px solid #fff; }

/* ==========================================================================
   5. DEMO
   ========================================================================== */
.device {
  max-width: 1400px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line-2);
  background: #101010;
  box-shadow: 0 60px 140px -50px rgba(var(--accent-rgb), 0.5), 0 40px 80px -40px #000;
}
.device-bar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #0e0e11;
  border-bottom: 1px solid var(--line);
}
.device-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b2b30; }
.device-bar i:nth-child(1) { background: #ff5f57; }
.device-bar i:nth-child(2) { background: #febc2e; }
.device-bar i:nth-child(3) { background: #28c840; }
.device-bar span { margin-left: 10px; font-size: 0.72rem; color: var(--text-3); }
.device-screen { position: relative; aspect-ratio: 16 / 10; max-height: 82vh; width: 100%; }
.device-screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ==========================================================================
   6. DOWNLOAD
   ========================================================================== */
.download { overflow: hidden; isolation: isolate; padding-bottom: 110px; }
.dl-bloom {
  position: absolute;
  z-index: -1;
  left: 50%; top: 30%;
  width: 1400px; height: 900px;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(var(--accent-rgb), 0.22), transparent 70%);
  pointer-events: none;
}
.label .js-version-text:not(:empty) { color: var(--text-2); }

.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 1200px;
  margin: 0 auto;
}
.dl {
  position: relative;
  padding: 32px;
  background: rgba(17, 17, 20, 0.88);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 2px solid transparent;
  transition: transform 0.5s var(--ease), border-color 0.3s;
}
.dl:hover { transform: translateY(-6px); }
.dl.recommended { border-top-color: var(--accent); box-shadow: 0 40px 90px -40px rgba(var(--accent-rgb), 0.7); }
.dl-top { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 28px; }
.dl-top svg { width: 38px; height: 38px; color: var(--text); }
.dl-badge { display: none; font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(var(--accent-rgb), 0.5); border-radius: 999px; padding: 3px 10px; }
.recommended .dl-badge { display: inline-block; }
.dl h3 { margin: 0; font-size: 2.4rem; font-weight: 200; line-height: 1; letter-spacing: -0.03em; }
.dl-sub { margin: 0 0 18px; color: var(--text-3); font-size: 0.95rem; }
.dl-tip { margin: 8px 0 0; font-size: 0.84rem; color: var(--text-3); line-height: 1.5; }
.dl-tip em { font-style: normal; color: var(--text-2); }

.specs {
  max-width: 1200px;
  margin: 70px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.specs dt { font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-3); margin-bottom: 6px; }
.specs dd { margin: 0; color: var(--text-2); font-size: 0.98rem; }
.specs a { color: var(--text); border-bottom: 1px solid var(--line-2); }
.specs a:hover { color: var(--accent); border-color: var(--accent); }

/* ==========================================================================
   7. FOOTER
   ========================================================================== */
.footer { padding: 40px var(--gutter) 120px; border-top: 1px solid var(--line); overflow: hidden; }
.wordmark {
  display: flex;
  justify-content: space-between;
  font-size: 25vw;
  font-weight: 200;
  line-height: 0.78;
  letter-spacing: -0.06em;
  margin: 0;
  height: 0.8em;
  align-items: flex-end;
  user-select: none;
}
.wordmark span {
  display: inline-block;
  transform-origin: 50% 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(var(--accent-rgb), 0.9) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  will-change: transform;
}
.footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 30px;
  color: var(--text-3);
  font-size: 0.92rem;
}
.footer-row p { margin: 0; }
.footer-row nav { display: flex; gap: 24px; }
.footer-row nav a { color: var(--text-2); transition: color 0.2s; }
.footer-row nav a:hover { color: var(--accent); }

/* ==========================================================================
   MINI PLAYER
   ========================================================================== */
.miniplayer {
  --beat: 0;
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 150;
  width: min(560px, calc(100% - 24px));
  height: 68px;
  padding: 10px 12px 10px 10px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 16px;
  background: rgba(14, 14, 17, 0.78);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 60px -15px rgba(0, 0, 0, 0.9), 0 0 calc(var(--beat) * 50px) rgba(var(--accent-rgb), 0.35);
  transform: translate(-50%, 150%);
  opacity: 0;
  transition: transform 0.7s var(--ease), opacity 0.5s;
  overflow: hidden;
}
.miniplayer.show { transform: translate(-50%, 0); opacity: 1; }
.mp-art { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.mp-meta { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.mp-meta b { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-meta span { color: var(--text-2); font-size: 0.82rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.mp-eq i { width: 3px; height: 100%; background: var(--accent); transform-origin: 50% 100%; transform: scaleY(0.2); border-radius: 2px; }
.mp-controls { display: flex; align-items: center; gap: 4px; }
.mp-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background-color 0.2s, transform 0.2s;
}
.mp-btn:hover { background: rgba(255, 255, 255, 0.08); }
.mp-btn svg { width: 20px; height: 20px; fill: currentColor; }
.mp-play { width: 44px; height: 44px; border: 1.5px solid #fff; }
.mp-play:hover { border-color: var(--accent); }
.mp-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, 0.06); }
.mp-progress span {
  position: absolute;
  inset: 0;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1.1s var(--ease), transform 1.1s var(--ease);
  transition-delay: calc(var(--d, 0) * 90ms);
}
.reveal.in { opacity: 1; transform: none; }
.tile.reveal.in { transition: opacity 1.1s var(--ease), transform 0.25s var(--ease), background-color 0.3s; transition-delay: calc(var(--d, 0) * 90ms), 0s, 0s; }
.device.reveal { transform: perspective(1600px) rotateX(22deg) translateY(80px) scale(0.92); transform-origin: 50% 0; }
.device.reveal.in { transform: none; }
.no-js .reveal, .no-js .intro { opacity: 1; transform: none; animation: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .t-keys { grid-column: span 2; }
  .dl-grid { grid-template-columns: 1fr; max-width: 560px; }
  .specs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .nav-pivot { display: none; }
  .hero { padding-top: 100px; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .disc-stage { order: -1; width: min(66vw, 340px); margin-top: 10px; }
  .disc-hint { bottom: -54px; }
  .hero-copy { margin-top: 40px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .mosaic { grid-template-columns: repeat(5, 1fr); grid-auto-rows: calc(106vw / 5); }
  .hero-tint {
    background:
      linear-gradient(0deg, var(--bg) 0%, rgba(5, 5, 6, 0.86) 45%, rgba(5, 5, 6, 0.55) 100%),
      radial-gradient(70% 40% at 50% 22%, rgba(var(--accent-rgb), calc(0.2 + var(--bass) * 0.25)), transparent 70%);
  }
  .manifesto { height: 220vh; }

  /* Panorama becomes a native swipe carousel */
  .panorama { height: auto; padding: 120px 0 40px; }
  .pano-sticky { position: relative; height: auto; overflow: visible; }
  .pano-title { display: none; }
  .pano-track {
    width: auto;
    padding: 0 var(--gutter) 30px;
    gap: 18px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    transform: none !important;
  }
  .pano-track::-webkit-scrollbar { display: none; }
  .pano-panel { width: 84vw; scroll-snap-align: center; }
  .shot { transform: none !important; }
  .pano-progress { display: none; }

  .tiles-section, .demo, .download { padding: 110px var(--gutter); }
  .tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: 190px; }
  .t-np { grid-column: span 2; grid-row: span 2; }
  .t-formats, .t-keys, .t-accents { grid-column: span 2; }
  .device-screen { aspect-ratio: 3 / 4; }
  .miniplayer .mp-eq { display: none; }
}

@media (max-width: 520px) {
  .tiles { grid-template-columns: 1fr; }
  .t-np, .t-formats, .t-keys, .t-accents { grid-column: auto; }
  .t-np { grid-row: span 2; }
  .specs { grid-template-columns: 1fr; }
  .footer-row nav { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .intro, .reveal { opacity: 1; transform: none; }
  .grain { display: none; }
}
