@font-face {
    font-family: "Inter";
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url("assets/inter-latin.woff2") format("woff2");
}

@font-face {
    font-family: "Space Grotesk";
    font-style: normal;
    font-weight: 500 600;
    font-display: swap;
    src: url("assets/space-grotesk-latin.woff2") format("woff2");
}

:root {
    --background: #f7f8f3;
    --surface: #ecece6;
    --surface-accent: #bfd63b;
    --text: #171914;
    --muted: #5e6358;
    --accent: #a7c900;
    --accent-dark: #718900;
    --shell: 1120px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 6rem;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

p,
h1,
h2,
h3 {
    margin-top: 0;
}

p:last-child {
    margin-bottom: 0;
}

.shell {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 3rem), var(--shell));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.site-header {
    position: relative;
    z-index: 10;
    background: var(--background);
}

.header-inner {
    display: flex;
    min-height: 7rem;
    align-items: center;
    justify-content: center;
}

.brand {
    display: block;
    text-decoration: none;
}

.brand-logo {
    width: clamp(13rem, 20vw, 17rem);
    height: auto;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.75rem, 5vw, 4rem) 0 clamp(4rem, 6vw, 5.5rem);
    display: flex;
    align-items: center;
    background: var(--background);
}

.hero::after,
.contact::after {
    position: absolute;
    background: url("assets/digitized-mark.png") center / contain no-repeat;
    content: "";
    pointer-events: none;
}

.hero::after {
    right: auto;
    left: -35rem;
    bottom: -30rem;
    width: 76rem;
    height: 60rem;
    opacity: 0.045;
    transform: rotate(9deg);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(4rem, 8vw, 7rem);
}

h1 {
    max-width: 15ch;
    margin-bottom: 0;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(2.65rem, 4.2vw, 3.8rem);
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 1.02;
}

h1 span {
    color: inherit;
}

.hero-copy {
    max-width: 36rem;
    align-self: center;
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.hero-copy .lead {
    color: var(--text);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(1.15rem, 1.6vw, 1.35rem);
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: -0.02em;
}

.hero-copy .hero-name {
    margin-top: 1.75rem;
    color: var(--text);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.015em;
}

.section {
    position: relative;
    overflow: hidden;
    padding: clamp(4rem, 6vw, 5.5rem) 0;
}

h2 {
    margin-bottom: 0;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: clamp(2rem, 3vw, 2.75rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.08;
}

.services {
    padding: 0;
    background: #fff;
}

.services-intro {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: clamp(12rem, 18vw, 15rem);
    padding-top: 3rem;
    padding-right: max(1.5rem, calc((100vw - var(--shell)) / 2));
    padding-bottom: 3rem;
    padding-left: max(1.5rem, calc((100vw - var(--shell)) / 2));
    align-items: center;
    background: #0d0f0b;
}

.services-intro::after {
    position: absolute;
    top: -22rem;
    right: -11rem;
    width: 58rem;
    height: 46rem;
    background: url("assets/digitized-mark.png") center / contain no-repeat;
    content: "";
    opacity: 0.18;
    pointer-events: none;
    transform: rotate(-8deg);
}

.services-intro-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: var(--shell);
    margin-inline: auto;
    text-align: center;
}

.services-intro h2 {
    max-width: 20ch;
    margin-inline: auto;
    color: #fff;
    font-size: clamp(2.75rem, 5vw, 4.75rem);
    line-height: 1.02;
}

.services-content {
    padding-top: clamp(3.5rem, 5vw, 5rem);
    padding-right: max(1.5rem, calc((100vw - var(--shell)) / 2));
    padding-bottom: clamp(3.5rem, 5vw, 5rem);
    padding-left: max(1.5rem, calc((100vw - var(--shell)) / 2));
    background: #fff;
}

.service-list {
    display: grid;
    width: 100%;
    max-width: var(--shell);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(3rem, 5vw, 4.5rem) clamp(4rem, 9vw, 8rem);
}

.service-item {
    position: relative;
    display: block;
    padding-left: 3rem;
}

.service-item::before {
    position: absolute;
    top: 0.05rem;
    left: 0;
    width: 1.5rem;
    height: 1.5rem;
    background: url("assets/digitized-mark.png") center / contain no-repeat;
    content: "";
}

.service-item h3 {
    margin-bottom: 1rem;
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.service-item p {
    color: #555a50;
    font-size: 0.95rem;
}

.service-detail p {
    margin-bottom: 0.75rem;
}

.external-links {
    display: flex;
    margin-top: 1.25rem;
    gap: 2.25rem;
}

.external-links a {
    display: inline-flex;
    padding: 0;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.9rem;
    font-weight: 550;
    text-decoration: none;
    transition: color 160ms ease;
}

.external-links a:hover,
.external-links a:focus-visible {
    color: var(--accent-dark);
}

.contact {
    position: relative;
    overflow: hidden;
    background: var(--text);
    color: var(--surface);
}

.contact::after {
    right: auto;
    left: -32rem;
    bottom: -29rem;
    width: 78rem;
    height: 62rem;
    opacity: 0.04;
    filter: grayscale(1) brightness(3);
    transform: rotate(-10deg);
}

.contact-inner {
    display: grid;
    grid-template-columns: minmax(13rem, 0.75fr) minmax(21rem, 1.3fr) minmax(10rem, 0.55fr);
    gap: 2rem clamp(2.5rem, 5vw, 5rem);
    align-items: start;
}

.contact h2 {
    max-width: 9ch;
    grid-row: 1 / span 2;
}

.contact-portrait-wrap {
    grid-column: 3;
    grid-row: 1 / span 2;
    align-self: center;
    justify-self: end;
}

.contact-portrait {
    width: clamp(9rem, 13vw, 12rem);
    height: clamp(9rem, 13vw, 12rem);
    border-radius: 50%;
    object-fit: cover;
    opacity: 0.92;
    -webkit-mask-image: radial-gradient(circle, #000 58%, rgba(0, 0, 0, 0.92) 72%, transparent 100%);
    mask-image: radial-gradient(circle, #000 58%, rgba(0, 0, 0, 0.92) 72%, transparent 100%);
}

.contact p {
    max-width: 31rem;
    margin-bottom: 0;
    color: #c7cabf;
    font-size: clamp(1rem, 1.4vw, 1.12rem);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
}

.contact-link {
    display: inline-flex;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--accent);
    align-items: center;
    gap: 0.6rem;
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-family: "Space Grotesk", "Inter", sans-serif;
    font-weight: 500;
    letter-spacing: -0.02em;
    text-decoration: none;
    transition: color 160ms ease;
    justify-self: start;
}

.contact-link:hover,
.contact-link:focus-visible {
    color: var(--accent);
}

.site-footer {
    padding: 2.25rem 0;
    background: var(--text);
    color: var(--surface);
}

.footer-inner,
.footer-inner > div {
    display: flex;
    align-items: center;
}

.footer-inner {
    justify-content: space-between;
    gap: 2rem;
    font-size: 0.75rem;
}

.footer-inner > div {
    gap: 1rem;
}

.footer-inner strong {
    font-weight: 600;
}

.footer-inner span,
.footer-inner p {
    color: #a9ada2;
}

.footer-inner p {
    margin: 0;
}

:focus-visible {
    outline: 2px solid var(--accent-dark);
    outline-offset: 4px;
}

@media (max-width: 1000px) {
    .contact-inner {
        grid-template-columns: minmax(13rem, 0.75fr) minmax(20rem, 1.25fr);
    }

    .contact h2 {
        grid-row: 1;
    }

    .contact-portrait-wrap {
        grid-column: 1;
        grid-row: 2;
        justify-self: start;
    }

    .contact-portrait {
        width: 8rem;
        height: 8rem;
    }
}

@media (max-width: 820px) {
    .header-inner {
        min-height: 6.25rem;
    }

    .hero {
        min-height: auto;
        padding-top: 2.5rem;
    }

    .hero-grid,
    .contact-inner {
        grid-template-columns: 1fr;
        gap: 3.5rem;
    }

    .hero-copy {
        max-width: 40rem;
    }

    .services-intro {
        min-height: 12rem;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .services-content {
        padding-right: 1.5rem;
        padding-left: 1.5rem;
    }

    .service-list {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .contact-inner {
        gap: 2rem;
    }

    .contact h2,
    .contact p,
    .contact-links,
    .contact-portrait-wrap {
        grid-column: 1;
        grid-row: auto;
    }

    .contact-portrait-wrap {
        justify-self: start;
    }

    .contact-portrait {
        width: 7rem;
        height: 7rem;
    }

    .contact p {
        margin-top: 1rem;
    }

    .hero::after {
        right: auto;
        left: -29rem;
        bottom: -23rem;
        width: 60rem;
        height: 48rem;
    }

    .services-intro::after {
        top: -14rem;
        right: -18rem;
        bottom: auto;
        width: 44rem;
        height: 35rem;
    }

    .contact::after {
        right: auto;
        left: -28rem;
        bottom: -24rem;
        width: 64rem;
        height: 51rem;
    }
}

@media (max-width: 560px) {
    .shell {
        width: min(calc(100% - 2rem), var(--shell));
    }

    .services-intro,
    .services-content {
        padding-right: 1rem;
        padding-left: 1rem;
    }

    .external-links {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .footer-inner {
        align-items: flex-start;
    }

    .footer-inner > div {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.2rem;
    }
}

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

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
