/* Shared secondary-page hero system */
body .page-hero,
body .team-hero,
body .seo-hero,
body.universe-page .page-hero {
    position: relative;
    display: grid;
    overflow: hidden;
    width: 100%;
    height: 388px;
    min-height: 388px;
    margin: 0;
    padding: 16rem 2rem 7rem;
    border: 0;
    border-radius: 0;
    background: #f5eee3;
    box-shadow: none;
    color: #222;
    isolation: isolate;
    place-items: center;
    text-align: center;
}

body .page-hero::before,
body .team-hero::before,
body .seo-hero::before {
    position: absolute;
    top: -9rem;
    left: 50%;
    width: 44rem;
    height: 20rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(173, 75, 64, 0.07), transparent 70%);
    content: "";
    pointer-events: none;
    transform: translateX(-50%);
    z-index: -1;
}

body .page-hero > .container,
body .team-hero > .container {
    width: min(100%, 1180px);
    margin-inline: auto;
    padding-inline: 2rem;
    overflow: visible;
    text-align: center;
}

body .hero-eyebrow,
body .page-hero .section-subtitle,
body .team-hero .section-subtitle,
body .seo-hero .section-subtitle {
    display: block;
    margin: 0 0 1.5rem;
    padding: 0;
    color: #ad4b40;
    font-family: 'Poppins', sans-serif;
    font-size: 1.35rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.24em;
    text-align: center;
    text-transform: uppercase;
}

body .page-hero .hero-title,
body .team-hero .hero-title,
body .seo-hero .hero-title,
body.universe-page .page-hero .hero-title {
    position: relative;
    display: inline-block;
    overflow: visible;
    width: fit-content;
    max-width: min(100%, 1050px);
    margin: 0;
    padding: 0 0.08em 0.06em;
    color: #222;
    font-family: 'Playfair Display', serif;
    font-size: clamp(4rem, 4vw, 5.4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    text-align: center;
    text-wrap: balance;
    z-index: 1;
}

/* Replaces the old full-height reveal block with a refined highlighter. */
body .page-hero .hero-title.reveal-text::before,
body .team-hero .hero-title.reveal-text::before,
body .seo-hero .hero-title.reveal-text::before {
    content: none;
}

body .page-hero .hero-title::after,
body .team-hero .hero-title::after,
body .seo-hero .hero-title::after,
body.universe-page .page-hero .hero-title::after {
    position: absolute;
    top: auto;
    right: 0;
    bottom: 0.08em;
    left: 0;
    width: 100%;
    height: 0.24em;
    border-radius: 0.08em;
    background: #d6a092;
    content: "";
    opacity: 0.68;
    transform: scaleX(0);
    transform-origin: left center;
    animation: hero-highlighter 0.85s 0.18s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    z-index: -1;
}

body .page-hero .hero-description,
body .team-hero .hero-description,
body .seo-hero .hero-description,
body .page-hero p,
body .team-hero p,
body .seo-hero p {
    max-width: 760px;
    margin: 2.2rem auto 0;
    color: #57524f;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.65rem, 0.35vw + 1.5rem, 1.9rem);
    font-weight: 400;
    line-height: 1.65;
    opacity: 1;
    text-align: center;
}

/* SEO landing pages used to place the hero inside a rounded content card. */
body .seo-page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 0 8rem;
}

body .seo-page .seo-content {
    width: min(100%, 1200px);
    margin: 6rem auto 0;
    padding-inline: 2rem;
}

@keyframes hero-highlighter {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (max-width: 768px) {
    body .page-hero,
    body .team-hero,
    body .seo-hero,
    body.universe-page .page-hero {
        height: auto;
        min-height: 270px;
        padding: 13.5rem 1.8rem 5.5rem;
    }

    body .page-hero > .container,
    body .team-hero > .container {
        padding-inline: 0;
    }

    body .page-hero .hero-title,
    body .team-hero .hero-title,
    body .seo-hero .hero-title,
    body.universe-page .page-hero .hero-title {
        max-width: 100%;
        font-size: clamp(3.6rem, 10vw, 4.5rem);
        overflow-wrap: anywhere;
    }

    body .page-hero .hero-title::after,
    body .team-hero .hero-title::after,
    body .seo-hero .hero-title::after,
    body.universe-page .page-hero .hero-title::after {
        top: auto;
        bottom: -0.6rem;
        height: 3px;
        opacity: 0.85;
        z-index: 1;
    }

    body .hero-eyebrow,
    body .page-hero .section-subtitle,
    body .team-hero .section-subtitle,
    body .seo-hero .section-subtitle {
        margin-bottom: 1.2rem;
        font-size: 1.25rem;
        letter-spacing: 0.2em;
    }

    body .page-hero .hero-description,
    body .team-hero .hero-description,
    body .seo-hero .hero-description,
    body .page-hero p,
    body .team-hero p,
    body .seo-hero p {
        margin-top: 1.8rem;
        font-size: 1.7rem;
        line-height: 1.6;
    }

    body .seo-page .seo-content {
        margin-top: 4rem;
        padding-inline: 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body .page-hero .hero-title::after,
    body .team-hero .hero-title::after,
    body .seo-hero .hero-title::after {
        animation: none;
        transform: scaleX(1);
    }
}
