.selcom-iw {
    --selcom-title: #1c1c1c;
    --selcom-body: #2c2c2c;
    --selcom-line: rgba(179, 16, 13, 0.18);
    --selcom-shell-shadow: none;
    --selcom-card-shadow: 0 18px 44px -28px rgba(28, 28, 28, 0.18);
    --selcom-card-shadow-strong: 0 28px 64px -30px rgba(28, 28, 28, 0.28);
    --selcom-active-tone: #b3100d;
    --selcom-glow-x: 50%;
    --selcom-glow-y: 34%;
    --selcom-pentagon-shape: polygon(22% 6%, 78% 6%, 96% 42%, 50% 96%, 4% 42%);
    position: relative;
    width: 100%;
    padding: 18px 0 28px;
    overflow: hidden;
    font-family: "NexaLight", "Nexa Light", sans-serif;
    background: #ffffff;
}

.selcom-iw *,
.selcom-iw *::before,
.selcom-iw *::after {
    box-sizing: border-box;
}

.selcom-iw__shell {
    position: relative;
    width: 100%;
    max-width: 1640px;
    margin: 0 auto;
    padding: 42px 42px 34px;
    background: #ffffff;
    isolation: isolate;
}

.selcom-iw__shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(rgba(179, 16, 13, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(179, 16, 13, 0.045) 1px, transparent 1px),
        radial-gradient(circle at center, rgba(255, 255, 255, 0.98) 0, rgba(255, 255, 255, 0.92) 35%, rgba(255, 255, 255, 0) 72%);
    background-size: 42px 42px, 42px 42px, auto;
    pointer-events: none;
    z-index: -1;
}

.selcom-iw__topline {
    display: grid;
    gap: 12px;
    margin-bottom: 32px;
    text-align: center;
    justify-items: center;
}

.selcom-iw__section-kicker {
    margin: 0;
    color: #b3100d;
    font-size: 15px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
}

.selcom-iw__section-title {
    margin: 0;
    max-width: 1080px;
    color: #1c1c1c;
    font-family: "Nexa Bold", "NexaBold", sans-serif;
    font-size: clamp(25px, 2.05vw, 38px);
    line-height: 1.18;
}

.selcom-iw__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) minmax(320px, 420px) minmax(250px, 1fr);
    grid-template-areas:
        ". hub ."
        "analysis . design"
        "development . implementation"
        ". maintenance ."
        "details details details";
    gap: 24px 34px;
    align-items: center;
    min-height: 1050px;
    justify-items: center;
}

.selcom-iw__connections {
    position: absolute;
    inset: 88px 0 262px;
    width: 100%;
    height: auto;
    overflow: visible;
    pointer-events: none;
    z-index: 0;
}

.selcom-iw__card,
.selcom-iw__hub-wrap,
.selcom-iw__details {
    position: relative;
    z-index: 1;
}

.selcom-iw__card {
    appearance: none;
    border: 1px solid rgba(28, 28, 28, 0.08);
    border-radius: 24px;
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.98), rgba(248, 248, 248, 0.94));
    box-shadow: var(--selcom-card-shadow);
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: 16px;
    align-items: center;
    width: min(100%, 360px);
    min-height: 112px;
    padding: 18px;
    color: var(--selcom-title);
    text-align: left;
    cursor: pointer;
    transition:
        transform 260ms ease,
        box-shadow 260ms ease,
        filter 260ms ease,
        border-color 260ms ease;
    font: inherit;
}

.selcom-iw__card::before,
.selcom-iw__card::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}

.selcom-iw__card::before {
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0) 38%),
        radial-gradient(circle at 14% 18%, rgba(255, 255, 255, 0.86), transparent 34%);
    opacity: 0.95;
}

.selcom-iw__card::after {
    inset: -1px;
    border: 1px solid transparent;
    box-shadow: 0 0 0 0 transparent;
    opacity: 0;
    transition: opacity 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.selcom-iw__card:hover,
.selcom-iw__card:focus-visible,
.selcom-iw__card.is-active {
    transform: translateY(-8px) scale(1.015);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: var(--selcom-card-shadow-strong);
    filter: drop-shadow(0 0 18px color-mix(in srgb, var(--tone) 48%, transparent));
    outline: none;
}

.selcom-iw__card:hover::after,
.selcom-iw__card:focus-visible::after,
.selcom-iw__card.is-active::after {
    border-color: var(--tone);
    box-shadow:
        0 0 0 1px var(--tone),
        0 0 28px -4px color-mix(in srgb, var(--tone) 70%, transparent);
    opacity: 1;
    animation: selcomCardPulse 1.45s ease-in-out infinite;
}

.selcom-iw__card-icon {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    display: inline-grid;
    place-items: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 244, 244, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.selcom-iw__card-icon svg {
    width: 34px;
    height: 34px;
    fill: none;
    stroke: #2c2c2c;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.1;
    transition: stroke 260ms ease, transform 260ms ease;
}

.selcom-iw__card:hover .selcom-iw__card-icon svg,
.selcom-iw__card:focus-visible .selcom-iw__card-icon svg,
.selcom-iw__card.is-active .selcom-iw__card-icon svg {
    stroke: var(--tone);
    transform: scale(1.05);
}

.selcom-iw__card-copy {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.selcom-iw__card-kicker {
    display: block;
    margin: 0;
    color: var(--tone);
    font-size: 14px;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.selcom-iw__card-title {
    display: block;
    margin: 0;
    color: var(--selcom-title);
    font-family: "Nexa Bold", "NexaBold", sans-serif;
    font-size: clamp(15px, 1vw, 18px);
    line-height: 1.14;
    overflow-wrap: anywhere;
}

.selcom-iw__card--analysis {
    grid-area: analysis;
    align-self: end;
    justify-self: end;
}

.selcom-iw__card--design {
    grid-area: design;
    align-self: end;
    justify-self: start;
}

.selcom-iw__card--development {
    grid-area: development;
    align-self: start;
    justify-self: end;
}

.selcom-iw__card--implementation {
    grid-area: implementation;
    align-self: start;
    justify-self: start;
}

.selcom-iw__card--maintenance {
    grid-area: maintenance;
    align-self: start;
    justify-self: center;
}

.selcom-iw__hub-wrap {
    grid-area: hub;
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 388px;
    margin-top: 6px;
}

.selcom-iw__rings {
    position: absolute;
    width: 420px;
    max-width: 100%;
    aspect-ratio: 1;
    clip-path: var(--selcom-pentagon-shape);
    background:
        radial-gradient(circle at 50% 34%, rgba(179, 16, 13, 0.12), rgba(179, 16, 13, 0) 55%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    opacity: 0.84;
    filter: blur(0.2px);
}

.selcom-iw__rings::before,
.selcom-iw__rings::after {
    content: "";
    position: absolute;
    inset: 50%;
    transform: translate(-50%, -50%);
    clip-path: var(--selcom-pentagon-shape);
    pointer-events: none;
}

.selcom-iw__rings::before {
    width: 82%;
    aspect-ratio: 1;
    border: 1px solid rgba(179, 16, 13, 0.14);
    box-shadow:
        0 0 0 14px rgba(179, 16, 13, 0.035),
        0 0 42px rgba(179, 16, 13, 0.08);
}

.selcom-iw__rings::after {
    width: 108%;
    aspect-ratio: 1;
    border: 1px solid rgba(179, 16, 13, 0.1);
}

.selcom-iw__hub {
    position: relative;
    width: 350px;
    max-width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    filter: drop-shadow(0 26px 34px rgba(28, 28, 28, 0.18));
}

.selcom-iw__hub-frame,
.selcom-iw__hub-mid,
.selcom-iw__hub-core {
    position: absolute;
    inset: 0;
    clip-path: var(--selcom-pentagon-shape);
}

.selcom-iw__hub-frame::after,
.selcom-iw__hub-core::before {
    content: "";
    position: absolute;
    inset: 0;
    clip-path: inherit;
    pointer-events: none;
}

.selcom-iw__hub-frame {
    inset: 2%;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(218, 218, 218, 0.54)),
        linear-gradient(90deg, rgba(248, 248, 248, 0.72), rgba(220, 220, 220, 0.46));
    box-shadow:
        inset 0 0 0 2px rgba(255, 255, 255, 0.54),
        0 0 44px rgba(255, 255, 255, 0.28);
}

.selcom-iw__hub-frame::after {
    background: radial-gradient(circle at var(--selcom-glow-x) var(--selcom-glow-y), rgba(179, 16, 13, 0.82) 0, rgba(255, 255, 255, 0) 44%);
    opacity: 0.42;
    mix-blend-mode: screen;
}

.selcom-iw__hub-mid {
    inset: 8%;
    background:
        linear-gradient(145deg, rgba(238, 238, 238, 0.9), rgba(135, 135, 135, 0.26)),
        linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06));
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.58),
        inset 0 0 0 8px rgba(255, 255, 255, 0.04);
}

.selcom-iw__hub-core {
    inset: 13%;
    display: grid;
    place-items: center;
    gap: 10px;
    padding: 34px 30px 46px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 22%, rgba(179, 16, 13, 0.22), transparent 36%),
        linear-gradient(180deg, #2c2c2c 0%, #1c1c1c 56%, #111111 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 30px -10px rgba(255, 255, 255, 0.16),
        0 0 20px -8px var(--selcom-active-tone);
}

.selcom-iw__hub-core::before {
    background: radial-gradient(circle at var(--selcom-glow-x) var(--selcom-glow-y), rgba(255, 255, 255, 0.14) 0, rgba(179, 16, 13, 0.88) 18%, rgba(255, 255, 255, 0) 52%);
    opacity: 0.52;
    z-index: 0;
}

.selcom-iw__hub-code {
    position: relative;
    z-index: 1;
    color: #ffffff;
    font-family: "Nexa Bold", "NexaBold", sans-serif;
    font-size: clamp(30px, 2.2vw, 42px);
    line-height: 0.98;
    text-transform: uppercase;
}

.selcom-iw__hub-sub {
    margin: 0;
    position: relative;
    z-index: 1;
    max-width: 220px;
    color: rgba(255, 255, 255, 0.92);
    font-size: clamp(14px, 0.92vw, 16px);
    line-height: 1.22;
    text-align: center;
}

.selcom-iw__details {
    grid-area: details;
    width: 100%;
    padding: 24px 28px 26px;
    border-radius: 30px;
    border: 1px solid rgba(28, 28, 28, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(248, 248, 248, 0.88));
    box-shadow: var(--selcom-card-shadow);
    min-height: 212px;
}

.selcom-iw__details::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

.selcom-iw__details-kicker {
    margin: 0 0 12px;
    color: var(--selcom-active-tone);
    font-size: 16px;
    line-height: 1;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.selcom-iw__details-title {
    margin: 0;
    color: var(--selcom-title);
    font-family: "Nexa Bold", "NexaBold", sans-serif;
    font-size: clamp(28px, 2vw, 36px);
    line-height: 1.18;
}

.selcom-iw__details-body {
    margin: 18px 0 0;
    max-width: 92ch;
    color: var(--selcom-body);
    font-size: 18px;
    line-height: 1.58;
}

.selcom-iw__connection-track,
.selcom-iw__connection-flow,
.selcom-iw__connection-glow {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.selcom-iw__connection-track {
    stroke: var(--selcom-line);
    stroke-width: 2.4;
}

.selcom-iw__connection-glow {
    stroke: var(--tone);
    stroke-width: 13;
    opacity: 0;
}

.selcom-iw__connection-flow {
    stroke: var(--tone);
    stroke-width: 3.4;
    stroke-dasharray: 16 18;
    opacity: 0;
}

.selcom-iw__connection-node {
    fill: rgba(255, 255, 255, 0.96);
    stroke: rgba(179, 16, 13, 0.28);
    stroke-width: 1.5;
    transition: fill 240ms ease, stroke 240ms ease, filter 240ms ease;
}

.selcom-iw__connection.is-active .selcom-iw__connection-track {
    stroke: var(--tone);
    opacity: 0.58;
}

.selcom-iw__connection.is-active .selcom-iw__connection-glow {
    opacity: 0.24;
    filter: blur(8px);
}

.selcom-iw__connection.is-active .selcom-iw__connection-flow {
    opacity: 1;
    animation:
        selcomBusFlow 1.12s linear infinite,
        selcomBusPulse 1.5s ease-in-out infinite;
}

.selcom-iw__connection.is-active .selcom-iw__connection-node {
    fill: var(--tone);
    stroke: rgba(255, 255, 255, 0.88);
    filter: drop-shadow(0 0 9px color-mix(in srgb, var(--tone) 70%, transparent));
}

@keyframes selcomCardPulse {
    0%, 100% {
        box-shadow:
            0 0 0 1px var(--tone),
            0 0 18px -6px color-mix(in srgb, var(--tone) 70%, transparent);
    }
    50% {
        box-shadow:
            0 0 0 1px var(--tone),
            0 0 30px 2px color-mix(in srgb, var(--tone) 82%, transparent);
    }
}

@keyframes selcomBusFlow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -34; }
}

@keyframes selcomBusPulse {
    0%, 100% {
        stroke-width: 3.4;
        filter: drop-shadow(0 0 4px color-mix(in srgb, var(--tone) 70%, transparent));
    }
    50% {
        stroke-width: 4.6;
        filter: drop-shadow(0 0 12px color-mix(in srgb, var(--tone) 85%, transparent));
    }
}

@media (max-width: 1280px) {
    .selcom-iw__grid {
        grid-template-columns: minmax(240px, 1fr) minmax(300px, 360px) minmax(240px, 1fr);
        gap: 22px 24px;
    }

    .selcom-iw__hub {
        width: 320px;
    }

    .selcom-iw__card {
        width: min(100%, 320px);
    }
}

@media (max-width: 1100px) {
    .selcom-iw__grid {
        grid-template-columns: repeat(2, minmax(280px, 1fr));
        grid-template-areas:
            "hub hub"
            "analysis design"
            "development implementation"
            "maintenance maintenance"
            "details details";
        gap: 20px;
        min-height: auto;
    }

    .selcom-iw__connections {
        display: none;
    }

    .selcom-iw__hub-wrap {
        min-height: 340px;
    }

    .selcom-iw__card,
    .selcom-iw__card--analysis,
    .selcom-iw__card--design,
    .selcom-iw__card--development,
    .selcom-iw__card--implementation,
    .selcom-iw__card--maintenance {
        width: 100%;
        justify-self: stretch;
        align-self: stretch;
    }
}

@media (max-width: 767px) {
    .selcom-iw {
        padding: 10px 0 18px;
    }

    .selcom-iw__shell {
        padding: 20px 14px 18px;
    }

    .selcom-iw__topline {
        justify-items: start;
        text-align: left;
        margin-bottom: 22px;
    }

    .selcom-iw__section-title {
        font-size: 28px;
        line-height: 1.16;
    }

    .selcom-iw__grid {
        grid-template-columns: 1fr;
        grid-template-areas:
            "hub"
            "analysis"
            "design"
            "development"
            "implementation"
            "maintenance"
            "details";
        gap: 16px;
        min-height: auto;
    }

    .selcom-iw__shell::before,
    .selcom-iw__connections {
        display: none;
    }

    .selcom-iw__hub-wrap {
        min-height: 300px;
    }

    .selcom-iw__hub {
        width: 280px;
    }

    .selcom-iw__hub-code {
        font-size: 26px;
    }

    .selcom-iw__hub-sub {
        max-width: 180px;
        font-size: 13px;
    }

    .selcom-iw__card {
        width: 100%;
        grid-template-columns: 58px 1fr;
        gap: 14px;
        min-height: 96px;
        padding: 16px;
    }

    .selcom-iw__card-icon {
        width: 58px;
        height: 58px;
        border-radius: 18px;
    }

    .selcom-iw__card-icon svg {
        width: 32px;
        height: 32px;
    }

    .selcom-iw__card-kicker,
    .selcom-iw__details-kicker {
        font-size: 13px;
        letter-spacing: 0.18em;
    }

    .selcom-iw__card-title {
        font-size: 16px;
    }

    .selcom-iw__details {
        padding: 18px 16px 20px;
        min-height: 0;
    }

    .selcom-iw__details-title {
        font-size: 24px;
    }

    .selcom-iw__details-body {
        font-size: 16px;
        line-height: 1.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .selcom-iw *,
    .selcom-iw *::before,
    .selcom-iw *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
    }
}
