.hero {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse at 74% 44%, rgba(245, 192, 64, 0.13), transparent 34%),
    radial-gradient(ellipse at 82% 78%, rgba(176, 113, 24, 0.12), transparent 32%),
    linear-gradient(135deg, #191916 0%, #11110f 52%, #17140e 100%);
}

.hero-scene {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero-scene::before {
  position: absolute;
  top: 50%;
  left: 70%;
  width: min(56vw, 660px);
  aspect-ratio: 1;
  border: 1px solid rgba(245, 192, 64, 0.09);
  border-radius: 50%;
  box-shadow:
    0 0 100px rgba(245, 192, 64, 0.055),
    inset 0 0 100px rgba(245, 192, 64, 0.035);
  content: "";
  transform: translate(-50%, -50%);
}

.hero-scene::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 12, 11, 0.72), rgba(12, 12, 11, 0.43) 42%, rgba(12, 12, 11, 0.16) 100%),
    linear-gradient(0deg, rgba(12, 12, 11, 0.46), transparent 27%, transparent 76%, rgba(12, 12, 11, 0.2));
  content: "";
}

.hero-object-field {
  position: absolute;
  inset: 0;
  perspective: 1050px;
  perspective-origin: 64% 48%;
}

.hero-float {
  position: absolute;
  display: grid;
  place-items: center;
  transform-style: preserve-3d;
  animation: hero-item-drift 9s ease-in-out infinite;
  will-change: transform;
}

.hero-float::after {
  position: absolute;
  z-index: -1;
  bottom: -30px;
  left: 16%;
  width: 68%;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.74);
  content: "";
  filter: blur(14px);
  transform: rotateX(72deg) translateZ(-45px);
}

.hero-phone-wrap {
  top: 13%;
  left: 64%;
  width: 120px;
  height: 230px;
  animation-delay: -1.5s;
  animation-duration: 8.5s;
}

.hero-phone {
  width: 92px;
  height: 184px;
  padding: 7px;
  border: 2px solid #82785e;
  border-radius: 21px;
  background: linear-gradient(120deg, #73684f, #25231e 18%, #11110f 62%, #5d543f);
  box-shadow:
    10px 12px 0 #26231c,
    15px 19px 24px rgba(0, 0, 0, 0.54),
    0 0 32px rgba(245, 192, 64, 0.14),
    inset 0 0 0 2px rgba(255, 231, 173, 0.12);
  transform: rotateY(-27deg) rotateX(8deg) rotateZ(9deg);
}

.hero-phone-screen {
  position: relative;
  display: grid;
  width: 100%;
  height: 100%;
  overflow: hidden;
  place-items: center;
  border-radius: 14px;
  background:
    radial-gradient(ellipse at 65% 38%, rgba(255, 215, 120, 0.72), transparent 4%),
    radial-gradient(ellipse at 67% 39%, rgba(245, 192, 64, 0.24), transparent 38%),
    linear-gradient(145deg, #292217, #0d0e0e 63%, #19150e);
}

.hero-phone-screen::before {
  position: absolute;
  top: 7px;
  width: 28px;
  height: 6px;
  border-radius: 10px;
  background: #080909;
  content: "";
}

.hero-phone-screen::after {
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 226, 151, 0.48);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(245, 192, 64, 0.25), inset 0 0 14px rgba(245, 192, 64, 0.13);
  content: "";
}

.hero-backpack-wrap {
  top: 33%;
  left: 80%;
  width: 170px;
  height: 195px;
  animation-delay: -4s;
  animation-duration: 10s;
}

.hero-backpack {
  position: relative;
  width: 125px;
  height: 154px;
  border: 1px solid rgba(236, 199, 110, 0.65);
  border-radius: 52px 52px 32px 32px;
  background: linear-gradient(120deg, #9b7332 0%, #61491f 22%, #29251a 72%, #161614 100%);
  box-shadow:
    11px 13px 0 #282216,
    17px 22px 28px rgba(0, 0, 0, 0.52),
    inset 8px 0 12px rgba(255, 226, 151, 0.17),
    inset -10px -8px 15px rgba(0, 0, 0, 0.5);
  transform: rotateY(-22deg) rotateX(7deg) rotateZ(-10deg);
}

.hero-backpack::before {
  position: absolute;
  top: 23px;
  left: 29px;
  width: 64px;
  height: 68px;
  border: 1px solid rgba(239, 204, 128, 0.48);
  border-radius: 30px 30px 15px 15px;
  background: linear-gradient(145deg, rgba(193, 145, 57, 0.78), #42341d 72%);
  box-shadow: inset 0 5px 10px rgba(255, 234, 176, 0.14);
  content: "";
}

.hero-backpack::after {
  position: absolute;
  right: 48px;
  bottom: 26px;
  width: 27px;
  height: 21px;
  border: 1px solid rgba(255, 222, 147, 0.55);
  border-radius: 6px;
  background: linear-gradient(135deg, #b38a3e, #604b25);
  content: "";
}

.hero-book-wrap {
  top: 67%;
  left: 60%;
  width: 155px;
  height: 108px;
  animation-delay: -2.7s;
  animation-duration: 9.5s;
}

.hero-book {
  position: relative;
  width: 138px;
  height: 88px;
  border: 1px solid rgba(255, 224, 152, 0.54);
  border-radius: 6px 10px 10px 6px;
  background: linear-gradient(155deg, #a27a36 0%, #57431f 11%, #342a19 76%, #181714 100%);
  box-shadow:
    8px 10px 0 #262117,
    13px 17px 22px rgba(0, 0, 0, 0.5),
    inset 7px 0 0 rgba(245, 192, 64, 0.24);
  transform: rotateY(-30deg) rotateX(22deg) rotateZ(9deg);
}

.hero-book::before {
  position: absolute;
  inset: 8px 12px 8px 19px;
  border: 1px solid rgba(255, 221, 142, 0.32);
  border-radius: 3px 6px 6px 3px;
  content: "";
}

.hero-book::after {
  position: absolute;
  top: 50%;
  left: 48%;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(255, 221, 142, 0.64);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.hero-id-wrap {
  top: 63%;
  left: 84%;
  width: 112px;
  height: 104px;
  animation-delay: -5.3s;
  animation-duration: 8s;
}

.hero-id-card {
  position: relative;
  width: 94px;
  height: 62px;
  overflow: hidden;
  border: 1px solid rgba(255, 230, 165, 0.68);
  border-radius: 8px;
  background: linear-gradient(145deg, #f3e7c9, #bda870);
  box-shadow:
    7px 8px 0 #343023,
    11px 14px 19px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: rotateY(-25deg) rotateX(12deg) rotateZ(-14deg);
}

.hero-id-card::before {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 24px;
  height: 32px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 50% 34%, #d2bd8e 0 5px, transparent 6px),
    radial-gradient(ellipse at 50% 100%, #88764e 0 10px, transparent 11px),
    linear-gradient(145deg, #58503e, #29271f);
  content: "";
}

.hero-id-card::after {
  position: absolute;
  top: 16px;
  right: 9px;
  width: 38px;
  height: 28px;
  background: repeating-linear-gradient(to bottom, #655d4b 0 2px, transparent 2px 8px);
  content: "";
}

.hero-keys-wrap {
  top: 22%;
  left: 48%;
  width: 104px;
  height: 92px;
  animation-delay: -6.2s;
  animation-duration: 7.8s;
}

.hero-key-ring {
  position: relative;
  width: 75px;
  height: 75px;
  border: 7px solid #c8a452;
  border-right-color: #70551f;
  border-bottom-color: #806126;
  border-radius: 50%;
  box-shadow:
    6px 7px 0 #302718,
    9px 13px 17px rgba(0, 0, 0, 0.5),
    inset 2px 2px 6px rgba(255, 236, 174, 0.46);
  transform: rotateX(23deg) rotateY(-25deg) rotateZ(-20deg);
}

.hero-key-ring::before,
.hero-key-ring::after {
  position: absolute;
  top: 53px;
  left: 42px;
  width: 10px;
  height: 36px;
  border: 3px solid #b9984b;
  border-radius: 5px;
  background: linear-gradient(90deg, #d6b866, #6d5526);
  box-shadow: 4px 5px 6px rgba(0, 0, 0, 0.4);
  content: "";
  transform: rotate(28deg);
  transform-origin: top center;
}

.hero-key-ring::after {
  top: 57px;
  left: 57px;
  height: 30px;
  transform: rotate(52deg);
}

.hero-dust {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffe4a0;
  box-shadow: 0 0 14px 3px rgba(245, 192, 64, 0.45);
  animation: hero-dust-shimmer 4s ease-in-out infinite;
}

.hero-dust-one { top: 24%; left: 75%; }
.hero-dust-two { top: 57%; left: 55%; animation-delay: -1.3s; }
.hero-dust-three { top: 80%; left: 75%; animation-delay: -2.6s; }
.hero-dust-four { top: 15%; left: 88%; animation-delay: -0.8s; }
.hero-dust-five { top: 78%; left: 94%; animation-delay: -3.1s; }

.hero > :not(.hero-scene) {
  position: relative;
  z-index: 3;
}

.hero .eyebrow {
  justify-content: center;
  color: #ffe3a0;
}

.hero h1 {
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero > p:not(.eyebrow) {
  color: #d0cec6;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.8);
}

.hero .btn {
  position: relative;
  z-index: 4;
}

@keyframes hero-item-drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -15px; }
}

@keyframes hero-dust-shimmer {
  0%, 100% { opacity: 0.25; scale: 0.7; }
  50% { opacity: 0.9; scale: 1.2; }
}

@media (max-width: 760px) {
  .hero {
    min-height: 560px;
  }

  .hero-scene::before {
    top: 68%;
    left: 55%;
    width: min(100vw, 520px);
  }

  .hero-scene::after {
    background:
      linear-gradient(180deg, rgba(12, 12, 11, 0.66), rgba(12, 12, 11, 0.48) 38%, rgba(12, 12, 11, 0.2) 72%, rgba(12, 12, 11, 0.56)),
      linear-gradient(90deg, rgba(12, 12, 11, 0.2), transparent 80%);
  }

  .hero-object-field {
    top: 60%;
    height: 40%;
    perspective: 900px;
    perspective-origin: 52% 42%;
  }

  .hero-phone-wrap {
    top: 14%;
    left: 15%;
    scale: 0.68;
  }

  .hero-backpack-wrap {
    top: 35%;
    left: 52%;
    scale: 0.68;
  }

  .hero-book-wrap {
    top: 68%;
    left: 13%;
    scale: 0.65;
  }

  .hero-id-wrap {
    top: 69%;
    left: 63%;
    scale: 0.72;
  }

  .hero-keys-wrap {
    top: 38%;
    left: 3%;
    scale: 0.68;
  }

  .hero-dust-one { top: 20%; left: 81%; }
  .hero-dust-two { top: 48%; left: 85%; }
  .hero-dust-three { top: 81%; left: 48%; }
  .hero-dust-four { top: 12%; left: 55%; }
  .hero-dust-five { top: 88%; left: 89%; }
}

@media (max-width: 420px) {
  .hero {
    min-height: 610px;
  }

  .hero-phone-wrap { left: 8%; scale: 0.6; }
  .hero-backpack-wrap { left: 48%; scale: 0.58; }
  .hero-book-wrap { left: 8%; scale: 0.56; }
  .hero-id-wrap { left: 59%; scale: 0.62; }
  .hero-keys-wrap { left: -2%; scale: 0.58; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-float,
  .hero-dust {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    will-change: auto;
  }
}
