/* Monsieur Valero / approved M18 vinyl. All selectors stay inside the mount. */
#vinyl-stage {
  --vinyl-accent: #6b2036;
  --vinyl-size: min(86vw, 110svh, 1060px);
  --vinyl-left: 56%;
  --vinyl-top: 50%;
  --vinyl-disc-inset: 4%;
  --vinyl-disc-diameter: 92%;
  --vinyl-disc-radius: 46%;
  --vinyl-rim-width: clamp(2px, .28vw, 3px);
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  perspective: none;
  contain: layout style;
}

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

#vinyl-stage .mv-vinyl {
  position: absolute;
  inset: 0;
  color: #fff;
  user-select: none;
  -webkit-user-select: none;
}

#vinyl-stage .mv-vinyl__orbit {
  position: absolute;
  left: var(--vinyl-left);
  top: var(--vinyl-top);
  width: var(--vinyl-size);
  aspect-ratio: 1;
  opacity: 1;
  transform: translate(-50%, -50%);
  transform-origin: 50% 50%;
  transform-style: flat;
  will-change: transform, opacity;
  backface-visibility: hidden;
}

#vinyl-stage .mv-vinyl__edge {
  position: absolute;
  inset: var(--vinyl-disc-inset);
  border-radius: 50%;
  background: #080808;
  box-shadow: none;
  transform: none;
}

#vinyl-stage .mv-vinyl__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  display: block;
  overflow: visible;
  clip-path: circle(var(--vinyl-disc-radius) at 50% 50%);
  transform-origin: 50% 50%;
  transform: rotate(-16deg);
  will-change: transform;
  backface-visibility: hidden;
}

/* Fixed, narrow PVC chamfer: its silver edge is contained inside the disc. */
#vinyl-stage .mv-vinyl__rim {
  position: absolute;
  inset: var(--vinyl-disc-inset);
  border: 0;
  border-radius: 50%;
  clip-path: circle(50% at 50% 50%);
  pointer-events: none;
  transform: none;
  box-shadow: none;
  filter: none;
  background:
    conic-gradient(
      from -45deg,
      rgb(255 255 255 / .14) 0deg,
      rgb(255 255 255 / .035) 70deg,
      rgb(0 0 0 / .20) 140deg,
      rgb(255 255 255 / .065) 185deg,
      rgb(255 255 255 / .01) 258deg,
      rgb(255 255 255 / .14) 360deg
    ),
    radial-gradient(
      circle closest-side,
      transparent calc(100% - var(--vinyl-rim-width)),
      #101010 calc(100% - var(--vinyl-rim-width) + .45px),
      #2f2f2f calc(100% - var(--vinyl-rim-width) * .57),
      #191919 calc(100% - var(--vinyl-rim-width) * .32),
      #3b3b3b calc(100% - var(--vinyl-rim-width) * .18),
      #272727 calc(100% - var(--vinyl-rim-width) * .06),
      #080808 100%
    );
  -webkit-mask: radial-gradient(circle closest-side, transparent calc(100% - var(--vinyl-rim-width)), #000 calc(100% - var(--vinyl-rim-width) + .45px), #000 calc(100% - .15px), transparent 100%);
  mask: radial-gradient(circle closest-side, transparent calc(100% - var(--vinyl-rim-width)), #000 calc(100% - var(--vinyl-rim-width) + .45px), #000 calc(100% - .15px), transparent 100%);
}

#vinyl-stage .mv-vinyl__sheen {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(
    from -78deg,
    transparent 0deg,
    rgb(255 255 255 / .012) 9deg,
    rgb(255 255 255 / .05) 19deg,
    rgb(255 255 255 / .16) 27deg,
    rgb(255 255 255 / .29) 31deg,
    rgb(255 255 255 / .09) 36deg,
    rgb(255 255 255 / .015) 48deg,
    transparent 65deg 161deg,
    rgb(255 255 255 / .02) 181deg,
    rgb(255 255 255 / .085) 199deg,
    rgb(255 255 255 / .20) 210deg,
    rgb(255 255 255 / .055) 218deg,
    transparent 242deg 360deg
  );
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 30.5%, #000 31% 91.1%, transparent 91.8%);
  mask: radial-gradient(circle closest-side, transparent 0 30.5%, #000 31% 91.1%, transparent 91.8%);
  mix-blend-mode: screen;
  opacity: .72;
  transform-origin: 50% 50%;
  transform: none;
  clip-path: circle(var(--vinyl-disc-radius) at 50% 50%);
  backface-visibility: hidden;
}

#vinyl-stage .mv-vinyl__label { fill: var(--vinyl-accent); }
#vinyl-stage .mv-vinyl__white-label { fill: #f0efeb; }
#vinyl-stage .mv-vinyl__handwriting {
  fill: #151515;
  font: 500 29px/1 "Bradley Hand", "Segoe Print", cursive;
  letter-spacing: -.8px;
}
#vinyl-stage[data-material="photograph"] .mv-vinyl__face { object-fit: contain; }
#vinyl-stage[data-material="photograph"] .mv-vinyl__edge {
  opacity: 1;
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 2.7%, #000 2.9%);
  mask: radial-gradient(circle closest-side, transparent 0 2.7%, #000 2.9%);
}
#vinyl-stage[data-material="photograph"] .mv-vinyl__sheen {
  opacity: .72;
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 36%, #000 36.7% 90.8%, transparent 92%);
  mask: radial-gradient(circle closest-side, transparent 0 36%, #000 36.7% 90.8%, transparent 92%);
}

/* Only the circular disc captures gestures. The remaining hero still scrolls normally. */
#vinyl-stage .mv-vinyl__surface {
  position: absolute;
  inset: var(--vinyl-disc-inset);
  display: block;
  width: var(--vinyl-disc-diameter);
  height: var(--vinyl-disc-diameter);
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  box-shadow: none;
  border-radius: 50%;
  clip-path: circle(50%);
  background: transparent;
  color: #fff;
  appearance: none;
  -webkit-appearance: none;
  pointer-events: auto;
  touch-action: none;
  cursor: grab;
  transform: none;
  -webkit-tap-highlight-color: transparent;
}

#vinyl-stage .mv-vinyl__surface:focus,
#vinyl-stage .mv-vinyl__surface:active {
  outline: none;
  box-shadow: none;
}
#vinyl-stage[data-input-modality="keyboard"] .mv-vinyl__surface:focus-visible {
  outline: none;
  box-shadow: inset 0 0 0 2px #9b425b;
}
#vinyl-stage[data-input-modality="pointer"] .mv-vinyl__surface:focus-visible {
  outline: none;
  box-shadow: none;
}

#vinyl-stage[data-scratching="true"] .mv-vinyl__surface { cursor: grabbing; }
#vinyl-stage[data-scratching="true"] .mv-vinyl__face { will-change: transform; }

#vinyl-stage .mv-vinyl__instructions {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

#vinyl-stage[data-motion="paused"] .mv-vinyl__orbit,
#vinyl-stage[data-motion="paused"] .mv-vinyl__face,
#vinyl-stage[data-motion="paused"] .mv-vinyl__sheen { will-change: auto; }

@media (max-width: 760px) {
  #vinyl-stage {
    --vinyl-size: min(110vw, 91svh, 860px);
    --vinyl-left: 52%;
    --vinyl-top: 48%;
  }
}

@media (max-width: 480px) {
  #vinyl-stage {
    --vinyl-size: min(126vw, 88svh);
    --vinyl-left: 51%;
    --vinyl-top: 47%;
  }
}

@media (prefers-reduced-motion: reduce) {
  #vinyl-stage .mv-vinyl__orbit,
  #vinyl-stage .mv-vinyl__face,
  #vinyl-stage .mv-vinyl__sheen { will-change: auto; }
}
