* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #000;
  color: #fff;
  font-family: Georgia, "Times New Roman", "Yu Mincho", "YuMincho", serif;
}

.hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: #000;
}

.bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 72% 50%, rgba(255, 172, 64, .10), transparent 16%),
    radial-gradient(circle at 72% 50%, rgba(255, 128, 48, .06), transparent 28%),
    radial-gradient(circle at 20% 18%, rgba(70, 90, 180, .10), transparent 28%),
    linear-gradient(115deg, #000 0%, #05060d 52%, #020308 100%);
}

.bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.48) 34%, rgba(0,0,0,.18) 58%, rgba(0,0,0,0) 100%);
}

#particles {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.torus-wrap {
  position: absolute;
  right: 7vw;
  top: 50%;
  width: min(44vw, 720px);
  aspect-ratio: 1;
  transform: translateY(-50%);
  z-index: 3;
  pointer-events: none;
  opacity: .95;
  filter: none;
}

.torus-wrap::before {
  content: "";
  position: absolute;
  inset: 16%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 192, 92, .12), transparent 62%);
  pointer-events: none;
}

#torusCanvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: block;
}

.hero-copy {
  position: absolute;
  left: 56px;
  top: 54%;
  z-index: 5;
  max-width: 420px;
  opacity: 1;
  transform: translateY(-50%);
}

.hero-copy h1 {
  margin: 0 0 8px;
  font-size: clamp(22px, 2vw, 34px);
  line-height: 1.2;
  font-weight: 400;
  letter-spacing: .04em;
  color: rgba(255,255,255,.88);
}

.hero-copy p {
  margin: 0;
  font-size: clamp(13px, 1vw, 17px);
  line-height: 1.7;
  letter-spacing: .08em;
  color: rgba(255,255,255,.58);
}

.reveal {
  opacity: 0;
}

.reveal.is-visible {
  animation: fade-in .7s ease forwards;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .torus-wrap {
    width: 88vw;
    right: -30vw;
    top: 60%;
    opacity: .72;
  }

  .hero-copy,
  .hero-copy.reveal {
    left: 20px;
    right: 20px;
    max-width: 280px;
    top: 58%;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(-50%) !important;
  }
}

@media (max-width: 640px) {
  .torus-wrap {
    width: 96vw;
    right: -38vw;
    top: 62%;
    opacity: .64;
  }

  .hero-copy,
  .hero-copy.reveal {
    max-width: 260px;
  }
}

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

  .reveal {
    opacity: 1 !important;
  }
}
