:root {
  --bg-ink: #060708;
  --smoke-light: rgba(228, 238, 231, 0.7);
  --smoke-mid: rgba(175, 193, 183, 0.42);
  --smoke-deep: rgba(57, 70, 68, 0.55);
  --ember: rgba(214, 176, 92, 0.42);
  --text-main: rgba(245, 246, 244, 0.96);
  --text-soft: #bfd0df;
  --text-link: #d6e7f5;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Outfit", "Avenir Next", "Segoe UI", sans-serif;
  background: var(--bg-ink);
  color: var(--text-main);
  overflow: hidden;
}

.scene {
  position: relative;
  min-height: 100dvh;
  isolation: isolate;
  overflow: hidden;
}

.scene::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(95% 95% at 30% 20%, rgba(115, 141, 130, 0.26), transparent 54%),
    radial-gradient(80% 80% at 66% 72%, var(--ember), transparent 62%),
    linear-gradient(162deg, #11171b 0%, #07090b 43%, #15150f 100%);
  z-index: -5;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  border-inline: 1px solid rgba(255, 255, 255, 0.25);
  opacity: 0.22;
  pointer-events: none;
}

.sky {
  position: absolute;
  inset: -16%;
  filter: saturate(110%);
}

.plume {
  position: absolute;
  border-radius: 52% 48% 58% 42% / 44% 60% 40% 56%;
  mix-blend-mode: screen;
  filter: blur(8px);
  animation: drift 24s ease-in-out infinite alternate;
}

.plume-a {
  width: 58vmax;
  aspect-ratio: 1;
  left: -16vmax;
  top: -7vmax;
  background: radial-gradient(circle at 56% 35%, var(--smoke-light) 8%, rgba(220, 232, 226, 0.12) 44%, transparent 70%);
}

.plume-b {
  width: 54vmax;
  aspect-ratio: 1;
  right: -18vmax;
  top: 15vmax;
  animation-delay: -5s;
  background: radial-gradient(circle at 40% 50%, var(--smoke-mid) 4%, rgba(168, 182, 171, 0.2) 42%, transparent 74%);
}

.plume-c {
  width: 68vmax;
  aspect-ratio: 1;
  left: -18vmax;
  bottom: -24vmax;
  animation-delay: -12s;
  background: radial-gradient(circle at 58% 34%, var(--smoke-light) 0%, rgba(217, 227, 222, 0.14) 46%, transparent 72%);
}

.plume-d {
  width: 42vmax;
  aspect-ratio: 1;
  right: 4vmax;
  bottom: -10vmax;
  animation-delay: -3s;
  background: radial-gradient(circle at 50% 42%, rgba(230, 192, 103, 0.38) 0%, rgba(136, 105, 56, 0.24) 40%, transparent 76%);
}

.plume-e {
  width: 48vmax;
  aspect-ratio: 1;
  right: -12vmax;
  top: -8vmax;
  animation-delay: -16s;
  background: radial-gradient(circle at 45% 45%, var(--smoke-deep) 12%, rgba(49, 60, 57, 0.18) 48%, transparent 74%);
}

.grain {
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.06) 0 1px, transparent 1px 2px),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 2px);
  opacity: 0.11;
  mix-blend-mode: soft-light;
  transform: scale(1.3);
}

.brand-mark {
  position: absolute;
  top: max(2.4rem, 6.5dvh);
  left: 50%;
  transform: translateX(-50%);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 500;
  font-size: clamp(0.92rem, 1.65vw, 1.1rem);
  letter-spacing: 0.08em;
  opacity: 0;
  color: rgba(255, 255, 255, 0.72);
  transition: opacity 800ms ease, transform 1200ms cubic-bezier(0.2, 0.7, 0, 1);
}

.domain {
  position: absolute;
  top: 47%;
  left: 50%;
  margin: 0;
  transform: translate(-50%, -34%);
  font-weight: 400;
  font-size: clamp(2.1rem, 5.8vw, 4.7rem);
  line-height: 1.08;
  letter-spacing: 0.05em;
  text-align: center;
  color: var(--text-main);
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.58);
  opacity: 0;
  transition: opacity 900ms ease, transform 1200ms cubic-bezier(0.2, 0.7, 0, 1);
}

.note {
  position: absolute;
  left: 50%;
  bottom: min(4.8rem, 10dvh);
  margin: 0;
  width: min(90vw, 40rem);
  transform: translate(-50%, 1.5rem);
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  font-weight: 300;
  line-height: 1.35;
  text-align: center;
  color: var(--text-soft);
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition:
    opacity 900ms ease 120ms,
    transform 1200ms cubic-bezier(0.2, 0.7, 0, 1) 120ms;
}

.note-line {
  display: block;
}

.note-line + .note-line {
  margin-top: 1.1rem;
}

.note-line-link {
  margin-top: 2rem;
}

.note a {
  color: var(--text-link);
  text-decoration: none;
  border-bottom: 1px solid rgba(214, 231, 245, 0.45);
  transition: color 180ms ease, border-color 180ms ease, opacity 180ms ease;
}

.note a:hover,
.note a:focus-visible {
  color: #ecf5fd;
  border-bottom-color: rgba(236, 245, 253, 0.75);
}

body.loaded .brand-mark {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

body.loaded .domain {
  opacity: 1;
  transform: translate(-50%, -50%);
}

body.loaded .note {
  opacity: 1;
  transform: translate(-50%, 0);
}

@keyframes drift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(1.2vmax, -1.6vmax, 0) scale(1.04);
  }

  100% {
    transform: translate3d(-1.2vmax, 1.8vmax, 0) scale(0.98);
  }
}

@media (max-width: 600px) {
  .domain {
    top: 49%;
    letter-spacing: 0.03em;
    font-size: clamp(1.9rem, 10vw, 2.8rem);
  }

  .note {
    bottom: clamp(2.2rem, 8dvh, 4.2rem);
    width: min(90vw, 22rem);
    font-size: clamp(1.05rem, 5vw, 1.5rem);
  }

  .note-line + .note-line {
    margin-top: 0.85rem;
  }

  .note-line-link {
    margin-top: 1.5rem;
  }

  .brand-mark {
    top: max(1.6rem, 4.5dvh);
  }
}
