/* =========================================================
   ROOT
========================================================= */

:root
{
    --background: #1a1e21;
    --background-deep: #111417;
    --panel: #24292d;
    --brand-panel: #35394b;
    --blue: #087cff;
    --white: #ffffff;
    --black: #000000;
    --text-muted: #c7cbd0;
}

/* =========================================================
   RESET
========================================================= */

*
{
    box-sizing: border-box;
}

html
{
    scroll-behavior: smooth;
}

body
{
    margin: 0;

    overflow-x: hidden;

    background: var(--background);

    color: var(--white);

    font-family:
        Montserrat,
        Arial,
        Helvetica,
        sans-serif;
}

body.menu-open
{
    overflow: hidden;
}

img
{
    display: block;

    max-width: 100%;
}

button,
a,
input,
textarea
{
    font: inherit;
}

a
{
    color: inherit;

    text-decoration: none;
}

button
{
    cursor: pointer;
}

/* =========================================================
   HEADER AND MENU
========================================================= */

.site-header
{
    position: fixed;

    top: 0;
    left: 0;

    z-index: 100;

    display: flex;

    width: 100%;

    align-items: center;
    justify-content: space-between;

    padding: 18px 24px;

    pointer-events: none;
}

.site-header > *
{
    pointer-events: auto;
}

.floating-logo
{
    opacity: 0;

    transform: translateY(-10px);

    transition:
        opacity 0.3s ease,
        transform 0.3s ease;
}

.floating-logo.is-visible
{
    opacity: 1;

    transform: translateY(0);
}

.floating-logo img
{
    width: 54px;

    filter: brightness(0) invert(1);
}

.menu-button
{
    display: grid;

    width: 40px;
    height: 40px;

    place-content: center;

    gap: 6px;

    margin-left: auto;

    padding: 0;

    border: 0;
    border-radius: 50%;

    background: rgba(0, 0, 0, 0.38);
}

.menu-button span
{
    display: block;

    width: 18px;
    height: 2px;

    background: var(--white);
}

.site-menu
{
    position: fixed;

    inset: 0;

    z-index: 110;

    display: flex;

    align-items: center;
    justify-content: center;
    flex-direction: column;

    gap: 8px;

    visibility: hidden;

    opacity: 0;

    background: rgba(26, 30, 33, 0.98);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.site-menu.is-open
{
    visibility: visible;

    opacity: 1;
}

.site-menu > a
{
    font-size: clamp(52px, 8vw, 116px);

    font-weight: 900;

    line-height: 0.98;

    text-transform: uppercase;
}

.site-menu > a:hover
{
    color: var(--blue);
}

.menu-close
{
    position: absolute;

    top: 20px;
    right: 24px;

    width: 44px;
    height: 44px;

    padding: 0;

    border: 0;

    background: transparent;

    color: var(--white);

    font-size: 46px;

    line-height: 1;
}

/* =========================================================
   HERO
========================================================= */

.hero
{
    position: relative;

    min-height: 100vh;

    overflow: hidden;
}

.hero__background
{
    position: absolute;

    inset: 0;

    background-image: url('/assets/images/3-N-4K.webp');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;

    transform: scale(1.03);
}

.hero__shade
{
    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(12, 14, 16, 0.92) 0%,
            rgba(12, 14, 16, 0.55) 31%,
            rgba(12, 14, 16, 0.08) 69%,
            rgba(12, 14, 16, 0.02) 100%
        );
}

.hero__content
{
    position: relative;

    z-index: 2;

    display: flex;

    min-height: 100vh;

    max-width: 660px;

    align-items: flex-start;
    justify-content: center;
    flex-direction: column;

    padding:
        120px
        clamp(24px, 4.2vw, 80px)
        80px;
}

.hero__brand
{
    display: flex;

    align-items: flex-start;
    flex-direction: column;
}

.hero__logo
{
    width: clamp(235px, 31vw, 515px);
}

.hero__description
{
    width: clamp(235px, 31vw, 515px);

    margin-top: 8px;
}

.hero__text
{
    margin:
        28px
        0
        10px;

    font-size: clamp(12px, 1vw, 16px);

    line-height: 1.45;
}

.hero__link
{
    color: var(--blue);

    font-size: clamp(12px, 1vw, 16px);

    font-weight: 700;
}

/* =========================================================
   ABOUT
========================================================= */

.about
{
    display: grid;

    min-height: 62vh;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    align-items: center;

    gap: clamp(30px, 6vw, 110px);

    padding:
        clamp(55px, 7vw, 120px)
        clamp(25px, 7vw, 130px);
}

.about__visual
{
    display: flex;

    align-items: center;
    justify-content: center;
}

.about__visual img
{
    width: min(620px, 100%);
}

.about__content
{
    max-width: 680px;
}

.about__content h2
{
    margin: 0 0 16px;

    color: var(--blue);

    font-size: clamp(18px, 2vw, 30px);
}

.about__content p
{
    margin: 0 0 14px;

    color: var(--white);

    font-size: clamp(12px, 1vw, 16px);

    line-height: 1.45;
}

/* =========================================================
   SERVICES
========================================================= */

.services
{
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 50px;

    padding:
        72px
        clamp(30px, 7vw, 125px);

    background: var(--white);

    color: var(--black);

    text-align: center;
}

.service h2
{
    margin: 0 0 10px;

    color: var(--blue);

    font-size: clamp(16px, 1.5vw, 25px);
}

.service p
{
    margin: 0;

    font-size: clamp(10px, 0.75vw, 13px);

    line-height: 1.35;
}

/* =========================================================
   SECTION HEADINGS
========================================================= */

.section-heading
{
    display: flex;

    justify-content: center;

    margin: 0;
}

.section-heading h2
{
    min-width: min(680px, 70vw);

    margin: 0;

    padding: 20px 70px;

    background: var(--background);

    color: var(--white);

    clip-path:
        polygon(
            8% 0,
            92% 0,
            100% 100%,
            0 100%
        );

    font-size: clamp(34px, 4vw, 62px);

    font-weight: 800;

    text-align: center;
}

.section-heading--works
{
    background: var(--white);
}

.section-heading--contact
{
    background: var(--background);
}

.section-heading--contact h2
{
    background: var(--panel);
}

/* =========================================================
   WORKS
========================================================= */

.works
{
    background: var(--background);
}

.works-grid
{
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-card
{
    position: relative;

    overflow: hidden;

    aspect-ratio: 16 / 9;

    background: var(--background-deep);
}

.project-card img
{
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

.project-card__overlay
{
    position: absolute;

    inset: 0;

    display: flex;

    align-items: flex-end;

    padding: 22px;

    opacity: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0) 45%,
            rgba(0, 0, 0, 0.8) 100%
        );

    transition: opacity 0.3s ease;
}

.project-card__overlay h3
{
    margin: 0;

    font-size: 16px;

    font-weight: 500;

    text-transform: uppercase;
}

.project-card:hover img
{
    transform: scale(1.045);
}

.project-card:hover .project-card__overlay
{
    opacity: 1;
}

.works__more
{
    display: flex;

    align-items: center;
    justify-content: center;

    min-height: 180px;
}

.more-button
{
    padding: 8px 22px;

    border: 0;
    border-radius: 999px;

    background: var(--blue);

    color: var(--white);

    font-size: 15px;

    font-weight: 700;
}

/* =========================================================
   BRAND PANEL
========================================================= */

.brand-panel
{
    display: grid;

    min-height: 390px;

    place-items: center;

    background: var(--brand-panel);

    clip-path:
        polygon(
            0 0,
            100% 8%,
            100% 100%,
            0 92%
        );
}

.brand-panel img
{
    width: 115px;

    opacity: 0.45;
}

/* =========================================================
   VALUES
========================================================= */

.values
{
    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    gap: 50px;

    padding:
        90px
        clamp(30px, 7vw, 125px)
        105px;

    text-align: center;
}

.value h2
{
    margin: 0 0 10px;

    color: var(--blue);

    font-size: clamp(15px, 1.35vw, 23px);
}

.value p
{
    margin: 0;

    font-size: clamp(10px, 0.75vw, 13px);

    line-height: 1.4;
}

/* =========================================================
   CONTACT
========================================================= */

.contact
{
    background: var(--panel);
}

.contact__layout
{
    display: grid;

    grid-template-columns:
        minmax(150px, 1fr)
        minmax(420px, 2fr)
        minmax(150px, 1fr);

    align-items: start;

    gap: 55px;

    padding:
        45px
        clamp(20px, 3vw, 60px)
        60px;
}

.contact__caption,
.contact__write
{
    padding-top: 15px;

    font-size: clamp(16px, 1.45vw, 24px);
}

.contact__write
{
    text-align: right;
}

.contact-form
{
    display: grid;

    gap: 8px;
}

.contact-form label
{
    display: grid;

    gap: 3px;

    padding: 7px 10px;

    background: #171b1e;
}

.contact-form label span
{
    font-size: 9px;
}

.contact-form input,
.contact-form textarea
{
    width: 100%;

    padding: 0;

    border: 0;
    outline: 0;

    background: transparent;

    color: var(--white);

    font-size: 13px;

    resize: vertical;
}

.captcha-placeholder
{
    display: grid;

    grid-template-columns:
        auto
        34px
        1fr;

    align-items: stretch;

    min-height: 42px;

    background: var(--white);

    color: var(--black);
}

.captcha-placeholder > span
{
    display: grid;

    min-width: 70px;

    place-items: center;

    font-family: Georgia, serif;

    font-size: 20px;
}

.captcha-placeholder button
{
    border: 0;

    background: var(--blue);

    color: var(--white);
}

.captcha-placeholder input
{
    padding: 0 12px;

    border: 0;
    outline: 0;

    background: var(--white);

    color: var(--black);
}

.contact-form__submit
{
    min-height: 32px;

    border: 0;
    border-radius: 999px;

    background: var(--blue);

    color: var(--white);

    font-size: 13px;

    font-weight: 700;
}

.social-links
{
    display: flex;

    justify-content: flex-end;

    gap: 10px;

    margin-top: 18px;
}

.social-links a
{
    display: grid;

    width: 28px;
    height: 28px;

    place-items: center;

    border-radius: 50%;

    background: var(--blue);

    font-size: 15px;
}

/* =========================================================
   FOOTER
========================================================= */

.site-footer
{
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 15px 20px;

    background: var(--background-deep);

    font-size: 9px;

    text-transform: uppercase;
}

.site-footer nav
{
    display: flex;

    gap: 36px;
}

/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px)
{
    .about
    {
        grid-template-columns: 1fr;
    }

    .about__visual img
    {
        width: min(520px, 90vw);
    }

    .contact__layout
    {
        grid-template-columns: 1fr;
    }

    .contact__write
    {
        text-align: left;
    }

    .social-links
    {
        justify-content: flex-start;
    }
}

/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 720px)
{
    .site-header
    {
        padding: 14px;
    }

    .hero
    {
        min-height: 78vh;
    }

    .hero__content
    {
        min-height: 78vh;

        padding:
            90px
            20px
            45px;
    }

    .hero__logo,
    .hero__description
    {
        width: min(78vw, 390px);
    }

    .hero__text,
    .hero__link
    {
        display: none;
    }

    .about
    {
        padding:
            60px
            22px;
    }

    .services,
    .values
    {
        grid-template-columns: 1fr;

        gap: 40px;

        padding:
            58px
            24px;
    }

    .section-heading h2
    {
        min-width: 82vw;

        padding: 14px 30px;
    }

    .works-grid
    {
        grid-template-columns: 1fr;
    }

    .project-card__overlay
    {
        opacity: 1;
    }

    .brand-panel
    {
        min-height: 280px;
    }

    .contact__layout
    {
        padding:
            35px
            18px
            45px;
    }

    .site-footer nav
    {
        display: none;
    }
}
