@font-face {
  font-family: Unbounded;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("./unbounded-latin.woff2") format("woff2");
}

@font-face {
  font-family: Sora;
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("./sora-latin.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: #1a1a1a;
  background: #fff;
  font-family: system-ui, sans-serif;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

a:focus-visible {
  outline: 2px solid #7142b9;
  outline-offset: 6px;
  border-radius: 2px;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 6% 100%, #bea0ff55, transparent 45%),
    radial-gradient(ellipse at 46% 104%, #d2f08270, transparent 33%),
    radial-gradient(ellipse at 100% 0%, #bea0ff38, transparent 38%), #ebebeb;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  max-width: 100rem;
  margin-inline: auto;
  padding: clamp(5.5rem, 12vh, 8rem) clamp(1.5rem, 6.67vw, 6.5rem);
}

.hero-content {
  width: 100%;
  max-width: 52rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: clamp(2rem, 4.5vh, 3rem);
}

.brand-symbol {
  width: 3rem;
  height: 3rem;
}

.brand-wordmark {
  width: auto;
  height: 1.5rem;
}

.hero h1 {
  margin: 0;
  color: #000;
  font-family: Unbounded, sans-serif;
  font-size: clamp(2rem, 5.8vw + 0.75rem, 5.5rem);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.04em;
}

.hero-description {
  max-width: 27rem;
  margin: 1.75rem 0 0;
  color: #0009;
  font-size: clamp(1rem, 1.25vw, 1.125rem);
  line-height: 1.65;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  user-select: none;
}

.hero-mark {
  position: absolute;
  top: 50%;
  right: 4%;
  width: min(42vw, 40rem);
  max-height: 91%;
  overflow: visible;
  transform: translateY(-50%);
}

.mark-base {
  fill: #1a1a1a;
  fill-opacity: 0.08;
}

/* The moving dash follows the original S silhouette, with a rest between laps. */
.mark-glow {
  fill: none;
  stroke: url("#mark-light");
  stroke-linecap: round;
  stroke-dasharray: 12 88;
  opacity: 0;
  animation: trace-mark 9s linear infinite;
}

.mark-glow-soft {
  stroke-width: 1.6;
  filter: blur(1.2px);
}

.mark-glow-edge {
  stroke-width: 0.32;
  filter: drop-shadow(0 0 0.35px #fff);
}

@keyframes trace-mark {
  0% {
    stroke-dashoffset: 0;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  76% {
    stroke-dashoffset: -100;
    opacity: 1;
  }
  84%,
  100% {
    stroke-dashoffset: -100;
    opacity: 0;
  }
}

.scroll-cue {
  position: absolute;
  z-index: 2;
  bottom: 2rem;
  left: max(clamp(1.5rem, 6.67vw, 6.5rem), calc((100vw - 87rem) / 2));
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding-block: 0.5rem;
  color: #0009;
  font-size: 0.75rem;
  text-decoration: none;
}

.scroll-cue span {
  font-size: 1.25rem;
}

.scroll-cue:hover {
  color: #000;
}

@media (max-width: 991px) {
  .hero-mark {
    right: -10%;
    width: 62vw;
    opacity: 0.7;
  }
}

@media (max-width: 600px) {
  .hero-mark {
    top: 46%;
    right: -28%;
    width: 100vw;
    opacity: 0.55;
  }

  .hero h1 {
    letter-spacing: -0.045em;
  }

  .hero-description {
    max-width: 19rem;
  }

  .scroll-cue {
    bottom: max(1.5rem, env(safe-area-inset-bottom));
  }
}

@media (max-height: 600px) and (min-width: 601px) {
  .hero-inner {
    padding-block: 4rem 5rem;
  }

  .hero h1 {
    font-size: 3rem;
  }

  .brand {
    margin-bottom: 1.5rem;
  }

  .scroll-cue {
    bottom: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mark-glow {
    animation: none;
    opacity: 0;
  }
}
