:root {
    --font-hero: 'Instrument Serif', serif;
    --font-secondary: 'Oswald', sans-serif;
    --font-imperial: 'Imperial Script', cursive;
    --text-color: #000000;
    --line-color: rgba(0, 0, 0, 0.4);
    --overlay-color: rgba(0, 0, 0, 0.5);
    --brand-color: #872B1C;
    --video-bg-color: #ffffff;
}

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

body, html {
    width: 100%;
    height: 100%;
    background-color: #000;
}

/* Video Background */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.crossfade-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.crossfade-video.active {
    opacity: 1;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        /* Gradient coming down from the top */
        linear-gradient(to bottom, var(--video-bg-color) 0%, transparent 35%),
        /* Corner gradient in bottom-right */
        radial-gradient(circle at bottom right, var(--video-bg-color) 0%, transparent 40%);
    pointer-events: none;
}

/* Layout */
.layout-container {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 3vw 0 3vw 4vw; /* Removed right padding for full bleed line */
}

/* Header */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex: 0 0 auto;
    padding-right: 4vw;
}

.logo-container {
    border-right: 1px solid var(--line-color);
    padding-right: 2vw;
    height: 100px;
    display: flex;
    align-items: center;
}

.logo-container .logo {
    height: 100%;
    width: auto;
    max-height: 70px;
}

.nav-container {
    border-left: 1px solid var(--line-color);
    padding-left: 2vw;
    height: 100px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    min-width: 100px;
}

/* Burger Menu */
.burger-menu {
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px;
    z-index: 100;
    position: fixed;
    top: 3vw;
    right: 4vw;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.burger-menu.scrolled {
    background-color: #ffffff;
    border-color: var(--line-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.burger-menu.active {
    background-color: transparent !important;
    border-color: transparent !important;
    box-shadow: none !important;
}

.burger-menu span {
    display: block;
    width: 35px;
    height: 2px;
    background-color: var(--text-color);
    transition: all 0.3s ease;
}

.burger-menu.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.burger-menu.active span:nth-child(2) {
    opacity: 0;
}

.burger-menu.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Dark-first page header (Technology & Contact pages have no video hero) */
.dark-header-scope {
    --text-color: #fff;
    --line-color: rgba(255, 255, 255, 0.25);
    background: #080808;
}

.dark-header-scope .burger-menu.scrolled {
    background-color: rgba(16, 16, 16, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
}

.dark-header-scope .burger-menu.scrolled span {
    background-color: #ffffff;
}

/* Fullscreen Menu Overlay */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 50;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.fullscreen-menu.active {
    opacity: 1;
    pointer-events: all;
}

.fullscreen-menu ul {
    list-style: none;
    text-align: center;
}

.fullscreen-menu li {
    margin: 2rem 0;
}

.fullscreen-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-family: var(--font-secondary);
    font-size: 3rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: color 0.3s ease;
}

.fullscreen-menu a:hover {
    color: var(--brand-color);
}

/* Main Content area */
.main-content {
    flex: 1 1 auto;
    display: flex;
    align-items: flex-end;
    padding-bottom: 3vh;
}

.title-section {
    flex: 1;
    display: flex;
    align-items: flex-end;
}

.title-grid {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-rows: auto auto;
    align-items: end;
    column-gap: 3vw;
}

.bound-word {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
    font-family: var(--font-hero);
    font-size: clamp(6rem, 14vw, 16rem);
    line-height: 0.85;
    color: var(--text-color);
    letter-spacing: 0.05em;
    padding-bottom: 0.5vw;
    white-space: nowrap;
}

.sub-title {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
    font-family: var(--font-secondary);
    font-size: clamp(1.2rem, 2.5vw, 2.5rem);
    font-weight: 500;
    line-height: 1.2;
    color: var(--text-color);
    letter-spacing: 0.5px;
    padding-bottom: 1.5vw;
    text-transform: uppercase;
}

#dynamic-b {
    transition: transform 0.3s ease;
}

#dynamic-b.imperial {
    font-family: var(--font-imperial);
    font-size: 1.3em;
    font-weight: normal;
    line-height: 0;
    vertical-align: baseline;
}

.dynamics-word {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
    font-family: var(--font-hero);
    font-size: clamp(6rem, 14vw, 16rem);
    line-height: 0.85;
    color: var(--text-color);
    letter-spacing: 0.05em;
}

.right-divider-section {
    flex: 0 0 35%;
    display: flex;
    align-items: flex-end;
    padding-bottom: clamp(2rem, 5vw, 6.5rem);
}

.horizontal-line {
    width: 100%;
    height: 1px;
    background-color: var(--line-color);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .title-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        column-gap: 0;
        row-gap: 1rem;
    }
    
    .bound-word {
        grid-column: 1 / -1;
        grid-row: 1 / 2;
        padding-bottom: 0;
    }
    
    .sub-title {
        grid-column: 1 / -1;
        grid-row: 2 / 3;
        padding-bottom: 1rem;
    }

    .dynamics-word {
        grid-column: 1 / -1;
        grid-row: 3 / 4;
    }
    
    .right-divider-section {
        display: none;
    }
    
    .nav-container {
        border-left: none;
        padding-left: 0;
    }
    
    .logo-container {
        border-right: none;
        padding-right: 0;
    }

    .layout-container {
        padding: 5vw;
    }

    .top-header {
        padding-right: 0;
    }

    .burger-menu {
        top: 5vw;
        right: 5vw;
    }
}

/* Pillars Section */
.pillars-section {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    background-color: var(--video-bg-color); /* Cover the video behind it */
    padding: 8vw 5vw 8vw 5vw; /* Clean, balanced spacing without massive dark voids */
    display: flex;
    justify-content: center;
}

.pillars-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1400px;
    display: flex;
    flex-direction: column;
}

.pillars-header {
    text-align: center;
    margin-bottom: 5rem;
    
    /* Parallax Fade Entrance */
    opacity: 0;
    transform: translateY(100px);
    transition: opacity 2s cubic-bezier(0.16, 1, 0.3, 1), transform 2s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.pillars-header.in-view {
    opacity: 1;
    transform: translateY(0);
}

.pillars-header h2 {
    display: inline-block;
    background-color: var(--video-bg-color);
    padding: 1rem 4rem;
    font-family: var(--font-hero);
    font-size: clamp(4rem, 8vw, 6rem);
    color: var(--text-color);
    letter-spacing: 0.02em;
    font-weight: normal;
}

/* SVG Background */
.data-lines-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 1;
}

.data-lines-svg path,
.data-lines-svg line {
    stroke: var(--text-color);
    stroke-width: 3;
    stroke-dasharray: 10 15;
    fill: none;
}

.data-dot {
    fill: var(--text-color);
}

/* Pillar Grid */
.pillar-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-template-rows: auto auto auto;
    gap: 3rem;
    width: 100%;
    max-width: 1400px;
    perspective: 1500px; /* Add 3D perspective for futuristic animations */
}

.pillar-box {
    background: #F4F4F4; /* Light grey block like in design */
    border: 1px solid var(--line-color);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    
    /* Futuristic scroll-in setup */
    opacity: 0;
    transform: translateY(150px) scale(0.9) rotateX(15deg);
    transition: opacity 2.5s cubic-bezier(0.16, 1, 0.3, 1), transform 2.5s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: transform, opacity;
}

.pillar-box.in-view {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0deg);
}

.pillar-box h3 {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}

.pillar-box p {
    font-family: var(--font-secondary);
    font-size: 1.35rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.pillar-box p strong {
    color: #000;
    font-weight: 800;
    background: linear-gradient(90deg, rgba(135, 43, 28, 0.12) 0%, transparent 100%);
    padding: 0.1rem 0.35rem;
    border-left: 3px solid var(--brand-color);
}

.pillar-box ul {
    list-style: none;
    font-family: var(--font-secondary);
    font-size: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

.pillar-box ul li {
    margin-bottom: 0.5rem;
}

/* Asymmetric sizing */
.box-1 {
    grid-column: 1 / 6;
    grid-row: 1 / 2;
    min-height: 350px;
    background-color: #E2F5D6; /* Pastel Green */
    transition-delay: 0.2s;
}

.box-2 {
    grid-column: 7 / 12;
    grid-row: 1 / 3;
    min-height: 500px;
    margin-top: 100px; /* Stagger it down */
    background-color: #C8E1F8; /* Pastel Blue */
    transition-delay: 0.6s;
}

.box-3 {
    grid-column: 3 / 9;
    grid-row: 3 / 4;
    min-height: 300px;
    background-color: #F9DBD8; /* Pastel Pink */
    margin-top: -50px; /* Overlap effect */
    transition-delay: 1.0s;
}

/* ThreeJS Scroll Section */
.three-scroll-section {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 550vh; /* Long scroll duration for 4 stops */
    background-color: #ffffff;
}

.three-sticky-viewport {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ThreeJS Section Header */
.three-section-header {
    position: absolute;
    top: 6vh;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 3;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.three-section-tag {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--brand-color);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.three-section-header h2 {
    font-family: var(--font-hero);
    font-size: clamp(3rem, 6vw, 4.5rem);
    color: var(--text-color);
    font-weight: normal;
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin: 0;
}

/* Subtle Background Telemetry Grid Behind Model */
.three-bg-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.8;
    pointer-events: none;
}

.three-bg-svg path,
.three-bg-svg line {
    stroke: var(--text-color);
    stroke-width: 2.5;
    stroke-dasharray: 10 15;
    fill: none;
}

.three-bg-dot {
    fill: var(--text-color);
    opacity: 0.8;
}

/* Telemetry HUD Corner Blocks with Flashing Cross-Hatch */
.telemetry-corners {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.corner-block {
    position: absolute;
    width: 100px;
    height: 100px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    pointer-events: none;
    opacity: 0;
}

/* 4 Distinct Cross-Hatch Patterns */
.hatch-1 {
    background: 
        repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.5) 1.5px, transparent 0, transparent 8px),
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.5) 1.5px, transparent 0, transparent 8px);
}

.hatch-2 {
    background: 
        repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.5) 1.5px, transparent 0, transparent 12px),
        repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.5) 1.5px, transparent 0, transparent 12px);
}

.hatch-3 {
    background: 
        repeating-linear-gradient(-45deg, rgba(0, 0, 0, 0.6) 0, rgba(0, 0, 0, 0.6) 2px, transparent 0, transparent 6px);
}

.hatch-4 {
    background: 
        repeating-linear-gradient(30deg, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.5) 1.5px, transparent 0, transparent 6px),
        repeating-linear-gradient(-60deg, rgba(0, 0, 0, 0.5) 0, rgba(0, 0, 0, 0.5) 1.5px, transparent 0, transparent 6px);
}

/* Positions and Asynchronous Random Flashing Animations */
.corner-block.top-left {
    top: 2.5vw;
    left: 3vw;
    animation: hudFlash1 4.7s infinite ease-in-out;
}

.corner-block.top-right {
    top: 2.5vw;
    right: 3vw;
    animation: hudFlash2 6.3s infinite ease-in-out 1.1s;
}

.corner-block.bottom-left {
    bottom: 2.5vw;
    left: 3vw;
    animation: hudFlash3 5.8s infinite ease-in-out 0.7s;
}

.corner-block.bottom-right {
    bottom: 2.5vw;
    right: 3vw;
    animation: hudFlash4 7.4s infinite ease-in-out 2.3s;
}

.corner-block.mid-left {
    top: 45%;
    left: 3vw;
    animation: hudFlash2 5.2s infinite ease-in-out 0.4s;
}

.corner-block.mid-right {
    top: 55%;
    right: 3vw;
    animation: hudFlash3 6.7s infinite ease-in-out 1.8s;
}

/* Pillars Section Corner Blocks */
.pillars-section .telemetry-corners {
    z-index: 3;
}

.pillars-section .corner-block.top-left { top: 18vh; left: 4vw; }
.pillars-section .corner-block.top-right { top: 18vh; right: 4vw; }
.pillars-section .corner-block.mid-left { top: 50%; left: 4vw; }
.pillars-section .corner-block.mid-right { top: 50%; right: 4vw; }
.pillars-section .corner-block.bottom-left { bottom: 8vh; left: 4vw; }
.pillars-section .corner-block.bottom-right { bottom: 8vh; right: 4vw; }

@keyframes hudFlash1 {
    0%, 15%, 35%, 100% { opacity: 0; }
    16%, 26% { opacity: 0.8; }
    27%, 29% { opacity: 0.15; }
    30%, 34% { opacity: 0.95; }
}

@keyframes hudFlash2 {
    0%, 45%, 70%, 100% { opacity: 0; }
    46%, 60% { opacity: 0.7; }
    61%, 63% { opacity: 0.1; }
    64%, 69% { opacity: 0.85; }
}

@keyframes hudFlash3 {
    0%, 25%, 55%, 85%, 100% { opacity: 0; }
    26%, 40% { opacity: 0.85; }
    41%, 48% { opacity: 0.2; }
    86%, 95% { opacity: 0.75; }
}

@keyframes hudFlash4 {
    0%, 30%, 75%, 100% { opacity: 0; }
    31%, 50% { opacity: 0.75; }
    51%, 54% { opacity: 0.15; }
    76%, 89% { opacity: 0.9; }
}

#retroCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 3D Floating Panels */
.three-panels-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none; /* Let clicks pass to canvas if interactive later */
    perspective: 1200px;
}

.panel-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(420px, 85vw);
    padding: 2.5rem;
    background: rgba(244, 244, 244, 0.92);
    border: 1px solid var(--line-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    
    /* Center it and set default 3D hidden state */
    transform: translate(-50%, -50%) translate3d(0, 100px, -200px) rotateY(20deg);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    will-change: transform, opacity;
}

.panel-card.active {
    opacity: 1;
    transform: translate(-50%, -50%) translate3d(0, 0, 0) rotateY(0deg);
}

/* Different screen positions for each card when active */
.card-0.active {
    transform: translate(-120%, -50%) translate3d(0, 0, 50px) rotateY(15deg);
}

.card-1.active {
    transform: translate(20%, -50%) translate3d(0, 0, 50px) rotateY(-15deg);
}

.card-2.active {
    transform: translate(-110%, -30%) translate3d(0, 0, 80px) rotateX(10deg);
}

/* Stop 4: 3 Cards Simultaneously */
.stop-4-card {
    width: min(340px, 28vw);
    padding: 1.6rem 1.8rem;
}

.stop-4-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.6rem;
}

.stop-4-card p {
    font-size: 1.05rem;
    line-height: 1.45;
}

.card-3.active {
    transform: translate(-150%, -45%) translate3d(0, 0, 40px) rotateY(14deg);
}

.card-4.active {
    transform: translate(-50%, 5%) translate3d(0, 0, 60px) rotateX(-8deg);
}

.card-5.active {
    transform: translate(50%, -45%) translate3d(0, 0, 40px) rotateY(-14deg);
}

.panel-tag {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: #666;
    margin-bottom: 1rem;
}

.panel-card h3 {
    font-family: var(--font-hero);
    font-size: 2.5rem;
    color: #000;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.panel-card p {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    color: #333;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .card-0.active, .card-1.active, .card-2.active {
        transform: translate(-50%, -30%) translate3d(0, 0, 0) rotateY(0deg);
    }
    .stop-4-card {
        width: min(360px, 88vw);
        padding: 1.2rem 1.5rem;
    }
    .card-3.active {
        transform: translate(-50%, -125%) scale(0.85);
    }
    .card-4.active {
        transform: translate(-50%, -15%) scale(0.85);
    }
    .card-5.active {
        transform: translate(-50%, 95%) scale(0.85);
    }
}

/* =========================================================
   GLITCH SQUARES TRANSITION THRESHOLD
========================================================= */
.glitch-transition-container {
    position: relative;
    width: 100%;
    height: 50px;
    background: #000;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    overflow: hidden;
    z-index: 10;
}

.glitch-grid {
    display: grid;
    grid-template-columns: repeat(32, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 2px;
    width: 100%;
    height: 100%;
    padding: 2px;
    background: #1a1a1a;
}

.g-sq {
    background: #fff;
    transition: background 0.08s ease, transform 0.08s ease, opacity 0.08s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-secondary);
    font-size: 10px;
    font-weight: bold;
    color: #000;
    overflow: hidden;
    user-select: none;
}

.g-sq.active-red {
    background: #872B1C;
    color: #fff;
    transform: scale(0.92);
}

.g-sq.active-black {
    background: #111;
    color: #00ff66;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.g-sq.active-empty {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.4);
}

.g-sq.active-hatch {
    background: repeating-linear-gradient(45deg, #000 0, #000 2px, #fff 0, #fff 6px);
}

/* =========================================================
   PENULTIMATE SECTION: 50/50 ONBOARDING LAYOUT
========================================================= */
.penultimate-section {
    position: relative;
    z-index: 5;
    background-color: #fff;
    color: var(--text-color);
    padding: 8vw 4vw;
    border-bottom: 1px solid var(--line-color);
    overflow: hidden;
}

.penultimate-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5vw;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}

.penultimate-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.penultimate-content h2 {
    font-family: var(--font-hero);
    font-size: clamp(2.5rem, 4vw, 4rem);
    line-height: 1.05;
    margin-bottom: 1.5rem;
    color: #000;
}

.penultimate-desc {
    font-family: var(--font-secondary);
    font-size: 1.25rem;
    line-height: 1.6;
    color: #333;
    margin-bottom: 2.5rem;
    max-width: 540px;
}

/* Small Framed Image */
.small-image-wrapper {
    position: relative;
    width: min(100%, 420px);
    background: #f4f4f4;
    border: 1px solid var(--line-color);
    padding: 1rem;
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.08);
}

.image-frame-brackets {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.image-frame-brackets span {
    position: absolute;
    width: 12px;
    height: 12px;
    border-color: #000;
    border-style: solid;
}

.br-tl { top: 4px; left: 4px; border-width: 2px 0 0 2px; }
.br-tr { top: 4px; right: 4px; border-width: 2px 2px 0 0; }
.br-bl { bottom: 4px; left: 4px; border-width: 0 0 2px 2px; }
.br-br { bottom: 4px; right: 4px; border-width: 0 2px 2px 0; }

.penultimate-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    filter: grayscale(15%) contrast(110%);
    border: 1px solid rgba(0, 0, 0, 0.15);
}

.image-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px dashed var(--line-color);
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: #555;
}

.meta-status {
    color: #872B1C;
    font-weight: bold;
}

/* Bot Honeypot Trap - Invisible to humans, tempting for bots */
.hp-trap {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
    overflow: hidden !important;
    z-index: -1 !important;
}

/* Inline form error message */
.form-error-msg {
    background: rgba(135, 43, 28, 0.12);
    border: 1px solid rgba(135, 43, 28, 0.5);
    color: #e05a3a;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-family: var(--font-secondary);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

/* 2-Step Cyber Onboarding Form */
.penultimate-form-wrapper {
    width: 100%;
}

.form-cyber-frame {
    background: #fdfdfd;
    border: 2px solid #000;
    padding: 3rem;
    position: relative;
    box-shadow: 16px 16px 0px rgba(0, 0, 0, 0.9);
}

.form-step-indicators {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #000;
}

.step-badge {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #888;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    background: #eee;
    color: #555;
    font-size: 0.75rem;
    font-weight: 900;
}

.step-badge.active {
    color: #000;
}

.step-badge.active .step-num {
    background: #872B1C;
    color: #fff;
}

.step-line {
    flex: 1;
    height: 2px;
    background: repeating-linear-gradient(90deg, #ccc 0, #ccc 4px, transparent 0, transparent 8px);
    margin: 0 1rem;
}

.sovereign-form {
    position: relative;
    min-height: 360px;
}

.form-step-panel {
    display: none;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.form-step-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.form-step-panel h4 {
    font-family: var(--font-hero);
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: #000;
}

.form-sub {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #222;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    font-family: var(--font-secondary);
    font-size: 1rem;
    padding: 0.9rem 1.2rem;
    background: #fff;
    border: 1px solid #aaa;
    color: #000;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    border-radius: 0;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #872B1C;
    box-shadow: 4px 4px 0px rgba(135, 43, 28, 0.15);
}

.form-actions {
    margin-top: 2.5rem;
    display: flex;
    justify-content: flex-end;
}

.step-2-actions {
    justify-content: space-between;
    align-items: center;
}

.btn-cyber-primary {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 1rem 2rem;
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.btn-cyber-primary:hover {
    background: #872B1C;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.4);
}

.btn-cyber-secondary {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0.9rem 1.5rem;
    background: transparent;
    color: #000;
    border: 1px solid #000;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.btn-cyber-secondary:hover {
    background: #eee;
}

/* Success Confirmation Panel */
.success-box {
    text-align: center;
    padding: 2rem 0;
}

.success-icon {
    font-size: 3rem;
    color: #872B1C;
    margin-bottom: 1rem;
    animation: hudPulse 2s infinite ease-in-out;
}

.success-box h4 {
    font-size: 2rem;
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.success-box p {
    font-family: var(--font-secondary);
    font-size: 1.1rem;
    color: #444;
    max-width: 380px;
    margin: 0 auto 2.5rem auto;
    line-height: 1.5;
}

@keyframes hudPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.15); }
}

@media (max-width: 900px) {
    .penultimate-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    
    .form-cyber-frame {
        padding: 1.5rem;
        box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.9);
    }
}

/* =========================================================
   SITE FOOTER (REFERENCE IMAGE LAYOUT)
========================================================= */
.site-footer {
    position: relative;
    z-index: 5;
    background-color: #fff;
    color: #000;
    padding: 6vw 4vw 0 4vw;
    border-top: 1px solid var(--line-color);
    overflow: hidden;
    font-family: var(--font-secondary);
}

.footer-top-grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.5fr 1fr 1.2fr;
    gap: 4vw;
    max-width: 1600px;
    margin: 0 auto 6vw auto;
    align-items: start;
}

.footer-brand {
    font-family: var(--font-hero);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin: 0;
    color: #000;
    line-height: 1;
}

.footer-col h4 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #000;
    letter-spacing: 0.3px;
}

.footer-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.footer-col ul li a {
    text-decoration: none;
    color: #555;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover {
    color: #000;
    text-decoration: underline;
}

/* Newsletter Minimal Style */
.footer-newsletter {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-newsletter input {
    border: none;
    border-bottom: 1px solid #ccc;
    padding: 0.5rem 0;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    outline: none;
    background: transparent;
    color: #000;
    transition: border-color 0.2s ease;
    border-radius: 0;
}

.footer-newsletter input:focus {
    border-color: #000;
}

.nl-submit {
    background: transparent;
    border: none;
    padding: 0.4rem 0;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: #555;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
    font-weight: 600;
    width: fit-content;
}

.nl-submit:hover {
    color: #000;
    text-decoration: underline;
}

/* Divider Rule */
.footer-divider {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    height: 1px;
    background: #222;
}

/* Middle Copyright Row */
.footer-middle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1600px;
    margin: 1.5rem auto 5vw auto;
    font-size: 0.85rem;
    color: #666;
    letter-spacing: 0.3px;
}

.footer-copy strong {
    color: #000;
}

/* Giant Typography Stamp at Bottom */
.footer-giant-word {
    font-family: var(--font-hero);
    font-size: clamp(4.5rem, 18.8vw, 24rem);
    font-weight: 900;
    line-height: 0.8;
    letter-spacing: -0.04em;
    text-align: center;
    width: 100%;
    margin-bottom: -1.5vw;
}

@media (max-width: 600px) {
    .footer-top-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    
    .footer-middle {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
}

/* =========================================================
   BND ANALYTICS - SOVEREIGN MAINFRAME SPECIFIC STYLES
   90s Tech Lingo, Cyberpunk Grids, CRT Terminals, & Matrix Cards
========================================================= */

/* --- INVERTED HERO COLOR SCHEME (DARK BACKGROUND VIDEO) --- */
.bnd-analytics-hero-video .video-overlay {
    background: 
        linear-gradient(to bottom, #000000 0%, transparent 40%),
        radial-gradient(circle at bottom right, #000000 0%, transparent 45%);
}

.bnd-analytics-hero-layout {
    --text-color: #ffffff;
    --line-color: rgba(255, 255, 255, 0.25);
    --video-bg-color: #000000;
}

.bnd-analytics-hero-layout .top-header .burger-menu span {
    background-color: #ffffff;
}

.bnd-analytics-hero-layout .top-header .burger-menu.scrolled {
    background-color: rgba(16, 16, 16, 0.95);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

.bnd-analytics-hero-layout .top-header .burger-menu.scrolled span {
    background-color: #ffffff;
}

/* Fullscreen menu when opened on inverted hero page */
.bnd-analytics-hero-layout .fullscreen-menu {
    background: rgba(12, 12, 12, 0.96);
    border-bottom: 1px solid var(--line-color);
}

.bnd-analytics-hero-layout .fullscreen-menu a {
    color: #ffffff;
}

.bnd-analytics-hero-layout .fullscreen-menu a:hover {
    color: var(--brand-color);
}

.bnd-analytics-hero-layout .bnd-hero-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.bnd-analytics-hero-layout .bound-word {
    color: #ffffff;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.15);
}

.bnd-analytics-hero-layout .data-lines-svg path,
.bnd-analytics-hero-layout .data-lines-svg line {
    stroke: rgba(255, 255, 255, 0.35);
}

.bnd-analytics-hero-layout .data-dot {
    fill: #00ff88;
    filter: drop-shadow(0 0 8px #00ff88);
}

.bnd-analytics-hero-layout .corner-block {
    border-color: rgba(255, 255, 255, 0.35);
}

.bnd-analytics-hero-layout .hatch-1 {
    background: 
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0.22) 1.5px, transparent 0, transparent 8px),
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0.22) 1.5px, transparent 0, transparent 8px);
}

.bnd-analytics-hero-layout .hatch-2 {
    background: 
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0.22) 1.5px, transparent 0, transparent 12px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0.22) 1.5px, transparent 0, transparent 12px);
}

.bnd-analytics-hero-layout .hatch-3 {
    background: 
        repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.25) 0, rgba(255, 255, 255, 0.25) 2px, transparent 0, transparent 6px);
}

.bnd-analytics-hero-layout .hatch-4 {
    background: 
        repeating-linear-gradient(30deg, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0.22) 1.5px, transparent 0, transparent 6px),
        repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.22) 0, rgba(255, 255, 255, 0.22) 1.5px, transparent 0, transparent 6px);
}

.bnd-analytics-hero-layout .bnd-action-bar .btn-cyber-primary {
    background: #ffffff;
    color: #000000;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.15);
}

.bnd-analytics-hero-layout .bnd-action-bar .btn-cyber-primary:hover {
    background: var(--brand-color);
    color: #ffffff;
    transform: translate(-2px, -2px);
    box-shadow: 4px 4px 0px rgba(255, 255, 255, 0.3);
}

.bnd-analytics-hero-layout .bnd-action-bar .btn-cyber-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.bnd-analytics-hero-layout .bnd-action-bar .btn-cyber-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #ffffff;
    color: #ffffff;
}

.bnd-hero-section {
    position: relative;
    z-index: 5;
    padding: 4vw 4vw 6vw 4vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 85vh;
    border-bottom: 1px solid var(--line-color);
}

.bnd-sys-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(135, 43, 28, 0.15);
    border: 1px solid var(--brand-color);
    padding: 6px 14px;
    color: #fff;
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    width: fit-content;
}

.bnd-sys-badge .status-dot {
    width: 8px;
    height: 8px;
    background-color: #ff3333;
    border-radius: 50%;
    box-shadow: 0 0 8px #ff3333;
    animation: bndPulse 1.5s infinite;
}

@keyframes bndPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.3); }
}

.bnd-hero-title {
    font-family: var(--font-hero);
    font-size: clamp(3.5rem, 8vw, 8rem);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.bnd-hero-title .accent-text {
    color: var(--brand-color);
    font-style: italic;
}

.bnd-hero-desc {
    font-family: var(--font-secondary);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: #ccc;
    max-width: 800px;
    line-height: 1.5;
    margin-bottom: 3rem;
    letter-spacing: 0.5px;
}

.bnd-action-bar {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

/* Comparison Matrix Section */
.bnd-comparison-section {
    position: relative;
    z-index: 5;
    padding: 5vw 4vw;
    background: #080808;
    border-bottom: 1px solid var(--line-color);
}

.bnd-section-heading {
    display: flex;
    flex-direction: column;
    margin-bottom: 4rem;
}

.bnd-section-heading .tag {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--brand-color);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.bnd-section-heading h2 {
    font-family: var(--font-hero);
    font-size: clamp(2.5rem, 5vw, 5rem);
    color: #fff;
    line-height: 1.05;
}

.bnd-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    position: relative;
}

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

.bnd-compare-card {
    background: rgba(18, 18, 18, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bnd-compare-card.old-way {
    border-color: rgba(255, 60, 60, 0.25);
}

.bnd-compare-card.sovereign-way {
    border-color: var(--brand-color);
    background: linear-gradient(135deg, rgba(135, 43, 28, 0.18) 0%, rgba(15, 15, 15, 0.95) 100%);
    box-shadow: 0 10px 40px rgba(135, 43, 28, 0.15);
}

.bnd-compare-card:hover {
    transform: translateY(-6px);
    border-color: #fff;
}

.bnd-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1.5rem;
}

.bnd-card-header h3 {
    font-family: var(--font-hero);
    font-size: 2.2rem;
    color: #fff;
}

.bnd-card-badge {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    padding: 4px 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.old-way .bnd-card-badge {
    background: rgba(255, 50, 50, 0.15);
    color: #ff5555;
    border: 1px solid #ff5555;
}

.sovereign-way .bnd-card-badge {
    background: var(--brand-color);
    color: #fff;
}

.bnd-feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.bnd-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    color: #ddd;
    line-height: 1.4;
    letter-spacing: 0.5px;
}

.bnd-feature-list li .icon {
    font-weight: 800;
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: -2px;
}

.old-way .icon { color: #ff5555; }
.sovereign-way .icon { color: #00ff88; }

/* Analytics Architecture Section (simple, content-sized grid — not the homepage's staggered editorial grid) */
.bnd-architecture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    max-width: 1400px;
}

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

.bnd-architecture-card {
    background: rgba(16, 16, 16, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2.5rem 2rem;
}

.bnd-architecture-card h3 {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #fff;
    margin-bottom: 1.25rem;
}

.bnd-architecture-card p {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    color: #aaa;
}

/* Harvester Matrix Section */
.bnd-harvester-section {
    position: relative;
    z-index: 5;
    padding: 5vw 4vw;
    background: #000;
    border-bottom: 1px solid var(--line-color);
}

.bnd-tiers-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1.25rem;
    margin-top: 3rem;
}

@media (max-width: 1200px) {
    .bnd-tiers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .bnd-tiers-grid {
        grid-template-columns: 1fr;
    }
}

.bnd-tier-card {
    background: rgba(16, 16, 16, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
}

.bnd-tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--brand-color);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.bnd-tier-card:hover::before,
.bnd-tier-card.active::before {
    transform: scaleX(1);
}

.bnd-tier-card:hover,
.bnd-tier-card.active {
    background: rgba(30, 30, 30, 0.95);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.8);
}

.tier-num {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: var(--brand-color);
    letter-spacing: 2px;
    margin-bottom: 1rem;
}

.bnd-tier-card h4 {
    font-family: var(--font-hero);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.bnd-tier-card p {
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    color: #aaa;
    line-height: 1.45;
}

/* Synthesis 50/50 Section */
.bnd-synthesis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 900px) {
    .bnd-synthesis-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

.synthesis-card {
    background: rgba(20, 20, 20, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 2.5rem;
    position: relative;
    margin-bottom: 2rem;
}

.synthesis-card h4 {
    font-family: var(--font-hero);
    font-size: 2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.synthesis-card p {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    color: #bbb;
    line-height: 1.5;
}

/* CTA Banner (Technology & Contact pages) */
.cta-banner {
    background: #fff;
    padding: 6vw 4vw;
    text-align: center;
    border-bottom: 1px solid var(--line-color);
}

.cta-banner .tag {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    letter-spacing: 3px;
    color: var(--brand-color);
    text-transform: uppercase;
    display: block;
    margin-bottom: 0.75rem;
}

.cta-banner h2 {
    font-family: var(--font-hero);
    font-size: clamp(2.5rem, 5vw, 4rem);
    color: #000;
    margin-bottom: 1rem;
}

.cta-banner p {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    color: #444;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

/* Calculator & Deployment Box */
.bnd-calc-box {
    background: #121212;
    border: 1px solid var(--brand-color);
    padding: 3rem;
    box-shadow: 0 15px 50px rgba(135, 43, 28, 0.2);
}

.calc-result-bar {
    background: #080808;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1.5rem;
    margin: 2rem 0;
    display: flex;
    justify-content: space-around;
    text-align: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.calc-metric .val {
    font-family: var(--font-hero);
    font-size: 2.5rem;
    color: #00ff88;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.calc-metric .lbl {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: #888;
    letter-spacing: 1.5px;
}

/* BND Dispatch Protocol Dark Frame (Replaces white .form-cyber-frame for dark sections) */
.bnd-dispatch-frame {
    background: #121212;
    border: 1px solid var(--brand-color);
    padding: 3rem;
    position: relative;
    box-shadow: 0 15px 50px rgba(135, 43, 28, 0.2);
}

/* Ensure all select options maintain strict high contrast and never render white-on-white */
.bnd-calc-box select option {
    background-color: #1c1c1c !important;
    color: #fff !important;
}

.form-group select option {
    background-color: #fff !important;
    color: #000 !important;
}

/* =========================================================
   SERVICES DIRECTORY STYLES (3 PILLARS)
   - On-Prem RAG AI Systems
   - Factory Hardware Analytics
   - BND-Intake (Missed-Lead System)
========================================================= */

/* Services Anchor Bar */
.services-anchor-bar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.75rem 2rem;
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.services-anchor-link {
    font-family: var(--font-secondary);
    font-size: 0.85rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #888;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.services-anchor-link:hover,
.services-anchor-link.active {
    color: #fff;
    border-color: var(--brand-color);
    background: rgba(135, 43, 28, 0.15);
}

.services-anchor-link span.num {
    color: var(--brand-color);
    font-weight: 700;
}

/* Pillar General Sections */
.services-pillar-section {
    position: relative;
    padding: 6vw 4vw;
    border-bottom: 1px solid var(--line-color);
}

.pillar-badge {
    display: inline-block;
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--brand-color);
    margin-bottom: 0.5rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid var(--brand-color);
    background: rgba(135, 43, 28, 0.1);
}

/* Feature Grid 3-col */
.services-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

@media (max-width: 960px) {
    .services-grid-3 {
        grid-template-columns: 1fr;
    }
}

.services-card {
    background: rgba(16, 16, 16, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2.5rem 2rem;
    position: relative;
    transition: all 0.3s ease;
}

.services-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.services-card h3, .services-card h4 {
    font-family: var(--font-hero);
    font-size: 1.8rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.services-card p {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    color: #aaa;
}

/* =========================================================
   PILLAR 01: ON-PREM RAG (BEIGE EDITORIAL COLORWAY)
========================================================= */
.services-pillar-section#rag,
.services-pillar-section.rag-beige-theme {
    background-color: #F5F2EB !important;
    color: #111111;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.services-pillar-section#rag .bnd-section-heading h2 {
    color: #111111 !important;
}

.services-pillar-section#rag .bnd-section-heading p {
    color: #444444 !important;
}

.services-pillar-section#rag .pillar-badge {
    background: rgba(135, 43, 28, 0.08);
    border-color: var(--brand-color);
    color: var(--brand-color);
    font-weight: 600;
}

.services-pillar-section#rag .services-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.services-pillar-section#rag .services-card:hover {
    border-color: var(--brand-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(135, 43, 28, 0.08);
}

.services-pillar-section#rag .services-card .intake-feature-badge {
    color: var(--brand-color);
    font-weight: 600;
}

.services-pillar-section#rag .services-card h3,
.services-pillar-section#rag .services-card h4 {
    color: #111111 !important;
}

.services-pillar-section#rag .services-card p {
    color: #4a4a4a !important;
}

.services-pillar-section#rag #airgapped .synthesis-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.services-pillar-section#rag #airgapped .synthesis-card h4 {
    color: #111111 !important;
}

.services-pillar-section#rag #airgapped .synthesis-card p {
    color: #3e3e3e !important;
}

.services-pillar-section#rag #airgapped .synthesis-card .tag {
    color: var(--brand-color) !important;
}

.services-pillar-section#rag #airgapped .bnd-feature-list li {
    color: #333333;
}

.services-pillar-section#rag #airgapped .bnd-feature-list li strong {
    color: #111111;
}

.services-pillar-section#rag #airgapped .bnd-feature-list li .icon {
    color: #0d733e !important;
    font-weight: bold;
}

.services-pillar-section#rag #airgapped .rag-callout-card {
    background: #ffffff !important;
    border: 1px solid rgba(135, 43, 28, 0.25) !important;
    border-left: 4px solid var(--brand-color) !important;
    box-shadow: 0 4px 20px rgba(135, 43, 28, 0.05) !important;
}

.services-pillar-section#rag #airgapped .rag-callout-card h4 {
    color: var(--brand-color) !important;
}

.services-pillar-section#rag #airgapped .rag-callout-card p {
    color: #2b2b2b !important;
}

/* Factory Hardware Metrics */
.factory-metrics-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 3rem 0;
}

@media (max-width: 1024px) {
    .factory-metrics-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 580px) {
    .factory-metrics-strip {
        grid-template-columns: 1fr;
    }
}

.factory-metric-card {
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 1.5rem;
    text-align: left;
    border-top: 3px solid #00ff88;
}

.factory-metric-val {
    font-family: var(--font-hero);
    font-size: 2.2rem;
    color: #00ff88;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.factory-metric-lbl {
    font-family: var(--font-secondary);
    font-size: 0.8rem;
    color: #aaa;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* BND-Intake Styling */
.intake-narrative-box {
    background: linear-gradient(135deg, rgba(20, 20, 20, 0.95) 0%, rgba(10, 10, 10, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 4px solid var(--brand-color);
    padding: 2.5rem;
    margin: 2.5rem 0 3.5rem;
}

.intake-narrative-box p {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    line-height: 1.7;
    color: #ccc;
    margin-bottom: 1.25rem;
}

.intake-narrative-box p:last-child {
    margin-bottom: 0;
    color: #fff;
    font-size: 1.25rem;
}

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

@media (max-width: 1024px) {
    .intake-features-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 700px) {
    .intake-features-grid {
        grid-template-columns: 1fr;
    }
}

.intake-feature-card {
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2rem 1.75rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.intake-feature-badge {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: #00ff88;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.intake-feature-card h4 {
    font-family: var(--font-hero);
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.15;
}

.intake-feature-card p {
    font-family: var(--font-secondary);
    font-size: 1rem;
    line-height: 1.5;
    color: #aaa;
}

.status-step-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-top: 1rem;
    padding: 0.35rem 0.65rem;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    width: fit-content;
}

.status-step-pill span.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #00ff88;
}

/* "Is this for you?" Split Grid */
.intake-fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin: 3.5rem 0;
}

@media (max-width: 850px) {
    .intake-fit-grid {
        grid-template-columns: 1fr;
    }
}

.fit-card {
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: #111;
}

.fit-card.fit-yes {
    border-color: #00ff88;
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.05) 0%, rgba(14, 20, 16, 0.95) 100%);
}

.fit-card.fit-no {
    border-color: rgba(255, 255, 255, 0.2);
    background: #0c0c0c;
}

.fit-card h4 {
    font-family: var(--font-hero);
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.fit-card.fit-yes h4 { color: #00ff88; }
.fit-card.fit-no h4 { color: #aaa; }

.fit-card p {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    color: #ccc;
}

/* FAQ Accordion / Cards */
.faq-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 3rem 0;
}

.faq-item {
    background: #101010;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: all 0.25s ease;
}

.faq-item.active {
    border-color: var(--brand-color);
}

.faq-question {
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.faq-question h4 {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #fff;
    margin: 0;
}

.faq-toggle {
    font-size: 1.4rem;
    color: var(--brand-color);
    transition: transform 0.25s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 2rem 1.5rem 2rem;
    display: block;
}

.faq-answer p {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    color: #bbb;
    margin: 0;
}

/* Bottom Line Banner */
.bottom-line-banner {
    background: linear-gradient(135deg, rgba(135, 43, 28, 0.2) 0%, rgba(15, 10, 10, 0.98) 100%);
    border: 2px solid var(--brand-color);
    padding: 3rem 2.5rem;
    margin: 4rem 0 2rem;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(135, 43, 28, 0.25);
}

.bottom-line-banner .tag {
    color: var(--brand-color);
    margin-bottom: 0.75rem;
}

.bottom-line-banner h3 {
    font-family: var(--font-hero);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    color: #fff;
    line-height: 1.25;
    margin-bottom: 1.25rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.bottom-line-banner p {
    font-family: var(--font-secondary);
    font-size: 1.15rem;
    color: #ddd;
    max-width: 750px;
    margin-left: auto;
    margin-right: auto;
}

/* =========================================================
   BND-INTAKE EXTENSIONS (Steps, Industries, Pricing)
========================================================= */

/* Intake How It Works Steps */
.intake-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2.5rem 0;
}

@media (max-width: 960px) {
    .intake-steps-grid {
        grid-template-columns: 1fr;
    }
}

.intake-step-card {
    background: #0e0e0e;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2.5rem 2rem;
    position: relative;
    display: flex;
    flex-direction: column;
}

.intake-step-num {
    font-family: var(--font-hero);
    font-size: 3rem;
    color: var(--brand-color);
    line-height: 1;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.intake-step-card h4 {
    font-family: var(--font-hero);
    font-size: 1.7rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.15;
}

.intake-step-card p {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    color: #aaa;
}

/* Intake Industry Cards */
.intake-industry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2.5rem 0;
}

@media (max-width: 960px) {
    .intake-industry-grid {
        grid-template-columns: 1fr;
    }
}

.industry-card {
    background: #101010;
    border: 1px solid rgba(255, 255, 255, 0.12);
    padding: 2.25rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.industry-card-badge {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    letter-spacing: 2px;
    color: #00ff88;
    text-transform: uppercase;
    margin-bottom: 1rem;
    font-weight: 600;
}

.industry-card h4 {
    font-family: var(--font-hero);
    font-size: 1.65rem;
    color: #fff;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.industry-card p {
    font-family: var(--font-secondary);
    font-size: 1.05rem;
    line-height: 1.6;
    color: #bbb;
    margin-bottom: 1.5rem;
}

.industry-solution-note {
    background: rgba(0, 0, 0, 0.6);
    border-left: 3px solid var(--brand-color);
    padding: 0.85rem 1rem;
    font-family: var(--font-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    color: #ddd;
}

.industry-solution-note strong {
    color: #fff;
}

/* Intake Pricing Grid */
.intake-pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin: 2.5rem 0;
    align-items: stretch;
}

@media (max-width: 1024px) {
    .intake-pricing-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: #0f0f0f;
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all 0.3s ease;
}

.pricing-card:hover {
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-4px);
}

.pricing-card.featured {
    border: 2px solid var(--brand-color);
    background: linear-gradient(135deg, rgba(25, 15, 15, 0.95) 0%, rgba(12, 10, 10, 0.98) 100%);
    box-shadow: 0 10px 40px rgba(135, 43, 28, 0.25);
}

.pricing-badge-popular {
    position: absolute;
    top: -12px;
    left: 2rem;
    background: var(--brand-color);
    color: #fff;
    font-family: var(--font-secondary);
    font-size: 0.7rem;
    letter-spacing: 2px;
    padding: 0.25rem 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.pricing-plan-tag {
    font-family: var(--font-secondary);
    font-size: 0.75rem;
    letter-spacing: 1.5px;
    color: #888;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.pricing-card h4 {
    font-family: var(--font-hero);
    font-size: 2.2rem;
    color: #fff;
    margin-bottom: 1rem;
}

.pricing-rate {
    font-family: var(--font-hero);
    font-size: 3rem;
    color: #fff;
    line-height: 1;
    margin-bottom: 0.35rem;
}

.pricing-rate .currency {
    font-size: 1.75rem;
    vertical-align: super;
    margin-right: 0.15rem;
    color: var(--brand-color);
}

.pricing-rate .period {
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: #888;
}

.pricing-setup {
    font-family: var(--font-secondary);
    font-size: 0.9rem;
    color: #888;
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-family: var(--font-secondary);
    font-size: 1rem;
    color: #ccc;
    flex-grow: 1;
    margin-bottom: 2rem;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    line-height: 1.4;
}

.pricing-features .tick {
    color: #00ff88;
    font-weight: bold;
}



