:root {
  --ink: #13231c;
  --leaf-deep: #145c3f;
  --paper: #f3f7f2;
  --glow-a: rgba(31, 122, 85, 0.28);
  --glow-b: rgba(232, 197, 71, 0.22);
  --glow-c: rgba(90, 160, 190, 0.2);
  --font-display: "Syne", sans-serif;
  --font-body: "DM Sans", sans-serif;
}

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

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

body {
  height: 100vh;
  height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--paper);
  overflow: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 10% 0%, #eaf6ef 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 10%, #f7efcf 0%, transparent 50%),
    linear-gradient(160deg, #eef5f0 0%, #f5f3ea 48%, #e7f0ec 100%);
}

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

.orb-a {
  width: min(52vw, 420px);
  height: min(52vw, 420px);
  top: -8%;
  left: -6%;
  background: var(--glow-a);
}

.orb-b {
  width: min(44vw, 360px);
  height: min(44vw, 360px);
  right: -4%;
  top: 18%;
  background: var(--glow-b);
  animation-duration: 22s;
  animation-delay: -4s;
}

.orb-c {
  width: min(60vw, 480px);
  height: min(60vw, 480px);
  left: 28%;
  bottom: -22%;
  background: var(--glow-c);
  animation-duration: 26s;
  animation-delay: -9s;
}

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

.stage {
  position: fixed;
  inset: 0;
  z-index: 1;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.center {
  text-align: center;
}

.mark,
.headline {
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mark {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 7.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--ink);
  animation-delay: 0.08s;
}

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--leaf-deep);
  animation-delay: 0.22s;
}

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

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  40% {
    transform: translate3d(3%, 4%, 0) scale(1.05);
  }
  70% {
    transform: translate3d(-2%, 2%, 0) scale(0.97);
  }
}

.beian {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 1.25rem;
  z-index: 1;
  text-align: center;
}

.beian a {
  color: var(--leaf-deep);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  opacity: 0.65;
  transition: opacity 0.2s ease;
}

.beian a:hover {
  opacity: 1;
}

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

  .mark,
  .headline {
    opacity: 1;
    transform: none;
    animation: none;
  }
}
