.hero {
  position: relative;
  min-height: 86svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: calc(var(--header-height) + 82px) clamp(20px, 4vw, 54px) 78px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at 78% 24%, rgba(255, 255, 255, 0.16), transparent 28%),
    radial-gradient(ellipse at 76% 58%, rgba(182, 66, 58, 0.16), transparent 34%),
    linear-gradient(135deg, #000000 0%, #070707 46%, #000000 100%);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
  color: #ffffff;
  isolation: isolate;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
  pointer-events: none;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68) 0%, rgba(0, 0, 0, 0.3) 42%, transparent 78%),
    radial-gradient(circle at 74% 46%, transparent 0 22%, rgba(255, 255, 255, 0.09) 22.2% 22.6%, transparent 22.8% 30%, rgba(255, 255, 255, 0.06) 30.2% 30.5%, transparent 30.7%);
  mix-blend-mode: screen;
  opacity: 0.78;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px;
  z-index: 3;
  height: clamp(92px, 14vw, 160px);
  background:
    linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.16) 24%, rgba(0, 0, 0, 0.82) 100%),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}

.hero-depth {
  position: absolute;
  inset: 10% -12% auto auto;
  z-index: 1;
  width: min(58vw, 760px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, transparent 0 34%, rgba(255, 255, 255, 0.09) 34.3% 34.8%, transparent 35.1% 49%, rgba(255, 255, 255, 0.05) 49.2% 49.6%, transparent 50%),
    conic-gradient(from 110deg, transparent 0deg, rgba(255, 255, 255, 0.2) 38deg, transparent 82deg, transparent 174deg, rgba(255, 255, 255, 0.14) 214deg, transparent 270deg);
  filter: drop-shadow(0 36px 84px rgba(255, 255, 255, 0.08));
  opacity: 0.56;
  transform: perspective(900px) rotateX(64deg) rotateZ(-18deg);
  transform-origin: center;
  animation: heroDepthDrift 14s ease-in-out infinite alternate;
  pointer-events: none;
}

.hero-transition {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  height: clamp(70px, 10vw, 128px);
  background:
    linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 48%, transparent 100%) 0 42% / 180% 1px no-repeat,
    linear-gradient(90deg, transparent 0%, rgba(182, 66, 58, 0.24) 52%, transparent 100%) 0 60% / 160% 1px no-repeat;
  opacity: 0.44;
  animation: heroTransitionSweep 8s ease-in-out infinite;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 5;
  width: min(920px, 100%);
}

.eyebrow {
  color: rgba(255, 255, 255, 0.62);
}

.hero h1 {
  max-width: 11ch;
  margin-top: 18px;
  color: #ffffff;
  font-size: clamp(3.1rem, 8vw, 7.2rem);
}

.hero-lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.hero .button-primary {
  background: #ffffff;
  color: #050505;
}

.hero .button-secondary {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
}

@keyframes heroDepthDrift {
  from {
    opacity: 0.42;
    transform: perspective(900px) rotateX(64deg) rotateZ(-21deg) translate3d(-10px, 6px, 0);
  }

  to {
    opacity: 0.68;
    transform: perspective(900px) rotateX(58deg) rotateZ(-13deg) translate3d(14px, -10px, 0);
  }
}

@keyframes heroTransitionSweep {
  0%,
  100% {
    background-position: -30% 42%, 120% 60%;
  }

  50% {
    background-position: 130% 42%, -20% 60%;
  }
}

@media (max-width: 920px) {
  .hero {
    min-height: 80svh;
    padding-block: calc(var(--header-height) + 72px) 68px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 10vw, 5.2rem);
  }

  .hero-lead {
    max-width: 620px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 78svh;
    align-items: end;
    padding: calc(var(--header-height) + 42px) 16px 42px;
    background-size: 56px 56px, 56px 56px, auto, auto, auto;
  }

  .hero::before {
    opacity: 0.66;
    background:
      linear-gradient(180deg, rgba(0, 0, 0, 0.46) 0%, rgba(0, 0, 0, 0.58) 70%, rgba(0, 0, 0, 0.72) 100%),
      radial-gradient(circle at 72% 36%, transparent 0 24%, rgba(255, 255, 255, 0.08) 24.2% 24.6%, transparent 24.8% 34%);
  }

  .hero::after {
    height: 82px;
    opacity: 0.82;
  }

  .hero-depth {
    inset: 12% -58% auto auto;
    width: 128vw;
    opacity: 0.34;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(1.62rem, 7.2vw, 2.18rem);
    line-height: 1.18;
    overflow-wrap: normal;
    word-break: keep-all;
  }

  .hero-lead {
    margin-top: 20px;
    font-size: 0.95rem;
    line-height: 1.85;
  }
}

@media (max-width: 360px) {
  .hero {
    padding-inline: 12px;
    padding-bottom: 36px;
  }

  .hero h1 {
    font-size: clamp(1.5rem, 6.8vw, 1.85rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-depth,
  .hero-transition {
    animation: none;
  }
}
