/* =========================
   HERO
========================= */

.mc-hero {
  position: relative;
  overflow: hidden;
  color: var(--mc-white);
  background: var(--mc-charcoal);
  min-height: clamp(760px, 88vh, 1040px);
  padding-top: clamp(5.5rem, 5vw, 7rem);
  padding-bottom: 0;
  z-index: 1;
}

.mc-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.mc-hero__bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 63% 32%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.05) 18%, transparent 42%),
    linear-gradient(90deg, #1d181b 0%, #241f22 34%, #403b3f 66%, #8f8a8d 100%);
}

/* Uses .container and .container--wide from main.css */
.mc-hero__container {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(24px, 5vw, 72px);
  padding-right: clamp(24px, 5vw, 72px);
}

.mc-hero__top {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(520px, 0.98fr);
  align-items: end;
  gap: clamp(2rem, 3.5vw, 5rem);
  min-height: clamp(640px, 74vh, 860px);
}

/* Eyebrow label inside any .mc-hero variant  -  beats the inherited white from .mc-hero { color } */
.mc-hero .mc-eyebrow {
  color: var(--mc-green);
}

.mc-hero__content {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: center;
  max-width: 760px;
  padding: 0 0 clamp(4rem, 6vw, 7rem);
}

.mc-hero__title {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-family: var(--font-display);
  font-size: clamp(4.2rem, 6.6vw, 7rem);
  line-height: 0.92;
  font-weight: 900;
  letter-spacing: -0.055em;
  text-transform: uppercase;
}

.mc-hero__title-line {
  display: inline-block;
  width: fit-content;
  color: var(--mc-white);
}

.mc-hero__title-line--muted {
  color: #898080;
}

.mc-hero__subtitle {
  margin: 1.15rem 0 0;
  max-width: 680px;
  font-family: var(--font-body);
  font-size: clamp(1.12rem, 0.45vw + 1rem, 1.34rem);
  line-height: 1.35;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
}

.mc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

/* Hero action links */
.mc-hero__actions .button,
.mc-hero__actions .btn,
.mc-hero__actions a:not(.mc-button--text):not(.mc-hero__primary-link):not(.mc-hero__secondary-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.95rem 1.45rem;
  border-radius: var(--mc-radius-btn);
  text-decoration: none;
  font-size: 0.98rem;
  line-height: 1;
  font-weight: 700;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

/* Text link CTAs - shrink to text width, no button padding */
.mc-hero__primary-link,
.mc-hero__secondary-link {
  display: inline-block;
  align-self: flex-start;
}


.mc-button--text {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--mc-white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  transition: color 0.2s ease;
}

.mc-button--text::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--mc-green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.mc-button--text:hover {
  color: var(--mc-green);
}

.mc-button--text:hover::after {
  transform: scaleX(1);
}

@media (prefers-reduced-motion: reduce) {
  .mc-button--text::after {
    transition: none;
  }
}

.mc-hero__media {
  position: relative;
  z-index: 4;
  align-self: end;
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  min-height: 100%;
  line-height: 0;
  margin-bottom: -6px;
}

.mc-hero__accent {
  position: absolute;
  left: -360px;
  bottom: 110px;
  width: calc(100% + 520px);
  max-width: none;
  height: auto;
  z-index: 1;
  opacity: 0.92;
  animation: heroAccentFloat 14s ease-in-out infinite;
}

.mc-hero__image {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 690px);
  height: auto;
  object-fit: contain;
  object-position: bottom right;
}

/* =========================
   ANIMATION
========================= */

@keyframes heroAccentFloat {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
  100% {
    transform: translateX(0);
  }
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1280px) {
  .mc-hero {
    min-height: clamp(700px, 82vh, 960px);
  }

  .mc-hero__top {
    grid-template-columns: minmax(0, 0.96fr) minmax(420px, 0.94fr);
    min-height: clamp(620px, 70vh, 800px);
  }

  .mc-hero__title {
    font-size: clamp(3.8rem, 6vw, 6rem);
  }

  .mc-hero__image {
    width: min(100%, 620px);
  }
}

@media (max-width: 1100px) {
  .mc-hero {
    min-height: auto;
    padding-bottom: 0;
  }

  .mc-hero__top {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .mc-hero__content {
    max-width: 100%;
    min-width: 0;
    padding-bottom: 2rem;
  }

  .mc-hero__media {
    justify-content: center;
    min-height: auto;
  }

  .mc-hero__accent {
    left: 50%;
    bottom: 10px;
    width: min(900px, 130vw);
    transform: translateX(-50%);
  }

  .mc-hero__image {
    width: min(100%, 480px);
  }
}

@media (max-width: 767px) {
  .mc-hero {
    padding-top: 5rem;
  }

  /* Root cause: clamp(2.9rem, 13vw, 4.4rem) min is too large for "PERFORMANCE"
     (11 chars) to fit in ~327px available at 375px. Tighten the vw scale so the
     word fits within viewport padding without needing overflow:hidden to mask it. */
  .mc-hero__title {
    font-size: clamp(2.2rem, 10.5vw, 4.4rem);
  }

  .mc-hero__subtitle {
    font-size: 1rem;
  }

  .mc-hero__actions {
    gap: 0.8rem;
  }
}

/* Lottie / animation wrappers (moved from main.css) */
.mc-radial-animation {
  width: 320px;
  height: 320px;
}

lottie-player {
  display: block;
  width: 100%;
  max-width: 420px;
  height: 420px;
  margin-inline: auto;
}

.mc-hero-card--lottie {
  display: grid;
  place-items: center;
  height: 100%;
  overflow: hidden;
}

/* Reduce Lottie opacity on mobile so background animations don't
   compete visually with overlapping text content. */
@media (max-width: 1023px) {
  [data-lottie-file] {
    opacity: 0.6;
  }
}