:root {
    --font-primary: Arial, sans-serif;
    --font-secondary: Times, serif;

    --color-text: #000;
    --color-bg: #fff;
    --color-link: #000;
    --color-link-hover: #000;
}

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

html,
body {
    width: 100%;
    height: 100%;
}

html {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

ul,
ol,
menu {
    list-style: none;
}

picture,
img,
svg,
video {
    display: block;
    width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: inherit;
    outline: none;
    cursor: pointer;
}

a:focus {
    background: lightgrey;
    outline: none;
}

a:focus:not(:focus-visible) {
    background: transparent;
}

a:focus-visible {
    background: transparent;
    outline: 2px solid red;
}

button,
input,
select,
textarea {
    display: block;
    border: 0;
    border-radius: 0;
    background: 0 0;
    color: inherit;
}

button:hover {
    cursor: pointer;
}

@media (scripting: enabled) {
    .loading::before,
    .loading::after {
        content: "";
        position: fixed;
        z-index: 10000;
    }

    .loading::before {
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: var(--color-bg);
    }

    .loading::after {
        top: 50%;
        left: 50%;
        width: 100px;
        height: 1px;
        margin: 0 0 0 -50px;
        background: var(--color-link);
        animation: loaderAnim 1.5s ease-in-out infinite alternate forwards;
    }
}

@keyframes loaderAnim {
    0% {
        transform: scaleX(0);
        transform-origin: 0% 50%;
    }

    50% {
        transform: scaleX(1);
        transform-origin: 0% 50%;
    }

    50.1% {
        transform: scaleX(1);
        transform-origin: 100% 50%;
    }

    100% {
        transform: scaleX(0);
        transform-origin: 100% 50%;
    }
}

/* ---------------- Index Styles ---------------- */

html {
    font-size: calc(100vw / 1440);
}

body {
    font-family: var(--font-primary);
    font-size: 16rem;
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* ---------------- Block intro ---------------- */

.block--intro {
    position: relative;
    z-index: 1;
}

.media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    padding: 0 24rem;
}

.media__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: lightgray;
}

.media__logo {
    position: relative;
    width: 600rem;
    height: 600rem;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-secondary);
    font-size: 360rem;
    color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

@media (min-width: 768px) {
    .media__logo {
        width: 50vh;
        height: 50vh;
        font-size: 30vh;
    }
}

.media__nav {
    position: absolute;
    bottom: 48rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 48rem;
    padding: 12rem 32rem;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(8rem);
    border-radius: 4rem;
    z-index: 2;
}

.media__nav-link {
    font-family: var(--font-primary);
    font-size: 13rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.media__nav-link:hover {
    color: #fff;
}

/* ---------------- Block main ---------------- */

.block.block--main {
    height: 425vh;
}

.block__wrapper {
    position: sticky;
    top: 0;
    padding: 0 24rem;
    will-change: transform;
    overflow: hidden;
}

.content {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    text-align: center;
    z-index: 1;
}

.content__title {
    width: 924rem;
    font-family: var(--font-secondary);
    font-size: 104rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.content__description {
    width: 455rem;
    margin-top: 24rem;
    font-size: 14rem;
    line-height: 1.3;
    text-transform: uppercase;
}

.content__button {
    margin-top: 32rem;
    font-size: 14rem;
    text-transform: uppercase;
}

.content__button:hover {
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* ---------------- Gallery ---------------- */

.gallery {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate3d(-50%, -50%, 0);
    width: 736rem;
}

.gallery__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 32rem;
    row-gap: 40rem;
    will-change: transform;
}

.gallery__item {
    width: 100%;
    aspect-ratio: 1;
    will-change: transform;
}

.gallery__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: lightgray;
}

/* ---------------- Spacer ---------------- */

.block--spacer {
    height: auto;
    background-color: var(--color-bg);
}

/* -- Intro Section -- */

.spacer-intro {
    position: relative;
    padding: 120rem 24rem;
    overflow: hidden;
}

.spacer-intro__deco {
    position: absolute;
    z-index: 2;
}

.spacer-intro__deco--left {
    top: 48rem;
    left: 48rem;
    transform: rotate(-2deg);
}

.spacer-intro__deco--right {
    bottom: 48rem;
    right: 96rem;
    transform: rotate(3deg);
}

.spacer-intro__deco-img {
    width: 192rem;
    height: 256rem;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.spacer-intro__deco-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(0.2);
    transition: transform 0.7s ease;
}

.spacer-intro__deco-img:hover img {
    transform: scale(1.05);
}

.spacer-intro__content {
    position: relative;
    z-index: 10;
    max-width: 720rem;
    margin: 0 auto;
    text-align: center;
}

.spacer-intro__label {
    font-family: var(--font-primary);
    font-size: 13rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(42, 40, 37, 0.6);
    margin-bottom: 32rem;
}

.spacer-intro__title {
    font-family: var(--font-secondary);
    font-size: 48rem;
    line-height: 1.2;
    color: #141414;
    margin-bottom: 32rem;
}

.spacer-intro__title em {
    font-style: italic;
}

.spacer-intro__text {
    font-family: var(--font-primary);
    font-size: 16rem;
    line-height: 1.7;
    color: rgba(42, 40, 37, 0.7);
    max-width: 640rem;
    margin: 0 auto;
}

.spacer-intro__line {
    width: 1px;
    height: 96rem;
    background: rgba(42, 40, 37, 0.2);
    margin: 48rem auto 0;
}

/* -- Services Section -- */

.spacer-services {
    background-color: #2a2825;
    padding: 120rem 48rem;
}

.spacer-service {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64rem;
    align-items: center;
    max-width: 1200rem;
    margin: 0 auto;
}

.spacer-service + .spacer-service {
    margin-top: 160rem;
}

.spacer-service__label {
    font-family: var(--font-primary);
    font-size: 12rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 16rem;
}

.spacer-service__title {
    font-family: var(--font-secondary);
    font-size: 40rem;
    line-height: 1.2;
    color: #fff;
    margin-bottom: 24rem;
}

.spacer-service__title em {
    font-style: italic;
}

.spacer-service__desc {
    font-family: var(--font-primary);
    font-size: 15rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 32rem;
}

.spacer-service__features {
    display: flex;
    flex-direction: column;
    gap: 16rem;
    margin-bottom: 32rem;
}

.spacer-service__feature {
    display: flex;
    align-items: center;
    gap: 16rem;
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-primary);
    font-size: 14rem;
}

.spacer-service__feature iconify-icon {
    font-size: 18rem;
}

.spacer-service__link {
    display: inline-block;
    font-family: var(--font-primary);
    font-size: 14rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 4rem;
    transition: border-color 0.3s ease;
}

.spacer-service__link:hover {
    border-color: #fff;
}

.spacer-service__images {
    position: relative;
    height: 500rem;
}

.spacer-service__img-main {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80%;
    height: 80%;
    overflow: hidden;
}

.spacer-service__img-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.3);
}

.spacer-service__img-accent {
    position: absolute;
    top: 48rem;
    right: 0;
    width: 40%;
    aspect-ratio: 3 / 4;
    border: 8px solid #2a2825;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.spacer-service__img-accent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* -- CTA Section -- */

.spacer-cta {
    position: relative;
    height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.spacer-cta__bg {
    position: absolute;
    inset: 0;
}

.spacer-cta__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    mix-blend-mode: overlay;
    filter: grayscale(1);
}

.spacer-cta__content {
    position: relative;
    z-index: 10;
    padding: 0 24rem;
}

.spacer-cta__label {
    font-family: var(--font-primary);
    font-size: 12rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 24rem;
}

.spacer-cta__title {
    font-family: var(--font-secondary);
    font-size: 56rem;
    line-height: 1.15;
    color: #fff;
    max-width: 900rem;
    margin: 0 auto;
}

.spacer-cta__title em {
    font-style: italic;
}

.spacer-cta__text {
    font-family: var(--font-primary);
    font-size: 15rem;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 32rem;
    max-width: 480rem;
    margin-left: auto;
    margin-right: auto;
}

.spacer-cta__link {
    display: inline-block;
    margin-top: 40rem;
    font-family: var(--font-primary);
    font-size: 14rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 8rem;
    transition: border-color 0.3s ease;
}

.spacer-cta__link:hover {
    border-color: #fff;
}

.spacer-cta__coords {
    position: absolute;
    bottom: 32rem;
    left: 32rem;
    z-index: 10;
}

.spacer-cta__coords p {
    font-family: var(--font-primary);
    font-size: 12rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
}

/* -- Footer -- */

.spacer-footer {
    background-color: #eee9df;
}

.spacer-footer__grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
}

.spacer-footer__grid-item {
    aspect-ratio: 1;
    overflow: hidden;
}

.spacer-footer__grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.3);
    transition: all 0.7s ease;
}

.spacer-footer__grid-item:hover img {
    transform: scale(1.05);
    filter: grayscale(0);
}

.spacer-footer__main {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 96rem;
    max-width: 1200rem;
    margin: 0 auto;
    padding: 48rem 48rem 64rem;
}

.spacer-footer__logo {
    font-family: var(--font-secondary);
    font-style: italic;
    font-size: 48rem;
    color: #141414;
}

.spacer-footer__brand-text {
    font-family: var(--font-primary);
    font-size: 13rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(42, 40, 37, 0.6);
    margin-top: 16rem;
}

.spacer-footer__col-label {
    font-family: var(--font-primary);
    font-size: 12rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(42, 40, 37, 0.4);
    margin-bottom: 24rem;
}

.spacer-footer__links,
.spacer-footer__contact {
    display: flex;
    flex-direction: column;
    gap: 12rem;
    font-family: var(--font-primary);
    font-size: 14rem;
    color: #2a2825;
}

.spacer-footer__links a:hover {
    color: rgba(42, 40, 37, 0.6);
}

.spacer-footer__coords {
    margin-top: 24rem;
    font-size: 12rem !important;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(42, 40, 37, 0.4) !important;
}

.spacer-footer__form {
    max-width: 1200rem;
    margin: 0 auto;
    padding: 0 48rem 48rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16rem;
}

.contact-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16rem;
}

.contact-form__input,
.contact-form__textarea {
    width: 100%;
    padding: 14rem 16rem;
    font-family: var(--font-primary);
    font-size: 14rem;
    color: #2a2825;
    background: transparent;
    border: 1px solid rgba(42, 40, 37, 0.2);
    outline: none;
    transition: border-color 0.3s ease;
}

.contact-form__input::placeholder,
.contact-form__textarea::placeholder {
    color: rgba(42, 40, 37, 0.4);
}

.contact-form__input:focus,
.contact-form__textarea:focus {
    border-color: rgba(42, 40, 37, 0.5);
}

.contact-form__textarea {
    resize: vertical;
    min-height: 100rem;
}

.contact-form__submit {
    align-self: flex-start;
    padding: 14rem 40rem;
    font-family: var(--font-primary);
    font-size: 13rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #fff;
    background: #2a2825;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form__submit:hover {
    background: #141414;
}

.spacer-footer__bottom {
    border-top: 1px solid rgba(42, 40, 37, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200rem;
    margin: 0 auto;
    padding: 24rem 48rem;
    font-family: var(--font-primary);
    font-size: 12rem;
    color: rgba(42, 40, 37, 0.4);
}