:root {
  --bg: #020508;
  --navy: #07101c;
  --ice: #9ad8f0;
  --frost: #d7f3ff;
  --mist: #8aa4b8;
  --glow: #3ec4ff;
  --cta: #e8f6ff;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  background: var(--bg);
  color: var(--frost);
  font-family: var(--font-body);
  overflow-x: hidden;
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(2, 5, 8, 0.18) 0%, rgba(2, 5, 8, 0.4) 48%, rgba(2, 5, 8, 0.88) 100%),
    url("../assets/header.jpg") center 38% / cover no-repeat;
}

#frost {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.grain,
.vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.grain {
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.vignette {
  background: radial-gradient(ellipse at center, transparent 45%, rgba(0, 0, 0, 0.55) 100%);
}

.stage {
  position: relative;
  z-index: 3;
  width: min(440px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 100svh;
  padding: 20px 0 max(28px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.brand {
  margin-bottom: 10px;
}

.brand__logo {
  display: block;
  width: 78px;
  height: 78px;
  object-fit: contain;
  mix-blend-mode: screen;
}

.reel {
  width: 100%;
  display: flex;
  justify-content: center;
}

.reel__frame {
  position: relative;
  width: min(210px, 56vw);
  aspect-ratio: 9 / 16;
  border-radius: 24px;
  overflow: hidden;
  background: #05090f;
  box-shadow:
    0 0 0 1px rgba(154, 216, 240, 0.22),
    0 0 40px rgba(62, 196, 255, 0.16),
    0 30px 80px rgba(0, 0, 0, 0.55);
}

.reel__video,
.reel__fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel__fallback {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 35%, rgba(158, 220, 255, 0.28), transparent 42%),
    linear-gradient(180deg, #0a1726 0%, #041018 100%);
}

.reel__fallback[hidden] {
  display: none;
}

.ice-core {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #ffffff, #9ad8f0 38%, #1a6f95 70%, transparent 72%);
  filter: blur(1px);
  box-shadow: 0 0 50px rgba(62, 196, 255, 0.55);
  animation: pulse 3.4s ease-in-out infinite;
}

.reel__hint {
  position: absolute;
  bottom: 22px;
  left: 0;
  right: 0;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(215, 243, 255, 0.7);
}

.reel__sound {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: rgba(2, 5, 8, 0.55);
  color: var(--frost);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.reel__sound[hidden] {
  display: none;
}

.reel__sound svg {
  width: 18px;
  height: 18px;
  grid-area: 1 / 1;
}

.reel__sound .icon-on,
.reel__sound.is-unmuted .icon-muted {
  display: none;
}

.reel__sound.is-unmuted .icon-on {
  display: block;
}

.drop {
  margin-top: 18px;
  width: 100%;
}

.drop__kicker {
  font-size: 0.7rem;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: var(--mist);
}

.drop__title {
  margin-top: 4px;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 16vw, 5.6rem);
  line-height: 0.85;
  letter-spacing: 0.04em;
  background: linear-gradient(180deg, #ffffff 10%, #b9e7fb 48%, #5eb8e0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 40px rgba(62, 196, 255, 0.18);
  animation: shimmer 6s linear infinite;
  background-size: 100% 200%;
}

.drop__meta {
  margin-top: 10px;
  font-size: 1rem;
  letter-spacing: 0.28em;
  font-weight: 500;
  color: var(--ice);
}

.drop__line {
  margin-top: 10px;
  font-size: 1.05rem;
  font-weight: 300;
  color: #e8f4fb;
}

.drop__countdown {
  margin-top: 8px;
  min-height: 1.2em;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mist);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 22px;
  min-width: 260px;
  padding: 15px 28px;
  border-radius: 999px;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.86rem;
  font-weight: 700;
  color: #041018;
  background: linear-gradient(180deg, #f4fcff, #9ad8f0);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.18),
    0 0 28px rgba(62, 196, 255, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 40px rgba(62, 196, 255, 0.55);
}

.cta__emoji {
  font-size: 1.1rem;
}

.social {
  margin-top: auto;
  padding-top: 22px;
}

.social__label {
  font-size: 0.68rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--mist);
}

.social__links {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.social__links a {
  color: var(--frost);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.social__links a:hover,
.social__links a:focus-visible {
  color: var(--ice);
}

.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--mist);
}

.social__handle {
  display: inline-block;
  margin-top: 10px;
  color: var(--ice);
  letter-spacing: 0.18em;
  font-size: 0.82rem;
  text-decoration: none;
}

.social__handle:hover,
.social__handle:focus-visible {
  color: var(--frost);
}

.scroll {
  display: inline-block;
  margin-top: 22px;
  color: var(--mist);
  text-decoration: none;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.scroll:hover,
.scroll:focus-visible {
  color: var(--ice);
}

.story {
  position: relative;
  z-index: 3;
  width: min(560px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
  scroll-margin-top: 24px;
  text-align: center;
}

.portrait {
  width: min(280px, 72%);
  margin: 0 auto 40px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(154, 216, 240, 0.22),
    0 0 40px rgba(62, 196, 255, 0.16),
    0 24px 60px rgba(0, 0, 0, 0.5);
}

.portrait img {
  display: block;
  width: 100%;
  height: auto;
}

.cover {
  width: min(240px, 68%);
  margin: 22px auto 6px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(154, 216, 240, 0.18),
    0 0 48px rgba(62, 196, 255, 0.22),
    0 20px 50px rgba(0, 0, 0, 0.55);
}

.cover img {
  display: block;
  width: 100%;
  height: auto;
}

.story__block + .story__block {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid rgba(154, 216, 240, 0.14);
}

.story__kicker {
  font-size: 0.68rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  color: var(--mist);
}

.story__title {
  margin-top: 10px;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 8vw, 3.2rem);
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--frost);
}

.story__text {
  margin-top: 16px;
  font-size: 1.02rem;
  font-weight: 300;
  line-height: 1.65;
  color: #c5d8e6;
  text-wrap: pretty;
}

.story__text strong {
  color: var(--frost);
  font-weight: 500;
}

.story__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
  list-style: none;
}

.story__tags li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid rgba(154, 216, 240, 0.22);
  color: var(--ice);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.story__cta {
  margin-top: 40px;
}

.story__logo {
  display: block;
  width: 92px;
  height: 92px;
  margin: 56px auto 0;
  object-fit: contain;
  mix-blend-mode: screen;
  opacity: 0.92;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes shimmer {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 0 100%;
  }
}

@media (min-width: 860px) {
  .stage {
    width: min(520px, 100%);
    padding-top: 28px;
  }

  .reel__frame {
    width: 240px;
  }
}

@media (max-height: 780px) {
  .reel__frame {
    width: min(180px, 48vw);
  }

  .drop__title {
    font-size: clamp(3.2rem, 14vw, 4.6rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .drop__title,
  .ice-core {
    animation: none;
  }
}
