/* ===== CSS VARIABLES ===== */
.industry-section {
    --bg-1: #efe6ff;
    --bg-2: #e6d9ff;
    --ink: #1d1530;
    --ink-2: #5f5770;
    --brand: #6b4cf6;
    --brand-2: #b7a6ff;
    --chip: #efe9ff;
    --chip-border: #cec1ff;
    --surface: #ffffff;
    --shadow: 0 10px 30px rgba(36, 13, 77, .15);
}

/* ===== LAYOUT ===== */
.industry-container {
    max-width: 1324px;
    margin: 0 auto;
    padding: clamp(16px, 3vw, 48px);
}

.industry-grid {
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: start;
    gap: clamp(24px, 4vw, 48px);
    margin-top: 20px;
}

@media (max-width: 940px) {
    .industry-grid {
        grid-template-columns: 1fr;
    }
}

/* ===== TYPOGRAPHY ===== */
.industry-lead {
    font-family: 'Exo', 'Roboto', Arial, sans-serif;
    font-size: clamp(26px, 3.1vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: .2px;
    max-width: 980px;
    /* margin: 28px 0 18px; */
    color: var(--ink);
}

.industry-hero h2 {
    font-family: 'Exo', 'Roboto', Arial, sans-serif;
    font-size: clamp(36px, 6vw, 54px);
    line-height: 1.06;
    margin: 8px 0 10px;
    letter-spacing: .2px;
    color: var(--ink);
}

.industry-hero h2 .break {
    display: block;
}

.industry-eyebrow {
    text-transform: uppercase;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: .22em;
    color: var(--ink-2);
    margin: 18px 0 16px;
}

/* ===== CHIPS (TABS) ===== */
.industry-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0 4px;
}

.industry-chip {
    appearance: none;
    border: 1px solid var(--chip-border);
    background: var(--chip);
    color: var(--ink);
    padding: 10px 16px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all .2s ease;
    user-select: none;
}

.industry-chip:active {
    transform: translateY(1px);
}

.industry-chip.is-active {
    background: #fff;
    border-color: #fff;
    box-shadow: var(--shadow);
}

/* ===== WHEEL PICKER ===== */
.industry-wheel-list {
    height: 300px;
    overflow: hidden;
    position: relative;
    margin: 16px 0;
    border-radius: 12px;
}

/* Center selection indicator */
.industry-wheel-list::before {
    content: '';
    position: absolute;
    left: 8px;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    height: 44px;
    background: rgba(107, 76, 246, 0.08);
    border: 2px solid rgba(107, 76, 246, 0.2);
    border-radius: 12px;
    pointer-events: none;
    z-index: 1;
}

.industry-wheel-container {
    position: relative;
    height: 100%;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom,
            transparent 0%,
            black 15%,
            black 85%,
            transparent 100%);
    width: 100%;
    max-width: 510px;
    /* keep desktop visual but allow shrink */
    margin: 0 auto;
    /* center when narrower than column */
    box-sizing: border-box;
}

.industry-wheel-container::-webkit-scrollbar {
    display: none;
}

.industry-domain {
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    font-weight: 500;
    font-size: 16px;
    color: var(--ink-2);
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    user-select: none;
    text-align: center;
    border-radius: 8px;
    transform: scale(0.85);
    opacity: 0.5;
    transform-origin: center;
    letter-spacing: 1.5px;
    word-break: break-word;
    /* prevent overflow on small screens */
}

.industry-domain.is-active {
    color: var(--brand);
    font-weight: 700;
    font-size: 18px;
    transform: scale(1);
    opacity: 1;
    z-index: 3;
    text-shadow: 0 1px 3px rgba(107, 76, 246, 0.2);
    letter-spacing: 1.5px;
}

.industry-domain.is-near-active {
    transform: scale(0.92);
    opacity: 0.7;
    color: var(--ink);
    font-weight: 600;
}

/* ===== READ MORE LINK ===== */
.industry-readmore {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--brand);
    font-weight: 700;
    text-decoration: none;
    margin-top: 15px;
    justify-content: flex-end;
    width: 100%;
}

.industry-readmore .arrow {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(107, 76, 246, .12);
    transition: all .2s ease;
}

.industry-readmore:hover .arrow {
    transform: translateX(4px);
    background: rgba(107, 76, 246, .18);
}

/* ===== INDUSTRY DASHBOARD PREVIEW ===== */
.industry-dashboard {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    max-width: 833px;
    /* preserve desktop layout */
    height: auto;
    /* allow natural height */
    padding-top: 40px;
    box-sizing: border-box;
}

.industry-dashboard>img:first-child {
    max-width: 100%;
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(36, 13, 77, .15);
    background: #fff;
    position: relative;
    z-index: 2;
    /* limit to a comfortable width inside max-width container */
    max-width: 780px;
    height: auto;
}

.industry-dashboard>img[aria-hidden="true"] {
    position: absolute;
    left: 8%;
    right: 42%;
    bottom: -26px;
    width: 97%;
    max-width: 780px;
    pointer-events: none;
    z-index: 1;
    border-radius: 12px;
}

/* ===== RESPONSIVE TWEAKS ===== */
@media (max-width: 940px) {
    .industry-grid {
        grid-template-columns: 1fr;
    }

    .industry-wheel-container {
        max-width: none;
        width: 100%;
        /* remove mask on narrow screens to avoid clipped items */
        mask-image: none;
        -webkit-mask-image: none;
        padding: 8px 6px;
    }

    .industry-wheel-list::before {
        left: 6px;
        right: 6px;
    }

    .industry-dashboard {
        padding-top: 20px;
        align-items: flex-start;
    }

    .industry-dashboard>img:first-child {
        max-width: 640px;
        width: 100%;
    }

    .industry-dashboard>img[aria-hidden="true"] {
        bottom: -20px;
        width: 92%;
    }

    .industry-domain {
        font-size: 15px;
        letter-spacing: 1.2px;
    }
}

@media (max-width: 480px) {
 .industry-wheel-list {
  height: 313px;
  overflow: hidden;
  position: relative;
  margin: 16px 0;
  border-radius: 12px;
}

    .industry-wheel-container {
        padding: 6px;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .industry-domain {
        font-size: 14px;
        padding: 0 12px;
        height: 44px;
        letter-spacing: 1px;
    }

    .industry-dashboard {
        padding-top: 12px;
    }

    .industry-dashboard>img:first-child {
        max-width: 420px;
        width: 100%;
        border-radius: 10px;
    }

    .industry-dashboard>img[aria-hidden="true"] {
        bottom: -16px;
        width: 95%;
        left: 2.5%;
        right: 2.5%;
    }

    /* make the center selection indicator slightly smaller */
    .industry-wheel-list::before {
        height: 35px;
        left: 6px;
        right: 6px;
    }
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {

    .industry-chip,
    .industry-readmore .arrow,
    .industry-domain {
        transition: none !important;
    }

    .industry-wheel-container {
        scroll-behavior: auto;
    }
}