html,
body {
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

body .main-header {
    position: fixed;
    z-index: 1000;
}

@media (max-width: 991px) {
    body.body-class--dark .main-header.main-header--transparent-white {
        background: transparent !important;
        border-top-color: transparent;
    }

    body.body-class--dark.nav-open .main-header.main-header--transparent-white {
        background: #000 !important;
        border-top-color: #333;
    }
}

@media (hover: hover) and (pointer: fine) {
    body.body-class--dark:not(.nav-open) .main-header.main-header--transparent-white:hover,
    body.body-class--dark:not(.nav-open) .main-header.main-header--transparent-white:hover .main-header__inner {
        background: transparent !important;
    }

    body.body-class--dark:not(.nav-open) .main-header.main-header--transparent-white:hover .navbar .navbar-nav .nav-item a {
        color: #fff !important;
    }

    body.body-class--dark:not(.nav-open) .main-header.main-header--transparent-white:hover .logo-new {
        background-image: url("../img/logo-inverse.svg") !important;
    }

    body.body-class--dark:not(.nav-open) .main-header.main-header--transparent-white:hover .main-header__burger::before,
    body.body-class--dark:not(.nav-open) .main-header.main-header--transparent-white:hover .main-header__burger::after {
        background: #fff !important;
    }

    body.body-class--dark:not(.nav-open) .main-header.main-header--transparent-white:hover .contact-mobile img {
        content: url("../img/icon-contact-white.svg");
    }

    body.body-class--dark:not(.nav-open) .main-header.main-header--transparent-white:hover .navbar .navbar-nav .nav-item::after {
        background: #fff;
    }
}

.journal-deck {
    position: fixed;
    inset: 0;
    z-index: 2;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    background: #000;
    isolation: isolate;
    touch-action: none;
}

.journal-panel {
    position: absolute;
    inset: 0;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 40px 20px;
    overflow: hidden;
    background: #000;
    transform: translate3d(0, 100%, 0);
    transition: transform .78s cubic-bezier(.76, 0, .24, 1);
    backface-visibility: hidden;
    will-change: transform;
}

.journal-panel.is-past,
.journal-panel.is-current {
    transform: translate3d(0, 0, 0);
}

.journal-panel.is-previous,
.journal-panel.is-current,
.journal-panel.is-next {
    visibility: visible;
}

.journal-panel--hero,
.journal-panel--article {
    padding: 0;
}

.journal-panel--hero video,
.journal-panel--hero picture,
.journal-panel--hero img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journal-panel--hero picture {
    display: none;
}

.journal-panel--hero::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .9));
}

.journal-panel--hero h1 {
    position: absolute;
    right: 20px;
    bottom: calc(44px + env(safe-area-inset-bottom));
    left: 20px;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-family: utopia-std, serif;
    font-size: 24px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
}

.journal-intro {
    max-width: 540px;
    margin: 0;
    color: #9f9f9f;
    text-align: center;
}

.journal-intro strong {
    color: #fff;
    font-weight: 400;
}

.journal-article {
    --journal-frame-gap: clamp(80px, 8vw, 128px);
    position: absolute;
    inset: 136px var(--journal-frame-gap) var(--journal-frame-gap);
    display: block;
    overflow: hidden;
    color: #fff;
    transition: inset .72s cubic-bezier(.76, 0, .24, 1);
    will-change: inset;
}

.journal-article.is-opening {
    inset: 0;
}

.journal-article__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.journal-article img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.journal-article::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background: linear-gradient(180deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .9));
}

.journal-article h2 {
    position: absolute;
    right: 20px;
    bottom: calc(20px + env(safe-area-inset-bottom));
    left: 20px;
    z-index: 2;
    margin: 0;
    color: #fff;
    font-family: utopia-std, serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    transition: bottom .72s cubic-bezier(.76, 0, .24, 1);
}

.journal-article.is-opening h2 {
    bottom: calc(44px + env(safe-area-inset-bottom));
}

.journal-article:hover,
.journal-article:hover h2 {
    color: #fff;
    text-decoration: none;
}

.journal-deck--full .journal-article {
    inset: 0 !important;
}

.journal-deck--full .journal-article h2 {
    bottom: calc(44px + env(safe-area-inset-bottom));
    font-size: 24px;
}

.journal-deck--cards .journal-panel--article {
    padding: 88px 20px 72px;
}

.journal-deck--cards .journal-article {
    position: relative !important;
    inset: auto !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(500px, calc(100vw - 40px), calc(79.75vh - 172px));
    width: min(500px, calc(100vw - 40px), calc(79.75dvh - 172px));
    height: auto;
    overflow: visible;
    transition: none;
    will-change: auto;
}

.journal-deck--cards .journal-article__image {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 1000 / 1254;
}

.journal-deck--cards .journal-article img {
    transition: transform 500ms ease-in-out;
}

.journal-deck--cards .journal-article:hover img {
    transform: scale(1.1);
}

.journal-deck--cards .journal-article::after {
    display: none;
}

.journal-deck--cards .journal-article h2 {
    position: static;
    width: 100%;
    margin: 24px 0 0;
    color: #fff;
    font-family: sofia-pro, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-align: center;
    transition: none;
}

.journal-deck--cards .journal-article h2 span {
    position: relative;
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    padding-bottom: 3px;
    overflow: hidden;
}

.journal-deck--cards .journal-article h2 span::after {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1.5px;
    content: "";
    background: currentColor;
    transform: translateX(-110%);
    transition: transform 500ms ease-in-out;
}

.journal-deck--cards .journal-article:hover h2 span::after,
.journal-deck--cards .journal-article:focus-visible h2 span::after {
    transform: translateX(0);
}

.journal-closing {
    padding: 0;
}

.main-footer {
    display: none;
}

.journal-panel:not(.journal-panel--hero):not(.journal-panel--article) {
    padding-top: 88px;
    padding-bottom: 24px;
}

.journal-index-shell {
    --journal-index-color: #6f6258;
    --journal-index-ink: #fff;
    color: var(--journal-index-ink);
}

.journal-index-footer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 32px;
    color: var(--journal-index-ink);
    background: var(--journal-index-color);
    border: 0;
    border-radius: 0;
    font-family: sofia-pro, sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    text-align: left;
    cursor: pointer;
    transform: translate3d(0, 100%, 0);
    transition: transform 600ms cubic-bezier(.22, 1, .36, 1), background-color .45s ease, color .45s ease;
    will-change: transform, background-color;
    pointer-events: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.journal-index-shell.is-available .journal-index-footer {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
}

.journal-index-shell.is-open .journal-index-footer {
    transform: translate3d(0, 100%, 0);
    pointer-events: none;
}

.journal-index-footer:hover,
.journal-index-footer:focus,
.journal-index-footer:active {
    color: var(--journal-index-ink);
    background: var(--journal-index-color);
    outline: none;
    box-shadow: none;
}

.journal-index-footer:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: -6px;
}

.journal-index-overlay {
    position: fixed;
    inset: 0;
    z-index: 1198;
    visibility: hidden;
    background: rgba(0, 0, 0, .34);
    opacity: 0;
    transition: opacity 500ms ease, visibility 500ms ease;
    pointer-events: none;
}

.journal-index-shell.is-open .journal-index-overlay {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.journal-index {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 1200;
    width: 50vw;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
    color: var(--journal-index-ink);
    background: var(--journal-index-color);
    transform: translate3d(100%, 0, 0);
    transition: transform 600ms cubic-bezier(.22, 1, .36, 1), background-color .45s ease, color .45s ease;
    will-change: transform, background-color;
}

.journal-index-shell.is-open .journal-index {
    transform: translate3d(0, 0, 0);
}

.journal-index__content {
    width: 100%;
    height: 100%;
    padding: 0 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.journal-index__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    padding: 96px 0;
}

.journal-index__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 24px;
    margin: 0 0 40px;
}

.journal-index__title {
    margin: 0;
    color: inherit;
    font-family: sofia-pro, sans-serif;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.4;
    text-align: left;
}

.journal-index__close {
    position: static !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    margin: 0;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.journal-index__close:hover,
.journal-index__close:focus,
.journal-index__close:active {
    color: inherit;
    background: transparent;
    outline: none;
    box-shadow: none;
}

.journal-index__close:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 2px;
}

.journal-index__icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    transition: transform .5s cubic-bezier(.76, 0, .24, 1);
}

.journal-index__icon::before,
.journal-index__icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    content: "";
    background: currentColor;
    transform: translate(-50%, -50%);
}

.journal-index__icon::before {
    width: 16px;
    height: 1px;
}

.journal-index__icon::after {
    width: 1px;
    height: 16px;
}

.journal-index__icon--close {
    width: 14px;
    height: 14px;
    flex-basis: 14px;
    transform: rotate(45deg);
}

.journal-index__icon--close::before {
    width: 14px;
}

.journal-index__icon--close::after {
    height: 14px;
}

.journal-index__list {
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: journal-index;
}

.journal-index__item {
    display: flex;
    justify-content: flex-start;
    gap: 24px;
    margin: 0;
    padding: 16px 0;
    color: inherit;
    border-bottom: 1px solid color-mix(in srgb, currentColor 18%, transparent);
    font-family: sofia-pro, sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
    counter-increment: journal-index;
}

.journal-index__item:first-child {
    border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent);
}

.journal-index__item::before {
    min-width: 24px;
    content: counter(journal-index, decimal-leading-zero);
    color: color-mix(in srgb, currentColor 55%, transparent);
}

.journal-index__link {
    display: block;
    width: 100%;
    color: inherit;
    font: inherit;
    line-height: inherit;
    text-decoration: none;
    transition: opacity 250ms ease;
    -webkit-tap-highlight-color: transparent;
}

.journal-index__link:hover,
.journal-index__link:focus {
    color: inherit;
    text-decoration: none;
    opacity: .58;
}

.journal-index__link:active {
    color: inherit;
    background: transparent;
    text-decoration: none;
    opacity: 1;
}

body.journal-index-open .main-header {
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .journal-panel,
    .journal-article,
    .journal-article h2,
    .journal-deck--cards .journal-article img,
    .journal-deck--cards .journal-article h2 span::after,
    .journal-index-footer,
    .journal-index-overlay,
    .journal-index {
        transition-duration: .01ms;
    }
}

@media (max-width: 960px) {
    body.nav-open {
        position: static !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        overflow: hidden !important;
    }

    .main-header__nav-mobile,
    .main-header__nav-mobile__sub {
        top: 72px;
        height: calc(100% - 72px);
    }

    #navUnderLay,
    #subNavUnderLay {
        top: 72px;
        height: calc(100% - 72px);
    }

    .journal-index {
        width: 100vw;
    }
}

@media (max-width: 767px) {
    .journal-panel--hero video {
        display: block;
        object-position: center center;
    }

    .journal-panel--hero picture {
        display: none;
    }

    .journal-panel--hero h1 {
        bottom: calc(34px + env(safe-area-inset-bottom));
        font-size: 20px;
        line-height: 1.5;
    }

    .journal-article {
        --journal-frame-gap: 48px;
        inset: 112px var(--journal-frame-gap) var(--journal-frame-gap);
    }

    .journal-article.is-opening {
        inset: 0;
    }

    .journal-article h2 {
        bottom: calc(18px + env(safe-area-inset-bottom));
        font-size: 20px;
        line-height: 1.5;
    }

    .journal-article.is-opening h2 {
        bottom: calc(34px + env(safe-area-inset-bottom));
    }

    .journal-panel {
        padding: 24px;
    }

    .journal-panel--hero,
    .journal-panel--article {
        padding: 0;
    }

    .journal-panel:not(.journal-panel--hero):not(.journal-panel--article) {
        padding-top: 96px;
        padding-bottom: 24px;
    }

    .journal-index-footer {
        padding: 0 20px;
    }

    .journal-index__content {
        padding: 0 24px;
    }

    .journal-index__inner {
        max-width: 400px;
        padding: 48px 0;
    }

    .journal-deck--full .journal-article {
        inset: 0 !important;
    }

    .journal-deck--full .journal-article h2 {
        bottom: calc(82px + env(safe-area-inset-bottom));
        font-size: 20px;
        line-height: 1.5;
    }

    .journal-deck--cards .journal-panel--article {
        padding: 96px 24px 72px;
    }

    .journal-deck--cards .journal-article {
        position: relative !important;
        inset: auto !important;
        width: min(500px, calc(100vw - 48px), calc(79.75vh - 172px));
        width: min(500px, calc(100vw - 48px), calc(79.75dvh - 172px));
        height: auto;
    }

    .journal-deck--cards .journal-article h2 {
        position: static;
        margin: 24px 0 0;
        font-size: 14px;
        line-height: 1.4;
    }
}

@supports (hanging-punctuation: first) and (font: -apple-system-body) {
    .journal-panel--hero h1 {
        top: max(0px, calc(100dvh - 154px - env(safe-area-inset-bottom)));
        bottom: auto;
    }

    .journal-deck--full .journal-article h2 {
        top: max(0px, calc(100dvh - 202px - env(safe-area-inset-bottom)));
        bottom: auto;
    }

    @media (max-width: 767px) {
        .journal-panel--hero h1 {
            top: max(0px, calc(100dvh - 134px - env(safe-area-inset-bottom)));
            bottom: auto;
        }

        .journal-deck--full .journal-article h2 {
            top: max(0px, calc(100dvh - 182px - env(safe-area-inset-bottom)));
            bottom: auto;
        }
    }
}
