.wbp-specialty,
.wbp-path {
    --wbp-blue: var(--wb-blue, #007694);
    --wbp-blue-deep: var(--wb-blue-deep, #305368);
    --wbp-ink: var(--wb-ink, #111d20);
    --wbp-muted: var(--wb-muted, #647281);
    --wbp-radius: 26px;
    position: relative;
    padding: clamp(92px, 9vw, 150px) 0;
    overflow: clip;
}

.wbp-specialty { background: #fdfefe; }

.wbp-specialty > .wb-shell {
    width: min(1660px, calc(100% - 48px));
    padding: clamp(42px, 4vw, 70px);
    border: 1px solid rgba(19, 103, 124, .08);
    border-radius: 48px;
    background: linear-gradient(145deg, #f8fcfd 0%, #eef8fa 100%);
    box-shadow: 0 22px 70px rgba(22, 93, 111, .08);
}

.wbp-specialty__head {
    max-width: 940px;
    margin: 0 auto 70px;
    text-align: center;
}

.wbp-specialty__head > p,
.wbp-path__head > p {
    margin: 0 0 18px;
    color: var(--wbp-blue);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .045em;
}

.wbp-specialty__head h2,
.wbp-path__head h2 {
    margin: 0;
    color: var(--wbp-ink);
    font-size: clamp(40px, 4.2vw, 68px);
    line-height: 1.15;
    letter-spacing: -.055em;
}

.wbp-specialty__head h2 em {
    color: var(--wbp-blue);
    font-style: normal;
    white-space: nowrap;
}

.wbp-specialty__head > span,
.wbp-path__head > span {
    display: block;
    max-width: 680px;
    margin: 24px auto 0;
    color: var(--wbp-muted);
    font-size: 18px;
}

.wbp-specialty__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(14px, 1.6vw, 24px);
}

.wbp-specialty__card {
    position: relative;
    min-width: 0;
    min-height: 520px;
    overflow: hidden;
    background: #174c59;
    border-radius: var(--wbp-radius);
    box-shadow: 0 18px 48px rgba(21, 87, 104, .12);
    isolation: isolate;
    transform: translateY(0);
    transition: transform .42s cubic-bezier(.16, 1, .3, 1), box-shadow .42s cubic-bezier(.16, 1, .3, 1);
}

.wbp-specialty__card > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform .8s cubic-bezier(.16, 1, .3, 1), filter .4s ease;
}

.wbp-specialty__shade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(6, 36, 43, .02) 15%, rgba(8, 41, 49, .2) 48%, rgba(7, 36, 43, .88) 100%);
    transition: background .35s ease;
}

.wbp-specialty__body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    color: #f8fcfd;
}

.wbp-specialty__body > button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 42px;
    gap: 18px;
    align-items: end;
    width: 100%;
    padding: 32px 30px;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.wbp-specialty__body > button:focus-visible {
    outline: 3px solid #9fe3f4;
    outline-offset: -6px;
}

.wbp-specialty__body > button small,
.wbp-specialty__body > button strong {
    display: block;
}

.wbp-specialty__body > button small {
    margin-bottom: 8px;
    color: #a9e3f2;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .07em;
}

.wbp-specialty__body > button strong {
    font-size: clamp(28px, 2.25vw, 36px);
    font-weight: 820;
    line-height: 1.2;
    letter-spacing: -.04em;
}

.wbp-specialty__body > button i {
    position: relative;
    display: block;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 50%;
}

.wbp-specialty__body > button i::before,
.wbp-specialty__body > button i::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    background: currentColor;
    transform: translate(-50%, -50%);
    transition: transform .28s ease;
}

.wbp-specialty__body > button i::after { transform: translate(-50%, -50%) rotate(90deg); }
.wbp-specialty__card.is-active .wbp-specialty__body > button i::after { transform: translate(-50%, -50%) rotate(0); }

.wbp-specialty__panel {
    padding: 0 30px 30px;
    animation: wbpPanelIn .35s cubic-bezier(.16, 1, .3, 1) both;
}

.wbp-specialty__panel[hidden] { display: none; }

.wbp-specialty__panel > p {
    margin: 0 0 17px;
    color: rgba(248, 252, 253, .82);
    font-size: 16px;
    line-height: 1.65;
}

.wbp-specialty__panel nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 14px;
}

.wbp-specialty__panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    min-height: 44px;
    padding: 10px 2px;
    color: #f8fcfd;
    border-top: 1px solid rgba(255, 255, 255, .24);
    font-size: 15px;
    font-weight: 740;
}

.wbp-specialty__panel a:hover,
.wbp-specialty__panel a:focus-visible { color: #9fe3f4; }
.wbp-specialty__panel a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

.wbp-specialty__card.is-active {
    z-index: 2;
    box-shadow: 0 30px 70px rgba(21, 87, 104, .24);
    transform: translateY(-10px);
}

.wbp-specialty__card.is-active > img {
    filter: saturate(.88) contrast(1.03);
    transform: scale(1.075);
}

.wbp-specialty__card.is-active .wbp-specialty__shade {
    background: linear-gradient(180deg, rgba(6, 36, 43, .12) 8%, rgba(8, 41, 49, .45) 45%, rgba(7, 36, 43, .96) 100%);
}

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

.wbp-path { background: #f6fafb; }

.wbp-path__head {
    max-width: 840px;
    margin-bottom: 64px;
}

.wbp-path__head > span { margin-left: 0; }

.wbp-path__motion {
    position: relative;
    min-height: clamp(180px, 19vw, 300px);
    margin-bottom: 20px;
    overflow: hidden;
    background: #fbfdfd;
    border: 1px solid rgba(19, 103, 124, .08);
    border-radius: var(--wbp-radius);
    box-shadow: 0 18px 54px rgba(22, 93, 111, .08);
}

.wbp-path__motion::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    box-shadow: inset 0 0 60px rgba(17, 94, 113, .035);
}

.wbp-path__motion > img,
.wbp-path__motion > video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.wbp-path__motion > img { z-index: 0; }
.wbp-path__motion > video { z-index: 1; }

.wbp-path__grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

.wbp-path__card {
    position: relative;
    min-height: 310px;
    overflow: hidden;
    color: #175160;
    background: #e8eff1;
    border: 1px solid rgba(19, 103, 124, .06);
    border-radius: var(--wbp-radius);
    isolation: isolate;
    transform: translateY(0);
    transition: transform .38s cubic-bezier(.16, 1, .3, 1), box-shadow .38s cubic-bezier(.16, 1, .3, 1);
}

.wbp-path__card.is-colon { grid-column: span 4; background: #e8eeef; }
.wbp-path__card.is-growth { grid-column: span 8; color: #f7fcfd; background: #178ba8; }
.wbp-path__card.is-endoscopy { grid-column: span 7; background: #c9ebf3; }
.wbp-path__card.is-consult { grid-column: span 5; background: #e7edee; }

.wbp-path__copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: min(58%, 520px);
    min-height: 100%;
    padding: 38px;
}

.wbp-path__copy small,
.wbp-path__copy strong,
.wbp-path__copy > span,
.wbp-path__copy b { display: block; }

.wbp-path__copy small {
    color: var(--wbp-blue);
    font-size: 13px;
    font-weight: 800;
}

.wbp-path__card.is-growth .wbp-path__copy small { color: #9fe3f4; }

.wbp-path__copy strong {
    margin-top: 16px;
    font-size: clamp(25px, 2.2vw, 34px);
    line-height: 1.18;
    letter-spacing: -.04em;
}

.wbp-path__copy > span {
    margin-top: 12px;
    color: #52767f;
    font-size: 15px;
}

.wbp-path__card.is-growth .wbp-path__copy > span { color: rgba(247, 252, 253, .82); }

.wbp-path__copy b {
    margin-top: auto;
    padding-top: 24px;
    font-size: 14px;
}

.wbp-path__copy b i {
    display: inline-block;
    margin-left: 8px;
    font-style: normal;
    transition: transform .25s ease;
}

.wbp-path__card > img {
    position: absolute;
    z-index: 1;
    right: 24px;
    bottom: -7%;
    width: auto;
    height: auto;
    max-width: 45%;
    max-height: 92%;
    object-fit: contain;
    filter: drop-shadow(0 18px 22px rgba(19, 81, 97, .16));
    transform: translate3d(0, 4px, 0) scale(.96);
    transition: transform .65s cubic-bezier(.16, 1, .3, 1);
    animation: wbpEmojiBob 4.8s ease-in-out infinite;
}

.wbp-path__card.is-growth > img {
    right: 20px;
    max-width: 43%;
    max-height: 95%;
    animation-delay: -.9s;
}

.wbp-path__card.is-colon > img { max-width: 40%; animation-delay: -1.8s; }
.wbp-path__card.is-endoscopy > img { max-width: 46%; max-height: 96%; animation-delay: -2.7s; }
.wbp-path__card.is-consult > img { max-width: 43%; animation-delay: -3.6s; }

@keyframes wbpEmojiBob {
    0%, 100% { transform: translate3d(0, 5px, 0) rotate(-1deg) scale(.96); }
    50% { transform: translate3d(0, -8px, 0) rotate(1deg) scale(1); }
}

.wbp-path__card:hover,
.wbp-path__card:focus-visible {
    box-shadow: 0 26px 64px rgba(22, 93, 111, .18);
    transform: translateY(-7px);
}

.wbp-path__card:hover > img,
.wbp-path__card:focus-visible > img { transform: translate3d(0, 0, 0) scale(1); }
.wbp-path__card:hover .wbp-path__copy b i,
.wbp-path__card:focus-visible .wbp-path__copy b i { transform: translateX(5px); }
.wbp-path__card:focus-visible { outline: 3px solid var(--wbp-blue); outline-offset: 4px; }
.wbp-path__card.is-growth:focus-visible { outline-color: #9fe3f4; }
.wbp-path__card:active { transform: scale(.985); }

.wbp-path.is-ready [data-wbp-reveal] {
    opacity: 0;
    transform: translateY(28px);
}

.wbp-path.is-ready [data-wbp-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity .65s cubic-bezier(.16, 1, .3, 1) calc(var(--wbp-order) * 80ms), transform .65s cubic-bezier(.16, 1, .3, 1) calc(var(--wbp-order) * 80ms), box-shadow .38s ease;
}

.wbp-path.is-ready .wbp-path__card.is-visible:hover,
.wbp-path.is-ready .wbp-path__card.is-visible:focus-visible { transform: translateY(-7px); }
.wbp-path.is-ready .wbp-path__card.is-visible:active { transform: scale(.985); }

@media (max-width: 1100px) {
    .wbp-specialty__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }
    .wbp-specialty__card { min-height: 500px; }
    .wbp-path__card.is-colon,
    .wbp-path__card.is-growth,
    .wbp-path__card.is-endoscopy,
    .wbp-path__card.is-consult { grid-column: span 6; }
    .wbp-path__copy { width: 62%; padding: 32px; }
}

@media (max-width: 767px) {
    .wbp-specialty,
    .wbp-path { padding: 82px 0; overflow: hidden; }
    .wbp-specialty .wb-shell,
    .wbp-path .wb-shell { width: min(100% - 36px, 1600px); }
    .wbp-specialty > .wb-shell { width: calc(100% - 24px); padding: 32px 20px; border-radius: 30px; }
    .wbp-specialty__head { margin-bottom: 42px; text-align: left; }
    .wbp-specialty__head h2,
    .wbp-path__head h2 { font-size: clamp(34px, 10vw, 48px); }
    .wbp-specialty__head > span,
    .wbp-path__head > span { margin: 18px 0 0; font-size: 16px; }
    .wbp-specialty__grid {
        grid-template-columns: none;
        grid-auto-flow: column;
        grid-auto-columns: min(84vw, 390px);
        gap: 14px;
        margin-right: -18px;
        padding: 10px 18px 28px 0;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-padding-left: 0;
        scroll-snap-type: inline mandatory;
        scrollbar-width: thin;
    }
    .wbp-specialty__card {
        min-height: 500px;
        scroll-snap-align: start;
    }
    .wbp-specialty__card.is-active { transform: translateY(-6px); }
    .wbp-specialty__body > button { padding: 28px 24px; }
    .wbp-specialty__panel { padding: 0 24px 26px; }
    .wbp-path__head { margin-bottom: 42px; }
    .wbp-path__motion { min-height: 180px; }
    .wbp-path__motion > img,
    .wbp-path__motion > video { object-fit: contain; }
    .wbp-path__grid { grid-template-columns: 1fr; gap: 14px; }
    .wbp-path__card.is-colon,
    .wbp-path__card.is-growth,
    .wbp-path__card.is-endoscopy,
    .wbp-path__card.is-consult { grid-column: auto; }
    .wbp-path__card { min-height: 300px; }
    .wbp-path__copy { width: 66%; padding: 28px; }
    .wbp-path__copy strong { font-size: 27px; }
    .wbp-path__copy > span { font-size: 14px; }
    .wbp-path__card > img { right: 8px; bottom: -3%; max-width: 45%; max-height: 78%; opacity: 1; }
    .wbp-path__card.is-growth > img { right: 0; max-width: 46%; }
    .wbp-path__card.is-endoscopy > img { max-width: 48%; }
}

@media (max-width: 430px) {
    .wbp-specialty__grid { grid-auto-columns: 88vw; }
    .wbp-specialty__panel nav { grid-template-columns: 1fr; }
    .wbp-specialty__card { min-height: 540px; }
    .wbp-path__card { min-height: 330px; }
    .wbp-path__copy { width: 78%; padding: 25px; }
    .wbp-path__copy > span { max-width: 220px; }
    .wbp-path__card > img { max-width: 46%; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .wbp-specialty__card,
    .wbp-specialty__card > img,
    .wbp-specialty__shade,
    .wbp-specialty__body > button i::after,
    .wbp-path__card,
    .wbp-path__card > img,
    .wbp-path__copy b i,
    .wbp-path.is-ready [data-wbp-reveal],
    .wbp-path.is-ready [data-wbp-reveal].is-visible {
        animation: none !important;
        transition: none !important;
    }
    .wbp-path.is-ready [data-wbp-reveal] { opacity: 1; transform: none; }
    .wbp-path__motion > video { display: none; }
}
