/* Motion is progressive enhancement: no hidden content before the runtime loads. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 25;
  opacity: 0.075;
  background-image: url("grain.svg");
  background-size: 180px 180px;
}
html,
body {
  overflow-x: clip;
}
.hero {
  isolation: isolate;
  overflow-x: visible;
  overflow-y: clip;
}
.hero-grid {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(#e86b5c09 1px, transparent 1px),
    linear-gradient(90deg, #e86b5c09 1px, transparent 1px),
    radial-gradient(ellipse at 85% 35%, #b7483238, transparent 60%);
  background-size:
    64px 64px,
    64px 64px,
    100% 100%;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.headline-line {
  display: block;
  transform-origin: left bottom;
}
.hero-product {
  position: relative;
  perspective: 1200px;
}
.product-window {
  transform-style: preserve-3d;
  transform-origin: center;
  will-change: transform;
}
.signal-orbit {
  position: absolute;
  width: 540px;
  height: 540px;
  max-width: 110%;
  left: 0;
  top: -40px;
  z-index: -1;
  border: 1px solid #e86b5c35;
  border-radius: 50%;
  pointer-events: none;
}
.signal-orbit i {
  position: absolute;
  inset: 20px;
  border: 1px dashed #e86b5c28;
  border-radius: 50%;
  transform: rotateX(55deg) rotateZ(-25deg);
}
.signal-orbit i + i {
  inset: 50px;
  transform: rotateY(60deg) rotateZ(30deg);
}
.signal-orbit > span {
  position: absolute;
  top: 25px;
  right: 35px;
  font: 9px var(--mono);
  letter-spacing: 0.2em;
  color: var(--coral);
  background: var(--bg);
  padding: 6px;
}
.signal-orbit::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 24px var(--coral);
}
.entrance {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  place-items: center;
  background: #100e0df5;
  background-image: linear-gradient(#100e0ded, #100e0ded), url("grain.svg");
  text-align: center;
}
.entrance-brand {
  display: grid;
  justify-items: center;
  gap: 18px;
}
.entrance-brand span {
  font: 12px var(--mono);
  letter-spacing: 0.25em;
  color: var(--muted);
}
.entrance-brand strong {
  font-size: clamp(30px, 6vw, 78px);
  letter-spacing: -0.05em;
  color: var(--coral);
  line-height: 1;
}
.entrance-line {
  height: 2px;
  width: 170px;
  background: var(--coral);
  transform-origin: left;
}
.motion-toggle {
  position: fixed;
  bottom: 18px;
  right: 18px;
  z-index: 45;
  background: #1c1411ed;
  border: 1px solid #9e6553;
  color: var(--ink);
  padding: 9px 14px;
  border-radius: 30px;
  cursor: pointer;
  font: 10px var(--mono);
  box-shadow: 0 4px 20px #0005;
}
.motion-toggle[hidden] {
  display: none;
}
.button {
  transition:
    box-shadow 0.2s,
    background 0.2s;
}
.button:hover {
  box-shadow: 0 0 30px #ee796732;
}
.feature-card {
  position: relative;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    260px circle at var(--mx, 50%) var(--my, 50%),
    #ed785320,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover::before {
  opacity: 1;
}
@media (max-width: 760px) {
  .signal-orbit {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    top: -10px;
  }
  .motion-toggle {
    bottom: 10px;
    right: 10px;
  }
  .entrance-brand img {
    width: 65px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .entrance {
    display: none !important;
  }
  .product-window {
    will-change: auto;
  }
  .button,
  .feature-card::before {
    transition: none;
  }
}
