/* LAB ELECTRONICS — mystery reel: tight crops, odd zoom, almost no copy */

:root {
  --void: #050505;
  --hud: rgba(5, 5, 5, 0.78);
  --glyph: rgba(250, 250, 250, 0.22);
  --volt: #d8ff3a;
}

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

html,
body {
  height: 100%;
  margin: 0;
  background: var(--void);
  color: #e9e9ea;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  padding: 0.4rem 0.65rem;
  background: var(--volt);
  color: #000;
  font-weight: 800;
  z-index: 50;
}

.skip:focus {
  left: 0.5rem;
}

.reel {
  position: relative;
  min-height: 100dvh;
}

.reel__scroller {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  min-height: 100dvh;
  scrollbar-width: none;
  outline: none;
}

.reel__scroller::-webkit-scrollbar {
  display: none;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.slide__inner {
  min-height: 100dvh;
  padding: 0 0 calc(4.75rem + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.slide__inner--z {
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.25rem;
}

.slide--a {
  background: #0a0b0f;
}
.slide--b {
  background: #101018;
}
.slide--c {
  background: #080604;
}
.slide--d {
  background: #0d1016;
}
.slide--e {
  background: #120a0c;
}
.slide--z {
  background: radial-gradient(120% 90% at 50% 20%, #151515 0%, #030303 70%);
}

.glyph {
  position: absolute;
  top: clamp(0.65rem, 3vh, 1.1rem);
  right: clamp(0.75rem, 4vw, 1.25rem);
  margin: 0;
  font-size: clamp(1.1rem, 4vw, 1.5rem);
  font-weight: 700;
  letter-spacing: 0.35em;
  color: var(--glyph);
  z-index: 2;
  pointer-events: none;
}

.glyph--z {
  position: static;
  margin-bottom: 1.25rem;
  letter-spacing: 0.55em;
  opacity: 0.35;
}

.shot {
  margin: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.shot img {
  display: block;
  width: 155%;
  max-width: none;
  height: min(78dvh, 640px);
  object-fit: cover;
  will-change: transform;
  filter: contrast(1.08) saturate(0.92);
}

/* Odd framings: different rotations, scales, anchor points */
.shot--a img {
  transform: rotate(-9deg) scale(1.22) translate(6%, 4%);
  object-position: 42% 48%;
}

.shot--b img {
  transform: rotate(6deg) scale(1.35) translate(-4%, 8%);
  object-position: 55% 40%;
  height: min(52dvh, 420px);
  width: 220%;
}

.shot--c img {
  transform: rotate(-14deg) scale(1.45) translate(10%, -6%);
  object-position: 38% 62%;
}

.shot--d img {
  transform: rotate(3deg) scale(1.18) translate(-10%, 2%);
  object-position: 62% 35%;
}

.shot--e img {
  transform: rotate(-7deg) scale(1.32) translate(4%, 6%);
  object-position: 28% 55%;
}

.ping {
  color: rgba(245, 245, 245, 0.55);
  font-size: clamp(0.78rem, 3.4vw, 0.95rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-bottom: 1px solid rgba(245, 245, 245, 0.18);
  padding-bottom: 0.15em;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.ping:hover {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.45);
}

.ping:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 4px;
}

.reel__hud {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  padding: 0.45rem 0.65rem calc(0.55rem + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, var(--hud) 40%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  pointer-events: none;
}

.reel__hud > * {
  pointer-events: auto;
}

.reel__dots {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.reel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
}

.reel__dot[aria-selected="true"] {
  background: var(--volt);
}

.reel__hint {
  margin: 0;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
}

@media (min-width: 720px) {
  .shot img {
    height: min(72dvh, 700px);
  }

  .reel__hint {
    display: none;
  }
}

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

  .shot--a img,
  .shot--b img,
  .shot--c img,
  .shot--d img,
  .shot--e img {
    transform: none;
    width: 100%;
    height: auto;
    max-height: min(70dvh, 680px);
    object-fit: contain;
  }

  .reel__hint {
    display: none;
  }
}
