@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    background-color: #000;
    color: #eee;
    font-family: Poppins;
    font-size: 12px;
}

a {
    text-decoration: none;
}

.carousel {
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    position: relative;
}

.carousel .list .item {
    width: 100%;
    height: 100%;
    position: absolute;
    inset: 0 0 0 0;
    z-index: 0;
}

.carousel .list .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel .list .item .content {
    position: absolute;
    top: 16%;
    left: 5%;
    width: min(32rem, 40%);
    box-sizing: border-box;
    z-index: 1;
    color: var(--ink, #fff);
    text-shadow: var(--ink-shadow, 0 5px 10px #0004);
}

.carousel .list .item .blur-veil {
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;
    --blur-reach: calc(5% + min(32rem, 40%) * var(--blur-fade, 1));
    -webkit-mask-image: linear-gradient(
        to right,
        #000 0,
        #000 calc(var(--blur-reach) * 0.55),
        transparent var(--blur-reach)
    );
    mask-image: linear-gradient(
        to right,
        #000 0,
        #000 calc(var(--blur-reach) * 0.55),
        transparent var(--blur-reach)
    );
}

.carousel .list .item .blur-veil img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(var(--blur));
}

.carousel .list .item .title {
    font-size: 5em;
    font-weight: bold;
    line-height: 1.3em;
}

.carousel .list .item .description {
    font-size: 18px;
    line-height: 1.6;
}

.carousel .list .item .description p {
    margin: 0.2em 0;
}

.carousel .list .item .buttons {
    display: flex;
    gap: 8px;
    margin-top: 20px;
}

.carousel .list .item .buttons a {
    width: 40px;
    height: 40px;
    border: none;
    background: none;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel .list .item .buttons a img {
    width: 26px;
    height: 26px;
    display: block;
    filter: var(--ink-icon-filter, drop-shadow(0 5px 10px #0004));
}

.carousel .list .item .description a.quote {
    display: inline-block;
    width: 1.15em;
    height: 1.15em;
    margin-left: 0.35em;
    vertical-align: -0.2em;
    background: none;
}

.carousel .list .item .description a.quote img {
    width: 100%;
    height: 100%;
    display: block;
    filter: var(--ink-icon-filter, drop-shadow(0 5px 10px #0004));
}

.thumbnail {
    position: absolute;
    bottom: 80px;
    left: 50%;
    right: 40px;
    z-index: 100;
    display: flex;
    gap: 20px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ffffff55 transparent;
}

.thumbnail::-webkit-scrollbar {
    height: 6px;
}

.thumbnail::-webkit-scrollbar-thumb {
    background: #ffffff55;
    border-radius: 999px;
}

.thumbnail .item {
    width: 150px;
    height: 220px;
    flex-shrink: 0;
    position: relative;
    cursor: pointer;
}

.thumbnail .item:hover img {
    filter: brightness(1.15);
}

.thumbnail .item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.thumbnail .item::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    border-radius: 0 0 20px 20px;
    pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.thumbnail .item .content {
    color: #fff;
    position: absolute;
    z-index: 1;
    bottom: 10px;
    left: 10px;
    right: 10px;
}

.thumbnail .item .content .title {
    font-weight: 500;
}

.dock {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 200;
    height: 24px;
    pointer-events: auto;
}

.dock .controls {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 64px;
    box-sizing: border-box;
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 0 5%;
    transform: translateY(100%);
    transition: transform 280ms ease;
    background: rgba(0, 0, 0, 0.28);
    -webkit-backdrop-filter: blur(18px) saturate(1.4);
    backdrop-filter: blur(18px) saturate(1.4);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.dock.is-open .controls,
.dock:focus-within .controls {
    transform: translateY(0);
}

.controls button {
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.controls button svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.controls button:hover {
    color: #000;
}

.controls button:hover circle {
    fill: #fff;
}

.controls #about {
    margin-left: 10px;
}

#toggle-play .icon-play {
    display: none;
}

#toggle-play.is-paused .icon-pause {
    display: none;
}

#toggle-play.is-paused .icon-play {
    display: block;
}

@media (hover: none) {
    .dock {
        height: 64px;
    }

    .dock .controls {
        transform: translateY(0);
    }
}

.carousel .list .item:nth-child(1) {
    z-index: 1;
}

.carousel.next .list .item.outgoing {
    z-index: 0;
}

.carousel.next .list .item:not(:first-child):not(.outgoing) {
    visibility: hidden;
}

.carousel .list .item:nth-child(1) .content .title,
.carousel .list .item:nth-child(1) .content .description,
.carousel .list .item:nth-child(1) .content .buttons {
    transform: translateY(50px);
    filter: blur(20px);
    opacity: 0;
    animation: showContent .35s linear 1 forwards;
}

@keyframes showContent {
    to {
        transform: translateY(0px);
        filter: blur(0px);
        opacity: 1;
    }
}

.carousel .list .item:nth-child(1) .content .title {
    animation-delay: 0.2s !important;
}

.carousel .list .item:nth-child(1) .content .description {
    animation-delay: 0.4s !important;
}

.carousel .list .item:nth-child(1) .content .buttons {
    animation-delay: 0.55s !important;
}

.carousel.next .list .item:nth-child(1) > img {
    width: 150px;
    height: 220px;
    position: absolute;
    bottom: 50px;
    left: 50%;
    border-radius: 30px;
    animation: showImage .5s linear 1 forwards;
}

@keyframes showImage {
    to {
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
}

.carousel.next .thumbnail .item:nth-last-child(1) {
    overflow: hidden;
    animation: showThumbnail .5s linear 1 forwards;
}

.carousel.prev .list .item > img {
    z-index: 100;
}

@keyframes showThumbnail {
    from {
        width: 0;
        opacity: 0;
    }
}

.carousel.next .thumbnail {
    animation: effectNext .5s linear 1 forwards;
}

.carousel.next.keep-thumbnail-scroll .thumbnail,
.carousel.next.keep-thumbnail-scroll .thumbnail .item:nth-last-child(1) {
    animation: none;
}

@keyframes effectNext {
    from {
        transform: translateX(150px);
    }
}

.carousel .time {
    position: absolute;
    z-index: 1000;
    width: 0%;
    height: 3px;
    background-color: #f1683a;
    left: 0;
    top: 0;
}

.carousel.next .time,
.carousel.prev .time {
    animation: runningTime 3s linear 1 forwards;
}

@keyframes runningTime {
    from {
        width: 100%
    }
    to {
        width: 0
    }
}

.carousel.prev .list .item:nth-child(2) {
    z-index: 2;
}

.carousel.prev .list .item:nth-child(2) > img {
    animation: outFrame 0.5s linear 1 forwards;
    position: absolute;
    bottom: 0;
    left: 0;
}

@keyframes outFrame {
    to {
        width: 150px;
        height: 220px;
        bottom: 80px;
        left: 50%;
        border-radius: 20px;
    }
}

.carousel.prev .thumbnail .item:nth-child(1) {
    overflow: hidden;
    opacity: 0;
    animation: showThumbnail .5s linear 1 forwards;
}

.carousel.prev .list .item:nth-child(2) .content .title,
.carousel.prev .list .item:nth-child(2) .content .description,
.carousel.prev .list .item:nth-child(2) .content .buttons {
    animation: contentOut 1.5s linear 1 forwards !important;
}

@keyframes contentOut {
    to {
        transform: translateY(-150px);
        filter: blur(20px);
        opacity: 0;
    }
}

@media screen and (max-width: 678px) {
    .carousel .list .item .content .title {
        font-size: 30px;
    }

    .carousel .list .item .content .description {
        font-size: 15px;
    }

    .thumbnail {
        display: none;
    }

    .dock {
        left: auto;
        right: auto;
        width: auto;
        height: auto;
        pointer-events: none;
    }

    .dock .controls {
        left: 16px;
        right: auto;
        bottom: 16px;
        width: auto;
        height: auto;
        gap: 0;
        padding: 0;
        transform: none;
        background: transparent;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
        border-top: none;
        pointer-events: auto;
    }

    .dock.is-open .controls,
    .dock:focus-within .controls {
        transform: none;
    }

    .controls button {
        width: 36px;
        height: 36px;
    }

    .controls #prev,
    .controls #toggle-play,
    .controls #next {
        display: none;
    }

    .controls #about {
        margin-left: 0;
    }

    .carousel.next .list .item:nth-child(1) > img {
        width: 100%;
        height: 100%;
        position: absolute;
        bottom: 0;
        left: 0;
        border-radius: 0;
        animation: none;
    }

    .carousel.prev .list .item:nth-child(2) > img {
        animation: none;
    }

    @media (hover: none) {
        .dock {
            height: auto;
        }

        .dock .controls {
            transform: none;
        }
    }
}

.about-overlay {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    box-sizing: border-box;
    background: rgba(0, 0, 0, 0.65);
}

.about-overlay[hidden] {
    display: none;
}

.about-panel {
    position: relative;
    width: min(36rem, 88vw);
    max-height: min(80vh, 40rem);
    box-sizing: border-box;
    overflow: auto;
    padding: 40px 36px 36px;
    border-radius: 16px;
    background: rgba(12, 12, 12, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #eee;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
}

.about-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.about-close svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.about-close:hover {
    color: #000;
    border-radius: 50%;
    background: #fff;
}

.about-body {
    font-size: 15px;
    line-height: 1.7;
}

.about-body p {
    margin: 0 0 1em;
}

.about-body p:last-child {
    margin-bottom: 0;
}

.about-section-title {
    margin: 1.6em 0 0.7em;
    font-size: 1.1em;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.about-body a {
    color: #f1683a;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.about-body a:hover {
    color: #ff8a5c;
}

.about-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media screen and (max-width: 678px) {
    .about-overlay {
        padding: 0;
        background: #0c0c0c;
    }

    .about-panel {
        width: 100%;
        max-height: none;
        height: 100%;
        border-radius: 0;
        border: none;
        box-shadow: none;
        padding: 56px 24px 32px;
        background: #0c0c0c;
    }

    .about-close {
        top: 12px;
        right: 12px;
    }

    .about-body {
        font-size: 16px;
    }
}