/* =============================================================
   RESET & BASE
   ============================================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

/* =============================================================
   LOADING OVERLAY
   ============================================================= */
#loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 800ms ease;
}

#loader.fade-out {
  opacity: 0;
  pointer-events: none;
}

#loader img {
  width: 120px;
  height: auto;
}

/* =============================================================
   SCENE CONTAINER
   ============================================================= */
#scene {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

/* =============================================================
   LAYER 1: BACKGROUND
   ============================================================= */
#bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* =============================================================
   CONE IMAGE (visual layer, fills viewport, not interactive)
   SLUPEK images have a transparent background — no blend mode needed.
   ============================================================= */
#cone {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#cone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  animation: breathe 4s ease-in-out infinite;
  transition: filter 200ms ease;
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.006); }
}

/* =============================================================
   CONE LINK — invisible hotspot positioned over the cone only.
   Landscape: cone ~36% wide, centered. Portrait: ~74% wide.
   ::after gives the subtle white flash on hover/tap.
   ============================================================= */
#cone-link {
  position: absolute;
  left: 32%;
  right: 32%;
  top: 3%;
  bottom: 2%;
  display: block;
  cursor: pointer;
  text-decoration: none;
}

/* Hover/tap: brighten the cone image via sibling selector.
   Works because #cone-link precedes #cone in the DOM,
   and #cone has pointer-events:none so clicks pass through. */
#cone-link:hover ~ #cone img,
#cone-link:active ~ #cone img {
  filter: brightness(1.12);
}

@media (orientation: portrait) {
  #cone-link {
    left: 13%;
    right: 13%;
    top: 3%;
    bottom: 2%;
  }
}

/* =============================================================
   LAYER 3: SPEAKER PILL BUTTON
   ============================================================= */
#speaker {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border: none;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  cursor: pointer;
  transition: filter 150ms ease;
}

#speaker:hover {
  filter: brightness(1.2);
}

#speaker-icon svg {
  width: 16px;
  height: 16px;
  display: block;
  flex-shrink: 0;
}

/* =============================================================
   ACCESSIBILITY: REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  #loader   { transition: none; }
  #cone img { animation: none; }
}