:root {
    --work-bg: #f4ede2;
    --work-text: #393333;
    --work-muted: #746d68;
    --work-body: #584f49;
    --work-heading: #6a0712;
    --work-heading-dark: #4a0710;
    --work-border: #ded4c3;
    --work-number: #b4aca1;
    --work-eyebrow: #6d2028;
    --work-caption: #6f6259;
    --work-location-number: #b5ada2;
    --work-location-text: #5f5751;

    --work-font-serif: "Cormorant Garamond", Georgia, serif;
    --work-font-sans: "DM Sans", Arial, Helvetica, sans-serif;

    --work-content-width: 1060px;
    --work-method-width: 760px;
    --work-method-wide-width: 1200px;
    --work-method-image-width: 650px;
    --work-method-image-height: 470px;
    --work-description-width: 535px;
    --work-card-text-width: 590px;
    --work-quote-width: 360px;

    --work-intro-min-height: 345px;
    --work-card-min-height: 176px;
    --work-location-row-min-height: 50px;
}

.our-work-page {
    width: 100%;
    background: var(--work-bg);
    color: var(--work-text);
}

.work-intro {
    min-height: var(--work-intro-min-height);
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid var(--work-border);
}

.work-intro-inner {
    width: 100%;
    max-width: var(--work-content-width);
    margin: 0 auto;
    padding: 78px 0 55px;
}

.work-eyebrow,
.work-number,
.location-number,
.method-caption {
    font-family: var(--work-font-sans);
}

.work-eyebrow {
    margin: 0 0 23px;
    font-size: 9px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.42em;
    color: var(--work-eyebrow);
}

.work-title,
.work-description,
.work-card h2,
.method-quote blockquote,
.work-locations > h2,
.work-location-row h3 {
    font-family: var(--work-font-serif);
}

.work-title {
    margin: 0;
    font-size: 3.8rem;
    line-height: 1.03;
    font-weight: 400;
    letter-spacing: -0.025em;
    color: var(--work-heading-dark);
}

.work-description {
    max-width: var(--work-description-width);
    margin: 29px 0 0;
    font-size: 1.4rem;
    line-height: 1.7;
    font-style: italic;
    font-weight: 400;
    color: var(--work-muted);
}

.work-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: var(--work-bg);
}

.work-card {
    min-height: var(--work-card-min-height);
    padding: 34px 32px 28px;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--work-border);
    border-bottom: 1px solid var(--work-border);
}

.work-card:nth-child(3n) {
    border-right: 0;
}

.work-card:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.work-number {
    display: block;
    margin-bottom: 25px;
    font-size: 9px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.34em;
    color: var(--work-number);
}

.work-card h2 {
    margin: 0 0 15px;
    font-size: 1.55rem;
    line-height: 1.15;
    font-weight: 400;
    letter-spacing: -0.01em;
    color: var(--work-heading);
}

.work-card p {
    max-width: var(--work-card-text-width);
    margin: 0;
    font-family: var(--work-font-sans);
    font-size: 0.9rem;
    line-height: 1.55;
    font-weight: 400;
    color: var(--work-body);
}

.work-method {
    width: 100%;
    padding-top: 42px;
    background: var(--work-bg);
}

.work-method-top,
.work-locations {
    width: min(calc(100% - 48px), var(--work-method-width));
    margin-inline: auto;
}

.work-method-top {
    width: min(calc(100% - 80px), var(--work-method-wide-width));

    margin: 0 auto 48px;

    display: grid;

    grid-template-columns: var(--work-method-image-width) 1fr;

    gap: 48px;
    align-items: center;
}

.method-image-wrap {
    width: 100%;
}

.method-image {
    display: block;
    width: 100%;
    height: var(--work-method-image-height);
    object-fit: cover;
}

.method-quote {
    padding-left: 18px;
    border-left: 1px solid var(--work-heading);
}

.method-quote blockquote {
    max-width: var(--work-quote-width);
    margin: 0;
    font-size: 2.3rem;
    line-height: 1.7;
    font-style: italic;
    font-weight: 400;
    color: var(--work-text);
}

.method-caption {
    margin: 18px 0 0;
    font-size: 13px;
    line-height: 1;
    font-weight: 600;
    letter-spacing: 0.35em;
    color: var(--work-caption);
}

.work-locations > h2 {
    margin: 0;
    padding-bottom: 9px;
    font-size: 2.45rem;
    line-height: 1.1;
    font-weight: 400;
    color: var(--work-text);
    border-bottom: 1px solid var(--work-border);
}

.work-location-list {
    width: 100%;
}

.work-location-row {
    min-height: var(--work-location-row-min-height);
    display: grid;
    grid-template-columns: 42px 285px 1fr;
    align-items: center;
    column-gap: 20px;
    border-bottom: 1px solid var(--work-border);
}

.location-number {
    font-size: 9px;
    line-height: 1;
    font-weight: 500;
    letter-spacing: 0.28em;
    color: var(--work-location-number);
}

.work-location-row h3 {
    margin: 10px;
    font-size: 1.45rem;
    line-height: 1.2;
    font-weight: 400;
    color: var(--work-heading);
}

.work-location-row p {
    margin: 10px;
    font-family: var(--work-font-sans);
    font-size: 0.8rem;
    line-height: 1.4;
    font-weight: 400;
    color: var(--work-location-text);
}

@media (max-width: 1100px) {
    .work-intro-inner {
        max-width: none;
        padding-left: 7%;
        padding-right: 7%;
    }

    .work-fields {
        grid-template-columns: repeat(2, 1fr);
    }

    .work-card {
        min-height: 190px;
    }

    .work-card:nth-child(3n) {
        border-right: 1px solid var(--work-border);
    }

    .work-card:nth-child(2n) {
        border-right: 0;
    }

    .work-card:nth-last-child(-n + 3) {
        border-bottom: 1px solid var(--work-border);
    }

    .work-card:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

@media (max-width: 900px) {
    .work-method {
        padding-top: 55px;
    }

    .work-method-top,
    .work-locations {
        width: min(calc(100% - 48px), 680px);
    }

    .work-method-top {
        grid-template-columns: 1fr 1fr;
        gap: 34px;
    }

    .method-image {
        height: 240px;
    }

    .work-location-row {
        grid-template-columns: 35px 230px 1fr;
        column-gap: 16px;
    }
}

@media (max-width: 700px) {
    .work-intro {
        min-height: auto;
    }

    .work-intro-inner {
        padding: 65px 24px 55px;
    }

    .work-eyebrow {
        margin-bottom: 20px;
    }

    .work-title {
        font-size: clamp(2.6rem, 12vw, 3.6rem);
        line-height: 1;
    }

    .work-description {
        max-width: 100%;
        margin-top: 25px;
        font-size: 1.1rem;
        line-height: 1.55;
    }

    .work-fields {
        grid-template-columns: 1fr;
    }

    .work-card,
    .work-card:nth-child(2n),
    .work-card:nth-child(3n) {
        border-right: 0;
    }

    .work-card {
        min-height: auto;
        padding: 32px 24px 35px;
        border-bottom: 1px solid var(--work-border);
    }

    .work-card:nth-last-child(-n + 2),
    .work-card:nth-last-child(-n + 3) {
        border-bottom: 1px solid var(--work-border);
    }

    .work-card:last-child {
        border-bottom: 0;
    }

    .work-number {
        margin-bottom: 20px;
    }

    .work-card h2 {
        font-size: 1.5rem;
    }

    .work-card p {
        font-size: 0.74rem;
    }

    .work-method {
        padding-top: 42px;
    }

    .work-method-top,
    .work-locations {
        width: calc(100% - 48px);
    }

    .work-method-top {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 50px;
    }

    .method-image {
        height: auto;
        aspect-ratio: 4 / 3;
    }

    .method-quote {
        padding-left: 16px;
    }

    .method-quote blockquote {
        max-width: 100%;
        font-size: 1.2rem;
        line-height: 1.55;
    }

    .work-location-row {
        min-height: auto;
        grid-template-columns: 30px 1fr;
        gap: 5px 12px;
        padding: 16px 0;
    }

    .location-number {
        grid-row: 1 / 3;
        align-self: start;
        padding-top: 4px;
    }

    .work-location-row h3 {
        font-size: 1rem;
    }

    .work-location-row p {
        grid-column: 2;
        font-size: 0.58rem;
        line-height: 1.5;
    }
}

@media (max-width: 400px) {
    .work-intro-inner {
        padding: 50px 18px 45px;
    }

    .work-card {
        padding: 28px 18px 32px;
    }

    .work-title {
        font-size: 2.7rem;
    }

    .work-method-top,
    .work-locations {
        width: calc(100% - 36px);
    }

    .method-quote blockquote {
        font-size: 1.1rem;
    }
}