/**
 * Featured projects — mirrors Latest insights: mist scene, Swiper shell, 3D insight cards.
 */
body.page-home .fp-featured-scene {
    position: relative;
    overflow: hidden;
}

/* Slightly tighter section rhythm vs generic home sections */
body.page-home .main-content > .section.fp-featured-scene {
    padding-top: clamp(2.35rem, 4vw, 3rem);
    padding-bottom: clamp(2.35rem, 4vw, 3rem);
}

body.page-home .fp-featured-bg {
    position: absolute;
    inset: -12% -8% -18%;
    pointer-events: none;
    z-index: 0;
}

body.page-home .fp-featured-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(48px);
    opacity: 0.26;
    animation: fp-featured-orb-float 18s ease-in-out infinite;
}

body.page-home .fp-featured-orb--a {
    width: min(340px, 46vw);
    height: min(340px, 46vw);
    background: radial-gradient(circle at 35% 35%, rgba(var(--rgb-teal-deep), 0.36), transparent 64%);
    top: -6%;
    left: -8%;
}

body.page-home .fp-featured-orb--b {
    width: min(300px, 42vw);
    height: min(300px, 42vw);
    background: radial-gradient(circle at 55% 45%, rgba(var(--rgb-text-dark), 0.18), transparent 66%);
    bottom: 0;
    right: -6%;
    animation-delay: -9s;
}

@keyframes fp-featured-orb-float {
    0%,
    100% {
        transform: translate3d(0, 0, 0);
    }
    50% {
        transform: translate3d(2.5%, -1.8%, 0);
    }
}

body.page-home .fp-featured-deco {
    position: absolute;
    left: 50%;
    bottom: 6%;
    transform: translateX(-50%);
    width: min(420px, 88%);
    height: auto;
    opacity: 0.85;
    pointer-events: none;
}

body.page-home .fp-featured-inner {
    position: relative;
    z-index: 1;
}

body.page-home .fp-featured-header.section__header {
    max-width: 44rem;
    margin-bottom: clamp(0.65rem, 1.8vw, 0.95rem);
}

body.page-home .fp-featured-header .section__title {
    margin-bottom: 0.45rem;
}

body.page-home .fp-featured-header .section__intro {
    margin-bottom: 0;
}

body.page-home .fp-featured-dual {
    display: grid;
    gap: clamp(1.5rem, 3.5vw, 2.75rem);
    align-items: start;
}

@media (min-width: 900px) {
    body.page-home .fp-featured-dual:not(.fp-featured-dual--single) {
        grid-template-columns: 1fr 1fr;
    }
}

/* —— Division panels: bordered “enclosures” + distinct bg treatments —— */
body.page-home .fp-featured-col {
    position: relative;
    min-width: 0;
    isolation: isolate;
    border-radius: var(--card-radius-global, 16px);
    padding: clamp(1rem, 2.4vw, 1.35rem);
    /* visible so slider arrows / 3D cards are not clipped; mask via pseudo only */
    overflow: visible;
    border: 1px solid rgba(var(--rgb-teal-deep), 0.22);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.55) inset,
        0 10px 40px rgba(var(--rgb-text-dark), 0.05);
}

body.page-home .fp-featured-col::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    border-radius: inherit;
}

body.page-home .fp-featured-col > * {
    position: relative;
    z-index: 1;
}

/* Infrastructure: cool blue-mist, subtle diagonal structure lines */
body.page-home .fp-featured-col--infra {
    border-color: rgba(45, 140, 155, 0.38);
    background: linear-gradient(168deg, #e4f2f6 0%, #f2f9fb 38%, #e8f2f5 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.65) inset,
        0 0 48px rgba(45, 160, 175, 0.1),
        0 12px 36px rgba(var(--rgb-teal-deep), 0.07),
        0 20px 50px rgba(var(--rgb-text-dark), 0.05);
}

body.page-home .fp-featured-col--infra::before {
    background:
        radial-gradient(ellipse 95% 55% at 15% -5%, rgba(120, 200, 215, 0.18), transparent 52%),
        radial-gradient(ellipse 70% 45% at 95% 100%, rgba(var(--rgb-teal-deep), 0.08), transparent 50%),
        repeating-linear-gradient(
            -14deg,
            transparent,
            transparent 11px,
            rgba(var(--rgb-teal-deep), 0.04) 11px,
            rgba(var(--rgb-teal-deep), 0.04) 12px
        );
}

/* Consulting: warm neutral + soft violet depth (visually separate from infra) */
body.page-home .fp-featured-col--consulting {
    border-color: rgba(95, 78, 118, 0.28);
    background: linear-gradient(172deg, #faf8f5 0%, #f5f3f9 42%, #f0edf4 100%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 0 40px rgba(95, 78, 118, 0.07),
        0 12px 36px rgba(60, 45, 85, 0.05),
        0 18px 48px rgba(var(--rgb-text-dark), 0.04);
}

body.page-home .fp-featured-col--consulting::before {
    background:
        radial-gradient(ellipse 80% 50% at 88% 0%, rgba(var(--rgb-teal-deep), 0.09), transparent 48%),
        radial-gradient(ellipse 60% 40% at 0% 100%, rgba(95, 78, 118, 0.06), transparent 55%),
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 22px,
            rgba(60, 45, 85, 0.035) 22px,
            rgba(60, 45, 85, 0.035) 23px
        );
}

body.page-home .fp-featured-col__title {
    font-family: var(--font-display);
    font-size: clamp(0.8125rem, 1.5vw, 0.875rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin: 0 0 0.35rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(var(--rgb-teal-deep), 0.2);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

body.page-home .fp-featured-col--infra .fp-featured-col__title {
    color: var(--btn-primary-bg, #0f7c8a);
    border-bottom-color: rgba(45, 140, 155, 0.28);
}

body.page-home .fp-featured-col--consulting .fp-featured-col__title {
    color: #4a3d5c;
    border-bottom-color: rgba(95, 78, 118, 0.22);
}

/* Reuse insights slider chrome; tighten inside half-width columns */
body.page-home .fp-featured-col .insights-slider-shell {
    max-width: 100%;
    margin-inline: 0;
    margin-top: 0.35rem;
}

/*
 * Featured: keep prev/next BELOW the viewport (always visible).
 * Default insights layout puts arrows beside the track — too tight inside division panels.
 */
body.page-home .fp-featured-col .fp-featured-slider-shell.insights-slider-shell {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
        "view view"
        "prev next";
    gap: 0.65rem 0.75rem;
    align-items: center;
}

body.page-home .fp-featured-col .insights-slider__viewport {
    grid-area: view;
    min-width: 0;
    position: relative;
    z-index: 1;
    overflow: hidden;
    border-radius: calc(var(--card-radius-global, 16px) - 4px);
}

body.page-home .fp-featured-col .fp-featured-slider-shell .insights-slider__btn--prev {
    grid-area: prev;
    justify-self: end;
}

body.page-home .fp-featured-col .fp-featured-slider-shell .insights-slider__btn--next {
    grid-area: next;
    justify-self: start;
}

body.page-home .fp-featured-col .insights-slider__btn {
    position: relative;
    z-index: 4;
    flex-shrink: 0;
}

body.page-home .fp-featured-col .insights-slider__btn.swiper-button-disabled {
    opacity: 0.38;
    cursor: default;
}

body.page-home .fp-featured-dual--single .fp-featured-col .insights-slider-shell {
    max-width: min(72rem, 100%);
    margin-inline: auto;
}

body.page-home .fp-featured-swiper {
    display: flex;
    flex-direction: column;
    overflow: visible;
    padding-bottom: 0.15rem;
    gap: 0;
}

body.page-home .fp-featured-swiper .swiper-wrapper {
    transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

body.page-home .fp-featured-swiper .swiper-slide {
    height: auto;
    display: flex;
    box-sizing: border-box;
}

body.page-home .fp-featured-swiper .swiper-slide .insight-card-wrap {
    width: 100%;
    height: 100%;
    display: flex;
}

body.page-home .fp-featured-swiper .swiper-slide .insight-card {
    flex: 1;
    width: 100%;
}

/* —— Card: crisp stroke + teal outer glow + top luminous line —— */
body.page-home .fp-featured-scene .insight-card.insight-card--3d {
    border: 1px solid rgba(var(--rgb-teal-deep), 0.38);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.65) inset,
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 0 32px rgba(var(--rgb-teal-deep), 0.12),
        0 6px 28px rgba(var(--rgb-teal-deep), 0.07),
        0 18px 44px rgba(var(--rgb-text-dark), 0.06);
    transition:
        border-color 0.4s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-home .fp-featured-scene .insight-card.insight-card--3d .insight-card__accent {
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    height: 2px;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(var(--rgb-teal-deep), 0.15) 8%,
        rgba(45, 180, 195, 0.95) 42%,
        rgba(var(--rgb-teal-deep), 0.9) 58%,
        rgba(45, 180, 195, 0.85) 72%,
        transparent 100%
    );
    box-shadow:
        0 0 10px rgba(var(--rgb-teal-deep), 0.55),
        0 0 22px rgba(45, 180, 195, 0.35),
        0 3px 14px rgba(var(--rgb-teal-deep), 0.2);
    transition: box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) and (pointer: fine) {
    html.sx-scroll-ready body.page-home .fp-featured-scene .insight-card-wrap:hover .insight-card--3d,
    html.sx-scroll-ready body.page-home .fp-featured-scene .insight-card-wrap:focus-within .insight-card--3d {
        border-color: rgba(var(--rgb-teal-deep), 0.52);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.75) inset,
            0 1px 0 rgba(255, 255, 255, 0.95) inset,
            0 0 44px rgba(var(--rgb-teal-deep), 0.2),
            0 0 64px rgba(45, 180, 195, 0.12),
            0 12px 40px rgba(var(--rgb-teal-deep), 0.1),
            0 24px 56px rgba(var(--rgb-text-dark), 0.08);
    }

    html.sx-scroll-ready body.page-home .fp-featured-scene .insight-card-wrap:hover .insight-card__accent,
    html.sx-scroll-ready body.page-home .fp-featured-scene .insight-card-wrap:focus-within .insight-card__accent {
        box-shadow:
            0 0 14px rgba(var(--rgb-teal-deep), 0.7),
            0 0 28px rgba(45, 180, 195, 0.45),
            0 4px 18px rgba(var(--rgb-teal-deep), 0.28);
    }
}

/* Project cards: different surfaces per division panel */
body.page-home .fp-featured-col--infra .insight-card.insight-card--3d {
    background: linear-gradient(168deg, #ffffff 0%, #f5fbfc 48%, #eef7f9 100%);
    border-color: rgba(45, 150, 165, 0.42);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.75) inset,
        0 1px 0 rgba(255, 255, 255, 0.95) inset,
        0 0 36px rgba(60, 170, 185, 0.14),
        0 8px 30px rgba(var(--rgb-teal-deep), 0.08),
        0 16px 40px rgba(var(--rgb-text-dark), 0.05);
}

body.page-home .fp-featured-col--consulting .insight-card.insight-card--3d {
    background: linear-gradient(168deg, #ffffff 0%, #faf8fc 45%, #f4f1f7 100%);
    border-color: rgba(95, 78, 118, 0.32);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 1px 0 rgba(255, 255, 255, 0.92) inset,
        0 0 32px rgba(95, 78, 118, 0.1),
        0 8px 28px rgba(75, 60, 100, 0.06),
        0 16px 42px rgba(var(--rgb-text-dark), 0.05);
}

body.page-home .fp-featured-col--consulting .insight-card.insight-card--3d .insight-card__accent {
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(95, 78, 118, 0.2) 10%,
        rgba(var(--rgb-teal-deep), 0.75) 45%,
        rgba(130, 110, 160, 0.55) 70%,
        transparent 100%
    );
    box-shadow:
        0 0 12px rgba(95, 78, 118, 0.35),
        0 0 22px rgba(var(--rgb-teal-deep), 0.25),
        0 3px 14px rgba(75, 60, 100, 0.15);
}

@media (hover: hover) and (pointer: fine) {
    html.sx-scroll-ready body.page-home .fp-featured-col--infra .insight-card-wrap:hover .insight-card--3d,
    html.sx-scroll-ready body.page-home .fp-featured-col--infra .insight-card-wrap:focus-within .insight-card--3d {
        border-color: rgba(45, 160, 175, 0.52);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.82) inset,
            0 1px 0 rgba(255, 255, 255, 0.98) inset,
            0 0 48px rgba(60, 180, 195, 0.18),
            0 0 60px rgba(var(--rgb-teal-deep), 0.12),
            0 12px 40px rgba(var(--rgb-teal-deep), 0.09),
            0 24px 56px rgba(var(--rgb-text-dark), 0.07);
    }

    html.sx-scroll-ready body.page-home .fp-featured-col--consulting .insight-card-wrap:hover .insight-card--3d,
    html.sx-scroll-ready body.page-home .fp-featured-col--consulting .insight-card-wrap:focus-within .insight-card--3d {
        border-color: rgba(95, 78, 118, 0.42);
        box-shadow:
            0 0 0 1px rgba(255, 255, 255, 0.85) inset,
            0 1px 0 rgba(255, 255, 255, 0.98) inset,
            0 0 40px rgba(95, 78, 118, 0.14),
            0 0 52px rgba(var(--rgb-teal-deep), 0.1),
            0 12px 38px rgba(75, 60, 100, 0.08),
            0 22px 52px rgba(var(--rgb-text-dark), 0.06);
    }

    html.sx-scroll-ready body.page-home .fp-featured-col--consulting .insight-card-wrap:hover .insight-card__accent,
    html.sx-scroll-ready body.page-home .fp-featured-col--consulting .insight-card-wrap:focus-within .insight-card__accent {
        box-shadow:
            0 0 16px rgba(95, 78, 118, 0.45),
            0 0 28px rgba(var(--rgb-teal-deep), 0.32),
            0 4px 18px rgba(75, 60, 100, 0.2);
    }
}

/* Optional cover image wash (under sheen) */
body.page-home .fp-featured-card-photo {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background-size: cover;
    background-position: center;
    opacity: 0.11;
    z-index: 0;
    pointer-events: none;
    transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-home .insight-card-wrap.is-dynamic:hover .fp-featured-card-photo {
    opacity: 0.18;
}

/* Draggable mini scrollbar (Swiper) — under cards, inside each division panel */
body.page-home .fp-featured-swiper__scrollbar.swiper-scrollbar {
    position: relative;
    width: 100%;
    align-self: stretch;
    margin-top: 0.5rem;
    margin-bottom: 0.1rem;
    height: 6px;
    border-radius: 999px;
    background: rgba(var(--rgb-teal-deep), 0.1);
    box-shadow: inset 0 1px 2px rgba(var(--rgb-text-dark), 0.06);
    z-index: 3;
    cursor: pointer;
}

body.page-home .fp-featured-swiper__scrollbar--hidden {
    display: none !important;
}

body.page-home .fp-featured-col--infra .fp-featured-swiper__scrollbar.swiper-scrollbar {
    background: rgba(45, 140, 155, 0.12);
}

body.page-home .fp-featured-col--consulting .fp-featured-swiper__scrollbar.swiper-scrollbar {
    background: rgba(95, 78, 118, 0.12);
}

body.page-home .fp-featured-swiper__scrollbar .swiper-scrollbar-drag {
    border-radius: 999px;
    background: linear-gradient(
        90deg,
        rgba(var(--rgb-teal-deep), 0.85),
        rgba(45, 185, 198, 0.95),
        rgba(var(--rgb-teal-deep), 0.9)
    );
    box-shadow:
        0 0 10px rgba(var(--rgb-teal-deep), 0.45),
        0 0 20px rgba(45, 185, 198, 0.25),
        0 1px 0 rgba(255, 255, 255, 0.35) inset;
    transition: box-shadow 0.25s ease;
}

body.page-home .fp-featured-col--consulting .fp-featured-swiper__scrollbar .swiper-scrollbar-drag {
    background: linear-gradient(
        90deg,
        rgba(95, 78, 118, 0.75),
        rgba(var(--rgb-teal-deep), 0.8),
        rgba(120, 95, 150, 0.7)
    );
    box-shadow:
        0 0 10px rgba(95, 78, 118, 0.35),
        0 0 18px rgba(var(--rgb-teal-deep), 0.2),
        0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

body.page-home .fp-featured-swiper__scrollbar .swiper-scrollbar-drag:active,
body.page-home .fp-featured-swiper__scrollbar.swiper-scrollbar-dragging .swiper-scrollbar-drag {
    box-shadow:
        0 0 14px rgba(var(--rgb-teal-deep), 0.55),
        0 0 26px rgba(45, 185, 198, 0.35),
        0 1px 0 rgba(255, 255, 255, 0.45) inset;
}

body.page-home .fp-featured-actions {
    margin-top: clamp(0.95rem, 2.2vw, 1.35rem);
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem 1rem;
    align-items: center;
}

@media (prefers-reduced-motion: reduce) {
    body.page-home .fp-featured-orb {
        animation: none;
    }

    body.page-home .fp-featured-swiper .swiper-wrapper {
        will-change: auto;
    }
}
