/* =================================================================
   hero.css — intro section. Mobile: image above text.
   Desktop: text left, image right. Flexbox layout.
   ================================================================= */
.c-hero {
  padding-top: clamp(2.5rem, 1.5rem + 5vw, 5rem);
  padding-bottom: var(--space-section);
}

.c-hero__inner {
  display: flex;
  flex-direction: column-reverse; /* mobile: text below, image above */
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: center;
}

.c-hero__body {
  flex: 1 1 0;
  min-width: 0; /* let long words wrap instead of stretching the row */
  max-width: 36rem;
}

.c-hero__eyebrow {
  margin-bottom: var(--space-md);
}

.c-hero__title {
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: -0.028em;
  font-weight: var(--fw-semi);
}
.c-hero__title .u-text-accent {
  color: var(--color-accent);
}

.c-hero__lead {
  margin-top: var(--space-lg);
  max-width: 34ch;
}

.c-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-top: var(--space-xl);
}

.c-hero__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: var(--space-xl);
  font-size: var(--fs-meta);
  color: var(--color-ink-soft);
}
.c-hero__status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 60%, transparent);
  animation: pulse 2.6s var(--ease) infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 55%, transparent);
  }
  70% {
    box-shadow: 0 0 0 7px
      color-mix(in srgb, var(--color-accent) 0%, transparent);
  }
  100% {
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--color-accent) 0%, transparent);
  }
}

/* ---- Portrait ---- */
.c-hero__media {
  position: relative;
  flex: 0 0 auto;
  width: min(320px, 78vw);
}
.c-hero__photo {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raise);
}
/* soft green shape behind the photo (theme.css refines it) */
.c-hero__media::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: auto -14% -12% -14%;
  height: 78%;
  background: var(--color-accent-soft);
  border-radius: var(--radius-lg);
}

/* small stat card below the photo */
.c-hero__badge {
  position: absolute;
  z-index: 2;
  left: -8%;
  bottom: -6%;
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.95rem;
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  line-height: 1.2;
}
.c-hero__badge-num {
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--color-accent);
}
.c-hero__badge-label {
  font-size: 0.75rem;
  color: var(--color-ink-soft);
}

/* ---- Desktop ---- */
@media (min-width: 48em) {
  .c-hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .c-hero__media {
    width: min(380px, 38vw);
  }
}
@media (min-width: 64em) {
  .c-hero__media {
    width: 400px;
  }
}
