html {
    font-size: 100%;
}

html,
body {
    font-family: "Inter", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
}

a {
    width: -moz-fit-content;
    width: fit-content;
    --link-color: var(--color-black);
    --link-hover-text: var(--color-grey);
    color: var(--link-color);
    background-image:
        linear-gradient(var(--link-color), var(--link-color)),
        linear-gradient(var(--link-color), var(--link-color));
    background-size: 100% 1px, 100% 0;
    background-position: 0 100%, 0 100%;
    background-repeat: no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    cursor: pointer;
    transition:
        background-size 0.2s cubic-bezier(0.65, 0, 0.35, 1),
        color 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

a:link,
a:visited {
    color: var(--link-color);
}

a:hover,
a:focus-visible {
    color: var(--link-hover-text);
    background-size: 0 0, 0 0;
}

.nav-item a {
    background-size: 0 0, 0 0;
}

.nav-item a:hover,
.nav-item a:focus-visible {
    color: var(--link-color);
    background-size: 100% 1px, 100% 0;
}

.nav-item a[aria-current] {
    background-size: 100% 1px, 100% 0;
}

.header {
    position: fixed;
    top: 32px;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
}

.header svg {
    width: 128px;
}

.nav {
    width: 100%;
    position: fixed;
    top: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    letter-spacing: 0.08em;
    padding: 32px 64px;
    pointer-events: none;
    z-index: 9999;
}

.nav-wrapper {
    display: flex;
    flex-direction: column;
    align-items: end;
    justify-content: start;
    gap: 4px;
}

.nav-item {
    pointer-events: all;
}

.menu {
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: center;
    padding: 32px;
    pointer-events: none;
    z-index: 9999;
}

.menu a {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-align: center;
    pointer-events: all;
}

.main {
    min-height: var(--min-height);
}

.section {
    position: relative;
    min-height: var(--min-height);
    padding: 216px 64px 144px;
}

.split-section {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    align-content: center;
    -moz-column-gap: 144px;
    column-gap: 144px;
}

.section-logo,
.section-text {
    grid-row: 1;
}

.section-logo {
    z-index: 1;
    justify-self: center;
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.section-logo:hover {
    filter: grayscale(0);
}

.section-logo svg,
.section-logo img {
    display: block;
    width: calc(50vw - 144px);
    height: auto;
    overflow: visible;
    stroke: var(--color-black);
    stroke-width: 2px;
    fill: var(--color-white);
}

.section-logo img {
    max-height: 80vh;
    -o-object-fit: contain;
    object-fit: contain;
}

.section-text {
    position: relative;
    z-index: 1;
    padding: 0 64px;
}

.section-text p:not(:last-of-type) {
    padding-bottom: 24px;
}

.section-gallery {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    padding-top: 24px;
}

.section-gallery img {
    display: block;
    cursor: pointer;
    min-width: 80px;
    max-width: 80px;
    height: auto;
    object-fit: cover;
    aspect-ratio: 1 / 1;
    stroke: var(--color-black);
    stroke-width: 2px;
    fill: var(--color-white);
    filter: grayscale(1);
    transition: filter 0.3s ease;
}

.section-gallery img:hover {
    filter: grayscale(0);
}

.section-gallery::-webkit-scrollbar {
    display: none;
}

.section-gallery-close {
    display: none;
    position: absolute;
    top: 0;
    right: 64px;
    font-size: 14px;
    letter-spacing: 0.08em;
    --link-color: var(--color-black);
    --link-hover-text: var(--color-grey);
    color: var(--link-color);
    background-image: linear-gradient(var(--link-color), var(--link-color)), linear-gradient(var(--link-color), var(--link-color));
    background-size: 100% 1px, 100% 0;
    background-position: 0 100%, 0 100%;
    background-repeat: no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    cursor: pointer;
    transition:
        background-size 0.2s cubic-bezier(0.65, 0, 0.35, 1),
        color 0.4s cubic-bezier(0.65, 0, 0.35, 1);
    z-index: 9999;
}

.section-gallery-close:hover,
.section-gallery-close:focus-visible {
    color: var(--link-hover-text);
    background-size: 0 0, 0 0;
}

.split-section.is-gallery-open .section-logo,
.split-section.is-gallery-open .section-text> :not(.section-gallery) {
    display: none;
}

.split-section.is-gallery-open .section-text {
    grid-column: 1 / -1;
    grid-row: 1;
    width: auto;
    margin: 0;
    padding: 0;
    justify-self: stretch;
}

.split-section.is-gallery-open .section-gallery {
    display: grid;
    overflow: visible;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    padding: 48px 64px 0 64px;
}

.split-section.is-gallery-open .section-gallery img {
    width: 100%;
    min-width: unset;
    max-width: unset;
    aspect-ratio: auto;
    -o-object-fit: contain;
    object-fit: contain;
    filter: grayscale(0);
    cursor: default;
}

.section-gallery-close.is-visible {
    display: block;
}

.split-section .section-logo {
    grid-column: 1;
}

.split-section .section-text {
    grid-column: 2;
}

.split-section--flip .section-logo {
    grid-column: 2;
}

.split-section--flip .section-text {
    grid-column: 1;
}

.split-section div.section-logo:only-child,
.split-section div.section-text:only-child {
    grid-column: 1 / 3;
    margin: 0 auto;
}

.split-section div.section-text:only-child {
    width: calc(50vw - 144px);
    background-color: var(--color-white);
}

.section-heading {
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    padding-bottom: 48px;
}

.section-text ul,
.section-text ol {
    padding: 0 0 24px 1.2em;
}

.section-text ul {
    list-style: disc;
}

.section-text ol {
    list-style: decimal;
}

.slideshow-section {
    display: flex;
    align-items: center;
}

.slideshow-frame {
    position: relative;
    width: calc(100% - 128px);
    margin: 0 auto;
    border: 1px solid var(--color-black);
    background-color: var(--color-white);
}

.slideshow-slides {
    display: grid;
}

.slideshow-slide {
    grid-area: 1 / 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    -moz-column-gap: 64px;
    column-gap: 64px;
    padding: 64px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.slideshow-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.8s ease, visibility 0s;
}

.slideshow-slide--text .slideshow-copy {
    grid-column: 1 / 3;
    max-width: calc(50vw - 144px);
    margin: 0 auto;
}

.slideshow-media {
    justify-self: center;
    width: 100%;
}

.slideshow-media svg,
.slideshow-media img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 60vh;
    overflow: visible;
    stroke: var(--color-black);
    stroke-width: 2px;
    fill: var(--color-white);
}

.slideshow-media img {
    -o-object-fit: cover;
    object-fit: cover;
}

.slideshow-label {
    font-size: 14px;
    letter-spacing: 0.08em;
    padding-bottom: 24px;
}

.slideshow-title {
    font-size: 36px;
    font-weight: 400;
    line-height: 1.1;
    padding-bottom: 24px;
}

.slideshow-text {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 24px;
}

/* .slideshow-link a::after {
    content: " →";
} */

.slideshow-frame[data-slideshow] .slideshow-slide {
    padding-bottom: 96px;
}

.slideshow-controls {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    letter-spacing: 0.08em;
}

.slideshow-counter {
    padding-right: 8px;
    font-variant-numeric: tabular-nums;
}

.slideshow-arrow {
    display: flex;
    padding: 4px;
    color: var(--color-black);
    cursor: pointer;
    transition: color 0.3s ease;
}

.slideshow-arrow:hover,
.slideshow-arrow:focus-visible {
    color: var(--color-grey);
}

.slideshow-arrow svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5px;
}

.slideshow-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    padding: 4px;
    color: var(--color-black);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 2;
}

.slideshow-close:hover,
.slideshow-close:focus-visible {
    color: var(--color-grey);
}

.slideshow-close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5px;
}

.slideshow-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    border-top: 1px solid var(--color-black);
    background-color: var(--color-white);
    z-index: 9998;
}

.slideshow-open {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-left: 1px solid var(--color-black);
    background-color: var(--color-white);
    color: var(--color-black);
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 1;
}

.slideshow-open:hover,
.slideshow-open:focus-visible {
    color: var(--color-grey);
}

.slideshow-open svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5px;
}

.slideshow-banner[hidden] {
    display: none;
}

.slideshow-banner-track {
    display: flex;
    width: -moz-max-content;
    width: max-content;
    animation: slideshow-marquee var(--marquee-duration, 30s) linear infinite;
}

.slideshow-banner:hover .slideshow-banner-track,
.slideshow-banner:focus-within .slideshow-banner-track {
    animation-play-state: paused;
}

.slideshow-banner-group {
    display: flex;
    flex-shrink: 0;
    align-items: center;
}

.slideshow-banner-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    white-space: nowrap;
}

.slideshow-banner-item::after {
    content: "—";
    padding: 0 32px 0 16px;
}

.slideshow-banner-label {
    font-size: 14px;
    letter-spacing: 0.08em;
}

@keyframes slideshow-marquee {
    to {
        transform: translateX(-50%);
    }
}

body:has(.slideshow-banner:not([hidden])) .menu {
    bottom: 50px;
}

.index-section {
    padding: 216px 64px 144px;
}

.index-section:first-child {
    min-height: 0;
}

.index-heading {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.08em;
    padding-bottom: 32px;
}

.index-list {
    position: relative;
    background-color: var(--color-white);
    border-bottom: 1px solid var(--color-black);
    z-index: 9999;
}

.index-item {
    border-top: 1px solid var(--color-black);
}

.index-row {
    display: grid;
    grid-template-columns: 3fr 2fr 1fr 1fr;
    -moz-column-gap: 16px;
    column-gap: 16px;
}

.index-row {
    width: 100%;
    align-items: baseline;
    padding: 16px 0;
    font: inherit;
    color: inherit;
    text-align: left;
    transition: color 0.3s ease;
}

.index-row:focus-visible {
    outline: 1px solid var(--color-black);
    outline-offset: 4px;
}

.index-row:hover,
.index-row:focus-visible {
    color: var(--color-grey);
}

.index-row:hover .index-title {
    padding-left: 16px;
    padding-right: 0;
}

.index-title {
    padding-right: 24px;
    transition: all 0.3s ease;
}

.index-category,
.index-date {
    font-size: 14px;
    letter-spacing: 0.08em;
}

.index-date {
    text-align: end;
    white-space: nowrap;
}

.index-panel {
    display: grid;
    grid-template-rows: 0fr;
    visibility: hidden;
    transition: grid-template-rows 0.5s ease, visibility 0s linear 0.5s;
}

.index-panel.is-open {
    grid-template-rows: 1fr;
    visibility: visible;
    transition: grid-template-rows 0.5s ease, visibility 0s;
}

.index-panel-inner {
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    -moz-column-gap: 144px;
    column-gap: 144px;
    overflow: hidden;
}

.index-panel-text {
    grid-column: 1;
    padding: 8px 0 48px;
}

.index-panel-text>*+* {
    margin-top: 1em;
}

.index-extra {
    font-size: 14px;
    letter-spacing: 0.08em;
}

.index-description p:not(:last-of-type) {
    padding-bottom: 24px;
}

.index-links {
    list-style: none;
    padding-top: 8px;
}

.index-panel-illustration {
    grid-column: 2;
    padding: 8px 0 48px;
}

@media (min-width: 801px) {
    .index-panel-inner.is-expanded .index-panel-text {
        display: none;
    }

    .index-panel-inner.is-expanded .index-panel-illustration {
        grid-column: 1 / -1;
    }
}

.index-gallery {
    position: relative;
    display: flex;
    gap: 24px;
    overflow-x: scroll;
    scrollbar-width: none;
}

.index-gallery::-webkit-scrollbar {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .index-gallery.is-draggable {
        cursor: grab;
    }

    .index-gallery.is-dragging {
        cursor: grabbing;
        -webkit-user-select: none;
        user-select: none;
    }
}

.index-gallery-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding-top: 16px;
}

.index-gallery-arrow {
    display: flex;
    padding: 4px;
    color: var(--color-black);
    cursor: pointer;
    transition: color 0.3s ease, opacity 0.3s ease;
}

.index-gallery-arrow:hover,
.index-gallery-arrow:focus-visible {
    color: var(--color-grey);
}

.index-gallery-arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.index-gallery-arrow svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5px;
}

.index-gallery svg,
.index-gallery img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 50vh;
    overflow: visible;
    stroke: var(--color-black);
    stroke-width: 2px;
    fill: var(--color-white);
}

.index-gallery img {
    -o-object-fit: contain;
    object-fit: contain;
}

.search-wrapper {
    display: flex;
    gap: 24px;
}

.search-input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 240px;
    border: none;
    border-radius: 0;
    font-size: 14px;
    letter-spacing: 0.08em;
    color: var(--color-black);
    border-bottom: solid 1px var(--color-black);
    display: none;
}

.search-input.null {
    text-decoration: line-through;
}

.search-label {
    width: -moz-fit-content;
    width: fit-content;
    --link-color: var(--color-black);
    --link-hover-text: var(--color-grey);
    color: var(--link-color);
    background-image:
        linear-gradient(var(--link-color), var(--link-color)),
        linear-gradient(var(--link-color), var(--link-color));
    background-size: 100% 1px, 100% 0;
    background-position: 0 100%, 0 100%;
    background-repeat: no-repeat;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    cursor: pointer;
    transition:
        background-size 0.2s cubic-bezier(0.65, 0, 0.35, 1),
        color 0.4s cubic-bezier(0.65, 0, 0.35, 1);
}

.search-label:hover {
    color: var(--link-hover-text);
    background-size: 0 0, 0 0;
}

.search-reset {
    display: none;
}

.search-input.visible,
.search-reset.visible {
    display: block;
}

.footer {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: space-between;
    font-size: 14px;
    letter-spacing: 0.08em;
    padding: 32px 64px;
    border-top: 1px solid var(--color-black);
    background: var(--color-white);
    z-index: 1;
}

/* Padding (not margin) so ScrollSmoother counts the space in the content height */
#smooth-content {
    padding-bottom: var(--banner-height, 0px);
}

.footer-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-contacts {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.social-icon-wrapper a {
    display: inline-flex;
    padding: 0;
    margin: 0;
    background-image: none;
}

.social-icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.footer-copyright {
    font-size: 14px;
    letter-spacing: 0.08em;
}

@media (max-width: 1200px) {

    .header svg {
        width: 96px;
    }

    .section {
        -moz-column-gap: 112px;
        column-gap: 112px;
        padding: 0 32px;
    }

    .section-logo svg,
    .section-logo img {
        width: calc(50vw - 112px);
    }

    .section-text {
        padding: 0 32px;
    }

    .split-section.is-gallery-open .section-gallery {
        padding: 120px 32px 0;
    }

    .section-gallery-close {
        right: 32px;
    }

    .index-section {
        padding-left: 32px;
        padding-right: 32px;
    }

    .footer {
        -moz-column-gap: 112px;
        column-gap: 112px;
        padding-left: 32px;
        padding-right: 32px;
    }
}

@media (max-width: 960px) {

    html,
    body {
        font-size: 20px;
    }

    .split-section.is-gallery-open .section-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 800px) {

    html,
    body {
        font-size: 16px;
    }

    .header svg {
        width: 72px;
    }

    .header {
        top: 16px;
    }

    .nav {
        padding: 16px 24px;
    }

    .section {
        min-height: unset;
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        align-content: center;
        row-gap: 40px;
        padding: 64px 24px;
    }

    .section:first-of-type {
        padding-top: 200px;
    }

    .section-logo {
        grid-row: 2;
        grid-column: 1;
        justify-self: center;
    }

    .section-text {
        grid-row: 3;
        grid-column: 1;
        justify-self: start;
        padding: 0;
    }

    .section-gallery {
        padding-top: 16px;
        gap: 16px;
    }

    .section-gallery img {
        min-width: 64px;
        max-width: 64px;
    }

    .split-section.is-gallery-open {
        grid-template-rows: auto;
        row-gap: 0;
    }

    .split-section.is-gallery-open .section-gallery {
        gap: 16px;
        padding: 56px 0 0;
    }

    .section-gallery-close {
        top: 0;
        right: 0;
    }

    .section-logo svg,
    .section-logo img {
        width: 80vw;
        stroke-width: 3px;
    }

    .split-section .section-logo,
    .split-section .section-text {
        grid-column: 1;
    }

    .split-section div.section-logo:only-child,
    .split-section div.section-text:only-child {
        width: 100%;
        background-color: transparent;
    }

    .slideshow-frame {
        width: 100%;
    }

    .slideshow-slide {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 40px;
        padding: 24px;
    }

    .slideshow-slide--text .slideshow-copy {
        grid-column: 1;
        max-width: none;
    }

    .slideshow-frame[data-slideshow] .slideshow-slide {
        padding-bottom: 72px;
    }

    .slideshow-media svg,
    .slideshow-media img {
        max-height: 50vh;
        stroke-width: 3px;
    }

    .slideshow-title {
        font-size: 24px;
    }

    .slideshow-controls {
        right: 16px;
        bottom: 16px;
    }

    .index-section,
    .index-section:first-child {
        padding: 200px 24px 120px;
    }

    .index-row {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "title year"
            "author format";
        row-gap: 4px;
    }

    .index-row:hover,
    .index-row:focus-visible {
        color: var(--color-black);
    }

    .index-row:hover .index-title {
        padding-left: 0;
        padding-right: 0;
    }

    .index-row[aria-expanded="true"] {
        border-bottom: 1px solid var(--color-grey);
    }

    .index-title {
        grid-area: title;
        padding-right: 0;
    }

    .index-info {
        grid-area: author;
        font-size: 14px;
    }

    .index-category {
        grid-area: format;
        text-align: right;
    }

    .index-date {
        grid-area: year;
    }

    .index-panel-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .index-panel-text,
    .index-panel-illustration {
        grid-column: 1;
    }

    .index-panel-text {
        padding-bottom: 24px;
    }

    .index-panel-illustration {
        padding-top: 0;
    }

    .index-counter.hidden {
        display: none;
    }

    .search-wrapper:has(.search-input.visible),
    .search-input.visible {
        width: 100%;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding: 32px 24px 88px;
    }

    .footer-contacts {
        justify-self: start;
        align-items: flex-start;
    }

    .footer-wrapper {
        flex-direction: column;
        gap: 8px;
    }
}

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

    .index-row::before,
    .index-panel,
    .index-panel.is-open,
    .slideshow-slide,
    .slideshow-slide.is-active {
        transition: none;
    }

    .slideshow-banner {
        overflow-x: auto;
    }

    .slideshow-banner-track {
        animation: none;
    }

    .slideshow-banner-group[aria-hidden] {
        display: none;
    }

}