:root {
    --bg: #f7f7f5;
    --text: #141414;
    --muted: #5c5c5c;
    --border: #e7e4e1;
    --accent: #8f1d24;
    --accent-2: #5b3db5;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.9);
    --glass: rgba(255, 255, 255, 0.6);
    --glass-border: rgba(231, 228, 225, 0.7);
    --shadow-sm: 0 6px 18px rgba(20, 20, 20, 0.08);
    --shadow-md: 0 14px 40px rgba(20, 20, 20, 0.12);
    --radius-lg: 22px;
    --radius-md: 18px;
    --headline-rest-color: rgba(20, 20, 20, 0.7);
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;
    --space-5: 48px;
    --space-6: 64px;
    --space-7: 80px;
    --space-8: 112px;
    --transition: 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
    --gradient-1: linear-gradient(135deg, #8f1d24, #d4374f, #8f1d24);
    --gradient-2: linear-gradient(135deg, #5b3db5, #7c6cff, #5b3db5);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Inter", sans-serif;
    background: radial-gradient(circle at 15% 20%, rgba(143, 29, 36, 0.08), transparent 42%), radial-gradient(circle at 85% 10%, rgba(91, 61, 181, 0.08), transparent 36%), radial-gradient(circle at 50% 80%, rgba(20, 20, 20, 0.04), transparent 40%), var(--bg);
    color: var(--text);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    cursor: none;
}

body.dark {
    --bg: #0b0f14;
    --text: #e6edf3;
    --muted: #9aa4b2;
    --border: #1f2a37;
    --accent: #c43d45;
    --accent-2: #7c6cff;
    --surface: #111827;
    --surface-soft: rgba(17, 24, 39, 0.92);
    --glass: rgba(17, 24, 39, 0.55);
    --glass-border: rgba(148, 163, 184, 0.2);
    --shadow-sm: 0 8px 20px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 18px 50px rgba(0, 0, 0, 0.55);
    --headline-rest-color: #fff;
    background: radial-gradient(circle at 20% 10%, rgba(124, 108, 255, 0.18), transparent 42%), radial-gradient(circle at 80% 0%, rgba(196, 61, 69, 0.18), transparent 36%), radial-gradient(circle at 50% 80%, rgba(255, 255, 255, 0.04), transparent 40%), var(--bg);
}

h1,
h2,
h3 {
    font-family: "Plus Jakarta Sans", sans-serif;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2rem, 3vw, 3.2rem);
    line-height: 1.08;
}

h2 {
    font-size: clamp(1.6rem, 2.2vw, 2.2rem);
    line-height: 1.15;
}

p {
    font-size: 1.02rem;
    color: var(--muted);
}

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

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

button {
    border: none;
    background: none;
    font: inherit;
    cursor: none;
}

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* === SCROLL PROGRESS === */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: var(--gradient-1);
    z-index: 9999;
    will-change: width;
    contain: layout style;
}

/* === CUSTOM CURSOR === */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
    will-change: transform;
    contain: layout style;
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: -3px;
    left: -3px;
    transition: transform 80ms ease;
}

.cursor-ring {
    width: 36px;
    height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    position: absolute;
    top: -18px;
    left: -18px;
    transition: transform 180ms ease, width 180ms ease, height 180ms ease, top 180ms ease, left 180ms ease;
}

.cursor-hover .cursor-ring {
    width: 56px;
    height: 56px;
    top: -28px;
    left: -28px;
    border-color: rgba(255, 255, 255, 0.8);
}

.cursor-hover .cursor-dot {
    transform: scale(2);
}

/* === NOISE === */
.page-noise {
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='.06'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

/* === FLOATING NODES === */
.floating-nodes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    opacity: 0.35;
    transform: translateY(var(--nodes-parallax, 0px));
}

.floating-nodes::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(20, 20, 20, 0.08) 1px, transparent 1px);
    background-size: 120px 120px;
    opacity: 0.35;
}

.node {
    position: absolute;
    top: 0;
    left: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    box-shadow: 0 10px 26px rgba(20, 20, 20, 0.12);
    display: grid;
    place-items: center;
    pointer-events: none;
    will-change: transform;
    contain: layout style;
}

.node svg {
    width: 26px;
    height: 26px;
    stroke: var(--accent);
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.node:nth-child(3n) svg {
    stroke: var(--accent-2);
}

.node::after {
    content: attr(data-tip);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 12px);
    transform: translateX(-50%);
    background: rgba(20, 20, 20, 0.9);
    color: #fff;
    font-size: 0.78rem;
    padding: 6px 10px;
    border-radius: 8px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}

.node.is-hovered::after {
    opacity: 1;
}

.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
}

/* === HEADER === */
.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: rgba(247, 247, 245, 0.82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

body.dark .site-header {
    background: rgba(16, 16, 16, 0.82);
}

.site-header.scrolled {
    box-shadow: var(--shadow-sm);
    border-color: var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 1.2rem;
}

.logo-badge {
    font-size: 0.6rem;
    font-weight: 800;
    background: var(--gradient-1);
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    letter-spacing: 0.08em;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: 38px;
    height: 38px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.theme-toggle:hover {
    transform: rotate(30deg) scale(1.1);
}

.theme-icon {
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
}

.theme-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--text);
    stroke-width: 1.7;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-icon--sun {
    display: none;
}

body.dark .theme-icon--sun {
    display: grid;
}

body.dark .theme-icon--moon {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: var(--space-3);
}

.nav-links a {
    color: var(--muted);
    transition: color var(--transition);
    position: relative;
    font-size: 0.95rem;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 300ms ease;
}

.nav-links a.active::after,
.nav-links a:hover::after {
    width: 100%;
}

.nav-links a.active,
.nav-links a:hover,
.nav-links a:focus {
    color: var(--text);
}

.nav-toggle {
    display: none;
}

.header-cta {
    display: none;
}

/* === AVAILABILITY DOT === */
.availability-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    margin-right: 4px;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    }

    50% {
        box-shadow: 0 0 16px rgba(34, 197, 94, 0.9);
    }
}

/* === HERO === */
.hero {
    padding: var(--space-7) 0 var(--space-6);
    position: relative;
    z-index: 2;
}

.hero-grid {
    display: grid;
    gap: var(--space-5);
}

.hero-content {
    max-width: 640px;
}

.hero-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 12px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--muted);
    margin-bottom: var(--space-3);
    box-shadow: var(--shadow-sm);
}

.hero-headline {
    display: block;
}

.portrait-inline {
    display: none;
    width: 110px;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
}

.headline-greeting {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
    letter-spacing: 0;
}

.headline-first {
    display: block;
}

.headline-amp {
    display: block;
    font-size: 1rem;
    color: var(--muted);
    font-weight: 400;
    margin: 2px 0;
}

.gradient-text {
    background: var(--gradient-1);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite;
}

.gradient-text-alt {
    background: var(--gradient-2);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-shift 4s ease infinite 0.5s;
}

@keyframes gradient-shift {

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

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

.subheadline {
    margin: var(--space-3) 0;
    max-width: 60ch;
    font-size: 1.08rem;
    line-height: 1.7;
}

.subheadline strong {
    color: var(--text);
}

/* === STATS === */
.stat-row {
    display: flex;
    gap: var(--space-5);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: clamp(2.2rem, 4vw, 3rem);
    font-family: "Plus Jakarta Sans", sans-serif;
    font-weight: 800;
    line-height: 1.1;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}

.stat-item strong span {
    font-size: inherit;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
    margin-top: 2px;
}

/* === HERO ACTIONS === */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

/* === SOCIAL LINKS (hero + footer) === */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: var(--space-3);
}

.social-link {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    display: grid;
    place-items: center;
    transition: var(--transition);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--muted);
    transition: fill var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.social-link:hover svg {
    fill: var(--accent);
}

/* === ROTATING TITLES === */
.rotating-titles {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-3);
    font-size: 1rem;
}

.rotating-label {
    color: var(--muted);
    font-weight: 500;
    white-space: nowrap;
}

.rotating-wrapper {
    position: relative;
    height: 1.5em;
    overflow: hidden;
}

.rotating-item {
    position: absolute;
    top: 0;
    left: 0;
    white-space: nowrap;
    font-weight: 700;
    color: var(--accent);
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 400ms ease, transform 400ms ease;
}

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

.rotating-item.exit {
    opacity: 0;
    transform: translateY(-100%);
}

/* === STATS === */
.stat-row {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-size: 1.8rem;
    font-family: "Plus Jakarta Sans", sans-serif;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-item span {
    font-size: 0.82rem;
    color: var(--muted);
    font-weight: 500;
}

/* === BUTTONS === */
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    font-weight: 600;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    cursor: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 10px 24px rgba(143, 29, 36, 0.3);
}

.btn-glow {
    animation: btn-glow 3s ease-in-out infinite;
}

@keyframes btn-glow {

    0%,
    100% {
        box-shadow: 0 10px 24px rgba(143, 29, 36, 0.3);
    }

    50% {
        box-shadow: 0 10px 40px rgba(143, 29, 36, 0.55), 0 0 20px rgba(143, 29, 36, 0.2);
    }
}

.btn-primary::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: translateX(-120%);
    transition: transform 600ms ease;
}

.btn-primary:hover::after,
.btn-primary:focus::after {
    transform: translateX(120%);
}

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

.header-cta {
    padding: 8px 14px;
    font-size: 0.88rem;
    box-shadow: 0 8px 18px rgba(143, 29, 36, 0.24);
}

.btn-tertiary {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 0.92rem;
    color: var(--text);
    background: transparent;
}

.btn:hover,
.btn:focus {
    transform: translateY(-2px) scale(1.02);
}

.btn-arrow {
    transition: transform 200ms ease;
}

.btn:hover .btn-arrow {
    transform: translateX(4px);
}

/* === SOCIAL LINKS === */
.social-links {
    display: flex;
    gap: 12px;
    margin-top: var(--space-3);
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--surface);
    display: grid;
    place-items: center;
    transition: var(--transition);
}

.social-link svg {
    width: 20px;
    height: 20px;
    fill: var(--muted);
    transition: fill var(--transition);
}

.social-link:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
}

.social-link:hover svg {
    fill: var(--accent);
}

/* === HERO VISUAL === */
.hero-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
}

.portrait-wrap {
    position: relative;
    width: min(440px, 90vw);
    padding: 18px;
    border-radius: 26px;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    box-shadow: var(--shadow-md);
}

.portrait-glow {
    position: absolute;
    inset: -3px;
    border-radius: 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2), var(--accent), var(--accent-2));
    background-size: 300% 300%;
    animation: glow-border 6s ease infinite;
    z-index: -1;
    opacity: 0.7;
    filter: blur(4px);
}

@keyframes glow-border {

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

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



.portrait-halo {
    position: absolute;
    inset: -8% -8% -4% -8%;
    background: radial-gradient(circle at top, rgba(143, 29, 36, 0.25), transparent 60%), radial-gradient(circle at bottom, rgba(91, 61, 181, 0.2), transparent 60%);
    filter: blur(6px);
    z-index: 0;
}

.portrait {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    animation: float 7s ease-in-out infinite;
}

.portrait-status {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #fff;
    z-index: 2;
}

.trust-line {
    font-size: 0.95rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.trust-line a {
    color: var(--text);
    font-weight: 600;
}

/* === SECTIONS === */
.section {
    padding: var(--space-6) 0;
    position: relative;
    z-index: 2;
}

.section-heading {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--space-4);
}

.section-tag {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.heading-underline {
    width: 54px;
    height: 2px;
    background: var(--gradient-1);
}

/* === CARDS === */
.cards-grid {
    display: grid;
    gap: var(--space-3);
}

.card {
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-soft);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* 3D card tilt */
.tilt-card {
    transform-style: preserve-3d;
    perspective: 800px;
}

.icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--border);
    display: grid;
    place-items: center;
    margin-bottom: var(--space-2);
    background: var(--surface);
    transition: var(--transition);
}

.icon-alt {
    border-color: var(--accent-2);
}

.card:hover .icon {
    transform: scale(1.08) rotate(-3deg);
}

.icon svg {
    width: 22px;
    height: 22px;
    stroke: var(--accent);
    stroke-width: 1.6;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-alt svg {
    stroke: var(--accent-2);
}

.examples {
    display: block;
    margin-top: 8px;
    font-size: 0.92rem;
    color: var(--muted);
}

/* === CASE STUDIES === */
.case-badge {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent);
    color: #fff;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.case-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0;
}

.case-stack span {
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--muted);
    background: var(--surface);
}

.case-result {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 0;
}

.result-number {
    font-size: 1.8rem;
    font-weight: 800;
    font-family: "Plus Jakarta Sans", sans-serif;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cta-line {
    margin-top: var(--space-3);
    font-weight: 600;
}

.cta-line a {
    color: var(--accent);
}

/* === WORK === */
.work-type {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 8px;
}

.work-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 16px;
}

.work-stack span {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--text);
}

/* === EXPERTISE / SKILL BARS === */
.expertise-grid {
    display: grid;
    gap: var(--space-3);
}

.expertise-category {
    padding: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.expertise-cat-title {
    font-size: 1rem;
    margin-bottom: var(--space-2);
    display: flex;
    align-items: center;
    gap: 8px;
}

.expertise-cat-title::before {
    content: '';
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: var(--gradient-1);
}

.expertise-category:nth-child(2) .expertise-cat-title::before,
.expertise-category:nth-child(4) .expertise-cat-title::before {
    background: var(--gradient-2);
}

.skill-items {
    display: grid;
    gap: 14px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.skill-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.skill-bar {
    height: 6px;
    background: var(--border);
    border-radius: 999px;
    overflow: hidden;
}

.skill-fill {
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--gradient-1);
    transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.expertise-category:nth-child(2) .skill-fill,
.expertise-category:nth-child(4) .skill-fill {
    background: var(--gradient-2);
}



/* === PROCESS === */
.process-grid {
    display: grid;
    gap: var(--space-3);
}

.process-step {
    padding: var(--space-3);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.process-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 300ms ease;
}

.process-step:hover::before {
    opacity: 1;
}

.process-step:hover {
    transform: translateX(4px);
}

.step-number {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-2);
}

/* === TESTIMONIALS === */
.testimonials-grid .card {
    min-height: 160px;
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.testimonial-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: var(--space-2);
}

.testimonial-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: #fff;
    font-weight: 700;
    font-size: 0.82rem;
    display: grid;
    place-items: center;
}

.testimonial-footer:nth-child(2) .testimonial-avatar {
    background: var(--gradient-2);
}

.testimonial-name {
    display: block;
    font-weight: 700;
    color: var(--text);
    font-size: 0.9rem;
}

.testimonial-company {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
}

/* === ABOUT === */
.about-grid {
    display: grid;
    gap: var(--space-4);
    align-items: start;
}

.about-lead {
    font-size: 1.1rem;
    color: var(--text);
    line-height: 1.8;
}

.about-list {
    list-style: none;
    display: grid;
    gap: 12px;
    margin-top: var(--space-2);
}

.about-list li {
    color: var(--muted);
}

.about-list li::before {
    content: "→ ";
    color: var(--accent);
    font-weight: 700;
    margin-right: 4px;
}

.about-list li strong {
    color: var(--text);
}

.about-highlights {
    display: grid;
    gap: var(--space-2);
}

.highlight-card {
    padding: var(--space-3);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.highlight-number {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    font-family: "Plus Jakarta Sans", sans-serif;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 4px;
}

/* === CONTACT === */
.contact-grid {
    display: grid;
    gap: var(--space-4);
}

.contact-info h3 {
    margin-bottom: var(--space-2);
}

.contact-details {
    margin-top: var(--space-3);
    display: grid;
    gap: 10px;
}

.contact-details p {
    color: var(--text);
    font-size: 0.95rem;
}

.contact-details a {
    color: var(--accent);
    font-weight: 600;
}

.contact-form {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: var(--space-3);
    position: relative;
}

.form-field label {
    font-weight: 600;
    font-size: 0.92rem;
}

input,
select,
textarea {
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 1rem;
    font-family: inherit;
    background: var(--surface);
    color: var(--text);
    transition: border-color 200ms ease, box-shadow 200ms ease;
    cursor: none;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(143, 29, 36, 0.15);
}

input[aria-invalid="true"],
select[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.field-error {
    display: none;
    font-size: 0.8rem;
    color: #ef4444;
    font-weight: 500;
}

.field-error.show {
    display: block;
}

a:focus,
button:focus {
    outline: 2px solid rgba(143, 29, 36, 0.4);
    outline-offset: 2px;
}

.form-success {
    display: none;
    margin-top: var(--space-2);
    color: #22c55e;
    font-weight: 600;
}

.form-success.show {
    display: block;
}

/* === FOOTER === */
.footer {
    padding: var(--space-5) 0 var(--space-4);
    border-top: 1px solid var(--border);
    background: var(--surface);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.footer-logo {
    font-size: 1.1rem;
}

.footer-tagline {
    font-size: 0.88rem;
    color: var(--muted);
    margin-top: 4px;
}

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

.footer-social .social-link {
    width: 36px;
    height: 36px;
}

.footer-social .social-link svg {
    width: 18px;
    height: 18px;
}

.footer-divider {
    height: 1px;
    background: var(--border);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.footer-bottom p {
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    gap: var(--space-2);
}

.footer-links a {
    font-size: 0.88rem;
    color: var(--muted);
    transition: color var(--transition);
}

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

/* === BACK TO TOP === */
.back-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: grid;
    place-items: center;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1000;
    cursor: none;
}

.back-to-top.show {
    opacity: 1;
    pointer-events: auto;
}

/* === MOBILE STICKY CTA === */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    background: var(--surface-soft);
    backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    z-index: 999;
    justify-content: center;
    opacity: 0;
    transform: translateY(100%);
    transition: opacity 300ms ease, transform 300ms ease;
}

.mobile-cta.show {
    opacity: 1;
    transform: translateY(0);
}

.mobile-cta .btn {
    width: 100%;
    max-width: 400px;
    justify-content: center;
}

/* === MODAL === */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.5);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    z-index: 1200;
}

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

.modal-content {
    width: min(640px, 92%);
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    box-shadow: var(--shadow-md);
    position: relative;
    transform: translateY(20px) scale(0.96);
    transition: transform 300ms ease;
}

.modal.open .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 14px;
    right: 16px;
    font-size: 1.4rem;
    cursor: none;
}

.contact-choice-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* === REVEAL ANIMATION === */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 600ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Stagger children */
.cards-grid .reveal:nth-child(2) {
    transition-delay: 80ms;
}

.cards-grid .reveal:nth-child(3) {
    transition-delay: 160ms;
}

.cards-grid .reveal:nth-child(4) {
    transition-delay: 240ms;
}

.cards-grid .reveal:nth-child(5) {
    transition-delay: 320ms;
}

.cards-grid .reveal:nth-child(6) {
    transition-delay: 400ms;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* === RESPONSIVE === */
@media (min-width: 900px) {
    .hero-grid {
        grid-template-columns: 1.2fr 0.8fr;
        align-items: center;
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

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

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

    .header-cta {
        display: inline-flex;
    }

    .floating-nodes .node:nth-child(n+13) {
        display: none;
    }

    .header-actions {
        order: 2;
    }

    .theme-toggle {
        order: 3;
    }
}

@media (max-width: 899px) {
    body {
        cursor: auto;
    }

    button,
    .btn,
    input,
    select,
    textarea {
        cursor: auto;
    }

    .custom-cursor {
        display: none;
    }

    .header-cta {
        display: inline-flex;
    }

    .header-controls {
        gap: 10px;
    }

    .header-actions {
        order: 1;
    }

    .theme-toggle {
        order: 2;
    }

    .nav {
        order: 3;
    }

    .nav-links {
        position: absolute;
        top: 64px;
        right: 4%;
        background: var(--surface);
        border: 1px solid var(--border);
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-md);
        padding: var(--space-3);
        flex-direction: column;
        gap: var(--space-2);
        min-width: 220px;
        opacity: 0;
        transform: translateY(-10px);
        pointer-events: none;
        transition: opacity 200ms ease, transform 200ms ease;
    }

    .nav-links.open {
        display: flex;
        opacity: 1;
        transform: translateY(0);
        pointer-events: auto;
    }

    .nav-toggle {
        display: inline-flex;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        border: 1px solid var(--border);
        border-radius: 12px;
        background: var(--surface);
        cursor: auto;
    }

    .hamburger {
        width: 20px;
        height: 2px;
        background: var(--text);
        position: relative;
        transition: var(--transition);
    }

    .hamburger::before,
    .hamburger::after {
        content: "";
        position: absolute;
        width: 20px;
        height: 2px;
        background: var(--text);
        left: 0;
        transition: var(--transition);
    }

    .hamburger::before {
        top: -6px;
    }

    .hamburger::after {
        top: 6px;
    }

    .nav-toggle[aria-expanded="true"] .hamburger {
        background: transparent;
    }

    .nav-toggle[aria-expanded="true"] .hamburger::before {
        transform: rotate(45deg) translate(4px, 4px);
    }

    .nav-toggle[aria-expanded="true"] .hamburger::after {
        transform: rotate(-45deg) translate(4px, -4px);
    }

    .hero {
        padding-top: var(--space-6);
    }

    .hero-visual {
        display: none;
    }

    .hero-content {
        order: 1;
    }

    .hero-headline {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 14px;
        align-items: center;
    }

    .portrait-inline {
        display: block;
        width: min(160px, 40vw);
        border-radius: 18px;
        box-shadow: var(--shadow-md);
    }

    .hero-headline h1 {
        font-size: clamp(1.55rem, 4.4vw, 2.05rem);
        line-height: 1.1;
    }

    .headline-rest {
        font-size: clamp(0.9rem, 3vw, 1.1rem);
        line-height: 1.25;
    }

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

    .floating-nodes .node:nth-child(n+6) {
        display: none;
    }

    .mobile-cta {
        display: flex;
    }

    .stat-row {
        gap: var(--space-3);
    }

    .stat-item strong {
        font-size: 1.4rem;
    }

    .back-to-top {
        bottom: 80px;
    }

    .about-highlights {
        grid-template-columns: repeat(3, 1fr);
    }
}

@keyframes float {

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

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

@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }

    html {
        scroll-behavior: auto;
    }

    body {
        cursor: auto;
    }

    .custom-cursor {
        display: none;
    }
}