:root {
  --void: #060606;
  --panel: #0d0d0f;
  --panel-raised: #131315;
  --chrome: #dcdde1;
  --chrome-dim: #6f7176;
  --xst-red: #e01b1b;
  --xst-red-hot: #ff2b1f;
  --hairline: rgba(220, 221, 225, 0.12);
  --hairline-strong: rgba(220, 221, 225, 0.24);
  --dur: 0.62s;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* Sphere sized off its own tile extent (see .scene-inner / .cover-node),
     not raw viewport units — keeps every tile inside the .scene box at any
     window aspect ratio instead of only at tall/narrow ones. The 640px cap
     used to bind on every desktop monitor (1440p and up all rendered the
     same small sphere), leaving a dead band of empty width either side —
     raised so the sphere actually grows on bigger screens instead of just
     floating in more black. */
  --sphere: min(72vw, 78vh, 860px);
  --tile: calc(var(--sphere) * 0.22);
  --tile-radius: 12px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  width: 100%;
  background: var(--void);
  color: var(--chrome);
  font-family: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  font-stretch: normal;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ---------- scene ---------- */

.scene {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: 0 auto;
  height: min(90vh, 980px);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  cursor: grab;
  outline: none;
  /* Full box stays pan-y (page scrolls normally) — only the sphere's own
     hit-box (.scene-inner) below claims touch, so scrolling anywhere in this
     tall wrapper but outside the visible globe is untouched. */
  touch-action: pan-y;
}

.scene.is-dragging {
  cursor: grabbing;
}

.scene.has-custom-cursor,
.scene.has-custom-cursor.is-dragging {
  cursor: none;
}

.scene-web {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.scene-inner {
  position: relative;
  z-index: 1;
  width: var(--sphere);
  height: var(--sphere);
  /* This box IS the invisible hit-region — sized to the sphere itself, no
     bigger. touch-action: none here overrides the wrapper's pan-y, so a
     vertical drag that starts on the globe rotates it instead of scrolling
     the page. A drag starting anywhere else in .scene (above/below the
     sphere) still scrolls normally, since that touch-action isn't set there. */
  touch-action: none;
}

.cover-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--tile);
  aspect-ratio: 1 / 1;
  --glow-rgb: 224, 27, 27;
  will-change: transform, opacity;
  transition: box-shadow 0.2s ease;
}

.cover-node img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  -webkit-user-drag: none;
  user-select: none;
  pointer-events: none;
  border-radius: var(--tile-radius);
  box-shadow: 0 12px 28px -10px rgba(0, 0, 0, 0.8);
  transition: transform 0.9s var(--ease), box-shadow 0.25s ease, filter 0.25s ease;
}

/* Direct hover/focus on one cover lifts it above its neighbours, independent
   of the "closest to camera" active-cover pulse. Not gated behind the
   custom-cursor class — that class only appears with a fine pointer and no
   reduced-motion preference, and hover-grow should work regardless.
   The active (selected/closest-to-camera) cover grows the same amount. */
.cover-node:hover,
.cover-node:focus-visible,
.cover-node.is-active {
  z-index: 999 !important;
}

.cover-node:hover img,
.cover-node:focus-visible img,
.cover-node.is-active img {
  transform: scale(1.4);
}

.cover-node:hover img,
.cover-node:focus-visible img {
  filter: brightness(1.12);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, 0.9);
}

.cover-node.is-active img {
  box-shadow:
    0 0 30px 4px rgba(var(--glow-rgb), 0.6),
    0 0 70px 14px rgba(var(--glow-rgb), 0.38);
}

/* The pulse used to animate box-shadow's blur radius directly, which repaints
   the (large, blurred) shadow every single frame for 2.8s on an endless
   loop — expensive on any engine, worse on Safari. This pseudo-element
   paints the "hot" end of the pulse once as a static shadow and only
   animates its opacity, which is compositor-only work (no repaint). */
.cover-node.is-active::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  border-radius: var(--tile-radius);
  pointer-events: none;
  box-shadow:
    0 0 42px 8px rgba(var(--glow-rgb), 0.78),
    0 0 96px 22px rgba(var(--glow-rgb), 0.48);
  opacity: 0;
  will-change: opacity;
  animation: cover-node-pulse 2.8s ease-in-out infinite;
}

@keyframes cover-node-pulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cover-node.is-active::after {
    animation: none;
    opacity: 0;
  }

  /* Hover-grow keeps its transition even under reduced-motion — it's a
     direct-response effect to user input, not ambient motion, so it stays
     animated (just skip box-shadow/filter, which are decorative). */
  .cover-node img {
    transition: transform 0.9s var(--ease);
  }
}

/* ---------- custom cursor ---------- */

.cursor-dot {
  position: fixed;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  border: 1.5px solid rgba(220, 221, 225, 0.6);
  pointer-events: none;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: width 0.32s var(--ease), height 0.32s var(--ease), margin 0.32s var(--ease),
    background 0.32s var(--ease), border-color 0.32s var(--ease), opacity 0.2s ease;
}

.cursor-dot::after {
  content: "";
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(220, 221, 225, 0.8);
  transition: opacity 0.2s ease;
}

.cursor-dot.is-visible {
  opacity: 1;
}

.cursor-label {
  font-weight: 700;
  font-stretch: 112.5%;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}

.cursor-dot.is-dragmode,
.cursor-dot.is-nodehover {
  width: 60px;
  height: 60px;
  margin: -30px 0 0 -30px;
  background: var(--xst-red);
  border-color: var(--xst-red);
  box-shadow: 0 0 32px 6px rgba(224, 27, 27, 0.4);
}

.cursor-dot.is-nodehover {
  background: var(--xst-red-hot);
  border-color: var(--xst-red-hot);
}

.cursor-dot.is-dragmode::after,
.cursor-dot.is-nodehover::after {
  opacity: 0;
}

.cursor-dot.is-dragmode .cursor-label,
.cursor-dot.is-nodehover .cursor-label {
  opacity: 1;
}

@media (hover: none), (pointer: coarse) {
  .cursor-dot {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cursor-dot {
    display: none;
  }
}

/* ---------- nav wordmark + index readout (nav chrome itself lives in page.css) ---------- */

.wordmark {
  display: inline-flex;
  align-items: center;
  user-select: none;
  -webkit-user-select: none;
}

.wordmark img {
  height: 28px;
  width: auto;
  display: block;
}

.index-readout {
  font-weight: 600;
  font-stretch: 112.5%;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  color: var(--chrome-dim);
  font-variant-numeric: tabular-nums;
}

/* ---------- overlays ---------- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--panel);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility 0s var(--dur);
  overflow: hidden;
}

.overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .overlay {
    transform: none;
  }
}

/* ---------- wordmark easter egg (desktop only, see scene.js) ---------- */

#_coolMode_effect {
  overflow: hidden;
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2147483647;
}

.overlay-close {
  position: absolute;
  top: 1.75rem;
  right: 2rem;
  z-index: 2;
  font-weight: 600;
  font-stretch: 112.5%;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chrome-dim);
}

.overlay-close:hover {
  color: var(--chrome);
}

/* detail overlay */

.detail-overlay {
  display: flex;
  flex-direction: column;
}

.detail-body {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 4rem 6vw 2rem;
  overflow: hidden;
}

.detail-art {
  flex: 0 0 auto;
  width: min(38vw, 480px);
  aspect-ratio: 1 / 1;
  border: 1px solid var(--hairline);
}

.detail-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-info {
  flex: 1 1 auto;
  max-width: 640px;
}

.detail-eyebrow {
  font-weight: 600;
  font-stretch: 112.5%;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--xst-red);
  margin-bottom: 1rem;
}

.detail-title {
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.detail-note {
  font-weight: 400;
  line-height: 1.65;
  color: var(--chrome);
  margin-bottom: 1.5rem;
  max-width: 46ch;
}

.detail-note:empty {
  display: none;
}

.detail-specs {
  font-weight: 500;
  color: var(--chrome-dim);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.button-primary {
  display: inline-block;
  background: var(--xst-red);
  color: #fff;
  font-weight: 600;
  font-stretch: 112.5%;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.9rem 1.6rem;
  border-radius: 10px;
  /* Same red-tinted "raised surface" language as .work-cta / .detail-nav-btn
     hover elsewhere on the page: a bright top bevel, a hairline ring, and an
     ambient glow — so the button reads as a surface sitting above the page
     even before anyone touches it. */
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 0 0 1px rgba(224, 27, 27, 0.4), 0 16px 32px -16px rgba(224, 27, 27, 0.65);
  transition: background 0.2s ease, transform 0.2s var(--ease), box-shadow 0.25s ease;
}

.button-primary:hover {
  background: var(--xst-red-hot);
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.16) inset,
    0 0 0 1px rgba(255, 43, 31, 0.5), 0 20px 40px -14px rgba(224, 27, 27, 0.8);
}

.button-primary:focus-visible {
  outline: 2px solid var(--xst-red-hot);
  outline-offset: 3px;
}

.button-primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.1) inset,
    0 0 0 1px rgba(224, 27, 27, 0.4), 0 8px 18px -10px rgba(224, 27, 27, 0.55);
}

.detail-nav {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.detail-nav-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chrome-dim);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s var(--ease);
}

.detail-nav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.detail-nav-btn:hover,
.detail-nav-btn:focus-visible {
  background: var(--xst-red);
  border-color: var(--xst-red);
  color: #fff;
  transform: scale(1.06);
}

.filmstrip {
  flex: 0 0 88px;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0 2rem;
  border-top: 1px solid var(--hairline);
  overflow-x: auto;
  overscroll-behavior: contain;
}

.filmstrip img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  display: block;
  opacity: 0.5;
  transition: opacity 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  flex: 0 0 auto;
}

.filmstrip img:hover {
  opacity: 0.85;
}

.filmstrip img.is-active {
  opacity: 1;
  box-shadow: 0 0 0 2px var(--xst-red);
}

/* section eyebrow + title — shared by the artists section heading (its
   stage/carousel styling lives in carousel.css) */

.panel-eyebrow {
  font-weight: 600;
  font-stretch: 112.5%;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--xst-red);
  margin-bottom: 1rem;
}

.panel-title {
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

/* Artist row (.artist-stage, .artist-track, .artist-card, the labels
   ticker, etc.) lives entirely in carousel.css now — see that file. */

/* work / contact footer */

.work-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  mask-image: radial-gradient(480px circle at 50% 42%, black, transparent);
  -webkit-mask-image: radial-gradient(480px circle at 50% 42%, black, transparent);
}

.work-body {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  text-align: center;
  padding: 7rem 2rem 5rem;
}

.work-logo {
  width: clamp(110px, 14vw, 160px);
  height: auto;
  margin-bottom: 0.25rem;
}

.work-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-stretch: 112.5%;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--chrome-dim);
}

.work-eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--xst-red);
  box-shadow: 0 0 14px rgba(224, 27, 27, 0.85);
}

.work-title {
  font-weight: 900;
  font-stretch: 125%;
  font-size: clamp(2.25rem, 7.5vw, 6.5rem);
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.work-title .letter {
  display: inline-block;
  transform-origin: 50% 60%;
  will-change: transform;
}

.work-title span:not(.letter) {
  color: var(--xst-red);
}

.work-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--xst-red);
  color: #fff;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
    transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
  box-shadow: 0 0 0 1px rgba(224, 27, 27, 0.4), 0 18px 40px -14px rgba(224, 27, 27, 0.65);
}

.work-cta svg {
  width: 26px;
  height: 26px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.work-cta:hover,
.work-cta:focus-visible {
  background: #fff;
  color: var(--xst-red-hot);
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 22px 48px -12px rgba(224, 27, 27, 0.8);
}

.work-copy {
  max-width: 40ch;
  line-height: 1.65;
  color: var(--chrome);
}

.work-handle {
  font-weight: 600;
  font-stretch: 112.5%;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  color: var(--chrome-dim);
  transition: color 0.2s ease;
}

.work-handle:hover {
  color: var(--xst-red);
}

/* ---------- responsive ---------- */

@media (max-width: 900px) {
  .detail-body {
    flex-direction: column;
    justify-content: flex-start;
    padding: 5.5rem 6vw 1.5rem;
    gap: 1.5rem;
    overflow-y: auto;
  }

  .detail-art {
    width: min(70vw, 320px);
  }
}

@media (max-width: 600px) {
  :root {
    --tile: calc(var(--sphere) * 0.26);
  }

  .filmstrip {
    flex-basis: 64px;
    padding: 0 1.25rem;
  }

  .filmstrip img {
    width: 44px;
    height: 44px;
  }
}
