/*
 * blocks/about-hero/style.css
 * Scoped to .wp-block-neirotti-about-hero
 */


/* ─── Section ────────────────────────────────────────────────────────────── */

.about-hero {
  position:    relative;
  min-height:  520px;
  display:     flex;
  align-items: stretch;
  overflow:    hidden;
}


/* ─── Background image ───────────────────────────────────────────────────── */

.about-hero__image {
  position:            absolute;
  inset:               0;
  background-image:    var(--ah-bg-url, none);
  background-size:     cover;
  background-position: center;
  background-color:    var(--color-primary);
  transform:           scale(1);
  transition:          transform 8s ease;
  will-change:         transform;
}

/* Subtle Ken-Burns on scroll into view */
.about-hero.is-visible .about-hero__image {
  transform: scale(1.04);
}


/* ─── Gradient overlay ───────────────────────────────────────────────────── */

.about-hero__overlay {
  position:         absolute;
  inset:            0;
  background-image: linear-gradient(
    to top,
    rgba(10, 8, 5, 0.78) 0%,
    rgba(10, 8, 5, 0.38) 45%,
    rgba(10, 8, 5, 0.08) 72%,
    transparent 100%
  );
}

.about-hero .container {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  min-height: 520px;
  padding-top: clamp(3rem, 6vw, 4rem);
  padding-bottom: clamp(3rem, 5vw, 3.5rem);
}

.about-hero__content {
  max-width: 40rem;
}

.about-hero__eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.72);
}

.about-hero .about-hero__title {
  position: relative;
  z-index: 1;
  max-width: 11ch;
  margin-bottom: 1rem;
  color: var(--color-beige);
  line-height: 0.95;
  letter-spacing: -0.04em;
  padding-bottom: 0;
}

.about-hero__text {
  max-width: 31rem;
  color: rgba(245, 240, 232, 0.82);
}

.about-hero__text p {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1.0625rem, 1.4vw, 1.2rem);
  font-weight: 300;
  line-height: 1.8;
}


/* ─── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .about-hero {
    min-height: 360px;
  }

  .about-hero .container {
    min-height: 360px;
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }

  .about-hero .about-hero__title {
    max-width: 100%;
  }
}
