@font-face {
    font-family: "Begifta";
    src: url("../fonts/Begifta DEMO VERSION.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Carlito";
    src: url("../fonts/Carlito-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Carlito";
    src: url("../fonts/Carlito-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Carlito";
    src: url("../fonts/Carlito-Italic.ttf") format("truetype");
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: "Carlito";
    src: url("../fonts/Carlito-BoldItalic.ttf") format("truetype");
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

:root {
    --color-background: #fcf4dd;
    --color-text: #111111;
    --color-text-soft: #6f6f6f;
    --color-link: #6f7f86;
    --color-link-dark: #4e5f66;
    --color-line: rgba(17, 17, 17, 0.18);
    --font-heading: "Begifta", "Georgia", serif;
    --font-body: "Carlito", "Helvetica Neue", Arial, sans-serif;
    --header-height: 118px;
    --page-gutter: clamp(22px, 4.6vw, 72px);
}

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

html {
    min-height: 100%;
    background: var(--color-background);
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    background: var(--color-background);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    width: 100%;
    min-height: var(--header-height);
    background: var(--color-background);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-height);
    padding: 0 var(--page-gutter);
    gap: 36px;
}

.site-brand {
    flex: 0 1 auto;
    color: #151515;
    font-family: var(--font-heading);
    font-size: clamp(15px, 1.35vw, 21px);
    line-height: 1.25;
    letter-spacing: clamp(8px, 0.95vw, 14px);
    text-transform: uppercase;
    white-space: nowrap;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: clamp(22px, 3vw, 48px);
    color: var(--color-link);
}

.site-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    font-size: 15px;
    line-height: 1;
    letter-spacing: 6px;
    text-transform: uppercase;
    transition: color 180ms ease, opacity 180ms ease;
}

.site-nav a:not(.instagram-link)::after {
    position: absolute;
    left: 0;
    right: 6px;
    bottom: 4px;
    height: 1px;
    background: currentColor;
    content: "";
    opacity: 0;
    transform: scaleX(0.35);
    transform-origin: center;
    transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
    color: var(--color-link-dark);
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.is-active::after {
    opacity: 0.75;
    transform: scaleX(1);
}

.instagram-link {
    width: 28px;
    min-width: 28px;
    padding: 0;
    letter-spacing: 0;
}

.instagram-link svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.35;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.site-main {
    background: var(--color-background);
}

.home-main {
    min-height: calc(100vh - var(--header-height));
}

.hero-slider {
    position: relative;
    height: calc(100vh - var(--header-height));
    min-height: 520px;
    overflow: hidden;
    background: #eee4cb;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 620ms ease;
}

.hero-slide.is-active {
    opacity: 1;
    z-index: 1;
}

.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero-slide.is-active img {
    animation: hero-image-pan 28000ms linear forwards;
}

@keyframes hero-image-pan {
    from {
        object-position: center top;
    }

    to {
        object-position: center bottom;
    }
}

.slider-button {
    position: absolute;
    top: 50%;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    transform: translateY(-50%);
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.28);
    transition: opacity 180ms ease;
}

.slider-button:hover,
.slider-button:focus-visible {
    opacity: 0.68;
}

.slider-button span {
    display: block;
    margin-top: -3px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 38px;
    font-weight: 400;
    line-height: 1;
}

.slider-button-prev {
    left: clamp(18px, 2.2vw, 34px);
}

.slider-button-next {
    right: clamp(18px, 2.2vw, 34px);
}

.page-main {
    min-height: calc(100vh - var(--header-height));
}

.page-section {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: clamp(52px, 7vw, 104px) var(--page-gutter) clamp(72px, 8vw, 118px);
}

.page-heading {
    margin-bottom: clamp(42px, 5.5vw, 82px);
}

.page-heading h1 {
    margin: 0;
    color: #151515;
    font-family: var(--font-heading);
    font-size: clamp(27px, 3vw, 48px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 10px;
    text-transform: uppercase;
}

.works-section {
    max-width: 1540px;
}

.works-fade-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(10px, 1.4vw, 22px);
}

.works-fade-column {
    display: flex;
    flex-direction: column;
    gap: clamp(10px, 1.4vw, 22px);
}

.works-fade-column-right {
    margin-top: clamp(34px, 4.4vw, 70px);
}

.work-fade-panel {
    position: relative;
    aspect-ratio: var(--panel-ratio, 3 / 4);
    overflow: hidden;
    background: var(--color-background);
}

.work-fade-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transform: scale(1);
    transition: opacity 1200ms ease, transform 2800ms ease;
}

.work-fade-slide.is-active {
    z-index: 1;
    opacity: 1;
}

.artwork-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(44px, 5.2vw, 86px) clamp(26px, 3.5vw, 58px);
}

.artwork-item {
    min-width: 0;
}

.artwork-image-link {
    display: block;
    overflow: hidden;
    background: #eee4cb;
}

.artwork-image-link img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 500ms ease, opacity 250ms ease;
}

.artwork-image-link:hover img,
.artwork-image-link:focus-visible img {
    opacity: 0.93;
    transform: scale(1.015);
}

.artwork-meta {
    padding-top: 16px;
}

.artwork-meta h2 {
    margin: 0 0 4px;
    color: var(--color-text);
    font-family: var(--font-heading);
    font-size: 19px;
    font-weight: 400;
    line-height: 1.28;
}

.artwork-meta p {
    margin: 2px 0;
    color: var(--color-text-soft);
    font-size: 14px;
    line-height: 1.45;
}

.editorial-section {
    max-width: 1120px;
}

.editorial-content {
    max-width: 900px;
}

.text-block + .text-block {
    margin-top: clamp(38px, 5vw, 62px);
}

.text-block h2 {
    margin: 0 0 18px;
    color: var(--color-link-dark);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 5px;
    text-transform: uppercase;
}

.text-block p,
.clean-list {
    color: rgb(32, 32, 32);
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 400;
    line-height: 33px;
}

.text-block p {
    margin: 0;
}

.text-block p + p {
    margin-top: 22px;
}

.clean-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.clean-list li + li {
    margin-top: 10px;
}

.contact-section {
    max-width: 1180px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    gap: clamp(48px, 8vw, 120px);
    align-items: start;
}

.contact-intro p {
    max-width: 610px;
    margin: 0;
    color: rgb(32, 32, 32);
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 400;
    line-height: 33px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: var(--color-text-soft);
    font-style: normal;
    font-size: 18px;
    line-height: 1.6;
}

.contact-details a {
    color: var(--color-link-dark);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.site-footer {
    background: var(--color-background);
}

.footer-inner {
    padding: 34px var(--page-gutter) 38px;
    color: var(--color-text-soft);
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-inner p {
    margin: 0;
}

@media (max-width: 980px) {
    :root {
        --header-height: 108px;
    }

    .header-inner {
        flex-direction: column;
        justify-content: center;
        gap: 16px;
        padding-top: 20px;
        padding-bottom: 18px;
    }

    .site-brand {
        letter-spacing: 9px;
        white-space: normal;
        text-align: center;
    }

    .site-nav {
        width: 100%;
        justify-content: center;
        gap: clamp(15px, 4vw, 30px);
        flex-wrap: wrap;
    }

    .site-nav a {
        font-size: 14px;
        letter-spacing: 4px;
    }

    .artwork-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 126px;
        --page-gutter: 20px;
    }

    .site-header {
        position: relative;
    }

    .header-inner {
        min-height: var(--header-height);
        gap: 14px;
    }

    .site-brand {
        font-size: 15px;
        letter-spacing: 6px;
    }

    .site-nav {
        gap: 12px 16px;
    }

    .site-nav a {
        min-height: 30px;
        font-size: 13px;
        letter-spacing: 2.7px;
    }

    .instagram-link {
        width: 24px;
        min-width: 24px;
    }

    .instagram-link svg {
        width: 19px;
        height: 19px;
    }

    .site-nav .instagram-link {
        display: none;
    }

    .page-home .home-main {
        min-height: calc(100vh - var(--header-height));
        min-height: calc(100svh - var(--header-height));
    }

    .page-home .hero-slider {
        height: calc(100vh - var(--header-height));
        height: calc(100svh - var(--header-height));
        min-height: 0;
    }

    .page-home .hero-slide.is-active img {
        animation-duration: 18000ms;
    }

    .slider-button {
        width: 34px;
        height: 38px;
    }

    .slider-button span {
        font-size: 30px;
    }

    .page-section {
        padding-top: 44px;
    }

    .page-heading {
        margin-bottom: 34px;
    }

    .page-heading h1 {
        font-size: 28px;
        letter-spacing: 6px;
    }

    .artwork-grid {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .works-fade-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .works-fade-column {
        gap: 12px;
    }

    .works-fade-column-right {
        margin-top: 0;
    }

    .work-fade-panel {
        min-height: 0;
    }

    .contact-details {
        font-size: 17px;
    }
}
