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

/* Local font faces */
@font-face {
    font-family: 'Instrument Sans';
    src: url('assets/InstrumentSans-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Instrument Sans';
    src: url('assets/InstrumentSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'iA Writer Duospace';
    src: url('assets/iAWriterDuospace-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iA Writer Duospace';
    src: url('assets/iAWriterDuospace-RegularItalic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'iA Writer Duospace';
    src: url('assets/iAWriterDuospace-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'iA Writer Duospace';
    src: url('assets/iAWriterDuospace-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --bg: #0a0a0a;
    --text: #ffffff;
    --muted: #aaaaaa;
    --panel: rgba(10, 10, 10, 0.8);
    --border: rgba(255, 255, 255, 0.1);
    --accent: #fc4103;
    --accent-rgb: 252,65,3;
    --card-grad-1: linear-gradient(135deg, #fc41033c 0%, #fc410318 100%);
    --panel-blur: 10px;
    --overlaid-cards: black;
}

html, body {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none; /* Chrome, Safari, and Opera */
}

body {
    font-family: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
}

body[data-theme="light"] {
    background: var(--bg);
}

/* Use iA Writer Duospace for paragraphs */
p {
    font-family: 'iA Writer Duospace', 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* Light theme overrides */
body[data-theme="light"] {
    --bg: #fafafa;
    --text: #1a1a1a;
    --muted: #666666;
    --panel: rgba(255, 255, 255, 0.95);
    --border: rgba(0, 0, 0, 0.1);
    --card-grad-1: linear-gradient(135deg, rgba(var(--accent-rgb), 0.2) 0%, rgba(var(--accent-rgb), 0.12) 100%);
    --overlaid-cards: #ffffff;
    --muted-dark: #444444;
}

.nav {
    position: fixed;
    border: 1px solid transparent;
    border-radius: 0px;
    width: auto;
    top: 0;
    margin-top: 10px;
    left: 2rem;
    right: 2rem;
    padding: 0.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background: transparent;
    backdrop-filter: blur(0px);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: 'iA Writer Duospace', monospace;
}

.nav.nav-scrolled {
    margin-top: 0;
    left: 0;
    right: 0;
    padding: 1rem 4rem;
    background: var(--panel);
    backdrop-filter: blur(var(--panel-blur));
    border-bottom: 1px solid var(--border);
}

@media (max-width: 768px) {
    .nav.nav-scrolled {
        padding: 0.8rem 1.5rem;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        border-radius: 50px;
        margin-top: 10px;
        justify-content: center;
        gap: 1.5rem;
    }
    .nav.nav-scrolled .nav-links,
    .nav.nav-scrolled .nav-cta-wrapper {
        display: none;
    }
    .nav.nav-scrolled .logo {
        margin-right: 0;
    }
}

@media (min-width: 1400px) {
    .nav {
        left: 150px;
        right: 150px;
    }
}

.logo {
    display: flex;
    align-items: center;
    margin-right: 0;
    z-index: 10;
}

.logo img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.4s ease;
    cursor: none;
}

#nav-logo-img.logo-rotated {
    transform: rotate(-90deg) scale(0.9);
}

.logo img:hover {
    transform: scale(1.05);
}

.clients-marquee-new {
    background: rgba(255, 255, 255, 0.02);
    padding: 4rem 2rem;
    border-radius: 0px;
    border: 1px solid var(--border);
}

.nav-links {
    display: flex;
    gap: 1.5rem; /* Reduced gap */
    align-items: center;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    z-index: 2;
}

/* Medium size fix: prevent links from hitting the sides */
@media (max-width: 1200px) {
    .nav-links {
        gap: 1rem;
    }
}

.nav-links a {
    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--accent);
}

.mobile-menu.active {
    right: 0;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: none;
    gap: 5px;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--text);
    border-radius: 0px;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(8px, 8px);
}

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

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--panel);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    transition: right 0.4s ease;
    z-index: 999;
}

.theme-toggle {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    border-radius: 0px;
    padding: 0.35rem 0.7rem;
    cursor: none;
    margin-left: 0;
    flex-shrink: 0;
    will-change: transform;
    position: relative;
    z-index: 1;
}

/* Right section of nav — toggle + CTA + hamburger */
.nav-right {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.theme-toggle:hover {
    border-color: var(--accent);
}

.mobile-menu a {
    color: var(--text);
    text-decoration: none;
    font-size: 2rem;
    font-weight: 700;
    transition: all 0.3s;
}

.mobile-menu a:hover {
    color: var(--accent);
    transform: translateX(10px);
}

.theme-toggle i {
    color: #000000;
    /* Black color */
    font-size: 1.2rem;
    /* Adjust size if needed */
}

/* Ensure it adapts to theme text color if you want dynamic black/white */
body[data-theme="light"] .theme-toggle i {
    color: #000000;
    /* Black in light mode */
}

body:not([data-theme="light"]) .theme-toggle i {
    color: #ffffff;
    /* White in dark mode, or keep black if preferred */
}

.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./assets/new assets/bg image.png');
    background-size: cover;
    background-position: center;
    opacity: 0.2;
    z-index: 0;
}

/* Make sure content stays above */
.hero > * {
    position: relative;
    z-index: 1;
}

.service-outline-layer,
.service-fill-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

#svg-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    display: block;
}

.hero-bg-svg {
    filter: drop-shadow(0 0 30px rgba(252, 65, 3, 0.1));
    transition: filter 0.3s ease;
    width: 100%;
    height: 100%;
}

.hero-image {
    opacity: 0;
    transform: translateY(100px);
}

/* Dark theme - SVG color white with animation */
body:not([data-theme="light"]) .hero-bg-svg {
    filter: brightness(1.2) drop-shadow(0 0 30px rgba(252, 65, 3, 0.15));
}

body:not([data-theme="light"]) .hero-bg-svg svg path,
body:not([data-theme="light"]) .hero-bg-svg svg circle,
body:not([data-theme="light"]) .hero-bg-svg svg rect,
body:not([data-theme="light"]) .hero-bg-svg svg polygon {
    stroke: white;
    fill: white;
    animation: pathAnimation 8s ease-in-out infinite;
}

/* Light theme - keep original color */
body[data-theme="light"] .hero-bg-svg svg path,
body[data-theme="light"] .hero-bg-svg svg circle,
body[data-theme="light"] .hero-bg-svg svg rect,
body[data-theme="light"] .hero-bg-svg svg polygon {
    animation: pathAnimation 8s ease-in-out infinite;
}

/* Path animation */
@keyframes pathAnimation {
    0%, 100% {
        stroke-width: 1;
        opacity: 0.8;
        filter: blur(0px);
    }
    50% {
        stroke-width: 2;
        opacity: 1;
        filter: blur(0.5px);
    }
}

.hero-content {
    position: absolute;
    z-index: 10;
    width: 100%;
    height: 100%;
    padding: 0 4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    margin-bottom: 15px;
}

.scroll-text {
    font-size: clamp(3rem, 6vw, 7rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #f3a388 0%, #fc4103 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: left;
    opacity: 0;
}

@keyframes fadeInUpTitle {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Interactive Shaped Background */
#canvas-container {
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(252, 65, 3, 0.15) 0%, rgba(252, 65, 3, 0.05) 25%, transparent 70%);
    transition: background 0.1s ease-out;
}

.shaped-bg {
    position: absolute;
    opacity: 0.3;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 0%;
    background: radial-gradient(circle, rgba(252, 65, 3, 0.8) 0%, transparent 70%);
}

/* Hero Image Animation */
.hero-image {
    position: absolute;
    bottom: 0px;
    left: 0;
    width: 100%;
    height: auto;
    opacity: 0;
    z-index: 1;
    pointer-events: none;
}

@keyframes slideUpFromBottom {
    from {
        bottom: -100vh;
        opacity: 0;
    }

    to {
        bottom: 0px;
        opacity: 1;
    }
}

/* Generic CTA Button */
.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1.2rem 2.5rem;
    background: #fc4103;
    color: #ffffff;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 0px;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
    border: 1px solid transparent;
}

.cta-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 40px rgba(252, 65, 3, 0.4);
    background: #e63a02;
    border-color: rgba(255, 255, 255, 0.2);
}

/* Specific Hero Absolute Placement */
.hero-cta-positioner {
    position: absolute;
    bottom: 4rem;
    right: 4rem;
    z-index: 30;
}

.hero-description {
    font-size: clamp(0.9rem, 1.5vw, 1.1rem);
    color: var(--muted);
    max-width: 400px;
    margin: 0;
    line-height: 1.6;
    position: absolute;
    bottom: 4rem;
    left: 4rem;
    z-index: 20; /* Ensure it stays above canvas/image */
}

.hero-description .word {
    display: inline-block;
    margin-right: 0.3em;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.hero-description.revealed .word {
    opacity: 1;
    transform: translateY(0);
}

@keyframes fadeInWord {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section {
    padding: 8rem 4rem;
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 3rem;
    text-align: center;
}

.section-subtitle {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    color: #aaa;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 5rem;
    line-height: 1.6;
}

.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 0;
}

.client-logo {
    background: rgba(0, 0, 0, 0.03);
    border: 1px solid var(--border);
    border-radius: 0px;
    padding: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    transition: all 0.3s;
    cursor: none;
}

.client-logo:hover {
    background: rgba(255, 0, 13, 0.05);
    border-color: var(--accent);
    transform: translateY(-5px);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.service-card {
    background: var(--card-grad-1);
    border: 1px solid var(--border);
    border-radius: 0px;
    padding: 3rem;
    transition: all 0.4s;
    cursor: none;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #fc41033c 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
}

.service-card:hover::before {
    opacity: 1;
}

.service-number {
    font-size: 3rem;
    font-weight: 900;
    color: #fc4103;
    margin-bottom: 1rem;
}

.service-title {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.service-description {
    color: var(--muted);
    line-height: 1.6;
}

/* NEW VERTICAL TIMELINE STYLES */
.timeline-container {
    max-width: 1000px;
    margin: 6rem auto;
    position: relative;
    padding: 2rem 0;
}

.timeline-line {
    position: absolute;
    left: 40px;
    top: 0;
    width: 2px;
    height: 100%;
    background: var(--border);
}

.timeline-progress {
    position: absolute;
    left: 40px;
    top: 0;
    width: 2px;
    height: 0;
    background: var(--accent);
    z-index: 1;
    box-shadow: 0 0 15px var(--accent);
}

.timeline-step {
    position: relative;
    display: flex;
    gap: 4rem;
    margin-bottom: 8rem;
    align-items: flex-start;
    transform: translateX(20px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 2;
}

.timeline-step .step-marker,
.timeline-step .step-content {
    opacity: 0.3;
    transition: opacity 0.8s ease;
}

.timeline-step.active .step-marker,
.timeline-step.active .step-content {
    opacity: 1;
}

.step-marker {
    width: 80px;
    height: 80px;
    background: var(--bg);
    border: 2px solid var(--border);
    border-radius: 0%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--muted);
    flex-shrink: 0;
    z-index: 2;
    transition: all 0.4s ease;
    font-family: 'Instrument Sans', sans-serif;
}

.timeline-step.active .step-marker {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 0 20px rgba(252, 65, 3, 0.4);
    transform: scale(1.1);
    background: var(--bg);
}

.step-content {
    padding-top: 1rem;
}

.step-content h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-family: 'Instrument Sans', sans-serif;
}

.step-content p {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 700px;
}

.process-footer {
    text-align: center;
    margin-top: 4rem;
    padding: 4rem;
    background: rgba(252, 65, 3, 0.05);
    border: 1px solid rgba(252, 65, 3, 0.1);
    border-radius: 0px;
}

.footer-text {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0rem;
    color: var(--text);
}

/* PROOF & TRUST SECTION */
.proof-trust-section {
    padding: 10rem 4rem;
    background: var(--bg);
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 40px 40px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    position: relative;
}

.proof-trust-section, body[data-theme="light"] .proof-trust-section {
    background: #000000 !important;
}

.proof-title {
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 900;
    text-align: center;
    letter-spacing: 1.5rem;
    margin-bottom: 8rem;
    color: #ffffff;
    text-transform: uppercase;
    opacity: 0.8;
}

.stats-grid-complex {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 0;
    margin-bottom: 8rem;
    border: 1px solid var(--border);
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(10px);
}

.stats-grid-complex, body[data-theme="light"] .stats-grid-complex {
    background: rgba(0, 0, 0, 0.8) !important;
}

.stat-complex-item {
    padding: 4rem 2rem;
    border: 1px solid transparent;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    text-align: center;
    position: relative;
    overflow: hidden;
    color: #ffffff;
}

body[data-theme="light"] .stat-complex-item {
    border: 1px solid transparent;
    color: #ffffff;
}

.stat-complex-item:hover {
    background: rgba(252, 65, 3, 0.08);
    border-color: var(--accent);
    transform: translateY(-5px);
    z-index: 5;
}

/* STATS SECTION UPDATES */
.stat-square-wrapper {
    width: 60px;
    height: 60px;
    margin: 0 auto 2.5rem;
    perspective: 1000px;
}

.stat-square {
    width: 100%;
    height: 100%;
    background: var(--accent);
    opacity: 0.5;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.stat-complex-item:hover .stat-square {
    transform: rotate(15deg) scale(1.1);
    opacity: 1;
    background: var(--accent);
}

body[data-theme="light"] .stat-complex-item:hover .stat-square {
    background: var(--accent);
}

.stat-icon {
    display: none;
}

.stat-big-number {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    margin-bottom: 1.5rem;
    font-family: 'Instrument Sans', sans-serif;
}

.stat-sub {
    font-size: 1.1rem;
    color: #ffffff;
    font-family: 'iA Writer Duospace', monospace;
    line-height: 1.6;
}

.credentials-box {
    max-width: 900px;
    margin: 0 auto 8rem;
    text-align: center;
    padding: 4rem;
    border-left: 4px solid var(--accent);
    background: rgba(255, 255, 255, 0.02);
}

.credentials-box p {
    font-size: clamp(1.2rem, 2.5vw, 1.8rem);
    font-weight: 700;
    color: var(--text);
    font-style: italic;
    line-height: 1.4;
    font-family: 'Instrument Sans', sans-serif;
}

.global-presence {
    text-align: center;
    margin-bottom: 6rem;
}

.presence-header {
    font-size: 0.9rem;
    font-weight: 900;
    color: var(--accent);
    letter-spacing: 0.5rem;
    margin-bottom: 2rem;
}

.presence-text {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--muted);
    max-width: 1000px;
    margin: 0 auto;
    font-family: 'iA Writer Duospace', monospace;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .proof-title {
        margin-bottom: 2rem;
    }
    
    .stats-grid-complex {
        grid-template-columns: 1fr;
    }
    
    .credentials-box {
        padding: 2rem;
    }
}

.culture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1400px;
    margin: 4rem auto 0;
}

.culture-card {
    background: rgba(255, 0, 13, 0.05);
    border: 1px solid red;
    border-radius: 0px;
    padding: 2.5rem;
    transition: all 0.3s;
}

.culture-card:hover {
    background: rgba(255, 0, 13, 0.1);
    transform: scale(1.05);
}

.culture-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #fc4103;
}

.culture-card p {
    color: var(--muted);
    line-height: 1.6;
}

.cta-section {
    text-align: center;
    padding: 10rem 4rem;
    background: linear-gradient(135deg, var() 0%, transparent 100%);
}

.cta-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    padding: 1.5rem 4rem;
    background: #fc4103;
    color: #0a0a0a;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 0px;
    transition: all 0.3s;
    margin-top: 2rem;
}

.cta-button:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 60px #fc4103;
}

.overlay-cards-section {
    min-height: 200vh;
    position: relative;
    padding: 10rem 4rem;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.overlay-cards-container {
    position: sticky;
    top: 10vh;
    width: 100%;
    max-width: 900px;
    height: 600px;
    margin: 0 auto;
}

.overlay-card {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 0px;
    padding: 4rem;
    transition: transform 0.1s ease-out;
}

.card-1 {
    background: linear-gradient(135deg, var(--overlaid-cards) 0%, var(--overlaid-cards) 100%);
    border: 2px solid rgba(255, 50, 50, 1);
    z-index: 1;
}

.card-2 {
    background: linear-gradient(135deg, var(--overlaid-cards) 0%, var(--overlaid-cards) 100%);
    border: 2px solid rgba(0, 255, 136, 1);
    z-index: 2;
    transform: translateY(100%);
}

.card-content h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1.5rem;
    font-weight: 900;
}

.card-1 h2 {
    color: #ff6b6b;
}

.card-2 h2 {
    color: #00ff88;
}

.card-content p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--muted);
    margin-bottom: 2rem;
}

.card-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-features span {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 0px;
    display: inline-block;
}

.card-1 .card-features span {
    color: #ff6b6b;
    border: 1px solid rgba(255, 50, 50, 0.3);
}

.card-2 .card-features span {
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.split-scroll-section {
    min-height: 100vh;
    padding: 8rem 0;
    position: relative;
}

.split-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
    gap: 4rem;
}

.split-left {
    position: sticky;
    top: 20vh;
    height: fit-content;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 25, 0, 0.1) 0%, rgba(0, 255, 136, 0.02) 100%);
    border: 2px solid var(--accent);
    border-radius: 0px;
}

.split-left-content h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    background: #fc4103;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.split-left-content p {
    font-size: 1.2rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 3rem;
}

.split-highlight {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 2rem;
    background: rgba(255, 0, 36, 0.05);
    border-radius: 0px;
    border: 1px solid #fc4103;
}

.highlight-number {
    font-size: 4rem;
    font-weight: 900;
    color: linear-gradient(135deg, #fff 0%, #fc4103 100%);
    line-height: 1;
}

.highlight-text {
    font-size: 1.1rem;
    color: var(--muted);
}

.split-right {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    padding-bottom: 4rem;
}

.split-right-item {
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border: 1px solid var(--border);
    border-radius: 0px;
    transition: all 0.3s;
}

.split-right-item:hover {
    background: linear-gradient(135deg, rgba(255, 0, 13, 0.1) 0%, rgba(255, 0, 13, 0.02) 100%);
    border-color: var(--accent);
    transform: translateX(10px);
}

.item-number {
    font-size: 3rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px #fc4103;
    margin-bottom: 1rem;
    line-height: 1;
}

.split-right-item h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--muted);
}

.split-right-item p {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.8;
}

.full-width-image {
    width: 100%;
    /* take full viewport width */
    height: 30vh;
    /* reduced to pull it closer to the team section */
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    text-align: center;
    justify-content: center;
}

.full-width-image img {
    width: 50%;
    object-fit: cover;
    /* ensures image fills section without distortion */
    display: block;
    margin: auto;
}


.footer {
    padding: 3rem 2rem;
    text-align: center;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
    background: var(--bg);
}



.footer-brand {
    font-weight: 900;
    letter-spacing: 0.1em;
    color: var(--text);
}

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

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--accent);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

.marquee {
    overflow: hidden;
    position: relative;
    padding: 3rem 0;
}

.marquee-content {
    display: flex;
    animation: marquee 30s linear infinite;
    white-space: nowrap;
}

.marquee-item {
    font-size: 2rem;
    font-weight: 700;
    color: #ffffff;
    padding: 0 2rem;
    text-transform: uppercase;
}

body[data-theme="light"] .marquee {
    background: #000000;
}

body[data-theme="light"] .marquee-item {
    color: #ffffff;
}

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

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

/* KEY STATS BAR */
.stats-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.8) 50%, var(--bg) 100%);
    padding: 4rem 4rem 2rem;
    border-bottom: 1px solid var(--border);
    z-index: 5;
    animation: slideUpStatsBar 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) 2s forwards;
    opacity: 0;
}

@keyframes slideUpStatsBar {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stats-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 2rem;
}

.stat-item {
    flex: 1;
    text-align: center;
}

.stat-text {
    font-size: clamp(0.85rem, 1.2vw, 1rem);
    font-weight: 600;
    color: var(--text);
    font-family: 'Instrument Sans', sans-serif;
    line-height: 1.4;
    letter-spacing: 0.3px;
}

.stat-divider {
    width: 2px;
    height: 40px;
    background: var(--border);
    flex-shrink: 0;
}

/* SECTION 2 — PAIN POINT HOOK */
.pain-point-section {
    padding: 6rem 4rem 0rem;
    background: var(--bg);
    width: 100%;
    position: relative;
    overflow-x: hidden;
}

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

.pain-point-hook-text {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3rem;
    font-family: 'Instrument Sans', sans-serif;
    line-height: 1.2;
    letter-spacing: 0.15em;
    display: block;
    text-transform: uppercase;
}

.pain-points-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 2.5rem;
}

.pain-point-card {
    padding: 3rem 2.5rem;
    border: 1px solid var(--border);
    background: var(--panel);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    grid-column: span 2;
    overflow: hidden;
}

.pain-point-card:hover {
    border-color: var(--accent);
    background: rgba(252, 65, 3, 0.03);
    transform: translateX(10px);
    box-shadow: -10px 10px 30px rgba(0, 0, 0, 0.1);
}

.pain-point-card .card-number {
    font-size: 3.5rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--border);
    line-height: 1;
    margin-bottom: 1.5rem;
    font-family: 'Instrument Sans', sans-serif;
    transition: all 0.5s ease;
}

.pain-point-card:hover .card-number {
    -webkit-text-stroke: 2px var(--accent);
    color: var(--accent);
    opacity: 0.5;
    transform: scale(1.1);
}

.pain-point-question {
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
    color: var(--text);
    margin-bottom: 1.2rem;
    font-family: 'Instrument Sans', sans-serif;
    line-height: 1.35;
}

.pain-point-description {
    font-size: clamp(0.85rem, 1.3vw, 0.95rem);
    color: var(--muted);
    line-height: 1.7;
    font-family: 'iA Writer Duospace', monospace;
    flex-grow: 1;
}

/* 6th Card Special Scroll Logic & Designed Scrollbar */
.pain-point-card[data-card-index="5"] .pain-point-description {
    max-height: 100px;
    overflow-y: auto;
    padding-right: 1.5rem;
    position: relative;
}

/* Custom Scrollbar Styling */
.pain-point-card[data-card-index="5"] .pain-point-description::-webkit-scrollbar {
    width: 3px;
}

.pain-point-card[data-card-index="5"] .pain-point-description::-webkit-scrollbar-track {
    background: rgba(var(--text-rgb), 0.05);
    border-radius: 10px;
}

.pain-point-card[data-card-index="5"] .pain-point-description::-webkit-scrollbar-thumb {
    background: rgba(252, 65, 3, 0.2);
    border-radius: 10px;
}

.pain-point-card[data-card-index="5"]:hover .pain-point-description::-webkit-scrollbar-thumb {
    background: var(--accent);
}

/* Firefox Support */
.pain-point-card[data-card-index="5"] .pain-point-description {
    scrollbar-width: thin;
    scrollbar-color: rgba(252, 65, 3, 0.2) transparent;
}

.pain-point-card[data-card-index="5"]:hover .pain-point-description {
    scrollbar-color: var(--accent) transparent;
}

.pain-point-card.solution-card {
    grid-column: 1 / -1;
    background: var(--accent);
    border: none;
    padding: 4rem 4rem 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.solution-headline {
    color: #ffffff !important;
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 2rem;
}

.solution-description {
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 1.2rem;
    max-width: 800px;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .pain-points-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .pain-point-card {
        grid-column: span 2;
    }
    .pain-point-card.solution-card {
        grid-column: span 4;
    }
}

@media (max-width: 768px) {
    .pain-points-grid {
        grid-template-columns: 1fr;
    }
    .pain-point-card {
        grid-column: span 1;
    }
}

/* KINETIC TYPOGRAPHY ANIMATION */
.kinetic-char {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px) rotateX(90deg);
    will-change: transform, opacity;
}

@keyframes kineticStamp {
    0% {
        opacity: 0;
        transform: translateY(20px) rotateX(90deg) scaleX(0.8);
    }
    50% {
        transform: translateY(-5px) rotateX(-10deg) scaleX(1.05);
    }
    100% {
        opacity: 1;
        transform: translateY(0) rotateX(0) scaleX(1);
    }
}

/* SECTION 3 - SERVICE PROGRESSION GALLERY */
.service-progression-section {
    position: relative;
    width: 100%;
    background: var(--bg);
    overflow: hidden;
}

.service-sticky {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

.service-bg-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-image: linear-gradient(rgba(10, 10, 10, 0.75), rgba(10, 10, 10, 0.75)), url('./assets/new%20assets/cards/bg%202.png');
    background-size: cover;
    background-position: center;
}

.service-bg-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.07;
}

canvas.service-outline-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 150% !important;
    height: 150% !important;
    z-index: 1;
}

canvas.service-fill-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 150% !important;
    height: 150% !important;
    z-index: 3;
}

.service-cards {
    position: absolute;
    top: 0;
    left: 0;
    width: 350%;
    height: 100vh;
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    will-change: transform;
    z-index: 2;
    padding: 0 10vw 8vh;
    gap: 12vw;
}

.service-cards .service-card {
    position: relative;
    width: 24%;
    height: 88%;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
    overflow: hidden;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255, 255, 255, 0.1);
}

body[data-theme="light"] .service-cards .service-card {
    background: rgba(255, 255, 255, 0.95);
}

.service-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(252, 65, 3, 0.15);
}

/* SERVICE CARD IMAGE */
.service-card-img {
    width: 100%;
    height: 30%;
    overflow: hidden;
    flex-shrink: 0;
}

.service-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

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

/* SERVICE CARD CONTENT */
.service-card-content {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    padding: 2rem;
    height: 70%;
    overflow: hidden;
}

.service-card-number {
    font-size: 1.8rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1.5px var(--accent);
    font-family: 'Instrument Sans', sans-serif;
    line-height: 1;
}

.service-card-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--text);
    font-family: 'Instrument Sans', sans-serif;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.service-card-subtitle {
    font-size: 1rem;
    color: var(--accent);
    font-family: 'iA Writer Duospace', monospace;
    font-weight: 400;
    line-height: 1.5;
}

.service-card-description {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    flex-grow: 1;
}

.service-card-description p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    font-family: 'iA Writer Duospace', monospace;
    margin: 0;
}

/* TAGS - INLINE DISPLAY */
.service-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.tag {
    font-size: 0.75rem;
    color: var(--accent);
    padding: 0.5rem 0.9rem;
    background: rgba(252, 65, 3, 0.15);
    border: 1px solid rgba(252, 65, 3, 0.4);
    font-family: 'iA Writer Duospace', monospace;
    line-height: 1.3;
    white-space: nowrap;
    border-radius: 0px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.service-card:hover .tag {
    background: rgba(252, 65, 3, 0.25);
    border-color: var(--accent);
}

.service-text-slide {
    position: relative;
    width: 22%;
    height: 75%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    gap: 2rem;
}

.service-text-slide .slide-title {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    line-height: 1.1;
    color: var(--accent);
    font-family: 'Instrument Sans', sans-serif;
}

.service-text-slide .slide-p {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.7;
    color: var(--muted);
    font-family: 'iA Writer Duospace', monospace;
}

/* SWISS UI SLIDE VARIANT */
.swiss-slide {
    justify-content: flex-start;
    padding: 8vh 0 8vh 0;
    gap: 2rem;
    width: 26%;
}

.word-anim{
    margin-top: 35px;
}

.swiss-slide::before {
    content: attr(data-index);
    position: absolute;
    top: 8vh;
    left: 0;
    font-family: 'iA Writer Duospace', monospace;
    font-size: 0.7rem;
    font-weight: 400;
    color: var(--accent);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}

.swiss-slide .slide-title {
    font-size: clamp(1.8rem, 2.8vw, 3rem);
    font-weight: 900;
    line-height: 1.05;
    color: var(--text);
    letter-spacing: -0.03em;
    text-align: left;
    margin-bottom: 2.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--accent);
}

.swiss-slide .slide-p {
    font-size: clamp(0.8rem, 1vw, 0.95rem);
    line-height: 1.8;
    color: var(--muted);
    font-family: 'iA Writer Duospace', monospace;
    text-align: left;
    width: 100%;
}

.swiss-slide .scroll-highlight {
    color: var(--accent);
    font-style: normal;
    opacity: 0.35;
    transition: opacity 0.4s ease, text-shadow 0.4s ease, color 0.4s ease;
    position: relative;
}

.swiss-slide .scroll-highlight.active {
    color: var(--accent);
    opacity: 1;
    text-shadow:
        0 0 8px rgba(252, 65, 3, 0.9),
        0 0 20px rgba(252, 65, 3, 0.6),
        0 0 45px rgba(252, 65, 3, 0.35),
        0 0 80px rgba(252, 65, 3, 0.15);
    animation: highlightFlicker var(--flicker-duration, 3s) ease-in-out var(--flicker-delay, 0s) infinite;
}

@keyframes highlightFlicker {
    0%   { opacity: 1;    text-shadow: 0 0 8px rgba(252,65,3,0.9),  0 0 20px rgba(252,65,3,0.6),  0 0 45px rgba(252,65,3,0.35); }
    15%  { opacity: 0.75; text-shadow: 0 0 4px rgba(252,65,3,0.5),  0 0 10px rgba(252,65,3,0.3); }
    17%  { opacity: 1;    text-shadow: 0 0 8px rgba(252,65,3,0.9),  0 0 25px rgba(252,65,3,0.7),  0 0 55px rgba(252,65,3,0.4); }
    40%  { opacity: 1;    text-shadow: 0 0 8px rgba(252,65,3,0.9),  0 0 20px rgba(252,65,3,0.6),  0 0 45px rgba(252,65,3,0.35); }
    60%  { opacity: 0.85; text-shadow: 0 0 6px rgba(252,65,3,0.7),  0 0 15px rgba(252,65,3,0.45); }
    62%  { opacity: 1;    text-shadow: 0 0 10px rgba(252,65,3,1),   0 0 30px rgba(252,65,3,0.8),  0 0 60px rgba(252,65,3,0.5); }
    100% { opacity: 1;    text-shadow: 0 0 8px rgba(252,65,3,0.9),  0 0 20px rgba(252,65,3,0.6),  0 0 45px rgba(252,65,3,0.35); }
}

/* ===== WORK SECTION (FROM TEMPLATE) ===== */
.work-index {
   display: flex;
   justify-content: center;
   width: 100%;
   padding: 4rem 0;
   background: var(--bg);
   font-family: 'Instrument Sans', sans-serif;
}

.work-index__container {
	max-width: 75rem;
	margin: 0 auto;
	padding-left: 0.9375rem;
	padding-right: 0.9375rem;
    width: 100%;
}

.projects {
	display: flex;
	flex-direction: column;
	width: 100%;
    max-width: 62.5rem;
    margin: 0 auto;
}

.project {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 3rem 8rem;
	border-top: 0.0625rem solid var(--border);
	cursor: pointer;
}

.project h2 {
	font-size: clamp(2rem, 4vw, 3.5rem);
	font-weight: 500;
	transition: 0.5s ease;
    color: var(--text);
    font-family: 'Instrument Sans', sans-serif;
}

.project p {
	transition: 0.5s ease;
    color: var(--muted);
    font-family: 'iA Writer Duospace', monospace;
}

.project:last-child {
	border-bottom: 0.0625rem solid var(--border);
}

.project:hover {
	opacity: 0.5;
}

.project:hover h2 {
	transform: translateX(-0.9375rem);
}

.project:hover p {
	transform: translateX(0.9375rem);
}

.project-thumbnail {
	position: fixed;
	width: 45rem;     /* Wider for paragraph readability */
	height: 20rem;    /* Fixed height so all items perfectly slide */
	display: flex;
	flex-direction: column;
	overflow: hidden;
	pointer-events: none;
	top: 0;
	left: 0;
	transform-origin: center center;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.thumbnail {
	width: 100%;
	height: 100%;     /* Fills the 20rem height */
    flex-shrink: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 3rem;
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

.thumbnail-text {
	width: 100%;
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text);
    font-family: 'Instrument Sans', sans-serif;
}

.thumbnail-text p {
    margin: 0;
}

@media (max-width: 768px) {
    .project {
        padding: 2rem 1rem;
    }
    .project h2 {
        font-size: 2rem;
    }
    .project-thumbnail {
        width: 15rem;
        height: 10rem;
    }
}

.word-anim {
    display: inline-block;
}

.word-anim .word {
    display: inline-block;
    margin-right: 0.35em;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.word-anim .word.active {
    opacity: 1;
    transform: translateY(0);
}

/* Center navbar on medium screens */
/* RESPONSIVE - PAIN POINT SECTION */
@media (max-width: 1024px) {
    .pain-point-section {
        padding: 8rem 2rem;
    }

    .section-header {
        gap: 2rem;
        margin-bottom: 4rem;
    }

    .section-number {
        font-size: clamp(3rem, 6vw, 4rem);
    }

    .pain-points-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 2rem;
    }

    .pain-point-card {
        grid-column: span 2;
    }

    .pain-point-card[data-card-index="3"],
    .pain-point-card[data-card-index="4"] {
        grid-column: span 2;
    }

    .pain-point-card.solution-card {
        grid-column: span 4;
    }

    /* Service Progression Gallery */
    .service-cards .service-card {
        max-width: 950px;
        max-height: 82%;
        padding: 0;
        gap: 0;
    }

    .service-card-img {
        height: 30%;
        flex-shrink: 0;
    }

    .service-card-content {
        padding: 1.8rem;
        height: auto;
        flex: 1;
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: var(--accent) transparent;
    }

    .service-card-title {
        font-size: 1.4rem;
    }

    .service-card-number {
        font-size: 1.5rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.4rem 0.7rem;
    }

    .nav {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        padding: 0.5rem 2rem;
        width: calc(100vw - 4rem);
        max-width: 100%;
    }

    .logo {
        margin-right: 0;
    }

    .nav-links {
        /* absolute centering handles this — no override needed */
    }
}

@media (max-width: 768px) {

    .pain-point-section {
        padding: 6rem 1.5rem;
    }

    .section-header {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 3rem;
    }

    .section-number {
        font-size: 3rem;
    }

    .pain-points-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .pain-point-card {
        grid-column: span 1;
    }

    .pain-point-card[data-card-index="3"],
    .pain-point-card[data-card-index="4"] {
        grid-column: span 1;
    }

    .pain-point-card.solution-card {
        grid-column: span 2;
        padding: 2.5rem;
    }

    .solution-headline {
        font-size: 1.6rem;
    }

    /* Service Progression Gallery - Tablet */
    .service-sticky {
        height: 100vh;
    }

    .service-cards {
        width: 100%;
        height: 100%;
        padding: 2rem 1rem 6vh;
        align-items: flex-end;
    }

    .service-cards .service-card {
        width: 90%;
        height: 75%; /* Increased for better visibility */
        padding: 0;
        gap: 0;
        opacity: 0; /* Prepared for JS reveal */
        transform: translateY(30px);
    }

    .service-card-img {
        height: 30%;
    }

    .service-card-content {
        padding: 1.5rem;
        height: 70%;
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .service-card-title {
        font-size: 1.2rem;
    }

    .service-card-number {
        font-size: 1.3rem;
    }

    .service-card-subtitle {
        font-size: 0.9rem;
    }

    .service-card-description p {
        font-size: 0.85rem;
    }

    .tag {
        font-size: 0.7rem;
    }

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .nav {
        padding: 0.5rem 2rem;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        justify-content: space-between;
    }

    .section {
        padding: 4rem 1.5rem;
        width: 100%;
        max-width: 100%;
        margin: 0;
        box-sizing: border-box;
    }

    .section-title {
        text-align: center;
        width: 100%;
    }

    .section-subtitle {
        text-align: center;
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .clients-grid {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
        padding: 2rem 0;
        justify-items: stretch;
    }

    .client-logo {
        width: 100%;
        aspect-ratio: 1;
        min-height: 120px;
        height: auto;
        padding: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .services-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .culture-grid {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .process-timeline {
        max-width: 100%;
        width: 100%;
        margin: 0 auto;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .timeline-number {
        text-align: center;
    }

    .timeline-content {
        text-align: center;
    }

    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
        margin-left: 15px;
        margin-right: 0px;
    }

    .logo {
        margin-right: 25px;
    }

    .overlay-cards-section {
        padding: 5rem 1.5rem;
        min-height: 150vh;
        width: 100%;
    }

    .overlay-cards-container {
        height: auto;
        min-height: 500px;
        max-width: 100%;
        width: 100%;
        position: relative;
    }

    .overlay-card {
        padding: 2.5rem;
    }

    .card-1 {
        height: fit-content;
        min-height: 500px;
        position: absolute;
    }

    .card-2 {
        height: fit-content;
        min-height: 500px;
        position: absolute;
    }

    .card-content {
        text-align: center;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    .card-features {
        align-items: center;
    }

    .card-features span {
        font-size: 1rem;
        padding: 0.6rem 1rem;
    }

    .split-scroll-section {
        width: 100%;
        padding: 4rem 0;
    }

    .split-container {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
        gap: 3rem;
        max-width: 100%;
        width: 100%;
    }

    .split-left {
        position: relative;
        top: 0;
        text-align: center;
    }

    .split-left-content {
        text-align: center;
    }

    .split-highlight {
        align-items: center;
        text-align: center;
    }

    .split-right {
        gap: 2rem;
    }

    .split-right-item {
        padding: 2rem;
        text-align: center;
    }

    .split-right-item:hover {
        transform: translateX(0);
    }

    .cta-section {
        width: 100%;
        padding: 6rem 1.5rem;
    }

    .hero-content {
        width: 100%;
        max-width: 100%;
        padding: 0 1.5rem;
        align-items: center;
        margin-bottom: 260px;
        margin-top: 150px;
    }

    .stats-flipper {
        justify-content: center;
        text-align: center;
        margin-bottom: 2rem;
        width: 100%;
    }

    .stat-flip-item {
        text-align: center;
        white-space: normal;
        line-height: 1.2;
    }

    .scroll-text {
        font-size: clamp(1.8rem, 4vw, 4rem);
        text-align: center;
        margin-bottom: 1rem;
        margin-top: 2rem;
    }

    .hero-description {
        position: relative;
        bottom: auto;
        left: auto;
        max-width: 100%;
        margin-bottom: 2rem;
        text-align: center;
        margin-top: 151px;
    }

    .hero-cta {
        position: relative;
        bottom: auto;
        right: auto;
        margin-top: 0.2rem;
    }

    .hero-image {
        width: 100%;
        height: auto;
        max-height: 60vh;
        object-fit: contain;
    }

    .full-width-image {
        width: 100%;
    }

    .stats-bar {
        padding: 3rem 1.5rem 1.5rem;
        background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.8) 40%, var(--bg) 100%);
    }

    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-text {
        font-size: 0.9rem;
    }

    .stat-divider {
        width: 60%;
        height: 1px;
        margin: 0 auto;
    }

    /* Pain Point Section - Tablet */
    .pain-point-section {
        padding: 4rem 1.5rem;
    }

    .pain-point-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
        letter-spacing: 0.1em;
    }

    .pain-point-intro {
        margin-bottom: 2rem;
    }

    .pain-point-hook-text {
        font-size: clamp(1.4rem, 3vw, 2rem);
        margin-bottom: 2rem;
    }

    .pain-points-list {
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .pain-point-card {
        padding-left: 1.5rem;
        padding: 1.5rem 0 1.5rem 1.5rem;
    }

    .pain-point-solution {
        padding: 2rem 1.5rem;
    }

    .solution-headline {
        font-size: clamp(1.4rem, 3vw, 1.8rem);
    }

    .solution-description {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .scroll-text {
        font-size: clamp(1.4rem, 3vw, 2.5rem);
    }

    .hero-description {
        font-size: 0.85rem;
    }

    .hero-image {
        height: auto;
        max-height: 70vh;
    }

    .stats-bar {
        padding: 2.5rem 1rem 1rem;
        background: linear-gradient(180deg, transparent 0%, rgba(10, 10, 10, 0.8) 30%, var(--bg) 100%);
    }

    .stats-container {
        flex-direction: column;
        gap: 1.5rem;
    }

    .stat-text {
        font-size: 0.75rem;
    }

    .stat-divider {
        width: 50%;
        height: 1px;
    }

    /* Pain Point Section - Mobile */
    .pain-point-section {
        padding: 3rem 1rem;
    }

    .pain-point-title {
        font-size: clamp(1.4rem, 3vw, 2rem);
        letter-spacing: 0.08em;
        margin-bottom: 0.8rem;
    }

    .pain-point-intro {
        font-size: 0.8rem;
        margin-bottom: 1.5rem;
    }

    .pain-point-hook-text {
        font-size: clamp(1.2rem, 2.5vw, 1.6rem);
        margin-bottom: 2rem;
    }

    .pain-points-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .pain-point-card {
        grid-column: span 1;
        padding: 1.5rem;
        border: 1px solid var(--border);
    }

    .pain-point-card[data-card-index="3"],
    .pain-point-card[data-card-index="4"] {
        grid-column: span 1;
    }

    .pain-point-card.solution-card {
        grid-column: span 1;
        padding: 2rem 1.5rem;
    }

    .card-number {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .pain-point-question {
        font-size: 1rem;
        margin-bottom: 0.8rem;
    }

    .pain-point-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    .card-accent-line {
        width: 40px;
        height: 3px;
        margin-bottom: 1rem;
    }

    .solution-headline {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .solution-description {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    /* Service Progression Gallery - Mobile */
    .service-sticky {
        height: auto;
    }

    .service-cards {
        width: 100%;
        height: auto;
        flex-direction: column;
        padding: 1rem;
        position: relative;
        transform: none !important;
    }

    .service-card {
        width: 100% !important;
        height: auto;
        min-height: auto;
        padding: 0;
        margin-bottom: 1.5rem;
        gap: 0;
        scrollbar-width: thin;
    }

    .service-card-img {
        height: 250px;
        width: 100%;
    }

    .service-card-content {
        padding: 1.5rem;
        height: auto;
        min-height: auto;
        background: rgba(10, 10, 10, 0.95);
        border: 1px solid var(--border);
        border-top: none;
    }

    canvas.service-outline-layer,
    canvas.service-fill-layer {
        display: none;
    }

    .service-card-number {
        font-size: 1.2rem;
    }

    .service-card-title {
        font-size: 1.2rem;
    }

    .service-card-subtitle {
        font-size: 0.85rem;
    }

    .service-card-description p {
        font-size: 0.8rem;
    }

    .tag {
        font-size: 0.7rem;
        padding: 0.4rem 0.6rem;
    }
}

/* TEAM SECTION */
.team-section {
    padding: 10rem 4rem 2rem;
    background: var(--bg);
    width: 100%;
    overflow: auto;
    scrollbar-width: none;
}

.team-section::-webkit-scrollbar {
  display: none;            /* Chrome, Safari */
}

.team-header {
    text-align: center;
    margin-bottom: 8rem;
}

.team-quote {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    font-weight: 400;
    color: var(--accent);
    font-family: 'Instrument Sans', sans-serif;
    margin-bottom: 2rem;
    font-style: italic;
}

.leadership-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto 2rem;
}

.member-card {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    padding: 4rem;
    transition: all 0.4s ease;
}

.member-card:hover {
    border-color: var(--accent);
    background: rgba(255, 255, 255, 0.04);
}

.member-image-box {
    position: relative;
    aspect-ratio: 1;
    background: var(--border);
    border-radius: 0px;
    overflow: hidden;
}

.member-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 5rem;
    color: rgba(255, 255, 255, 0.1);
}

.linkedin-badge {
    position: absolute;
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 50%;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.linkedin-badge i, .linkedin-badge svg {
    width: 20px;
    height: 20px;
    stroke-width: 2px;
}

.linkedin-badge:hover {
    transform: scale(1.1) rotate(5deg);
    background: #0077b5;
    border-color: transparent;
    box-shadow: 0 10px 20px rgba(0, 119, 181, 0.3);
}

.member-name {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 900;
    margin-bottom: 0.5rem;
    font-family: 'Instrument Sans', sans-serif;
}

.member-role {
    font-size: 0.9rem;
    color: var(--accent);
    margin-bottom: 2rem;
    font-family: 'iA Writer Duospace', monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.member-bio {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.member-tagline {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
    margin-top: 2rem;
    font-family: 'Instrument Sans', sans-serif;
}

.secondary-members {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.small-member {
    grid-template-columns: 1fr;
    padding: 3rem;
}

.small-member .member-image-box {
    width: 280px;
    height: 280px;
    margin-bottom: 2rem;
}

.studio-manifesto {
    max-width: 1200px;
    margin: 2rem auto 2rem;
    padding: 6rem;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 0px;
    position: relative;
    overflow: hidden;
}

.manifesto-top {
    display: flex;
    align-items: center;
    gap: 3rem;
    margin-bottom: 6rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid var(--border);
}

.studio-count {
    font-size: 10rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
    line-height: 0.8;
}

.manifesto-title {
    font-size: clamp(1.8rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--text);
    line-height: 1.1;
    font-family: 'Instrument Sans', sans-serif;
}

.manifesto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 6rem;
}

.manifesto-item {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.manifesto-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent);
    background: rgba(252, 65, 3, 0.05);
}

.manifesto-icon {
    font-size: 2rem;
    color: var(--accent);
    margin-bottom: 2rem;
}

.manifesto-item h4 {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--text);
    font-family: 'Instrument Sans', sans-serif;
}

.manifesto-item p {
    font-size: 1rem;
    color: var(--muted);
    line-height: 1.7;
}

.practice-certification {
    display: flex;
    align-items: center;
    gap: 3rem;
    padding: 4rem;
    background: rgba(252, 65, 3, 0.08);
    border: 1px solid rgba(252, 65, 3, 0.2);
    border-radius: 0px;
    transition: all 0.4s ease;
}

.practice-certification:hover {
    box-shadow: 0 0 50px rgba(252, 65, 3, 0.15);
}

.cert-icon {
    font-size: 3.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.cert-content p {
    font-size: clamp(1.1rem, 1.8vw, 1.3rem);
    color: var(--text);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.cert-content p strong {
    color: var(--accent);
}

.cert-slogan {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    font-family: 'iA Writer Duospace', monospace;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

@media (max-width: 1024px) {
    .manifesto-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 2rem;
    }
    
    .studio-count {
        font-size: 6rem;
    }
    
    .manifesto-grid {
        grid-template-columns: 1fr;
    }
    
    .practice-certification {
        flex-direction: column;
        text-align: center;
        padding: 3rem 0.5rem;
        gap: 2rem;
        width: 100%;
        margin: 0 auto;
    }
    
    .studio-manifesto {
        padding: 4rem 1rem;
        width: 100%;
    }
    
    .cert-content p {
        font-size: 1.1rem;
        text-align: center;
    }
}

/* MAP SECTION */
.map-section {
    padding-bottom: 0;
    overflow: hidden;
}

#map-container { 
    width: 100%; 
    height: 70vh; 
    margin: 4rem 0 0; 
    background-color: var(--bg);
    position: relative;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.datamaps-subunit {
    transition: fill 0s !important;
}

.datamaps-hoverover {
    font-family: 'Instrument Sans', sans-serif !important;
    font-weight: 700 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3) !important;
}

.hoverinfo {
    padding: 12px 20px !important;
    border-radius: 0px !important; /* Sharp corners */
    background: var(--accent) !important;
    color: #fff !important;
    border: none !important;
    font-size: 0.9rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* FINAL CTA & FOOTER */
.final-cta {
    padding: 12rem 2rem;
    text-align: center;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.cta-headline {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin-bottom: 2rem;
    font-family: 'Instrument Sans', sans-serif;
    color: var(--text);
    line-height: 1.1;
}

.cta-sub {
    font-size: clamp(1.1rem, 1.8vw, 1.4rem);
    color: var(--muted);
    max-width: 800px;
    margin: 0 auto 3.5rem;
    line-height: 1.7;
    font-family: 'iA Writer Duospace', monospace;
}

.direct-contact {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px dashed var(--border);
    display: inline-block;
}

.direct-contact p {
    font-size: 1.1rem;
    color: var(--muted);
    font-family: 'iA Writer Duospace', monospace;
}

.direct-contact a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 700;
    transition: all 0.3s ease;
}

.direct-contact a:hover {
    letter-spacing: 0.05rem;
}

.main-footer {
    padding: 4rem 2rem;
    border-top: 1px solid var(--border);
    background: var(--bg);
    text-align: center;
}

.footer-top {
    margin-bottom: 2rem;
}

.footer-tagline {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.1em;
    font-family: 'Instrument Sans', sans-serif;
}

.footer-bottom {
    font-size: 0.9rem;
    color: var(--muted);
    font-family: 'iA Writer Duospace', monospace;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--accent);
}

.divider {
    color: var(--border);
}

@media (max-width: 768px) {
    .final-cta {
        padding: 8rem 1.5rem;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 1rem;
    }
    
    .divider {
        display: none;
    }
}

/* VISION REVEAL SECTION */
.vision-reveal-section {
    width: 100%;
    min-height: 100vh;
    padding: 6rem 1rem;
    overflow: hidden;
    background: var(--bg);
    margin-bottom: 2rem;
}

.reveal-line {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(1rem, 2vw, 2rem);
    margin-bottom: 2rem;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.reveal-line span {
    font-size: clamp(2rem, 6vw, 6.5rem);
    font-weight: 500;
    letter-spacing: -1px;
    color: var(--text);
    font-family: 'Instrument Sans', sans-serif;
    line-height: 1;
}

.reveal-img-span {
    height: clamp(60px, 8vw, 110px);
    width: 0;
    background: var(--border);
    border-radius: 0px;
    overflow: hidden;
    position: relative;
    transition: box-shadow 0.4s ease;
    will-change: width;
    flex-shrink: 0;
}

.reveal-img-span img {
    height: 100%;
    width: 300px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    object-fit: cover;
    opacity: 0.8;
}

@media (max-width: 1024px) {
    .reveal-line span {
        font-size: clamp(2rem, 5vw, 4rem);
    }
    .reveal-img-span {
        height: 80px;
    }
}

/* MARQUEE GALLERY SECTION */
.marquees-section {
    width: 100%;
    min-height: 150vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #000000;
    overflow: hidden;
    padding: 5rem 0;
}

body[data-theme="light"] .marquees-section {
    background-color: #ffffff !important;
}

body[data-theme="light"] .marquees-section .marquee-item h1 {
    color: #000000;
}

.marquees-section {
    background-color: #000000;
}

body[data-theme="light"] .marquees-section .marquee-item h1 {
    color: #000000;
}

.marquee-container {
    position: relative;
    width: 130%;
    height: 180px;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.marquee-inner {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    display: flex;
    gap: 1rem;
}

#marquee-1 .marquee-inner,
#marquee-3 .marquee-inner {
    left: -15%;
}

.marquee-item {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 280px;
    overflow: hidden;
    background: var(--border);
}

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

.marquee-item:hover img {
    transform: scale(1.05);
}

.marquee-item.with-text {
    flex: 2;
    min-width: 450px;
}

.marquee-item h1 {
    text-transform: uppercase;
    font-size: clamp(3rem, 6vw, 5.5rem);
    font-weight: 100;
    color: var(--text);
    font-family: 'Instrument Sans', sans-serif;
    line-height: 0.9;
}


@media (max-width: 900px) {
    .marquees-section {
        height: 100vh;
        min-height: 100vh;
    }

    .marquee-container {
        width: 250%;
        height: 180px;
    }

    #marquee-2 .marquee-inner,
    #marquee-4 .marquee-inner {
        left: -35%;
    }

    .marquee-item {
        min-width: 250px;
    }

    .marquee-item.with-text {
        min-width: 350px;
    }

    .marquee-item h1 {
        font-size: 4rem;
    }
}

/* RKM MODULAR CAROUSEL */
.rkms-slider {
    width: 100%;
    height: 100vh;
    position: relative;
    background: var(--bg);
    overflow: hidden;
    cursor: none;
    border-bottom: 1px solid var(--border);
}

.rkms-slide-titles {
    position: absolute;
    top: 0;
    left: 0;
    width: 700%; /* For 6 slides + 1 duplicate */
    height: 100vh;
    display: flex;
    pointer-events: none;
    z-index: 2;
    transition: transform 2s cubic-bezier(0.83, 0, 0.17, 1);
}

.rkms-title {
    flex: 1;
    width: 14.2857%; /* 1/7 */
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.1;
    transition: opacity 1s cubic-bezier(0.23, 1, 0.32, 1);
}

.rkms-title.active {
    opacity: 1;
}

.rkms-title h1 {
    text-align: center;
    font-size: clamp(2rem, 10vw, 15rem);
    font-weight: 900;
    color: gray;
    transition: color 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    font-family: 'Instrument Sans', sans-serif;
    text-transform: uppercase;
    line-height: 0.8;
}

body[data-theme="light"] .rkms-title h1 {
    color: #000000;
}

.rkms-slide-images {
    width: clamp(300px, 40vw, 550px);
    height: clamp(300px, 40vw, 500px);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 3;
    opacity: 0.9;
    /* Light spotlight background for SVGs */
   background-color: rgba(0, 0, 0, 0.9);
}

.rkms-img-top, .rkms-img-bottom {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: clip-path 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.nav-cta-wrapper {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    white-space: nowrap;
    transition: none; /* Let GSAP handle it */
    pointer-events: none;
    display: flex;
    align-items: center;
}

.nav-cta-btn {
    padding: 0.6rem 1.4rem;
    font-size: 0.85rem;
    border: 1px solid var(--accent);
}

.rkms-img-top {
    clip-path: polygon(85% 0%, 0% 0%, 0% 50%, 85% 50%);
}

.rkms-img-bottom {
    clip-path: polygon(100% 50%, 15% 50%, 15% 100%, 100% 100%);
}

.rkms-slider:hover .rkms-img-top {
    clip-path: polygon(90% 0%, 10% 0%, 10% 50%, 90% 50%);
}

.rkms-slider:hover .rkms-img-bottom {
    clip-path: polygon(90% 50%, 10% 50%, 10% 100%, 90% 100%);
}

.rkms-img-top img, .rkms-img-bottom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Removed absolute positioning to allow track layout */
}

.rkms-img-track {
    display: flex;
    width: 700%; /* 7 items */
    height: 100%;
    transition: transform 0.2s ease-out; /* Fallback, but GSAP will handle it */
}

.rkms-img-track img {
    flex: 1;
    width: 14.2857%; /* 1/7 */
    height: 100%;
    object-fit: contain;
    animation: bounceRight 2s infinite;
}

@media (max-width: 900px) {
    .rkms-slide-images {
        width: 100%;
        height: 60%;
        opacity: 0.7;
    }
    
    .rkms-title h1 {
        font-size: 3rem;
    }
}

/* RKM 3D STACK SLIDER */
.rkm-stack-section {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: var(--bg);
    cursor: none;
    border-top: 1px solid var(--border);
}

.rkm-stack-slider {
    position: absolute;
    top: 5vh;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    perspective: 800px;
    perspective-origin: 50% 100%;
}

.rkm-stack-card {
    position: absolute;
    top: 50%;
    left: 50%;
    width: clamp(340px, 60vw, 800px);
    height: clamp(400px, 60vh, 600px);
    border-radius: 0px;
    transform: translate3d(-50%, -50%, 0px);
    overflow: hidden;
    background: #000;
    border: 1px solid var(--border);
    opacity: 0;
}

.rkm-stack-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.65;
    transition: opacity 0.5s ease;
}

.rkm-stack-card:hover img {
    opacity: 0.85;
}

.rkm-stack-copy {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
    z-index: 2;
}

.rkm-stack-copy h1 {
    position: relative;
    text-align: center;
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 900;
    text-transform: uppercase;
    color: var(--text);
    font-family: 'Instrument Sans', sans-serif;
    line-height: 1;
}

.rkm-stack-copy h1 span {
    position: relative;
    display: inline-block;
}

@media (max-width: 900px) {
    .rkm-stack-card {
        width: 90vw;
        height: 50vh;
    }
}

/* PROOF & TRUST SECTION */
.proof-trust-section {
    padding: 8rem 4rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.proof-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--accent);
    text-align: center;
    letter-spacing: 0.2em;
    margin-bottom: 6rem;
    font-family: 'iA Writer Duospace', monospace;
}

.stats-grid-complex {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.stat-complex-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2rem;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

.stat-complex-item:hover {
    background: rgba(252, 65, 3, 0.03);
    border-color: rgba(252, 65, 3, 0.1);
}

.stat-icon {
    font-size: 1.5rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.stat-big-number {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    color: white;
    font-family: 'Instrument Sans', sans-serif;
    line-height: 1;
    margin-bottom: 1rem;
}

.stat-sub {
    font-size: 0.85rem;
    color: white;
    font-family: 'iA Writer Duospace', monospace;
    line-height: 1.5;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    max-width: 200px;
}

@media (max-width: 1024px) {
    .stats-grid-complex {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .stat-complex-item {
        flex: 0 0 45%;
    }
}

@media (max-width: 600px) {
    .stat-complex-item {
        flex: 0 0 100%;
    }
}

/* CINEMATIC LOADER */
body.is-loading {
    overflow: hidden;
}

.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    pointer-events: none;
}

.loader-panel {
    position: absolute;
    top: 0;
    width: 50.5vw;
    height: 100vh;
    background: #0a0a0a;
    z-index: 1;
}

.loader-panel.left { left: 0; }
.loader-panel.right { right: 0; }

.loader-content {
    position: relative;
    z-index: 3;
    text-align: center;
}

.brand-reveal {
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-svg {
    width: 600px;
    height: auto;
    max-width: 95vw;
    opacity: 0;
}

.brand-text-container {
    display: none;
}

.brand-path {
    fill: var(--accent);
    fill-opacity: 0;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 10000;
    stroke-dashoffset: 10000;
}

.loader-split-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 0;
    background: var(--accent);
    z-index: 2;
}

/* HERO STATS FLIPPER */
.stats-flipper {
    height: 2rem;
    overflow: hidden;
    position: relative;
    margin-top: -0.5rem;
    margin-bottom: 3rem;
    width: 100%;
    display: flex;
    align-items: center;
    font-family: 'iA Writer Duospace', monospace;
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    opacity: 0;
}

.stat-flip-item {
    position: absolute;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    white-space: nowrap;
    width: 100%;
}

.stat-flip-item.active {
    opacity: 1;
    transform: translateY(0);
}

.stat-flip-item.exit {
    opacity: 0;
    transform: translateY(-20px);
}

/* CUSTOM CURSOR */
.custom-cursor-dot,
.custom-cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 99999;
    background-color: var(--accent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.custom-cursor-dot {
    width: 6px;
    height: 6px;
}

.custom-cursor-outline {
    width: 30px;
    height: 30px;
    background-color: transparent;
    border: 1px solid var(--accent);
}

@media (max-width: 1024px) {
    .custom-cursor-dot,
    .custom-cursor-outline {
        display: none;
    }
}

body:hover .custom-cursor-dot,
body:hover .custom-cursor-outline {
    opacity: 1;
}

/* SCROLL HIGHLIGHT */
.scroll-highlight {
    color: var(--muted-dark, var(--muted));
    transition: color 0.4s ease;
    display: inline;
}

.scroll-highlight.active {
    color: var(--accent);
}

/* Custom mobile descriptions for projects */
.project-mobile-desc {
    display: none;
}

/* ===== NODE CODING SECTION ===== */
.node-section {
    position: relative;
    padding-bottom: 4rem;
}

.node-canvas-container {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 500px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 3rem;
    box-shadow: inset 0 0 50px rgba(0,0,0,0.05);
    background-image: radial-gradient(var(--border) 1px, transparent 1px);
    background-size: 20px 20px; /* Dot grid background */
}

.node-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.node-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: auto; /* Allow hovering wires if strictly needed, otherwise none */
    z-index: 1;
}

.node-wire {
    fill: none;
    stroke: var(--accent);
    stroke-width: 2;
    stroke-linecap: round;
    opacity: 0.6;
    transition: stroke-width 0.2s, opacity 0.2s;
}

.node-wire:hover {
    stroke-width: 4;
    opacity: 1;
}

.bim-node {
    position: absolute;
    width: 220px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
    cursor: grab;
    font-family: 'iA Writer Duospace', monospace;
    display: flex;
    flex-direction: column;
}

.bim-node:active {
    cursor: grabbing;
    z-index: 10;
}

.node-header {
    background: var(--accent);
    color: var(--bg);
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
    font-weight: bold;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
    user-select: none;
}

.node-body {
    padding: 0.8rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.node-port {
    display: flex;
    align-items: center;
    position: relative;
    padding: 0 1rem;
    font-size: 0.8rem;
    color: var(--text);
    user-select: none;
}

.node-port.in {
    justify-content: flex-start;
}

.node-port.out .port-dot {
    right: -6px;
}

/* ========================================= */
/* ===== RESPONSIVE GLOBALS & QUERIES ====== */
/* ========================================= */

@media (max-width: 1024px) {
    .hero-title {
        font-size: clamp(3rem, 7vw, 6rem);
    }
    .hero-description {
        font-size: 1.2rem;
        max-width: 80%;
    }
    .pain-point-section .split-container {
        flex-direction: column;
    }
    .pain-point-section .split-left, 
    .pain-point-section .split-right {
        width: 100%;
        position: relative;
        top: 0;
        height: auto;
    }
    .pain-point-section .split-right {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
    .services-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem;
    }
    .leadership-grid {
        gap: 2rem;
    }
    .member-card {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }
    .member-image-box {
        max-width: 300px;
        margin: 0 auto;
    }
    .secondary-members {
        grid-template-columns: 1fr;
    }
    .project {
        padding: 2rem 2rem;
    }
}

@media (max-width: 768px) {
    .section {
        padding: 4rem 1.5rem;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .nav-links {
        display: none !important;
    }
    .nav-right {
        display: flex !important;
        margin-left: auto;
    }
    .hamburger {
        display: flex !important;
    }
    .theme-toggle {
        display: flex !important;
        margin-right: 0;
        transform: none !important;
    }
    .nav-cta-wrapper {
        display: none !important;
    }
    .hero-cta-group {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    .cta-btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .rkms-slide-titles {
        flex-direction: column;
        display: none; /* Can get complex on mobile, simplest to hide or re-layout */
    }
    /* Disable the custom cursor entirely on mobile */
    .custom-cursor-dot, 
    .custom-cursor-outline {
        display: none !important;
    }

    /* Swiss UI Service Gallery overrides */
    .service-text-slide,
    .swiss-slide {
        width: 85vw !important; /* Make it smaller so they see the next card to scroll horizontally */
        height: auto !important;
        min-height: auto !important;
        padding: 4rem 1.5rem !important;
        flex-shrink: 0;
        display: flex !important;
        /* overrides for the missing text slides */
    }
    .swiss-slide .slide-h2 {
        font-size: 2rem;
    }
    
    /* Why RKM Projects override */
    .project {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem 1rem;
    }
    .project h2 {
        font-size: 1.5rem;
    }
    
    /* Project Thumbnail Interaction for Mobile */
    .project-thumbnail {
        display: none !important; /* Hide floating popup on touch devices */
    }
    
    /* Show paragraph inline on mobile since hover/popup isn't available */
    .project-mobile-desc {
        display: block !important;
        margin-top: 1rem;
        color: var(--text);
        font-size: 0.95rem;
        line-height: 1.5;
        font-family: 'Instrument Sans', sans-serif;
    }

    /* Node Section panning on mobile */
    .node-canvas-container {
        height: 70vh;
        min-height: 500px;
        overflow: auto !important;
        scrollbar-width: none;
    }
    .node-canvas-container::-webkit-scrollbar {
        display: none;
    }
    .node-canvas, #node-wires {
        width: 200vw !important;
        height: 900px !important;
    }
    /* Bind background grid to panning canvas instead of static container for mobile */
    .node-canvas {
        background-image: radial-gradient(var(--border) 1px, transparent 1px);
        background-size: 20px 20px;
    }
    .bim-node {
        transform: scale(0.85); /* fallback */
    }
    /* Vertical node positioning for scrolling canvas inside mobile */
    #node-1 { top: 40px !important; left: 20px !important; }
    #node-2 { top: 220px !important; left: 60px !important; }
    #node-3 { top: 400px !important; left: 20px !important; }
    #node-4 { top: 580px !important; left: 60px !important; }
    
    /* Timeline How We Work */
    .timeline-container {
        padding: 2rem 0;
    }
    .timeline-step {
        width: 90%;
        margin: 0 0 2rem 2rem !important; /* Force to left side */
        text-align: left !important;
        display: flex;
        flex-direction: column !important; /* Forces title and paragraph under marker */
        align-items: flex-start !important;
        gap: 1rem;
    }
    .timeline-line {
        left: 0;
    }
    .timeline-progress {
        left: 0;
    }
    
    /* Studio Manifesto Grid */
    .studio-manifesto {
        padding: 2rem 1.5rem;
    }
    .manifesto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .process-timeline {
        flex-direction: column;
    }
    
    /* Marquees */
    .marquee-item img {
        height: 4rem;
        width: 6rem;
    }
    .marquee-item.with-text h1 {
        font-size: 2.5rem;
    }
    
    /* Footer */
    .footer-top {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    .footer-tagline {
        font-size: 2rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.nav-cta-wrapper {
    margin-left: 1rem;
    opacity: 0;
    pointer-events: none;
    transform: translateX(20px);
    flex-shrink: 0;
}

.nav-cta-btn {
    padding: 0.8rem 1.8rem !important;
    font-size: 0.9rem !important;
    height: auto !important;
}

@media (max-width: 768px) {
    .nav-cta-wrapper {
        display: none !important; /* Hide on mobile so it doesn't break navbar */
    }
}

@keyframes bounceRight {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(0);
    }
    40% {
        transform: translateX(10px);
    }
    60% {
        transform: translateX(5px);
    }
}

/* WHY RKM SECTION CARDS - SWISS GALLERY */
.why-rkm-cards-grid {
    display: flex;
    overflow-x: auto;
    gap: 2rem;
    padding: 4rem 4rem 6rem;
    margin: 0 -4rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) transparent;
}

.why-rkm-cards-grid::-webkit-scrollbar {
    height: 4px;
    display: block;
}

.why-rkm-cards-grid::-webkit-scrollbar-thumb {
    background: var(--accent);
}

/* WHY RKM SWISS GALLERY */
.why-rkm-section {
    padding: 10rem 4rem;
    background: var(--bg);
    width: 100%;
    overflow-x: hidden;
}

.why-rkm-section .section-intro {
    font-size: 1.25rem;
    line-height: 1.8;
    color: var(--muted);
    max-width: 800px;
    margin: 1rem auto 6rem auto;
    text-align: center;
}

.why-rkm-gallery {
    margin-top: 6rem;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(100px, auto);
    gap: 1.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.gallery-item::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    background-color: var(--accent); /* Motif color */
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    opacity: 0.8; /* Subtle orange */
    pointer-events: none;
    z-index: 0;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.gallery-item:hover::before {
    opacity: 1;
    transform: scale(1.1);
}

.item-content {
    position: relative;
    z-index: 2;
}

.item-1::before { 
    -webkit-mask-image: url('./assets/new%20assets/carousel%202/files/motif_01_Architect_Led.svg');
    mask-image: url('./assets/new%20assets/carousel%202/files/motif_01_Architect_Led.svg');
}
.item-2::before { 
    -webkit-mask-image: url('./assets/new%20assets/carousel%202/files/motif_02_Zero_Churn.svg');
    mask-image: url('./assets/new%20assets/carousel%202/files/motif_02_Zero_Churn.svg');
}
.item-3::before { 
    -webkit-mask-image: url('./assets/new%20assets/carousel%202/files/motif_03_Deep_Embedding.svg');
    mask-image: url('./assets/new%20assets/carousel%202/files/motif_03_Deep_Embedding.svg');
}
.item-4::before { 
    -webkit-mask-image: url('./assets/new%20assets/carousel%202/files/motif_04_Radically_Adaptable.svg');
    mask-image: url('./assets/new%20assets/carousel%202/files/motif_04_Radically_Adaptable.svg');
}
.item-5::before { 
    -webkit-mask-image: url('./assets/new%20assets/carousel%202/files/motif_05_Data_Driven.svg');
    mask-image: url('./assets/new%20assets/carousel%202/files/motif_05_Data_Driven.svg');
}
.item-6::before { 
    -webkit-mask-image: url('./assets/new%20assets/carousel%202/files/motif_06_Communication.svg');
    mask-image: url('./assets/new%20assets/carousel%202/files/motif_06_Communication.svg');
}

.gallery-item:hover {
    border-color: var(--accent);
    transform: translateY(-5px);
    background: rgba(252, 65, 3, 0.03);
}

.gallery-item .item-num {
    position: absolute;
    top: 2rem;
    right: 2rem;
    font-size: 3rem;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px var(--border);
    opacity: 0.5;
    transition: all 0.5s ease;
    z-index: 1;
}

.gallery-item:hover .item-num {
    color: var(--accent);
    opacity: 0.2;
    -webkit-text-stroke: 0;
}

.gallery-item h3 {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
}

.gallery-item p {
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* Swiss Layout Logic - Custom Asymmetric Grid */
.item-1 { grid-column: span 7; grid-row: span 2; min-height: 280px; }
.item-2 { grid-column: span 5; grid-row: span 1; }
.item-3 { grid-column: span 5; grid-row: span 1; }
.item-4 { grid-column: span 12; grid-row: span 2; min-height: 350px; } /* BIG */
.item-5 { grid-column: span 4; grid-row: span 1; } /* SMALL */
.item-6 { grid-column: span 8; grid-row: span 1; }
.item-7 { grid-column: span 12; grid-row: span 3; min-height: 480px; background: var(--accent); border: none; padding: 4rem; } /* BIG */

.item-7::before { display: none; } /* No motif for the dark/highlighted card */

.item-7 h3, .item-7 p { color: #ffffff; }
.item-7 .item-num { -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3); }

@media (max-width: 1024px) {
    .why-rkm-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-item {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
        min-height: 300px !important;
    }
    .item-7 {
        grid-column: span 2 !important;
    }
}

@media (max-width: 768px) {
    .why-rkm-gallery {
        grid-template-columns: 1fr;
    }
    .item-7 {
        grid-column: span 1 !important;
    }
}

/* PRICING SECTION */
.pricing-section {
    padding: 2rem 4rem;
    background: var(--bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1600px;
    margin: 4rem auto;
}

@media (min-width: 1400px) {
    .pricing-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

.pricing-card {
    background: var(--panel);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

/* Highlighted middle card */
.pricing-grid .pricing-card:nth-child(3) {
    background: var(--accent);
    border-color: var(--accent);
    transform: scale(1.05);
    z-index: 2;
    box-shadow: 0 30px 60px rgba(252, 65, 3, 0.3);
}

.pricing-grid .pricing-card:nth-child(3) .model-name,
.pricing-grid .pricing-card:nth-child(3) .model-desc {
    color: #ffffff;
}

.pricing-grid .pricing-card:nth-child(3) .best-when {
    color: rgba(255, 255, 255, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 1rem;
}

.pricing-card:hover {
    border-color: var(--accent);
    transform: translateY(-10px);
}

.pricing-grid .pricing-card:nth-child(3):hover {
    transform: scale(1.08) translateY(-10px);
}

.model-name {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text);
    letter-spacing: -0.02em;
}

.best-when-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.best-when-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--accent);
    font-family: 'iA Writer Duospace', monospace;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.best-when-item i, .best-when-item svg {
    width: 14px;
    height: 14px;
    color: var(--accent);
    stroke-width: 3;
}

.pricing-grid .pricing-card:nth-child(3) .best-when-item {
    color: #ffffff;
}

.pricing-grid .pricing-card:nth-child(3) .best-when-item i,
.pricing-grid .pricing-card:nth-child(3) .best-when-item svg {
    color: #ffffff;
}

.model-desc {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.7;
    font-family: 'iA Writer Duospace', monospace;
}

.pricing-card.custom-model {
    background: transparent;
    border: 2px dashed var(--border);
}

.pricing-card.custom-model:hover {
    border-style: solid;
    border-color: var(--accent);
}

.pricing-footer-text{
    text-align: center;
    margin: 30px 0px;
}

.btn-wrapper {
    text-align: center;
    margin-top: 50px;
    margin-bottom: 50px;
}
/* TEAM IMAGE SIZE */
.member-image-box {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    background: #0a0a0a;
    position: relative;
}

.member-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    filter: grayscale(1);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

.member-card:hover .member-photo {
    filter: grayscale(0);
    transform: scale(1.05);
}

.main-member .member-image-box {
    max-width: 100%; /* Take full width of card */
    height: auto;
}

@media (max-width: 1024px) {
    .footer-top {
        flex-direction: column;
        gap: 4rem;
        text-align: left;
    }
    .footer-contact {
        text-align: left;
    }
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 3rem;
    }
    .footer-secondary-info {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* TEAM BIO & LINKEDIN REFINEMENTS */
.bio-extended-wrapper {
    margin-top: 1.5rem;
}

.bio-extended-content {
    max-height: 0;
    overflow: hidden;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0;
    pointer-events: none;
}

.bio-extended-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--muted);
    font-family: 'iA Writer Duospace', monospace;
    margin-bottom: 1.5rem;
}

.bio-extended-content.active {
    max-height: 3000px;
    opacity: 1;
    pointer-events: auto;
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.read-more-toggle {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-weight: 800;
    font-size: 0.75rem;
    cursor: pointer !important;
    padding: 0.8rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    margin-top: 1rem;
    z-index: 10;
}

.read-more-toggle span {
    font-size: 1.1rem;
    line-height: 1;
}

.read-more-toggle:hover {
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 10px 30px rgba(252, 65, 3, 0.3);
    transform: translateY(-3px);
}

.member-bio {
    font-size: 1.05rem;
    color: var(--muted);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* Ensure icons are visible */
.linkedin-badge i, .linkedin-badge svg {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    color: #ffffff !important;
    stroke: #ffffff !important;
}
/* ===== TESTIMONIALS CAROUSEL (PORTED) ===== */
.testimonials-section {
    padding: 10rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.testimonials-container {
    max-width: 100%;
    margin: 0;
    padding: 0;
}

.testimonials-slider-wrapper {
    position: relative;
    width: 100%;
}

.testimonials-track {
    display: flex;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    width: fit-content;
    padding: 0 15vw; /* Initial offset to center the first slide */
}

.testimonial-slide {
    flex: 0 0 70vw;
    width: 70vw;
    opacity: 0.15;
    filter: blur(4px);
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1);
    box-sizing: border-box;
    padding: 2rem 5vw;
    text-align: center;
}

.testimonial-slide.active {
    opacity: 1;
    filter: blur(0);
    transform: scale(1);
}

.quote-icon {
    color: var(--accent);
    margin-bottom: 3rem;
    opacity: 0.4;
}

.quote-icon svg {
    width: 48px;
    height: 48px;
}

.testimonial-text {
    font-size: clamp(1.4rem, 2.2vw, 2rem);
    line-height: 1.5;
    color: var(--text);
    font-family: "Instrument Sans", sans-serif;
    font-weight: 500;
    max-width: 900px;
    margin-bottom: 4rem;
    letter-spacing: -0.01em;
}

.testimonial-author {
    margin-top: auto;
}

.author-name {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.author-role {
    font-family: "iA Writer Duospace", monospace;
    font-size: 0.9rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* CAROUSEL NAVIGATION */
.testimonials-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    margin-top: 5rem;
}

.nav-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: scale(1.1);
}

.testimonials-dots {
    display: flex;
    gap: 1rem;
}

.dot {
    width: 8px;
    height: 8px;
    background: var(--border);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent);
    transform: scale(1.5);
}

/* ===== FINAL CTA & CONTACT FORM (PORTED) ===== */
.final-cta-contact-section {
    padding: 10rem 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.cta-contact-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.cta-header {
    text-align: center;
    max-width: 900px;
    margin: 0 auto 6rem;
}

.cta-headline {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: 2rem;
    letter-spacing: -0.02em;
    color: var(--text);
}

.cta-sub {
    margin-top: 20px;
    font-size: 1.3rem;
    line-height: 1.6;
    color: var(--muted);
}

.cta-contact-grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.form-column {
    width: 100%;
    max-width: 800px;
}

.column-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 3rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.column-header i {
    color: var(--accent);
    width: 24px;
    height: 24px;
}

.column-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: "iA Writer Duospace", monospace;
    margin: 0;
}

.header-text-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.pre-form-text {
    font-size: 0.9rem;
    color: var(--muted);
    font-family: "iA Writer Duospace", monospace;
    margin: 0;
}

/* Form Styling */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.form-group label {
    font-family: "iA Writer Duospace", monospace;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent);
}

.form-group input,
.form-group select,
.form-group textarea {
    background: #f9f9f9;
    border: 1px solid var(--border);
    padding: 1.2rem;
    color: #111111;
    font-family: "Instrument Sans", sans-serif;
    font-size: 1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: transparent;
    color: #ffffff;
}

.form-group select:focus {
    outline: none;
    border-color: var(--accent);
    background: #f9f9f9;
    color: #111111;
}

.contact-form .cta-btn {
    margin-top: 1rem;
    align-self: flex-start;
}

/* Responsive Contact */
.booking-column {
    background: #ffffff;
    padding: 3rem;
    border: 1px solid var(--border);
    border-radius: 4px;
}

@media (max-width: 1024px) {
    .cta-contact-grid {
        grid-template-columns: 1fr;
        gap: 8rem;
    }
    .cta-contact-container {
        padding: 0 2rem;
    }
    .booking-column iframe {
        height: 600px !important;
    }
}

@media (max-width: 768px) {
    .final-cta-contact-section {
        padding: 6rem 0;
    }
    .cta-headline {
        font-size: 2.5rem;
    }
    .cta-sub {
        font-size: 1.1rem;
    }
}

/* ===== REVISED FOOTER (PORTED) ===== */
/* FOOTER UPDATES */
.footer {
    padding: 6rem 2rem 4rem;
    background: var(--bg);
    border-top: 1px solid var(--border);
}

.footer-container-full {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.footer-row {
    margin-bottom: 2rem;
    color: var(--muted);
    font-family: 'iA Writer Duospace', monospace;
    font-size: 0.8rem;
    line-height: 1.8;
}

.footer-row.main-tagline {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer {
    position: relative;
    padding: 10rem 0 0;
    background: var(--bg);
    overflow: hidden;
}

.footer-bg-marquee {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    opacity: 0.05;
    white-space: nowrap;
}

.footer-bg-marquee .marquee-track {
    display: inline-block;
    animation: footerMarquee 30s linear infinite;
}

.footer-bg-marquee span {
    font-size: clamp(10rem, 20vw, 25rem);
    font-weight: 900;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 2px var(--text);
    padding-right: 2rem;
}

@keyframes footerMarquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.footer-container {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 8rem;
}

.footer-col h4 {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.footer-col p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 1.2rem;
    max-width: 250px;
}

.footer-logo {
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: var(--text);
}

.footer-tagline {
    font-size: 1rem;
    color: var(--text);
    margin-bottom: 2rem;
    opacity: 0.8;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.contact-link {
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--accent);
}

.location-link {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
    cursor: pointer;
}

.location-link h4 {
    margin-bottom: 0;
    transition: color 0.3s ease;
}

.location-link:hover h4 {
    color: var(--accent);
}

/* Custom Tooltip */
.address-tooltip {
    position: fixed;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 1rem 1.5rem;
    border-radius: 4px;
    font-size: 0.9rem;
    line-height: 1.5;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(10px) translateX(-50%);
    z-index: 10000;
    max-width: 280px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-family: 'iA Writer Duospace', monospace;
}

.address-tooltip.visible {
    opacity: 1;
    transform: translateY(0) translateX(-50%);
}


.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 3rem 0;
    border-top: 1px solid var(--border);
    font-size: 0.85rem;
    color: var(--muted);
    width: 100%;
}

.legal-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.legal-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-links a:hover {
    color: var(--text);
}

.divider {
    opacity: 0.3;
}

@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 4rem 2rem;
    }
    .footer-col.brand-col {
        grid-column: span 2;
        margin-bottom: 2rem;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-col.brand-col {
        grid-column: span 1;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }
}

