/* Shared hero component */

.hero,
.page-header {
    width: min(100%, var(--content-width));
    margin-inline: auto;
}

.hero {
    padding: 8rem 1.5rem 4rem;
    min-height: calc(100vh - 5rem);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    gap: 2.2rem;
    align-items: center;
}

.hero-content {
    max-width: 46rem;
    display: grid;
    gap: 1.25rem;
}

.hero-title {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 5.4rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    max-width: 42rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 1.08rem;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header {
    padding: 7rem 1.5rem 2.5rem;
}

.page-header.subpage-hero {
    width: 100%;
    padding: 0;
}

.page-header.subpage-hero .subpage-hero-shell {
    display: grid;
    align-items: end;
    min-height: clamp(17rem, 28vw, 21rem);
}

.page-header.subpage-hero .subpage-hero-shell > * {
    position: relative;
    z-index: 1;
}

.page-header.subpage-hero .subpage-hero-shell::after {
    content: '';
    position: absolute;
    right: clamp(1rem, 4vw, 3rem);
    top: clamp(1rem, 3vw, 2.2rem);
    width: clamp(18rem, 28vw, 30rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(201, 168, 76, 0.14), rgba(201, 168, 76, 0.06) 34%, rgba(255, 255, 255, 0.02) 52%, transparent 72%);
    filter: blur(10px);
    opacity: 0.78;
    pointer-events: none;
    z-index: 0;
}

.subpage-hero {
    position: relative;
    z-index: 1;
    overflow: clip;
    margin-bottom: 1.15rem;
    isolation: isolate;
}

.subpage-hero::before {
    content: '';
    position: absolute;
    inset: -2.5rem 0 auto;
    height: 34rem;
    background:
        radial-gradient(38rem 22rem at 18% 34%, rgba(201, 168, 76, 0.16), transparent 68%),
        radial-gradient(24rem 15rem at 78% 20%, rgba(255, 255, 255, 0.03), transparent 76%),
        linear-gradient(180deg, rgba(24, 19, 10, 0.18), rgba(12, 11, 12, 0.18) 46%, rgba(7, 7, 9, 0) 100%);
    filter: blur(6px);
    pointer-events: none;
    z-index: 0;
}

.subpage-hero::after {
    content: none;
}

.subpage-hero-shell {
    width: min(100%, 1320px);
    margin-inline: auto;
    padding: clamp(2.2rem, 4.5vw, 3.4rem) 1.5rem clamp(2.4rem, 4.8vw, 3.4rem);
    position: relative;
    z-index: 1;
}

.subpage-hero-copy {
    display: grid;
    gap: 1.08rem;
    min-width: 0;
    max-width: 58rem;
    position: relative;
    padding: 0.8rem 0 0.2rem;
}

.subpage-hero-copy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 6rem;
    height: 1px;
    background: linear-gradient(90deg, rgba(201, 168, 76, 0.95), rgba(201, 168, 76, 0));
    opacity: 0.9;
}

.subpage-hero .badge {
    width: fit-content;
    justify-self: start;
    min-height: 2.15rem;
    padding: 0.46rem 0.95rem;
    border-radius: 999px;
    border-color: rgba(201, 168, 76, 0.28);
    background: linear-gradient(180deg, rgba(201, 168, 76, 0.12), rgba(201, 168, 76, 0.05));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.subpage-hero .hero-title,
.subpage-hero .hero-subtitle,
.subpage-hero .subpage-hero-meta {
    max-width: 54rem;
}

.subpage-hero .hero-title {
    max-width: 12ch;
    font-size: clamp(3.6rem, 7.2vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.045em;
    text-wrap: balance;
    text-shadow: 0 14px 42px rgba(0, 0, 0, 0.28);
}

.subpage-hero .hero-subtitle {
    max-width: 46rem;
    color: rgba(226, 232, 240, 0.84);
    font-size: 1.04rem;
    line-height: 1.82;
}

.subpage-hero .subpage-hero-meta {
    margin: 0.35rem 0 0;
    color: rgba(226, 232, 240, 0.78);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.035em;
}

@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 7rem;
    }

    .subpage-hero::before {
        height: 30rem;
    }

    .subpage-hero-shell {
        padding-top: 1.8rem;
        padding-bottom: 2.3rem;
    }
}

@media (max-width: 760px) {
    .hero,
    .page-header {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .hero-title {
        font-size: clamp(2.6rem, 14vw, 4rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .page-header.subpage-hero {
        padding-left: 0;
        padding-right: 0;
    }

    .subpage-hero-shell {
        width: 100%;
        padding: 1.2rem 1rem 1.8rem;
    }

    .subpage-hero::before {
        height: 26rem;
    }

    .page-header.subpage-hero .subpage-hero-shell {
        min-height: 0;
    }

    .page-header.subpage-hero .subpage-hero-shell::after {
        right: -2rem;
        top: 2rem;
        width: 16rem;
        opacity: 0.58;
    }

    .subpage-hero .hero-title {
        max-width: 10ch;
        font-size: clamp(2.9rem, 13vw, 4.35rem);
    }

    .subpage-hero .hero-subtitle {
        font-size: 0.98rem;
        line-height: 1.7;
    }
}
