.hero-intro {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 68% 72%, #31504545, transparent 60%),
    linear-gradient(25deg, #0a2119, #172f24 58%, #162b22);
  animation: hero-intro-reveal 1920ms both;
}

.hero-intro-drawing {
  position: absolute;
  display: block;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: hero-intro-fade 1980ms both;
}

.hero-intro-drawing path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: hero-intro-draw 720ms var(--stroke-delay) cubic-bezier(.33, .05, .27, 1) forwards;
}

.hero-intro-outline {
  stroke: #f2d5a3;
  stroke-width: 1.65;
}

.hero-intro-facade {
  stroke: #eed5a6;
  stroke-opacity: .56;
  stroke-width: .82;
}

.hero-intro-ground {
  stroke: #d5bc92;
  stroke-opacity: .38;
  stroke-width: 1;
}

@keyframes hero-intro-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes hero-intro-reveal {
  0%, 31% { opacity: .99; }
  52% { opacity: .76; }
  76% { opacity: .26; }
  100% { opacity: 0; }
}

@keyframes hero-intro-fade {
  0%, 51% { opacity: 1; }
  83% { opacity: .44; }
  100% { opacity: 0; }
}

@media (max-width: 640px) {
  .hero-intro::before {
    background:
      radial-gradient(ellipse at 50% 77%, #31504555, transparent 58%),
      linear-gradient(12deg, #0a2119, #172f24 60%, #162b22);
  }

  .hero-intro-outline { stroke-width: 1.35; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-intro { display: none; }
}
