.wlf-motion {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-block: 0;
  background:
    radial-gradient(circle at 16% 38%, hsl(34 38% 20% / 0.12), transparent 34%),
    linear-gradient(180deg, hsl(var(--background)) 0%, hsl(0 0% 4%) 42%, hsl(0 0% 4%) 58%, hsl(var(--background)) 100%);
  color: hsl(var(--foreground));
  padding: clamp(5rem, 8vw, 8.5rem) 0;
}

.wlf-motion__grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.18;
  background-image:
    linear-gradient(hsl(0 0% 100% / 0.055) 1px, transparent 1px),
    linear-gradient(90deg, hsl(0 0% 100% / 0.045) 1px, transparent 1px);
  background-size: 74px 74px;
  mask-image: linear-gradient(90deg, transparent, #000 14%, #000 86%, transparent);
}

.wlf-motion::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, hsl(34 42% 22% / 0.16), transparent 34%),
    linear-gradient(180deg, hsl(0 0% 0% / 0.42), transparent 28%, transparent 72%, hsl(0 0% 0% / 0.48));
  pointer-events: none;
}

.wlf-motion__shell {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(360px, 1.14fr);
  gap: clamp(2.25rem, 5vw, 5.25rem);
  align-items: center;
}

.wlf-motion__copy {
  max-width: 560px;
}

.wlf-motion__kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.68rem;
  min-height: 2rem;
  border: 1px solid hsl(34 65% 75% / 0.22);
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.045);
  padding: 0.46rem 0.8rem;
  color: hsl(34 62% 84% / 0.86);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.wlf-motion__kicker span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: hsl(34 82% 72%);
  box-shadow: 0 0 22px hsl(34 82% 72% / 0.48);
}

.wlf-motion h2 {
  margin: 1.55rem 0 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.9rem);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: 0;
  max-width: 11ch;
  color: #fff;
}

.wlf-motion h2 span {
  color: hsl(34 82% 78%);
  font-style: italic;
}

.wlf-motion__copy > p {
  margin: 1.7rem 0 0;
  color: hsl(0 0% 100% / 0.68);
  line-height: 1.76;
  font-size: clamp(0.98rem, 1.4vw, 1.08rem);
}

.wlf-motion__scope {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.wlf-motion__scope div {
  min-height: 6.25rem;
  border: 1px solid hsl(0 0% 100% / 0.1);
  border-radius: 0.5rem;
  background: hsl(0 0% 100% / 0.052);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wlf-motion__scope strong,
.wlf-browser__tiles b {
  color: hsl(0 0% 100% / 0.62);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.wlf-motion__scope span,
.wlf-browser__tiles em {
  color: #fff;
  font-family: "Instrument Serif", Georgia, serif;
  font-style: normal;
  font-size: 1.55rem;
  line-height: 1.1;
}

.wlf-motion__fine {
  max-width: 680px;
  font-size: 0.92rem !important;
  color: hsl(0 0% 100% / 0.55) !important;
}

.wlf-motion__stage {
  position: relative;
  min-height: clamp(24rem, 43vw, 34rem);
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.wlf-orbit {
  position: absolute;
  width: min(34rem, 88vw);
  aspect-ratio: 1;
  border: 1px solid hsl(0 0% 100% / 0.055);
  border-radius: 50%;
  box-shadow: inset 0 0 80px hsl(34 45% 45% / 0.035);
  animation: wlf-orbit-spin 28s linear infinite;
}

.wlf-browser {
  position: relative;
  width: min(37rem, 100%);
  border: 1px solid hsl(0 0% 100% / 0.14);
  border-radius: 1.25rem;
  overflow: hidden;
  background: linear-gradient(145deg, hsl(0 0% 7% / 0.94), hsl(0 0% 3% / 0.96));
  box-shadow: 0 2rem 5rem hsl(0 0% 0% / 0.38);
  transform: rotateX(7deg) rotateY(-12deg) rotateZ(-2deg);
  animation: wlf-browser-float 7s ease-in-out infinite;
}

.wlf-browser__bar {
  height: 2.75rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  border-bottom: 1px solid hsl(0 0% 100% / 0.08);
  padding: 0 0.9rem;
  background: hsl(0 0% 100% / 0.035);
}

.wlf-browser__bar i {
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: hsl(0 0% 100% / 0.16);
}

.wlf-browser__bar span {
  flex: 1;
  min-width: 0;
  margin-left: 0.45rem;
  border-radius: 999px;
  background: hsl(0 0% 100% / 0.06);
  color: hsl(0 0% 100% / 0.45);
  padding: 0.38rem 0.72rem;
  font-size: 0.7rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wlf-browser__body {
  padding: clamp(1.35rem, 3vw, 2.1rem);
}

.wlf-browser__body small {
  display: inline-flex;
  border: 1px solid hsl(34 70% 74% / 0.26);
  border-radius: 999px;
  color: hsl(34 77% 80% / 0.84);
  padding: 0.48rem 0.68rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.wlf-browser__body strong {
  display: block;
  margin-top: 1.45rem;
  max-width: 9ch;
  color: #fff;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3.2rem, 5.7vw, 5.35rem);
  font-weight: 400;
  line-height: 0.88;
  letter-spacing: 0;
}

.wlf-browser__body p {
  max-width: 25rem;
  margin: 1.25rem 0 0;
  color: hsl(0 0% 100% / 0.58);
  line-height: 1.65;
}

.wlf-browser__tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 1.65rem;
}

.wlf-browser__tiles div {
  min-height: 5.75rem;
  border: 1px solid hsl(0 0% 100% / 0.09);
  border-radius: 0.7rem;
  background: hsl(0 0% 100% / 0.045);
  padding: 0.9rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.wlf-signal-bars {
  position: absolute;
  right: 2%;
  bottom: 8%;
  display: flex;
  align-items: end;
  gap: 0.38rem;
  opacity: 0.78;
}

.wlf-signal-bars i {
  width: 0.42rem;
  height: calc(1.2rem + var(--n, 0) * 0.68rem);
  border-radius: 999px;
  background: linear-gradient(180deg, hsl(34 88% 75%), hsl(38 48% 58%));
  animation: wlf-bars 1.8s ease-in-out infinite;
}

.wlf-signal-bars i:nth-child(1) { --n: 1; animation-delay: 0s; }
.wlf-signal-bars i:nth-child(2) { --n: 3; animation-delay: 0.14s; }
.wlf-signal-bars i:nth-child(3) { --n: 2; animation-delay: 0.28s; }
.wlf-signal-bars i:nth-child(4) { --n: 4; animation-delay: 0.42s; }

@keyframes wlf-browser-float {
  0%, 100% { transform: rotateX(7deg) rotateY(-12deg) rotateZ(-2deg) translate3d(0, 0, 0); }
  50% { transform: rotateX(5deg) rotateY(-8deg) rotateZ(1deg) translate3d(0, -0.8rem, 0); }
}

@keyframes wlf-orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes wlf-bars {
  0%, 100% { transform: scaleY(0.72); opacity: 0.46; }
  45% { transform: scaleY(1); opacity: 1; }
}

@media (max-width: 980px) {
  .wlf-motion__shell {
    grid-template-columns: 1fr;
  }

  .wlf-motion__copy {
    max-width: 720px;
  }

  .wlf-motion h2 {
    max-width: 12ch;
  }

  .wlf-motion__stage {
    min-height: 30rem;
  }
}

@media (max-width: 640px) {
  .wlf-motion {
    padding: 4.2rem 0 5rem;
  }

  .wlf-motion__shell {
    width: min(100% - 28px, 1120px);
    gap: 2.7rem;
  }

  .wlf-motion__scope,
  .wlf-browser__tiles {
    grid-template-columns: 1fr;
  }

  .wlf-motion__stage {
    min-height: 24rem;
    overflow: hidden;
  }

  .wlf-orbit {
    width: 23rem;
  }

  .wlf-browser {
    width: min(22rem, 96%);
    border-radius: 1rem;
  }

  .wlf-browser__body strong {
    font-size: clamp(2.65rem, 14vw, 3.55rem);
  }

  .wlf-signal-bars {
    right: 0.5rem;
    bottom: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wlf-orbit,
  .wlf-browser,
  .wlf-signal-bars i {
    animation: none;
  }
}
