/* ==========================================================================
   Solvetrics v3 — design layer
   Loaded after main.css. Modern / premium refresh:
   Bricolage Grotesque display + Instrument Serif italic accents,
   floating glass nav, mesh-gradient hero, shots.so-style mockups,
   bento services, cleaner buttons. All new components use the x- prefix.
   ========================================================================== */

:root {
    --x-bg:        #05030d;
    --x-bg-2:      #0a0618;
    --x-ink:       #f6f3ff;
    --x-ink-2:     rgba(246, 243, 255, 0.72);
    --x-ink-3:     rgba(246, 243, 255, 0.5);
    --x-line:      rgba(255, 255, 255, 0.08);
    --x-line-2:    rgba(255, 255, 255, 0.14);
    --x-card:      rgba(255, 255, 255, 0.035);
    --x-card-2:    rgba(255, 255, 255, 0.06);

    --x-violet:    #8b5cf6;
    --x-pink:      #f0568c;
    --x-coral:     #ff6a3d;
    --x-amber:     #ffc861;
    --x-mint:      #34d399;
    --x-sky:       #22d3ee;

    --x-grad:      linear-gradient(100deg, #8b5cf6 0%, #d946ef 38%, #ff6a3d 72%, #ffc861 100%);
    --x-grad-btn:  linear-gradient(100deg, #7c3aed 0%, #c026d3 45%, #ff6a3d 100%);

    --f-display:   'Bricolage Grotesque', 'Inter', system-ui, sans-serif;
    --f-serif:     'Instrument Serif', Georgia, serif;
    --f-body:      'Inter', system-ui, sans-serif;

    --x-r:         22px;
    --x-r-lg:      32px;
    --x-ease:      cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── GLOBAL ─────────────────────────────────────────────────────────────── */
body {
    background-color: var(--x-bg);
    background-image: radial-gradient(ellipse 90% 60% at 50% -10%, rgba(124, 58, 237, 0.22), transparent 60%);
    font-family: var(--f-body);
    color: var(--x-ink);
    letter-spacing: -0.006em;
}
/* film grain */
body::after {
    content: '';
    position: fixed; inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(240, 86, 140, 0.45); color: #fff; }
.container { max-width: 1240px; }

/* Retire heavy legacy decoration */
.glow-aura-spotlight { display: none !important; }

/* ── TYPE SYSTEM (also upgrades legacy pages) ────────────────────────────── */
.section-title,
.page-hero-title,
.hero h1,
h1, h2, h3 {
    font-family: var(--f-display);
    font-optical-sizing: auto;
}
.section-title {
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.02;
    font-size: clamp(2.2rem, 4.6vw, 3.8rem);
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--x-ink);
}
.section-sub { color: var(--x-ink-2); font-weight: 400; }
.section-tag,
.x-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--f-body);
    font-size: 0.74rem; font-weight: 600;
    letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--x-ink-2);
    margin-bottom: 18px;
}
.section-tag::before,
.x-eyebrow::before {
    content: '';
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--x-grad);
    box-shadow: 0 0 12px rgba(240, 86, 140, 0.8);
}

/* The old handwritten accent becomes an editorial italic serif */
.cursive-accent,
h2 .cursive-accent {
    font-family: var(--f-serif) !important;
    font-style: italic;
    font-weight: 400 !important;
    font-size: 1.08em !important;
    letter-spacing: -0.01em;
    transform: none !important;
    padding: 0 0.04em 0 0 !important;
    vertical-align: baseline !important;
    background: var(--x-grad) !important;
    background-size: 200% auto !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    animation: xShift 8s ease-in-out infinite alternate !important;
}
.x-serif {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
    letter-spacing: -0.01em;
}
.x-h2 em.x-serif,
.x-grad-serif,
.x-cta-card em.x-serif {
    background: var(--x-grad);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: xShift 8s ease-in-out infinite alternate;
    padding-right: 0.06em;
}
@keyframes xShift { from { background-position: 0% center; } to { background-position: 100% center; } }

.x-h2 {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(2.1rem, 4.4vw, 3.6rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: var(--x-ink);
    margin: 0;
}
.x-h2 em.x-serif { font-size: 1.08em; }
.x-lead { color: var(--x-ink-2); font-size: 1.08rem; line-height: 1.7; max-width: 620px; margin: 18px auto 0; }

/* ── BUTTONS ────────────────────────────────────────────────────────────── */
.x-btn,
.btn-primary, .btn-outline, .solv-btn, .solv-btn--primary, .solv-btn--outline,
.submit-btn, .pcard-visit-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--f-body);
    font-weight: 600; font-size: 0.95rem;
    letter-spacing: -0.005em;
    padding: 13px 24px;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    isolation: isolate;
    transition: transform .35s var(--x-ease), box-shadow .35s var(--x-ease), background .35s ease, border-color .35s ease, color .25s ease;
}
.x-btn::after, .btn-primary::after, .btn-outline::after, .solv-btn::after, .submit-btn::after { display: none; }

.x-btn--primary,
.btn-primary, .solv-btn, .solv-btn--primary, .submit-btn {
    color: #fff;
    background: var(--x-grad-btn);
    background-size: 160% 100%;
    background-position: 0% 50%;
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 10px 30px -8px rgba(217, 70, 239, 0.6),
        0 4px 14px -4px rgba(255, 106, 61, 0.5);
}
.x-btn--primary:hover,
.btn-primary:hover, .solv-btn:hover, .solv-btn--primary:hover, .submit-btn:hover {
    transform: translateY(-2px);
    background-position: 100% 50%;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        0 18px 40px -10px rgba(217, 70, 239, 0.75),
        0 6px 18px -4px rgba(255, 106, 61, 0.6);
}
.x-btn--ghost,
.btn-outline, .solv-btn--outline, .pcard-visit-btn {
    color: var(--x-ink);
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--x-line-2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.x-btn--ghost:hover,
.btn-outline:hover, .solv-btn--outline:hover, .pcard-visit-btn:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.09);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 10px 30px -12px rgba(139, 92, 246, 0.6);
}
.x-btn--light {
    color: #0b0716;
    background: #fff;
    border-color: #fff;
}
.x-btn--light:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -10px rgba(255, 255, 255, 0.45); }
.x-btn--lg { padding: 16px 30px; font-size: 1rem; }
.x-btn--sm { padding: 9px 16px; font-size: 0.84rem; }
.x-btn-ico {
    display: inline-grid; place-items: center;
    width: 24px; height: 24px; margin-right: -8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.22);
    font-size: 0.8rem;
    transition: transform .35s var(--x-ease);
}
.x-btn:hover .x-btn-ico { transform: rotate(45deg); }
.btn-primary span, .btn-outline span { position: static; }

/* ── HEADER: floating glass pill ────────────────────────────────────────── */
.site-header,
.site-header.scrolled {
    top: 14px;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
}
.site-header .header-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 9px 9px 9px 22px;
    border-radius: 999px;
    background: rgba(12, 8, 28, 0.55);
    border: 1px solid var(--x-line);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px) saturate(160%);
    -webkit-backdrop-filter: blur(20px) saturate(160%);
    transition: background .4s ease, max-width .5s var(--x-ease);
}
.site-header.scrolled .header-inner { background: rgba(10, 6, 22, 0.82); max-width: 1100px; }
.logo-img,
.site-header.scrolled .logo-img {
    height: 30px !important;
    filter: none !important;
}
.footer-brand .logo-img { height: 38px !important; }
.primary-menu { gap: 2px; }
.primary-menu a {
    font-family: var(--f-body);
    font-size: 0.88rem; font-weight: 500;
    color: var(--x-ink-2);
    padding: 9px 14px;
    border-radius: 999px;
}
.primary-menu a::after { display: none; }
.primary-menu a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a,
.primary-menu li.active > a,
.primary-menu a.active { color: #fff; background: rgba(255, 255, 255, 0.09); }

.btn-consult {
    padding: 11px 20px;
    border-radius: 999px;
    color: #0b0716 !important;
    background: #fff !important;
    border: 0 !important;
    font-family: var(--f-body);
    font-size: 0.86rem; font-weight: 600;
    box-shadow: 0 6px 20px -6px rgba(255, 255, 255, 0.35);
}
.btn-consult::before, .btn-consult::after { display: none !important; }
.btn-consult .inner { color: inherit !important; background: none !important; padding: 0 !important; }
.btn-consult .blob1 { display: none !important; }
.btn-consult:hover { transform: translateY(-1px); box-shadow: 0 10px 30px -8px rgba(255, 255, 255, 0.5); }

@media (max-width: 900px) {
    .site-header { top: 10px; padding: 0 12px; }
    .site-header .header-inner { padding: 8px 8px 8px 18px; }
    .site-nav {
        top: calc(100% + 10px) !important;
        left: 12px !important; right: 12px !important;
        border-radius: 24px;
        border: 1px solid var(--x-line) !important;
        background: rgba(10, 6, 22, 0.96) !important;
    }
}

/* ── ENTRANCE ANIMATION ─────────────────────────────────────────────────── */
.x-in {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(6px);
    animation: xIn 0.9s var(--x-ease) forwards;
    animation-delay: calc(var(--d, 0) * 90ms + 150ms);
}
@keyframes xIn { to { opacity: 1; transform: none; filter: blur(0); } }

/* ── SHARED BACKGROUND (mesh + grid) ────────────────────────────────────── */
.x-hero-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.x-blob {
    position: absolute; border-radius: 50%;
    filter: blur(90px);
    opacity: 0.55;
    animation: xFloat 18s ease-in-out infinite alternate;
}
.x-blob--1 { width: 620px; height: 620px; left: -160px; top: -200px; background: radial-gradient(circle, #7c3aed, transparent 65%); }
.x-blob--2 { width: 560px; height: 560px; right: -140px; top: -80px; background: radial-gradient(circle, #ff6a3d, transparent 65%); opacity: 0.4; animation-delay: -6s; }
.x-blob--3 { width: 520px; height: 520px; left: 35%; top: 30%; background: radial-gradient(circle, #d946ef, transparent 65%); opacity: 0.28; animation-delay: -12s; }
@keyframes xFloat { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }
.x-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
}

/* ══════════════════════════════════════════════════════════════════════════
   HOME HERO
   ══════════════════════════════════════════════════════════════════════════ */
.x-hero {
    position: relative;
    padding: 168px 0 0;
    overflow: hidden;
    isolation: isolate;
}
.x-hero-inner { position: relative; z-index: 2; text-align: center; }

.x-pill {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 7px 8px 7px 16px;
    border-radius: 999px;
    font-size: 0.86rem; font-weight: 500;
    color: var(--x-ink);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--x-line-2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    margin-bottom: 30px;
    transition: background .3s ease, border-color .3s ease;
}
.x-pill:hover { background: rgba(255, 255, 255, 0.09); border-color: rgba(255, 255, 255, 0.25); }
.x-pill-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--x-mint);
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: xPing 2s infinite;
}
@keyframes xPing { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.x-pill-arrow {
    display: inline-grid; place-items: center;
    width: 26px; height: 26px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
}

.x-hero-title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(2.9rem, 7.6vw, 7.1rem);
    line-height: 0.96;
    letter-spacing: -0.05em;
    margin: 0 auto 28px;
    max-width: 1100px;
    color: var(--x-ink);
    -webkit-text-fill-color: currentColor;
    background: none;
}
.x-line { display: block; }
.x-grad {
    background: var(--x-grad);
    background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: xShift 6s ease-in-out infinite alternate;
}
.x-rotator { display: inline-block; white-space: nowrap; }
.x-rotator .x-serif {
    font-size: 1.06em;
    letter-spacing: -0.02em;
    color: #fff;
}
.x-rotator-word {
    display: inline-block;
    transition: opacity .45s var(--x-ease), transform .45s var(--x-ease), filter .45s var(--x-ease);
}
.x-rotator-word.is-out { opacity: 0; transform: translateY(0.25em); filter: blur(8px); }

.x-hero-sub {
    max-width: 620px;
    margin: 0 auto 38px;
    font-size: clamp(1.02rem, 1.4vw, 1.2rem);
    line-height: 1.65;
    color: var(--x-ink-2);
}
.x-hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.x-hero-proof {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px;
    margin: 46px 0 0; padding: 0;
    font-size: 0.82rem; font-weight: 500; letter-spacing: 0.02em;
    color: var(--x-ink-3);
}
.x-hero-proof li { list-style: none; display: inline-flex; align-items: center; gap: 26px; }
.x-hero-proof li + li::before { content: '✦'; font-size: 0.6rem; color: rgba(255, 255, 255, 0.25); margin-left: -26px; margin-right: 0; position: relative; left: -10px; }

/* Stage: fanned mockups */
.x-hero-stage {
    position: relative;
    z-index: 1;
    max-width: 1180px;
    margin: 70px auto 0;
    padding: 0 28px;
    height: clamp(300px, 46vw, 600px);
    perspective: 1800px;
}
.x-fan { position: relative; height: 100%; transform-style: preserve-3d; }
.x-fan-item {
    position: absolute;
    left: 50%; top: 0;
    width: min(760px, 66%);
    transform-origin: 50% 100%;
    transition: transform 1s var(--x-ease);
    will-change: transform;
}
.x-fan-item--0 { z-index: 3; transform: translateX(-50%) translateZ(0) rotateX(8deg); }
.x-fan-item--1 { z-index: 2; transform: translateX(-104%) translateY(48px) rotate(-7deg) scale(0.86); opacity: 0.9; }
.x-fan-item--2 { z-index: 2; transform: translateX(4%) translateY(48px) rotate(7deg) scale(0.86); opacity: 0.9; }
.x-hero-stage:hover .x-fan-item--0 { transform: translateX(-50%) translateY(-10px) rotateX(2deg); }
.x-hero-stage:hover .x-fan-item--1 { transform: translateX(-112%) translateY(40px) rotate(-9deg) scale(0.86); }
.x-hero-stage:hover .x-fan-item--2 { transform: translateX(12%) translateY(40px) rotate(9deg) scale(0.86); }
.x-hero-stage::after {
    content: '';
    position: absolute; left: 0; right: 0; bottom: -2px; height: 45%;
    background: linear-gradient(to bottom, transparent, var(--x-bg) 85%);
    z-index: 5; pointer-events: none;
}

/* floating notification chips */
.x-float {
    position: absolute; z-index: 6;
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px 12px 12px;
    border-radius: 18px;
    background: rgba(18, 12, 38, 0.72);
    border: 1px solid var(--x-line-2);
    box-shadow: 0 20px 50px -15px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    font-size: 0.84rem; line-height: 1.3;
    color: var(--x-ink);
    text-align: left;
    animation: xBob 6s ease-in-out infinite;
}
.x-float strong { font-weight: 600; }
.x-float small { display: block; color: var(--x-ink-3); font-size: 0.74rem; margin-top: 2px; }
.x-float-ico {
    display: grid; place-items: center;
    width: 36px; height: 36px; border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(255, 106, 61, 0.35));
    font-size: 1.05rem;
}
.x-float--a { left: 2%; top: 14%; }
.x-float--b { right: 1%; top: 6%; animation-delay: -2s; }
.x-float--c { right: 8%; top: 46%; animation-delay: -4s; }
@keyframes xBob { 50% { transform: translateY(-10px); } }

.x-sticker {
    position: absolute; z-index: 7;
    left: 13%; top: 52%;
    width: 120px; height: 120px;
    display: grid; place-items: center;
}
.x-sticker svg { position: absolute; inset: 0; animation: xSpin 16s linear infinite; }
.x-sticker text {
    fill: #fff; font-family: var(--f-body);
    font-size: 10.5px; font-weight: 700; letter-spacing: 2.4px;
}
.x-sticker span {
    width: 54px; height: 54px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--x-grad-btn);
    font-size: 1.4rem;
    box-shadow: 0 10px 30px -6px rgba(217, 70, 239, 0.7);
}
@keyframes xSpin { to { transform: rotate(360deg); } }

/* big marquee */
.x-marquee {
    position: relative; z-index: 6;
    margin-top: -30px;
    padding: 22px 0;
    border-top: 1px solid var(--x-line);
    border-bottom: 1px solid var(--x-line);
    background: rgba(5, 3, 13, 0.7);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.x-marquee-track {
    display: flex; align-items: center; gap: 34px;
    width: max-content;
    animation: xMarquee 38s linear infinite;
}
.x-marquee span {
    font-family: var(--f-display);
    font-size: clamp(1.4rem, 2.6vw, 2.2rem);
    font-weight: 600; letter-spacing: -0.03em;
    color: rgba(255, 255, 255, 0.85);
    white-space: nowrap;
}
.x-marquee span:nth-of-type(even) { font-family: var(--f-serif); font-style: italic; font-weight: 400; color: rgba(255, 255, 255, 0.55); }
.x-marquee i { font-style: normal; color: var(--x-coral); font-size: 1rem; }
@keyframes xMarquee { to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════════════════════════════════════
   PROMO VIDEO
   ══════════════════════════════════════════════════════════════════════════ */
.x-video-section { padding: 110px 0 30px; position: relative; }
.x-video-head { text-align: center; margin-bottom: 40px; }
.x-video-frame {
    position: relative;
    max-width: 1060px; margin: 0 auto;
    aspect-ratio: 16 / 9;
    border-radius: var(--x-r-lg);
    padding: 10px;
    background: linear-gradient(var(--x-bg-2), var(--x-bg-2)) padding-box, var(--x-grad) border-box;
    border: 1px solid transparent;
    box-shadow: 0 40px 120px -40px rgba(217, 70, 239, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.x-video-frame video,
.x-video-frame iframe {
    display: block; width: 100%; height: 100%;
    border: 0; border-radius: calc(var(--x-r-lg) - 10px);
    background: #000; object-fit: cover;
}
.x-video-play {
    position: absolute; left: 50%; top: 50%;
    transform: translate(-50%, -50%);
    width: 92px; height: 92px; border-radius: 50%;
    border: 0; cursor: pointer;
    display: grid; place-items: center;
    color: #0b0716;
    background: #fff;
    box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.7);
    transition: transform .4s var(--x-ease), opacity .3s ease;
}
.x-video-play svg { width: 34px; height: 34px; margin-left: 4px; }
.x-video-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.x-video-play-ring {
    position: absolute; inset: -10px; border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.5);
    animation: xRing 2.2s var(--x-ease) infinite;
}
@keyframes xRing { from { transform: scale(0.9); opacity: 1; } to { transform: scale(1.45); opacity: 0; } }
.x-video-frame.is-playing .x-video-play { opacity: 0; pointer-events: none; }

/* ══════════════════════════════════════════════════════════════════════════
   HOME — services cards & contact (upgrade legacy markup)
   ══════════════════════════════════════════════════════════════════════════ */
.service-card,
.contact-form,
.client-card,
.svc-visual,
.portfolio-card {
    background: var(--x-card) !important;
    border: 1px solid var(--x-line) !important;
    border-radius: var(--x-r) !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
    backdrop-filter: blur(10px);
}
.service-card { padding: 34px 30px !important; transition: transform .5s var(--x-ease), border-color .3s ease, background .3s ease; }
.service-card:hover { transform: translateY(-6px); border-color: var(--x-line-2) !important; background: var(--x-card-2) !important; }
.service-card h3 { font-size: 1.4rem; letter-spacing: -0.025em; font-weight: 700; }
.service-num { font-family: var(--f-body); color: var(--x-ink-3) !important; letter-spacing: 0.1em; }
.stag {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid var(--x-line) !important;
    color: var(--x-ink-2) !important;
    border-radius: 999px !important;
}
.contact-form input, .contact-form select, .contact-form textarea {
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid var(--x-line-2) !important;
    border-radius: 14px !important;
    color: var(--x-ink) !important;
    font-family: var(--f-body);
}
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
    border-color: rgba(217, 70, 239, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(217, 70, 239, 0.15) !important;
    outline: none;
}

/* ══════════════════════════════════════════════════════════════════════════
   SECTION HEADS
   ══════════════════════════════════════════════════════════════════════════ */
.x-section-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 30px;
    margin-bottom: 52px;
}
.x-section-head--center { justify-content: center; text-align: center; }
.x-section-head--center .x-eyebrow { justify-content: center; }

/* ══════════════════════════════════════════════════════════════════════════
   MOCKUP STAGE (shots.so style)
   ══════════════════════════════════════════════════════════════════════════ */
.x-stage {
    --a1: #7c3aed; --a2: #ff6a3d;
    position: relative;
    aspect-ratio: 16 / 11;
    padding: 7% 9% 0;
    overflow: hidden;
    border-radius: inherit;
    isolation: isolate;
}
.x-stage-bg {
    position: absolute; inset: 0; z-index: -1;
    background:
        radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--a1) 85%, transparent) 0%, transparent 55%),
        radial-gradient(110% 90% at 100% 100%, color-mix(in srgb, var(--a2) 80%, transparent) 0%, transparent 55%),
        radial-gradient(80% 80% at 80% 10%, color-mix(in srgb, var(--a2) 35%, transparent) 0%, transparent 60%),
        #120c26;
}
.x-stage-bg::after {
    content: '';
    position: absolute; inset: 0;
    opacity: 0.22; mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.x-browser {
    position: relative;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background: #0d0a1a;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.16),
        0 30px 60px -20px rgba(0, 0, 0, 0.7),
        0 60px 90px -40px rgba(0, 0, 0, 0.6);
    transition: transform .8s var(--x-ease);
    transform-origin: 50% 100%;
}
.x-browser-bar {
    display: flex; align-items: center; gap: 12px;
    height: 30px; padding: 0 12px;
    background: rgba(28, 22, 48, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.x-dots { display: inline-flex; gap: 6px; }
.x-dots i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.x-dots i:nth-child(2) { background: #febc2e; }
.x-dots i:nth-child(3) { background: #28c840; }
.x-url {
    flex: 1;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    max-width: 60%; margin: 0 auto;
    height: 19px; border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
    font-size: 10.5px; color: rgba(255, 255, 255, 0.6);
    font-family: var(--f-body);
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
    transform: translateX(-24px);
}
.x-url svg { width: 9px; height: 9px; color: rgba(255, 255, 255, 0.5); flex: none; }
.x-browser-screen {
    position: relative;
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent 30%),
        linear-gradient(135deg, color-mix(in srgb, var(--a1) 30%, #0d0a1a), color-mix(in srgb, var(--a2) 25%, #0d0a1a));
}
.x-browser-screen img {
    position: absolute; inset: 0; z-index: 1;
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    transition: opacity .4s ease;
}
.x-screen-fallback {
    position: absolute; inset: 0;
    display: grid; place-items: center;
    font-family: var(--f-display);
    font-weight: 700; letter-spacing: -0.04em;
    font-size: clamp(1.2rem, 3vw, 2.4rem);
    color: rgba(255, 255, 255, 0.85);
}
.x-phone {
    position: absolute; z-index: 3;
    right: 5%; bottom: -8%;
    width: 21%;
    aspect-ratio: 9 / 19;
    border-radius: 22px;
    padding: 5px;
    background: #0b0812;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18), 0 30px 50px -15px rgba(0, 0, 0, 0.8);
    transition: transform .8s var(--x-ease);
}
.x-phone img {
    width: 100%; height: 100%;
    object-fit: cover; object-position: top center;
    border-radius: 17px;
    background: linear-gradient(160deg, var(--a1), var(--a2));
}
.x-phone-notch {
    position: absolute; z-index: 2; top: 9px; left: 50%;
    width: 32%; height: 9px; border-radius: 9px;
    transform: translateX(-50%);
    background: #000;
}

/* hero fan: browser only, no backdrop */
.x-stage--bare { aspect-ratio: auto; padding: 0; overflow: visible; }
.x-stage--bare .x-stage-bg, .x-stage--bare .x-phone { display: none; }
.x-stage--bare .x-browser { border-radius: 14px; }

/* case-study hero stage */
.x-stage--hero {
    aspect-ratio: 16 / 9;
    border-radius: var(--x-r-lg);
    padding: 6% 12% 0;
    box-shadow: 0 0 0 1px var(--x-line-2), 0 50px 120px -40px color-mix(in srgb, var(--a1) 60%, transparent);
}
.x-stage--hero .x-phone { width: 17%; right: 6%; bottom: -10%; }

/* ══════════════════════════════════════════════════════════════════════════
   WORK GRID
   ══════════════════════════════════════════════════════════════════════════ */
.x-work-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 22px;
}
.x-work--lg { grid-column: span 3; }
.x-work--md { grid-column: span 2; }
.x-work-grid--home .x-work { grid-column: span 2; }
.x-work-grid--home .x-work--lg { grid-column: span 6; }
.x-work-grid--home .x-work--lg .x-stage { aspect-ratio: 21 / 9; padding: 5% 22% 0; }
.x-work-grid--home .x-work--lg .x-phone { width: 13%; right: 12%; }

.x-work {
    display: flex; flex-direction: column;
    padding: 8px;
    border-radius: var(--x-r-lg);
    background: var(--x-card);
    border: 1px solid var(--x-line);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform .6s var(--x-ease), border-color .3s ease, background .3s ease, box-shadow .6s var(--x-ease);
}
.x-work:hover {
    transform: translateY(-6px);
    border-color: var(--x-line-2);
    background: var(--x-card-2);
    box-shadow: 0 30px 80px -40px rgba(139, 92, 246, 0.55);
}
.x-work-media {
    position: relative; display: block;
    border-radius: calc(var(--x-r-lg) - 8px);
    overflow: hidden;
}
.x-work-media .x-stage { border-radius: calc(var(--x-r-lg) - 8px); }
.x-work:hover .x-browser { transform: translateY(-8px) scale(1.015); }
.x-work:hover .x-phone { transform: translateY(-14px) rotate(-3deg); }
.x-work-chip {
    position: absolute; left: 14px; top: 14px; z-index: 4;
    padding: 6px 12px; border-radius: 999px;
    font-size: 0.74rem; font-weight: 600;
    color: #fff;
    background: rgba(10, 6, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.x-work-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 14px 14px; flex: 1; }
.x-work-title {
    font-family: var(--f-display);
    font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em;
    color: var(--x-ink); margin: 0 0 2px;
}
.x-work--lg .x-work-title { font-size: 1.85rem; }
.x-work-ind { font-size: 0.8rem; color: var(--x-ink-3); font-weight: 500; }
.x-work-desc { color: var(--x-ink-2); font-size: 0.96rem; line-height: 1.6; margin: 0; }
.x-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.x-tags span {
    padding: 4px 10px; border-radius: 999px;
    font-size: 0.74rem; font-weight: 500;
    color: var(--x-ink-2);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--x-line);
}
.x-tags--lg span { padding: 8px 16px; font-size: 0.88rem; }
.x-work-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }

/* ══════════════════════════════════════════════════════════════════════════
   INNER PAGE HERO (portfolio / services / case)
   ══════════════════════════════════════════════════════════════════════════ */
.x-page-hero,
.x-case-hero {
    position: relative;
    padding: 180px 0 70px;
    text-align: center;
    overflow: hidden;
    isolation: isolate;
}
.x-page-hero .container,
.x-case-hero .container { position: relative; z-index: 2; }
.x-page-title {
    font-family: var(--f-display);
    font-weight: 700;
    font-size: clamp(2.8rem, 7vw, 6.2rem);
    line-height: 0.98; letter-spacing: -0.05em;
    color: var(--x-ink);
    max-width: 1000px; margin: 0 auto 24px;
}
.x-page-title em.x-serif { font-size: 1.04em; }
.x-page-sub {
    max-width: 640px; margin: 0 auto;
    font-size: 1.12rem; line-height: 1.7; color: var(--x-ink-2);
}
.x-page-meta {
    display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    margin-top: 34px;
}
.x-page-meta span {
    padding: 8px 16px; border-radius: 999px;
    font-size: 0.86rem; color: var(--x-ink-2);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--x-line);
}
.x-page-meta strong { color: #fff; font-weight: 700; margin-right: 4px; }
.x-page-hero--svc .x-hero-ctas { margin-top: 36px; }

/* Filters */
.x-filters {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
    width: fit-content; max-width: 100%;
    margin: 0 auto 46px;
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--x-line);
}
.x-filter {
    padding: 10px 18px; border-radius: 999px;
    border: 0; cursor: pointer;
    font-family: var(--f-body); font-size: 0.88rem; font-weight: 500;
    color: var(--x-ink-2); background: transparent;
    transition: background .3s ease, color .3s ease;
}
.x-filter:hover { color: #fff; }
.x-filter.is-active { color: #0b0716; background: #fff; }
.x-work.is-hidden { display: none; }
.x-empty { text-align: center; color: var(--x-ink-3); padding: 50px 0; }
.x-work-section { padding: 0 0 110px; }

/* CTA card */
.x-cta { padding: 40px 0 120px; }
.x-cta-card {
    position: relative; overflow: hidden;
    text-align: center;
    padding: clamp(50px, 8vw, 96px) 28px;
    border-radius: 40px;
    background: radial-gradient(120% 140% at 50% 0%, rgba(124, 58, 237, 0.35), transparent 60%), #0c0820;
    border: 1px solid var(--x-line-2);
}
.x-cta-card > * { position: relative; z-index: 1; }
.x-cta-card .x-eyebrow { justify-content: center; }
.x-cta-card p { max-width: 560px; margin: 20px auto 34px; color: var(--x-ink-2); font-size: 1.08rem; line-height: 1.7; }
.x-cta-glow {
    position: absolute !important; z-index: 0 !important;
    left: 50%; bottom: -60%;
    width: 900px; height: 500px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(255, 106, 61, 0.45), rgba(217, 70, 239, 0.25), transparent);
    filter: blur(30px);
}

/* ══════════════════════════════════════════════════════════════════════════
   CASE STUDY
   ══════════════════════════════════════════════════════════════════════════ */
.x-blob--case1 { width: 640px; height: 640px; left: -180px; top: -220px; background: radial-gradient(circle, var(--a1), transparent 65%); }
.x-blob--case2 { width: 560px; height: 560px; right: -160px; top: -60px; background: radial-gradient(circle, var(--a2), transparent 65%); opacity: 0.4; }
.x-back {
    display: inline-flex; margin-bottom: 26px;
    font-size: 0.88rem; color: var(--x-ink-3);
    transition: color .3s ease;
}
.x-back:hover { color: #fff; }
.x-case-hero .x-eyebrow { display: flex; justify-content: center; }
.x-case-meta {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 0;
    width: fit-content; max-width: 100%;
    margin: 36px auto 0;
    border-radius: 20px;
    border: 1px solid var(--x-line);
    background: rgba(255, 255, 255, 0.03);
    overflow: hidden;
}
.x-case-meta div { padding: 14px 24px; text-align: left; border-right: 1px solid var(--x-line); }
.x-case-meta div:last-child { border-right: 0; }
.x-case-meta small { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--x-ink-3); }
.x-case-meta strong { font-weight: 600; font-size: 0.95rem; }
.x-case-ctas { margin-top: 30px; }
.x-case-stage-wrap { margin-top: 64px; }

.x-case-story { padding-top: 70px; }
.x-case-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.x-case-block {
    padding: 40px;
    border-radius: var(--x-r-lg);
    background: var(--x-card);
    border: 1px solid var(--x-line);
}
.x-case-num {
    display: inline-block;
    font-family: var(--f-serif); font-style: italic;
    font-size: 2.4rem; line-height: 1;
    background: linear-gradient(120deg, var(--a1), var(--a2));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 14px;
}
.x-case-block h2 { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 14px; }
.x-case-block p { color: var(--x-ink-2); font-size: 1.04rem; line-height: 1.8; margin: 0; }
.x-case-hl-head { text-align: center; margin: 100px 0 40px; }
.x-case-hl-head .x-eyebrow { justify-content: center; }
.x-case-hl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.x-case-hl-item {
    padding: 26px 24px;
    border-radius: var(--x-r);
    background: linear-gradient(160deg, color-mix(in srgb, var(--a1) 14%, transparent), rgba(255, 255, 255, 0.02));
    border: 1px solid var(--x-line);
}
.x-case-hl-item span { font-family: var(--f-display); font-weight: 700; font-size: 0.85rem; color: var(--x-ink-3); }
.x-case-hl-item p { margin: 30px 0 0; font-family: var(--f-display); font-size: 1.15rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; }
.x-case-stack { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; margin-top: 46px; }
.x-case-stack small { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--x-ink-3); }
.x-case-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 60px; }
.x-case-gallery figure { margin: 0; border-radius: var(--x-r); overflow: hidden; border: 1px solid var(--x-line); }
.x-next {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    margin-bottom: 40px; text-align: center;
}
.x-next small { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.72rem; color: var(--x-ink-3); }
.x-next span { font-family: var(--f-display); font-weight: 700; font-size: clamp(2rem, 5vw, 3.6rem); letter-spacing: -0.04em; }
.x-next i { font-style: normal; display: inline-block; transition: transform .4s var(--x-ease); }
.x-next:hover i { transform: translateX(10px); }

/* ══════════════════════════════════════════════════════════════════════════
   SERVICES
   ══════════════════════════════════════════════════════════════════════════ */
/* hide the legacy broken hero wrapper if a stale template is cached */
.services-page-hero:empty { display: none; }

.x-jump {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
    margin-top: 40px;
}
.x-jump a {
    padding: 9px 16px; border-radius: 999px;
    font-size: 0.86rem; font-weight: 500;
    color: var(--x-ink-2);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--x-line);
    transition: all .3s ease;
}
.x-jump a:hover { color: #fff; border-color: var(--x-line-2); background: rgba(255, 255, 255, 0.08); transform: translateY(-2px); }

/* logo marquee */
.x-logos {
    overflow: hidden;
    padding: 26px 0;
    border-top: 1px solid var(--x-line);
    border-bottom: 1px solid var(--x-line);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.x-logos-track { display: flex; gap: 48px; width: max-content; animation: xMarquee 45s linear infinite; }
.x-logo-item {
    display: inline-flex; align-items: center; gap: 10px;
    font-family: var(--f-display); font-weight: 600; font-size: 1.05rem;
    color: var(--x-ink-2); white-space: nowrap;
    filter: grayscale(1) brightness(1.6); opacity: 0.75;
    transition: filter .3s ease, opacity .3s ease;
}
.x-logo-item:hover { filter: none; opacity: 1; }
.x-logo-svg svg { width: 26px; height: 26px; display: block; }

/* bento */
.x-bento {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(250px, auto);
    gap: 18px;
}
.x-tile {
    position: relative; overflow: hidden;
    display: flex; flex-direction: column;
    padding: 30px;
    border-radius: var(--x-r-lg);
    background: var(--x-card);
    border: 1px solid var(--x-line);
    color: var(--x-ink);
    transition: transform .6s var(--x-ease), border-color .3s ease, background .3s ease;
    scroll-margin-top: 120px;
}
.x-tile::before {
    content: '';
    position: absolute; inset: 0; z-index: -1;
    opacity: 0; transition: opacity .5s ease;
    background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(217, 70, 239, 0.16), transparent 60%);
}
.x-tile:hover { transform: translateY(-5px); border-color: var(--x-line-2); }
.x-tile:hover::before { opacity: 1; }
.x-tile h3 { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; margin: 18px 0 10px; }
.x-tile p { color: var(--x-ink-2); font-size: 0.97rem; line-height: 1.65; margin: 0; }
.x-tile-top { display: flex; align-items: center; justify-content: space-between; }
.x-tile-ico {
    display: grid; place-items: center;
    width: 48px; height: 48px; border-radius: 15px;
    font-size: 1.35rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--x-line);
}
.x-tile-tag {
    padding: 6px 12px; border-radius: 999px;
    font-size: 0.74rem; font-weight: 600;
    background: var(--x-grad-btn); color: #fff;
}
.x-tile--ai     { grid-column: span 4; grid-row: span 2; background: radial-gradient(120% 90% at 100% 0%, rgba(124, 58, 237, 0.28), transparent 55%), var(--x-card); }
.x-tile--member { grid-column: span 2; grid-row: span 2; background: radial-gradient(120% 80% at 0% 100%, rgba(34, 211, 238, 0.18), transparent 60%), var(--x-card); }
.x-tile--shop   { grid-column: span 2; background: radial-gradient(120% 90% at 100% 100%, rgba(255, 106, 61, 0.2), transparent 60%), var(--x-card); }
.x-tile--funnel { grid-column: span 2; }
.x-tile--code   { grid-column: span 2; }
.x-tile--care   { grid-column: span 6; flex-direction: row; align-items: center; gap: 30px; background: radial-gradient(80% 140% at 100% 50%, rgba(52, 211, 153, 0.16), transparent 60%), var(--x-card); }
.x-tile--care h3 { margin-top: 0; }
.x-tile--care .x-tile-top { flex: none; }
.x-tile--care p { max-width: 520px; }

.x-mini-pipe {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
    margin-top: auto; padding-top: 30px;
}
.x-mini-pipe div {
    display: flex; flex-direction: column; gap: 6px;
    padding: 12px; border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--x-line);
}
.x-mini-pipe small { font-size: 0.7rem; color: var(--x-ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.x-mini-pipe b { height: 22px; border-radius: 7px; background: rgba(255, 255, 255, 0.06); position: relative; overflow: hidden; }
.x-mini-pipe b::after { content: ''; position: absolute; left: 6px; top: 50%; width: 40%; height: 5px; border-radius: 4px; transform: translateY(-50%); }
.x-mini-pipe .c1::after { background: var(--x-sky); }
.x-mini-pipe .c2::after { background: var(--x-violet); }
.x-mini-pipe .c3::after { background: var(--x-coral); }
.x-mini-pipe .c4::after { background: var(--x-mint); width: 60%; }
.x-mini-chat { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; font-size: 0.86rem; }
.x-mini-chat span { max-width: 78%; padding: 10px 14px; border-radius: 16px; line-height: 1.45; }
.x-mini-chat .me { align-self: flex-start; background: rgba(255, 255, 255, 0.07); border-bottom-left-radius: 5px; }
.x-mini-chat .ai { align-self: flex-end; background: var(--x-grad-btn); border-bottom-right-radius: 5px; }

.x-mini-tiers { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 30px; }
.x-mini-tiers span {
    padding: 14px 16px; border-radius: 14px;
    font-family: var(--f-display); font-weight: 600;
    background: rgba(0, 0, 0, 0.25); border: 1px solid var(--x-line);
    color: var(--x-ink-2);
}
.x-mini-tiers .on { color: #fff; border-color: rgba(255, 200, 97, 0.5); background: linear-gradient(120deg, rgba(255, 200, 97, 0.2), rgba(255, 106, 61, 0.15)); }
.x-mini-tiers .on::after { content: ' ✦'; color: var(--x-amber); }

.x-mini-checkout { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 0.86rem; }
.x-mini-checkout span { color: var(--x-ink-2); }
.x-mini-checkout s { color: var(--x-ink-3); margin: 0 6px; }
.x-mini-checkout b { color: #fff; font-size: 1.05rem; }
.x-mini-checkout i { font-style: normal; text-align: center; padding: 10px; border-radius: 12px; background: #fff; color: #0b0716; font-weight: 600; }

.x-mini-funnel { margin-top: auto; padding-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.x-mini-funnel i { display: block; height: 14px; border-radius: 8px; background: var(--x-grad); opacity: 0.85; }

.x-mini-code {
    margin: auto 0 0; padding: 16px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.35); border: 1px solid var(--x-line);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.78rem; line-height: 1.6; color: var(--x-ink-2);
    white-space: pre-wrap;
}
.x-mini-code .k { color: #c4b5fd; }
.x-mini-code .s { color: #fdba74; }
.x-mini-code .f { color: #67e8f9; }

.x-mini-gauge { position: relative; margin-left: auto; width: 180px; flex: none; }
.x-mini-gauge svg { width: 100%; display: block; }
.x-gauge-arc { stroke-dasharray: 160; stroke-dashoffset: 160; animation: xGauge 2.2s var(--x-ease) .4s forwards; }
@keyframes xGauge { to { stroke-dashoffset: 14; } }
.x-mini-gauge b { position: absolute; left: 0; right: 0; bottom: 0; text-align: center; font-family: var(--f-display); font-size: 1.1rem; }

/* deep dives — legacy blocks, restyled */
.x-deep { padding: 110px 0 60px !important; }
.x-deep .svc-showcase-grid { gap: 28px; }
.x-deep .svc-block {
    padding: 28px;
    border-radius: 36px;
    background: var(--x-card);
    border: 1px solid var(--x-line);
    scroll-margin-top: 110px;
}
.x-deep .svc-content h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.035em; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.08; }
.x-deep .svc-content p { color: var(--x-ink-2); }
.x-deep .svc-feature { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--x-line); border-radius: 16px; }
.x-deep .svc-testimonial { border-radius: 18px; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--x-line); }
.x-deep .svc-testimonial-text { font-family: var(--f-serif); font-style: italic; font-size: 1.2rem; line-height: 1.5; color: var(--x-ink); }
.x-deep .svc-content .x-btn { margin-top: 8px; align-self: flex-start; }

/* engagement plans */
.x-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.x-plan {
    position: relative;
    display: flex; flex-direction: column;
    padding: 34px 30px;
    border-radius: var(--x-r-lg);
    background: var(--x-card);
    border: 1px solid var(--x-line);
}
.x-plan h3 { font-size: 2.2rem; font-weight: 700; letter-spacing: -0.04em; margin: 6px 0 10px; }
.x-plan p { color: var(--x-ink-2); line-height: 1.65; margin: 0 0 22px; }
.x-plan ul { margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
.x-plan li { list-style: none; display: flex; gap: 10px; font-size: 0.95rem; color: var(--x-ink); }
.x-plan li::before {
    content: '✓'; flex: none;
    display: grid; place-items: center;
    width: 20px; height: 20px; border-radius: 50%;
    font-size: 0.7rem; font-weight: 700;
    background: rgba(52, 211, 153, 0.15); color: var(--x-mint);
}
.x-plan .x-btn { margin-top: auto; }
.x-plan-kicker { font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.12em; color: var(--x-ink-3); }
.x-plan--hot {
    background: linear-gradient(var(--x-bg-2), var(--x-bg-2)) padding-box, var(--x-grad) border-box;
    border: 1px solid transparent;
    box-shadow: 0 40px 90px -40px rgba(217, 70, 239, 0.6);
    transform: translateY(-10px);
}
.x-plan-badge {
    position: absolute; top: -13px; left: 30px;
    padding: 6px 12px; border-radius: 999px;
    font-size: 0.74rem; font-weight: 700;
    color: #0b0716; background: #fff;
}

/* process */
.x-steps {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
    margin: 0; padding: 0; counter-reset: none;
    position: relative;
}
.x-steps::before {
    content: ''; position: absolute; left: 6%; right: 6%; top: 34px;
    height: 1px; background: linear-gradient(90deg, transparent, var(--x-line-2), transparent);
}
.x-steps li {
    list-style: none; position: relative;
    padding: 0 10px; text-align: center;
}
.x-steps span {
    display: grid; place-items: center;
    width: 68px; height: 68px; margin: 0 auto 22px;
    border-radius: 50%;
    font-family: var(--f-display); font-weight: 700; font-size: 1.05rem;
    background: linear-gradient(var(--x-bg-2), var(--x-bg-2)) padding-box, var(--x-grad) border-box;
    border: 1px solid transparent;
    position: relative; z-index: 1;
}
.x-steps h3 { font-size: 1.4rem; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 8px; }
.x-steps p { color: var(--x-ink-2); font-size: 0.95rem; line-height: 1.6; margin: 0; }

/* clients */
.x-clients { padding: 110px 0 !important; }
.x-clients .client-quote { font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; line-height: 1.5; color: var(--x-ink); }
.x-clients .client-result { color: var(--x-mint); }
.x-center-cta { text-align: center; margin-top: 40px; }

/* FAQ */
.x-faq-inner { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 60px; align-items: start; }
.x-faq-inner .x-lead { margin-left: 0; }
.x-faq-list { display: grid; gap: 10px; }
.x-faq-list details {
    border-radius: 20px;
    background: var(--x-card);
    border: 1px solid var(--x-line);
    transition: border-color .3s ease, background .3s ease;
}
.x-faq-list details[open] { border-color: var(--x-line-2); background: var(--x-card-2); }
.x-faq-list summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px;
    cursor: pointer; list-style: none;
    font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; letter-spacing: -0.02em;
}
.x-faq-list summary::-webkit-details-marker { display: none; }
.x-faq-list summary::after {
    content: '+'; flex: none;
    display: grid; place-items: center;
    width: 30px; height: 30px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    font-family: var(--f-body); font-weight: 400; font-size: 1.2rem;
    transition: transform .4s var(--x-ease);
}
.x-faq-list details[open] summary::after { transform: rotate(45deg); }
.x-faq-list details p { margin: 0; padding: 0 24px 22px; color: var(--x-ink-2); line-height: 1.7; }

/* ── FOOTER polish ──────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--x-line); background: transparent; }
.site-footer h4 { font-family: var(--f-body); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--x-ink-3); }
.footer-links a { color: var(--x-ink-2); }
.footer-links a:hover { color: #fff; }
.highlight-pill { border-radius: 999px !important; background: rgba(255, 255, 255, 0.05) !important; border: 1px solid var(--x-line) !important; color: var(--x-ink-2) !important; }

/* ══════════════════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
    .x-float--a { left: 0; }
    .x-sticker { left: 4%; }
    .x-case-hl { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
    .x-work-grid { grid-template-columns: repeat(2, 1fr); }
    .x-work--lg, .x-work--md,
    .x-work-grid--home .x-work { grid-column: span 1; }
    .x-work-grid--home .x-work--lg { grid-column: span 2; }
    .x-bento { grid-template-columns: repeat(2, 1fr); }
    .x-tile--ai { grid-column: span 2; grid-row: auto; }
    .x-tile--member, .x-tile--shop, .x-tile--funnel, .x-tile--code { grid-column: span 1; grid-row: auto; }
    .x-tile--care { grid-column: span 2; }
    .x-plans { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
    .x-plan--hot { transform: none; }
    .x-steps { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
    .x-steps::before { display: none; }
    .x-faq-inner { grid-template-columns: 1fr; gap: 30px; }
    .x-case-grid { grid-template-columns: 1fr; }
    .x-section-head { flex-direction: column; align-items: flex-start; }
    .x-section-head--center { align-items: center; }
    .x-float--c, .x-sticker { display: none; }
}
@media (max-width: 680px) {
    .x-hero { padding-top: 130px; }
    .x-hero-title { font-size: clamp(2.5rem, 12vw, 3.6rem); }
    .x-rotator { white-space: normal; }
    .x-hero-ctas .x-btn { width: 100%; }
    .x-hero-stage { height: 260px; margin-top: 50px; padding: 0 12px; }
    .x-fan-item { width: 86%; }
    .x-fan-item--1, .x-fan-item--2 { display: none; }
    .x-float { font-size: 0.76rem; padding: 9px 12px 9px 9px; }
    .x-float-ico { width: 30px; height: 30px; }
    .x-float--a { left: 2%; top: auto; bottom: 26%; }
    .x-float--b { right: 2%; top: -4%; }
    .x-work-grid,
    .x-bento { grid-template-columns: 1fr; }
    .x-work-grid--home .x-work--lg,
    .x-tile--ai, .x-tile--care { grid-column: span 1; }
    .x-work-grid--home .x-work--lg .x-stage { aspect-ratio: 16 / 11; padding: 7% 9% 0; }
    .x-work-grid--home .x-work--lg .x-phone { width: 21%; right: 5%; }
    .x-tile--care { flex-direction: column; align-items: flex-start; }
    .x-mini-gauge { margin: 10px 0 0; }
    .x-mini-pipe { grid-template-columns: repeat(2, 1fr); }
    .x-steps { grid-template-columns: 1fr; }
    .x-case-hl { grid-template-columns: 1fr; }
    .x-case-meta div { flex: 1 1 50%; border-bottom: 1px solid var(--x-line); }
    .x-case-gallery { grid-template-columns: 1fr; }
    .x-case-block { padding: 28px; }
    .x-page-hero, .x-case-hero { padding-top: 140px; }
    .x-filters { border-radius: 24px; }
    .x-deep .svc-block { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
    .x-in { animation: none; opacity: 1; transform: none; filter: none; }
    .x-blob, .x-marquee-track, .x-logos-track, .x-sticker svg, .x-float, .x-grad, .cursive-accent { animation: none !important; }
}

/* ── v3 polish pass ─────────────────────────────────────────────────────── */
.x-hero-title { letter-spacing: -0.038em; line-height: 0.98; }
.x-page-title { letter-spacing: -0.04em; }
.x-rotator { display: block; }
.primary-menu a { text-transform: none !important; letter-spacing: 0 !important; }
.x-fan-item { width: min(700px, 58%); }
.x-fan-item--1 { transform: translateX(-96%) translateY(60px) rotate(-6deg) scale(0.8); opacity: .75; }
.x-fan-item--2 { transform: translateX(-4%) translateY(60px) rotate(6deg) scale(0.8); opacity: .75; }
.x-hero-stage:hover .x-fan-item--1 { transform: translateX(-102%) translateY(52px) rotate(-8deg) scale(0.8); }
.x-hero-stage:hover .x-fan-item--2 { transform: translateX(2%) translateY(52px) rotate(8deg) scale(0.8); }
.x-sticker { left: 7%; top: 34%; }
.service-card h3, .svc-content h2, .client-name {
    background: none !important;
    -webkit-text-fill-color: currentColor !important;
    color: var(--x-ink) !important;
}
.contact-form::before, .contact-form::after, .contact-section::before { display: none !important; }
.contact-form { background: rgba(255,255,255,0.03) !important; padding: 40px !important; }
.x-phone { background: linear-gradient(160deg, var(--a1), var(--a2)); }
.x-phone img { background: transparent; }
.x-video-frame:not(.is-playing) video::-webkit-media-controls { display: none !important; }
.site-header .primary-menu li a {
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    letter-spacing: -0.005em !important;
    text-transform: none !important;
    color: var(--x-ink-2) !important;
}
.site-header .primary-menu li a:hover,
.site-header .primary-menu li.active a,
.site-header .primary-menu li.current-menu-item a,
.site-header .primary-menu a.active { color: #fff !important; }
.site-header .primary-menu li a[href*="services"]::after {
    display: inline-block !important;
    position: static !important;
    width: auto !important; height: auto !important;
    transform: none !important;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 999px;
    background: var(--x-grad-btn) !important;
    font-size: 0.56rem; font-weight: 700; letter-spacing: 0.06em;
    vertical-align: 2px;
}
@media (max-width: 900px) { .site-header .primary-menu li a { font-size: 1rem !important; } }
@media (max-width: 680px) { .x-rotator-word { display: inline; } }
