/* hero v02: full-width peek carousel, layered on hero.css */
.hero-peek .hero-particles {
    width: 100%;
    -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
    mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

/* tabs */
.hero-peek-tab {
    position: relative;
    color: rgba(255, 255, 255, .55);
    transition: color .3s;
}
.hero-peek-tab:hover,
.hero-peek-tab[aria-current="true"] {
    color: #fff;
}
.hero-peek-tab::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 2px;
    background: #4da3ff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .4s cubic-bezier(.22, 1, .36, 1);
}
.hero-peek-tab[aria-current="true"]::after {
    transform: scaleX(1);
}

/* glass arrows */
.hero-peek-arrow {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    transition: background-color .3s, border-color .3s, transform .3s;
}
.hero-peek-arrow:hover {
    background-color: rgba(77, 163, 255, .22);
    border-color: rgba(77, 163, 255, .6) !important;
    transform: translateY(-2px);
}

/* active card */
.hero-peek-main {
    flex: 0 0 78%;
    min-width: 0;
}
.hero-peek .hero-card {
    grid-template-columns: 50% 50%;
    height: 280px;
}
.hero-peek .hero-body {
    padding: 28px 34px;
}
.hero-peek .hero-card-title {
    font-size: 24px;
}
.hero-peek .hero-liquid {
    width: 50%;
}

/* next slide */
.hero-peek-next-card {
    flex: 1 1 auto;
    border-radius: 16px;
}
.hero-peek-next-card img {
    transition: opacity .4s, transform .7s cubic-bezier(.22, 1, .36, 1);
}
.hero-peek-next-card:hover img {
    opacity: .65;
    transform: scale(1.04);
}

/* autoplay bar */
.hero-peek-progress span {
    width: 0;
}

/* responsive */
/* 14-inch laptops: pull everything into the first screen, logo still clear */
@media (min-width: 992px) and (max-height: 820px) {
    .hero-peek { padding-top: 132px; }
    .hero-peek .hero-title { font-size: clamp(2.25rem, min(4.4vw, 7.2vh), 4.25rem); }
    .hero-peek-head { margin-bottom: 22px !important; }
    .hero-peek-bar { margin-bottom: 16px !important; }
    .hero-peek .hero-card { height: 220px; }
    .hero-peek .hero-body { padding: 20px 28px; }
    .hero-peek .hero-card-title { font-size: 20px; }
    .hero-peek-progress { margin-top: 14px !important; }
}
@media (min-width: 992px) and (max-height: 680px) {
    .hero-peek .hero-card { height: 200px; }
}
@media (max-width: 991px) {
    .hero-peek .hero-particles {
        height: 100%;
        bottom: 0;
    }
    .hero-peek-main { flex-basis: 72%; }
    .hero-peek .hero-card { height: 250px; }
    .hero-peek .hero-body { padding: 22px 24px; }
    .hero-peek .hero-card-title { font-size: 20px; }
}
@media (max-width: 767px) {
    .hero-peek-main { flex-basis: 100%; }
    .hero-peek .hero-card { grid-template-columns: 40% 60%; height: 210px; }
    .hero-peek .hero-liquid { width: 40%; }
    .hero-peek .hero-body { padding: 16px 18px; gap: 8px; }
    .hero-peek .hero-card-title { font-size: 17px; }
}
/* short phones such as iPhone SE */
@media (max-width: 767px) and (max-height: 640px) {
    .hero-peek-head { margin-bottom: 18px !important; }
    .hero-peek-bar { margin-bottom: 14px !important; }
    .hero-peek .hero-card { height: 190px; }
    .hero-peek-progress { margin-top: 14px !important; }
}

@media (prefers-reduced-motion: reduce) {
    .hero-peek-tab::after,
    .hero-peek-arrow,
    .hero-peek-next-card img {
        transition: none;
    }
    .hero-peek-progress {
        display: none !important;
    }
}
