/* Original v1 hero and FAQ. The head bootstrap prepares the first logo frame;
   without JavaScript the completed logo remains visible. */
.bb-home {
    /* Offscreen section reveals must not expand the mobile viewport. */
    overflow-x: clip;
}

.bb-home .bb-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    isolation: isolate;
    background: #000;
    animation: none;
}

.bb-home .bb-hero::before,
.bb-home .bb-hero::after {
    content: "";
    position: absolute;
    pointer-events: none;
}

.bb-home .bb-hero::before {
    inset: 0;
    background: radial-gradient(ellipse at 76% 48%, rgba(0, 255, 68, 0.045), transparent 42%);
    z-index: 0;
}

.bb-home .bb-hero::after {
    inset: auto 0 -1px;
    height: 20%;
    background: linear-gradient(180deg, transparent, #030303);
    z-index: 1;
}

.bb-home .bb-hero > .bb-shell {
    width: min(1500px, calc(100% - 3rem));
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
}

.bb-home .bb-hero-layout {
    width: 100%;
    grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
    align-items: center;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.bb-home .bb-hero-copy {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    max-width: 680px;
    gap: 1.45rem;
    padding: clamp(6rem, 8vw, 8rem) 0 4rem;
    z-index: 2;
}

.bb-home .bb-hero :where(h1, p, a, span) {
    animation: none;
}

.bb-home .bb-hero-title {
    max-width: 100%;
    color: #fff;
    font-size: clamp(4.1rem, 6.5vw, 7.25rem);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.bb-home .bb-hero-title span {
    display: block;
    font: inherit;
    letter-spacing: inherit;
}

.bb-home .bb-hero-green {
    color: #00ff44;
}

.bb-home .bb-hero-lead {
    max-width: 43ch;
    color: #b5bbb7;
    font-size: clamp(1.05rem, 1.28vw, 1.28rem);
    line-height: 1.7;
}

.bb-home .bb-hero .bb-actions {
    width: 100%;
    gap: 0.85rem;
    margin: 0.35rem 0 0;
}

.bb-home .bb-hero .bb-button {
    min-width: 205px;
    min-height: 58px;
    padding: 1rem 1.35rem;
    font-size: 1rem;
    font-weight: 800;
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.bb-home .bb-hero .bb-cta-link {
    font-weight: 700;
    transition: border-color 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.bb-home .bb-hero .bb-cta-link::after {
    content: none;
    animation: none;
}

.bb-home .bb-hero .bb-button-secondary {
    background: #080b09;
    border-color: rgba(255, 255, 255, 0.26);
    box-shadow: none;
}

.bb-home .bb-hero .bb-button-secondary:hover {
    background: #111a14;
    border-color: rgba(0, 255, 68, 0.65);
    box-shadow: none;
}

.bb-home .bb-hero .bb-button:not(.bb-cta-link)::before,
.bb-home .bb-hero .bb-button:not(.bb-cta-link)::after {
    content: none;
}

.bb-home .bb-hero .bb-button:not(.bb-cta-link):focus-visible,
.bb-home .bb-faq-question:focus-visible {
    outline: 2px solid #b8ffca;
    outline-offset: 5px;
}

.bb-home .bb-hero-visual {
    position: relative;
    min-width: 0;
    min-height: clamp(460px, 43vw, 650px);
    z-index: 1;
}

.bb-home .bb-logo-build {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
    place-items: center;
    isolation: isolate;
    pointer-events: none;
}

.bb-home .bb-logo-build-final {
    display: block;
    width: min(100%, 36rem);
    height: auto;
    overflow: visible;
}

/* Match the reference layout on wide screens without scaling the artwork,
   typography or buttons. Header spacing is owned by header.php. */
@media (min-width: 1280px) {
    .bb-home .bb-hero > .bb-shell {
        width: min(1500px, calc(100% - 10rem));
        padding-top: clamp(0rem, calc(100svh - 40rem), 8.5rem);
    }

    .bb-home .bb-hero-layout {
        gap: 7.5rem;
    }

    .bb-home .bb-logo-build {
        right: -4.5rem;
        justify-items: end;
    }

    .bb-home .bb-hero .bb-actions {
        margin-top: 0.65rem;
    }
}

.bb-logo-base {
    opacity: 0.96;
}

.bb-logo-reveal {
    opacity: 0;
}

.bb-logo-trace {
    opacity: 0;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    stroke-linecap: butt;
}

.bb-logo-build.is-animating .bb-logo-base {
    animation: bb-logo-fill 1500ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.bb-logo-build.is-animating .bb-logo-reveal {
    animation: bb-logo-reveal 1500ms linear both;
}

.bb-logo-build.is-animating .bb-logo-trace {
    animation: bb-logo-trace 850ms cubic-bezier(0.4, 0, 0.2, 1) 150ms both;
}

.bb-logo-build.is-animating .bb-logo-trace--1,
.bb-logo-build.is-animating .bb-logo-trace--3 {
    animation-delay: 250ms;
}

.bb-logo-build.is-animating .bb-logo-center {
    animation: bb-logo-center 400ms ease 500ms both;
}

@keyframes bb-logo-trace {
    0% { stroke-dashoffset: 1; opacity: 0; }
    1% { opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes bb-logo-fill {
    0%, 48% { opacity: 0.12; }
    84%, 100% { opacity: 0.96; }
}

@keyframes bb-logo-reveal {
    0%, 8% { opacity: 0; }
    18%, 70% { opacity: 0.96; }
    100% { opacity: 0; }
}

@keyframes bb-logo-center {
    from { opacity: 0; }
    to { opacity: 1; }
}

.bb-home .bb-faq-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(100%, 900px);
    gap: 0;
    margin: 2.5rem auto 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.bb-home .bb-faq-item {
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
    transition: background-color 160ms ease;
}

.bb-home .bb-faq-item[open] {
    background: rgba(255, 255, 255, 0.025);
}

.bb-home .bb-faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 1.5rem;
    padding: 1.35rem 1.25rem;
    color: #f3f5f3;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    font-weight: 700;
    line-height: 1.45;
    cursor: pointer;
    list-style: none;
    transition: color 160ms ease;
    -webkit-tap-highlight-color: transparent;
}

.bb-home .bb-faq-question::-webkit-details-marker {
    display: none;
}

.bb-home .bb-faq-question::marker {
    content: "";
}

.bb-home .bb-faq-question:hover,
.bb-home .bb-faq-item[open] .bb-faq-question {
    color: #00ff44;
}

.bb-home .bb-faq-question:focus-visible {
    outline-offset: -5px;
    border-radius: 8px;
}

.bb-faq-icon {
    position: relative;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    color: #00ff44;
}

.bb-faq-icon::before,
.bb-faq-icon::after {
    content: "";
    position: absolute;
    top: 9px;
    left: 2px;
    width: 16px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.bb-faq-icon::after {
    transform: rotate(90deg);
    transition: transform 220ms ease, opacity 220ms ease;
}

.bb-faq-item[open] .bb-faq-icon::after {
    transform: rotate(0);
    opacity: 0;
}

.bb-home .bb-faq-content {
    padding: 0 4rem 1.5rem 1.25rem;
}

.bb-home .bb-faq-answer {
    max-width: 70ch;
    color: #afb7b1;
    font-size: 1rem;
    line-height: 1.75;
    animation: none;
}

@media (max-width: 1023px) {
    .bb-home .bb-hero,
    .bb-home .bb-hero > .bb-shell {
        min-height: auto;
    }

    .bb-home .bb-hero > .bb-shell {
        width: min(760px, calc(100% - 3rem));
    }

    .bb-home .bb-hero-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .bb-home .bb-hero-copy {
        padding: 7rem 0 1rem;
    }

    .bb-home .bb-hero-title {
        font-size: clamp(3.2rem, 8.5vw, 5.4rem);
    }

    .bb-home .bb-hero-visual {
        min-height: 340px;
    }

    .bb-home .bb-logo-build-final {
        width: min(100%, 30rem);
    }
}

@media (max-width: 767px) {
    .bb-home .bb-hero > .bb-shell {
        width: calc(100% - 2.5rem);
    }

    .bb-home .bb-hero-copy {
        max-width: 100%;
        gap: 1.1rem;
        padding: 2.25rem 0 0;
    }

    .bb-home .bb-hero-title {
        font-size: clamp(2.65rem, 12.8vw, 4.45rem);
        line-height: 1.05;
        letter-spacing: -0.035em;
    }

    .bb-home .bb-hero-lead {
        font-size: 1rem;
        line-height: 1.65;
    }

    .bb-home .bb-hero .bb-actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0.7rem;
    }

    .bb-home .bb-hero .bb-button {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        padding: 0.85rem 1rem;
        font-size: 0.95rem;
    }

    .bb-home .bb-hero-visual {
        min-height: clamp(220px, 60vw, 260px);
        margin: 0.5rem 0 1rem;
    }

    .bb-home .bb-logo-build-final {
        width: min(100%, 21rem);
    }

    .bb-logo-build.is-animating .bb-logo-build-final {
        animation: bb-logo-mobile 650ms ease-out both;
    }

    .bb-logo-build.is-animating :is(.bb-logo-base, .bb-logo-reveal, .bb-logo-trace, .bb-logo-center) {
        animation: none;
    }

    .bb-logo-build.is-animating .bb-logo-base {
        opacity: 0.96;
    }

    .bb-logo-build.is-animating .bb-logo-reveal {
        opacity: 0;
    }

    .bb-home .bb-faq-list {
        margin-top: 1.75rem;
    }

    .bb-home .bb-faq-question {
        min-height: 72px;
        gap: 1rem;
        padding: 1.15rem 0.75rem;
    }

    .bb-home .bb-faq-content {
        padding: 0 0.75rem 1.25rem;
    }
}

@keyframes bb-logo-mobile {
    from { opacity: 0.35; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .bb-home .bb-logo-build.is-animating *,
    .bb-home .bb-logo-build.is-animating .bb-logo-build-final {
        animation: none !important;
    }

    .bb-home .bb-logo-build .bb-logo-base {
        opacity: 0.96;
    }

    .bb-home .bb-logo-build .bb-logo-reveal {
        opacity: 0;
    }

    .bb-home .bb-hero .bb-button,
    .bb-home .bb-faq-item,
    .bb-home .bb-faq-question,
    .bb-home .bb-faq-icon::after {
        transition: none;
    }
}
