/* Full-width editorial growth feature on the homepage. */
.wp-block-group.bb-growth {
    position: relative;
    width: auto;
    max-width: none;
    min-height: clamp(640px, 52vw, 880px);
    margin-inline: calc(-1 * var(--bb-page-gutter));
    overflow: hidden;
    isolation: isolate;
    background: var(--wp--preset--color--ink);
    color: var(--wp--preset--color--white);
}

.bb-growth::before,
.bb-growth::after {
    content: "";
    position: absolute;
    inset: 0;
}

.bb-growth::before {
    z-index: -2;
    background: url("../images/home-growth-studio.png") center center / cover no-repeat;
    transform: scale(1.035);
    transition: transform 1.4s cubic-bezier(.2,.75,.2,1);
}

.bb-growth::after {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(10,10,10,.68) 0%, rgba(10,10,10,.20) 48%, rgba(10,10,10,.50) 100%),
        linear-gradient(180deg, rgba(10,10,10,.30) 0%, transparent 55%, rgba(10,10,10,.28) 100%);
}

.wp-block-group.bb-growth__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-content: start;
    gap: var(--wp--preset--spacing--32);
    min-height: inherit;
    box-sizing: border-box;
    width: calc(100% - var(--bb-page-gutter) - var(--bb-page-gutter));
    max-width: var(--bb-container-max);
    margin-inline: auto;
    padding: var(--wp--preset--spacing--96) 0;
}

.bb-growth__column {
    max-width: 560px;
}

.bb-growth__column--right {
    justify-self: start;
    margin-block-start: 0 !important;
    padding-block-start: var(--wp--preset--spacing--48);
}

.bb-growth__eyebrow {
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--12);
    margin: 0 0 var(--wp--preset--spacing--24);
    color: var(--wp--preset--color--white);
    font-weight: 600;
}

.bb-growth__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--wp--preset--color--accent);
}

.bb-growth__title {
    max-width: 14ch;
    margin: 0;
    color: var(--wp--preset--color--white);
}

.bb-growth__statement {
    max-width: none;
    margin: 0;
    color: var(--wp--preset--color--white);
    font-family: var(--wp--preset--font-family--switzer);
    font-size: 1rem;
    font-style: normal;
    line-height: 1.5;
}

.bb-growth__cta {
    margin-block-start: var(--wp--preset--spacing--40);
}
.bb-growth .bb-growth__cta .wp-block-button__link { background: var(--wp--preset--color--accent); color: var(--wp--preset--color--ink); }
.bb-growth .bb-growth__cta .wp-block-button__link:hover { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }

.bb-growth:not(.is-visible) .bb-growth__column {
    opacity: 0;
    transform: translateY(28px);
}

.bb-growth.is-visible::before { transform: scale(1); }
.bb-growth.is-visible .bb-growth__column {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .8s ease, transform .8s cubic-bezier(.2,.75,.2,1);
}
.bb-growth.is-visible .bb-growth__column--right { transition-delay: .12s; }

/* The Site Editor does not run the frontend observer that adds `.is-visible`.
   Keep all Our Work content visible and editable on the backend canvas. */
.editor-styles-wrapper .bb-growth:not(.is-visible) .bb-growth__column {
    opacity: 1;
    transform: none;
}

@media (max-width: 900px) {
    .wp-block-group.bb-growth { min-height: 720px; }
    .bb-growth::before { background-position: 58% center; }
}

@media (max-width: 600px) {
    .wp-block-group.bb-growth { min-height: 680px; }
    .wp-block-group.bb-growth__inner {
        grid-template-columns: 1fr;
        align-content: space-between;
        gap: var(--wp--preset--spacing--48);
        padding-block: var(--wp--preset--spacing--64);
    }
    .bb-growth__column--right {
        justify-self: start;
        padding-block-start: 0;
    }
    .bb-growth__statement { max-width: 40ch; }
    .bb-growth::before { background-position: 57% center; }
    .bb-growth::after {
        background: linear-gradient(180deg, rgba(10,10,10,.66) 0%, rgba(10,10,10,.16) 48%, rgba(10,10,10,.74) 100%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-growth::before,
    .bb-growth__column { transition: none !important; }
    .bb-growth:not(.is-visible) .bb-growth__column { opacity: 1; transform: none; }
}
