/* =========================================================
   TRIGGER10X - InfiniteSpiral Component Styles (Split-Screen)
   Interactive 3D Helical Helix Carousel paired with Live Story Stage
   ========================================================= */

.ai-capabilities-section {
    position: relative;
    padding: clamp(60px, 8vh, 100px) 0;
    background: #080A0C;
    overflow: hidden;
}

.ai-capabilities-header {
    text-align: center;
    max-width: 760px;
    margin: 0 auto clamp(36px, 5vh, 56px);
}

.ai-capabilities-kicker {
    display: inline-block;
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    color: #D6A34D;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ai-capabilities-title {
    font-family: "Cinzel", "Manrope", serif;
    font-size: clamp(32px, 4.2vw, 54px);
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.04em;
    line-height: 1.15;
    margin: 0 0 16px 0;
}

.ai-capabilities-subtitle {
    font-family: "DM Sans", sans-serif;
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.6;
    color: #9aa0a6;
    margin: 0 auto;
}

/* --- Split-Screen Container --- */
.ai-spiral-container {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: clamp(28px, 3.5vw, 52px);
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

/* =========================================================
   LEFT: DYNAMIC STORY SHOWCASE STAGE
   ========================================================= */
.ai-spiral-story-stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.ai-story-content-wrap {
    min-height: 400px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ai-story-content {
    transition: opacity 0.22s ease, transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.ai-story-content.is-exiting {
    opacity: 0;
    transform: translateY(-8px);
}

.ai-story-content.is-entering {
    animation: aiStoryEnter 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

/* Story Meta Row */
.ai-story-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.ai-story-num {
    font-family: "Cinzel", Georgia, serif;
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    color: #D6A34D;
    line-height: 1;
    letter-spacing: 0.05em;
}

.ai-story-sep {
    font-family: "Cinzel", Georgia, serif;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.25);
}

.ai-story-total {
    font-family: "Cinzel", Georgia, serif;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.45);
}

.ai-story-badge {
    margin-left: 10px;
    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #A87CFF;
    background: rgba(168, 124, 255, 0.12);
    border: 1px solid rgba(168, 124, 255, 0.3);
    padding: 3px 12px;
    border-radius: 999px;
    text-transform: uppercase;
}

/* Story Header */
.ai-story-kicker {
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: #D6A34D;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.ai-story-title {
    font-family: "Cinzel", "Manrope", serif;
    font-size: clamp(26px, 2.8vw, 38px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    margin: 0 0 16px 0;
    letter-spacing: 0.02em;
}

.ai-story-desc {
    font-family: "DM Sans", sans-serif;
    font-size: clamp(14.5px, 1.25vw, 16px);
    line-height: 1.65;
    color: #9aa0a6;
    margin: 0 0 24px 0;
    max-width: 580px;
}

/* Story Deliverables (Single-line pills without explanation) */
.ai-story-deliverables {
    margin: 0 0 28px 0;
    padding: 20px 22px;
    background: #101317;
    border: 1px solid #292D32;
    border-radius: 14px;
    box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.6);
}

.ai-deliv-label {
    display: block;
    font-family: "Manrope", sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.16em;
    color: #D6A34D;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.ai-deliv-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.ai-deliv-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.ai-deliv-item:hover {
    border-color: rgba(214, 163, 77, 0.35);
    background: rgba(214, 163, 77, 0.04);
}

.ai-deliv-bullet {
    color: #D6A34D;
    font-size: 11px;
    line-height: 1;
    flex-shrink: 0;
}

.ai-deliv-title {
    font-family: "Manrope", sans-serif;
    font-size: 12.5px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

/* Story Action CTA */
.ai-story-cta-row {
    margin-bottom: 24px;
}

.ai-story-primary-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #D6A34D;
    color: #080A0C !important;
    font-family: "Manrope", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 13px 28px;
    border-radius: 999px;
    box-shadow: 0 10px 28px -6px rgba(214, 163, 77, 0.45);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ai-story-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 36px -6px rgba(214, 163, 77, 0.6);
}

/* Bottom Controls */
.ai-story-controls-row {
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ai-nav-group {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ai-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #101317;
    border: 1px solid #292D32;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.ai-nav-btn:hover {
    background: rgba(214, 163, 77, 0.12);
    border-color: #D6A34D;
    color: #D6A34D;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -4px rgba(214, 163, 77, 0.35);
}

.ai-nav-arrow {
    font-size: 15px;
    line-height: 1;
}

.ai-drag-hint {
    font-family: "Manrope", sans-serif;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
}

/* =========================================================
   RIGHT: 3D HELICAL HELIX DECK STAGE (HALF-SCREEN)
   ========================================================= */
.ai-spiral-deck-stage {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infinite-spiral {
    position: relative;
    width: 100%;
    height: clamp(520px, 58vh, 640px);
    overflow: hidden;
    isolation: isolate;
    border-radius: 22px;
    background: radial-gradient(circle at 50% 50%, rgba(168, 124, 255, 0.08) 0%, rgba(16, 19, 23, 0.85) 55%, rgba(8, 10, 12, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow: 0 24px 60px -15px rgba(0, 0, 0, 0.9), inset 0 0 50px rgba(0, 0, 0, 0.65);
    perspective: 1600px;
    touch-action: pan-x;
}

.infinite-spiral-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at 50% 50%, rgba(168, 124, 255, 0.15) 0%, rgba(214, 163, 77, 0.06) 45%, transparent 70%);
    filter: blur(45px);
    opacity: 0.9;
    z-index: 1;
}

.infinite-spiral__stage {
    position: absolute;
    inset: 0;
    transform-style: preserve-3d;
    z-index: 2;
}

/* 3D Helical Service Card with Photographic Artwork */
.infinite-spiral__item {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: var(--infinite-spiral-card-width, 220px);
    height: var(--infinite-spiral-card-height, 290px);
    overflow: hidden;
    border: 1px solid #292D32;
    border-radius: var(--infinite-spiral-card-radius, 16px);
    background: #0E1116;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.9), 0 0 1px rgba(255, 255, 255, 0.12);
    transform-style: preserve-3d;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    will-change: transform, opacity;
    contain: layout paint;
    text-decoration: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

/* Background Photographic Image Layer */
.spiral-card-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 1;
    transition: transform 0.4s ease;
}

.infinite-spiral__item:hover .spiral-card-photo {
    transform: scale(1.06);
}

/* Gradient Scrim Overlay */
.spiral-card-scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(8, 10, 12, 0.6) 0%, rgba(16, 19, 23, 0.2) 35%, rgba(8, 10, 12, 0.95) 85%);
    z-index: 2;
    pointer-events: none;
}

.infinite-spiral__item::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--infinite-spiral-card-radius, 16px);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 50%, rgba(214, 163, 77, 0.08) 100%);
    pointer-events: none;
    z-index: 3;
}

.infinite-spiral__item:hover {
    border-color: rgba(214, 163, 77, 0.7);
    box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.95), 0 0 30px rgba(214, 163, 77, 0.35);
}

.infinite-spiral__item.is-centered {
    border-color: #D6A34D;
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.95), 0 0 35px rgba(214, 163, 77, 0.45), 0 0 20px rgba(168, 124, 255, 0.25);
}

/* Top: Serial Number & Pill Tag */
.spiral-card-top {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 0;
    z-index: 4;
}

.spiral-card-num {
    font-family: "Cinzel", Georgia, serif;
    font-size: 14px;
    font-weight: 700;
    color: #D6A34D;
    background: rgba(16, 19, 23, 0.85);
    border: 1px solid rgba(214, 163, 77, 0.4);
    padding: 2px 9px;
    border-radius: 999px;
    letter-spacing: 0.1em;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.spiral-card-tag {
    font-family: "Manrope", sans-serif;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #ffffff;
    background: rgba(168, 124, 255, 0.25);
    border: 1px solid rgba(168, 124, 255, 0.5);
    padding: 3px 8px;
    border-radius: 999px;
    text-transform: uppercase;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* Bottom: Title & Kicker Overlay */
.spiral-card-bottom {
    position: relative;
    padding: 0 14px 14px;
    z-index: 4;
    display: flex;
    flex-direction: column;
}

.spiral-card-kicker {
    font-family: "Manrope", sans-serif;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #D6A34D;
    text-transform: uppercase;
    margin-bottom: 2px;
}

.spiral-card-title {
    font-family: "Cinzel", "Manrope", serif;
    font-size: clamp(14px, 1.2vw, 16px);
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin: 0;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

/* Responsive Grid Adaptation */
@media (max-width: 960px) {
    .ai-spiral-container {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ai-spiral-deck-stage {
        order: -1;
    }

    .infinite-spiral {
        height: 480px;
    }

    .ai-story-content-wrap {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .infinite-spiral {
        height: 420px;
        border-radius: 16px;
    }

    .ai-story-controls-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .ai-nav-group {
        width: 100%;
        justify-content: space-between;
    }
}
