.journey {
    --black: #080908;
    --ink: #151614;
    --paper: #f1efe8;
    --white: #ffffff;
    --lime: #b9ff36;
    --blue: #4468ff;
    --coral: #ff675d;
    --line: rgba(21, 22, 20, .2);
    position: relative;
    height: 400svh;
    color: var(--ink);
    background: var(--black);
    isolation: isolate;
}

.journey *,
.journey *::before,
.journey *::after {
    box-sizing: border-box;
}

.journey .journey-sticky {
    position: sticky;
    top: 0;
    height: 100svh;
    overflow: hidden;
}

.journey .journey-track {
    display: flex;
    width: 400vw;
    height: 100%;
    will-change: transform;
}

.journey .journey-panel {
    position: relative;
    flex: 0 0 100vw;
    width: 100vw;
    height: 100%;
    overflow: hidden;
}

.journey .journey-panel.upload { background: #ffd23f; }
.journey .journey-panel.share { color: var(--white); background: var(--blue); }
.journey .journey-panel.search { background: var(--paper); }
.journey .journey-panel.download { color: var(--white); background: var(--black); }

.journey .journey-shell {
    width: min(1240px, calc(100% - 56px));
    margin-right: auto;
    margin-left: auto;
}

.journey .panel-inner {
    display: grid;
    grid-template-columns: minmax(0, .86fr) minmax(440px, 1.14fr);
    gap: 46px;
    align-items: center;
    height: 100%;
    padding-top: 92px;
    padding-bottom: 42px;
}

.journey .panel-copy {
    position: relative;
    z-index: 4;
}

.journey .step-number {
    margin-bottom: 22px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: .01em;
    text-transform: uppercase;
}

.journey .step-number span {
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-right: 10px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-size: 11px;
}

.journey .panel-copy h3 {
    max-width: 620px;
    margin: 0;
    font-family: var(--display);
    font-size: 58px;
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: 0;
    text-wrap: balance;
}

.journey .panel-copy p {
    max-width: 520px;
    margin: 26px 0 0;
    color: rgba(21, 22, 20, .66);
    font-size: 18px;
    line-height: 1.65;
}

.journey .share .panel-copy p,
.journey .download .panel-copy p {
    color: rgba(255, 255, 255, .7);
}

.journey .panel-art {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 560px;
}

.journey .upload-stack {
    position: relative;
    width: 520px;
    height: 470px;
}

.journey .upload-photo {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    transform-origin: center;
    will-change: transform, opacity;
}

.journey .upload-photo img,
.journey .paper-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.journey .upload-photo.landscape {
    width: 142px;
    height: 94px;
}

.journey .upload-photo.portrait {
    width: 76px;
    height: 117px;
}

.journey .upload-arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    left: 50%;
    width: 94px;
    height: 94px;
    object-fit: contain;
    clip-path: inset(18% 18% 16% 18%);
    mix-blend-mode: multiply;
    transform-origin: center;
    will-change: transform, opacity;
}

.journey .upload-cloud {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    display: grid;
    place-items: center;
    color: var(--black);
    font-size: 108px;
    filter: drop-shadow(0 16px 18px rgba(21, 22, 20, .18));
    transform: translate(-50%, -50%);
}

.journey .qr-scene {
    position: relative;
    display: grid;
    place-items: center;
    width: 520px;
    height: 520px;
}

.journey .qr-orbit {
    position: absolute;
    width: 440px;
    height: 440px;
    border: 1px dashed rgba(255, 255, 255, .45);
    border-radius: 50%;
    animation: journey-spin 18s linear infinite;
}

.journey .qr-orbit::before,
.journey .qr-orbit::after {
    position: absolute;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--lime);
    content: "";
}

.journey .qr-orbit::before { top: 82px; left: 25px; }
.journey .qr-orbit::after { right: 18px; bottom: 104px; }

.journey .phone-vector {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 230px;
    height: 430px;
    border: 8px solid var(--white);
    border-radius: 34px;
    background: var(--lime);
    box-shadow: 22px 28px 0 rgba(8, 9, 8, .22);
    transform: rotate(-5deg);
    animation: journey-phone-float 5s ease-in-out infinite;
}

.journey .phone-vector::before {
    position: absolute;
    top: 10px;
    width: 70px;
    height: 16px;
    border-radius: 999px;
    background: var(--black);
    content: "";
}

.journey .qr-code {
    width: 142px;
    height: 142px;
    padding: 9px;
    background: var(--white);
}

.journey .qr-code svg {
    display: block;
    width: 100%;
    height: 100%;
}

.journey .share-chip,
.journey .matched-chip {
    position: absolute;
    z-index: 5;
    display: inline-flex;
    gap: 8px;
    align-items: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 999px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 900;
    white-space: nowrap;
}

.journey .share-chip {
    top: 88px;
    right: 28px;
    border: 1px solid var(--white);
    color: var(--black);
    background: var(--white);
    animation: journey-chip-pop 3s var(--ease) infinite;
}

.journey .face-scene {
    position: relative;
    display: grid;
    place-items: center;
    width: 510px;
    height: 510px;
}

.journey .face-ring {
    position: absolute;
    border: 1px solid var(--line);
    border-radius: 50%;
    animation: journey-ring-pulse 4s ease-in-out infinite;
}

.journey .face-ring.one { width: 470px; height: 470px; }
.journey .face-ring.two { width: 350px; height: 350px; animation-delay: -1.3s; }
.journey .face-ring.three { width: 230px; height: 230px; animation-delay: -2.6s; }

.journey .face-identity {
    position: relative;
    z-index: 3;
    display: grid;
    place-items: center;
    width: 270px;
    height: 310px;
}

.journey .face-avatar {
    display: block;
    width: 236px;
    height: 276px;
    overflow: hidden;
    animation: journey-face-lock 3.2s var(--ease) infinite;
}

.journey .face-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
}

.journey .face-corner {
    position: absolute;
    width: 58px;
    height: 58px;
    border-color: var(--ink);
    border-style: solid;
}

.journey .face-corner.top-left {
    top: 0;
    left: 0;
    border-width: 4px 0 0 4px;
    border-radius: 8px 0 0;
}

.journey .face-corner.top-right {
    top: 0;
    right: 0;
    border-width: 4px 4px 0 0;
    border-radius: 0 8px 0 0;
}

.journey .face-corner.bottom-left {
    bottom: 0;
    left: 0;
    border-width: 0 0 4px 4px;
    border-radius: 0 0 0 8px;
}

.journey .face-corner.bottom-right {
    right: 0;
    bottom: 0;
    border-width: 0 4px 4px 0;
    border-radius: 0 0 8px;
}

.journey .face-scan-line {
    position: absolute;
    z-index: 5;
    top: 105px;
    right: 120px;
    left: 120px;
    height: 4px;
    background: var(--coral);
    box-shadow: 0 0 20px rgba(255, 103, 93, .72);
    animation: journey-scan-line 2.5s ease-in-out infinite;
}

.journey .matched-chip {
    right: 30px;
    bottom: 72px;
    border: 1px solid var(--ink);
    color: var(--white);
    background: var(--ink);
    animation: journey-chip-pop 3.2s var(--ease) infinite;
}

.journey .matched-chip i { color: var(--lime); }

.journey .download-scene {
    position: relative;
    width: 620px;
    height: 540px;
    overflow: visible;
}

.journey .download-phone {
    position: absolute;
    z-index: 5;
    top: 50%;
    left: 50%;
    width: 500px;
    max-width: none;
    filter: drop-shadow(0 30px 34px rgba(0, 0, 0, .48));
    transform: translate(-50%, -50%);
    transform-origin: center;
    will-change: transform;
}

.journey .paper-photo {
    position: absolute;
    z-index: 6;
    top: 50%;
    left: 50%;
    width: 142px;
    height: 94px;
    opacity: 0;
    filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .28));
    transform-origin: center bottom;
    will-change: transform, opacity;
}

.journey .paper-photo.portrait {
    width: 76px;
    height: 117px;
}

.journey .journey-pagination {
    position: absolute;
    z-index: 8;
    bottom: 28px;
    left: 50%;
    display: flex;
    gap: 7px;
    transform: translateX(-50%);
}

.journey .journey-dot {
    width: 34px;
    height: 3px;
    border: 0;
    padding: 0;
    background: rgba(255, 255, 255, .28);
    transition: width .5s var(--ease), background .3s ease;
}

.journey .journey-dot.active {
    width: 62px;
    background: var(--lime);
}

@keyframes journey-spin {
    to { transform: rotate(360deg); }
}

@keyframes journey-phone-float {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-14px) rotate(-2deg); }
}

@keyframes journey-chip-pop {
    0%, 65%, 100% { transform: scale(1); }
    75% { transform: scale(1.09) rotate(2deg); }
}

@keyframes journey-ring-pulse {
    50% { opacity: .48; transform: scale(1.06); }
}

@keyframes journey-face-lock {
    0%, 65%, 100% { transform: scale(1); }
    76% { transform: scale(1.045); }
}

@keyframes journey-scan-line {
    0%, 100% { opacity: .45; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(300px); }
}

@media (max-width: 1120px) {
    .journey .panel-copy h3 { font-size: 50px; }

    .journey .panel-inner {
        grid-template-columns: minmax(0, .9fr) minmax(390px, 1.1fr);
    }

    .journey .panel-art { transform: scale(.86); }
}

@media (max-width: 820px) {
    .journey {
        height: auto;
        overflow: hidden;
    }

    .journey .journey-sticky {
        position: relative;
        height: auto;
        overflow: visible;
    }

    .journey .journey-track {
        display: block;
        width: 100%;
        transform: none !important;
    }

    .journey .journey-panel {
        width: 100%;
        height: auto;
        min-height: 88svh;
    }

    .journey .journey-shell { width: calc(100% - 36px); }

    .journey .panel-inner {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 100px;
        padding-bottom: 70px;
    }

    .journey .panel-copy h3 { font-size: 44px; }

    .journey .panel-art {
        min-height: 420px;
        transform: scale(.78);
        transform-origin: top center;
    }

    .journey .journey-pagination { display: none; }
}

@media (max-width: 620px) {
    .journey .journey-panel { min-height: 760px; }
    .journey .panel-inner { padding-top: 82px; }
    .journey .panel-copy h3 { font-size: 37px; }
    .journey .panel-copy p { font-size: 16px; }

    .journey .panel-art {
        min-height: 350px;
        transform: scale(.62);
    }
}

@media (prefers-reduced-motion: reduce) {
    .journey {
        height: auto;
        overflow: hidden;
    }

    .journey .journey-sticky {
        position: relative;
        height: auto;
        overflow: visible;
    }

    .journey .journey-track {
        display: block;
        width: 100%;
        transform: none !important;
    }

    .journey .journey-panel {
        width: 100%;
        height: auto;
        min-height: 90svh;
    }

    .journey .journey-pagination { display: none; }
}
