:root {
  --panel: rgba(8, 9, 12, 0.42);
  --line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #000;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

#bgImage {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.1) contrast(1.02);
  transform: scale(1.03);
  pointer-events: none;
  opacity: 0;
}

#fxCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 220vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2.5rem);
}

.media-grid {
  position: sticky;
  top: 4vh;
  width: min(1200px, 100%);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(0.75rem, 2vw, 1.2rem);
}

.tile {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(8px) saturate(1.2);
  -webkit-backdrop-filter: blur(8px) saturate(1.2);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.35);
}

.tile iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.tile-video {
  grid-column: span 6;
  aspect-ratio: 16 / 10;
}

.tile-audio {
  grid-column: span 8;
  aspect-ratio: 16 / 6;
}

.tile-links {
  grid-column: span 4;
  min-height: clamp(150px, 30vh, 240px);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.tile-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 4, 6, 0.55);
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease;
}

.tile-links a:hover {
  transform: scale(1.03);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

@media (max-width: 900px) {
  .stage {
    min-height: 210vh;
  }

  .tile-video,
  .tile-audio,
  .tile-links {
    grid-column: span 12;
  }

  .tile-audio {
    aspect-ratio: 16 / 8;
  }

  .tile-links {
    min-height: 170px;
  }
}
