@font-face {
    font-family: "Graystroke";
    src: url("../assets/fonts/GRAYSTROKE_REGULAR.otf") format("opentype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    color-scheme: light;
    --ink: #17231e;
    --muted: #58635e;
    --paper: #f3f5ef;
    --white: #fff;
    --forest: #173a30;
    --lime: #d7f56a;
    --line: rgba(23, 35, 30, .2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    color: var(--ink);
    background: var(--paper);
    font-family: "Trebuchet MS", "Lucida Sans Unicode", sans-serif;
    font-size: 1rem;
    line-height: 1.6;
}

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid var(--lime);
    outline-offset: 5px;
}

.skip-link {
    position: absolute;
    z-index: 5;
    top: 1rem;
    left: 1rem;
    padding: .6rem 1rem;
    color: var(--ink);
    background: var(--white);
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: 5.5rem;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 7vw;
    background: var(--white);
}

.site-header__brand {
    display: inline-flex;
    flex: 0 0 auto;
}

.site-header__brand img {
    display: block;
    width: 10.5rem;
    height: auto;
}

.site-nav,
.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .7rem 2rem;
}

.site-nav a,
.footer-nav a,
.footer-nav button {
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover,
.footer-nav a:hover,
.footer-nav button:hover {
    text-decoration: underline;
    text-underline-offset: .3em;
}

.footer-nav button {
    padding: 0;
    border: 0;
    color: inherit;
    background: none;
    font: inherit;
    font-size: inherit;
    font-weight: inherit;
    text-align: left;
    cursor: pointer;
    text-decoration: none;
}

.hero {
    position: relative;
    display: flex;
    min-height: 37rem;
    align-items: center;
    overflow: hidden;
    padding: 6rem 12vw 7rem;
    color: var(--white);
    background: #243a31 url("../assets/img/fitz-roy-road.jpg") center 48% / cover no-repeat;
}

.hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(14, 28, 23, .86), rgba(14, 28, 23, .2));
    content: "";
}

.hero__content,
.hero__caption {
    position: relative;
}

.hero__content {
    max-width: 43rem;
}

.eyebrow {
    margin-bottom: 1rem;
    color: #39735d;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--lime);
}

.wordmark {
    font-family: "Graystroke", Georgia, "Times New Roman", serif;
    font-weight: 400;
    letter-spacing: .03em;
}

h1,
h2 {
    font-family: "Graystroke", Georgia, "Times New Roman", serif;
    font-weight: 400;
    line-height: 1.08;
}

h1 {
    max-width: 12ch;
    font-size: 4.5rem;
}

.hero__intro {
    max-width: 35rem;
    margin-top: 1.5rem;
    color: rgba(255, 255, 255, .88);
    font-size: 1.125rem;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: .8rem;
    margin-top: 2rem;
    padding-bottom: .35rem;
    border-bottom: 1px solid currentColor;
    font-size: .95rem;
    font-weight: 700;
    text-decoration: none;
}

.text-link span,
.contact-link span {
    font-size: 1.2em;
}

.hero__caption {
    position: absolute;
    right: 7vw;
    bottom: 2rem;
    color: rgba(255, 255, 255, .82);
    font-size: .75rem;
}

.section {
    position: relative;
    display: grid;
    min-height: 550px;
    grid-template-columns: minmax(12rem, .75fr) minmax(0, 1.5fr);
    gap: 3rem;
    padding: 6rem 12vw;
    overflow: hidden;
}

.section__index {
    padding-top: .35rem;
    color: var(--muted);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.section__body {
    position: relative;
    z-index: 1;
    max-width: 42rem;
}

h2 {
    max-width: 15ch;
    font-size: 3.25rem;
}

.section__copy {
    max-width: 36rem;
    margin-top: 1.4rem;
    color: var(--muted);
    font-size: 1.05rem;
}

.section--what {
    background: var(--paper);
}

.services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2.75rem;
    max-width: 44rem;
    margin-top: 2rem;
    list-style: none;
    counter-reset: service;
}

.services li {
    counter-increment: service;
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    padding: 1rem 0 .95rem;
    border-top: 1px solid var(--line);
    font-size: 1.05rem;
    font-weight: 600;
}

.services li::before {
    content: counter(service, decimal-leading-zero);
    color: var(--muted);
    font-family: "Graystroke", Georgia, "Times New Roman", serif;
    font-size: .8rem;
    letter-spacing: .1em;
}

.section__mark {
    position: absolute;
    right: 9vw;
    bottom: -5rem;
    color: rgba(23, 58, 48, .07);
    font-family: "Graystroke", Georgia, "Times New Roman", serif;
    font-size: 30rem;
    line-height: .8;
}

.section--contact .section__mark {
    color: rgba(255, 255, 255, .07);
}

.section--contact {
    color: var(--white);
    background: var(--forest);
}

.section--contact .section__index,
.section--contact .section__copy {
    color: rgba(255, 255, 255, .72);
}

.section--contact .eyebrow {
    color: var(--lime);
}

.contact-link {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-top: 1.8rem;
    color: var(--lime);
    font-size: 1.2rem;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: .25em;
}

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

.section--where {
    min-height: 550px;
    background: #dfe8d4;
}

.clients-carousel {
    max-width: 44rem;
    margin-top: 2rem;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

@keyframes clients-scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

.clients-carousel__track {
    display: flex;
    width: max-content;
    animation: clients-scroll 32s linear infinite;
}

.clients-carousel:hover .clients-carousel__track,
.clients-carousel:focus-within .clients-carousel__track {
    animation-play-state: paused;
}

.clients-logo {
    flex: 0 0 auto;
    width: 8.5rem;
    height: 8.5rem;
    aspect-ratio: 1 / 1;
    margin-right: 2.5rem;
    object-fit: contain;
    opacity: .75;
    transition: opacity .2s ease;
}

.clients-logo:hover {
    opacity: 1;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2.5rem 7vw;
    color: var(--white);
    background: #121d19;
}

.site-footer__brand {
    font-family: "Graystroke", Georgia, "Times New Roman", serif;
    font-size: 1.2rem;
    text-decoration: none;
}

.footer-nav {
    gap: .7rem 1.5rem;
}

.footer-nav a,
.footer-nav button,
.site-footer__email {
    color: rgba(255, 255, 255, .8);
    font-size: .8rem;
}

.site-footer__email {
    text-decoration: none;
}

@media (max-width: 760px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: .8rem;
        padding: 1.2rem 1.5rem;
    }

    .site-nav {
        gap: .5rem 1.1rem;
    }

    .site-nav a {
        font-size: .8rem;
    }

    .hero {
        min-height: 34rem;
        padding: 5rem 1.5rem 6rem;
        background-position: 58% center;
    }

    .hero::before {
        background: linear-gradient(90deg, rgba(14, 28, 23, .88), rgba(14, 28, 23, .38));
    }

    h1 {
        font-size: 3.25rem;
    }

    .hero__caption {
        right: 1.5rem;
        left: 1.5rem;
        font-size: .7rem;
    }

    .section {
        min-height: 550px;
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 4rem 1.5rem;
    }

    .services {
        grid-template-columns: 1fr;
        max-width: none;
    }

    h2 {
        font-size: 2.5rem;
    }

    .section__mark {
        right: 1rem;
        bottom: -1rem;
        font-size: 19rem;
    }

    .site-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.25rem;
        padding: 2rem 1.5rem;
    }
}

.services .service {
    flex: 1;
    padding: 0;
    border: 0;
    color: inherit;
    background: none;
    font: inherit;
    cursor: pointer;
    text-align: left;
}

.services .service__hint {
    flex: 0 0 auto;
    padding: .17em .45em;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    font-weight: 400;
    font-size: .8em;
    line-height: 1.4;
}

.services li:hover > .service,
.services .service:hover {
    color: var(--forest);
}

.services li:hover > .service .service__hint,
.services .service:focus-visible .service__hint {
    background: var(--lime);
    border-color: var(--forest);
    color: var(--ink);
}

.dialog {
    margin: auto;
    width: min(58rem, calc(100vw - 3rem));
    max-height: min(86vh, 100%);
    padding: 0;
    border: 0;
    box-shadow: 0 1.75rem 4rem rgba(10, 22, 18, .35), 0 .4rem 1.2rem rgba(10, 22, 18, .22);
    color: var(--ink);
    background: var(--white);
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity .25s ease, transform .25s ease, display .25s allow-discrete, overlay .25s allow-discrete;
}

.dialog[open] {
    opacity: 1;
    transform: translateY(0);
}

@starting-style {
    .dialog[open] {
        opacity: 0;
        transform: translateY(1.25rem);
    }
}

.dialog::backdrop {
    background: rgba(14, 28, 23, .72);
    backdrop-filter: blur(2px);
    transition: background .3s ease, display .3s allow-discrete, overlay .3s allow-discrete;
}

@starting-style {
    .dialog[open]::backdrop {
        background: rgba(14, 28, 23, 0);
    }
}

.dialog__sheet {
    display: grid;
    max-height: 86vh;
    grid-template-columns: minmax(0, 1.65fr) minmax(13.5rem, 1fr);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "header header"
        "body aside"
        "footer footer";
}

.dialog__header {
    display: flex;
    grid-area: header;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 2.1rem 2.75rem 1.6rem;
    color: var(--white);
    background: var(--forest);
}

.dialog__eyebrow {
    margin-bottom: .55rem;
    color: var(--lime);
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dialog__title {
    max-width: none;
    font-size: 2.1rem;
}

.dialog__body {
    grid-area: body;

    min-height: 0;
    overflow-y: auto;
    padding: 1.9rem 2.1rem 2.2rem 2.75rem;
    color: var(--muted);
    font-size: 1rem;
}

.dialog__lead {
    margin-bottom: 1.1rem;
    color: var(--forest);
    font-size: 1.2rem;
    font-weight: 700;
    line-height: 1.45;
}

.dialog__body p + p {
    margin-top: .8rem;
}

.dialog__body h3 {
    margin: 1.7rem 0 .6rem;
    font-family: inherit;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.dialog__body li strong {
    display: block;
    margin-bottom: .15rem;
    color: var(--ink);
    font-size: 1rem;
}

.dialog__body ul {
    display: grid;
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: .92rem;
    line-height: 1.55;
}

.dialog__body li {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.dialog__body li:first-child {
    padding-top: 0;
    border-top: 0;
}

.dialog__aside {
    grid-area: aside;

    min-height: 0;
    overflow-y: auto;
    padding: 1.9rem 2.4rem 2.2rem 1.9rem;
    color: var(--muted);
    font-size: .88rem;
    background: var(--paper);
    border-left: 1px solid var(--line);
}

.dialog__aside .dialog__eyebrow {
    margin-bottom: 1rem;
    color: var(--forest);
}

.dialog__aside ul {
    display: grid;
    gap: 1.2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dialog__aside li {
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.dialog__aside li:first-child {
    padding-top: 0;
    border-top: 0;
}

.dialog__aside strong {
    display: block;
    margin-bottom: .25rem;
    color: var(--ink);
    font-size: 1rem;
}

.dialog__footer {
    display: flex;
    grid-area: footer;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.2rem 2.75rem 1.6rem;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.dialog__footer .text-link {
    margin-top: 0;
    font-size: .9rem;
}

.dialog__close {
    flex: 0 0 auto;
    margin-top: -.35rem;
    padding: .15rem .5rem .05rem;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    color: rgba(255, 255, 255, .85);
    background: none;
    font: inherit;
    font-size: 1.05rem;
    line-height: 1.5;
    cursor: pointer;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.dialog__close:hover {
    background: rgba(255, 255, 255, .12);
    border-color: var(--lime);
    color: var(--white);
}

.dialog--policy {
    width: min(48rem, calc(100vw - 3rem));
}

.dialog--policy .dialog__sheet {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
        "header"
        "body"
        "footer";
}

.dialog--policy .dialog__meta {
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    color: var(--muted);
    font-size: .88rem;
    border-bottom: 1px solid var(--line);
}

.dialog--policy ul ul,
.dialog--policy ul.policy__plain {
    gap: .6rem;
    padding-left: 1.35rem;
    list-style: disc outside;
}

.dialog--policy ul ul li,
.dialog--policy ul.policy__plain li {
    padding-top: 0;
    border-top: 0;
}

.dialog--policy ul ul > li::marker,
.dialog--policy ul.policy__plain > li::marker {
    color: var(--forest);
}

.dialog--policy li p {
    margin-top: .35rem;
    font-size: .92rem;
    line-height: 1.55;
}

.dialog--policy li > p + p {
    margin-top: .8rem;
}

.dialog--policy ul.policy__details {
    gap: .3rem;
    list-style: none;
}

.dialog--policy ul.policy__details li {
    padding-top: 0;
    border-top: 0;
}

.dialog--policy ul.policy__details li strong {
    display: inline;
    margin-bottom: 0;
    margin-right: .35rem;
}

.dialog--policy .policy__plain li strong {
    display: inline;
    margin-bottom: 0;
}

@media (max-width: 760px) {
    .dialog {
        width: calc(100vw - 1.5rem);
        max-height: min(88vh, 100%);
    }

    .dialog__sheet {
        display: flex;
        max-height: 88vh;
        flex-direction: column;
    }

    .dialog__header {
        flex: 0 0 auto;
    }

    .dialog__body {
        flex: 1 1 auto;
        overflow-y: auto;
        min-height: 0;
    }

    .dialog__aside {
        flex: 0 0 auto;
    }

    .dialog__footer {
        flex: 0 0 auto;
    }

    .dialog__header {
        padding: 1.5rem 1.2rem 1.3rem;
    }

    .dialog__title {
        font-size: 1.6rem;
    }

    .dialog__body,
    .dialog__aside {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .dialog__aside {
        flex: 0 0 auto;
        padding-top: .2rem;
        padding-right: 1.9rem;
        border-left: 0;
    }

    .dialog__aside .dialog__eyebrow {
        margin-bottom: .6rem;
    }

    .dialog__aside li {
        padding-top: 1rem;
    }

    .dialog__footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 1.2rem;
        padding: 1.2rem 1.5rem 1.6rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .clients-carousel__track {
        animation: none;
        overflow-x: auto;
    }

    .dialog {
        transition: none;
        transform: none;
    }
}
