:root {
  --ink: #1e2a32;
  --muted: #5a6b75;
  --fog: #e8eef2;
  --mist: #d0dde6;
  --sea: #2a7a8c;
  --deep: #152028;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", "Segoe UI", sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--fog);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 80% at 50% -10%, rgba(120, 180, 200, 0.35), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 100%, rgba(42, 122, 140, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 45% at 0% 80%, rgba(160, 190, 210, 0.4), transparent 45%),
    linear-gradient(180deg, #f2f6f8 0%, #dce7ee 55%, #c9d8e2 100%);
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(64px);
  animation: drift 18s ease-in-out infinite;
  will-change: transform;
}

.orb-a {
  width: min(55vw, 480px);
  height: min(55vw, 480px);
  top: -8%;
  right: -6%;
  background: radial-gradient(circle, rgba(90, 170, 190, 0.4), transparent 70%);
}

.orb-b {
  width: min(45vw, 380px);
  height: min(45vw, 380px);
  bottom: -10%;
  left: -8%;
  background: radial-gradient(circle, rgba(70, 110, 140, 0.25), transparent 70%);
  animation-delay: -7s;
  animation-duration: 22s;
}

.grain {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  mix-blend-mode: multiply;
  pointer-events: none;
  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='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

.stage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2.5rem);
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.mark {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--sea);
  opacity: 0;
  animation: rise 0.9s ease forwards 0.15s;
}

.headline {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 14ch;
  color: var(--deep);
  opacity: 0;
  animation: rise 1s ease forwards 0.35s;
}

.ellipsis {
  font-style: italic;
  color: var(--sea);
  display: inline-block;
  animation: pulse-dots 2.4s ease-in-out infinite;
  animation-delay: 1.2s;
}

.lede {
  font-weight: 300;
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--muted);
  letter-spacing: 0.02em;
  max-width: 32ch;
  opacity: 0;
  animation: rise 1s ease forwards 0.55s;
}

.countdown {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(0.75rem, 2.5vw, 1.5rem);
  margin-top: clamp(1.5rem, 4vw, 2.75rem);
  opacity: 0;
  animation: rise 1.1s ease forwards 0.75s;
}

.unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: clamp(3.5rem, 12vw, 5.5rem);
}

.value {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6.5vw, 3.75rem);
  font-weight: 600;
  line-height: 1;
  color: var(--deep);
  font-variant-numeric: tabular-nums;
  transition: transform 0.25s ease;
}

.value.tick {
  animation: tick 0.35s ease;
}

.label {
  margin-top: 0.55rem;
  font-size: 0.68rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

.sep {
  width: 1px;
  align-self: stretch;
  margin: 0.35rem 0 1.6rem;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(30, 42, 50, 0.2),
    transparent
  );
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-3%, 4%) scale(1.06);
  }
}

@keyframes pulse-dots {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes tick {
  0% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-4px);
  }
  100% {
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .countdown {
    gap: 0.5rem;
  }

  .sep {
    display: none;
  }

  .unit {
    min-width: 3.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .orb,
  .mark,
  .headline,
  .lede,
  .countdown,
  .ellipsis,
  .value.tick {
    animation: none !important;
  }

  .mark,
  .headline,
  .lede,
  .countdown {
    opacity: 1;
  }
}
