/* ========================================
   MEGALODON CRM — BRUTALIST DESIGN SYSTEM
   Digital Brutalism 2.0 | 2026
   ======================================== */

/* CSS Variables */
:root {
    --color-black: #000000;
    --color-white: #FFFFFF;
    --color-gray: #333333;
    --color-gray-light: #666666;
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'Space Mono', 'Courier New', monospace;
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
    --unit: 8px;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    background: var(--color-black);
}

body {
    font-family: var(--font-primary);
    background: var(--color-black);
    color: var(--color-white);
    line-height: 1.1;
    overflow-x: hidden;
    cursor: none;
}

::selection {
    background: var(--color-white);
    color: var(--color-black);
}

/* Loader */
.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-black);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.8s var(--ease-out-expo), visibility 0.8s;
}

.loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-text {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 15vw, 12rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: var(--color-white);
    position: relative;
    overflow: hidden;
}

.loader-text::before {
    content: attr(data-text);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        var(--color-black) 2px,
        var(--color-black) 4px
    );
    animation: scanlines 0.5s linear infinite;
}

@keyframes scanlines {
    0% { transform: translateY(0); }
    100% { transform: translateY(4px); }
}

.loader-line {
    width: 200px;
    height: 1px;
    background: var(--color-white);
    margin: 2rem auto;
    transform-origin: left;
    animation: lineGrow 2s var(--ease-out-expo) forwards;
}

@keyframes lineGrow {
    0% { transform: scaleX(0); }
    100% { transform: scaleX(1); }
}

.loader-status {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    color: var(--color-gray-light);
}

/* Loader Marquee */
.loader-marquee {
    width: 100%;
    overflow: hidden;
    margin: 1.5rem 0;
    padding: 0.5rem 0;
    border-top: 1px solid var(--color-gray);
    border-bottom: 1px solid var(--color-gray);
}

.loader-marquee .marquee-text {
    font-family: var(--font-primary);
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-gray-light);
    white-space: nowrap;
    animation: marquee 16.8s linear infinite;
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-33.33%); }
}

/* Custom Cursor */
.cursor {
    position: fixed;
    width: 8px;
    height: 8px;
    background: var(--color-white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 10000;
    transform: translate(-50%, -50%);
    transition: width 0.3s, height 0.3s, background 0.3s;
    mix-blend-mode: difference;
}

.cursor-follower {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 1px solid var(--color-white);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.5s var(--ease-out-expo), height 0.5s var(--ease-out-expo), border-color 0.3s;
}

.cursor.hover {
    width: 60px;
    height: 60px;
    background: transparent;
    border: 1px solid var(--color-white);
}

.cursor-follower.hover {
    width: 80px;
    height: 80px;
    border-color: var(--color-gray);
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.5rem 2rem;
    background: transparent;
    /* Mix blend mode for negative color effect on scroll overlap */
    mix-blend-mode: exclusion;
}

/* Ensure menu button and logo are visible with exclusion blend */
.nav .logo-text,
.nav .logo-reg,
.nav .menu-text,
.nav .menu-close {
    color: var(--color-white);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 100%;
}

.nav-logo {
    position: relative;
    z-index: 1001;
}

.logo-link {
    text-decoration: none;
    color: var(--color-white);
    display: flex;
    align-items: flex-start;
}

.logo-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.logo-reg {
    font-size: 0.6rem;
    font-weight: 400;
    margin-left: 0.1rem;
    margin-top: 0.2rem;
}

.nav-info {
    display: none;
}

.nav-coordinates {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-gray-light);
    letter-spacing: 0.1em;
}

.nav-menu-btn {
    position: relative;
    z-index: 1001;
    cursor: pointer;
    padding: 0.5rem;
}

.menu-text, .menu-close {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: opacity 0.3s;
}

.menu-close {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
}

.nav.menu-open .menu-text {
    opacity: 0;
}

.nav.menu-open .menu-close {
    opacity: 1;
}

/* Fullscreen Menu */
.fullscreen-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--color-black);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s var(--ease-out-expo), visibility 0.6s;
}

.fullscreen-menu.open {
    opacity: 1;
    visibility: visible;
}

.menu-content {
    width: 100%;
    max-width: 1400px;
    padding: 2rem;
}

.menu-items {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.menu-item {
    display: flex;
    align-items: baseline;
    text-decoration: none;
    color: var(--color-white);
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-gray);
    transition: border-color 0.3s;
}

.menu-item:hover {
    border-color: var(--color-white);
}

.menu-number {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-gray-light);
    margin-right: 2rem;
    min-width: 2rem;
}

.menu-label {
    font-family: var(--font-primary);
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    transition: transform 0.3s var(--ease-out-expo), opacity 0.3s;
}

.menu-item:hover .menu-label {
    transform: translateX(20px);
}

.menu-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray);
}

.menu-footer-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-gray-light);
    margin-right: 2rem;
}

.menu-footer-year {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-gray-light);
}

/* Main Content */
.main {
    position: relative;
}

.section {
    min-height: 100vh;
    position: relative;
    padding: 8rem 2rem 4rem;
}

.section-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Header */
.section-header {
    margin-bottom: 4rem;
}

.section-title {
    display: flex;
    align-items: baseline;
    gap: 1rem;
}

.title-word {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.title-count {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-gray-light);
    font-weight: 400;
}

/* Home Section */
.section-home {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.home-shark-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
    overflow: hidden;
}

.shark-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.shark-image-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    overflow: hidden;
}

.shark-img {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 70vw;
    max-width: 1000px;
    height: auto;
    max-height: 45vh;
    object-fit: contain;
    object-position: center top;
    filter: contrast(1.15) brightness(1.05);
    animation: sharkFloat 12s ease-in-out infinite;
    z-index: 1;
}

@keyframes sharkFloat {
    0%, 100% { 
        transform: translate(-50%, 0) translateX(0) scale(1);
    }
    50% { 
        transform: translate(-50%, 0) translateX(20px) scale(1.02);
    }
}

/* Gradient overlays for dissolve effect */
.shark-gradient-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background: linear-gradient(
        90deg,
        var(--color-black) 0%,
        var(--color-black) 40%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
}

.shark-gradient-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 15%;
    height: 100%;
    background: linear-gradient(
        270deg,
        var(--color-black) 0%,
        var(--color-black) 30%,
        transparent 100%
    );
    z-index: 2;
    pointer-events: none;
}

.shark-gradient-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 35%;
    background: linear-gradient(
        180deg,
        var(--color-black) 0%,
        var(--color-black) 30%,
        transparent 100%
    );
    z-index: 3;
    pointer-events: none;
}

.shark-gradient-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 20%;
    background: linear-gradient(
        0deg,
        var(--color-black) 0%,
        transparent 100%
    );
    z-index: 3;
    pointer-events: none;
}

/* Noise texture overlay */
.shark-image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    z-index: 4;
    pointer-events: none;
    mix-blend-mode: overlay;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .shark-img {
        width: 85vw;
    }
}

@media (max-width: 768px) {
    .shark-image-container {
        height: 60vh;
    }
    
    .shark-img {
        width: 90vw;
    }
    
    .shark-gradient-left {
        width: 45%;
    }
}

@media (max-width: 480px) {
    .shark-image-container {
        height: 50vh;
    }
    
    .shark-img {
        width: 95vw;
    }
}

.home-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: 100%;
    padding: 0 1rem;
}

.home-title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 13vw, 10rem);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: 2rem;
    white-space: nowrap;
    overflow: visible;
}

.title-line {
    display: inline-block;
    white-space: nowrap;
}

.home-subtitle {
    margin-bottom: 1.5rem;
}

.subtitle-text {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.home-tagline {
    max-width: 600px;
    margin: 0 auto;
}

.tagline-text {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--color-gray-light);
}

.home-marquee {
    position: absolute;
    bottom: 15vh;
    left: 0;
    width: 100%;
    z-index: 2;
    overflow: hidden;
    border-bottom: 1px solid var(--color-gray);
    padding: 0;
    line-height: 1;
}

.home-marquee .marquee-container {
    padding: 0.5rem 0;
}

.home-marquee .marquee-text {
    font-family: var(--font-primary);
    font-size: clamp(0.75rem, 2vw, 1rem);
    font-weight: 500;
    letter-spacing: 0.15em;
    color: var(--color-gray-light);
    white-space: nowrap;
    animation: marqueeScroll 16.8s linear infinite;
    line-height: 1.2;
}

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

.home-footer {
    position: absolute;
    bottom: 1.5rem;
    left: 2rem;
    right: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    z-index: 2;
}

.home-footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.home-label, .home-since {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    color: var(--color-gray-light);
}

.scroll-indicator {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: var(--color-gray-light);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Quality Section - Offset Grid Style (Variant-12) */
.section-quality {
    min-height: 100vh;
    position: relative;
    padding: calc(var(--unit) * 30) 64px;
}

.quality-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 32px;
}

.quality-header {
    grid-column: 1 / 4;
    margin-bottom: calc(var(--unit) * 12);
}

.quality-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-white);
    margin-bottom: calc(var(--unit) * 4);
}

.quality-title {
    font-family: var(--font-primary);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.quality-cards {
    grid-column: 1 / -1;
    display: contents;
}

.quality-card {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: calc(var(--unit) * 6);
    transition: all 0.4s ease;
}

.quality-card:nth-child(1) { grid-column: 1 / 3; }
.quality-card:nth-child(2) { grid-column: 3 / 5; margin-top: calc(var(--unit) * 12); }
.quality-card:nth-child(3) { grid-column: 5 / 8; margin-top: calc(var(--unit) * 24); }

.quality-card:hover {
    border-top-color: var(--color-white);
}

.quality-card-num {
    font-family: var(--font-primary);
    font-size: clamp(60px, 8vw, 96px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    margin-bottom: calc(var(--unit) * 3);
    transition: color 0.4s ease;
}

.quality-card:hover .quality-card-num {
    color: var(--color-white);
}

.quality-card-title {
    font-family: var(--font-primary);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: calc(var(--unit) * 3);
    line-height: 1.3;
}

.quality-card-text {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-gray-light);
}

/* Scroll Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: all 1s var(--ease-out-expo);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (max-width: 1024px) {
    .quality-card:nth-child(1),
    .quality-card:nth-child(2),
    .quality-card:nth-child(3) {
        grid-column: 1 / -1;
        margin-top: 0;
    }
    
    .quality-header {
        grid-column: 1 / -1;
    }
    
    .section-quality {
        padding: calc(var(--unit) * 20) 24px;
    }
}

@media (max-width: 768px) {
    .quality-card:nth-child(1),
    .quality-card:nth-child(2),
    .quality-card:nth-child(3) {
        grid-column: 1 / -1;
        margin-top: calc(var(--unit) * 8);
    }
}

/* Products Section */
.products-grid {
    display: flex;
    flex-direction: column;
}

.product-item {
    display: grid;
    grid-template-columns: 60px 1fr auto;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-gray);
    cursor: pointer;
    transition: border-color 0.3s, background 0.3s;
}

.product-item:hover {
    border-color: var(--color-white);
    background: rgba(255, 255, 255, 0.02);
}

.product-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-gray-light);
}

.product-content {
    padding-left: 1rem;
}

.product-name {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 3vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 0.25rem;
}

.product-desc {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-gray-light);
}

.product-arrow {
    font-size: 1.5rem;
    color: var(--color-gray-light);
    transition: transform 0.3s var(--ease-out-expo), color 0.3s;
}

.product-item:hover .product-arrow {
    transform: translateX(10px);
    color: var(--color-white);
}

/* History / Timeline Section */
.section-history {
    min-height: 100vh;
    position: relative;
    padding: calc(var(--unit) * 30) 64px;
    background: var(--color-black);
}

.history-layout {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: 64px;
}

.history-intro {
    position: sticky;
    top: calc(var(--unit) * 12);
    height: fit-content;
}

.history-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-white);
    margin-bottom: calc(var(--unit) * 4);
}

.history-title {
    font-family: var(--font-primary);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: calc(var(--unit) * 8);
}

.history-desc {
    font-family: var(--font-mono);
    font-size: 17px;
    line-height: 1.9;
    color: var(--color-gray-light);
}

.history-timeline {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 2);
}

.timeline-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: 32px;
    padding: calc(var(--unit) * 5) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    /* Initial state for fly-in animation */
    opacity: 0;
    transform: translateX(100px);
}

.timeline-item.fly-in-active {
    opacity: 1;
    transform: translateX(0);
    transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.timeline-item:hover {
    border-bottom-color: var(--color-white);
    padding-left: calc(var(--unit) * 2);
}

.timeline-year {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
    letter-spacing: 0.1em;
}

.timeline-content {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 2);
}

.timeline-title {
    font-family: var(--font-primary);
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.timeline-text {
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-gray-light);
}

@media (max-width: 1024px) {
    .history-layout {
        grid-template-columns: 1fr;
    }
    
    .history-intro {
        position: relative;
        top: 0;
        margin-bottom: calc(var(--unit) * 8);
    }
    
    .section-history {
        padding: calc(var(--unit) * 20) 24px;
    }
    
    .timeline-item {
        grid-template-columns: 80px 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .timeline-item {
        grid-template-columns: 1fr;
        gap: calc(var(--unit) * 2);
    }
    
    .timeline-year {
        font-size: 12px;
    }
    
    .timeline-title {
        font-size: 20px;
    }
    
    .timeline-text {
        font-size: 14px;
    }
}

/* Content Hub Section - 5-Column Asymmetric Grid */
.section-hub {
    min-height: 100vh;
    position: relative;
    padding: calc(var(--unit) * 30) 64px;
    background: var(--color-black);
}

.hub-header {
    margin-bottom: calc(var(--unit) * 16);
}

.hub-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-white);
    margin-bottom: calc(var(--unit) * 4);
}

.hub-title {
    font-family: var(--font-primary);
    font-size: clamp(48px, 6vw, 80px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hub-blocks {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(5, 200px);
    gap: 20px;
    perspective: 2500px;
    perspective-origin: center center;
}

.hub-block {
    position: relative;
    cursor: pointer;
    transform-style: preserve-3d;
    /* Initial state - hidden in the void, flipped away from user */
    opacity: 0;
    transform: translateZ(-800px) rotateY(180deg) scale(0.8);
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.hub-block.flipped {
    opacity: 1;
    transform: translateZ(0) rotateY(0) scale(1);
    -webkit-transform: translateZ(0) rotateY(0) scale(1);
    pointer-events: auto;
}

/* iPad/Safari fix - hide backface when not hovering */
.hub-block.flipped .hub-card-back {
    visibility: hidden;
}

.hub-block.flipped:hover .hub-card-back {
    visibility: visible;
}

/* Card inner container for flip effect */
.hub-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-transition: -webkit-transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Hover flip effect */
.hub-block.flipped:hover .hub-card-inner {
    transform: rotateY(180deg);
    -webkit-transform: rotateY(180deg);
}

/* Card faces - Front and Back */
.hub-card-front,
.hub-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    -moz-backface-visibility: hidden;
    -ms-backface-visibility: hidden;
    padding: calc(var(--unit) * 4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Front face - Black Leather Skin Texture */
.hub-card-front {
    /* Leather skin texture background */
    background-image: url('images/skin.jpg');
    background-size: cover;
    background-position: center;
    /* Dark overlay for better text readability */
    background-color: rgba(10, 10, 10, 0.85);
    background-blend-mode: multiply;
    /* Subtle border */
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 0 0 1px rgba(255, 255, 255, 0.1);
    /* No filters */
    filter: none;
}

/* Subtle enhancement - just lighting */
.hub-card-front::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.03) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.15) 100%
    );
    pointer-events: none;
    z-index: 1;
}

/* Shine on hover */
.hub-card-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-20deg);
    transition: left 0.8s ease;
    pointer-events: none;
    z-index: 2;
}

.hub-block.flipped:hover .hub-card-front::after {
    left: 150%;
}

/* Back face - Darker aluminum with button */
.hub-card-back {
    background: 
        linear-gradient(
            165deg,
            rgba(25, 25, 25, 0.95) 0%,
            rgba(10, 10, 10, 1) 50%,
            rgba(0, 0, 0, 1) 100%
        );
    /* No border - clean look */
    transform: rotateY(180deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.4);
}

/* Button on back */
.hub-card-btn {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    background: transparent;
    border: 2px solid var(--color-white);
    padding: 16px 32px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.hub-card-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    transition: left 0.3s var(--ease-out-expo);
    z-index: -1;
}

.hub-card-btn:hover {
    color: var(--color-black);
}

.hub-card-btn:hover::before {
    left: 0;
}

/* EXTRA LARGE - 3x3 grid cells (biggest) */
.hub-block.xl { 
    grid-column: 1 / 4; 
    grid-row: 1 / 4; 
}

/* LARGE - 2 different sizes */
/* Large #1: Horizontal rectangle (2x1) */
.hub-block.lg:nth-of-type(2) {
    grid-column: 4 / 6;
    grid-row: 1 / 3;
}

/* Large #2: Square (2x2) */
.hub-block.lg:nth-of-type(3) {
    grid-column: 4 / 6;
    grid-row: 3 / 5;
}

/* MEDIUM - 3 cards with different sizes */
/* Medium #1: Horizontal rectangle (2x1) */
.hub-block.md:nth-of-type(4) { 
    grid-column: 1 / 3; 
    grid-row: 4 / 5; 
}

/* Medium #2: Vertical rectangle (1x2) */
.hub-block.md:nth-of-type(5) { 
    grid-column: 3 / 4; 
    grid-row: 4 / 6; 
}

/* Medium #3: Square (1x1) */
.hub-block.md:nth-of-type(6) { 
    grid-column: 4 / 5; 
    grid-row: 5 / 6; 
}

/* SMALL - 3 small squares */
/* Small #1: Square (1x1) */
.hub-block.sm:nth-of-type(7) { 
    grid-column: 5 / 6; 
    grid-row: 5 / 6; 
}

/* Small #2: Square (1x1) */
.hub-block.sm:nth-of-type(8) { 
    grid-column: 1 / 2; 
    grid-row: 5 / 6; 
}

/* Small #3: Square (1x1) */
.hub-block.sm:nth-of-type(9) { 
    grid-column: 2 / 3; 
    grid-row: 5 / 6; 
}

.hub-block-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gray-light);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.hub-block.flipped:hover .hub-block-tag {
    color: var(--color-white);
}

.hub-block-title {
    font-family: var(--font-primary);
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.hub-block.xl .hub-block-title {
    font-size: clamp(32px, 3vw, 48px);
    line-height: 1.1;
}

.hub-block.lg .hub-block-title {
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.2;
}

.hub-block.md .hub-block-title {
    font-size: clamp(18px, 1.8vw, 22px);
}

.hub-block.sm .hub-block-title {
    font-size: clamp(14px, 1.2vw, 16px);
}

.hub-block-desc {
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.6;
    color: var(--color-gray-light);
    margin-top: calc(var(--unit) * 2);
    position: relative;
    z-index: 2;
    transition: color 0.3s ease;
}

.hub-block.xl .hub-block-desc {
    font-size: 14px;
}

.hub-block.flipped:hover .hub-block-desc {
    color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 1024px) {
    .hub-blocks {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }
    
    .hub-block.xl { 
        grid-column: 1 / 3; 
        grid-row: 1 / 3; 
    }
    
    .hub-block.lg:nth-of-type(2) {
        grid-column: 3 / 4;
        grid-row: 1 / 2;
    }
    
    .hub-block.lg:nth-of-type(3) {
        grid-column: 3 / 4;
        grid-row: 2 / 3;
    }
    
    .hub-block.md:nth-of-type(4) { grid-column: 1 / 3; grid-row: 3 / 4; }
    .hub-block.md:nth-of-type(5) { grid-column: 3 / 4; grid-row: 3 / 4; }
    .hub-block.md:nth-of-type(6) { grid-column: 1 / 2; grid-row: 4 / 5; }
    
    .hub-block.sm:nth-of-type(7) { grid-column: 2 / 3; grid-row: 4 / 5; }
    .hub-block.sm:nth-of-type(8) { grid-column: 3 / 4; grid-row: 4 / 5; }
    .hub-block.sm:nth-of-type(9) { grid-column: 1 / 2; grid-row: 5 / 6; }
}

@media (max-width: 768px) {
    .section-hub {
        padding: calc(var(--unit) * 20) 24px;
    }
    
    .hub-blocks {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hub-block.xl,
    .hub-block.lg,
    .hub-block.md,
    .hub-block.sm {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 160px;
    }
    
    .hub-block-title {
        font-size: 20px;
    }
    
    .hub-block.xl .hub-block-title {
        font-size: 28px;
    }
    
    .hub-block.lg .hub-block-title {
        font-size: 22px;
    }
}

/* Services Section */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.service-item {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    align-items: baseline;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-gray);
    transition: border-color 0.3s;
}

.service-item:hover {
    border-color: var(--color-white);
}

.service-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-gray-light);
}

.service-name {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 600;
    letter-spacing: 0.02em;
}

.service-desc {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-gray-light);
    text-align: right;
}

/* Consulting Section */
.consulting-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.consulting-item {
    padding: 2rem;
    border: 1px solid var(--color-gray);
    transition: border-color 0.3s, transform 0.3s var(--ease-out-expo);
}

.consulting-item:hover {
    border-color: var(--color-white);
    transform: translateY(-5px);
}

.consulting-icon {
    font-family: var(--font-mono);
    font-size: 2rem;
    color: var(--color-gray-light);
    margin-bottom: 1rem;
}

.consulting-title {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.consulting-desc {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-gray-light);
}

/* Cases Section */
.cases-subtitle {
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.subtitle-year {
    font-family: var(--font-primary);
    font-size: clamp(3rem, 8vw, 6rem);
    font-weight: 300;
    color: var(--color-gray);
}

.cases-list {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
}

.case-item {
    display: grid;
    grid-template-columns: 100px 1fr 1fr;
    align-items: center;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-gray);
    transition: border-color 0.3s;
}

.case-item:hover {
    border-color: var(--color-white);
}

.case-year {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-gray-light);
}

.case-client {
    font-family: var(--font-primary);
    font-size: clamp(1rem, 2vw, 1.25rem);
    font-weight: 600;
}

.case-type {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-gray-light);
    text-align: right;
}

.marquee-container {
    overflow: hidden;
    margin-top: 4rem;
    padding: 2rem 0;
    border-top: 1px solid var(--color-gray);
    border-bottom: 1px solid var(--color-gray);
}

.marquee-text {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-gray);
    white-space: nowrap;
    animation: marquee 20s linear infinite;
}

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

/* Contacts Section */
.contacts-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.contacts-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 8vw, 6rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 0.9;
}

.contacts-date {
    align-self: flex-end;
}

.date-year {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 6vw, 5rem);
    font-weight: 300;
    color: var(--color-gray);
    line-height: 1;
    white-space: nowrap;
    letter-spacing: -0.02em;
}

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

.contact-group {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--color-gray);
}

.contact-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-gray-light);
    letter-spacing: 0.15em;
    margin-bottom: 1rem;
}

.contact-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.contact-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-city {
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 600;
}

.contact-coords {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-gray-light);
}

.contact-link {
    font-family: var(--font-primary);
    font-size: 1rem;
    color: var(--color-white);
    text-decoration: none;
    transition: opacity 0.3s;
    display: block;
}

.contact-link:hover {
    opacity: 0.6;
}

.contacts-cta {
    display: flex;
    justify-content: center;
    margin-top: 4rem;
}

.cta-button {
    position: relative;
    width: 150px;
    height: 150px;
    background: transparent;
    border: 1px solid var(--color-white);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s var(--ease-out-expo), background 0.3s;
}

.cta-button:hover {
    background: var(--color-white);
    transform: scale(1.1);
}

.cta-text {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--color-white);
    text-align: center;
    line-height: 1.4;
    transition: color 0.3s;
}

.cta-button:hover .cta-text {
    color: var(--color-black);
}

.cta-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 170px;
    border: 1px solid var(--color-gray);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s;
}

.cta-button:hover .cta-ring {
    opacity: 1;
    animation: ringPulse 1.5s ease-in-out infinite;
}

@keyframes ringPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 1; }
}

/* Custom Program Section */
.section-custom {
    padding-top: 10rem;
}

.custom-hero {
    text-align: center;
    margin-bottom: 6rem;
}

.custom-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-gray-light);
    letter-spacing: 0.2em;
    margin-bottom: 2rem;
    display: block;
}

.custom-title {
    font-family: var(--font-primary);
    font-size: clamp(2rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.custom-subtitle {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--color-gray-light);
}

.custom-intro {
    max-width: 800px;
    margin: 0 auto 6rem;
    text-align: center;
}

.intro-text {
    font-family: var(--font-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.intro-stats {
    margin-bottom: 2rem;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 900;
    color: var(--color-white);
    display: block;
    line-height: 1;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-gray-light);
}

.intro-desc {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--color-gray-light);
    margin-bottom: 3rem;
}

.discuss-btn {
    padding: 1.5rem 3rem;
    background: var(--color-white);
    color: var(--color-black);
    border: none;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: transform 0.3s var(--ease-out-expo), box-shadow 0.3s;
}

.discuss-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.1);
}

/* When Section */
.custom-when {
    margin-bottom: 6rem;
}

.when-title {
    font-family: var(--font-primary);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 3rem;
    max-width: 800px;
}

.when-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.when-item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--color-gray);
    transition: border-color 0.3s;
}

.when-item:hover {
    border-color: var(--color-white);
}

.when-number {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-gray-light);
}

.when-text {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Tasks Section */
.custom-tasks {
    margin-bottom: 6rem;
}

.tasks-title {
    font-family: var(--font-primary);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 3rem;
}

.task-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.task-card {
    padding: 2rem;
    border: 1px solid var(--color-gray);
    transition: border-color 0.3s, transform 0.3s var(--ease-out-expo);
}

.task-card:hover {
    border-color: var(--color-white);
    transform: translateY(-5px);
}

.task-number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-gray-light);
    margin-bottom: 1rem;
}

.task-name {
    font-family: var(--font-primary);
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.task-problem, .task-solution, .task-effect {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.75rem;
}

.task-problem strong, .task-solution strong, .task-effect strong {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    display: block;
    margin-bottom: 0.25rem;
}

.task-example {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--color-gray-light);
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--color-gray);
}

/* Difference Section */
.custom-difference {
    margin-bottom: 6rem;
    max-width: 900px;
}

.diff-title {
    font-family: var(--font-primary);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 2rem;
}

.diff-content p {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
    color: var(--color-gray-light);
}

.diff-highlight {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 2px solid var(--color-white);
}

.highlight-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    display: block;
    margin-bottom: 0.5rem;
}

.diff-ours {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--color-gray);
}

.diff-ours h4 {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

/* Process Section */
.custom-process {
    margin-bottom: 6rem;
}

.process-title {
    font-family: var(--font-primary);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.process-subtitle {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-gray-light);
    margin-bottom: 3rem;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.process-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--color-gray);
    transition: border-color 0.3s;
}

.process-step:hover {
    border-color: var(--color-white);
}

.step-number {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-gray-light);
}

.step-title {
    font-family: var(--font-primary);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.step-what, .step-result {
    font-family: var(--font-primary);
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.step-what strong, .step-result strong {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.process-conclusion {
    margin-top: 3rem;
    padding: 2rem;
    border: 1px solid var(--color-gray);
}

.process-conclusion p {
    font-family: var(--font-primary);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-gray-light);
}

.conclusion-highlight {
    font-weight: 700;
    color: var(--color-white) !important;
    margin-top: 1rem;
}

/* Footer */
.footer {
    padding: 4rem 2rem 2rem;
    border-top: 1px solid var(--color-gray);
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-logo {
    display: flex;
    align-items: flex-start;
}

.footer-logo-text {
    font-family: var(--font-primary);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.footer-logo-reg {
    font-size: 0.75rem;
    margin-left: 0.1rem;
    margin-top: 0.2rem;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--color-gray-light);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-link:hover {
    color: var(--color-white);
}

.footer-coords {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-gray-light);
}

.footer-bottom {
    text-align: center;
}

.footer-barcode {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--color-gray-light);
    letter-spacing: -0.05em;
    margin-bottom: 1rem;
    overflow: hidden;
    white-space: nowrap;
}

.footer-copyright {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    color: var(--color-gray-light);
    letter-spacing: 0.1em;
}

/* Responsive */
@media (max-width: 1024px) {
    .consulting-grid {
        grid-template-columns: 1fr;
    }
    
    .task-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-info {
        display: none;
    }
    
    .home-footer {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .cases-subtitle {
        position: static;
        transform: none;
        margin-top: 1rem;
    }
    
    .task-cards {
        grid-template-columns: 1fr;
    }
    
    .contact-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .custom-difference, .custom-process {
        padding: 0 1rem;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 6rem 1rem 2rem;
    }
    
    .product-item, .service-item, .case-item {
        grid-template-columns: 40px 1fr;
    }
    
    .product-arrow, .service-desc, .case-type {
        display: none;
    }
    
    .when-item, .process-step {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
}

/* Hide custom cursor on touch devices */
@media (pointer: coarse) {
    .cursor, .cursor-follower {
        display: none;
    }
    
    body {
        cursor: auto;
    }
}

/* Service Detail Overlay - Slide from Right */
.service-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-black);
    z-index: 9999;
    /* Initial state - hidden to the right */
    transform: translateX(100%);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    overflow-x: hidden;
}

.service-overlay.active {
    transform: translateX(0);
}

.service-overlay-content {
    min-height: 100vh;
    padding: 64px;
    position: relative;
}

/* Close Button */
.service-close-btn {
    position: fixed;
    top: 32px;
    right: 64px;
    background: transparent;
    border: none;
    color: var(--color-white);
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    z-index: 10000;
    transition: color 0.3s ease;
}

.service-close-btn:hover {
    color: var(--color-gray-light);
}

.close-icon {
    font-size: 24px;
    line-height: 1;
}

/* Service Detail Header */
.service-detail-header {
    margin-bottom: calc(var(--unit) * 16);
    padding-top: calc(var(--unit) * 8);
}

.service-detail-number {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-gray-light);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: calc(var(--unit) * 4);
}

.service-detail-title {
    font-family: var(--font-primary);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    line-height: 1;
    margin-bottom: calc(var(--unit) * 4);
}

.service-detail-subtitle {
    font-family: var(--font-mono);
    font-size: 18px;
    color: var(--color-gray-light);
    letter-spacing: 0.05em;
}

/* Service Detail Content */
.service-detail-text {
    font-family: var(--font-primary);
    font-size: 24px;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: calc(var(--unit) * 12);
    color: var(--color-white);
}

/* Service Features Grid */
.service-detail-features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: calc(var(--unit) * 8);
    margin-bottom: calc(var(--unit) * 12);
}

.feature-item {
    border-top: 1px solid var(--color-gray);
    padding-top: calc(var(--unit) * 4);
}

.feature-number {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-gray-light);
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: calc(var(--unit) * 2);
}

.feature-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: calc(var(--unit) * 2);
}

.feature-desc {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-gray-light);
    line-height: 1.5;
}

/* CTA Section */
.service-detail-cta {
    margin-top: calc(var(--unit) * 8);
}

.service-cta-btn {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-black);
    background: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 20px 48px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.service-cta-btn:hover {
    background: transparent;
    color: var(--color-white);
}

@media (max-width: 768px) {
    .service-overlay-content {
        padding: 24px;
    }
    
    .service-close-btn {
        top: 16px;
        right: 24px;
    }
    
    .service-detail-features {
        grid-template-columns: 1fr;
    }
    
    .service-detail-text {
        font-size: 18px;
    }
}

/* ========================================
   REDESIGNED SERVICE PAGE - CUSTOM SOFTWARE
   Brutalist Grid Layout (5 & 7 columns)
   ======================================== */

/* Hero Section with Background Image - FULL WIDTH */
.service-hero-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    margin: -64px -64px 5px; /* Negative top margin to eliminate gap, full width stretch */
    padding: calc(var(--unit) * 20) 64px;
    min-height: 100vh;
    position: relative;
    /* CSS Variables for sliders - Default values */
    --grid-size: 17px;
    --grid-darkness: 0.11;
    --image-contrast: 1.36;
    --image-brightness: 1.36;
    /* Background image - watchmaking tools */
    background-image: 
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.75) 100%
        ),
        url('images/po_na_zak_main.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: contrast(var(--image-contrast)) saturate(0.7) brightness(var(--image-brightness));
}

/* Hide top nav line on this page */
#service-custom .nav {
    background: transparent !important;
    border-bottom: none;
}

/* Modern Microgrid Overlay Effect - Controlled by CSS Variables */
.service-hero-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(
            90deg,
            rgba(255, 255, 255, var(--grid-darkness)) 1px,
            transparent 1px
        ),
        linear-gradient(
            0deg,
            rgba(255, 255, 255, var(--grid-darkness)) 1px,
            transparent 1px
        );
    background-size: var(--grid-size) var(--grid-size);
    pointer-events: none;
    z-index: 1;
}

/* Additional subtle noise/grain texture */
.service-hero-grid::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
    mix-blend-mode: overlay;
}

/* Ensure text is above overlays */
.service-hero-label,
.service-hero-title,
.service-hero-stat,
.service-hero-subtitle {
    position: relative;
    z-index: 3;
}

.service-hero-label {
    grid-column: 1 / 3;
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-white);
    margin-bottom: calc(var(--unit) * 4);
}

.service-hero-title {
    grid-column: 1 / 5;
    font-family: var(--font-primary);
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

.hero-line {
    display: block;
    color: var(--color-white);
}

.hero-line-accent {
    display: block;
    color: #ffffff;
    font-weight: 300;
}

.service-hero-stat {
    grid-column: 6 / 8;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-end;
}

.stat-big {
    font-family: var(--font-primary);
    font-size: clamp(80px, 12vw, 140px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.3);
    line-height: 0.8;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #ffffff;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-top: calc(var(--unit) * 2);
}

.service-hero-subtitle {
    grid-column: 1 / 4;
    font-family: var(--font-mono);
    font-size: 18px;
    color: #ffffff;
    margin-top: calc(var(--unit) * 4);
}

/* Hero Description */
.hero-description {
    padding: calc(var(--unit) * 6) 64px calc(var(--unit) * 4);
    margin: 0 -64px 0;
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid var(--color-gray);
}

.hero-description-text {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    color: var(--color-white);
    text-align: left;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Visual Controls Panel */
.hero-controls {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--unit) * 4);
    padding: calc(var(--unit) * 4) 64px;
    background: rgba(0, 0, 0, 0.8);
    border-top: 1px solid var(--color-gray);
    border-bottom: 1px solid var(--color-gray);
    margin: 0 -64px calc(var(--unit) * 8);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 1);
    min-width: 200px;
    flex: 1;
}

.control-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-white);
    display: flex;
    justify-content: space-between;
}

.control-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 2px;
    background: var(--color-gray);
    outline: none;
    cursor: pointer;
}

.control-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: var(--color-white);
    cursor: pointer;
    border-radius: 0;
}

.control-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--color-white);
    cursor: pointer;
    border-radius: 0;
    border: none;
}

/* Intro Section - 7 Column Grid */
.service-intro-section {
    margin-bottom: calc(var(--unit) * 20);
}

.intro-header {
    margin-bottom: calc(var(--unit) * 12);
}

.intro-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-white);
    margin-bottom: calc(var(--unit) * 4);
}

.intro-title {
    font-family: var(--font-primary);
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.intro-grid-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 32px;
    margin-bottom: calc(var(--unit) * 8);
}

.intro-card {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: calc(var(--unit) * 6);
}

.intro-card:nth-child(1) { grid-column: 1 / 3; }
.intro-card:nth-child(2) { grid-column: 3 / 5; margin-top: calc(var(--unit) * 8); }
.intro-card:nth-child(3) { grid-column: 5 / 8; margin-top: calc(var(--unit) * 16); }

.intro-card-num {
    font-family: var(--font-primary);
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.08);
    line-height: 1;
    margin-bottom: calc(var(--unit) * 3);
    transition: color 0.4s ease;
}

.intro-card:hover .intro-card-num {
    color: var(--color-white);
}

.intro-card-text {
    font-family: var(--font-mono);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-gray-light);
}

.intro-cta {
    margin-top: calc(var(--unit) * 8);
}

.service-cta-btn-large {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--color-black);
    background: var(--color-white);
    border: 2px solid var(--color-white);
    padding: 24px 56px;
    cursor: pointer;
    transition: all 0.3s var(--ease-out-expo);
}

.service-cta-btn-large:hover {
    background: transparent;
    color: var(--color-white);
}

/* Section Headers */
.section-header-grid {
    margin-bottom: calc(var(--unit) * 10);
}

.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-white);
    margin-bottom: calc(var(--unit) * 4);
}

.section-title {
    font-family: var(--font-primary);
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.section-subtitle {
    font-family: var(--font-mono);
    font-size: 16px;
    color: var(--color-gray-light);
    margin-top: calc(var(--unit) * 3);
}

/* When Section - 7 Column */
.service-when-section {
    margin-bottom: calc(var(--unit) * 20);
}

/* Header with CPU Image */
.when-header-with-image {
    display: grid;
    grid-template-columns: 4fr 3fr;
    gap: 64px;
    align-items: stretch;
    margin-bottom: calc(var(--unit) * 12);
}

.when-header-content {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 4);
}

.when-header-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 200px;
    overflow: hidden;
    align-self: stretch;
}

.when-cpu-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: contrast(1.2) saturate(0.6);
    transition: all 0.5s ease;
}

.when-header-image:hover .when-cpu-img {
    filter: contrast(1.1) saturate(0.8);
    transform: scale(1.05);
}

.when-cpu-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.3) 0%,
        transparent 50%,
        rgba(0, 0, 0, 0.5) 100%
    );
    pointer-events: none;
}

.when-grid-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 32px;
}

.when-item-card {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: calc(var(--unit) * 4);
}

.when-item-card:nth-child(1) { grid-column: 1 / 3; }
.when-item-card:nth-child(2) { grid-column: 3 / 5; margin-top: calc(var(--unit) * 8); }
.when-item-card:nth-child(3) { grid-column: 5 / 8; margin-top: calc(var(--unit) * 16); }
.when-item-card:nth-child(4) { grid-column: 1 / 3; margin-top: calc(var(--unit) * 8); }
.when-item-card:nth-child(5) { grid-column: 3 / 5; margin-top: 0; }

/* Startup Page - 5 Column Grid Layout */
.startup-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: calc(var(--unit) * 8);
}

.startup-grid-5 .when-item-card {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: calc(var(--unit) * 4);
}

.startup-grid-5 .when-item-card:nth-child(1) {
    grid-column: 1 / 3;
    margin-top: 0;
}

.startup-grid-5 .when-item-card:nth-child(2) {
    grid-column: 3 / 4;
    margin-top: calc(var(--unit) * 6);
}

.startup-grid-5 .when-item-card:nth-child(3) {
    grid-column: 4 / 5;
    margin-top: calc(var(--unit) * 12);
}

.startup-grid-5 .when-item-card:nth-child(4) {
    grid-column: 5 / 6;
    margin-top: calc(var(--unit) * 18);
}

.startup-grid-5 .when-item-title {
    font-size: clamp(18px, 1.8vw, 24px);
}

.startup-grid-5 .when-item-text {
    font-size: clamp(14px, 1.2vw, 16px);
}

.when-item-num {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-gray-light);
    letter-spacing: 0.1em;
    margin-bottom: calc(var(--unit) * 2);
}

.when-item-text {
    font-family: var(--font-primary);
    font-size: clamp(16px, 1.5vw, 20px);
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}

/* When Conclusion - Full width white background */
.when-conclusion {
    width: 100vw;
    margin-left: -64px;
    margin-right: -64px;
    margin-top: calc(var(--unit) * 12);
    padding: calc(var(--unit) * 3) 64px;
    background: #ffffff;
    color: #000000;
}

.when-conclusion .conclusion-text {
    color: #000000;
    font-family: var(--font-primary);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 600;
    line-height: 1.4;
    max-width: 900px;
    text-align: left;
}

/* Tasks Section - 5 Column Bento Grid */
.service-tasks-section {
    margin-bottom: calc(var(--unit) * 20);
}

.tasks-bento-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 160px);
    gap: 16px;
}

.task-bento-card {
    background: var(--color-black);
    padding: calc(var(--unit) * 4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.task-bento-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-white);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
}

.task-bento-card:hover::before {
    opacity: 0.05;
}

.task-bento-card:hover {
    transform: translateY(-4px);
}

/* Bento grid positioning */
.task-bento-card.xl { 
    grid-column: 1 / 4; 
    grid-row: 1 / 3; 
}

.task-bento-card.lg:nth-of-type(2) {
    grid-column: 4 / 6;
    grid-row: 1 / 2;
}

.task-bento-card.lg:nth-of-type(3) {
    grid-column: 4 / 6;
    grid-row: 2 / 3;
}

.task-bento-card.md:nth-of-type(4) { 
    grid-column: 1 / 3; 
    grid-row: 3 / 4; 
}

.task-bento-card.md:nth-of-type(5) { 
    grid-column: 3 / 4; 
    grid-row: 3 / 5; 
}

.task-bento-card.md:nth-of-type(6) { 
    grid-column: 4 / 5; 
    grid-row: 3 / 4; 
}

/* Startup page - custom bento grid layout (5 columns per user sketch) */
#service-startup .tasks-bento-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 200px);
}

/* Card 1: "Мы уже сделали сложное" - top left, spans 2x2 */
#service-startup .task-bento-card.xl {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

/* Card 2: "Вы проектируете бизнес-логику" - top right */
#service-startup .task-bento-card.lg:nth-of-type(2) {
    grid-column: 3 / 6;
    grid-row: 1 / 2;
}

/* Card 3: "Быстрый запуск" - middle */
#service-startup .task-bento-card.lg:nth-of-type(3) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* Card 4: "Предсказуемость" - bottom left */
#service-startup .task-bento-card.md:nth-of-type(4) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

/* Card 5: "Гибкие объекты" - bottom middle */
#service-startup .task-bento-card.md:nth-of-type(5) {
    grid-column: 2 / 4;
    grid-row: 3 / 4;
}

/* Card 6: "Mega Chat" - spans middle-right to bottom-right */
#service-startup .task-bento-card.md:nth-of-type(6) {
    grid-column: 4 / 6;
    grid-row: 2 / 4;
}

/* Responsive for startup bento */
@media (max-width: 1024px) {
    #service-startup .tasks-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    #service-startup .task-bento-card.xl,
    #service-startup .task-bento-card.lg:nth-of-type(2),
    #service-startup .task-bento-card.lg:nth-of-type(3),
    #service-startup .task-bento-card.md:nth-of-type(4),
    #service-startup .task-bento-card.md:nth-of-type(5),
    #service-startup .task-bento-card.md:nth-of-type(6) {
        grid-column: auto;
        grid-row: auto;
        min-height: 180px;
    }
    
    #service-startup .task-bento-card.xl {
        grid-column: 1 / 3;
    }
}

.task-bento-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gray-light);
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.task-bento-card:hover .task-bento-tag {
    color: var(--color-white);
}

.task-bento-title {
    font-family: var(--font-primary);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    position: relative;
    z-index: 1;
}

.task-bento-card.xl .task-bento-title {
    font-size: clamp(32px, 4vw, 48px);
}

.task-bento-card.lg .task-bento-title {
    font-size: clamp(24px, 3vw, 32px);
}

.task-bento-desc {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-gray-light);
    position: relative;
    z-index: 1;
}

.task-bento-example {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-gray-light);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: calc(var(--unit) * 2);
    margin-top: auto;
    position: relative;
    z-index: 1;
}

/* Difference Section - Split Layout */
.service-difference-section {
    margin-bottom: calc(var(--unit) * 20);
}

.diff-grid {
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 64px;
}

.diff-left {
    position: sticky;
    top: calc(var(--unit) * 12);
    height: fit-content;
}

.diff-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-white);
    margin-bottom: calc(var(--unit) * 4);
}

.diff-title {
    font-family: var(--font-primary);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: calc(var(--unit) * 6);
}

/* Difference Image - Not Done Building */
.diff-image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    margin-top: calc(var(--unit) * 4);
}

.diff-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.2);
    transition: all 0.5s ease;
}

.diff-image:hover .diff-img {
    filter: grayscale(0%) contrast(1.1);
}

.diff-img-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 60%,
        rgba(0, 0, 0, 0.7) 100%
    );
    pointer-events: none;
}

.diff-right {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 4);
}

.diff-text {
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-gray-light);
}

.diff-highlight-box {
    border-left: 2px solid var(--color-white);
    padding-left: calc(var(--unit) * 4);
    margin: calc(var(--unit) * 4) 0;
}

.diff-highlight-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.15em;
    color: var(--color-white);
    display: block;
    margin-bottom: calc(var(--unit) * 2);
}

.diff-ours-box {
    background: rgba(255, 255, 255, 0.03);
    padding: calc(var(--unit) * 6);
    margin-top: calc(var(--unit) * 4);
}

.diff-ours-box h4 {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: calc(var(--unit) * 3);
}

.diff-ours-box p {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-gray-light);
    margin-bottom: calc(var(--unit) * 2);
}

/* Process Section - 7 Column Timeline */
.service-process-section {
    margin-bottom: calc(var(--unit) * 20);
}

.service-process-section .section-header-grid {
    margin-bottom: calc(var(--unit) * 10);
}

.process-flow-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto 60px auto;
    gap: 0 32px;
    position: relative;
}

.process-flow-card {
    border: 1px solid rgba(255, 204, 0, 0.3);
    padding: calc(var(--unit) * 5);
    background: var(--color-black);
    position: relative;
    transition: all 0.4s ease;
}

.process-flow-card:hover {
    border-color: rgba(255, 204, 0, 0.6);
    transform: translateY(-4px);
}

.process-flow-card.top-row {
    grid-row: 1;
}

.process-flow-card.bottom-row {
    grid-row: 3;
}

.process-flow-connector {
    grid-column: 1 / -1;
    grid-row: 2;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connector-line {
    position: absolute;
    left: 0;
    right: 60px;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(255, 204, 0, 0.3) 0%,
        rgba(255, 204, 0, 0.6) 50%,
        rgba(255, 204, 0, 0.3) 100%
    );
}

.connector-arrow {
    position: absolute;
    right: 20px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-left: 12px solid rgba(255, 204, 0, 0.6);
}

.process-flow-num {
    font-family: var(--font-primary);
    font-size: clamp(48px, 6vw, 72px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-bottom: calc(var(--unit) * 2);
    transition: color 0.4s ease;
}

.process-flow-card:hover .process-flow-num {
    color: var(--color-white);
}

.process-flow-title {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: calc(var(--unit) * 2);
    letter-spacing: 0.02em;
}

.process-flow-text {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-gray-light);
}

/* Connecting vertical lines between cards */
.process-flow-card.top-row::after,
.process-flow-card.bottom-row::after {
    content: '';
    position: absolute;
    width: 2px;
    height: 30px;
    background: rgba(255, 204, 0, 0.3);
    left: 50%;
    transform: translateX(-50%);
}

.process-flow-card.top-row::after {
    bottom: -30px;
}

.process-flow-card.bottom-row::after {
    top: -30px;
}

.process-conclusion {
    margin-top: calc(var(--unit) * 12);
    text-align: center;
}

.conclusion-text {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.5;
    max-width: 800px;
    margin: 0 auto calc(var(--unit) * 6);
}

/* Responsive Service Page */
@media (max-width: 1024px) {
    .service-hero-grid {
        grid-template-columns: 1fr;
        gap: 24px;
        margin: 0 -32px calc(var(--unit) * 16);
        padding: calc(var(--unit) * 16) 32px;
    }
    
    .service-hero-title,
    .service-hero-stat,
    .service-hero-subtitle {
        grid-column: 1 / -1;
    }
    
    .service-hero-stat {
        align-items: flex-start;
    }
    
    .when-header-with-image {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .when-header-image {
        aspect-ratio: 16 / 9;
    }
    
    .intro-grid-7,
    .when-grid-7 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .process-flow-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .process-flow-connector {
        display: none;
    }
    
    .process-flow-card.top-row,
    .process-flow-card.bottom-row {
        grid-row: auto;
    }
    
    .process-flow-card.top-row::after,
    .process-flow-card.bottom-row::after {
        display: none;
    }
    
    .intro-card:nth-child(1),
    .intro-card:nth-child(2),
    .intro-card:nth-child(3),
    .when-item-card:nth-child(1),
    .when-item-card:nth-child(2),
    .when-item-card:nth-child(3),
    .when-item-card:nth-child(4),
    .when-item-card:nth-child(5) {
        grid-column: auto;
        margin-top: 0;
    }
    
    .tasks-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .task-bento-card.xl,
    .task-bento-card.lg,
    .task-bento-card.md {
        grid-column: auto;
        grid-row: auto;
        min-height: 200px;
    }
    
    .diff-grid {
        grid-template-columns: 1fr;
    }
    
    .diff-left {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .service-hero-grid {
        margin: -24px -24px calc(var(--unit) * 12);
        padding: calc(var(--unit) * 12) 24px;
        min-height: 70vh;
    }
    
    .intro-grid-7,
    .when-grid-7,
    .process-flow-grid {
        grid-template-columns: 1fr;
    }
    
    .tasks-bento-grid {
        grid-template-columns: 1fr;
    }
    
    .service-process-section .section-header-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--unit) * 4);
    }
}

/* ========================================
   FOOTER SECTION
   ======================================== */
.section-footer {
    padding: calc(var(--unit) * 20) 64px calc(var(--unit) * 8);
    background: var(--color-black);
    border-top: 1px solid var(--color-gray);
}

/* Main Footer Grid - 4 columns */
.footer-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: calc(var(--unit) * 8);
    margin-bottom: calc(var(--unit) * 12);
}

/* Brand Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 4);
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.footer-logo-text {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--color-white);
}

.footer-logo-reg {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 400;
    color: var(--color-white);
    vertical-align: super;
}

.footer-desc {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-gray-light);
    max-width: 300px;
}

/* Navigation Sections */
.footer-nav,
.footer-services,
.footer-contact {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 3);
}

.footer-nav-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--color-white);
    margin-bottom: calc(var(--unit) * 2);
}

.footer-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 2);
}

.footer-nav-list li {
    margin: 0;
    padding: 0;
}

.footer-link {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
    display: inline-block;
}

.footer-link:hover {
    color: var(--color-white);
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-gray-light);
}

/* 7 Elements Grid */
.footer-elements-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
    background: var(--color-gray);
    margin-bottom: calc(var(--unit) * 12);
    border: 1px solid var(--color-gray);
}

.footer-element {
    background: var(--color-black);
    padding: calc(var(--unit) * 4) calc(var(--unit) * 2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(var(--unit) * 2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.footer-element:hover {
    background: var(--color-white);
}

.footer-element:hover .element-number,
.footer-element:hover .element-label {
    color: var(--color-black);
}

.element-number {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-gray-light);
    letter-spacing: 0.1em;
    transition: color 0.3s ease;
}

.element-label {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
    text-align: center;
    transition: color 0.3s ease;
}

/* Footer Bottom */
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 4);
    padding-top: calc(var(--unit) * 6);
    border-top: 1px solid var(--color-gray);
}

.footer-barcode {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: var(--color-gray-light);
    opacity: 0.5;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
}

.footer-copyright {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-gray-light);
    letter-spacing: 0.1em;
}

.footer-privacy {
    color: var(--color-gray-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-privacy:hover {
    color: var(--color-white);
}

/* Responsive Footer */
@media (max-width: 1200px) {
    .section-footer {
        padding: calc(var(--unit) * 16) 32px calc(var(--unit) * 6);
    }
    
    .footer-main-grid {
        grid-template-columns: 1fr 1fr;
        gap: calc(var(--unit) * 6);
    }
    
    .footer-brand {
        grid-column: 1 / -1;
    }
    
    .footer-elements-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .footer-element:nth-child(5),
    .footer-element:nth-child(6),
    .footer-element:nth-child(7) {
        grid-column: span 1;
    }
}

@media (max-width: 768px) {
    .section-footer {
        padding: calc(var(--unit) * 12) 24px calc(var(--unit) * 4);
    }
    
    .footer-main-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--unit) * 5);
    }
    
    .footer-elements-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-element {
        padding: calc(var(--unit) * 3);
    }
    
    .footer-copyright {
        flex-direction: column;
        gap: calc(var(--unit) * 2);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-elements-grid {
        grid-template-columns: 1fr;
    }
}

/* Print styles */
@media print {
    .nav, .cursor, .cursor-follower, .loader, .fullscreen-menu {
        display: none;
    }
    
    body {
        background: white;
        color: black;
    }
}

/* ========================================
   GLOBAL HOVER EFFECTS - SMALL TEXTS
   ======================================== */
/* All small text elements hover effect - gold color */
.task-bento-tag:hover,
.task-bento-desc:hover,
.task-bento-example:hover,
.process-flow-text:hover,
.quality-card-text:hover,
.timeline-text:hover,
.hub-block-desc:hover,
.product-desc:hover,
.service-desc:hover,
.consulting-desc:hover,
.case-type:hover,
.contact-coords:hover,
.when-item-text:hover,
.intro-card-text:hover,
.task-bento-example:hover,
.diff-text:hover,
.conclusion-text:hover,
.control-label:hover,
.section-subtitle:hover,
.hero-description-text:hover,
.footer-desc:hover,
.footer-text:hover,
.menu-footer-label:hover,
.diff-highlight-box p:hover,
.diff-ours-box p:hover,
.process-conclusion p:hover,
.feature-desc:hover,
.stat-label:hover,
.intro-subtitle:hover,
.nav-coordinates:hover,
.timeline-year:hover,
.hub-block-tag:hover,
.product-number:hover,
.service-number:hover,
.consulting-icon:hover,
.case-year:hover,
.contact-label:hover,
.when-item-num:hover,
.intro-card-num:hover,
.diff-label:hover,
.process-step-num:hover,
.timeline-title:hover,
.quality-card-num:hover,
.menu-number:hover,
.footer-element .element-number:hover,
.footer-barcode:hover,
.tagline-text:hover,
.subtitle-text:hover,
.hero-line:hover,
.hero-line-accent:hover,
.menu-item:hover .menu-label,
.menu-item:hover .menu-number,
.footer-link:hover,
.contact-link:hover,
.cta-text:hover,
.case-client:hover,
.diff-highlight-label:hover,
.diff-title:hover,
.section-title:hover,
.process-flow-title:hover,
.task-bento-title:hover,
.quality-card-title:hover,
.timeline-title:hover,
.hub-block-title:hover,
.product-name:hover,
.service-name:hover,
.consulting-title:hover,
.contact-city:hover {
    color: #fc0 !important;
    transition: color 0.3s ease;
}

/* Additional hover for text within cards on card hover */
.task-bento-card:hover .task-bento-tag,
.task-bento-card:hover .task-bento-desc,
.task-bento-card:hover .task-bento-example,
.process-flow-card:hover .process-flow-text,
.quality-card:hover .quality-card-text,
.timeline-item:hover .timeline-text,
.hub-block:hover .hub-block-desc,
.product-item:hover .product-desc,
.service-item:hover .service-desc,
.consulting-item:hover .consulting-desc,
.case-item:hover .case-type,
.contact-item:hover .contact-coords,
.when-item-card:hover .when-item-text,
.intro-card:hover .intro-card-text,
.diff-grid:hover .diff-text,
.feature-item:hover .feature-desc,
.diff-left:hover .diff-text,
.diff-right:hover p,
.process-conclusion:hover p {
    color: #fc0 !important;
    transition: color 0.3s ease;
}

/* ========================================
   GLOBAL BORDER HOVER EFFECT
   ======================================== */
/* All elements with borders - gold color on hover */
* {
    transition: border-color 0.3s ease;
}

*:hover {
    border-color: #fc0 !important;
}

/* Specific element border hovers for better control */
.section:hover,
.card:hover,
.box:hover,
.item:hover,
.container:hover > * {
    border-color: #fc0 !important;
}

/* Preserve existing transitions while adding border */
.service-hero-grid:hover,
.task-bento-card:hover,
.process-flow-card:hover,
.quality-card:hover,
.timeline-item:hover,
.hub-block:hover,
.product-item:hover,
.service-item:hover,
.consulting-item:hover,
.case-item:hover,
.contact-item:hover,
.when-item-card:hover,
.intro-card:hover,
.diff-grid:hover,
.feature-item:hover,
.process-conclusion:hover,
.control-group:hover,
.hero-controls:hover,
.footer-element:hover {
    border-color: #fc0 !important;
}

/* ========================================
   FRANCHISE PAGE STYLES
   ======================================== */

/* Franchise Hero */
.section-franchise-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.franchise-page .service-hero-grid {
    background-image: 
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.75) 100%
        ),
        url('images/po_na_zak_main.jpeg');
}

/* Franchise overlay hero background */
#service-franchise .service-hero-grid {
    background-image: 
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.65) 0%,
            rgba(0, 0, 0, 0.45) 50%,
            rgba(0, 0, 0, 0.8) 100%
        ),
        url('images/franshise.jpg');
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
}

/* Startup overlay hero background */
#service-startup .service-hero-grid {
    background-image: 
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.75) 100%
        ),
        url('images/startup.jpg');
    background-size: cover;
    background-position: center;
}

/* Problem Section - 5 Column Grid */
.problem-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-bottom: calc(var(--unit) * 10);
}

.problem-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: calc(var(--unit) * 4);
    text-align: left;
    transition: all 0.4s ease;
}

.problem-card:hover {
    border-color: rgba(255, 204, 0, 0.5);
    transform: translateY(-4px);
}

.problem-icon {
    font-family: var(--font-mono);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: calc(var(--unit) * 2);
}

.problem-text {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-gray-light);
}

.problem-solution {
    max-width: 800px;
    margin-top: calc(var(--unit) * 8);
    padding-left: 0;
}

.solution-text {
    font-family: var(--font-primary);
    font-size: clamp(18px, 2vw, 24px);
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-white);
}

/* Market Problem Section - 7 Column Grid */
.market-compare-grid-7 {
    display: grid;
    grid-template-columns: 3fr 1fr 3fr;
    gap: 32px;
    margin-top: calc(var(--unit) * 8);
}

.market-column {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: calc(var(--unit) * 6);
    background: rgba(0, 0, 0, 0.3);
}

.market-title {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: calc(var(--unit) * 4);
    padding-bottom: calc(var(--unit) * 2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.market-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 3);
    margin-bottom: calc(var(--unit) * 4);
}

.market-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.market-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    min-width: 20px;
}

.market-text {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-gray-light);
}

.market-result {
    padding-top: calc(var(--unit) * 3);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.result-label {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-bottom: calc(var(--unit) * 1);
}

.result-text {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    color: var(--color-white);
}

.market-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.market-divider::before {
    content: 'VS';
    font-family: var(--font-mono);
    font-size: 14px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.2em;
}

/* Solution Section - 5 Column Grid */
.solution-grid-5 {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: calc(var(--unit) * 8);
}

.solution-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: calc(var(--unit) * 5);
    transition: all 0.4s ease;
}

.solution-card:hover {
    border-color: rgba(255, 204, 0, 0.5);
    transform: translateY(-4px);
}

.solution-num {
    font-family: var(--font-primary);
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-bottom: calc(var(--unit) * 3);
}

.solution-card:hover .solution-num {
    color: #fc0;
}

.solution-card-title {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Benefits Section - Bento Grid */
.benefits-bento-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, 160px);
    gap: 16px;
    margin-top: calc(var(--unit) * 8);
}

.benefit-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: calc(var(--unit) * 4);
    background: var(--color-black);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    transition: all 0.4s ease;
}

.benefit-card:hover {
    border-color: rgba(255, 204, 0, 0.5);
    transform: translateY(-4px);
}

.benefit-card.xl {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
}

.benefit-card.lg:nth-of-type(2) {
    grid-column: 4 / 6;
    grid-row: 1 / 2;
}

.benefit-card.lg:nth-of-type(3) {
    grid-column: 4 / 6;
    grid-row: 2 / 3;
}

.benefit-card.md {
    grid-column: 1 / 4;
    grid-row: 3 / 4;
}

.benefit-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-gray-light);
    margin-bottom: calc(var(--unit) * 2);
}

.benefit-title {
    font-family: var(--font-primary);
    font-size: clamp(20px, 2.5vw, 28px);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.3;
    margin-bottom: calc(var(--unit) * 3);
}

.benefit-card.xl .benefit-title {
    font-size: clamp(28px, 3vw, 36px);
}

.benefit-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 1);
}

.benefit-item {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-gray-light);
    padding-left: 16px;
    position: relative;
}

.benefit-item::before {
    content: '•';
    position: absolute;
    left: 0;
    color: rgba(255, 204, 0, 0.6);
}

.benefit-desc {
    font-family: var(--font-mono);
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-gray-light);
}

/* Automation Section - 7 Column Grid */
.automation-grid-7 {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 24px;
    margin-top: calc(var(--unit) * 8);
}

.auto-item {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: calc(var(--unit) * 3);
    text-align: left;
}

.auto-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
    display: block;
    margin-bottom: calc(var(--unit) * 1);
}

.auto-text {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
}

.automation-conclusion {
    margin-top: calc(var(--unit) * 10);
    text-align: left;
}

.automation-conclusion .conclusion-text {
    font-family: var(--font-primary);
    font-size: 20px;
    font-weight: 600;
    color: var(--color-white);
}

/* Implementation Section - Flow Grid */
.impl-flow-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    margin-top: calc(var(--unit) * 8);
}

.impl-card {
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: calc(var(--unit) * 5);
    position: relative;
    transition: all 0.4s ease;
}

.impl-card:hover {
    border-color: rgba(255, 204, 0, 0.5);
    transform: translateY(-4px);
}

.impl-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 50%;
    right: -17px;
    width: 32px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

.impl-num {
    font-family: var(--font-primary);
    font-size: clamp(36px, 4vw, 48px);
    font-weight: 300;
    color: rgba(255, 255, 255, 0.1);
    line-height: 1;
    margin-bottom: calc(var(--unit) * 2);
}

.impl-card:hover .impl-num {
    color: #fc0;
}

.impl-title {
    font-family: var(--font-primary);
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: calc(var(--unit) * 2);
}

.impl-text {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-gray-light);
}

/* Startup: 7-column / 3-row implementation layout */
#service-startup .impl-flow-grid {
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(3, minmax(160px, auto));
    gap: 24px;
}

#service-startup .impl-card::after {
    display: none;
}

#service-startup .impl-card:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1;
}

#service-startup .impl-card:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1;
}

#service-startup .impl-card:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 2;
}

#service-startup .impl-card:nth-child(4) {
    grid-column: 4 / 5;
    grid-row: 2;
}

#service-startup .impl-card:nth-child(5) {
    grid-column: 5 / 6;
    grid-row: 2;
}

#service-startup .impl-final-card {
    grid-column: 4 / 8;
    grid-row: 3;
}

/* CTA Section */
.section-franchise-cta {
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.cta-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 64px;
    align-items: center;
}

.cta-title {
    font-family: var(--font-primary);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
    margin-bottom: calc(var(--unit) * 4);
}

.cta-subtitle {
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.7;
    color: var(--color-gray-light);
    max-width: 600px;
}

.cta-action {
    display: flex;
    justify-content: flex-end;
}

/* Responsive Franchise Page */
@media (max-width: 1024px) {
    .problem-grid-5,
    .solution-grid-5 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .market-compare-grid-7 {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .market-divider {
        display: none;
    }
    
    .benefits-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
    
    .benefit-card.xl,
    .benefit-card.lg:nth-of-type(2),
    .benefit-card.lg:nth-of-type(3),
    .benefit-card.md {
        grid-column: auto;
        grid-row: auto;
        min-height: 200px;
    }
    
    .automation-grid-7 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .impl-flow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #service-startup .impl-flow-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    #service-startup .impl-card:nth-child(1),
    #service-startup .impl-card:nth-child(2),
    #service-startup .impl-card:nth-child(3),
    #service-startup .impl-card:nth-child(4),
    #service-startup .impl-card:nth-child(5),
    #service-startup .impl-final-card {
        grid-column: auto;
        grid-row: auto;
    }
    
    .impl-card:not(:last-child)::after {
        display: none;
    }
    
    .cta-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .cta-action {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .problem-grid-5,
    .solution-grid-5,
    .automation-grid-7,
    .impl-flow-grid {
        grid-template-columns: 1fr;
    }

    #service-startup .impl-flow-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
    }

    #service-startup .impl-card:nth-child(1),
    #service-startup .impl-card:nth-child(2),
    #service-startup .impl-card:nth-child(3),
    #service-startup .impl-card:nth-child(4),
    #service-startup .impl-card:nth-child(5),
    #service-startup .impl-final-card {
        grid-column: auto;
        grid-row: auto;
    }
    
    .benefits-bento-grid {
        grid-template-columns: 1fr;
    }
    
    .startup-grid-5 {
        grid-template-columns: 1fr;
    }
    
    .startup-grid-5 .when-item-card:nth-child(1),
    .startup-grid-5 .when-item-card:nth-child(2),
    .startup-grid-5 .when-item-card:nth-child(3),
    .startup-grid-5 .when-item-card:nth-child(4) {
        grid-column: auto;
        margin-top: 0;
    }
    
    .when-conclusion {
        width: 100vw;
        margin-left: -24px;
        margin-right: -24px;
        padding: calc(var(--unit) * 2.5) 24px;
    }
}

/* ========================================
   SECTION MARQUEE (for service overlays)
   ======================================== */
.section-marquee {
    width: 100%;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.75rem 0;
    margin: calc(var(--unit) * 6) 0;
}

.section-marquee .marquee-container {
    width: 100%;
    overflow: hidden;
}

.section-marquee .marquee-text {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.2em;
    color: var(--color-gray-light);
    white-space: nowrap;
    animation: marqueeScroll 12s linear infinite;
    text-transform: uppercase;
}

.section-marquee:hover .marquee-text {
    color: #fc0;
}

/* Startup page marquee - slide in from right once */
#service-startup .service-when-section .section-marquee .marquee-text {
    animation: marqueeSlideIn 2s ease-out forwards !important;
}

@keyframes marqueeSlideIn {
    0% {
        transform: translateX(100vw);
        opacity: 0;
    }
    100% {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Intro Marquee - for startup page */
.intro-marquee {
    width: 100vw;
    margin-left: -64px;
    margin-right: -64px;
    margin-top: calc(var(--unit) * 8);
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.02);
}

.intro-marquee .marquee-container {
    width: 100%;
    overflow: hidden;
}

.intro-marquee .marquee-text {
    font-family: var(--font-mono);
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 400;
    letter-spacing: 0.15em;
    color: var(--color-white);
    white-space: nowrap;
    animation: marqueeScroll 10s linear infinite;
    text-transform: uppercase;
}

.intro-marquee:hover .marquee-text {
    color: #fc0;
}

@media (max-width: 768px) {
    .intro-marquee {
        margin-left: -24px;
        margin-right: -24px;
        padding: 0.75rem 0;
    }
}

/* Startup features cards: single outer contour, no connectors */
#service-startup .process-flow-grid {
    border: 1px solid rgba(255, 204, 0, 0.3);
    padding: 20px;
}

#service-startup .process-flow-connector {
    display: none;
}

#service-startup .process-flow-card.top-row::after,
#service-startup .process-flow-card.bottom-row::after {
    display: none;
}

/* ========================================
   CALL CENTER PAGE STYLES
   ======================================== */

/* Call Center overlay hero background */
#service-callcenter .service-hero-grid {
    background-image:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.6) 0%,
            rgba(0, 0, 0, 0.4) 50%,
            rgba(0, 0, 0, 0.75) 100%
        ),
        url('images/call_center.jpg');
    background-size: cover;
    background-position: center;
}

/* Call Center: asymmetric 5-column bento grid */
#service-callcenter .tasks-bento-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 190px);
}

#service-callcenter .task-bento-card.xl {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
}

#service-callcenter .task-bento-card.lg:nth-of-type(2) {
    grid-column: 4 / 6;
    grid-row: 1 / 2;
}

#service-callcenter .task-bento-card.lg:nth-of-type(3) {
    grid-column: 4 / 6;
    grid-row: 2 / 3;
}

#service-callcenter .task-bento-card.md:nth-of-type(4) {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
}

#service-callcenter .task-bento-card.md:nth-of-type(5) {
    grid-column: 3 / 4;
    grid-row: 3 / 5;
}

#service-callcenter .task-bento-card.md:nth-of-type(6) {
    grid-column: 4 / 6;
    grid-row: 3 / 4;
}

/* Keep text fully visible in asymmetric layout */
#service-callcenter .task-bento-card {
    padding: calc(var(--unit) * 3.5);
}

#service-callcenter .task-bento-card .task-bento-title {
    font-size: clamp(18px, 2.2vw, 44px);
    line-height: 1.15;
}

#service-callcenter .task-bento-card .task-bento-desc,
#service-callcenter .task-bento-card .task-bento-example {
    font-size: 11px;
    line-height: 1.45;
}

/* Call Center features cards: single outer contour, no connectors */
#service-callcenter .process-flow-grid {
    border: 1px solid rgba(255, 204, 0, 0.3);
    padding: 20px;
}

#service-callcenter .process-flow-connector {
    display: none;
}

#service-callcenter .process-flow-card.top-row::after,
#service-callcenter .process-flow-card.bottom-row::after {
    display: none;
}

#service-callcenter .process-flow-card.full-width {
    grid-column: 1 / -1;
    margin-top: 24px;
}

/* Call Center implementation: 5-column / 2-row arrangement */
#service-callcenter .impl-flow-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(2, minmax(180px, auto));
    gap: 24px;
    margin-top: calc(var(--unit) * 8);
}

#service-callcenter .impl-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
#service-callcenter .impl-card:nth-child(2) { grid-column: 3 / 4; grid-row: 1; }
#service-callcenter .impl-card:nth-child(3) { grid-column: 4 / 6; grid-row: 1; }
#service-callcenter .impl-card:nth-child(4) { grid-column: 1 / 3; grid-row: 2; }
#service-callcenter .impl-card:nth-child(5) { grid-column: 3 / 6; grid-row: 2; }

/* Diff subtitle styling */
.diff-subtitle {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-gray-light);
    margin-top: calc(var(--unit) * 2);
}

@media (max-width: 1024px) {
    #service-callcenter .tasks-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    #service-callcenter .task-bento-card.xl,
    #service-callcenter .task-bento-card.lg:nth-of-type(2),
    #service-callcenter .task-bento-card.lg:nth-of-type(3),
    #service-callcenter .task-bento-card.md:nth-of-type(4),
    #service-callcenter .task-bento-card.md:nth-of-type(5),
    #service-callcenter .task-bento-card.md:nth-of-type(6) {
        grid-column: auto;
        grid-row: auto;
        min-height: 180px;
    }

    #service-callcenter .task-bento-card.xl {
        grid-column: 1 / 3;
    }

    #service-callcenter .impl-flow-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    #service-callcenter .impl-card:nth-child(1),
    #service-callcenter .impl-card:nth-child(2),
    #service-callcenter .impl-card:nth-child(3),
    #service-callcenter .impl-card:nth-child(4),
    #service-callcenter .impl-card:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    #service-callcenter .tasks-bento-grid,
    #service-callcenter .impl-flow-grid {
        grid-template-columns: 1fr;
    }

    #service-callcenter .task-bento-card.xl {
        grid-column: auto;
    }
}

/* ========================================
   REAL SECTOR PAGE STYLES
   ======================================== */

#service-realsector .service-hero-grid {
    background-image:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.68) 0%,
            rgba(0, 0, 0, 0.5) 55%,
            rgba(0, 0, 0, 0.82) 100%
        ),
        url('images/real_sect.jpg');
    background-size: cover;
    background-position: center;
}

#service-realsector .hero-description-text {
    font-family: var(--font-primary);
    font-size: clamp(18px, 2.2vw, 32px);
    font-weight: 600;
    line-height: 1.35;
    text-transform: none;
    letter-spacing: 0;
}

/* Real Sector industries - 7-column modular grid */
#service-realsector .realsector-industries-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 12px;
    margin-top: calc(var(--unit) * 8);
}

#service-realsector .industry-chip {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(0, 0, 0, 0.25);
    padding: calc(var(--unit) * 2.2) calc(var(--unit) * 2.5);
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.45;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-gray-light);
}

#service-realsector .industry-chip:nth-child(3n + 1) { grid-column: span 2; }
#service-realsector .industry-chip:nth-child(5n + 3) { grid-column: span 2; }

/* Real Sector benefits bento layout */
#service-realsector .realsector-bento-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 170px);
}

#service-realsector .realsector-bento-grid .task-bento-card {
    padding: calc(var(--unit) * 3.5);
}

#service-realsector .realsector-bento-grid .task-bento-card.xl {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

#service-realsector .realsector-bento-grid .task-bento-card.lg:nth-of-type(2) {
    grid-column: 3 / 6;
    grid-row: 1 / 2;
}

#service-realsector .realsector-bento-grid .task-bento-card.lg:nth-of-type(3) {
    grid-column: 3 / 5;
    grid-row: 2 / 3;
}

#service-realsector .realsector-bento-grid .task-bento-card.md:nth-of-type(4) {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
}

#service-realsector .realsector-bento-grid .task-bento-card.md:nth-of-type(5) {
    grid-column: 3 / 4;
    grid-row: 3 / 5;
}

#service-realsector .realsector-bento-grid .task-bento-card.md:nth-of-type(6) {
    grid-column: 4 / 6;
    grid-row: 3 / 4;
}

#service-realsector .realsector-bento-grid .task-bento-title {
    font-size: clamp(20px, 2.3vw, 42px);
    line-height: 1.15;
}

#service-realsector .realsector-bento-grid .task-bento-desc,
#service-realsector .realsector-bento-grid .task-bento-example {
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 1024px) {
    #service-realsector .realsector-industries-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #service-realsector .industry-chip:nth-child(3n + 1),
    #service-realsector .industry-chip:nth-child(5n + 3) {
        grid-column: span 1;
    }

    #service-realsector .realsector-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    #service-realsector .realsector-bento-grid .task-bento-card.xl,
    #service-realsector .realsector-bento-grid .task-bento-card.lg:nth-of-type(2),
    #service-realsector .realsector-bento-grid .task-bento-card.lg:nth-of-type(3),
    #service-realsector .realsector-bento-grid .task-bento-card.md:nth-of-type(4),
    #service-realsector .realsector-bento-grid .task-bento-card.md:nth-of-type(5),
    #service-realsector .realsector-bento-grid .task-bento-card.md:nth-of-type(6) {
        grid-column: auto;
        grid-row: auto;
        min-height: 180px;
    }

    #service-realsector .realsector-bento-grid .task-bento-card.xl {
        grid-column: 1 / 3;
    }
}

@media (max-width: 768px) {
    #service-realsector .realsector-industries-grid,
    #service-realsector .realsector-bento-grid {
        grid-template-columns: 1fr;
    }

    #service-realsector .realsector-bento-grid .task-bento-card.xl {
        grid-column: auto;
    }
}

/* Reduce oversized empty vertical gaps in heavy overlay pages */
#service-startup .service-intro-section,
#service-startup .service-when-section,
#service-startup .service-tasks-section,
#service-startup .service-process-section,
#service-startup .service-difference-section,
#service-startup .service-implementation-section,
#service-callcenter .service-intro-section,
#service-callcenter .service-when-section,
#service-callcenter .service-tasks-section,
#service-callcenter .service-process-section,
#service-callcenter .service-difference-section,
#service-callcenter .service-implementation-section,
#service-realsector .service-intro-section,
#service-realsector .service-when-section,
#service-realsector .service-tasks-section,
#service-realsector .service-process-section,
#service-realsector .service-difference-section,
#service-realsector .service-implementation-section {
    margin-bottom: calc(var(--unit) * 12);
}

#service-startup .when-conclusion,
#service-callcenter .when-conclusion,
#service-realsector .when-conclusion {
    margin-top: calc(var(--unit) * 6);
}

#service-startup .service-detail-content,
#service-callcenter .service-detail-content,
#service-realsector .service-detail-content {
    padding-top: calc(var(--unit) * 12) !important;
}

/* Global overlay spacing harmonization (all service pages) */
#service-overlay .service-content-page .service-intro-section,
#service-overlay .service-content-page .service-when-section,
#service-overlay .service-content-page .service-tasks-section,
#service-overlay .service-content-page .service-process-section,
#service-overlay .service-content-page .service-difference-section,
#service-overlay .service-content-page .service-implementation-section {
    margin-bottom: calc(var(--unit) * 12);
}

#service-overlay .service-content-page .section-header-grid {
    margin-bottom: calc(var(--unit) * 7);
}

#service-overlay .service-content-page .when-conclusion {
    margin-top: calc(var(--unit) * 6);
}

#service-overlay .service-content-page .service-detail-content {
    padding-top: calc(var(--unit) * 12) !important;
}

/* ========================================
   SEO PAGE STYLES
   ======================================== */

#service-seo .service-hero-grid {
    background-image:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.52) 52%,
            rgba(0, 0, 0, 0.85) 100%
        ),
        url('images/seo.jpg');
    background-size: cover;
    background-position: center;
}

#service-seo .hero-description-text {
    font-family: var(--font-primary);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 500;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
}

/* SEO full package bento (5 cols) */
#service-seo .seo-packages-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, 170px);
}

#service-seo .seo-packages-grid .task-bento-card.xl {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
}

#service-seo .seo-packages-grid .task-bento-card.lg:nth-of-type(2) {
    grid-column: 4 / 6;
    grid-row: 1 / 2;
}

#service-seo .seo-packages-grid .task-bento-card.lg:nth-of-type(3) {
    grid-column: 4 / 6;
    grid-row: 2 / 3;
}

#service-seo .seo-packages-grid .task-bento-card.md:nth-of-type(4) {
    grid-column: 1 / 3;
    grid-row: 3 / 4;
}

#service-seo .seo-packages-grid .task-bento-card.md:nth-of-type(5) {
    grid-column: 3 / 4;
    grid-row: 3 / 5;
}

#service-seo .seo-packages-grid .task-bento-card.md:nth-of-type(6) {
    grid-column: 4 / 6;
    grid-row: 3 / 4;
}

/* Journey asymmetric flow (7 cols, left->right->down) */
#service-seo .seo-journey-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    grid-template-rows: repeat(4, minmax(110px, auto));
    gap: 14px;
}

#service-seo .seo-step-card {
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: rgba(0, 0, 0, 0.28);
    padding: calc(var(--unit) * 3);
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 2);
    justify-content: flex-start;
    transition: all 0.35s ease;
}

#service-seo .seo-step-card:hover {
    border-color: rgba(255, 204, 0, 0.55);
    transform: translateY(-3px);
}

#service-seo .seo-step-num {
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.14em;
}

#service-seo .seo-step-title {
    font-family: var(--font-primary);
    font-size: clamp(16px, 1.6vw, 22px);
    font-weight: 700;
    line-height: 1.28;
    text-transform: uppercase;
}

#service-seo .seo-step-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
#service-seo .seo-step-card:nth-child(2) { grid-column: 3 / 5; grid-row: 1; }
#service-seo .seo-step-card:nth-child(3) { grid-column: 5 / 7; grid-row: 1; }
#service-seo .seo-step-card:nth-child(4) { grid-column: 6 / 8; grid-row: 2; }
#service-seo .seo-step-card:nth-child(5) { grid-column: 4 / 6; grid-row: 2; }
#service-seo .seo-step-card:nth-child(6) { grid-column: 2 / 4; grid-row: 3; }
#service-seo .seo-step-card:nth-child(7) { grid-column: 3 / 5; grid-row: 4; }
#service-seo .seo-step-card:nth-child(8) { grid-column: 5 / 8; grid-row: 4; }

#service-seo .when-conclusion {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    align-items: center;
    column-gap: 14px;
    padding: calc(var(--unit) * 3.2) 64px;
}

#service-seo .when-conclusion .conclusion-text {
    grid-column: 2 / 8;
    margin: 0;
    max-width: 56ch;
    font-family: var(--font-primary);
    font-size: clamp(22px, 2.4vw, 36px);
    font-weight: 800;
    line-height: 1.24;
    text-transform: uppercase;
    letter-spacing: 0.01em;
}

@media (max-width: 1024px) {
    #service-seo .seo-packages-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    #service-seo .seo-packages-grid .task-bento-card.xl,
    #service-seo .seo-packages-grid .task-bento-card.lg:nth-of-type(2),
    #service-seo .seo-packages-grid .task-bento-card.lg:nth-of-type(3),
    #service-seo .seo-packages-grid .task-bento-card.md:nth-of-type(4),
    #service-seo .seo-packages-grid .task-bento-card.md:nth-of-type(5),
    #service-seo .seo-packages-grid .task-bento-card.md:nth-of-type(6) {
        grid-column: auto;
        grid-row: auto;
        min-height: 180px;
    }

    #service-seo .seo-packages-grid .task-bento-card.xl {
        grid-column: 1 / 3;
    }

    #service-seo .seo-journey-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    #service-seo .seo-step-card:nth-child(1),
    #service-seo .seo-step-card:nth-child(2),
    #service-seo .seo-step-card:nth-child(3),
    #service-seo .seo-step-card:nth-child(4),
    #service-seo .seo-step-card:nth-child(5),
    #service-seo .seo-step-card:nth-child(6),
    #service-seo .seo-step-card:nth-child(7),
    #service-seo .seo-step-card:nth-child(8) {
        grid-column: auto;
        grid-row: auto;
    }

    #service-seo .when-conclusion {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #service-seo .when-conclusion .conclusion-text {
        grid-column: 1 / 3;
        font-size: clamp(20px, 3.2vw, 30px);
    }
}

@media (max-width: 768px) {
    #service-seo .seo-packages-grid,
    #service-seo .seo-clients-grid,
    #service-seo .seo-journey-grid {
        grid-template-columns: 1fr;
    }

    #service-seo .seo-packages-grid .task-bento-card.xl {
        grid-column: auto;
    }

    #service-seo .when-conclusion {
        grid-template-columns: 1fr;
        padding: calc(var(--unit) * 2.8) 32px;
    }

    #service-seo .when-conclusion .conclusion-text {
        grid-column: 1;
        font-size: clamp(18px, 5.4vw, 26px);
    }
}

/* ========================================
   BASE CRM PAGE STYLES
   ======================================== */

#service-base .service-hero-grid {
    background-image:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.5) 52%,
            rgba(0, 0, 0, 0.86) 100%
        ),
        url('images/meg_base.jpg');
    background-size: cover;
    background-position: center;
}

#service-base .hero-description-text {
    font-family: var(--font-primary);
    font-size: clamp(18px, 2vw, 28px);
    font-weight: 500;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: 0;
}

/* Base page: fully rebuilt asymmetric bento with intentional gaps */
#service-base .tasks-bento-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(125px, auto));
    gap: 18px;
}

#service-base .tasks-bento-grid .task-bento-card {
    padding: calc(var(--unit) * 3.5);
    min-height: 0;
}

#service-base .tasks-bento-grid .task-bento-title {
    font-size: clamp(18px, 1.85vw, 30px);
    line-height: 1.16;
    overflow-wrap: anywhere;
}

#service-base .tasks-bento-grid .task-bento-card.xl .task-bento-title {
    font-size: clamp(40px, 4.9vw, 74px);
    line-height: 1.03;
    max-width: 13ch;
}

#service-base .tasks-bento-grid .task-bento-desc,
#service-base .tasks-bento-grid .task-bento-example {
    font-size: 12px;
    line-height: 1.55;
}

#service-base .tasks-bento-grid .task-bento-card:nth-child(1) {
    grid-column: 1 / 6;
    grid-row: 1 / 4;
}

#service-base .tasks-bento-grid .task-bento-card:nth-child(2) {
    grid-column: 6 / 9;
    grid-row: 1 / 3;
}

#service-base .tasks-bento-grid .task-bento-card:nth-child(3) {
    grid-column: 6 / 9;
    grid-row: 3 / 5;
}

#service-base .tasks-bento-grid .task-bento-card:nth-child(4) {
    grid-column: 1 / 4;
    grid-row: 4 / 6;
}

#service-base .tasks-bento-grid .task-bento-card:nth-child(5) {
    grid-column: 4 / 6;
    grid-row: 4 / 7;
}

#service-base .tasks-bento-grid .task-bento-card:nth-child(6) {
    grid-column: 7 / 9;
    grid-row: 5 / 7;
}

/* Base page: implementation cards in a single desktop row */
#service-base .impl-flow-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 24px;
}

#service-base .impl-card {
    padding: calc(var(--unit) * 3.8);
    min-height: 220px;
}

#service-base .impl-title {
    font-size: clamp(16px, 1.45vw, 22px);
    line-height: 1.25;
}

#service-base .impl-text {
    font-size: 12px;
    line-height: 1.55;
}

/* Base page: 5-column asymmetric staircase for system cards */
#service-base .process-flow-grid {
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(4, minmax(220px, auto));
    gap: 18px;
}

#service-base .process-flow-connector {
    display: none;
}

#service-base .process-flow-card.top-row::after,
#service-base .process-flow-card.bottom-row::after {
    display: none;
}

#service-base .process-flow-card {
    padding: calc(var(--unit) * 3.5);
}

#service-base .process-flow-title {
    font-size: clamp(20px, 2vw, 32px);
}

#service-base .process-flow-text {
    font-size: 12px;
    line-height: 1.5;
}

#service-base .step-01 { grid-column: 1 / 2; grid-row: 1; }
#service-base .step-02 { grid-column: 2 / 3; grid-row: 1; }
#service-base .step-03 { grid-column: 3 / 4; grid-row: 2; }
#service-base .step-04 { grid-column: 4 / 5; grid-row: 2; }
#service-base .step-05 { grid-column: 4 / 5; grid-row: 3; }
#service-base .step-06 { grid-column: 5 / 6; grid-row: 4; }

@media (max-width: 1024px) {
    #service-base .tasks-bento-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    #service-base .impl-flow-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #service-base .impl-card {
        min-height: 200px;
    }

    #service-base .tasks-bento-grid .task-bento-card:nth-child(1),
    #service-base .tasks-bento-grid .task-bento-card:nth-child(2),
    #service-base .tasks-bento-grid .task-bento-card:nth-child(3),
    #service-base .tasks-bento-grid .task-bento-card:nth-child(4),
    #service-base .tasks-bento-grid .task-bento-card:nth-child(5),
    #service-base .tasks-bento-grid .task-bento-card:nth-child(6) {
        grid-column: auto;
        grid-row: auto;
        min-height: 210px;
    }

    #service-base .tasks-bento-grid .task-bento-card:nth-child(1) {
        grid-column: 1 / 3;
        min-height: 250px;
    }

    #service-base .tasks-bento-grid .task-bento-card.xl .task-bento-title {
        font-size: clamp(32px, 6.8vw, 56px);
        max-width: none;
    }

    #service-base .process-flow-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }

    #service-base .step-01,
    #service-base .step-02,
    #service-base .step-03,
    #service-base .step-04,
    #service-base .step-05,
    #service-base .step-06 {
        grid-column: auto;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    #service-base .tasks-bento-grid {
        grid-template-columns: 1fr;
    }

    #service-base .impl-flow-grid {
        grid-template-columns: 1fr;
    }

    #service-base .tasks-bento-grid .task-bento-card:nth-child(1) {
        grid-column: auto;
    }

    #service-base .tasks-bento-grid .task-bento-card {
        min-height: 190px;
    }

    #service-base .tasks-bento-grid .task-bento-card.xl .task-bento-title {
        font-size: clamp(30px, 10.5vw, 44px);
    }

    #service-base .process-flow-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   CUSTOM PAGE REBUILD
   ======================================== */

#service-custom .service-hero-grid {
    background-image:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.76) 0%,
            rgba(0, 0, 0, 0.52) 50%,
            rgba(0, 0, 0, 0.9) 100%
        ),
        url('images/custom.jpg');
    background-size: cover;
    background-position: center;
    filter: contrast(1.34) saturate(0.72) brightness(1.25);
}

#service-custom .service-hero-title {
    grid-column: 1 / 6;
    max-width: 9ch;
}

#service-custom .hero-line-accent {
    color: #fc0;
    font-weight: 700;
}

#service-custom .service-hero-stat {
    align-items: flex-start;
}

#service-custom .service-hero-subtitle {
    grid-column: 1 / 6;
    max-width: 42ch;
}

#service-custom .hero-description {
    background: rgba(0, 0, 0, 0.92);
}

#service-custom .hero-description-text {
    font-size: 12px;
    letter-spacing: 0.12em;
}

#service-custom .custom-manifest-section {
    margin-top: calc(var(--unit) * 6);
}

#service-custom .custom-giant-line {
    font-family: var(--font-primary);
    font-size: clamp(54px, 9.4vw, 164px);
    font-weight: 800;
    line-height: 0.95;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: calc(var(--unit) * 5);
    background: linear-gradient(90deg, #ffffff 0%, #fc0 30%, #ffffff 58%, #ffffff 100%);
    background-size: 220% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: customShine 8s linear infinite;
}

#service-custom .custom-manifest-text {
    max-width: 74ch;
    margin-bottom: calc(var(--unit) * 6);
    font-family: var(--font-mono);
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-gray-light);
}

#service-custom .custom-manifest-final {
    max-width: 40ch;
    margin-bottom: calc(var(--unit) * 10);
    font-family: var(--font-primary);
    font-size: clamp(28px, 3.9vw, 58px);
    line-height: 1.05;
    font-weight: 700;
    text-transform: uppercase;
}

#service-custom .custom-contrast-grid {
    margin-bottom: calc(var(--unit) * 8);
}

#service-custom .custom-contrast-grid .intro-card:nth-child(1) {
    grid-column: 1 / 3;
    margin-top: 0;
}

#service-custom .custom-contrast-grid .intro-card:nth-child(2) {
    grid-column: 4 / 6;
    margin-top: calc(var(--unit) * 9);
}

#service-custom .custom-contrast-grid .intro-card:nth-child(3) {
    grid-column: 6 / 8;
    margin-top: calc(var(--unit) * 16);
}

#service-custom .custom-signal-board {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: calc(var(--unit) * 4);
    overflow: hidden;
    position: relative;
}

#service-custom .custom-signal-head {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-white);
    margin-bottom: calc(var(--unit) * 3);
}

#service-custom .custom-signal-track {
    height: 2px;
    background: rgba(255, 255, 255, 0.16);
    position: relative;
    margin-bottom: calc(var(--unit) * 3);
}

#service-custom .custom-signal-track::after {
    content: '';
    position: absolute;
    top: 0;
    left: -20%;
    width: 20%;
    height: 100%;
    background: #fc0;
    box-shadow: 0 0 14px rgba(255, 204, 0, 0.6);
    animation: customTrackRun 2.8s linear infinite;
}

#service-custom .custom-signal-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}

#service-custom .custom-pain-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 18px;
}

#service-custom .custom-pain-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: calc(var(--unit) * 3.5);
    min-height: 190px;
    background: rgba(255, 255, 255, 0.01);
}

#service-custom .custom-pain-card .when-item-text {
    font-size: clamp(17px, 1.7vw, 24px);
    line-height: 1.3;
    text-transform: none;
}

#service-custom .custom-pain-card:nth-child(1) { grid-column: 1 / 3; }
#service-custom .custom-pain-card:nth-child(2) { grid-column: 3 / 5; margin-top: calc(var(--unit) * 6); }
#service-custom .custom-pain-card:nth-child(3) { grid-column: 6 / 8; margin-top: calc(var(--unit) * 2); }
#service-custom .custom-pain-card:nth-child(4) { grid-column: 2 / 5; }
#service-custom .custom-pain-card:nth-child(5) { grid-column: 5 / 7; margin-top: calc(var(--unit) * 10); }

#service-custom .custom-architecture-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(5, minmax(120px, auto));
    gap: 18px;
}

#service-custom .custom-arch-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(0, 0, 0, 0.7);
    padding: calc(var(--unit) * 3.5);
    position: relative;
    overflow: hidden;
}

#service-custom .custom-arch-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 0%, rgba(255, 204, 0, 0.08) 50%, transparent 100%);
    transform: translateX(-130%);
    animation: customCardSweep 9s linear infinite;
    pointer-events: none;
}

#service-custom .custom-arch-card:nth-child(1) {
    grid-column: 1 / 4;
    grid-row: 1 / 4;
}

#service-custom .custom-arch-card:nth-child(2) {
    grid-column: 4 / 8;
    grid-row: 1 / 3;
}

#service-custom .custom-arch-card:nth-child(3) {
    grid-column: 3 / 8;
    grid-row: 3 / 6;
}

#service-custom .custom-list {
    list-style: none;
    margin: calc(var(--unit) * 3) 0 0;
    padding: 0;
    display: grid;
    gap: calc(var(--unit) * 2);
}

#service-custom .custom-list li {
    position: relative;
    padding-left: 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.58;
    color: var(--color-gray-light);
    overflow-wrap: anywhere;
}

#service-custom .custom-list li::before {
    content: '';
    width: 6px;
    height: 1px;
    background: rgba(255, 255, 255, 0.7);
    position: absolute;
    left: 0;
    top: 0.85em;
}

#service-custom .custom-note {
    margin-top: calc(var(--unit) * 3);
    font-family: var(--font-primary);
    font-size: clamp(16px, 1.55vw, 24px);
    font-weight: 600;
    line-height: 1.22;
    text-transform: uppercase;
    max-width: 24ch;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#service-custom .custom-arch-intro {
    max-width: 62ch;
    margin: 0 0 calc(var(--unit) * 6);
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.65;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-white);
}

#service-custom .custom-architecture-list {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

#service-custom .custom-arch-row {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: calc(var(--unit) * 3) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

#service-custom .custom-arch-row-main {
    padding-top: calc(var(--unit) * 3);
    padding-bottom: calc(var(--unit) * 3);
}

#service-custom .custom-arch-code {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    color: var(--color-white);
    text-transform: uppercase;
    padding-top: 7px;
}

#service-custom .custom-arch-body {
    min-width: 0;
}

#service-custom .custom-arch-title {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-white);
    margin: 0;
    max-width: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#service-custom .custom-arch-text {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: 0.04em;
    color: var(--color-white);
    margin: 0;
    max-width: none;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#service-custom .custom-arch-row-note .custom-arch-text {
    font-size: 11px;
    line-height: 1.65;
    text-transform: none;
    max-width: none;
    color: var(--color-white);
}

#service-custom .custom-chat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(130px, auto));
    gap: 18px;
}

#service-custom .custom-chat-main,
#service-custom .custom-chat-list {
    border: 1px solid rgba(255, 255, 255, 0.16);
    padding: calc(var(--unit) * 3.5);
    background: rgba(255, 255, 255, 0.01);
    position: relative;
    overflow: hidden;
    min-width: 0;
}

#service-custom .custom-chat-main,
#service-custom .custom-chat-list {
    overflow: visible;
}

#service-custom .custom-chat-main { grid-column: 1 / 4; grid-row: 1 / 3; }
#service-custom .custom-chat-list { grid-column: 4 / 6; grid-row: 1 / 3; }

#service-custom .custom-chat-main .task-bento-title {
    font-size: clamp(22px, 2.35vw, 34px);
    line-height: 1.1;
    margin-bottom: calc(var(--unit) * 3);
    max-width: 16ch;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#service-custom .custom-chat-main .task-bento-desc {
    font-size: 13px;
    line-height: 1.62;
    max-width: 60ch;
    overflow-wrap: anywhere;
}

#service-custom .custom-chat-lane {
    height: 2px;
    background: rgba(255, 255, 255, 0.16);
    margin-bottom: calc(var(--unit) * 3);
    position: relative;
    overflow: hidden;
}

#service-custom .custom-chat-lane::after {
    content: '';
    position: absolute;
    top: 0;
    left: -28%;
    width: 28%;
    height: 100%;
    background: #fc0;
    animation: customTrackRun 2.2s linear infinite;
}

#service-custom .custom-chat-lane:nth-child(2)::after { animation-delay: 0.4s; }
#service-custom .custom-chat-lane:nth-child(3)::after { animation-delay: 0.8s; }

#service-custom .custom-chat-chip {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 5px 9px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-white);
    background: rgba(0, 0, 0, 0.82);
    animation: customChipFloat 4.4s ease-in-out infinite;
}

#service-custom .custom-chat-chip:nth-of-type(1) { top: 24px; right: 18px; }
#service-custom .custom-chat-chip:nth-of-type(2) { top: 78px; right: 84px; animation-delay: 0.9s; }
#service-custom .custom-chat-chip:nth-of-type(3) { bottom: 26px; right: 36px; animation-delay: 1.4s; }

#service-custom .custom-integrations-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

#service-custom .custom-integration-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.01);
    padding: calc(var(--unit) * 3.5);
}

#service-custom .custom-integration-card:nth-child(1) { grid-column: 1 / 4; }
#service-custom .custom-integration-card:nth-child(2) { grid-column: 4 / 6; }

#service-custom .custom-integration-card .task-bento-title {
    font-size: clamp(26px, 2.8vw, 40px);
    line-height: 1.08;
}

#service-custom .custom-automation-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(150px, auto));
    gap: 18px;
}

#service-custom .custom-automation-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.01);
    padding: calc(var(--unit) * 2.6);
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--unit) * 1.7);
}

#service-custom .custom-automation-card:not(.custom-automation-final) {
    aspect-ratio: 1 / 1;
}

#service-custom .custom-automation-card:nth-child(1) { grid-column: 1 / 2; grid-row: 1; }
#service-custom .custom-automation-card:nth-child(2) { grid-column: 2 / 3; grid-row: 1; }
#service-custom .custom-automation-card:nth-child(3) { grid-column: 3 / 4; grid-row: 2; }
#service-custom .custom-automation-card:nth-child(4) { grid-column: 4 / 5; grid-row: 2; }
#service-custom .custom-automation-card:nth-child(5) { grid-column: 5 / 6; grid-row: 2; }

#service-custom .custom-automation-final {
    grid-column: 4 / 8;
    grid-row: 3;
    min-height: 220px;
}

#service-custom .custom-automation-card .task-bento-title {
    font-size: clamp(14px, 1.15vw, 18px);
    line-height: 1.28;
    text-transform: uppercase;
    overflow-wrap: anywhere;
    word-break: break-word;
    margin: 0;
}

#service-custom .custom-automation-card .task-bento-desc {
    margin: 0;
    font-size: 11px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#service-custom .custom-automation-final .task-bento-desc:last-child {
    margin-top: auto;
    font-family: var(--font-primary);
    font-size: clamp(18px, 1.9vw, 30px);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

#service-custom .custom-fit-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;
}

#service-custom .custom-fit-item {
    border: 1px solid rgba(255, 255, 255, 0.14);
    padding: calc(var(--unit) * 3.2);
    font-family: var(--font-primary);
    font-size: clamp(18px, 1.6vw, 24px);
    line-height: 1.3;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.01);
}

#service-custom .custom-fit-item:nth-child(1) { grid-column: 1 / 3; }
#service-custom .custom-fit-item:nth-child(2) { grid-column: 3 / 5; margin-top: calc(var(--unit) * 6); }
#service-custom .custom-fit-item:nth-child(3) { grid-column: 5 / 8; margin-top: calc(var(--unit) * 12); }
#service-custom .custom-fit-item:nth-child(4) { grid-column: 2 / 5; }
#service-custom .custom-fit-item:nth-child(5) { grid-column: 5 / 7; margin-top: calc(var(--unit) * 6); }

#service-custom .custom-coop-map {
    position: relative;
    margin-top: calc(var(--unit) * 4);
    min-height: 590px;
}

#service-custom .custom-coop-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#service-custom .custom-coop-lines marker path {
    fill: #fff;
    transition: fill 0.24s ease;
}

#service-custom .custom-coop-main-line {
    fill: none;
    stroke: #fff;
    stroke-width: 0.34;
    transition: stroke 0.24s ease;
}

#service-custom .custom-coop-map:hover .custom-coop-lines marker path {
    fill: #fc0;
}

#service-custom .custom-coop-map:hover .custom-coop-main-line {
    stroke: #fc0;
}

#service-custom .custom-coop-connector {
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 0.26;
}

#service-custom .custom-coop-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: 250px 90px 250px;
    column-gap: 12px;
    row-gap: 0;
}

#service-custom .custom-coop-card {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: #000;
    padding: calc(var(--unit) * 2.8);
    min-width: 0;
    width: clamp(320px, 22vw, 390px);
    height: clamp(210px, 13vw, 250px);
    transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

#service-custom .custom-coop-card:hover {
    border-color: rgba(255, 204, 0, 0.7);
    box-shadow: 0 0 26px rgba(255, 204, 0, 0.16);
}

#service-custom .custom-coop-card .process-flow-num {
    font-size: clamp(38px, 4.8vw, 62px);
    margin-bottom: calc(var(--unit) * 1.3);
}

#service-custom .custom-coop-card .process-flow-title {
    font-size: clamp(17px, 1.45vw, 22px);
    margin-bottom: calc(var(--unit) * 1.3);
    line-height: 1.12;
}

#service-custom .custom-coop-card .process-flow-text {
    font-size: 12px;
    line-height: 1.58;
}

#service-custom .custom-coop-card.node-1 { grid-column: 1 / 2; grid-row: 1; justify-self: start; align-self: end; }
#service-custom .custom-coop-card.node-3 { grid-column: 4 / 5; grid-row: 1; justify-self: center; align-self: end; }
#service-custom .custom-coop-card.node-5 { grid-column: 7 / 8; grid-row: 1; justify-self: end; align-self: end; }
#service-custom .custom-coop-card.node-2 { grid-column: 2 / 4; grid-row: 3; justify-self: center; }
#service-custom .custom-coop-card.node-4 { grid-column: 5 / 7; grid-row: 3; justify-self: center; }

#service-custom .custom-results-grid .auto-item {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top-color: rgba(255, 255, 255, 0.3);
    padding: calc(var(--unit) * 3.2);
    min-height: 150px;
    background: rgba(255, 255, 255, 0.01);
}

#service-custom .custom-results-grid .auto-text {
    font-size: 16px;
    line-height: 1.4;
    text-transform: none;
}

#service-custom .custom-results-grid .auto-item:nth-child(1) { grid-column: 1 / 3; }
#service-custom .custom-results-grid .auto-item:nth-child(2) { grid-column: 3 / 5; margin-top: calc(var(--unit) * 4); }
#service-custom .custom-results-grid .auto-item:nth-child(3) { grid-column: 6 / 8; }
#service-custom .custom-results-grid .auto-item:nth-child(4) { grid-column: 2 / 5; }
#service-custom .custom-results-grid .auto-item:nth-child(5) { grid-column: 5 / 7; margin-top: calc(var(--unit) * 5); }

#service-custom .custom-final-cta {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
}

#service-custom .custom-final-cta .service-detail-title {
    max-width: 18ch;
    line-height: 1.08;
}

#service-custom .custom-final-cta .service-detail-text {
    max-width: 48ch;
    font-size: clamp(20px, 2vw, 32px);
    line-height: 1.4;
}

@keyframes customShine {
    0% { background-position: 180% 0; }
    100% { background-position: -30% 0; }
}

@keyframes customTrackRun {
    0% { left: -22%; }
    100% { left: 102%; }
}

@keyframes customCardSweep {
    0% { transform: translateX(-130%); }
    100% { transform: translateX(130%); }
}

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

@media (max-width: 1024px) {
    #service-custom .custom-giant-line {
        font-size: clamp(42px, 10vw, 102px);
    }

    #service-custom .custom-contrast-grid,
    #service-custom .custom-pain-grid,
    #service-custom .custom-architecture-grid,
    #service-custom .custom-chat-grid,
    #service-custom .custom-integrations-grid,
    #service-custom .custom-automation-grid,
    #service-custom .custom-fit-grid,
    #service-custom .custom-coop-grid,
    #service-custom .custom-impl-grid,
    #service-custom .custom-results-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    #service-custom .custom-contrast-grid .intro-card:nth-child(1),
    #service-custom .custom-contrast-grid .intro-card:nth-child(2),
    #service-custom .custom-contrast-grid .intro-card:nth-child(3),
    #service-custom .custom-pain-card:nth-child(1),
    #service-custom .custom-pain-card:nth-child(2),
    #service-custom .custom-pain-card:nth-child(3),
    #service-custom .custom-pain-card:nth-child(4),
    #service-custom .custom-pain-card:nth-child(5),
    #service-custom .custom-arch-card:nth-child(1),
    #service-custom .custom-arch-card:nth-child(2),
    #service-custom .custom-arch-card:nth-child(3),
    #service-custom .custom-chat-main,
    #service-custom .custom-chat-list,
    #service-custom .custom-chat-signal,
    #service-custom .custom-integration-card:nth-child(1),
    #service-custom .custom-integration-card:nth-child(2),
    #service-custom .custom-automation-card:nth-child(1),
    #service-custom .custom-automation-card:nth-child(2),
    #service-custom .custom-automation-card:nth-child(3),
    #service-custom .custom-automation-card:nth-child(4),
    #service-custom .custom-automation-card:nth-child(5),
    #service-custom .custom-automation-card:nth-child(6),
    #service-custom .custom-fit-item:nth-child(1),
    #service-custom .custom-fit-item:nth-child(2),
    #service-custom .custom-fit-item:nth-child(3),
    #service-custom .custom-fit-item:nth-child(4),
    #service-custom .custom-fit-item:nth-child(5),
    #service-custom .custom-coop-card.node-1,
    #service-custom .custom-coop-card.node-2,
    #service-custom .custom-coop-card.node-3,
    #service-custom .custom-coop-card.node-4,
    #service-custom .custom-coop-card.node-5,
    #service-custom .custom-impl-grid .impl-card:nth-child(1),
    #service-custom .custom-impl-grid .impl-card:nth-child(2),
    #service-custom .custom-impl-grid .impl-card:nth-child(3),
    #service-custom .custom-impl-grid .impl-card:nth-child(4),
    #service-custom .custom-impl-grid .impl-card:nth-child(5),
    #service-custom .custom-impl-grid .impl-card:nth-child(6),
    #service-custom .custom-results-grid .auto-item:nth-child(1),
    #service-custom .custom-results-grid .auto-item:nth-child(2),
    #service-custom .custom-results-grid .auto-item:nth-child(3),
    #service-custom .custom-results-grid .auto-item:nth-child(4),
    #service-custom .custom-results-grid .auto-item:nth-child(5) {
        grid-column: auto;
        grid-row: auto;
        margin-top: 0;
    }

    #service-custom .custom-architecture-grid,
    #service-custom .custom-chat-grid,
    #service-custom .custom-automation-grid,
    #service-custom .custom-coop-grid,
    #service-custom .custom-impl-grid {
        gap: 16px;
    }

    #service-custom .custom-coop-map {
        min-height: 0;
    }

    #service-custom .custom-coop-lines {
        display: none;
    }

    #service-custom .custom-coop-card {
        width: auto;
        height: auto;
        min-height: 190px;
        justify-self: stretch;
    }

    #service-custom .custom-automation-card:not(.custom-automation-final) {
        aspect-ratio: auto;
        min-height: 170px;
    }

    #service-custom .custom-arch-row {
        grid-template-columns: 68px minmax(0, 1fr);
        gap: 16px;
    }

    #service-custom .custom-arch-title,
    #service-custom .custom-arch-text,
    #service-custom .custom-arch-row-note .custom-arch-text {
        font-size: 11px;
        line-height: 1.65;
    }
}

@media (max-width: 768px) {
    #service-custom .custom-contrast-grid,
    #service-custom .custom-pain-grid,
    #service-custom .custom-architecture-grid,
    #service-custom .custom-chat-grid,
    #service-custom .custom-integrations-grid,
    #service-custom .custom-automation-grid,
    #service-custom .custom-fit-grid,
    #service-custom .custom-coop-grid,
    #service-custom .custom-impl-grid,
    #service-custom .custom-results-grid {
        grid-template-columns: 1fr;
    }

    #service-custom .custom-giant-line {
        font-size: clamp(34px, 13vw, 72px);
    }

    #service-custom .custom-manifest-text {
        font-size: 14px;
        line-height: 1.7;
    }

    #service-custom .custom-manifest-final {
        max-width: none;
    }

    #service-custom .custom-results-grid .auto-item,
    #service-custom .custom-pain-card,
    #service-custom .custom-coop-card,
    #service-custom .custom-impl-grid .impl-card {
        min-height: 0;
    }

    #service-custom .custom-arch-intro {
        font-size: 10px;
        line-height: 1.65;
    }

    #service-custom .custom-arch-row {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
        padding: calc(var(--unit) * 2.4) 0;
    }

    #service-custom .custom-arch-code {
        font-size: 10px;
        padding-top: 5px;
    }

    #service-custom .custom-arch-title {
        font-size: 10px;
        max-width: none;
    }

    #service-custom .custom-arch-text {
        font-size: 10px;
        max-width: none;
    }

    #service-custom .custom-arch-row-note .custom-arch-text {
        font-size: 10px;
    }
}

/* Soft page (separate from custom page) */
#service-soft .service-hero-grid {
    background-image:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.46) 52%,
            rgba(0, 0, 0, 0.82) 100%
        ),
        url('images/po_na_zak_main.jpeg');
    background-size: cover;
    background-position: center;
}

#service-soft .soft-process-map {
    position: relative;
    margin-top: calc(var(--unit) * 4);
    min-height: 600px;
}

#service-soft .soft-process-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#service-soft .soft-process-lines marker path {
    fill: #fff;
    transition: fill 0.24s ease;
}

#service-soft .soft-main-line {
    fill: none;
    stroke: #fff;
    stroke-width: 0.36;
    transition: stroke 0.24s ease;
}

#service-soft .soft-process-map:hover .soft-process-lines marker path {
    fill: #fc0;
}

#service-soft .soft-process-map:hover .soft-main-line {
    stroke: #fc0;
}

#service-soft .soft-connector {
    stroke: rgba(255, 255, 255, 0.46);
    stroke-width: 0.28;
}

#service-soft .soft-process-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: 240px 120px 240px;
    column-gap: 18px;
    row-gap: 0;
}

#service-soft .soft-process-card {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: #000;
    padding: calc(var(--unit) * 3.2);
    min-width: 0;
    width: clamp(280px, 19vw, 340px);
    transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

#service-soft .soft-process-card:hover {
    border-color: rgba(255, 204, 0, 0.7);
    box-shadow: 0 0 26px rgba(255, 204, 0, 0.16);
}

#service-soft .soft-process-card .process-flow-num {
    font-size: clamp(38px, 4.8vw, 62px);
    margin-bottom: calc(var(--unit) * 1.4);
}

#service-soft .soft-process-card .process-flow-title {
    font-size: clamp(17px, 1.65vw, 24px);
    margin-bottom: calc(var(--unit) * 1.5);
}

#service-soft .soft-process-card .process-flow-text {
    font-size: 13px;
    line-height: 1.58;
}

#service-soft .soft-process-card.node-1 { grid-column: 1 / 2; grid-row: 1; }
#service-soft .soft-process-card.node-3 { grid-column: 4 / 5; grid-row: 1; }
#service-soft .soft-process-card.node-5 { grid-column: 7 / 8; grid-row: 1; }
#service-soft .soft-process-card.node-2 { grid-column: 2 / 4; grid-row: 3; }
#service-soft .soft-process-card.node-4 { grid-column: 5 / 7; grid-row: 3; }

#service-soft .soft-process-card.node-1 { justify-self: start; }
#service-soft .soft-process-card.node-3 { justify-self: center; }
#service-soft .soft-process-card.node-5 { justify-self: end; }
#service-soft .soft-process-card.node-2,
#service-soft .soft-process-card.node-4 { justify-self: center; }

@media (max-width: 1024px) {
    #service-soft .soft-process-map {
        min-height: 0;
    }

    #service-soft .soft-process-lines {
        display: none;
    }

    #service-soft .soft-process-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
        gap: 16px;
    }

    #service-soft .soft-process-card {
        grid-column: auto !important;
        grid-row: auto !important;
        min-height: 190px;
        width: auto;
        justify-self: stretch;
    }
}

@media (max-width: 768px) {
    #service-soft .soft-process-grid {
        grid-template-columns: 1fr;
    }

    #service-soft .soft-process-card {
        min-height: 0;
    }
}

/* ========================================
   AI WORKERS PAGE
   ======================================== */

#service-aiworkers .aiworkers-hero-grid {
    background-image:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.78) 0%,
            rgba(0, 0, 0, 0.5) 52%,
            rgba(0, 0, 0, 0.86) 100%
        ),
        url('images/aiworkers.jpg');
    background-size: cover;
    background-position: center;
    filter: contrast(1.25) saturate(0.74) brightness(1.08);
}

#service-aiworkers .service-hero-title {
    grid-column: 1 / 6;
    max-width: 10ch;
}

#service-aiworkers .hero-line-accent {
    color: #fc0;
    font-weight: 700;
}

#service-aiworkers .service-hero-subtitle {
    grid-column: 1 / 5;
    max-width: 38ch;
    font-size: clamp(18px, 2vw, 30px);
    line-height: 1.35;
}

#service-aiworkers .service-hero-stat {
    align-items: flex-end;
}

#service-aiworkers .stat-big {
    font-size: clamp(72px, 9vw, 132px);
}

#service-aiworkers .aiworkers-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.01);
    padding: calc(var(--unit) * 3.2);
    min-width: 0;
}

#service-aiworkers .aiworkers-card .task-bento-title {
    font-size: clamp(24px, 2.5vw, 38px);
    line-height: 1.08;
    margin: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#service-aiworkers .aiworkers-card .task-bento-desc {
    margin: calc(var(--unit) * 2) 0 0;
    font-size: 13px;
    line-height: 1.62;
    color: var(--color-gray-light);
    overflow-wrap: anywhere;
    word-break: break-word;
}

#service-aiworkers .aiworkers-pain-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 18px;
}

#service-aiworkers .aiworkers-card-list {
    grid-column: 1 / 4;
}

#service-aiworkers .aiworkers-card-actions {
    grid-column: 4 / 8;
    margin-top: calc(var(--unit) * 6);
}

#service-aiworkers .aiworkers-list {
    list-style: none;
    margin: calc(var(--unit) * 3) 0 0;
    padding: 0;
    display: grid;
    gap: calc(var(--unit) * 2);
}

#service-aiworkers .aiworkers-list li {
    position: relative;
    padding-left: 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.58;
    color: var(--color-gray-light);
}

#service-aiworkers .aiworkers-list li::before {
    content: '';
    width: 6px;
    height: 1px;
    background: rgba(255, 255, 255, 0.75);
    position: absolute;
    left: 0;
    top: 0.82em;
}

#service-aiworkers .aiworkers-growth-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(120px, auto));
    gap: 18px;
}

#service-aiworkers .aiworkers-growth-main {
    grid-column: 1 / 4;
    grid-row: 1 / 4;
}

#service-aiworkers .aiworkers-growth-main .task-bento-title {
    font-size: clamp(30px, 3.2vw, 48px);
    line-height: 1.06;
    max-width: 16ch;
}

#service-aiworkers .aiworkers-growth-item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#service-aiworkers .aiworkers-growth-item:nth-child(2) {
    grid-column: 4 / 6;
    grid-row: 1;
}

#service-aiworkers .aiworkers-growth-item:nth-child(3) {
    grid-column: 4 / 5;
    grid-row: 2;
}

#service-aiworkers .aiworkers-growth-item:nth-child(4) {
    grid-column: 5 / 6;
    grid-row: 2;
}

#service-aiworkers .aiworkers-growth-item:nth-child(5) {
    grid-column: 4 / 6;
    grid-row: 3;
}

#service-aiworkers .aiworkers-growth-item .task-bento-title {
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.12;
}

#service-aiworkers .aiworkers-skills-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(120px, auto));
    gap: 16px;
}

#service-aiworkers .aiworkers-skill-card {
    display: flex;
    align-items: flex-start;
}

#service-aiworkers .aiworkers-skill-card .task-bento-desc {
    margin-top: 0;
    font-size: 14px;
    line-height: 1.55;
    color: var(--color-white);
}

#service-aiworkers .aiworkers-skill-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
#service-aiworkers .aiworkers-skill-card:nth-child(2) { grid-column: 3 / 5; grid-row: 1; margin-top: calc(var(--unit) * 4); }
#service-aiworkers .aiworkers-skill-card:nth-child(3) { grid-column: 6 / 8; grid-row: 1; }
#service-aiworkers .aiworkers-skill-card:nth-child(4) { grid-column: 2 / 4; grid-row: 2; }
#service-aiworkers .aiworkers-skill-card:nth-child(5) { grid-column: 4 / 6; grid-row: 2; margin-top: calc(var(--unit) * 3); }
#service-aiworkers .aiworkers-skill-card:nth-child(6) { grid-column: 6 / 8; grid-row: 2; }

#service-aiworkers .aiworkers-metrics-strip {
    margin-top: calc(var(--unit) * 5);
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
}

#service-aiworkers .aiworkers-metrics-strip span {
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-white);
}

#service-aiworkers .aiworkers-launch-map {
    position: relative;
    min-height: 590px;
}

#service-aiworkers .aiworkers-launch-lines {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

#service-aiworkers .aiworkers-launch-lines marker path {
    fill: #fff;
    transition: fill 0.24s ease;
}

#service-aiworkers .aiworkers-launch-main {
    fill: none;
    stroke: #fff;
    stroke-width: 0.35;
    transition: stroke 0.24s ease;
}

#service-aiworkers .aiworkers-launch-map:hover .aiworkers-launch-lines marker path {
    fill: #fc0;
}

#service-aiworkers .aiworkers-launch-map:hover .aiworkers-launch-main {
    stroke: #fc0;
}

#service-aiworkers .aiworkers-launch-connector {
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 0.28;
}

#service-aiworkers .aiworkers-launch-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: 250px 90px 250px;
    column-gap: 16px;
    row-gap: 0;
}

#service-aiworkers .aiworkers-launch-card {
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: #000;
    padding: calc(var(--unit) * 2.8);
    min-width: 0;
    width: clamp(250px, 17vw, 320px);
    height: clamp(210px, 14vw, 250px);
    transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

#service-aiworkers .aiworkers-launch-card:hover {
    border-color: rgba(255, 204, 0, 0.7);
    box-shadow: 0 0 24px rgba(255, 204, 0, 0.14);
}

#service-aiworkers .aiworkers-launch-card .process-flow-num {
    font-size: clamp(38px, 4.8vw, 62px);
    margin-bottom: calc(var(--unit) * 1.2);
}

#service-aiworkers .aiworkers-launch-card .process-flow-title {
    font-size: clamp(16px, 1.45vw, 22px);
    margin-bottom: calc(var(--unit) * 1.2);
}

#service-aiworkers .aiworkers-launch-card .process-flow-text {
    font-size: 12px;
    line-height: 1.55;
}

#service-aiworkers .aiworkers-launch-card.step-1 { grid-column: 1 / 2; grid-row: 1; justify-self: start; align-self: end; }
#service-aiworkers .aiworkers-launch-card.step-3 { grid-column: 4 / 5; grid-row: 1; justify-self: center; align-self: end; }
#service-aiworkers .aiworkers-launch-card.step-5 { grid-column: 7 / 8; grid-row: 1; justify-self: end; align-self: end; }
#service-aiworkers .aiworkers-launch-card.step-2 { grid-column: 2 / 4; grid-row: 3; justify-self: center; }
#service-aiworkers .aiworkers-launch-card.step-4 { grid-column: 5 / 7; grid-row: 3; justify-self: center; }

#service-aiworkers .aiworkers-history-list {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
}

#service-aiworkers .aiworkers-history-row {
    display: grid;
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    padding: calc(var(--unit) * 2.8) 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

#service-aiworkers .aiworkers-year {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    padding-top: 5px;
}

#service-aiworkers .aiworkers-history-row p {
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(20px, 2.2vw, 32px);
    line-height: 1.2;
}

#service-aiworkers .aiworkers-history-note {
    margin-top: calc(var(--unit) * 5);
    max-width: 26ch;
    font-family: var(--font-primary);
    font-size: clamp(24px, 2.8vw, 40px);
    line-height: 1.1;
    text-transform: uppercase;
}

#service-aiworkers .aiworkers-future-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(160px, auto));
    gap: 18px;
}

#service-aiworkers .aiworkers-future-card:nth-child(1) { grid-column: 1 / 3; grid-row: 1; }
#service-aiworkers .aiworkers-future-card:nth-child(2) { grid-column: 3 / 6; grid-row: 1; }
#service-aiworkers .aiworkers-future-card:nth-child(3) { grid-column: 2 / 5; grid-row: 2; }

#service-aiworkers .aiworkers-future-card .task-bento-title {
    font-size: clamp(24px, 2.4vw, 36px);
}

#service-aiworkers .aiworkers-cta {
    margin-top: calc(var(--unit) * 10);
}

#service-aiworkers .aiworkers-cta .service-detail-text {
    max-width: 22ch;
    margin-bottom: calc(var(--unit) * 3);
    font-size: clamp(26px, 2.9vw, 44px);
    line-height: 1.08;
    text-transform: uppercase;
}

#service-aiworkers .aiworkers-cta-sub {
    max-width: 56ch;
    margin: 0 0 calc(var(--unit) * 7);
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.7;
    color: var(--color-gray-light);
}

@media (max-width: 1024px) {
    #service-aiworkers .aiworkers-pain-grid,
    #service-aiworkers .aiworkers-growth-grid,
    #service-aiworkers .aiworkers-skills-grid,
    #service-aiworkers .aiworkers-metrics-strip,
    #service-aiworkers .aiworkers-launch-grid,
    #service-aiworkers .aiworkers-future-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    #service-aiworkers .aiworkers-card-list,
    #service-aiworkers .aiworkers-card-actions,
    #service-aiworkers .aiworkers-growth-main,
    #service-aiworkers .aiworkers-growth-item:nth-child(2),
    #service-aiworkers .aiworkers-growth-item:nth-child(3),
    #service-aiworkers .aiworkers-growth-item:nth-child(4),
    #service-aiworkers .aiworkers-growth-item:nth-child(5),
    #service-aiworkers .aiworkers-skill-card:nth-child(1),
    #service-aiworkers .aiworkers-skill-card:nth-child(2),
    #service-aiworkers .aiworkers-skill-card:nth-child(3),
    #service-aiworkers .aiworkers-skill-card:nth-child(4),
    #service-aiworkers .aiworkers-skill-card:nth-child(5),
    #service-aiworkers .aiworkers-skill-card:nth-child(6),
    #service-aiworkers .aiworkers-launch-card.step-1,
    #service-aiworkers .aiworkers-launch-card.step-2,
    #service-aiworkers .aiworkers-launch-card.step-3,
    #service-aiworkers .aiworkers-launch-card.step-5,
    #service-aiworkers .aiworkers-launch-card.step-4,
    #service-aiworkers .aiworkers-future-card:nth-child(1),
    #service-aiworkers .aiworkers-future-card:nth-child(2),
    #service-aiworkers .aiworkers-future-card:nth-child(3) {
        grid-column: auto;
        grid-row: auto;
        margin-top: 0;
        justify-self: stretch;
        align-self: auto;
    }

    #service-aiworkers .aiworkers-launch-map {
        min-height: 0;
    }

    #service-aiworkers .aiworkers-launch-lines {
        display: none;
    }

    #service-aiworkers .aiworkers-launch-card {
        width: auto;
        height: auto;
        min-height: 190px;
    }

    #service-aiworkers .aiworkers-history-row {
        grid-template-columns: 86px minmax(0, 1fr);
        gap: 14px;
    }

    #service-aiworkers .aiworkers-history-row p {
        font-size: clamp(18px, 2.7vw, 28px);
    }
}

@media (max-width: 768px) {
    #service-aiworkers .aiworkers-pain-grid,
    #service-aiworkers .aiworkers-growth-grid,
    #service-aiworkers .aiworkers-skills-grid,
    #service-aiworkers .aiworkers-metrics-strip,
    #service-aiworkers .aiworkers-launch-grid,
    #service-aiworkers .aiworkers-future-grid {
        grid-template-columns: 1fr;
    }

    #service-aiworkers .aiworkers-history-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #service-aiworkers .aiworkers-year {
        padding-top: 0;
    }

    #service-aiworkers .aiworkers-history-note,
    #service-aiworkers .aiworkers-cta .service-detail-text,
    #service-aiworkers .aiworkers-cta-sub {
        max-width: none;
    }
}

/* ========================================
   MARKETING RESEARCH PAGE
   ======================================== */

#service-marketing .marketing-hero-grid {
    background-image:
        linear-gradient(
            135deg,
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.6) 50%,
            rgba(0, 0, 0, 0.9) 100%
        ),
        url('images/marketing.jpeg');
    background-size: cover;
    background-position: center;
    filter: contrast(1.1) saturate(0.8) brightness(0.95);
}

#service-marketing .service-hero-title {
    grid-column: 1 / 6;
    max-width: 10ch;
}

#service-marketing .hero-line-accent {
    color: #fc0;
    font-weight: 700;
}

#service-marketing .service-hero-subtitle {
    grid-column: 1 / 5;
    max-width: 42ch;
}

#service-marketing .marketing-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.01);
    padding: calc(var(--unit) * 3.2);
    min-width: 0;
}

#service-marketing .marketing-context-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 18px;
}

#service-marketing .marketing-context-main {
    grid-column: 1 / 5;
}

#service-marketing .marketing-context-side {
    grid-column: 5 / 8;
    margin-top: calc(var(--unit) * 6);
}

#service-marketing .marketing-lead {
    margin: 0 0 calc(var(--unit) * 2);
    font-family: var(--font-primary);
    font-size: clamp(20px, 2.1vw, 32px);
    line-height: 1.2;
}

#service-marketing .marketing-strong {
    margin: calc(var(--unit) * 4) 0 0;
    font-family: var(--font-primary);
    font-size: clamp(24px, 2.5vw, 38px);
    font-weight: 700;
    line-height: 1.1;
    text-transform: uppercase;
}

#service-marketing .marketing-list {
    list-style: none;
    margin: calc(var(--unit) * 3) 0 0;
    padding: 0;
    display: grid;
    gap: calc(var(--unit) * 1.8);
}

#service-marketing .marketing-list li {
    position: relative;
    padding-left: 14px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.6;
    color: var(--color-gray-light);
    overflow-wrap: anywhere;
}

#service-marketing .marketing-list li::before {
    content: '';
    width: 6px;
    height: 1px;
    background: rgba(255, 255, 255, 0.72);
    position: absolute;
    left: 0;
    top: 0.82em;
}

#service-marketing .marketing-context-side .task-bento-title {
    margin: 0;
    font-size: clamp(26px, 2.6vw, 40px);
    line-height: 1.08;
}

#service-marketing .marketing-context-side .task-bento-desc {
    margin: calc(var(--unit) * 2.2) 0 0;
    font-size: 13px;
    line-height: 1.65;
}

#service-marketing .marketing-cta-row {
    margin-top: calc(var(--unit) * 4);
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#service-marketing .marketing-mini-btn {
    padding: 14px 22px;
    font-size: 12px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#service-marketing .marketing-mini-btn-ghost {
    background: transparent;
    color: var(--color-white);
}

#service-marketing .marketing-mini-btn-ghost:hover {
    background: var(--color-white);
    color: var(--color-black);
}

#service-marketing .marketing-work-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

#service-marketing .marketing-work-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.01);
    padding: calc(var(--unit) * 3.2);
}

#service-marketing .marketing-work-card:nth-child(1) { grid-column: 1 / 3; }
#service-marketing .marketing-work-card:nth-child(2) { grid-column: 3 / 4; margin-top: calc(var(--unit) * 5); }
#service-marketing .marketing-work-card:nth-child(3) { grid-column: 4 / 6; }

#service-marketing .marketing-work-card .task-bento-title {
    margin: 0;
    font-size: clamp(24px, 2.3vw, 34px);
    line-height: 1.1;
}

#service-marketing .marketing-work-note {
    margin: calc(var(--unit) * 5) 0 0;
    max-width: 34ch;
    font-family: var(--font-primary);
    font-size: clamp(22px, 2.4vw, 34px);
    line-height: 1.15;
    text-transform: uppercase;
}

#service-marketing .marketing-catalog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

#service-marketing .marketing-service-card {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.01);
    padding: calc(var(--unit) * 3.2);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

#service-marketing .marketing-service-card .task-bento-title {
    margin: 0;
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.08;
}

#service-marketing .marketing-when {
    margin: calc(var(--unit) * 2.2) 0 0;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.62;
    color: var(--color-gray-light);
}

#service-marketing .marketing-result {
    margin: calc(var(--unit) * 2.6) 0 0;
    font-family: var(--font-mono);
    font-size: 12px;
    line-height: 1.62;
    color: var(--color-gray-light);
}

#service-marketing .marketing-card-btn {
    margin-top: auto;
    align-self: flex-start;
    padding: 14px 20px;
    font-size: 12px;
    text-decoration: none;
}

#service-marketing .marketing-service-cjm {
    grid-column: 1 / 3;
}

#service-marketing .marketing-cjm-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 18px;
    margin-top: calc(var(--unit) * 2.4);
}

#service-marketing .marketing-cjm-copy {
    min-width: 0;
}

#service-marketing .marketing-cjm-copy .marketing-when {
    margin-top: 0;
}

#service-marketing .marketing-cjm-mapboard {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.01) 100%);
    padding: calc(var(--unit) * 2.2);
    min-width: 0;
}

#service-marketing .marketing-cjm-stage-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: calc(var(--unit) * 1.6);
}

#service-marketing .marketing-cjm-stage {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.54);
    padding: 8px;
    display: grid;
    gap: 4px;
}

#service-marketing .marketing-cjm-stage-num {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    color: rgba(255, 255, 255, 0.6);
}

#service-marketing .marketing-cjm-stage-name {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.2;
}

#service-marketing .marketing-cjm-svg {
    width: 100%;
    height: 138px;
    display: block;
}

#service-marketing .marketing-cjm-svg marker path {
    fill: #fff;
    transition: fill 0.26s ease;
}

#service-marketing .marketing-cjm-track {
    fill: none;
    stroke: #fff;
    stroke-width: 0.34;
    transition: stroke 0.26s ease;
}

#service-marketing .marketing-cjm-emotion {
    fill: none;
    stroke: #fc0;
    stroke-width: 0.46;
}

#service-marketing .marketing-cjm-drop {
    stroke: rgba(255, 204, 0, 0.38);
    stroke-width: 0.24;
    stroke-dasharray: 1.3 0.8;
}

#service-marketing .marketing-cjm-point {
    fill: #fc0;
}

#service-marketing .marketing-service-cjm:hover .marketing-cjm-svg marker path {
    fill: #fc0;
}

#service-marketing .marketing-service-cjm:hover .marketing-cjm-track {
    stroke: #fc0;
}

#service-marketing .marketing-cjm-touch-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-top: calc(var(--unit) * 1.2);
}

#service-marketing .marketing-cjm-touch-row span {
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 7px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.82);
    text-align: center;
}

#service-marketing .marketing-cjm-pain-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: calc(var(--unit) * 1.1);
}

#service-marketing .marketing-cjm-pain-row span {
    border: 1px solid rgba(255, 204, 0, 0.4);
    background: rgba(255, 204, 0, 0.06);
    padding: 7px 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.4;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

#service-marketing .marketing-cjm-legend {
    margin-top: calc(var(--unit) * 1.4);
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

#service-marketing .marketing-cjm-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

#service-marketing .marketing-cjm-legend span::before {
    content: '';
    width: 12px;
    height: 2px;
    background: rgba(255, 255, 255, 0.52);
}

#service-marketing .marketing-cjm-legend .legend-emotion::before {
    background: #fc0;
}

#service-marketing .marketing-cjm-legend .legend-risk::before {
    background: rgba(255, 204, 0, 0.58);
    box-shadow: 0 0 8px rgba(255, 204, 0, 0.34);
}

/* ========================================
   CJM V2 - ENHANCED CUSTOMER JOURNEY MAP
   ======================================== */

#service-marketing .marketing-cjm-mapboard-v2 {
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(0, 0, 0, 0.3) 100%);
    padding: calc(var(--unit) * 3);
    position: relative;
    overflow: hidden;
}

#service-marketing .marketing-cjm-mapboard-v2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 204, 0, 0.5) 50%, transparent 100%);
}

/* Timeline Track */
#service-marketing .cjm-timeline {
    position: relative;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    margin-bottom: calc(var(--unit) * 2);
    border-radius: 2px;
}

#service-marketing .cjm-timeline-progress {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 204, 0, 0.8) 50%, rgba(255, 204, 0, 1) 100%);
    border-radius: 2px;
    animation: cjmProgressPulse 3s ease-in-out infinite;
}

@keyframes cjmProgressPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

#service-marketing .cjm-timeline-arrow {
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid rgba(255, 204, 0, 1);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* Stages Row */
#service-marketing .cjm-stages-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: calc(var(--unit) * 3);
}

#service-marketing .cjm-stage-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(0, 0, 0, 0.4);
    padding: 16px 12px;
    text-align: center;
    position: relative;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    cursor: pointer;
}

#service-marketing .cjm-stage-card:hover {
    border-color: rgba(255, 204, 0, 0.5);
    background: rgba(255, 204, 0, 0.05);
    transform: translateY(-2px);
}

#service-marketing .cjm-stage-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 204, 0, 0);
    transition: background 0.3s ease;
}

#service-marketing .cjm-stage-card:hover::after {
    background: rgba(255, 204, 0, 0.8);
}

#service-marketing .cjm-stage-icon {
    width: 28px;
    height: 28px;
    margin: 0 auto 8px;
    color: rgba(255, 204, 0, 0.8);
}

#service-marketing .cjm-stage-icon svg {
    width: 100%;
    height: 100%;
}

#service-marketing .cjm-stage-num {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    color: rgba(255, 204, 0, 0.7);
    margin-bottom: 4px;
}

#service-marketing .cjm-stage-name {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
    line-height: 1.2;
    margin-bottom: 4px;
}

#service-marketing .cjm-stage-desc {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Emotion Container */
#service-marketing .cjm-emotion-container {
    position: relative;
    margin-bottom: calc(var(--unit) * 3);
    padding-left: 24px;
}

#service-marketing .cjm-emotion-labels {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-family: var(--font-mono);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
}

#service-marketing .cjm-emotion-svg {
    width: 100%;
    height: 120px;
    display: block;
}

#service-marketing .cjm-grid-line {
    stroke: rgba(255, 255, 255, 0.05);
    stroke-width: 1;
}

#service-marketing .cjm-emotion-area {
    opacity: 0.6;
}

#service-marketing .cjm-emotion-line {
    fill: none;
    stroke: #ffcc00;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 4px rgba(255, 204, 0, 0.5));
    stroke-dasharray: 400;
    stroke-dashoffset: 400;
    animation: cjmDrawLine 2s ease-out forwards;
}

@keyframes cjmDrawLine {
    to { stroke-dashoffset: 0; }
}

#service-marketing .cjm-emotion-point {
    cursor: pointer;
    transition: transform 0.3s ease;
}

#service-marketing .cjm-emotion-point:hover {
    transform: scale(1.3);
}

#service-marketing .cjm-point-bg {
    fill: rgba(0, 0, 0, 0.8);
    stroke: #ffcc00;
    stroke-width: 2;
}

#service-marketing .cjm-point-bg.pain {
    stroke: #ff3366;
    animation: cjmPulsePain 2s ease-in-out infinite;
}

@keyframes cjmPulsePain {
    0%, 100% { stroke-width: 2; }
    50% { stroke-width: 3; }
}

#service-marketing .cjm-point-core {
    fill: #ffcc00;
}

#service-marketing .cjm-point-core.pain {
    fill: #ff3366;
}

#service-marketing .cjm-pain-label {
    font-family: var(--font-mono);
    font-size: 9px;
    fill: #ff3366;
    text-anchor: middle;
    font-weight: 700;
}

/* Touchpoints Row */
#service-marketing .cjm-touchpoints-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: calc(var(--unit) * 3);
}

#service-marketing .cjm-touchpoint {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.02);
    padding: 14px 10px;
    text-align: center;
    transition: all 0.3s ease;
}

#service-marketing .cjm-touchpoint:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.05);
}

#service-marketing .cjm-touchpoint.highlight {
    border-color: rgba(255, 204, 0, 0.4);
    background: rgba(255, 204, 0, 0.08);
}

#service-marketing .cjm-touchpoint.pain {
    border-color: rgba(255, 51, 102, 0.4);
    background: rgba(255, 51, 102, 0.05);
}

#service-marketing .cjm-touchpoint.success {
    border-color: rgba(0, 255, 136, 0.4);
    background: rgba(0, 255, 136, 0.05);
}

#service-marketing .touch-icon {
    font-size: 20px;
    margin-bottom: 6px;
}

#service-marketing .touch-name {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
    margin-bottom: 3px;
}

#service-marketing .touch-channel {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.5);
}

#service-marketing .cjm-touchpoint.pain .touch-channel {
    color: rgba(255, 51, 102, 0.9);
    font-weight: 600;
}

/* Insights Row */
#service-marketing .cjm-insights-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: calc(var(--unit) * 2);
}

#service-marketing .cjm-insight {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
    padding: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    transition: all 0.3s ease;
}

#service-marketing .cjm-insight:hover {
    transform: translateX(4px);
}

#service-marketing .cjm-insight.pain-insight {
    border-left: 3px solid #ff3366;
}

#service-marketing .cjm-insight.pain-insight:hover {
    border-color: rgba(255, 51, 102, 0.5);
    background: rgba(255, 51, 102, 0.05);
}

#service-marketing .cjm-insight.opportunity-insight {
    border-left: 3px solid #00ff88;
}

#service-marketing .cjm-insight.opportunity-insight:hover {
    border-color: rgba(0, 255, 136, 0.5);
    background: rgba(0, 255, 136, 0.05);
}

#service-marketing .insight-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}

#service-marketing .pain-insight .insight-marker {
    background: rgba(255, 51, 102, 0.2);
    color: #ff3366;
}

#service-marketing .opportunity-insight .insight-marker {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

#service-marketing .insight-content {
    flex: 1;
    min-width: 0;
}

#service-marketing .insight-title {
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-white);
    margin-bottom: 4px;
}

#service-marketing .insight-text {
    font-family: var(--font-primary);
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.6);
}

#service-marketing .insight-metric {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.05em;
    color: #ff3366;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

#service-marketing .insight-metric.gain {
    color: #00ff88;
}

/* Legend V2 */
#service-marketing .cjm-legend-v2 {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: calc(var(--unit) * 1.5);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#service-marketing .cjm-legend-v2 .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

#service-marketing .cjm-legend-v2 .legend-line {
    width: 20px;
    height: 3px;
    border-radius: 2px;
}

#service-marketing .cjm-legend-v2 .legend-line.emotion {
    background: #ffcc00;
}

#service-marketing .cjm-legend-v2 .legend-line.pain {
    background: #ff3366;
}

#service-marketing .cjm-legend-v2 .legend-line.opportunity {
    background: #00ff88;
}

#service-marketing .cjm-legend-v2 .legend-line.touchpoint {
    background: rgba(255, 255, 255, 0.4);
}

/* Responsive Styles for CJM V2 */
@media (max-width: 1024px) {
    #service-marketing .cjm-stages-row,
    #service-marketing .cjm-touchpoints-row {
        grid-template-columns: repeat(2, 1fr);
    }
    
    #service-marketing .cjm-insights-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #service-marketing .marketing-cjm-mapboard-v2 {
        padding: calc(var(--unit) * 2);
    }
    
    #service-marketing .cjm-stages-row,
    #service-marketing .cjm-touchpoints-row {
        grid-template-columns: 1fr;
    }
    
    #service-marketing .cjm-stage-card {
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 12px;
        align-items: center;
        text-align: left;
        padding: 12px;
    }
    
    #service-marketing .cjm-stage-icon {
        margin: 0;
    }
    
    #service-marketing .cjm-stage-name {
        margin: 0;
    }
    
    #service-marketing .cjm-touchpoint {
        display: flex;
        align-items: center;
        gap: 12px;
        text-align: left;
    }
    
    #service-marketing .touch-icon {
        margin: 0;
    }
    
    #service-marketing .cjm-emotion-container {
        padding-left: 20px;
    }
    
    #service-marketing .cjm-emotion-svg {
        height: 100px;
    }
}

#service-marketing .marketing-formats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

#service-marketing .marketing-format-card {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.01);
    padding: calc(var(--unit) * 3.2);
}

#service-marketing .marketing-format-card:nth-child(1) { grid-column: 1 / 2; }
#service-marketing .marketing-format-card:nth-child(2) { grid-column: 2 / 4; }
#service-marketing .marketing-format-card:nth-child(3) { grid-column: 4 / 5; margin-top: calc(var(--unit) * 5); }
#service-marketing .marketing-format-card:nth-child(4) { grid-column: 5 / 6; }

#service-marketing .marketing-format-card .process-flow-num {
    font-size: clamp(30px, 3.2vw, 48px);
    margin-bottom: calc(var(--unit) * 1.2);
}

#service-marketing .marketing-format-card .process-flow-title {
    font-size: clamp(18px, 1.65vw, 26px);
    line-height: 1.2;
}

#service-marketing .marketing-why-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 16px;
}

#service-marketing .marketing-why-card {
    min-height: 190px;
}

#service-marketing .marketing-why-card p {
    margin: 0;
    font-family: var(--font-primary);
    font-size: clamp(19px, 1.95vw, 30px);
    line-height: 1.2;
}

#service-marketing .marketing-why-card:nth-child(1) { grid-column: 1 / 4; }
#service-marketing .marketing-why-card:nth-child(2) { grid-column: 4 / 8; }
#service-marketing .marketing-why-card:nth-child(3) { grid-column: 2 / 5; }
#service-marketing .marketing-why-card:nth-child(4) { grid-column: 5 / 7; margin-top: calc(var(--unit) * 5); }

#service-marketing .marketing-final .service-detail-title {
    max-width: 24ch;
    line-height: 1.1;
}

#service-marketing .marketing-final .service-detail-text {
    max-width: 50ch;
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.4;
}

@media (max-width: 1024px) {
    #service-marketing .marketing-context-grid,
    #service-marketing .marketing-work-grid,
    #service-marketing .marketing-catalog-grid,
    #service-marketing .marketing-formats-grid,
    #service-marketing .marketing-why-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: auto;
    }

    #service-marketing .marketing-context-main,
    #service-marketing .marketing-context-side,
    #service-marketing .marketing-work-card:nth-child(1),
    #service-marketing .marketing-work-card:nth-child(2),
    #service-marketing .marketing-work-card:nth-child(3),
    #service-marketing .marketing-format-card:nth-child(1),
    #service-marketing .marketing-format-card:nth-child(2),
    #service-marketing .marketing-format-card:nth-child(3),
    #service-marketing .marketing-format-card:nth-child(4),
    #service-marketing .marketing-why-card:nth-child(1),
    #service-marketing .marketing-why-card:nth-child(2),
    #service-marketing .marketing-why-card:nth-child(3),
    #service-marketing .marketing-why-card:nth-child(4) {
        grid-column: auto;
        grid-row: auto;
        margin-top: 0;
    }

    #service-marketing .marketing-why-card {
        min-height: 160px;
    }

    #service-marketing .marketing-service-cjm {
        grid-column: auto;
    }

    #service-marketing .marketing-cjm-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    #service-marketing .marketing-cjm-stage-row,
    #service-marketing .marketing-cjm-touch-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    #service-marketing .marketing-cjm-pain-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #service-marketing .marketing-context-grid,
    #service-marketing .marketing-work-grid,
    #service-marketing .marketing-catalog-grid,
    #service-marketing .marketing-formats-grid,
    #service-marketing .marketing-why-grid {
        grid-template-columns: 1fr;
    }

    #service-marketing .marketing-cta-row {
        flex-direction: column;
        align-items: stretch;
    }

    #service-marketing .marketing-mini-btn,
    #service-marketing .marketing-card-btn {
        width: 100%;
        justify-content: center;
    }

    #service-marketing .marketing-cjm-mapboard {
        padding: calc(var(--unit) * 1.8);
    }

    #service-marketing .marketing-cjm-stage-row,
    #service-marketing .marketing-cjm-touch-row {
        grid-template-columns: 1fr;
    }

    #service-marketing .marketing-cjm-svg {
        height: 120px;
    }
}

/* ========================================
   AUDIENCE ANALYSIS MAP - CUSTOM DESIGN
   ======================================== */

#service-marketing .audience-analysis-card {
    position: relative;
    overflow: visible;
}

#service-marketing .audience-map-container {
    margin: calc(var(--unit) * 3) 0;
    padding: calc(var(--unit) * 2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(20, 20, 20, 0.4) 100%);
    position: relative;
    overflow: hidden;
}

#service-marketing .audience-map {
    position: relative;
    width: 100%;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Центральное ядро */
#service-marketing .audience-core {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 2px solid rgba(255, 204, 0, 0.8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10;
    box-shadow: 0 0 30px rgba(255, 204, 0, 0.3);
    animation: corePulse 3s ease-in-out infinite;
}

@keyframes corePulse {
    0%, 100% { box-shadow: 0 0 20px rgba(255, 204, 0, 0.3); transform: scale(1); }
    50% { box-shadow: 0 0 40px rgba(255, 204, 0, 0.5); transform: scale(1.02); }
}

#service-marketing .core-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fc0;
    text-align: center;
    line-height: 1.2;
}

/* Концентрические кольца */
#service-marketing .audience-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

#service-marketing .ring-svg {
    width: 280px;
    height: 280px;
    animation: ringRotate 60s linear infinite;
}

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

/* Точки сегментации */
#service-marketing .segment-point {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    z-index: 5;
    transition: all 0.3s ease;
}

#service-marketing .segment-point:hover {
    transform: scale(1.1);
}

#service-marketing .segment-point:hover .point-marker {
    background: #fc0;
    box-shadow: 0 0 20px rgba(255, 204, 0, 0.6);
}

#service-marketing .segment-point:hover .point-label {
    color: #fc0;
}

#service-marketing .point-marker {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.4);
    transition: all 0.3s ease;
}

#service-marketing .point-label {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
    transition: color 0.3s ease;
}

/* Позиционирование точек */
#service-marketing .point-1 { top: 15%; left: 15%; }
#service-marketing .point-2 { top: 10%; right: 25%; }
#service-marketing .point-3 { top: 35%; right: 8%; }
#service-marketing .point-4 { bottom: 35%; right: 12%; }
#service-marketing .point-5 { bottom: 15%; right: 25%; }
#service-marketing .point-6 { bottom: 10%; left: 35%; }
#service-marketing .point-7 { bottom: 25%; left: 10%; }
#service-marketing .point-8 { top: 30%; left: 8%; }

/* Соединительные линии */
#service-marketing .connection-lines {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Легенда */
#service-marketing .audience-legend {
    margin-top: calc(var(--unit) * 2);
    padding-top: calc(var(--unit) * 2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#service-marketing .legend-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

#service-marketing .legend-row:last-child {
    margin-bottom: 0;
    grid-template-columns: 1fr;
}

#service-marketing .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

#service-marketing .legend-item:hover {
    background: rgba(255, 204, 0, 0.05);
    border-color: rgba(255, 204, 0, 0.3);
}

#service-marketing .legend-marker {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

#service-marketing .legend-marker.demo { background: rgba(255, 255, 255, 0.6); }
#service-marketing .legend-marker.persona { background: rgba(255, 204, 0, 0.8); }
#service-marketing .legend-marker.triggers { background: rgba(255, 255, 255, 0.4); }
#service-marketing .legend-marker.funnel { background: rgba(255, 204, 0, 0.5); }
#service-marketing .legend-marker.ltv { background: rgba(255, 255, 255, 0.7); }

#service-marketing .legend-text {
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.7);
}

/* Responsive for Audience Map */
@media (max-width: 1024px) {
    #service-marketing .audience-map {
        height: 280px;
    }
    
    #service-marketing .ring-svg {
        width: 240px;
        height: 240px;
    }
    
    #service-marketing .audience-core {
        width: 70px;
        height: 70px;
    }
    
    #service-marketing .core-label {
        font-size: 8px;
    }
    
    #service-marketing .point-label {
        font-size: 7px;
    }
    
    #service-marketing .legend-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #service-marketing .audience-map {
        height: 260px;
    }
    
    #service-marketing .ring-svg {
        width: 220px;
        height: 220px;
    }
    
    #service-marketing .audience-core {
        width: 60px;
        height: 60px;
    }
    
    #service-marketing .core-label {
        font-size: 7px;
    }
    
    #service-marketing .point-marker {
        width: 8px;
        height: 8px;
    }
    
    #service-marketing .point-label {
        font-size: 6px;
        letter-spacing: 0.05em;
    }
    
    #service-marketing .legend-text {
        font-size: 9px;
    }
}

/* ========================================
   COMPETITOR ANALYSIS MATRIX
   ======================================== */

#service-marketing .competitor-analysis-card {
    position: relative;
    overflow: visible;
}

#service-marketing .competitor-matrix-container {
    margin: calc(var(--unit) * 3) 0;
    padding: calc(var(--unit) * 2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(20, 20, 20, 0.4) 100%);
}

#service-marketing .competitor-matrix {
    position: relative;
    width: 100%;
    height: 280px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Оси координат */
#service-marketing .matrix-axis {
    position: absolute;
    display: flex;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

#service-marketing .axis-x {
    bottom: 8px;
    left: 10px;
    right: 10px;
    justify-content: space-between;
}

#service-marketing .axis-y {
    left: 8px;
    top: 10px;
    bottom: 10px;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
}

#service-marketing .axis-line {
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 8px;
}

#service-marketing .axis-y .axis-line {
    width: 1px;
    height: auto;
    margin: 8px 0;
}

/* Квадранты */
#service-marketing .matrix-quadrants {
    position: absolute;
    top: 25px;
    left: 25px;
    right: 25px;
    bottom: 25px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 1px;
    background: rgba(255, 255, 255, 0.1);
}

#service-marketing .quadrant {
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

#service-marketing .quadrant:hover {
    background: rgba(255, 204, 0, 0.05);
}

/* Точки конкурентов */
#service-marketing .competitor-point {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 5;
}

#service-marketing .competitor-point:hover {
    transform: scale(1.15);
    z-index: 10;
}

#service-marketing .comp-marker {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

#service-marketing .comp-marker.cheap {
    background: rgba(255, 255, 255, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.6);
}

#service-marketing .comp-marker.mid {
    background: rgba(255, 204, 0, 0.4);
    border: 2px solid rgba(255, 204, 0, 0.6);
}

#service-marketing .comp-marker.premium {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(255, 255, 255, 1);
}

#service-marketing .comp-marker.you {
    width: 16px;
    height: 16px;
    background: #fc0;
    border: 2px solid #fc0;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 204, 0, 0.6);
    animation: youPulse 2s ease-in-out infinite;
}

@keyframes youPulse {
    0%, 100% { box-shadow: 0 0 10px rgba(255, 204, 0, 0.4); }
    50% { box-shadow: 0 0 20px rgba(255, 204, 0, 0.8); }
}

#service-marketing .you-icon {
    font-size: 10px;
    color: #000;
}

#service-marketing .comp-label {
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    white-space: nowrap;
}

#service-marketing .comp-label.you-label {
    color: #fc0;
    font-weight: 700;
}

/* Позиции конкурентов */
#service-marketing .comp-1 { top: 20%; left: 20%; }
#service-marketing .comp-2 { top: 45%; left: 50%; transform: translateX(-50%); }
#service-marketing .comp-3 { top: 15%; right: 20%; }
#service-marketing .comp-you { bottom: 25%; left: 35%; }

/* SWOT углы */
#service-marketing .swot-corner {
    position: absolute;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

#service-marketing .swot-corner.swot-s { top: 25px; left: 25px; }
#service-marketing .swot-corner.swot-w { top: 25px; right: 25px; }
#service-marketing .swot-corner.swot-o { bottom: 25px; left: 25px; }
#service-marketing .swot-corner.swot-t { bottom: 25px; right: 25px; }

#service-marketing .swot-letter {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    color: #fc0;
    line-height: 1;
}

#service-marketing .swot-text {
    font-family: var(--font-mono);
    font-size: 6px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

/* Легенда матрицы */
#service-marketing .matrix-legend {
    margin-top: calc(var(--unit) * 2);
    padding-top: calc(var(--unit) * 2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

#service-marketing .matrix-legend .legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#service-marketing .matrix-legend .legend-item.highlight {
    background: rgba(255, 204, 0, 0.05);
    border-color: rgba(255, 204, 0, 0.3);
}

#service-marketing .legend-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

#service-marketing .legend-dot.cheap {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

#service-marketing .legend-dot.mid {
    background: rgba(255, 204, 0, 0.4);
    border: 1px solid rgba(255, 204, 0, 0.6);
}

#service-marketing .legend-dot.premium {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 1);
}

#service-marketing .legend-dot.you {
    background: #fc0;
    border: 1px solid #fc0;
}

#service-marketing .matrix-legend .legend-text {
    font-family: var(--font-mono);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
}

#service-marketing .matrix-legend .legend-item.highlight .legend-text {
    color: #fc0;
}

/* ========================================
   POSITIONING & UTP VISUAL
   ======================================== */

#service-marketing .positioning-card {
    position: relative;
    overflow: visible;
}

#service-marketing .positioning-visual-container {
    margin: calc(var(--unit) * 3) 0;
    padding: calc(var(--unit) * 2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(20, 20, 20, 0.4) 100%);
}

#service-marketing .utp-center {
    position: relative;
    width: 100%;
    height: 240px;
    display: flex;
    align-items: center;
    justify-content: center;
}

#service-marketing .utp-core {
    position: absolute;
    width: 70px;
    height: 70px;
    border: 2px solid #fc0;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10;
    box-shadow: 0 0 25px rgba(255, 204, 0, 0.4);
    animation: utpPulse 3s ease-in-out infinite;
}

@keyframes utpPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 20px rgba(255, 204, 0, 0.3); }
    50% { transform: scale(1.05); box-shadow: 0 0 35px rgba(255, 204, 0, 0.5); }
}

#service-marketing .utp-label {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    color: #fc0;
    line-height: 1;
}

#service-marketing .utp-sub {
    font-family: var(--font-mono);
    font-size: 5px;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    text-align: center;
    margin-top: 2px;
    line-height: 1.3;
}

#service-marketing .message-rings {
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#service-marketing .rings-svg {
    width: 220px;
    height: 220px;
    animation: ringsPulse 4s ease-in-out infinite;
}

@keyframes ringsPulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

/* Точки месседжей */
#service-marketing .msg-point {
    position: absolute;
    z-index: 5;
    transition: all 0.3s ease;
}

#service-marketing .msg-point:hover {
    transform: scale(1.1);
    z-index: 15;
}

#service-marketing .msg-bubble {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 8px;
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

#service-marketing .msg-point:hover .msg-bubble {
    border-color: #fc0;
    background: rgba(255, 204, 0, 0.1);
}

#service-marketing .msg-icon {
    font-size: 14px;
}

#service-marketing .msg-text {
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
    white-space: nowrap;
}

#service-marketing .msg-point:hover .msg-text {
    color: #fc0;
}

/* Позиции месседжей */
#service-marketing .msg-1 { top: 5%; left: 50%; transform: translateX(-50%); }
#service-marketing .msg-2 { right: 5%; top: 50%; transform: translateY(-50%); }
#service-marketing .msg-3 { bottom: 5%; left: 50%; transform: translateX(-50%); }
#service-marketing .msg-4 { left: 5%; top: 50%; transform: translateY(-50%); }

/* Elevator Pitch блок */
#service-marketing .elevator-block {
    margin-top: calc(var(--unit) * 2);
    padding: calc(var(--unit) * 2);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
}

#service-marketing .elevator-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

#service-marketing .elevator-icon {
    font-size: 14px;
}

#service-marketing .elevator-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    color: #fc0;
}

#service-marketing .elevator-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#service-marketing .elevator-line {
    height: 3px;
    background: rgba(255, 255, 255, 0.2);
    width: 100%;
}

#service-marketing .elevator-line.short {
    width: 60%;
}

#service-marketing .elevator-line.medium {
    width: 80%;
}

#service-marketing .elevator-timer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: rgba(255, 204, 0, 0.1);
    border: 1px solid rgba(255, 204, 0, 0.3);
}

#service-marketing .timer-digits {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: #fc0;
    line-height: 1;
}

#service-marketing .timer-unit {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

/* Легенда позиционирования */
#service-marketing .positioning-legend {
    margin-top: calc(var(--unit) * 2);
    padding-top: calc(var(--unit) * 2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#service-marketing .pos-legend-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

#service-marketing .pos-legend-row:last-child {
    margin-bottom: 0;
    grid-template-columns: 1fr;
}

#service-marketing .pos-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#service-marketing .pos-item.wide {
    grid-column: 1 / -1;
}

#service-marketing .pos-marker {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

#service-marketing .pos-marker.core {
    background: #fc0;
    border: 1px solid #fc0;
}

#service-marketing .pos-marker.message {
    background: rgba(255, 255, 255, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

#service-marketing .pos-marker.pitch {
    background: rgba(255, 204, 0, 0.3);
    border: 1px solid rgba(255, 204, 0, 0.5);
}

#service-marketing .pos-text {
    font-family: var(--font-mono);
    font-size: 9px;
    color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   BRAND PLATFORM PYRAMID
   ======================================== */

#service-marketing .brand-platform-card {
    position: relative;
    overflow: visible;
}

#service-marketing .brand-pyramid-container {
    margin: calc(var(--unit) * 3) 0;
    padding: calc(var(--unit) * 2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(20, 20, 20, 0.4) 100%);
}

#service-marketing .brand-pyramid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 16px;
}

#service-marketing .pyramid-structure {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#service-marketing .pyramid-level {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

#service-marketing .pyramid-level:hover {
    background: rgba(255, 204, 0, 0.05);
    border-color: rgba(255, 204, 0, 0.3);
}

#service-marketing .level-content {
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

#service-marketing .level-1 .level-content {
    justify-content: center;
    background: rgba(255, 204, 0, 0.1);
    border-bottom: 2px solid #fc0;
}

#service-marketing .level-2 .level-content,
#service-marketing .level-4 .level-content {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 12px;
    align-items: center;
}

#service-marketing .level-half {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

#service-marketing .level-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
}

#service-marketing .level-icon {
    font-size: 14px;
}

#service-marketing .level-title {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.15em;
    color: #fc0;
    text-transform: uppercase;
}

#service-marketing .level-desc {
    font-family: var(--font-mono);
    font-size: 6px;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    text-align: center;
}

#service-marketing .values-row {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

#service-marketing .value-tag {
    padding: 3px 6px;
    background: rgba(255, 204, 0, 0.15);
    border: 1px solid rgba(255, 204, 0, 0.3);
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

/* Боковые индикаторы бренда */
#service-marketing .brand-indicators {
    display: flex;
    flex-direction: column;
    gap: 8px;
    justify-content: center;
}

#service-marketing .indicator-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#service-marketing .indicator-label {
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

#service-marketing .indicator-bar {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

#service-marketing .bar-fill {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 70%;
    background: #fc0;
    animation: barFill 2s ease-out forwards;
}

@keyframes barFill {
    from { width: 0; }
    to { width: 70%; }
}

#service-marketing .indicator-bar.verbal .bar-fill { width: 85%; }
#service-marketing .indicator-bar.visual .bar-fill { width: 75%; }
#service-marketing .indicator-bar.behavioral .bar-fill { width: 90%; }

/* Фундамент бренда */
#service-marketing .brand-foundation {
    margin-top: calc(var(--unit) * 2);
    padding-top: calc(var(--unit) * 2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#service-marketing .foundation-block {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#service-marketing .foundation-icon {
    font-size: 16px;
}

#service-marketing .foundation-text {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

/* ========================================
   AUDIT DASHBOARD
   ======================================== */

#service-marketing .audit-card {
    position: relative;
    overflow: visible;
}

#service-marketing .audit-dashboard-container {
    margin: calc(var(--unit) * 3) 0;
    padding: calc(var(--unit) * 2);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(20, 20, 20, 0.4) 100%);
}

#service-marketing .audit-dashboard {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

#service-marketing .audit-indicators {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#service-marketing .indicator-card {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
}

#service-marketing .indicator-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

#service-marketing .indicator-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

#service-marketing .indicator-icon {
    font-size: 12px;
}

#service-marketing .indicator-name {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.8);
    text-transform: uppercase;
}

#service-marketing .indicator-status {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

#service-marketing .status-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

#service-marketing .status-fill {
    height: 100%;
    transition: width 1s ease-out;
}

#service-marketing .indicator-status.good .status-fill {
    background: #00ff88;
}

#service-marketing .indicator-status.warning .status-fill {
    background: #ffcc00;
}

#service-marketing .indicator-status.critical .status-fill {
    background: #ff3366;
}

#service-marketing .indicator-status.neutral .status-fill {
    background: rgba(255, 255, 255, 0.5);
}

#service-marketing .status-label {
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

#service-marketing .indicator-status.good .status-label {
    color: #00ff88;
}

#service-marketing .indicator-status.warning .status-label {
    color: #ffcc00;
}

#service-marketing .indicator-status.critical .status-label {
    color: #ff3366;
}

#service-marketing .indicator-status.neutral .status-label {
    color: rgba(255, 255, 255, 0.5);
}

/* Чек-лист */
#service-marketing .audit-checklist {
    padding: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

#service-marketing .checklist-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#service-marketing .checklist-icon {
    font-size: 12px;
    color: #fc0;
}

#service-marketing .checklist-title {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.15em;
    color: #fc0;
    text-transform: uppercase;
}

#service-marketing .checklist-items {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

#service-marketing .check-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 0;
}

#service-marketing .check-box {
    font-size: 10px;
    width: 14px;
    text-align: center;
}

#service-marketing .check-item.checked .check-box {
    color: #00ff88;
}

#service-marketing .check-item.pending .check-box {
    color: rgba(255, 255, 255, 0.3);
}

#service-marketing .check-text {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
}

#service-marketing .check-item.checked .check-text {
    color: rgba(255, 255, 255, 0.9);
}

/* Прогресс чек-листа */
#service-marketing .checklist-progress {
    margin-top: 12px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#service-marketing .progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

#service-marketing .progress-label {
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

#service-marketing .progress-value {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
    color: #fc0;
}

#service-marketing .progress-bar-container {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

#service-marketing .progress-bar {
    height: 100%;
    background: rgba(255, 204, 0, 0.3);
}

#service-marketing .progress-fill {
    height: 100%;
    background: #fc0;
    transition: width 1s ease-out;
}

/* Сводка аудита */
#service-marketing .audit-summary {
    margin-top: calc(var(--unit) * 2);
    padding-top: calc(var(--unit) * 2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-around;
    align-items: center;
}

#service-marketing .summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

#service-marketing .summary-item.highlight .summary-number {
    color: #fc0;
}

#service-marketing .summary-number {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1;
}

#service-marketing .summary-label {
    font-family: var(--font-mono);
    font-size: 7px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    text-align: center;
}

#service-marketing .summary-divider {
    width: 1px;
    height: 30px;
    background: rgba(255, 255, 255, 0.2);
}

/* ========================================
   RESPONSIVE STYLES FOR ALL VISUALS
   ======================================== */

@media (max-width: 1024px) {
    #service-marketing .competitor-matrix {
        height: 240px;
    }
    
    #service-marketing .matrix-legend {
        grid-template-columns: 1fr;
    }
    
    #service-marketing .utp-center {
        height: 200px;
    }
    
    #service-marketing .rings-svg {
        width: 180px;
        height: 180px;
    }
    
    #service-marketing .elevator-block {
        grid-template-columns: 1fr;
    }
    
    #service-marketing .elevator-timer {
        justify-self: start;
    }
    
    #service-marketing .brand-pyramid {
        grid-template-columns: 1fr;
    }
    
    #service-marketing .brand-indicators {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    #service-marketing .audit-dashboard {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    #service-marketing .competitor-matrix {
        height: 220px;
    }
    
    #service-marketing .swot-corner {
        padding: 4px 6px;
    }
    
    #service-marketing .swot-letter {
        font-size: 12px;
    }
    
    #service-marketing .swot-text {
        font-size: 5px;
    }
    
    #service-marketing .comp-marker {
        width: 10px;
        height: 10px;
    }
    
    #service-marketing .comp-label {
        font-size: 6px;
    }
    
    #service-marketing .utp-core {
        width: 60px;
        height: 60px;
    }
    
    #service-marketing .utp-label {
        font-size: 14px;
    }
    
    #service-marketing .utp-sub {
        font-size: 4px;
    }
    
    #service-marketing .msg-icon {
        font-size: 12px;
    }
    
    #service-marketing .msg-text {
        font-size: 6px;
    }
    
    #service-marketing .level-icon {
        font-size: 12px;
    }
    
    #service-marketing .level-title {
        font-size: 7px;
    }
    
    #service-marketing .level-desc {
        font-size: 5px;
    }
    
    #service-marketing .value-tag {
        font-size: 6px;
        padding: 2px 4px;
    }
    
    #service-marketing .summary-number {
        font-size: 20px;
    }
}
