:root {
  color-scheme: dark;
  --bg-1: #6725d3;
  --bg-2: #8f34df;
  --bg-3: #e739d6;
  --text: rgba(255, 255, 255, 0.98);
  --text-soft: rgba(255, 255, 255, 0.86);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --glass-border: rgba(255, 255, 255, 0.18);
  --shadow: 0 26px 80px rgba(42, 7, 93, 0.3);
  --radius: 28px;
  --page-width: 980px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.16), transparent 22%),
    radial-gradient(circle at 82% 20%, rgba(255, 255, 255, 0.12), transparent 20%),
    radial-gradient(circle at 50% 100%, rgba(255, 255, 255, 0.08), transparent 30%),
    linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 52%, var(--bg-3) 100%);
}

.ambient {
  position: fixed;
  inset: auto;
  border-radius: 999px;
  filter: blur(72px);
  pointer-events: none;
  opacity: 0.5;
}

.ambient--one {
  width: 38vw;
  height: 38vw;
  min-width: 280px;
  min-height: 280px;
  top: -12vw;
  left: -10vw;
  background: rgba(255, 255, 255, 0.18);
}

.ambient--two {
  width: 34vw;
  height: 34vw;
  min-width: 240px;
  min-height: 240px;
  right: -8vw;
  bottom: -10vw;
  background: rgba(255, 255, 255, 0.14);
}

img,
video {
  display: block;
  width: 100%;
  border-radius: inherit;
}

img {
  height: auto;
  object-fit: contain;
  background: transparent;
}

video {
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
  background: #12081f;
}

.page-shell {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 32px), var(--page-width));
  margin: 0 auto;
  padding: clamp(28px, 4vw, 44px) 0 clamp(56px, 6vw, 84px);
}

.page-header {
  margin-bottom: 24px;
  text-align: center;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 1.35rem + 2.1vw, 3.3rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.05em;
  text-wrap: balance;
}

.gallery-stack {
  padding: clamp(16px, 2.8vw, 28px);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px) saturate(150%);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
}

.gallery-stack + .gallery-stack {
  margin-top: clamp(28px, 4vw, 40px);
}

.stack-block + .stack-block {
  margin-top: 0;
}

.stack-label {
  margin: 0 0 10px;
  padding-left: 4px;
  font-size: 0.98rem;
  line-height: 1.35;
  font-weight: 700;
  color: var(--text-soft);
}

.media-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(8, 6, 20, 0.12);
  box-shadow: 0 20px 48px rgba(18, 8, 39, 0.26);
}

.flow-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 16px 0;
  color: rgba(255, 255, 255, 0.92);
}

.flow-indicator__icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--glass-strong);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 28px rgba(18, 8, 39, 0.18);
  font-size: 1.2rem;
  animation: bounceArrow 1.5s ease-in-out infinite;
}

.flow-indicator__text {
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

@keyframes bounceArrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--page-width));
    padding-top: 20px;
  }

  .gallery-stack {
    padding: 14px;
    border-radius: 24px;
  }

  .media-card {
    border-radius: 22px;
  }

  .flow-indicator {
    margin: 14px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .flow-indicator__icon {
    animation: none;
  }
}
