@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@200;300&display=swap");

:root {
  color-scheme: dark;
  background: #0b1010;
  font-family: "Manrope", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 47%, rgba(187, 221, 203, 0.11), transparent 23rem),
    linear-gradient(145deg, #0e1514 0%, #080b0c 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background:
    radial-gradient(circle at 18% 28%, rgba(178, 212, 191, 0.07), transparent 18%),
    radial-gradient(circle at 80% 75%, rgba(128, 165, 150, 0.06), transparent 21%);
  filter: blur(32px);
  animation: atmosphere 12s ease-in-out infinite alternate;
}

body::after {
  opacity: 0.16;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
  mix-blend-mode: soft-light;
}

main {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 2rem;
  isolation: isolate;
}

h1 {
  margin: 0;
  color: #dce8df;
  font-size: clamp(2.8rem, 10.5vw, 10.5rem);
  font-weight: 200;
  line-height: 0.9;
  letter-spacing: 0.25em;
  text-indent: 0.25em;
  text-shadow: 0 0 2.5rem rgba(202, 232, 215, 0.13);
  animation: breathe 7s cubic-bezier(0.42, 0, 0.58, 1) infinite;
}

h1 span {
  display: inline-block;
  animation: appear 1.6s both;
}

h1 span:nth-child(2) { animation-delay: 80ms; }
h1 span:nth-child(3) { animation-delay: 160ms; }
h1 span:nth-child(4) { animation-delay: 240ms; }
h1 span:nth-child(5) { animation-delay: 320ms; }
h1 span:nth-child(6) { animation-delay: 400ms; }
h1 span:nth-child(7) { animation-delay: 480ms; }

@keyframes appear {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(0.18em);
  }
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.72;
    letter-spacing: 0.25em;
    transform: scale(0.985);
  }
  50% {
    opacity: 1;
    letter-spacing: 0.34em;
    transform: scale(1.015);
  }
}

@keyframes atmosphere {
  to {
    transform: scale(1.12) translate3d(1.5%, -1%, 0);
    opacity: 0.7;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(2rem, 11vw, 3.6rem);
    letter-spacing: 0.16em;
    text-indent: 0.16em;
  }

  @keyframes breathe {
    0%, 100% {
      opacity: 0.72;
      letter-spacing: 0.16em;
      transform: scale(0.985);
    }
    50% {
      opacity: 1;
      letter-spacing: 0.22em;
      transform: scale(1.015);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
  }
}
