@import url('global-typography.css');

/* ==========================================================================
   MOBILISE - MAIN STYLESHEET
   ========================================================================== */

/* 
   TABLE OF CONTENTS
   --------------------------------------------------------------------------
   1.  Variables & Design Tokens
   2.  Reset & Base Styles
   3.  Utilities & Animations
   4.  Loading Overlay (Intro)
   5.  Navigation & Menu
   6.  Hero Section (Magnetic & Physics)
   7.  Tunnel Section (3D Scroll)
   8.  Trust & Awards Section
   9.  Services Grid
   10. Testimonials Stage
   11. Industry Specializations
   12. Insights & Blog
   13. Client Logos (Liquid Lens)
   14. Map Portal (Interactive)
   15. Site Footer
   16. Contact Overlay & Forms
   17. Responsive Media Queries
   -------------------------------------------------------------------------- */


/* ==========================================================================
   1. VARIABLES & DESIGN TOKENS
   ========================================================================== */
:root {
    /* --- Colors --- */
    --primary: #0A919B;
    /* Main Brand Teal */
    --primary-light: #0A919B; /* Replaced with primary */
    --primary-dark: #12474C;
    --black: #171717;
    --white: #ffffff;
    --gray-bg: #DDDBDD;
    --text-muted: #7B7E84;

    /* --- Typography --- */
    --font-main: 'Plus Jakarta Sans', sans-serif;

    /* --- Animation Timings --- */
    --transition-wow: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);

    /* --- Z-Index Layering (Global Source of Truth) --- */
    --z-negative: -1;
    --z-normal: 1;
    --z-overlay: 100;
    --z-nav: 2000;
    --z-modal: 10000;

    /* --- Spacing --- */
    --section-padding: 120px 8%;
    --section-padding-mobile: 80px 5%;
}


/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background-color: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    /* Smoother fonts on macOS */
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}


/* ==========================================================================
   3. UTILITIES & ANIMATIONS
   ========================================================================== */
/* Eyebrow Text: Small uppercase labels above headers */
.eyebrow {
    font-family: 'Manrope', sans-serif;
    font-size: 12px;
    letter-spacing: 4px;
    color: var(--primary);
    text-transform: uppercase;
    font-weight: 800;
    display: block;
    margin-bottom: 32px;
}

/* Scroll Reveal: Elements fade in and move up when in view */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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


/* ==========================================================================
   4. LOADING OVERLAY (INTRO)
   ========================================================================== */
.intro-overlay {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    pointer-events: none;
}

/* Curtain Panels (Left & Right) */
.intro-panel {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    background: #000;
    transition: transform 1.2s cubic-bezier(0.87, 0, 0.13, 1);
    pointer-events: all;
    will-change: transform;
}

.panel-left {
    left: 0;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.panel-right {
    right: 0;
}

/* Text Cycler Container */
.intro-content {
    position: relative;
    z-index: 10001;
    overflow: hidden;
    height: 60px;
    /* Adjust based on font size */
}

.intro-text-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1);
}

.intro-text {
    font-size: 40px;
    font-weight: 900;
    color: #DDDBDD;
    line-height: 60px;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.intro-text.brand {
    color: var(--primary);
    letter-spacing: 2px;
}

/* Loader Exit States */
.loaded .panel-left {
    transform: translateX(-100%);
}

.loaded .panel-right {
    transform: translateX(100%);
}

.loaded .intro-content {
    opacity: 0;
    transition: 0.5s;
}


/* Fix for Hero content being hidden under fixed nav */
body > section:first-of-type {
    padding-top: 80px;
}

body > section.hero-magnetic:first-of-type {
    padding-top: 0;
}


/* ==========================================================================
   6. HERO SECTION (MAGNETIC & PHYSICS)
   ========================================================================== */
.hero,
.hero-magnetic {
    height: 100vh;
    width: 100%;
    background: var(--white);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    cursor: crosshair;
    /* Adds an 'engineering' feel */
}

/* Subtle Gradient Background */
.grain-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, #acd9f4 0%, #EEF6FA 40%, #FFFFFF 75%);
    z-index: 0;
}

/* Magnetic Text Stage */
.magnetic-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
}

.magnetic-headline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    justify-content: center;
    gap: 8px 2vw;
    width: 100%;
    max-width: 1600px;
    text-align: center;
    line-height: 1;
    perspective: 1000px;
}

/* Individual Physics Characters */
.char {
    font-size: clamp(56px, 8vw, 120px);
    font-weight: 900;
    color: var(--black);
    display: inline-block;
    transform-style: preserve-3d;
    will-change: transform;
    cursor: default;
    user-select: none;
    margin: 0 -2px;
    transition: color 0.3s ease;
}

.char:hover {
    color: var(--primary);
}

/* UI Layer (Top/Bottom Info) */
.hero-ui-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 6%;
    z-index: 10;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    font-size: 13.6px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--black);
}

.bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    pointer-events: auto;
}

.mission-statement {
    max-width: 500px;
    font-size: 17.6px;
    color: #555;
    line-height: 1.5;
}

.mission-statement p {
    margin-bottom: 0;
}

/* Magnetic Buttons (With Fill Effect) */
.cta-cluster {
    display: flex;
    gap: 20px;
}

.btn-magnetic {
    position: relative;
    padding: 18px 40px;
    text-decoration: none;
    font-weight: 700;
    font-size: 15.2px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid var(--black);
}

.btn-magnetic.primary {
    background: var(--black);
    color: var(--white);
}

.btn-magnetic.secondary {
    background: transparent;
    color: var(--black);
}

.btn-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--primary);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1);
    z-index: 0;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-magnetic.primary:hover .btn-fill {
    transform: translateY(0);
}

.btn-magnetic.primary:hover {
    border-color: var(--primary);
}

.btn-magnetic.secondary:hover {
    background: #f4f4f4;
    transform: translateY(-3px);
}


/* ==========================================================================
   7. TUNNEL SECTION (3D SCROLL EFFECT)
   ========================================================================== */
.tunnel-scroll-track {
    position: relative;
    height: 600vh;
    /* Determines the 'length' of the scroll */
    background: var(--black);
}

.tunnel-sticky-stage {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    perspective: 1500px;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tunnel-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 10%;
    pointer-events: none;
    opacity: 0;
    will-change: transform, opacity;
    text-align: center;
}

.tunnel-layer .content-box {
    width: min(100%, 1280px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.main-title {
    font-size: clamp(40px, 6vw, 96px);
    font-weight: 900;
    color: #DDDBDD;
    line-height: 1.08;
    max-width: 1200px;
}

.main-title span {
    color: var(--primary);
    -webkit-text-stroke: 1px var(--primary);
}

.sub-statement {
    font-size: clamp(24px, 4vw, 56px);
    color: #DDDBDD;
    font-weight: 800;
    line-height: 1.12 !important;
    max-width: 1120px;
    margin: 0 auto;
}

.sub-description {
    font-size: 19.2px;
    color: #888;
    margin-top: 25px;
}

.truth-wrapper {
    display: flex;
    gap: 30px;
    width: 100%;
    justify-content: center;
}

.truth-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 40px;
    max-width: 450px;
    text-align: left;
    backdrop-filter: blur(10px);
}

.card-num {
    color: var(--primary);
    font-weight: 900;
    font-size: 12.8px;
    display: block;
    margin-bottom: 20px;
}

.truth-card h3 {
    color: #DDDBDD;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}


/* ==========================================================================
   8. TRUST & AWARDS SECTION
   ========================================================================== */
.simple-trust {
    padding: var(--section-padding);
    background: var(--white);
    text-align: center;
}

.trust-title {
    font-size: clamp(32px, 4vw, 56px);
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.trust-title span {
    color: var(--primary);
}

.trust-subtitle {
    font-size: 16px;
    color: #888;
    font-weight: 500;
    margin-bottom: 60px;
}

.award-strip {
    display: flex;
    gap: 15px;
    min-height: 250px;
    width: 100%;
}

.award-box {
    flex: 1;
    background: #f9f9f9;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    padding: 20px;
}

.award-box img {
    width: 95px;
    height: auto;
    transition: 0.5s ease;
}

.award-tag {
    position: absolute;
    bottom: 20px;
    font-size: 10.4px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--primary);
    opacity: 0;
    transform: translateY(10px);
    transition: 0.4s ease;
}

/* Award Hover Effect */
.award-box:hover {
    flex: 1.5;
    /* Expanding logic */
    background: #f2f8f9;
    border: 1px solid rgba(18, 121, 147, 0.1);
}

.award-box:hover img {
    transform: translateY(-10px);
}

.award-box:hover .award-tag {
    opacity: 1;
    transform: translateY(0);
}


/* ==========================================================================
   9. SERVICES GRID
   ========================================================================== */
.services-modern {
    padding: var(--section-padding);
    background: var(--black);
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* Floating Background Text */
.services-bg-text {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    font-size: 20vw;
    font-weight: 900;
    color: rgba(18, 121, 147, 0.05);
    z-index: 1;
    white-space: nowrap;
    pointer-events: none;
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.section-intro h2 {
    font-size: clamp(40px, 5vw, 56px);
    line-height: 1.1;
    font-weight: 300;
    margin-bottom: 40px;
}

.section-intro h2 span {
    font-weight: 800;
    color: var(--primary);
}

/* Bento Grid Layout */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(300px, auto);
    gap: 20px;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 40px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 15px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    backdrop-filter: blur(10px);
}

.service-card.featured {
    grid-row: span 2;
    background: linear-gradient(135deg, rgba(18, 121, 147, 0.2) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-color: rgba(18, 121, 147, 0.3);
}

.card-number {
    font-size: 12.8px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.6;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 27.2px;
    margin-bottom: 15px;
    font-weight: 700;
}

.service-card p {
    color: #999;
    line-height: 1.6;
    font-size: 16px;
}

.service-link,
.read-more {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.service-link span {
    transition: transform 0.3s ease;
}

.service-link:hover span {
    transform: translateX(6px);
}

.service-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: var(--primary);
    transform: translateY(-10px);
}

.service-card:hover p {
    color: #DDDBDD;
}

/* ==========================================================================
   10. TESTIMONIALS STAGE
   ========================================================================== */
.testimonial-stage {
    min-height: 70vh;
    background: var(--black);
    color: var(--white);
    display: flex;
    align-items: center;
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.testi-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(18, 121, 147, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.stage-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 2;
    position: relative;
}

.testi-nav {
    margin-bottom: 40px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--primary);
    font-size: 14.4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.testi-nav .section-intro,
.testi-nav .eyebrow {
    margin-bottom: 0;
}

.nav-count {
    line-height: 1;
}

.huge-quote {
    font-size: clamp(32px, 4.5vw, 64px);
    line-height: 1.1;
    font-weight: 300;
    margin-bottom: 50px;
    letter-spacing: -1px;
}

.huge-quote span {
    color: var(--primary);
    font-weight: 800;
}

.testi-item {
    display: none;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    /* Revealing mask */
    transition: all 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

.testi-item.active {
    display: block;
    opacity: 1;
    clip-path: inset(0 0 0 0);
}

.testi-author {
    display: flex;
    align-items: center;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 40px;
}

.testi-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

.testi-author cite {
    font-style: normal;
    font-weight: 600;
    color: #888;
    font-size: 16px;
}

.stage-controls {
    margin-top: 60px;
    display: flex;
    gap: 20px;
}

.ctrl-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #DDDBDD;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    font-size: 19.2px;
    cursor: pointer;
    transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.ctrl-btn:hover {
    border-color: var(--primary);
    background: var(--primary);
    transform: scale(1.1);
}


/* ==========================================================================
   11. INDUSTRY SPECIALIZATIONS
   ========================================================================== */
.industry-section {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
    overflow: hidden;
}

.side-label {
    position: absolute;
    left: 40px;
    top: 50%;
    transform: translateY(-50%) rotate(-90deg);
    font-size: 11.2px;
    font-weight: 800;
    letter-spacing: 5px;
    color: rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    z-index: 10;
}

.industry-list {
    margin-top: 60px;
    border-top: 1px solid #e0e0e0;
}

.industry-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid #e0e0e0;
    cursor: default;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
}

.industry-info {
    display: flex;
    align-items: center;
    gap: 60px;
}

.ind-num {
    font-size: 14.4px;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.5;
}

.industry-info h3 {
    font-size: 40px;
    font-weight: 300;
    transition: 0.4s;
    min-width: 250px;
}

.industry-info p {
    max-width: 500px;
    font-size: 15.2px;
    line-height: 1.6;
    color: #666;
    opacity: 0;
    transform: translateX(20px);
    transition: all 0.5s ease;
}

.ind-arrow {
    font-size: 32px;
    font-weight: 200;
    color: #ccc;
    transition: 0.4s;
}

.industry-item:hover {
    padding-left: 30px;
    background: #f9f9f9;
}

.industry-item:hover h3 {
    font-weight: 800;
    color: var(--primary);
    transform: scale(1.05);
}

.industry-item:hover p {
    opacity: 1;
    transform: translateX(0);
}

.industry-item:hover .ind-arrow {
    color: var(--primary);
    transform: translateX(10px);
}


/* ==========================================================================
   12. INSIGHTS & BLOG
   ========================================================================== */
.insights-modern {
    background: var(--black);
    color: var(--white);
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.insights-container {
    max-width: 1400px;
    margin: 0 auto;
}

.massive-title {
    font-size: clamp(48px, 8vw, 9vw);
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -5px;
    margin-bottom: 80px;
    text-transform: uppercase;
}

.massive-title span {
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
}

.subtitle {
    font-size: 19.2px;
    color: #888;
    max-width: 450px;
    margin-top: -40px;
    margin-bottom: 40px;
}

.insight-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 60px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    z-index: 5;
    transition: 0.4s;
}

.meta {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
    font-family: var(--font-main);
    font-size: 13.6px;
    color: var(--primary);
}

.insight-title {
    font-size: clamp(22.4px, 3vw, 48px);
    font-weight: 300;
    max-width: 900px;
    line-height: 1.1;
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.insight-title span {
    font-weight: 800;
}

.insight-row:hover .insight-title {
    transform: translateX(30px);
    color: var(--primary);
}

.circle-btn {
    width: 130px;
    height: 130px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #DDDBDD;
    font-size: 12px;
    font-weight: 800;
    transition: 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.insight-row:hover .circle-btn {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(-15deg) scale(1.1);
}

/* Floating Image Preview (Follows Cursor) */
.cursor-image-preview {
    position: fixed;
    width: 220px;
    height: 220px;
    background: #111;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.4);
    transition: opacity 0.3s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    background-size: cover;
    background-position: center;
    border-radius: 15px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.magnetic-link {
    display: inline-block;
    margin-top: 60px;
    font-size: 16px;
    font-weight: 800;
    color: #DDDBDD;
    letter-spacing: 3px;
    padding: 20px 0;
    border-bottom: 2px solid var(--primary);
}


/* ==========================================================================
   13. CLIENT LOGOS (LIQUID LENS)
   ========================================================================== */
.client-perfect-section {
    padding: var(--section-padding);
    background: var(--white);
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid #f0f0f0;
}

.client-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    align-items: center;
    gap: 60px;
}

.client-intro-mini {
    flex-shrink: 0;
    max-width: 300px;
}

.client-intro-mini h2 {
    font-size: 35.2px;
    font-weight: 300;
    line-height: 1.1;
    margin-top: 5px;
}

.client-intro-mini h2 span {
    font-weight: 800;
    color: var(--primary);
}

.liquid-lens-wrapper {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    padding: 30px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.liquid-track {
    display: flex;
    width: max-content;
    animation: smoothScroll 40s linear infinite;
    align-items: center;
}

.brand-item {
    width: 200px;
    padding: 0 40px;
    transition: all 0.5s cubic-bezier(0.215, 0.61, 0.355, 1);
}

.brand-item img {
    width: 100%;
    height: auto;
    max-height: 50px;
    object-fit: contain;
    filter: grayscale(1);
    opacity: 0.4;
    transition: 0.4s;
}

.liquid-lens-wrapper:hover .liquid-track {
    animation-play-state: paused;
}

.brand-item:hover img {
    filter: grayscale(0);
    opacity: 1;
    transform: scale(1.1);
}

@keyframes smoothScroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}


/* ==========================================================================
   14. MAP PORTAL (INTERACTIVE)
   ========================================================================== */
.map-portal {
    height: 100vh;
    width: 100%;
    position: relative;
    overflow: hidden;
    /* background: var(--black); */
    background-color: #0e2932;
}

.map-camera {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-visual-layer {
    width: 100%;
    height: 100%;
    transition: transform 2.2s cubic-bezier(0.19, 1, 0.22, 1);
    transform-origin: center;
    position: relative;
    aspect-ratio: 16 / 9; /* adjust to your map image */
    max-width: 1600px;
}

.map-visual-layer img {
    width: 100%;
    height: 100%;
    display: block;
    /* object-fit: cover; */
    opacity: 0.5;
    /* filter: brightness(1.2) contrast(1.1); */
}

.map-vignette {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30%, transparent 20%, #000 90%);
    pointer-events: none;
}

.map-ui-container {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0 8%;
    pointer-events: none;
}

.map-sidebar {
    width: 100%;
    max-width: 450px;
    pointer-events: auto;
}

.sidebar-intro h2 {
    font-size: 56px;
    color: #DDDBDD;
    margin: 10px 0 20px;
    font-weight: 300;
}

.sidebar-intro h2 span {
    color: var(--primary);
    font-weight: 800;
}

.sidebar-intro p {
    color: #888;
    margin-bottom: 40px;
    line-height: 1.6;
}

.loc-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 20px;
    text-align: left;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
    margin-bottom: 15px;
    min-width: 280px;
}

.loc-header {
    display: flex;
    align-items: center;
    gap: 15px;
}

.loc-id {
    font-family: monospace;
    color: var(--primary);
    font-size: 12.8px;
    font-weight: 800;
}

.loc-card h3 {
    color: #DDDBDD;
    font-size: 22.4px;
    font-weight: 600;
    margin: 0;
}

.loc-details {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: all 0.5s ease;
}

.loc-details p {
    color: #aaa;
    font-size: 15.2px;
    line-height: 1.5;
}

.loc-card.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary);
    transform: translateX(20px);
}

.loc-card.active .loc-details {
    max-height: 100px;
    opacity: 1;
    margin-top: 10px;
}

.map-marker {
    position: absolute;
    width: clamp(6px, 8px, 14px);
    height: clamp(6px, 8px, 14px);
    background: var(--primary);
    border-radius: 50%;
    box-shadow: 0 0 20px var(--primary);
    transform: translate(-50%, -50%);
}

.map-marker::after {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 1.5px solid var(--primary);
    opacity: 0.6;
    animation: markerPulse 2s ease-out infinite;
}

@keyframes markerPulse {
    0%   { transform: scale(1);   opacity: 0.7; }
    70%  { transform: scale(2.2); opacity: 0;   }
    100% { transform: scale(2.2); opacity: 0;   }
}




/* ==========================================================================
   17. RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bottom-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .client-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 40px;
    }

    .client-perfect-section {
        padding: 80px 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 56px;
    }

    .cta-group {
        flex-direction: column;
    }

    .tunnel-sticky-stage {
        perspective: 800px;
    }

    .truth-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .main-title {
        font-size: 48px;
    }

    .sub-statement {
        font-size: 28.8px;
    }

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

    .service-card.featured {
        grid-row: auto;
    }

    .services-modern {
        padding: var(--section-padding-mobile);
    }

    .service-card {
        padding: 30px;
        min-height: auto;
    }

    .services-bg-text {
        font-size: 30vw;
    }


    .award-strip {
        flex-direction: column;
        height: auto;
    }

    .award-box {
        height: 120px;
        flex: none;
    }

    /* Industry Specializations Mobile Layout */
    .industry-section {
        padding: var(--section-padding-mobile);
    }

    .industry-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 30px 0;
    }

    .industry-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .industry-info h3 {
        font-size: 32px;
        min-width: auto;
    }

    .industry-info p {
        opacity: 1;
        transform: none;
        max-width: 100%;
    }

    .ind-arrow {
        align-self: flex-end;
        margin-top: -30px;
    }

    .industry-item:hover {
        padding-left: 0;
    }

    /* Testimonials Mobile */
    .testimonial-stage {
        padding: var(--section-padding-mobile);
        min-height: auto;
    }

    .huge-quote {
        margin-bottom: 30px;
    }

    .testi-author {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    /* Insights Mobile */
    .insights-modern {
        padding: var(--section-padding-mobile);
    }

    .insight-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 30px;
        padding: 40px 0;
    }

    .insight-row:hover .insight-title {
        transform: none;
    }

    .circle-btn {
        width: 100px;
        height: 100px;
        font-size: 10.4px;
    }

    .subtitle {
        margin-top: 0;
    }

    /* Map Media Query code */
    .map-portal {
        min-height: 100svh;
        height: auto;
        padding: 60px 5% !important;
        display: flex;
        align-items: flex-start;
    }

    .map-camera {
        opacity: 0.45;
    }

    .map-visual-layer {
        height: auto;
        min-height: 360px;
    }

    .map-ui-container {
        width: 100%;
        height: auto;
        padding: 0;
        align-items: flex-start;
    }

    .map-sidebar {
        max-width: 100%;
    }

    .sidebar-intro h2 {
        line-height: 1;
    }

    .sidebar-intro p {
        margin-bottom: 28px;
    }

    .loc-card {
        min-width: 0;
        width: 100%;
        padding: 20px;
        border-radius: 14px;
    }

    .loc-card.active {
        transform: none;
    }


}
/* --- GLOBAL MOBILE RESPONSIVENESS (CONSISTENCY FIX) --- */
@media (max-width: 768px) {
    .intro-content {
        width: 100%;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 5%;
    }

    .intro-text-wrapper {
        width: 100%;
        align-items: center;
        text-align: center;
    }

    .intro-text {
        width: 100%;
        font-size: clamp(22px, 6vw, 28px);
        line-height: 42px;
        letter-spacing: 2px;
        white-space: normal;
    }

    h1, .hero-title, .reveal-text, .cta-large-text, .cta-huge, .massive-title, .cap-head {
        font-size: clamp(40px, 8vw, 56px) !important;
        line-height: var(--lh-display) !important;
    }
    h2, .sec-title, .main-title, .client-intro-mini h2 {
        font-size: clamp(32px, 6vw, 40px) !important;
        line-height: var(--lh-heading) !important;
    }
    h3, .lead-text, .card-inner h2, .industry-info h3 {
        font-size: clamp(24px, 5vw, 28.8px) !important;
        line-height: var(--lh-subheading) !important;
    }
    p, .sub-statement, .sub-text, .hero-desc, .hero-sub {
        font-size: 16px !important;
        line-height: var(--lh-p) !important;
    }
    /* Section Padding Consistency */
    section, .section, .client-perfect-section, .industry-section, .simple-trust, .services-modern, .testimonial-stage, .insights-modern, .stack-section, .final-cta, .site-footer-premium, .site-footer { 
        padding-top: 60px !important;
        padding-bottom: 60px !important;
        padding-left: 5% !important;
        padding-right: 5% !important;
    }

    .hero-magnetic {
        height: 100svh;
        min-height: 100svh;
        padding: 0 !important;
        display: grid;
        place-items: center;
    }

    .magnetic-stage {
        grid-area: 1 / 1;
        width: 100%;
        height: 100svh;
        min-height: 100svh;
        padding: 0 5% !important;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .magnetic-headline {
        margin: auto;
        justify-content: center;
        align-content: center;
        align-items: center;
        transform: translateY(-11vh);
    }

    .char {
        font-size: clamp(40px, 12vw, 58px);
    }

    .hero-ui-layer {
        grid-area: 1 / 1;
        padding: 24px 5% 28px;
        justify-content: flex-end;
    }

    .bottom-bar {
        align-items: center;
        text-align: center;
        gap: 24px;
    }

    .mission-statement {
        max-width: 92vw;
    }

    .cta-cluster {
        justify-content: center;
        width: 100%;
    }

    .tunnel-sticky-stage {
        height: 100svh;
        min-height: 100svh;
        padding: 0 5% !important;
        display: grid;
        place-items: center;
    }

    .tunnel-layer {
        inset: 0;
        width: 100%;
        height: 100svh;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .tunnel-layer .content-box {
        width: 100%;
        min-height: 100svh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .tunnel-layer .eyebrow {
        margin-bottom: 18px;
    }

    .main-title {
        max-width: 92vw;
        margin: 0 auto;
    }

    .sub-statement {
        max-width: 92vw;
        margin: 0 auto !important;
        font-size: clamp(24px, 7vw, 34px) !important;
        line-height: 1.14 !important;
    }

    .liquid-lens-wrapper:hover .liquid-track {
        animation-play-state: running;
    }

    .brand-item:hover img {
        filter: grayscale(1);
        opacity: 0.4;
        transform: none;
    }
}
