/*
Theme Name: BridgeBrain Modern AI
Theme URI: https://bridgebrain.ai
Author: BridgeBrain Labs
Author URI: https://bridgebrain.ai
Description: A modern, luxury, responsive WordPress theme for BridgeBrain.ai.
Version: 1.0.7
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bridgebrain-modern-ai
Tags: custom-menu, featured-images, full-width-template, one-column, two-columns, right-sidebar, left-sidebar, sticky-post, translation-ready
*/

     
      
        /* ===== RESET & BASE ===== */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
            line-height: 1.5;
            color: #fcfcdb;
             background: url('images/vertical-lines-bg.jpg');
        }

        /* ===== TYPOGRAPHY ===== */
        h1, h2, h3, h4, h5, h6 {
            font-weight: 400;
            letter-spacing: -0.02em;
        }

        h1 {
            font-size: 48px;
            line-height: 1.1;
            font-weight: 450;
        }

        h2 {
            font-size: 48px;
            line-height: 1.2;
            margin-bottom: 1.5rem;
        }

        h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .subhead {
            font-size: 1.25rem;
            color: rgba(255, 255, 255, 0.7);
            max-width: 600px;
            margin: 1.5rem 0;
            font-weight: 350;
            line-height: 1.6;
        }

        /* ===== LAYOUT ===== */
        .container {
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 2rem;
        }

        section {
            padding: 6rem 0;
        }

        /* ===== HEADER ===== */
        .site-header {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            z-index: 100;
            padding: 2rem 2rem;
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1440px;
            margin: 0 auto;
        }

        /* Logo on left */
        .logo {
            font-size: 1.5rem;
            font-weight: 500;
            letter-spacing: -0.02em;
            color: white;
            text-decoration: none;
        }

        .logo span {
            font-weight: 300;
            color: rgba(255, 255, 255, 0.7);
        }

        /* Navigation on right */
        .nav-right {
            display: flex;
            gap: 3rem;
            align-items: center;
        }

        .nav-right a {
            color: #fff;
            text-decoration: none;
            font-size: 0.9rem;
            font-weight: 400;
            letter-spacing: 0.3px;
            opacity: 0.8;
            transition: opacity 0.2s;
        }

        .nav-right a:hover {
            opacity: 1;
        }

        .social-links {
            display: flex;
            gap: 1.5rem;
        }

        .social-links a {
            color: white;
            text-decoration: none;
            font-size: 0.9rem;
            opacity: 0.8;
        }

        /* ===== HERO SECTION ===== */
        .hero {
            position: relative;
            height: 100vh;
            min-height: 800px;
            width: 100%;
            display: flex;
            align-items: center;
            color: white;
            overflow: hidden;
            border-bottom: solid 1px #667;
        }

        .hero-background {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
            z-index: -1;
        }

        .hero-background img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
        }

        /* Hero layout with two columns - text left, video right */
        .hero-container {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 4rem;
            align-items: center;
            max-width: 1440px;
            margin: 0 auto;
            padding: 0 2rem;
            width: 100%;
        }

        .hero-content {
            max-width: 600px;
        }

        /* Video container styles - now on right */
        .hero-video {
            background: rgba(255, 255, 255, 0.08);
            backdrop-filter: blur(20px);
            -webkit-backdrop-filter: blur(20px);
            border: 1px solid rgba(255, 255, 255, 0.15);
            border-radius: 32px;
            padding: 1rem;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
        }

        .video-wrapper {
            position: relative;
            width: 100%;
            border-radius: 24px;
            overflow: hidden;
            aspect-ratio: 16 / 9;
            background: #1a1a1a;
        }

        .video-wrapper video {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border: none;
            display: block;
        }

        /* Video controls styling */
        .video-wrapper video::-webkit-media-controls {
            background: rgba(0, 0, 0, 0.3);
            border-radius: 0 0 24px 24px;
        }

        .video-caption {
            margin-top: 1rem;
            padding: 0 1rem 1rem 1rem;
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
            letter-spacing: 0.5px;
        }

        .hero-label {
            font-size: 0.9rem;
            text-transform: uppercase;
            letter-spacing: 4px;
            margin-bottom: 1.5rem;
            opacity: 0.7;
        }

        .hero-description {
            font-size: 1.25rem;
            color: rgba(255, 255, 255, 0.7);
            margin: 1.5rem 0 2rem;
            font-weight: 300;
            line-height: 1.6;
        }

        /* ===== FEATURES SECTION ===== */
        .features {
             position: relative;
             background: url('images/features-bg.jpg') center center / cover no-repeat;
             border-bottom: solid 1px #667;
        }

        .section-header {
            text-align: center;
            max-width: 700px;
            margin: 0 auto 2rem;
        }

        .section-header h2 {
            margin: 2rem;
            color: #fff;
        }

        .section-header p {
            color: #81818c;
            font-size: 1.25rem;
            font-weight: 700;
        }

        .features-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 3rem;
            margin-top: 4rem;
        }

        .feature-card {
            padding: 2rem;
            background: white;
            border-radius: 24px;
            box-shadow: 0 20px 40px rgba(0,0,0,0.02);
        }

        .feature-icon {
            width: 48px;
            height: 48px;
            background: #1a1a1a;
            border-radius: 12px;
            margin-bottom: 1.5rem;
        }

        .feature-card h3 {
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }

        .feature-card p {
            color: #667;
            line-height: 1.6;
        }

        /* ===== PROTOCOLS SECTION ===== */
        .protocols {
            background: #1a1a1a;
            color: white;
            border-bottom: solid 1px #667;
        }

        .protocols-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 3rem;
        }

        .protocol-card {
            padding: 3rem;
            background: rgba(255, 255, 255, 0.03);
            border-radius: 32px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .protocol-number {
            font-size: 3rem;
            font-weight: 300;
            color: rgba(255, 255, 255, 0.2);
            margin-bottom: 1rem;
        }

        .licensing {
            background: #1a1a1a;
            color: white;
        }

        /* ===== BLOG GRID (WP PATTERN) ===== */

        .blog-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
            gap: 2rem;
        }

        .post-card {
            border-radius: 24px;
            overflow: hidden;
            background: white;
            box-shadow: 0 20px 40px rgba(0,0,0,0.02);
        }

        .post-image {
            width: 100%;
            height: 240px;
            background: #ddd;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }

        .post-content {
            padding: 2rem;
        }

        .post-meta {
            font-size: 0.875rem;
            color: #999;
            margin-bottom: 0.5rem;
        }

        .post-title {
            font-size: 1.5rem;
            margin-bottom: 1rem;
            line-height: 1.3;
        }

        .post-excerpt {
            color: #666;
            margin-bottom: 1.5rem;
        }

        .read-more {
            color: #1a1a1a;
            text-decoration: none;
            font-weight: 500;
            display: inline-flex;
            align-items: center;
            gap: 0.5rem;
        }

        /* ===== CTA SECTION ===== */
        .cta {
            position: relative;
             background: url('images/features-bg.jpg') center center / cover no-repeat;
             border-bottom: solid 1px #667;
            color: white;
            text-align: center;
        }

        .cta h2 {
            max-width: 700px;
            margin: 0 auto 2rem;
        }

        .cta-button {
            background: white;
            color: #1a1a1a;
            border: none;
            padding: 1rem 3rem;
            border-radius: 60px;
            font-size: 1.125rem;
            font-weight: 500;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .cta-button:hover {
            transform: scale(1.05);
        }

        /* ===== FOOTER ===== */
        .site-footer {
            background: #1a1a1a;
            padding: 4rem 0;
        }

        .footer-grid {
            display: grid;
            grid-template-columns: 2fr repeat(3, 1fr);
            gap: 4rem;
        }

        .footer-logo {
            font-size: 1.5rem;
            font-weight: 500;
            margin-bottom: 1rem;
        }

        .footer-description {
            color: #666;
            margin-bottom: 2rem;
        }

        .footer-column h4 {
            font-size: 1rem;
            margin-bottom: 1.5rem;
            text-transform: uppercase;
            letter-spacing: 1px;
        }

        .footer-column a {
            display: block;
            color: #666;
            text-decoration: none;
            margin-bottom: 0.75rem;
        }

        /* ===== CTA BUTTONS ===== */
        .cta-buttons {
            display: flex;
            gap: 1rem;
            margin-top: 2rem;
        }

        .primary-button {
            background: white;
            color: #1a1a1a;
            border: none;
            padding: 1rem 2.5rem;
            border-radius: 60px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .primary-button:hover {
            transform: scale(1.02);
        }

        .secondary-button {
            background: rgba(255, 255, 255, 0.1);
            color: white;
            border: 1px solid rgba(255, 255, 255, 0.2);
            padding: 1rem 2.5rem;
            border-radius: 60px;
            font-size: 1rem;
            font-weight: 500;
            cursor: pointer;
            backdrop-filter: blur(10px);
            transition: all 0.2s;
        }

        .secondary-button:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        /* ===== RESPONSIVE ===== */
        @media (max-width: 1024px) {
            .hero-container {
                grid-template-columns: 1fr;
                gap: 2rem;
                text-align: center;
            }

            .hero-content {
                max-width: 100%;
                margin: 0 auto;
            }

            .cta-buttons {
                justify-content: center;
            }
        }

        @media (max-width: 768px) {
            .header-content {
                flex-direction: column;
                gap: 1rem;
            }
            
            .nav-right {
                flex-direction: column;
                gap: 1rem;
            }
            
            .protocols-grid {
                grid-template-columns: 1fr;
            }
            
            .footer-grid {
                grid-template-columns: 1fr;
                gap: 2rem;
            }

            h1 {
                font-size: 36px;
            }
        }

/* === BridgeBrain Featured Pillars === */
.bb-featured {
  padding: clamp(28px, 4vw, 56px) 0;
}

.bb-featured__inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;

  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
  align-items: stretch;
}

/* Card look: dark luxe, subtle tan glass */
.bb-card {
  position: relative;
  padding: 30px 26px 24px;
  border-radius: 18px;

  background: rgba(48, 48, 48, 0.22); /* dark tan glass */
  border: 1px solid rgba(48, 48, 48, 0.18); /* warm tan edge */
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  min-height: 220px;
  display: flex;
  flex-direction: column;
}

.bb-card__badge {
  position: absolute;
  top: -18px;
  left: 22px;

  width: 44px;
  height: 44px;
  border-radius: 999px;

  display: grid;
  place-items: center;

  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;

  background: rgba(24, 18, 14, 0.85); /* deep brown/black */
  border: 1px solid rgba(197, 168, 122, 0.35);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  color: rgba(245, 234, 214, 0.92); /* warm off-white */
}

.bb-card__title {
  margin: 6px 0 10px;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 650;

  color: rgba(245, 234, 214, 0.95);
}

.bb-card__text {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.55;

  color: rgba(245, 234, 214, 0.78);
}

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

  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
  text-transform: uppercase;

  color: rgba(214, 190, 150, 0.92);
}

.bb-card__arrow {
  display: inline-block;
  transform: translateY(0.5px);
  opacity: 0.9;
}

.bb-card__link:hover {
  color: rgba(245, 234, 214, 0.95);
}

.bb-card:hover {
  border-color: rgba(197, 168, 122, 0.28);
  box-shadow:
    0 16px 44px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Responsive: 2-up then stack */
@media (max-width: 980px) {
  .bb-featured__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

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

  .bb-card__badge {
    left: 18px;
  }
}

/* Optional: improve spacing if your hero ends tightly */
.bb-featured :where(h3, p, a) {
  font-family: inherit;
}

/* === Identity + Trust Section === */
.bb-trust {
  position: relative;
  padding: clamp(10px, 4vw, 20px) 0;
}

.bb-trust__inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 0.8fr 1.1fr 2fr;
  gap: clamp(16px, 2.4vw, 28px);
  align-items: center;

  /* luxe glass container */
  border-radius: 22px;
  background: rgba(48, 48, 48, 0.18);         /* dark tan glass */
  border: 1px solid rgba(197, 168, 122, 0.16); /* warm tan edge */
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  padding: clamp(18px, 2.6vw, 30px);
}

/* Left image */
.bb-trust__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.bb-trust__img {
  width: clamp(100px, 200px, 200px);
  height: auto;
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(197, 168, 122, 0.16);
}

/* Headline */
.bb-trust__title {
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;

  /* subtle “corporate” lift */
  letter-spacing: 0.01em;
}

.bb-trust__check {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;

  background: rgba(24, 18, 14, 0.75);
  border: 1px solid rgba(197, 168, 122, 0.25);
  color: rgba(245, 234, 214, 0.92);

  box-shadow:
    0 10px 26px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  flex: 0 0 auto;
  transform: translateY(2px);
}

.bb-trust__title-lines {
  display: inline-block;
}

.bb-trust__title-line {
  display: block;
  font-weight: 700;
  line-height: 1.15;
  text-transform: none;

  /* warm off-white */
  color: rgba(245, 234, 214, 0.95);
  font-size: clamp(20px, 1.2rem + 0.9vw, 34px);
}

/* Right content */
.bb-trust__content {
  padding-left: clamp(16px, 2vw, 22px);
  border-left: 3px solid rgba(197, 168, 122, 0.28);
}

.bb-trust__list {
  margin: 0;
  padding-left: 1.05em;

  color: rgba(245, 234, 214, 0.82);
  font-size: clamp(14px, 0.92rem + 0.35vw, 18px);
  line-height: 1.55;
}

.bb-trust__list li {
  margin: 10px 0;
}

.bb-trust__list li::marker {
  color: rgba(214, 190, 150, 0.9);
}

/* Optional: gentle hover polish (still corporate, not sci-fi) */
.bb-trust__inner:hover {
  border-color: rgba(197, 168, 122, 0.26);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Responsive: stack cleanly */
@media (max-width: 980px) {
  .bb-trust__inner {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .bb-trust__media {
    justify-content: flex-start;
  }

  .bb-trust__content {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(197, 168, 122, 0.18);
    padding-top: 14px;
  }

  .bb-trust__title {
    align-items: center;
  }
}

@media (max-width: 520px) {
  .bb-trust__inner {
    padding: 18px;
    border-radius: 18px;
  }

  .bb-trust__check {
    width: 34px;
    height: 34px;
  }
}


/* === Persona Licensing / PLF Section === */
.bb-plf {
  position: relative;
  padding: clamp(28px, 4vw, 64px) 0;
}

.bb-plf__inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

/* Top row */
.bb-plf__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(14px, 2.2vw, 26px);
  align-items: center;
  margin-bottom: clamp(16px, 2.2vw, 22px);
}

.bb-plf__label {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.bb-plf__labelIcon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: rgba(24, 18, 14, 0.78);
  border: 1px solid rgba(197, 168, 122, 0.25);
  color: rgba(245, 234, 214, 0.92);

  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bb-plf__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  color: rgba(214, 190, 150, 0.88);
}

.bb-plf__title {
  margin: 0;
  font-size: clamp(22px, 1.1rem + 1.2vw, 36px);
  line-height: 1.12;
  font-weight: 600;
  color: white;
}

.bb-plf__thesis {
  border-left: 3px solid rgba(197, 168, 122, 0.22);
  padding-left: clamp(14px, 2vw, 20px);
}

.bb-plf__thesis p {
  margin: 0;
  color: rgba(245, 234, 214, 0.78);
  font-size: clamp(14px, 0.92rem + 0.35vw, 18px);
  line-height: 1.6;
}

/* Two cards */
.bb-plf__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.2vw, 22px);
  align-items: stretch;
}

.bb-plfCard {
  position: relative;
  border-radius: 20px;
  padding: clamp(18px, 2.2vw, 26px);

  background: rgba(48, 48, 48, 0.18);
  border: 1px solid rgba(197, 168, 122, 0.16);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bb-plfCard--warn {
  background: rgba(84, 63, 45, 0.12);
  border-color: rgba(197, 168, 122, 0.14);
}

.bb-plfCard__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.bb-plfCard__icon {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: rgba(24, 18, 14, 0.72);
  border: 1px solid rgba(197, 168, 122, 0.22);
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  color: rgba(245, 234, 214, 0.92);
}

.bb-plfCard__title {
  margin: 0;
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 750;
  color: rgba(245, 234, 214, 0.92);
}

.bb-plfCard__subtitle {
  margin: 0 0 14px;
  font-size: clamp(14px, 0.92rem + 0.25vw, 17px);
  line-height: 1.55;
  color: #fff;
}

.bb-plfCard__callout {
  margin: 0 0 14px;
  padding: 12px 12px;
  border-radius: 14px;

  background: rgba(24, 18, 14, 0.35);
  border: 1px solid rgba(197, 168, 122, 0.14);
  color: rgba(245, 234, 214, 0.86);
}

/* Lists */
.bb-plfList {
  margin: 0;
  padding-left: 1.05em;
  color: rgba(245, 234, 214, 0.82);
  font-size: clamp(14px, 0.92rem + 0.25vw, 17px);
  line-height: 1.55;
}

.bb-plfList li {
  margin: 10px 0;
}

.bb-plfList li::marker {
  color: rgba(214, 190, 150, 0.9);
}

.bb-plfList--features {
  margin-top: 6px;
}

.bb-plfCard__result,
.bb-plfCard__footnote {
  margin: 14px 0 0;
  color: rgba(245, 234, 214, 0.78);
  line-height: 1.55;
}

/* CTA row */
.bb-plf__ctaRow {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.bb-plf__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;

  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;

  color: white;
  background: rgba(214, 190, 150, 0.10);
  border: 1px solid rgba(214, 190, 150, 0.35);

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.bb-plf__cta:hover {
  filter: brightness(1.04);
}

.bb-plf__ctaSecondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;

  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;

  color: rgba(245, 234, 214, 0.90);
  background: rgba(24, 18, 14, 0.40);
  border: 1px solid rgba(197, 168, 122, 0.18);
}

.bb-plf__ctaSecondary:hover {
  border-color: rgba(197, 168, 122, 0.28);
}

/* Hover polish */
.bb-plfCard:hover {
  border-color: rgba(197, 168, 122, 0.26);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Responsive */
@media (max-width: 980px) {
  .bb-plf__top {
    grid-template-columns: 1fr;
  }

  .bb-plf__thesis {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(197, 168, 122, 0.16);
    padding-top: 12px;
  }

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

@media (max-width: 520px) {
  .bb-plfCard {
    border-radius: 18px;
  }

  .bb-plf__labelIcon {
    width: 42px;
    height: 42px;
  }
}

/* === Two-Panel Protocol Section (Luxe Dark) === */
.bb-protocols {
  position: relative;
  padding: clamp(28px, 4vw, 70px) 0;
  background: rgba(16, 12, 10, 1); /* deep warm black */
  border-top: 1px solid rgba(48, 48, 48, 0.25);
  border-bottom: 1px solid rgba(48, 48, 48, 0.20);
}

.bb-protocols__wrap {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(14px, 2.2vw, 22px);
  align-items: stretch;
}

/* Panels */
.bb-panel {
  border-radius: 22px;
  padding: clamp(18px, 2.4vw, 28px);

  background: rgba(48, 48, 48, 0.16);         /* tan glass */
  border: 1px solid rgba(197, 168, 122, 0.16);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bb-panel--right {
  background: rgba(42, 36, 32, 0.22); /* slightly cooler/denser */
}

.bb-panel__header {
  margin-bottom: 14px;
}

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

.bb-panel__title {
  margin: 0;
  font-size: clamp(22px, 1.1rem + 1.1vw, 40px);
  line-height: 1.12;
  font-weight: 800;
  color: rgba(245, 234, 214, 0.95);
}

.bb-panel__subtitle {
  margin: 6px 0 0;
  color: rgba(245, 234, 214, 0.78);
  font-size: clamp(14px, 0.95rem + 0.3vw, 22px);
  line-height: 1.4;
}

/* Left brand row */
.bb-brand {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
}

.bb-brand__logo {
  width: clamp(74px, 10vw, 118px);
  height: auto;
  border-radius: 18px;
  border: 1px solid rgba(197, 168, 122, 0.18);
}

.bb-brand__title {
  margin: 0;
  font-size: clamp(22px, 1.1rem + 1.2vw, 40px);
  line-height: 1.05;
  font-weight: 850;
  color: rgba(245, 234, 214, 0.95);
}

.bb-brand__title span {
  display: block;
}

.bb-panel__subhead {
  margin: 12px 0 0;
  text-align: center;
  font-size: clamp(16px, 0.95rem + 0.5vw, 28px);
  
}

/* Screenshot cover */
.bb-cover {
  margin: 16px 0 14px;
  position: relative;
  overflow: hidden;
  border-radius: 18px;

  border: 1px solid rgba(197, 168, 122, 0.14);
  box-shadow: 0 18px 50px rgba(0,0,0,0.50);
}

.bb-cover__img {
  width: 100%;
  height: auto;
  display: block;
  filter: saturate(0.92) contrast(1.02);
}

.bb-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(10, 8, 6, 0.10),
    rgba(10, 8, 6, 0.70)
  );
  pointer-events: none;
}

.bb-cover__cap {
  position: absolute;
  inset: auto 12px 12px 12px;
  z-index: 1;

  padding: 12px 12px;
  border-radius: 14px;

  background: rgba(10, 8, 6, 0.55);
  border: 1px solid rgba(197, 168, 122, 0.16);

  text-align: center;
  color: rgba(245, 234, 214, 0.92);
  font-size: clamp(14px, 0.9rem + 0.35vw, 22px);
  line-height: 1.2;
}

/* Left tagline + links */
.bb-panel__tagline {
  margin: 10px 0 0;
  text-align: center;
  font-size: clamp(18px, 1rem + 0.7vw, 30px);
  line-height: 1.2;
  color: rgba(245, 234, 214, 0.92);
}

.bb-panel__links {
  margin: 14px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: #fff;
}

.bb-panel__links a {
  color: rgba(214, 190, 150, 0.92);
  text-decoration: none;
  border-bottom: 1px solid rgba(214, 190, 150, 0.30);
}

.bb-panel__links a:hover {
  border-bottom-color: rgba(214, 190, 150, 0.55);
}

/* Protocol cards grid */
.bb-protocolGrid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.bb-proto {
  border-radius: 18px;
  padding: 16px 14px;

  background: rgba(48, 48, 48, 0.06);
  border: 1px solid rgba(197, 168, 122, 0.14);

  box-shadow:
    0 14px 30px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);

  color: rgba(245, 234, 214, 0.90);
}

.bb-proto__abbr {
  margin: 0 0 8px;
  text-align: center;
  font-size: clamp(22px, 1.1rem + 0.9vw, 38px);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #fff;
}

.bb-proto__name {
  margin: 0;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: rgba(245, 234, 214, 0.82) !important;
}

.bb-proto__by {
  margin: 10px 0 0;
  text-align: left;
  color: rgba(245, 234, 214, 0.82) !important;
}

.bb-proto__hr {
  margin: 12px 0 10px;
  border: none;
  height: 1px;
  background: rgba(245, 234, 214, 0.82);
}

.bb-proto__list {
  margin: 0;
  padding-left: 1.05em;
  line-height: 1.55;
  color: rgba(245, 234, 214, 0.82);
}

.bb-proto__list li {
  margin: 6px 0;
}

.bb-proto__list li::marker {
  color: rgba(214, 190, 150, 0.9);
}

/* Variants */
.bb-proto--mcp {
  background: rgba(245, 234, 214, 0.10);
  color: rgba(24, 18, 14, 0.92);
}

.bb-proto--mcp .bb-proto__name,
.bb-proto--mcp .bb-proto__by {
  color: rgba(24, 18, 14, 0.78);
}

.bb-proto--mcp .bb-proto__hr {
  background: rgba(24, 18, 14, 0.18);
}

.bb-proto--ap2 {
  background: rgba(245, 234, 214, 0.06);
}

.bb-proto--ptp {
  // position: relative;
  border-style: dashed;
  border-width: 2px;
  border-color: rgba(214, 190, 150, 0.40);
  background: rgba(214, 190, 150, 0.10);
  color: rgba(24, 18, 14, 0.92);
}

.bb-proto--ptp .bb-proto__name,
.bb-proto--ptp .bb-proto__by {
  color: rgba(24, 18, 14, 0.78);
}

.bb-proto--ptp .bb-proto__hr {
  background: rgba(245, 234, 214, 0.82);
}

.bb-proto__badge {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  border-radius: 999px;

  background: rgba(24, 18, 14, 0.85);
  border: 1px solid rgba(214, 190, 150, 0.35);
  color: rgba(245, 234, 214, 0.92);

  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 750;
}

/* Check list style for PTP */
.bb-proto__list--check {
  list-style: none;
  padding-left: 0;
}

.bb-proto__list--check li {
  position: relative;
  padding-left: 22px;
}

.bb-proto__list--check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #fff;
  font-weight: 900;
}

/* Right-side text */
.bb-panel__note {
  margin: 14px 0 0;
  font-size: clamp(14px, 0.92rem + 0.35vw, 20px);
  line-height: 1.5;
  color: rgba(245, 234, 214, 0.86);
}

.bb-panel__quote {
  margin: 14px 0 0;
  text-align: center;
  color: rgba(214, 190, 150, 0.90);
  font-size: clamp(14px, 0.95rem + 0.35vw, 22px);
  line-height: 1.45;
}

/* CTA */
.bb-panel__ctaRow {
  margin-top: 16px;
  display: flex;
  justify-content: center;
}

.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  text-decoration: none;

  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: clamp(14px, 0.92rem + 0.25vw, 18px);
}

.bb-btn--outline {
  color: rgba(245, 234, 214, 0.92);
  background: rgba(10, 8, 6, 0.25);
  border: 1px solid rgba(245, 234, 214, 0.35);
}

.bb-btn--outline:hover {
  border-color: rgba(214, 190, 150, 0.55);
}

.bb-panel__fineprint {
  margin: 12px 0 0;
  text-align: center;
  color: rgba(245, 234, 214, 0.65);
  font-size: 13px;
}

/* Hover polish */
.bb-panel:hover {
  border-color: rgba(197, 168, 122, 0.26);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Responsive */
@media (max-width: 980px) {
  .bb-protocols__wrap {
    grid-template-columns: 1fr;
  }

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

  .bb-proto__badge {
    position: static;
    display: inline-block;
    margin-bottom: 10px;
  }
}

@media (max-width: 520px) {
  .bb-panel {
    border-radius: 18px;
  }

  .bb-brand {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

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

.bb-brand__logo {
  filter: 
    brightness(0)
    saturate(100%)
    invert(91%)
    sepia(18%)
    saturate(356%)
    hue-rotate(351deg)
    brightness(103%)
    contrast(92%);
}

/* === Persona Integration Section === */
.bb-integrate {
  position: relative;
  padding: clamp(28px, 4vw, 64px) 0;
}

.bb-integrate__inner {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
  margin-top: 0 !important;

  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: clamp(14px, 2.2vw, 22px);
  align-items: stretch;
}

/* Shared panel styling (luxe glass) */
.bb-intPanel {
  border-radius: 22px;
  padding: clamp(18px, 2.4vw, 28px);

  background: rgba(84, 63, 45, 0.18);
  border: 1px solid rgba(197, 168, 122, 0.16);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bb-intPanel--example {
  background: rgba(42, 36, 32, 0.22);
}

/* Header */
.bb-intHeader {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 14px;
}

.bb-intHeader__icon {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: rgba(24, 18, 14, 0.78);
  border: 1px solid rgba(197, 168, 122, 0.25);
  color: rgba(245, 234, 214, 0.92);

  box-shadow:
    0 12px 26px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.bb-intHeader__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  color: rgba(214, 190, 150, 0.88);
}

.bb-intHeader__title {
  margin: 0;
  font-size: clamp(22px, 1.1rem + 1.15vw, 36px);
  line-height: 1.12;
  font-weight: 800;
  color: rgba(245, 234, 214, 0.95);
}

/* Body text */
.bb-intBody {
  margin: 0 0 14px;
  color: rgba(245, 234, 214, 0.78);
  font-size: clamp(14px, 0.92rem + 0.30vw, 18px);
  line-height: 1.65;
}

/* Callout prompt */
.bb-intCallout {
  margin-top: 16px;
  padding: 14px 14px;
  border-radius: 16px;

  background: rgba(24, 18, 14, 0.35);
  border: 1px solid rgba(197, 168, 122, 0.14);

  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.bb-intCallout__mark {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: rgba(214, 190, 150, 0.14);
  border: 1px solid rgba(214, 190, 150, 0.22);
  color: rgba(245, 234, 214, 0.90);

  flex: 0 0 auto;
  transform: translateY(1px);
}

.bb-intCallout__text {
  color: rgba(245, 234, 214, 0.88);
  font-weight: 650;
  line-height: 1.4;
}

/* Links */
.bb-intLinks {
  margin-top: 14px;
}

.bb-intLink {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;

  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;

  color: rgba(214, 190, 150, 0.92);
  border-bottom: 1px solid rgba(214, 190, 150, 0.28);
}

.bb-intLink:hover {
  border-bottom-color: rgba(214, 190, 150, 0.55);
}

/* Example panel */
.bb-exHeader__kicker {
  margin: 0 0 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 650;
  color: rgba(245, 234, 214, 0.70);
}

.bb-exHeader__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: clamp(22px, 1.05rem + 1vw, 34px);
  line-height: 1.1;
  font-weight: 900;

  color: rgba(245, 234, 214, 0.95);
}

.bb-exHeader__bolt {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;

  background: rgba(24, 18, 14, 0.75);
  border: 1px solid rgba(197, 168, 122, 0.18);
}

.bb-exBody {
  margin: 14px 0 0;
  color: rgba(245, 234, 214, 0.78);
  font-size: clamp(14px, 0.92rem + 0.28vw, 18px);
  line-height: 1.65;
}

.bb-exDivider {
  margin: 16px 0 14px;
  height: 1px;
  background: rgba(245, 234, 214, 0.18);
}

.bb-exTagline {
  margin: 0;
  text-align: center;
  color: #fff;
  font-weight: 500;
  font-size: clamp(16px, 0.95rem + 0.5vw, 22px);
  line-height: 1.3;
}

/* CTAs */
.bb-exCtas {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.bb-exBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;

  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px;

  color: rgba(24, 18, 14, 0.92);
  background: rgba(214, 190, 150, 0.92);
  border: 1px solid rgba(214, 190, 150, 0.35);

  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.35);
}

.bb-exBtn:hover {
  filter: brightness(1.04);
}

.bb-exBtn--ghost {
  color: rgba(245, 234, 214, 0.90);
  background: rgba(10, 8, 6, 0.25);
  border: 1px solid rgba(197, 168, 122, 0.18);
  box-shadow: none;
}

.bb-exBtn--ghost:hover {
  border-color: rgba(197, 168, 122, 0.28);
}

/* Hover polish */
.bb-intPanel:hover {
  border-color: rgba(197, 168, 122, 0.26);
  box-shadow:
    0 22px 64px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Responsive */
@media (max-width: 980px) {
  .bb-integrate__inner {
    grid-template-columns: 1fr;
  }

  .bb-exCtas {
    justify-content: flex-start;
  }

  .bb-exTagline {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .bb-intPanel {
    border-radius: 18px;
  }

  .bb-intHeader {
    align-items: center;
  }

  .bb-intCallout {
    padding: 12px;
  }
}
    

/* ===== WordPress integration ===== */
.bb-skip-link{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden;}
.bb-skip-link:focus{left:1rem;top:1rem;width:auto;height:auto;padding:.75rem 1rem;border-radius:12px;background:#0a0a0a;color:#fff;z-index:10000;}

.nav-right nav ul,
.nav-right .social-links ul{list-style:none;margin:0;padding:0;display:flex;gap:0.75rem;align-items:center;flex-wrap:wrap;}
.nav-right nav li,
.nav-right .social-links li{display:flex;align-items:center;}
.nav-right nav li:not(:last-child)::after,
.nav-right .social-links li:not(:last-child)::after{content:"•";opacity:0.9;margin-left:0.75rem;color:#fff;}

.nav-right nav a,
.nav-right .social-links a{display:inline-block;}

/* ── Dropdowns (submenu) ─────────────────────────────────────────────── */
.nav-right nav li{position:relative;}

/* Caret indicator for items with children */
.nav-right nav li.menu-item-has-children > a{
  padding-right: 1.05rem;
}
.nav-right nav li.menu-item-has-children > a::after{
  content:"▾";
  display:inline-block;
  margin-left:.35rem;
  font-size:.85em;
  opacity:.85;
  transform: translateY(-1px);
}

/* Submenu panel */
.nav-right nav ul.sub-menu{
  display:none;
  position:absolute;
  /* Anchor directly to the parent item so the hover target doesn't "drop"
     when moving the pointer from the parent link to the submenu. */
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: .55rem;
  margin: 0;
  z-index: 9999;
  flex-direction: column;
  gap: .2rem;
  align-items: stretch;

  /* Enable a tiny invisible "bridge" above the submenu panel to prevent
     accidental hover-out when moving the pointer from the parent item down
     into the submenu (common when the submenu has a small offset). */
  pointer-events: auto;

  background: linear-gradient(180deg, rgba(10,10,10,.96), rgba(10,10,10,.86));
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  box-shadow:
    0 18px 48px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
}

.nav-right nav ul.sub-menu::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:-12px;
  height:12px;
  background:transparent;
}

/* Open on hover / keyboard focus */
.nav-right nav li.menu-item-has-children:hover > ul.sub-menu,
.nav-right nav li.menu-item-has-children:focus-within > ul.sub-menu,
.nav-right nav li.menu-item-has-children.is-submenu-open > ul.sub-menu{
  display:flex;
}

/* Submenu items are stacked, without the bullet separators */
.nav-right nav ul.sub-menu li{
  display:block;
  align-items: stretch;
}
.nav-right nav ul.sub-menu li::after{content:none !important;}

.nav-right nav ul.sub-menu a{
  display:block;
  width:100%;
  padding: .55rem .75rem;
  border-radius: 12px;
  color: rgba(255,255,255,0.86);
  text-decoration: none;
  line-height: 1.2;
}
.nav-right nav ul.sub-menu a:hover,
.nav-right nav ul.sub-menu a:focus{
  color:#fff;
  background: rgba(255,255,255,0.08);
}

.site-header.is-inner{
  /* Inner pages: header should scroll naturally with the page (not sticky/fixed).
     Keeping the background treatment so the menu remains readable. */
  position: relative;
  top: auto;
  background: linear-gradient(180deg, rgba(10,10,10,.92), rgba(10,10,10,.72));
  backdrop-filter: blur(10px);
}

/* With a non-sticky header, we no longer need spacer padding here. */
.bb-page-wrap{padding-top:0;}

.bb-content-area{display:grid;grid-template-columns: 1fr;gap:2rem;}
.bb-has-sidebar.bb-sidebar-right .bb-content-area{grid-template-columns: minmax(0,1fr) 340px;}
.bb-has-sidebar.bb-sidebar-left .bb-content-area{grid-template-columns: 340px minmax(0,1fr);}
.bb-sidebar{position:relative;}
.bb-sidebar .widget{background:rgba(0,0,0,0.35);border:1px solid rgba(255,255,255,0.12);border-radius:18px;padding:1.25rem;margin-bottom:1.25rem;}
.bb-sidebar .widget-title{font-size:1.1rem;margin-bottom:.75rem;}
.bb-sidebar a{color:rgba(255,255,255,0.85);}
.bb-sidebar a:hover{color:#fff;}

.bb-container{max-width:1440px;margin:0 auto;padding:0 2rem;}
.bb-container.is-boxed{max-width:1200px;}
.bb-entry{padding:3rem 0;}
.bb-entry .entry-title{margin-bottom:1rem;}
.bb-entry .entry-meta{opacity:.7;margin-bottom:2rem;font-size:.95rem;}
.bb-entry .entry-content > * + *{margin-top:1.2rem;}
.bb-entry .entry-content img{max-width:100%;height:auto;}
.bb-entry .entry-content a{text-decoration:underline;}


.bb-menu-toggle{display:none;background:rgba(255,255,255,0.10);border:1px solid rgba(255,255,255,0.22);color:#fff;border-radius:999px;padding:.6rem .9rem;cursor:pointer;font:inherit;}
.bb-menu-toggle:hover{background:rgba(255,255,255,0.14);}
@media (max-width: 768px){
  .bb-menu-toggle{display:inline-flex;align-items:center;gap:.5rem;}
  .nav-right{display:none;width:100%;}
  .nav-right.is-open{display:flex;}
  .header-content{align-items:flex-start;}

  /* Mobile menu layout */
  .nav-right nav ul,
  .nav-right .social-links ul{flex-direction:column;align-items:flex-start;gap:.25rem;}
  .nav-right nav li,
  .nav-right .social-links li{display:block;}
  .nav-right nav li:not(:last-child)::after,
  .nav-right .social-links li:not(:last-child)::after{content:none;}

  /* Mobile dropdowns: inline (not absolute) */
  .nav-right nav ul.sub-menu{
    position: static;
    min-width: 100%;
    margin-top: .35rem;
    margin-left: .65rem;
    box-shadow: none;
    backdrop-filter: none;
  }
}


.footer-column ul{list-style:none;margin:0;padding:0;}
.footer-column li{margin:0;padding:0;}
.footer-column li a{display:block;}


/* ==========================================================================
   BRIDGEBRAIN FRONT-PAGE LAYOUT OVERRIDES
   Scoped to body.bbma-theme to win specificity over any plugin or
   WP global-styles CSS. All layout-critical rules use !important as a
   last-resort defense against .is-layout-constrained injections.
   ========================================================================== */

/* --- Utility resets ---------------------------------------------------- */
body.bbma-theme .bb-front-page {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
}

/* Prevent WP from adding margin:auto / max-width to our top-level sections */
body.bbma-theme .bb-front-page > section,
body.bbma-theme .bb-front-page > div {
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* --- HERO: two-column grid ---------------------------------------------- */

/*
 * isolation:isolate creates a new stacking context so that
 * z-index:-1 on .hero-background is relative to .hero, not body.
 * Without this the background image disappears behind the page background.
 */
body.bbma-theme .hero {
  position: relative !important;
  isolation: isolate !important;
  height: 100vh !important;
  min-height: 800px !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  overflow: hidden !important;
}

body.bbma-theme .hero-background {
  position: absolute !important;
  inset: 0 !important;
  z-index: -1 !important;
  pointer-events: none !important;
}

body.bbma-theme .hero-background img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
}

/*
 * .hero-container MUST be position:relative + z-index:1 so it paints
 * above the z-index:-1 background. Without z-index:1 it may be treated
 * as z-index:auto which still paints above z-index:-1, BUT some browser
 * / plugin CSS can override this — being explicit is safer.
 */
body.bbma-theme .hero-container {
  position: relative !important;
  z-index: 1 !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 4rem !important;
  align-items: center !important;
  max-width: 1440px !important;
  width: 100% !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  box-sizing: border-box !important;
}

body.bbma-theme .hero-content,
body.bbma-theme .hero-video {
  min-width: 0 !important;      /* prevent grid blowout */
  box-sizing: border-box !important;
}

/* --- .container override ----------------------------------------------- */
body.bbma-theme .container {
  display: block !important;
  max-width: 1440px !important;
  margin: 0 auto !important;
  padding: 0 2rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* --- Identity + Trust: 3-column grid ----------------------------------- */
body.bbma-theme .bb-trust__inner {
  display: grid !important;
  grid-template-columns: 0.8fr 1.1fr 2fr !important;
  gap: clamp(16px, 2.4vw, 28px) !important;
  align-items: center !important;
}

body.bbma-theme .bb-trust__title {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
}

/* --- Persona Licensing: top 2-col + card 2-col ------------------------- */
body.bbma-theme .bb-plf__top {
  display: grid !important;
  grid-template-columns: 1.4fr 1fr !important;
  gap: clamp(14px, 2.2vw, 26px) !important;
  align-items: center !important;
}

body.bbma-theme .bb-plf__grid {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: clamp(14px, 2.2vw, 22px) !important;
}

/* --- PTP Protocols: 2-column panels ------------------------------------ */
body.bbma-theme .bb-protocols__wrap {
  display: grid !important;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr) !important;
  gap: clamp(16px, 3vw, 34px) !important;
  align-items: start !important;
  width: min(1160px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
}

/* --- Persona Integration: 2-column panels ------------------------------ */
body.bbma-theme .bb-integrate__inner {
  display: grid !important;
  grid-template-columns: 1.05fr 0.95fr !important;
  gap: clamp(18px, 3vw, 38px) !important;
  align-items: start !important;
  width: min(1160px, calc(100% - 40px)) !important;
  margin: 0 auto !important;
}

/* --- Ensure all grid children can shrink (prevents overflow blowout) --- */
body.bbma-theme .hero-container > *,
body.bbma-theme .bb-trust__inner > *,
body.bbma-theme .bb-plf__top > *,
body.bbma-theme .bb-plf__grid > *,
body.bbma-theme .bb-protocols__wrap > *,
body.bbma-theme .bb-integrate__inner > * {
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* --- section-header: keep centred 700px design ------------------------- */
body.bbma-theme .section-header {
  text-align: center !important;
  max-width: 700px !important;
  width: auto !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* --- footer layout fixes ----------------------------------------------- */
.footer-column ul { list-style: none; margin: 0; padding: 0; }
.footer-column li { margin: 0; padding: 0; }
.footer-column li a { display: block; }

/* ==========================================================================
   RESPONSIVE — stack at 980px (matches wireframe breakpoints)
   ========================================================================== */
@media (max-width: 980px) {
  body.bbma-theme .hero-container         { grid-template-columns: 1fr !important; gap: 2rem !important; }
  body.bbma-theme .bb-trust__inner        { grid-template-columns: 1fr !important; }
  body.bbma-theme .bb-plf__top            { grid-template-columns: 1fr !important; }
  body.bbma-theme .bb-plf__grid           { grid-template-columns: 1fr !important; }
  body.bbma-theme .bb-protocols__wrap     { grid-template-columns: 1fr !important; }
  body.bbma-theme .bb-integrate__inner    { grid-template-columns: 1fr !important; }
}

/* ───────────────────────────────────────────────────────────────
   Navigator fullscreen page ( /navigator/ )
   Ensures the Navigator shortcode can occupy the full viewport
   (minus the sticky header and footer).
   ─────────────────────────────────────────────────────────────── */

body.bb-nav-fullscreen .bb-page-wrap { padding-top: 0 !important; }

body.bb-nav-fullscreen #content.site-content {
  padding: 0;
  margin: 0;
}

body.bb-nav-fullscreen .bb-navigator-fullscreen {
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: calc(100vh - var(--bb-header-h, 0px) - var(--bb-footer-h, 0px));
  display: flex;
}

body.bb-nav-fullscreen .bb-navigator-fullscreen__inner {
  width: 100%;
  margin: 0;
  padding: 0;
  flex: 1;
}

/* Remove default top spacing some blocks add so the app can truly fill. */
body.bb-nav-fullscreen .bb-navigator-fullscreen__inner > * { margin-top: 0; }


/* ==========================================================================
   INNER PAGES, POSTS & BLOG ROLL — BridgeBrain Modern AI v1.0.7
   ========================================================================== */

/* ── Fix: remove excess spacer gap that was pushing content down ── */
.bb-page-wrap { padding-top: 0 !important; }

/* ── Page / Post Hero Banner ── */
.bb-page-hero {
  position: relative;
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

/* Featured image background */
.bb-page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.bb-page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.40) saturate(0.75);
  display: block;
}

/* Default gradient when no featured image */
.bb-page-hero__bg--default {
  background: linear-gradient(
    145deg,
    rgba(14, 10, 8, 1)    0%,
    rgba(28, 20, 12, 1)   40%,
    rgba(42, 30, 16, 0.9) 80%,
    rgba(20, 14, 8, 1)   100%
  );
}

/* Fade to dark at bottom so title is always readable */
.bb-page-hero__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to bottom,
    rgba(10, 8, 6, 0.10) 0%,
    rgba(10, 8, 6, 0.65) 60%,
    rgba(10, 8, 6, 0.96) 100%
  );
}

.bb-page-hero__inner {
  position: relative;
  z-index: 2;
  width: min(1200px, calc(100% - 4rem));
  margin: 0 auto;
  padding: 5rem 0 2.75rem;
}

.bb-page-hero__kicker {
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(214, 190, 150, 0.80);
  margin-bottom: 0.9rem;
  font-weight: 600;
}

.bb-page-hero__kicker a {
  color: rgba(214, 190, 150, 0.70);
  text-decoration: none;
  transition: color 0.2s;
}
.bb-page-hero__kicker a:hover { color: rgba(214, 190, 150, 1); }

.bb-page-hero__title {
  font-size: clamp(28px, 2rem + 1.8vw, 56px);
  font-weight: 700;
  color: rgba(245, 234, 214, 0.98);
  line-height: 1.12;
  letter-spacing: -0.025em;
  margin: 0 0 0.85rem;
  max-width: 860px;
}

.bb-page-hero__meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  font-size: 0.875rem;
  color: rgba(245, 234, 214, 0.58);
  margin-top: 0.4rem;
}
.bb-page-hero__meta-sep { opacity: 0.4; }

.bb-page-hero__sub {
  margin: 0.5rem 0 0;
  color: rgba(245, 234, 214, 0.55);
  font-size: 0.95rem;
}

/* ── Inner content wrapper ── */
.bb-inner-wrap {
  width: min(1200px, calc(100% - 4rem));
  margin: 0 auto;
  padding: 2.5rem 0 5rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.bb-inner-wrap.bb-has-sidebar.bb-sidebar-right {
  grid-template-columns: minmax(0, 1fr) 290px;
}
.bb-inner-wrap.bb-has-sidebar.bb-sidebar-left {
  grid-template-columns: 290px minmax(0, 1fr);
}

/* ── Glassmorphism content card ── */
.bb-content-glass {
  background: rgba(24, 18, 14, 0.74);
  border: 1px solid rgba(197, 168, 122, 0.14);
  border-radius: 24px;
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.50),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: clamp(1.75rem, 3.5vw, 3.5rem) clamp(1.75rem, 4vw, 4.5rem);
}

/* ── Entry typography ── */
.bb-entry-body {
  color: rgba(245, 234, 214, 0.86);
  font-size: clamp(15px, 0.95rem + 0.2vw, 18px);
  line-height: 1.78;
}

.bb-entry-body > *:first-child { margin-top: 0; }

.bb-entry-body h1,
.bb-entry-body h2,
.bb-entry-body h3,
.bb-entry-body h4,
.bb-entry-body h5,
.bb-entry-body h6 {
  color: rgba(245, 234, 214, 0.97);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.018em;
  margin: 2.2rem 0 0.8rem;
}

.bb-entry-body h2 { font-size: clamp(22px, 1.25rem + 0.9vw, 32px); }
.bb-entry-body h3 { font-size: clamp(18px, 1.05rem + 0.5vw, 24px); }
.bb-entry-body h4 { font-size: clamp(16px, 1rem + 0.3vw, 20px); }

.bb-entry-body p {
  margin: 0 0 1.35rem;
  color: rgba(245, 234, 214, 0.80);
}

.bb-entry-body a {
  color: rgba(214, 190, 150, 0.94);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(214, 190, 150, 0.32);
  transition: color 0.18s, text-decoration-color 0.18s;
}
.bb-entry-body a:hover {
  color: rgba(245, 234, 214, 1);
  text-decoration-color: rgba(214, 190, 150, 0.7);
}

.bb-entry-body ul,
.bb-entry-body ol {
  padding-left: 1.5em;
  margin: 0 0 1.35rem;
  color: rgba(245, 234, 214, 0.80);
}
.bb-entry-body li { margin: 0.45rem 0; line-height: 1.7; }
.bb-entry-body li::marker { color: rgba(214, 190, 150, 0.85); }

.bb-entry-body blockquote {
  margin: 2rem 0;
  padding: 1.25rem 1.75rem;
  border-left: 3px solid rgba(214, 190, 150, 0.45);
  background: rgba(214, 190, 150, 0.06);
  border-radius: 0 14px 14px 0;
  font-style: italic;
  color: rgba(245, 234, 214, 0.78);
  font-size: 1.05em;
  line-height: 1.7;
}
.bb-entry-body blockquote p:last-child { margin-bottom: 0; }

.bb-entry-body pre,
.bb-entry-body code {
  font-family: 'Fira Code', 'Cascadia Code', 'Consolas', monospace;
  font-size: 0.88em;
}
.bb-entry-body code {
  background: rgba(10, 8, 6, 0.55);
  border: 1px solid rgba(197, 168, 122, 0.13);
  border-radius: 6px;
  padding: 0.14em 0.48em;
  color: rgba(245, 234, 214, 0.88);
}
.bb-entry-body pre {
  background: rgba(10, 8, 6, 0.60);
  border: 1px solid rgba(197, 168, 122, 0.12);
  border-radius: 14px;
  padding: 1.4rem 1.6rem;
  overflow-x: auto;
  margin: 0 0 1.35rem;
  line-height: 1.65;
  color: rgba(245, 234, 214, 0.88);
}
.bb-entry-body pre code {
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
}

.bb-entry-body hr {
  margin: 2.75rem 0;
  border: none;
  height: 1px;
  background: rgba(197, 168, 122, 0.18);
}

.bb-entry-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.5rem;
  font-size: 0.93em;
}
.bb-entry-body th,
.bb-entry-body td {
  padding: 0.7rem 1rem;
  border: 1px solid rgba(197, 168, 122, 0.15);
  text-align: left;
  vertical-align: top;
}
.bb-entry-body th {
  background: rgba(197, 168, 122, 0.10);
  color: rgba(245, 234, 214, 0.92);
  font-weight: 600;
  font-size: 0.85em;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bb-entry-body img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid rgba(197, 168, 122, 0.10);
  margin: 0.5rem 0;
}

.bb-entry-body figure { margin: 1.5rem 0; }
.bb-entry-body figcaption {
  font-size: 0.85em;
  color: rgba(245, 234, 214, 0.50);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* ── Post tags ── */
.bb-post-tags {
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(197, 168, 122, 0.14);
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.bb-post-tags a {
  display: inline-flex;
  padding: 0.28em 0.82em;
  border-radius: 999px;
  background: rgba(214, 190, 150, 0.09);
  border: 1px solid rgba(214, 190, 150, 0.22);
  color: rgba(214, 190, 150, 0.88);
  text-decoration: none;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  transition: all 0.18s;
}
.bb-post-tags a:hover {
  background: rgba(214, 190, 150, 0.17);
  border-color: rgba(214, 190, 150, 0.40);
  color: rgba(245, 234, 214, 0.95);
}

/* ── Post navigation ── */
.bb-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}
.bb-post-nav__item {
  padding: 1.25rem 1.5rem;
  background: rgba(24, 18, 14, 0.55);
  border: 1px solid rgba(197, 168, 122, 0.12);
  border-radius: 16px;
  text-decoration: none;
  display: block;
  transition: all 0.22s;
}
.bb-post-nav__item:hover {
  border-color: rgba(197, 168, 122, 0.30);
  background: rgba(42, 30, 18, 0.50);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.bb-post-nav__item--prev { text-align: left; }
.bb-post-nav__item--next { text-align: right; }
.bb-post-nav__dir {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(214, 190, 150, 0.70);
  margin-bottom: 0.4rem;
  font-weight: 700;
}
.bb-post-nav__title {
  color: rgba(245, 234, 214, 0.85);
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.35;
}

/* ── Blog roll ── */
.bb-blog-hero-banner { min-height: 240px; align-items: center; }
.bb-blog-hero-banner .bb-page-hero__inner { text-align: center; }
.bb-blog-hero-banner .bb-page-hero__title { margin-left: auto; margin-right: auto; }

.bb-blog-wrap {
  width: min(1200px, calc(100% - 4rem));
  margin: 0 auto;
  padding-bottom: 5rem;
}

.bb-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
  margin-top: 2rem;
}

/* ── Blog post card ── */
.bb-post-card {
  background: rgba(24, 18, 14, 0.74);
  border: 1px solid rgba(197, 168, 122, 0.14);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 44px rgba(0,0,0,0.42);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.bb-post-card:hover {
  border-color: rgba(197, 168, 122, 0.28);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  transform: translateY(-3px);
}

/* Thumbnail wrapper — fixed aspect ratio, no gaps */
.bb-post-card__img-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  flex-shrink: 0;
  background: linear-gradient(135deg, rgba(22, 16, 10, 1) 0%, rgba(44, 32, 18, 1) 100%);
  display: block;
  line-height: 0; /* remove inline gap */
}
.bb-post-card__img-wrap a {
  display: block;
  width: 100%;
  height: 100%;
  line-height: 0;
}
.bb-post-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
  border-radius: 0 !important;
  border: none !important;
  margin: 0;
}
.bb-post-card:hover .bb-post-card__img-wrap img { transform: scale(1.04); }

.bb-post-card__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: rgba(245, 234, 214, 0.12);
  text-decoration: none;
  background: linear-gradient(135deg, rgba(22, 16, 10, 1), rgba(52, 38, 20, 1));
}

.bb-post-card__body {
  padding: 1.5rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.bb-post-card__meta {
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(214, 190, 150, 0.68);
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.bb-post-card__title {
  font-size: clamp(16px, 1rem + 0.3vw, 20px);
  font-weight: 700;
  line-height: 1.28;
  color: rgba(245, 234, 214, 0.96);
  margin: 0 0 0.75rem;
  letter-spacing: -0.012em;
}
.bb-post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.18s;
}
.bb-post-card__title a:hover { color: rgba(214, 190, 150, 0.95); }

.bb-post-card__excerpt {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(245, 234, 214, 0.60);
  margin-bottom: 1.4rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Strip default excerpt <p> margin */
.bb-post-card__excerpt p { margin: 0; }

.bb-post-card__read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: rgba(214, 190, 150, 0.88);
  text-decoration: none;
  border-bottom: 1px solid rgba(214, 190, 150, 0.24);
  padding-bottom: 2px;
  transition: gap 0.2s, color 0.2s, border-color 0.2s;
  align-self: flex-start;
}
.bb-post-card__read-more:hover {
  color: rgba(245, 234, 214, 1);
  border-color: rgba(214, 190, 150, 0.60);
  gap: 10px;
}

/* Blog empty state */
.bb-blog-empty {
  text-align: center;
  padding: 5rem 2rem;
  color: rgba(245, 234, 214, 0.45);
  font-size: 1rem;
}

/* Pagination */
.bb-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.bb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 0.9rem;
  border-radius: 10px;
  background: rgba(24, 18, 14, 0.72);
  border: 1px solid rgba(197, 168, 122, 0.14);
  color: rgba(245, 234, 214, 0.72);
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.18s;
}
.bb-pagination .page-numbers:hover,
.bb-pagination .page-numbers.current {
  background: rgba(214, 190, 150, 0.13);
  border-color: rgba(214, 190, 150, 0.36);
  color: rgba(245, 234, 214, 0.97);
}

/* ── Sidebar ── */
.bb-inner-sidebar > * + * { margin-top: 1.25rem; }
.bb-inner-sidebar .widget,
.bb-inner-sidebar section.widget {
  background: rgba(24, 18, 14, 0.65) !important;
  border: 1px solid rgba(197, 168, 122, 0.12) !important;
  border-radius: 18px !important;
  padding: 1.5rem !important;
  box-shadow: 0 14px 36px rgba(0,0,0,0.35) !important;
  backdrop-filter: blur(10px) !important;
}
.bb-inner-sidebar .widget-title {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(214, 190, 150, 0.82);
  margin-bottom: 0.9rem;
  font-weight: 700;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid rgba(197, 168, 122, 0.12);
}
.bb-inner-sidebar a { color: rgba(245, 234, 214, 0.75); text-decoration: none; }
.bb-inner-sidebar a:hover { color: rgba(214, 190, 150, 0.95); }
.bb-inner-sidebar ul { list-style: none; margin: 0; padding: 0; }
.bb-inner-sidebar li { margin: 0.4rem 0; font-size: 0.9rem; color: rgba(245, 234, 214, 0.72); }

/* ── Footer bottom bar ── */
.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.28);
}
.footer-column h4 { color: rgba(245, 234, 214, 0.55); }
.footer-column a  { color: rgba(245, 234, 214, 0.40); transition: color 0.2s; }
.footer-column a:hover { color: rgba(245, 234, 214, 0.75); }

/* ── Responsive ── */
@media (max-width: 900px) {
  .bb-inner-wrap.bb-has-sidebar.bb-sidebar-right,
  .bb-inner-wrap.bb-has-sidebar.bb-sidebar-left { grid-template-columns: 1fr; }
  .bb-post-nav { grid-template-columns: 1fr; }
  .bb-blog-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .bb-page-hero__title  { font-size: 1.8rem; }
  .bb-content-glass     { padding: 1.5rem 1.25rem; }
  .bb-post-nav__item--next { text-align: left; }
  .bb-blog-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}
