/* ============================================
   BBI — Brand Infrastructure Built to Scale
   Master Stylesheet
   ============================================ */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--black);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* === COLOR PALETTE === */
:root {
    --black: #0D0D0D;
    --dark: #111111;
    --card-dark: #1A1A1A;
    --charcoal: #2A2A2A;
    --dark-gray: #3A3A3A;
    --dim: #555555;
    --gray: #888888;
    --light-gray: #CCCCCC;
    --off-white: #F5F5F5;
    --warm-white: #FAFAFA;
    --white: #FFFFFF;

    /* Pillar accents */
    --p1: #7A9BB5;        /* Own It (Content) */
    --p2: #7EB89A;        /* Merchandising (Commerce) */
    --p3: #B0A080;        /* Revenue Operations */
    --p1-light: #A3BFD1;  /* Own It tint */
    --p2-light: #A8D4BC;  /* Merchandising tint */
    --p3-light: #C8BC9E;  /* RevOps tint */

    /* Accent for CTAs */
    --accent: #FFFFFF;
    --accent-hover: #E8E8E8;

    /* Layout */
    --max-width: 1200px;
    --content-width: 900px;
    --nav-height: 72px;
    --section-pad: 120px 0;
    --section-pad-mobile: 80px 0;
}

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
    font-size: 1rem;
    line-height: 1.75;
    color: var(--dim);
}

.label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
}

/* === LAYOUT UTILITIES === */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.container--narrow {
    max-width: var(--content-width);
}

.section {
    padding: var(--section-pad);
}

.section--dark {
    background-color: var(--black);
    color: var(--white);
}

.section--dark p { color: var(--light-gray); }
.section--dark .label { color: var(--gray); }

.section--charcoal {
    background-color: var(--charcoal);
    color: var(--white);
}
.section--charcoal p { color: var(--light-gray); }

.section--light {
    background-color: var(--off-white);
}

.section--white {
    background-color: var(--white);
}

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

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    margin-bottom: 16px;
}

.section-header p {
    max-width: 640px;
    margin: 0 auto;
    font-size: 1.125rem;
}

/* === NAVIGATION === */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: var(--black);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    height: var(--nav-height);
}

.site-nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.nav-logo img {
    height: 36px;
    width: auto;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-links a {
    color: var(--light-gray);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-links a.nav-cta {
    display: inline-block;
    padding: 10px 24px;
    background-color: var(--white);
    color: var(--black);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-links a.nav-cta:hover {
    background-color: var(--accent-hover);
    color: var(--black);
    transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}
.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--white);
    transition: 0.3s ease;
}

/* === HERO === */
.hero {
    background-color: var(--black);
    color: var(--white);
    padding-top: calc(var(--nav-height) + 80px);
    padding-bottom: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.hero-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-bottom: 60px;
}

.hero-logo {
    height: 80px;
    width: auto;
    margin-bottom: 48px;
}

.hero h1 {
    max-width: 800px;
    margin-bottom: 20px;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hero-sub {
    max-width: 600px;
    font-size: 1.125rem;
    color: var(--light-gray);
    margin-bottom: 40px;
    line-height: 1.7;
}

/* CTA buttons */
.btn {
    display: inline-block;
    padding: 16px 40px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: all 0.25s ease;
    cursor: pointer;
    border: none;
}

.btn--primary {
    background-color: var(--white);
    color: var(--black);
}
.btn--primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-2px);
}

.btn--outline {
    background-color: transparent;
    color: var(--white);
    border: 1px solid rgba(255,255,255,0.3);
}
.btn--outline:hover {
    border-color: var(--white);
    transform: translateY(-2px);
}

.btn--dark {
    background-color: var(--black);
    color: var(--white);
}
.btn--dark:hover {
    background-color: var(--charcoal);
    transform: translateY(-2px);
}

/* Stats strip */
.stats-strip {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    padding: 48px 40px;
    border-top: 1px solid rgba(255,255,255,0.08);
    max-width: var(--max-width);
    margin: 0 auto;
    width: 100%;
}

.stat { text-align: center; }

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--gray);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* === ARCHITECTURE PREVIEW (homepage) === */
.arch-preview {
    padding: 80px 0;
    background-color: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.05);
}

.arch-preview-diagram {
    max-width: 900px;
    margin: 0 auto 40px;
}

/* === PILLAR PREVIEW CARDS === */
.pillar-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.pillar-card {
    background-color: var(--card-dark);
    padding: 36px;
    border-top: 3px solid;
    transition: transform 0.2s ease;
}

.pillar-card:hover { transform: translateY(-4px); }

.pillar-card--p1 { border-top-color: var(--p1); }
.pillar-card--p2 { border-top-color: var(--p2); }
.pillar-card--p3 { border-top-color: var(--p3); }

.pillar-card .label { margin-bottom: 12px; }

.pillar-card h3 {
    color: var(--white);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.pillar-card p {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.65;
}

/* === ABOUT PAGE === */
.about-section {
    padding: 48px 0;
}

.about-section + .about-section {
    border-top: 1px solid var(--off-white);
}

.about-section h3 {
    margin-bottom: 20px;
}

.about-section p + p {
    margin-top: 16px;
}

.quote-block {
    padding: 32px 40px;
    background-color: var(--off-white);
    border-left: 3px solid var(--black);
    margin: 32px 0;
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--charcoal);
    font-style: italic;
}

/* Founder card */
.founder-card {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 32px;
}

.founder-photo {
    width: 200px;
    height: 240px;
    background-color: var(--off-white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8125rem;
    color: var(--gray);
    text-align: center;
    border: 1px solid var(--light-gray);
}

.founder-details h3 {
    margin-bottom: 4px;
}
.founder-details .label {
    margin-bottom: 20px;
    display: block;
}

.founder-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.founder-stat {
    padding: 16px 20px;
    background-color: var(--off-white);
    font-size: 0.875rem;
}

.founder-stat strong {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}

/* Timeline */
.timeline {
    position: relative;
    padding-left: 40px;
    margin-top: 40px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: var(--light-gray);
}

.timeline-item {
    position: relative;
    padding-bottom: 32px;
}

.timeline-item:last-child { padding-bottom: 0; }

.timeline-item::before {
    content: '';
    position: absolute;
    left: -36px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background-color: var(--black);
    border: 2px solid var(--white);
}

.timeline-item.active::before {
    background-color: var(--p1);
    box-shadow: 0 0 0 4px rgba(122, 155, 181, 0.2);
}

.timeline-date {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--black);
    margin-bottom: 4px;
}

.timeline-text {
    font-size: 0.9375rem;
    color: var(--dim);
}

/* === BRANDS PAGE === */
.pillar-section {
    padding: 64px 0;
}

.pillar-section + .pillar-section {
    border-top: 1px solid var(--off-white);
}

.pillar-section--dark + .pillar-section--dark {
    border-top-color: rgba(255,255,255,0.06);
}

.pillar-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.pillar-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pillar-dot--p1 { background-color: var(--p1); }
.pillar-dot--p2 { background-color: var(--p2); }
.pillar-dot--p3 { background-color: var(--p3); }

.pillar-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.pillar-content p + p {
    margin-top: 16px;
}

.pillar-detail-card {
    background-color: var(--off-white);
    padding: 32px;
}

.pillar-detail-card h4 {
    font-size: 0.9375rem;
    margin-bottom: 12px;
}

.pillar-detail-card p {
    font-size: 0.9375rem;
}

.status-badge {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.status-badge--active {
    background-color: rgba(126, 184, 154, 0.15);
    color: #4A8B6A;
}
.status-badge--launching {
    background-color: rgba(122, 155, 181, 0.15);
    color: #5A8BA8;
}
.status-badge--scaling {
    background-color: rgba(176, 160, 128, 0.15);
    color: #8A7A58;
}

/* Revenue Ops callout */
.revops-callout {
    background-color: var(--off-white);
    border-left: 3px solid var(--p3);
    padding: 40px;
    margin-top: 16px;
}

.revops-callout p {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--charcoal);
}

/* === MODEL PAGE === */
/* Architecture Diagram */
.arch-diagram {
    max-width: 960px;
    margin: 0 auto 64px;
}

.arch-layer {
    margin-bottom: 2px;
}

.arch-layer-label {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray);
    margin-bottom: 8px;
}

.arch-layer-content {
    display: grid;
    gap: 2px;
}

.arch-layer-content--3 {
    grid-template-columns: repeat(3, 1fr);
}

.arch-layer-content--7 {
    grid-template-columns: repeat(7, 1fr);
}

.arch-block {
    padding: 20px 16px;
    text-align: center;
    font-size: 0.8125rem;
    font-weight: 600;
}

.arch-block--p1 { background-color: var(--p1); color: var(--white); }
.arch-block--p2 { background-color: var(--p2); color: var(--white); }
.arch-block--p3 { background-color: var(--p3); color: var(--white); }
.arch-block--infra { background-color: var(--charcoal); color: var(--light-gray); }

.arch-block--spinoff {
    padding: 14px 12px;
    font-size: 0.75rem;
    font-weight: 500;
}
.arch-block--spinoff.p1 { background-color: var(--p1-light); color: var(--black); }
.arch-block--spinoff.p2 { background-color: var(--p2-light); color: var(--black); }
.arch-block--spinoff.p3 { background-color: var(--p3-light); color: var(--black); }

.arch-connector {
    text-align: center;
    padding: 8px 0;
    color: var(--gray);
    font-size: 1.25rem;
}

/* Infrastructure grid */
.infra-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.infra-item {
    padding: 28px;
    background-color: var(--off-white);
    border-left: 3px solid var(--light-gray);
}

.infra-item h4 {
    font-size: 0.9375rem;
    margin-bottom: 8px;
}

.infra-item p {
    font-size: 0.875rem;
}

/* Flywheel */
.flywheel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.flywheel-item {
    padding: 24px;
    background-color: var(--off-white);
    border-left: 3px solid;
    font-size: 0.9375rem;
    color: var(--dim);
    line-height: 1.7;
}

.flywheel-item--p1 { border-left-color: var(--p1); }
.flywheel-item--p2 { border-left-color: var(--p2); }
.flywheel-item--p3 { border-left-color: var(--p3); }
.flywheel-item--all { border-left-color: var(--black); }

/* Capital callout */
.capital-callout {
    background-color: var(--off-white);
    padding: 48px;
    text-align: center;
    margin-top: 48px;
}

.capital-callout h3 { margin-bottom: 16px; }
.capital-callout p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.0625rem;
    line-height: 1.8;
}

/* === CONTACT PAGE === */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 64px;
}

.contact-card {
    padding: 32px;
    background-color: var(--card-dark);
}

.contact-card h3 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 12px;
}

.contact-card p {
    font-size: 0.9375rem;
    color: var(--gray);
    line-height: 1.65;
    margin-bottom: 16px;
}

.contact-card a {
    color: var(--white);
    font-weight: 600;
    font-size: 0.875rem;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    padding-bottom: 2px;
    transition: border-color 0.2s ease;
}
.contact-card a:hover {
    border-bottom-color: var(--white);
}

.contact-location {
    text-align: center;
    padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.contact-location h3 {
    color: var(--white);
    margin-bottom: 8px;
}

/* === CONTACT FORM === */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--light-gray);
    letter-spacing: 0.02em;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 14px 16px;
    background-color: var(--card-dark);
    border: 1px solid var(--dark-gray);
    color: var(--white);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--light-gray);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23888' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* === FOOTER === */
.site-footer {
    background-color: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 48px 0;
    color: var(--gray);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.footer-logo img {
    height: 28px;
    width: auto;
}

.footer-tagline {
    font-size: 0.8125rem;
    color: var(--gray);
    border-left: 1px solid rgba(255,255,255,0.1);
    padding-left: 24px;
}

.footer-center {
    display: flex;
    gap: 32px;
}

.footer-center a {
    font-size: 0.8125rem;
    color: var(--gray);
    transition: color 0.2s ease;
}
.footer-center a:hover { color: var(--white); }

.footer-right {
    font-size: 0.75rem;
    color: var(--dim);
    text-align: right;
}

.footer-right a {
    color: var(--gray);
    transition: color 0.2s ease;
}
.footer-right a:hover { color: var(--white); }

/* === AUDIENCE ROUTING === */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

/* === IMAGE PLACEHOLDERS === */
.placeholder-img {
    background-color: var(--off-white);
    border: 1px dashed var(--light-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-size: 0.8125rem;
    text-align: center;
    padding: 20px;
}

.placeholder-img--dark {
    background-color: var(--card-dark);
    border-color: var(--dark-gray);
    color: var(--dim);
}

/* === DIVIDER === */
.divider {
    width: 48px;
    height: 2px;
    background-color: var(--black);
    margin: 0 auto 24px;
}

.section--dark .divider {
    background-color: var(--gray);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .pillar-content { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; gap: 24px; text-align: center; }
    .footer-left { flex-direction: column; }
    .footer-tagline { border-left: none; padding-left: 0; }
}

/* === CREATOR & PRODUCT IMAGE GRIDS === */
.creator-grid img,
.product-gallery img {
    transition: opacity 0.3s ease;
}
.creator-grid img:hover,
.product-gallery img:hover {
    opacity: 1 !important;
}

/* Founder photo as real image */
img.founder-photo {
    width: 200px;
    height: 240px;
    object-fit: cover;
    border: none;
    display: block;
}

@media (max-width: 768px) {
    :root {
        --section-pad: 80px 0;
        --nav-height: 64px;
    }

    .container { padding: 0 24px; }

    .nav-links { display: none; }
    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background-color: var(--dark);
        padding: 24px;
        gap: 16px;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .nav-cta { width: 100%; text-align: center; }
    .hamburger { display: flex; }

    .hero { padding-top: calc(var(--nav-height) + 48px); }
    .hero-logo { height: 56px; margin-bottom: 32px; }

    .stats-strip {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
        padding: 32px 24px;
    }

    .pillar-cards { grid-template-columns: 1fr; }

    .founder-card {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    img.founder-photo {
        width: 160px;
        height: 200px;
    }

    .arch-layer-content--7 {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-grid { grid-template-columns: 1fr; }
    .audience-grid { grid-template-columns: 1fr; }
    .heisman-grid { grid-template-columns: repeat(2, 1fr) !important; }
    .creator-grid { grid-template-columns: repeat(3, 1fr) !important; }
    .footer-center { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
    .stats-strip { grid-template-columns: 1fr; }

    .stat-number { font-size: 1.5rem; }

    .arch-layer-content--3 {
        grid-template-columns: 1fr;
    }
    .arch-layer-content--7 {
        grid-template-columns: repeat(2, 1fr);
    }

    .infra-grid { grid-template-columns: 1fr; }
    .flywheel-grid { grid-template-columns: 1fr; }
    .founder-stats { grid-template-columns: 1fr; }
    .creator-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
