@view-transition {
    navigation: auto;
}

.cheno-subpage__media > .wp-block-image:first-child {
    view-transition-name: cheno-hero;
}

::view-transition-group(cheno-hero) {
    overflow: clip;
    animation-duration: 650ms;
    animation-timing-function: cubic-bezier(.2, .7, .2, 1);
}

::view-transition-old(cheno-hero),
::view-transition-new(cheno-hero) {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

::view-transition-old(root),
::view-transition-new(root) {
    animation-duration: 350ms;
}

.cheno-arriving::view-transition-group(root) {
    animation-duration: 2400ms;
}

.has-header-motion .site-header-part .site-header {
    view-transition-name: cheno-header;
}

::view-transition-group(cheno-header) {
    z-index: 1;
    animation-duration: 350ms;
}

.cheno-returning::view-transition-group(cheno-header) {
    animation-duration: 250ms;
}

.cheno-flying.cheno-arriving::view-transition-group(cheno-hero) {
    animation-duration: 1250ms;
    animation-timing-function: cubic-bezier(.3, 0, .08, 1);
}

.cheno-flying.cheno-arriving::view-transition-old(root) {
    animation: none;
    opacity: 0;
}

.cheno-flying.cheno-arriving::view-transition-new(root) {
    animation: none;
}

.cheno-flying.cheno-arriving::view-transition-old(cheno-hero) {
    animation: none;
}

.cheno-flying.cheno-arriving::view-transition-new(cheno-hero) {
    animation: none;
    mix-blend-mode: normal;
}

.cheno-flying.cheno-hero-ready::view-transition-old(cheno-hero) {
    animation: cheno-fade-out 1ms linear 200ms both;
}

.cheno-flying.cheno-returning::view-transition-group(cheno-hero) {
    animation-duration: 900ms;
    animation-timing-function: cubic-bezier(.7, 0, .3, 1);
}

.cheno-flying.cheno-returning::view-transition-old(root) {
    animation: none;
    opacity: 0;
}

.cheno-flying.cheno-returning::view-transition-new(root) {
    animation: none;
}

.cheno-flying.cheno-returning::view-transition-old(cheno-hero) {
    animation: none;
}

.cheno-flying.cheno-returning::view-transition-new(cheno-hero) {
    animation: cheno-take 900ms linear both;
    mix-blend-mode: normal;
}

.cheno-clip-ready.cheno-flying.cheno-returning::view-transition-new(cheno-hero) {
    animation: none;
}

.cheno-clip-ready.cheno-flying.cheno-returning::view-transition-old(cheno-hero) {
    animation: cheno-fade-out 1ms linear 150ms both;
}

.cheno-clip-late.cheno-flying.cheno-returning::view-transition-new(cheno-hero) {
    animation: cheno-take 900ms step-end both;
}

.cheno-returning::view-transition-old(root),
.cheno-returning::view-transition-new(root) {
    animation-duration: 250ms;
}

:is(.cheno-arriving, .cheno-returning):not(.cheno-flying) {
    --cheno-skip: 600ms;
}

:is(.cheno-arriving, .cheno-returning):not(.cheno-flying)::view-transition-group(cheno-hero) {
    animation-duration: 250ms;
}

.cheno-home.is-leaving .cheno-home__card:not(.is-origin) .cheno-home__media {
    animation: cheno-fold 380ms cubic-bezier(.7, 0, .3, 1) forwards;
}

.cheno-home.is-leaving :is(.cheno-home__intro, .cheno-home__title, .cheno-home__text, .cheno-home__aside),
.cheno-home.is-leaving .cheno-home__image::after {
    animation: cheno-fade-out 250ms ease forwards;
}

.cheno-returning .cheno-home__card:not(.is-origin) .cheno-home__media {
    animation: cheno-unfold 500ms cubic-bezier(.7, 0, .3, 1) calc(900ms - var(--cheno-skip, 0ms)) backwards;
}

.cheno-returning .cheno-home :is(.cheno-home__intro, .cheno-home__title, .cheno-home__text) {
    animation: cheno-fade-in 300ms ease calc(900ms - var(--cheno-skip, 0ms)) backwards;
}

.cheno-plain.cheno-entering .cheno-subpage__media > .wp-block-image:first-child,
.cheno-entering .cheno-subpage__media > .wp-block-image:nth-child(2) {
    position: relative;
    overflow: hidden;
}

.cheno-plain.cheno-entering .cheno-subpage__media > .wp-block-image:first-child::after,
.cheno-entering .cheno-subpage__media > .wp-block-image:nth-child(2)::after {
    content: "";
    position: absolute;
    inset: -1px;
    background: var(--wp--preset--color--cream);
    transform-origin: bottom;
    animation: cheno-uncover 1000ms cubic-bezier(.2, .7, .1, 1) calc(800ms - var(--cheno-skip, 0ms)) both;
}

.cheno-plain.cheno-entering .cheno-subpage__media > .wp-block-image:first-child::after {
    animation-delay: calc(650ms - var(--cheno-skip, 0ms));
}

.cheno-plain.cheno-entering .cheno-subpage__media > .wp-block-image:first-child :is(img, video) {
    animation: cheno-settle 1300ms cubic-bezier(.2, .7, .1, 1) calc(650ms - var(--cheno-skip, 0ms)) both;
}

.cheno-entering .cheno-subpage__media > .wp-block-image:nth-child(2) :is(img, video) {
    animation: cheno-settle 1300ms cubic-bezier(.2, .7, .1, 1) calc(800ms - var(--cheno-skip, 0ms)) both;
}

.cheno-entering .cheno-subpage__title {
    animation: cheno-rise 800ms cubic-bezier(.2, .7, .1, 1) calc(950ms - var(--cheno-skip, 0ms)) both;
}

.cheno-entering .cheno-subpage__forwards {
    animation: cheno-lift 500ms cubic-bezier(.2, .7, .1, 1) calc(1150ms - var(--cheno-skip, 0ms)) both;
}

.cheno-entering .cheno-subpage.wp-block-group .cheno-subpage__links {
    position: relative;
    border-top-color: transparent;
}

.cheno-entering .cheno-subpage__links::before {
    content: "";
    position: absolute;
    top: -1px;
    right: 0;
    left: 0;
    height: 1px;
    background: var(--wp--preset--color--line);
    transform-origin: left;
    animation: cheno-draw 800ms cubic-bezier(.2, .7, .1, 1) calc(1100ms - var(--cheno-skip, 0ms)) both;
}

.cheno-entering .cheno-subpage__links > .wp-block-button {
    animation: cheno-lift 500ms cubic-bezier(.2, .7, .1, 1) calc(1250ms - var(--cheno-skip, 0ms)) both;
}

.cheno-entering .cheno-subpage__details {
    animation: cheno-fade-in 600ms ease calc(1400ms - var(--cheno-skip, 0ms)) both;
}

.cheno-entering :is(.cheno-guide, .cheno-newsstand) {
    animation: cheno-fade-in 600ms ease calc(1500ms - var(--cheno-skip, 0ms)) both;
}

@keyframes cheno-fold {
    from {
        clip-path: inset(0 0 0 0);
    }

    to {
        clip-path: inset(0 0 100% 0);
    }
}

@keyframes cheno-unfold {
    from {
        clip-path: inset(0 0 100% 0);
    }

    to {
        clip-path: inset(0 0 0 0);
    }
}

@keyframes cheno-take {
    0%,
    80% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes cheno-fade-out {
    to {
        opacity: 0;
    }
}

@keyframes cheno-fade-in {
    from {
        opacity: 0;
    }
}

@keyframes cheno-uncover {
    from {
        transform: scaleY(1);
    }

    to {
        transform: scaleY(0);
    }
}

@keyframes cheno-settle {
    from {
        transform: scale(1.15);
    }

    to {
        transform: none;
    }
}

@keyframes cheno-rise {
    from {
        clip-path: inset(0 0 100% 0);
        transform: translateY(100%);
    }

    to {
        clip-path: inset(0 0 0 0);
        transform: none;
    }
}

@keyframes cheno-lift {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@keyframes cheno-draw {
    from {
        transform: scaleX(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    @view-transition {
        navigation: none;
    }
}
