.mh-about-hero {
    --mh-about-accent: #04c9f5;
    --mh-about-text: #f2f3fb;
    --mh-about-muted: #b8bbd3;
    --mh-about-deep: #0b0b15;
    --mh-about-band: #10101f;
    --mh-about-border: rgba(154, 162, 206, 0.18);
    --mh-about-overlay: .82;
    --mh-about-min-height: 675px;
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    width: 100% !important;
    max-width: none !important;
    min-height: var(--mh-about-min-height);
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: hidden;
    background: var(--mh-about-deep);
    color: var(--mh-about-text);
    font-family: inherit;
    box-sizing: border-box;
}

/*
 * IMPORTANT: Match the working homepage hero architecture.
 * The About Hero is an actual Gutenberg full-width block instead of using a
 * 100vw breakout calculation. This prevents the one-sided/clipped layout seen
 * when the parent page container is narrower than the browser viewport.
 */
.mh-about-hero.alignfull,
.wp-block-minihobby-about-hero.mh-about-hero.alignfull {
    width: 100% !important;
    max-width: none !important;
    margin-inline: 0 !important;
}

/*
 * MiniHobby full-width page compatibility.
 * If the theme still gives the article/entry-content a content max-width,
 * remove that constraint only on a page that actually contains this hero.
 * Normal non-full-width blocks placed later on the page can still use the
 * theme's own child width rules.
 */
body.mh-about-hero-page .site-main,
body.mh-about-hero-page .site-main > article,
body.mh-about-hero-page .site-main > article > .entry-content,
body.mh-about-hero-page .site-main .entry-content,
body.mh-about-hero-page article.page,
body.mh-about-hero-page article.type-page {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow: visible !important;
}

body.mh-about-hero-page .site-main .entry-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.mh-about-hero-page .site-main .entry-content > .mh-about-hero.alignfull,
body.mh-about-hero-page .entry-content > .wp-block-minihobby-about-hero.alignfull {
    width: 100% !important;
    max-width: none !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.mh-about-hero__media,
.mh-about-hero__shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.mh-about-hero__media {
    z-index: -3;
    background-image: var(--mh-about-background, none);
    background-size: cover;
    background-position: center;
    transform: scale(1.02);
}

.mh-about-hero[data-has-background="false"] .mh-about-hero__media {
    background-image:
        radial-gradient(circle at 50% 26%, rgba(8, 200, 245, .10), transparent 28%),
        linear-gradient(115deg, #0b0b15 0%, #11111d 55%, #080912 100%);
}

.mh-about-hero__shade {
    z-index: -2;
    background:
        linear-gradient(180deg, rgba(7, 7, 14, calc(var(--mh-about-overlay) * .90)) 0%, rgba(7, 7, 14, var(--mh-about-overlay)) 58%, rgba(7, 7, 14, .97) 100%),
        radial-gradient(circle at center 42%, rgba(0, 0, 0, .08), rgba(0, 0, 0, .34) 70%);
}

.mh-about-hero__inner {
    position: relative;
    z-index: 1;
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    flex: 1 1 auto;
    display: grid;
    place-items: center;
    padding: 76px 0 62px;
}

.mh-about-hero__content {
    width: min(760px, 100%);
    margin: 0 auto;
    text-align: center;
}

.mh-about-hero__eyebrow {
    margin-bottom: 26px;
    color: var(--mh-about-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .28em;
    line-height: 1.35;
    text-transform: uppercase;
}

.mh-about-hero__title,
.mh-about-hero__subtitle {
    margin: 0;
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.08;
}

.mh-about-hero__title {
    color: var(--mh-about-text);
    font-size: clamp(42px, 5.4vw, 72px);
}

.mh-about-hero__subtitle {
    margin-top: 16px;
    color: var(--mh-about-accent);
    font-size: clamp(42px, 5.2vw, 70px);
}

.mh-about-hero__description {
    width: min(700px, 100%);
    margin: 30px auto 0;
    color: var(--mh-about-muted);
    font-size: clamp(16px, 1.55vw, 20px);
    line-height: 1.75;
}

.mh-about-hero__description p {
    margin: 0;
}

.mh-about-hero__stats-wrap {
    position: relative;
    z-index: 2;
    width: 100%;
    flex: 0 0 auto;
    border-top: 1px solid var(--mh-about-border);
    background: rgba(15, 15, 29, .94);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.mh-about-hero__stats {
    width: min(980px, calc(100% - 48px));
    min-height: 140px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    align-items: center;
    gap: 18px 28px;
    padding: 26px 0;
}

.mh-about-hero__stat {
    text-align: center;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .55s ease var(--mh-stat-delay, 0ms), transform .55s cubic-bezier(.2,.75,.25,1) var(--mh-stat-delay, 0ms);
}

.mh-about-hero__stat.is-visible,
.mh-about-hero[data-animate="false"] .mh-about-hero__stat {
    opacity: 1;
    transform: translateY(0);
}

.mh-about-hero__value {
    color: var(--mh-about-accent);
    font-size: clamp(30px, 3vw, 42px);
    font-variant-numeric: tabular-nums;
    font-weight: 400;
    letter-spacing: -.025em;
    line-height: 1.05;
}

.mh-about-hero__stat-label {
    margin-top: 8px;
    color: #797db8;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

@media (max-width: 782px) {
    .mh-about-hero {
        min-height: 600px;
    }

    .mh-about-hero__inner {
        width: min(100% - 32px, 760px);
        padding: 64px 0 52px;
    }

    .mh-about-hero__eyebrow {
        margin-bottom: 20px;
    }

    .mh-about-hero__description {
        margin-top: 24px;
        line-height: 1.65;
    }

    .mh-about-hero__stats {
        width: min(100% - 32px, 720px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-height: 0;
        gap: 26px 18px;
        padding: 30px 0;
    }
}

@media (max-width: 480px) {
    .mh-about-hero__title,
    .mh-about-hero__subtitle {
        font-size: clamp(35px, 11vw, 48px);
    }

    .mh-about-hero__stats {
        grid-template-columns: 1fr 1fr;
    }

    .mh-about-hero__value {
        font-size: 31px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .mh-about-hero__stat {
        opacity: 1;
        transform: none;
        transition: none;
    }
}
