:root {
  color-scheme: dark;
  --bg: #050505;
  --ink: #f4f1e8;
  --muted: rgba(244, 241, 232, 0.64);
  --line: rgba(244, 241, 232, 0.76);
  --line-soft: rgba(244, 241, 232, 0.18);
  --lime: #d7ff42;
  --coral: #ff6d5e;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 78% 16%, rgba(215, 255, 66, 0.12), transparent 26rem),
    radial-gradient(circle at 12% 84%, rgba(255, 109, 94, 0.13), transparent 30rem),
    var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  letter-spacing: 0;
}

button {
  font: inherit;
}

.page {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.hero {
  position: relative;
  min-height: 92svh;
  padding: clamp(1.25rem, 3vw, 2.4rem);
  display: grid;
  place-items: stretch;
  overflow: hidden;
}

.smile {
  position: absolute;
  width: min(118vw, 1680px);
  min-width: 980px;
  height: auto;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  filter: drop-shadow(0 0 28px rgba(244, 241, 232, 0.05));
}

.smile * {
  fill: none;
  vector-effect: non-scaling-stroke;
}

.face-ring {
  stroke: var(--line);
  stroke-width: 3;
}

.eye {
  stroke: var(--ink);
  stroke-width: 3.5;
}

.mouth {
  stroke: var(--ink);
  stroke-width: 4.2;
  stroke-linecap: round;
}

.echo {
  stroke: var(--line-soft);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.echo-one {
  stroke: rgba(215, 255, 66, 0.35);
}

.echo-two {
  stroke: rgba(255, 109, 94, 0.22);
}

.copy {
  align-self: end;
  justify-self: start;
  width: min(620px, 88vw);
  padding: 0 0 clamp(2.1rem, 8vh, 5.5rem) clamp(0.25rem, 4vw, 5rem);
}

.domain {
  margin: 0 0 1.2rem;
  color: var(--ink);
  font-size: clamp(2.7rem, 5.3vw, 5.1rem);
  font-weight: 720;
  line-height: 0.9;
  text-transform: lowercase;
}

.domain::first-letter {
  color: var(--lime);
}

h1 {
  max-width: 24rem;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.55rem);
  font-weight: 520;
  line-height: 1.24;
  letter-spacing: 0;
}

h1::after {
  content: "";
  display: block;
  width: 4.2rem;
  height: 0.22rem;
  margin-top: 1.35rem;
  background: var(--coral);
}

.audio-toggle {
  position: absolute;
  top: clamp(1.25rem, 3vw, 2.4rem);
  right: clamp(1.25rem, 3vw, 2.4rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 2.9rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(244, 241, 232, 0.22);
  border-radius: 999px;
  background: rgba(5, 5, 5, 0.48);
  color: var(--ink);
  cursor: pointer;
  backdrop-filter: blur(18px);
  transition:
    border-color 180ms var(--ease),
    color 180ms var(--ease),
    transform 180ms var(--ease);
}

.audio-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(215, 255, 66, 0.58);
}

.audio-toggle:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 4px;
}

.audio-icon {
  display: inline-grid;
  grid-template-columns: repeat(4, 4px);
  align-items: end;
  gap: 3px;
  width: 25px;
  height: 20px;
  color: var(--lime);
}

.audio-icon span {
  width: 4px;
  min-height: 5px;
  border-radius: 99px;
  background: currentColor;
  transform-origin: bottom;
  animation: meter 900ms var(--ease) infinite;
  animation-play-state: paused;
}

.audio-icon span:nth-child(2) {
  animation-delay: 140ms;
}

.audio-icon span:nth-child(3) {
  animation-delay: 260ms;
}

.audio-icon span:nth-child(4) {
  animation-delay: 390ms;
}

.audio-toggle.is-playing .audio-icon span {
  animation-play-state: running;
}

.audio-label {
  max-width: 14rem;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 650;
  line-height: 1.1;
  white-space: nowrap;
}

.audio-toggle.is-playing .audio-label {
  color: var(--ink);
}

.after {
  min-height: 38svh;
  padding: 0 clamp(1.5rem, 7vw, 7rem) 5rem;
  display: grid;
  align-content: start;
  gap: 2rem;
  color: rgba(244, 241, 232, 0.52);
}

.wave {
  width: 100%;
  height: 5.5rem;
  border-top: 1px solid rgba(244, 241, 232, 0.14);
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 1.1rem,
      rgba(244, 241, 232, 0.12) 1.1rem 1.16rem,
      transparent 1.16rem 2.3rem
    );
  mask-image: linear-gradient(90deg, transparent, black 15%, black 85%, transparent);
}

.after p {
  max-width: 31rem;
  margin: 0;
  font-size: clamp(1rem, 1.8vw, 1.45rem);
  line-height: 1.35;
}

@keyframes meter {
  0%,
  100% {
    transform: scaleY(0.34);
  }

  45% {
    transform: scaleY(1);
  }
}

@media (max-width: 720px) {
  .hero {
    min-height: 90svh;
    padding: 1rem;
  }

  .smile {
    min-width: 850px;
    top: 43%;
    left: 58%;
  }

  .copy {
    width: min(100%, 28rem);
    padding: 0 0 3.25rem 0.25rem;
  }

  h1 {
    max-width: 17rem;
    font-size: clamp(1rem, 5vw, 1.2rem);
    line-height: 1.25;
  }

  .audio-toggle {
    left: 1rem;
    right: auto;
  }

  .audio-label {
    max-width: 10.5rem;
    font-size: 0.78rem;
  }
}
