:root {
    --primary: #009B94; --deep: #00627B; --navy: #00667C;
    --dark: #050505; --grey: #1a1d21; --white: #ffffff;
    --font-body: 'Manrope', sans-serif; --font-display: 'Oswald', sans-serif;
    --transition: all 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
    --transition-wow: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
    --petrol: #004d4d;
}

@font-face {
    font-family: 'Moonhouse';
    src: url('../assets/font/moonhouse.woff2') format('woff2'),
         url('../assets/font/moonhouse.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* CRITICAL LAYOUT RESET */
* { margin:0; padding:0; box-sizing: border-box; }

::selection { background: var(--primary); color: white; }
::-moz-selection { background: var(--primary); color: white; }

html { scroll-behavior: smooth; }
body { font-family: var(--font-body); color: var(--dark); line-height: 1.6; background-color: #050505; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; object-fit: cover; }

/* Interactive Elements Cursor */
a, button, .burger, .action-btn, .nav-link-hover, .prod-card, .corridor-node, .hover-target {
    cursor: pointer;
}

/* --- STATIC FILM GRAIN (Subtle) --- */
.grain-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none; z-index: 9000; opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- PRELOADER & LENIS --- */
html.lenis { height: auto; } 
.lenis.lenis-smooth { scroll-behavior: auto; } 
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; } 
.lenis.lenis-stopped { overflow: hidden; } 
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* UPDATED: PERFORMANCE OPTIMIZED PRELOADER */
.preloader {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #050505; z-index: 99999;
    display: flex; justify-content: center; align-items: center;
    transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}
.preloader.hidden { transform: translateY(-100%); }

.loader-content { 
    display: flex; flex-direction: column; align-items: center; gap: 0;
}

.loader-logo-box {
    margin-bottom: 50px;
    opacity: 0; animation: fadeUp 0.8s ease 0.2s forwards;
}
.loader-logo-box img { height: 65px; width: auto; }

/* Optimized Glass Jar (No Blur) */
.chem-jar {
    width: 60px; height: 100px;
    background: rgba(255,255,255,0.05); /* Increased opacity instead of blur */
    border: 3px solid rgba(255,255,255,0.15);
    border-top: none;
    border-radius: 0 0 16px 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0,0,0,0.5);
}

.glass-shine {
    position: absolute; top: 0; left: 5px; width: 10px; height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.05), rgba(255,255,255,0.0));
    z-index: 3; pointer-events: none;
}

.jar-marks {
    position: absolute; top: 20px; right: 8px; width: 6px; height: 100%;
    background: repeating-linear-gradient(transparent, transparent 15px, rgba(255,255,255,0.2) 15px, rgba(255,255,255,0.2) 16px);
    z-index: 2; opacity: 0.5;
}

.chem-liquid {
    position: absolute; bottom: 0; left: 0; width: 100%; height: 0%;
    background: linear-gradient(to bottom, #003333, #001a1a 40%, #000000 90%);
    box-shadow: 0 0 20px rgba(0, 51, 51, 0.4);
    transition: height 0.2s linear;
    z-index: 1;
}

.liquid-surface {
    position: absolute; top: -4px; left: 0; width: 100%; height: 8px;
    background: #004d4d;
    border-radius: 50%;
    opacity: 0.8;
}

.bubbles span {
    position: absolute; bottom: -10px;
    width: 4px; height: 4px; background: rgba(255,255,255,0.3);
    border-radius: 50%;
    animation: rise 3s infinite ease-in;
}
.bubbles span:nth-child(1) { left: 20%; animation-duration: 2.5s; animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 50%; animation-duration: 3.5s; animation-delay: 0.5s; }
.bubbles span:nth-child(3) { left: 80%; animation-duration: 2.8s; animation-delay: 1.5s; }
.bubbles span:nth-child(4) { left: 35%; animation-duration: 4s; animation-delay: 2s; width: 2px; height: 2px; }

@keyframes rise {
    0% { bottom: -10px; opacity: 0; transform: translateX(0); }
    20% { opacity: 0.6; }
    100% { bottom: 100%; opacity: 0; transform: translateX(3px); }
}

.loader-meta {
    margin-top: 15px;
    text-align: center;
}

.loading-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: rgba(255,255,255,0.5);
    font-weight: 700;
    letter-spacing: 2px;
}

/* NEW BRAND NAME IN LOADER */
.loader-brand {
    font-family: var(--font-display);
    color: #fff;
    letter-spacing: 3px;
    font-size: 0.85rem;
    margin-top: 8px;
    opacity: 0.6;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

/* Safe Anchoring */
section { scroll-margin-top: 100px; }
.container { width: 100%; max-width: 1400px; margin: 0 auto; padding: 0 5%; }

/* --- SCROLL PROGRESS BAR --- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #2596be);
    z-index: 10000;
    transition: none;
    pointer-events: none;
    box-shadow: 0 0 10px rgba(0, 155, 148, 0.5);
}

/* --- ACTIVE NAV LINK --- */
.nav-link-hover.active-section {
    color: white;
}
.nav-link-hover.active-section::after {
    width: 60%;
    opacity: 1;
    background: var(--primary);
    box-shadow: 0 -2px 10px rgba(0, 155, 148, 0.6);
}

/* --- CHARACTER SPLIT ANIMATION --- */
.split-text .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) rotateX(-40deg);
    transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.split-text .char.space {
    width: 0.3em;
}
.split-text.animated .char {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
}

/* --- 4.0 OPTIMIZED NAVIGATION --- */
nav { 
    position: fixed; 
    top: 25px; 
    left: 0; right: 0; margin: 0 auto; 
    width: 92%; max-width: 1360px;
    height: 85px;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.9); 
    border-radius: 16px; 
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 15px 40px rgba(0,0,0,0.25); 
    display: flex; align-items: center; 
    transition: all 0.6s cubic-bezier(0.22, 1, 0.36, 1); 
    transform: translateZ(0); will-change: transform;
}

@media (min-width: 1024px) {
    nav {
        background: rgba(10, 10, 10, 0.7);
        backdrop-filter: blur(16px) saturate(180%);
        -webkit-backdrop-filter: blur(16px) saturate(180%);
    }
}

/* Light streak removed for cleaner navbar */

nav.nav-hidden { transform: translateY(-200%); opacity: 0; }

.nav-wrapper { width: 100%; height: 100%; margin: 0 auto; padding: 0 40px; display: flex; justify-content: space-between; align-items: center; }

.brand-logo img { 
    height: 42px; width: auto; 
    transition: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    filter: brightness(1);
}
.brand-logo:hover img { 
    filter: brightness(1.2) drop-shadow(0 0 15px rgba(255,255,255,0.4)); 
    transform: scale(1.05);
}

.nav-right { display: flex; align-items: center; gap: 40px; }
.nav-menu { display: flex; list-style: none; gap: 40px; margin: 0; padding: 0; }

.nav-link-hover { 
    position: relative; text-decoration: none; color: rgba(255,255,255,0.65); 
    font-weight: 500; font-size: 0.8rem; text-transform: uppercase; 
    letter-spacing: 1px; transition: all 0.5s ease; padding: 5px 0;
}
.nav-link-hover::after {
    content: ''; position: absolute; bottom: 0; left: 50%;
    width: 0%; height: 1px; background: white;
    transform: translateX(-50%);
    transition: width 0.4s ease;
    box-shadow: 0 -2px 10px rgba(255,255,255,0.8);
    opacity: 0;
}
.nav-link-hover:hover { 
    color: white; letter-spacing: 3px; text-shadow: 0 0 15px rgba(255,255,255,0.5);
}
.nav-link-hover:hover::after { width: 60%; opacity: 1; }

.action-btn { 
    position: relative; overflow: hidden;
    background: rgba(255,255,255,0.03); 
    color: var(--primary); 
    border: 1px solid rgba(0, 155, 148, 0.5);
    padding: 10px 28px; text-decoration: none; 
    font-weight: 700; font-size: 0.75rem; border-radius: 4px; 
    white-space: nowrap; transition: 0.4s ease;
    z-index: 1; letter-spacing: 2px;
}
.action-btn:hover { 
    background: var(--primary); color: #000; border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 155, 148, 0.3); 
}

.burger { display: none; cursor: pointer; flex-direction: column; gap: 6px; z-index: 1100; }
.burger span { width: 30px; height: 1px; background: rgba(255,255,255,0.8); transition: 0.4s; }
.burger:hover span { background: white; width: 35px; }

/* HERO SECTION */
.hero-section { position: relative; min-height: 100vh; display: flex; align-items: center; color: white; overflow: hidden; }
.video-bg { position: absolute; top:0; left:0; width:100%; height:100%; z-index:-1; will-change: transform; }
.video-bg video { width:100%; height:100%; object-fit: cover; }

.grid-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px; z-index: 0; pointer-events: none;
}

.overlay-gradient { 
    position: absolute; top:0; left:0; width:100%; height:100%; 
    background: linear-gradient(90deg, rgba(0,0,0,0.98) 0%, rgba(0,0,0,0.8) 50%, transparent 100%); 
    z-index: 1; 
}

.hero-content { position: relative; z-index: 2; padding-top: 140px; max-width: 900px; will-change: transform, opacity; }
.hero-label { color: var(--primary); letter-spacing: 3px; font-weight: 700; margin-bottom: 20px; font-size: 0.9rem; text-transform: uppercase; }

/* NEW HERO BRAND HEADER (Reverted to Oswald) */
.hero-brand {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: #2596be;
    letter-spacing: 2px;
    margin-bottom: 20px;
    text-shadow: 0 0 15px rgba(37, 150, 190, 0.5);
    text-transform: uppercase;
    font-weight: 700;
}

h1 { 
    font-family: var(--font-display); font-size: 5rem; line-height: 1.1; margin-bottom: 30px; letter-spacing: -2px; color: white;
}

.petrol-text {
    position: relative; display: inline-block;
    color: rgba(255, 255, 255, 0.1);
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.6);
    background: linear-gradient(to top, var(--petrol) 50%, transparent 50.5%);
    background-size: 100% 200%;
    background-position: 0% 100%;
    -webkit-background-clip: text; background-clip: text;
    transition: background-position 3.5s cubic-bezier(0.19, 1, 0.22, 1);
    clip-path: inset(0 100% 0 0);
}
.petrol-text.revealed {
    clip-path: inset(0 0% 0 0);
    transition: clip-path 1s cubic-bezier(0.16, 1, 0.3, 1), background-position 3.5s cubic-bezier(0.19, 1, 0.22, 1);
}
.petrol-text.filling { background-position: 0% 0%; }

.reveal {
    opacity: 0; transform: translateY(30px);
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.2, 1, 0.3, 1);
    will-change: opacity, transform;
}
.reveal.active { opacity: 1; transform: translateY(0); }

.hero-content .entrance-reveal:nth-child(1) { transition-delay: 0.2s; }
.hero-content .entrance-reveal:nth-child(2) { transition-delay: 0.4s; }
.hero-content .entrance-reveal:nth-child(3) { transition-delay: 0.6s; }
.hero-content .entrance-reveal:nth-child(4) { transition-delay: 0.8s; }

.hero-lead-wrapper { max-width: 700px; margin-bottom: 60px; border-left: 2px solid var(--primary); padding-left: 30px; }
.hero-lead { font-size: 1.25rem; color: #e0e0e0; font-weight: 300; line-height: 1.6; }

/* Stats - Optimized */
.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 40px; }
.hero-stats .stat-card {
    opacity: 0; transform: translateY(50px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-stats .stat-card.stat-visible { opacity: 1; transform: translateY(0); }
.hero-stats .stat-card:nth-child(1) { transition-delay: 1.2s; }
.hero-stats .stat-card:nth-child(2) { transition-delay: 1.5s; }
.hero-stats .stat-card:nth-child(3) { transition-delay: 1.8s; }

.stat-card { 
    position: relative; display: flex; align-items: center; gap: 15px; overflow: hidden;
    background: rgba(20, 20, 20, 0.9); /* Opaque for mobile perf */
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 20px 30px; min-width: 240px; transition: 0.4s; 
}

@media (min-width: 1024px) {
    .stat-card {
        background: rgba(20, 20, 20, 0.4);
        backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    }
}

.stat-card::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: skewX(-25deg);
    animation: sheen 6s infinite;
    pointer-events: none;
}
@keyframes sheen { 0%, 80% { left: -100%; } 100% { left: 200%; } }

.stat-card:hover { 
    border-color: rgba(0, 155, 148, 0.5); transform: translateY(-5px); 
    background: rgba(30, 30, 30, 0.9);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); 
}
.status-light { position: absolute; top: 10px; right: 10px; width: 6px; height: 6px; background-color: #00ff88; border-radius: 50%; box-shadow: 0 0 5px #00ff88; animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 0.5; } 50% { opacity: 1; box-shadow: 0 0 10px #00ff88; } 100% { opacity: 0.5; } }
.sc-icon { color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.sc-text { display: flex; flex-direction: column; }
.stat-card .num { font-family: var(--font-display); font-size: 1.2rem; color: white; line-height: 1.1; text-transform: uppercase; letter-spacing: 1px; }
.stat-card .desc { font-size: 0.75rem; color: #ccc; text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }

.scroll-indicator {
    position: relative; margin: 40px auto 0;
    width: 100%; display: flex; flex-direction: column; align-items: center; gap: 10px;
    z-index: 10; opacity: 0; animation: fadeUp 1s ease 1s forwards;
}
.mouse-icon {
    width: 26px; height: 42px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    position: relative;
}
.mouse-icon::before {
    content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
    width: 4px; height: 4px; background: var(--primary); border-radius: 50%;
    animation: scrollWheel 2s infinite;
}
@keyframes scrollWheel { 0% { opacity: 1; top: 8px; } 100% { opacity: 0; top: 20px; } }
.scroll-text { font-size: 0.7rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 2px; }

.watermark-huge { position: absolute; font-size: 25vw; font-family: var(--font-display); font-weight: 800; color: rgba(255,255,255,0.02); line-height: 1; pointer-events: none; z-index: 0; top: 0; left: -5%; }
.watermark-huge.right-side { left: auto; right: -5%; text-align: right; }
.watermark-huge.center { left: 50%; transform: translateX(-50%); top: 10%; }

/* Sections */
/* --- Strategic Capabilities Section --- */
.section-capabilities { background: #080808; }
.section-label { color: var(--primary); letter-spacing: 4px; margin-bottom: 20px; font-weight: 700; font-size: 0.8rem; text-transform: uppercase; }
.display-title { font-family: var(--font-display); font-weight: 700; font-size: 4rem; line-height: 1.1; margin-bottom: 30px; letter-spacing: -1px; text-transform: uppercase; }

.cap-grid {
    display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh;
}
.cap-text-col {
    padding: 100px 6% 100px 8%; display: flex; flex-direction: column; justify-content: center;
    color: white; position: relative;
}
.cap-header { margin-bottom: 50px; }

/* Capability items */
.cap-stack { display: flex; flex-direction: column; gap: 0; margin-bottom: 50px; }
.cap-item {
    display: flex; align-items: center; gap: 20px;
    padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1); cursor: default;
}
.cap-item:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.cap-item:hover { padding-left: 15px; border-bottom-color: var(--primary); }
.cap-item-head {
    display: flex; align-items: center; gap: 15px; flex-shrink: 0;
    color: var(--primary);
}
.cap-item-num {
    font-family: var(--font-display); font-size: 1.2rem; color: rgba(255,255,255,0.15);
    min-width: 30px;
}
.cap-item-body h3 {
    font-family: var(--font-display); font-size: 1.1rem; color: white;
    text-transform: uppercase; letter-spacing: 1px; margin: 0 0 4px 0;
}
.cap-item-body p { font-size: 0.85rem; color: #777; margin: 0; }

/* Metrics row */
.cap-metrics { display: flex; gap: 50px; }
.cap-metric { display: flex; flex-direction: column; }
.cap-metric-val {
    font-family: var(--font-display); font-size: 2.5rem; color: white;
    display: block; line-height: 1;
}
.cap-metric-lbl { font-size: 0.7rem; color: #555; text-transform: uppercase; letter-spacing: 2px; margin-top: 5px; }

/* Image column */
.cap-image-col { position: relative; }
.cap-image-wrapper {
    position: sticky; top: 0; width: 100%; height: 100vh;
}
.cap-image-wrapper img {
    width: 100%; height: 100%; object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.cap-image-wrapper:hover img { transform: scale(1.03); }

/* Portfolio Showcase */
.section-showcase { background: #050505; color: white; position: relative; overflow: hidden; }
.showcase-header { padding: 100px 0 60px; }
.portfolio-intro { max-width: 800px; margin-bottom: 0; border-left: 4px solid var(--primary); padding-left: 30px; }
.portfolio-desc { font-size: 1.5rem; line-height: 1.5; color: #ddd; font-weight: 300; }

.showcase-stage {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 500px;
    overflow: hidden;
}

/* Background image layers */
.showcase-bg-layer {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.08);
    transition: opacity 1.2s ease, transform 6s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}
.showcase-bg-layer.active {
    opacity: 1;
    transform: scale(1);
}

.showcase-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(5,5,5,0.3) 0%, rgba(5,5,5,0.1) 40%, rgba(5,5,5,0.6) 70%, rgba(5,5,5,0.95) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Product info */
.showcase-info {
    position: absolute;
    bottom: 120px;
    left: 5%;
    z-index: 3;
    max-width: 600px;
}
.showcase-number {
    font-family: var(--font-display);
    font-size: 8rem;
    font-weight: 700;
    color: rgba(255,255,255,0.06);
    line-height: 1;
    position: absolute;
    top: -80px;
    left: -10px;
    pointer-events: none;
    transition: opacity 0.6s ease;
}
.showcase-title {
    font-family: var(--font-display);
    font-size: 4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -1px;
    line-height: 1.1;
    margin: 0 0 15px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease 0.2s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s;
}
.showcase-desc {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
    max-width: 450px;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.5s ease 0.35s, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.35s;
}
.showcase-stage.text-visible .showcase-title,
.showcase-stage.text-visible .showcase-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Counter */
.showcase-counter {
    position: absolute;
    top: 40px;
    right: 5%;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
}
.sc-current {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    transition: opacity 0.3s;
}
.sc-divider {
    width: 40px;
    height: 1px;
    background: rgba(255,255,255,0.3);
}
.sc-total {
    font-size: 1rem;
    color: rgba(255,255,255,0.4);
}

/* Navigation strip */
.showcase-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 4;
    display: flex;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.showcase-tab {
    flex: 1;
    padding: 20px 10px;
    text-align: center;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease;
    background: rgba(5,5,5,0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.showcase-tab:hover {
    background: rgba(255,255,255,0.05);
}
.showcase-tab.active {
    background: rgba(0, 155, 148, 0.08);
}

.tab-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,0.05);
    overflow: hidden;
}
.tab-progress-fill {
    width: 0%;
    height: 100%;
    background: var(--primary);
    transition: none;
}
.showcase-tab.active .tab-progress-fill {
    width: 100%;
    transition: width 5s linear;
}

.tab-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255,255,255,0.4);
    font-weight: 500;
    transition: color 0.3s;
}
.showcase-tab.active .tab-label {
    color: white;
}
.showcase-tab:hover .tab-label {
    color: rgba(255,255,255,0.8);
}

/* Execution */
.section-ops-pipeline { background: #111; padding: 140px 0 60px; position: relative; }
.ops-header { margin-bottom: 80px; position: relative; z-index: 2; }
.ops-header h2 { font-family: var(--font-display); font-weight: 700; font-size: 4rem; color: white; margin-bottom: 20px; line-height: 1.1; letter-spacing: -1px; text-transform: uppercase; }
.pipeline-wrapper { display: flex; flex-direction: column; gap: 30px; position: relative; z-index: 2; padding-bottom: 10vh; }
.pipeline-row {
    position: sticky; top: 80px;
}
.pipeline-row:nth-child(1) { top: 80px; z-index: 1; }
.pipeline-row:nth-child(2) { top: 100px; z-index: 2; }
.pipeline-row:nth-child(3) { top: 120px; z-index: 3; }
.row-num-inline {
    font-family: var(--font-display); font-size: 0.85rem; color: var(--primary);
    letter-spacing: 3px; text-transform: uppercase; margin-bottom: 10px; display: block;
}
.row-card {
    background: #1a1a1a; border: 1px solid #222; overflow: hidden; display: flex; width: 100%;
    will-change: transform, opacity;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}
.row-card:hover { border-color: var(--primary); }
.row-visual { width: 40%; min-height: 300px; background-size: cover; background-position: center; }
.row-content { padding: 50px; width: 60%; display: flex; flex-direction: column; justify-content: center; }
.row-content h4 { font-family: var(--font-display); font-size: 1.8rem; margin-bottom: 15px; text-transform: uppercase; color: white; }
.row-content p { color: #999; margin-bottom: 20px; font-size: 1rem; }
.tech-specs { display: flex; gap: 30px; font-size: 0.9rem; color: #666; border-top: 1px solid #333; padding-top: 15px; }
.tech-specs .dot { display: inline-block; width: 6px; height: 6px; background: var(--primary); border-radius: 50%; margin-right: 8px; }
.pipeline-row.reverse .row-card { flex-direction: row-reverse; }

/* Governance */
.section-governance { background: #080808; color: white; position: relative; }
.gov-hero { position: relative; height: 60vh; min-height: 450px; overflow: hidden; display: flex; align-items: flex-end; }
.gov-hero-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; filter: grayscale(80%) brightness(0.7); }
.gov-hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(180deg, rgba(8,8,8,0.3) 0%, rgba(8,8,8,0.5) 50%, rgba(8,8,8,0.95) 100%);
}
.gov-hero-content { position: relative; z-index: 2; padding-bottom: 70px; max-width: 700px; }
.gov-title { font-family: var(--font-display); font-weight: 700; font-size: 5rem; line-height: 1.05; letter-spacing: -2px; text-transform: uppercase; margin-bottom: 25px; text-shadow: 0 2px 40px rgba(0,0,0,0.6); }
.gov-lead { font-size: 1.15rem; color: #ccc; line-height: 1.7; font-weight: 300; }
.gov-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; padding: 80px 0; }
.gov-pillar {
    padding: 50px 40px; border-left: 1px solid #222; position: relative; transition: background 0.4s;
}
.gov-pillar:first-child { border-left: none; }
.gov-pillar:hover { background: rgba(255,255,255,0.03); }
.pillar-num { font-family: var(--font-display); font-size: 0.8rem; color: var(--primary); letter-spacing: 3px; display: block; margin-bottom: 20px; }
.gov-pillar h4 { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; color: white; margin-bottom: 15px; letter-spacing: -0.5px; }
.gov-pillar p { color: #888; font-size: 0.95rem; line-height: 1.6; margin: 0; }
.pillar-line { width: 40px; height: 2px; background: var(--primary); margin-top: 25px; opacity: 0; transition: opacity 0.4s, width 0.4s; }
.gov-pillar:hover .pillar-line { opacity: 1; width: 60px; }

/* Corridor */
/* Corridor — scroll-locked voyage */
.corridor-scroll-container { height: 400vh; position: relative; }
.section-tech-corridor {
    position: sticky; top: 0; height: 100vh;
    background: #000; overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
}
.ultra-display { font-family: var(--font-display); font-weight: 700; font-size: 4rem; color: #fff; text-transform: uppercase; margin-bottom: 20px; letter-spacing: -1px; line-height: 1.1; }
.text-gradient { background: linear-gradient(90deg, var(--primary), #fff); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.corridor-lead { color: #888; font-size: 1.1rem; max-width: 600px; line-height: 1.6; }
.corridor-header-area { padding-top: 30px; }

/* Voyage stage — the ocean */
.voyage-stage {
    position: relative; width: 100%; height: 200px;
    margin: 40px 0 20px;
}

/* Ocean surface */
.ocean-line {
    position: absolute; top: 55%; left: 0; width: 100%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0,155,148,0.15) 20%, rgba(0,155,148,0.25) 50%, rgba(0,155,148,0.15) 80%, transparent);
}

/* Wake trail */
.ship-wake {
    position: absolute; top: 55%; left: 0; width: 0%;
    height: 2px; transform: translateY(-50%);
    background: linear-gradient(90deg, transparent, rgba(0,155,148,0.05) 30%, rgba(0,155,148,0.3));
    box-shadow: 0 0 20px rgba(0,155,148,0.15), 0 4px 30px rgba(0,155,148,0.05);
    will-change: width;
}

/* The ship */
.voyage-ship {
    position: absolute; top: 50%; left: -5%;
    width: 140px; transform: translate(0, -55%);
    z-index: 10; will-change: left;
    animation: shipBob 3s ease-in-out infinite;
}
.voyage-ship img { width: 100%; height: auto; }

@keyframes shipBob {
    0%, 100% { transform: translate(0, -55%); }
    50% { transform: translate(0, -52%); }
}

/* Port markers */
.port-marker {
    position: absolute; top: 0; transform: translateX(-50%);
    display: flex; flex-direction: column; align-items: center;
    z-index: 5; opacity: 0.3; transition: opacity 0.6s;
}
.port-marker.reached { opacity: 1; }
.port-pin {
    width: 12px; height: 12px; border-radius: 50%;
    background: #111; border: 2px solid #333;
    transition: all 0.4s;
    position: relative;
}
.port-pin::after {
    content: ''; position: absolute; top: 100%; left: 50%;
    width: 1px; height: 50px; background: #333;
    transform: translateX(-50%); transition: background 0.4s;
}
.port-marker.reached .port-pin {
    background: var(--primary); border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0,155,148,0.6);
}
.port-marker.reached .port-pin::after { background: var(--primary); opacity: 0.4; }
.port-flag {
    margin-top: 60px; text-align: center;
    display: flex; flex-direction: column; gap: 4px;
}
.port-region {
    font-size: 0.65rem; letter-spacing: 3px; text-transform: uppercase;
    color: var(--primary); font-weight: 600;
}
.port-name {
    font-family: var(--font-display); font-size: 0.85rem; color: white;
    text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
}

/* Voyage counter */
.voyage-counter {
    position: absolute; top: 10px; right: 5%;
    display: flex; align-items: baseline; gap: 3px; z-index: 5;
}
.vc-num { font-family: var(--font-display); font-size: 2.5rem; color: var(--primary); font-weight: 700; }
.vc-unit { font-family: var(--font-display); font-size: 1rem; color: var(--primary); }
.vc-label { font-size: 0.7rem; letter-spacing: 2px; text-transform: uppercase; color: #555; margin-left: 8px; }

/* Voyage detail cards */
.voyage-details { padding: 0; }
.voyage-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.voyage-card {
    padding: 30px 25px; border-left: 1px solid #151515;
    opacity: 0.2; transform: translateY(15px);
    transition: opacity 0.6s, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.voyage-card:first-child { border-left: none; }
.voyage-card.active { opacity: 1; transform: translateY(0); }
.vc-idx {
    font-family: var(--font-display); font-size: 0.75rem; color: var(--primary);
    letter-spacing: 3px; display: block; margin-bottom: 12px;
}
.voyage-card h4 {
    font-family: var(--font-display); font-size: 1.2rem; color: white;
    text-transform: uppercase; margin-bottom: 8px; letter-spacing: -0.5px;
}
.voyage-card p { color: #666; font-size: 0.85rem; line-height: 1.5; }
.mobile-ship-track { display: none; }

/* Footer */
footer { position: relative; overflow: hidden; background: #050505; color: #777; }

.footer-watermark {
    position: absolute; bottom: -10%; left: 50%; transform: translateX(-50%);
    font-family: var(--font-display); font-size: 18vw; font-weight: 700;
    color: rgba(255, 255, 255, 0.02); white-space: nowrap; z-index: 0;
    pointer-events: none; line-height: 1; user-select: none;
}

/* CTA area */
.footer-top { position: relative; z-index: 2; padding: 120px 0 80px; border-top: 1px solid #111; }
.footer-cta { text-align: center; }
.footer-headline {
    font-family: var(--font-display); font-size: 4rem; font-weight: 700;
    text-transform: uppercase; color: white; line-height: 1.1; letter-spacing: -1px; margin-bottom: 40px;
}
.cta-primary {
    display: inline-block; padding: 18px 50px;
    background: var(--primary); color: #000; font-family: var(--font-display);
    text-transform: uppercase; letter-spacing: 2px; font-size: 0.85rem; font-weight: 700;
    text-decoration: none; transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid var(--primary);
}
.cta-primary:hover {
    background: transparent; color: var(--primary);
    box-shadow: 0 0 30px rgba(0,155,148,0.2);
}

/* Main footer grid */
.footer-main { position: relative; z-index: 2; padding: 60px 0; border-top: 1px solid #111; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.8fr; gap: 60px; }
.ft-nav-connect-row { display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; }
.footer-col h5 {
    color: #fff; font-family: var(--font-display); text-transform: uppercase;
    margin-bottom: 20px; letter-spacing: 2px; font-size: 0.8rem;
}
.ft-brand img { height: 45px; width: auto; margin-bottom: 20px; }
.ft-tagline { color: #888; font-size: 0.9rem; margin-bottom: 25px; }
.ft-address p { color: #555; font-size: 0.85rem; margin: 0 0 5px; line-height: 1.6; }
.ft-nav a {
    display: block; color: #666; text-decoration: none; font-size: 0.9rem;
    margin-bottom: 12px; transition: color 0.3s, padding-left 0.3s;
}
.ft-nav a:hover { color: var(--primary); padding-left: 5px; }
.ft-leader { color: white; font-weight: 600; font-size: 0.95rem; margin-bottom: 15px; }
.wa-plane-link { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-bottom: 15px; }
.wa-plane-link img { height: 18px; width: auto; }
.wa-plane-link span { color: var(--primary); font-weight: 700; font-size: 0.9rem; }
.ft-email { color: #666; text-decoration: none; font-size: 0.9rem; transition: color 0.3s; display: block; }
.ft-email:hover { color: var(--primary); }

/* Bottom bar */
.footer-bottom { position: relative; z-index: 2; border-top: 1px solid #111; padding: 25px 0; }
.footer-bottom-inner { display: flex; justify-content: space-between; align-items: center; }
.copyright { color: #444; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1px; }

/* Mobile Menu */
@media (max-width: 1024px) {
    * { cursor: auto; }
    .cursor-dot, .cursor-outline { display: none; }
    nav { top: 0; width: 100%; max-width: 100%; border-radius: 0; background: rgba(10, 10, 10, 0.95); height: 80px; margin: 0; }
    nav::after { display: none; }
    .nav-wrapper { padding: 0 20px; }
    .burger { display: flex; }
    .desktop-only { display: none; }
    .nav-menu { 
        position: fixed; top: 0; right: -100%; height: 100vh; width: 85%; max-width: 400px; 
        background: linear-gradient(180deg, #050505 0%, #001a1a 100%);
        border-left: 1px solid rgba(255,255,255,0.05);
        flex-direction: column; justify-content: center; align-items: center; 
        gap: 40px; transition: right 0.6s cubic-bezier(0.77, 0, 0.175, 1); 
        z-index: 1000; box-shadow: -10px 0 60px rgba(0,0,0,0.8);
        margin: 0; padding: 0; 
    }
    .nav-menu.active { right: 0; }
    .nav-menu li { opacity: 0; transform: translateY(10px); transition: 0.5s ease; }
    .nav-menu.active li { opacity: 1; transform: translateY(0); }
    .nav-menu .nav-link-hover { font-size: 1.4rem; letter-spacing: 2px; }
    .burger.toggle span:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
    .burger.toggle span:nth-child(2) { opacity: 0; }
    .burger.toggle span:nth-child(3) { transform: rotate(45deg) translate(-5px, -6px); }
    h1 { font-size: 3rem; letter-spacing: -1px; }
    .hero-content { padding-top: 120px; }
    .hero-stats { gap: 15px; }
    .stat-card { min-width: 100%; padding: 12px 20px; }
    .portfolio-intro { max-width: 100%; padding-left: 20px; }
    .portfolio-desc { font-size: 1.2rem; }
    .watermark-huge { font-size: 15rem; left: -20px; opacity: 0.05; }
    .cap-grid { grid-template-columns: 1fr; min-height: auto; }
    .cap-text-col { padding: 60px 6%; }
    .cap-image-col { height: 50vh; position: relative; }
    .cap-image-wrapper { position: relative; width: 100%; height: 100%; }
    .cap-metrics { gap: 30px; }
    .cap-metric-val { font-size: 2rem; }
    .display-title, .ops-header h2, .gov-title, .ultra-display { font-size: 2.5rem; }
    .showcase-header { padding: 60px 0 30px; }
    .showcase-stage { height: 60vh; min-height: 400px; }
    .showcase-title { font-size: 2.5rem; }
    .showcase-info { bottom: 90px; left: 5%; }
    .showcase-number { font-size: 5rem; top: -50px; }
    .showcase-nav { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .showcase-tab { min-width: 90px; padding: 14px 8px; }
    .tab-label { font-size: 0.6rem; letter-spacing: 1px; }
    .showcase-counter { top: 20px; right: 5%; }
    .sc-current { font-size: 1.5rem; }
    .section-ops-pipeline { padding: 80px 0 40px; }
    .pipeline-wrapper { padding-bottom: 0; gap: 20px; }
    .pipeline-row { position: sticky !important; }
    .pipeline-row:nth-child(1) { top: 90px !important; z-index: 1; }
    .pipeline-row:nth-child(2) { top: 100px !important; z-index: 2; }
    .pipeline-row:nth-child(3) { top: 110px !important; z-index: 3; }
    .pipeline-row.reverse .row-card { flex-direction: column; }
    .row-card { flex-direction: column; border: 1px solid #222; box-shadow: 0 15px 40px rgba(0,0,0,0.5) !important; }
    .row-visual { width: 100%; height: 200px; }
    .row-content { width: 100%; padding: 25px; }
    .row-num-inline { font-size: 0.75rem; }
    .gov-hero { height: 45vh; min-height: 320px; }
    .gov-title { font-size: 3rem; letter-spacing: -1px; }
    .gov-hero-content { padding-bottom: 40px; }
    .gov-lead { font-size: 0.95rem; }
    .gov-pillars { grid-template-columns: 1fr; gap: 15px; padding: 40px 0; }
    .gov-pillar {
        border-left: 3px solid var(--primary); border-bottom: none;
        padding: 25px; background: rgba(255,255,255,0.02);
    }
    .gov-pillar:first-child { border-left: 3px solid var(--primary); }
    .pillar-num { margin-bottom: 10px; }
    .gov-pillar h4 { font-size: 1.2rem; margin-bottom: 8px; }
    .gov-pillar p { font-size: 0.85rem; }
    .pillar-line { display: none; }
    .corridor-scroll-container { height: auto; }
    .section-tech-corridor { position: relative; height: auto; padding: 60px 0; }
    .corridor-header-area { padding-top: 0; }
    .voyage-stage { display: none; }
    .voyage-details { position: relative; }
    .voyage-cards { grid-template-columns: 1fr; gap: 0; padding-left: 55px; position: relative; }
    .voyage-cards::before {
        content: ''; position: absolute; left: 20px; top: 0; bottom: 0;
        width: 1px; background: rgba(0,155,148,0.15);
    }
    .voyage-card {
        padding: 25px 0; border-left: none; border-bottom: 1px solid #111;
        opacity: 0.3; transform: translateY(10px);
        transition: opacity 0.5s, transform 0.5s;
        position: relative;
    }
    .voyage-card::before { display: none; }
    .voyage-card:last-child { border-bottom: none; }
    .voyage-card.active { opacity: 1; transform: translateY(0); }
    .mobile-ship-track {
        display: block;
        position: absolute; left: -2px; top: 0;
        width: 42px; z-index: 5; will-change: top;
        filter: drop-shadow(0 0 6px rgba(0,155,148,0.4));
    }
    .mobile-ship-track img { width: 100%; }
    .footer-headline { font-size: 2.5rem; }
    .footer-top { padding: 80px 0 50px; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    .ft-nav-connect-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .ft-nav a, .ft-contact a, .ft-contact p, .ft-leader { white-space: nowrap; }
    .footer-bottom-inner { flex-direction: column; gap: 15px; text-align: center; }
}

/* --- BREV DIGITAL SIGNATURE --- */
.brev-signature-link {
    display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
    background: rgba(255, 255, 255, 0.03); padding: 10px 25px;
    border-radius: 50px; border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden;
}

.brev-pre { font-family: var(--font-body); font-size: 0.85rem; color: #888; font-weight: 400; transition: color 0.3s ease; }

.brev-brand {
    font-family: 'Moonhouse', sans-serif; font-size: 0.9rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.5px;
    color: #2596be; text-shadow: 0 0 10px rgba(37, 150, 190, 0.4);
    position: relative; z-index: 2;
}

.brev-signature-link:hover {
    background: rgba(37, 150, 190, 0.1); border-color: #2596be;
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(37, 150, 190, 0.15);
}

.brev-signature-link:hover .brev-pre { color: #fff; }
.brev-signature-link:hover .brev-brand { animation: neonPulse 1.5s infinite alternate; }

@keyframes neonPulse {
    0% { text-shadow: 0 0 10px rgba(37, 150, 190, 0.5); }
    100% { text-shadow: 0 0 20px rgba(37, 150, 190, 0.9), 0 0 30px rgba(37, 150, 190, 0.5); }
}

@media (max-width: 768px) {
    .brev-signature-link { padding: 8px 20px; }
}

/* --- OPTIMIZED "MARINE SONAR" TO TOP BUTTON --- */
.to-top-btn {
    position: fixed; bottom: 40px; right: 40px;
    width: 60px; height: 60px;
    background: transparent; /* TRANSPARENT BACKGROUND */
    border: 2px solid #2596be; /* VISIBLE TEAL BORDER */
    border-radius: 50%;
    display: none; /* Controlled by JS */
    align-items: center; justify-content: center;
    color: #2596be;
    z-index: 900;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: none;
}

/* Sonar Ripple - Desktop Only */
.to-top-btn::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    border: 1px solid #2596be;
    opacity: 0;
    z-index: -1;
    display: none; /* Hidden on mobile */
}

@media (min-width: 1024px) {
    .to-top-btn::before {
        display: block; /* Active only on desktop */
        animation: sonarPing 3s infinite linear;
    }
}

@keyframes sonarPing {
    0% { transform: scale(1); opacity: 0.8; border-width: 1px; }
    50% { opacity: 0.4; }
    100% { transform: scale(2.2); opacity: 0; border-width: 0px; }
}

.to-top-btn:hover {
    background: #2596be;
    color: #050505;
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 10px 40px rgba(37, 150, 190, 0.4);
    border-color: #2596be;
}

.to-top-btn svg {
    width: 24px; height: 24px;
    transition: transform 0.3s ease;
}

.to-top-btn:hover svg {
    transform: translateY(-4px);
}