:root {
    color-scheme: dark;
    --bg: #050505;
    --text: #ffffff;
    --accent: #f4cf00;
    --slides-per-view: 3;
    --slide-gap: 12px;
    --link1-x: 28%;
    --link1-y: 93%;
    --link1-size: 45px;
    --link2-x: 62%;
    --link2-y: 93%;
    --link2-size: 45px;
    --insta-x: 7%;
    --insta-y: 93%;
    --insta-size: 45px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Bebas Neue", "Oswald", "Impact", sans-serif;
    background: var(--bg);
    color: var(--text);
}

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

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



main > section:last-of-type {
    margin-top: 100px;
}

.topbar {
    padding: 50px 40px;
    background: #000;
}

.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.brand-logo {
    width: 200px;
    height: auto;
}

.nav-icon {
    height: 22px;
    width: auto;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 50px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nav-line {
    height: 44px;
    width: 2px;
    object-fit: cover;
}

.header-separator {
    width: 100%;
    height: 2px;
    object-fit: cover;
    display: block;
}

.image-section {
    position: relative;
    background: #000;
    padding: 40px 30px;
}

.section-img {
    width: 100%;
    height: auto;
}

.contact-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.contact-link {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    --contact-size: 64px;
    width: var(--contact-size);
    height: var(--contact-size);
}

.contact-link img,
.contact-link svg {
    width: 100%;
    height: 100%;
    display: block;
}

.contact-link svg {
    fill: var(--accent);
}

.contact-link--one {
    left: var(--link1-x);
    top: var(--link1-y);
    --contact-size: var(--link1-size);
}

.contact-link--two {
    left: var(--link2-x);
    top: var(--link2-y);
    --contact-size: var(--link2-size);
}

.contact-link--location {
    left: var(--insta-x);
    top: var(--insta-y);
    --contact-size: var(--insta-size);
}

.gallery-full {
    padding: 0;
}

.gallery-section {
    position: relative;
    background: #000;
    overflow: hidden;
    --gallery-height: 1120px;
    padding: 250px 0 100px;
}

.gallery-tilts {
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 0;
    height: var(--gallery-height);
    padding: 0;
}

.gallery-tilt {
    position: relative;
    height: auto;
    width: auto;
    flex: 1 1 0;
    max-width: 580px;
    object-fit: cover;
    transform-origin: center center;
    border-radius: 0;
    box-shadow: none;
}

.gallery-tilt + .gallery-tilt {
    margin-left: -2vw;
}

.gallery-tilt.left {
    transform: rotate(-4deg) scale(1.05);
}

.gallery-tilt.center {
    transform: rotate(2deg) scale(1.03);
}

.gallery-tilt.right {
    transform: rotate(4deg) scale(1.05);
}

.gallery-top {
    position: static;
    width: min(100%, 957px);
    height: auto;
}

.gallery-overlay {
    position: absolute;
    left: 50%;
    top: clamp(220px, 28vw, 432px);
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
    z-index: 2;
    width: min(90%, 980px);
}

.gallery-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.gallery-cta img {
    width: min(48%, 260px);
    height: auto;
    display: block;
}

@media (max-width: 900px) {
    .gallery-section {
        --gallery-height: 420px;
    }

    .gallery-tilts {
        height: 420px;
    }

    .gallery-tilt {
        width: 70vw;
        max-width: none;
    }

    .gallery-tilt.left {
        left: -20%;
    }

    .gallery-tilt.center {
        left: 15%;
    }

    .gallery-tilt.right {
        right: -20%;
    }
}

.hero-section {
    position: relative;
    padding: 0;
    --hero1-x: 40%;
    --hero1-y: 3%;
    --hero1-w: 13%;
    --hero2-x: 34%;
    --hero2-y: 2%;
    --hero2-w: 12%;
    --click-x: 4%;
    --click-y: 60%;
    --click-w: 10%;
}

.hero-base {
    width: 100%;
    height: auto;
    padding: 30px 20px;
}

.hero-top,
.hero-click {
    position: absolute;
    height: auto;
    pointer-events: none;
}

.hero-top-1 {
    left: var(--hero1-x);
    top: var(--hero1-y);
    width: var(--hero1-w);
    z-index: 2;
    animation: heroSpin 18s linear infinite;
}

.hero-top-2 {
    left: var(--hero2-x);
    top: var(--hero2-y);
    width: var(--hero2-w);
    z-index: 3;
}

.hero-click {
    left: var(--click-x);
    top: var(--click-y);
    width: var(--click-w);
    z-index: 4;
    pointer-events: auto;
    display: inline-block;
}

@keyframes heroSpin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.footer-stack {
    background: #000;
    padding-bottom: 20px;
    display: grid;
    padding: 70px 10px;
    justify-items: center;
    width: 100%;
}

.footer-logo {
    width: 100%;
    max-width: none;
    padding: 0 20px;
    box-sizing: border-box;
}

.footer-tagline {
    max-width: 100%;
    padding-top: 20px;
}

.footer-line {
    width: 100%;
    height: 2px;
    object-fit: cover;
    display: block;
    
}

@media (max-width: 900px) {
    .header-row {
        flex-wrap: nowrap;
        gap: 12px 16px;
    }

    .nav-line {
        height: 34px;
    }
}

body.gallery-open {
    overflow: hidden;
}

.gallery-section {
    position: relative;
}

.gallery-tilts {
    transition: transform 0.8s ease, filter 0.8s ease, opacity 0.8s ease;
}

.gallery-section.gallery-active .gallery-tilts {
    transform: translateY(-24px) scale(1.07);
    filter: brightness(1.05) saturate(1.1);
    opacity: 1;
}

.gallery-overlay {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.gallery-section.gallery-active .gallery-overlay {
    opacity: 0;
    transform: translateY(-12px) scale(0.94);
    pointer-events: none;
}

.gallery-section.gallery-active .gallery-top {
    opacity: 0;
    transform: translateY(-10px) scale(0.92);
}

.gallery-popup {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    opacity: 0;
    pointer-events: none;
    transform: translateY(30px) scale(0.92);
    transition: opacity 0.6s ease, transform 0.8s ease;
    z-index: 5;
}

.gallery-section.gallery-active .gallery-popup {
    position: fixed;
    inset: 0;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.gallery-popup__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.78);
    border: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.gallery-section.gallery-active .gallery-popup__backdrop {
    opacity: 1;
}

.gallery-popup__panel {
    position: relative;
    width: 100vw;
    height: min(92vh, var(--gallery-height));
    display: block;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    transform: translateY(20px) scale(0.98);
    opacity: 0;
    transition: transform 0.8s ease, opacity 0.8s ease;
    z-index: 1;
}

.gallery-section.gallery-active .gallery-popup__panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.gallery-popup__viewport {
    overflow: hidden;
    width: 100vw;
    height: 100%;
    border-radius: 0;
    border: 0;
}

.gallery-popup__track {
    display: flex;
    height: 100%;
    gap: var(--slide-gap);
    transition: transform 1s ease;
}

.gallery-popup__track img {
    width: calc((100vw - (var(--slide-gap) * 2)) / var(--slides-per-view));
    height: 100%;
    object-fit: cover;
    flex: 0 0 auto;
}

.gallery-popup__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    height: 48px;
    width: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.gallery-popup__nav:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: scale(1.05);
}

.gallery-popup__nav--left {
    left: 18px;
}

.gallery-popup__nav--right {
    right: 18px;
}

.gallery-popup__close {
    position: absolute;
    top: 18px;
    right: 20px;
    z-index: 4;
    height: 36px;
    width: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
}

@media (max-width: 900px) {
    .gallery-popup__panel {
        height: min(82vh, 640px);
    }

    .gallery-popup__nav {
        height: 40px;
        width: 40px;
    }
}

@media (max-width: 900px) {
    :root {
        --slides-per-view: 2;
        --slide-gap: 10px;
        --link1-x: 27%;
        --link1-y: 89%;
        --link1-size: 24px;
        --link2-x: 61%;
        --link2-y: 89%;
        --link2-size: 28px;
        --insta-x: 8%;
        --insta-y: 89%;
        --insta-size: 28px;
    }

    .topbar {
        padding: 28px 20px;
    }

    .brand-logo {
        width: 150px;
    }

    .nav-icon {
        height: 10px;
    }

    .nav-group {
        gap: 24px;
    }

    .nav-line {
        height: 30px;
    }

    .gallery-section {
        --gallery-height: 560px;
        padding: 190px 0 80px;
    }

    .gallery-tilts {
        height: 560px;
    }

    .gallery-cta img {
        width: min(60%, 240px);
    }

    .hero-section {
        --hero1-x: 34%;
        --hero1-y: 4%;
        --hero1-w: 16%;
        --hero2-x: 28%;
        --hero2-y: 3%;
        --hero2-w: 15%;
        --click-x: 6%;
        --click-y: 64%;
        --click-w: 16%;
    }

    .contact-link--one {
        --contact-size: var(--link1-size);
    }

    .contact-link--two {
        --contact-size: var(--link2-size);
    }

    .contact-link--location {
        --contact-size: var(--insta-size);
    }
}

@media (max-width: 600px) {
    :root {
        --slides-per-view: 1;
        --slide-gap: 0px;
        --link1-x: 30%;
        --link1-y: 84%;
        --link1-size: 9px;
        --link2-x: 62%;
        --link2-y: 84%;
        --link2-size: 9px;
        --insta-x: 13%;
        --insta-y: 84%;
        --insta-size: 9px;
    }

    .topbar {
        padding: 22px 16px;
    }

    .brand-logo {
        width: 80px;
    }

    .nav-group {
        gap: 16px;
    }

    .nav-line {
        height: 24px;
    }

    .gallery-section {
        --gallery-height: 420px;
        padding: 160px 0 70px;
    }

    .gallery-tilts {
        height: 420px;
    }

    .gallery-overlay {
        top: clamp(205px, 40vw, 260px);
    }

    .hero-section {
        --hero1-x: 36%;
        --hero1-y: 4%;
        --hero1-w: 18%;
        --hero2-x: 30%;
        --hero2-y: 3%;
        --hero2-w: 16%;
        --click-x: 6%;
        --click-y: 52%;
        --click-w: 13%;
    }

    .contact-link--one {
        left: var(--link1-x);
        top: var(--link1-y);
    }

    .contact-link--two {
        left: var(--link2-x);
        top: var(--link2-y);
    }

    .contact-link--location {
        left: var(--insta-x);
        top: var(--insta-y);
        max-width: 50px;
    }
}
