/* ===== COLOR BENDS BACKGROUND ===== */
.color-bends-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    opacity: 0.6;
}

.color-bends-bg canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

/* ===== CSS RESET & ROOT ===== */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --bg-primary: #09090b;
    --bg-secondary: #111113;
    --bg-card: #16161a;
    --bg-card-hover: #1c1c21;
    --border: #27272a;
    --border-hover: #3f3f46;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-1: #a78bfa;
    /* violet */
    --accent-2: #818cf8;
    /* indigo */
    --accent-3: #6366f1;
    /* deeper indigo */
    --gradient: linear-gradient(135deg, #a78bfa 0%, #818cf8 50%, #6366f1 100%);
    --gradient-glow: linear-gradient(135deg, rgba(167, 139, 250, .15) 0%, rgba(99, 102, 241, .15) 100%);

    /* Typography */
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background: #09090b;
}

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

/* ===== LOADING SCREEN ===== */
@font-face {
    font-family: 'BreatheFont';
    src: url("https://garet.typeforward.com/assets/fonts/shared/TFMixVF.woff2") format('woff2');
}

.loading-screen {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #000;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-text {
    font-family: 'BreatheFont', var(--font-heading), sans-serif;
    font-size: clamp(1.5rem, 4vw, 3rem);
    text-align: center;
    user-select: none;
    background: linear-gradient(90deg,
            #a78bfa, #818cf8, #6366f1, #e601c0, #07bccc,
            #a78bfa, #818cf8, #6366f1, #e601c0, #07bccc);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation:
        letter-breathe 3s ease-in-out infinite,
        aurora-text 6s ease-in-out infinite;
    /* Typing effect */
    overflow: hidden;
    white-space: nowrap;
    width: 0;
    border-right: 2px solid #a78bfa;
    animation:
        typing 2s steps(16, end) forwards,
        blink-caret 0.6s step-end infinite,
        letter-breathe 3s ease-in-out infinite,
        aurora-text 6s ease-in-out infinite;
}

@keyframes typing {
    from {
        width: 0;
    }

    to {
        width: 16ch;
    }
}

@keyframes blink-caret {

    0%,
    100% {
        border-color: #a78bfa;
    }

    50% {
        border-color: transparent;
    }
}

@keyframes letter-breathe {

    from,
    to {
        font-variation-settings: 'wght' 100;
    }

    50% {
        font-variation-settings: 'wght' 900;
    }
}

body.loading {
    overflow: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s var(--ease);
}

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

ul {
    list-style: none;
}

/* ===== UTILITY ===== */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

.gradient-text {
    background: linear-gradient(90deg,
        #a78bfa, #818cf8, #6366f1, #e601c0, #07bccc,
        #a78bfa, #818cf8, #6366f1, #e601c0, #07bccc);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aurora-text 6s ease-in-out infinite;
}

.hero-gradient-text {
    background: inherit;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 64px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--accent-1);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Gravitas One', cursive;
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
    background: linear-gradient(90deg,
        #a78bfa, #818cf8, #6366f1, #e601c0, #07bccc,
        #a78bfa, #818cf8, #6366f1, #e601c0, #07bccc);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aurora-text 6s ease-in-out infinite;
}

.section-desc {
    font-size: 1.05rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all 0.35s var(--ease);
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 0 20px rgba(167, 139, 250, .25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(167, 139, 250, .35);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ===== PILL NAVBAR ===== */
.pill-nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    padding: 16px 24px;
}

.pill-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-full);
    padding: 8px 8px 8px 20px;
    transition: all 0.4s var(--ease);
}

.pill-nav.scrolled {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.08);
}

.pill-logo {
    display: inline-flex;
    font-family: 'Gravitas One', var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    gap: 0;
    margin-right: 8px;
    flex-shrink: 0;
}

.logo-text {
    background: linear-gradient(90deg,
            #a78bfa, #818cf8, #6366f1, #e601c0, #07bccc,
            #a78bfa, #818cf8, #6366f1, #e601c0, #07bccc);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: aurora-text 6s ease-in-out infinite;
}

@keyframes aurora-text {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.pill-nav-items {
    overflow: hidden;
}

.pill-list {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: var(--radius-full);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    overflow: hidden;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s;
}

.hover-circle {
    position: absolute;
    left: 50%;
    border-radius: 50%;
    background: var(--accent-1);
    pointer-events: none;
    z-index: 0;
}

.label-stack {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    height: 1.2em;
    line-height: 1.2em;
}

.pill-label {
    display: block;
    transition: transform 0.3s;
}

.pill-label-hover {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    text-align: center;
    color: #09090b;
    font-weight: 600;
}

/* Mobile hamburger */
.mobile-menu-button {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.hamburger-line {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease);
}

/* Mobile menu popover */
.mobile-menu-popover {
    display: none;
    position: fixed;
    top: 80px;
    left: 24px;
    right: 24px;
    background: rgba(9, 9, 11, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 16px;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-menu-link {
    display: block;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: all 0.2s;
}

.mobile-menu-link:hover,
.mobile-menu-link.is-active {
    background: var(--bg-card);
    color: var(--text-primary);
}

/* Desktop/mobile toggles */
.mobile-only {
    display: none;
}

.desktop-only {
    display: block;
}

/* ===== HERO ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 24px 80px;
    overflow: hidden;
}

.hero-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(167, 139, 250, .03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(167, 139, 250, .03) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 100%);
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    pointer-events: none;
}

.hero-glow-1 {
    width: 500px;
    height: 500px;
    background: rgba(167, 139, 250, .08);
    top: 10%;
    left: 20%;
    animation: float 8s ease-in-out infinite;
}

.hero-glow-2 {
    width: 400px;
    height: 400px;
    background: rgba(99, 102, 241, .06);
    bottom: 20%;
    right: 15%;
    animation: float 10s ease-in-out infinite reverse;
}

@keyframes float {

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

    50% {
        transform: translate(30px, -30px);
    }
}

.hero-container {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-full);
    padding: 8px 20px;
    margin-bottom: 32px;
    animation: fadeInDown 0.8s var(--ease);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .4;
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

.hero-title {
    font-family: 'Gravitas One', cursive;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    background: linear-gradient(90deg,
        #a78bfa, #818cf8, #6366f1, #e601c0, #07bccc,
        #a78bfa, #818cf8, #6366f1, #e601c0, #07bccc);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: fadeIn 1s var(--ease) 0.2s both, aurora-text 6s ease-in-out infinite;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px;
    animation: fadeIn 1s var(--ease) 0.4s both;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 64px;
    animation: fadeIn 1s var(--ease) 0.6s both;
}

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    animation: fadeIn 1s var(--ease) 0.8s both;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-plus {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-1);
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--border);
}

/* ===== SERVICES ===== */
.services {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 32px;
    transition: all 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.service-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
}

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

.service-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: var(--gradient-glow);
    border: 1px solid rgba(167, 139, 250, .15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--accent-1);
}

.service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 20px;
}

.service-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.service-features li {
    font-size: 13px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-features li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-1);
    flex-shrink: 0;
}

/* ===== GRID MOTION ===== */
.gridmotion-wrap {
    position: relative;
    width: 100%;
    height: 80vh;
    min-height: 500px;
    overflow: hidden;
    background: #000;
}

.gridmotion-intro {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gridmotion-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 30%, #000 80%);
    z-index: 3;
    pointer-events: none;
}

.gridmotion-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    z-index: 1;
    width: max-content;
}

.gridmotion-row {
    display: flex;
    gap: 1.25rem;
    will-change: transform;
}

.row__item {
    flex: 0 0 200px;
    height: 140px;
}

.row__item-inner {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: rgba(22, 22, 26, 0.9);
    border: 1px solid rgba(167, 139, 250, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.3s, transform 0.3s, background 0.3s;
}

.row__item-inner:hover {
    border-color: var(--accent-1);
    background: rgba(167, 139, 250, 0.1);
    transform: scale(1.05);
}

.row__item-content {
    padding: 16px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

/* ===== WORK / MAGIC BENTO ===== */
.work {
    padding: var(--section-padding);
    background: #000;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: minmax(220px, auto);
    gap: 16px;
    position: relative;
}

.magic-bento-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.4s var(--ease);
    --glow-x: 50%;
    --glow-y: 50%;
    --glow-intensity: 0;
    --glow-radius: 300px;
    --glow-color: 167, 139, 250;
    will-change: transform;
}

.magic-bento-card:hover {
    border-color: var(--border-hover);
}

.bento-featured {
    grid-column: span 2;
    grid-row: span 2;
}

/* Border glow — mask trick */
.magic-bento-card--border-glow::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: radial-gradient(var(--glow-radius) circle at var(--glow-x) var(--glow-y),
            rgba(var(--glow-color), 1),
            transparent 60%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: var(--glow-intensity);
    pointer-events: none;
    z-index: 2;
}

/* Inner surface glow */
.magic-bento-card--border-glow::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(var(--glow-radius) circle at var(--glow-x) var(--glow-y),
            rgba(var(--glow-color), 0.12),
            transparent 60%);
    opacity: var(--glow-intensity);
    pointer-events: none;
    z-index: 1;
}

/* Text auto-hide */
.magic-bento-card--text-autohide .magic-bento-card__content {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.magic-bento-card--text-autohide:hover .magic-bento-card__content {
    opacity: 1;
    transform: translateY(0);
}

.magic-bento-card__header {
    position: relative;
    z-index: 5;
}

.magic-bento-card__label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent-1);
    background: rgba(167, 139, 250, 0.08);
    border: 1px solid rgba(167, 139, 250, 0.15);
    padding: 5px 14px;
    border-radius: var(--radius-full);
}

.magic-bento-card__content {
    position: relative;
    z-index: 5;
    margin-top: auto;
}

.bento-stat {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
    line-height: 1;
}

.bento-featured .bento-stat {
    font-size: 4rem;
}

.magic-bento-card__title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.bento-featured .magic-bento-card__title {
    font-size: 1.5rem;
}

.magic-bento-card__description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* Particle container base */
.particle-container {
    position: relative;
    overflow: hidden;
}

/* Individual particle dot */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(167, 139, 250, 1);
    box-shadow: 0 0 6px rgba(167, 139, 250, 0.6);
    pointer-events: none;
    z-index: 100;
}

/* Global spotlight that follows cursor */
.global-spotlight {
    position: fixed;
    width: 800px;
    height: 800px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle,
            rgba(167, 139, 250, 0.15) 0%,
            rgba(167, 139, 250, 0.08) 15%,
            rgba(167, 139, 250, 0.04) 25%,
            rgba(167, 139, 250, 0.02) 40%,
            rgba(167, 139, 250, 0.01) 65%,
            transparent 70%);
    z-index: 200;
    opacity: 0;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
}

/* Tilt perspective on hovered cards */
.magic-bento-card {
    transform-style: preserve-3d;
}

/* Ripple click effect */
.magic-bento-ripple {
    position: absolute;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(167, 139, 250, 0.4) 0%, rgba(167, 139, 250, 0.2) 30%, transparent 70%);
    pointer-events: none;
    z-index: 1000;
}

/* ===== BENTO GRID RESPONSIVE ===== */
@media (max-width: 1024px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-featured {
        grid-column: span 2;
        grid-row: span 1;
    }
}

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

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

/* ===== PROCESS ===== */
.process {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.process-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.process-timeline::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 1px;
    background: var(--border);
}

.process-step {
    text-align: center;
    position: relative;
}

.step-number {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    position: relative;
    z-index: 2;
    background: var(--bg-primary);
    transition: all 0.4s var(--ease);
}

.process-step:hover .step-number {
    border-color: var(--accent-1);
    color: var(--accent-1);
    box-shadow: 0 0 20px rgba(167, 139, 250, .15);
}

.step-content h3 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}


/* ===== CONTACT ===== */
.contact {
    padding: var(--section-padding);
    background: var(--bg-primary);
}

.contact-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
    padding: 48px 32px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all 0.4s var(--ease);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: var(--gradient);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}

.contact-card:hover {
    transform: translateY(-6px);
    border-color: transparent;
    box-shadow: 0 20px 40px rgba(167, 139, 250, .08);
}

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

.contact-card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--gradient-glow);
    border: 1px solid rgba(167, 139, 250, .2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-1);
    transition: all 0.4s var(--ease);
}

.contact-card:hover .contact-card-icon {
    transform: scale(1.1);
    border-color: var(--accent-1);
    box-shadow: 0 0 24px rgba(167, 139, 250, .2);
}

.contact-card-label {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.contact-card-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.contact-card-cta {
    font-size: 14px;
    font-weight: 600;
    color: var(--accent-1);
    margin-top: 8px;
    opacity: 0;
    transform: translateY(8px);
    transition: all 0.3s var(--ease);
}

.contact-card:hover .contact-card-cta {
    opacity: 1;
    transform: translateY(0);
}

/* ===== FOOTER ===== */
.footer {
    padding: 64px 0 32px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 64px;
    padding-bottom: 40px;
    margin-bottom: 32px;
    border-bottom: 1px solid var(--border);
}

.footer-brand {
    max-width: 360px;
}

.footer-brand .nav-logo {
    margin-bottom: 16px;
    display: inline-flex;
}

.footer-brand p {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
}

.footer-links-group {
    display: flex;
    gap: 64px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links h4 {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
    transition: color 0.3s;
}

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

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

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    transition: all 0.3s var(--ease);
}

.footer-social a:hover {
    border-color: var(--accent-1);
    color: var(--accent-1);
    transform: translateY(-2px);
}

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

    .process-timeline {
        grid-template-columns: repeat(2, 1fr);
    }

    .process-timeline::before {
        display: none;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }

    .desktop-only {
        display: none !important;
    }

    .mobile-only {
        display: flex !important;
    }

    .mobile-menu-popover {
        display: block;
    }

    .pill-nav {
        padding: 8px 12px 8px 16px;
        width: 100%;
        justify-content: space-between;
        border-radius: var(--radius-lg);
    }

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

    .hero-actions {
        flex-direction: column;
        align-items: center;
    }



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

    .work-card {
        grid-template-columns: 1fr !important;
    }

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

    .process-timeline {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .footer-top {
        flex-direction: column;
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}


@media (max-width: 480px) {
    .hero {
        padding: 120px 16px 60px;
    }

    .section-container {
        padding: 0 16px;
    }
}

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s var(--ease);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}