@font-face {
  font-family: "Instrument Serif";
  src: url("./instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #071831;
  color: #f5f5ef;
  font-family: "Inter", system-ui, sans-serif;
  --ease-reveal: cubic-bezier(.22, 1, .36, 1);
}

body {
  margin: 0;
}

.hero {
  min-height: 100vh;
  min-height: 100svh;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  padding: 4rem 1.5rem;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 91%, #205c7c62, transparent 56%),
    radial-gradient(ellipse at 50% 60%, #123d675e, transparent 68%),
    linear-gradient(160deg, #081b37, #06142b 62%, #091d37);
}

.hero__composition {
  width: min(100%, 49rem);
}

.hero__title {
  margin: 0;
  font: 400 clamp(2.55rem, 13vw, 8.5rem)/.87 "Instrument Serif", Georgia, serif;
  letter-spacing: -.035em;
}

.hero__title span,
.hero__title em {
  display: block;
}

.hero__title em {
  margin-top: .09em;
  color: #c1e3ed;
  font-weight: 400;
}

.hero__rule {
  display: block;
  width: 100%;
  overflow: visible;
  margin-block: clamp(-.45rem, 1.4vw - .6rem, .7rem);
}

.hero__loop {
  visibility: hidden;
}

.hero__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin: 0;
  color: #e9f1f3;
  font-size: clamp(.69rem, 1.15vw, .92rem);
  font-weight: 600;
  letter-spacing: .19em;
  text-transform: uppercase;
}

.hero__brand svg {
  color: #98d4e5;
}

@media (prefers-reduced-motion: no-preference) {
  .play-intro .hero__loop {
    visibility: visible;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    transform-origin: 360px 62px;
    animation:
      draw-loop 920ms cubic-bezier(.43, .1, .29, 1) both,
      straighten 640ms 920ms cubic-bezier(.63, .06, .19, 1) both;
  }

  .play-intro .hero__underline {
    animation: settle 1ms 1559ms step-end both;
  }

  .play-intro .hero__title span {
    animation: reveal 640ms 1560ms var(--ease-reveal) both;
  }

  .play-intro .hero__title em {
    animation: reveal 670ms 1680ms var(--ease-reveal) both;
  }

  .play-intro .hero__brand {
    animation: reveal 520ms 2110ms var(--ease-reveal) both;
  }
}

@keyframes draw-loop {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}

@keyframes straighten {
  from { transform: scale(.68, 1); opacity: 1; }
  99.9% { opacity: 1; }
  to { transform: scale(1, .001); opacity: 0; }
}

@keyframes settle {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(9px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
