@font-face {
    font-family: "Portal Proxima Nova";
    src: url("../fonts/ProximaNova-Regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Portal Proxima Nova";
    src: url("../fonts/ProximaNova-Bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

html:has(.portal) {
    scrollbar-gutter: auto;
}

.portal {
    --portal-shadow: 0 4px 40px rgb(0 0 0 / 20%);
    margin-top: 19px;
    overflow: clip;
    font-family: "Portal Proxima Nova", var(--font-family-base);
}

.portal__hero {
    position: relative;
    isolation: isolate;
    width: calc(100% - 40px);
    max-width: 1880px;
    min-height: 600px;
    margin: 0 auto 60px;
    color: var(--color-white);
    border-radius: var(--rounded-base);
}

.portal__hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    border-radius: var(--rounded-base);
    background: var(--color-accent);
    content: "";
}

.portal__hero-inner {
    padding-top: 55px;
    padding-bottom: 64px;
    padding-inline: max(24px, calc((100% - 1230px) / 2));
    max-width: none;
}

.portal__hero h1 {
    width: min(491px, 39vw);
    font-size: 50px;
    line-height: 55px;
    letter-spacing: .5px;
}

.portal__intro {
    width: min(455px, 38vw);
    margin-top: 44px;
    color: inherit;
    font-size: 24px;
    line-height: 36px;
    letter-spacing: .24px;
}

.portal__hero-art {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: clip;
    border-radius: inherit;
}

.portal__hero-art > div {
    position: absolute;
    overflow: hidden;
    border-radius: var(--rounded-base);
    background: var(--color-white);
    box-shadow: var(--portal-shadow);
}

.portal__hero-art img,
.portal__phone-art img,
.portal .services-card__image {
    position: absolute;
    max-width: none;
}

.portal__hero-desktop {
    top: 63px;
    left: max(46.57%, calc(50% - 48px));
    width: clamp(838px, calc(13.125vw + 649px), 901px);
    height: 474px;
}

.portal__hero-desktop img { width: 900.2px; height: 127.89%; }
.portal__hero-mobile,
.portal__hero-secondary { display: none; }

.portal__tracking {
    margin-bottom: 72px;
}

.portal__tracking-panel,
.portal__phone-panel {
    position: relative;
    display: grid;
    min-height: 370px;
    border: var(--border);
    border-radius: var(--rounded-base);
}

.portal__tracking-panel {
    grid-template-columns: 39.4% 1fr;
    padding-top: 27px;
}

.portal__tracking-copy {
    padding-inline: 42px 24px;
}

.portal__tracking-copy h2,
.portal__phone-copy h2 {
    max-width: 488px;
    font-size: 30px;
    line-height: 36px;
    letter-spacing: .3px;
}

.portal__tracking-copy h2 { max-width: 381px; }

.portal__tracking-copy h2::before {
    position: absolute;
    left: 0;
    top: 45px;
    width: 28px;
    height: 1px;
    background: var(--color-accent);
    content: "";
}

.portal__tracking-copy p,
.portal__phone-copy p {
    max-width: 505px;
    font-size: 16px;
    line-height: 26px;
    letter-spacing: .16px;
}

.portal__tracking-copy p {
    max-width: 343px;
    margin-top: 29px;
}

.portal__timeline {
    padding-top: 18px;
}

.portal__timeline-inner {
    width: 788px;
    color: #202224;
    font-size: 14px;
    line-height: 22px;
    letter-spacing: 0;
}

.portal__shipment {
    display: flex;
    align-items: baseline;
    gap: 25px;
    margin-top: -5px;
    white-space: nowrap;
}

.portal__shipment strong { font-size: 18px; }
.portal__shipment span:first-of-type { color: var(--color-gray-60); }

.portal__stops {
    --route-progress: var(--route-initial-progress, 87%);
    --route-gray: #d5d5d5;
    position: relative;
    display: grid;
    grid-template-columns: 148px 207px 207px 1fr;
    margin-top: 35px;
    padding: 0;
    list-style: none;
}

.portal__stops::before {
    position: absolute;
    top: 42px;
    left: 8.5px;
    width: 562px;
    height: 2px;
    background: linear-gradient(to right, var(--color-accent) var(--route-progress), var(--route-gray) var(--route-progress));
    content: "";
}

.portal__stop {
    display: flex;
    flex-direction: column;
    gap: 3px;
    white-space: nowrap;
}

.portal__stop-icon {
    display: flex;
    align-items: end;
    height: 20px;
}

.portal__stop-marker {
    position: relative;
    width: 17px;
    height: 17px;
    margin-block: 11.5px 7px;
    border: 3px solid var(--route-gray);
    border-radius: 50%;
    background: var(--color-white);
}

.portal__stop-marker.is-passed { border-color: var(--color-accent); }
.portal__stop time { font-weight: 700; }

.portal__stop:nth-child(n+2) .portal__stop-icon img {
    margin-left: -4px;
}

.portal__timeline:focus-visible {
    outline-color: var(--color-accent);
}

.portal__timeline-hint {
    display: none;
}

.portal__orders {
    position: relative;
    width: min(1209px, 100%);
    height: 368px;
    margin: -58px 0 0 clamp(0px, 7.3vw, 105px);
    overflow: hidden;
    border-radius: var(--rounded-base);
    box-shadow: var(--portal-shadow);
}

.portal__orders img {
    width: 1269px;
    max-width: none;
    margin: -36px 0 0 -40px;
}

.portal .services--portal {
    margin-bottom: 79px;
}

.portal .services__title {
    padding-bottom: 16px;
}

.portal .services__slider-navigation:has(.swiper-button-lock) {
    display: none;
}

.portal .service-card {
    height: 100%;
    min-height: 398px;
    padding-top: 24px;
    padding-bottom: 12px;
}

.portal .service-card__inner {
    row-gap: 17px;
    margin-bottom: 12px;
}

.portal .service-card__title {
    hyphens: none;
    height: auto;
    min-height: 64px;
    overflow: visible;
    display: block;
    font-size: 26px;
}

.portal .service-card__description p {
    display: block;
    overflow: visible;
}

.portal .service-card__description {
    min-height: 82px;
}

.portal .service-card__art {
    position: relative;
    width: min(198px, 100%);
    height: 160px;
    margin-left: -8px;
    overflow: hidden;
}

.portal .services-card__image {
    top: 9.37%;
    left: -11.24%;
    width: 109.85%;
    height: 90.63%;
}

.portal .swiper-slide:first-child .services-card__image {
    top: 4.37%;
    left: -5.18%;
}

.portal .swiper-slide:nth-child(2) .services-card__image {
    top: 4.38%;
    left: -10.98%;
    width: 121.97%;
    height: 100.62%;
}

.portal__phone-panel {
    grid-template-columns: 49.5% 1fr;
}

.portal__phone-copy {
    grid-column: 2;
    padding: 27px clamp(24px, 3.6vw, 52px) 24px clamp(24px, 4.4vw, 63px);
}

.portal__phone-copy p:first-of-type { margin-top: 28px; }
.portal__phone-copy p + p { margin-top: 26px; }

.portal__phone-art {
    position: absolute;
    inset: 0 auto 0 0;
    width: 49.5%;
}

.portal__phone-background,
.portal__phone-device {
    position: absolute;
    overflow: hidden;
}

.portal__phone-background {
    inset: 0;
    border-radius: var(--rounded-base) 0 0 var(--rounded-base);
}

.portal__phone-background img { top: -9.4%; width: 100%; height: 109.37%; }

.portal__phone-device {
    inset: -61px auto 0 17.3%;
    width: min(413px, 80%);
}

.portal__phone-device img { top: -.04%; left: -42.67%; width: 166.01%; height: 105.95%; }

.portal__contact {
    display: flex;
    justify-content: center;
    margin-block: 81px 115px;
}

.portal__contact-link {
    width: min(100%, 418px);
    min-height: 57px;
    height: auto;
    font-size: 20px;
    text-align: center;
}

@media (min-width: 1024px) {
    .portal__hero h1,
    .portal__intro {
        position: relative;
        top: -34px;
    }

    .portal__tracking-copy,
    .portal__phone-copy {
        padding-top: 13px;
    }

    .portal__tracking-copy h2 {
        margin-top: -8px;
    }

    .portal__tracking-copy p {
        margin-top: 28px;
    }

    .portal .services--portal {
        margin-bottom: 71px;
    }
}

.portal__contact-link:focus-visible {
    outline-color: var(--color-accent);
}

@media (max-width: 1279.98px) {
    .portal__hero h1 { font-size: clamp(30px, 3.48vw, 50px); line-height: 1.1; }
    .portal__intro { font-size: clamp(18px, 1.67vw, 24px); line-height: 1.5; }
    .portal__orders { margin-left: clamp(0px, 6vw, 70px); }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
    .portal .service-card {
        padding-inline: 20px 12px;
    }

    .portal .service-card__inner { padding-left: 0; }
    .portal .service-card::before { width: 12px; }
    .portal .service-card__title { font-size: 22px; }
    .portal .service-card__art { margin-left: 0; }
    .portal__phone-copy { padding-inline: 24px; }
}

@media (max-width: 767.98px) {
    .portal { margin-top: 10px; }

    .portal__hero {
        width: 100%;
        min-height: auto;
        margin-bottom: 70px;
    }

    .portal__hero::before {
        bottom: auto;
        height: max(513px, calc(100% - 308px));
        border-radius: 0;
    }

    .portal__hero-inner { padding: 37px 20px 0; }

    .portal__hero h1 {
        width: min(100%, 312px);
        font-size: 30px;
        line-height: 35px;
        letter-spacing: .3px;
        transform: translateY(-18px);
    }

    .portal__intro {
        width: min(100%, 350px);
        margin-top: 31px;
        font-size: 18px;
        line-height: 28px;
        letter-spacing: .18px;
        transform: translateY(-15px);
    }

    .portal__hero-art {
        position: relative;
        height: 439px;
        margin-top: 21px;
        overflow: clip;
        overflow-clip-margin: 28px;
    }

    .portal__hero-desktop { display: none; }

    .portal__hero-mobile {
        display: block;
        left: min(11.54%, 45px);
        width: 239px;
        height: 439px;
    }

    .portal__hero-mobile img { width: 100%; height: 118.01%; }

    .portal__hero-secondary {
        display: block;
        top: 32px;
        left: min(61.54%, 240px);
        width: 205px;
        height: 375px;
    }

    .portal__hero-secondary img { width: 100%; height: 103.39%; }
    .portal__tracking { margin-bottom: 68px; }

    .portal__tracking-panel,
    .portal__phone-panel {
        display: block;
        min-height: auto;
        padding: 0;
        border: 0;
    }

    .portal__tracking-copy,
    .portal__phone-copy { padding: 0; }

    .portal__tracking-copy h2,
    .portal__phone-copy h2 {
        max-width: 325px;
        font-size: 26px;
        line-height: 32px;
        letter-spacing: .26px;
    }

    .portal__tracking-copy h2::before,
    .portal__orders { display: none; }

    .portal__tracking-copy p,
    .portal__phone-copy p {
        max-width: 323px;
        margin-left: 3px;
    }

    .portal__tracking-copy p { margin-top: 25px; }
    .portal__timeline {
        margin-top: 36px;
        padding-top: 0;
        overflow-x: auto;
        overscroll-behavior-x: contain;
    }

    .portal__shipment { margin-top: 0; }

    .portal__timeline-hint {
        display: block;
        margin-top: 8px;
        color: var(--color-gray-60);
        font-size: 14px;
    }
    .portal .services--portal { margin-bottom: 70px; }
    .portal .services__title { max-width: 296px; padding-bottom: 24px; font-size: 24px; line-height: 30px; }
    .portal .service-card__title { font-size: 24px; line-height: 29px; min-height: 58px; }
    .portal .service-card__description { min-height: 82px; }
    .portal__phone-copy p:first-of-type { margin-top: 23px; }

    .portal__phone-art {
        position: relative;
        inset: auto;
        width: 100%;
        height: 322px;
        margin-top: 39px;
    }

    .portal__phone-background { inset: 28px 0 0; border-radius: var(--rounded-base); }
    .portal__phone-background img { top: 0; left: -12.95%; width: 126.14%; height: 99.97%; }
    .portal__phone-device { inset: 0 auto 0 0; width: min(328px, 100%); }
    .portal__phone-device img { top: -6.57%; height: 112.86%; }
    .portal__contact { margin-block: 40px 70px; }
    .portal__contact-link { min-height: 54px; padding-inline: 8px; font-size: 16px; letter-spacing: 0; }
}
