/* =========================================
   1. GLOBAL RESET & FONTS
========================================= */

html {
    font-size: 62.5%;
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #000;
    overflow-x: hidden;
    /* It's okay to leave this on the body, just not both html and body */
    font-family: sans-serif;
}

img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    /* Optional: Prevents users from highlighting the image like text */
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

html,
body {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


/* Hide scrollbar for Chrome, Safari, and Opera */

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}

@font-face {
    font-family: Clash;
    src: url("Assets/Fonts/ClashDisplay_Complete/Fonts/TTF/ClashDisplay-Variable.ttf");
}


/* =========================================
 2. KEY LAYOUT CLASSES (THE FIX)
========================================= */


/* The FIXED Layer - Always at the back */

.fixed-video-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    /* Behind everything */
    pointer-events: none;
    overflow: hidden;
}


/* The SCROLLING Layer - Moves over the video */

.scrolling-content {
    position: relative;
    z-index: 2;
    /* Top layer */
    width: 100%;
}


/* Blockers - These sections have solid colors to hide the video */

.solid-block {
    position: relative;
    background-color: #000;
    width: 100%;
    z-index: 2;
}

.solid-block-white {
    position: relative;
    background-color: #fff;
    width: 100%;
    z-index: 2;
}


/* The Reveal - This is transparent so we can see the fixed video */

.transparent-window {
    position: relative;
    width: 100%;
    height: 150vh;
    /* Adjust this to control how long the video is visible */
    background: transparent;
    pointer-events: none;
    z-index: 2;
}


/* =========================================
 3. MENU & NAV
========================================= */

.menuPage {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    z-index: 8999;
    clip-path: inset(100% 0% 0% 0%);
    display: flex;
    align-items: center;
}

.menuLeft {
    width: 40%;
    max-width: 550px;
    padding: 60px 40px;
    background-color: #000;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.menuList {
    position: relative;
    top: 150px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.menuItemWrapper {
    overflow: hidden;
    display: block;
}

.menuItemWrapper a {
    display: inline-block;
    transform: translateY(100%);
    font-family: sans-serif;
    font-size: 5rem;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    transition: transform 0.3s, color 0.3s;
}

.menuList li {
    margin-bottom: 1.5rem;
}

.menuItemWrapper a:hover {
    color: #ccc;
    transform: translateX(8px);
}

.menuFooter {
    position: absolute;
    bottom: 5vh;
    left: 0;
    width: 100%;
    height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    color: #fff;
    z-index: 10;
    font-size: 0.9rem;
}

.menuFooterLeft a img {
    width: 35px;
    height: 35px;
    filter: grayscale(1);
    transition: 0.5s;
    margin-right: 20px;
}

.menuFooterLeft a:hover img {
    filter: grayscale(0);
}

header {
    position: fixed;
    top: 0;
    right: 0;
    width: 100vw;
    height: 75px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 9000;
    pointer-events: none;
}

.headerRight,
.headerLeft {
    pointer-events: auto;
}

.headerRight {
    width: 120px;
    height: 50px;
    background-color: #091423;
    margin-right: 25px;
    border-radius: 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    overflow: hidden;
    filter: opacity(0);
}

.menuText {
    position: relative;
    left: 20px;
    height: 1.5rem;
    overflow: hidden;
    display: block;
}

.menuText span {
    display: block;
    color: #fff;
    font-size: 1.5rem;
    font-family: Clash;
    font-weight: 300;
    line-height: 1.5rem;
    transition: transform 0.4s ease;
}

.menuText span:nth-child(2) {
    position: absolute;
    top: 100%;
    left: 0;
}

.headerRight:hover .menuText span:nth-child(1),
.headerRight:hover .menuText span:nth-child(2) {
    transform: translateY(-100%);
}

.menuIcon {
    position: relative;
    right: 7.5px;
    width: 37.5px;
    height: 37.5px;
    background-color: white;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3px;
}

.menuIcon span {
    display: block;
    width: 20px;
    height: 1.5px;
    background-color: #091423;
    border-radius: 2px;
    transition: transform 0.75s ease, opacity 0.4s ease;
}

.headerRight.active .menuIcon span:nth-child(1) {
    transform: translateY(4.5px) rotate(45deg);
}

.headerRight.active .menuIcon span:nth-child(2) {
    opacity: 0;
}

.headerRight.active .menuIcon span:nth-child(3) {
    transform: translateY(-4.5px) rotate(-45deg);
}

.headerLeft {
    width: 100px;
    height: 30px;
    margin-left: 25px;
    border-radius: 50px;
    filter: opacity(0);
}

.headerLeft img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: invert(0);
    transition: 1s;
}

.headerLeft.active img {
    filter: invert(1);
}


/* =========================================
 4. LOADER (CENTERED & SPLIT)
========================================= */

#loader {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 9999;
}

#loader-top,
#loader-bottom {
    position: absolute;
    width: 100%;
    height: 50%;
    background: #000;
}

#loader-top {
    top: 0;
}

#loader-bottom {
    bottom: 0;
}

#progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    /* Changed from 200px to 100% to completely prevent clipping */
    height: 15rem;
    pointer-events: none;
    /* Good practice so the invisible container doesn't block clicks */
}

#pt-top,
#pt-bottom {
    position: absolute;
    font-family: Clash;
    font-size: 10rem;
    /* Adjusted for centering */
    line-height: 10rem;
    color: #fff;
    width: 100%;
    text-align: center;
}

#pt-top {
    clip-path: inset(0% 0% 50% 0%);
}

#pt-bottom {
    clip-path: inset(50% 0% 0% 0%);
}

#scene {
    visibility: hidden;
}


/* =========================================
 5. SECTIONS
========================================= */


/* HERO */

.landing-hero {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-dimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), #000);
    z-index: 2;
}

.hero-container {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-top: 5vh;
    padding-bottom: 12vh;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.giant-headline {
    font-family: 'Clash', sans-serif;
    font-size: 7vw;
    line-height: 1.1;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.giant-headline .word {
    display: inline-block;
    overflow: hidden;
    vertical-align: bottom;
}

.giant-headline .char {
    display: inline-block;
    transform: translateY(110%);
}

.hero-sub {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-subtitle {
    font-family: sans-serif;
    font-size: 1.6rem;
    color: rgba(255, 255, 255, 0.8);
    transform: translateY(100%);
    max-width: 600px;
}

.hero-actions {
    margin-top: 4rem;
    display: flex;
    align-items: center;
    gap: 3rem;
    opacity: 0;
    justify-content: center;
}

.btn-primary {
    background-color: #4caf50;
    color: #000;
    padding: 1.5rem 3rem;
    border-radius: 4rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.3s;
}

.btn-primary:hover {
    background-color: #fff;
    transform: scale(1.05);
}

.btn-text {
    color: #fff;
    font-size: 1.4rem;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: 0.3s;
}

.btn-text:hover {
    border-color: #fff;
}

.scroll-indicator {
    position: absolute;
    bottom: 2vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    z-index: 20;
}

.scroll-indicator span {
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.scroll-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    transform: translateY(-100%);
    animation: scrollDrop 2s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}

@keyframes scrollDrop {
    0% {
        transform: translateY(-100%);
    }
    100% {
        transform: translateY(100%);
    }
}


/* MANIFESTO */

.manifesto-section {
    padding: 15vh 0vw;
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.manifesto-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.manifesto-text {
    font-family: 'Clash', sans-serif;
    font-size: 4rem;
    line-height: 1.3;
    color: #091423;
    margin-bottom: 4rem;
}

.manifesto-text .highlight {
    color: #4caf50;
    font-style: italic;
}

.stat-box {
    background: #f4f4f4;
    padding: 3rem;
    border-radius: 2rem;
    display: inline-block;
    border: 1px solid #ddd;
    opacity: 0;
    transform: translateY(20px);
}

.stat-box p {
    font-family: 'Clash', sans-serif;
    font-size: 2.5rem;
    margin: 0;
    color: #555;
}

.stat-box .accent {
    color: #091423;
    font-weight: 600;
}

.line-mask {
    overflow: hidden;
}


/* STACKS */

.stack-section-wrapper {
    padding-bottom: 10vh;
}

.stack-header {
    padding: 10vh 5vw 5vh;
    text-align: center;
}

.stack-header .section-title {
    color: #fff;
    font-size: 6rem;
    font-family: Clash, sans-serif;
}

.stack-area {
    position: relative;
    padding: 0 5vw;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5vh;
}

.stack-card {
    position: sticky;
    top: 15vh;
    width: 100%;
    max-width: 1200px;
    height: 70vh;
    border-radius: 2rem;
    overflow: hidden;
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    transform-origin: center top;
    will-change: transform;
}

.stack-content {
    display: flex;
    width: 100%;
    height: 100%;
}

.stack-text {
    flex: 1;
    padding: 6rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.stack-num {
    font-size: 1.2rem;
    border: 1px solid currentColor;
    padding: 5px 15px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 2rem;
    opacity: 0.6;
}

.stack-text h3 {
    font-family: 'Clash', sans-serif;
    font-size: 4rem;
    margin: 0 0 2rem 0;
}

.stack-text p {
    font-size: 1.6rem;
    line-height: 1.6;
    max-width: 40ch;
    opacity: 0.8;
}

.stack-visual {
    flex: 1.2;
    height: 100%;
    overflow: hidden;
}

.stack-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s ease;
}

.stack-card:hover .stack-visual img {
    transform: scale(1.05);
}


/* =========================================
   BENTO GRID CHARTS SECTION
========================================= */

.charts-section-bento {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    /* Full screen feel */
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 50px 0px 50px 0px;
    background-color: #000;
    /* Fallback */
}


/* Background Image & Dimmer */

.charts-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.charts-bg-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.5);
}

.charts-overlay-dimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}


/* Container & Centering */

.charts-container-centered {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.charts-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-family: 'Clash', sans-serif;
    font-size: 4rem;
    color: #fff;
    margin: 0 0 1rem 0;
}


/* =========================================
   LIVE PULSE PANEL (GLASSMORPHISM B&W)
========================================= */

.glass-pulse-panel {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-radius: 24px;
    padding: 5rem 4rem;
    width: 100%;
    text-align: center;
    /* Ensures inner content stays perfectly centered */
}

.pulse-header {
    margin-bottom: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.eyebrow {
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ffffff;
    margin-right: 10px;
    animation: blink 1.4s ease-in-out infinite;
}

@keyframes blink {
    0%,
    100% {
        opacity: 1;
    }
    50% {
        opacity: 0.2;
    }
}

.pulse-title {
    font-family: 'Clash', sans-serif;
    font-size: 3.2rem;
    color: #ffffff;
    margin: 0 0 0.5rem 0;
}

.pulse-sub {
    color: #888888;
    font-size: 1.4rem;
    margin: 0;
}

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

.glass-kpi {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 3.5rem 2.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.kpi-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    opacity: 0.9;
}

.kpi-val {
    font-family: 'Clash', sans-serif;
    font-size: 4.5rem;
    line-height: 1;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.kpi-lbl {
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #aaaaaa;
}

.kpi-sub {
    font-size: 1.2rem;
    margin-top: 1rem;
    opacity: 0.6;
}


/* =========================================
   PURE SVG CHART STYLES
========================================= */

.svg-chart-container {
    position: relative;
    width: 100%;
    height: 250px;
    margin-top: 4rem;
    /* Hide the chart initially for GSAP to reveal it left-to-right */
    clip-path: inset(0 100% 0 0);
}

.svg-chart-container svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.x-labels {
    display: flex;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.x-labels span {
    font-size: 1.1rem;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}


/* Mobile Adjustments */

@media (max-width: 768px) {
    .svg-chart-container {
        height: 180px;
        margin-top: 2rem;
    }
}


/* Mobile Adjustments */

@media (max-width: 768px) {
    .glass-pulse-panel {
        padding: 3rem 2rem;
    }
    .top-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .pulse-title {
        font-size: 2.2rem;
    }
    .glass-kpi {
        padding: 2.5rem;
    }
}


/* --- BENTO GRID LAYOUT --- */

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Two equal columns */
    grid-template-rows: auto auto;
    gap: 2rem;
    width: 100%;
}

.bento-card {
    background: rgba(255, 255, 255, 0.03);
    /* Very subtle glass */
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s, border-color 0.3s;
}

.bento-card:hover {
    border-color: rgba(76, 175, 80, 0.4);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.wide-card {
    grid-column: 1 / -1;
    /* Spans all columns (Left to Right) */
}

.card-header {
    margin-bottom: 2rem;
}

.card-header h4 {
    color: #fff;
    font-family: 'Clash', sans-serif;
    font-size: 2rem;
    margin: 0;
}

.card-header span {
    color: #666;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* --- CHART 1: PIE (Conic Gradient) --- */

.pie-chart-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.pie-visual {
    /* Using CSS variable --p for percentage (0-100) */
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: conic-gradient(var(--c) calc(var(--p)*1%), #222 0);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.1);
    position: relative;
}

.pie-hollow {
    width: 140px;
    height: 140px;
    background-color: #0b0b0b;
    /* Matches card darkness approximately */
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    font-family: 'Clash', sans-serif;
    font-size: 3rem;
}

.pie-legend {
    width: 100%;
    margin-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 1.1rem;
    color: #ccc;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot.manual {
    background: #222;
}

.dot.afa {
    background: #4caf50;
    box-shadow: 0 0 5px #4caf50;
}


/* --- CHART 2: VERTICAL BARS --- */

.bar-chart-container {
    display: flex;
    justify-content: space-between;
    /* Spaced evenly */
    align-items: flex-end;
    height: 220px;
    padding: 0 1rem 1rem 1rem;
    gap: 15px;
}

.bar-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    flex: 1;
    max-width: 60px;
}

.bar-visual {
    width: 100%;
    border-radius: 8px 8px 0 0;
    height: 0%;
    /* Animated via JS */
    transition: opacity 0.3s;
}


/* Vertical Bar Colors */

.old-bar {
    background: #333;
}

.std-bar {
    background: #ffffff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4);
}

.afa-bar {
    background: #4caf50;
    box-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.bar-label {
    margin-top: 1rem;
    text-align: center;
    color: #888;
    font-size: 1.2rem;
    line-height: 1.4;
}

.bar-label strong {
    color: #fff;
    display: block;
    font-family: 'Clash', sans-serif;
    margin-top: 3px;
}


/* --- CHART 3: HORIZONTAL LINES (Scalability) --- */

.scalability-chart {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    justify-content: center;
    height: 100%;
}

.scale-row {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.scale-info {
    display: flex;
    justify-content: space-between;
    color: #ccc;
    font-size: 1.2rem;
}

.scale-val {
    font-family: 'Clash', sans-serif;
}

.scale-val.highlight {
    color: #4caf50;
    font-size: 1.4rem;
}

.scale-track {
    width: 100%;
    height: 12px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    overflow: hidden;
}

.scale-fill {
    height: 100%;
    width: 0%;
    border-radius: 6px;
}


/* Horizontal Line Colors */

.manual-fill {
    background: #ffffff;
    opacity: 0.4;
}

.std-fill {
    background: #ffffff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.afa-fill {
    background: linear-gradient(90deg, #1a4d2e, #4caf50);
}


/* =========================================
   NEW SECTION: BESPOKE SLIDER (Fixed Size & Pos)
========================================= */

.bespoke-slider-section {
    position: relative;
    width: 100vw;
    height: 100vh;
    background-color: #050505;
    color: #fff;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;
}

.bespoke-bg-lines {
    position: absolute;
    inset: 0;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 1;
    padding: 0 2vw;
}

.b-line {
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.08);
}

.bespoke-wrapper {
    position: relative;
    z-index: 5;
    width: 100%;
    height: 100%;
    padding: 0 2vw;
    display: grid;
    /* Grid Columns: Nav | Text | Image */
    grid-template-columns: 60px 1.2fr 1fr;
    gap: 3rem;
}


/* 1. Nav Column */

.bespoke-nav {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    height: 100%;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-right: 1rem;
    position: relative;
    z-index: 10;
}

.b-nav-item {
    font-family: sans-serif;
    font-size: 1rem;
    color: #555;
    width: 30px;
    height: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid #333;
    transition: all 0.3s;
    cursor: pointer;
}

.b-nav-item.active {
    color: #fff;
    border-color: #fff;
}


/* 2. Text Content (Adjusted) */

.bespoke-text-area {
    position: relative;
    width: 100%;
    height: 100%;
}

.b-headline {
    position: absolute;
    top: 15vh;
    /* Pinned comfortably from top */
    left: 0;
    font-family: 'Clash', sans-serif;
    /* FIX: Reduced from 9vw to 6vw */
    font-size: 6vw;
    line-height: 1.1;
    font-weight: 400;
    color: #fff;
    margin: 0;
    z-index: 10;
}

.b-desc-box {
    position: absolute;
    /* FIX: Raised from 12vh to 30vh so it sits higher up */
    bottom: 30vh;
    left: 0;
    max-width: 450px;
    z-index: 10;
}

.b-desc {
    font-family: sans-serif;
    font-size: 1.6rem;
    line-height: 1.4;
    color: #eee;
    margin: 0;
}


/* 3. Image Content */

.bespoke-image-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    padding-right: 2vw;
    position: relative;
    z-index: 5;
}

.b-img-label {
    position: absolute;
    top: 15vh;
    /* Aligns with Headline top */
    right: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: sans-serif;
    font-size: 1rem;
    text-transform: uppercase;
    color: #fff;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.arrow-icon {
    width: 30px;
    height: 30px;
    background: #fff;
    color: #000;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
}

.b-image-container {
    width: 100%;
    height: 50vh;
    /* Sized to look balanced */
    background: #111;
    overflow: hidden;
    position: relative;
    margin-top: 5vh;
    /* Slight offset to push image down a bit */
}

.b-active-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0);
    transition: transform 5s ease;
}


/* Mobile Responsive */

@media (max-width: 1024px) {
    .bespoke-wrapper {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        padding: 10vh 5vw;
    }
    .bespoke-nav {
        display: none;
    }
    .b-headline {
        position: relative;
        top: auto;
        font-size: 12vw;
        /* Larger on mobile for impact */
        margin-bottom: 2rem;
    }
    .b-desc-box {
        position: relative;
        bottom: auto;
    }
    .b-img-label {
        position: relative;
        top: auto;
        margin-bottom: 1rem;
    }
    .b-image-container {
        height: 400px;
        margin-top: 0;
    }
}


/* =========================================
   TRUST GRID SECTION (Empire Style)
========================================= */

.trust-grid-section {
    position: relative;
    width: 100vw;
    min-height: 100vh;
    /* Full screen height */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #000;
}


/* Background Logic */

.trust-bg-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.trust-bg-layer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.2);
    /* Stylish B&W look */
    transform: scale(1.1);
    /* Slight zoom for parallax if needed */
}

.trust-overlay-dimmer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    /* Dark overlay to make white lines pop */
    z-index: 1;
}


/* Content Container */

.trust-grid-container {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 0 5vw;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.trust-grid-header {
    text-align: center;
    margin-bottom: 4rem;
}

.trust-grid-header h3 {
    font-family: 'Clash', sans-serif;
    color: #fff;
    font-size: 3rem;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 2px;
}


/* --- THE GRID --- */

.logo-grid-wrapper {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    gap: 0;
}

.logo-box {
    position: relative;
    height: 30vh;
    /* Tall boxes like the reference */
    min-height: 250px;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    /* Divider lines */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, backdrop-filter 0.3s;
    cursor: default;
}


/* Remove border from the last item */

.logo-box:last-child {
    border-right: none;
}

.logo-box:hover {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
}

.logo-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    /* Ensure it sits above the background dimmer */
    position: relative;
    z-index: 10;
    /* Force visibility in case JS fails */
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.logo-box:hover .logo-content {
    transform: translateY(-5px);
    opacity: 1;
}

.company-logo {
    width: 80px;
    /* Slightly larger */
    height: 80px;
    object-fit: contain;
    /* STANDARD "MAKE IT WHITE" FILTER */
    /* 1. Turn it black (brightness 0) */
    /* 2. Invert it to white (invert 1) */
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: transform 0.3s;
}

.company-name {
    font-family: 'Clash', sans-serif;
    color: #fff;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* MARQUEE */


/* The parent stays perfectly flat to clip the rotated corners */

.landing-marquee-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin-bottom: 5rem;
    z-index: 5;
    /* Removed background, padding, and transform from here */
}


/* The child gets rotated, and carries the green background */

.landing-marquee {
    background-color: #4caf50;
    padding: 5vh 0;
    position: relative;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    transform: rotate(-2deg) scale(1.1);
    /* Rotation moved here */
}

.marquee__inner {
    display: inline-flex;
    will-change: transform;
}

.landing-marquee span {
    font-family: 'Clash', sans-serif;
    font-size: 6vw;
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0 2vw;
}


/* FIXED VIDEO STYLING */

.video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.centered-text-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100%;
    text-align: center;
}

.scroll-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'Clash', sans-serif;
    font-size: 8vw;
    color: #fff;
    opacity: 0;
    white-space: nowrap;
    margin: 0;
}


/* BOTTOM CURTAIN */

.landing-cta {
    position: relative;
    height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.landing-cta-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.landing-cta-bg img {
    width: 100%;
    height: 120%;
    object-fit: cover;
}

.landing-cta-bg .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}

.landing-cta-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.cta-headline {
    font-family: 'Clash', sans-serif;
    font-size: 7vw;
    line-height: 1;
    margin-bottom: 2rem;
    transform: translateY(50px);
    opacity: 0;
}

.cta-sub {
    font-family: sans-serif;
    font-size: 1.8rem;
    margin-bottom: 4rem;
    opacity: 0.8;
    transform: translateY(40px);
    opacity: 0;
}

.cta-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    transform: translateY(30px);
    opacity: 0;
}

footer {
    position: relative;
    width: 100vw;
    height: 70vh;
    /* ADD THIS LINE INSTEAD: */
    background: radial-gradient(circle at 50% 0%, #0d1b2a 0%, #000000 70%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.footerHeader {
    width: 100vw;
    height: 5vw;
    display: flex;
}

.footerHeaderLeft {
    width: 50%;
    height: 100%;
    font-size: 2rem;
    font-family: Clash;
    color: #fff;
    display: flex;
    align-items: center;
    padding-left: 20px;
}

.footerHeaderRight {
    width: 50%;
    height: 100%;
    font-size: 2rem;
    font-family: Clash;
    color: #fff;
    display: flex;
    justify-content: end;
    padding-right: 20px;
}

.footerHeaderRight ul {
    list-style-type: none;
    display: flex;
    gap: 30px;
}

.footerHeaderRight ul li a {
    color: #fff;
    text-decoration: none;
}

.footerMain {
    width: 100vw;
    height: 65vh;
    display: flex;
}

.footerMainLeft {
    width: 50%;
    display: flex;
}

.footerMainLeft img {
    position: absolute;
    top: 10vh;
    left: -50vw;
    width: 45vw;
    object-fit: cover;
}

.footerMainRight {
    display: flex;
    width: 50%;
    height: 100%;
    align-items: flex-end;
    justify-content: center;
}

.footerMainRightLetter {
    display: flex;
    align-items: flex-end;
    margin-bottom: -7.5rem;
    overflow: hidden;
}

.footerMainRightLetter span {
    font-size: 35rem;
    position: relative;
    left: -300px;
    font-family: Clash;
    line-height: 1;
    color: #fff;
}


/* Mobile Responsive */

@media (max-width: 1024px) {
    .logo-grid-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
    .logo-box:nth-child(3) {
        border-right: none;
    }
    .logo-box:nth-child(4),
    .logo-box:nth-child(5) {
        border-top: 1px solid rgba(255, 255, 255, 0.2);
    }
}

@media (max-width: 768px) {
    /* YOUR EXISTING MOBILE RULES */
    .trust-grid-section {
        min-height: 60vh !important
    }
    .trust-grid-container {
        overflow: hidden;
        /* Hide the scrolling overflow */
        padding: 0;
    }
    .logo-grid-wrapper {
        display: flex;
        /* Forces them into a row */
        flex-wrap: nowrap;
        width: max-content;
        /* Allows the container to stretch beyond the screen */
        border-bottom: none;
    }
    .logo-box {
        border-right: 1px solid rgba(255, 255, 255, 0.2) !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        height: 15vh;
        min-height: 120px;
        width: 200px;
        /* Fixed width for the marquee */
        flex-shrink: 0;
        /* Prevents logos from squishing */
    }
    .trust-grid-header h3 {
        font-size: 1.5rem;
    }
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-card {
        border-radius: 0px
    }
    .wide-card {
        grid-column: auto;
    }
    .pie-legend {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    .giant-headline {
        font-size: 10vw;
    }
    .hero-actions {
        flex-direction: column;
    }
    .landing-marquee span {
        font-size: 12vw;
    }
    .scroll-text {
        font-size: 4rem;
        opacity: 0;
    }
    /* FIX: MANIFESTO SECTION */
    .manifesto-section {
        padding: 0vh 0vw;
    }
    .manifesto-wrapper {
        padding-left: 5vw;
        padding-right: 5vw;
    }
    .manifesto-text {
        font-size: 1.8rem;
        margin-bottom: 3rem;
    }
    .stat-box {
        padding: 2rem;
    }
    .stat-box p {
        font-size: 1.6rem;
    }
    /* FIX: STACK CARDS (Image on top, text below) */
    .stack-header .section-title {
        font-size: 5rem;
    }
    .stack-card {
        height: auto;
        min-height: 60vh;
    }
    .stack-content {
        flex-direction: column-reverse;
    }
    .stack-visual {
        flex: none;
        height: 300px;
        width: 100%;
    }
    .stack-text {
        flex: none;
        padding: 3rem 2rem;
        align-items: flex-start;
    }
    .stack-text h3 {
        font-size: 2.5rem;
    }
    .stack-text p {
        max-width: 100%;
    }
    .landing-cta-content {
        padding: 0vw 5vw 0vw 5vw;
    }
    .bespoke-wrapper {
        height: auto;
    }
    .bespoke-image-area {
        padding: 0;
    }
    /* =========================================
     FIX: MOBILE FOOTER
  ========================================= */
    footer {
        height: auto;
        min-height: 60vh;
        /* Give it enough breathing room */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        /* Pushes header to top, AFA text to bottom */
        padding-bottom: 0;
        /* Remove padding so letters sit perfectly flush */
    }
    /* 1. Fix the Navigation (Two Rows) */
    .footerHeader {
        height: 30vh;
        flex-direction: column;
        gap: 3rem;
        /* padding: 4rem 2rem 0;  */
    }
    .footerHeaderLeft,
    .footerHeaderRight {
        width: 100%;
        justify-content: center;
        padding: 0;
    }
    .footerHeaderRight ul {
        display: flex;
        grid-template-columns: 1fr 1fr;
        /* Creates two equal columns */
        gap: 1.5rem 3rem;
        /* Row gap, Column gap */
        width: 100%;
        max-width: 300px;
        /* Keeps the grid tight and centered */
        padding: 0;
        margin: 0 auto;
        text-align: center;
    }
    /* Force the 3rd item (Pricings) to span across both columns so it centers on the second row */
    .footerHeaderRight ul li:nth-child(3) {
        grid-column: span 2;
    }
    /* 2. Fix the AFA Text (Centered, Fully Visible, Sticky Bottom) */
    .footerMain {
        height: auto;
        flex: 1;
        /* Takes up remaining space pushing it down */
        flex-direction: column;
        padding-top: 2rem;
        justify-content: flex-end;
        /* Aligns content to the very bottom */
    }
    .footerMainLeft {
        display: none;
    }
    .footerMainRight {
        display: flex !important;
        /* Forces row alignment */
        flex-direction: row !important;
        /* Keeps AFA letters side-by-side */
        align-items: center !important;
        justify-content: center !important;
        background-color: transparent !important;
        /* Removes unwanted black box */
        width: 100% !important;
    }
    /* Slight buffer from the literal screen edge */
}

.footerMainRightLetter {
    margin-bottom: 0;
    gap: 3vw;
    overflow: visible;
    /* Stops the letters from getting chopped off */
}

.footerMainRightLetter span {
    color: #ffffff !important;
    /* Force white text for visibility */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    /* Adds a subtle shadow to pop against the background */
    font-size: 28vw !important;
    line-height: 0.75;
}