/* Hero */
.fighter-hero {
  --fighter-top-canvas: min(100%, var(--fighter-design-width));
  --fighter-top-canvas-height: calc(var(--fighter-top-canvas) * 1208 / 1512);
  background: var(--fighter-black);
  overflow: visible !important;
  position: relative;
  z-index: 1;
  min-height: 38rem;
  /* Spacing lives on __body — kill block-support padding (was doubling mobile gap) */
  padding: 0 !important;
}

/*
 * Ellipse canvas matches Figma "content" frame (35:12336) inside "top" (35:12333):
 * 1512×1208 — same origin as header top, spans hero + programmes.
 */
.fighter-hero__bg {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: var(--fighter-top-canvas);
  height: var(--fighter-top-canvas-height);
  pointer-events: none;
  z-index: 99;
  overflow: visible;
}

/* Hero background ellipses (Figma content frame coords) */
.fighter-hero::before,
.fighter-hero__bg::before,
.fighter-hero__bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.3;
  background: var(--fighter-hero-ellipse-glow);
}

/* bg-ellipse-1 (35:12351) — x:134 y:522 · 476×476 */
.fighter-hero__bg::before {
  width: 476px;
  height: 476px;
  position: absolute;
  left: 134px;
  top: 440px;
  border-radius: 476px;
  opacity: 0.3;
  background: var(
    --bg-grad-blue,
    radial-gradient(
      45.23% 45.23% at 50% 54.77%,
      rgba(1, 213, 255, 0.5) 0%,
      rgba(1, 213, 255, 0) 100%
    )
  );
  filter: blur(0px);
}

/* bg-ellipse-2 (35:12350) — x:986 y:325 · 817×817 */
.fighter-hero__bg::after {
  left: calc(986 / 1512 * 100%);
  top: calc(325 / 1208 * 100%);
  width: calc(817 / 1512 * 100%);
  aspect-ratio: 1;
  filter: blur(20px);
  transform: scale(1.0245);
  transform-origin: center;

  width: 817px;
  height: 817px;

  position: absolute;
  right: -291px;
  bottom: 66px;

  border-radius: 817px;
  opacity: 0.3;
  background: var(
    --bg-grad-blue,
    radial-gradient(
      45.23% 45.23% at 50% 54.77%,
      rgba(1, 213, 255, 0.5) 0%,
      rgba(1, 213, 255, 0) 100%
    )
  );
  filter: blur(10px);
}

/* bg-ellipse-3 (35:12352) — x:37 y:-109 · 613×613 */
.fighter-hero::before {
  z-index: 0;
  left: calc(
    50% - var(--fighter-top-canvas) / 2 + var(--fighter-top-canvas) * 37 / 1512
  );
  top: calc(var(--fighter-top-canvas-height) * -109 / 1208);
  width: calc(var(--fighter-top-canvas) * 613 / 1512);
  aspect-ratio: 1;
  filter: blur(20px);
  transform: scale(1.0326);
  transform-origin: center;
}

.fighter-hero__body {
  position: relative;
  padding: calc(
      var(--fighter-pre-header-height) + var(--fighter-header-height) + 3rem
    )
    var(--fighter-section-x) 7.5rem;
  z-index: 3;
  width: min(100%, var(--fighter-design-width));
  max-width: var(--fighter-design-width);
  margin-inline: auto;
  box-sizing: border-box;
}

.fighter-hero__layout {
  position: relative;
  z-index: 1;
}

.fighter-hero__content {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 43.75rem;
}

.fighter-hero__title-block {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Base media — desktop defaults; mobile MQs below must come after this */
.fighter-hero__media {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  left: 50%;
  transform: translateX(-50%);
  top: 27rem;
  width: min(364px, calc(100% - 2rem));
  max-width: 364px;
}

.fighter-hero__figure {
  display: block;
  width: 100%;
  margin: 0;
  overflow: visible;
}

.fighter-hero__fighter {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
}

@media (max-width: 991px) {
  .fighter-hero {
    min-height: 0;
  }

  .fighter-hero__body {
    /* Clears fixed chrome; Figma mobile section rhythm uses 64px below card */
    padding-top: calc(
      var(--fighter-pre-header-height, 0px) + var(--fighter-header-height)
    );
    padding-bottom: var(--fighter-section-y);
    padding-inline: var(--fighter-section-x);
  }

  .fighter-hero__content {
    max-width: none;
    margin-inline: 0;
    width: 100%;
    gap: 16px;
    padding: 20px;
    background: var(--fighter-gray-50);
    border: 1px solid var(--fighter-white-7);
    border-radius: var(--fighter-radius-lg);
    box-sizing: border-box;
    z-index: 2;
  }

  /* Fighter sits under the glass card and into programmes */
  .fighter-hero__media {
    top: 27rem;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: 100%;
    height: 546px;
    z-index: 0;
  }

  .fighter-hero__figure {
    width: 100%;
    height: 100%;
  }

  .fighter-hero__fighter {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
  }

  .fighter-hero__title-block {
    gap: 14px;
  }

  .fighter-hero__title-wrap {
    max-width: 100%;
    min-width: 0;
  }

  .fighter-hero__title {
    font-size: clamp(28px, 8.5vw, 38px);
    line-height: 1.05;
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Soft-wrap as one phrase on mobile (hide desktop-only breaks) */
  .fighter-hero__br {
    display: none;
  }

  .fighter-hero__title-deco {
    left: -24px;
    top: 41px;
    width: min(233px, 80%);
  }

  .fighter-hero__subtitle {
    max-width: none;
    font-size: 16px;
    line-height: 24px;
  }

  .fighter-hero__cta {
    max-width: none;
    width: 100%;
    gap: 20px;
  }

  .fighter-hero__cta .fighter-btn {
    padding: 14px clamp(12px, 6vw, 48px);
    font-size: clamp(13px, 3.6vw, 16px);
    line-height: 1;
    white-space: nowrap;
  }

  .fighter-hero__cta .fighter-progress {
    gap: 4px;
  }

  .fighter-social-proof {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .fighter-social-proof__text {
    white-space: normal;
  }
}

@media (min-width: 992px) {
  .fighter-hero {
    min-height: 44rem;
  }

  .fighter-hero__body {
    padding-bottom: 0;
  }

  .fighter-hero__content {
    margin-inline: 0;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    max-width: 43.75rem;
  }

  .fighter-hero__media {
    left: max(
      calc((100% - var(--fighter-design-width)) / 2 + 736px),
      calc((100% - var(--fighter-container-max)) / 2 + 616px)
    );
    right: auto;
    transform: none;
    top: -5rem;
    bottom: auto;
    height: auto;
    width: min(664px, 43.92vw);
    max-width: 664px;
  }

  .fighter-hero__fighter {
    width: 100%;
    height: auto;
    object-fit: unset;
  }
}

.fighter-social-proof {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fighter-social-proof__avatars {
  display: block;
  flex-shrink: 0;
  width: 90px;
  height: 36px;
}

.fighter-social-proof__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.fighter-social-proof__stars {
  display: block;
  flex-shrink: 0;
  width: 66px;
  height: 10px;
}

.fighter-social-proof__text {
  margin: 0;
  font-family: var(--fighter-font-body);
  font-size: 14px;
  line-height: 18px;
  font-weight: 400;
  color: var(--fighter-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fighter-hero__title-wrap {
  position: relative;
}

.fighter-hero__title-deco {
  position: absolute;
  left: -1.5rem;
  top: 2.5625rem;
  width: 233px;
  height: 16px;
  z-index: -1;
}

.fighter-hero__title {
  margin: 0;
  font-family: var(--fighter-font-heading);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.07;
  text-transform: uppercase;
}

.fighter-hero__title {
  margin: 0;
  font-family: var(--fighter-font-heading);
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  line-height: 1.07;
  text-transform: uppercase;
}

.fighter-hero__title-sep {
  color: var(--fighter-white);
}

@media (min-width: 992px) {
  .fighter-hero__title {
    font-size: 3.5rem;
    line-height: 1.07;
  }
}

.fighter-hero__title .has-brand-color {
  color: var(--fighter-brand);
}

.fighter-hero__subtitle {
  margin: 0;
  max-width: 31.25rem;
  font-size: 1rem;
  line-height: 1.625;
  color: var(--fighter-white);
}

.fighter-hero__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  width: 100%;
  max-width: 19.8125rem;
}

.fighter-hero__cta .fighter-btn {
  width: 100%;
}

.fighter-hero__cta .fighter-progress {
  width: 100%;
  max-width: none;
}
