/* ==========================================================================
   HERO CINEMA v2 — unified scene, seamless trainer, premium composition
   ========================================================================== */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 100svh;
  min-height: 100dvh;
  padding-top: var(--header-h);
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    radial-gradient(ellipse 90% 70% at 58% 38%, rgba(22, 28, 12, 0.55) 0%, transparent 55%),
    radial-gradient(ellipse 120% 85% at 50% 100%, #0c0c0c 0%, #050505 50%),
    #050505;
}

.hero > .container.hero__inner {
  position: relative;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  width: 100%;
  padding-block: clamp(0.35rem, 1.5vh, 1rem);
  z-index: 2;
}

/* ---- Atmospheric layers ---- */
.hero__cinema {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero__cinema-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 95% 75% at 55% 42%, transparent 28%, rgba(0, 0, 0, 0.5) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, transparent 20%, transparent 70%, rgba(0, 0, 0, 0.8) 100%),
    linear-gradient(105deg, rgba(0, 0, 0, 0.35) 0%, transparent 42%, transparent 100%);
}

.hero__cinema-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.hero__cinema-glow--left {
  width: min(38vw, 480px);
  height: min(38vw, 480px);
  left: -6%;
  bottom: 12%;
  background: radial-gradient(circle, rgba(182, 255, 0, 0.07) 0%, transparent 70%);
}

.hero__cinema-glow--center {
  width: min(50vw, 640px);
  height: min(75vh, 700px);
  left: 42%;
  top: 12%;
  transform: translateX(-35%);
  background: radial-gradient(ellipse 55% 50% at 50% 45%, rgba(182, 255, 0, 0.14) 0%, transparent 70%);
}

.hero__cinema-glow--right {
  width: min(44vw, 560px);
  height: min(68vh, 680px);
  right: 0;
  top: 6%;
  background: radial-gradient(ellipse 50% 48% at 50% 40%, rgba(182, 255, 0, 0.18) 0%, transparent 68%);
  filter: blur(75px);
}

.hero__cinema-spotlight {
  position: absolute;
  width: min(52vw, 700px);
  height: min(88vh, 900px);
  left: 38%;
  top: 50%;
  transform: translate(-15%, -48%);
  background: radial-gradient(ellipse 50% 55% at 50% 38%, rgba(182, 255, 0, 0.09) 0%, transparent 72%);
  filter: blur(40px);
  opacity: 0.9;
}

.hero__cinema-fog {
  position: absolute;
  inset: -8% -4%;
  background:
    radial-gradient(ellipse 80% 45% at 58% 50%, rgba(55, 55, 55, 0.28) 0%, transparent 58%),
    radial-gradient(ellipse 60% 40% at 25% 65%, rgba(25, 25, 25, 0.35) 0%, transparent 55%);
  mix-blend-mode: screen;
  opacity: 0.65;
}

.hero__cinema-chevrons {
  position: absolute;
  inset: -4% -6%;
  width: 112%;
  height: 108%;
  opacity: 0.75;
}

.hero__cinema-lines {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(112deg, transparent 46%, rgba(182, 255, 0, 0.05) 49%, transparent 52%),
    linear-gradient(68deg, transparent 58%, rgba(255, 255, 255, 0.035) 59.5%, transparent 61%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 80px,
      rgba(182, 255, 0, 0.02) 80px,
      rgba(182, 255, 0, 0.02) 81px
    );
  opacity: 0.5;
}

.hero__cinema-mesh {
  position: absolute;
  inset: 0;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(182, 255, 0, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(182, 255, 0, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 0%, transparent 75%);
}

.hero__cinema-cross::before,
.hero__cinema-cross::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 1px solid rgba(182, 255, 0, 0.18);
}

.hero__cinema-cross::before {
  top: 24%;
  left: 14%;
}

.hero__cinema-cross::after {
  bottom: 30%;
  right: 22%;
  border-color: rgba(255, 255, 255, 0.1);
}

.hero__cinema-grain {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

.hero::before {
  opacity: 0.5 !important;
  background:
    radial-gradient(ellipse 48% 40% at 62% 44%, rgba(182, 255, 0, 0.08), transparent 70%),
    linear-gradient(118deg, transparent 35%, rgba(182, 255, 0, 0.03) 50%, transparent 65%) !important;
}

.hero::after {
  display: none;
}

/* ---- Unified grid: text + overlapping scene ---- */
@media (min-width: 901px) {
  .hero > .container.hero__inner {
    grid-template-columns: minmax(0, 0.48fr) minmax(0, 0.52fr);
    gap: 0 clamp(0.25rem, 1vw, 0.75rem) !important;
  }

  .hero__content {
    grid-column: 1;
    grid-row: 1;
    position: relative;
    z-index: 3;
    align-self: center;
    padding-right: 0;
  }

  .hero__scene {
    grid-column: 1 / -1;
    grid-row: 1;
    justify-self: stretch;
    align-self: stretch;
    margin-left: 28%;
    min-height: calc(100svh - var(--header-h) - 1rem);
    pointer-events: none;
  }

  .hero__content {
    padding-top: clamp(0.5rem, 3vh, 2rem);
  }
}

.hero__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: none !important;
}

.hero .eyebrow {
  margin-bottom: 0.6rem !important;
  text-shadow: 0 0 20px rgba(182, 255, 0, 0.18);
}

.hero__title {
  font-size: clamp(2.75rem, 6.2vw, 5.5rem) !important;
  line-height: 0.9 !important;
  margin-bottom: 0.75rem !important;
  text-shadow:
    0 0 60px rgba(182, 255, 0, 0.08),
    0 8px 32px rgba(0, 0, 0, 0.85);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.65vw, 1.1rem) !important;
  line-height: 1.55 !important;
  margin-bottom: 0.85rem !important;
  max-width: 28rem;
}

.hero__pills {
  margin-bottom: 0.85rem !important;
  gap: 0.4rem !important;
}

.hero__actions {
  margin-bottom: 0.85rem !important;
  max-width: 300px;
}

.hero__actions .btn--primary.btn--lg {
  min-height: 54px !important;
  padding: 0.85rem 1.5rem !important;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: none;
  box-shadow:
    0 0 0 1px rgba(182, 255, 0, 0.35),
    0 0 48px rgba(182, 255, 0, 0.28),
    0 14px 36px rgba(0, 0, 0, 0.5);
  transition:
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero__actions .btn--primary.btn--lg:hover {
  transform: translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(182, 255, 0, 0.5),
    0 0 64px rgba(182, 255, 0, 0.4),
    0 20px 44px rgba(0, 0, 0, 0.55);
}

.hero__features {
  margin-top: 0.15rem !important;
}

/* ---- Trainer scene (no box / no card) ---- */
.hero__scene {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible;
  isolation: isolate;
}

.hero__trainer-glow {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: min(70%, 520px);
  height: 72%;
  transform: translateX(-48%);
  background:
    radial-gradient(ellipse 55% 50% at 50% 42%, rgba(182, 255, 0, 0.22) 0%, transparent 68%),
    radial-gradient(ellipse 80% 35% at 50% 88%, rgba(5, 5, 5, 0.95) 0%, transparent 70%);
  filter: blur(28px);
  z-index: 0;
  pointer-events: none;
}

.hero__figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 75% 90% at 50% 30%, transparent 35%, rgba(5, 5, 5, 0.35) 72%, rgba(5, 5, 5, 0.85) 100%);
  pointer-events: none;
  z-index: 2;
}

.hero__figure {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  width: 100%;
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: transparent;
  border: none;
  overflow: visible;
  -webkit-mask-image:
    radial-gradient(ellipse 62% 88% at 50% 28%, #000 12%, rgba(0, 0, 0, 0.7) 38%, transparent 74%),
    linear-gradient(to bottom, transparent 0%, #000 2%, #000 78%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 0%, #000 98%, transparent 100%);
  mask-image:
    radial-gradient(ellipse 62% 88% at 50% 28%, #000 12%, rgba(0, 0, 0, 0.7) 38%, transparent 74%),
    linear-gradient(to bottom, transparent 0%, #000 2%, #000 78%, transparent 100%),
    linear-gradient(to right, transparent 0%, #000 0%, #000 98%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}

.hero__img--blend {
  display: block;
  width: auto;
  height: auto;
  max-width: min(72vw, 920px);
  max-height: min(calc(100svh - var(--header-h) + 2rem), 920px);
  object-fit: contain;
  object-position: center 8%;
  margin: 0 auto;
  mix-blend-mode: lighten;
  background: transparent !important;
  filter:
    contrast(1.1) saturate(1.14) brightness(1.05)
    drop-shadow(0 40px 70px rgba(0, 0, 0, 0.75))
    drop-shadow(0 0 100px rgba(182, 255, 0, 0.1));
  -webkit-user-select: none;
  user-select: none;
}

/* Legacy wrappers — disabled */
.hero__photo-wrap,
.hero__photo-mask,
.hero__photo-fade,
.hero__frame,
.hero__visual {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.hero__photo-fade {
  display: none !important;
}

/* Badge — glass label near shoulder */
.hero__badge {
  position: absolute;
  z-index: 4;
  left: 12%;
  bottom: 28%;
  right: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem 0.55rem 0.75rem;
  background: rgba(10, 10, 10, 0.55);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(182, 255, 0, 0.22);
  border-radius: 100px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--text-primary);
  box-shadow:
    0 0 24px rgba(182, 255, 0, 0.12),
    0 8px 24px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

.hero__badge-icon {
  color: var(--accent);
  font-size: 0.85rem;
  line-height: 1;
}

.hero__badge-text {
  white-space: nowrap;
}

.hero__expertise {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 4%;
  transform: translateX(-50%);
  margin: 0 !important;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center !important;
  gap: 0.5rem 1.25rem !important;
  width: max-content;
  max-width: 100%;
  pointer-events: none;
}

.hero__expertise li {
  font-size: 0.62rem !important;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.8);
}

.hero + .section,
.hero + .services {
  margin-top: 0;
}

@media (min-width: 901px) and (max-height: 820px) {
  .hero__pills { display: none; }

  .hero__title {
    font-size: clamp(2.4rem, 5vw, 4.25rem) !important;
  }

  .hero__scene {
    margin-left: 30%;
  }

  .hero__img--blend {
    max-height: min(calc(100svh - var(--header-h)), 780px) !important;
  }
}

@media (min-width: 901px) and (max-height: 700px) {
  .hero__features { display: none; }

  .hero__subtitle {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}

/* ---- Tablet / mobile ---- */
@media (max-width: 900px) {
  .hero {
    padding-bottom: clamp(1.25rem, 3vh, 2rem) !important;
  }

  .hero > .container.hero__inner {
    grid-template-columns: 1fr !important;
    gap: 0.5rem !important;
    padding-block: 0.5rem 0.75rem;
  }

  .hero__content {
    order: 0;
    z-index: 3;
  }

  .hero__scene {
    order: 1;
    margin-left: 0 !important;
    min-height: min(46vh, 420px);
    width: 100%;
    pointer-events: none;
  }

  .hero__img--blend {
    max-width: 100%;
    max-height: min(44vh, 400px) !important;
    object-position: center 12% !important;
  }

  .hero__badge {
    left: 8%;
    bottom: 22%;
  }

  .hero__expertise {
    position: relative;
    left: auto;
    bottom: auto;
    transform: none;
    margin-top: 0.5rem !important;
    width: 100%;
  }

  .hero__cinema-chevrons {
    opacity: 0.5;
  }

  .hero__cinema-spotlight {
    left: 50%;
    width: 90vw;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: clamp(2.2rem, 10vw, 2.75rem) !important;
  }

  .hero__scene {
    min-height: min(40vh, 360px);
  }

  .hero__img--blend {
    max-height: min(40vh, 340px) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__actions .btn--primary.btn--lg:hover {
    transform: none;
  }

  .hero__cinema-grain {
    opacity: 0.18;
  }
}
