/* ==========================================
   ABOUT PAGE
   ========================================== */

html,
body {
    background: #111;
}


.about-page {
    position: relative;

    width: 100%;

    background: #111;
    color: #fff;

    z-index: 5;
}


.scroll-space {
    background: #111;
}


/* ==========================================
   INTRO
   ========================================== */

.contact-intro {
    width: 100%;

    box-sizing: border-box;

    padding:
        220px
        40px
        150px;

    background: rgba(17, 17, 17, 0.5);
}


.contact-intro-inner {
    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
}


.contact-intro-label {
    display: block;

    margin-bottom: 25px;

    color: #777;

    font-size: 0.8rem;
    font-weight: 500;

    letter-spacing: 0.22em;
}


.contact-intro h1 {
    max-width: 900px;

    margin: 0;

    color: #f2f2f2;

    font-size: clamp(
        3.5rem,
        7vw,
        7rem
    );

    font-weight: 500;

    line-height: 0.95;

    letter-spacing: -0.04em;
}


.contact-intro p {
    max-width: 600px;

    margin:
        45px
        0
        0;

    color: #aaa;

    font-size: 1.1rem;
    line-height: 1.7;
}

.contact-intro {
    position: relative;

    width: 100%;
    box-sizing: border-box;

    padding: 220px 40px 150px;

    background-image: url("../img/contactBackground.avif");
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;

    color: #fff;
}


/* 75% opaque dark layer */
.contact-intro::before {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(17, 17, 17, 0.95) 0%,
        rgba(17, 17, 17, 0.90) 50%,
        rgba(17, 17, 17, 0.85) 80%,
        rgba(17, 17, 17, 0.1) 100%
    );

    z-index: 0;
}


/* Keep text above overlay */
.contact-intro-inner {
    position: relative;
    z-index: 1;

    width: 100%;
    max-width: 1400px;

    margin: 0 auto;
}

/* ==========================================
   PURE CSS PARALLAX
   ========================================== */

.parallax-image {
    width: 100%;
    height: 70vh;
    min-height: 500px;

    background-image:
        url("../img/contactBackground.avif");

    background-size: cover;

    background-position:
        center center;

    background-repeat:
        no-repeat;

    background-attachment:
        fixed;
}

/* ==========================================
   DIRECT CONTACT
   ========================================== */

.contact-direct {
    width: calc(100% - 80px);
    max-width: 1400px;

    margin: 0 auto 160px;
}

.contact-direct h2 {
    max-width: 1000px;

    margin: 0 0 12px;

    color: #aaa;

    font-size: clamp(1.25rem, 2vw, 1.8rem);
    font-weight: 400;
    line-height: 1.5;

    letter-spacing: -0.01em;
}

.contact-direct h2 b {
    font-weight: 500;
}

.contact-direct a {
    position: relative;

    color: #f2f2f2;

    text-decoration: none;

    transition:
        color 250ms ease,
        opacity 250ms ease;
}

/* subtle underline */
.contact-direct a::after {
    content: "";

    position: absolute;
    left: 0;
    bottom: -3px;

    width: 100%;
    height: 1px;

    background: #777;

    transform: scaleX(0);
    transform-origin: right;

    transition:
        transform 300ms ease;
}

.contact-direct a:hover {
    color: #fff;
}

.contact-direct a:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}


/* ==========================================
   DIRECT CONTACT — MOBILE
   ========================================== */

@media (max-width: 650px) {

    .contact-direct {
        width: calc(100% - 40px);

        margin-bottom: 110px;
    }

    .contact-direct h2 {
        margin-bottom: 16px;

        font-size: 1.15rem;
        line-height: 1.55;
    }

}

/* ==========================================
   CONTACT GRID
   ========================================== */

.contact-grid {
    width: calc(100% - 80px);
    max-width: 1400px;

    /* more separation from the parallax section above */
    margin: 180px auto 180px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    border-top: 1px solid #333;
    border-left: 1px solid #333;
}

.contact-card {
    min-width: 0;

    padding: 45px 35px;

    display: flex;
    flex-direction: column;

    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
}

.contact-card h3 {
    margin: 0 0 8px;

    color: #f2f2f2;

    font-size: 1.2rem;
    font-weight: 500;
    line-height: 1.2;
}

.contact-title {
    min-height: 2.5em;

    margin: 0 0 25px;

    color: #777;

    font-size: 0.8rem;
    font-weight: 500;

    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.contact-card a {
    margin-top: 8px;

    color: #aaa;

    font-size: 0.9rem;
    line-height: 1.4;

    text-decoration: none;

    overflow-wrap: anywhere;

    transition: color 250ms ease;
}

.contact-card a:hover {
    color: #fff;
}


/* ==========================================
   CONTACT GRID — TABLET
   ========================================== */

@media (max-width: 900px) {

    .contact-grid {
        grid-template-columns: repeat(2, 1fr);

        margin-top: 120px;
    }

}

@media (max-width: 650px) {

    .contact-grid {
        width: calc(100% - 40px);

        grid-template-columns: 1fr;

        margin: 90px auto 120px;
    }

    .contact-card {
        padding: 30px 24px;
    }

    .contact-title {
        min-height: 0;
        margin-bottom: 18px;
    }

}


/* ==========================================
   TABLET
   ========================================== */

@media (max-width: 900px) {

    .contact-intro {
        padding:
            180px
            30px
            110px;
    }


    .contact-intro h1 {
        font-size: clamp(
            3.5rem,
            9vw,
            5.5rem
        );
    }


    .parallax-image {
        height: 60vh;
        min-height: 450px;
    }

}


/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 650px) {

    .contact-intro {
        padding:
            150px
            20px
            85px;
    }


    .contact-intro-label {
        margin-bottom: 18px;
    }


    .contact-intro h1 {
        font-size: 3.2rem;

        line-height: 0.98;
    }


    .contact-intro p {
        margin-top: 30px;

        font-size: 1rem;
    }


    .parallax-image {
        height: 55vh;
        min-height: 375px;
    }


    /*
        Give the photo a little extra height
        so it can still move inside the frame.
    */

    .parallax-image img {
        top: -10%;

        height: 120%;
    }

}