/* Services hero — asymmetric 60/40 split over a full-bleed plant photograph.
   Mobile-first: one column, no fixed widths, no 100vw. Tablet: wider copy.
   Desktop (>=64em): 60/40 grid with the studio-facts card in the 40% column. */

.services-hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-block: var(--space-section);
  color: var(--color-text-on-dark);
  background-color: var(--color-primary-900);
}

.services-hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.services-hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* DESIGN.md: never a flat colour band over a hero photo. */
.services-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--overlay-hero);
}

.services-hero__container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-padding);
  display: grid;
  gap: var(--space-8);
}

/* Scroll-reveal: copy settles in once the section is in view. */
.services-hero__copy,
.services-hero__aside {
  opacity: 1;
  transition: opacity var(--duration-slow) var(--ease-out),
              transform var(--duration-slow) var(--ease-out);
}

/* The hidden start state is opt-in: only JS that can reveal it adds
   `is-animated`, so without JS the copy is simply visible. */
@media (prefers-reduced-motion: no-preference) {
  .services-hero.is-animated .services-hero__copy,
  .services-hero.is-animated .services-hero__aside {
    opacity: 0;
    transform: translateY(var(--reveal-distance));
  }

  .services-hero.is-animated.is-ready .services-hero__copy,
  .services-hero.is-animated.is-ready .services-hero__aside {
    opacity: 1;
    transform: none;
  }

  .services-hero.is-animated.is-ready .services-hero__aside {
    transition-delay: var(--stagger-step);
  }
}

.services-hero__eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  color: var(--color-accent-200);
  margin-bottom: var(--space-4);
}

.services-hero__heading {
  font-size: clamp(2.25rem, 4.5vw + 1rem, 3.4rem);
  font-weight: var(--weight-bold);
  letter-spacing: var(--letter-tight);
  line-height: var(--leading-tight);
  color: var(--color-text-on-dark);
  text-wrap: balance;
}

.services-hero__subheading {
  margin-top: var(--space-5);
  max-width: var(--measure);
  font-size: var(--text-lg);
  line-height: var(--leading-normal);
  color: var(--color-neutral-100);
}

.services-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.services-hero__ctas .btn {
  transition: background-color var(--duration-fast) var(--ease-default),
              transform var(--duration-fast) var(--ease-default);
}

.services-hero__ctas .btn--primary:hover { background-color: var(--color-primary-700); }
.services-hero__ctas .btn--secondary:hover { background-color: rgba(250, 250, 249, 0.14); }
.services-hero__ctas .btn:hover { transform: translateY(-2px); }

/* 40% column: frosted studio-facts card. */
.services-hero__aside {
  padding: var(--space-6);
  border: 1px solid rgba(250, 250, 249, 0.28);
  border-radius: var(--radius-lg);
  background-color: rgba(23, 44, 34, 0.45);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-lg);
}

.services-hero__aside-title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-dark);
  margin-bottom: var(--space-4);
}

.services-hero__facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2) var(--space-5);
  font-size: var(--text-sm);
}

.services-hero__term {
  font-weight: var(--weight-medium);
  letter-spacing: var(--letter-wide);
  text-transform: uppercase;
  font-size: var(--text-xs);
  color: var(--color-accent-200);
  align-self: center;
}

.services-hero__detail {
  color: var(--color-neutral-100);
  min-width: 0;
  overflow-wrap: anywhere;
}

.services-hero__detail a { color: var(--color-neutral-50); text-decoration: none; }
.services-hero__detail a:hover { text-decoration: underline; }

/* Tablet */
@media (min-width: 48em) {
  .services-hero { min-height: 60vh; }
  .services-hero__container { gap: var(--space-10); }
  .services-hero__aside { max-width: 30rem; }
}

/* Desktop: 60/40 split */
@media (min-width: 64em) {
  .services-hero { min-height: 70vh; }

  .services-hero__container {
    grid-template-columns: 3fr 2fr;
    align-items: center;
    gap: var(--space-12);
  }

  .services-hero__aside { max-width: none; justify-self: end; width: 100%; }
}
