@import url('https://fonts.googleapis.com/css2?family=Great+Vibes&display=swap');

@font-face {
    font-family: 'Nohemi';
    src: url('assets/font/Nohemi-Font/Nohemi-Black-BF6438cc58744d4.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Nohemi';
    src: url('assets/font/Nohemi-Font/Nohemi-Bold-BF6438cc587b5b5.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
    --bg-dark: #0a0a0a;
    --bg-card: #151515;
    --text-main: #ffffff;
    --text-dim: #888888;
    --accent-red: #e60000;
    --accent-red-hover: #ff1a1a;
    --font-main: 'Satoshi', 'Inter', sans-serif;
    --font-heading: 'Clash Display', 'Inter', sans-serif;
    --font-special: 'Satoshi', 'Inter', sans-serif;
}

html.lenis,
html.lenis body {
    height: auto;
}

html {
    scroll-padding-top: 130px;
    /* Offset for sticky navbar */
}

.lenis.lenis-smooth {
    scroll-behavior: auto;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

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

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-main);
    overflow-x: hidden;
    line-height: 1.6;
}

/* --- PREMIUM UI ELEMENTS --- */

/* Preloader */
.preloader {
    position: fixed;
    inset: 0;
    background-color: var(--bg-dark);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-logo {
    height: 300px;
    width: auto;
    opacity: 0;
    /* Animated in via JS */
    animation: preloaderBounce 1s infinite ease-in-out;
}

@keyframes preloaderBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}



/* Scroll Progress Bar */
.scroll-progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--accent-red);
    z-index: 99999;
    transform-origin: 0% 50%;
    transform: scaleX(0);
    /* Driven by JS */
}

/* Text Reveal Utilities */
.reveal-text-wrapper {
    overflow: hidden;
    display: inline-block;
    vertical-align: top;
}

.reveal-text {
    display: inline-block;
    transform: translateY(110%);
}

h1,
h2,
h3,
h4,
h5,
h6,
.hero-title {
    font-family: var(--font-heading);
}

.text-red-glow {
    color: #ff3333;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 51, 51, 0.7), 0 0 40px rgba(255, 51, 51, 0.4);
    font-family: var(--font-special);
    font-size: 1.2em;
    line-height: 1.1;
    letter-spacing: 0.05em;
    text-transform: capitalize;
}

.text-bold {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 1em;
    line-height: 1.1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFFFFF;
}

.text-thin {
    font-family: var(--font-heading);
    font-weight: 200;
    font-size: 1em;
    line-height: 1.1;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #FFFFFF;
}

.dim {
    color: var(--text-dim);
}

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

/* ── ANIMATIONS ── */
@keyframes wOut {
    from {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0 0 0% 0 round 2px);
    }

    to {
        opacity: 0;
        transform: translateY(-26%);
        clip-path: inset(0 0 110% 0 round 2px);
    }
}

@keyframes wIn {
    from {
        opacity: 0;
        transform: translateY(26%);
        clip-path: inset(110% 0 0 0 round 2px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        clip-path: inset(0% 0 0 0 round 2px);
    }
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.25;
    }
}

@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

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

/* ── WRAPPER ── */
.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ── AMBIENT GLOW (SPOTLIGHT) ── */
.glow {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.glow-inner {
    position: absolute;
    top: 0;
    left: 0;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(225, 29, 36, 0.2) 0%, transparent 70%);
    filter: blur(100px);
    transform: translate(-50%, -50%);
    /* Centered on coordinates */
    opacity: 0;
    /* Hidden initially, shown on mousemove */
    transition: opacity 0.5s ease;
}

/* ── GRID OVERLAY ── */
.grid-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 28, 28, 0.15) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 28, 28, 0.15) 1px, transparent 1px);
    background-size: 100px 100px;
    background-position: center center;
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    mask-image: radial-gradient(circle at center, black 0%, transparent 80%);
    z-index: 0;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    border-bottom: 1px solid gray;
    position: fixed;
    background-color: #000;
}

.logo {
    display: flex;
    align-items: center;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: 1px;
    font-family: var(--font-special);
}

.logo-desktop {
    height: 65px;
    width: auto;
}

.logo-mobile {
    height: 90px;
    width: auto;
    display: none;
}

.logo-mark {
    width: 24px;
    height: 24px;
    background: url('data:image/svg+xml;utf8,<svg viewBox="0 0 24 24" fill="%23fff" xmlns="http://www.w3.org/2000/svg"><path d="M12 2L2 22h4l6-12 6 12h4L12 2z"/></svg>') no-repeat center center;
    margin-right: 10px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.nav-links a {
    color: var(--text-dim);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 1px;
}

.dropdown-icon {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.nav-links a:hover,
.nav-links a.active-link {
    color: var(--accent-red);
    /* Changed hover and active to red for better visibility */
}

.nav-links a.contact-btn {
    background-color: var(--accent-red);
    border: 1px solid var(--accent-red);
    color: #fff;
    padding: 8px 20px;
    border-radius: 30px;
    transition: all 0.3s ease;
}

.nav-links a.contact-btn:hover,
.nav-links a.contact-btn.active-link {
    background-color: var(--accent-red);
    border-color: var(--accent-red);
    color: #fff;
}

.menu-toggle {
    display: none;
    cursor: pointer;
    color: white;
}

@media (max-width: 1024px) {
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 101;
    }

    .nav-links {
        display: flex !important;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        width: 80%;
        max-width: 350px;
        height: 100vh;
        background-color: var(--bg-dark);
        padding: 6rem 2rem 2rem 2rem;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
        text-align: left;
        gap: 2rem;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
        transform: translateX(-105%);
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
        z-index: 100;
    }

    .nav-links.active {
        transform: translateX(0) !important;
    }

    .nav-links a {
        justify-content: flex-start;
        font-size: 1.2rem;
    }

    .menu-toggle svg line {
        transition: transform 0.3s ease, opacity 0.3s ease;
        transform-origin: center;
    }

    .menu-toggle.active svg line:nth-child(1) {
        opacity: 0;
    }

    .menu-toggle.active svg line:nth-child(2) {
        transform: translateY(6px) rotate(45deg);
    }

    .menu-toggle.active svg line:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }
}

/* ── HERO BODY ── */
.hero-body {
    position: relative;
    z-index: 20;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 80px 24px 0 24px;
}

/* ── EYEBROW ── */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: clamp(20px, 3.5vh, 36px);
    animation: fadeSlideUp .7s ease both;
}

.eyebrow-line {
    height: 1px;
    width: clamp(24px, 4vw, 56px);
}

.eyebrow-line-left {
    background: linear-gradient(to right, transparent, #e11d24);
}

.eyebrow-line-right {
    background: linear-gradient(to left, transparent, #e11d24);
}

.eyebrow-inner {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eyebrow-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #e11d24;
    animation: pulse-dot 2s ease-in-out infinite;
}

.eyebrow-dot:last-child {
    animation-delay: .5s;
}

.eyebrow-text {
    font-size: clamp(10px, 1.2vw, 12px);
    font-weight: 700;
    letter-spacing: .3em;
    color: #bbb;
    text-transform: uppercase;
}

/* ── HEADLINE ── */
.headline {
    width: 100%;
    max-width: min(1100px, 90vw);
    animation: fadeSlideUp .7s ease .1s both;
}

.hl {
    font-size: clamp(1.6rem, 7vw, 5.6rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -.02em;
}

.hl-white {
    color: #fff;
}

.hl-red {
    color: #e11d24;
    text-shadow: 0 0 60px rgba(225, 29, 36, .45);
}

/* ── ROTATING WORD SLOT ── */
.word-slot {
    position: relative;
    overflow: hidden;
    height: clamp(2.7rem, 6.8vw, 6.3rem);
    margin: clamp(4px, .8vw, 8px) 0;
}

.word {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1.6rem, 7vw, 5.6rem);
    white-space: nowrap;
    font-weight: 900;
    text-transform: uppercase;
    line-height: .9;
    letter-spacing: -.02em;
    color: #e11d24;
    text-shadow: 0 0 80px rgba(225, 29, 36, .5);
    will-change: transform, opacity, clip-path;
}

.word.entering {
    animation: wIn 460ms cubic-bezier(0, 0, .2, 1) forwards;
}

.word.leaving {
    animation: wOut 380ms cubic-bezier(.4, 0, 1, 1) forwards;
}

.word.hidden {
    opacity: 0;
}

/* ── BOTTOM SECTION ── */
.hero-bottom {
    margin-top: clamp(28px, 4vh, 52px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(20px, 3vh, 36px);
    width: 100%;
    animation: fadeSlideUp .7s ease .2s both;
}

/* Tagline */
.tagline {
    font-size: clamp(13px, 1.4vw, 15px);
    color: #fff;
    line-height: 1.7;
    letter-spacing: .02em;
    max-width: 420px;
}

.tagline strong {
    color: #fff;
    font-weight: 700;
}

/* Stats */
.stats {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 48px);
}

.stat {
    text-align: center;
}

.stat-num {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.stat-label {
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #444;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, .08);
}

/* CTAs */
.cta-row {
    display: flex;
    align-items: center;
    gap: clamp(16px, 3vw, 28px);
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e11d24;
    color: #fff;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 13px 26px;
    border: none;
    cursor: pointer;
    transition: background .2s;
}

.btn-primary:hover {
    background: #f02028;
}

.btn-primary svg {
    transition: transform .2s;
    flex-shrink: 0;
}

.btn-primary:hover svg {
    transform: translateX(2px);
}

.cta-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, .1);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #fff;
    /* Lightened from #4a4a4a so it's visible next to the red button */
    text-decoration: none;
    padding: 13px 26px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Added a subtle border so it has the same visual weight */
    transition: all .2s;
}

.btn-ghost:hover {
    background-color: #fff;
    color: #000;
}

/* Dots */
.dots {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
}

.dot {
    display: block;
    height: 4px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    padding: 0;
    background: rgba(255, 255, 255, .1);
    width: 4px;
    transform-origin: left center;
    transition: transform .45s cubic-bezier(.4, 0, .2, 1), background .45s;
}

.dot.active {
    transform: scaleX(5.5);
    background: #e11d24;
}

/* ── SCROLL CUE ── */
.scroll-cue {
    position: relative;
    z-index: 20;
    display: flex;
    justify-content: center;
    padding-bottom: clamp(14px, 2.5vh, 28px);
}

.mouse {
    width: 22px;
    height: 34px;
    border: 2px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.8);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scrollWheel 1.5s infinite;
}

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

    100% {
        transform: translate(-50%, 12px);
        opacity: 0;
    }
}



/* Journey Section */
.journey-shell {
    --page: #090909;
    --panel: #101010;
    --line: rgba(255, 255, 255, 0.16);
    --soft-line: rgba(255, 255, 255, 0.08);
    --ink: #ffffff;
    --muted: #9c9c9c;
    --red: #ec1212;
    --font-sans: "Satoshi", "Inter", sans-serif;
    --font-display: "Clash Display", "Inter", sans-serif;
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    background: var(--page);
    color: var(--ink);
    font-family: var(--font-sans);
}

.journey-pin {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    padding: 8.9rem 5% 3.4rem;
    overflow: hidden;
}

.journey-pin::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-position: center;
    background-size: 84px 84px;
    content: "";
    mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}

.journey-map {
    position: absolute;
    top: 14%;
    right: -4%;
    z-index: 0;
    width: min(50vw, 730px);
    height: min(50vw, 730px);
    pointer-events: none;
    --map-fill: 10%;
}

.journey-map-base,
.journey-map-fill {
    position: absolute;
    inset: 0;
    background: center / contain no-repeat;
}

.journey-map-base {
    background-image: url("https://ajm.in/dev/assets/map-dark.svg");
    opacity: 0.43;
}

.journey-map-fill {
    background-image: url("https://ajm.in/dev/assets/map-red.svg");
    clip-path: inset(0 calc(100% - var(--map-fill)) 0 0);
    filter: drop-shadow(0 0 22px rgba(236, 18, 18, 0.55));
    opacity: 0.96;
    transition: clip-path 90ms linear;
}

.journey-map-scan {
    position: absolute;
    top: 18%;
    bottom: 18%;
    left: var(--map-fill);
    width: 1px;
    background: var(--red);
    box-shadow: 0 0 18px 2px rgba(236, 18, 18, 0.78);
    opacity: 0.78;
    transform: translateX(-1px);
    transition: left 90ms linear;
}

.journey-header,
.journey-workspace,
.journey-foot {
    position: relative;
    z-index: 1;
}

.journey-header {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(250px, 0.6fr);
    gap: 4rem;
    align-items: end;
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: var(--red);
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 34px;
    height: 2px;
    background: var(--red);
    content: "";
}

.journey-shell h1,
.journey-shell h2,
.journey-shell p {
    margin-top: 0;
}

.journey-header h1 {
    max-width: 760px;
    margin-bottom: 0;
    font-size: clamp(44px, 5.1vw, 86px);
    font-weight: 400;
    letter-spacing: 0.02em;
    line-height: 0.98;
}

.journey-header h1 em {
    color: var(--red);
    font-family: var(--font-display);
    font-style: normal;
    font-weight: 500;
}

.journey-intro {
    max-width: 420px;
    margin: 0 0 7px;
    padding: 16px 23px;
    border-left: 2px solid var(--red);
    color: #ffffff;
    font-size: 15px;
    line-height: 1.7;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 100%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 0 8px 8px 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.9);
}

.journey-workspace {
    display: grid;
    grid-template-columns: minmax(70px, 0.16fr) minmax(0, 1.5fr) minmax(165px, 0.3fr);
    flex: 1;
    min-height: 450px;
    margin-top: clamp(38px, 6vh, 86px);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.journey-rail {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px 18px 26px 0;
    border-right: 1px solid var(--soft-line);
}

.journey-count {
    color: #fff;
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.journey-count span {
    color: #626262;
}

.journey-line {
    position: relative;
    width: 1px;
    height: 164px;
    margin: auto;
    background: rgba(255, 255, 255, 0.24);
}

.journey-line span {
    position: absolute;
    bottom: 0;
    left: -1px;
    width: 3px;
    height: 33.333%;
    background: var(--red);
    transform-origin: bottom;
}

.journey-rail p {
    margin: 0;
    color: #737373;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    line-height: 1.5;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.story-stage {
    position: relative;
    min-height: 100%;
}

.story-card {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 550ms ease, transform 650ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-card.is-active {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.story-media {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    background: #151515;
}

.story-media::before {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, transparent 48%, var(--panel) 100%),
        linear-gradient(0deg, rgba(0, 0, 0, 0.46), transparent 42%);
    content: "";
}

.story-media::after {
    position: absolute;
    inset: 0;
    z-index: 2;
    border: 1px solid rgba(255, 255, 255, 0.12);
    content: "";
}

.story-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.76) contrast(1.06);
    transform: scale(1.07);
    transition: transform 1.5s cubic-bezier(0.2, 0.8, 0.2, 1), filter 700ms ease;
}

.story-card.is-active .story-media img {
    filter: saturate(0.96) contrast(1.04);
    transform: scale(1);
}

.media-index {
    position: absolute;
    bottom: 20px;
    left: 22px;
    z-index: 3;
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.media-index::before {
    display: inline-block;
    width: 26px;
    height: 1px;
    margin: 0 9px 4px 0;
    background: var(--red);
    content: "";
}

.story-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100%;
    padding: clamp(32px, 4vw, 70px);
    background: var(--panel);
}

.story-copy>* {
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 450ms ease, transform 550ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-card.is-active .story-copy>* {
    opacity: 1;
    transform: translateY(0);
}

.story-card.is-active .story-copy>*:nth-child(1) {
    transition-delay: 80ms;
}

.story-card.is-active .story-copy>*:nth-child(2) {
    transition-delay: 140ms;
}

.story-card.is-active .story-copy>*:nth-child(3) {
    transition-delay: 200ms;
}

.story-card.is-active .story-copy>*:nth-child(4) {
    transition-delay: 260ms;
}

.story-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 13px;
    color: #a5a5a5;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.story-label::after {
    width: 27px;
    height: 1px;
    background: var(--red);
    content: "";
}

.story-number {
    margin: 0;
    color: var(--red);
    font-size: clamp(74px, 7vw, 116px);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 0.9;
}

.story-copy h2 {
    max-width: 390px;
    margin: 17px 0 13px;
    font-family: var(--font-display);
    font-size: clamp(27px, 2.2vw, 40px);
    font-weight: 500;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

.story-copy p {
    max-width: 385px;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.7;
}

.story-signal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    margin-top: 32px;
    padding-top: 18px;
    border-top: 1px solid var(--soft-line);
}

.story-signal span {
    color: #6f6f6f;
    font-family: var(--font-display);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.story-signal strong {
    display: block;
    margin-top: 4px;
    color: #fff;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 500;
}

.story-tabs {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: clamp(22px, 3vw, 54px);
    border-left: 1px solid var(--soft-line);
}

.story-tab {
    position: relative;
    width: 100%;
    padding: 19px 0;
    border: 0;
    border-bottom: 1px solid var(--soft-line);
    background: transparent;
    color: #707070;
    cursor: pointer;
    text-align: left;
    transition: color 200ms ease;
}

.story-tab::before {
    position: absolute;
    top: 50%;
    left: -8px;
    width: 3px;
    height: 0;
    background: var(--red);
    content: "";
    transform: translateY(-50%);
    transition: height 300ms ease;
}

.story-tab:first-child {
    border-top: 1px solid var(--soft-line);
}

.story-tab small,
.story-tab strong {
    display: block;
}

.story-tab small {
    margin-bottom: 3px;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.story-tab strong {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

.story-tab.is-active,
.story-tab:hover,
.story-tab:focus-visible {
    color: #fff;
    outline: none;
}

.story-tab.is-active::before {
    height: 56%;
}

.journey-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 19px;
    color: #777;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.journey-foot p {
    margin: 0;
}

.journey-foot p:last-child {
    color: #b9b9b9;
}

@media (min-width: 901px) {
    .journey-shell {
        height: 300vh;
    }

    .journey-pin {
        position: sticky;
        top: 0;
        height: 100vh;
        height: 100svh;
    }
}

@media (max-width: 1180px) and (min-width: 901px) {
    .nav-links {
        gap: 17px;
    }

    .nav-links a {
        font-size: 12px;
    }

    .journey-workspace {
        grid-template-columns: 68px minmax(0, 1.5fr) minmax(145px, 0.3fr);
    }

    .story-copy {
        padding: 34px;
    }
}

@media (max-width: 900px) {
    .navbar {
        min-height: 68px;
        padding: 0 22px;
    }

    .logo img {
        height: 52px;
    }

    .menu-button {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 12px 22px 20px;
        border-bottom: 1px solid var(--line);
        background: #070707;
    }

    .nav-links.is-open {
        display: flex;
    }

    .nav-links a {
        padding: 12px 0;
        font-size: 14px;
    }

    .nav-links a:last-child {
        display: inline-block;
        width: max-content;
        margin-top: 8px;
        padding: 9px 17px;
    }


    .journey-map {
        top: 21%;
        right: -27%;
        width: 620px;
        height: 620px;
        opacity: 0.16;
    }

    .journey-header {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .journey-header h1 {
        font-size: clamp(42px, 10vw, 64px);
    }

    .journey-intro {
        margin-bottom: 0;
    }

    .journey-workspace {
        display: block;
        min-height: 0;
        margin-top: 38px;
        border-bottom: 0;
    }

    .journey-rail,
    .story-tabs,
    .journey-foot {
        display: none;
    }

    .story-stage {
        display: grid;
        gap: 22px;
    }

    .story-card {
        position: relative;
        display: block;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        transition: none;
    }

    .story-media {
        min-height: 240px;
        aspect-ratio: 1.5 / 1;
    }

    .story-media::before {
        background: linear-gradient(0deg, rgba(0, 0, 0, 0.58), transparent 60%);
    }

    .story-media img {
        transform: none;
    }

    .story-copy {
        min-height: 0;
        padding: 10px;
        border: 1px solid var(--soft-line);
        border-top: 0;
    }

    .story-copy>* {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .story-number {
        font-size: 74px;
    }

    .story-copy h2 {
        font-size: 31px;
    }

    .story-signal {
        margin-top: 26px;
    }
}

@media (max-width: 500px) {
    .journey-header h1 {
        font-size: 42px;
    }

    .journey-intro,
    .story-copy p {
        font-size: 14px;
    }

    .story-media {
        min-height: 215px;
    }

    .story-signal strong {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}


/* ── SERVICES SECTION ── */
.services-section {
    position: relative;
}

.services-sticky-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.services-sticky-content {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.services-heading-wrapper {
    text-align: center;
    opacity: 1;
    transform: translateY(0);
}

.services-sticky-content h2 {
    font-size: 6rem;
    font-weight: 900;
    color: #e11d24;
    text-transform: capitalize;
    line-height: 0.9;
    letter-spacing: -4px;
    opacity: 0.8;
    margin-bottom: 20px;
}

.services-heading-wrapper p {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #aaa;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.services-sticky-content h2 span {
    display: block;
}

.services-cards-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 150px;
    max-width: 1440px;
    margin: 0 auto;
    padding: 100vh 5% 150px 5%;
    padding: 100svh 5% 150px 5%;
}

.service-card {
    width: 100%;
    max-width: 800px;
    background: linear-gradient(145deg, #1e1e1e, #111);
    padding: 40px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.service-card:nth-child(odd) {
    align-self: flex-start;
}

.service-card:nth-child(even) {
    align-self: flex-end;
}

.service-card:hover,
.service-card.active {
    background: linear-gradient(145deg, #252525, #151515);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(225, 29, 36, 0.1);
    border: 1px solid rgba(225, 29, 36, 0.3);
    z-index: 3;
}

.service-icon {
    width: 60px;
    height: 60px;
    background: #333;
    margin-bottom: 25px;
    transition: background 0.4s ease, color 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e11d24;
    font-size: 28px;
    border-radius: 8px;
}

.service-card:hover .service-icon,
.service-card.active .service-icon {
    background: #dcdcdc;
    color: #a81218;
}

.service-card h3 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 15px;
    transition: color 0.4s ease;
}

.service-card:hover h3,
.service-card.active h3 {
    color: #d31e25;
}

.service-card p {
    color: #444;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 30px;
    transition: color 0.4s ease;
}

.sub-services-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 10px;
}

.sub-services-list li {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 30px;
    padding: 9px;
    font-size: 0.85rem;
    color: #bbb;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.sub-services-list li:hover {
    background: rgba(225, 29, 36, 0.15);
    border-color: rgba(225, 29, 36, 0.5);
    color: #fff;
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 20px rgba(225, 29, 36, 0.25);
}

.sub-services-list li i {
    color: rgba(225, 29, 36, 0.8);
    font-size: 1rem;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.sub-services-list li:hover i {
    color: #ff3b3f;
}

.service-card:hover p,
.service-card.active p {
    color: #888;
}

.learn-more {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 800;
    color: #111;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.2;
    transition: opacity 0.4s ease;
}

.service-card:hover .learn-more,
.service-card.active .learn-more {
    opacity: 1;
}

@media (max-width: 900px) {
    .services-cards-container {
        gap: 60px;
    }

    .service-card {
        width: 100%;
        align-self: center !important;
    }

    .services-sticky-content h2 {
        font-size: 6rem;
    }
}

/* Brands Marquee */
.brands {
    padding: 4rem 0;
    text-align: center;
    overflow: hidden;
}

.brands-title {
    color: var(--text-dim);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
}

.brands-marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
}

.marquee-content {
    display: inline-block;
    animation: marquee 50s linear infinite;
    /* Slowed down */
}

.marquee-content span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dim);
    margin: 0 3rem;
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 1.5rem;
    /* Reduced margin to lessen the gap */
    position: relative;
    height: 110px;
    width: 240px;
    /* Reduced width to lessen the gap */
}

.brand-logo img {
    max-height: 100%;
    max-width: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Hover logic for white/color logos */
.brand-logo .logo-color {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

/* Fix for specific logos with excessive padding/small intrinsic size */
.brand-logo img[alt="Dispatch"],
.brand-logo img[alt="Supper"],
.brand-logo img[alt="Ullu"],
.brand-logo img[alt="Oksir"] {
    transform: scale(1.6);
}

.brand-logo img.logo-color[alt="Dispatch"],
.brand-logo img.logo-color[alt="Supper"],
.brand-logo img.logo-color[alt="Ullu"],
.brand-logo img.logo-color[alt="Oksir"] {
    transform: translate(-50%, -50%) scale(1.6);
}

.brand-logo:hover .logo-white {
    opacity: 0;
}

.brand-logo:hover .logo-color {
    opacity: 1;
}

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

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

/* Industries Reveal Wrapper */
.industries-pin-wrapper {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    overflow: hidden;
    will-change: transform;
}

.industries-under {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    height: auto;
    z-index: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
}

/* Industries */
.industries {
    display: flex;
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
    gap: 4rem;
}

.ind-list {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ind-item {
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 900;
    color: var(--text-dim);
    opacity: 0.3;
    cursor: pointer;
    transition: all 0.3s ease;
    line-height: 1.1;
    margin-bottom: 0.5rem;
}

.ind-item:hover,
.ind-item.active {
    color: var(--accent-red);
    opacity: 1;
}

.ind-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ind-details h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.ind-details p {
    color: var(--text-dim);
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 2rem;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    align-self: flex-start;
    transition: all 0.3s;
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

/* Industries Marquee Section */
.industries-section {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100svh;
    z-index: 2;
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #000;
}

/* Background image of the laptop */
.industries-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('https://images.unsplash.com/photo-1555066931-4365d14bab8c');
    /* Replace with your actual image path */
    background-size: cover;
    background-position: center;
    opacity: 0.3;
    /* Darkened so the red tape stands out */
    z-index: 0;
}

/* The Red Tape Banners */
.tape {
    position: absolute;
    width: 150%;
    /* Made wider than screen to cover the diagonal stretch */
    background-color: #e6192b;
    padding: 15px 0;
    z-index: 2;
    display: flex;
    white-space: nowrap;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* Diagonal Rotations */
.tape-1 {
    transform: rotate(-10deg);
}

.tape-2 {
    transform: rotate(5deg);
    background-color: #c91624;
    /* Slightly darker red for depth */
}

/* Marquee Text Styling */
.tape .marquee-content {
    display: flex;
    width: max-content;
    animation: tape-scroll 40s linear infinite;
    will-change: transform;
}

.tape .marquee-content.reverse {
    animation: tape-scroll-reverse 40s linear infinite;
}

.tape .marquee-content span {
    font-family: 'Nohemi';
    font-size: 4rem;
    font-weight: 900;
    color: white;
    letter-spacing: 2px;
}

@keyframes tape-scroll {
    0% {
        transform: translate3d(0, 0, 0);
    }

    100% {
        transform: translate3d(-50%, 0, 0);
    }
}

@keyframes tape-scroll-reverse {
    0% {
        transform: translate3d(-50%, 0, 0);
    }

    100% {
        transform: translate3d(0, 0, 0);
    }
}

/* AI Capabilities */
.ai-capabilities {
    padding: 5rem 5%;
    max-width: 1440px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.section-heading h2 {
    font-size: 6rem;
    font-weight: 900;
    margin-bottom: 0.5rem;
    font-family: var(--font-main);
}

.section-heading p {
    color: var(--text-dim);
    margin-bottom: 3rem;
}

.ai-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

/* Ensure Slick Slider container is block, not flex */
.ai-cards.slick-initialized {
    display: block;
}

/* Custom Slick Arrows */
.ai-slick-slider .fancy-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.ai-slick-slider .fancy-arrow:hover {
    background: var(--accent-red);
    border-color: var(--accent-red);
    box-shadow: 0 4px 15px rgba(225, 29, 36, 0.4);
}

/* Remove default slick arrow styles that might interfere */
.ai-slick-slider .fancy-arrow:before {
    display: none;
}

.ai-slick-slider .slick-prev.fancy-arrow {
    left: -20px;
}

.ai-slick-slider .slick-next.fancy-arrow {
    right: -20px;
}

/* Spacing for Slick Slider dots */
.slick-dots {
    bottom: -50px;
}

.slick-dots li button:before {
    color: var(--text-dim) !important;
}

.slick-dots li.slick-active button:before {
    color: #fff !important;
}

.ai-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0 15px;
}

.ai-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
}

.ai-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.ai-card-content {
    padding: 2rem;
}

.ai-card-content h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.ai-card-content p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Services Placeholder */
.services {
    padding: 5rem 5%;
    max-width: 1440px;
    margin: 0 auto;
}

.services-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.white-card {
    background-color: white;
    color: black;
    padding: 3rem;
    border-radius: 8px;
    flex: 1;
}

.white-card .icon-box {
    width: 40px;
    height: 40px;
    background-color: #eee;
    margin-bottom: 1rem;
}

.white-card h3 {
    color: var(--accent-red);
    margin-bottom: 0.5rem;
}

.services-title {
    flex: 1;
}

.services-title h2 {
    font-size: 6rem;
    font-weight: 900;
}




/* Global Partners */
.partners {
    padding: 15rem 5%;
    padding-bottom: 0px;
    /* max-width: 1440px; */
    margin: 0 auto;

}

.partners-header-wrapper {
    position: sticky;
    top: 9vh;
    z-index: 5;
    width: 50%;
    padding-right: 2rem;
    background-color: var(--bg-dark);
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: -2rem;
    /* Offset padding */
}

.partners h2 {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 0;
    letter-spacing: 2px;
}

.partners-subtitle {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 1px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 0;
    margin-top: 1rem;
}

.partners-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
        "list image";
    align-items: start;
    position: relative;
    gap: 2rem;
}

.partners-list {
    grid-area: list;
    width: 100%;
    margin-top: 2rem;
    /* Give a little breathing room below the sticky header */
    padding-bottom: 40vh;
    /* Allow list to scroll fully past the center */
}

.partners-list ul {
    list-style: none;
}

.partners-list li {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.2);
    /* Dimmed by default to hide previous/next names */
    font-size: 2.2rem;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    opacity: 0.3;
    /* Fade out inactive items */
}

.partners-list li strong {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 1px;
    transition: color 0.3s ease;
    margin-right: 5px;
}

.partners-list li.active,
.partners-list li:hover {
    color: var(--accent-red);
    opacity: 1;
    /* Fully visible only when active/hovered */
}

.partners-list li.active strong,
.partners-list li:hover strong {
    color: var(--accent-red);
}

.partner-image {
    grid-area: image;
    position: sticky;
    top: 60vh;
    transform: translateY(-50%);
    width: 100%;
    height: auto;
    max-width: 400px;
    margin: 0 auto;
    z-index: 5;
    pointer-events: none;
    display: flex;
    justify-content: center;
    align-items: center;
}

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

/* Testimonials Modern Design */
.testimonials {
    padding: 6rem 5%;
    background-color: var(--bg-dark);
    position: relative;
    color: #fff;
}

.test-header {
    /* max-width: 1440px; */
    margin: 0 auto 3rem;
}

.test-subtitle {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-red);
    display: block;
    margin-bottom: 1rem;
}

.test-title {
    font-size: 6rem;
    /* matching the user screenshot which had 6rem font-size for this title originally */
    font-weight: 900;
    line-height: 1;
    color: #fff;
    letter-spacing: -1px;
}

/* Red glows */
.testimonials::before {
    content: '';
    position: absolute;
    left: -10%;
    bottom: 0%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(230, 25, 43, 0.3) 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}

.glow-red {
    position: relative;
    color: var(--accent-red);
}

.glow-red::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 250px;
    height: 150px;
    background: radial-gradient(ellipse, rgba(230, 25, 43, 0.4) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.testimonial-cards {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    padding-bottom: 1rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -ms-overflow-style: none;
    scrollbar-width: none;
    /* max-width: 1440px; */
    margin: 0 auto;
}

.testimonial-cards::-webkit-scrollbar {
    display: none;
}

.test-card {
    min-width: 350px;
    width: 350px;
    height: auto;
    background-color: #0f0f11;
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    scroll-snap-align: start;
    position: relative;
    overflow: hidden;
}

.test-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    margin-bottom: 1rem;
}

.test-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.test-quote {
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
    color: #eaeaea;
    flex-grow: 1;
    position: relative;
    z-index: 2;
}

.test-author-info {
    margin-top: 1.5rem;
    position: relative;
    z-index: 2;
}

.test-signature {
    font-family: var(--font-main);
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.2rem;
}

.test-role {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

/* Hover Background Images & Overlay */
.test-hover-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.test-card:hover .test-hover-bg,
.test-card:hover .video-overlay {
    opacity: 1;
}

/* Video Card Specifics (Always show background) */
.test-card.video-card {
    border: none;
}

.test-card.video-card .test-hover-bg.active-bg,
.test-card.video-card .video-overlay {
    opacity: 1;
}

.test-avatar {
    position: relative;
    z-index: 2;
}

.test-card.video-card .test-avatar {
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.test-card.video-card .play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 2;
    transition: background 0.3s;
}

.test-card.video-card .play-button:hover {
    background: rgba(255, 255, 255, 0.4);
}

/* Testimonials Controls (Arrows + Pagination) */
.testimonials-controls {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    margin: 1rem auto 0;
    max-width: 1440px;
}

.test-nav-btn {
    background: transparent;
    border: none;
    color: #fff;
    padding: 10px;
    cursor: pointer;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s;
    opacity: 0.7;
}

.test-nav-btn:hover {
    opacity: 1;
}

/* Pagination Dash Indicator */
.testimonials-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.testimonials-pagination span {
    display: block;
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all 0.3s;
}

.testimonials-pagination span.active {
    background-color: #fff;
    width: 25px;
    border-radius: 4px;
}

/* CTA & Footer */
.cta-footer {
    padding: 0;
    text-align: center;
    position: relative;
    z-index: 1;
}

.cta {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 0 5%;
}

.cta-heading {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 2rem;
    position: relative;
    z-index: -1;
}

.cta-text-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-text {
    position: relative;
    z-index: 2;
    /* Text sits above the background image */
}

.cta-inline-slot {
    display: inline-block;
    vertical-align: middle;
    position: relative;
    z-index: 2;
}

.cta-images {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 0 15px;
}

.square {
    width: 60px;
    height: 60px;
    border: 2px solid var(--text-dim);
}

.img-crop {
    width: 120px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

.btn-rounded {
    padding: 1rem 2.5rem;
    border-radius: 30px;
    background-color: transparent;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
    margin-bottom: 6rem;
}

.btn-rounded:hover {
    background-color: var(--text-main);
    color: var(--bg-dark);
}

.site-footer {
    background-color: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.footer-top-logo {
    padding: 2rem 5%;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.big-logo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: rgba(255, 255, 255, 0.15);
    /* Very muted grey */
}

.ajm-abstract-logo {
    width: 120px;
    height: 120px;
}

.logo-text-stack h2 {
    font-size: 6rem;
    font-weight: 900;
    line-height: 1;
    font-family: var(--font-special);
    letter-spacing: 2px;
}

.logo-text-stack p {
    font-size: 2rem;
    letter-spacing: 5px;
    margin-top: 0.5rem;
}

.footer-middle {
    padding: 5rem 5%;
}

.footer-links-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 2rem;
    margin: 0 auto;
}

.footer-brand-logo {
    height: 100px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    color: #a0a0a0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.contact-heading {
    color: #fff;
    font-size: 18px;
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

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

.contact-items a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0a0a0;
    font-size: 14px;
    transition: color 0.3s;
    text-decoration: none;
}

.contact-items a:hover {
    color: #fff;
}

@media (max-width: 1024px) {
    .footer-links-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .footer-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .logo-text-stack h2 {
        font-size: 6rem;
    }

    .logo-text-stack p {
        font-size: 1.2rem;
    }

    .ajm-abstract-logo {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .footer-links-grid {
        grid-template-columns: 1fr;
    }
}

.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 1.5rem;
    font-family: var(--font-heading);
}

.footer-col a {
    display: block;
    color: #a0a0a0;
    margin-bottom: 1rem;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-social-squares {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 5rem;
}

.footer-col a.social-square {
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: background-color 0.3s, color 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a0a0a0;
}

.footer-col a.social-square:hover {
    background-color: var(--accent-red);
    color: #fff;
}

.footer-bottom-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 5%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #a0a0a0;
    font-size: 20px;
    letter-spacing: 0.5px;
    margin: 0 auto;
    width: 100%;
}

@media (max-width: 768px) {
    .footer-bottom-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 768px) {

    .exp-content,
    .industries,
    .services-content {
        flex-direction: column;
    }

    .partners-content {
        grid-template-columns: 1fr;
        grid-template-areas:
            "subtitle"
            "image"
            "list";
        gap: 1rem;
    }

    .partner-image {
        position: relative;
        top: 0;
        transform: none;
        height: 250px;
        margin-bottom: 2rem;
    }

    .partners-list {
        padding-bottom: 0;
    }

    .stats-overlay {
        right: 0;
        bottom: -20px;
    }
}

/* ── BRANDS SECTION ── */
.brands {
    padding: 80px 5%;
    text-align: center;
    background-color: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.brands-header {
    margin-bottom: 5rem;
}

.brands-header h2 {
    font-size: 6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.brands-header p {
    font-size: 1.2rem;
    color: var(--text-dim);
}

.brands-marquee {
    width: 100%;
    overflow: hidden;
    display: flex;
    position: relative;
    padding: 20px 0;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 100px;
    padding-right: 100px;
    animation: scroll 40s linear infinite;
    /* Slowed down from 20s */
    flex-shrink: 0;
}

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

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

.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
    transition: opacity 0.3s ease;
    cursor: pointer;
    position: relative;
}

.brand-logo:hover {
    opacity: 1;
}

.brand-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

.brand-logo .logo-color {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.brand-logo:hover .logo-white {
    opacity: 0;
}

.brand-logo:hover .logo-color {
    opacity: 1;
}

.brand-mottomobile {
    font-family: 'Inter', sans-serif;
    font-size: 42px;
    font-weight: 800;
    color: #888;
    background-color: rgba(255, 255, 255, 0.05);
    padding: 10px 20px;
    border-radius: 4px;
    letter-spacing: -1px;
}

.brand-mottomobile strong {
    color: #fff;
}

.brand-adapt {
    font-family: 'Inter', sans-serif;
    font-size: 48px;
    font-weight: 500;
    color: #888;
    letter-spacing: -2px;
}

.brand-automosphere {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #888;
    line-height: 1.1;
    position: relative;
    padding-top: 40px;
}

.brand-automosphere::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 35px;
    background-image: radial-gradient(circle at center bottom, transparent 30%, #888 35%, #888 40%, transparent 45%),
        linear-gradient(to right, transparent 45%, #888 45%, #888 55%, transparent 55%);
    background-size: 60px 30px, 100% 100%;
    background-position: center bottom, center top;
    background-repeat: no-repeat;
    opacity: 0.7;
}

.brand-automosphere span {
    display: block;
}

/* ── PORTFOLIO SECTION ── */
.portfolio {}

.portfolio-marquee-wrapper {
    min-height: 20vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Center horizontally */
    width: 100%;
    overflow: hidden;
    z-index: 0;
}

.portfolio-marquee-content {
    display: flex;
    white-space: nowrap;
    width: max-content;
}

.portfolio-marquee-content h2 {
    flex-shrink: 0;
    margin: 0;
}

.portfolio h2 {
    /* * Our Break through * Our Portfolio * */

    font-family: 'Nohemi';
    font-style: normal;
    font-weight: 700;
    font-size: 6rem;
    line-height: 287px;
    /* or 144% */
    letter-spacing: 0.1em;
    text-transform: capitalize;

    color: #fff;
    padding-right: 50px;
}

.portfolio-back {
    position: relative;
    background-color: #fff;
    width: 100%;
    padding: 100px 0;
    z-index: 1;
}

/* Horizontal Scroll Layout for Desktop */
@media (min-width: 768px) {
    .portfolio-horizontal-scroll {
        justify-content: center;
    }

    .portfolio-horizontal-scroll>div {
        max-width: 500px;
    }
}

.portfolio-back::before,
.portfolio-back::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 10vw;
    background-image: url('assets/Union.svg');
    background-repeat: no-repeat;
    background-size: 100% auto;
    z-index: -1;
    pointer-events: none;
}

.portfolio-back::before {
    top: -8vw;
    background-position: top;
}

.portfolio-back::after {
    bottom: -8vw;
    background-position: bottom;
}


.portfolio-item {
    position: relative;
    cursor: none;
}

.portfolio-img-wrapper {
    position: relative;
    overflow: hidden;
    /* aspect-ratio: 4 / 3; */
    border-radius: 12px;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    display: block;
}

.portfolio-img-wrapper:hover img {
    transform: scale(1.08);
}

.portfolio-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: rgba(0, 0, 0, 0.15);
}

.portfolio-img-wrapper:hover .portfolio-overlay {
    opacity: 1;
}

.circle-text {
    width: 110px;
    height: 110px;
    background-color: var(--accent-red, #e6192b);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    line-height: 1.3;
    transform: translateY(20px) scale(0.8);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.portfolio-item:hover .circle-text {
    transform: translateY(0) scale(1);
}

.portfolio-info {
    margin-top: 20px;
    padding-right: 15px;
}

.portfolio-info h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.portfolio-info p {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
}

/* Footer Huge Text & Gradient Line */
.footer-huge-text {
    font-family: 'Nohemi', sans-serif;
    font-size: 11vw;
    font-weight: 900;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.2);
    stroke-linejoin: round;
    paint-order: stroke fill;

    background-image: radial-gradient(circle 500px at var(--mouse-x, -1000px) var(--mouse-y, -1000px), var(--accent-red) 0%, transparent 80%);
    -webkit-background-clip: text;
    background-clip: text;
    background-repeat: no-repeat;

    text-align: center;
    white-space: nowrap;
    user-select: none;
    margin-top: 2rem;
    padding-bottom: 0.5rem;
    line-height: 1.1;
}

.footer-gradient-line {
    height: 8px;
    width: 100%;
    background: linear-gradient(to right, #0ba360, #f2d024, #ff7b00, #e6192b);
}



/* --- INDUSTRIES SECTION CSS --- */
/* ─────────────────────────────────────────
     SECTION
  ───────────────────────────────────────── */
#industries {
    background: #060606;
    overflow: hidden;
    /* opacity: 0; */
    /* transform: translateY(20px); */
}

#industries.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─────────────────────────────────────────
     HEADER
  ───────────────────────────────────────── */
.ind-header {
    padding: clamp(40px, 6vh, 72px) clamp(40px, 6vw, 96px) clamp(22px, 3vh, 36px);
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, .05);
}

.ind-label-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.ind-label-bar {
    width: 24px;
    height: 1.5px;
    background: #e11d24;
}

.ind-label-text {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .32em;
    color: #e11d24;
    text-transform: uppercase;
}

.ind-heading {
    font-family: 'Nohemi';
    font-size: 6rem;
    font-weight: 900;
    line-height: 1.08;
    color: #fff;
}

.ind-heading span {
    color: #e11d24;
}

/* Progress dots */
.ind-progress {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.ind-dots {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: flex-end;
    max-width: 200px;
}

.ind-dot {
    height: 2.5px;
    background: rgba(255, 255, 255, .14);
    border-radius: 2px;
    cursor: pointer;
    transition: width .4s, background .3s;
    width: 5px;
}

.ind-dot.active {
    width: 20px;
    background: #e11d24;
}

.ind-counter {
    font-size: 10px;
    color: rgba(255, 255, 255, .28);
    letter-spacing: .18em;
    font-family: monospace;
}

/* ─────────────────────────────────────────
     ACCORDION
  ───────────────────────────────────────── */
.ind-accordion {
    display: flex;
    height: clamp(500px, 62vh, 720px);

    transition: opacity .6s .3s;
}

#industries.visible .ind-accordion {
    opacity: 1;
}

.ind-strip {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    flex: 2.5;
    /* equal width when all collapsed */
    z-index: 1;
    transition: flex .8s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .8s cubic-bezier(0.4, 0, 0.2, 1), opacity .8s, filter .8s;
}

.ind-strip.hov {
    flex: 3.5;
    z-index: 10;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.6);
}

.ind-strip.active {
    flex: 40;
    z-index: 5;
    box-shadow: none;
    cursor: default;
}

/* Dim other strips when one is active */
.ind-accordion.has-active .ind-strip:not(.active) {
    opacity: 0.3;
    filter: grayscale(80%);
}

.ind-strip .bg-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform .6s cubic-bezier(.77, 0, .18, 1), filter .3s;
    transform: scale(1.09);
    filter: brightness(1);
}

.ind-strip.active .bg-img {
    transform: scale(1.0);
}

.ind-strip.hov .bg-img {
    transform: scale(1.04);
    filter: brightness(1.3);
}

.ind-strip .bg-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 6, 6, .50);
    transition: background .3s;
}

.ind-strip.active .bg-overlay {
    background: linear-gradient(to top,
            rgba(6, 6, 6, .98) 0%,
            rgba(6, 6, 6, .65) 55%,
            rgba(6, 6, 6, .2) 100%);
}

.ind-strip.hov .bg-overlay {
    background: rgba(6, 6, 6, .58);
}

/* red tint on hover */
.ind-strip .hov-tint {
    position: absolute;
    inset: 0;
    background: rgba(225, 29, 36, .10);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.ind-strip.hov .hov-tint {
    opacity: 1;
}

/* left accent bar */
.ind-strip .accent-bar {
    position: absolute;
    left: 0;
    top: 10%;
    bottom: 10%;
    width: 3px;
    background: #e11d24;
    box-shadow: 0 0 18px rgba(225, 29, 36, .8);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}

.ind-strip.hov .accent-bar {
    opacity: 1;
    top: 12%;
    bottom: 12%;
}

.ind-strip.active .accent-bar {
    opacity: 1;
    top: 10%;
    bottom: 10%;
    box-shadow: 0 0 22px rgba(225, 29, 36, .9);
}

/* ── Collapsed label ── */
.strip-label {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 0;
    pointer-events: none;
    transition: opacity .2s;
}

.ind-strip.active .strip-label {
    display: none;
}

.strip-num {
    position: absolute;
    top: 32px;
    font-size: 20px;
    font-weight: 900;
    font-family: monospace;
    letter-spacing: .12em;
    color: #fff;
    opacity: 0;
    transition: opacity .3s, font-size .3s, color .3s, transform .3s;
    line-height: 1;
}

.ind-strip.hov .strip-num {
    font-size: 24px;
    opacity: 1;
    color: #e11d24;
    transform: translateY(-4px);
}

.strip-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, .14);
    transition: background .25s, width .25s;
    flex-shrink: 0;
}

.ind-strip.hov .strip-divider {
    width: 2px;
    background: #e11d24;
}

.strip-name {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #fff;
    transition: font-size .25s, color .25s;
    line-height: 1;
    text-align: center;
}

.ind-strip.hov .strip-name {
    font-size: 13px;
    color: #fff;
}

/* ── Expanded content ── */
.strip-content {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(100vw, 850px);
    /* Static width relative to viewport to prevent text reflow jerk */
    display: none;
    flex-direction: column;
    justify-content: flex-end;
    padding: clamp(28px, 3vw, 56px) clamp(32px, 3.5vw, 60px);
    animation: exp-in .6s .1s cubic-bezier(.4, 0, .2, 1) both;
}

.ind-strip.active .strip-content {
    display: flex;
}

@keyframes exp-in {
    from {
        opacity: 0;
        transform: translateY(28px);
    }

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

.content-tag-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.content-tag-bar {
    width: 20px;
    height: 2px;
    background: #e11d24;
}

.content-tag {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .28em;
    color: #e11d24;
    text-transform: uppercase;
}

.content-title {
    font-size: clamp(2.2rem, 4.2vw, 4.6rem);
    font-weight: 900;
    letter-spacing: -.04em;
    line-height: 1.0;
    color: #fff;
    margin: 0 0 18px;
    text-shadow: 0 4px 40px rgba(0, 0, 0, .6);
}

.content-desc {
    font-size: clamp(14px, 1.15vw, 17px);
    color: rgba(255, 255, 255, .6);
    line-height: 1.78;
    max-width: 520px;
    margin: 0 0 clamp(18px, 2.5vh, 32px);
}

/* Stats bar */
.content-stats {
    display: flex;
    background: rgba(0, 0, 0, .55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 4px;
    max-width: 520px;
    margin-bottom: clamp(18px, 2.5vh, 32px);
    overflow: hidden;
}

.stat-item {
    flex: 1;
    padding: 20px 16px;
    text-align: center;
    border-left: 1px solid rgba(255, 255, 255, .1);
}

.stat-item:first-child {
    border-left: none;
}

.stat-value {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 900;
    color: #e11d24;
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .14em;
    color: rgba(255, 255, 255, .42);
    text-transform: uppercase;
}

/* CTA row */
.content-cta-row {
    display: flex;
    align-items: center;
    gap: 24px;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #e11d24;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 14px 30px;
    border: none;
    cursor: pointer;
    transition: background .2s, gap .22s;
}

.cta-btn:hover {
    background: #c0161d;
    gap: 16px;
}

.cta-btn svg {
    width: 13px;
    height: 13px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2.5;
}

.cta-link {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .32);
    text-transform: uppercase;
    cursor: pointer;
    transition: color .2s;
    background: none;
    border: none;
    text-decoration: none;
}

.cta-link:hover {
    color: #fff;
}

/* ─────────────────────────────────────────
     DIAL BELT
  ───────────────────────────────────────── */
.dial-wrap {
    position: relative;
    transition: opacity .6s .55s;
}

#industries.visible .dial-wrap {
    opacity: 1;
}

.dial-wrap::before,
.dial-wrap::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    z-index: 2;
    pointer-events: none;
}

.dial-wrap::before {
    left: 0;
    background: linear-gradient(to right, #080808, transparent);
}

.dial-wrap::after {
    right: 0;
    background: linear-gradient(to left, #080808, transparent);
}

.dial-belt {
    display: flex;
    overflow-x: scroll;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    border-top: 1px solid rgba(255, 255, 255, .06);
    background: #080808;
}

.dial-belt::-webkit-scrollbar {
    display: none;
}

.dial-belt.grabbing {
    cursor: grabbing;
}

.dial-item {
    flex-shrink: 0;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    padding: 22px 20px 16px;
    border-right: 1px solid rgba(255, 255, 255, .05);
    cursor: pointer;
    position: relative;
    transition: background .2s, transform .22s, padding-bottom .22s;
}

.dial-item:hover {
    background: rgba(225, 29, 36, .07);
    transform: translateY(-10px);
    padding-bottom: 26px;
}

.dial-item.active {
    background: rgba(225, 29, 36, .1);
    border-top: 2px solid #e11d24;
}

.dial-item:hover::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #e11d24;
}

.dial-num {
    font-size: 9px;
    font-weight: 800;
    font-family: monospace;
    letter-spacing: .18em;
    color: rgba(255, 255, 255, .22);
    transition: color .2s;
}

.dial-item:hover .dial-num,
.dial-item.active .dial-num {
    color: #e11d24;
}

.dial-name {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .3);
    white-space: nowrap;
    transition: color .2s, font-size .2s;
    text-align: center;
}

.dial-item:hover .dial-name,
.dial-item.active .dial-name {
    color: #e11d24;
}

/* Mobile Partner List Desktop Overrides */
.mob-partner-img {
    display: none;
}

.mob-partner-info {
    display: inline-block;
}

.mob-partner-info span {
    opacity: 0.5;
    font-size: 0.6em;
    font-weight: normal;
}

/* Contact Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100svh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.modal-content {
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
    width: 90%;
    max-width: 500px;
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1;
}

.modal-close:hover {
    color: #fff;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.contact-form h3 {
    font-size: 2rem;
    margin-bottom: 25px;
    color: #fff;
    font-weight: 800;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px 20px;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #e11d24;
    background: rgba(0, 0, 0, 0.4);
}

.w-100 {
    width: 100%;
}

/* Portfolio Equal Height Fix */
.portfolio-back .row {
    display: flex;
    flex-wrap: wrap;
}

.portfolio-item {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portfolio-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.portfolio-info p {
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0;
}

/* --- AI Capabilities Overlapping Stack --- */
.ai-capabilities {
    padding: 8rem 5%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--bg-dark);
    position: relative;
}

.ai-header {
    text-align: center;
    margin-bottom: 5rem;
    z-index: 2;
}

.ai-header h2 {
    font-size: 6rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 1rem;
}

.ai-header p {
    font-size: 1.2rem;
    color: var(--text-dim);
}

.capabilities-stack {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 40px 0;
}

.cap-card {
    background-color: #121212;
    /* Slightly lighter than pure black to stand out */
    border: 1px solid rgba(255, 255, 255, 0.12);
    /* More visible border */
    border-radius: 20px;
    /* More rounded like the image */
    width: 260px;
    height: 320px;
    /* Square-like shape */
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    margin-left: -140px;
    /* Heavy overlap initially */
    flex-shrink: 0;
    /* Prevents cards from squishing */
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    z-index: 1;
    /* Keep stacking context */
    box-shadow: -20px 0 40px rgba(0, 0, 0, 1);
    /* Stronger shadow to separate cards */
    background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    cursor: pointer;
    /* overflow: hidden removed to allow hit-area expansion */
}

/* Invisible hit-area expansion to prevent translateY hover stutter when approaching from bottom */
.cap-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: transparent;
}

.cap-card:hover::after {
    bottom: -40px;
    top: -40px;
    left: -40px;
    right: -40px;
}

/* Subtle red accent line at the top */
.cap-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-red), transparent);
    opacity: 0;
    transition: opacity 0.4s;
    border-radius: 24px 24px 0 0;
    /* Prevents poking out of corners without overflow:hidden */
}

/* Smooth Fanning Arc (Feels like a real deck of cards) */
.cap-card:nth-child(1) {
    transform: rotate(-14deg) translateY(40px);
}

.cap-card:nth-child(2) {
    transform: rotate(-10deg) translateY(20px);
}

.cap-card:nth-child(3) {
    transform: rotate(-6deg) translateY(5px);
}

.cap-card:nth-child(4) {
    transform: rotate(-2deg) translateY(0px);
}

.cap-card:nth-child(5) {
    transform: rotate(2deg) translateY(0px);
}

.cap-card:nth-child(6) {
    transform: rotate(6deg) translateY(5px);
}

.cap-card:nth-child(7) {
    transform: rotate(10deg) translateY(20px);
}

.cap-card:nth-child(8) {
    transform: rotate(14deg) translateY(40px);
}

.cap-card:first-child {
    margin-left: 0;
}

.cap-icon {
    color: #666;
    margin-bottom: 1.5rem;
    transition: color 0.4s;
    transform: scale(1.2);
}

.cap-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ddd;
    transition: color 0.4s;
    line-height: 1.3;
}

.cap-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    line-height: 1.4;
    pointer-events: none;
    /* prevent hover flicker */
}

/* Removed preemptive hover scatter to prevent jumping */

/* Specific hovered card comes to front and repels adjacent cards slightly (Magnetic Feel) */
/* FIX: Hovered card stays in place to prevent cursor from falling off (stutter), while NEXT cards are pushed right */
.cap-card:hover {
    z-index: 10;
    margin-left: -140px !important;
    margin-right: 0 !important;
    transform: rotate(0deg) translateY(-15px) scale(1.03) !important;
    /* Premium "picked up" feel */
    background-color: #121212;
    background-image: radial-gradient(circle at top right, rgba(225, 29, 36, 0.15) 0%, transparent 60%);
    border-color: rgba(225, 29, 36, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 1), 0 0 20px rgba(225, 29, 36, 0.1);
    /* Subtle glow */
}

/* Push subsequent cards away to reveal the hovered card */
.cap-card:hover~.cap-card {
    margin-left: -40px !important;
    /* Pushed apart to reveal the hovered card */
}

.cap-card:first-child:hover {
    margin-left: 0 !important;
}

.cap-card:first-child:hover~.cap-card {
    margin-left: -40px !important;
}

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

.cap-card:hover .cap-icon {
    color: var(--accent-red);
}

.cap-card:hover h3 {
    color: #fff;
}

.cap-card:hover p {
    opacity: 1;
    transform: translateY(0);
}

/* Keep the second card open by default when the stack is not being hovered */
@media (min-width: 1025px) {
    .capabilities-stack:not(:has(.cap-card:hover)) .cap-card:nth-child(2) {
        z-index: 10;
        margin-left: -140px !important;
        margin-right: 0 !important;
        transform: rotate(0deg) translateY(-15px) scale(1.03) !important;
        background-color: #121212;
        background-image: radial-gradient(circle at top right, rgba(225, 29, 36, 0.15) 0%, transparent 60%);
        border-color: rgba(225, 29, 36, 0.3);
        box-shadow: 0 20px 40px rgba(0, 0, 0, 1), 0 0 20px rgba(225, 29, 36, 0.1);
    }

    .capabilities-stack:not(:has(.cap-card:hover)) .cap-card:nth-child(2)~.cap-card {
        margin-left: -40px !important;
    }

    @media (max-width: 1600px) {
        .capabilities-stack:not(:has(.cap-card:hover)) .cap-card:nth-child(2) {
            margin-left: -140px !important;
        }

        .capabilities-stack:not(:has(.cap-card:hover)) .cap-card:nth-child(2)~.cap-card {
            margin-left: -80px !important;
        }
    }

    .capabilities-stack:not(:has(.cap-card:hover)) .cap-card:nth-child(2)::before {
        opacity: 1;
    }

    .capabilities-stack:not(:has(.cap-card:hover)) .cap-card:nth-child(2) .cap-icon {
        color: var(--accent-red);
    }

    .capabilities-stack:not(:has(.cap-card:hover)) .cap-card:nth-child(2) h3 {
        color: #fff;
    }

    .capabilities-stack:not(:has(.cap-card:hover)) .cap-card:nth-child(2) p {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Laptop View (1025px to 1600px) - Scale down cards to fit 1536px screens without overflow */
@media (max-width: 1600px) and (min-width: 1025px) {
    .cap-card {
        width: 240px;
        height: 300px;
        margin-left: -120px;
        padding: 2rem 1.25rem;
    }

    /* Removed hover scatter for this viewport too */

    .cap-card:hover {
        margin-left: -120px !important;
        margin-right: 0 !important;
    }

    .cap-card:hover~.cap-card {
        margin-left: -30px !important;
    }

    .cap-card h3 {
        font-size: 1.1rem;
    }

    .cap-icon {
        transform: scale(1.1);
        margin-bottom: 1.25rem;
    }
}

/* Mobile View */
@media (max-width: 1024px) {
    .capabilities-stack {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    /* Removed mobile scatter rules */

    .capabilities-stack:not(:has(.cap-card:hover)) .cap-card {
        margin-left: 0 !important;
        transform: none !important;
    }

    .cap-card {
        margin-left: 0 !important;
        margin-top: -60px !important;
        transform: rotate(0) !important;
        width: 100%;
        max-width: 320px;
        height: auto !important;
        min-height: 250px;
        box-shadow: 0 -10px 20px rgba(0, 0, 0, 0.5);
    }

    .cap-card:first-child {
        margin-top: 0 !important;
    }

    .cap-card:hover {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-bottom: 20px !important;
        transform: translateY(-5px) !important;
    }

    .cap-card:hover~.cap-card {
        margin-left: 0 !important;
    }

    .cap-card:first-child:hover~.cap-card {
        margin-left: 0 !important;
    }
}

#ai-bg-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.ai-capabilities .capabilities-stack {
    position: relative;
    z-index: 2;
}

/* Clutch Widget Dark Mode Integration */
.clutch-reviews-container {
    filter: invert(0.96) hue-rotate(180deg);
}