/* Hero v2 — Sonoran heat mirage */
.hero {
  min-height: 820px;
  background: #160604;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(15, 3, 2, 0.52) 0%, rgba(15, 3, 2, 0.16) 48%, rgba(15, 3, 2, 0.04) 72%),
    linear-gradient(0deg, rgba(9, 2, 1, 0.42), transparent 30%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 88px;
  bottom: 90px;
  left: max(24px, calc((100vw - 1180px) / 2));
  width: 1px;
  background: linear-gradient(transparent, rgba(255, 235, 201, 0.35) 20%, rgba(255, 235, 201, 0.1) 80%, transparent);
  pointer-events: none;
}

#hero-canvas {
  z-index: -4;
  opacity: 1;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: clamp(178px, 24vh, 240px);
}

.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.hero-content .eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: currentColor;
}

.hero-content h1 {
  font-size: clamp(4.2rem, 8.35vw, 8.15rem);
  max-width: 850px;
  text-shadow: 0 10px 50px rgba(29, 3, 0, 0.23);
}

.hero-content h1 em {
  color: #ffc15c;
  text-shadow: 0 0 44px rgba(255, 164, 38, 0.18);
}

.hero-copy {
  font-weight: 500;
  text-shadow: 0 2px 20px rgba(29, 3, 0, 0.35);
}

.hero-visual {
  position: absolute;
  z-index: 1;
  top: 14%;
  right: max(20px, calc((100vw - 1280px) / 2));
  width: min(45vw, 660px);
  height: 68%;
  pointer-events: none;
  filter: drop-shadow(0 36px 70px rgba(25, 3, 0, 0.35));
  transition: transform 0.8s var(--ease);
}

.hero-visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 221, 167, 0.35);
  border-radius: 50%;
  top: -8%;
  right: -8%;
  box-shadow: 0 0 0 24px rgba(255, 190, 84, 0.03), 0 0 0 58px rgba(255, 190, 84, 0.025);
}

.hero-image {
  position: absolute;
  inset: 9% 0 4% 8%;
  background:
    linear-gradient(120deg, rgba(58, 8, 3, 0.08), rgba(58, 8, 3, 0.42)),
    url("../assets/img/hero.webp") 60% center / cover no-repeat;
  clip-path: polygon(13% 0, 100% 0, 100% 82%, 79% 100%, 0 100%, 0 15%);
  mix-blend-mode: normal;
  box-shadow: 0 30px 70px rgba(20, 2, 0, 0.38);
  filter: saturate(1.12) contrast(1.03);
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 179, 70, 0.06), transparent 42%, rgba(48, 5, 2, 0.3));
  mix-blend-mode: color-burn;
}

.hero-stamp {
  position: absolute;
  z-index: 2;
  left: 0;
  bottom: -1%;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  background: #f3ead8;
  color: #7f2415;
  border: 1px solid rgba(95, 22, 12, 0.18);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 16px 50px rgba(25, 3, 0, 0.3);
  animation: stamp-float 5s ease-in-out infinite;
}

.hero-stamp::before,
.hero-stamp::after {
  content: "✦";
  position: absolute;
  font-size: 8px;
  top: 16px;
  left: 57px;
}

.hero-stamp::after {
  top: auto;
  bottom: 14px;
}

.hero-stamp span,
.hero-stamp small {
  font: 500 7px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.13em;
}

.hero-stamp strong {
  font: 600 31px/0.98 var(--serif);
  letter-spacing: -0.07em;
  margin: 7px 0 4px;
}

.hero-index {
  position: absolute;
  right: -37px;
  bottom: 20%;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font: 500 8px/1 var(--mono);
  letter-spacing: 0.18em;
  color: rgba(255, 246, 227, 0.68);
}

.hero-interaction {
  position: absolute;
  right: 0;
  bottom: -64px;
  display: flex;
  align-items: center;
  gap: 10px;
  font: 500 8px/1 var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 246, 227, 0.58);
}

.hero-interaction span {
  width: 23px;
  height: 23px;
  border: 1px solid rgba(255, 246, 227, 0.3);
  border-radius: 50%;
  position: relative;
}

.hero-interaction span::after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffc15c;
  left: 9px;
  top: 9px;
  animation: pointer-orbit 2.7s ease-in-out infinite;
}

.hero-actions {
  position: relative;
  z-index: 2;
}

.hero-footer {
  z-index: 2;
  border-top: 1px solid rgba(255, 250, 242, 0.22);
  padding-top: 18px;
  bottom: 24px;
}

@keyframes stamp-float {
  50% { transform: translateY(-9px) rotate(-3deg); }
}

@keyframes pointer-orbit {
  0%, 100% { transform: translate(-4px, -3px); }
  50% { transform: translate(4px, 3px); }
}

@media (max-width: 980px) {
  .hero-visual { right: -13%; width: 60vw; opacity: 0.76; }
  .hero-content h1 { font-size: clamp(4rem, 10.5vw, 7.2rem); }
  .hero-content { padding-top: 190px; }
  .hero-copy { max-width: 400px; }
  .hero-index { display: none; }
}

@media (max-width: 800px) {
  .hero { min-height: 790px; }
  .hero::after { top: 72px; bottom: 88px; left: 18px; }
  .hero-content { padding-top: 150px; }
  .hero-content h1 { font-size: clamp(3.75rem, 17vw, 6.5rem); line-height: 0.84; }
  .hero-content .eyebrow::before { width: 20px; }
  .hero-copy { max-width: 330px; }
  .hero-visual { z-index: -1; top: 20%; right: -35%; width: 96vw; height: 59%; opacity: 0.58; filter: drop-shadow(0 25px 50px rgba(25, 3, 0, 0.38)); }
  .hero-visual::before { width: 86%; right: -8%; top: -7%; }
  .hero-image { inset: 10% 0 4% 8%; background-position: 62% center; }
  .hero-stamp { width: 92px; height: 92px; left: 7%; bottom: -3%; }
  .hero-stamp strong { font-size: 23px; }
  .hero-stamp span, .hero-stamp small { font-size: 5.5px; }
  .hero-stamp::before { top: 10px; left: 42px; }
  .hero-stamp::after { bottom: 9px; left: 42px; }
  .hero-interaction { display: none; }
  .hero-footer { padding-top: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  #hero-canvas { display: none; }
  .hero { background: linear-gradient(90deg, rgba(57, 12, 8, 0.88), rgba(57, 12, 8, 0.36)), url("../assets/img/hero.webp") center / cover; }
  .hero-visual { display: none; }
  .hero-stamp, .hero-interaction span::after { animation: none; }
}
