/* ============================================================
   SECTION 1 — HERO
   ============================================================ */
.section-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--jet);
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-media .bg {
  position: absolute;
  inset: -6% -3%;
  background:
    linear-gradient(
      180deg,
      rgba(3, 3, 4, 0.78) 0%,
      rgba(3, 3, 4, 0.22) 20%,
      rgba(3, 3, 4, 0.08) 44%,
      rgba(3, 3, 4, 0.6) 80%,
      rgba(3, 3, 4, 0.96) 100%
    ),
    linear-gradient(
      90deg,
      rgba(3, 3, 4, 0.92) 0%,
      rgba(3, 3, 4, 0.66) 20%,
      rgba(3, 3, 4, 0.2) 42%,
      transparent 62%
    ),
    radial-gradient(
      64% 30% at 0% 75%,
      rgba(3, 3, 4, 1) 0%,
      rgba(3, 3, 4, 0.97) 52%,
      rgba(3, 3, 4, 0.55) 82%,
      transparent 100%
    ),
    radial-gradient(
      90% 70% at 80% 30%,
      rgba(198, 161, 91, 0.14),
      transparent 58%
    ),
    var(--jet) url("../img/hero-car.avif") center 52% / cover no-repeat;
  animation: kenburns 26s ease-in-out infinite alternate;
  will-change: transform;
}
/* grain + vignette overlays */
.hero-media .vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(
    120% 100% at 50% 30%,
    transparent 40%,
    rgba(5, 5, 5, 0.55) 100%
  );
  pointer-events: none;
}
.hero-grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* side rails / decorative frame */
.hero-frame {
  position: absolute;
  inset: clamp(16px, 3vw, 34px);
  z-index: 5;
  border: 1px solid var(--line-soft);
  pointer-events: none;
}
.hero-side {
  position: absolute;
  top: 50%;
  z-index: 6;
  font-size: 0.62rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}
.hero-side.left {
  left: clamp(20px, 3.4vw, 42px);
  transform: translateY(-50%);
}
.hero-side.right {
  right: clamp(20px, 3.4vw, 42px);
  transform: translateY(-50%) rotate(180deg);
}

.hero-inner {
  position: relative;
  z-index: 7;
  width: 100%;
  padding-bottom: clamp(3rem, 8vh, 7rem);
  padding-top: 8rem;
}
.hero-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  flex-wrap: wrap;
}
.hero-copy {
  max-width: none;
}
.hero-tag {
  margin-bottom: 1.8rem;
}
.hero-h1 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: calc(clamp(2.5rem, 5.6vw, 5.6rem) * var(--hero-scale, 1));
  line-height: 0.98;
  letter-spacing: -0.018em;
  max-width: 17ch;
  text-wrap: balance;
}
.hero-lead {
  display: block;
  font-weight: 300;
}
.hero-cta-line {
  display: block;
}
/* small translate-only rise (opacity stays 1, no clip) -> legible even when frozen */
.hero-h1 > span {
  animation: heroLine 1.1s var(--ease-out) both;
}
.hero-h1 > span:nth-child(2) {
  animation-delay: 0.12s;
}
@keyframes heroLine {
  from {
    transform: translateY(0.5em);
  }
  to {
    transform: none;
  }
}

/* the highlighted "Starts Here" CTA word */
.starts-here {
  position: relative;
  display: inline-block;
  font-style: italic;
  color: var(--gold-soft);
  -webkit-text-fill-color: var(--gold-soft);
  cursor: pointer;
  padding-right: 0.1em;
}
.starts-here::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.12em;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-soft));
  transform-origin: left;
  transform: scaleX(1);
  transition: transform 0.5s var(--ease-out);
}
.starts-here:hover::after {
  transform: scaleX(0);
  transform-origin: right;
}
.starts-here .cta-cue {
  position: absolute;
  top: -0.2em;
  right: -1.4em;
  width: 1.1em;
  height: 1.1em;
  border: 1px solid var(--gold);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.4em;
  font-style: normal;
  color: var(--gold);
  opacity: 0;
  transform: scale(0.6);
  transition:
    opacity 0.4s,
    transform 0.4s;
}
.starts-here:hover .cta-cue {
  opacity: 1;
  transform: scale(1);
}

.hero-aside {
  max-width: 32ch;
  animation: heroRise 1s var(--ease-out) 0.35s both;
}
@keyframes heroRise {
  from {
    transform: translateY(22px);
  }
  to {
    transform: none;
  }
}
.hero-aside .sub {
  color: var(--muted);
  font-size: clamp(0.95rem, 1.15vw, 1.1rem);
  line-height: 1.7;
  margin-bottom: 1.9rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  flex-wrap: wrap;
}

/* stats strip */
.hero-stats {
  display: flex;
  gap: clamp(1.4rem, 4vw, 3.6rem);
  margin-top: clamp(2.4rem, 5vh, 4rem);
  padding-top: 1.8rem;
  border-top: 1px solid var(--line-soft);
  animation: heroRise 1s var(--ease-out) 0.5s both;
}
.hero-stats .stat .n {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 300;
  color: var(--paper);
  line-height: 1;
}
.hero-stats .stat .n b {
  color: var(--gold);
  font-weight: 300;
}
.hero-stats .stat .l {
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.5rem;
}

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(1.4rem, 3vh, 2.4rem);
  transform: translateX(-50%);
  z-index: 7;
}

@media (max-width: 760px) {
  .hero-inner {
    padding-bottom: clamp(1.5rem, 4vh, 3.5rem);
  }
  .hero-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 2.2rem;
  }
  .hero-side {
    display: none;
  }
  .hero-aside {
    max-width: 42ch;
  }
  .hero-scroll {
    display: none;
  }
  .hero-stats {
    flex-wrap: wrap;
    gap: 1.4rem 2rem;
  }
  /* portrait hero image tuned for phones */
  .hero-media .bg {
    inset: 0;
    background:
      linear-gradient(
        180deg,
        rgba(3, 3, 4, 0.82) 0%,
        rgba(3, 3, 4, 0.34) 22%,
        rgba(3, 3, 4, 0.12) 46%,
        rgba(3, 3, 4, 0.66) 78%,
        rgba(3, 3, 4, 0.97) 100%
      ),
      radial-gradient(
        120% 60% at 50% 18%,
        rgba(198, 161, 91, 0.12),
        transparent 60%
      ),
      var(--jet) url("../img/hero-car-mobile.avif") center 38% / cover no-repeat;
    animation: none;
  }
  .hero-h1 {
    font-size: calc(clamp(2.3rem, 9.6vw, 3.2rem) * var(--hero-scale, 1));
  }
}
/* keep the hero within shorter desktop viewports (e.g. 1366x768) */
@media (min-width: 1024px) and (max-height: 880px) {
  .hero-inner {
    padding-top: 6rem;
    padding-bottom: clamp(2rem, 5vh, 4rem);
  }
  .hero-h1 {
    font-size: calc(clamp(2.2rem, 4.8vw, 4.7rem) * var(--hero-scale, 1));
  }
  .hero-aside .sub {
    margin-bottom: 1.3rem;
  }
  .hero-stats {
    margin-top: clamp(1.4rem, 3vh, 2.4rem);
    padding-top: 1.2rem;
  }
}
