/* WelcomeCarson — site styles
   Layout: one night sky behind every page; content floats over it as frosted Frutiger Aero glass,
   and Plexa is the planet the camera lands on. Colours come from Plexa's own theme (PlexaLookAndFeel.h). */

:root {
  color-scheme: dark;

  /* Sky */
  --space-deep: #06041a;
  --space: #0b0820;          /* Plexa spaceTop */
  --space-hi: #160c34;       /* Plexa spaceBottom */

  /* Light and glass */
  --ink: #eef0ff;            /* Plexa text */
  --ink-dim: #aaa6d4;
  --ink-faint: #7d79a8;
  --aqua: #5ee6ff;           /* Plexa aqua, fire 1 */
  --violet: #b08cff;         /* fire 2 */
  --violet-deep: #7b4dff;    /* nebula violet */
  --orchid: #c65cff;         /* nebula pink */
  --pink: #ff6ad5;           /* fire 3 */
  --gold: #ffd166;           /* fire 4 */
  --lime: #8cff7a;           /* fire 5 */
  --glass-line: rgba(214, 200, 255, 0.18);
  --glass-top: rgba(255, 255, 255, 0.10);
  --glass-bottom: rgba(255, 255, 255, 0.025);
  --on-gel: #140d2c;         /* Plexa onText */

  /* Type: the system face (Segoe UI on Windows, SF on Apple devices), so no font files to download */
  --font-ui: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Space */
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1120px;
  --r-pill: 999px;
  --r-card: 22px;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: var(--space);
  color: var(--ink);
  font: 400 16px/1.6 var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 { text-wrap: balance; }

p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--aqua);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--aqua);
  color: var(--on-gel);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- The sky ---------- */

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* Nebula glows. Taller than the screen so the intro camera can look up into it. */
.nebula {
  position: fixed;
  left: -10vw;
  right: -10vw;
  top: -140vh;
  height: 280vh;
  z-index: -2;
  pointer-events: none;
  will-change: transform;
  background:
    /* up in the sky, around the galaxy */
    radial-gradient(42vmax 26vmax at 50% 38%, rgba(198, 92, 255, 0.22), transparent 70%),
    radial-gradient(30vmax 22vmax at 30% 31%, rgba(94, 230, 255, 0.07), transparent 70%),
    /* the resting view */
    radial-gradient(48vmax 34vmax at 12% 58%, rgba(123, 77, 255, 0.30), transparent 70%),
    radial-gradient(40vmax 30vmax at 92% 66%, rgba(255, 106, 213, 0.16), transparent 70%),
    radial-gradient(50vmax 30vmax at 30% 86%, rgba(47, 211, 255, 0.08), transparent 70%),
    linear-gradient(180deg, var(--space-deep) 0%, var(--space) 45%, var(--space-hi) 80%, var(--space) 100%);
}

/* ---------- Header and menu ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter) 0;
}

.nav {
  position: relative;
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 7px 7px 7px 10px;
  border-radius: var(--r-pill);
  background: linear-gradient(180deg, rgba(40, 28, 92, 0.62), rgba(18, 12, 46, 0.62));
  border: 1px solid var(--glass-line);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.20),
    0 12px 32px -14px rgba(3, 1, 15, 0.9);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  backdrop-filter: blur(14px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
  border-radius: var(--r-pill);
}
.brand img {
  width: 36px;
  height: 36px;
  flex: none;
  filter: drop-shadow(0 0 10px rgba(123, 77, 255, 0.6));
}

/* WELCOME light + CARSON bold keeps the word break readable in capitals */
.wordmark {
  margin: 0;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(90deg, var(--aqua), var(--violet) 55%, var(--pink));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.wordmark span { font-weight: 300; }
.wordmark b { font-weight: 700; }

.nav__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
}
.nav__links a {
  display: block;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--ink-dim);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, background-color 0.2s;
}
.nav__links a:hover { color: var(--ink); background: rgba(255, 255, 255, 0.07); }
.nav__links a[aria-current="page"] {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(176, 140, 255, 0.42), rgba(123, 77, 255, 0.20));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.32),
    0 0 18px -4px rgba(176, 140, 255, 0.8);
}

.nav__toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28);
  color: var(--ink);
  cursor: pointer;
}
.nav__toggle span {
  grid-area: 1 / 1;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.25s, opacity 0.2s;
}
.nav__toggle span:nth-child(1) { transform: translateY(-6px); }
.nav__toggle span:nth-child(3) { transform: translateY(6px); }
.nav.is-open .nav__toggle span:nth-child(1) { transform: rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: rotate(-45deg); }

@media (max-width: 860px) {
  /* Without the script the links stay visible and scroll sideways */
  .nav { flex-wrap: wrap; border-radius: 26px; }
  .nav__links { width: 100%; overflow-x: auto; }

  .js .nav { flex-wrap: nowrap; border-radius: var(--r-pill); }
  .js .nav__toggle { display: grid; }
  .js .nav__links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: auto;
    flex-direction: column;
    gap: 2px;
    padding: 8px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(36, 24, 84, 0.97), rgba(18, 12, 46, 0.97));
    border: 1px solid var(--glass-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 24px 48px -16px rgba(3, 1, 15, 0.95);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.2s, transform 0.2s, visibility 0s 0.2s;
  }
  .js .nav.is-open .nav__links {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: opacity 0.2s, transform 0.2s;
  }
  .js .nav__links a { padding: 14px 18px; font-size: 16px; }
}

@media (max-width: 380px) {
  .wordmark { font-size: 13px; letter-spacing: 0.12em; }
  .brand img { width: 32px; height: 32px; }
}

/* ---------- Buttons ---------- */

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  font: 600 15px/1 var(--font-ui);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }

/* Aero gel: a lit capsule with a glossy top half */
.btn--gel {
  color: var(--on-gel);
  background: linear-gradient(180deg, #a9f4ff 0%, #5ee6ff 48%, #2fc6ef 52%, #7fe3ff 100%);
  border-color: rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 -6px 12px rgba(0, 92, 140, 0.25),
    0 8px 26px -8px rgba(94, 230, 255, 0.8);
}
.btn--gel::before {
  content: "";
  position: absolute;
  inset: 2px 10px 52% 10px;
  border-radius: var(--r-pill) var(--r-pill) 40% 40%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.15));
  z-index: -1;
}

.btn--glass {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.04));
  border-color: var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.btn[aria-disabled="true"],
.btn:disabled { cursor: default; opacity: 0.55; transform: none; filter: none; }

/* ---------- Shared bits ---------- */

.eyebrow {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--aqua);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03));
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aqua);
  box-shadow: 0 0 8px var(--aqua);
}

.glass {
  border-radius: var(--r-card);
  border: 1px solid var(--glass-line);
  background: linear-gradient(180deg, var(--glass-top), var(--glass-bottom)), rgba(16, 10, 42, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 24px 60px -30px rgba(3, 1, 15, 0.95);
}

/* Glossy Aero sphere, tinted by --c */
.orb {
  --c: var(--aqua);
  position: relative;
  flex: none;
  width: 52px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 115%, color-mix(in srgb, var(--c) 70%, white) 0%, transparent 55%),
    radial-gradient(circle at 50% 45%, var(--c) 0%, color-mix(in srgb, var(--c) 35%, #0b0820) 78%);
  box-shadow:
    inset 0 -5px 12px rgba(0, 0, 0, 0.35),
    0 0 22px -4px var(--c);
}
.orb::after {
  content: "";
  position: absolute;
  left: 17%;
  right: 17%;
  top: 6%;
  height: 44%;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
}

/* A play-order number with its "ring of fire", tinted by --c (same colours as in Plexa) */
.ring {
  --c: var(--aqua);
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid color-mix(in srgb, var(--c) 55%, white);
  background: radial-gradient(circle, #120b2c 55%, color-mix(in srgb, var(--c) 30%, #120b2c));
  box-shadow:
    0 0 10px 1px var(--c),
    0 0 22px 2px color-mix(in srgb, var(--c) 45%, transparent),
    inset 0 0 6px color-mix(in srgb, var(--c) 60%, transparent);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: #fff;
}
.n1 { --c: var(--aqua); }
.n2 { --c: var(--violet); }
.n3 { --c: var(--pink); }
.n4 { --c: var(--gold); }
.n5 { --c: var(--lime); }
.n6 { --c: #ff8a3d; }

/* ---------- Plexa in 3D ----------
   A live copy of Plexa's window, built from its own measurements (820 x 560 Plexa pixels).
   Every size is Plexa pixels times --u, so it scales to whatever space it's given, and each
   part sits at its own depth (--z), so the parts shift against each other as it tilts. */

.plexa3d {
  position: relative;
  display: block;
  container-type: inline-size;
  color: inherit;
  text-decoration: none;
  perspective: 1300px;
  perspective-origin: 50% 40%;
  -webkit-tap-highlight-color: transparent;
}
a.plexa3d { cursor: pointer; }
.plexa3d:focus-visible { outline: none; }
.plexa3d:focus-visible .plexa3d__face { outline: 3px solid var(--aqua); outline-offset: 4px; }

.plexa3d__tilt {
  --u: 0.9px;
  position: relative;
  display: block;
  transform-style: preserve-3d;
  will-change: transform;
}
/* The window is 820 Plexa pixels wide plus a 10 pixel glass bezel each side */
@supports (width: 1cqw) { .plexa3d__tilt { --u: calc(100cqw / 840); } }

/* The case. --depth is how far the body goes back behind the face, --glass how far the glass
   front stands out in front of it; the controls pop up into the space under the glass. */
.plexa3d__tilt { --depth: 84; --glass: 54; --r: 18; --pop: 1.7; }

.plexa3d__case,
.plexa3d__glass {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  pointer-events: none;
}

.plexa3d__back {
  position: absolute;
  inset: 0;
  border-radius: calc(var(--r) * var(--u));
  background: #120a30;
  transform: translateZ(calc(var(--depth) * -1 * var(--u)));
  box-shadow:
    0 calc(40 * var(--u)) calc(90 * var(--u)) calc(-30 * var(--u)) rgba(255, 106, 213, 0.55),
    0 0 calc(120 * var(--u)) calc(-20 * var(--u)) rgba(123, 77, 255, 0.7);
}

/* Four walls running back from the edges of the face, lit from above */
.plexa3d__wall { position: absolute; }
.plexa3d__wall--top,
.plexa3d__wall--bottom {
  left: calc(var(--r) * var(--u));
  right: calc(var(--r) * var(--u));
  height: calc(var(--depth) * var(--u));
}
.plexa3d__wall--left,
.plexa3d__wall--right {
  top: calc(var(--r) * var(--u));
  bottom: calc(var(--r) * var(--u));
  width: calc(var(--depth) * var(--u));
}
.plexa3d__wall--top {
  top: 0;
  transform-origin: 50% 0;
  transform: rotateX(-90deg);
  background: linear-gradient(180deg, #b49cff 0%, #6c52d0 6%, #3a2690 100%);
}
.plexa3d__wall--bottom {
  bottom: 0;
  transform-origin: 50% 100%;
  transform: rotateX(90deg);
  background: linear-gradient(0deg, #6a52c8 0%, #2a1a6a 6%, #120a30 100%);
}
.plexa3d__wall--left {
  left: 0;
  transform-origin: 0 50%;
  transform: rotateY(90deg);
  background: linear-gradient(90deg, #9c84f0 0%, #4d36a8 6%, #23155c 100%);
}
.plexa3d__wall--right {
  right: 0;
  transform-origin: 100% 50%;
  transform: rotateY(-90deg);
  background: linear-gradient(270deg, #9c84f0 0%, #4d36a8 6%, #23155c 100%);
}

/* The rounded corners: narrow strips round each quarter-circle (--light: 1 faces up, 0 faces down) */
.plexa3d__wall-corner,
.plexa3d__pane-corner {
  position: absolute;
  left: calc(var(--x0) * var(--u));
  top: calc(var(--y0) * var(--u));
  width: calc(var(--len) * var(--u));
  transform-origin: 0 0;
}
.plexa3d__wall-corner {
  height: calc(var(--depth) * var(--u));
  transform: rotateZ(var(--turn)) rotateX(-90deg);
  background: linear-gradient(180deg,
    color-mix(in srgb, #b49cff calc(var(--light) * 100%), #6a52c8) 0%,
    color-mix(in srgb, #6c52d0 calc(var(--light) * 100%), #2a1a6a) 6%,
    color-mix(in srgb, #3a2690 calc(var(--light) * 100%), #120a30) 100%);
}

/* The glass front's sides: clear, catching a little light */
.plexa3d__pane { position: absolute; }
.plexa3d__pane--top,
.plexa3d__pane--bottom {
  left: calc(var(--r) * var(--u));
  right: calc(var(--r) * var(--u));
  height: calc(var(--glass) * var(--u));
}
.plexa3d__pane--left,
.plexa3d__pane--right {
  top: calc(var(--r) * var(--u));
  bottom: calc(var(--r) * var(--u));
  width: calc(var(--glass) * var(--u));
}
.plexa3d__pane--top { top: 0; transform-origin: 50% 0; transform: rotateX(90deg); background: linear-gradient(0deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.05)); }
.plexa3d__pane--bottom { bottom: 0; transform-origin: 50% 100%; transform: rotateX(-90deg); background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03)); }
.plexa3d__pane--left { left: 0; transform-origin: 0 50%; transform: rotateY(-90deg); background: linear-gradient(270deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)); }
.plexa3d__pane--right { right: 0; transform-origin: 100% 50%; transform: rotateY(90deg); background: linear-gradient(90deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04)); }
.plexa3d__pane-corner {
  height: calc(var(--glass) * var(--u));
  transform: rotateZ(var(--turn)) rotateX(90deg);
  background: linear-gradient(0deg, rgba(255, 255, 255, calc(0.08 + 0.12 * var(--light))), rgba(255, 255, 255, 0.04));
}

.plexa3d__face {
  position: relative;
  display: block;
  padding: calc(10 * var(--u));
  border-radius: calc(18 * var(--u));
  transform-style: preserve-3d;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0.10) 16%, rgba(190, 160, 255, 0.08) 62%, rgba(255, 255, 255, 0.20)),
    #2a1c5e;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    inset 0 -2px 6px rgba(0, 0, 0, 0.35);
  transition: box-shadow 0.3s;
}
.plexa3d__face img {
  width: 100%;
  border-radius: calc(8 * var(--u));
}
a.plexa3d:hover .plexa3d__face {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.8),
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    inset 0 -2px 6px rgba(0, 0, 0, 0.35),
    0 0 calc(46 * var(--u)) calc(-6 * var(--u)) rgba(255, 106, 213, 0.65);
}

/* A glass cover floating over the controls: the classic Aero diagonal, plus a glare that follows the tilt */
.plexa3d__sheen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: calc(18 * var(--u));
  pointer-events: none;
  transform: translateZ(calc(var(--glass) * var(--u)));
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.03) 33%, rgba(255, 255, 255, 0) 33.4%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.plexa3d__glare {
  position: absolute;
  left: -50%;
  top: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 28%);
  will-change: transform;
}

/* LED orbit ring, like the rings in the WelcomeCarson logo. Its front half passes in front of Plexa. */
.plexa3d__orbit {
  position: absolute;
  left: 50%;
  top: 84%;
  width: 130%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  border: 2px dashed rgba(190, 242, 255, 0.7);
  box-shadow:
    0 0 16px rgba(94, 230, 255, 0.35),
    inset 0 0 16px rgba(198, 92, 255, 0.35);
  transform: translate(-50%, -50%) rotateX(78deg);
  animation: orbit 60s linear infinite;
}
.plexa3d__orbit--inner {
  width: 116%;
  border: 1.5px solid rgba(255, 106, 213, 0.55);
  box-shadow: 0 0 14px rgba(255, 106, 213, 0.45);
  animation-duration: 90s;
  animation-direction: reverse;
}
@keyframes orbit {
  from { transform: translate(-50%, -50%) rotateX(78deg) rotateZ(0deg); }
  to { transform: translate(-50%, -50%) rotateX(78deg) rotateZ(360deg); }
}

/* Leaving for Plexa's page */
.plexa3d.is-launching {
  transform: scale(1.12);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.5, 0, 0.75, 0), opacity 0.42s ease-in;
}

/* ----- Plexa's window ----- */

.pui {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 820 / 560;
  transform-style: preserve-3d;
  font-family: var(--font-ui);
  line-height: 1;
  color: #eef0ff;
  text-align: left;
  white-space: nowrap;
  user-select: none;
  -webkit-user-select: none;
}
.pui-defs { position: absolute; width: 0; height: 0; }

/* Everything placed by Plexa coordinates: --x, --y, --w, --h, and its depth --z */
.pui [style*="--x:"] {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  transform: translateZ(calc(var(--z, 0) * var(--pop) * var(--u)));
}

/* Plexa's night sky (PlexaLookAndFeel::drawSpaceBackground) */
.pui-bg {
  position: absolute;
  inset: 0;
  border-radius: calc(8 * var(--u));
  background:
    radial-gradient(circle calc(492 * var(--u)) at 85% 2%, rgba(123, 77, 255, 0.32), rgba(123, 77, 255, 0)),
    radial-gradient(circle calc(410 * var(--u)) at 5% 100%, rgba(198, 92, 255, 0.16), rgba(198, 92, 255, 0)),
    radial-gradient(circle calc(328 * var(--u)) at 100% 95%, rgba(47, 211, 255, 0.10), rgba(47, 211, 255, 0)),
    radial-gradient(circle calc(287 * var(--u)) at 30% 40%, rgba(123, 77, 255, 0.07), rgba(123, 77, 255, 0)),
    linear-gradient(180deg, #0b0820, #160c34);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.45);
}
.pui-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0.75;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.85) 0 calc(0.5 * var(--u)), rgba(255, 255, 255, 0) calc(1 * var(--u))),
    radial-gradient(circle, rgba(94, 230, 255, 0.7) 0 calc(0.45 * var(--u)), rgba(94, 230, 255, 0) calc(0.9 * var(--u))),
    radial-gradient(circle, rgba(214, 196, 255, 0.75) 0 calc(0.55 * var(--u)), rgba(214, 196, 255, 0) calc(1.1 * var(--u)));
  background-size:
    calc(97 * var(--u)) calc(83 * var(--u)),
    calc(151 * var(--u)) calc(127 * var(--u)),
    calc(211 * var(--u)) calc(173 * var(--u));
  background-position:
    calc(13 * var(--u)) calc(29 * var(--u)),
    calc(71 * var(--u)) calc(5 * var(--u)),
    calc(37 * var(--u)) calc(101 * var(--u));
}

/* Plexa's frosted glass (PlexaLookAndFeel::drawGlassPanel) */
.pui-glass {
  border-radius: calc(8 * var(--u));
  border: 1px solid rgba(255, 255, 255, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 55%),
    rgba(255, 255, 255, 0.045);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.pui-title {
  width: max-content !important;   /* the gradient spans the word, as in Plexa */
  display: flex;
  align-items: center;
  font-size: calc(26 * var(--u));
  font-weight: 700;
  letter-spacing: 0.12em;
  background: linear-gradient(90deg, #5ee6ff, #a67bff) 0 50% / 100% calc(30 * var(--u)) no-repeat;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pui-arrow { border-radius: 50%; }
.pui-chevron {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(8 * var(--u));
  height: calc(8 * var(--u));
  border-left: calc(2 * var(--u)) solid #eef0ff;
  border-bottom: calc(2 * var(--u)) solid #eef0ff;
  transform: translate(-75%, -50%) rotate(-135deg);
}
.pui-chevron--left { transform: translate(-25%, -50%) rotate(45deg); }

.pui-pill { border-radius: calc(15 * var(--u)); }
.pui-pill__label {
  position: absolute;
  left: calc(15 * var(--u));
  top: 50%;
  transform: translateY(-50%);
  font-size: calc(9.5 * var(--u));
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #9b97c6;
}
.pui-pill__name {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: calc(14.5 * var(--u));
}
.pui-caret {
  position: absolute;
  right: calc(12 * var(--u));
  top: 50%;
  border-left: calc(4.5 * var(--u)) solid transparent;
  border-right: calc(4.5 * var(--u)) solid transparent;
  border-top: calc(5 * var(--u)) solid rgba(238, 240, 255, 0.85);
  transform: translateY(-40%);
}
.pui-menu .pui-caret { right: 50%; margin-right: calc(-4.5 * var(--u)); }

.pui-heads {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: translateZ(calc(var(--z) * var(--pop) * var(--u)));
}
.pui-head {
  font-size: calc(10.5 * var(--u));
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: calc(22 * var(--u));
  color: #9b97c6;
}

.pui-row { border-radius: calc(12 * var(--u)); transform-style: preserve-3d; }
.pui-name {
  padding-left: calc(14 * var(--u));
  font-size: calc(15 * var(--u));
  line-height: calc(34 * var(--u));
  overflow: hidden;
  text-overflow: ellipsis;
}
.pui-btn, .pui-fbtn {
  display: grid;
  place-items: center;
  font-size: calc(14 * var(--u));
}
.pui-fbtn { font-size: calc(13 * var(--u)); }

/* The play-order number. The fire is drawn on .pui-fire by plexa-live.js; until then
   (or without JavaScript) a plain ring in the number's colour stands in for it. */
.pui-num {
  display: grid;
  place-items: center;
  font-size: calc(20 * var(--u));
  font-weight: 700;
}
.pui-num::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: -1;
  width: calc(30 * var(--u));
  height: calc(30 * var(--u));
  border-radius: 50%;
  border: calc(3 * var(--u)) solid color-mix(in srgb, var(--c) 60%, white);
  background: rgba(0, 0, 0, 0.4);
  box-shadow: 0 0 calc(10 * var(--u)) calc(2 * var(--u)) var(--c);
  transform: translate(-50%, -50%);
}
.pui.is-live .pui-num { visibility: hidden; }
.pui-fire { pointer-events: none; }

.pui-knob svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: calc(44 * var(--u));
  overflow: visible;
}
.pui-knob__track { fill: none; stroke: rgba(255, 255, 255, 0.10); stroke-width: 3; stroke-linecap: round; }
.pui-knob__glow { fill: none; stroke: url(#pui-av); stroke-width: 7.8; stroke-linecap: round; opacity: 0.25; }
.pui-knob__value { fill: none; stroke: url(#pui-av); stroke-width: 3; stroke-linecap: round; }
.pui-knob__bead { fill: url(#pui-bead); stroke: rgba(255, 255, 255, 0.16); stroke-width: 1; }
.pui-knob__shine { fill: url(#pui-shine); }
.pui-knob__pointer { stroke: #eef0ff; stroke-width: 2; stroke-linecap: round; }
.pui-knob__text {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(44 * var(--u));
  text-align: center;
  font-size: calc(11.5 * var(--u));
  font-variant-numeric: tabular-nums;
  color: rgba(238, 240, 255, 0.72);
}

.pui-eq svg { display: block; width: 100%; height: 100%; overflow: visible; }
.pui-eq__bg { fill: rgba(0, 0, 0, 0.28); stroke: rgba(255, 255, 255, 0.09); }
.pui-eq__guide { stroke: rgba(255, 255, 255, 0.05); }
.pui-eq__zero { stroke: rgba(255, 255, 255, 0.10); }
.pui-eq__fill { fill: url(#pui-eqg); opacity: 0.18; }
.pui-eq__curve { fill: none; stroke: url(#pui-eqg); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pui-eq__dot { stroke: rgba(255, 255, 255, 0.7); stroke-width: 1; }
.pui-eq__dot--0 { fill: #5ee6ff; }
.pui-eq__dot--1 { fill: #c4a6ff; }
.pui-eq__dot--2 { fill: #c65cff; }

.pui-add {
  display: flex;
  align-items: center;
  gap: calc(8 * var(--u));
  padding-left: calc(78 * var(--u));
  border: 1px dashed rgba(94, 230, 255, 0.3);
  border-radius: calc(12 * var(--u));
  font-size: calc(15 * var(--u));
  color: #5ee6ff;
}

.pui-footer {
  border-width: 1px 0 0;
  border-radius: 0 0 calc(8 * var(--u)) calc(8 * var(--u));
  transform-style: preserve-3d;
}
.pui-status {
  position: absolute;
  left: calc(20 * var(--u));
  top: 0;
  line-height: calc(40 * var(--u));
  font-size: calc(13 * var(--u));
  color: rgba(238, 240, 255, 0.7);
}

/* Phones: the rows still pop out, but the parts inside each row stay flat on it (fewer layers to draw) */
@media (max-width: 640px) {
  .pui-row > [style*="--x:"]:not(.pui-num) { transform: none; }
}

/* ---------- Home: hero ---------- */

.hero {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: clamp(28px, 6vh, 56px);
  min-height: calc(100vh - 76px);
  min-height: calc(100svh - 76px);
  padding: clamp(24px, 5vh, 56px) var(--gutter) clamp(36px, 7vh, 72px);
  text-align: center;
  overflow-x: clip;
}

.hero__stage {
  position: relative;
  margin-bottom: clamp(12px, 3.5vw, 40px);   /* room for the ring's front arc */
  width: max(260px, min(760px, 88vw, (100vh - 430px) * 1.42));
  width: max(260px, min(760px, 88vw, (100svh - 430px) * 1.42));
}

/* The pinkish-purple glow Plexa floats in */
.hero__aura {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 180%;
  aspect-ratio: 1.6;
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side,
    rgba(255, 106, 213, 0.52),
    rgba(198, 92, 255, 0.34) 36%,
    rgba(123, 77, 255, 0.14) 62%,
    rgba(123, 77, 255, 0) 100%);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe {
  50% { opacity: 0.72; transform: translate(-50%, -50%) scale(1.05); }
}

.hero__caption {
  position: relative;
  z-index: 1;             /* text stays above the orbit ring */
  display: grid;
  justify-items: center;
  gap: 10px;
  max-width: 40rem;
}
.hero__title {
  margin: 0;
  padding-left: 0.2em; /* balances the tracking after the last letter */
  font-family: var(--font-display);
  font-size: clamp(34px, 5.4vw, 54px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--aqua), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  margin: 0;
  max-width: 34rem;
  font-size: clamp(16px, 1.9vw, 19px);
  color: var(--ink-dim);
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 18px;
  margin-top: 8px;
}
.hint {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
}
.hint--touch { display: none; }
@media (hover: none) {
  .hint--mouse { display: none; }
  .hint--touch { display: inline; }
}

/* ---------- Home: below the hero ---------- */

.explore {
  display: grid;
  gap: 24px;
  padding-block: clamp(48px, 10vh, 96px);
}
.explore__intro {
  display: grid;
  gap: 8px;
  max-width: 44rem;
}
.section-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: 0.01em;
}
.section-title b { font-weight: 700; }
.section-lede { margin: 0; color: var(--ink-dim); max-width: 60ch; }

.tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}
.tile {
  display: flex;
  align-items: center;
  gap: 18px;
  height: 100%;
  padding: 20px 22px;
  text-decoration: none;
  transition: transform 0.2s, border-color 0.2s;
}
.tile:hover { transform: translateY(-2px); border-color: rgba(214, 200, 255, 0.34); }
.tile__text { display: grid; gap: 2px; min-width: 0; }
.tile__name { font-size: 18px; font-weight: 600; }
.tile__meta { font-size: 14px; color: var(--ink-dim); }

/* ---------- Inner pages ---------- */

.page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  padding-block: clamp(40px, 9vh, 96px) clamp(24px, 4vh, 40px);
}
.page-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(34px, 7vw, 76px);
  font-weight: 300;
  line-height: 1.02;
  overflow-wrap: break-word;
  letter-spacing: 0.01em;
}
.page-title b { font-weight: 700; }
.page-lede {
  margin: 0;
  max-width: 56ch;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-dim);
}

.section { padding-block: clamp(28px, 6vh, 56px); }

/* Plugins */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 20px;
  padding-bottom: clamp(48px, 10vh, 96px);
}
.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}
.product-card__art {
  position: relative;
  display: block;
  padding: clamp(20px, 4vw, 32px);
  background: radial-gradient(70% 90% at 50% 60%, rgba(255, 106, 213, 0.28), rgba(123, 77, 255, 0.12) 55%, transparent);
}
.product-card__art img {
  border-radius: 12px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 20px 50px -20px rgba(255, 106, 213, 0.6);
  transform: perspective(900px) rotateX(8deg) rotateY(-10deg);
  transition: transform 0.4s;
}
.product-card:hover .product-card__art img { transform: perspective(900px) rotateX(4deg) rotateY(-4deg) scale(1.02); }
.product-card__body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px 24px 26px;
}
.product-card__name { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.product-card__text { margin: 0; color: var(--ink-dim); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; padding: 0; list-style: none; }
.tags li {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-line);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}
.product-card .btn { justify-self: start; }
.product-card__price { margin: 0; font-size: 18px; font-weight: 600; }

.product-card--next {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  min-height: 320px;
  padding: 32px;
  text-align: center;
  border-style: dashed;
  border-color: rgba(214, 200, 255, 0.32);
  background: transparent;
  box-shadow: none;
}
.product-card--next p { margin: 0; color: var(--ink-dim); max-width: 28ch; }

/* Plexa's page */
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  grid-template-areas:
    "text visual"
    "buy  visual";
  align-items: center;
  column-gap: clamp(32px, 5vw, 72px);
  row-gap: 28px;
  padding-block: clamp(32px, 7vh, 80px) clamp(32px, 6vh, 64px);
}
.product__text { grid-area: text; display: grid; gap: 14px; align-self: end; }
.product__visual { grid-area: visual; position: relative; }
.product__buy { grid-area: buy; align-self: start; }
.product__title {
  margin: 0;
  padding-left: 0.02em;
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--aqua), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.product__lede { margin: 0; font-size: clamp(17px, 2vw, 20px); color: var(--ink-dim); max-width: 34rem; }
.product__visual .hero__aura { width: 150%; }

@media (max-width: 900px) {
  .product {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "text" "visual" "buy";
  }
  .product__visual { width: min(100%, 640px); justify-self: center; margin-block: 12px 24px; }
}

.buybox { display: grid; gap: 16px; padding: 22px 24px; }
.buybox__price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.buybox__label { font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.buybox__value { font-size: 24px; font-weight: 600; }
.buybox__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.buybox__actions .btn { flex: 1 1 auto; }
.fine { margin: 0; font-size: 14px; color: var(--ink-dim); }

/* Mac / Windows */
.os-tabs {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-line);
  background: rgba(6, 4, 26, 0.45);
}
.js .os-tabs { display: grid; }
.os-tab {
  min-height: 40px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink-dim);
  font: 600 14px/1 var(--font-ui);
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: color 0.2s, background-color 0.2s;
}
.os-tab:hover { color: var(--ink); }
.os-tab[aria-selected="true"] {
  color: var(--ink);
  background: linear-gradient(180deg, rgba(176, 140, 255, 0.45), rgba(123, 77, 255, 0.22));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32), 0 0 18px -4px rgba(176, 140, 255, 0.8);
}
.os-panel { display: grid; gap: 16px; }
.js .os-panel { display: none; }
.js[data-os="mac"] .os-panel--mac,
.js[data-os="windows"] .os-panel--windows { display: grid; }

/* How notes are shared */
.how {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(24px, 4vw, 44px);
}
@media (max-width: 900px) { .how { grid-template-columns: minmax(0, 1fr); } }
.how__copy { display: grid; gap: 14px; }
.rules { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.rules li { position: relative; padding-left: 22px; color: var(--ink-dim); }
.rules li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.6em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
}
.rules strong { color: var(--ink); font-weight: 600; }

.demo { display: grid; gap: 18px; margin: 0; min-width: 0; }
.demo__label { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo__label .eyebrow { color: var(--ink-faint); }

.keys {
  position: relative;
  display: flex;
  height: clamp(130px, 22vw, 170px);
  padding: 10px 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #1b1240, #0e0926);
  border: 1px solid var(--glass-line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
  touch-action: manipulation;
}
.key {
  position: relative;
  flex: 1;
  margin: 0 2px;
  padding: 0 0 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  border: 0;
  border-radius: 4px 4px 9px 9px;
  background: linear-gradient(180deg, #e9e6ff, #ffffff 70%, #dcd6ff);
  box-shadow: inset 0 -4px 0 rgba(20, 13, 44, 0.18), 0 2px 0 rgba(0, 0, 0, 0.4);
  color: #4b3f80;
  font: 600 12px/1 var(--font-ui);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.key--black {
  position: absolute;
  top: 10px;
  z-index: 1;
  width: 7.4%;
  height: 58%;
  margin: 0;
  padding-bottom: 8px;
  border-radius: 3px 3px 6px 6px;
  background: linear-gradient(180deg, #2b2154, #120c2c);
  box-shadow: inset 0 -3px 0 rgba(255, 255, 255, 0.08), 0 3px 4px rgba(0, 0, 0, 0.5);
  color: #9e96d6;
  font-size: 10px;
  left: calc(10px + (100% - 20px) * var(--k) / 8);
  transform: translateX(-50%);
}
.key[aria-pressed="true"] {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 30%, white), color-mix(in srgb, var(--c) 55%, white));
  box-shadow: inset 0 -2px 0 rgba(20, 13, 44, 0.2), 0 0 18px -2px var(--c);
  transform: translateY(1px);
}
.key--black[aria-pressed="true"] {
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 45%, #120c2c), color-mix(in srgb, var(--c) 70%, #120c2c));
  color: #fff;
  transform: translateX(-50%) translateY(1px);
}
.key .ring { width: 26px; height: 26px; font-size: 13px; }
.key--black .ring { width: 22px; height: 22px; font-size: 11px; border-width: 1.5px; }
.key:not([aria-pressed="true"]) .ring { display: none; }

.synths { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.synth-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--glass-line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
}
.synth-row__name { flex: 1; min-width: 0; font-weight: 600; }
.synth-row__notes { color: var(--ink-dim); font-variant-numeric: tabular-nums; text-align: right; }
.synth-row.is-idle .ring { opacity: 0.35; box-shadow: none; }
.synth-row.is-idle .synth-row__notes { color: var(--ink-faint); }

.text-btn {
  padding: 6px 4px;
  border: 0;
  background: none;
  color: var(--aqua);
  font: 600 14px/1 var(--font-ui);
  cursor: pointer;
}
.text-btn:hover { text-decoration: underline; }

/* Features */
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}
.feature { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; align-items: start; padding: 22px; height: 100%; }
.feature .orb { grid-row: span 2; margin-top: 2px; }
.feature h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.feature p { margin: 0; color: var(--ink-dim); font-size: 15px; }

/* Specs */
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 0; margin: 0; padding: 8px 24px; }
.specs div { padding: 16px 0; border-bottom: 1px solid rgba(214, 200, 255, 0.10); }
.specs dt { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.specs dd { margin: 4px 0 0; }

.cta {
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: clamp(32px, 6vw, 56px) 24px;
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 100%, rgba(255, 106, 213, 0.22), transparent 70%),
    linear-gradient(180deg, var(--glass-top), var(--glass-bottom)),
    rgba(16, 10, 42, 0.55);
}
.cta .buybox__actions { justify-content: center; }
.cta .buybox__actions .btn { flex: 0 1 auto; }

/* Beats */
.soon { display: grid; justify-items: start; gap: 12px; padding: clamp(22px, 4vw, 36px); }
.soon h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); font-weight: 600; }
.soon p { margin: 0; color: var(--ink-dim); max-width: 56ch; }

.tracklist { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.track-head, .track {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 70px 70px 96px;
  align-items: center;
  gap: 16px;
  padding: 10px 16px;
}
.track-head {
  padding-block: 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.track { border-radius: 16px; border: 1px solid var(--glass-line); background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015)); }
.track .orb { width: 40px; }
.track .orb::before {
  content: "";
  position: absolute;
  left: 54%;
  top: 50%;
  z-index: 1;
  border-style: solid;
  border-width: 7px 0 7px 11px;
  border-color: transparent transparent transparent rgba(20, 13, 44, 0.75);
  transform: translate(-50%, -50%);
}
.bar {
  display: block;
  height: 10px;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, rgba(214, 200, 255, 0.10), rgba(214, 200, 255, 0.22), rgba(214, 200, 255, 0.10));
  background-size: 200% 100%;
  animation: shimmer 2.6s ease-in-out infinite;
}
.bar--short { width: 50%; height: 8px; margin-top: 8px; opacity: 0.6; }
@keyframes shimmer { 50% { background-position: 100% 0; } }

@media (max-width: 620px) {
  .track-head { display: none; }
  .track { grid-template-columns: 40px minmax(0, 1fr) 64px; }
  .track .col-key, .track .col-price { display: none; }
}

/* Sound kits */
.kits {
  list-style: none;
  margin: 20px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.kit { overflow: hidden; }
.kit__art {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: radial-gradient(80% 80% at 50% 60%, color-mix(in srgb, var(--c) 28%, transparent), transparent 70%);
}
.kit__art .orb { width: 42%; }
.kit__art::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px dashed color-mix(in srgb, var(--c) 60%, white);
  opacity: 0.5;
  transform: translate(-50%, -50%) rotateX(74deg);
}
.kit__art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.kit__body { display: grid; gap: 10px; padding: 18px 20px 20px; }
.kit__name { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.kit__summary { margin: 0; font-size: 14px; color: var(--ink-dim); }
.kit__buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.kit__price { font-weight: 600; font-variant-numeric: tabular-nums; }
.kit__buy .btn { min-height: 40px; padding: 0 22px; }

/* Beats: BeatStars' Blaze Player */
.blaze { display: grid; padding: clamp(6px, 1.5vw, 14px); }
.blaze__player {
  display: block;
  width: 100%;
  max-width: 1024px;
  height: 800px;
  margin-inline: auto;
  border: 0;
  border-radius: 16px;
  background: #0b0820;
}

/* About */
.about {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
  padding-block: clamp(40px, 9vh, 96px);
}
@media (max-width: 800px) { .about { grid-template-columns: minmax(0, 1fr); } }
.about__logo {
  position: relative;
  width: min(100%, 72vw, 420px);
  justify-self: center;
}
.about__logo::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 106, 213, 0.35), rgba(123, 77, 255, 0.18) 55%, transparent);
  z-index: -1;
  animation: breathe-plain 8s ease-in-out infinite;
}
@keyframes breathe-plain { 50% { opacity: 0.7; transform: scale(1.04); } }
.about__logo img {
  width: 100%;
  animation: float 9s ease-in-out infinite;
  filter: drop-shadow(0 0 40px rgba(123, 77, 255, 0.55));
}
@keyframes float { 50% { transform: translateY(-10px); } }
.about__text { display: grid; gap: 16px; }
.about__text .wordmark { font-size: clamp(26px, 4.4vw, 46px); letter-spacing: 0.12em; white-space: normal; line-height: 1.15; }
.about__text p:not(.eyebrow) { margin: 0; color: var(--ink-dim); max-width: 60ch; font-size: 17px; }
.contact { display: grid; justify-items: start; gap: 8px; margin-top: 8px; padding: 20px 22px; }
.contact__label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-faint); }
.contact__email { font-size: clamp(18px, 2.4vw, 22px); font-weight: 600; color: var(--aqua); text-decoration: none; overflow-wrap: anywhere; }
.contact__email:hover { text-decoration: underline; }
.socials { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.socials .btn { min-height: 40px; padding: 0 18px; font-size: 14px; }

/* ---------- Checkout ---------- */

.checkout {
  width: min(460px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid var(--glass-line);
  border-radius: 26px;
  color: var(--ink);
  background: linear-gradient(180deg, rgba(46, 31, 108, 0.98), rgba(17, 11, 44, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 30px 80px -20px rgba(0, 0, 0, 0.8), 0 0 80px -30px rgba(255, 106, 213, 0.6);
}
.checkout::backdrop { background: rgba(6, 4, 26, 0.72); }
.checkout__panel { position: relative; padding: 28px 24px 24px; }
.checkout__view { display: grid; gap: 10px; }
.checkout__view[hidden] { display: none; }
.checkout__test {
  display: none;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--on-gel);
  letter-spacing: 0.06em;
}
.checkout.is-test .checkout__test { display: inline-block; }
.checkout__test-card { display: none; margin-left: 8px; letter-spacing: 0.04em; text-transform: none; color: var(--gold); }
.checkout.is-test .checkout__test-card { display: inline; }
.checkout__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.checkout.is-busy .checkout__close { opacity: 0.4; cursor: default; }
.checkout__title { margin: 0; padding-right: 40px; font-size: 24px; line-height: 1.2; overflow-wrap: anywhere; }
.checkout__title:focus { outline: none; }
.checkout__summary { margin: 0; color: var(--ink-dim); font-size: 14px; }
.checkout__summary:empty { display: none; }
.checkout__price { margin: 0 0 6px; font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.checkout__label { margin: 8px 0 0; font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.checkout__input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 6px;
  border: 1px solid #cfc8ee;
  background: #ffffff;
  color: #000000;               /* black on white, like the card fields */
  font: 16px var(--font-ui);
  color-scheme: light;
}
.checkout__input::placeholder { color: #6e6a85; }
.checkout__input:focus { outline: none; border-color: var(--aqua); }
.checkout__hint { margin: 0; font-size: 13px; color: var(--ink-faint); }
.checkout__card { min-height: 90px; }
.checkout__currency { margin: -4px 0 4px; font-size: 13px; color: var(--ink-faint); }
.checkout__wallets { display: grid; gap: 10px; margin-top: 10px; }
.checkout__wallets[hidden], .checkout__wallets [hidden] { display: none; }
.checkout__google-pay { height: 48px; cursor: pointer; }
.checkout__apple-pay {
  height: 48px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  -webkit-appearance: -apple-pay-button;
  -apple-pay-button-type: buy;
  -apple-pay-button-style: white;
}
.checkout__or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.checkout__or::before, .checkout__or::after { content: ""; flex: 1; height: 1px; background: var(--glass-line); }
.checkout__pay { margin-top: 6px; width: 100%; }
.checkout__status { min-height: 1.4em; margin: 0; font-size: 14px; color: var(--ink-dim); }
.checkout__status.is-error { color: #ff8aa0; }
.checkout__done { display: grid; gap: 12px; }
.checkout__done p { margin: 0; }
.licence-code {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px 10px 16px;
  border-radius: 14px;
  border: 1px solid rgba(94, 230, 255, 0.4);
  background: rgba(6, 4, 26, 0.55);
}
.licence-code code {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  font: 600 15px/1.4 ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color: var(--aqua);
  user-select: all;
}
.licence-code .btn { min-height: 38px; padding: 0 16px; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 4px; color: var(--ink-dim); }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: auto;
  padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(214, 200, 255, 0.10);
  background: linear-gradient(180deg, rgba(6, 4, 26, 0), rgba(6, 4, 26, 0.6));
}
.footer__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 28px;
}
.footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; }
.footer__links a { font-size: 14px; color: var(--ink-dim); text-decoration: none; }
.footer__links a:hover { color: var(--ink); }
.footer__social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer__social a { font-size: 14px; color: var(--ink-dim); text-decoration: none; overflow-wrap: anywhere; }
.footer__social a:hover { color: var(--aqua); }
.footer__legal { margin: 0; font-size: 13px; color: var(--ink-faint); }
.footer__note { flex-basis: 100%; margin: 0; max-width: 90ch; font-size: 12px; line-height: 1.5; color: var(--ink-faint); }
.site-footer .wordmark { font-size: 13px; }
.site-footer .brand img { width: 28px; height: 28px; }

/* ---------- Page entrance (inner pages) ---------- */

.page-head, .product, .about { animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Home intro ----------
   Only runs when the head script adds .intro (first visit in a tab, motion allowed).
   Without it, or without JavaScript, the page simply shows as it rests. */

.intro-title, .intro-skip { display: none; }

.intro { overflow: hidden; }
.intro .intro-title {
  position: fixed;
  inset: 0;
  z-index: 5;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 26px;
  padding: var(--gutter);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}
.intro-title img {
  width: min(210px, 44vw);
  filter: drop-shadow(0 0 46px rgba(123, 77, 255, 0.7));
}
.intro-title .wordmark { font-size: clamp(22px, 5vw, 44px); letter-spacing: 0.18em; }

.intro .intro-skip {
  display: block;
  position: fixed;
  right: var(--gutter);
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink-dim);
  font: 500 13px/1 var(--font-ui);
  letter-spacing: 0.08em;
  cursor: pointer;
}

.site-header, .hero__caption, .explore, .site-footer {
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.hero__caption { transition-delay: 0.2s; }
.explore, .site-footer { transition-delay: 0.35s; }

.intro .site-header { opacity: 0; transform: translateY(-16px); pointer-events: none; }
.intro .hero__caption,
.intro .explore,
.intro .site-footer { opacity: 0; transform: translateY(14px); pointer-events: none; }
.intro .hero__stage { opacity: 0; pointer-events: none; }

/* ---------- Less motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
}

/* ---------- 404 ---------- */

.lost {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding-block: clamp(64px, 14vh, 140px);
  text-align: center;
}
.lost .orb { width: 88px; margin-bottom: 8px; animation: float 9s ease-in-out infinite; }
.lost__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }
