/* ==========================================================================
   BriskBrain — Redesigned page sections (home, about)
   Loaded by the redesigned pages only. Sections are scoped to .bb-home;
   tokens and the shared header/footer live in site.css.
   ========================================================================== */

html.bb-page body {
    font-family: var(--bb-font);
    background: var(--bb-cream);
    color: var(--bb-text);
}

/* --------------------------------------------------------------------------
   Base
   -------------------------------------------------------------------------- */
.bb-svg-defs {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.bb-home {
    overflow-x: clip;
    font-family: var(--bb-font);
    color: var(--bb-text);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.bb-home h1,
.bb-home h2,
.bb-home h3,
.bb-home p {
    font-family: var(--bb-font);
}

.bb-home h1,
.bb-home h2,
.bb-home h3 {
    color: var(--bb-ink);
    letter-spacing: -0.025em;
}

.bb-home h2 {
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.12;
    font-weight: 800;
}

.bb-home p {
    color: var(--bb-text);
}

.bb-home ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bb-home figure {
    margin: 0;
}

.bb-home img {
    max-width: 100%;
    height: auto;
}

.bb-home a:focus-visible,
.bb-home button:focus-visible {
    outline: 3px solid rgba(184, 84, 0, 0.45);
    outline-offset: 3px;
}

.bb-section {
    position: relative;
    padding: 110px 0;
}

.bb-grad-text {
    background: var(--bb-grad);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
    animation: bbGradShift 8s ease-in-out infinite alternate;
}

.bb-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 12.5px !important;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bb-accent-hover) !important;
}

.bb-eyebrow::before {
    content: "";
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--bb-grad);
}

.bb-eyebrow--light {
    color: #ffc266 !important;
}

/* Section headings */
.bb-head {
    margin-bottom: 56px;
}

.bb-head--center {
    text-align: center;
}

.bb-head--center .bb-eyebrow {
    justify-content: center;
}

.bb-head--split {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.bb-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 15px;
    color: var(--bb-accent-strong) !important;
}

.bb-link i {
    transition: transform 0.35s var(--bb-ease);
}

.bb-link:hover i {
    transform: translateX(5px);
}

/* Buttons */
.bb-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 54px;
    padding: 0 28px;
    border-radius: 999px;
    font-family: var(--bb-font);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.005em;
    white-space: nowrap;
    isolation: isolate;
    overflow: hidden;
    transition: transform 0.35s var(--bb-ease), box-shadow 0.35s var(--bb-ease), color 0.25s, background-color 0.25s, border-color 0.25s !important;
}

.bb-btn i {
    font-size: 16px;
    transition: transform 0.35s var(--bb-ease);
}

.bb-btn:hover i {
    transform: translateX(4px);
}

.bb-btn:hover {
    transform: translateY(-2px);
}

.bb-btn--primary {
    color: #fff !important;
    background: var(--bb-grad);
    background-size: 160% 100%;
    background-position: 0 0;
    box-shadow: 0 14px 30px -12px rgba(184, 84, 0, 0.65);
}

.bb-btn--primary:hover {
    background-position: 100% 0;
    box-shadow: 0 20px 38px -12px rgba(246, 135, 18, 0.6);
}

.bb-btn--ghost {
    color: var(--bb-ink) !important;
    background: rgba(255, 255, 255, 0.7);
    border: 1.5px solid rgba(184, 84, 0, 0.35);
}

.bb-btn--ghost:hover {
    border-color: var(--bb-accent-strong);
    background: #fff;
    box-shadow: var(--bb-shadow-md);
}

.bb-btn--light {
    color: var(--bb-ink) !important;
    background: #fff;
    box-shadow: 0 16px 30px -14px rgba(22, 23, 47, 0.5);
}

.bb-btn--outline-light {
    color: #fff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.bb-btn--outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: #fff;
}

/* --------------------------------------------------------------------------
   Scroll reveal (only when JS is available)
   -------------------------------------------------------------------------- */
.bb-js [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 36px, 0);
    transition: opacity 0.9s var(--bb-ease), transform 0.9s var(--bb-ease);
    transition-delay: calc(var(--i, 0) * 90ms);
}

.bb-js [data-reveal="left"] {
    transform: translate3d(-40px, 0, 0);
}

.bb-js [data-reveal="right"] {
    transform: translate3d(40px, 0, 0);
}

.bb-js [data-reveal].is-in {
    opacity: 1;
    transform: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.bb-hero {
    position: relative;
    padding: 76px 0 110px;
    background: var(--bb-cream);
    overflow: hidden;
}

.bb-hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.bb-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.55;
}

.bb-blob--a {
    width: 520px;
    height: 520px;
    top: -160px;
    right: -60px;
    background: radial-gradient(circle, rgba(224, 120, 0, 0.55), transparent 65%);
    animation: bbDrift 18s ease-in-out infinite alternate;
}

.bb-blob--b {
    width: 420px;
    height: 420px;
    bottom: -180px;
    right: 30%;
    background: radial-gradient(circle, rgba(246, 135, 18, 0.45), transparent 65%);
    animation: bbDrift 22s ease-in-out infinite alternate-reverse;
}

.bb-blob--c {
    width: 360px;
    height: 360px;
    top: 10%;
    left: -160px;
    background: radial-gradient(circle, rgba(246, 135, 18, 0.3), transparent 65%);
    animation: bbDrift 20s ease-in-out infinite alternate;
}

.bb-hero__grid {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(22, 23, 47, 0.11) 1px, transparent 1px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 60% 70% at 72% 45%, #000 10%, transparent 70%);
}

.bb-hero__inner {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
    align-items: center;
    gap: 56px;
}

.bb-hero .bb-eyebrow {
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow-sm);
    color: var(--bb-ink) !important;
    letter-spacing: 0.12em;
    font-size: 11.5px !important;
    flex-wrap: wrap;
    margin-bottom: 26px;
}

.bb-hero .bb-eyebrow::before {
    display: none;
}

.bb-hero .bb-eyebrow i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--bb-grad);
}

.bb-hero__title {
    margin: 0 0 24px !important;
    font-size: clamp(40px, 5.2vw, 70px) !important;
    font-weight: 800 !important;
    line-height: 1.04 !important;
    letter-spacing: -0.04em !important;
}

.bb-hero__title .bb-grad-text {
    display: inline;
    padding-bottom: 0.06em;
}

.bb-hero__lead {
    max-width: 520px;
    margin: 0 0 36px !important;
    font-size: 17.5px;
    line-height: 1.75;
}

.bb-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 42px;
}

.bb-hero__proof {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bb-avatars {
    display: flex;
}

.bb-avatars img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--bb-cream);
    box-shadow: 0 4px 10px rgba(22, 23, 47, 0.12);
}

.bb-avatars img + img {
    margin-left: -12px;
}

.bb-hero__proof p {
    display: flex;
    flex-direction: column;
    margin: 0;
    line-height: 1.35;
    font-size: 13.5px;
}

.bb-hero__proof strong {
    color: var(--bb-ink);
    font-size: 15px;
    font-weight: 700;
}

/* Hero intro choreography */
.bb-js .bb-hero__item {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
}

.bb-js .bb-hero.is-ready .bb-hero__item,
.bb-js .bb-pagehero.is-ready .bb-hero__item {
    opacity: 1;
    transform: none;
    transition: opacity 1s var(--bb-ease), transform 1s var(--bb-ease);
    transition-delay: calc(var(--d, 0) * 110ms);
}

/* Hero visual */
.bb-hero__visual {
    position: relative;
}

.bb-hero__parallax {
    position: relative;
    width: 100%;
    max-width: 580px;
    margin-left: auto;
    padding: 34px 30px;
    transform: translate3d(var(--px, 0), var(--py, 0), 0);
    transition: transform 0.6s var(--bb-ease);
}

.bb-orb {
    position: absolute;
    width: 62%;
    aspect-ratio: 1;
    top: -2%;
    right: -4%;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.85), transparent 28%),
        conic-gradient(from 210deg, var(--bb-accent-strong), var(--bb-accent-hover), var(--bb-accent), var(--bb-accent), #ffc36b, var(--bb-accent-strong));
    filter: saturate(1.1);
    opacity: 0.9;
    box-shadow: 0 40px 90px -20px rgba(224, 120, 0, 0.55);
    animation: bbSpin 26s linear infinite, bbFloat 9s ease-in-out infinite;
}

.bb-orb::after {
    content: "";
    position: absolute;
    inset: -18%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(246, 135, 18, 0.35), transparent 62%);
    filter: blur(30px);
    z-index: -1;
}

.bb-orbit {
    position: absolute;
    width: 110%;
    height: 56%;
    left: -5%;
    top: 22%;
    border: 1.5px dashed rgba(184, 84, 0, 0.25);
    border-radius: 50%;
    transform: rotate(-14deg);
}

.bb-orbit i {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bb-accent);
    box-shadow: 0 0 0 6px rgba(246, 135, 18, 0.18);
    offset-path: ellipse(50% 50% at 50% 50%);
}

.bb-stage {
    position: relative;
    z-index: 2;
    border-radius: var(--bb-radius-lg);
    background: rgba(255, 255, 255, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(1.2);
    backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--bb-shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.9);
    overflow: hidden;
}

.bb-stage__bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--bb-line);
}

.bb-stage__bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ff6b6b;
}

.bb-stage__bar span:nth-child(2) {
    background: #ffc145;
}

.bb-stage__bar span:nth-child(3) {
    background: #38d39f;
}

.bb-stage__bar em {
    margin-left: 12px;
    padding: 3px 14px;
    border-radius: 999px;
    background: rgba(22, 23, 47, 0.05);
    font-style: normal;
    font-size: 11.5px;
    color: var(--bb-muted);
    letter-spacing: 0.02em;
}

.bb-stage__slides {
    position: relative;
    aspect-ratio: 16 / 12;
}

.bb-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 26px 28px;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.94) translate3d(0, 14px, 0);
    transition: opacity 0.9s var(--bb-ease), transform 1.1s var(--bb-ease), visibility 0s linear 0.9s;
}

.bb-slide.is-active {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
}

.bb-slide img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
}

.bb-slide--stack {
    flex-direction: column;
    gap: 6px;
}

.bb-slide--stack img {
    max-width: 92%;
    max-height: 30%;
    transform: translate3d(40px, 0, 0);
    opacity: 0;
    transition: transform 0.9s var(--bb-ease), opacity 0.9s var(--bb-ease);
}

.bb-slide--stack img:nth-child(2) {
    max-width: 66%;
    transition-delay: 0.12s;
}

.bb-slide--stack img:nth-child(3) {
    transition-delay: 0.24s;
}

.bb-slide--stack.is-active img {
    transform: none;
    opacity: 1;
}

.bb-stage__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 22px 20px;
    border-top: 1px solid var(--bb-line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.9));
}

.bb-stage__caption {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.3;
}

.bb-stage__caption span {
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bb-accent-hover);
}

.bb-stage__caption strong {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--bb-ink);
}

.bb-stage__caption.is-swapping span,
.bb-stage__caption.is-swapping strong {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
}

.bb-stage__caption span,
.bb-stage__caption strong {
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.bb-stage__pager {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.bb-stage__pager button {
    position: relative;
    width: 30px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.bb-stage__pager button::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    border-radius: 4px;
    background: rgba(22, 23, 47, 0.12);
}

.bb-stage__pager button span {
    position: absolute;
    left: 0;
    top: 50%;
    height: 4px;
    margin-top: -2px;
    width: 0;
    border-radius: 4px;
    background: var(--bb-grad);
}

.bb-stage__pager button.is-active {
    width: 46px;
}

.bb-stage__pager button.is-active span {
    animation: bbProgress 5.5s linear forwards;
}

.bb-stage:hover .bb-stage__pager button.is-active span,
.bb-stage.is-paused .bb-stage__pager button.is-active span {
    animation-play-state: paused;
}

.bb-stage__pager button {
    transition: width 0.4s var(--bb-ease);
}

/* Floating chips */
.bb-chip {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px 9px 9px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--bb-shadow-md);
    font-size: 13px;
    font-weight: 700;
    color: var(--bb-ink);
    white-space: nowrap;
    animation: bbFloat 6s ease-in-out infinite;
}

.bb-chip i {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 16px;
    color: #fff;
    background: var(--bb-grad);
}

.bb-chip--1 {
    top: 6px;
    left: -8px;
}

.bb-chip--2 {
    top: 34%;
    right: -14px;
    animation-delay: -2s;
}

.bb-chip--2 i {
    background: linear-gradient(135deg, var(--bb-accent), var(--bb-accent));
}

.bb-chip--3 {
    bottom: 30%;
    left: -18px;
    animation-delay: -4s;
}

.bb-chip--3 i {
    background: var(--bb-grad-navy);
}

/* --------------------------------------------------------------------------
/* --------------------------------------------------------------------------
   Page hero (inner pages)
   -------------------------------------------------------------------------- */
.bb-pagehero {
    position: relative;
    padding: 84px 0 130px;
    background: var(--bb-cream);
    overflow: hidden;
    text-align: center;
}

.bb-pagehero .bb-blob--a {
    right: -120px;
}

.bb-pagehero .bb-hero__grid {
    -webkit-mask-image: radial-gradient(ellipse 55% 75% at 50% 40%, #000 10%, transparent 70%);
    mask-image: radial-gradient(ellipse 55% 75% at 50% 40%, #000 10%, transparent 70%);
}

.bb-pagehero__inner {
    position: relative;
    max-width: 820px;
}

.bb-crumbs {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 8px 18px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow-sm);
    font-size: 13.5px;
    font-weight: 600;
    color: var(--bb-muted);
}

.bb-crumbs a {
    color: var(--bb-accent-strong) !important;
}

.bb-crumbs i {
    font-size: 11px;
}

.bb-crumbs span {
    color: var(--bb-ink);
}

.bb-pagehero__title {
    margin: 0 0 18px !important;
    font-size: clamp(38px, 5vw, 64px) !important;
    font-weight: 800 !important;
    line-height: 1.06 !important;
    letter-spacing: -0.04em !important;
}

.bb-pagehero__lead {
    max-width: 600px;
    margin: 0 auto !important;
    font-size: 17.5px;
    line-height: 1.75;
}


.bb-pagehero__ring {
    position: absolute;
    border-radius: 50%;
    border: 1.5px dashed rgba(184, 84, 0, 0.18);
    animation: bbSpin 60s linear infinite;
}

.bb-pagehero__ring--l {
    width: 420px;
    height: 420px;
    left: -180px;
    bottom: -120px;
}

.bb-pagehero__ring--r {
    width: 300px;
    height: 300px;
    right: -60px;
    top: -90px;
    border-color: rgba(246, 135, 18, 0.2);
    animation-direction: reverse;
}

.bb-pagehero__deco {
    position: absolute;
    inset: 0;
    margin: 0 auto;
    pointer-events: none;
}

.bb-pagehero__chip--1 { top: 22%; left: 0; }
.bb-pagehero__chip--2 { top: 18%; right: 0; }
.bb-pagehero__chip--3 { bottom: 26%; left: 4%; top: auto; }
.bb-pagehero__chip--4 { bottom: 30%; right: 3%; animation-delay: -3s; }

.bb-pagehero__chip--4 i {
    background: var(--bb-grad-navy);
}

.bb-pagehero__actions {
    justify-content: center;
    margin-top: 34px;
}

.bb-pagehero__stats {
    display: inline-flex;
    margin-top: 40px !important;
    padding: 6px !important;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow-sm);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.bb-pagehero__stats li {
    display: flex;
    flex-direction: column;
    padding: 12px 28px;
    line-height: 1.3;
}

.bb-pagehero__stats li + li {
    border-left: 1px solid var(--bb-line);
}

.bb-pagehero__stats strong {
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: var(--bb-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bb-pagehero__stats span {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--bb-muted);
}

/* Skills: copy beside a staggered row of rings */
.bb-skillsplit {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: center;
}

.bb-skillsplit__copy h2 {
    margin-bottom: 18px !important;
}

.bb-skillsplit__copy p:not(.bb-eyebrow) {
    margin: 0 0 22px;
    font-size: 16px;
}

.bb-checks li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 7px 0;
    font-weight: 600;
    color: var(--bb-ink);
}

.bb-checks i {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--bb-grad);
    color: #fff;
    font-size: 14px;
}

.bb-expertise__grid.bb-expertise__grid--3 {
    position: relative;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    padding: 30px 0 70px;
}

.bb-expertise__grid--3::before {
    content: "";
    position: absolute;
    inset: 0 8%;
    border-radius: 40px;
    background: var(--bb-grad);
    opacity: 0.12;
    transform: rotate(-4deg);
    z-index: 0;
}

.bb-expertise__grid--3::after {
    content: "";
    position: absolute;
    width: 140px;
    height: 140px;
    right: -10px;
    bottom: 0;
    background-image: radial-gradient(rgba(184, 84, 0, 0.35) 1.5px, transparent 1.5px);
    background-size: 14px 14px;
    z-index: 0;
}

.bb-expertise__grid--3 .bb-skill {
    position: relative;
    z-index: 1;
    background: #fff;
    box-shadow: var(--bb-shadow-md);
}

.bb-expertise__grid--3 .bb-skill:nth-child(2) {
    margin-top: 48px;
}

/* --------------------------------------------------------------------------
   Service detail pages (services, *-development)
   -------------------------------------------------------------------------- */
.bb-detail__block + .bb-detail__block {
    margin-top: 96px;
}

/* Heading beside paragraphs */
.bb-prose {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
    align-items: start;
}

.bb-prose__head {
    position: sticky;
    top: 120px;
}

.bb-prose__head h2 {
    margin: 0 !important;
}

.bb-prose__head::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    margin-top: 26px;
    border-radius: 4px;
    background: var(--bb-grad);
}

.bb-prose__body {
    position: relative;
    padding-left: 32px;
    border-left: 1px solid var(--bb-line);
}

.bb-prose__body p {
    margin: 0 0 18px !important;
    font-size: 16.5px;
    line-height: 1.85;
}

.bb-prose__body p:last-child {
    margin-bottom: 0 !important;
}

.bb-prose__body p:first-child {
    font-size: 18px;
    color: var(--bb-ink);
}

.bb-prose__body b,
.bb-prose__body strong {
    color: var(--bb-ink);
}

.bb-prose__body a {
    color: var(--bb-accent-strong) !important;
    font-weight: 600;
}

/* Checklist tiles */
.bb-checkgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.bb-checkgrid--long {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bb-checkgrid li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow-sm);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.55;
    color: var(--bb-ink);
}

.bb-checkgrid--long li {
    padding: 22px 24px;
    font-weight: 500;
    color: var(--bb-text);
}

.bb-checkgrid li {
    transition: opacity 0.9s var(--bb-ease), transform 0.4s var(--bb-ease), box-shadow 0.4s var(--bb-ease), border-color 0.4s;
}

.bb-checkgrid li:hover,
.bb-js .bb-checkgrid li.is-settled:hover {
    transform: translateY(-4px);
    border-color: rgba(184, 84, 0, 0.3);
    box-shadow: var(--bb-shadow-md);
}

.bb-checkgrid i {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--bb-grad);
    color: #fff;
    font-size: 15px;
    box-shadow: 0 8px 18px -8px rgba(246, 135, 18, 0.7);
}

.bb-checkgrid b {
    color: var(--bb-ink);
}

/* Feature cards */
.bb-services__grid.bb-featgrid--4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.bb-services__grid.bb-featgrid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.bb-featgrid--4 .bb-card {
    padding: 30px 24px 28px;
}

.bb-featgrid--4 .bb-card h3 {
    font-size: 18px !important;
}

.bb-detail__work {
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(246, 135, 18, 0.07), transparent 70%),
        radial-gradient(600px 300px at 10% 100%, rgba(184, 84, 0, 0.07), transparent 70%),
        var(--bb-cream);
}

.bb-detail__more {
    background: var(--bb-white);
    padding-bottom: 40px;
}

/* Technology link cards */
.bb-techgrid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.bb-techcard {
    position: relative;
    display: flex;
    align-items: center;
    gap: 18px;
    height: 100%;
    padding: 22px 22px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow-sm);
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.45s var(--bb-ease), box-shadow 0.45s var(--bb-ease), border-color 0.4s;
}

.bb-techcard::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bb-grad-soft);
    opacity: 0;
    transition: opacity 0.4s;
    z-index: -1;
}

.bb-techcard:hover {
    transform: translateY(-5px);
    border-color: rgba(184, 84, 0, 0.25);
    box-shadow: var(--bb-shadow-md);
}

.bb-techcard:hover::before {
    opacity: 1;
}

.bb-techcard__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: var(--bb-grad);
    color: #fff;
    font-size: 22px;
    box-shadow: 0 10px 22px -10px rgba(184, 84, 0, 0.7);
    transition: transform 0.5s var(--bb-ease);
}

.bb-techcard:hover .bb-techcard__icon {
    transform: rotate(-8deg) scale(1.06);
}

.bb-techcard__body {
    flex: 1;
    min-width: 0;
}

.bb-techcard__body strong {
    display: block;
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--bb-ink);
}

.bb-techcard__body span {
    display: block;
    font-size: 13.5px;
    line-height: 1.55;
    color: var(--bb-text);
}

.bb-techcard__arrow {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--bb-line);
    color: var(--bb-ink);
    transition: background 0.35s, color 0.35s, border-color 0.35s, transform 0.45s var(--bb-ease);
}

.bb-techcard:hover .bb-techcard__arrow {
    background: var(--bb-ink);
    border-color: var(--bb-ink);
    color: #fff;
    transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Contact page
   -------------------------------------------------------------------------- */
.bb-contact__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    gap: 32px;
    align-items: stretch;
}

.bb-contact__form {
    padding: 48px 48px 44px;
    border-radius: var(--bb-radius-lg);
    background: #fff;
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow-md);
}

.bb-contact__form h2 {
    margin: 0 0 10px !important;
}

.bb-contact__intro {
    margin: 0 0 32px !important;
    font-size: 16px;
}

.bb-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.bb-field--full {
    grid-column: 1 / -1;
}

.bb-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--bb-ink);
}

.bb-field input,
.bb-field textarea {
    display: block;
    width: 100%;
    padding: 14px 18px;
    border-radius: 14px;
    border: 1.5px solid rgba(22, 23, 47, 0.1);
    background: var(--bb-cream);
    font-family: var(--bb-font);
    font-size: 15px;
    color: var(--bb-ink);
    transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}

.bb-field textarea {
    min-height: 140px;
    resize: vertical;
}

.bb-field input::placeholder,
.bb-field textarea::placeholder {
    color: var(--bb-muted);
    opacity: 0.8;
}

.bb-field input:hover,
.bb-field textarea:hover {
    border-color: rgba(184, 84, 0, 0.3);
}

.bb-field input:focus,
.bb-field textarea:focus {
    outline: none;
    border-color: var(--bb-accent-strong);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(184, 84, 0, 0.12);
}

.bb-form .bb-btn {
    border: 0;
    cursor: pointer;
}

.bb-form .bb-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.bb-contact__info {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 48px 40px 40px;
    border-radius: var(--bb-radius-lg);
    background: var(--bb-navy);
    overflow: hidden;
    isolation: isolate;
}

.bb-contact__info::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px);
    background-size: 22px 22px;
    z-index: -1;
}

.bb-contact__info h3 {
    margin: 0 0 30px !important;
    font-size: 26px !important;
    font-weight: 800 !important;
    line-height: 1.25;
    color: #fff !important;
}

.bb-contact__list li {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.bb-contact__icon {
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--bb-grad);
    color: #fff;
    font-size: 19px;
    box-shadow: 0 10px 24px -10px rgba(246, 135, 18, 0.7);
}

.bb-contact__list strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffc266;
}

.bb-contact__list p,
.bb-contact__list a {
    margin: 0 !important;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82) !important;
}

.bb-contact__list a:hover {
    color: #fff !important;
}

.bb-contact__chat {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0 28px;
}

.bb-contact__chat a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 14px;
    font-weight: 700;
    color: #fff !important;
    transition: background 0.3s, transform 0.4s var(--bb-ease);
}

.bb-contact__chat a:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: translateY(-2px);
}

.bb-contact__social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
}

.bb-contact__social span {
    margin-right: auto;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.bb-contact__social a {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff !important;
    transition: background 0.3s, transform 0.4s var(--bb-ease);
}

.bb-contact__social a:hover {
    background: var(--bb-grad);
    transform: translateY(-3px);
}

.bb-map {
    background: var(--bb-white);
    padding: 0 0 110px;
}

.bb-map__frame {
    position: relative;
    height: 440px;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow-md);
}

.bb-map__frame iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    filter: saturate(0.85);
}

.bb-map__card {
    position: absolute;
    left: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 14px 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: var(--bb-shadow-md);
}

.bb-map__card strong,
.bb-map__card span:not(.bb-contact__icon) {
    display: block;
    line-height: 1.35;
}

.bb-map__card strong {
    font-size: 15px;
    color: var(--bb-ink);
}

.bb-map__card span:not(.bb-contact__icon) {
    font-size: 13px;
    color: var(--bb-muted);
}

.bb-map__card .bb-link {
    margin-left: 12px;
    font-size: 14px;
}

.bb-history--spaced {
    padding-top: 110px;
}

   Services
   -------------------------------------------------------------------------- */
.bb-services {
    background: var(--bb-white);
    border-radius: 48px 48px 0 0;
    margin-top: -40px;
    z-index: 1;
}

.bb-services__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.bb-card {
    --c: var(--bb-accent-strong);
    --c-soft: rgba(184, 84, 0, 0.1);
    position: relative;
    padding: 34px 30px 32px;
    border-radius: var(--bb-radius);
    background: #fff;
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow-sm);
    overflow: hidden;
    isolation: isolate;
}

.bb-card:nth-child(6n+2) { --c: var(--bb-accent); --c-soft: rgba(246, 135, 18, 0.1); }
.bb-card:nth-child(6n+3) { --c: #16172f; --c-soft: rgba(22, 23, 47, 0.08); }
.bb-card:nth-child(6n+4) { --c: var(--bb-accent-hover); --c-soft: rgba(224, 120, 0, 0.1); }
.bb-card:nth-child(6n+5) { --c: var(--bb-navy-2); --c-soft: rgba(58, 61, 107, 0.1); }
.bb-card:nth-child(6n+6) { --c: var(--bb-accent); --c-soft: rgba(246, 135, 18, 0.1); }

/* Gradient border + cursor spotlight, revealed on hover */
.bb-card::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1.5px;
    border-radius: inherit;
    background: var(--bb-grad);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
    pointer-events: none;
}

.bb-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), var(--c-soft), transparent 60%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: -1;
}

/* After the staggered entrance, JS adds .is-settled so hover reacts instantly */
.bb-card,
.bb-skill,
.bb-js .is-settled[data-reveal] {
    transition: opacity 0.9s var(--bb-ease), transform 0.5s var(--bb-ease), box-shadow 0.5s var(--bb-ease);
    transition-delay: 0s;
}

.bb-card:hover,
.bb-js .bb-card.is-settled:hover {
    transform: translateY(-8px);
    box-shadow: var(--bb-shadow-lg);
}

.bb-card:hover::before,
.bb-card:hover::after {
    opacity: 1;
}

.bb-card__num {
    position: absolute;
    top: 26px;
    right: 28px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: rgba(22, 23, 47, 0.16);
    transition: color 0.4s ease;
}

.bb-card:hover .bb-card__num {
    color: var(--c);
}

.bb-card__icon {
    display: grid;
    place-items: center;
    width: 60px;
    height: 60px;
    margin-bottom: 26px;
    border-radius: 18px;
    background: var(--c-soft);
    color: var(--c);
    font-size: 26px;
    transition: transform 0.5s var(--bb-ease), background 0.4s ease, color 0.4s ease, box-shadow 0.4s ease;
}

.bb-card:hover .bb-card__icon {
    background: var(--c);
    color: #fff;
    transform: rotate(-8deg) scale(1.06);
    box-shadow: 0 12px 24px -10px var(--c);
}

.bb-card:hover .bb-card__icon i {
    animation: bbWiggle 0.7s var(--bb-ease);
}

.bb-card h3 {
    margin: 0 0 12px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.3;
}

.bb-card p {
    margin: 0 !important;
    font-size: 14.5px;
    line-height: 1.75;
}

/* --------------------------------------------------------------------------
   About
   -------------------------------------------------------------------------- */
.bb-about {
    background: var(--bb-white);
    padding-top: 30px;
}

.bb-about__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: center;
}

.bb-about__media {
    position: relative;
    padding: 24px 24px 40px 0;
}

.bb-about__shape {
    position: absolute;
    top: 0;
    right: 0;
    width: 78%;
    height: 86%;
    border-radius: 36px;
    background: var(--bb-grad);
    opacity: 0.9;
    transform: rotate(4deg);
}

.bb-about__shape::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(rgba(255, 255, 255, 0.35) 1.2px, transparent 1.2px);
    background-size: 16px 16px;
}

.bb-about__img {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--bb-shadow-lg);
}

.bb-about__img img {
    display: block;
    width: 100%;
    transition: transform 1.2s var(--bb-ease);
}

.bb-about__media:hover .bb-about__img img {
    transform: scale(1.05);
}

.bb-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 20px 14px 14px;
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--bb-shadow-md);
    animation: bbFloat 7s ease-in-out infinite;
}

.bb-badge--a {
    left: -22px;
    bottom: 6px;
}

.bb-badge--b {
    right: -8px;
    top: 44%;
    animation-delay: -3s;
}

.bb-badge__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--bb-grad);
    color: #fff;
    font-size: 20px;
}

.bb-badge p {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-size: 12.5px;
    line-height: 1.3;
    font-weight: 600;
    color: var(--bb-muted);
}

.bb-badge strong {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--bb-ink);
}

.bb-about__copy h2 {
    margin-bottom: 22px !important;
}

.bb-about__copy p:not(.bb-eyebrow) {
    margin: 0 0 16px;
    font-size: 16px;
}

.bb-about__copy .bb-btn {
    margin-top: 14px;
}

/* Entrance: image glides in from the left, copy follows from the right,
   both rising slightly. Children use `translate`/`scale` so they never
   clash with the existing hover `transform`s or the badge float. */
.bb-js .bb-about__media[data-reveal] {
    transform: translate3d(-64px, 28px, 0);
    transition-duration: 1.1s;
}

.bb-js .bb-about__copy[data-reveal] {
    transform: translate3d(64px, 28px, 0);
    transition-duration: 1.1s;
    transition-delay: 0.2s;
}

.bb-js .bb-about [data-reveal].is-in {
    transform: none;
}

@media (prefers-reduced-motion: no-preference) {
    .bb-js .bb-about__copy > * {
        opacity: 0;
    }

    .bb-js .bb-about__copy.is-in > * {
        animation: bbAboutRise 0.8s var(--bb-ease) both;
    }

    .bb-js .bb-about__copy.is-in > :nth-child(1) { animation-delay: 0.35s; }
    .bb-js .bb-about__copy.is-in > :nth-child(2) { animation-delay: 0.45s; }
    .bb-js .bb-about__copy.is-in > :nth-child(3) { animation-delay: 0.55s; }
    .bb-js .bb-about__copy.is-in > :nth-child(4) { animation-delay: 0.65s; }
    .bb-js .bb-about__copy.is-in > :nth-child(5) { animation-delay: 0.75s; }

    .bb-js .bb-about__media .bb-badge {
        opacity: 0;
    }

    .bb-js .bb-about__media.is-in .bb-badge {
        animation: bbBadgePop 0.7s var(--bb-ease) 0.7s both, bbFloat 7s ease-in-out infinite;
    }

    .bb-js .bb-about__media.is-in .bb-badge--b {
        animation-delay: 0.9s, -3s;
    }
}

@keyframes bbAboutRise {
    from { opacity: 0; translate: 0 18px; }
    to { opacity: 1; translate: 0 0; }
}

@keyframes bbBadgePop {
    from { opacity: 0; scale: 0.85; }
    to { opacity: 1; scale: 1; }
}

/* --------------------------------------------------------------------------
   Core expertise
   -------------------------------------------------------------------------- */
.bb-expertise {
    background:
        radial-gradient(600px 300px at 10% 0%, rgba(184, 84, 0, 0.07), transparent 70%),
        radial-gradient(600px 300px at 90% 100%, rgba(246, 135, 18, 0.08), transparent 70%),
        var(--bb-cream);
}

.bb-expertise__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
}

.bb-skill {
    padding: 30px 16px 26px;
    border-radius: var(--bb-radius);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow-sm);
    text-align: center;
}

.bb-skill:hover,
.bb-js .bb-skill.is-settled:hover {
    transform: translateY(-6px);
    box-shadow: var(--bb-shadow-md);
}

.bb-ring {
    position: relative;
    width: 118px;
    height: 118px;
    margin: 0 auto 18px;
}

.bb-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
    overflow: visible;
}

.bb-ring__track,
.bb-ring__bar {
    fill: none;
    stroke-width: 8;
}

.bb-ring__track {
    stroke: rgba(22, 23, 47, 0.07);
}

.bb-ring__bar {
    stroke: url(#bbRingGrad);
    stroke-linecap: round;
    stroke-dasharray: 326.73;
    stroke-dashoffset: calc(326.73 * (1 - var(--p) / 100));
    filter: drop-shadow(0 4px 8px rgba(246, 135, 18, 0.28));
}

.bb-js .bb-ring__bar {
    stroke-dashoffset: 326.73;
    transition: stroke-dashoffset 1.8s var(--bb-ease);
    transition-delay: calc(var(--i, 0) * 90ms + 200ms);
}

.bb-js .bb-skill.is-in .bb-ring__bar {
    stroke-dashoffset: calc(326.73 * (1 - var(--p) / 100));
}

.bb-ring__value {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--bb-ink);
    font-variant-numeric: tabular-nums;
}

.bb-skill__title {
    margin: 0 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--bb-ink) !important;
}

/* --------------------------------------------------------------------------
   Clients marquee
   -------------------------------------------------------------------------- */
.bb-clients {
    background: var(--bb-white);
    padding-bottom: 100px;
}

.bb-clients .bb-head {
    margin-bottom: 44px;
}

.bb-marquee {
    position: relative;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.bb-marquee__track {
    display: flex;
    width: max-content;
    animation: bbMarquee 42s linear infinite;
}

.bb-marquee:hover .bb-marquee__track {
    animation-play-state: paused;
}

.bb-marquee__group {
    display: flex;
    gap: 22px;
    padding: 12px 11px;
}

.bb-logo {
    display: grid;
    place-items: center;
    width: 190px;
    height: 96px;
    padding: 18px 26px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow-sm);
    transition: transform 0.45s var(--bb-ease), box-shadow 0.45s var(--bb-ease), border-color 0.45s;
}

.bb-logo img {
    max-width: 100%;
    max-height: 52px;
    width: auto;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.7;
    transition: filter 0.45s ease, opacity 0.45s ease;
}

.bb-logo:hover {
    transform: translateY(-5px);
    box-shadow: var(--bb-shadow-md);
    border-color: rgba(184, 84, 0, 0.25);
}

.bb-logo:hover img {
    filter: none;
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Testimonials (Owl carousel)
   -------------------------------------------------------------------------- */
.bb-testimonials {
    background: var(--bb-cream);
    overflow: hidden;
}

.bb-testimonials__deco {
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%;
    background: var(--bb-grad);
    opacity: 0.16;
    filter: blur(2px);
    animation: bbMorph 14s ease-in-out infinite alternate;
}

.bb-testimonials__deco--l {
    left: -120px;
    top: 80px;
}

.bb-testimonials__deco--r {
    right: -110px;
    bottom: 60px;
    animation-delay: -6s;
}

.bb-quotes.owl-carousel .owl-stage {
    display: flex;
    align-items: center;
    padding: 56px 0 30px;
}

.bb-quotes.owl-carousel .owl-item {
    display: flex;
    justify-content: center;
}

/* Card: avatar overlaps the top edge, faint quote mark sits behind the text */
.bb-quote {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 300px;
    padding: 58px 30px 30px;
    text-align: center;
    border-radius: 12px;
    background: #fff;
    border: 0;
    box-shadow: 0 10px 30px rgba(22, 23, 47, 0.08);
    transition: transform 0.6s var(--bb-ease), box-shadow 0.6s var(--bb-ease), opacity 0.6s var(--bb-ease);
}

.bb-quote__avatar {
    position: absolute;
    top: -36px;
    left: 50%;
    z-index: 2;
    width: 72px;
    height: 72px;
    padding: 5px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 6px 16px rgba(22, 23, 47, 0.08);
    transform: translateX(-50%);
}

.bb-quotes.owl-carousel .owl-item .bb-quote__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bb-quote__mark {
    position: absolute;
    right: 10px;
    bottom: -10px;
    z-index: 0;
    font-size: 150px;
    line-height: 1;
    color: rgba(22, 23, 47, 0.04);
    pointer-events: none;
}

.bb-quote__text,
.bb-quote__author {
    position: relative;
    z-index: 1;
}

.bb-quote__text {
    flex: 1;
    margin: 0 0 22px !important;
    font-size: 16px;
    line-height: 1.75;
    color: var(--bb-ink) !important;
}

.bb-quote__author {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bb-quote__author h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    line-height: 1.3;
}

.bb-quote__author span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: var(--bb-muted);
}

/* 3-up layout: side cards recede, the centred card is raised and larger */
@media (min-width: 768px) {
    .bb-quotes .owl-item .bb-quote {
        transform: scale(0.88);
        opacity: 0.7;
        box-shadow: 0 6px 18px rgba(22, 23, 47, 0.06);
    }

    .bb-quotes .owl-item .bb-quote__text {
        font-size: 15px;
        color: var(--bb-muted) !important;
    }

    .bb-quotes .owl-item.center .bb-quote {
        transform: scale(1);
        opacity: 1;
        box-shadow: 0 18px 40px rgba(22, 23, 47, 0.14);
    }

    .bb-quotes .owl-item.center .bb-quote__text {
        font-size: 17px;
        color: var(--bb-ink) !important;
    }
}

/* Owl controls — reference design uses dots only */
.bb-quotes .owl-nav {
    display: none !important;
}

.bb-quotes .owl-nav button.owl-prev,
.bb-quotes .owl-nav button.owl-next,
.bb-quotes .owl-nav .owl-prev,
.bb-quotes .owl-nav .owl-next {
    position: relative;
    width: 48px;
    height: 48px;
    margin: 0;
    border-radius: 50% !important;
    background: #fff !important;
    border: 1px solid var(--bb-line) !important;
    box-shadow: var(--bb-shadow-sm);
    transition: background 0.3s, transform 0.3s var(--bb-ease), box-shadow 0.3s;
}

.bb-quotes .owl-nav .owl-prev::after,
.bb-quotes .owl-nav .owl-next::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 18px;
    height: 18px;
    background: var(--bb-ink);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1 8a.5.5 0 0 1 .5-.5h11.793l-3.147-3.146a.5.5 0 0 1 .708-.708l4 4a.5.5 0 0 1 0 .708l-4 4a.5.5 0 0 1-.708-.708L13.293 8.5H1.5A.5.5 0 0 1 1 8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.bb-quotes .owl-nav .owl-prev::after {
    transform: scaleX(-1);
}

.bb-quotes .owl-nav .owl-prev:hover,
.bb-quotes .owl-nav .owl-next:hover {
    background: var(--bb-grad) !important;
    transform: translateY(-2px);
    box-shadow: var(--bb-shadow-md);
}

.bb-quotes .owl-nav .owl-prev:hover::after,
.bb-quotes .owl-nav .owl-next:hover::after {
    background: #fff;
}

.bb-quotes .owl-dots {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
    text-align: center;
}

.bb-quotes .owl-dot {
    padding: 0 !important;
    background: none !important;
    border: 0 !important;
}

.bb-quotes .owl-dot span {
    display: block;
    width: 8px;
    height: 8px;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 999px;
    background: rgba(246, 135, 18, 0.4) !important;
    transition: transform 0.3s var(--bb-ease), background 0.3s;
}

.bb-quotes .owl-dot:hover span {
    background: rgba(246, 135, 18, 0.7) !important;
}

.bb-quotes .owl-dot.active span {
    background: var(--bb-accent) !important;
    transform: scale(1.25);
}

/* --------------------------------------------------------------------------
   Portfolio
   -------------------------------------------------------------------------- */
.bb-portfolio {
    background: var(--bb-white);
}

.bb-portfolio__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.bb-work__media {
    position: relative;
    aspect-ratio: 1281 / 620;
    border-radius: var(--bb-radius);
    overflow: hidden;
    background: var(--bb-cream-2);
    box-shadow: var(--bb-shadow-sm);
    transition: box-shadow 0.6s var(--bb-ease);
}

.bb-work__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transition: transform 1.1s var(--bb-ease);
}

.bb-work__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: linear-gradient(160deg, rgba(184, 84, 0, 0.78), rgba(246, 135, 18, 0.72) 60%, rgba(246, 135, 18, 0.7));
    opacity: 0;
    transition: opacity 0.5s var(--bb-ease);
}

.bb-work__btn {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #fff;
    color: var(--bb-ink) !important;
    font-size: 18px;
    transform: translate3d(0, 16px, 0);
    opacity: 0;
    transition: transform 0.5s var(--bb-ease), opacity 0.5s var(--bb-ease), background 0.3s, color 0.3s !important;
}

.bb-work__btn + .bb-work__btn {
    transition-delay: 0.06s;
}

.bb-work__btn:hover {
    background: var(--bb-ink);
    color: #fff !important;
}

.bb-work:hover .bb-work__media,
.bb-work:focus-within .bb-work__media {
    box-shadow: var(--bb-shadow-lg);
}

.bb-work:hover .bb-work__media img,
.bb-work:focus-within .bb-work__media img {
    transform: scale(1.07);
}

.bb-work:hover .bb-work__overlay,
.bb-work:focus-within .bb-work__overlay {
    opacity: 1;
}

.bb-work:hover .bb-work__btn,
.bb-work:focus-within .bb-work__btn {
    opacity: 1;
    transform: none;
}

.bb-work__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 4px 0;
}

.bb-work__meta h3 {
    margin: 0 0 6px !important;
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.3;
}

.bb-work__meta p {
    display: inline-block;
    margin: 0 !important;
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--bb-grad-soft);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--bb-accent-hover) !important;
}

.bb-work__arrow {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--bb-line);
    color: var(--bb-ink);
    transition: background 0.4s, color 0.4s, transform 0.5s var(--bb-ease), border-color 0.4s;
}

.bb-work:hover .bb-work__arrow {
    background: var(--bb-ink);
    border-color: var(--bb-ink);
    color: #fff;
    transform: rotate(45deg);
}

.bb-portfolio__more {
    margin-top: 52px;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Work history
   -------------------------------------------------------------------------- */
.bb-history {
    background: var(--bb-white);
    padding: 0 0 40px;
}

.bb-history__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 2.2fr);
    align-items: center;
    gap: 40px;
    padding: 56px 56px;
    border-radius: 34px;
    background: var(--bb-navy);
    overflow: hidden;
    isolation: isolate;
}

.bb-history__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 40%, transparent);
    z-index: -1;
}

.bb-history__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
}

.bb-history__glow--a {
    width: 340px;
    height: 340px;
    right: -100px;
    top: -140px;
    background: rgba(246, 135, 18, 0.5);
}

.bb-history__glow--b {
    width: 300px;
    height: 300px;
    left: 20%;
    bottom: -200px;
    background: rgba(184, 84, 0, 0.55);
}

.bb-history__head h2 {
    color: #fff !important;
}

.bb-history__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.bb-history__list li {
    padding: 24px 22px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.4s, transform 0.5s var(--bb-ease), border-color 0.4s;
}

.bb-history__list li:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-5px);
}

.bb-history__icon {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--bb-grad);
    color: #fff;
    font-size: 20px;
    box-shadow: 0 10px 24px -10px rgba(246, 135, 18, 0.7);
}

.bb-history__num {
    display: flex;
    align-items: baseline;
    font-size: clamp(32px, 3vw, 42px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.bb-history__num span + span {
    background: var(--bb-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bb-history__label {
    display: block;
    margin-top: 6px;
    font-size: 13.5px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.66);
}

/* --------------------------------------------------------------------------
   CTA
   -------------------------------------------------------------------------- */
.bb-cta {
    background: var(--bb-white);
    padding: 40px 0 110px;
}

.bb-cta__panel {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 52px 56px;
    border-radius: 34px;
    background: var(--bb-grad);
    background-size: 160% 160%;
    overflow: hidden;
    isolation: isolate;
    animation: bbGradShift 12s ease-in-out infinite alternate;
}

.bb-cta__panel::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -200px;
    border-radius: 50%;
    border: 70px solid rgba(255, 255, 255, 0.1);
    z-index: -1;
}

.bb-cta__panel h2 {
    max-width: 620px;
    margin: 0 0 8px !important;
    font-size: clamp(26px, 2.6vw, 34px) !important;
    color: #fff !important;
}

.bb-cta__panel p {
    margin: 0 !important;
    font-size: 16.5px;
    color: rgba(255, 255, 255, 0.88) !important;
}

.bb-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Blog (list + single post)
   -------------------------------------------------------------------------- */
.bb-blog {
    background:
        radial-gradient(600px 300px at 90% 0%, rgba(246, 135, 18, 0.06), transparent 70%),
        radial-gradient(600px 300px at 10% 100%, rgba(184, 84, 0, 0.06), transparent 70%),
        var(--bb-cream);
}

.bb-blog--single {
    background: var(--bb-white);
}

.bb-blog__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 40px;
    align-items: start;
}

/* Post cards */
.bb-posts {
    display: grid;
    gap: 24px;
}

.bb-post {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    border-radius: var(--bb-radius);
    background: #fff;
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow-sm);
    overflow: hidden;
    transition: opacity 0.9s var(--bb-ease), transform 0.5s var(--bb-ease), box-shadow 0.5s var(--bb-ease);
}

.bb-post:hover,
.bb-js .bb-post.is-settled:hover {
    transform: translateY(-6px);
    box-shadow: var(--bb-shadow-lg);
}

.bb-post--empty {
    display: block;
    padding: 40px;
    text-align: center;
}

.bb-post__media {
    position: relative;
    display: block;
    min-height: 240px;
    overflow: hidden;
}

.bb-post__media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--bb-ease);
}

.bb-post:hover .bb-post__media img {
    transform: scale(1.06);
}

.bb-post__date {
    position: absolute;
    top: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--bb-shadow-sm);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    color: var(--bb-muted);
}

.bb-post__date strong {
    font-size: 22px;
    font-weight: 800;
    background: var(--bb-grad);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.bb-post__body {
    display: flex;
    flex-direction: column;
    padding: 28px 30px;
}

.bb-post__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-bottom: 12px !important;
    font-size: 13px;
    font-weight: 600;
    color: var(--bb-muted);
}

.bb-post__meta li,
.bb-post__meta a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: inherit !important;
}

.bb-post__meta i {
    color: var(--bb-accent-hover);
}

.bb-post h3 {
    margin: 0 0 10px !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.35;
}

.bb-post h3 a {
    color: var(--bb-ink) !important;
    transition: color 0.25s;
}

.bb-post h3 a:hover {
    color: var(--bb-accent-strong) !important;
}

.bb-post__body > p {
    margin: 0 0 18px !important;
    font-size: 14.5px;
}

.bb-post__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 16px;
    border-top: 1px solid var(--bb-line);
}

.bb-share {
    display: flex;
    gap: 6px;
}

.bb-share a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bb-cream-2);
    color: var(--bb-ink) !important;
    font-size: 14px;
    transition: background 0.3s, color 0.3s, transform 0.35s var(--bb-ease);
}

.bb-share a:hover {
    background: var(--bb-grad);
    color: #fff !important;
    transform: translateY(-2px);
}

/* Pagination (bootstrap-4 markup) */
.bb-pager .pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 40px 0 0;
    padding: 0;
}

.bb-pager .page-link {
    display: grid;
    place-items: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 14px !important;
    border: 1px solid var(--bb-line);
    background: #fff;
    font-weight: 700;
    color: var(--bb-ink);
    transition: border-color 0.25s, color 0.25s, transform 0.3s var(--bb-ease);
}

.bb-pager a.page-link:hover {
    border-color: var(--bb-accent-strong);
    color: var(--bb-accent-strong);
    transform: translateY(-2px);
}

.bb-pager .page-item.active .page-link {
    border-color: transparent;
    background: var(--bb-grad);
    color: #fff;
    box-shadow: 0 10px 22px -10px rgba(184, 84, 0, 0.7);
}

.bb-pager .page-item.disabled .page-link {
    opacity: 0.45;
}

/* Sidebar */
.bb-blog__side {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 22px;
}

.bb-sidebox {
    padding: 26px 24px;
    border-radius: var(--bb-radius);
    background: #fff;
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow-sm);
}

.bb-sidebox h3 {
    margin: 0 0 18px !important;
    font-size: 17px !important;
    font-weight: 800 !important;
    color: var(--bb-ink);
}

.bb-recent li + li {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--bb-line);
}

.bb-recent a {
    display: flex;
    align-items: center;
    gap: 14px;
}

.bb-recent img {
    flex-shrink: 0;
    width: 72px;
    height: 56px;
    border-radius: 12px;
    object-fit: cover;
}

.bb-recent strong {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.4;
    color: var(--bb-ink);
    transition: color 0.25s;
}

.bb-recent a:hover strong {
    color: var(--bb-accent-strong);
}

.bb-recent time {
    display: block;
    margin-top: 3px;
    font-size: 12px;
    font-weight: 600;
    color: var(--bb-muted);
}

.bb-archive details + details {
    border-top: 1px solid var(--bb-line);
}

.bb-archive summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 14.5px;
    font-weight: 600;
    color: var(--bb-ink);
    cursor: pointer;
    list-style: none;
}

.bb-archive summary::-webkit-details-marker {
    display: none;
}

.bb-archive summary span {
    min-width: 28px;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--bb-grad-soft);
    font-size: 12px;
    text-align: center;
    color: var(--bb-accent-strong);
}

.bb-archive details[open] summary {
    color: var(--bb-accent-strong);
}

.bb-archive ul {
    padding: 0 0 12px 12px !important;
    border-left: 2px solid rgba(184, 84, 0, 0.2);
}

.bb-archive li a {
    display: block;
    padding: 5px 0;
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--bb-text) !important;
}

.bb-archive li a:hover {
    color: var(--bb-accent-strong) !important;
}

.bb-sidebox--cta {
    position: relative;
    border: 0;
    background: var(--bb-grad);
    background-size: 160% 160%;
    overflow: hidden;
    animation: bbGradShift 12s ease-in-out infinite alternate;
}

.bb-sidebox--cta h3 {
    margin-bottom: 6px !important;
    color: #fff !important;
}

.bb-sidebox--cta p {
    margin: 0 0 18px !important;
    color: rgba(255, 255, 255, 0.88) !important;
}

.bb-sidebox--cta .bb-btn {
    min-height: 46px;
    padding: 0 20px;
    font-size: 14px;
}

/* Single post */
.bb-pagehero--article {
    padding-bottom: 120px;
}

.bb-pagehero--article .bb-pagehero__title {
    font-size: clamp(30px, 4vw, 50px) !important;
    line-height: 1.15 !important;
}

.bb-post__meta--hero {
    justify-content: center;
    margin: 0 !important;
    font-size: 14px;
}

.bb-article__cover {
    margin: 0 0 40px !important;
    border-radius: var(--bb-radius-lg);
    overflow: hidden;
    box-shadow: var(--bb-shadow-lg);
}

.bb-article__cover img {
    display: block;
    width: 100%;
    height: auto;
}

.bb-article__body {
    font-size: 16.5px;
    line-height: 1.85;
    color: var(--bb-text);
    overflow-wrap: break-word;
}

.bb-article__body > * + * {
    margin-top: 1.1em;
}

.bb-article__body h1,
.bb-article__body h2,
.bb-article__body h3,
.bb-article__body h4,
.bb-article__body h5,
.bb-article__body h6 {
    margin-top: 1.8em;
    margin-bottom: 0.4em;
    font-family: var(--bb-font);
    font-weight: 800;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--bb-ink);
}

.bb-article__body h2 { font-size: 28px; }
.bb-article__body h3 { font-size: 23px; }
.bb-article__body h4 { font-size: 19px; }

.bb-article__body p,
.bb-article__body li {
    font-family: var(--bb-font) !important;
    font-size: 16.5px !important;
    color: var(--bb-text);
}

.bb-article__body ul,
.bb-article__body ol {
    padding-left: 1.4em !important;
}

.bb-article__body ul {
    list-style: disc !important;
}

.bb-article__body ol {
    list-style: decimal !important;
}

.bb-article__body li + li {
    margin-top: 0.4em;
}

.bb-article__body a {
    color: var(--bb-accent-strong) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.bb-article__body img {
    max-width: 100%;
    height: auto !important;
    border-radius: 16px;
}

.bb-article__body blockquote {
    padding: 18px 24px;
    border-left: 4px solid var(--bb-accent-strong);
    border-radius: 0 16px 16px 0;
    background: var(--bb-grad-soft);
    color: var(--bb-ink);
}

.bb-article__body pre,
.bb-article__body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
}

.bb-article__body pre {
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--bb-navy);
    font-size: 14px;
    color: #e8e9ff;
}

.bb-article__body code {
    padding: 2px 6px;
    border-radius: 6px;
    background: var(--bb-cream-2);
    font-size: 0.9em;
    color: var(--bb-accent-hover);
}

.bb-article__body pre code {
    padding: 0;
    background: none;
    color: inherit;
}

.bb-article__share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 44px;
    padding: 20px 24px;
    border-radius: 20px;
    background: var(--bb-cream);
    border: 1px solid var(--bb-line);
}

.bb-article__share span {
    font-weight: 700;
    color: var(--bb-ink);
}

.bb-article__share .bb-share a {
    background: #fff;
}

/* Comments */
.bb-discuss {
    margin-top: 64px;
}

.bb-discuss h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px !important;
    font-size: 28px !important;
}

.bb-discuss h2 span {
    padding: 2px 12px;
    border-radius: 999px;
    background: var(--bb-grad);
    font-size: 15px;
    color: #fff;
}

.bb-discuss__empty {
    margin: 0 0 8px !important;
    padding: 22px 24px;
    border-radius: 18px;
    background: var(--bb-cream);
}

.bb-comments {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.bb-comments--replies {
    margin-top: 18px !important;
    padding-left: 20px !important;
    border-left: 2px solid rgba(184, 84, 0, 0.15);
}

.bb-comment {
    display: flex;
    gap: 16px;
}

.bb-comment[hidden] {
    display: none;
}

.bb-comments:not(.bb-comments--replies) > .bb-comment {
    padding: 22px 24px;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow-sm);
}

.bb-comments > .bb-comment + .bb-comment {
    margin-top: 16px;
}

.bb-comment__avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    object-fit: cover;
}

.bb-comment__main {
    flex: 1;
    min-width: 0;
}

.bb-comment__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 12px;
    margin-bottom: 6px;
}

.bb-comment__head strong {
    font-size: 15px;
    color: var(--bb-ink);
}

.bb-comment__head time {
    font-size: 12.5px;
    color: var(--bb-muted);
}

.bb-comment__main > p {
    margin: 0 0 8px !important;
    font-size: 15px;
    overflow-wrap: break-word;
}

.bb-comment__reply {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: none;
    font-size: 13.5px;
    font-weight: 700;
    color: var(--bb-accent-strong);
    cursor: pointer;
}

.bb-replyform {
    margin-top: 14px;
    padding: 18px;
    border-radius: 16px;
    background: var(--bb-cream);
}

.bb-replyform[hidden] {
    display: none;
}

.bb-replyform .bb-form__grid,
.bb-replyform > .bb-field {
    margin-bottom: 14px;
}

.bb-replyform .bb-field input,
.bb-replyform .bb-field textarea {
    background: #fff;
}

.bb-replyform .bb-btn {
    min-height: 44px;
    padding: 0 20px;
    font-size: 14px;
}

.bb-comments__more {
    margin-top: 20px;
    cursor: pointer;
}

.bb-discuss__form {
    margin-top: 32px;
    padding: 34px 32px;
    border-radius: var(--bb-radius-lg);
    background: #fff;
    border: 1px solid var(--bb-line);
    box-shadow: var(--bb-shadow-md);
}

.bb-discuss__form h3 {
    margin: 0 0 22px !important;
    font-size: 22px !important;
    font-weight: 800 !important;
}

@media (max-width: 1199px) {
    .bb-blog__layout {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 28px;
    }

    .bb-post {
        grid-template-columns: 1fr;
    }

    .bb-post__media {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 991px) {
    .bb-blog__layout {
        grid-template-columns: 1fr;
    }

    .bb-blog__side {
        position: static;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-sidebox--cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 767px) {
    .bb-blog__side {
        grid-template-columns: 1fr;
    }

    .bb-post__body {
        padding: 22px 20px;
    }

    .bb-post__foot,
    .bb-article__share {
        flex-direction: column;
        align-items: flex-start;
    }

    .bb-comments:not(.bb-comments--replies) > .bb-comment {
        padding: 18px 16px;
    }

    .bb-comment__avatar {
        width: 36px;
        height: 36px;
    }

    .bb-discuss__form {
        padding: 26px 20px;
    }
}

/* --------------------------------------------------------------------------
   Portfolio page (filterable gallery)
   -------------------------------------------------------------------------- */
.bb-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: -16px 0 44px;
}

.bb-filters button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--bb-line);
    background: #fff;
    box-shadow: var(--bb-shadow-sm);
    font-family: var(--bb-font);
    font-size: 14px;
    font-weight: 700;
    color: var(--bb-ink);
    cursor: pointer;
    transition: border-color 0.25s, color 0.25s, transform 0.35s var(--bb-ease), box-shadow 0.35s var(--bb-ease);
}

.bb-filters button span {
    min-width: 24px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--bb-cream-2);
    font-size: 12px;
    color: var(--bb-muted);
    transition: background 0.25s, color 0.25s;
}

.bb-filters button:hover {
    border-color: rgba(184, 84, 0, 0.4);
    color: var(--bb-accent-strong);
    transform: translateY(-2px);
}

.bb-filters button.is-active {
    border-color: transparent;
    background: var(--bb-grad);
    background-size: 160% 100%;
    color: #fff;
    box-shadow: 0 12px 24px -12px rgba(184, 84, 0, 0.7);
}

.bb-filters button.is-active span {
    background: rgba(255, 255, 255, 0.22);
    color: #fff;
}

.bb-filters button:focus-visible {
    outline: 3px solid rgba(184, 84, 0, 0.45);
    outline-offset: 3px;
}

.bb-work[hidden] {
    display: none;
}

.bb-work.is-filtered {
    animation: bbFilterIn 0.6s var(--bb-ease) both;
}

@keyframes bbFilterIn {
    from { opacity: 0; transform: translate3d(0, 18px, 0) scale(0.97); }
    to { opacity: 1; transform: none; }
}

.bb-gallery__status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

@media (max-width: 767px) {
    .bb-filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin: -8px -16px 32px;
        padding: 4px 16px 10px;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .bb-filters::-webkit-scrollbar {
        display: none;
    }

    .bb-filters button {
        flex-shrink: 0;
    }
}

/* --------------------------------------------------------------------------
   Thank-you page
   -------------------------------------------------------------------------- */
.bb-thanks {
    padding: 70px 0 130px;
}

.bb-thanks__card {
    position: relative;
    z-index: 2;
    max-width: 720px;
    margin: 0 auto;
    padding: 52px 48px 40px;
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    box-shadow: var(--bb-shadow-lg);
    text-align: center;
}

.bb-thanks__card .bb-eyebrow {
    justify-content: center;
}

.bb-thanks__card .bb-pagehero__title {
    font-size: clamp(32px, 4.4vw, 52px) !important;
}

.bb-thanks__check {
    width: 92px;
    height: 92px;
    margin: 0 auto 24px;
    padding: 14px;
    border-radius: 50%;
    background: var(--bb-grad);
    box-shadow: 0 20px 40px -14px rgba(184, 84, 0, 0.7);
    animation: bbPop 0.7s var(--bb-ease) 0.2s both;
}

.bb-thanks__check svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #fff;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bb-thanks__check circle {
    stroke-opacity: 0.35;
    stroke-dasharray: 151;
    stroke-dashoffset: 151;
    animation: bbDraw 0.8s ease-out 0.4s forwards;
}

.bb-thanks__check path {
    stroke-dasharray: 36;
    stroke-dashoffset: 36;
    animation: bbDraw 0.5s ease-out 0.9s forwards;
}

.bb-thanks__social {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--bb-line);
}

.bb-thanks__social > span {
    font-size: 14px;
    font-weight: 600;
    color: var(--bb-muted);
}

/* One burst of confetti over the card */
.bb-confetti {
    position: absolute;
    inset: 0;
    z-index: 3;
    overflow: hidden;
    pointer-events: none;
}

.bb-confetti i {
    position: absolute;
    top: -20px;
    left: var(--x);
    width: 9px;
    height: 16px;
    border-radius: 2px;
    background: var(--c);
    opacity: 0;
    animation: bbConfetti 2.6s cubic-bezier(0.25, 0.6, 0.4, 1) var(--d) both;
}

.bb-confetti i:nth-child(3n) {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

@keyframes bbConfetti {
    0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0); }
    80% { opacity: 1; }
    100% { opacity: 0; transform: translate3d(calc(var(--r) * 0.6px), 560px, 0) rotate(calc(var(--r) * 6)); }
}

@keyframes bbPop {
    from { opacity: 0; transform: scale(0.4); }
    to { opacity: 1; transform: none; }
}

@keyframes bbDraw {
    to { stroke-dashoffset: 0; }
}

@media (max-width: 575px) {
    .bb-thanks__card {
        padding: 40px 22px 32px;
        border-radius: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bb-confetti {
        display: none;
    }

    .bb-thanks__check circle,
    .bb-thanks__check path {
        stroke-dashoffset: 0;
    }
}

/* --------------------------------------------------------------------------
   Keyframes
   -------------------------------------------------------------------------- */
@keyframes bbGradShift {
    0% { background-position: 0% 50%; }
    100% { background-position: 100% 50%; }
}

@keyframes bbFloat {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -12px; }
}

@keyframes bbSpin {
    to { rotate: 360deg; }
}

@keyframes bbDrift {
    0% { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-40px, 30px, 0) scale(1.08); }
}

@keyframes bbMorph {
    0% { border-radius: 42% 58% 60% 40% / 45% 45% 55% 55%; transform: rotate(0deg); }
    100% { border-radius: 60% 40% 38% 62% / 55% 60% 40% 45%; transform: rotate(25deg); }
}

@keyframes bbMarquee {
    to { transform: translate3d(-50%, 0, 0); }
}

@keyframes bbProgress {
    from { width: 0; }
    to { width: 100%; }
}

@keyframes bbWiggle {
    0%, 100% { transform: rotate(0); }
    30% { transform: rotate(10deg) scale(1.1); }
    60% { transform: rotate(-6deg); }
}


@keyframes bbOrbit {
    to { offset-distance: 100%; }
}

@supports (offset-path: ellipse(50% 50% at 50% 50%)) {
    .bb-orbit i {
        top: 0;
        left: 0;
        animation: bbOrbit 14s linear infinite;
    }
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1199px) {
    .bb-services__grid.bb-featgrid--4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-techgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-expertise__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .bb-history__panel {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .bb-about__inner {
        gap: 56px;
    }
}

@media (max-width: 991px) {
    .bb-contact__inner {
        grid-template-columns: 1fr;
    }

    .bb-contact__social {
        margin-top: 8px;
    }

    .bb-prose {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .bb-prose__head {
        position: static;
    }

    .bb-checkgrid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-detail__block + .bb-detail__block {
        margin-top: 72px;
    }

    .bb-pagehero__deco {
        display: none;
    }

    .bb-skillsplit {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .bb-section {
        padding: 84px 0;
    }

    .bb-hero {
        padding: 48px 0 96px;
    }

    .bb-hero__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .bb-hero__copy {
        text-align: center;
    }

    .bb-hero__lead {
        margin-left: auto !important;
        margin-right: auto !important;
    }

    .bb-hero__actions,
    .bb-hero__proof {
        justify-content: center;
    }

    .bb-hero__parallax {
        margin: 0 auto;
    }

    .bb-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-about {
        padding-top: 10px;
    }

    .bb-about__inner {
        grid-template-columns: 1fr;
    }

    .bb-about__media {
        max-width: 600px;
        width: 100%;
        margin: 0 auto;
    }

    .bb-portfolio__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-history__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .bb-cta__panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 44px 36px;
    }
}

@media (max-width: 767px) {
    .bb-contact__form,
    .bb-contact__info {
        padding: 32px 22px;
        border-radius: 26px;
    }

    .bb-form__grid {
        grid-template-columns: 1fr;
    }

    .bb-form .bb-btn {
        width: 100%;
    }

    .bb-map {
        padding-bottom: 80px;
    }

    .bb-map__frame {
        height: 360px;
        border-radius: 26px;
    }

    .bb-map__card {
        left: 12px;
        right: 12px;
        bottom: 12px;
    }

    .bb-map__card .bb-link {
        margin-left: auto;
    }

    .bb-checkgrid,
    .bb-checkgrid--long,
    .bb-services__grid.bb-featgrid--2,
    .bb-services__grid.bb-featgrid--4,
    .bb-techgrid {
        grid-template-columns: 1fr;
    }

    .bb-prose__body {
        padding-left: 20px;
    }

    .bb-pagehero {
        padding: 56px 0 100px;
    }

    .bb-history--spaced {
        padding-top: 72px;
    }

    .bb-section {
        padding: 72px 0;
    }

    .bb-head {
        margin-bottom: 40px;
    }

    .bb-services {
        border-radius: 32px 32px 0 0;
    }

    .bb-services__grid,
    .bb-portfolio__grid {
        grid-template-columns: 1fr;
    }

    .bb-expertise__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .bb-ring {
        width: 100px;
        height: 100px;
    }

    .bb-ring__value {
        font-size: 21px;
    }

    .bb-logo {
        width: 150px;
        height: 80px;
        padding: 14px 18px;
    }

    .bb-history__panel {
        padding: 40px 24px;
        border-radius: 28px;
    }

    .bb-cta {
        padding-bottom: 80px;
    }

    .bb-cta__panel {
        padding: 38px 26px;
        border-radius: 28px;
    }
}

@media (max-width: 575px) {
    .bb-pagehero__stats li {
        padding: 10px 14px;
    }

    .bb-pagehero__stats strong {
        font-size: 21px;
    }

    .bb-pagehero__stats span {
        font-size: 11px;
    }

    .bb-expertise__grid.bb-expertise__grid--3 {
        gap: 10px;
        padding-bottom: 40px;
    }

    .bb-expertise__grid--3 .bb-skill:nth-child(2) {
        margin-top: 24px;
    }

    .bb-expertise__grid--3 .bb-ring {
        width: 80px;
        height: 80px;
    }

    .bb-expertise__grid--3 .bb-ring__value {
        font-size: 18px;
    }

    .bb-pagehero__lead {
        font-size: 16px;
    }

    .bb-hero__parallax {
        padding: 24px 6px;
    }

    .bb-hero .bb-eyebrow {
        font-size: 10.5px !important;
        letter-spacing: 0.08em;
        gap: 8px;
        padding: 7px 14px;
        justify-content: center;
        border-radius: 18px;
    }

    .bb-hero__lead {
        font-size: 16px;
    }

    .bb-hero__actions .bb-btn {
        flex: 1 1 100%;
    }

    .bb-chip {
        padding: 6px 12px 6px 6px;
        font-size: 11.5px;
        gap: 8px;
        border-radius: 13px;
    }

    .bb-chip i {
        width: 28px;
        height: 28px;
        font-size: 14px;
        border-radius: 9px;
    }

    .bb-chip--1 { left: -2px; top: 0; }
    .bb-chip--2 { right: -2px; }
    .bb-chip--3 { bottom: 30%; left: -2px; }

    .bb-stage__bar em {
        display: none;
    }

    .bb-stage__caption strong {
        font-size: 17px;
    }

    .bb-card {
        padding: 28px 24px;
    }

    .bb-about__media {
        padding: 16px 12px 36px 0;
    }

    .bb-js .bb-about__media[data-reveal] {
        transform: translate3d(-32px, 20px, 0);
    }

    .bb-js .bb-about__copy[data-reveal] {
        transform: translate3d(32px, 20px, 0);
    }

    .bb-badge {
        padding: 10px 14px 10px 10px;
        gap: 10px;
    }

    .bb-badge__icon {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .bb-badge strong {
        font-size: 19px;
    }

    .bb-badge--a { left: -4px; }
    .bb-badge--b { right: -4px; }

    .bb-skill {
        padding: 22px 10px 20px;
    }

    .bb-skill__title {
        font-size: 13.5px;
    }

    .bb-history__list {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .bb-history__list li {
        padding: 20px 16px;
    }

    .bb-cta__actions,
    .bb-cta__actions .bb-btn {
        width: 100%;
    }
}

/* Touch devices: portfolio actions are always reachable */
@media (hover: none) {
    .bb-work__overlay {
        opacity: 1;
        align-items: flex-end;
        justify-content: flex-end;
        padding: 14px;
        background: linear-gradient(180deg, transparent 50%, rgba(22, 23, 47, 0.45));
    }

    .bb-work__btn {
        width: 44px;
        height: 44px;
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Reduced motion
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .bb-home *,
    .bb-home *::before,
    .bb-home *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0s !important;
        scroll-behavior: auto !important;
    }

    .bb-js [data-reveal],
    .bb-js .bb-hero__item {
        opacity: 1 !important;
        transform: none !important;
    }

    .bb-js .bb-ring__bar {
        stroke-dashoffset: calc(326.73 * (1 - var(--p) / 100));
    }

    .bb-hero__parallax {
        transform: none !important;
    }

    .bb-marquee {
        -webkit-mask-image: none;
        mask-image: none;
    }

    .bb-marquee__track {
        width: auto;
        justify-content: center;
    }

    .bb-marquee__group {
        flex-wrap: wrap;
        justify-content: center;
    }

    .bb-marquee__group[aria-hidden="true"] {
        display: none;
    }
}
