@import url('https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600&family=DM+Serif+Display:ital@0;1&display=swap');

:root {
    --bg-dark: #000000;
    --bg-darker: #020202;
    --text-main: #e0e0e0;
    --text-muted: #888888;
    --accent: #ffffff;
    --glass-bg: rgba(20, 20, 20, 0.4);
    --glass-border: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'DM Sans', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-weight: 400;
    font-size: 16px;
    line-height: 1.65;
    overflow-x: hidden;
}

h1 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 48px;
    line-height: 1.1;
    letter-spacing: -0.02em;
}

h2 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

h4 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.mono, .label, .eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.text-gradient {
    color: var(--accent);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(12px);
    z-index: 1000;
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.logo .highlight {
    color: var(--text-muted);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

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

/* Dropdown Menu */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 15px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(10px);
    min-width: 220px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.8);
    z-index: 1000;
    border: 1px solid var(--glass-border);
    border-radius: 4px;
    padding: 0.5rem 0;
}

/* Invisible bridge to prevent hover loss when moving mouse to menu */
.dropdown-menu::before {
    content: "";
    position: absolute;
    top: -20px;
    left: 0;
    width: 100%;
    height: 20px;
}

.dropdown-menu a {
    color: var(--text-muted);
    padding: 12px 20px;
    text-decoration: none;
    display: block;
    text-align: left;
    font-size: 0.8rem;
    border-bottom: 1px solid rgba(255,255,255,0.02);
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background-color: var(--glass-bg);
    color: var(--accent);
}

@keyframes fadeDropdown {
    from { opacity: 0; transform: translateX(-50%) translateY(5px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

.dropdown:hover .dropdown-menu,
.dropdown-menu.show {
    display: block;
    animation: fadeDropdown 0.2s ease forwards;
}

/* Buttons */
button, .btn, .btn-primary, .btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    text-transform: uppercase;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
    border: 1px solid var(--glass-border);
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-dark);
    border-color: var(--accent);
}

.btn-primary:hover {
    background: transparent;
    color: var(--accent);
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
}

.btn-secondary:hover {
    background: var(--glass-bg);
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    position: relative;
}

.hero-content {
    max-width: 1200px;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions { display: flex; gap: 1rem; }

/* The Interactive Black Bubble Canvas */
.hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Layout & Utils */
.section { padding: 8rem 5%; border-top: 1px solid var(--glass-border); }
.container { max-width: 1000px; margin: 0 auto; }
.section-title { font-size: 2.5rem; margin-bottom: 3rem; }
.section-label { margin-bottom: 1rem; color: var(--text-muted); }

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-muted);
}

.about-text strong {
    color: var(--text-main);
    font-weight: 400;
}

.taxonomy-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.taxonomy-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 4px;
}

.taxonomy-card h4 {
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.taxonomy-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Services Matrix */
.services-matrix {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.service-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 4px;
}

.service-title {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1rem;
}

.service-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 0.5rem;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-transform: uppercase;
    transition: color 0.3s;
    padding: 0.5rem 0;
}

.tab-btn:hover {
    color: var(--text-main);
}

.tab-btn.active {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    margin-bottom: -0.5rem;
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

.tab-content p {
    color: var(--text-muted);
    line-height: 1.7;
}

.tab-content strong {
    color: var(--text-main);
    font-weight: 600;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Quiz Overlay */
.quiz-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
    overflow-y: auto;
}

.quiz-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.quiz-container {
    width: 100%;
    max-width: 800px;
    padding: 2rem 5%;
    position: relative;
    min-height: 400px;
    margin: auto;
}

.close-btn {
    position: absolute;
    top: 0; right: 5%;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover { color: var(--accent); }

.progress-bar-container {
    width: 100%;
    height: 4px;
    background: rgba(255,255,255,0.1);
    margin: 2rem 0;
    border-radius: 2px;
}

.progress-bar {
    height: 100%;
    background: var(--accent);
    width: 0%;
    transition: width 0.4s ease;
}

/* Quiz Content Styles */
.quiz-question-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    line-height: 1.3;
}

.quiz-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quiz-option {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 1.5rem;
    border-radius: 4px;
    color: var(--text-main);
    text-align: left;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-option:hover {
    border-color: var(--accent);
    transform: translateX(5px);
}

/* Form Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group input, .form-group select {
    width: 100%;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-main);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    border-radius: 4px;
}

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

/* Dynamic Theme Colors */
.quiz-container[data-theme="elder"] { --theme-accent: #f59e0b; }
.quiz-container[data-theme="villager"] { --theme-accent: #06b6d4; }
.quiz-container[data-theme="trailblazer"] { --theme-accent: #8b5cf6; }

.quiz-result-header {
    text-align: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
}

.quiz-result-title {
    font-size: 4rem;
    margin-bottom: 1rem;
    color: var(--theme-accent);
}

.identity-statement {
    font-size: 1.5rem;
    color: var(--text-main);
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.main-desc {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto;
}

.result-section {
    margin-bottom: 4rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-top: 3px solid var(--theme-accent);
    padding: 3rem;
    border-radius: 8px;
}

.result-section h3 {
    font-size: 22px;
    margin-bottom: 2rem;
    color: var(--theme-accent);
    text-transform: uppercase;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    line-height: 1.3;
}

.snapshot-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.snapshot-item h4 {
    color: var(--text-main);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.snapshot-item p {
    color: var(--text-muted);
}

.list-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.list-item h4 {
    color: var(--text-main);
    margin-bottom: 0.25rem;
}

.list-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.cta-section {
    text-align: center;
    padding: 4rem 2rem;
    background: rgba(255,255,255,0.02);
    border: 1px solid var(--theme-accent);
    border-radius: 8px;
    margin-top: 4rem;
}

.cta-section h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.cta-section p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

@media(min-width: 768px) {
    .snapshot-grid { grid-template-columns: 1fr 1fr; }
    .list-grid { grid-template-columns: 1fr 1fr; }
}
/* Black Bubble Agent (Branded Chatbot) */
.bb-agent-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    font-family: 'DM Sans', sans-serif;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.bb-agent-container.visible {
    opacity: 1;
    transform: translateY(0);
}

.bb-agent-toggle {
    width: 65px;
    height: 65px;
    min-width: 65px;
    min-height: 65px;
    padding: 0;
    box-sizing: border-box;
    flex-shrink: 0;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 50%;
    background: rgba(24, 169, 153, 0.01); /* invisible fill to catch clicks */
    border: 2px solid var(--bb-accent-teal);
    cursor: pointer;
    box-shadow: 0 4px 25px rgba(0,0,0,0.8), 0 0 20px rgba(24, 169, 153, 0.4);
    transition: all 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    animation: agentPulse 2.5s ease-in-out infinite;
}

.bb-agent-toggle:hover {
    box-shadow: 0 0 30px rgba(24, 169, 153, 0.6);
    transform: translateY(-2px) scale(1.05);
    animation: none;
}

@keyframes agentPulse {
    0%, 100% { box-shadow: 0 4px 25px rgba(0,0,0,0.8), 0 0 20px rgba(24, 169, 153, 0.4); }
    50% { box-shadow: 0 4px 25px rgba(0,0,0,0.8), 0 0 35px rgba(24, 169, 153, 0.7); transform: scale(1.02); }
}

.bb-agent-window {
    display: none;
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 380px;
    height: 550px;
    background: #1A1A1A; /* Hardcoded to prevent iOS Safari transparency bug */
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border: 1px solid var(--bb-border);
    border-radius: 4px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.9), 0 0 20px rgba(24,169,153,0.05);
    flex-direction: column;
    overflow: hidden;
    animation: fadeIn 0.3s ease;
}

.bb-agent-window.open {
    display: flex;
}

.bb-agent-header {
    padding: 1.25rem;
    background: var(--bb-bg-dark);
    border-bottom: 1px solid var(--bb-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bb-agent-messages {
    flex: 1;
    padding: 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.bb-msg {
    font-size: 0.95rem;
    line-height: 1.5;
    max-width: 90%;
    white-space: pre-wrap;
    animation: fadeIn 0.3s ease;
}

.bb-msg.bot {
    color: var(--bb-text-main);
    align-self: flex-start;
}

.bb-msg.user {
    color: var(--bb-bg-dark);
    align-self: flex-end;
    background: var(--bb-accent-amber);
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border-bottom-right-radius: 2px;
    font-weight: 500;
}

.bb-agent-controls {
    padding: 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.bb-quick-reply {
    background: transparent;
    border: 1px solid var(--bb-border);
    color: var(--bb-text-main);
    padding: 0.8rem 1rem;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
    border-radius: 4px;
}

.bb-quick-reply:hover {
    border-color: var(--bb-accent-amber);
    background: rgba(255,255,255,0.02);
}

.bb-input-container {
    padding: 1rem;
    border-top: 1px solid var(--bb-border);
    background: var(--bb-bg-dark);
    display: flex;
    gap: 0.5rem;
}

.bb-input {
    flex: 1;
    background: var(--bb-bg-surface);
    border: 1px solid var(--bb-border);
    color: var(--bb-text-main);
    padding: 0.8rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s;
}

.bb-input:focus { border-color: var(--bb-accent-amber); }

.bb-submit {
    background: var(--bb-accent-teal);
    color: var(--bb-bg-dark);
    border: none;
    padding: 0 1.2rem;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    transition: opacity 0.3s;
}

.bb-submit:hover { opacity: 0.9; }

/* ===== ABOUT PAGE COMPONENTS ===== */

/* About Hero */
.about-hero {
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 0 5%;
    padding-top: 120px;
    position: relative;
    border-bottom: 1px solid var(--glass-border);
}

.about-hero-content {
    max-width: 780px;
    z-index: 2;
}

.about-hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.03em;
}

.about-hero-content .subheadline {
    font-size: 1.3rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 1rem;
    max-width: 650px;
}

.about-hero-content .supporting-line {
    font-size: 1.05rem;
    color: var(--text-main);
    font-style: italic;
    margin-bottom: 2.5rem;
    opacity: 0.7;
}

/* Narrative Text Sections */
.narrative-section {
    padding: 6rem 5%;
    border-top: 1px solid var(--glass-border);
}

.narrative-container {
    max-width: 760px;
    margin: 0 auto;
}

.narrative-container h2 {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
}

.narrative-container p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.narrative-container p strong {
    color: var(--text-main);
    font-weight: 500;
}

.narrative-container ul {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.narrative-container ul li {
    font-size: 1.05rem;
    color: var(--text-muted);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.6;
}

.narrative-container ul li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--text-main);
    opacity: 0.4;
}

.narrative-break {
    font-size: 1.15rem;
    color: var(--text-main) !important;
    margin-top: 2rem !important;
    font-weight: 400;
}

/* Kernel Diagram */
.kernel-diagram {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 3rem 0;
    gap: 0;
}

.kernel-layer {
    text-align: center;
    padding: 1.2rem 2.5rem;
    border: 1px solid var(--glass-border);
    position: relative;
    transition: all 0.3s ease;
    width: 100%;
    max-width: 500px;
    cursor: pointer;
}

.kernel-layer:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.02);
}

.kernel-layer .layer-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.kernel-layer .layer-name {
    font-size: 1.1rem;
    color: var(--text-main);
}

.kernel-layer.active {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.25);
}

.kernel-layer.active .layer-name {
    font-weight: 600;
}

.kernel-layer.active .layer-label {
    color: var(--text-main);
}

/* Kernel Detail Panels */
.kernel-details {
    margin-top: 2rem;
    margin-bottom: 1rem;
    position: relative;
    min-height: 120px;
}

.kernel-detail {
    display: none;
    animation: fadeIn 0.4s ease;
    padding: 2rem;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-left: 3px solid rgba(255,255,255,0.2);
    border-radius: 4px;
}

.kernel-detail.active {
    display: block;
}

.kernel-detail h4 {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
    color: var(--text-main);
    font-weight: 500;
}

.kernel-detail p {
    font-size: 1rem !important;
    color: var(--text-muted);
    line-height: 1.7 !important;
    margin-bottom: 0 !important;
}

/* Archetype Cards */
.archetype-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 3rem 0;
}

.archetype-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem 2rem;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.archetype-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transition: background 0.3s ease;
}

.archetype-card:hover::before {
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
}

.archetype-card:hover {
    border-color: rgba(255,255,255,0.12);
    transform: translateY(-2px);
}

.archetype-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.archetype-card .archetype-tagline {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.archetype-card .archetype-tension {
    font-size: 0.85rem;
    color: var(--text-main);
    opacity: 0.5;
    font-style: italic;
}

/* Capability Grid */
.capability-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin: 2.5rem 0;
}

.capability-item {
    padding: 1.5rem;
    border-left: 2px solid rgba(255,255,255,0.08);
    transition: border-color 0.3s ease;
}

.capability-item:hover {
    border-left-color: rgba(255,255,255,0.25);
}

.capability-item p {
    font-size: 1rem !important;
    margin-bottom: 0 !important;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Philosophy List */
.philosophy-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.philosophy-list li {
    font-size: 1.1rem;
    color: var(--text-muted);
    padding: 0.75rem 0;
    padding-left: 2rem;
    position: relative;
    line-height: 1.6;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.philosophy-list li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--text-main);
    opacity: 0.3;
}

/* Closing CTA */
.closing-cta {
    text-align: center;
    padding: 6rem 5%;
    border-top: 1px solid var(--glass-border);
    background: rgba(255,255,255,0.01);
}

.closing-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.closing-cta p {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.closing-cta .cta-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Responsive & Mobile Optimization */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

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

@media (max-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .hero-visual { width: 350px; height: 350px; }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero {
        padding-top: 120px;
        text-align: center;
    }

    .hero-content {
        margin: 0 auto;
    }

    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .hero-visual {
        display: none; /* Prevent bubble from overlapping text on small screens */
    }
    
    .section {
        padding: 4rem 5%;
    }
    
    .section-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .about-grid, .grid-2 {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-grid > div {
        margin-bottom: 1.5rem;
    }
    
    .quiz-result-title {
        font-size: 2.2rem;
    }

    .service-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    /* Adjust Agent Window for Mobile */
    .bb-agent-window {
        width: calc(100vw - 3rem);
        height: auto;
        max-height: calc(100vh - 120px);
        right: 0;
        bottom: 70px;
        box-shadow: 0 10px 40px rgba(0,0,0,0.95);
        flex-direction: column;
    }
    
    .bb-agent-header {
        padding: 0.75rem 1rem;
    }

    .bb-agent-container {
        right: 1rem;
        bottom: 1rem;
    }

    .bb-agent-toggle {
        width: 45px;
        height: 45px;
        min-width: 45px;
        min-height: 45px;
    }

    /* Push page content below the taller mobile navbar */
    .page-header {
        padding-top: 200px !important;
    }

    .hero {
        padding-top: 180px;
    }

    /* About Page Mobile */
    .about-hero {
        min-height: auto;
        padding-top: 180px;
        padding-bottom: 3rem;
    }

    .about-hero-content h1 {
        font-size: 2.2rem;
    }

    .about-hero-content .subheadline {
        font-size: 1.05rem;
    }

    .narrative-section {
        padding: 4rem 5%;
    }

    .narrative-container h2 {
        font-size: 1.7rem;
    }

    .archetype-grid {
        grid-template-columns: 1fr;
    }

    .capability-grid {
        grid-template-columns: 1fr;
    }

    .closing-cta h2 {
        font-size: 1.8rem;
    }
}

/* =========================================================================
   BLACK BUBBLE V1.0 HOMEPAGE OVERHAUL
   ========================================================================= */

.new-design {
    --bb-bg-dark: #0D0D0D;
    --bb-bg-surface: #1A1A1A;
    --bb-border: #2E2E2E;
    --bb-text-main: #F0EDE8;
    --bb-text-subtle: #B8B4AE;
    --bb-text-muted: #6B6B6B;
    --bb-accent-teal: #18A999;
    --bb-accent-amber: #F39237;

    background-color: var(--bb-bg-dark);
    color: var(--bb-text-main);
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

/* TYPOGRAPHY OVERRIDES FOR NEW DESIGN */
.new-design .bb-h1 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.1;
    color: var(--bb-text-main);
    margin-bottom: 1.5rem;
}

.new-design .bb-h2 {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: clamp(28px, 4vw, 34px);
    line-height: 1.15;
    color: var(--bb-text-main);
    margin-bottom: 1.5rem;
}

.new-design .bb-h2.large {
    font-size: clamp(34px, 5vw, 48px);
}

.new-design .bb-h3 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 22px;
    line-height: 1.3;
    color: var(--bb-text-main);
    margin-bottom: 1rem;
}

.new-design .bb-body {
    font-size: 16px;
    color: var(--bb-text-subtle);
    line-height: 1.65;
}

.new-design .bb-body-large {
    font-size: 18px;
    color: var(--bb-text-subtle);
    line-height: 1.65;
    margin-bottom: 2rem;
}

.new-design .bb-eyebrow {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    color: var(--bb-text-subtle);
}

.new-design .bb-eyebrow.teal {
    color: var(--bb-accent-teal);
}

/* LAYOUT & UTILS */
.new-design .bb-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

.new-design .bb-section {
    padding: 100px 0;
}

.new-design .bg-surface {
    background-color: var(--bb-bg-surface);
}

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

.new-design .max-600 { max-width: 600px; margin-left: auto; margin-right: auto; }
.new-design .max-640 { max-width: 640px; margin-left: auto; margin-right: auto; }
.new-design .mb-1 { margin-bottom: 0.5rem; }
.new-design .mb-2 { margin-bottom: 1rem; }
.new-design .mb-3 { margin-bottom: 1.5rem; }
.new-design .mb-4 { margin-bottom: 2rem; }
.new-design .mt-3 { margin-top: 1.5rem; }
.new-design .mt-4 { margin-top: 2rem; }
.new-design .pt-4 { padding-top: 2rem; }

/* NAVBAR */
.bb-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background-color: var(--bb-bg-dark);
    z-index: 1000;
    border-bottom: 1px solid var(--bb-border);
}

.bb-logo a, .bb-logo {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    color: var(--bb-text-main);
    text-decoration: none;
}

.bb-nav-links {
    display: flex;
    gap: 2rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.bb-nav-links a {
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: var(--bb-text-subtle);
    text-decoration: none;
    transition: color 0.3s;
}
.bb-nav-links a:hover { color: var(--bb-text-main); }

/* BUTTONS & LINKS */
.bb-btn-amber {
    display: inline-block;
    background-color: var(--bb-accent-amber);
    color: var(--bb-bg-dark) !important;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 15px;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    text-decoration: none;
    transition: opacity 0.3s;
}
.bb-btn-amber:hover { opacity: 0.9; }
.bb-btn-amber.large { padding: 1rem 2rem; font-size: 16px; }

.bb-link-secondary {
    color: var(--bb-text-main);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 500;
    font-size: 16px;
    transition: opacity 0.3s;
    position: relative;
}
.bb-link-secondary:hover { text-decoration: underline; text-underline-offset: 4px; }

.bb-link-teal {
    color: var(--bb-accent-teal);
    text-decoration: none;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 16px;
    transition: opacity 0.3s;
}
.bb-link-teal:hover { opacity: 0.8; }

.bb-link-subtle {
    color: var(--bb-text-subtle);
    text-decoration: underline;
    text-underline-offset: 4px;
    font-size: 14px;
    transition: color 0.3s;
}
.bb-link-subtle:hover { color: var(--bb-text-main); }

/* HERO */
.bb-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: 80px;
}
.bb-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5%;
    max-width: 800px;
}
.bb-hero-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* CREDIBILITY BAR */
.bb-credibility {
    background-color: var(--bb-bg-surface);
    border-top: 1px solid var(--bb-border);
    border-bottom: 1px solid var(--bb-border);
    padding: 3rem 0;
    overflow: hidden;
}
.bb-logos-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}
.bb-logos-track {
    display: inline-flex;
    gap: 4rem;
    padding: 0 2rem;
    animation: marquee 30s linear infinite;
    opacity: 0.5;
}
.bb-logos-track span {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    color: var(--bb-text-main);
    letter-spacing: 0.05em;
}
@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

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

/* CARDS */
.bb-card {
    background-color: var(--bb-bg-surface);
    border: 1px solid var(--bb-border);
    padding: 32px;
    border-radius: 4px;
}
.bb-card-label {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}
.bb-card-label.teal { color: var(--bb-accent-teal); }
.bb-card-label.amber { color: var(--bb-accent-amber); }
.bb-card-label.neutral { color: var(--bb-text-subtle); }
.bb-card.border-teal { border-left: 2px solid var(--bb-accent-teal); }
.bb-card.border-amber { border-left: 2px solid var(--bb-accent-amber); }
.bb-card.border-neutral { border-left: 2px solid var(--bb-border); }
.bb-card-q {
    font-size: 18px;
    color: var(--bb-text-main);
    line-height: 1.4;
    font-weight: 500;
}

/* PHASES */
.bb-phase {
    display: flex;
    flex-direction: column;
}
.bb-phase-num {
    font-family: 'DM Serif Display', serif;
    font-size: 64px;
    color: var(--bb-accent-amber);
    line-height: 1;
    margin-bottom: 1rem;
}
.bb-phase-duration {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: var(--bb-text-subtle);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.bb-note {
    font-size: 13px;
    color: var(--bb-text-muted);
}

/* ABOUT JOSH */
.bb-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}
.bb-about-photo {
    width: 100%;
    aspect-ratio: 4/5;
    background-color: var(--bb-bg-surface);
    border: 1px solid var(--bb-border);
    border-radius: 4px;
    overflow: hidden;
}
.bb-about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(20%);
    display: block;
}
.bb-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 2rem;
    border-top: 1px solid var(--bb-border);
    border-bottom: 1px solid var(--bb-border);
    padding: 2rem 0;
}
.bb-stat-num {
    font-family: 'DM Serif Display', serif;
    font-size: 42px;
    color: var(--bb-accent-amber);
    margin-bottom: 0.5rem;
    line-height: 1;
}
.bb-stat-label {
    font-size: 13px;
    color: var(--bb-text-subtle);
    line-height: 1.4;
}

/* FINAL CTA */
.bb-final-cta {
    padding: 120px 0;
    border-top: 3px solid var(--bb-accent-amber);
}

/* FOOTER */
.bb-footer {
    border-top: 2px solid var(--bb-accent-teal);
    padding: 4rem 0 2rem;
    background-color: var(--bb-bg-dark);
}
.bb-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}
.bb-footer-col a {
    display: block;
    color: var(--bb-text-subtle);
    text-decoration: none;
    margin-bottom: 0.5rem;
    font-size: 14px;
    transition: color 0.3s;
}
.bb-footer-col a:hover { color: var(--bb-text-main); }
.bb-text-subtle { color: var(--bb-text-subtle); }
.text-sm { font-size: 13px; }
.bb-footer-bottom {
    text-align: center;
    color: var(--bb-text-muted);
    font-size: 12px;
    border-top: 1px solid var(--bb-border);
    padding-top: 2rem;
}

.bb-mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--bb-text-main);
    cursor: pointer;
    margin-left: 1.5rem;
}
.bb-nav-cta {
    display: flex;
    align-items: center;
}

/* RESPONSIVE */
@media(max-width: 900px) {
    .bb-grid-3 { grid-template-columns: 1fr; }
    
    .bb-mobile-menu-btn { display: block; }
    .bb-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: var(--bb-bg-surface);
        flex-direction: column;
        padding: 0 2rem;
        border-bottom: 2px solid var(--bb-accent-teal);
        box-shadow: 0 10px 30px rgba(0,0,0,0.8);
        transform: none;
        text-align: center;
    }
    .bb-nav-links.active {
        display: flex;
    }
    .bb-nav-links a {
        padding: 1rem 0;
        font-size: 18px;
        border-bottom: 1px solid var(--bb-border);
    }
    .bb-nav-links a:last-child {
        border-bottom: none;
    }

    .bb-about-grid { grid-template-columns: 1fr; }
    .bb-stats-row { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .bb-footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .bb-footer-col:first-child { grid-column: 1 / -1; }
}
@media(max-width: 1200px) and (min-width: 768px) {
    .bb-grid-3:not(.phases) { grid-template-columns: 1fr 1fr; }
}

/* =========================================================================
   SERVICES PAGE OVERRIDES
   ========================================================================= */

.bb-hero-short {
    padding-top: 150px;
    padding-bottom: 60px;
    background-color: var(--bb-bg-dark);
}

.bb-hero-content-short {
    max-width: 700px;
}

.bb-services-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.bb-service-card {
    background-color: var(--bb-bg-surface);
    border: 1px solid var(--bb-border);
    padding: 40px;
    border-radius: 4px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.bb-service-card.border-amber {
    border-left: 2px solid var(--bb-accent-amber);
}

@media(min-width: 900px) {
    .bb-service-card {
        grid-template-columns: 350px 1fr;
        gap: 4rem;
    }
}

.bb-service-num {
    font-family: 'DM Serif Display', serif;
    font-size: 80px;
    color: var(--bb-accent-amber);
    line-height: 1;
    margin-bottom: 1rem;
}

.bb-meta {
    font-size: 13px;
    color: var(--bb-text-subtle);
}

.bb-meta-sep {
    margin: 0 0.5rem;
    opacity: 0.5;
}

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

.bb-deliverables li {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--bb-text-subtle);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: flex-start;
}

.teal-dash {
    color: var(--bb-accent-teal);
    margin-right: 0.75rem;
    font-weight: 600;
}

.new-design .pt-0 {
    padding-top: 0;
}

/* =========================================================================
   ABOUT PAGE OVERRIDES
   ========================================================================= */

.bb-mission-col {
    padding-left: 1.5rem;
    border-left: 2px solid var(--bb-accent-teal);
}
.bb-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
}
.bb-value-card {
    background: var(--bb-bg-dark);
    border: 1px solid var(--bb-border);
    border-left: 2px solid var(--bb-accent-teal);
    padding: 32px;
    border-radius: 4px;
}
.text-offwhite {
    color: var(--bb-text-main) !important;
}
.bb-thesis {
    padding: 6rem 0;
}
.bb-pullquote {
    font-family: 'DM Serif Display', serif;
    color: var(--bb-text-main);
    font-size: 42px;
    line-height: 1.2;
    margin: 4rem 0;
}
.bb-divider-amber {
    width: 100%;
    height: 3px;
    background: var(--bb-accent-amber);
}
.bb-founder-photo img {
    width: 100%;
    border-radius: 4px;
    filter: grayscale(20%);
}
.bb-career-timeline {
    border-left: 1px solid var(--bb-border);
    padding-left: 2rem;
    position: relative;
}
.bb-timeline-entry {
    padding-bottom: 3rem;
    position: relative;
}
.bb-timeline-entry::before {
    content: '';
    position: absolute;
    left: -2.35rem; /* pull back to line up with the main border */
    top: 5px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bb-accent-teal);
}
.bb-timeline-entry:last-child {
    padding-bottom: 0;
}
.bb-company {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    color: var(--bb-text-main);
    font-size: 18px;
    margin-bottom: 0.25rem;
}
.bb-role {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: var(--bb-text-subtle);
    margin-bottom: 1rem;
}
.bb-description {
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--bb-text-subtle);
    line-height: 1.6;
}
.bb-edu-block .bb-degree {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--bb-text-main);
    margin-bottom: 0.25rem;
}
.bb-edu-block .bb-institution {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: var(--bb-text-subtle);
}
.bb-certs {
    font-family: 'DM Sans', sans-serif;
}
.align-start {
    align-items: flex-start;
}
.mx-auto {
    margin-left: auto;
    margin-right: auto;
}


/* About Founder Layout */
.bb-grid-founder {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 3rem;
}
.bb-founder-bio {
    grid-column: 1 / -1;
    padding: 0;
    margin: 0;
    max-width: 900px;
}
.bb-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}
.bb-stats-grid .bb-stat-col {
    background: var(--bb-bg-dark);
    border: 1px solid var(--bb-border);
    padding: 1.5rem;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media(max-width: 900px) {
    .bb-pullquote { font-size: 32px; margin: 3rem 0; }
    .bb-mission-col { margin-bottom: 2rem; }
    .bb-grid-founder {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .bb-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}

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

/* Contact Form Styles */
.bb-contact-form-card {
    background: #1A1A1A;
    border: 1px solid #2E2E2E;
    padding: 40px;
    border-radius: 6px;
    max-width: 600px;
}

.bb-contact-form-group {
    margin-bottom: 1.5rem;
}

.bb-contact-label {
    display: block;
    font-family: 'DM Sans', sans-serif;
    color: var(--bb-text-offwhite);
    margin-bottom: 0.5rem;
    font-size: 14px;
}

.bb-contact-input, .bb-contact-textarea {
    width: 100%;
    background: #0D0D0D;
    border: 1px solid #2E2E2E;
    color: var(--bb-text-offwhite);
    padding: 0.8rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.bb-contact-input::placeholder, .bb-contact-textarea::placeholder {
    color: var(--bb-text-subtle);
}

.bb-contact-input:focus, .bb-contact-textarea:focus {
    border-color: var(--bb-accent-teal);
}

.bb-contact-textarea {
    resize: vertical;
    min-height: 100px;
}

.bb-contact-submit {
    width: 100%;
    background: var(--bb-accent-amber);
    color: var(--bb-bg-dark);
    border: none;
    padding: 14px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.bb-contact-submit:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}

.bb-contact-note {
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    color: #6B6B6B;
    text-align: center;
    margin-top: 1rem;
}

.bb-form-success {
    display: none;
    font-family: 'DM Sans', sans-serif;
    font-size: 16px;
    color: var(--bb-accent-teal);
    text-align: center;
    padding: 2rem 0;
}

/* PE Firms Classes */
.bb-portco-card {
    background: #1A1A1A;
    border: 1px solid #2E2E2E;
    border-left: 2px solid var(--bb-accent-amber);
    padding: 32px;
    border-radius: 4px;
}

.bb-step-card {
    background: transparent;
    padding: 0;
}

.bb-step-card .bb-step-num {
    font-family: 'DM Serif Display', serif;
    font-size: 48px;
    color: var(--bb-accent-amber);
    line-height: 1;
}

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

.bb-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.8rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    color: var(--bb-text-subtle);
}

.bb-list li::before {
    content: "—";
    position: absolute;
    left: 0;
    color: var(--bb-accent-teal);
    font-weight: 600;
}

/* Utility Classes */
.bb-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

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

.gap-1 { gap: 1rem; }
.gap-2 { gap: 1.5rem; }
.gap-3 { gap: 2rem; }
.gap-4 { gap: 3rem; }
.gap-5 { gap: 4rem; }
