@font-face {
  font-family: "Geist Sans";
  src: url("/fonts/geist-sans.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: dark;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: #f5f4fa;
  background: #08080c;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
button,
input {
  font: inherit;
}
button {
  color: inherit;
  cursor: pointer;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
}
#disco {
  --stage-inset: clamp(18px, 4vw, 64px);
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.stage {
  position: relative;
  flex: 1;
  min-height: 495px;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(ellipse at 55% 45%, #171327, #08080e 70%);
}
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 60% 45% at 14% 75%, #09090f36, transparent 100%),
    radial-gradient(ellipse 76% 56% at 5% 100%, #09090fb8, #09090f58 58%, transparent 100%),
    linear-gradient(0deg, #08080e 0%, transparent 15%),
    linear-gradient(90deg, #0a090e68, transparent 28%);
  z-index: 1;
}
#view,
.stage-controls {
  position: absolute;
  inset: 0;
}
#view canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.intro {
  position: absolute;
  bottom: clamp(18px, 4svh, 44px);
  width: 52vw;
  left: var(--stage-inset);
  pointer-events: none;
}
h1 {
  position: relative;
  z-index: 4;
  font-family: "Geist Sans", Inter, "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(64px, min(10.1vw, 24svh), 195px);
  letter-spacing: -0.043em;
  line-height: 0.95;
  margin: 0;
  font-weight: 550;
}
@supports (mix-blend-mode: screen) {
  @media (forced-colors: none) {
    h1 {
      /* Leave room for the stage colors to brighten the lettering. */
      color: oklch(0.86 0.012 295);
      mix-blend-mode: screen;
    }
    @supports (mix-blend-mode: plus-lighter) {
      h1 {
        mix-blend-mode: plus-lighter;
      }
    }
  }
}
h1 > span {
  display: block;
  width: fit-content;
  background:
    linear-gradient(90deg, #d6d6ed22, #d6d6ed04) 0 16% / 100% 1px no-repeat,
    linear-gradient(90deg, #d6d6ed22, #d6d6ed04) 0 91% / 100% 1px no-repeat;
}
.social-links {
  position: relative;
  z-index: 4;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  width: fit-content;
  margin-top: clamp(10px, 1.8vw, 25px);
  pointer-events: auto;
  margin-left: -11px;
}
.social-links a {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 5px;
}
.social-links a:hover,
.social-links a:focus-visible {
  background: #ffffff14;
}
.social-links img {
  display: block;
  flex: none;
}
.ball-handle {
  position: absolute;
  transform: translate(-50%, -50%) rotate(var(--ball-angle, 0rad));
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  background: transparent;
  border: 0;
  border-radius: 50%;
  min-width: 44px;
  min-height: 44px;
}
.ball-handle[data-zero-size] {
  background: radial-gradient(circle, #c9b6fa 2px, transparent 3px);
}
.stage[data-placing-ball] {
  cursor: crosshair;
}
.stage[data-placing-ball] .ball-handle[aria-pressed="true"],
.ball-handle:focus-visible,
.ball-handle[data-dragging],
.ball-handle[data-selected] {
  outline: 1px dashed #e4d9ffb3;
  outline-offset: -2px;
}
.ball-handle:active {
  cursor: grabbing;
}
.stage-controls {
  z-index: 3;
  pointer-events: none;
}
.fixture {
  position: absolute;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  cursor: grab;
  width: 88px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
}
.fixture-body {
  position: absolute;
  top: 50%;
  left: calc(50% - 46px);
  width: 60px;
  height: 40px;
  transform: translateY(-50%) rotate(var(--fixture-angle, -32deg));
  transform-origin: 46px center;
  isolation: isolate;
}
.fixture-body::before {
  content: "";
  position: absolute;
  inset: 6px 14px 6px 4px;
  border: 1px solid #676672;
  border-radius: 8px 4px 4px 8px;
  background:
    repeating-linear-gradient(90deg, #09090e 0 2px, #777684 2px 3px, transparent 3px 5px) 5px 7px /
    18px 11px no-repeat,
    linear-gradient(180deg, #555460, #282832 45%, #15151b 78%);
  box-shadow:
    inset 0 1px #ffffff27,
    1px 3px 5px #0009;
}
.fixture-body::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 21px;
  width: 24px;
  height: 15px;
  border: 2px solid #777685;
  border-top: 0;
  border-radius: 0 0 8px 9px;
  transform: rotate(-12deg);
  z-index: -1;
  box-shadow: 0 2px 2px #000a;
}
.fixture-lens {
  position: absolute;
  left: 36px;
  top: 5px;
  width: 20px;
  height: 30px;
  border: 3px solid #4f4e5a;
  border-left-color: #272631;
  border-radius: 50%;
  background:
    repeating-radial-gradient(ellipse at 57% 50%, #ffffff60 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 58% 50%, #fff 0%, var(--light) 42%, #18181d 90%);
  box-shadow:
    0 0 13px color-mix(in srgb, var(--light), transparent 38%),
    inset 0 0 3px #000;
}
.fixture-lens::before,
.fixture-lens::after {
  content: "";
  position: absolute;
  left: 7px;
  width: 19px;
  height: 12px;
  background: linear-gradient(115deg, #373641, #777583 68%, #373641);
}
.fixture-lens::before {
  top: -9px;
  clip-path: polygon(0 69%, 100% 0, 93% 82%, 13% 100%);
}
.fixture-lens::after {
  bottom: -9px;
  clip-path: polygon(13% 0, 93% 18%, 100% 100%, 0 31%);
}
.fixture-number {
  position: absolute;
  opacity: 0;
  top: calc(100% - 1px);
  color: #cbc8d4;
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 0.08em;
  text-shadow: 0 1px 5px #000;
}
.fixture:active {
  cursor: grabbing;
}
.fixture:is(:focus-visible, [data-dragging]) {
  outline: 1px dashed #e4d9ffb3;
  outline-offset: -3px;
}
.fixture:is(:focus-visible, [data-dragging]) .fixture-number {
  opacity: 1;
}
@media (hover: hover) and (pointer: fine) {
  .fixture:hover .fixture-lens {
    border-color: var(--light);
  }
  .fixture:hover .fixture-number {
    opacity: 1;
  }
  .ball-handle:hover {
    outline: 1px dashed #e4d9ff80;
    outline-offset: -2px;
  }
}
.motion-toggle {
  position: absolute;
  z-index: 5;
  top: 12px;
  left: var(--stage-inset);
  width: 44px;
  height: 44px;
  border: 1px solid #c9bbef38;
  border-radius: 8px;
  background: #111019ba;
  color: #e3daff;
  touch-action: manipulation;
  font-size: 17px;
}
.motion-toggle[aria-pressed="true"] {
  border-color: #c9bbef8c;
  background: #242031;
}
.motion-toggle:active {
  background: #302647;
}
#scene-status:not(:empty) {
  position: absolute;
  top: 12px;
  right: var(--stage-inset);
  z-index: 5;
  max-width: min(360px, calc(100% - 90px));
  margin: 0;
  padding: 10px 12px;
  border-radius: 6px;
  background: #111019;
  color: #f5f4fa;
  font:
    500 12px / 1.4 "Geist Sans",
    sans-serif;
}
.scene-announcement {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
/* Dark console variant of the SPEC-01 hardware skin. */
[data-skin="hardware"] {
  --metal: #222229;
  --hair: #3c3b46;
  --ink: #e9e6ef;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --key-color: var(--theme, #bea4ff);
  --key-edge: color-mix(in oklab, var(--key-color) 52%, #060608);
}
.console {
  border-top: 1px solid #a79bbe34;
  background:
    repeating-linear-gradient(0deg, #ffffff03 0 1px, transparent 1px 4px),
    linear-gradient(#22212a, #14131a);
  box-shadow: inset 0 1px #ffffff12;
  padding: 10px var(--stage-inset) max(12px, env(safe-area-inset-bottom));
  color: var(--ink);
  font-family: var(--mono);
}
.console-panel {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-width: 1600px;
  margin-inline: auto;
}
.console [data-kit="button"] {
  min-height: 44px;
  border: 1px solid #ffffff14;
  border-radius: 5px;
  padding-inline: 2px;
  background: linear-gradient(#41404c, #302f39);
  color: var(--ink);
  font: 600 10px / 1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.035em;
  touch-action: manipulation;
  user-select: none;
  box-shadow:
    inset 0 1px #ffffff24,
    0 3px #16151d,
    0 4px 5px #0006;
}
.console [data-tone="primary"] {
  background: linear-gradient(color-mix(in oklab, var(--key-color), white 22%), var(--key-color));
  color: #211832;
  box-shadow:
    inset 0 1px #ffffff75,
    0 3px var(--key-edge),
    0 4px 5px #0006;
}
.console
  [data-kit="button"]:is(:active, [aria-pressed="true"]):not(:disabled, [aria-disabled="true"]) {
  translate: 0 2px;
  box-shadow:
    inset 0 1px #ffffff24,
    0 1px #16151d;
}
.console [data-kit="button"]:is(:disabled, [aria-disabled="true"]) {
  opacity: 0.46;
  cursor: default;
}
.console [data-kit="stepper"] {
  margin: 0;
  display: grid;
  gap: 4px;
  padding: 6px 7px 5px;
  border: 1px solid #111118;
  border-radius: 5px;
  background: #18181e;
  box-shadow:
    inset 0 1px 3px #08080d,
    0 1px #ffffff15;
  min-width: 0;
}
.console [data-kit="row"] {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  font: 600 10px / 1.2 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.console [data-kit="value"] {
  font-variant-numeric: tabular-nums;
  color: var(--key-color);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.console [data-kit="stepper-keys"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 0 0 3px;
}
.console [data-kit="stepper-keys"] button {
  min-height: 44px;
  font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
  .console [data-kit="button"]:hover:not(:disabled, [aria-disabled="true"]) {
    border-color: #c9bbef70;
  }
  .motion-toggle:hover {
    background: #242031;
  }
}
@media (760px < width <= 1100px) {
  h1 {
    font-size: min(10.1vw, calc(12vw - 24px), 24svh);
  }
}
@media (max-width: 760px) {
  #disco {
    --stage-inset: 18px;
  }
  .stage-controls:not([data-scene-ready]) .fixture {
    visibility: hidden;
  }
  .stage {
    min-height: clamp(410px, 66svh, 560px);
  }
  .stage::after {
    background:
      radial-gradient(ellipse 115% 38% at 15% 77%, #09090f3d, transparent 100%),
      linear-gradient(0deg, #09090fd2 0%, #09090f45 22%, transparent 52%),
      linear-gradient(90deg, #0a090e45, transparent 25%);
  }
  .intro {
    bottom: 12px;
    width: calc(100% - 36px);
  }
  h1 {
    font-size: min(18.1vw, 13svh, 112px);
  }
  .console {
    padding: 8px 8px max(9px, env(safe-area-inset-bottom));
  }
  .console-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
  }
  .console [data-kit="stepper"] {
    gap: 2px;
    padding: 4px 3px 3px;
  }
  .console [data-kit="stepper-keys"] {
    gap: 2px;
    padding-bottom: 2px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .console [data-kit="button"] {
    transition:
      translate 90ms var(--ease-detent),
      box-shadow 90ms var(--ease-detent);
  }
}
