/* ═══════════════════════════════════════════════════════════════
   DataFlocks — Premium CSS
   Pure CSS3, no frameworks
═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --primary: #7c3aed;
    --primary-d: #5b21b6;
    --accent: #06b6d4;
    --pink: #f472b6;
    --dark: #050310;
    --dark-2: #0f0a2e;
    --dark-3: #1e1b4b;
    --light: #f8fafc;
    --text: #1e293b;
    --text-2: #475569;
    --text-3: #94a3b8;
    --white: #ffffff;
    --border: rgba(255, 255, 255, 0.08);
    --border-l: #e2e8f0;

    --radius-sm: 0.75rem;
    --radius: 1.25rem;
    --radius-lg: 2rem;

    --shadow-card: 0 20px 60px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 40px rgba(124, 58, 237, 0.3);

    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

    --section-pad: 7rem 0;
    --container: 1200px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--dark);
    color: var(--white);
    overflow-x: hidden;
    line-height: 1.7;
}

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

ul {
    list-style: none;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ── Scrollbar ─────────────────────────────────────────────── */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: var(--dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

/* ── Scroll Progress ───────────────────────────────────────── */
#scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    z-index: 9999;
    transition: width .1s linear;
}

/* ── Back to Top ───────────────────────────────────────────── */
#back-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    opacity: 0;
    transform: translateY(20px);
    transition: all .3s var(--ease);
    box-shadow: 0 4px 20px rgba(124, 58, 237, .4);
}

#back-top.show {
    opacity: 1;
    transform: translateY(0);
}

#back-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, .6);
}

/* ── Container ─────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ── WOW.js + Animate.css overrides ────────────────────────── */
/*
  WOW.js hides elements with visibility:hidden before they animate.
  We cap animation distances to stay subtle (no heavy motion).
  After animation, elements must be fully interactive.
*/

/* Tone down Animate.css fade-in distances for subtlety */
.animate__fadeInUp {
    --animate-duration: 0.7s;
}

.animate__fadeInLeft,
.animate__fadeInRight {
    --animate-duration: 0.75s;
}

/* Ensure after animation completes, element stays fully visible */
.wow {
    visibility: hidden;
}

.wow.animate__animated {
    visibility: visible !important;
}

/* Reduced-motion: skip transforms, only fade */
@media (prefers-reduced-motion: reduce) {
    .wow.animate__animated {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ── Typography helpers ────────────────────────────────────── */
.sec-title {
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -.025em;
    margin-bottom: 1rem;
}

.sec-sub {
    font-size: 1.05rem;
    line-height: 1.8;
    max-width: 38rem;
    margin: 0 auto;
    color: var(--text-2);
}

.sec-header {
    text-align: center;
    margin-bottom: 4rem;
}

.text-white {
    color: #fff !important;
}

.text-muted {
    color: rgba(255, 255, 255, .55) !important;
}

.mt-lg {
    margin-top: 2rem;
}

/* ── Gradient text ─────────────────────────────────────────── */
.grad-text {
    background: linear-gradient(135deg, #a78bfa 0%, #06b6d4 60%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.grad-text-dark {
    background: linear-gradient(135deg, #5b21b6 0%, #0e7490 60%, #be185d 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Eyebrow ───────────────────────────────────────────────── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .3rem 1rem;
    border-radius: 9999px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.eyebrow-light {
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .2);
    color: rgba(255, 255, 255, .8);
}

.eyebrow-purple {
    background: rgba(124, 58, 237, .1);
    border: 1px solid rgba(124, 58, 237, .25);
    color: var(--primary);
}

.eyebrow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex-shrink: 0;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.75rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: .95rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    transition: all .3s var(--ease);
    box-shadow: 0 8px 30px rgba(124, 58, 237, .35);
}

.btn-primary:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 12px 40px rgba(124, 58, 237, .55);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .85rem 1.75rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: .95rem;
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .3);
    transition: all .3s var(--ease);
}

.btn-outline:hover {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .6);
    transform: translateY(-2px);
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    padding: 1.1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    font-size: 1.1rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    position: relative;
    overflow: hidden;
    transition: all .3s var(--ease);
    box-shadow: 0 10px 40px rgba(124, 58, 237, .45);
    margin-top: 2rem;
}

.btn-cta:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 16px 50px rgba(124, 58, 237, .6);
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .25), transparent);
    transform: skewX(-20deg);
    animation: shine 3s ease-in-out infinite;
}

@keyframes shine {

    0%,
    100% {
        left: -100%
    }

    50% {
        left: 150%
    }
}

/* ── Title bar ─────────────────────────────────────────────── */
.title-bar {
    width: 3.5rem;
    height: 3px;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
    margin-bottom: 1.75rem;
}

/* ── Section light ─────────────────────────────────────────── */
.section-light {
    background: var(--light);
    color: var(--text);
}

.section-light .sec-sub {
    color: var(--text-2);
}

.section-light .sec-title {
    color: var(--text);
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    transition: background .4s var(--ease), box-shadow .4s var(--ease);
}

#navbar.scrolled {
    background: rgba(5, 3, 16, .92);
    backdrop-filter: blur(20px);
    box-shadow: 0 1px 40px rgba(124, 58, 237, .15);
}

.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 1.1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: #fff;
}

.logo-mark {
    width: 2.2rem;
    height: 2.2rem;
    border-radius: .6rem;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    color: #fff;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
    font-size: .875rem;
    font-weight: 500;
    color: rgba(255, 255, 255, .7);
}

.nav-links a {
    transition: color .2s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-links a.active {
    color: #fff;
}

.nav-cta {
    padding: .55rem 1.4rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff !important;
    font-weight: 600;
    transition: all .3s var(--ease);
    box-shadow: 0 4px 20px rgba(124, 58, 237, .35);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(124, 58, 237, .5);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: .4rem;
    border-radius: .4rem;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: all .3s var(--ease);
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

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

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ═══════════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════════ */
#hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 5rem;
    background: linear-gradient(135deg, #050310 0%, #0f0a2e 45%, #1e1b4b 75%, #050310 100%);
}

#hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    animation: blob-float 10s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: rgba(124, 58, 237, .22);
    top: -15%;
    left: -10%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: rgba(6, 182, 212, .14);
    bottom: -10%;
    right: -8%;
    animation-delay: 4s;
}

.blob-3 {
    width: 300px;
    height: 300px;
    background: rgba(244, 114, 182, .1);
    top: 30%;
    right: 20%;
    animation-delay: 7s;
}

@keyframes blob-float {

    0%,
    100% {
        transform: scale(1) translate(0, 0);
    }

    33% {
        transform: scale(1.1) translate(-15px, 20px);
    }

    66% {
        transform: scale(0.95) translate(20px, -15px);
    }
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(124, 58, 237, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, .06) 1px, transparent 1px);
    background-size: 60px 60px;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1024px;
    margin: 0 auto;
    padding: 0 1.5rem;
    text-align: center;
}

.hero-title {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 1.5rem;
}

.typewriter-wrap {
    display: inline-block;
}

.cursor {
    display: inline-block;
    color: var(--accent);
    animation: blink .7s step-end infinite;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: 0
    }
}

.hero-sub {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, .65);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.8;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3.5rem;
}

.hero-scroll-hint {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    color: rgba(255, 255, 255, .35);
    font-size: .75rem;
}

/* ═══════════════════════════════════════════════════════════════
   TYPING TEXT ANIMATION - Fixed cursor positioning
═══════════════════════════════════════════════════════════════ */

.hero-title {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    text-align: center;
}

.hero-title-static {
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    font-weight: 800;
    line-height: 1.15;
    color: #fff;
    gap: 0.5rem;
}

.typewriter-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: inherit;
    gap: 2px;
    flex-wrap: wrap;
    /* Add these to prevent height changes */
    line-height: 1.15;
    height: auto;
}

.typewriter-text {
    background: linear-gradient(135deg, #a78bfa 0%, #06b6d4 60%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    line-height: 1.15;
    /* Match hero-title-static line-height */
    white-space: nowrap;
    display: inline-block;
    /* Add a minimum width to prevent collapsing */
    min-width: 2ch;
}

.typewriter-cursor {
    display: inline-block;
    width: 4px;
    background: linear-gradient(135deg, #a78bfa 0%, #06b6d4 60%, #f472b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
    font-size: clamp(2.6rem, 7vw, 5.2rem);
    animation: cursor-blink 0.7s infinite;
    line-height: 1.15;
    /* Match hero-title-static line-height */
    margin-left: 2px;
}

@keyframes cursor-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {

    .hero-title-static,
    .typewriter-text,
    .typewriter-cursor {
        font-size: clamp(2rem, 6vw, 3rem);
    }

    .typewriter-wrapper {
        min-height: auto;
    }
}

@media (max-width: 480px) {

    .hero-title-static,
    .typewriter-text,
    .typewriter-cursor {
        font-size: clamp(1.8rem, 5vw, 2.5rem);
    }
}

/* ═══════════════════════════════════════════════════════════════
   ABOUT — 2-col split: content left, infographic right
═══════════════════════════════════════════════════════════════ */
#about {
    padding: var(--section-pad);
    position: relative;
    overflow: hidden;
}

/* ── Two-column split ───────────────────────────────────── */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

/* ── Left: text content ─────────────────────────────────── */
.about-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
}

.about-title {
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 800;
    line-height: 1.15;
    color: var(--text);
    margin: 0;
}

.about-body {
    font-size: 1.05rem;
    color: var(--text-2);
    line-height: 1.9;
    margin: 0;
    max-width: 480px;
}

/* ── Right: infographic container ───────────────────────── */
.about-infographic {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 340px;
}

/* Background decorative card */
.aif-bg-card {
    position: absolute;
    inset: -1rem -1.5rem;
    background: linear-gradient(135deg, rgba(124, 58, 237, .05) 0%, rgba(6, 182, 212, .04) 100%);
    border: 1.5px solid rgba(124, 58, 237, .1);
    border-radius: 1.75rem;
    z-index: 0;
}

/* ── Flow layout: horizontal row centered ───────────────── */
.aif-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    position: relative;
    z-index: 1;
    padding: 2.5rem 2rem;
    width: 100%;
}

/* ── Individual node ────────────────────────────────────── */
.aif-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    text-align: center;
    flex-shrink: 0;
}

.aif-node span {
    font-size: .78rem;
    font-weight: 600;
    color: var(--text-2);
    white-space: nowrap;
    letter-spacing: .01em;
}

/* ── Icon circle ────────────────────────────────────────── */
.aif-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    box-shadow: 0 4px 18px rgba(0, 0, 0, .08);
}

.aif-node:hover .aif-icon {
    transform: translateY(-4px) scale(1.08);
}

.aif-icon-purple {
    background: linear-gradient(135deg, rgba(124, 58, 237, .15), rgba(124, 58, 237, .06));
    border: 1.5px solid rgba(124, 58, 237, .2);
    color: var(--primary);
}

.aif-node:hover .aif-icon-purple {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 28px rgba(124, 58, 237, .3);
}

.aif-icon-cyan {
    background: linear-gradient(135deg, rgba(6, 182, 212, .15), rgba(6, 182, 212, .06));
    border: 1.5px solid rgba(6, 182, 212, .2);
    color: var(--accent);
}

.aif-node:hover .aif-icon-cyan {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 28px rgba(6, 182, 212, .3);
}

.aif-icon-pink {
    background: linear-gradient(135deg, rgba(244, 114, 182, .15), rgba(244, 114, 182, .06));
    border: 1.5px solid rgba(244, 114, 182, .2);
    color: var(--pink);
}

.aif-node:hover .aif-icon-pink {
    background: var(--pink);
    color: #fff;
    box-shadow: 0 8px 28px rgba(244, 114, 182, .3);
}

.aif-icon-green {
    background: linear-gradient(135deg, rgba(16, 185, 129, .15), rgba(16, 185, 129, .06));
    border: 1.5px solid rgba(16, 185, 129, .2);
    color: #10b981;
}

.aif-node:hover .aif-icon-green {
    background: #10b981;
    color: #fff;
    box-shadow: 0 8px 28px rgba(16, 185, 129, .3);
}

/* ── Arrow connector between nodes ─────────────────────── */
.aif-arrow {
    display: flex;
    align-items: center;
    gap: 0;
    flex-shrink: 0;
    margin-bottom: 1.5rem;
    /* shift down to align with icon centers */
}

.aif-line {
    width: 28px;
    height: 2px;
    background: var(--border-l);
    position: relative;
    overflow: hidden;
}

.aif-line-fill {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    border-radius: 1px;
}

.aif-fill-1 {
    background: linear-gradient(90deg, var(--primary), var(--accent));
    animation: aif-flow-line 2s ease-out .3s forwards;
}

.aif-fill-2 {
    background: linear-gradient(90deg, var(--accent), var(--pink));
    animation: aif-flow-line 2s ease-out .7s forwards;
}

.aif-fill-3 {
    background: linear-gradient(90deg, var(--pink), var(--primary));
    animation: aif-flow-line 2s ease-out 1.1s forwards;
}

.aif-fill-4 {
    background: linear-gradient(90deg, var(--primary), #10b981);
    animation: aif-flow-line 2s ease-out 1.5s forwards;
}

@keyframes aif-flow-line {
    0% {
        left: -100%;
    }

    100% {
        left: 0%;
    }
}

.aif-chevron {
    color: var(--text-2);
    opacity: .5;
    flex-shrink: 0;
}

/* ── Responsive: stack on tablet ────────────────────────── */
@media (max-width: 900px) {
    .about-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .about-content {
        align-items: center;
        text-align: center;
    }

    .about-body {
        max-width: 600px;
        text-align: center;
    }

    .about-infographic {
        min-height: 260px;
    }

    .aif-flow {
        padding: 1.5rem 1rem;
    }

    .aif-line {
        width: 18px;
    }

    .aif-icon {
        width: 44px;
        height: 44px;
    }
}


/* ═══════════════════════════════════════════════════════════════
   SERVICES
═══════════════════════════════════════════════════════════════ */
#services {
    position: relative;
    padding: var(--section-pad);
    background: linear-gradient(135deg, #0f0a2e 0%, #1e1b4b 50%, #0f172a 100%);
    overflow: hidden;
}

#services-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.mouse-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(circle, rgba(124, 58, 237, .15) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: opacity .3s;
}

/*
  FIX 2: Services 5-card grid — 3 top row centered, 2 bottom row centered.
  Technique: 6-column grid where each card spans 2 columns.
  Row 1 (cards 1-3): card 1 starts at col 1, card 2 at col 3, card 3 at col 5.
  Row 2 (cards 4-5): card 4 starts at col 2 (offset by 1), card 5 at col 4.
  This centers both rows perfectly without any JS or flexbox hacks.
*/
.services-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 2rem;
    align-items: stretch;
}

/* All cards span 2 of 6 columns = equal width */
.services-grid .svc-card {
    grid-column: span 2;
}

/* Row 2: card 4 starts at column 2 to center the pair */
.services-grid .svc-card:nth-child(4) {
    grid-column: 2 / span 2;
}

/* Row 2: card 5 follows naturally at column 4 */
.services-grid .svc-card:nth-child(5) {
    grid-column: 4 / span 2;
}

.svc-card {
    background: #fff;
    border-radius: var(--radius);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    transition: all .4s var(--ease);
    box-shadow: 0 4px 30px rgba(0, 0, 0, .15);
    transform-style: preserve-3d;
}

.svc-card:hover {
    /* Capped at -8px per design guidelines */
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .2), 0 0 0 1px rgba(124, 58, 237, .2);
    transition: all .3s var(--ease);
}

.svc-card-glow {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 120%, rgba(124, 58, 237, .08), transparent 60%);
    opacity: 0;
    transition: opacity .4s;
    pointer-events: none;
}

.glow-cyan {
    background: radial-gradient(circle at 50% 120%, rgba(6, 182, 212, .1), transparent 60%);
}

.glow-pink {
    background: radial-gradient(circle at 50% 120%, rgba(244, 114, 182, .1), transparent 60%);
}

.svc-card:hover .svc-card-glow {
    opacity: 1;
}

/* Badge */
.svc-badge {
    display: inline-block;
    padding: .25rem .75rem;
    border-radius: 9999px;
    font-size: .65rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.badge-strategy {
    background: rgba(124, 58, 237, .1);
    color: var(--primary);
    border: 1px solid rgba(124, 58, 237, .2);
}

.badge-engineering {
    background: rgba(6, 182, 212, .1);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, .2);
}

.badge-governance {
    background: rgba(244, 114, 182, .1);
    color: #db2777;
    border: 1px solid rgba(244, 114, 182, .2);
}

.badge-analytics {
    background: rgba(124, 58, 237, .1);
    color: var(--primary);
    border: 1px solid rgba(124, 58, 237, .2);
}

.badge-ai {
    background: rgba(6, 182, 212, .1);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, .2);
}

/* Icon */
.svc-icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    background: rgba(124, 58, 237, .1);
    color: var(--primary);
    transition: all .3s var(--ease);
}

.svc-card:hover .svc-icon-wrap {
    background: var(--primary);
    color: #fff;
}

.icon-cyan {
    background: rgba(6, 182, 212, .1);
    color: var(--accent);
}

.svc-card:hover .icon-cyan {
    background: var(--accent);
    color: #fff;
}

.icon-pink {
    background: rgba(244, 114, 182, .1);
    color: var(--pink);
}

.svc-card:hover .icon-pink {
    background: var(--pink);
    color: #fff;
}

.svc-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .6rem;
}

.svc-card p {
    font-size: .875rem;
    color: var(--text-2);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.svc-card ul {
    font-size: .82rem;
    color: var(--text-2);
}

.svc-card ul li {
    padding: .3rem 0;
    display: flex;
    align-items: center;
    gap: .5rem;
    border-bottom: 1px solid #f1f5f9;
}

.svc-card ul li::before {
    content: '▸';
    color: var(--primary);
    font-size: .7rem;
    flex-shrink: 0;
}

.svc-card ul li:last-child {
    border-bottom: none;
}

/* AI tags */
.ai-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .5rem;
}

.ai-tags span {
    padding: .3rem .75rem;
    border-radius: 9999px;
    font-size: .72rem;
    font-weight: 600;
    background: rgba(6, 182, 212, .08);
    color: #0891b2;
    border: 1px solid rgba(6, 182, 212, .2);
}

/* ═══════════════════════════════════════════════════════════════
   INDUSTRIES — Swiper carousel
═══════════════════════════════════════════════════════════════ */
#industries {
    padding: var(--section-pad);
    overflow: hidden;
}

#industries .sec-header {
    padding: 0 1.5rem;
    margin-bottom: 2.5rem;
}

/* Swiper outer wrapper — proper container padding + edge fade */
.industries-swiper-wrap {
    width: 100%;
    overflow: hidden;
    padding: 1.5rem 1.5rem 2.5rem;
    /* Subtle fade on left/right edges for polish */
    mask-image: linear-gradient(90deg,
            transparent 0%,
            #000 4%,
            #000 96%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(90deg,
            transparent 0%,
            #000 4%,
            #000 96%,
            transparent 100%);
}

/* Swiper container — allow overflow so partial cards show */
/* ═══════════════════════════════════════════════════════════════
   INDUSTRIES — Continuous Scroll Carousel
═══════════════════════════════════════════════════════════════ */
#industries {
    padding: var(--section-pad);
    overflow: hidden;
    position: relative;
}

#industries .sec-header {
    padding: 0 1.5rem;
    margin-bottom: 2.5rem;
}

/* Marquee Container */
.industries-marquee-wrap {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    position: relative;
    mask-image: linear-gradient(90deg,
            transparent 0%,
            #000 8%,
            #000 92%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(90deg,
            transparent 0%,
            #000 8%,
            #000 92%,
            transparent 100%);
}

/* Marquee Track */
.industries-marquee {
    display: flex;
    gap: 1.5rem;
    width: fit-content;
    animation: continuous-scroll 60s linear infinite;
    will-change: transform;
}

/* Pause on hover */
.industries-marquee-wrap:hover .industries-marquee {
    animation-play-state: paused;
}

/* Continuous scroll animation */
@keyframes continuous-scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - 0.75rem));
        /* Half the width minus half the gap */
    }
}

/* Card design */
.ind-card {
    background: #ffffff;
    border: 1.5px solid #e8ecf2;
    border-radius: 999px;
    padding: 24px 48px;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    width: max-content;
    cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s var(--ease);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.04);
    user-select: none;
    flex-shrink: 0;
    text-align: center;
}

.ind-card:hover {
    transform: translateY(-6px);
    border-color: rgba(124, 58, 237, 0.25);
    box-shadow: 0 14px 40px rgba(124, 58, 237, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* Icon area */
.ind-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.3s var(--ease), color 0.3s var(--ease);
}

.ind-icon-purple {
    background: rgba(124, 58, 237, 0.1);
    color: var(--primary);
    border: 1.5px solid rgba(124, 58, 237, 0.18);
}

.ind-card:hover .ind-icon-purple {
    background: var(--primary);
    color: #fff;
}

.ind-icon-cyan {
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent);
    border: 1.5px solid rgba(6, 182, 212, 0.18);
}

.ind-card:hover .ind-icon-cyan {
    background: var(--accent);
    color: #fff;
}

.ind-icon-pink {
    background: rgba(244, 114, 182, 0.1);
    color: var(--pink);
    border: 1.5px solid rgba(244, 114, 182, 0.18);
}

.ind-card:hover .ind-icon-pink {
    background: var(--pink);
    color: #fff;
}

.ind-icon-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border: 1.5px solid rgba(16, 185, 129, 0.18);
}

.ind-card:hover .ind-icon-green {
    background: #10b981;
    color: #fff;
}

/* Card text */
.ind-card-title {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin: 0;
}

.ind-card-sub {
    font-size: 0.8rem;
    color: var(--text-2);
    line-height: 1.7;
    margin: 0;
    flex: 1;
}

/* Fallback for older browsers */
.ind-card h4 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
    margin: 0;
}

.ind-card p {
    font-size: 0.8rem;
    color: var(--text-2);
    line-height: 1.7;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .ind-card {
        width: 240px;
        padding: 1.5rem 1.25rem;
    }

    .industries-marquee {
        gap: 1rem;
    }

    @keyframes continuous-scroll {
        100% {
            transform: translateX(calc(-50% - 0.5rem));
        }
    }
}

@media (max-width: 480px) {
    .ind-card {
        width: 200px;
        padding: 1.25rem 1rem;
    }

    .ind-card-icon {
        width: 44px;
        height: 44px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   WHY US
═══════════════════════════════════════════════════════════════ */
#why-us {
    position: relative;
    padding: var(--section-pad);
    background: linear-gradient(135deg, var(--dark) 0%, var(--dark-3) 100%);
    overflow: hidden;
}

.why-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    pointer-events: none;
    animation: blob-float 12s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: rgba(124, 58, 237, .18);
    top: -20%;
    left: -10%;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, .1);
    bottom: -10%;
    right: -5%;
    animation-delay: 5s;
}

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

.why-card {
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius);
    padding: 2rem;
    transition: all .35s var(--ease);
}

.why-card:hover {
    background: rgba(255, 255, 255, .07);
    border-color: rgba(124, 58, 237, .35);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(124, 58, 237, .15);
}

.why-icon {
    width: 3rem;
    height: 3rem;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, .15);
    color: var(--primary);
    margin-bottom: 1.25rem;
    transition: all .3s var(--ease);
}

.why-card:hover .why-icon {
    background: var(--primary);
    color: #fff;
}

.why-icon.icon-cyan {
    background: rgba(6, 182, 212, .12);
    color: var(--accent);
}

.why-card:hover .why-icon.icon-cyan {
    background: var(--accent);
    color: #fff;
}

.why-icon.icon-pink {
    background: rgba(244, 114, 182, .1);
    color: var(--pink);
}

.why-card:hover .why-icon.icon-pink {
    background: var(--pink);
    color: #fff;
}

.why-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .6rem;
}

.why-card p {
    font-size: .875rem;
    color: rgba(255, 255, 255, .55);
    line-height: 1.75;
}

/* ═══════════════════════════════════════════════════════════════
   HOW WE WORK — Light Theme Vertical Alternating Timeline
   White/light bg, elevated white cards, soft shadows, colored
   accent circles, light gradient connector line.
═══════════════════════════════════════════════════════════════ */
#how-we-work {
    position: relative;
    padding: var(--section-pad);
    overflow: hidden;
}

/* Section-level background: very light warm gray */
.hww-light {
    background: #f8f9fc;
}

/* ── Timeline wrapper ─────────────────────────────────────── */
.timeline {
    position: relative;
    max-width: 860px;
    margin: 0 auto;
    padding: 1rem 0 2rem;
}

/* ── Each step row ────────────────────────────────────────── */
.timeline-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    align-items: start;
    margin-bottom: 0;
    position: relative;
}

/* Reverse variant: card LEFT, connector RIGHT */
.timeline-step-reverse {
    grid-template-columns: 1fr 80px;
}

.timeline-step-reverse .timeline-connector {
    order: 2;
}

.timeline-step-reverse .timeline-card {
    order: 1;
    text-align: right;
}

.timeline-step-reverse .tc-tags {
    justify-content: flex-end;
}

/* ── Connector: badge + vertical line ─────────────────────── */
.timeline-connector {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    height: 100%;
}

/* Badge circle — colored accent on white */
.tl-badge {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    font-weight: 800;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease);
    cursor: default;
    /* Light background base */
    background: #fff;
    border: 2px solid var(--border-l);
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
}

/* Per-step badge colors — soft accent on white */
.tl-badge-1 {
    border-color: rgba(124, 58, 237, .3);
    color: var(--primary);
    background: linear-gradient(135deg, rgba(124, 58, 237, .1), rgba(124, 58, 237, .04));
    box-shadow: 0 4px 20px rgba(124, 58, 237, .15);
}

.tl-badge-2 {
    border-color: rgba(6, 182, 212, .3);
    color: var(--accent);
    background: linear-gradient(135deg, rgba(6, 182, 212, .1), rgba(6, 182, 212, .04));
    box-shadow: 0 4px 20px rgba(6, 182, 212, .15);
}

.tl-badge-3 {
    border-color: rgba(244, 63, 94, .3);
    color: #f43f5e;
    background: linear-gradient(135deg, rgba(244, 63, 94, .1), rgba(244, 63, 94, .04));
    box-shadow: 0 4px 20px rgba(244, 63, 94, .12);
}

.tl-badge-4 {
    border-color: rgba(16, 185, 129, .3);
    color: #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, .1), rgba(16, 185, 129, .04));
    box-shadow: 0 4px 20px rgba(16, 185, 129, .12);
}

.timeline-step:hover .tl-badge {
    transform: scale(1.1) translateY(-3px);
}

.tl-num {
    font-size: .85rem;
    font-weight: 800;
    line-height: 1;
    opacity: 1;
}

.tl-badge svg {
    opacity: .85;
}

/* Vertical connector line — light neutral track */
.tl-line {
    flex: 1;
    width: 2px;
    min-height: 60px;
    background: #e5e7eb;
    border-radius: 2px;
    position: relative;
    overflow: hidden;
    margin: 4px 0;
}

/* Animated fill — soft gradient */
.tl-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0;
    background: linear-gradient(to bottom, #a78bfa, #67e8f9);
    border-radius: 2px;
    transition: height .8s var(--ease);
}

/* When step enters viewport, fill the line */
.timeline-step.visible .tl-line-fill {
    height: 100%;
}

/* Last step: hide line */
.tl-line-hidden {
    visibility: hidden;
}

/* ── Step card — white elevated ──────────────────────────── */
.timeline-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 1.25rem;
    padding: 1.75rem 2rem;
    margin-bottom: 2.5rem;
    transition: all .35s var(--ease);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .05), 0 8px 32px rgba(0, 0, 0, .04);
}

.timeline-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, .1);
}

/* Per-step color accent on hover */
.tc-1:hover {
    border-color: rgba(124, 58, 237, .3);
    box-shadow: 0 12px 40px rgba(124, 58, 237, .12);
}

.tc-2:hover {
    border-color: rgba(6, 182, 212, .3);
    box-shadow: 0 12px 40px rgba(6, 182, 212, .12);
}

.tc-3:hover {
    border-color: rgba(244, 63, 94, .3);
    box-shadow: 0 12px 40px rgba(244, 63, 94, .1);
}

.tc-4:hover {
    border-color: rgba(16, 185, 129, .3);
    box-shadow: 0 12px 40px rgba(16, 185, 129, .1);
}

.tc-header {
    display: flex;
    flex-direction: column;
    gap: .15rem;
    margin-bottom: 1rem;
}

/* Phase label */
.tc-label {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--text-2);
    opacity: .7;
}

.timeline-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1f2937;
    margin: 0;
}

.timeline-card p {
    font-size: .9rem;
    color: #6b7280;
    line-height: 1.85;
    margin-bottom: 1.25rem;
}

/* Tags */
.tc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.tc-tags span {
    padding: .3rem .85rem;
    border-radius: 9999px;
    font-size: .72rem;
    font-weight: 600;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    transition: all .25s;
}

.tc-tags span:hover {
    background: rgba(124, 58, 237, .08);
    border-color: rgba(124, 58, 237, .25);
    color: var(--primary);
}

/* ── Reduced motion ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .tl-line-fill {
        transition: none;
    }

    .tl-badge,
    .timeline-card {
        transition: none;
    }
}

/* ═══════════════════════════════════════════════════════════════
   CTA / CONTACT
═══════════════════════════════════════════════════════════════ */
#contact {
    position: relative;
    padding: var(--section-pad);
    background: linear-gradient(135deg, #0f0a2e 0%, #1e1b4b 50%, #0f172a 100%);
    overflow: hidden;
}

#cta-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.cta-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
}

.blob-a {
    width: 500px;
    height: 500px;
    background: rgba(124, 58, 237, .2);
    top: -20%;
    left: -10%;
    animation: blob-morph 12s ease-in-out infinite;
}

.blob-b {
    width: 400px;
    height: 400px;
    background: rgba(6, 182, 212, .12);
    bottom: -15%;
    right: -8%;
    animation: blob-morph 16s ease-in-out infinite reverse;
}

.blob-c {
    width: 250px;
    height: 250px;
    background: rgba(244, 114, 182, .1);
    top: 40%;
    right: 25%;
    animation: blob-morph 10s ease-in-out infinite;
    animation-delay: 3s;
}

@keyframes blob-morph {

    0%,
    100% {
        border-radius: 60% 40% 30% 70%/60% 30% 70% 40%;
        transform: scale(1);
    }

    33% {
        border-radius: 30% 60% 70% 40%/50% 60% 30% 60%;
        transform: scale(1.05);
    }

    66% {
        border-radius: 50% 60% 30% 60%/30% 40% 60% 50%;
        transform: scale(0.97);
    }
}

.cta-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg);
    padding: 4rem;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 100px rgba(0, 0, 0, .3);
}

.cta-main .sec-title {
    text-align: left;
}

.cta-main .sec-sub {
    text-align: left;
    margin: 0;
    color: rgba(255, 255, 255, .55);
}

.cta-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.cta-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.cta-info-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .75rem;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(124, 58, 237, .2);
    color: #a78bfa;
    border: 1px solid rgba(124, 58, 237, .3);
}

.cta-info-label {
    font-size: .75rem;
    color: rgba(255, 255, 255, .4);
    font-weight: 500;
    margin-bottom: .2rem;
}

.cta-info-value {
    font-size: .95rem;
    color: #fff;
    font-weight: 500;
}

a.cta-info-value:hover {
    color: var(--accent);
}

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

.cta-promise {
    font-size: .85rem;
    color: rgba(255, 255, 255, .4);
    line-height: 1.7;
    font-style: italic;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
#footer {
    background: #020108;
    border-top: 1px solid rgba(255, 255, 255, .05);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand .nav-logo {
    margin-bottom: 1rem;
}

.footer-brand p {
    font-size: .875rem;
    color: rgba(255, 255, 255, .35);
    line-height: 1.7;
}

.footer-links h4 {
    font-size: .875rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 1.25rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.footer-links a {
    font-size: .85rem;
    color: rgba(255, 255, 255, .4);
    transition: color .2s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .05);
    font-size: .8rem;
    color: rgba(255, 255, 255, .25);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */
@media (max-width:1024px) {

    /*
      Services: collapse 6-col grid to 4-col (2 cards per row).
      Reset nth-child offsets so cards flow naturally.
    */
    .services-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    /* Reset the centering offsets — let cards flow in 2-per-row */
    .services-grid .svc-card:nth-child(4) {
        grid-column: span 2;
    }

    .services-grid .svc-card:nth-child(5) {
        grid-column: span 2;
    }

    /* Stepper: 2 columns on tablet */
    .process-orbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta-box {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        padding: 2.5rem;
    }

    .cta-main .sec-title {
        text-align: center;
    }

    .cta-main .sec-sub {
        text-align: center;
        margin: 0 auto;
    }

    .cta-main {
        text-align: center;
    }
}

@media (max-width:768px) {
    :root {
        --section-pad: 5rem 0;
    }

    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 75vw;
        max-width: 320px;
        background: var(--dark);
        flex-direction: column;
        align-items: flex-start;
        padding: 5rem 2rem 2rem;
        gap: 1.5rem;
        transform: translateX(100%);
        transition: transform .35s var(--ease);
        z-index: 99;
    }

    .nav-links.open {
        transform: translateX(0);
    }

    /* About bento: 2 columns on tablet */
    .about-bento {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-stat {
        grid-column: span 1;
    }

    .bento-mission,
    .bento-values {
        grid-column: span 2;
    }

    .bento-global {
        grid-column: 1 / -1;
    }

    /* Services: single column on mobile, reset all grid-column overrides */
    .services-grid {
        grid-template-columns: 1fr;
    }

    .services-grid .svc-card,
    .services-grid .svc-card:nth-child(4),
    .services-grid .svc-card:nth-child(5) {
        grid-column: 1 / -1;
    }

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

    /* Timeline: collapse to single column */
    .timeline-step,
    .timeline-step-reverse {
        grid-template-columns: 60px 1fr;
        gap: 1.25rem;
    }

    .timeline-step-reverse .timeline-connector,
    .timeline-step-reverse .timeline-card {
        order: unset;
    }

    .timeline-step-reverse .timeline-card {
        text-align: left;
    }

    .timeline-step-reverse .tc-tags {
        justify-content: flex-start;
    }

    .tl-badge {
        width: 56px;
        height: 56px;
    }

    .timeline-card {
        margin-bottom: 1.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: .5rem;
        text-align: center;
    }

    .hero-title {
        font-size: clamp(2rem, 8vw, 3rem);
    }
}

@media (max-width:480px) {
    .hero-btns {
        flex-direction: column;
        align-items: center;
    }

    .btn-primary,
    .btn-outline {
        width: 100%;
        justify-content: center;
    }

    .cta-box {
        padding: 1.75rem;
    }

    /* Bento: full single column on small screens */
    .about-bento {
        grid-template-columns: 1fr;
    }

    .bento-stat,
    .bento-mission,
    .bento-values,
    .bento-global {
        grid-column: 1 / -1;
    }
}