.hb-stack-showcase {
    padding: 64px 0 72px;
    background:
        radial-gradient(860px 340px at 50% -120px, rgba(8, 128, 126, 0.14), transparent 62%),
        linear-gradient(180deg, #eef5f6 0%, #f7fafb 100%);
}
.hb-stack-showcase .home-shell { max-width: 1240px; }

.hb-stack-showcase__head { text-align: center; margin-bottom: 16px; }
.hb-stack-showcase__head h2 { margin: 0; color: #11323d; font-size: clamp(1.75rem, 2.1vw, 2.25rem); font-weight: 900; }
.hb-stack-showcase__head p { margin: 8px auto 0; max-width: 760px; color: #5f7786; font-size: 1rem; }
.hb-stack-showcase__how { margin-top: 6px !important; font-size: 0.92rem !important; color: #6f8795 !important; }

.hb-stack-showcase__tabs {
    position: sticky;
    top: 84px;
    z-index: 50;
    display: flex;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px;
    border-radius: 14px;
    border: 1px solid rgba(8, 128, 126, 0.14);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(6px);
    box-shadow: 0 14px 28px rgba(11, 49, 61, 0.08);
}
.hb-stack-showcase__tabs::-webkit-scrollbar { display: none; }

.hb-stack-showcase__tab {
    border: 0;
    background: transparent;
    color: #56717f;
    font-weight: 800;
    flex: 1 1 0;
    text-align: center;
    font-size: 0.98rem;
    padding: 10px 12px;
    border-radius: 10px;
    white-space: nowrap;
    transition: color .22s ease, background-color .22s ease;
}
.hb-stack-showcase__tab:hover { color: #12323d; background: rgba(8, 128, 126, 0.08); }
.hb-stack-showcase__tab.is-active { color: #0f2f39; background: rgba(8, 128, 126, 0.16); }

.hb-stack-scroll-driver {
    position: relative;
    width: 100%;
    margin-top: 32px;
}

.hb-stack-sticky-wrap {
    position: sticky;
    top: 152px;
    height: calc(100vh - 152px);
    overflow: hidden;
    isolation: isolate;
    width: 100%;
}

.hb-stack-panels-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.hb-stack-panel {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(8, 128, 126, 0.18);
    background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(245,251,252,0.98));
    box-shadow: 0 20px 42px rgba(11, 49, 61, 0.12);
    transition: box-shadow 0.3s ease, opacity 0.24s ease;
    will-change: transform, opacity;
}

.hb-stack-panel.is-active {
    border-color: rgba(8, 128, 126, 0.34);
    box-shadow: 0 24px 44px rgba(11, 49, 61, 0.16);
}
.hb-stack-panel.is-past {
    border-color: rgba(8, 128, 126, 0.2);
    box-shadow: 0 10px 20px rgba(11, 49, 61, 0.07);
}
.hb-stack-panel.is-next {
    box-shadow: 0 16px 26px rgba(11, 49, 61, 0.09);
}

.hb-stack-panel::before,
.hb-stack-panel::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 18px;
    height: 14px;
    border-radius: 0 0 14px 14px;
    pointer-events: none;
}
.hb-stack-panel::before { bottom: -11px; background: rgba(8, 128, 126, 0.1); }
.hb-stack-panel::after { bottom: -20px; left: 30px; right: 30px; background: rgba(8, 128, 126, 0.06); }

.hb-stack-panel__content {
    height: 100%;
    box-sizing: border-box;
    padding: 24px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}
.hb-stack-panel__header { text-align: center; }
.hb-stack-panel__header h3 {
    margin: 0;
    font-size: clamp(1.8rem, 2.1vw, 2.2rem);
    font-weight: 900;
    letter-spacing: 0.015em;
    background: linear-gradient(135deg, #0d2c37 0%, #0b6d6a 52%, #12a5a1 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hb-stack-panel__header p {
    margin: 12px auto 0;
    color: #5b7382;
    font-size: 1.03rem;
    line-height: 1.7;
    max-width: 900px;
}
.hb-stack-panel__header::after {
    content: "";
    display: block;
    width: 130px;
    height: 3px;
    margin: 16px auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(8, 128, 126, 0.12), rgba(8, 128, 126, 0.8), rgba(8, 128, 126, 0.12));
}

.hb-stack-hero {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(8, 128, 126, 0.24);
    border-radius: 20px;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(240,250,251,0.96));
    box-shadow: 0 18px 34px rgba(11, 49, 61, 0.12);
}
.hb-stack-hero__media { position: relative; flex: 1 1 auto; min-height: 220px; overflow: hidden; }
.hb-stack-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hb-stack-hero__overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 23, 32, 0.08) 12%, rgba(8, 23, 32, 0.5) 100%); }
.hb-stack-hero__title {
    position: absolute;
    left: 22px;
    bottom: 18px;
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    text-shadow: 0 10px 22px rgba(0,0,0,0.45);
}

@media (max-width: 991.98px) {
    .hb-stack-showcase { padding: 56px 0 62px; }
    .hb-stack-showcase__tabs { top: 74px; }
    .hb-stack-sticky-wrap { top: 136px; height: calc(100vh - 136px); }
    .hb-stack-hero__media { min-height: 240px; }
}

@media (max-width: 767.98px) {
    .hb-stack-showcase__tab { flex: 0 0 auto; }
    .hb-stack-showcase__tabs { top: 64px; }
    .hb-stack-sticky-wrap { top: 116px; height: calc(100vh - 116px); }
    .hb-stack-panel { border-radius: 16px; }
    .hb-stack-panel__content { padding: 14px; gap: 14px; }
    .hb-stack-panel__header p { font-size: .95rem; }
    .hb-stack-hero__media { min-height: 180px; }
    .hb-stack-hero__title { left: 14px; bottom: 12px; font-size: 1.34rem; }
}

.hb-deck-showcase {
    --deck-top: 152px;
    --deck-gap: 36px;
    --deck-offset-step: 22px;
    --deck-card-height: min(68vh, 640px);
    padding: 64px 0 84px;
    background:
        radial-gradient(1100px 420px at 50% -120px, rgba(8, 128, 126, 0.12), transparent 60%),
        linear-gradient(180deg, #edf5f6 0%, #f7fafb 100%);
}

.hb-deck-showcase .home-shell { max-width: 1240px; }
.hb-deck-showcase__head { text-align: center; margin-bottom: 18px; }
.hb-deck-showcase__head h2 { margin: 0; color: #11323d; font-size: clamp(1.8rem, 2.2vw, 2.5rem); font-weight: 900; }
.hb-deck-showcase__head p { margin: 8px auto 0; max-width: 760px; color: #5f7786; font-size: 1rem; }
.hb-deck-showcase__how { margin-top: 6px !important; font-size: 0.92rem !important; color: #6f8795 !important; }

.hb-deck-showcase__tabs {
    position: sticky;
    top: 84px;
    z-index: 40;
    display: flex;
    gap: 8px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 10px;
    border-radius: 16px;
    border: 1px solid rgba(8, 128, 126, 0.14);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 28px rgba(11, 49, 61, 0.08);
}

.hb-deck-showcase__tabs::-webkit-scrollbar { display: none; }

.hb-deck-showcase__tab {
    border: 0;
    background: transparent;
    color: #56717f;
    font-weight: 800;
    flex: 1 1 0;
    text-align: center;
    font-size: 0.98rem;
    padding: 10px 12px;
    border-radius: 10px;
    white-space: nowrap;
    transition: color .22s ease, background-color .22s ease, box-shadow .22s ease;
}

.hb-deck-showcase__tab:hover { color: #12323d; background: rgba(8, 128, 126, 0.08); }
.hb-deck-showcase__tab.is-active { color: #0f2f39; background: rgba(8, 128, 126, 0.16); box-shadow: inset 0 0 0 1px rgba(8, 128, 126, 0.08); }

.hb-deck-cards {
    list-style: none;
    margin: 28px 0 0;
    padding: 0 0 calc(6 * var(--deck-gap));
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--deck-gap);
}

.hb-deck-card {
    position: sticky;
    top: calc(var(--deck-top) + (var(--deck-index) * var(--deck-offset-step)));
    transform-origin: center top;
    z-index: var(--deck-index);
}

.hb-deck-card__body {
    min-height: var(--deck-card-height);
    border-radius: 0;
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 250, 251, 0.98));
    border: 1px solid rgba(8, 128, 126, 0.14);
    box-shadow: 0 28px 60px rgba(11, 49, 61, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.hb-deck-card__copy {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 8px 0 0;
}

.hb-deck-card__eyebrow {
    display: none;
}

.hb-deck-card__copy h3 {
    margin: 0;
    font-size: clamp(1.9rem, 2.45vw, 2.95rem);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #12323d;
    text-shadow: 0 10px 24px rgba(8, 128, 126, 0.08);
}

.hb-deck-card__copy p {
    margin: 16px 0 0;
    max-width: 48rem;
    color: #5b7382;
    font-size: 1rem;
    line-height: 1.64;
}

.hb-deck-card__media {
    position: relative;
    min-height: 0;
    height: min(50vh, 460px);
    width: min(100%, 1120px);
    margin: 0 auto;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(8, 128, 126, 0.16);
    box-shadow: 0 18px 34px rgba(11, 49, 61, 0.12);
    background: #eef4f5;
}

.hb-deck-card__media img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }

.hb-deck-card__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(7, 25, 34, 0.06) 12%, rgba(7, 25, 34, 0.58) 100%),
        radial-gradient(70% 60% at 80% 15%, rgba(17, 167, 164, 0.24), transparent 60%);
}

.hb-deck-card__label {
    position: absolute;
    left: 24px;
    bottom: 20px;
    color: #fff;
    font-size: 2.1rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
}

@media (max-width: 991.98px) {
    .hb-deck-showcase {
        --deck-top: 136px;
        --deck-gap: 28px;
        --deck-offset-step: 18px;
        --deck-card-height: min(64vh, 620px);
        padding: 56px 0 72px;
    }

    .hb-deck-showcase__tabs { top: 74px; }
    .hb-deck-card__body { min-height: auto; padding: 24px; }
    .hb-deck-card__media { min-height: 0; height: min(42vh, 360px); width: 100%; }
}

@media (max-width: 767.98px) {
    .hb-deck-showcase {
        --deck-top: 116px;
        --deck-gap: 22px;
        --deck-offset-step: 14px;
        --deck-card-height: min(56vh, 500px);
    }

    .hb-deck-showcase__tabs { top: 64px; }
    .hb-deck-showcase__tab { flex: 0 0 auto; }
    .hb-deck-card__body { padding: 16px; border-radius: 0; gap: 18px; }
    .hb-deck-card__copy h3 { font-size: 1.7rem; }
    .hb-deck-card__copy p { font-size: 0.92rem; }
    .hb-deck-card__media { min-height: 0; height: min(34vh, 260px); border-radius: 0; width: 100%; }
    .hb-deck-card__label { left: 16px; bottom: 14px; font-size: 1.35rem; }
}
