/* Silver Ivy Hero Showcase - Frontend */
.sihs-hero,
.sihs-hero * {
    box-sizing: border-box;
}

.sihs-hero {
    --sihs-height: 820px;
    --sihs-overlay: 0.58;
    --sihs-angle: -3deg;
    --sihs-card-width: 620px;
    --sihs-gap: clamp(18px, 2.3vw, 34px);
    position: relative;
    min-height: var(--sihs-height);
    width: 100%;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background:
        radial-gradient(circle at 72% 18%, rgba(48, 120, 255, 0.32), transparent 34%),
        radial-gradient(circle at 24% 90%, rgba(44, 191, 255, 0.14), transparent 38%),
        linear-gradient(180deg, #030713 0%, #061229 48%, #02050d 100%);
    font-family: inherit;
}

.sihs-bg,
.sihs-bg::after,
.sihs-overlay,
.sihs-noise {
    position: absolute;
    inset: 0;
}

.sihs-bg {
    z-index: -4;
    overflow: hidden;
}

.sihs-video,
.sihs-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: saturate(1.08) contrast(1.04) brightness(0.82);
    transform: scale(1.02);
}

.sihs-bg::after {
    content: "";
    background:
        radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.06), transparent 28%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.62));
    z-index: 1;
}

.sihs-overlay {
    z-index: -3;
    background:
        linear-gradient(90deg, rgba(1, 6, 18, 0.72), rgba(1, 7, 24, 0.30) 45%, rgba(1, 5, 16, 0.74)),
        linear-gradient(180deg, rgba(2, 7, 20, var(--sihs-overlay)), rgba(2, 7, 20, 0.26) 54%, rgba(2, 7, 20, 0.92));
}

.sihs-noise {
    z-index: -2;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.12) 0 1px, transparent 1px),
        radial-gradient(circle at 70% 20%, rgba(115,180,255,0.18) 0 1px, transparent 1px),
        radial-gradient(circle at 40% 80%, rgba(255,255,255,0.09) 0 1px, transparent 1px);
    background-size: 120px 120px, 180px 180px, 220px 220px;
}

.sihs-content {
    position: relative;
    z-index: 3;
    max-width: 920px;
    margin: 0 auto;
    padding: clamp(110px, 16vh, 170px) 24px 330px;
    text-align: center;
}

.sihs-eyebrow {
    margin: 0 0 18px;
    color: #96c8ff;
    font-size: clamp(12px, 1.1vw, 15px);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    text-shadow: 0 0 24px rgba(66, 149, 255, 0.32);
}

.sihs-heading {
    max-width: 820px;
    margin: 0 auto;
    color: #ffffff;
    font-size: clamp(46px, 7vw, 96px);
    line-height: 0.93;
    letter-spacing: -0.065em;
    font-weight: 800;
    text-wrap: balance;
    text-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.sihs-subheading {
    max-width: 680px;
    margin: 24px auto 0;
    color: rgba(238, 246, 255, 0.88);
    font-size: clamp(16px, 1.45vw, 20px);
    line-height: 1.65;
    font-weight: 500;
    text-wrap: balance;
}

.sihs-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 34px;
}

.sihs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0 30px;
    border-radius: 0;
    font-size: 15px;
    line-height: 1;
    font-weight: 800;
    text-decoration: none !important;
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease, color 0.24s ease, border-color 0.24s ease;
    will-change: transform;
}

.sihs-btn:hover,
.sihs-btn:focus {
    transform: translateY(-2px);
}

.sihs-btn-primary {
    color: #06101f !important;
    background: #ffffff;
    border: 1px solid rgba(255,255,255,0.92);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28), 0 0 0 1px rgba(255,255,255,0.22) inset;
}

.sihs-btn-primary:hover,
.sihs-btn-primary:focus {
    background: #eaf4ff;
    box-shadow: 0 24px 54px rgba(0, 55, 155, 0.30), 0 0 24px rgba(100, 178, 255, 0.20);
}

.sihs-btn-secondary {
    color: #ffffff !important;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(210, 235, 255, 0.24);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.sihs-btn-secondary:hover,
.sihs-btn-secondary:focus {
    background: rgba(255,255,255,0.14);
    border-color: rgba(235, 248, 255, 0.45);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
}

.sihs-note {
    margin: 22px auto 0;
    color: rgba(238, 246, 255, 0.82);
    font-size: 15px;
    font-weight: 600;
}

/* Showcase carousel */
.sihs-showcase {
    --sihs-current-angle: var(--sihs-angle);
    position: absolute;
    z-index: 4;
    left: 0;
    right: 0;
    bottom: -34px;
    padding: 0 2vw 10px;
    overflow: hidden;
    transform: rotate(var(--sihs-current-angle));
    transform-origin: center;
    pointer-events: auto;
    touch-action: pan-y;
}

.sihs-showcase::before,
.sihs-showcase::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 18vw;
    min-width: 130px;
    z-index: 7;
    pointer-events: none;
}

.sihs-showcase::before {
    left: 0;
    background: linear-gradient(90deg, rgba(2, 7, 20, 0.94), rgba(2, 7, 20, 0.52) 52%, rgba(2, 7, 20, 0));
}

.sihs-showcase::after {
    right: 0;
    background: linear-gradient(270deg, rgba(2, 7, 20, 0.94), rgba(2, 7, 20, 0.52) 52%, rgba(2, 7, 20, 0));
}

.sihs-track {
    display: flex;
    align-items: center;
    gap: var(--sihs-gap);
    width: max-content;
    padding: 36px 10vw 90px;
    transition: transform 900ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
}

.sihs-site-card {
    position: relative;
    display: block;
    flex: 0 0 auto;
    width: min(var(--sihs-card-width), 72vw);
    aspect-ratio: 16 / 9.1;
    overflow: hidden;
    border-radius: 20px;
    color: #fff;
    text-decoration: none !important;
    background: rgba(8, 16, 35, 0.88);
    border: 1px solid rgba(220, 240, 255, 0.20);
    box-shadow:
        0 26px 70px rgba(0, 0, 0, 0.48),
        0 0 0 1px rgba(255,255,255,0.06) inset,
        0 0 34px rgba(70, 145, 255, 0.08);
    transform: translateY(0) scale(0.82) rotate(-1deg);
    transform-origin: center center;
    opacity: 0.42;
    filter: saturate(0.80) brightness(0.66);
    transition:
        transform 900ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 900ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 900ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 900ms cubic-bezier(0.22, 1, 0.36, 1),
        border-color 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sihs-site-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    background: linear-gradient(180deg, rgba(3, 9, 20, 0.14), rgba(3, 9, 20, 0.60));
    transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1), background 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.sihs-site-card.is-prev {
    opacity: 0.72;
    filter: saturate(0.90) brightness(0.82);
    transform: translateY(14px) scale(0.90) rotate(-4deg);
}

.sihs-site-card.is-next {
    opacity: 0.72;
    filter: saturate(0.90) brightness(0.82);
    transform: translateY(14px) scale(0.90) rotate(4deg);
}

.sihs-site-card.is-active {
    opacity: 1;
    filter: none;
    transform: translateY(0) scale(1) rotate(calc(var(--sihs-current-angle) * -1));
    border-color: rgba(232, 246, 255, 0.44);
    box-shadow:
        0 34px 100px rgba(0, 0, 0, 0.58),
        0 0 0 1px rgba(255,255,255,0.10) inset,
        0 0 56px rgba(90, 166, 255, 0.20);
    z-index: 5;
}

.sihs-site-card.is-active::after {
    background: linear-gradient(180deg, rgba(3, 9, 20, 0), rgba(3, 9, 20, 0.18));
}

.sihs-site-card:hover,
.sihs-site-card:focus {
    text-decoration: none !important;
}

.sihs-site-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.01);
}

.sihs-card-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 3;
    height: 32px;
    display: flex;
    align-items: center;
    gap: 6px;
    padding-left: 14px;
    background: linear-gradient(180deg, rgba(8, 14, 28, 0.82), rgba(8, 14, 28, 0.18));
}

.sihs-card-bar i {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.52);
    display: block;
}

.sihs-card-title {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 14px;
    z-index: 4;
    display: inline-flex;
    width: fit-content;
    max-width: calc(100% - 32px);
    padding: 9px 14px;
    border-radius: 999px;
    color: #fff;
    background: rgba(3, 9, 22, 0.72);
    border: 1px solid rgba(255,255,255,0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 1100px) {
    .sihs-content {
        padding-bottom: 300px;
    }

    .sihs-showcase {
        bottom: -28px;
    }

    .sihs-track {
        padding: 26px 6vw 76px;
    }

    .sihs-site-card {
        width: min(var(--sihs-card-width), 78vw);
    }
}

@media (max-width: 900px) {
    .sihs-hero {
        min-height: max(740px, var(--sihs-height));
    }

    .sihs-content {
        padding-top: 100px;
        padding-bottom: 270px;
    }

    .sihs-showcase {
        bottom: -10px;
        transform: rotate(calc(var(--sihs-angle) * 0.85));
    }

    .sihs-showcase::before,
    .sihs-showcase::after {
        width: 12vw;
        min-width: 54px;
    }

    .sihs-track {
        gap: 18px;
        padding: 20px 4vw 56px;
    }

    .sihs-site-card {
        width: min(var(--sihs-card-width), 84vw);
        border-radius: 17px;
    }

    .sihs-site-card.is-prev {
        transform: translateY(10px) scale(0.88) rotate(-3deg);
    }

    .sihs-site-card.is-next {
        transform: translateY(10px) scale(0.88) rotate(3deg);
    }
}

@media (max-width: 640px) {
    .sihs-hero {
        min-height: 700px;
    }

    .sihs-content {
        padding: 88px 18px 214px;
    }

    .sihs-heading {
        letter-spacing: -0.052em;
    }

    .sihs-subheading {
        line-height: 1.55;
    }

    .sihs-actions {
        gap: 10px;
        margin-top: 28px;
    }

    .sihs-btn {
        width: 100%;
        max-width: 310px;
        min-height: 52px;
    }

    .sihs-note {
        font-size: 14px;
    }

    .sihs-showcase {
        bottom: -6px;
        padding: 0 1vw 0;
        transform: rotate(calc(var(--sihs-angle) * 0.72));
    }

    .sihs-track {
        gap: 14px;
        padding: 14px 2vw 42px;
    }

    .sihs-site-card {
        width: min(var(--sihs-card-width), 88vw);
        border-radius: 15px;
    }

    .sihs-site-card {
        transform: translateY(0) scale(0.80) rotate(-0.8deg);
    }

    .sihs-site-card.is-prev {
        transform: translateY(7px) scale(0.85) rotate(-2.6deg);
    }

    .sihs-site-card.is-next {
        transform: translateY(7px) scale(0.85) rotate(2.6deg);
    }

    .sihs-showcase::before,
    .sihs-showcase::after {
        width: 8vw;
        min-width: 18px;
    }

    .sihs-card-title {
        font-size: 12px;
        padding: 8px 12px;
        bottom: 12px;
        left: 12px;
        right: 12px;
        max-width: calc(100% - 24px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .sihs-track,
    .sihs-site-card,
    .sihs-site-card::after,
    .sihs-btn {
        transition: none !important;
    }
}

/* v1.2 mobile + angled center carousel polish */
.sihs-showcase {
    --sihs-current-angle: var(--sihs-angle);
    transform: rotate(var(--sihs-current-angle)) translateZ(0);
    backface-visibility: hidden;
}

.sihs-track {
    touch-action: pan-y;
}

.sihs-site-card {
    -webkit-tap-highlight-color: transparent;
}

@media (min-width: 901px) {
    .sihs-showcase {
        bottom: -28px;
    }

    .sihs-track {
        padding-left: 12vw;
        padding-right: 12vw;
    }

    .sihs-site-card {
        width: min(var(--sihs-card-width), 760px);
    }
}

@media (max-width: 900px) {
    .sihs-hero {
        min-height: max(760px, var(--sihs-height));
    }

    .sihs-content {
        padding-top: clamp(78px, 12vh, 115px);
        padding-bottom: clamp(270px, 38vh, 340px);
    }

    .sihs-showcase {
        --sihs-current-angle: calc(var(--sihs-angle) * 0.86);
        bottom: 2px;
        padding-left: 0;
        padding-right: 0;
        transform: rotate(var(--sihs-current-angle)) translateZ(0);
    }

    .sihs-track {
        gap: 18px;
        padding: 30px 8vw 80px;
    }

    .sihs-site-card {
        width: min(72vw, 560px);
        border-radius: 18px;
    }

    .sihs-site-card.is-prev,
    .sihs-site-card.is-next {
        opacity: 0.58;
        filter: saturate(0.78) brightness(0.68);
        transform: scale(0.86);
    }

    .sihs-site-card.is-active {
        transform: scale(1) rotate(calc(var(--sihs-current-angle) * -1));
    }
}

@media (max-width: 640px) {
    .sihs-hero {
        min-height: 740px;
        --sihs-gap: 14px;
    }

    .sihs-content {
        padding: 82px 18px 270px;
    }

    .sihs-heading {
        font-size: clamp(36px, 12vw, 54px);
        line-height: 0.98;
    }

    .sihs-subheading {
        margin-top: 18px;
        font-size: 15px;
        line-height: 1.48;
    }

    .sihs-actions {
        margin-top: 24px;
    }

    .sihs-btn {
        min-height: 50px;
        max-width: 260px;
        padding: 0 22px;
    }

    .sihs-note {
        max-width: 290px;
        font-size: 13px;
        line-height: 1.35;
    }

    .sihs-showcase {
        --sihs-current-angle: calc(var(--sihs-angle) * 0.78);
        bottom: 8px;
        transform: rotate(var(--sihs-current-angle)) translateZ(0);
    }

    .sihs-showcase::before,
    .sihs-showcase::after {
        min-width: 46px;
        width: 14vw;
    }

    .sihs-track {
        gap: 12px;
        padding: 24px 7vw 72px;
    }

    .sihs-site-card {
        width: 82vw;
        border-radius: 16px;
        box-shadow:
            0 22px 64px rgba(0, 0, 0, 0.52),
            0 0 0 1px rgba(255,255,255,0.08) inset,
            0 0 38px rgba(65, 145, 255, 0.12);
    }

    .sihs-site-card.is-prev,
    .sihs-site-card.is-next {
        opacity: 0.46;
        filter: saturate(0.72) brightness(0.58);
        transform: scale(0.80);
    }

    .sihs-site-card.is-active {
        opacity: 1;
        filter: none;
        transform: scale(1) rotate(calc(var(--sihs-current-angle) * -1));
    }

    .sihs-card-bar {
        height: 26px;
        padding-left: 11px;
    }

    .sihs-card-bar i {
        width: 6px;
        height: 6px;
    }

    .sihs-card-title {
        left: 10px;
        bottom: 10px;
        padding: 7px 11px;
        font-size: 12px;
    }
}

@media (max-width: 430px) {
    .sihs-hero {
        min-height: 720px;
    }

    .sihs-content {
        padding-top: 74px;
        padding-bottom: 255px;
    }

    .sihs-eyebrow {
        font-size: 10px;
        letter-spacing: 0.10em;
        margin-bottom: 13px;
    }

    .sihs-heading {
        font-size: clamp(32px, 13vw, 46px);
    }

    .sihs-subheading {
        font-size: 14px;
    }

    .sihs-actions {
        gap: 9px;
    }

    .sihs-btn {
        width: auto;
        min-width: 142px;
        max-width: none;
        min-height: 46px;
        font-size: 13px;
    }

    .sihs-showcase {
        bottom: 6px;
    }

    .sihs-site-card {
        width: 84vw;
        border-radius: 15px;
    }
}
