/* ============================================
   SECTION: Hero Image
   Wide rounded photo capped at 1240 with a
   decorative white swirl bleeding across the
   top-right. Sizes scale by % so it stays clean
   on any viewport.
   ============================================ */

.hero-image {
    /* room at top for the swirl bleed; side gutter matches other sections */
    /* padding: 80px var(--section-side-padding); */
    background: var(--color-white);
}

.hero-image__frame {
    position: relative;
    margin-inline: auto;
}

.hero-image__photo {
    width: 100%;
    height: auto;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
    display: block;
}


/* Smiling variant stacked over the base; cross-fades in on scroll */
.hero-image__photo--smile {
    position: absolute;
    inset: 0;
    z-index: 1;                   /* above the base photo, below the swirl (z-index 2) */
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.12s ease;   /* very fast fade */
}

/* Smile fades in on first hover and stays (class added by JS, never removed) */
.hero-image__frame.is-smiling .hero-image__photo--smile {
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .hero-image__photo--smile {
        transition: none;         /* no fade animation for reduced-motion users */
    }
}

.hero-image__swirl {
    position: absolute;
    z-index: 2;
    pointer-events: none;
    width: 100%;                   /* swirl spans the full frame width */
    aspect-ratio: 1391 / 557;      /* preserve the swirl asset's intrinsic aspect */
    top: 0%;
    right: 0%;
    background: url("../../../images/decorative/vector-279.9ad43fe94699.png") no-repeat center / contain;
}

/* ----- Responsive -----
   Below the desktop breakpoint the photo runs edge to edge: the side
   gutter and the corner radius both go, so it reads as a full-bleed band
   rather than a contained card. */
@media (max-width: 1024px) {
    .hero-image {
        padding: 60px 0;
    }
    .hero-image__photo {
        border-radius: 0;
    }
}

@media (max-width: 768px) {
    .hero-image {
        padding: 40px 0;
    }
    /* Keep the photo's intrinsic ~2:1 ratio — a forced 4/3 box was
       stretching the subject (squished face / oval blocks) on mobile. */
}
