/* ROOT & RESET */
:root {
    --bg: #fafafa;
    --text: #111827;
    --text-dim: #6b7280;
    
    /* Brand */
    --c-red: #e0282b;
    --c-blue: #1a7bbc;
    --c-green: #179247;
    --c-yellow: #f4b915;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    
    --radius-pill: 999px;
}

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

html {
    scrollbar-width: none;
}

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

body {
    background-color: var(--bg);
    background-image: radial-gradient(ellipse at top center, #ffffff 0%, #f6f8fb 60%, #e2e8f0 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    cursor: none;
}

body.loading {
    overflow: hidden;
}

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

/* Accessibility & SEO */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* CUSTOM CURSOR */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background: var(--text);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
}

.cursor-outline {
    position: fixed;
    top: 0; left: 0;
    width: 36px; height: 36px;
    border: 1px solid rgba(0,0,0,0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background 0.3s, border-color 0.3s;
}

.cursor-outline.hover {
    width: 60px;
    height: 60px;
    background: rgba(0,0,0,0.05);
    border-color: transparent;
    backdrop-filter: blur(2px);
}

@media (pointer: coarse) {
    .cursor-dot,
    .cursor-outline {
        display: none !important;
    }
    body {
        cursor: auto !important;
    }
}

/* 3D CANVAS */
#webgl-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: -1;
    pointer-events: none;
}

/* PRELOADER */
#preloader {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9990;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.loader-title {
    font-family: var(--font-heading);
    font-weight: 400;
    font-size: 2rem;
    font-style: italic;
    color: rgba(0,0,0,0.5);
    margin-bottom: 2rem;
}

.loader-progress {
    width: 200px;
    height: 2px;
    background: rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    margin: 0 auto;
}

.loader-progress::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 100%; width: 0;
    background: var(--text);
    animation: loadProgress 2.5s cubic-bezier(0.8, 0, 0.2, 1) forwards;
}

@keyframes loadProgress {
    0% { width: 0; }
    50% { width: 60%; }
    100% { width: 100%; }
}

.loader-percentage {
    margin-top: 1rem;
    font-size: 1rem;
    color: var(--text-dim);
    letter-spacing: 0.1em;
}

/* NAVIGATION */
.nav {
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    padding: 1.5rem 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.6);
}

.nav-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: var(--text);
}

.nav-logo .h-logo {
    height: 48px;
    width: auto;
    pointer-events: none;
    display: block;
}

.logo-text-group {
    display: flex;
    flex-direction: column;
}

.logo-main-text {
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.logo-sub-text {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 3rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.btn-nav {
    padding: 0.8rem 2rem;
    border: 1px solid var(--text);
    border-radius: var(--radius-pill);
    transition: background 0.3s, color 0.3s;
}

.btn-nav:hover {
    background: var(--text);
    color: var(--bg);
}

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

.section {
    padding: 8rem 0;
    position: relative;
}

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 12rem;
}

/* TYPOGRAPHY */
.hero-label {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 10vw, 8.5rem);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.02em;
    margin-bottom: 3rem;
}

.italic {
    font-style: italic;
    color: rgba(0,0,0,0.6);
}

.hero-desc {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-dim);
    max-width: 700px;
    line-height: 1.4;
    margin-bottom: 5rem;
}

/* WORD SPLIT FOR GSAP */
.word-split {
    display: inline-block;
    overflow: hidden;
}

.word-split .word {
    display: inline-block;
    transform: translateY(100%);
}

.title-split {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 2rem;
}

.title-split .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
}

/* IMAGE PILLS (MASKING) */
.hero-images {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    display: flex;
    gap: 2rem;
    pointer-events: none;
}

.pill-img-wrap {
    overflow: hidden;
    border-radius: var(--radius-pill);
    position: relative;
    box-shadow: 0 20px 50px -10px rgba(0,0,0,0.15);
    border: 8px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.2);
}

.pill-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2); /* For parallax effect */
}

.img-1 { width: 220px; height: 400px; margin-top: -100px; }
.img-2 { width: 160px; height: 300px; margin-top: 100px; }

/* ABOUT SECTION (CINEMATIC) */
.about-cinematic {
    position: relative;
    padding: 0;
    margin: 0;
    height: 100vh;
    z-index: 3;
}

.about-pin-wrapper {
    position: relative;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent; /* Light/transparent background */
}

.about-bg-clip {
    position: absolute;
    width: 40vw; /* Starts as a card */
    height: 50vh;
    border-radius: 40px;
    overflow: hidden;
    will-change: transform, width, height, border-radius;
    z-index: 1;
}

.about-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.2); /* For slight parallax if needed */
    will-change: transform;
}

.about-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85); /* Light frosted overlay instead of dark */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 2;
    opacity: 0; /* Starts hidden, gets stronger as it expands */
    will-change: opacity;
}

.about-content-overlay {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
    pointer-events: none; /* Let clicks pass through if needed initially */
}

.about-text-reveal {
    flex: 1;
    max-width: 35rem; /* ~560px */
    color: var(--text); /* Dark text on light bg */
}

.tag-light {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 600;
    color: var(--text-dim);
}

.reveal-text {
    font-family: var(--font-body);
    font-size: clamp(1rem, 1.5vw, 1.35rem);
    line-height: 1.6;
    font-weight: 400;
    color: var(--text);
}

.about-badges {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transform: translateX(4rem);
}

.glass-badge {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: var(--radius-pill);
    box-shadow: 0 15px 35px -5px rgba(0,0,0,0.1);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--text);
    pointer-events: auto; /* Re-enable pointer events for hover */
}

.glass-badge i {
    width: 20px;
    height: 20px;
    color: var(--c-blue);
}

@media (max-width: 1024px) {
    .about-bg-clip { width: 60vw; height: 40vh; }
    .about-content-overlay {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
    .about-badges {
        flex-direction: row;
        transform: translateX(0);
        justify-content: center;
        flex-wrap: wrap;
    }
    .reveal-text {
        background-position: center center;
    }
}

/* EXPERTISE MARQUEE */
.expertise {
    padding: 6rem 0;
    overflow: hidden;
    background: transparent;
}

.marquee-wrap {
    width: 100vw;
    overflow: hidden;
    position: relative;
    transform: rotate(-2deg) scale(1.05);
    background: rgba(255, 255, 255, 0.5); /* Light glass bg instead of dark */
    border-top: 1px solid rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text);
    padding: 2rem 0;
}

.marquee {
    display: flex;
    white-space: nowrap;
    width: max-content;
    align-items: center;
}

.marquee span {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 8rem);
    font-style: italic;
    padding: 0 4rem;
    line-height: 1;
}

.m-pill {
    width: 30px;
    height: 30px;
    background: var(--c-blue);
    border-radius: 50%;
    margin: 0 1rem;
    flex-shrink: 0;
}

/* HORIZONTAL SCROLL SECTION */
.horizontal-scroll-section {
    overflow: hidden;
    padding: 0;
    margin: 10rem 0;
    height: 100vh;
}

.horizontal-container {
    height: 100%;
    width: 100%;
}

.horizontal-track {
    display: flex;
    height: 100%;
    width: fit-content;
}

.h-panel {
    width: 100vw;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    flex-shrink: 0;
    position: relative;
}

.intro-panel h2 {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 8vw, 8rem);
    line-height: 1;
    margin: 1rem 0;
}

.intro-panel p {
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    color: var(--text-dim);
    max-width: 600px;
}

.card-panel {
    align-items: center;
    padding-right: 8vw;
    justify-content: flex-end;
}

.h-card {
    width: 45vw;
    min-width: 320px;
    max-width: 650px;
    padding: 5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 40px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.1);
    transform: translateY(0);
    transition: transform 0.4s ease;
}

.h-card:hover {
    transform: translateY(-10px);
}

.h-card h3 {
    font-family: var(--font-heading);
    font-size: 5rem;
    font-style: italic;
    margin-bottom: 2rem;
    opacity: 0.8;
}

.blue-panel .h-card h3 { color: var(--c-blue); }
.green-panel .h-card h3 { color: var(--c-green); }
.yellow-panel .h-card h3 { color: var(--c-yellow); }
.red-panel .h-card h3 { color: var(--c-red); }

.h-card p {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    line-height: 1.3;
    font-weight: 500;
}

/* SERVICES STACK CARDS */
.services-stack {
    padding: 8rem 0 12rem 0;
    position: relative;
    z-index: 2;
}

.stack-wrapper {
    display: flex;
    flex-direction: column;
    position: relative;
    gap: 4rem; /* Fallback */
}

.stack-card {
    position: sticky;
    top: 15vh;
    padding-top: 2rem; /* Creates visual offset for stacking */
}

.stack-card-inner {
    display: flex;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-radius: 40px;
    box-shadow: 0 -20px 40px -10px rgba(0,0,0,0.05);
    overflow: hidden;
    height: 60vh;
    min-height: 450px;
    max-height: 600px;
    transform-origin: top center;
    will-change: transform;
}

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

.stack-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    opacity: 0.5;
}

.stack-num {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-style: italic;
    line-height: 1;
}

.stack-header i {
    width: 32px;
    height: 32px;
}

.stack-info h3 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.service-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-list li {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    font-size: 1.15rem;
    color: var(--text-dim);
    line-height: 1.4;
    font-weight: 500;
}

.service-list li i {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    color: var(--text);
    margin-top: 2px;
}

.stack-info p {
    font-size: 1.2rem;
    color: var(--text-dim);
    max-width: 80%;
    line-height: 1.5;
}

.stack-img {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.stack-img img {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    object-fit: cover;
}

.stack-card-inner.blue-bg { background: rgba(28, 131, 197, 0.05); border-color: rgba(28, 131, 197, 0.2); }
.stack-card-inner.green-bg { background: rgba(20, 156, 72, 0.05); border-color: rgba(20, 156, 72, 0.2); }
.stack-card-inner.yellow-bg { background: rgba(239, 192, 21, 0.05); border-color: rgba(239, 192, 21, 0.2); }

/* VISUAL SHOWCASE (IMAGE ROW) */
.visual-showcase {
    padding: 6rem 0 10rem 0;
}

.img-row {
    display: flex;
    justify-content: space-between;
    gap: 3rem;
}

.row-img {
    flex: 1;
    height: 500px;
}

.row-img:nth-child(2) {
    transform: translateY(60px);
}

@media (max-width: 1024px) {
    .img-row { flex-direction: column; gap: 4rem; }
    .row-img { height: 400px; transform: none !important; }
}

/* STATS SECTION */
.stats-section {
    padding: 6rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 4rem;
    padding: 4rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    box-shadow: 0 20px 50px -20px rgba(0,0,0,0.05);
    text-align: center;
}

.stat-card {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: clamp(4rem, 6vw, 7rem);
    line-height: 1;
    margin-bottom: 1rem;
    color: var(--c-blue);
    position: relative;
}

.stat-number::after {
    content: '+';
    font-size: 0.6em;
    vertical-align: top;
    margin-left: 5px;
    color: var(--text);
}

.stat-label {
    font-size: 1.2rem;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* CULTURE SECTION */
.culture-section {
    padding: 10rem 0;
}

.culture-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8rem;
    align-items: center;
}

.culture-content h2 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 5vw, 5rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.culture-content p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.culture-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 200px);
    gap: 2rem;
}

.cg-item {
    border-radius: 30px;
    overflow: hidden;
    position: relative;
    border: 4px solid rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.4);
    box-shadow: 0 15px 40px -10px rgba(0,0,0,0.1);
}

.cg-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.cg-item:hover img {
    transform: scale(1.1);
}

.cg-large {
    grid-column: span 1;
    grid-row: span 2;
}

.cg-small {
    grid-column: span 1;
    grid-row: span 1;
}

.cg-wide {
    grid-column: span 1;
    grid-row: span 1;
}

/* LEADERSHIP SECTION */
.leadership-section {
    padding: 6rem 0 10rem 0;
}

.leadership-card {
    display: flex;
    gap: 6rem;
    padding: 5rem;
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 40px;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.05);
    align-items: center;
}

.leader-image-wrap {
    width: 400px;
    height: 500px;
    border-radius: 30px;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.15);
}

.leader-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.leader-info h2 {
    font-family: var(--font-heading);
    font-size: 5rem;
    margin-bottom: 0.5rem;
}

.leader-info .role {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--c-blue);
    margin-bottom: 2rem;
}

.divider-line {
    width: 50px;
    height: 2px;
    background: var(--text);
    margin-bottom: 2rem;
}

.leader-info p {
    font-size: 1.2rem;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
}

.leader-info .btn-nav {
    display: inline-block;
    margin-top: 2rem;
}

@media (max-width: 1024px) {
    .stats-grid { grid-template-columns: 1fr; padding: 3rem; gap: 3rem; }
    .culture-wrapper { grid-template-columns: 1fr; gap: 4rem; }
    .leadership-card { flex-direction: column; padding: 3rem; gap: 4rem; }
    .leader-image-wrap { width: 100%; height: 400px; }
}

/* CONTACT */
.contact-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    padding: 6rem;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 48px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 20px 60px -20px rgba(0,0,0,0.05);
}

.info-blocks {
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.info h5 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

.info p {
    font-size: 1.2rem;
    font-weight: 500;
}

.hover-line {
    position: relative;
    padding-bottom: 2px;
}

.hover-line::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--text);
    transition: width 0.3s;
}

.hover-line:hover::after {
    width: 100%;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.input-line {
    position: relative;
}

.input-line input,
.input-line textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    padding: 1.5rem 0;
    color: var(--text);
    font-family: inherit;
    font-size: 1.2rem;
    transition: border-color 0.3s;
    resize: none;
}

.input-line input:focus,
.input-line textarea:focus {
    outline: none;
    border-color: var(--text);
}

.btn-submit {
    margin-top: 2rem;
    padding: 1.5rem 4rem;
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: var(--radius-pill);
    font-size: 1.2rem;
    font-weight: 600;
    font-family: inherit;
    cursor: none;
    align-self: flex-start;
}

/* FOOTER */
.footer {
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-top: 1px solid rgba(255, 255, 255, 0.8);
}

.seo-footer {
    width: 100%;
    padding: 4rem 2rem 2rem;
    font-size: 0.8rem;
    color: rgba(0, 0, 0, 0.4); /* Subdued but visible */
    line-height: 1.6;
    margin-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.seo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
    text-align: left;
}

.seo-col h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.6);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.seo-col p {
    margin: 0;
}

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

.seo-col ul li a {
    color: rgba(0, 0, 0, 0.4);
    text-decoration: none;
    transition: color 0.3s;
}

.seo-col ul li a:hover {
    color: var(--text);
}

.seo-bottom-text {
    text-align: justify;
    text-align-last: center;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding-top: 2rem;
}

.seo-bottom-text p {
    max-width: 1000px;
    margin: 0 auto;
}

.seo-extended-content {
    max-width: 1000px;
    margin: 3rem auto 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.seo-extended-content h3 {
    font-size: 1rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.5);
    margin: 1rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.seo-extended-content h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.45);
    margin: 0.5rem 0;
}

.seo-extended-content ul {
    padding-left: 1.5rem;
    margin: 0.5rem 0;
    list-style-type: disc;
}

.seo-extended-content ul li {
    margin-bottom: 0.5rem;
}

.seo-footer strong {
    font-weight: 600;
    color: rgba(0, 0, 0, 0.5);
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.f-logo-wrap {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text);
}

.f-logo {
    height: 36px;
    width: auto;
    display: block;
}

.f-links {
    display: flex;
    gap: 2rem;
}

.copyright {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
    .hero-images { display: none; }
    .about-grid { grid-template-columns: 1fr; }
    
    .about-content-overlay {
        flex-direction: column;
        justify-content: center;
        gap: 3rem;
        text-align: center;
        padding: 0 5vw;
    }
    .about-badges {
        flex-direction: row;
        transform: translateX(0);
        justify-content: center;
        flex-wrap: wrap;
    }
    .about-text-reveal {
        max-width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .huge-pill { height: 400px; margin-top: 3rem; }
    .img-row { flex-direction: column; }
    .row-img { height: 300px; transform: none !important; }
    .contact-wrap { grid-template-columns: 1fr; padding: 3rem 2rem; }
    .footer-inner { flex-direction: column; gap: 2rem; text-align: center; }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 0;
    }
    .nav-inner {
        position: relative;
        justify-content: center;
        align-items: center;
    }
    .nav-logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
    .nav-logo .h-logo {
        height: 28px;
    }
    .logo-main-text {
        font-size: 0.85rem;
    }
    .logo-sub-text {
        font-size: 0.55rem;
    }
    .nav-links {
        width: 100%;
        justify-content: flex-end;
        gap: 0;
    }
    .nav-links a:not(.btn-nav) {
        display: none;
    }
    .btn-nav {
        padding: 0.4rem 1rem;
        font-size: 0.75rem;
    }
}


/* ── ISOLATED CSS MERGED ── */
/* Lenis baseline */
html.lenis, html.lenis body {
    height: auto;
}
.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}
.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}
.lenis.lenis-stopped {
    overflow: hidden;
}

#hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    /* background moved to body */
}

.ambient-glow {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 20% 30%, rgba(28, 131, 197, 0.15), transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(239, 192, 21, 0.12), transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(221, 35, 41, 0.1), transparent 60%),
        radial-gradient(circle at 30% 80%, rgba(20, 156, 72, 0.12), transparent 50%);
    opacity: 0;
    pointer-events: none;
    z-index: -1;
    filter: blur(80px);
    transition: opacity 1s ease;
}

.stage {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    perspective: 1200px;
    transform-style: preserve-3d;
}

.stage-element {
    position: absolute;
    top: 50%;
    left: 50%;
    will-change: transform, opacity, filter;
}

    /* webgl-canvas moved to fixed background */

#logo-container {
    width: 380px;
    height: 380px;
    z-index: 5;
    pointer-events: auto;
    transform-style: preserve-3d;
}

#logo-container svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.logo-cluster {
    transform-origin: 50% 50%;
    transform-box: fill-box;
    will-change: transform, opacity, filter;
}

.pill {
    transform-origin: 50% 50%;
    transform-box: fill-box;
    will-change: transform, fill, opacity;
    opacity: 0;
}

.pill-base { fill: #1f2937; }
.pill-yellow { fill: #efc015; }
.pill-red { fill: #dd2329; }
.pill-blue { fill: #1c83c5; }
.pill-green { fill: #149c48; }

#logo-container.glow-on .pill-blue { filter: drop-shadow(0 0 14px rgba(28, 131, 197, 0.7)); }
#logo-container.glow-on .pill-green { filter: drop-shadow(0 0 14px rgba(20, 156, 72, 0.7)); }
#logo-container.glow-on .pill-red { filter: drop-shadow(0 0 14px rgba(221, 35, 41, 0.7)); }
#logo-container.glow-on .pill-yellow { filter: drop-shadow(0 0 14px rgba(239, 192, 21, 0.7)); }

#hero-text {
    text-align: center;
    z-index: 3;
    max-width: 720px;
    padding: 0 2rem;
    opacity: 0;
}

.eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    color: var(--text-dim);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.headline {
    font-size: clamp(2rem, 4vw, 3.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin: 0 0 1.5rem 0;
    color: var(--text);
}

.headline span {
    color: var(--text-dim);
    font-weight: 500;
}

.subhead {
    font-size: 1rem;
    font-weight: 300;
    color: var(--text-dim);
    margin: 0;
    letter-spacing: 0.01em;
    line-height: 1.6;
}

#dismantled-letters {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 18px;
    z-index: 4;
    white-space: nowrap;
    opacity: 0;
}

.dismantled-item {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

#item-3 { margin-right: -14px; }

.letter-svg {
    width: 96px;
    height: 96px;
    overflow: visible;
}

.letter-pill {
    opacity: 0;
    transform-origin: 50% 50%;
    transform-box: fill-box;
    will-change: transform, opacity, filter;
}

#dismantled-letters.glow-on .pill-blue { filter: drop-shadow(0 0 12px rgba(28, 131, 197, 0.6)); }
#dismantled-letters.glow-on .pill-green { filter: drop-shadow(0 0 12px rgba(20, 156, 72, 0.6)); }
#dismantled-letters.glow-on .pill-red { filter: drop-shadow(0 0 12px rgba(221, 35, 41, 0.6)); }
#dismantled-letters.glow-on .pill-yellow { filter: drop-shadow(0 0 12px rgba(239, 192, 21, 0.6)); }

.row-text {
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
    opacity: 0;
    margin-left: 2px;
    line-height: 1;
}

#scroll-indicator {
    position: absolute;
    bottom: 10vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0;
    z-index: 10;
    pointer-events: none;
}

#scroll-indicator span {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 12px;
    color: var(--text-dim);
    white-space: nowrap;
}

#scroll-indicator .mouse-icon {
    width: 24px;
    height: 38px;
    border: 2px solid var(--text-dim);
    border-radius: 12px;
    position: relative;
}

#scroll-indicator .wheel {
    width: 4px;
    height: 8px;
    background: var(--text-dim);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s cubic-bezier(0.6, 0, 0.3, 1) infinite;
}

@keyframes scrollWheel {
    0% { transform: translate(-50%, 0); opacity: 1; }
    100% { transform: translate(-50%, 14px); opacity: 0; }
}

@media (max-width: 640px) {
    #logo-container { width: 220px; height: 220px; }
    /* Fix for dismantled letters overflowing viewport width */
    #dismantled-letters { 
        gap: 0px; 
        transform: scale(0.65);
        width: 100vw;
        justify-content: center;
    }
    .dismantled-item {
        margin: -10px;
    }
    .letter-svg { width: 70px; height: 70px; }
    .row-text { font-size: 2rem; margin-left: 2px; }
    .headline { font-size: 2.2rem; }
    .subhead { font-size: 0.9rem; }
}

/* ── COMPREHENSIVE MOBILE OPTIMIZATIONS ── */
@media (max-width: 768px) {
    /* Global Spacing */
    .section { padding: 4rem 0; }
    .container { padding: 0 1.5rem; }
    
    /* Typography Adjustments */
    .intro-panel h2 { font-size: clamp(2.5rem, 8vw, 4rem); }
    .title-split { font-size: clamp(2rem, 6vw, 3rem); }
    .leader-info h2 { font-size: clamp(2.5rem, 8vw, 3.5rem); }
    .stat-number { font-size: clamp(3rem, 10vw, 4rem); }
    .culture-content h2 { font-size: clamp(2rem, 6vw, 3rem); }
    
    /* Horizontal Scroll Section */
    .h-card {
        width: 85vw;
        min-width: 280px;
        padding: 2rem;
        border-radius: 24px;
    }
    .h-card h3 { font-size: 3rem; margin-bottom: 1rem; }
    .h-card p { font-size: 1.2rem; }
    
    /* Marquee */
    .marquee span { font-size: clamp(3rem, 6vw, 4rem); padding: 0 2rem; }
    .m-pill { width: 20px; height: 20px; margin: 0 0.5rem; }
    
    /* Stack Cards */
    .services-stack { padding: 4rem 0; }
    .stack-card { top: 10vh; padding-top: 1rem; }
    .stack-info { padding: 2rem; }
    .stack-info h3 { font-size: 2rem; }
    .service-list li { font-size: 1rem; }
    .stack-info p { font-size: 1rem; max-width: 100%; }
    .stack-img { height: 200px; }
    .stack-card-inner {
        flex-direction: column-reverse;
        height: auto;
        min-height: auto;
    }
    .stack-header { margin-bottom: 1.5rem; }
    .stack-num { font-size: 2rem; }
    
    /* Visual Showcase */
    .visual-showcase { padding: 2rem 0 4rem 0; }
    .row-img { height: 250px; border-radius: 24px; }
    
    /* About Section */
    .about-cinematic { padding: 4rem 0; min-height: 80vh; }
    .about-pin-wrapper { height: 80vh; }
    .about-content-overlay { padding: 0 4vw; }
    .reveal-text { font-size: clamp(1rem, 4vw, 1.2rem); text-align: left; }
    .glass-badge { padding: 0.75rem 1rem; font-size: 0.8rem; flex-direction: row; align-items: center; }
    
    /* Culture & Leadership */
    .culture-section, .leadership-section { padding: 4rem 0; }
    .cg-item { border-radius: 16px; }
    .leader-image-wrap { height: 350px; border-radius: 24px; }
    .leadership-card { padding: 2rem; border-radius: 24px; gap: 2rem; }
    
    /* Contact Section */
    .contact-wrap { 
        padding: 2rem; 
        border-radius: 24px; 
        gap: 3rem; 
    }
    .info-blocks { margin-top: 2rem; gap: 1.5rem; }
    .input-line input, .input-line textarea { font-size: 1rem; padding: 1rem 0; }
    .btn-submit { padding: 1rem 2rem; font-size: 1rem; width: 100%; text-align: center; }
    
    /* Footer */
    .footer { padding: 3rem 0; }
}

/* EXIT INTENT MODAL */
.exit-intent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.exit-intent-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.exit-intent-modal {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.15);
    transform: translateY(40px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 0;
    text-align: center;
    position: relative;
}

.exit-intent-overlay.active .exit-intent-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ei-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-dim);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ei-close:hover {
    color: var(--text);
}

.ei-logo {
    height: 48px;
    width: auto;
    margin: 0 auto 1.5rem;
}

.ei-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text);
}

.ei-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.ei-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ei-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.ei-input:focus {
    outline: none;
    border-color: var(--c-blue);
    background: rgba(255, 255, 255, 0.9);
}

.ei-btn {
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s;
}

.ei-btn:hover {
    transform: translateY(-2px);
}

/* EXIT INTENT MODAL */
.exit-intent-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.exit-intent-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.exit-intent-modal {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-radius: 24px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 30px 60px -20px rgba(0,0,0,0.15);
    transform: translateY(40px) scale(0.95);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 0;
    text-align: center;
    position: relative;
}

.exit-intent-overlay.active .exit-intent-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.ei-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-dim);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ei-close:hover {
    color: var(--text);
}

.ei-logo {
    height: 48px;
    width: auto;
    margin: 0 auto 1.5rem;
}

.ei-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text);
}

.ei-desc {
    font-size: 1.1rem;
    color: var(--text-dim);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.ei-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ei-input {
    width: 100%;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.6);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color 0.3s, background 0.3s;
}

.ei-input:focus {
    outline: none;
    border-color: var(--c-blue);
    background: rgba(255, 255, 255, 0.9);
}

.ei-btn {
    background: var(--text);
    color: var(--bg);
    border: none;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s;
}

.ei-btn:hover {
    transform: translateY(-2px);
}

