/* ============================================================
   HERO.CSS
   Hero section — full-bleed rounded card containing the site
   header and the main headline + 3D visual.
   ============================================================ */


/* ------------------------------------------------------------
   1. HERO SECTION SHELL
   Rounded card that clips all child elements + backgrounds
   ------------------------------------------------------------ */
.hero {
  position: relative;
  width: 100%;
  min-height: 490px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}


/* ------------------------------------------------------------
   2. BACKGROUND STACK
   Three layered images produce the animated-wave dark look
   ------------------------------------------------------------ */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: var(--z-bg);
  border-radius: inherit;
  overflow: hidden;
  pointer-events: none;
}

/* Base photo — particle/wave scene */
.hero__bg-base {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay image — taller than container, shifted up for motion feel */
.hero__bg-overlay {
  position: absolute;
  left: 0;
  width: 100%;
  height: 158.5%;
  top: -18.84%;
  object-fit: cover;
}

/* Radial dark vignette — draws focus to the centre content */
.hero__bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 50%,
    transparent 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
}


/* ------------------------------------------------------------
   3. HERO CONTENT ROW
   Holds the headline text (left) and 3-D cube visual (right)
   ------------------------------------------------------------ */
.hero__content {
  position: relative;
  z-index: var(--z-content);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 46px var(--sp-11) 56px;
  min-height: 400px;
}

/* ---- Headline ---- */
.hero__text {
  flex: 0 1 auto;
  max-width: 48%;   /* Figma: text spans left 6.57% → right 45.18% ≈ 48.25% of banner */
}

.hero__heading {
  font-family: var(--font-display);
  font-weight: var(--fw-regular);
  font-size: var(--fs-hero);
  line-height: 1.125;   /* Figma: 61.314px / 54.501px = 1.125 (was 1.25 / --lh-snug) */
  color: var(--clr-white);
  letter-spacing: -0.03em;
}

/* ---- 3-D visual ---- */
.hero__visual {
  flex: 0 0 auto;
  width: 37%;
  max-width: 534px;
  aspect-ratio: 534 / 466;
}

.hero__cube {
  width: 100%;
  height: 100%;
  object-fit: contain;
}


/* ------------------------------------------------------------
   4. RESPONSIVE
   ------------------------------------------------------------ */
@media (max-width: 1024px) {
  .hero__content {
    padding: 36px 28px 50px;
    min-height: 360px;
  }

  .hero__text   { max-width: 50%; }
  .hero__visual { width: 42%; }
}

@media (max-width: 767px) {
  .hero {
    border-radius: var(--radius-md);
    min-height: unset;
  }

  .hero__content {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px 44px;
    min-height: unset;
    gap: 28px;
  }

  .hero__text   { max-width: 100%; }

  .hero__heading {
    font-size: clamp(26px, 6.5vw, 38px);
  }

  .hero__visual {
    width: 80%;
    align-self: center;
  }
}

@media (max-width: 480px) {
  .hero__heading {
    font-size: clamp(24px, 6vw, 30px);
  }

  .hero__visual { width: 95%; }
}
