:root {
    --ink: #ffffff;
    --muted: rgba(255, 255, 255, 0.68);
    --line: rgba(255, 255, 255, 0.24);
    --dark: #0f0f0f;
    --panel: #171717;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--dark);
    color: var(--ink);
    font-family: Hind, Arial, sans-serif;
}

button,
a {
    color: inherit;
    font: inherit;
}

button {
    cursor: pointer;
}

.showcase {
    position: relative;
    min-height: 100vh;
    isolation: isolate;
    background: #111;
}

.site-header {
    position: fixed;
    z-index: 20;
    top: 0;
    left: 0;
    width: 100%;
    height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(22px, 4vw, 70px);
    pointer-events: none;
}

.brand,
.contact-toggle {
    pointer-events: auto;
}

.brand {
    position: relative;
    display: block;
    width: 272px;
    height: 272px;
    text-decoration: none;
}

.brand-logo {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 272px;
    object-fit: contain;
    object-position: left center;
    transform: translateY(-50%);
    transition: opacity 180ms ease;
}

.brand-logo--dark,
.showcase.logo-dark .brand-logo--light {
    opacity: 0;
}

.showcase.logo-dark .brand-logo--dark {
    opacity: 1;
}

.contact-toggle {
    width: 48px;
    height: 48px;
    position: relative;
    border: 0;
    background: transparent;
}

.contact-toggle span,
.contact-close::before,
.contact-close::after {
    position: absolute;
    left: 9px;
    right: 9px;
    height: 2px;
    background: var(--ink);
    content: "";
    transition: transform 220ms ease, top 220ms ease, opacity 220ms ease;
}

.contact-toggle span:first-child {
    top: 18px;
}

.contact-toggle span:last-child {
    top: 28px;
}

.contact-toggle.is-open span:first-child {
    top: 24px;
    transform: rotate(45deg);
}

.contact-toggle.is-open span:last-child {
    top: 24px;
    transform: rotate(-45deg);
}

.slider,
.image-stage,
.image-track,
.slide-image {
    position: absolute;
    inset: 0;
}

.image-stage {
    z-index: 1;
    overflow: hidden;
}

.image-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 950ms cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}

.slide-image {
    position: relative;
    flex: 0 0 100%;
    margin: 0;
    overflow: hidden;
    background: #202020;
}

.slide-image::after {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.18) 50%, rgba(0, 0, 0, 0.42)),
        linear-gradient(0deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.06));
}

.slide-image picture,
.slide-image img,
.slide-image video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-nav {
    position: fixed;
    z-index: 10;
    left: 0;
    top: 50%;
    width: 100%;
    overflow: hidden;
    transform: translateY(-50%);
}

.category-track {
    display: flex;
    align-items: center;
    width: max-content;
    min-width: 100%;
    padding: 0 8vw;
    transform: translateX(0);
    transition: transform 950ms cubic-bezier(0.76, 0, 0.24, 1);
    will-change: transform;
}

.category-link {
    position: relative;
    display: inline-block;
    flex: 0 0 auto;
    border: 0;
    margin: 0 3.2vw;
    padding: 0 7px 14px 3px;
    background: transparent;
    color: var(--ink);
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: clamp(72px, 9.6vw, 140px);
    font-weight: 700;
    line-height: 0.75;
    letter-spacing: 0;
    text-align: left;
    text-transform: uppercase;
    transition: color 160ms ease, background-size 450ms cubic-bezier(0.165, 0.84, 0.44, 1);
    background-image: linear-gradient(#fff, #fff);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 100%;
}

.category-link:hover,
.category-link:focus-visible,
.category-link.is-active {
    color: #000;
    background-size: 100% 100%;
}

.category-link:focus-visible,
.contact-toggle:focus-visible,
.contact-close:focus-visible,
.contact-panel a:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 6px;
}

.slide-counter {
    position: fixed;
    z-index: 10;
    right: clamp(22px, 4vw, 70px);
    bottom: clamp(22px, 5vw, 58px);
    display: flex;
    gap: 10px;
    color: var(--muted);
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: 28px;
    font-weight: 600;
}

.contact-panel {
    position: fixed;
    z-index: 30;
    inset: 0 0 0 auto;
    width: min(420px, 100vw);
    background: var(--panel);
    transform: translateX(100%);
    transition: transform 420ms cubic-bezier(0.76, 0, 0.24, 1);
    box-shadow: -24px 0 60px rgba(0, 0, 0, 0.38);
}

.contact-panel.is-open {
    transform: translateX(0);
}

.contact-panel__inner {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 22px;
    padding: 86px clamp(28px, 8vw, 58px);
}

.contact-panel a {
    color: var(--ink);
    text-decoration: none;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 18px;
    white-space: nowrap;
    border-bottom: 1px solid var(--line);
    padding-bottom: 18px;
    font-family: "Barlow Condensed", Impact, sans-serif;
    font-size: clamp(26px, 4.2vw, 38px);
    font-weight: 600;
    line-height: 1;
}

.contact-link svg {
    width: clamp(32px, 4vw, 44px);
    height: clamp(32px, 4vw, 44px);
    flex: 0 0 auto;
    fill: #fff;
}

.contact-link span {
    min-width: 0;
}

.contact-close {
    position: absolute;
    top: 28px;
    right: 28px;
    width: 46px;
    height: 46px;
    border: 0;
    background: transparent;
}

.contact-close::before,
.contact-close::after {
    top: 22px;
}

.contact-close::before {
    transform: rotate(45deg);
}

.contact-close::after {
    transform: rotate(-45deg);
}

@media (max-width: 760px) {
    .site-header {
        height: 76px;
        padding-inline: 20px;
    }

    .brand {
        width: 132px;
        height: 132px;
    }

    .brand-logo {
        max-height: 132px;
    }

    .category-nav {
        left: 0;
        right: auto;
    }

    .category-track {
        padding: 0 12vw;
    }

    .category-link {
        margin: 0 5vw;
        padding-bottom: 8px;
        font-size: clamp(52px, 18vw, 86px);
        line-height: 0.8;
    }

    .contact-link {
        white-space: normal;
    }

    .contact-link span {
        overflow-wrap: anywhere;
    }

    .slide-counter {
        right: 22px;
        bottom: 22px;
        font-size: 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .image-track,
    .category-track,
    .category-link,
    .contact-panel,
    .contact-toggle span {
        transition-duration: 1ms;
    }
}
