@font-face {
    font-family: "Helvetica Neue";
    src: url(/fonts/HelveticaNeue/HelveticaNeue-Medium.otf);
    font-weight: 400;
}
@font-face {
    font-family: "Helvetica Neue";
    src: url(/fonts/HelveticaNeue/HelveticaNeue-Light.otf);
    font-weight: 300;
}

html {
    --bright-blue: #0027FF;
    --medium-blue: #0023E8;
    --dark-blue: #000240;
    --white: white;
    
    --grad: linear-gradient(to bottom, var(--bright-blue), var(--dark-blue));

    --gutter: 60px;

    font-size: 24px;
    --large-font-size: 2.67rem;

    scroll-behavior: smooth;
    /* scroll-snap-type: y mandatory; */
}

body {
    margin: 0;
    background-color: var(--white);
    color: var(--medium-blue);
    font-family: "Helvetica Neue", Helvetica, sans-serif;
    font-weight: 300;
}

.sr-only {
    display: none;
}


/* .container {
    width: calc(100% - var(--gutter) * 2);
    max-width: 1400px;
    margin: 0 auto;
} */

p {
    text-wrap-style: balance;
    line-height: 106%;
}
@supports (text-wrap-style: pretty) {
    p {
        text-wrap-style: pretty;
    }
}

a {
    color: currentColor;
    transition-property: opacity;
    transition-duration: .3s;
}
a:hover {
    opacity: 0.5;
}
.cta {
    display: inline-block;
    text-transform: uppercase;
    text-decoration: none;
    padding: .6rem 2rem .5rem;
    outline: 1px solid currentColor;
    border-radius: 999px;
    transition-property: opacity, outline-offset;
}
.cta:hover {
    outline-offset: 5px;
}

h1, h2, h3, h4, h5, h6 {
    line-height: 106%;
}

h1 {
    margin: 0;
}
h2 {
    text-transform: uppercase;
    font-size: var(--large-font-size);
    font-weight: 300;
    margin: 0;
}
h3 {
    font-size: 1rem;
    font-weight: 400;
}

header {
    display: flex;
    justify-content: space-between;
    grid-column: 1 / -1;
}
.home-logo {
    display: block;
    align-self: stretch;
}
.fathom-logo {
    aspect-ratio: 2811 / 515;
    height: 100%;
}
.tagline {
    text-align: right;
    text-transform: uppercase;
    margin: 0;
}

section {
    /* min-height: 100vh; */
    overflow: auto;
    position: relative;
    /* scroll-snap-align: start; */
    padding-inline: max(var(--gutter), calc((100vw - 1400px) / 2));
    padding-block: 3rem;

    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: max-content;
    gap: 1rem .5rem;

}

.more-link {
    text-transform: uppercase;
    text-decoration: none;
    display: grid;
    grid-column-end: span 3;
    grid-template-columns: subgrid;
    gap: .5rem;
    grid-column: 1 / span 4;
}
.more-link span {
    grid-column: 1 / -1;
}
.more-link svg {
    display: block;
    aspect-ratio: 1/1;
    grid-row: 2;
    grid-column: 1;
}
#intro, #challenges-solved, #about-us {
    color: var(--white);
}
#intro {
    background-image: url(/images/contour-mountain.svg), var(--grad);
    background-size: 1200px, 100%;
    background-position: bottom -200px right -500px, center;
    background-repeat: no-repeat;

    row-gap: 4rem;
}
.intro-p {
    grid-column: 4 / span 6;
    font-size: var(--large-font-size);
    text-align: center;
    text-wrap-style: balance;
    margin: 0;
}
:is(#intro, #about-us) .more-link {
    grid-column-end: span 1;
}
:is(#intro, #about-us) .more-link span {
    justify-self: center;
}

#promises-delivered h2 {
    grid-column-end: span 9;
}

.promises {
    list-style: none;
    padding: 0;
    margin: 0;
    grid-column: 1 / -1;
    display: grid;
    align-items: start;
    grid-template-columns: subgrid;
    row-gap: 1rem;
}
.promises .promise {
    grid-column-end: span 3;
    display: grid;
    grid-template-columns: subgrid;
    gap: 10px;
}
.promises .promise .promise-icon {
    aspect-ratio: 1/1;
}
.promises .promise :is(h3, p) {
    grid-column-end: span 3;
    margin: 0;
}


#challenges-solved {
    background-image: url(/images/contour-hills.svg), var(--grad);
    background-size: 100%, 100%;
    background-position: center bottom -14vw, center;
    background-repeat: no-repeat;
}
#challenges-solved h2 {
    grid-row: 2;
    grid-column: 3 / -3;
    text-align: center;
    text-wrap-style: balance;
    margin: 0;
}
#challenges-solved .questions-1 {
    grid-row: 1;
    grid-column: 2 / span 3;
}
#challenges-solved .questions-2 {
    grid-row: 3;
    grid-column: -6 / span 4;
}
#challenges-solved .more-link {
    grid-row: 4;
}

#contact .contact-box {
    grid-column: 5 / -2;
}
#contact .quote {
    grid-row: 2;
    grid-column: 5 / span 4;
}

#about-us {
    background-image: url(/images/contour-mountain.svg), var(--grad);
    background-size: 1200px, 100%;
    background-position: bottom -200px left -500px, center;
    background-repeat: no-repeat;

    row-gap: 4rem;
}
#about-us h2 {
    grid-column: -8 / -2;
    text-align: right;
}
#about-us .about-copy {
    grid-column: 2 / span 4;
    grid-row: 1
}
#about-us .fathom-logo {
    grid-column: 2 / -2;
}
#about-us :is(.more-link, .colophon) {
    grid-column: -3;
}
#about-us .more-link svg {
    rotate: 180deg;
}
.colophon {
    font-size: 0.75rem;
}

@media screen and (max-width: 1000px) {
    html {
        font-size: 20px;
    }
    section {
        grid-template-columns: repeat(4, 1fr);
    }
    /* .more-link svg, .promises .promise .promise-icon {
        max-width: 85px;
    } */
    .intro-p {
        grid-column: 1 / -1;
    }

    .more-link svg, :is(#intro, #about-us) .more-link, .promises .promise .promise-icon {
        margin-right: 33%;
    }
    :is(#intro, #about-us) .more-link svg {
        margin: 0;
    }

    #intro, #about-us {
        background-size: 1000px, 100%;
        background-position: bottom -270px right -500px, center;
    }

    #promises-delivered h2 {
        grid-column: 2 / -1;
    }
    .promises .promise:nth-child(even) {
        grid-column-start: 2;
    }

    #challenges-solved {
        background-size: 250%, 100%;
        background-position: left bottom -35vw, center;
    }
    #challenges-solved h2 {
        grid-column: 1 / -1;
    }
    #challenges-solved .questions-1 {
        grid-row: 1;
        grid-column: 1 / span 3;
    }
    #challenges-solved .questions-2 {
        grid-row: 3;
        grid-column: 2 / span 3;
    }

    #contact :is(.contact-box, .quote) {
        grid-column: 1 / span 3;
    }

    #about-us {
        row-gap: 1rem;
    }
    #about-us :is(h2, .about-copy) {
        grid-column: 1 / span 3;
        grid-row: unset;
    }
    #about-us h2 {
        text-align: left;
    }
    #about-us .fathom-logo {
        grid-column: 1 / -1;
    }
    #about-us :is(.more-link, .colophon) {
        grid-column-start: 1;
    }
    #about-us .colophon {
        grid-column-end: -1;
    }
}
@media screen and (max-width: 500px){
    html {
        --gutter: 30px;
        --large-font-sze: 2rem;
    }
    #contact .contact-box, #about-us :is(h2, .about-copy) {
        grid-column-end: span 4;
    }
    .more-link svg, :is(#intro, #about-us) .more-link, .promises .promise .promise-icon {
        margin-right: 0;
    }
    #promises-delivered h2 {
        grid-column: 1 / -1;
    }
}