* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

*:focus {
    outline: none;
}

html {
    scroll-behavior: smooth;
    scroll-snap-type: y proximity;
}

html,
body {
    overflow-x: hidden;
    font: 300 1rem/1.7 "IBM Plex Sans", sans-serif;
    color: #252525;
    background: #F6F6F5;
    -webkit-tap-highlight-color: transparent;
}

h2 {
    font-size: 1.2rem;
    font-weight: 400;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

h3 {
    font-size: 1rem;
    font-weight: 500;
}

p {
    margin-bottom: 1.5rem;
}

ul {
    margin-bottom: 1rem;
}

li {
    list-style: disc;
    margin-left: 2rem;
}

.info p,
.cookie-banner p {
    margin: 0;
}

.background figcaption,
address,
.cookie-banner {
    font: 300 0.7rem/1.6 "IBM Plex Mono", monospace;
}

.images figcaption,
.legal {
    font: 300 0.65rem/1.2 "IBM Plex Mono", monospace;
}

a,
button,
.image-hover {
    font: inherit;
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0.2em;
    transition: opacity 0.2s ease;
}

a:hover,
button:hover {
    opacity: 0.7;
}

nav a {
    text-decoration: none;
}

.legal a {
    text-decoration: underline;
}

button {
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
}

img {
    display: block;
    width: 100%;
    -webkit-user-drag: none;
}

button,
img,
.image-hover,
.images figure,
.accordion-trigger,
.close {
    user-select: none;
}

.nav {
    position: fixed;
    inset: 0 auto auto 0;
    z-index: 200;
    width: 100%;
    padding: 0.5rem 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #FFF8E7;
    text-transform: uppercase;
    border-bottom: 0.1rem solid currentColor;
    backdrop-filter: blur(8px);
    transition: color 0.45s ease, background-color 0.45s ease;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.background {
    position: relative;
    scroll-snap-align: start;
}

.background img {
    height: 100vh;
    object-fit: cover;
}

.background figcaption {
    position: absolute;
    inset: auto 4rem 4rem auto;
    max-width: 20rem;
    text-align: right;
    color: #FFF8E7;
}

.info {
    position: absolute;
    inset: 5rem auto auto 4rem;
    z-index: 100;
    display: flex;
    gap: 3rem;
    font: 300 0.9rem/1.4 "IBM Plex Mono", monospace;
    color: #FFF8E7;
    text-transform: uppercase;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.15);
    opacity: 0;
}

.info span {
    display: block;
}

.about {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 3rem 4rem;
    height: 100vh;
    scroll-snap-align: start;
}

.text {
    width: clamp(24ch, 26vw, 28ch);
    flex-shrink: 0;
}

.image-hover {
    position: relative;
}

.hover-image {
    position: absolute;
    inset: auto auto 2.5rem 15%;
    width: 8rem;
    opacity: 0;
    visibility: hidden;
    transform: translateX(15%) translateY(12px);
    transition: transform 0.3s ease, opacity 0.3s ease;
    pointer-events: none;
}

.image-hover:hover .hover-image {
    opacity: 1;
    visibility: visible;
}

.images {
    position: relative;
    flex: 1;
    height: 100vh;
}

.images figure {
    position: absolute;
    z-index: 1;
    touch-action: none;
}

.images figcaption {
    padding-top: 0.4rem;
}

.services {
    display: flex;
    align-items: flex-start;
    gap: 4rem;
    padding: 3rem 4rem;
    scroll-snap-align: start;
}

.services-content {
    width: 60%;
}

.services-image {
    width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.services-image img {
    object-fit: cover;
    cursor: pointer;
}

.accordion-trigger {
    all: unset;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding-block: 1rem;
    cursor: pointer;
    border-bottom: 0.1rem solid currentColor;
    text-transform: uppercase;
}

.accordion-trigger span.toggle {
    font-size: 1.5rem;
    font-weight: 200;
    flex-shrink: 0;
}

.accordion .panel {
    overflow: hidden;
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: max-height 0.45s ease, opacity 0.3s ease, transform 0.3s ease;
}

.accordion-item.active .panel {
    opacity: 1;
    transform: translateY(0);
    padding-block: 1rem;
}

.popup {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.popup {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.popup.show {
    opacity: 1;
    pointer-events: auto;
}

.lightbox {
    display: none;
}

.lightbox img {
    height: 50%;
    width: auto;
}

form {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 40rem;
    min-width: 25rem;
    padding: 4rem;
    background: #F6F6F5;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 2rem rgba(37, 37, 37, 0.15);
    backdrop-filter: blur(8px);
}

input,
input::placeholder,
textarea {
    font: inherit;
    color: inherit;
}

input {
    padding-block: 0.25rem;
    background: none;
    border: none;
    border-bottom: 0.1rem solid currentColor;
}

.textarea {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    text-transform: uppercase;
}

textarea {
    height: 15rem;
    padding: 0.5rem 1rem;
    background: inherit;
    border: 0.1rem solid currentColor;
    resize: none;
}

.close {
    position: absolute;
    inset: 1rem 3rem auto auto;
    font-size: 2rem;
    font-weight: 200;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 4rem;
}

footer img {
    width: 3rem;
}

.legal {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    padding-block: 1.5rem;
    border-top: 0.1rem solid currentColor;
}

.cookie-banner {
    position: fixed;
    inset: auto 4rem 2rem auto;
    z-index: 999;
    max-width: 30rem;
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #FFF8E7;
    gap: 1.5rem;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 2rem rgba(37, 37, 37, 0.15);
    backdrop-filter: blur(8px);
    transition: color 0.45s ease, background-color 0.45s ease;
}

.cookie-buttons {
    display: flex;
    gap: 1.5rem;
    white-space: nowrap;
}

.privacy {
    padding: 8rem 4rem 2rem;
}

.hidden {
    display: none;
}

@media (max-width: 660px) {
    .nav {
        padding-inline: 2rem;
        white-space: nowrap;
    }

    .nav-links {
        gap: 1rem;
    }

    .background figcaption {
        inset: auto 3rem 3rem auto;
    }

    .info {
        flex-direction: column;
        gap: 2rem;
        inset-inline-start: 3rem;
    }

    .about {
        flex-direction: column;
        gap: 1rem;
        padding: 4rem 3rem 3rem;
        height: auto;
    }

    .text {
        width: 100%;
    }

    .images {
        min-height: 100vh;
        width: 100%;
    }

    .services {
        flex-direction: column;
        gap: 2rem;
        padding: 4rem 3rem;
    }

    .services-content,
    .services-image {
        width: 100%;
    }

    .lightbox img {
        height: auto;
        width: 70%;
    }

    footer {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem 2rem 10rem;
        text-align: center;
    }

    form {
        padding-inline: 3rem;
        height: 100%;
    }

    .close {
        color: inherit;
    }

    .privacy {
        padding-inline: 3rem;
    }

    .cookie-banner {
        inset: auto auto 1rem 50%;
        transform: translateX(-50%);
        width: 85%;
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
        text-align: center;
    }

    .cookie-buttons {
        gap: 2rem;
    }
}