/* ============================================
   MANGO DIGITAL — Premium AI Agency
   Design System & Global Styles
   ============================================ */

:root {
    /* Core Brand — Monochrome */
    --mango:        #ffffff;
    --mango-light:  #e5e5e5;
    --mango-vivid:  #cccccc;
    --mango-glow:   rgba(255, 255, 255, 0.12);

    /* Gradient System — black/white only */
    --gradient-brand:   linear-gradient(135deg, #ffffff 0%, #aaaaaa 100%);
    --gradient-hero:    linear-gradient(135deg, #ffffff 0%, #888888 100%);
    --gradient-accent:  linear-gradient(135deg, #ffffff 0%, #555555 100%);
    --gradient-dark:    linear-gradient(180deg, #0a0a0a 0%, #111111 50%, #0a0a0a 100%);
    --gradient-card:    linear-gradient(135deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    --gradient-glow:    radial-gradient(ellipse at center, rgba(255,255,255,0.06) 0%, transparent 70%);

    /* Backgrounds — deep black */
    --bg-primary:    #0a0a0a;
    --bg-secondary:  #111111;
    --bg-tertiary:   #1a1a1a;
    --bg-card:       #141414;
    --bg-elevated:   #1c1c1c;

    /* Text */
    --text-primary:    #f5f5f5;
    --text-secondary:  #a3a3a3;
    --text-muted:      #525252;

    /* Borders */
    --border-subtle:   rgba(255, 255, 255, 0.06);
    --border-light:    rgba(255, 255, 255, 0.10);
    --border-accent:   rgba(255, 255, 255, 0.20);

    /* Typography */
    --font-display: 'Outfit', sans-serif;
    --font-body: 'Space Grotesk', sans-serif;

    /* Spacing */
    --section-padding: clamp(80px, 12vw, 160px);
    --container-max: 1280px;
    --container-padding: clamp(20px, 5vw, 40px);

    /* Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-quint: cubic-bezier(0.22, 1, 0.36, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

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

    /* Shadows */
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
    --shadow-md: 0 8px 32px rgba(0,0,0,0.5);
    --shadow-lg: 0 16px 64px rgba(0,0,0,0.6);
    --shadow-glow: 0 0 40px rgba(255,255,255,0.06);
    --shadow-glow-lg: 0 0 80px rgba(255,255,255,0.08);
}

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

html {
    scroll-behavior: auto; /* Lenis handles smooth scroll — native smooth causes double-smoothing lag */
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.25) transparent;
}

html::-webkit-scrollbar {
    width: 3px;
}
html::-webkit-scrollbar-track {
    background: transparent;
}
html::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 2px;
}
html::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.4);
}

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: #fff;
    z-index: 999999;
    pointer-events: none;
    transform: scaleX(0);
    transform-origin: left center;
    will-change: transform;
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    cursor: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a[href]:not([href="#"]):not([href^="#"]) {
    cursor: pointer;
}

button, input, select, textarea {
    font-family: inherit;
    cursor: none;
}

button {
    cursor: pointer;
}

select {
    cursor: pointer;
}

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

::selection {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

/* ============================================
   Custom Cursor
   ============================================ */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 7px;
    height: 7px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: width 0.25s var(--ease-out-expo),
                height 0.25s var(--ease-out-expo),
                background 0.25s,
                opacity 0.25s;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    will-change: transform;
    transition: width 0.35s var(--ease-out-expo),
                height 0.35s var(--ease-out-expo),
                background 0.35s var(--ease-out-expo),
                border-color 0.35s,
                box-shadow 0.35s,
                opacity 0.3s;
}

.cursor-dot.hover {
    width: 4px;
    height: 4px;
    background: #fff;
}

.cursor-ring.hover {
    width: 52px;
    height: 52px;
    background: rgba(255, 255, 255, 0.10);
    border-color: rgba(255, 255, 255, 0.75);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.18), inset 0 0 12px rgba(255, 255, 255, 0.06);
}


/* ============================================
   Preloader — Logo Shine
   ============================================ */
.preloader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.7s ease;
}

.preloader.done {
    opacity: 0;
    pointer-events: none;
}

.pl-logo-wrap {
    position: relative;
    width: clamp(80px, 14vw, 140px);
    height: clamp(80px, 14vw, 140px);
    opacity: 0;
    transform: scale(0.88);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
    border-radius: 18px;
}

.preloader.active .pl-logo-wrap {
    opacity: 1;
    transform: scale(1);
}

.pl-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 18px;
}

/* Shine sweep overlay */
.pl-shine {
    position: absolute;
    inset: -20px;
    background: linear-gradient(
        105deg,
        transparent 25%,
        rgba(255, 255, 255, 0.0) 38%,
        rgba(255, 255, 255, 0.60) 50%,
        rgba(255, 255, 255, 0.0) 62%,
        transparent 75%
    );
    transform: translateX(-180%) rotate(12deg);
    pointer-events: none;
    overflow: hidden;
}

.pl-shine.sweep {
    animation: plSweep 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

@keyframes plSweep {
    from { transform: translateX(-180%) rotate(var(--angle, 12deg)); }
    to   { transform: translateX(180%)  rotate(var(--angle, 12deg)); }
}

/* ============================================
   3D Canvas Background
   ============================================ */
#bgCanvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* ============================================
   Container & Layout
   ============================================ */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.section {
    position: relative;
    padding: var(--section-padding) 0;
    z-index: 1;
    overflow: hidden;
    width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    width: 100%;
    margin: 0;
    overflow-x: visible;
    transition: background 0.5s var(--ease-out-expo), padding 0.5s var(--ease-out-expo), box-shadow 0.5s var(--ease-out-expo);
    background: linear-gradient(to bottom, rgba(5,5,5,0.72) 0%, rgba(5,5,5,0.30) 60%, transparent 100%);
}

.navbar.scrolled {
    padding: 12px 0;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-subtle);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.4);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1001;
}

.logo-img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.12));
    transition: filter 0.3s;
}

.nav-logo:hover .logo-img {
    filter: drop-shadow(0 0 16px rgba(255, 255, 255, 0.20));
}

.logo-text {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    color: var(--text-primary);
}

.logo-accent {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    position: relative;
    transition: color 0.3s;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-brand);
    border-radius: 1px;
    transition: width 0.4s var(--ease-out-expo);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

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

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 24px;
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0a;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
    letter-spacing: 0.3px;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    padding: 8px;
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s var(--ease-out-expo);
    transform-origin: center;
}

.nav-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}
.nav-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.nav-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(40px);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s var(--ease-out-expo);
}

.mobile-menu.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.mobile-link {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    color: var(--text-secondary);
    transition: color 0.3s, transform 0.5s var(--ease-out-expo);
    opacity: 0;
    transform: translateY(30px);
}

.mobile-menu.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu.active .mobile-link:nth-child(1) { transition-delay: 0.1s; }
.mobile-menu.active .mobile-link:nth-child(2) { transition-delay: 0.15s; }
.mobile-menu.active .mobile-link:nth-child(3) { transition-delay: 0.2s; }
.mobile-menu.active .mobile-link:nth-child(4) { transition-delay: 0.25s; }
.mobile-menu.active .mobile-link:nth-child(5) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-link:nth-child(6) { transition-delay: 0.35s; }

.mobile-link:hover {
    color: var(--mango);
}

/* ============================================
   Hero Section
   ============================================ */

/* Scroll stage: tall container that scrolls while hero sticks */
.hero-stage {
    position: relative;
    height: 550vh;
}

/* Black curtain that fades in at end of hero scroll — cinematic wipe to next section */
.hero-exit-curtain {
    position: absolute;
    inset: 0;
    background: #0a0a0a;
    opacity: 0;
    pointer-events: none;
    z-index: 50;
    will-change: opacity;
}

/* Sequence canvas drawn frame-by-frame via JS */
.hero-seq-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

.hero {
    position: sticky;
    top: 0;
    height: 100vh;
    min-height: unset;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(140px, 16vh, 180px) var(--container-padding) 60px;
    z-index: 1;
    overflow: hidden;
    width: 100%;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: var(--gradient-glow);
    opacity: 0.6;
    pointer-events: none;
    animation: pulseGlow 6s ease-in-out infinite;
    z-index: 2;
}

.hero-content {
    max-width: 900px;
    position: relative;
    z-index: 3;
    will-change: transform, opacity;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px 8px 14px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-full);
    font-size: 13px;
    font-weight: 500;
    color: var(--mango-light);
    letter-spacing: 0.5px;
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mango);
    animation: pulse 2s ease-in-out infinite;
    box-shadow: 0 0 12px var(--mango-glow);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -1.5px;
    margin-bottom: 28px;
}

.title-line {
    display: block;
    overflow: hidden;
}

.title-gradient {
    color: var(--text-muted);
    font-weight: 400;
    -webkit-text-fill-color: var(--text-muted);
}

/* Word-split reveal — each word slides up from clip */
.hero-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(60px);
    animation: heroWordIn 1.0s var(--ease-out-expo) forwards;
    will-change: transform, opacity;
}

@keyframes heroWordIn {
    0%   { opacity: 0; transform: translateY(60px); }
    30%  { opacity: 1; }
    100% { opacity: 1; transform: translateY(0); }
}

/* Overlay gradient to blend frame sequence into dark site */
.hero-seq-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom,
            rgba(10,10,10,0.55) 0%,
            rgba(10,10,10,0.12) 25%,
            rgba(10,10,10,0.08) 55%,
            rgba(10,10,10,0.70) 85%,
            rgba(10,10,10,0.92) 100%),
        radial-gradient(ellipse at center, transparent 30%, rgba(10,10,10,0.45) 100%);
    z-index: 1;
    pointer-events: none;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(15px, 1.6vw, 18px);
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.65;
    font-weight: 400;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 600;
    border-radius: var(--radius-full);
    transition: all 0.4s var(--ease-out-expo);
    border: none;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    color: #07070a;
    background: var(--gradient-brand);
    box-shadow: 0 4px 24px rgba(255, 255, 255, 0.25);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.3) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 40px rgba(255, 255, 255, 0.35);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-ghost {
    color: var(--text-primary);
    background: transparent;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--mango);
    transform: translateY(-3px);
}

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

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

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

.stat-number {
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-flex;
    align-items: baseline;
    vertical-align: baseline;
}

.stat-plus {
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    margin-top: 4px;
}

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

/* ── Digit Roller ──────────────────────────────── */
.dr-wrap {
    display: inline-flex;
    align-items: flex-end;
    gap: 0;
    vertical-align: middle;
    line-height: 1;
}
.dr-cell {
    overflow: hidden;
    height: 1em;
    line-height: 1;
}
.dr-strip {
    display: flex;
    flex-direction: column;
    transform: translateY(0);
    will-change: transform;
    line-height: 1;
}
.dr-strip span {
    display: block;
    height: 1em;
    line-height: 1;
    text-align: center;
}
.dr-cell.dr-roll .dr-strip {
    transform: translateY(calc(var(--dd, 0) * -1em));
    transition: transform 1.6s cubic-bezier(0.16, 1, 0.3, 1) var(--ds, 0s);
}
.dr-sep {
    display: inline-block;
    line-height: 1;
    vertical-align: middle;
}

/* Gradient for digit roller inside .stat-number */
.stat-number .dr-strip span {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Scroll Indicator */
.hero-scroll-indicator {
    position: absolute;
    bottom: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.scroll-line {
    width: 1px;
    height: 60px;
    background: linear-gradient(to bottom, var(--mango), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

.hero-scroll-indicator span {
    font-size: 11px;
    color: var(--text-muted);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    color: var(--mango);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
    position: relative;
    padding: 0 20px;
}

.section-tag::before,
.section-tag::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 30px;
    height: 1px;
    background: var(--mango);
    opacity: 0.4;
}

.section-tag::before { right: 100%; }
.section-tag::after { left: 100%; }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -1px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 16px auto 0;
    line-height: 1.7;
}

/* ============================================
   Scroll-velocity Marquee Strip
   ============================================ */
.sv-marquee {
    position: relative;
    width: 100%;
    overflow: hidden;
    padding: 22px 0;
    background: #0a0a0a;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 2;
}

.sv-belt {
    display: flex;
    align-items: center;
    gap: 0;
    white-space: nowrap;
    will-change: transform;
    font-family: var(--font-display);
    font-size: clamp(11px, 1.1vw, 14px);
    font-weight: 700;
    letter-spacing: 0.25em;
    color: rgba(255,255,255,0.18);
}

.sv-belt span {
    padding: 0 28px;
}

.sv-dot {
    color: rgba(255,255,255,0.35) !important;
    padding: 0 4px !important;
    font-size: 10px;
}

/* ============================================
   Clip-path Line Reveals
   ============================================ */
/* word-level reveal — outer clip + inner animated span */
[data-reveal="lines"] .word-inner {
    will-change: transform;
}

/* ============================================
   Parallax image layer inside svc-card
   ============================================ */
.svc-kb {
    will-change: transform;
    transform-origin: center center;
}

/* ============================================
   About — Horizontal Scroll
   ============================================ */

/* Tall stage drives the vertical scroll budget */
.about-hscroll-stage {
    position: relative;
    height: 350vh;
}

/* Section pins to viewport while stage scrolls */
.about-section {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    perspective: 1600px;
    perspective-origin: 50% 50%;
    background:
        radial-gradient(ellipse 55% 50% at 18% 28%, rgba(255,255,255,0.07) 0%, transparent 65%),
        radial-gradient(ellipse 45% 55% at 82% 72%, rgba(255,255,255,0.05) 0%, transparent 60%),
        radial-gradient(ellipse 70% 45% at 50% 50%, rgba(255,255,255,0.03) 0%, transparent 75%),
        radial-gradient(ellipse 35% 35% at 65% 18%, rgba(255,255,255,0.04) 0%, transparent 55%),
        #111111;
}

/* Stars canvas — full-bleed behind about panels */
.about-stars-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}

/* Portfolio section galaxy stars canvas */
.port-stars-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 0;
    opacity: 0.65;
}

/* Flame canvas — full-bleed background, opacity kept low so text dominates */
.about-flame-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    z-index: 0;
    opacity: 0.40;
}

/* Horizontal track — 3 × 100vw panels in a row */
.about-hscroll-track {
    display: flex;
    width: 300vw;
    height: 100%;
    will-change: transform;
    position: relative;
    z-index: 2;
    transform-style: preserve-3d;
}

/* Entrance fade */
.about-animate-wrap {
    opacity: 0;
    transition: opacity 1s cubic-bezier(0.16,1,0.3,1) 0.1s;
}
.about-animate-wrap.about-entered {
    opacity: 1;
}

/* Each panel = exactly one viewport wide */
.about-panel {
    min-width: 100vw;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: clamp(80px, 11vh, 130px);
    transform-origin: center center;
}

/* Full-width panel inner — no max-width cap */
.about-panel-inner {
    width: 100%;
    padding: 0 clamp(48px, 7vw, 120px);
}

/* Panel 1: split layout — title left, stats right */
.about-panel-split {
    display: flex;
    align-items: center;
    gap: 0;
}

.about-split-left {
    flex: 0 0 56%;
    padding-right: clamp(40px, 5vw, 80px);
}

/* Vertical divider between columns */
.about-split-divider {
    width: 1px;
    height: clamp(220px, 30vh, 380px);
    background: rgba(255,255,255,0.12);
    flex-shrink: 0;
}

.about-split-right {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding-left: clamp(40px, 5vw, 80px);
    gap: 0;
}

/* Override section-title size inside about panel — much larger */
.about-panel .section-title {
    font-size: clamp(52px, 7.5vw, 112px);
    line-height: 1.06;
    letter-spacing: -3px;
    margin-top: 20px;
}

/* Stats column in right pane */
.about-stats-col {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.asr-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 28px 0;
}

.asr-num {
    font-family: var(--font-display);
    font-size: clamp(52px, 6vw, 80px);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    letter-spacing: -2px;
}

.asr-num sup {
    font-size: 0.4em;
    vertical-align: super;
    color: var(--mango);
}

.asr-label {
    font-size: 13px;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Horizontal divider between stat items */
.asr-rule {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.10);
}

/* Scroll hint text */
.about-scroll-hint {
    margin-top: 40px;
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.08em;
    animation: hintPulse 2.5s ease-in-out infinite;
}

@keyframes hintPulse {
    0%, 100% { opacity: 0.3; }
    50%       { opacity: 0.7; }
}

/* Panel 2 — wider story text */
.about-lead {
    font-size: clamp(18px, 2.2vw, 28px);
    font-weight: 500;
    color: var(--text-primary);
    line-height: 1.55;
    margin-bottom: 28px;
    max-width: 820px;
}

.about-body {
    color: var(--text-secondary);
    margin-bottom: 48px;
    line-height: 1.75;
    max-width: 660px;
    font-size: clamp(14px, 1.1vw, 16px);
}

/* Feature grid — 3 cols for full width */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.about-feature {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 24px;
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 12px;
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(6px);
}

.about-feature .feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.7);
    flex-shrink: 0;
}

.about-feature h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.about-feature p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}

/* Panel 3 visual */
.about-panel-inner--visual {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 40px;
    max-width: none;
}

/* Panel 3 — big display number */
.about-p3-number {
    font-family: var(--font-display);
    font-size: clamp(80px, 12vw, 160px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -4px;
    color: var(--text-primary);
    margin: 16px 0 8px;
}
.about-p3-number sup {
    font-size: 0.38em;
    vertical-align: super;
    color: var(--mango);
    letter-spacing: 0;
}
.about-p3-label {
    font-size: clamp(14px, 1.4vw, 18px);
    font-weight: 500;
    color: var(--text-muted);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 24px;
}
.about-p3-cta { margin-top: 16px; }

/* Panel 3 right — neural card fills the column */
.about-p3-right {
    align-items: stretch !important;
}

/* Larger card for panel 3 */
.about-card-full {
    max-width: none !important;
    aspect-ratio: 4/3;
    height: clamp(320px, 50vh, 540px);
    width: 100%;
}

/* Card overlay stats — displayed at bottom of neural card */
.card-overlay-stats {
    display: flex;
    align-items: center;
    gap: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 16px 24px;
}
.cos-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 0 20px;
}
.cos-item:first-child { padding-left: 0; }
.cos-item:last-child  { padding-right: 0; }
.cos-num {
    font-family: var(--font-display);
    font-size: clamp(22px, 2.5vw, 36px);
    font-weight: 800;
    color: #fff;
    line-height: 1;
}
.cos-num sup { font-size: 0.45em; color: var(--mango); }
.cos-label {
    font-size: 11px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.cos-sep {
    width: 1px;
    height: 32px;
    background: rgba(255,255,255,0.1);
    flex-shrink: 0;
}

/* Card corner bracket decorations */
.card-corner {
    position: absolute;
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.card-corner--tl { top: 12px; left: 12px; border-top: 1.5px solid rgba(255,255,255,0.3); border-left: 1.5px solid rgba(255,255,255,0.3); }
.card-corner--tr { top: 12px; right: 12px; border-top: 1.5px solid rgba(255,255,255,0.3); border-right: 1.5px solid rgba(255,255,255,0.3); }
.card-corner--bl { bottom: 12px; left: 12px; border-bottom: 1.5px solid rgba(255,255,255,0.3); border-left: 1.5px solid rgba(255,255,255,0.3); }
.card-corner--br { bottom: 12px; right: 12px; border-bottom: 1.5px solid rgba(255,255,255,0.3); border-right: 1.5px solid rgba(255,255,255,0.3); }

/* Progress dots */
.about-progress-dots {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.apd {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    transition: background 0.4s, transform 0.4s;
}

.apd.active {
    background: #fff;
    transform: scale(1.4);
}

.about-grid {
    display: none; /* replaced by horizontal panels */
}


/* About 3D Card */
.about-visual {
    perspective: 1000px;
}

.about-3d-card {
    width: 100%;
    aspect-ratio: 1;
    max-width: 480px;
    margin: 0 auto;
    border-radius: var(--radius-xl);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.6s var(--ease-out-expo);
}

.about-3d-card:hover {
    transform: rotateY(-5deg) rotateX(5deg);
}

.card-3d-inner {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.neural-network {
    position: absolute;
    inset: 0;
    opacity: 0.5;
}

.card-3d-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.card-3d-stat .big-number {
    font-family: var(--font-display);
    font-size: 80px;
    font-weight: 900;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    line-height: 1;
}

.card-3d-stat span:last-child {
    font-size: 16px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* ============================================
   Services Section
   ============================================ */
.services-section {
    background: var(--bg-secondary);
    position: relative;
}

.sequence-sticky-wrapper {
    position: sticky;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 0;
    overflow: hidden;
}

#servicesSequenceCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.75;
    transition: opacity 0.5s;
}

.sequence-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(7,7,10,0.55) 0%,
        rgba(7,7,10,0.12) 20%,
        rgba(7,7,10,0.08) 55%,
        rgba(7,7,10,0.70) 82%,
        rgba(7,7,10,0.96) 100%
    );
    pointer-events: none;
}

/* ── Canvas overlay: content on top of man ──────────── */
.svc-canvas-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 clamp(32px, 6vw, 100px) clamp(36px, 5vh, 64px);
    pointer-events: none;
}

/* ── Main text block ─────────────────────────────────── */
.svc-co-text {
    position: relative;
    max-width: 680px;
}

.svc-co-tag {
    display: inline-block;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 16px;
}

.svc-co-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(38px, 5.5vw, 76px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -2px;
    color: var(--text-primary);
    margin: 0 0 16px;
}

.svc-co-sub {
    font-size: clamp(13px, 1.3vw, 16px);
    color: rgba(255,255,255,0.55);
    line-height: 1.6;
    max-width: 560px;
    margin-bottom: 24px;
}

/* Stats bar inside canvas overlay */
.svc-canvas-overlay .svc-stats-bar {
    padding: 0;
    border-bottom: none;
    margin-bottom: 20px;
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 18px;
    gap: 0;
    background: rgba(0,0,0,0.28);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    padding: 12px 20px;
    display: inline-flex;
    pointer-events: auto;
}

.svc-canvas-overlay .svc-stat-item {
    padding: 4px 16px;
}

.svc-canvas-overlay .svc-stat-sep {
    height: 32px;
}

.svc-co-scroll-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.06em;
    margin-top: 18px;
    animation: hintBob 2.4s ease-in-out infinite;
}

@keyframes hintBob {
    0%,100% { transform: translateY(0); opacity: 0.35; }
    50% { transform: translateY(4px); opacity: 0.6; }
}

/* ── Floating UI/UX graphics ─────────────────────────── */
.svc-float-graphics {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* Subtle grid background */
.sfg-grid-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 1;
}

/* Glassmorphism metric cards */
.sfg-card {
    position: absolute;
    background: rgba(12,12,16,0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 12px;
    padding: 14px 18px;
    min-width: 180px;
    pointer-events: none;
}

.sfg-card--tr {
    top: clamp(70px, 9vh, 110px);
    right: clamp(24px, 4vw, 60px);
    animation: sfgFloat 6.5s ease-in-out infinite;
}

.sfg-card--mr {
    top: 50%;
    right: clamp(24px, 4vw, 60px);
    transform: translateY(-50%);
    animation: sfgFloat 8s ease-in-out 1.3s infinite;
}

.sfg-card--tl {
    top: clamp(70px, 9vh, 110px);
    left: clamp(24px, 4vw, 60px);
    min-width: 160px;
    animation: sfgFloat 7.2s ease-in-out 0.6s infinite;
}

@keyframes sfgFloat {
    0%,100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.sfg-card--mr { animation-name: sfgFloatCenter; }
@keyframes sfgFloatCenter {
    0%,100% { transform: translateY(calc(-50% + 0px)); }
    50%      { transform: translateY(calc(-50% - 10px)); }
}

.sfg-card-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    margin-bottom: 8px;
}
.sfg-dot-green { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
.sfg-dot-white { background: rgba(255,255,255,0.7); box-shadow: 0 0 8px rgba(255,255,255,0.4); }

.sfg-card-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.45);
    margin-bottom: 4px;
}

.sfg-card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-bottom: 8px;
}

.sfg-unit {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255,255,255,0.4);
}

.sfg-bar {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}

.sfg-bar-fill {
    height: 100%;
    background: linear-gradient(to right, rgba(255,255,255,0.5), #fff);
    border-radius: 2px;
    animation: barGrow 1.8s ease-out 0.5s both;
}

@keyframes barGrow {
    from { width: 0 !important; }
}

.sfg-trend {
    font-size: 11px;
    color: #4ade80;
    letter-spacing: 0.02em;
}

.sfg-stars-row {
    font-size: 14px;
    color: #fff;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.sfg-card-sub {
    font-size: 10px;
    color: rgba(255,255,255,0.35);
    letter-spacing: 0.05em;
}

/* Floating small skill dots */
.sfg-skill-dot {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.15);
    font-size: 9.5px;
    font-weight: 700;
    color: rgba(255,255,255,0.7);
    letter-spacing: 0.04em;
    backdrop-filter: blur(6px);
    text-transform: uppercase;
}

.sd-1 { top: 32%; left: 38%; animation: sdFloat 5.5s ease-in-out infinite; }
.sd-2 { top: 18%; left: 55%; animation: sdFloat 7s ease-in-out 1s infinite; }
.sd-3 { top: 42%; left: 58%; animation: sdFloat 6.2s ease-in-out 0.5s infinite; }
.sd-4 { top: 25%; left: 35%; animation: sdFloat 6.8s ease-in-out 1.8s infinite; }
.sd-5 { top: 52%; left: 44%; animation: sdFloat 5.8s ease-in-out 0.9s infinite; }

@keyframes sdFloat {
    0%,100% { transform: translate(0,0); }
    33%      { transform: translate(6px,-10px); }
    66%      { transform: translate(-5px,5px); }
}

/* Crosshair decorations */
.sfg-crosshair {
    position: absolute;
    width: 20px; height: 20px;
    opacity: 0.3;
}

.sfg-crosshair::before,
.sfg-crosshair::after {
    content: '';
    position: absolute;
    background: rgba(255,255,255,0.6);
}

.sfg-crosshair::before {
    width: 1px; height: 100%;
    left: 50%; transform: translateX(-50%);
}

.sfg-crosshair::after {
    height: 1px; width: 100%;
    top: 50%; transform: translateY(-50%);
}

.sfg-cross-1 {
    top: 15%;
    left: 28%;
    animation: crossPulse 4s ease-in-out infinite;
}

.sfg-cross-2 {
    bottom: 30%;
    right: 38%;
    animation: crossPulse 5.5s ease-in-out 1.2s infinite;
}

@keyframes crossPulse {
    0%,100% { opacity: 0.18; transform: scale(1); }
    50%      { opacity: 0.45; transform: scale(1.3); }
}

/* ── Skills constellation ────────────────────────────── */
.svc-skills-viz {
    margin-top: 60px;
    padding: clamp(40px, 5vh, 72px) 0 clamp(48px, 6vh, 80px);
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    position: relative;
    overflow: hidden;
}

.svc-skills-viz::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
    mask-image: radial-gradient(ellipse 80% 100% at 50% 50%, black 40%, transparent 100%);
}

.ssv-header {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.ssv-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(18px, 2vw, 26px);
    font-weight: 700;
    color: var(--text-primary);
}

.ssv-sub {
    font-size: 12px;
    color: var(--text-muted);
    letter-spacing: 0.04em;
}

.ssv-constellation {
    position: relative;
    width: 100%;
    height: clamp(240px, 30vh, 340px);
    z-index: 2;
}

.ssv-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.ssv-node {
    position: absolute;
    left: var(--nx);
    top: var(--ny);
    transform: translate(-50%, -50%);
    padding: 8px 20px;
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 600;
    color: rgba(255,255,255,0.6);
    background: rgba(14,14,14,0.85);
    cursor: default;
    white-space: nowrap;
    will-change: transform;
    animation: nodeFloat var(--ndur, 6s) ease-in-out var(--nd, 0s) infinite;
    transition: border-color 0.3s ease, color 0.3s ease, background 0.3s ease, box-shadow 0.3s ease;
    z-index: 1;
}

.ssv-node:hover {
    border-color: rgba(255,255,255,0.55);
    color: #fff;
    background: rgba(30,30,30,0.95);
    box-shadow: 0 0 24px rgba(255,255,255,0.10), 0 0 0 1px rgba(255,255,255,0.08);
}

.ssv-node.ssv-primary {
    border-color: rgba(255,255,255,0.32);
    color: rgba(255,255,255,0.9);
    background: rgba(22,22,22,0.92);
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

.ssv-node-pulse {
    display: none; /* hidden by default */
    position: absolute;
    inset: -5px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.18);
    animation: nodePulse var(--ndur, 4s) ease-out var(--nd, 0s) infinite;
    pointer-events: none;
}

.ssv-node.ssv-primary .ssv-node-pulse {
    display: block; /* only primary nodes get the pulse ring */
}

@keyframes nodeFloat {
    0%,100% { transform: translate(-50%, calc(-50% + 0px)); }
    50%      { transform: translate(-50%, calc(-50% - 5px)); }
}

@keyframes nodePulse {
    0%   { transform: scale(1); opacity: 0.6; }
    60%  { transform: scale(1.9); opacity: 0; }
    100% { transform: scale(1.9); opacity: 0; }
}

.services-section .container {
    position: relative;
    z-index: 1;
    padding-top: 60px;
}

.services-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
    pointer-events: none;
}

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

.service-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.5s var(--ease-out-expo);
    overflow: hidden;
    cursor: pointer;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s var(--ease-out-expo);
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-accent);
    box-shadow: var(--shadow-glow);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card.featured {
    border-color: var(--border-accent);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, var(--bg-card) 100%);
}

.service-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #07070a;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    letter-spacing: 0.5px;
}

.service-icon-wrap {
    margin-bottom: 24px;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--mango);
    transition: all 0.3s var(--ease-out-expo);
}

.service-card:hover .service-icon {
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
}

.service-card h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 12px;
}

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

.service-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.service-tags span {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--mango);
    transition: gap 0.3s var(--ease-out-expo);
}

.service-link:hover {
    gap: 12px;
}

/* ============================================
   Process Section
   ============================================ */
.process-section {
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

/* Canvas fire overlay */
.proc-fire-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Ambient background orbs */
.proc-bg-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(90px);
    z-index: 0;
}
.proc-orb-a {
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(255,255,255,0.022) 0%, transparent 70%);
    top: -160px;
    left: -160px;
    animation: procOrbA 15s ease-in-out infinite;
}
.proc-orb-b {
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(255,215,100,0.028) 0%, transparent 70%);
    bottom: -60px;
    right: 8%;
    animation: procOrbB 19s ease-in-out infinite;
}
.proc-orb-c {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, rgba(200,225,255,0.018) 0%, transparent 70%);
    top: 38%;
    right: -80px;
    animation: procOrbC 11s ease-in-out infinite;
}
@keyframes procOrbA {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%       { transform: translate(70px,90px) scale(1.08); }
}
@keyframes procOrbB {
    0%, 100% { transform: translate(0,0); }
    50%       { transform: translate(-55px,-75px); }
}
@keyframes procOrbC {
    0%, 100% { transform: translate(0,0) scale(1); }
    50%       { transform: translate(-25px,45px) scale(0.88); }
}

/* Floating sparks container */
.proc-sparks {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}
.proc-spark {
    position: absolute;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    animation: procSparkFloat linear infinite;
}
@keyframes procSparkFloat {
    0%   { transform: translateY(0) translateX(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    80%  { opacity: 0.5; }
    100% { transform: translateY(-120px) translateX(var(--dx, 20px)) scale(0.2); opacity: 0; }
}

/* Container above canvas */
.proc-container {
    position: relative;
    z-index: 2;
}

.process-timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    perspective: 1600px;
    perspective-origin: 50% -8%;
}

/* ── 3D scroll-depth entrance for process steps ─── */
.process-section .process-step[data-animate] {
    opacity: 0;
    transform: rotateX(-52deg) translateZ(-70px) translateY(45px);
    transform-origin: 50% 0%;
    transition:
        opacity   0.85s cubic-bezier(0.22, 1, 0.36, 1),
        transform 1.05s cubic-bezier(0.22, 1, 0.36, 1),
        background    0.6s ease,
        border-color  0.6s ease,
        box-shadow    0.6s ease;
}

.process-section .process-step[data-animate].visible {
    opacity: 1;
    transform: rotateX(0deg) translateZ(0px) translateY(0px);
}

/* Proc-container receives scroll-driven perspective tilt from JS */
.proc-container {
    transform-origin: 50% 50%;
    will-change: transform;
}

/* Scroll-driven line */
.process-line {
    position: absolute;
    left: 28px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255,255,255,0.07);
    overflow: visible;
}

.proc-line-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: linear-gradient(to bottom,
        rgba(255,255,255,0.9),
        rgba(255,255,255,0.55),
        rgba(255,215,100,0.35)
    );
    box-shadow: 0 0 8px rgba(255,255,255,0.65), 0 0 20px rgba(255,255,255,0.25);
}

/* Glowing tip — now a direct child of .process-timeline, always on top */
.proc-fire-tip {
    position: absolute;
    left: 29px; /* center of the 2px line at left:28px */
    top: 0;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(255,255,255,0.12),
        0 0 10px 3px rgba(255,255,255,0.95),
        0 0 28px 8px rgba(255,255,255,0.55),
        0 0 60px 18px rgba(210,228,255,0.25),
        0 0 100px 30px rgba(200,220,255,0.10);
    z-index: 100;
    pointer-events: none;
}

/* Step cards — transform fully handled by JS float loop */
.process-step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 32px;
    padding: 28px 28px 28px 88px;
    margin-bottom: 10px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.01);
    backdrop-filter: blur(8px);
    will-change: transform;
    transition: background 0.6s, border-color 0.6s, box-shadow 0.6s;
}
.process-step.step-lit {
    background: rgba(255,255,255,0.038);
    border-color: rgba(255,255,255,0.12);
    box-shadow:
        0 12px 48px rgba(255,255,255,0.03),
        0 2px 16px rgba(255,255,255,0.02),
        inset 0 0 28px rgba(255,255,255,0.012);
}
.process-step:hover {
    background: rgba(255,255,255,0.055);
    border-color: rgba(255,255,255,0.16);
    box-shadow:
        0 20px 64px rgba(255,255,255,0.05),
        inset 0 0 32px rgba(255,255,255,0.02);
}

.step-number {
    position: absolute;
    left: 0;
    top: 28px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: rgba(255,255,255,0.55);
    background: var(--bg-primary);
    border: 2px solid rgba(255,255,255,0.10);
    border-radius: 50%;
    z-index: 2;
    will-change: transform;
    transition: color 0.5s, border-color 0.5s, box-shadow 0.5s, background 0.5s;
}
.process-step.step-lit .step-number {
    color: #ffffff;
    border-color: rgba(255,255,255,0.60);
    background: rgba(255,255,255,0.04);
    box-shadow:
        0 0 0 5px rgba(255,255,255,0.06),
        0 0 18px 4px rgba(255,255,255,0.22),
        0 0 40px 10px rgba(255,255,255,0.10);
}
.process-step:hover .step-number {
    border-color: rgba(255,255,255,0.80);
    background: rgba(255,255,255,0.08);
    box-shadow:
        0 0 0 5px rgba(255,255,255,0.08),
        0 0 24px 6px rgba(255,255,255,0.30),
        0 0 50px 14px rgba(255,255,255,0.12);
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.88);
}

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

.step-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
    transition: color 0.5s, transform 0.5s var(--ease-out-expo);
}
.process-step.step-lit .step-icon {
    color: rgba(255,255,255,0.55);
    transform: scale(1.08);
}

/* ============================================
   Process → Portfolio Reveal Divider
   ============================================ */
.proc-port-reveal {
    position: relative;
    height: 4px;
    overflow: visible;
    z-index: 20;
    background: transparent;
}

/* The expanding scanline */
.proc-port-reveal::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scaleX(0);
    width: 100vw;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.15) 12%,
        rgba(255,255,255,0.9) 40%,
        rgba(255,255,255,1)   50%,
        rgba(255,255,255,0.9) 60%,
        rgba(255,255,255,0.15) 88%,
        transparent 100%
    );
    transition: transform 1.0s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Bloom glow behind the scanline */
.proc-port-reveal::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scaleX(0);
    width: 100vw;
    height: 160px;
    background: radial-gradient(
        ellipse 60% 100% at 50% 50%,
        rgba(255,255,255,0.055) 0%,
        transparent 70%
    );
    transition: transform 1.15s cubic-bezier(0.22, 1, 0.36, 1) 0.05s;
}

.proc-port-reveal.ppr-activated::before,
.proc-port-reveal.ppr-activated::after {
    transform: translate(-50%, -50%) scaleX(1);
}

/* Particle canvas sits on the divider */
.ppr-canvas {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 260px;
    pointer-events: none;
}

/* ── Portfolio section 3D entrance ─────────── */
.portfolio-section {
    transform: perspective(1100px) rotateX(-13deg) translateY(60px) scale(0.95);
    transform-origin: 50% 0%;
    transition: none;
    will-change: transform;
}

.portfolio-section.port-risen {
    transform: none;
    transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Override portfolio card entrance to 3D deal-in */
.portfolio-section .portfolio-card[data-animate] {
    opacity: 0;
    transform: perspective(900px) rotateY(-22deg) translateX(-28px) scale(0.93);
    transform-origin: 0% 50%;
    transition:
        opacity   0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.95s cubic-bezier(0.22, 1, 0.36, 1);
}

.portfolio-section .portfolio-card[data-animate].visible {
    opacity: 1;
    transform: perspective(900px) rotateY(0deg) translateX(0) scale(1);
}

/* ============================================
   Portfolio Section
   ============================================ */
.portfolio-section {
    background:
        radial-gradient(ellipse 90% 55% at 50% 40%, rgba(255,255,255,0.045) 0%, transparent 70%),
        var(--bg-secondary);
    position: relative;
}

.portfolio-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(to bottom, var(--bg-primary), transparent);
}

/* Subtle light grid gap so cards don't bleed into pure black */
.portfolio-section .portfolio-grid {
    background:
        radial-gradient(ellipse 70% 50% at 50% 50%, rgba(255,255,255,0.028) 0%, transparent 100%);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 340px;
    gap: 14px;
    margin-top: 56px;
}

.portfolio-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.45s var(--ease-out-expo), box-shadow 0.45s var(--ease-out-expo);
}

.portfolio-card:hover,
.portfolio-section .portfolio-card[data-animate].visible:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* Image-card hover overrides — zoom image, no card scale */
.portfolio-card.pw-has-img:hover,
.portfolio-section .portfolio-card.pw-has-img[data-animate].visible:hover {
    transform: translateY(-8px);
    box-shadow: 0 28px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.13);
}

.portfolio-large {
    grid-column: span 2;
}

.portfolio-wide {
    grid-column: span 3;
    grid-row: span 1;
}

.portfolio-visual {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.portfolio-3d-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.6;
    animation: floatShape 8s ease-in-out infinite;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.2);
    top: 20%;
    right: 10%;
}

.shape-2 {
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.15);
    bottom: 20%;
    left: 15%;
    animation-delay: -3s;
}

.shape-3 {
    width: 160px;
    height: 160px;
    background: rgba(255,255,255,0.2);
    top: 30%;
    left: 20%;
}

.shape-4 {
    width: 140px;
    height: 140px;
    background: rgba(255,255,255,0.2);
    bottom: 25%;
    right: 15%;
    animation-delay: -2s;
}

.shape-5 {
    width: 180px;
    height: 180px;
    background: rgba(255,255,255,0.15);
    top: 20%;
    left: 10%;
}

.shape-6 {
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.2);
    bottom: 20%;
    right: 20%;
    animation-delay: -4s;
}

.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 60%);
}

/* ── Portfolio card themed backgrounds ─────────────────── */
.pc-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: inherit;
}

/* Per-card dark gradient palette */
.pc-bg--finance { background: linear-gradient(135deg, #0a0a0f 0%, #111118 55%, #0d0d14 100%); }
.pc-bg--medi    { background: linear-gradient(135deg, #090c0c 0%, #0e1212 55%, #0a0d0f 100%); }
.pc-bg--logi    { background: linear-gradient(135deg, #0c0a0a 0%, #130f0f 55%, #0d0a0c 100%); }
.pc-bg--retail  { background: linear-gradient(135deg, #08080f 0%, #10101c 55%, #0b0b14 100%); }

/* Fine grid lines */
.pc-grid-lines {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 56px 56px;
}

/* Glowing blobs */
.pc-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    pointer-events: none;
}
.pc-orb--a {
    width: 240px; height: 240px;
    top: -60px; right: -40px;
    background: rgba(255,255,255,0.06);
}
.pc-orb--b {
    width: 160px; height: 160px;
    bottom: -30px; left: -20px;
    background: rgba(255,255,255,0.04);
}

/* Hover veil — brightens the card on hover */
.pc-hover-veil {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(255,255,255,0);
    transition: background 0.4s ease;
    z-index: 1;
    pointer-events: none;
}
.portfolio-card:hover .pc-hover-veil {
    background: rgba(255,255,255,0.04);
}

/* Bottom gradient overlay so text is always readable */
.pc-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 55%, transparent 100%);
    pointer-events: none;
}

/* ── Infographic container ── */
.pc-infographic {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    border-radius: inherit;
}

/* ════ Card 1: FinanceBot — KPI strip + area chart + chat ════ */
.pc-infographic--finance {
    display: flex;
    flex-direction: column;
    padding: 22px 22px 0;
    gap: 12px;
}
.pc-kpi-row {
    display: flex;
    gap: 10px;
}
.pc-kpi {
    display: flex;
    flex-direction: column;
    gap: 2px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.09);
    border-radius: 8px;
    padding: 7px 12px;
    flex: 1;
    transition: background 0.4s;
}
.portfolio-card:hover .pc-kpi { background: rgba(255,255,255,0.08); }
.pc-kpi-val {
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font-primary);
    color: rgba(255,255,255,0.88);
    letter-spacing: -0.01em;
}
.pc-kpi-lbl {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}
.pc-area-chart {
    flex: 1;
    min-height: 0;
    opacity: 0.5;
    transition: opacity 0.4s;
}
.pc-area-chart svg { width: 100%; height: 100%; }
.portfolio-card:hover .pc-area-chart { opacity: 0.8; }
.pc-chat-bubble {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    padding: 7px 14px;
    margin-bottom: 16px;
    opacity: 0.55;
    transition: opacity 0.4s;
}
.portfolio-card:hover .pc-chat-bubble { opacity: 0.9; }
.pc-chat-icon {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.9);
    background: rgba(255,255,255,0.12);
    border-radius: 6px;
    padding: 2px 5px;
    white-space: nowrap;
}
.pc-chat-text {
    font-size: 11px;
    color: rgba(255,255,255,0.65);
    font-family: var(--font-primary);
    white-space: nowrap;
}
.pc-chat-text b { color: rgba(255,255,255,0.9); }

/* ════ Card 2: MediScan — scan frame + accuracy arc + status ════ */
.pc-infographic--medi {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;
    padding-top: 20px;
}
.pc-scan-frame {
    position: relative;
    width: 120px;
    height: 100px;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 4px;
}
.pc-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    border-color: rgba(255,255,255,0.7);
    border-style: solid;
}
.pc-corner--tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; border-radius: 3px 0 0 0; }
.pc-corner--tr { top: -1px; right: -1px; border-width: 2px 2px 0 0; border-radius: 0 3px 0 0; }
.pc-corner--bl { bottom: -1px; left: -1px; border-width: 0 0 2px 2px; border-radius: 0 0 0 3px; }
.pc-corner--br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; border-radius: 0 0 3px 0; }
.pc-crosshair-h {
    position: absolute;
    top: 50%; left: 10%; right: 10%;
    height: 1px;
    background: rgba(255,255,255,0.15);
    transform: translateY(-50%);
}
.pc-crosshair-v {
    position: absolute;
    left: 50%; top: 10%; bottom: 10%;
    width: 1px;
    background: rgba(255,255,255,0.15);
    transform: translateX(-50%);
}
.pc-scan-sweep {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    top: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
    animation: sweepDown 2.2s ease-in-out infinite;
}
@keyframes sweepDown {
    0%   { top: 0;    opacity: 0; }
    5%   { opacity: 1; }
    90%  { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}
.pc-detection-box {
    position: absolute;
    top: 25%; left: 20%; right: 20%; bottom: 25%;
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 2px;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    padding: 2px 4px;
    animation: detBlink 2.2s ease-in-out infinite;
}
@keyframes detBlink {
    0%, 100% { border-color: rgba(255,255,255,0.4); }
    50%       { border-color: rgba(255,255,255,0.75); }
}
.pc-det-label {
    font-size: 7px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.65);
    font-family: monospace;
}
.pc-accuracy-badge {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 72px; height: 72px;
}
.pc-accuracy-num {
    position: absolute;
    font-size: 13px;
    font-weight: 800;
    color: rgba(255,255,255,0.85);
    letter-spacing: -0.02em;
    text-align: center;
}
.pc-accuracy-num span { font-size: 9px; font-weight: 600; }
.pc-scan-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.5);
    font-family: monospace;
}
.pc-status-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: rgba(255,255,255,0.7);
    animation: statusBlink 1.4s ease-in-out infinite;
}
@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}

/* ════ Card 3: LogiFlow — animated flow diagram ════ */
.pc-infographic--logi {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 18px;
    gap: 8px;
}
.pc-flow-svg {
    width: 100%;
    opacity: 0.55;
    transition: opacity 0.4s;
}
.portfolio-card:hover .pc-flow-svg { opacity: 0.9; }
.pc-logi-stats {
    display: flex;
    gap: 8px;
}
.pc-logi-stats span {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.55);
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 4px 10px;
    transition: color 0.4s, background 0.4s;
}
.portfolio-card:hover .pc-logi-stats span {
    color: rgba(255,255,255,0.85);
    background: rgba(255,255,255,0.1);
}

/* ════ Card 4: RetailIQ — full mini dashboard ════ */
.pc-infographic--retail {
    display: flex;
    flex-direction: column;
    padding: 20px 24px 0;
    gap: 10px;
}
.pc-dash-metrics {
    display: flex;
    gap: 10px;
}
.pc-dash-metric {
    flex: 1;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    transition: background 0.4s;
}
.portfolio-card:hover .pc-dash-metric { background: rgba(255,255,255,0.07); }
.pc-dash-val {
    font-size: 14px;
    font-weight: 800;
    color: rgba(255,255,255,0.88);
    letter-spacing: -0.02em;
    font-family: var(--font-primary);
}
.pc-dash-lbl {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.38);
}
.pc-dash-delta {
    font-size: 10px;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin-top: 2px;
}
.pc-dash-delta.up   { color: rgba(180,255,180,0.7); }
.pc-dash-delta.down { color: rgba(180,220,255,0.7); }
.pc-dash-chart {
    flex: 1;
    min-height: 0;
    opacity: 0.45;
    transition: opacity 0.4s;
}
.pc-dash-chart svg { width: 100%; height: 100%; }
.portfolio-card:hover .pc-dash-chart { opacity: 0.8; }
.pc-dash-months {
    display: flex;
    justify-content: space-between;
    padding: 0 4px 14px;
    opacity: 0.3;
    transition: opacity 0.4s;
}
.pc-dash-months span {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.7);
    font-family: monospace;
}
.portfolio-card:hover .pc-dash-months { opacity: 0.65; }

/* "View Project" pill — slides up on hover */
.pc-view-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.7);
    z-index: 3;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s var(--ease-out-expo), background 0.3s;
    pointer-events: none;
}
.portfolio-card:hover .pc-view-btn {
    opacity: 1;
    transform: translateY(0);
    background: rgba(255,255,255,0.14);
    color: #fff;
}

.portfolio-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
}

.portfolio-category {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    color: var(--mango-light);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.portfolio-info h3 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 8px;
}

.portfolio-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.portfolio-metrics {
    display: flex;
    gap: 16px;
}

.portfolio-metrics span {
    font-size: 12px;
    font-weight: 600;
    color: var(--mango-light);
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ============================================
   Portfolio — Image Card System (pw-*)
   ============================================ */
.pw-has-img {
    background: #181818;
}

/* Short row — last row of 3 equal cards */
.pw-short {
    height: 270px;
    align-self: stretch;
}

.pw-img-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.pw-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.portfolio-card.pw-has-img:hover .pw-img-wrap img {
    transform: scale(1.07);
}

/* Full-image mode — no crop, no zoom on hover */
.pw-img-wrap.pw-contain img {
    object-fit: contain;
    object-position: center center;
    transform: none !important;
}

/* Always-visible category badge */
.pw-cat-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    padding: 5px 13px;
    border-radius: 20px;
    background: rgba(0,0,0,0.48);
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    border: 1px solid rgba(255,255,255,0.13);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.82);
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.portfolio-card.pw-has-img:hover .pw-cat-badge {
    opacity: 0;
}

/* Hover overlay slides up from bottom */
.pw-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 52px 22px 22px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.92) 0%,
        rgba(0,0,0,0.6) 50%,
        transparent 100%
    );
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.22, 0.8, 0.28, 1);
    pointer-events: none;
}

.portfolio-card.pw-has-img:hover .pw-card-overlay {
    transform: translateY(0);
}

.pw-cat-line {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 2.2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    margin-bottom: 6px;
}

.pw-title {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
    line-height: 1.15;
    margin: 0;
}

.pw-arrow {
    font-size: 24px;
    color: rgba(255,255,255,0.65);
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.22, 0.8, 0.28, 1), color 0.25s;
    line-height: 1;
    margin-bottom: 2px;
}

.portfolio-card.pw-has-img:hover .pw-arrow {
    transform: translate(4px, -4px);
    color: #fff;
}

/* Subtle inner border glow on hover */
.pw-has-img::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid transparent;
    transition: border-color 0.4s ease;
    pointer-events: none;
    z-index: 4;
}

.pw-has-img:hover::after {
    border-color: rgba(255,255,255,0.18);
}

/* ============================================
   Testimonials Section
   ============================================ */
.testimonials-section {
    background: var(--bg-primary);
}

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

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 36px;
    transition: all 0.4s var(--ease-out-expo);
}

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

.testimonial-stars {
    color: var(--mango);
    font-size: 16px;
    letter-spacing: 4px;
    margin-bottom: 20px;
}

.testimonial-card blockquote {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 14px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.testimonial-author strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
}

.testimonial-author span {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   Contact Section
   ============================================ */
.contact-section {
    background: var(--bg-secondary);
    position: relative;
}

.contact-section::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to bottom, var(--bg-primary), var(--bg-secondary));
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 8vw, 64px);
    align-items: start;
    width: 100%;
}

.contact-info .section-tag {
    padding-left: 0;
}

.contact-info .section-tag::before {
    display: none;
}

.contact-info .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 32px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 15px;
}

.contact-detail svg {
    color: var(--mango);
    flex-shrink: 0;
}

.contact-socials {
    display: flex;
    gap: 12px;
}

.social-link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    transition: all 0.3s var(--ease-out-expo);
}

.social-link:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-accent);
    color: var(--mango);
    transform: translateY(-3px);
}

/* Contact Form */
.contact-form-wrap {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 40px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 14px 18px;
    font-size: 15px;
    color: var(--text-primary);
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    outline: none;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b6b82' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-group select option {
    background: var(--bg-card);
    color: var(--text-primary);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--mango);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-primary);
    border-top: 1px solid var(--border-subtle);
    padding: 100px 0 32px;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

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

.footer-brand p {
    color: var(--text-muted);
    font-size: 15px;
    margin-top: 16px;
    max-width: 280px;
    line-height: 1.7;
}

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

.footer-links a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    padding: 6px 0;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border-subtle);
}

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

.footer-bottom-links {
    display: flex;
    gap: 24px;
}

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

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

.footer-newsletter { text-align: center; margin-bottom: 80px; }
.footer-pitch { font-size: clamp(36px, 6vw, 72px); font-weight: 800; line-height: 1.1; margin-bottom: 32px; letter-spacing: -0.03em; }
.footer-form { display: flex; max-width: 480px; margin: 0 auto; gap: 8px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 12px; }
.footer-form input { flex: 1; background: transparent; border: none; outline: none; color: #fff; font-size: 18px; font-family: var(--font-body); }
.footer-form button { background: transparent; border: none; color: #fff; cursor: pointer; padding: 8px; transition: transform 0.3s; }
.footer-form button:hover { transform: translateX(4px); }
.footer-form button.is-success { color: #22c55e; }
.footer-form-msg { max-width: 480px; margin: 10px auto 0; text-align: center; font-size: 13px; color: #22c55e; opacity: 0; transform: translateY(-4px); transition: opacity 0.4s ease, transform 0.4s ease; height: 0; overflow: hidden; }
.footer-form-msg.is-visible { opacity: 1; transform: translateY(0); height: auto; overflow: visible; }

.footer-times { display: flex; justify-content: center; gap: 60px; margin-bottom: 40px; font-family: var(--font-display); }
.footer-gallery-cta { display: flex; justify-content: center; margin-bottom: 80px; }
.btn-gallery { padding: 12px 22px; font-size: 13px; }
.btn-gallery-arrow { transition: transform 0.4s var(--ease-out-expo); }
.btn-gallery:hover .btn-gallery-arrow { transform: translate(2px, -2px); }
.ft-loc { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ft-name { font-size: 11px; text-transform: uppercase; letter-spacing: 0.15em; color: var(--text-muted); }
.ft-time {
    font-size: 16px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    display: inline-flex;
    align-items: center;
}
.ft-time .dr-wrap { align-items: center; }
.ft-time .dr-colon { padding: 0 1px; opacity: 0.55; line-height: 1; }
.ft-time .dr-cell { height: 1em; }
.ft-time .dr-strip span { text-align: center; min-width: 0.6em; }

.footer-mega {
    font-family: var(--font-display);
    font-size: 22vw;
    font-weight: 900;
    line-height: 0.85;
    letter-spacing: -0.05em;
    white-space: nowrap;
    text-align: center;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.12);
    margin-top: 60px;
    margin-bottom: -4vw;
    user-select: none;
    pointer-events: none;
}

/* ============================================
   Scroll Animations
   ============================================ */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-animate="fade-right"] {
    transform: translateX(-40px);
}

[data-animate="fade-left"] {
    transform: translateX(40px);
}

[data-animate].visible {
    opacity: 1;
    transform: translate(0, 0);
}

/* ============================================
   Services — Visual Bento Grid
   ============================================ */
.services-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    grid-template-rows: 420px 340px;
}

.svc-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    background: var(--bg-card);
    transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.5s ease;
    will-change: transform;
}

.svc-card:hover {
    box-shadow: 0 28px 72px rgba(0,0,0,0.65);
}

.svc-xl {
    grid-column: span 2;
}

.svc-featured {
    border: 1px solid rgba(255,255,255,0.18);
    grid-row: span 1;
}

.svc-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    padding: 5px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #07070a;
    background: #ffffff;
    border-radius: var(--radius-full);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.svc-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

/* Ken Burns wrapper — handles continuous pan/zoom separately from hover */
.svc-kb {
    width: 100%;
    height: 100%;
    will-change: transform;
}

.svc-media img,
.svc-media video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease-out-expo);
    display: block;
}

/* Hover zoom on the img itself (Ken Burns stays on wrapper) */
.svc-card:hover .svc-media img,
.svc-card:hover .svc-media video {
    transform: scale(1.06);
}

/* ── Ken Burns Animations (5 unique variants) ─────────────── */
@keyframes kb1 {
    0%   { transform: scale(1.00) translate(0%,    0%);    }
    50%  { transform: scale(1.10) translate(-1.5%, -1%);   }
    100% { transform: scale(1.00) translate(0%,    0%);    }
}
@keyframes kb2 {
    0%   { transform: scale(1.05) translate(1%,  0%);   }
    50%  { transform: scale(1.14) translate(-1%, -2%);  }
    100% { transform: scale(1.05) translate(1%,  0%);   }
}
@keyframes kb3 {
    0%   { transform: scale(1.02) translate(-1%, 0%);   }
    50%  { transform: scale(1.12) translate(1.5%, -1%); }
    100% { transform: scale(1.02) translate(-1%, 0%);   }
}
@keyframes kb4 {
    0%   { transform: scale(1.00) translate(0%,  1%);   }
    50%  { transform: scale(1.10) translate(-1%, -1.5%);}
    100% { transform: scale(1.00) translate(0%,  1%);   }
}
@keyframes kb5 {
    0%   { transform: scale(1.03) translate(0.5%, -0.5%); }
    50%  { transform: scale(1.12) translate(-1%,  1%);    }
    100% { transform: scale(1.03) translate(0.5%, -0.5%); }
}

[data-kb="1"] .svc-kb { animation: kb1 14s ease-in-out infinite; }
[data-kb="2"] .svc-kb { animation: kb2 17s ease-in-out infinite; }
[data-kb="3"] .svc-kb { animation: kb3 12s ease-in-out infinite; }
[data-kb="4"] .svc-kb { animation: kb4 16s ease-in-out infinite; }
[data-kb="5"] .svc-kb { animation: kb5 13s ease-in-out infinite; }

/* Pause Ken Burns on hover so zoom feels deliberate */
.svc-card:hover .svc-kb {
    animation-play-state: paused;
}

/* ── Shimmer sweep on hover ──────────────────────────────── */
.svc-card::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background: linear-gradient(
        108deg,
        transparent 38%,
        rgba(255,255,255,0.07) 50%,
        transparent 62%
    );
    transform: translateX(-120%) skewX(-12deg);
}

.svc-card:hover::after {
    animation: shimmerSweep 0.75s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes shimmerSweep {
    from { transform: translateX(-120%) skewX(-12deg); }
    to   { transform: translateX(140%)  skewX(-12deg); }
}

.svc-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.78) 0%,
        rgba(0,0,0,0.28) 45%,
        rgba(0,0,0,0.04) 100%
    );
    transition: background 0.4s;
}

.svc-card:hover .svc-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,0.85) 0%,
        rgba(0,0,0,0.38) 50%,
        rgba(0,0,0,0.08) 100%
    );
}

.svc-body {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
    transition: transform 0.4s var(--ease-out-expo);
}

.svc-card:hover .svc-body {
    transform: translateY(-4px);
}

.svc-niche {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255,255,255,0.35);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.svc-body h3 {
    font-family: var(--font-display);
    font-size: 20px;
    font-weight: 700;
    color: rgba(255,255,255,0.90);
    margin-bottom: 8px;
    line-height: 1.2;
}

.svc-xl .svc-body h3 {
    font-size: 26px;
}

.svc-body p {
    font-size: 14px;
    color: rgba(255,255,255,0.48);
    line-height: 1.65;
    margin-bottom: 14px;
    max-width: 500px;
}

.svc-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}

.svc-tags span {
    padding: 3px 11px;
    font-size: 11px;
    font-weight: 500;
    color: rgba(255,255,255,0.65);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: var(--radius-full);
    backdrop-filter: blur(6px);
}

.svc-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    transition: gap 0.3s var(--ease-out-expo), opacity 0.3s;
    opacity: 0.85;
}

.svc-cta:hover {
    gap: 12px;
    opacity: 1;
}

/* Bento card scroll-reveal animations */
.services-bento .svc-card[data-animate] {
    opacity: 0;
    transform: translateY(48px) scale(0.97);
    transition:
        opacity 0.75s var(--ease-out-expo),
        transform 0.85s var(--ease-out-expo);
}

.services-bento .svc-card[data-animate].visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.services-bento .svc-card[data-animate].visible .svc-tags span {
    animation: tagFadeUp 0.4s var(--ease-out-expo) both;
}
.services-bento .svc-card[data-animate].visible .svc-tags span:nth-child(1) { animation-delay: 0.45s; }
.services-bento .svc-card[data-animate].visible .svc-tags span:nth-child(2) { animation-delay: 0.55s; }
.services-bento .svc-card[data-animate].visible .svc-tags span:nth-child(3) { animation-delay: 0.65s; }

/* Bento responsive */
@media (max-width: 1024px) {
    .services-bento {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 380px 320px 320px;
    }
    .svc-xl { grid-column: span 2; }
    .svc-featured { grid-column: span 1; }
}

@media (max-width: 768px) {
    .services-bento {
        grid-template-columns: 1fr;
        grid-template-rows: none;
        gap: 16px;
    }
    .svc-xl,
    .svc-featured { grid-column: span 1; }
    .svc-card { min-height: 300px; }
}

/* ── Services stage ─────────────────────────────────── */
.svc-zoom-stage {
    position: relative;
}

/* ── Services → Process 3D seam blade ──────────────── */
.svc-proc-blade {
    position: relative;
    height: 72px;
    z-index: 30;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    pointer-events: none;
}

/* Top + bottom hairlines that expand from center */
.spb-line {
    position: absolute;
    left: 50%;
    width: 0;
    height: 1px;
    transform: translateX(-50%);
    transition: width 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
.spb-line--top {
    top: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18) 30%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.18) 70%, transparent);
}
.spb-line--bot {
    bottom: 20px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08) 30%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.08) 70%, transparent);
}

/* Central glow bloom */
.spb-edge-glow {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scaleX(0);
    width: 100vw;
    height: 180px;
    background: radial-gradient(ellipse 55% 100% at 50% 50%, rgba(255,255,255,0.045) 0%, transparent 70%);
    transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.08s;
}

/* Label pill */
.spb-label {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0);
    background: rgba(255,255,255,0);
    opacity: 0;
    transform: translateY(10px) scale(0.9);
    transition:
        opacity 0.6s ease 0.3s,
        transform 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.3s,
        border-color 0.6s ease 0.3s,
        background 0.6s ease 0.3s;
}

.spb-tag {
    font-family: var(--font-display, sans-serif);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: rgba(255,255,255,0.55);
}

.spb-arrow {
    display: flex;
    align-items: center;
    color: rgba(255,255,255,0.4);
    animation: spbArrowBob 1.6s ease-in-out infinite;
}

@keyframes spbArrowBob {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(3px); }
}

/* Activated state — triggered by JS IntersectionObserver */
.svc-proc-blade.blade-on .spb-line--top,
.svc-proc-blade.blade-on .spb-line--bot {
    width: 100vw;
}
.svc-proc-blade.blade-on .spb-edge-glow {
    transform: translate(-50%, -50%) scaleX(1);
}
.svc-proc-blade.blade-on .spb-label {
    opacity: 1;
    transform: translateY(0) scale(1);
    border-color: rgba(255,255,255,0.10);
    background: rgba(255,255,255,0.03);
}

/* Process section: 3D entrance */
.process-section {
    transform-origin: 50% 0%;
    will-change: transform;
}

/* Edge-glow shadow visible while process rises in */
.process-section.proc-rising {
    box-shadow:
        0 -50px 100px rgba(0,0,0,0.85),
        0 -2px 0 rgba(255,255,255,0.06);
}

/* ── Services quick-stats bar ───────────────────────── */
.svc-stats-bar {
    display: flex;
    align-items: center;
    padding: 0 0 36px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    margin-bottom: 40px;
}

.svc-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 16px 0;
}

.svc-stat-sep {
    width: 1px;
    height: 44px;
    background: rgba(255,255,255,0.09);
    flex-shrink: 0;
}

.svc-stat-num {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(20px, 2.2vw, 30px);
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    line-height: 1;
}

.svc-stat-num sup { font-size: 0.6em; }

.svc-star {
    color: #fff;
    font-size: 0.85em;
}

.svc-stat-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Tech capabilities strip ────────────────────────── */
.svc-tech-strip {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.07);
    flex-wrap: wrap;
}

.svc-tech-eyebrow {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
    white-space: nowrap;
    font-weight: 600;
    flex-shrink: 0;
}

.svc-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.svc-tech-tag {
    padding: 5px 14px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: border-color 0.25s, color 0.25s, background 0.25s;
    cursor: default;
}

.svc-tech-tag:hover {
    border-color: rgba(255,255,255,0.35);
    color: var(--text-primary);
    background: rgba(255,255,255,0.04);
}

@media (max-width: 768px) {
    .svc-stats-bar { flex-wrap: wrap; gap: 0; }
    .svc-stat-item { flex: 0 0 50%; border-bottom: 1px solid rgba(255,255,255,0.07); }
    .svc-stat-sep { display: none; }
    .svc-tech-strip { gap: 12px; }
}

/* ── Service card entrance override ─────────────────── */
.services-grid .service-card[data-animate] {
    opacity: 0;
    transform: translateY(60px) scale(0.96);
    clip-path: inset(0 0 100% 0);
    transition:
        opacity 0.7s var(--ease-out-expo),
        transform 0.9s var(--ease-out-expo),
        clip-path 0.8s var(--ease-out-expo);
}

.services-grid .service-card[data-animate].visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    clip-path: inset(0 0 0% 0);
}

/* Icon pops after card lands */
.services-grid .service-card[data-animate].visible .service-icon {
    animation: svcIconPop 0.5s var(--ease-out-expo) 0.35s both;
}

@keyframes svcIconPop {
    from { transform: scale(0.6) rotate(-6deg); opacity: 0; }
    to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}

/* Top accent bar sweeps in after card */
.services-grid .service-card[data-animate].visible::before {
    transition-delay: 0.4s;
    transform: scaleX(1);
}

/* Tags fade up sequentially */
.services-grid .service-card[data-animate].visible .service-tags span {
    animation: tagFadeUp 0.4s var(--ease-out-expo) both;
}
.services-grid .service-card[data-animate].visible .service-tags span:nth-child(1) { animation-delay: 0.45s; }
.services-grid .service-card[data-animate].visible .service-tags span:nth-child(2) { animation-delay: 0.55s; }
.services-grid .service-card[data-animate].visible .service-tags span:nth-child(3) { animation-delay: 0.65s; }

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

/* Portfolio overlay stronger for photo backgrounds */
.portfolio-visual .portfolio-overlay {
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.7) 100%);
}

/* ============================================
   Keyframe Animations
   ============================================ */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

@keyframes pulseGlow {
    0%, 100% { opacity: 0.4; transform: translateX(-50%) scale(1); }
    50% { opacity: 0.7; transform: translateX(-50%) scale(1.1); }
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.2); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(10px, -15px) rotate(5deg); }
    50% { transform: translate(-5px, -25px) rotate(-3deg); }
    75% { transform: translate(-15px, -10px) rotate(3deg); }
}

@keyframes spinSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .portfolio-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
        gap: 12px;
    }
    .portfolio-large,
    .portfolio-wide {
        grid-column: span 2;
    }
    .pw-short { height: auto; }
    .testimonials-track {
        grid-template-columns: repeat(2, 1fr);
    }
    .testimonial-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    body {
        cursor: auto;
    }
    .cursor-dot, .cursor-ring {
        display: none;
    }

    .nav-links, .nav-cta {
        display: none !important;
    }
    .nav-toggle {
        display: flex;
    }

    .hero-title {
        letter-spacing: -1px;
    }

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

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

    .portfolio-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 260px;
        gap: 8px;
        margin-top: 32px;
    }
    .portfolio-large,
    .portfolio-wide {
        grid-column: span 1;
    }
    .pw-short { height: 220px; }

    /* Mobile: overlay always visible (no hover on touch) */
    .pw-card-overlay {
        transform: translateY(0) !important;
        padding: 48px 16px 18px !important;
        background: linear-gradient(
            to top,
            rgba(0,0,0,0.97) 0%,
            rgba(0,0,0,0.72) 45%,
            rgba(0,0,0,0.2) 72%,
            transparent 100%
        ) !important;
    }
    .pw-title { font-size: 16px !important; }
    .pw-cat-line { font-size: 8px !important; }
    .pw-cat-badge { display: none !important; }
    .pw-arrow { font-size: 18px !important; }

    /* Override 3D deal-in for image cards on mobile → simple translateY */
    .portfolio-section .portfolio-card.pw-has-img[data-animate] {
        transform: translateY(40px) !important;
        perspective: none !important;
    }
    .portfolio-section .portfolio-card.pw-has-img[data-animate].visible {
        transform: translateY(0) !important;
    }
    .pc-scan-status { font-size: 8px; }

    /* Logi card — tighter */
    .pc-infographic--logi { padding-top: 12px; gap: 6px; }
    .pc-logi-stats span { font-size: 9px; padding: 3px 8px; }

    /* Retail card — compact dashboard */
    .pc-infographic--retail { padding: 14px 14px 0; gap: 8px; }
    .pc-dash-val { font-size: 12px; }
    .pc-dash-lbl { font-size: 8px; }
    .pc-dash-delta { font-size: 9px; }
    .pc-dash-metric { padding: 6px 8px; }
    .pc-dash-months span { font-size: 8px; }
    .pc-dash-months { padding: 0 2px 10px; }

    /* Shrink card info text so infographic has more room */
    .portfolio-info { padding: 20px; }
    .portfolio-info h3 { font-size: 20px; margin-bottom: 5px; }
    .portfolio-info p { font-size: 13px; margin-bottom: 8px; line-height: 1.5; }

    .testimonials-track {
        grid-template-columns: 1fr;
    }
    .testimonial-card:last-child {
        grid-column: span 1;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .contact-info .section-title {
        text-align: center;
    }
    .contact-info {
        text-align: center;
    }
    .contact-details {
        align-items: center;
    }
    .contact-socials {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
    .footer-brand {
        grid-column: span 2;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .process-step {
        padding-left: 60px;
    }
    .step-number {
        width: 44px;
        height: 44px;
        font-size: 14px;
    }
    .process-line {
        left: 22px;
    }
}

@media (max-width: 480px) {
    /* Portfolio infographics — very small screens */
    .pc-chat-bubble { display: none; }
    .pc-kpi-row { gap: 5px; }
    .pc-kpi-val { font-size: 10px; }
    .pc-dash-months { display: none; }
    .pc-dash-metrics { gap: 5px; }
    .pc-dash-metric { padding: 5px 6px; }
    .pc-dash-val { font-size: 11px; }
    .pc-logi-stats { gap: 5px; }
    .pc-scan-frame { width: 88px; height: 72px; }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .btn {
        width: 100%;
        justify-content: center;
    }
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-brand {
        grid-column: span 1;
    }
    .contact-form-wrap {
        padding: 24px;
    }
}

/* ============================================
   Accessibility — Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .cursor-dot, .cursor-ring {
        display: none;
    }
}

/* ============================================
   Accessibility — Keyboard Focus
   ============================================ */
:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.7);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ============================================
   Hero — Platform Marquee Strip
   ============================================ */
.hero {
    overflow-x: hidden;
}

.platforms-strip {
    position: relative;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 52px;
}

.platforms-eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 20px;
}

.pe-rule {
    flex: 0 0 36px;
    height: 1px;
    background: var(--border-subtle);
}

.pe-text {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    white-space: nowrap;
}

.marquee-clip {
    overflow: hidden;
    width: 100%;
    -webkit-mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
    mask-image: linear-gradient(
        to right,
        transparent 0%,
        black 10%,
        black 90%,
        transparent 100%
    );
}

.marquee-belt {
    display: flex;
    align-items: center;
    width: max-content;
    animation: marqueeScroll 36s linear infinite;
}

.marquee-belt:hover {
    animation-play-state: paused;
}

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

.pchip {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 22px;
    margin: 0 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-full);
    white-space: nowrap;
    transition: background 0.3s, border-color 0.3s;
    cursor: default;
    flex-shrink: 0;
}

.pchip:hover {
    background: rgba(255, 255, 255, 0.055);
    border-color: rgba(255, 255, 255, 0.14);
}

.pchip img {
    width: 20px;
    height: 20px;
    object-fit: contain;
    flex-shrink: 0;
    display: block;
    opacity: 0.75;
    transition: opacity 0.3s;
}

.pchip:hover img {
    opacity: 1;
}

.pchip span {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.5px;
    transition: color 0.3s;
}

.pchip:hover span {
    color: rgba(255, 255, 255, 0.9);
}

.pchip-sep {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 18px;
    flex-shrink: 0;
}

.pchip-sep span {
    width: 3px;
    height: 3px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    display: block;
}

/* ============================================
   Interactive Scrolling Testimonials Marquee
   ============================================ */

/* Override section overflow so marquee rows breathe */
.testimonials-section {
    overflow: hidden;
    padding-bottom: 80px;
}

.reviews-marquee-universe {
    display: flex;
    flex-direction: column;
    gap: 24px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 48px;
    padding: 28px 0;
    overflow-x: clip;
    overflow-y: visible;
    user-select: none;
}

.reviews-marquee-row {
    width: 100%;
    overflow: visible;
    display: flex;
}

.reviews-marquee-track {
    display: flex;
    gap: 24px;
    width: max-content;
    will-change: transform;
}

.track-group {
    display: flex;
    gap: 24px;
    flex-shrink: 0;
}

/* Base card */
.rfcard {
    width: 350px;
    background: #ffffff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    padding: 28px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
    transition:
        border-color 0.4s var(--ease-out-expo),
        box-shadow 0.4s var(--ease-out-expo),
        background 0.4s,
        transform 0.4s var(--ease-out-expo);
}

.rfcard::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: linear-gradient(
        135deg,
        rgba(0,0,0,0.015) 0%,
        transparent 60%
    );
    pointer-events: none;
}

.rfcard:hover {
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.06);
    background: #ffffff;
    transform: translateY(-8px) scale(1.02);
    z-index: 10;
}

.rfc-stars {
    color: #c8980a;
    font-size: 13px;
    letter-spacing: 3px;
    margin-bottom: 14px;
}

.rfc-quote {
    font-size: 14px;
    line-height: 1.78;
    color: rgba(0, 0, 0, 0.68);
    font-style: italic;
    margin-bottom: 20px;
    font-family: var(--font-body);
    font-weight: 400;
}

.rfc-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rfc-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: #0a0a0a;
    flex-shrink: 0;
}

.rfc-meta strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #0a0a0a;
    margin-bottom: 2px;
}

.rfc-meta span {
    font-size: 12px;
    color: rgba(0,0,0,0.45);
    letter-spacing: 0.3px;
}

/* Tablet / Mobile Overrides */
@media (max-width: 768px) {
    .reviews-marquee-universe {
        gap: 16px;
    }
    
    .reviews-marquee-track {
        gap: 16px;
    }
    
    .track-group {
        gap: 16px;
    }
    
    .rfcard {
        width: 290px;
        padding: 20px;
    }
    
    .rfc-quote {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 14px;
    }
}

/* ── Website Preview Reel ──────────────────────────────────── */
.wp-reel {
    width: 100%;
    padding: 40px 0 52px;
    position: relative;
}

.wp-reel-track {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Individual browser-window card */
.wp-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.09);
    background: rgba(12,12,12,0.95);
    box-shadow: 0 20px 60px rgba(0,0,0,0.6), 0 1px 0 rgba(255,255,255,0.06) inset;
    transition: transform 0.4s cubic-bezier(0.22,1,0.36,1), box-shadow 0.4s ease, border-color 0.4s ease;
    will-change: transform;
    min-width: 0;
}

.wp-card:hover {
    transform: translateY(-10px) scale(1.025);
    box-shadow: 0 30px 80px rgba(0,0,0,0.75), 0 0 40px rgba(255,255,255,0.05);
    border-color: rgba(255,255,255,0.2);
}

/* Browser chrome bar */
.wp-browser-chrome {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(22,22,22,0.95);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.wpc-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    opacity: 0.85;
}

.wpc-url {
    flex: 1;
    margin-left: 8px;
    height: 20px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 10px;
    color: rgba(255,255,255,0.28);
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-family: var(--font-mono, monospace);
    letter-spacing: 0.01em;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* Screen content area */
.wp-screen {
    height: 200px;
    position: relative;
    overflow: hidden;
}

/* Animated scroll inside screen */
.wp-screen-inner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    /* height is set per screen type so overflow can animate */
    animation: wpScroll var(--wps-dur, 8s) ease-in-out var(--wps-delay, 0s) infinite alternate;
}

@keyframes wpScroll {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-30%); }
}

/* ── Screen A — Etsy E-commerce (warm orange accent) ── */
.wp-screen--a { background: #0d0a08; }
.wp-screen--a .wp-screen-inner { --wps-dur: 10s; --wps-delay: 0s; display: flex; flex-direction: column; gap: 0; }

.wps-a-topbar { height: 28px; background: #f1641e; display: flex; align-items: center; padding: 0 10px; gap: 8px; }
.wps-a-topbar-logo { width: 40px; height: 10px; background: rgba(255,255,255,0.9); border-radius: 2px; }
.wps-a-topbar-search { flex: 1; height: 16px; background: rgba(255,255,255,0.2); border-radius: 8px; }
.wps-a-topbar-btn { width: 30px; height: 14px; background: rgba(255,255,255,0.3); border-radius: 3px; }

.wps-a-banner { height: 46px; background: linear-gradient(120deg, #2d1a0e 0%, #1a0d06 100%); display: flex; align-items: center; padding: 0 10px; gap: 10px; border-bottom: 1px solid rgba(241,100,30,0.2); }
.wps-a-banner-text { display: flex; flex-direction: column; gap: 4px; }
.wps-a-banner-h { height: 9px; background: rgba(241,100,30,0.9); border-radius: 2px; width: 80px; }
.wps-a-banner-s { height: 6px; background: rgba(255,255,255,0.25); border-radius: 2px; width: 60px; }
.wps-a-banner-img { width: 36px; height: 36px; border-radius: 4px; background: linear-gradient(135deg, rgba(241,100,30,0.4), rgba(241,100,30,0.15)); margin-left: auto; }

.wps-a-grid-wrap { padding: 8px 10px; }
.wps-a-label { height: 7px; background: rgba(255,255,255,0.18); border-radius: 2px; width: 70px; margin-bottom: 7px; }
.wps-a-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.wps-a-card { background: #1a1008; border-radius: 6px; overflow: hidden; border: 1px solid rgba(241,100,30,0.12); }
.wps-a-card-img { aspect-ratio: 1; background: linear-gradient(145deg, rgba(241,100,30,0.15) 0%, rgba(150,60,0,0.1) 100%); position: relative; }
.wps-a-card-img::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 40% 40%, rgba(241,100,30,0.2), transparent 60%); }
.wps-a-card-body { padding: 5px 6px; }
.wps-a-card-name { height: 5px; background: rgba(255,255,255,0.2); border-radius: 2px; margin-bottom: 3px; }
.wps-a-card-price { height: 5px; background: rgba(241,100,30,0.6); border-radius: 2px; width: 50%; }

/* ── Screen B — Shopify Brand (green accent) ── */
.wp-screen--b { background: #050f08; }
.wp-screen--b .wp-screen-inner { --wps-dur: 12s; --wps-delay: 1.5s; display: flex; flex-direction: column; gap: 0; }

.wps-b-nav { display: flex; align-items: center; height: 28px; padding: 0 10px; gap: 8px; background: #0a1a10; border-bottom: 1px solid rgba(150,210,140,0.15); }
.wps-b-logo { width: 50px; height: 10px; background: #96d28c; border-radius: 2px; opacity: 0.9; }
.wps-b-links { display: flex; gap: 8px; margin-left: auto; }
.wps-b-link { width: 22px; height: 6px; background: rgba(255,255,255,0.18); border-radius: 2px; }
.wps-b-hero { height: 72px; background: linear-gradient(135deg, #0d2218 0%, #061410 100%); position: relative; overflow: hidden; display: flex; align-items: center; padding: 0 12px; gap: 10px; }
.wps-b-hero::before { content: ''; position: absolute; right: -10px; top: -10px; width: 80px; height: 80px; background: radial-gradient(circle, rgba(150,210,140,0.15), transparent 70%); }
.wps-b-hero-copy { display: flex; flex-direction: column; gap: 5px; z-index: 1; }
.wps-b-h1 { height: 11px; background: rgba(255,255,255,0.85); border-radius: 2px; width: 90px; }
.wps-b-h2 { height: 11px; background: rgba(255,255,255,0.5); border-radius: 2px; width: 70px; }
.wps-b-cta { height: 18px; background: #96d28c; border-radius: 4px; width: 60px; margin-top: 2px; }
.wps-b-product-img { width: 50px; height: 54px; background: linear-gradient(145deg, rgba(150,210,140,0.2), rgba(150,210,140,0.06)); border-radius: 6px; margin-left: auto; flex-shrink: 0; }
.wps-b-products { padding: 8px 10px; display: grid; grid-template-columns: repeat(3,1fr); gap: 6px; }
.wps-b-prod { background: #0c1c10; border-radius: 6px; border: 1px solid rgba(150,210,140,0.1); overflow: hidden; }
.wps-b-prod-img { height: 36px; background: linear-gradient(160deg, rgba(150,210,140,0.12), rgba(150,210,140,0.04)); }
.wps-b-prod-body { padding: 4px 6px; }
.wps-b-prod-line { height: 5px; background: rgba(255,255,255,0.15); border-radius: 2px; margin-bottom: 3px; }
.wps-b-prod-price { height: 5px; background: rgba(150,210,140,0.55); border-radius: 2px; width: 55%; }

/* ── Screen C — SaaS Dashboard (blue/violet accent) ── */
.wp-screen--c { background: #060810; }
.wp-screen--c .wp-screen-inner { --wps-dur: 14s; --wps-delay: 0.5s; display: flex; gap: 0; height: 280px; animation: none; }

.wps-c-sidebar { width: 28px; background: #080c1a; border-right: 1px solid rgba(99,102,241,0.15); display: flex; flex-direction: column; align-items: center; padding-top: 10px; gap: 8px; flex-shrink: 0; }
.wps-c-sidebar-icon { width: 14px; height: 14px; border-radius: 4px; background: rgba(99,102,241,0.25); }
.wps-c-sidebar-icon:first-child { background: rgba(99,102,241,0.7); }
.wps-c-main { flex: 1; display: flex; flex-direction: column; gap: 7px; padding: 8px; min-width: 0; }
.wps-c-toprow { display: grid; grid-template-columns: repeat(3,1fr); gap: 5px; }
.wps-c-stat { background: rgba(99,102,241,0.07); border: 1px solid rgba(99,102,241,0.15); border-radius: 6px; padding: 6px 7px; }
.wps-c-stat-val { height: 11px; background: rgba(255,255,255,0.7); border-radius: 2px; width: 55%; margin-bottom: 4px; }
.wps-c-stat-chg { height: 6px; background: rgba(99,102,241,0.6); border-radius: 2px; width: 40%; margin-bottom: 3px; }
.wps-c-stat-label { height: 5px; background: rgba(255,255,255,0.18); border-radius: 2px; width: 80%; }
.wps-c-chart { background: rgba(99,102,241,0.05); border: 1px solid rgba(99,102,241,0.12); border-radius: 6px; padding: 8px; position: relative; height: 55px; overflow: hidden; }
.wps-c-chart-line {
    position: absolute;
    bottom: 12px;
    left: 8px;
    right: 8px;
    height: 30px;
}
.wps-c-chart-line::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(99,102,241,0) 0%, rgba(99,102,241,0.8) 20%, rgba(99,102,241,0.4) 35%, rgba(99,102,241,0.9) 55%, rgba(99,102,241,0.5) 70%, rgba(99,102,241,1) 85%, rgba(99,102,241,0.6) 100%);
    clip-path: polygon(0 100%, 8% 60%, 18% 75%, 30% 30%, 44% 50%, 58% 10%, 70% 32%, 82% 18%, 92% 38%, 100% 20%, 100% 100%);
}
.wps-c-chart-line::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(99,102,241,0.15) 100%);
    clip-path: polygon(0 100%, 8% 60%, 18% 75%, 30% 30%, 44% 50%, 58% 10%, 70% 32%, 82% 18%, 92% 38%, 100% 20%, 100% 100%);
}
.wps-c-rows { display: flex; flex-direction: column; gap: 4px; }
.wps-c-row { display: flex; align-items: center; gap: 6px; height: 18px; background: rgba(99,102,241,0.04); border-radius: 4px; padding: 0 7px; }
.wps-c-row-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(99,102,241,0.7); flex-shrink: 0; }
.wps-c-row-bar { flex: 1; height: 5px; background: rgba(255,255,255,0.08); border-radius: 3px; position: relative; overflow: hidden; }
.wps-c-row-fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, rgba(99,102,241,0.6), rgba(99,102,241,0.3)); border-radius: 3px; animation: wpsBarGrow 3s ease-in-out infinite alternate; }
@keyframes wpsBarGrow { 0% { opacity: 0.6; } 100% { opacity: 1; } }
.wps-c-row-val { width: 20px; height: 5px; background: rgba(255,255,255,0.2); border-radius: 2px; flex-shrink: 0; }

/* ── Screen D — DTC Fashion / UGC (bold monochrome + red accent) ── */
.wp-screen--d { background: #080808; }
.wp-screen--d .wp-screen-inner { --wps-dur: 11s; --wps-delay: 2s; display: flex; flex-direction: column; gap: 0; }

.wps-d-topbar { height: 22px; background: #fff; display: flex; align-items: center; padding: 0 10px; gap: 8px; }
.wps-d-logo { width: 40px; height: 7px; background: #080808; border-radius: 1px; }
.wps-d-toplinks { display: flex; gap: 6px; margin-left: auto; }
.wps-d-toplink { width: 20px; height: 5px; background: rgba(0,0,0,0.25); border-radius: 1px; }
.wps-d-hero { height: 80px; position: relative; overflow: hidden; background: #111; }
.wps-d-hero-bg { position: absolute; inset: 0; background: linear-gradient(160deg, #1a0a0a 0%, #080808 50%, #0d0d0d 100%); }
.wps-d-hero-accent { position: absolute; top: 0; right: 0; width: 50%; height: 100%; background: linear-gradient(180deg, rgba(220,38,38,0.12) 0%, rgba(220,38,38,0.04) 100%); }
.wps-d-hero-content { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 12px; gap: 5px; }
.wps-d-tag { height: 6px; background: rgba(220,38,38,0.7); border-radius: 1px; width: 35px; }
.wps-d-htitle { height: 12px; background: rgba(255,255,255,0.85); border-radius: 2px; width: 80%; }
.wps-d-hsub { height: 7px; background: rgba(255,255,255,0.35); border-radius: 2px; width: 60%; }
.wps-d-hcta { height: 16px; background: rgba(220,38,38,0.8); border-radius: 3px; width: 52px; margin-top: 2px; }
.wps-d-grid { padding: 8px 10px; display: grid; grid-template-columns: repeat(2,1fr); gap: 6px; }
.wps-d-item { background: #111; border-radius: 5px; overflow: hidden; border: 1px solid rgba(255,255,255,0.06); }
.wps-d-item-img { height: 42px; position: relative; overflow: hidden; }
.wps-d-item-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(220,38,38,0.08) 0%, rgba(40,40,40,0.6) 100%); }
.wps-d-item-body { padding: 5px 7px; display: flex; align-items: center; justify-content: space-between; }
.wps-d-item-name { height: 5px; background: rgba(255,255,255,0.25); border-radius: 2px; width: 55px; }
.wps-d-item-price { height: 5px; background: rgba(220,38,38,0.6); border-radius: 2px; width: 25px; }

/* Card bottom label */
.wp-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.wp-card-tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.wp-card-badge {
    font-size: 10px;
    padding: 3px 10px;
    border-radius: 99px;
    border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.03);
    font-weight: 500;
}

/* Parallax shift — applied via JS */
.wp-card { transition: transform 0.1s linear, box-shadow 0.4s ease, border-color 0.4s ease; }

/* "Live" indicator dot */
.wp-live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 6px #4ade80;
    animation: wpBlink 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes wpBlink {
    0%,100% { opacity: 1; }
    50%      { opacity: 0.3; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .cursor-dot, .cursor-ring, #bgCanvas, .hero-seq-canvas, .about-flame-canvas, .proc-fire-canvas, #pprCanvas, .sv-marquee, .proc-sparks, #neuralCanvas { display: none !important; }
  body { cursor: auto !important; }
  .word-inner { transform: none !important; }
}

/* Visible focus ring for keyboard navigation (cursor:none hides default) */
*:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #fff;
  color: #000;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 9999999;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* Screen-reader-only utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   MOBILE — No canvas scroll animations. Clean layout with
   CSS entrance effects only. Desktop keeps full 3D experience.
   ============================================================ */
@media (max-width: 768px) {

    /* ── Hero: portrait frame-scrub — same sticky mechanic as desktop ── */
    .hero-stage {
        height: 450vh !important;
    }
    .hero {
        position: sticky !important;
        top: 0 !important;
        height: 100svh !important;
        min-height: unset !important;
        background: #0a0a0a !important;
        padding: clamp(90px, 13vh, 130px) 20px 36px !important;
    }
    #heroSeqCanvas {
        display: block !important;
    }
    .hero-seq-overlay {
        background: linear-gradient(
            to bottom,
            rgba(10,10,10,0.52) 0%,
            rgba(10,10,10,0.10) 28%,
            rgba(10,10,10,0.08) 58%,
            rgba(10,10,10,0.88) 100%
        ) !important;
    }

    /* ── Services: unstick the canvas wrapper ── */
    .sequence-sticky-wrapper {
        position: relative !important;
        height: auto !important;
        min-height: 0 !important;
        background:
            radial-gradient(ellipse 70% 50% at 30% 40%, rgba(255,165,0,0.05) 0%, transparent 60%),
            linear-gradient(160deg, #0d0d14 0%, #0a0a0f 100%);
        padding: 72px 0 56px;
    }
    #servicesSequenceCanvas {
        display: none !important;
    }
    .sequence-overlay {
        display: none !important;
    }
    /* Inline canvas overlay becomes normal block flow */
    .svc-canvas-overlay {
        position: relative !important;
        inset: auto !important;
        padding: 0 24px 32px !important;
        pointer-events: auto !important;
    }
    /* Hide the desktop floating metric cards — too cluttered on mobile */
    .svc-float-graphics {
        display: none !important;
    }
    .svc-co-title {
        font-size: clamp(26px, 7.5vw, 40px) !important;
        letter-spacing: -0.5px !important;
    }
    .svc-co-sub {
        font-size: 14px !important;
        max-width: 100% !important;
    }

    /* ── Kill all remaining canvas loops ── */
    #bgCanvas,
    #procFireCanvas,
    .proc-fire-canvas,
    #neuralCanvas canvas,
    .about-flame-canvas,
    #pprCanvas {
        display: none !important;
    }

    /* ── Proc sparks / scanline are DOM-based — hide on mobile ── */
    .proc-sparks,
    #procSparks,
    .proc-port-reveal {
        display: none !important;
    }

    /* ── Restore native cursor on mobile ── */
    body { cursor: auto !important; }
    a, button, input, select, textarea { cursor: auto !important; }
    .cursor-dot, .cursor-ring { display: none !important; }

    /* ── About: collapse 350vh horizontal-scroll stage → vertical stack ── */
    .about-hscroll-stage {
        height: auto !important;
    }
    .about-section {
        position: relative !important;
        height: auto !important;
        overflow: visible !important;
        perspective: none !important;
    }
    .about-animate-wrap {
        opacity: 1 !important;
        transition: none !important;
    }
    .about-hscroll-track {
        flex-direction: column !important;
        width: 100% !important;
        transform: none !important;
        will-change: auto !important;
        transform-style: flat !important;
    }
    .about-panel {
        min-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        opacity: 1 !important;
        transform: none !important;
        padding-top: clamp(56px, 9vh, 96px) !important;
        padding-bottom: 40px !important;
    }
    .about-panel-inner {
        padding: 0 24px !important;
    }
    .about-panel-split {
        flex-direction: column !important;
        gap: 28px !important;
        align-items: flex-start !important;
    }
    .about-split-left {
        flex: none !important;
        width: 100% !important;
        padding-right: 0 !important;
    }
    .about-split-divider {
        display: none !important;
    }
    .about-split-right {
        flex: none !important;
        width: 100% !important;
        padding-left: 0 !important;
    }
    .about-panel .section-title {
        font-size: clamp(38px, 10vw, 60px) !important;
        letter-spacing: -2px !important;
        margin-top: 8px !important;
    }
    .about-features {
        grid-template-columns: 1fr !important;
        gap: 12px !important;
    }
    .about-card-full {
        height: clamp(220px, 50vw, 300px) !important;
        aspect-ratio: auto !important;
    }
    .about-progress-dots,
    .about-scroll-hint {
        display: none !important;
    }
    .about-panel-inner--visual {
        gap: 24px !important;
    }
    .card-overlay-stats {
        flex-wrap: wrap !important;
        gap: 8px !important;
        padding: 12px 16px !important;
    }
    .cos-item { padding: 0 12px !important; }

    /* ── Process: remove 3D perspective + will-change cost ── */
    .process-timeline {
        perspective: none !important;
    }
    .proc-container {
        will-change: auto !important;
        transform: none !important;
    }
    .process-section .process-step[data-animate] {
        transform: translateY(24px) !important;
        opacity: 0;
    }
    .process-section .process-step[data-animate].visible {
        transform: translateY(0) !important;
        opacity: 1;
    }
    .proc-fire-tip { display: none !important; }
    .proc-orb-a, .proc-orb-b, .proc-orb-c { display: none !important; }

    /* ── Portfolio: remove 3D rise effect ── */
    #portfolio {
        transform: none !important;
        opacity: 1 !important;
    }

    /* ── Services skills constellation — static on mobile ── */
    .ssv-node { animation: none !important; }
    .ssv-node-pulse { display: none !important; }

    /* ── Website preview reel — 2-col grid on mobile ── */
    .wp-reel-track {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 12px !important;
    }
    .wp-card {
        transform: none !important;
        transition: none !important;
    }

    /* ── Footer clocks — horizontal wrap ── */
    .ft-clocks-row {
        flex-wrap: wrap !important;
        gap: 12px !important;
    }
}

/* ── Mobile hero video element no longer used — frame scrub handles background ── */
.hero-mobile-video { display: none !important; }

@media (max-width: 768px) {

    /* ── Hero text: tighter sizing so all content fits without clutter ── */
    .hero-content {
        max-width: 100% !important;
    }
    .hero-title {
        font-size: clamp(28px, 8vw, 42px) !important;
        letter-spacing: -1.5px !important;
        line-height: 1.1 !important;
        margin-bottom: 12px !important;
    }
    .hero-subtitle {
        font-size: 13px !important;
        line-height: 1.5 !important;
        margin: 0 auto 18px !important;
        max-width: 88% !important;
    }
    .hero-actions {
        flex-direction: column !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
        align-items: center !important;
        width: 100% !important;
    }
    .btn {
        width: 88% !important;
        justify-content: center !important;
        padding: 13px 18px !important;
        font-size: 14px !important;
    }
    .hero-stats {
        display: flex !important;
        flex-direction: row !important;
        justify-content: center !important;
        align-items: center !important;
        gap: 12px !important;
        flex-wrap: nowrap !important;
    }
    .stat { align-items: center !important; }
    .stat-divider {
        width: 1px !important;
        height: 32px !important;
        background: rgba(255,255,255,0.14) !important;
        flex-shrink: 0 !important;
    }
    .stat-number { font-size: 24px !important; }
    .stat-plus   { font-size: 18px !important; }
    .stat-label  { font-size: 9px !important; letter-spacing: 0.2px !important; }
    .platforms-strip { margin-top: 20px !important; }

    /* Remove expensive glow pulse animation */
    .hero::before { display: none !important; }

    /* ── Digit roller size inside asr-num / cos-num / about-p3-number ── */
    .asr-num .m-dr-wrap { font-size: inherit; line-height: 1; }
    .cos-num .m-dr-wrap { font-size: inherit; line-height: 1; }
    .about-p3-number .m-dr-wrap { font-size: inherit; line-height: 1; }
    .m-dr-wrap .dr-cell { height: 1.1em; line-height: 1.1em; overflow: hidden; will-change: transform; }
    .m-dr-wrap .dr-strip { height: calc(10 * 1.1em); will-change: transform; }
    .m-dr-wrap .dr-strip span { height: 1.1em; line-height: 1.1em; }
    /* Faster roll on mobile so it feels snappy not sluggish */
    .m-dr-wrap .dr-cell.dr-roll .dr-strip {
        transition-duration: 1.1s;
    }

    /* ── Counter glow-pulse after roll completes ── */
    @keyframes m-counter-glow {
        0%   { text-shadow: none; }
        40%  { text-shadow: 0 0 16px rgba(255,185,0,0.55), 0 0 32px rgba(255,100,0,0.28); }
        100% { text-shadow: 0 0 8px rgba(255,185,0,0.18); }
    }
    .asr-num.m-counter-lit,
    .cos-num.m-counter-lit,
    .about-p3-number.m-counter-lit {
        animation: m-counter-glow 1.6s cubic-bezier(0.2,0.8,0.3,1) forwards;
    }

    /* ── About panel slide-up reveal ── */
    @keyframes m-panel-rise {
        from { opacity: 0; transform: translateY(44px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    .about-panel {
        opacity: 0;
        transform: translateY(44px);
    }
    .about-panel.m-panel-visible {
        animation: m-panel-rise 0.62s cubic-bezier(0.22,0.8,0.28,1) both;
        animation-delay: var(--mp-delay, 0s);
    }

    /* ── asr-item (stat row) stagger scale-in ── */
    @keyframes m-asr-in {
        from { opacity: 0; transform: scale(0.82) translateY(12px); }
        to   { opacity: 1; transform: scale(1)    translateY(0); }
    }
    .asr-item {
        opacity: 0;
        transform: scale(0.82) translateY(12px);
    }
    .asr-item.m-asr-visible {
        animation: m-asr-in 0.48s cubic-bezier(0.22,0.8,0.28,1) both;
        animation-delay: var(--asi-delay, 0s);
    }

    /* ── About feature card slide-in ── */
    @keyframes m-feature-in {
        from { opacity: 0; transform: translateX(-24px); }
        to   { opacity: 1; transform: translateX(0); }
    }
    .about-feature {
        opacity: 0;
        transform: translateX(-24px);
        transition: box-shadow 0.3s;
    }
    .about-feature.m-feature-visible {
        animation: m-feature-in 0.5s cubic-bezier(0.22,0.8,0.28,1) both;
        animation-delay: var(--mf-delay, 0s);
    }
    .about-feature:active {
        box-shadow: 0 0 0 1px rgba(255,185,0,0.35), 0 4px 20px rgba(255,185,0,0.12) !important;
    }

    /* ── Portfolio card stagger slide-up ── */
    @keyframes m-card-in {
        from { opacity: 0; transform: translateY(52px) scale(0.96); }
        to   { opacity: 1; transform: translateY(0)    scale(1); }
    }
    .portfolio-card {
        opacity: 0;
        transform: translateY(52px) scale(0.96);
    }
    .portfolio-card.m-card-visible {
        animation: m-card-in 0.56s cubic-bezier(0.22,0.8,0.28,1) both;
        animation-delay: var(--mpc-delay, 0s);
    }

    /* ── Portfolio card touch active glow ── */
    .portfolio-card:active {
        transform: scale(0.975) !important;
        box-shadow: 0 0 0 1.5px rgba(255,255,255,0.22), 0 8px 32px rgba(255,255,255,0.1) !important;
        transition: transform 0.14s, box-shadow 0.14s !important;
    }

    /* ── Animated shimmer sweep on portfolio card backgrounds ── */
    @keyframes m-card-shimmer {
        0%   { background-position: -200% 0; }
        100% { background-position: 200% 0; }
    }
    .portfolio-card.m-card-visible .pc-bg::after {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(
            105deg,
            transparent 30%,
            rgba(255,255,255,0.045) 50%,
            transparent 70%
        );
        background-size: 200% 100%;
        animation: m-card-shimmer 4s ease-in-out infinite;
        pointer-events: none;
        z-index: 1;
    }

    /* ── Portfolio section header slide-in ── */
    @keyframes m-port-header-in {
        from { opacity: 0; transform: translateY(24px); }
        to   { opacity: 1; transform: translateY(0); }
    }
    /* Start hidden but only while JS is running — fallback: visible after 4s */
    #portfolio .section-header {
        opacity: 0;
        animation: m-port-header-in 0.6s cubic-bezier(0.22,0.8,0.28,1) 4s forwards;
    }
    #portfolio .section-header.m-port-header-visible {
        animation: m-port-header-in 0.6s cubic-bezier(0.22,0.8,0.28,1) forwards;
    }
}
