:root {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: rgba(248, 250, 252, 0.72);
  --panel: rgba(12, 18, 24, 0.56);
  --line: rgba(248, 250, 252, 0.16);
  --mint: #25d6a2;
  --coral: #ff6b55;
  --sun: #ffd166;
  --blue: #4cc9f0;
  --plum: #7c3aed;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 18%, rgba(37, 214, 162, 0.24), transparent 30%),
    radial-gradient(circle at 82% 22%, rgba(255, 209, 102, 0.18), transparent 28%),
    linear-gradient(135deg, #0b1220 0%, #111827 42%, #1d2330 100%);
}

.stage {
  position: relative;
  display: block;
  width: 100vw;
  height: 100vh;
  min-height: 640px;
  padding: 0;
  isolation: isolate;
}

.ambient {
  position: absolute;
  inset: auto;
  z-index: -1;
  width: 36vmax;
  aspect-ratio: 1;
  border-radius: 999px;
  filter: blur(32px);
  opacity: 0.32;
  animation: drift 18s ease-in-out infinite alternate;
}

.ambient-a {
  left: -12vmax;
  bottom: -12vmax;
  background: var(--coral);
}

.ambient-b {
  top: -14vmax;
  right: -10vmax;
  background: var(--blue);
  animation-delay: -6s;
}

.masthead,
.status {
  display: none;
  align-items: center;
}

.masthead {
  position: absolute;
  top: clamp(18px, 2.4vw, 40px);
  left: clamp(18px, 2.4vw, 40px);
  right: clamp(18px, 2.4vw, 40px);
  z-index: 30;
  justify-content: space-between;
  gap: 24px;
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--sun);
  font-size: clamp(14px, 1.3vw, 20px);
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 88px);
  line-height: 0.9;
  letter-spacing: 0;
}

.status {
  gap: 12px;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: clamp(14px, 1.2vw, 18px);
  font-weight: 800;
  backdrop-filter: blur(18px);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 18px var(--mint);
}

.showcase {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 0;
  overflow: hidden;
}

.collage {
  position: relative;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border-radius: 0;
  transform-style: preserve-3d;
}

.tile {
  position: absolute;
  z-index: var(--z);
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translate3d(var(--from-x), var(--from-y), 0) rotate(var(--from-r)) scale(0.58);
  opacity: 0;
  animation: fly-in 1450ms cubic-bezier(0.2, 0.9, 0.2, 1.05) forwards;
  animation-delay: var(--delay);
}

.tile img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center center;
  transform: none;
}

.tile.feature {
  border: 0;
  box-shadow: none;
}

.tile.exit {
  animation: none;
}

.caption {
  display: none;
  position: absolute;
  top: clamp(136px, 17vh, 190px);
  left: 50%;
  z-index: 20;
  max-width: min(76vw, 920px);
  margin-top: 0;
  padding: 14px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 13, 21, 0.66);
  color: var(--ink);
  font-size: clamp(20px, 2.2vw, 38px);
  font-weight: 950;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.empty {
  display: grid;
  place-items: center;
  width: min(82vw, 980px);
  min-height: 360px;
  padding: 36px;
  border: 1px dashed rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(8, 13, 21, 0.52);
  color: var(--muted);
  font-size: clamp(24px, 3vw, 46px);
  font-weight: 900;
  text-align: center;
}

@keyframes fly-in {
  0% {
    opacity: 0;
    transform: translate3d(var(--from-x), var(--from-y), 0) rotate(var(--from-r)) scale(0.58);
  }

  70% {
    opacity: 1;
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) rotate(var(--r)) scale(1);
  }
}

@keyframes fly-out {
  to {
    opacity: 0;
    transform: translate3d(var(--to-x), var(--to-y), 0) rotate(var(--to-r)) scale(0.44);
  }
}

@keyframes drift {
  to {
    transform: translate3d(7vw, -4vh, 0) scale(1.08);
  }
}

@media (max-width: 760px) {
  body {
    overflow: hidden;
  }

  .stage {
    min-height: 100vh;
  }

  .masthead {
    align-items: flex-start;
    flex-direction: column;
  }

  .collage {
    width: 100vw;
    height: 100vh;
    min-height: 100vh;
  }

}
