:root {
  --bg1: #10151d;
  --bg2: #18281f;
  --line: rgba(255, 255, 255, .18);
  --ink: #f6f1e7;
  --soft: rgba(246, 241, 231, .68);
  --glow: rgba(173, 220, 170, .44);
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100svh;
  overflow: hidden;
  font-family: ui-serif, Georgia, Cambria, "Times New Roman", serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 15%, rgba(225, 188, 115, .18), transparent 32vw),
    radial-gradient(circle at 82% 72%, rgba(111, 190, 161, .22), transparent 35vw),
    linear-gradient(135deg, var(--bg1), var(--bg2));
}

.grain {
  position: fixed;
  inset: -40%;
  opacity: .12;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 30% 20%, #fff 0 1px, transparent 1px),
    radial-gradient(circle at 70% 80%, #fff 0 1px, transparent 1px);
  background-size: 47px 47px, 71px 71px;
  animation: drift 26s linear infinite;
  mix-blend-mode: overlay;
}

.stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100svh;
  padding: clamp(18px, 4vw, 56px);
}

.pond {
  position: relative;
  width: min(92vw, 920px);
  aspect-ratio: 1.55 / 1;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: clamp(28px, 5vw, 62px);
  background:
    radial-gradient(circle at 50% 54%, rgba(255, 255, 255, .12), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, .11), rgba(255, 255, 255, .03));
  box-shadow: 0 38px 120px rgba(0, 0, 0, .46), inset 0 1px 0 rgba(255, 255, 255, .25);
  overflow: hidden;
  isolation: isolate;
}

.pond::before,
.pond::after {
  content: "";
  position: absolute;
  inset: 12%;
  border-radius: 46% 54% 55% 45% / 47% 43% 57% 53%;
  border: 1px solid rgba(246, 241, 231, .19);
  animation: breathe 8s ease-in-out infinite alternate;
}

.pond::after {
  inset: 23%;
  animation-duration: 11s;
  animation-direction: alternate-reverse;
  filter: blur(.2px);
}

.leaf {
  position: absolute;
  width: clamp(34px, 7vw, 88px);
  aspect-ratio: 1.8 / 1;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(135deg, rgba(214, 233, 169, .9), rgba(89, 147, 116, .72));
  box-shadow: 0 0 34px var(--glow);
  transform-origin: 20% 80%;
  opacity: .78;
  animation: floatLeaf 9s ease-in-out infinite;
}

.leaf:nth-child(1) {
  left: 10%;
  top: 16%;
  rotate: -18deg;
  animation-delay: -1s;
}

.leaf:nth-child(2) {
  right: 13%;
  top: 20%;
  rotate: 28deg;
  animation-delay: -4s;
  scale: .78;
}

.leaf:nth-child(3) {
  left: 17%;
  bottom: 15%;
  rotate: 37deg;
  animation-delay: -6s;
  scale: .68;
}

.leaf:nth-child(4) {
  right: 21%;
  bottom: 12%;
  rotate: -33deg;
  animation-delay: -2s;
  scale: .86;
}

.nameplate {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(28px, 6vw, 72px);
  z-index: 3;
}

h1 {
  margin: 0;
  font-size: clamp(3.2rem, 12vw, 10.5rem);
  line-height: .82;
  letter-spacing: 0;
  font-weight: 500;
  white-space: nowrap;
  text-shadow: 0 20px 65px rgba(0, 0, 0, .42);
}

.dot {
  display: inline-block;
  width: .18em;
  height: .18em;
  margin-inline: .06em;
  border-radius: 999px;
  background: currentColor;
  vertical-align: .06em;
  box-shadow: 0 0 38px rgba(255, 255, 255, .72);
  animation: seed 5.5s ease-in-out infinite;
}

.copy {
  max-width: 560px;
  margin: clamp(18px, 3vw, 28px) auto 0;
  font: 500 clamp(.92rem, 1.7vw, 1.1rem) / 1.65 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--soft);
  letter-spacing: .03em;
}

.ring {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 999px;
  border: 1px solid rgba(246, 241, 231, .32);
  translate: -50% -50%;
  pointer-events: none;
  animation: ripple 3.5s ease-out forwards;
  z-index: 2;
}

@keyframes breathe {
  from {
    transform: scale(.96) rotate(-2deg);
    opacity: .45;
  }

  to {
    transform: scale(1.05) rotate(2deg);
    opacity: .92;
  }
}

@keyframes floatLeaf {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(10px, -14px, 0) rotate(7deg);
  }
}

@keyframes seed {
  0%,
  100% {
    transform: scale(.78);
    opacity: .68;
  }

  50% {
    transform: scale(1.18);
    opacity: 1;
  }
}

@keyframes ripple {
  to {
    width: 38vmax;
    height: 38vmax;
    opacity: 0;
  }
}

@keyframes drift {
  to {
    transform: translate3d(160px, 110px, 0);
  }
}

@media (max-width: 640px) {
  body {
    overflow-y: auto;
  }

  .stage {
    min-height: 100dvh;
  }

  .pond {
    width: 100%;
    min-height: min(72dvh, 620px);
    aspect-ratio: auto;
  }

  .nameplate {
    padding: 20px;
  }

  h1 {
    font-size: clamp(2.75rem, 15.5vw, 5.2rem);
  }

  .copy {
    font-size: .92rem;
  }

}

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