:root {
    --ink: #111820;
    --paper: #F5F5F2;
    --blue: #5B6CFF;
    --mint: #A7F3D0;
    --muted-dark: rgba(245, 245, 242, 0.72);
    --muted-light: rgba(17, 24, 32, 0.7);
    --line-dark: rgba(245, 245, 242, 0.16);
    --line-light: rgba(17, 24, 32, 0.14);
    --danger: #8c2f39;
    --gutter: 1.25rem;
    --max: 1180px;
    --font-display: "Montserrat", "Segoe UI", sans-serif;
    --font-body: "Montserrat", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--ink);
    color: var(--paper);
    color-scheme: dark;
    font-family: var(--font-body);
    font-size: 1.05rem;
    line-height: 1.55;
    font-weight: 500;
}

body.nav-open {
    overflow: hidden;
}

img {
    max-width: 100%;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
}

p {
    margin: 0;
}

a {
    color: inherit;
}

::selection {
    background: var(--mint);
    color: var(--ink);
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 3px;
}

.skip {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 80;
    background: var(--mint);
    color: var(--ink);
    padding: 0.55rem 0.8rem;
    text-decoration: none;
}

.skip:focus {
    top: 1rem;
}

.wrap {
    width: min(var(--max), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.kicker {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0 0 1rem;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.kicker::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    background: var(--mint);
    flex: none;
}

.kicker a {
    text-decoration: none;
}

.kicker a:hover {
    color: var(--blue);
}

.lede {
    max-width: 40rem;
    font-size: 1.15rem;
    font-weight: 100;
    line-height: 1.5;
}

.index {
    margin: 0;
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.14em;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.95rem 1.15rem;
    border: 0;
    border-radius: 2px;
    background: var(--paper);
    color: var(--ink);
    font: inherit;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
}

.button:hover {
    background: var(--blue);
    color: var(--paper);
}

.button:disabled {
    opacity: 0.6;
    cursor: wait;
}

.button--small {
    padding: 0.62rem 0.85rem;
    font-size: 0.92rem;
}

.button--mint {
    background: var(--mint);
    color: var(--ink);
}

.button--mint:hover {
    background: var(--paper);
    color: var(--ink);
}

.button--ink {
    background: var(--ink);
    color: var(--paper);
}

.button--ink:hover {
    background: var(--blue);
    color: var(--paper);
}

.text-link {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.08em;
}

.text-link:hover {
    color: var(--blue);
    border-color: var(--blue);
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 50;
    color: var(--paper);
}

.site-header.is-scrolled {
    background: var(--ink);
    border-bottom: 1px solid var(--line-dark);
}

[id] {
    scroll-margin-top: 100px;
}

.site-header__bar {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 76px;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    line-height: 0;
    text-decoration: none;
}

.logo img {
    display: block;
    height: 48px;
    width: auto;
}

.header-nav {
    display: flex;
    gap: 1.4rem;
}

.header-nav a {
    text-decoration: none;
}

.header-nav a[aria-current="page"] {
    color: var(--mint);
}

.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

.header-mail {
    color: var(--muted-dark);
    font-size: 0.95rem;
    text-decoration: none;
}

.header-mail:hover {
    color: var(--paper);
}

.nav-details {
    display: none;
}

.nav-toggle {
    list-style: none;
    cursor: pointer;
}

.nav-toggle::-webkit-details-marker {
    display: none;
}

.nav-toggle__close {
    display: none;
}

.nav-details[open] .nav-toggle__open {
    display: none;
}

.nav-details[open] .nav-toggle__close {
    display: inline;
}

.nav-panel {
    display: none;
}

.nav-details[open] .nav-panel {
    position: fixed;
    inset: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 7.5rem var(--gutter) 2.5rem;
    background: var(--ink);
}

.nav-panel nav a {
    display: block;
    color: var(--paper);
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, 4.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-decoration: none;
}

.nav-panel nav a:hover {
    color: var(--mint);
}

.nav-panel__mail {
    color: var(--mint);
    font-size: 1rem;
    text-decoration: none;
}

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 7.5rem 0 4rem;
    overflow: hidden;
}

.hero__mark {
    position: absolute;
    top: 50%;
    right: -6vw;
    width: min(64vh, 42vw);
    aspect-ratio: 1;
    border: 1px solid rgba(167, 243, 208, 0.42);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, rgba(167, 243, 208, 0.06), transparent 64%);
    transform: translateY(-50%);
    pointer-events: none;
}

.hero__mark::after {
    content: "";
    position: absolute;
    top: 16%;
    left: 18%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
}

.hero__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 680px) minmax(8rem, 1fr);
    align-items: center;
}

.hero__copy {
    max-width: 680px;
}

.hero h1 {
    max-width: 11em;
    font-size: clamp(2.7rem, 4.6vw, 4.7rem);
    line-height: 0.98;
}

.hero h1 .line {
    display: block;
}

.hero h1 em {
    color: var(--mint);
    font-style: normal;
    white-space: nowrap;
    text-shadow: 0 0 28px rgba(167, 243, 208, 0.45);
}

.hero__lead {
    max-width: 26rem;
    margin-top: 1.25rem;
    color: rgba(245, 245, 242, 0.72);
    font-size: 1rem;
    font-weight: 100;
    line-height: 1.6;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
    margin-top: 1.75rem;
}

.home-next,
.home-close {
    background: var(--ink);
    color: var(--paper);
}

.home-next {
    padding: 5.5rem 0 1rem;
}

.home-next__head {
    max-width: 38rem;
    margin-bottom: 2.4rem;
}

.home-next__head h2,
.home-close h2 {
    font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.home-next__head .lede,
.home-close p,
.home-services p,
.home-steps p {
    margin-top: 0.85rem;
    color: rgba(245, 245, 242, 0.72);
    font-weight: 100;
}

.home-services,
.home-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem 1.5rem;
    margin: 0;
    padding: 1.6rem 0 0;
    border-top: 1px solid var(--line-dark);
    list-style: none;
}

.home-steps {
    grid-template-columns: repeat(3, 1fr);
}

.home-services h3,
.home-steps h3 {
    margin: 0.65rem 0 0;
    font-size: 1.45rem;
}

.home-services h3 a {
    text-decoration: none;
}

.home-services h3 a:hover,
.home-row:hover .home-row__title {
    color: var(--mint);
}

.home-rows {
    border-top: 1px solid var(--line-dark);
}

.home-row {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: baseline;
    padding: 1.25rem 0;
    border-bottom: 1px solid var(--line-dark);
    text-decoration: none;
}

.home-row__title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.6vw, 2.3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
}

.home-row__cat {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-close {
    padding: 5rem 0 6rem;
}

.home-close .wrap {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
}

.home-close .button {
    flex: none;
}

.dark-stack,
.page-hero,
.steps,
.cta-band,
.site-footer {
    background: var(--ink);
    color: var(--paper);
}

.section {
    padding: 6.25rem 0;
}

.services-home {
    padding-top: 1rem;
}

.section--paper {
    background: var(--paper);
    color: var(--ink);
    color-scheme: light;
}

.cta-band p,
.step-grid p {
    color: var(--muted-dark);
}

.dark-stack .lede,
.page-hero .lede {
    color: var(--paper);
}

.section--paper .lede,
.service-block .lede {
    color: var(--ink);
}

.section-head {
    display: grid;
    grid-template-columns: 9.5rem 1fr;
    gap: 1.5rem;
    align-items: start;
    margin-bottom: 2.8rem;
}

.section-head h2,
.page-hero h1 {
    font-size: clamp(2.6rem, 6vw, 5.4rem);
}

.page-hero {
    padding: 9.5rem 0 4.2rem;
}

.page-hero--tall {
    min-height: 70vh;
}

.page-hero .button {
    margin-top: 1.8rem;
}

.page-hero__split,
.agency-layout,
.case-layout,
.contact-layout,
.cta-band__inner {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 2rem 3rem;
    align-items: start;
}

.page-hero__split {
    align-items: end;
}

.service-grid,
.step-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line-dark);
}

.step-grid {
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-col,
.step-grid li {
    padding: 1.5rem 1.4rem 0.4rem 0;
    border-right: 1px solid var(--line-dark);
}

.service-col:last-child,
.step-grid li:last-child {
    border-right: 0;
}

.service-col h3,
.step-grid h3 {
    margin: 0.45rem 0 0.55rem;
    font-size: 1.7rem;
}

.service-col h3 a,
.service-col li a {
    text-decoration: none;
}

.service-col h3 a:hover,
.service-col li a:hover {
    color: var(--mint);
}

.service-col__summary,
.service-col li a {
    color: var(--muted-dark);
}

.service-col ul {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.service-col li + li {
    margin-top: 0.4rem;
}

.step-grid h3 {
    font-size: 2rem;
}

.step-grid p {
    margin: 0;
}

.section-more {
    margin-top: 2rem;
}

.work-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 1.2rem;
}

.work-grid--archive {
    grid-template-columns: repeat(2, 1fr);
}

.project-card__link {
    display: block;
    color: inherit;
    text-decoration: none;
}

.project-card__meta {
    padding-top: 0.9rem;
}

.project-card__meta p {
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-card__meta h3 {
    margin-top: 0.25rem;
    font-size: 1.65rem;
}

.project-card__link:hover h3 {
    color: var(--blue);
}

.art {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    background: var(--ink);
}

.art--wide {
    aspect-ratio: 16 / 10;
    min-height: 240px;
}

.art__glyph {
    position: absolute;
    bottom: 0.35rem;
    left: 1rem;
    font-family: var(--font-display);
    font-size: clamp(4rem, 6vw, 6.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.art__ring,
.art__bar {
    position: absolute;
}

.art--ink {
    background: var(--ink);
    color: var(--paper);
}

.art--ink .art__ring {
    top: 12%;
    right: -8%;
    width: 58%;
    aspect-ratio: 1;
    border: 1px solid rgba(167, 243, 208, 0.85);
    border-radius: 50%;
}

.art--ink .art__bar {
    top: 16%;
    left: 9%;
    width: 22%;
    height: 7px;
    background: var(--blue);
}

.art--paper {
    background: #e6e6e1;
    color: var(--ink);
}

.art--paper .art__ring {
    top: 14%;
    right: 10%;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--ink);
}

.art--paper .art__bar {
    bottom: 22%;
    left: 12%;
    width: 14%;
    height: 42%;
    background: var(--blue);
}

.art--blue {
    background: var(--blue);
    color: var(--paper);
}

.art--blue .art__ring {
    bottom: -28%;
    left: -18%;
    width: 70%;
    aspect-ratio: 1;
    border: 1px solid rgba(245, 245, 242, 0.5);
    border-radius: 50%;
}

.art--blue .art__bar {
    top: 0;
    right: 16%;
    width: 16%;
    height: 100%;
    background: var(--mint);
}

.art--mint {
    background: var(--mint);
    color: var(--ink);
}

.art--mint .art__ring {
    top: 12%;
    right: 12%;
    width: 38%;
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--ink);
}

.art--mint .art__bar {
    top: 22%;
    left: 8%;
    width: 42%;
    height: 8px;
    background: var(--blue);
}

.client-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.client-row span {
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--line-light);
    border-radius: 999px;
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.quote blockquote {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2vw, 1.8rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.3;
}

.quote figcaption {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-top: 1rem;
}

.quote figcaption span {
    color: var(--muted-light);
}

.service-block {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 2rem;
    padding: 2.8rem 0;
    border-top: 1px solid var(--line-light);
    scroll-margin-top: 96px;
}

.service-list .service-block:last-child {
    border-bottom: 1px solid var(--line-light);
}

.service-block h2 {
    margin: 0.4rem 0 0.5rem;
    font-size: clamp(2.3rem, 4vw, 3.5rem);
}

.service-block__summary {
    color: var(--muted-light);
}

.tick-list {
    margin: 1.4rem 0 1.4rem;
    padding: 0;
    list-style: none;
}

.tick-list li {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line-light);
}

.statement {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2.1rem, 4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.agency-layout h2 {
    margin-top: 2rem;
    font-size: clamp(2rem, 3vw, 2.8rem);
}

.principle-list {
    margin: 1.2rem 0 0;
    padding: 0;
    list-style: none;
}

.principle-list li {
    padding: 1rem 0;
    border-top: 1px solid var(--line-light);
}

.principle-list h3 {
    margin-bottom: 0.3rem;
    font-size: 1.45rem;
}

.cta-band {
    padding: 5rem 0;
    border-top: 1px solid var(--line-dark);
}

.cta-band__inner {
    align-items: end;
}

.cta-band__inner .button {
    justify-self: start;
}

.cta-band h2 {
    margin-bottom: 0.8rem;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
}

.contact-email {
    display: inline-block;
    margin-bottom: 1rem;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 3vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    text-decoration: none;
}

.contact-aside p {
    margin-top: 1.4rem;
}

.contact-panel {
    position: relative;
}

.field {
    margin-bottom: 1.25rem;
}

.field label {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.35rem;
    font-size: 0.92rem;
}

.field label span {
    color: var(--muted-light);
}

.field input,
.field textarea,
.field select {
    width: 100%;
    padding: 0.7rem 0;
    border: 0;
    border-bottom: 1px solid rgba(17, 24, 32, 0.22);
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
}

.field textarea {
    min-height: 8rem;
    resize: vertical;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
    outline: none;
    border-bottom-color: var(--blue);
}

.field.is-invalid input,
.field.is-invalid textarea,
.field.is-invalid select {
    border-bottom-color: var(--danger);
}

.field-error,
.form-status--bad {
    color: var(--danger);
    font-size: 0.92rem;
}

.field-error {
    margin-top: 0.35rem;
}

.form-status--bad {
    margin-bottom: 1rem;
}

.form-status--ok {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.prose {
    max-width: 68ch;
}

.prose h2 {
    margin: 2rem 0 0.6rem;
    font-size: 1.8rem;
}

.prose p + p,
.prose h2 + p {
    margin-top: 0;
}

.prose p {
    margin-bottom: 0.8rem;
}

.site-footer {
    overflow: hidden;
    padding: 4.5rem 0 1.8rem;
}

.footer-brand {
    font-family: var(--font-display);
    font-size: clamp(4.4rem, 18vw, 12.5rem);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.9;
}

.footer-slogan {
    max-width: 28rem;
    margin-top: 1rem;
    color: var(--mint);
    font-weight: 100;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 2rem;
    margin-top: 3rem;
}

.footer-grid a,
.footer-grid p {
    display: block;
    margin: 0.35rem 0;
    color: var(--muted-dark);
    text-decoration: none;
}

.footer-grid a:hover {
    color: var(--paper);
}

.footer-label {
    margin-bottom: 0.4rem;
    color: var(--blue);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.footer-label--follow {
    margin-top: 1.4rem;
}

.footer-copy {
    margin-top: 2.5rem;
    color: rgba(245, 245, 242, 0.5);
    font-size: 0.92rem;
}

@media (min-width: 800px) {
    :root {
        --gutter: 2.5rem;
    }

    .logo img {
        height: 46px;
    }
}

@media (max-width: 900px) {
    .header-mail {
        display: none;
    }
}

@media (max-width: 980px) {
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-col:nth-child(2) {
        border-right: 0;
    }

    .service-col:nth-child(n + 3) {
        border-top: 1px solid var(--line-dark);
    }

    .work-grid,
    .quote-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 860px) {
    .site-header__bar {
        grid-template-columns: 1fr auto;
    }

    .header-nav {
        display: none;
    }

    .nav-details {
        display: block;
    }

    .section-head,
    .service-block,
    .case-layout,
    .agency-layout,
    .contact-layout,
    .cta-band__inner,
    .footer-grid,
    .page-hero__split {
        grid-template-columns: 1fr;
    }

    .hero__inner {
        grid-template-columns: 1fr;
    }

    .hero__mark {
        top: 5.5rem;
        right: -42vw;
        width: 70vw;
        transform: none;
    }

    .home-services,
    .home-steps,
    .home-close .wrap {
        grid-template-columns: 1fr;
    }

    .home-close .wrap {
        display: grid;
    }
}

@media (max-width: 720px) {
    .header-tools .button {
        display: none;
    }

    .step-grid,
    .work-grid,
    .work-grid--archive,
    .quote-grid,
    .home-services,
    .home-steps {
        grid-template-columns: 1fr;
    }

    .home-row {
        grid-template-columns: 3rem minmax(0, 1fr);
    }

    .home-row__cat {
        grid-column: 2;
    }

    .step-grid li,
    .service-col {
        margin: 0;
        padding-right: 0;
        border-right: 0;
        border-top: 1px solid var(--line-dark);
    }

    .service-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .button,
    .text-link,
    a {
        transition: none;
    }
}
