/* Screen 3: a graphite 3D object field, not a flat grid of platform marks. */
.site.two-screens > .platform-footer.screen {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  background: #09090b;
  color: #f6f6f7;
  isolation: isolate;
}
.platform-scene {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  perspective: 980px;
  perspective-origin: 50% 44%;
  background: radial-gradient(ellipse 52% 58% at 50% 42%, #18191e 0%, #0c0d10 59%, #09090b 100%);
}
.platform-scene::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 50% at 50% 50%, transparent 40%, rgba(0,0,0,.38) 100%),
    linear-gradient(90deg, rgba(255,255,255,.025), transparent 24% 75%, rgba(255,255,255,.025));
  z-index: 1;
}
.platform-scene-grid {
  position: absolute;
  inset: -30%;
  pointer-events: none;
  opacity: .24;
  transform: rotateX(63deg) translateY(30%) scale(1.4);
  background-image: linear-gradient(#70707820 1px, transparent 1px), linear-gradient(90deg,#70707820 1px, transparent 1px);
  background-size: 90px 90px;
  mask-image: radial-gradient(ellipse at center,#000 0%,transparent 64%);
}
.platform-heading-wrap {
  position: absolute;
  left: 50%;
  top: 51%;
  width: min(88%, 1000px);
  transform: translate(-50%,-50%);
  text-align: center;
  z-index: 4;
  pointer-events: none;
}
.platform-eyebrow {
  margin: 0 0 21px;
  font-size: 11px;
  font-weight: 560;
  letter-spacing: .23em;
  line-height: 1.4;
  color: #86868b;
}
.platform-heading-wrap h2 {
  margin: 0;
  font-size: clamp(44px, 5.5vw, 84px);
  font-weight: 590;
  line-height: 1.08;
  letter-spacing: -.055em;
  color: #f5f5f7;
  text-wrap: balance;
}
.platform-roll-line { display: block; height: 1.15em; margin-top: .055em; }
.platform-word-slot {
  position: relative;
  display: block;
  width: 320px;
  height: 1.15em;
  margin: 0 auto;
  clip-path: inset(0 -100vw);
  overflow: visible;
}
.platform-word-slot .service-word { letter-spacing: 0; }
.platform-word-slot .service-word-icon { filter: brightness(0) invert(1); }
.platform-hint {
  margin: 26px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #77777e;
  letter-spacing: .015em;
}
.platform-token {
  position: absolute;
  z-index: 3;
  display: block;
  left: var(--x);
  top: var(--y);
  width: clamp(105px, 11.7vw, 178px);
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  margin: 0;
  background: none;
  transform: translate(-50%,-50%) rotateZ(var(--rz)) rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 550ms var(--ease-out), filter 350ms ease;
  filter: drop-shadow(9px 17px 21px rgba(0,0,0,.55));
}
.platform-token-body {
  position: absolute;
  inset: 0;
  display: block;
  transform-style: preserve-3d;
  animation: platform-float 5.3s ease-in-out infinite;
  animation-delay: var(--delay);
  animation-play-state: paused;
}
.platform-footer.is-visible .platform-token-body { animation-play-state: running; }
@keyframes platform-float {
  0%,100% { transform: translateY(0) rotateZ(0); }
  50% { transform: translateY(-10px) rotateZ(1.2deg); }
}
.platform-token-depth,
.platform-token-face {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 25%;
  transform-style: preserve-3d;
  backface-visibility: hidden;
}
.platform-token-depth {
  transform: translateZ(calc(var(--depth) * -3px));
  background: linear-gradient(137deg,#51545b 0%, #23262d 30%, #101116 75%, #060608 100%);
  border: 1px solid rgba(255,255,255,.09);
  box-shadow: inset 1px 1px 0 rgba(255,255,255,.09), 3px 4px 3px rgba(0,0,0,.16);
}
.platform-token-face {
  transform: translateZ(12px);
  background:
    radial-gradient(circle at 23% 16%, rgba(255,255,255,.13), transparent 43%),
    linear-gradient(145deg,#292c33 0%,#17191f 49%,#0b0d12 100%);
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: inset 2px 2px 1px rgba(255,255,255,.18), inset -3px -5px 9px #0008,
    0 0 0 1px #08090a;
  display: flex;
  align-items: center;
  justify-content: center;
}
.platform-token-gloss {
  position: absolute;
  inset: 6%;
  border-radius: 22%;
  border: 1px solid rgba(255,255,255,.06);
  background: linear-gradient(145deg,rgba(255,255,255,.035),transparent 43%);
  pointer-events: none;
}
.platform-token-face img {
  display: block;
  width: 45%;
  height: 45%;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.65));
  transform: translateZ(3px);
  pointer-events: none;
}
.platform-token::after {
  content: "";
  position: absolute;
  inset: 10%;
  z-index: -1;
  border-radius: 50%;
  transform: translateZ(-32px) scale(1.3);
  pointer-events: none;
  background: var(--brand);
  filter: blur(31px);
  opacity: .12;
  transition: opacity 300ms ease;
}
.platform-token.is-active {
  z-index: 6;
  transform: translate(-50%,-50%) translateY(-14px) scale(1.095) rotateZ(0deg) rotateX(7deg) rotateY(-7deg);
  filter: drop-shadow(14px 24px 26px rgba(0,0,0,.62));
}
.platform-token.is-active::after { opacity: .29; }
.platform-token.is-active .platform-token-face { border-color: rgba(255,255,255,.46); }
.platform-token:focus-visible {
  outline: 2px solid #f0f0f3;
  outline-offset: 11px;
  border-radius: 25%;
}
.platform-token--youtube { width: clamp(108px,12.6vw,195px); }
.platform-token--youtubemusic { width: clamp(99px,10.7vw,171px); }
.platform-token--deezer { width: clamp(109px,11.6vw,186px); }
.platform-token--soundcloud { width: clamp(115px,12.5vw,185px); }
.platform-token--yandexmusic { width: clamp(95px,10vw,155px); }
.platform-legal {
  position: relative;
  z-index: 10;
  flex: 0 0 auto;
  padding: 0 clamp(22px,4.2vw,76px) max(19px,env(safe-area-inset-bottom));
  background: #09090b;
  border-top: 1px solid #242429;
}
.platform-legal-top {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 70px;
  border-bottom: 1px solid #242429;
  color: #a0a0a5;
  font-size: 12px;
}
.platform-legal-top > span { margin: 0 auto 0 0; }
.platform-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #eeeef0!important;
  font-size: 20px;
  font-weight: 690;
  letter-spacing: -.05em;
  text-decoration: none;
}
.platform-brand img { display: block; width: 26px; height: 26px; }
/* Text-only contacts: underline the label, not the button hit area. */
.platform-contact-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-left: auto;
}
.platform-contact-link {
  display: inline-flex;
  box-sizing: border-box;
  align-items: center;
  margin: 0;
  padding: 5px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #c5c5ca !important;
  font: inherit;
  font-size: 12px;
  line-height: 1.4;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: color 160ms ease;
}
.platform-contact-label {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid #65656b;
  transition: border-color 160ms ease;
}
.platform-copy-email[data-copy-state="error"] { color: #ffb9bb !important; }
@media (hover: hover) and (pointer: fine) {
  .platform-contact-link:hover { color: #f6f6f7 !important; }
  .platform-contact-link:hover .platform-contact-label { border-bottom-color: #f6f6f7; }
}
.platform-contact-link:focus-visible {
  outline: 2px solid #eddbff;
  outline-offset: 5px;
}
.platform-contact-link:focus-visible .platform-contact-label { border-bottom-color: #f6f6f7; }
@media (max-width: 700px) {
  .platform-contact-links { gap: 7px 12px; }
}
@media (max-width: 360px) {
  .platform-legal-top {
    flex-wrap: wrap;
    gap: 8px 12px;
    padding: 9px 0;
  }
  .platform-contact-links {
    width: auto;
    margin-left: auto;
    justify-content: flex-end;
  }
}
@media (prefers-reduced-motion: reduce) {
  .platform-contact-link, .platform-contact-label { transition: none !important; }
}
.platform-legal-bottom {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(23px,4.2vw,90px);
  padding-top: 17px;
  color: #88888e;
  font-size: 11px;
  line-height: 1.55;
}
.platform-legal-bottom p { margin: 0; max-width: 700px; }
.platform-legal-bottom strong { color: #c4c4c8; font-weight: 570; }
@media(max-width: 780px) {
  .platform-token { width: clamp(84px,18vw,132px); }
  .platform-token--youtube { width: clamp(87px,20vw,143px); }
  .platform-token--youtubemusic { width: clamp(78px,17vw,118px); }
  .platform-token--soundcloud { width: clamp(90px,19vw,140px); }
  .platform-token--deezer { width: clamp(84px,18vw,130px); }
  .platform-token--yandexmusic { width: clamp(82px,18vw,123px); }
  .platform-heading-wrap h2 { font-size: clamp(39px,7.1vw,64px); }
  .platform-legal-top { min-height: 57px; }
  .platform-legal-bottom { font-size: 10.5px; gap: 18px; }
}
@media(max-width: 570px) {
  .platform-scene { perspective: 710px; }
  .platform-heading-wrap { top: 50%; width: 94%; }
  .platform-heading-wrap h2 { font-size: clamp(27px,7.35vw,40px); }
  .platform-eyebrow { font-size: 8px; letter-spacing: .13em; margin-bottom: 13px; }
  .platform-hint { margin-top: 17px; font-size: 10px; }
  .platform-token,
  .platform-token--youtube,.platform-token--youtubemusic,.platform-token--soundcloud,
  .platform-token--deezer,.platform-token--yandexmusic { width: clamp(68px,20vw,93px); }
  .platform-token--spotify { --x: 10%!important; --y: 18%!important; }
  .platform-token--youtube { --x: 88%!important; --y: 17%!important; }
  .platform-token--youtubemusic { --x: 88%!important; --y: 72%!important; }
  .platform-token--soundcloud { --x: 5%!important; --y: 72%!important; }
  .platform-token--deezer { --x: 67%!important; --y: 89%!important; }
  .platform-token--yandexmusic { --x: 39%!important; --y: 12%!important; }
  .platform-legal { padding-inline: 17px; }
  .platform-legal-top { min-height: 50px; gap: 10px 12px; flex-wrap: wrap; padding: 10px 0; }
  .platform-legal-top > span { display: none; }
  .platform-contact-links { flex: 1 1 100%; margin-left: 0; justify-content: flex-start; }
  .platform-brand { font-size: 18px; }
  .platform-legal-bottom { grid-template-columns: 1fr; gap: 8px; padding-top: 11px; font-size: 10px; line-height: 1.38; }
  .platform-legal-bottom p { max-width: none; }
}
@media(max-height: 650px) {
  .platform-legal-top { min-height: 44px; }
  .platform-legal-bottom { padding-top: 9px; font-size: 9.5px; line-height: 1.3; }
  .platform-eyebrow { margin-bottom: 8px; }
  .platform-hint { margin-top: 12px; }
  .platform-token { scale: .88; }
}
@media(prefers-reduced-motion: reduce) {
  .platform-token, .platform-token-body, .platform-token::after { animation: none!important; transition: none!important; }
  .platform-token.is-active { transform: translate(-50%,-50%) rotateZ(var(--rz)) rotateX(var(--rx)) rotateY(var(--ry)); }
  .platform-word-slot .service-letter, .platform-word-slot .service-word-icon { will-change: auto; }
}

/* Dimensional platform tokens v2:
   Keep the rotating parent unfiltered. CSS filter on a preserve-3d element
   creates a grouping context and FLATTENS all its child Z planes.
   Side walls are inserted by platform-footer.js, while the original layered
   backing remains as a JS-free fallback and a rounded-corner bevel. */
.platform-token {
  --front-z: 12px;
  --depth-step: -3px;
  --wall-depth: 27px;
  --wall-mid: -1.5px;
  --tilt-x: 0deg;
  --tilt-y: 0deg;
  --lift: 0px;
  --zoom: 1;
  filter: none;
  transform:
    translate(-50%,-50%)
    translateY(var(--lift)) scale(var(--zoom))
    rotateZ(var(--rz))
    rotateX(calc(var(--rx) + var(--tilt-x)))
    rotateY(calc(var(--ry) + var(--tilt-y)));
  transition: transform 420ms cubic-bezier(.22,1,.36,1);
  transform-style: preserve-3d;
}
/* Shadows and colored bounce light live on separate, leaf-only planes. */
.platform-token::before {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 29%;
  pointer-events: none;
  background: rgba(0,0,0,.8);
  filter: blur(19px);
  transform: translate3d(13px,19px,-24px) scale(1.12);
}
.platform-token::after {
  transform: translateZ(-35px) scale(1.3);
  opacity: .10;
}
.platform-token-body {
  transform-style: preserve-3d;
}
.platform-token-depth {
  transform: translateZ(calc(var(--depth) * var(--depth-step)));
  background: linear-gradient(142deg, #4d515a 0%, #2b2e36 21%, #14161c 55%, #08090c 100%);
  border-color: rgba(208,216,230,.09);
  box-shadow: inset 1px 1px rgba(255,255,255,.055), inset -1px -1px rgba(0,0,0,.26);
}
/* True perpendicular surfaces bridge the front and back of each tile.
   They are shorter than the plate because the corners are rounded. */
.platform-token-side {
  position: absolute;
  display: block;
  pointer-events: none;
  backface-visibility: hidden;
  box-shadow: inset 0 1px rgba(255,255,255,.09), 0 0 0 1px rgba(0,0,0,.2);
}
.platform-token-side--top,
.platform-token-side--bottom {
  left: 22%;
  width: 56%;
  height: var(--wall-depth);
}
.platform-token-side--top {
  top: 0;
  background: linear-gradient(180deg,#383c45,#171a20);
  transform: translateY(-50%) translateZ(var(--wall-mid)) rotateX(90deg);
}
.platform-token-side--bottom {
  bottom: 0;
  background: linear-gradient(180deg,#0a0b10,#1d2027);
  transform: translateY(50%) translateZ(var(--wall-mid)) rotateX(-90deg);
}
.platform-token-side--left,
.platform-token-side--right {
  top: 22%;
  height: 56%;
  width: var(--wall-depth);
}
.platform-token-side--left {
  left: 0;
  background: linear-gradient(90deg,#191c23,#373b43);
  transform: translateX(-50%) translateZ(var(--wall-mid)) rotateY(-90deg);
}
.platform-token-side--right {
  right: 0;
  background: linear-gradient(90deg,#292d35,#0a0c11);
  transform: translateX(50%) translateZ(var(--wall-mid)) rotateY(90deg);
}
.platform-token-face {
  transform: translateZ(var(--front-z));
  background:
    radial-gradient(ellipse 67% 62% at var(--light-x,22%) var(--light-y,9%),rgba(239,245,255,.21),transparent 73%),
    linear-gradient(144deg,#2b2e36 0%,#1b1d24 44%,#0c0e13 100%);
  border: 1px solid rgba(218,227,242,.3);
  box-shadow:
    inset 1.5px 1.5px 1px rgba(255,255,255,.16),
    inset -2px -3px 7px rgba(0,0,0,.58),
    0 0 0 1px #08090d;
}
.platform-token-gloss {
  inset: 5.5%;
  border-radius: 23%;
  border-color: rgba(221,233,250,.09);
  background: linear-gradient(148deg,rgba(255,255,255,.045),transparent 54%);
}
.platform-token-face img {
  transform: translateZ(7px);
  filter: drop-shadow(0 5px 7px rgba(0,0,0,.49));
}
.platform-token.is-active {
  --lift: -11px;
  --zoom: 1.07;
  z-index: 6;
  filter: none;
}
.platform-token.is-manual-active { transition-duration: 150ms; }
.platform-token.is-active::after { opacity: .24; }
.platform-token.is-active .platform-token-body { animation-play-state: paused; }
@media (max-width: 780px) {
  .platform-token {
    --front-z: 8px;
    --depth-step: -2px;
    --wall-depth: 18px;
    --wall-mid: -1px;
  }
  .platform-token::before { filter: blur(12px); transform: translate3d(8px,12px,-18px) scale(1.1); }
}
@media (max-width: 570px) {
  .platform-token.is-active {
    --lift: -5px;
    --zoom: 1.045;
  }
}
@media (prefers-reduced-motion: reduce) {
  .platform-token,
  .platform-token.is-active {
    --lift: 0px;
    --zoom: 1;
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    transition: none !important;
  }
}

/* Stable hover target (pointer hunting regression):
   The trigger used to translate/scale/rotate itself on :hover. Near an edge,
   the moving hit area caused pointerenter/pointerleave to alternate rapidly,
   also restarting the central word animation. Keep the button's rect fixed,
   and animate only its non-interactive visual child. */
.platform-token,
.platform-token.is-active {
  transform: translate(-50%,-50%);
  transition: none;
  filter: none;
}
.platform-token-gimbal {
  position: absolute;
  inset: 0;
  display: block;
  pointer-events: none;
  transform-style: preserve-3d;
  transform:
    translateY(var(--lift))
    scale(var(--zoom))
    rotateZ(var(--rz))
    rotateX(calc(var(--rx) + var(--tilt-x)))
    rotateY(calc(var(--ry) + var(--tilt-y)));
  transition: transform 420ms cubic-bezier(.22,1,.36,1);
}
.platform-token.is-manual-active .platform-token-gimbal { transition-duration: 180ms; }
/* Preserve the existing floating visual motion without moving hit-testing.
   Pointer-events are disabled throughout this visual hierarchy. */
.platform-token-gimbal,
.platform-token-gimbal .platform-token-body,
.platform-token-gimbal .platform-token-body * { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .platform-token-gimbal { transition: none !important; }
}

/* Platform selection: inactive wireframe / active brand.
   The dashed graphite surfaces refer to the X line-art treatment without
   losing the existing dimensional construction. The visual remains beneath
   the stable hit target (see the gimbal rules above). */
.platform-token-face {
  border: 1px dashed rgba(190, 195, 205, .40);
  background:
    radial-gradient(ellipse at 26% 16%,rgba(216,220,232,.055), transparent 56%),
    linear-gradient(145deg,#24262c,#15171d 52%,#0d0e13);
  box-shadow: inset 1px 1px rgba(255,255,255,.045);
  transition: border-color 260ms ease, background-color 260ms ease;
}
.platform-token-face::after {
  content: "";
  position: absolute;
  inset: 8.5%;
  border: 1px dashed rgba(188,193,204,.34);
  border-radius: 22%;
  pointer-events: none;
  opacity: 1;
  transition: opacity 260ms ease;
}
.platform-token-depth {
  border-style: dashed;
  border-color: rgba(154,160,174,.22);
  background: linear-gradient(145deg,#373a42,#1e2026 45%,#0c0d12);
}
.platform-token-gloss { opacity: .18; transition: opacity 260ms ease; }
.platform-token-face img {
  filter: grayscale(1) brightness(0) invert(.58);
  opacity: .66;
  transition: filter 260ms ease, opacity 260ms ease;
}
.platform-token.is-active .platform-token-face {
  border: 1px solid rgba(224,230,242,.38);
  background:
    radial-gradient(ellipse 67% 62% at var(--light-x,22%) var(--light-y,9%),rgba(239,245,255,.21),transparent 73%),
    linear-gradient(144deg,#30333b,#1d2027 47%,#0d0f14);
  box-shadow: inset 1px 1px rgba(255,255,255,.12), inset -2px -3px 7px rgba(0,0,0,.26);
}
.platform-token.is-active .platform-token-face::after { opacity: 0; }
.platform-token.is-active .platform-token-depth {
  border-style: solid;
  border-color: rgba(213,222,237,.10);
}
.platform-token.is-active .platform-token-gloss { opacity: 1; }
.platform-token.is-active .platform-token-face img {
  filter: none;
  opacity: 1;
}
/* No detached shadow / branded halo, even during hover or auto-selection. */
.platform-token::before,
.platform-token::after { display: none; }

/* The line containing rotating service names remains centered even when the
   name is wider than its parent, and JS fits long labels at narrow widths. */
.platform-roll-line {
  display: flex;
  justify-content: center;
  align-items: center;
}
.platform-word-slot {
  flex: 0 0 auto;
  margin: 0;
  transform: scale(var(--word-scale,1));
  transform-origin: 50% 50%;
}
@media (max-width: 570px) {
  .platform-heading-wrap {
    top: 50%;
    width: calc(100% - 30px);
  }
  .platform-heading-wrap h2 {
    font-size: clamp(43px, 13.2vw, 61px);
    line-height: 1.08;
  }
  .platform-token--yandexmusic { --y: 20% !important; }
}
/* Preserve the layout on short devices: title remains large but cannot
   collide with the legal information occupying the bottom of the screen. */
@media (max-width: 570px) and (max-height: 660px) {
  .platform-heading-wrap h2 { font-size: clamp(38px, 11.6vw, 51px); }
}
@media (prefers-reduced-motion: reduce) {
  .platform-token-face img,
  .platform-token-face::after,
  .platform-token-gloss { transition: none !important; }
}

/* Final scene shares the hero CTA component; only its placement differs. */
.platform-heading-wrap { z-index: 7; --install-cta-radius: 16px; }
.platform-heading-wrap .platform-roll-line { margin-top: 0; }
.platform-final-line { display: block; }
.platform-word-slot:empty::before {
  content: "Your music.";
  display: block;
  white-space: nowrap;
}
.platform-heading-wrap .platform-install-cta {
  margin-top: clamp(19px, 3vh, 28px);
  pointer-events: auto;
}
@media (max-width: 700px) {
  .platform-heading-wrap { --install-cta-radius: 15px; }
}
@media (max-width: 570px) {
  .platform-heading-wrap h2 { font-size: clamp(39px, 11.7vw, 55px); }
  .platform-heading-wrap .platform-install-cta { margin-top: 18px; }
}
@media (max-width: 570px) and (max-height: 660px) {
  .platform-heading-wrap h2 { font-size: clamp(34px, 10.5vw, 46px); }
  .platform-heading-wrap .platform-install-cta { margin-top: 14px; }
}
