/* ==========================================================================
   Bright Project MMC
   Tokens -> base -> components -> sections
   ========================================================================== */

:root {
    /* Colour */
    --asphalt: #161616;      /* dark surfaces: hero, footer */
    --graphite: #2a2a28;     /* raised dark surfaces, dark borders */
    --gold: #d2ac67;         /* brand gold, sampled from the business card */
    --bronze: #7a5c22;       /* gold for text and lines on light backgrounds */
    --concrete: #f1f1ee;     /* light section background */
    --paper: #ffffff;
    --text: #1c1c1b;
    --text-muted: #5e5d59;
    --text-on-dark: #f3f2ee;
    --text-on-dark-muted: #a9a7a0;
    --line-light: #d9d8d3;
    --line-dark: rgba(243, 242, 238, 0.16);
    --field-border: #bebdb6;
    --error: #b42318;

    /* Type */
    --font-display: "Montserrat", "Segoe UI", sans-serif;
    --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
    --step--1: 0.875rem;
    --step-0: 1.0625rem;
    --step-1: 1.25rem;
    --step-2: 1.625rem;
    --step-3: clamp(1.875rem, 1.4rem + 1.8vw, 2.625rem);
    --step-4: clamp(2.5rem, 1.6rem + 3.4vw, 4.25rem);

    /* Space & layout */
    --gutter: clamp(1rem, 0.5rem + 2.5vw, 2.5rem);
    --container: 1280px;
    --section-space: clamp(4rem, 3rem + 5vw, 8rem);
    --header-height: 88px;
    --radius: 2px;
    --band: 14px;            /* thickness of the 45° gold brand band */
}

/* Base
   ========================================================================== */

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: var(--header-height);
}

body {
    margin: 0;
    background: var(--concrete);
    color: var(--text);
    font-family: var(--font-body);
    font-size: var(--step-0);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

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

img {
    height: auto;
}

h1,
h2,
h3,
h4 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.1;
    text-wrap: balance;
}

p {
    margin: 0;
    text-wrap: pretty;
}

a {
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.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;
}

.skip-link {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 100;
    padding: 0.625rem 1rem;
    background: var(--gold);
    color: var(--asphalt);
    font-weight: 600;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: none;
}

/* Buttons
   ========================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3rem;
    padding: 0.75rem 1.5rem;
    border: 1px solid transparent;
    border-radius: var(--radius);
    font-family: var(--font-display);
    font-size: var(--step--1);
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.button--gold {
    background: var(--gold);
    color: var(--asphalt);
}

.button--gold:hover {
    background: #e0bf80;
}

.button--ghost {
    border-color: rgba(243, 242, 238, 0.4);
    color: var(--text-on-dark);
}

.button--ghost:hover {
    border-color: var(--gold);
    color: var(--gold);
}

/* Header
   ========================================================================== */

.site-header {
    position: absolute;
    inset: 0 0 auto;
    z-index: 20;
    color: var(--text-on-dark);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    min-height: var(--header-height);
}

.site-header__logo img {
    width: auto;
    height: 66px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.site-nav__list {
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav__list a {
    display: block;
    padding-block: 0.5rem;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
}

.site-nav__list a:hover {
    border-bottom-color: var(--gold);
}

.site-nav__actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-nav__phone {
    font-variant-numeric: tabular-nums;
    text-decoration: none;
    color: var(--text-on-dark-muted);
}

.site-nav__phone:hover {
    color: var(--text-on-dark);
}

.nav-toggle {
    display: none;
}

@media (max-width: 960px) {
    .nav-toggle {
        position: relative;
        z-index: 2;
        display: grid;
        place-items: center;
        width: 3rem;
        height: 3rem;
        padding: 0;
        border: 1px solid var(--line-dark);
        border-radius: var(--radius);
        background: transparent;
        color: inherit;
        cursor: pointer;
    }

    .nav-toggle__bars,
    .nav-toggle__bars::before,
    .nav-toggle__bars::after {
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        transition: transform 0.2s, opacity 0.2s;
    }

    .nav-toggle__bars {
        position: relative;
    }

    .nav-toggle__bars::before,
    .nav-toggle__bars::after {
        content: "";
        position: absolute;
        left: 0;
    }

    .nav-toggle__bars::before {
        top: -6px;
    }

    .nav-toggle__bars::after {
        top: 6px;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bars {
        background: transparent;
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before {
        transform: translateY(6px) rotate(45deg);
    }

    .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-nav {
        position: fixed;
        inset: 0;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 2.5rem;
        padding: var(--header-height) var(--gutter) 2rem;
        background: var(--asphalt);
        visibility: hidden;
        opacity: 0;
        transition: opacity 0.2s, visibility 0.2s;
    }

    .site-nav.is-open {
        visibility: visible;
        opacity: 1;
    }

    .site-nav__list {
        flex-direction: column;
        gap: 0;
    }

    .site-nav__list a {
        padding-block: 0.875rem;
        font-family: var(--font-display);
        font-size: var(--step-2);
        font-weight: 600;
        border-bottom: 1px solid var(--line-dark);
    }

    .site-nav__actions {
        flex-direction: column;
        align-items: stretch;
    }

    body.nav-open {
        overflow: hidden;
    }
}

/* Hero
   ========================================================================== */

.hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: max(40rem, 100svh);
    padding-block: calc(var(--header-height) + 2rem) 4rem;
    overflow: hidden;
    background: var(--asphalt);
    color: var(--text-on-dark);
    isolation: isolate;
}

/* The 45° gold bands from the business card, top-left and bottom-right. */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 22rem;
    height: var(--band);
    background: var(--gold);
    transform: rotate(-45deg);
}

.hero::before {
    top: 3.5rem;
    left: -8rem;
}

.hero::after {
    right: -8rem;
    bottom: 3.5rem;
}

.hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: end;
}

.hero__title {
    max-width: 15ch;
    font-size: var(--step-4);
    letter-spacing: -0.025em;
    line-height: 1.04;
}

.hero__lead {
    max-width: 34rem;
    margin-top: 1.75rem;
    color: var(--text-on-dark-muted);
    font-size: var(--step-1);
    line-height: 1.55;
}

.hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2.5rem;
}

.hero__visual {
    align-self: stretch;
    display: flex;
    align-items: flex-end;
}

.hero-drawing {
    width: 100%;
    height: auto;
    overflow: visible;
    stroke: var(--gold);
    stroke-width: 1.25;
    stroke-linecap: square;
    vector-effect: non-scaling-stroke;
}

.hero-drawing > * {
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.3s cubic-bezier(0.55, 0.1, 0.3, 1) forwards;
    animation-delay: calc(0.25s + var(--i) * 0.45s);
}

/* Frame floors still under construction read as lighter work lines. */
.hero-drawing > .is-work {
    stroke-opacity: 0.55;
}

/* Interior floor and bay lines. */
.hero-drawing > .is-faint {
    stroke-opacity: 0.4;
}

@keyframes draw {
    to {
        stroke-dashoffset: 0;
    }
}

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

    .hero-drawing > * {
        animation: none;
        stroke-dashoffset: 0;
    }
}

@media (max-width: 960px) {
    .hero {
        align-items: flex-start;
        min-height: auto;
    }

    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__visual {
        margin-inline: calc(var(--gutter) * -0.5);
    }

    .hero::before {
        width: 12rem;
        top: 2rem;
        left: -5rem;
    }

    .hero::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .site-header__logo img {
        height: 48px;
    }

    .hero__actions .button {
        flex: 1 1 100%;
    }
}

/* Shared section pieces
   ========================================================================== */

.section {
    padding-block: var(--section-space);
}

.section-title {
    font-size: var(--step-3);
    letter-spacing: -0.02em;
}

.button--dark {
    background: var(--asphalt);
    color: var(--text-on-dark);
}

.button--dark:hover {
    background: var(--graphite);
}

/* About
   ========================================================================== */

.about__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}

.about__media {
    position: relative;
    margin: 0;
    overflow: hidden;
}

.about__media img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 70% center;
}

/* Same gold band as the business card's bottom-right corner. */
.about__media::after {
    content: "";
    position: absolute;
    right: -3.5rem;
    bottom: 2.5rem;
    width: 12rem;
    height: var(--band);
    background: var(--gold);
    transform: rotate(-45deg);
}

.about__text {
    max-width: 38rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
    font-size: var(--step-1);
    line-height: 1.6;
}

.about__points {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin: 3rem 0 0;
}

.about__point {
    padding-top: 1.25rem;
    border-top: 2px solid var(--bronze);
}

.about__point dt {
    font-family: var(--font-display);
    font-weight: 700;
}

.about__point dd {
    margin: 0.5rem 0 0;
    color: var(--text-muted);
    font-size: var(--step--1);
    line-height: 1.55;
}

@media (max-width: 960px) {
    .about__grid {
        grid-template-columns: 1fr;
    }

    .about__media img {
        aspect-ratio: 16 / 10;
    }
}

@media (max-width: 640px) {
    .about__points {
        grid-template-columns: 1fr;
        gap: 1.75rem;
    }
}

/* Services
   ========================================================================== */

.services {
    background: var(--paper);
}

.services__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.services__intro {
    position: sticky;
    top: 2.5rem;
}

.services__text {
    margin-block: 1.5rem 2rem;
    color: var(--text-muted);
}

.service-index {
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 1px solid var(--line-light);
}

.service-index__row {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 1rem 2.5rem;
    padding-block: 1.75rem;
    border-top: 1px solid var(--line-light);
}

.service-index__title {
    font-size: var(--step-1);
    font-weight: 600;
    line-height: 1.3;
}

.service-index__items {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-muted);
    font-size: var(--step--1);
}

/* A short 45° gold tick before each sub-service, taken from the brand band. */
.service-index__items li {
    display: flex;
    flex: 0 0 auto;
    max-width: 100%;
    align-items: baseline;
    gap: 0.625rem;
}

.service-index__items li::before {
    content: "";
    flex: none;
    width: 10px;
    height: 2px;
    background: var(--gold);
    transform: translateY(-0.3em) rotate(-45deg);
}

@media (max-width: 960px) {
    .services__grid {
        grid-template-columns: 1fr;
    }

    .services__intro {
        position: static;
    }
}

@media (max-width: 640px) {
    .service-index__row {
        grid-template-columns: 1fr;
        padding-block: 1.5rem;
    }

    .service-index__items {
        gap: 0.375rem 1.125rem;
    }
}

/* Process
   ========================================================================== */

.process {
    background: var(--asphalt);
    color: var(--text-on-dark);
}

.process__head {
    display: grid;
    grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
    gap: 1.5rem clamp(2.5rem, 6vw, 6rem);
    align-items: end;
}

.process__intro {
    color: var(--text-on-dark-muted);
}

/* The steps sit on a gold dimension line, with a 45° tick at the start of each step,
   as on an architectural drawing. */
.process__steps {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 2rem;
    margin: clamp(3rem, 6vw, 5rem) 0 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--gold);
}

.process__step {
    position: relative;
    display: flex;
    flex-direction: column;
    padding-top: 2rem;
}

.process__step::before {
    content: "";
    position: absolute;
    top: -9px;
    left: -8px;
    width: 18px;
    height: 2px;
    background: var(--gold);
    transform: translateY(8px) rotate(-45deg);
}

.process__number {
    display: block;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.process__title {
    margin-top: 1rem;
    font-size: var(--step-1);
    font-weight: 600;
    line-height: 1.3;
}

.process__text {
    margin-block: 0.75rem 1.25rem;
    color: var(--text-on-dark-muted);
    font-size: var(--step--1);
}

.process__result {
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid var(--line-dark);
    font-size: var(--step--1);
    font-weight: 500;
}

.process__result span {
    color: var(--text-on-dark-muted);
    font-weight: 400;
}

@media (max-width: 1100px) {
    .process__steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 3rem;
        border-top: 0;
    }

    .process__step {
        border-top: 1px solid var(--gold);
    }
}

@media (max-width: 960px) {
    .process__head {
        grid-template-columns: 1fr;
    }
}

/* On small screens the dimension line turns vertical. */
@media (max-width: 640px) {
    .process__steps {
        grid-template-columns: 1fr;
        gap: 0;
        border-left: 1px solid var(--gold);
    }

    .process__step {
        padding: 0 0 2.5rem 1.75rem;
        border-top: 0;
    }

    .process__step:last-child {
        padding-bottom: 0;
    }

    .process__step::before {
        top: 0.5rem;
        left: -9px;
        transform: rotate(-45deg);
    }
}

/* Projects
   ========================================================================== */

.projects__head {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.projects__tabs {
    display: flex;
    gap: 0.25rem;
    padding: 0.25rem;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    background: var(--paper);
}

.projects__tab {
    min-height: 2.75rem;
    padding: 0.5rem 1.25rem;
    border: 0;
    border-radius: var(--radius);
    background: transparent;
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: var(--step--1);
    font-weight: 600;
    cursor: pointer;
}

.projects__tab:hover {
    color: var(--text);
}

.projects__tab[aria-selected="true"] {
    background: var(--asphalt);
    color: var(--text-on-dark);
}

.projects__panel[hidden] {
    display: none;
}

.project-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.project-grid__item {
    display: flex;
}

.project-grid__item--featured {
    grid-row: span 2;
}

.project-card {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
}

/* The title link covers the whole card, so the image is clickable too. */
.project-card__title a {
    text-decoration: none;
}

.project-card__title a::after {
    content: "";
    position: absolute;
    inset: 0;
}

.project-card:hover .project-card__title a {
    color: var(--bronze);
}

.project-card:focus-within {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

.project-card__title a:focus-visible {
    outline: none;
}

.project-card__media {
    margin: 0;
    overflow: hidden;
    background: var(--graphite);
}

.project-card__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-card--featured .project-card__media {
    flex: 1;
}

.project-card--featured .project-card__media img {
    height: 100%;
    aspect-ratio: auto;
}

.project-card__body {
    padding-top: 1rem;
}

.project-card__category {
    color: var(--bronze);
    font-size: var(--step--1);
    font-weight: 500;
}

.project-card__title {
    margin-top: 0.25rem;
    font-size: var(--step-1);
    font-weight: 600;
    line-height: 1.3;
}

.project-card--featured .project-card__title {
    font-size: var(--step-2);
}

.project-card__meta {
    margin-top: 0.25rem;
    color: var(--text-muted);
    font-size: var(--step--1);
}

@media (max-width: 960px) {
    .project-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-grid__item--featured {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .project-card--featured .project-card__media img {
        aspect-ratio: 16 / 9;
    }
}

/* On phones the cards become a swipeable row instead of a long stack. */
@media (max-width: 640px) {
    .project-grid {
        display: flex;
        gap: 1rem;
        margin-inline: calc(var(--gutter) * -1);
        padding-inline: var(--gutter);
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scroll-padding-inline: var(--gutter);
        scrollbar-width: none;
    }

    .project-grid::-webkit-scrollbar {
        display: none;
    }

    .project-grid__item {
        flex: 0 0 82%;
        scroll-snap-align: start;
    }

    .project-card--featured .project-card__media img {
        aspect-ratio: 4 / 3;
    }

    .project-card--featured .project-card__title {
        font-size: var(--step-1);
    }

    .projects__tabs {
        width: 100%;
    }

    .projects__tab {
        flex: 1;
    }
}

/* Quote request
   ========================================================================== */

.quote {
    background: var(--paper);
}

.quote__grid {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.quote__text {
    max-width: 30rem;
    margin-top: 1.5rem;
    color: var(--text-muted);
}

.quote__direct {
    display: grid;
    gap: 0.25rem;
    margin-top: 2.5rem;
    padding-left: 1.25rem;
    border-left: 2px solid var(--bronze);
}

.quote__person {
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    font-size: var(--step--1);
}

.quote__link {
    width: fit-content;
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.quote__link:hover {
    color: var(--bronze);
}

.quote__panel {
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: var(--concrete);
}

.quote-form {
    display: grid;
    gap: 1.25rem;
}

.quote-form__row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.quote-form__summary {
    padding: 0.875rem 1rem;
    border-left: 3px solid var(--error);
    background: var(--paper);
    color: var(--error);
    font-size: var(--step--1);
    font-weight: 500;
}

.quote-form__trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.quote-form__submit {
    justify-self: start;
    min-width: 14rem;
}

.field {
    display: grid;
    gap: 0.375rem;
}

.field label {
    font-size: var(--step--1);
    font-weight: 500;
}

.field__optional {
    color: var(--text-muted);
    font-weight: 400;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 0.875rem;
    border: 1px solid var(--field-border);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--text);
    font: inherit;
    font-size: 1rem; /* 16px stops iOS from zooming into the field */
}

.field textarea {
    resize: vertical;
    min-height: 8rem;
}

.field select {
    appearance: none;
    padding-right: 2.5rem;
    background-image: linear-gradient(45deg, transparent 50%, var(--text-muted) 50%), linear-gradient(-45deg, transparent 50%, var(--text-muted) 50%);
    background-position: calc(100% - 1.25rem) 50%, calc(100% - 0.9rem) 50%;
    background-size: 0.35rem 0.35rem;
    background-repeat: no-repeat;
}

.field input::placeholder,
.field textarea::placeholder {
    color: #8e8d87;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--bronze);
    outline: 2px solid var(--gold);
    outline-offset: 0;
}

.field--error input,
.field--error select,
.field--error textarea {
    border-color: var(--error);
}

.field__error {
    color: var(--error);
    font-size: var(--step--1);
}

.quote__success {
    padding-left: 1.25rem;
    border-left: 3px solid var(--bronze);
}

.quote__success h3 {
    font-size: var(--step-2);
}

.quote__success p {
    margin-top: 0.75rem;
    color: var(--text-muted);
}

@media (max-width: 960px) {
    .quote__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .quote-form__row {
        grid-template-columns: 1fr;
    }

    .quote__panel {
        margin-inline: calc(var(--gutter) * -1);
    }

    .quote-form__submit {
        justify-self: stretch;
    }
}

/* Footer
   ========================================================================== */

.site-footer {
    position: relative;
    overflow: hidden;
    padding-top: clamp(3.5rem, 6vw, 5rem);
    background: var(--asphalt);
    color: var(--text-on-dark-muted);
    font-size: var(--step--1);
}

.site-footer::after {
    content: "";
    position: absolute;
    right: -6rem;
    bottom: 2.5rem;
    width: 16rem;
    height: var(--band);
    background: var(--gold);
    transform: rotate(-45deg);
}

.site-footer__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) repeat(3, minmax(0, 2.5fr));
    gap: 2.5rem;
}

.site-footer__brand img {
    width: auto;
    height: 76px;
}

.site-footer__brand p {
    max-width: 18rem;
    margin-top: 1.25rem;
}

.site-footer__title {
    margin-bottom: 1rem;
    color: var(--text-on-dark);
    font-size: var(--step-0);
    font-weight: 600;
}

.site-footer ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer ul a {
    text-decoration: none;
    overflow-wrap: anywhere;
}

.site-footer ul a:hover {
    color: var(--gold);
}

.site-footer__bottom {
    margin-top: clamp(3rem, 5vw, 4rem);
    padding-block: 1.5rem;
    border-top: 1px solid var(--line-dark);
}

@media (max-width: 960px) {
    .site-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer__brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1.5rem;
    }

    .site-footer__grid > :last-child {
        grid-column: 1 / -1;
    }

    .site-footer::after {
        display: none;
    }
}

/* Shared: links, lists, card grid
   ========================================================================== */

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-display);
    font-size: var(--step--1);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid var(--gold);
    padding-bottom: 0.25rem;
}

.text-link:hover {
    color: var(--bronze);
}

.projects__all {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.service-index__title a {
    text-decoration: none;
}

.service-index__title a:hover {
    color: var(--bronze);
}

.tick-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-muted);
    font-size: var(--step--1);
}

.tick-list li {
    display: flex;
    flex: 0 0 auto;
    max-width: 100%;
    align-items: baseline;
    gap: 0.625rem;
}

.tick-list li::before {
    content: "";
    flex: none;
    width: 10px;
    height: 2px;
    background: var(--gold);
    transform: translateY(-0.3em) rotate(-45deg);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.25rem, 2.5vw, 2rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.card-grid > li {
    display: flex;
}

@media (max-width: 960px) {
    .card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Inner page hero
   ========================================================================== */

.page-hero {
    position: relative;
    overflow: hidden;
    padding-block: calc(var(--header-height) + clamp(2.5rem, 6vw, 5rem)) clamp(3rem, 6vw, 5rem);
    background: var(--asphalt);
    color: var(--text-on-dark);
    isolation: isolate;
}

.page-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: -7rem;
    bottom: 2.5rem;
    width: 20rem;
    height: var(--band);
    background: var(--gold);
    transform: rotate(-45deg);
}

.page-hero__title {
    max-width: 20ch;
    margin-top: 1.25rem;
    font-size: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
    letter-spacing: -0.02em;
}

.page-hero__lead {
    max-width: 40rem;
    margin-top: 1.25rem;
    color: var(--text-on-dark-muted);
    font-size: var(--step-1);
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
    margin: 0;
    padding: 0;
    list-style: none;
    color: var(--text-on-dark-muted);
    font-size: var(--step--1);
}

.breadcrumbs li + li::before {
    content: "/";
    margin-inline: 0.625rem;
    color: var(--gold);
}

.breadcrumbs a {
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--text-on-dark);
}

.breadcrumbs [aria-current] {
    color: var(--text-on-dark);
}

.site-nav__list a[aria-current="page"] {
    border-bottom-color: var(--gold);
}

@media (max-width: 640px) {
    .page-hero::after {
        display: none;
    }
}

/* Services list page
   ========================================================================== */

.service-list__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 clamp(2rem, 5vw, 5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-list__item {
    padding-block: 2rem;
    border-top: 1px solid var(--line-light);
}

.service-list__title {
    font-size: var(--step-2);
    font-weight: 600;
    line-height: 1.2;
}

.service-list__title a {
    text-decoration: none;
}

.service-list__title a:hover {
    color: var(--bronze);
}

.service-list__summary {
    max-width: 36rem;
    margin-block: 0.875rem 1.25rem;
    color: var(--text-muted);
}

@media (max-width: 800px) {
    .service-list__items {
        grid-template-columns: 1fr;
    }
}

/* Service detail page
   ========================================================================== */

.service-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 8fr) minmax(0, 3fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.service-detail__items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
    margin: 2rem 0 0;
    padding: 0;
    list-style: none;
}

.service-detail__items li {
    display: flex;
    align-items: baseline;
    gap: 0.875rem;
    padding-block: 1.125rem;
    border-bottom: 1px solid var(--line-light);
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
    line-height: 1.3;
}

.service-detail__items li::before {
    content: "";
    flex: none;
    width: 14px;
    height: 2px;
    background: var(--gold);
    transform: translateY(-0.3em) rotate(-45deg);
}

.service-detail__projects {
    margin-top: clamp(3.5rem, 6vw, 5rem);
}

.service-detail__projects .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 2rem;
}

.service-detail__aside {
    position: sticky;
    top: 2rem;
    padding: 1.5rem;
    background: var(--paper);
}

.service-detail__aside-title {
    margin-bottom: 0.75rem;
    font-size: var(--step-0);
    font-weight: 600;
}

.side-nav {
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: var(--step--1);
}

.side-nav a {
    display: block;
    padding: 0.5rem 0 0.5rem 0.875rem;
    border-left: 2px solid var(--line-light);
    color: var(--text-muted);
    text-decoration: none;
}

.side-nav a:hover {
    color: var(--text);
}

.side-nav a[aria-current="page"] {
    border-left-color: var(--bronze);
    color: var(--text);
    font-weight: 600;
}

@media (max-width: 960px) {
    .service-detail__grid {
        grid-template-columns: 1fr;
    }

    .service-detail__aside {
        position: static;
    }
}

@media (max-width: 640px) {
    .service-detail__items {
        grid-template-columns: 1fr;
    }

    .service-detail__projects .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Projects list page
   ========================================================================== */

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    width: fit-content;
    max-width: 100%;
    margin-bottom: clamp(2rem, 4vw, 3rem);
    padding: 0.25rem;
    border: 1px solid var(--line-light);
    border-radius: var(--radius);
    background: var(--paper);
}

.filter-bar__link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius);
    color: var(--text-muted);
    font-family: var(--font-display);
    font-size: var(--step--1);
    font-weight: 600;
    text-decoration: none;
}

.filter-bar__link:hover {
    color: var(--text);
}

.filter-bar__link[aria-current="page"] {
    background: var(--asphalt);
    color: var(--text-on-dark);
}

.empty-state {
    color: var(--text-muted);
}

@media (max-width: 480px) {
    .filter-bar {
        width: 100%;
    }

    .filter-bar__link {
        flex: 1;
        justify-content: center;
        padding-inline: 0.5rem;
    }
}

/* Project detail page
   ========================================================================== */

.fact-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 3rem;
    margin: 2.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-dark);
}

.fact-list dt {
    color: var(--text-on-dark-muted);
    font-size: var(--step--1);
}

.fact-list dd {
    margin: 0.25rem 0 0;
    font-family: var(--font-display);
    font-weight: 600;
}

.project-detail__grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: start;
}

.project-detail__media {
    margin: 0;
    background: var(--graphite);
}

.project-detail__media img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.project-detail__body .section-title {
    margin-top: 0.5rem;
}

.project-detail__scope {
    margin: 1.75rem 0 0;
    padding: 0;
    list-style: none;
}

.project-detail__scope li {
    display: flex;
    align-items: baseline;
    gap: 0.875rem;
    padding-block: 0.875rem;
    border-bottom: 1px solid var(--line-light);
    font-weight: 500;
}

.project-detail__scope li::before {
    content: "";
    flex: none;
    width: 12px;
    height: 2px;
    background: var(--gold);
    transform: translateY(-0.3em) rotate(-45deg);
}

.project-detail__service {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: var(--step--1);
}

.project-related {
    padding-top: 0;
}

@media (max-width: 960px) {
    .project-detail__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .fact-list {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* About page
   ========================================================================== */

.building-types {
    background: var(--paper);
}

.building-types__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.building-types__text {
    max-width: 24rem;
    margin-block: 1.25rem 1.75rem;
    color: var(--text-muted);
}

.building-types__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 2rem;
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--line-light);
}

.building-types__list li {
    display: flex;
    align-items: baseline;
    gap: 0.875rem;
    padding-block: 1.125rem;
    border-bottom: 1px solid var(--line-light);
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
}

.building-types__list li::before {
    content: "";
    flex: none;
    width: 14px;
    height: 2px;
    background: var(--gold);
    transform: translateY(-0.3em) rotate(-45deg);
}

.principles__list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
    margin: clamp(2rem, 4vw, 3rem) 0 0;
    padding: 0;
    list-style: none;
}

.principles__item {
    padding-top: 1.25rem;
    border-top: 2px solid var(--bronze);
}

.principles__item h3 {
    font-size: var(--step-1);
    font-weight: 600;
    line-height: 1.3;
}

.principles__item p {
    margin-top: 0.75rem;
    color: var(--text-muted);
    font-size: var(--step--1);
}

.leadership {
    background: var(--concrete);
}

.leadership__grid {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 2rem clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.leadership__card {
    display: grid;
    gap: 0.25rem;
    padding-left: 1.25rem;
    border-left: 2px solid var(--bronze);
}

.leadership__name {
    font-family: var(--font-display);
    font-size: var(--step-2);
    font-weight: 700;
}

.leadership__role {
    margin-bottom: 0.75rem;
    color: var(--bronze);
    font-weight: 500;
}

@media (max-width: 1100px) {
    .principles__list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .building-types__grid,
    .leadership__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .building-types__list,
    .principles__list {
        grid-template-columns: 1fr;
    }
}

/* Contact page
   ========================================================================== */

.contact-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, auto));
    justify-content: start;
    gap: 1.5rem 3.5rem;
    margin: 2.5rem 0 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line-dark);
}

.contact-list dt {
    color: var(--text-on-dark-muted);
    font-size: var(--step--1);
}

.contact-list dd {
    margin: 0.375rem 0 0;
    font-family: var(--font-display);
    font-size: var(--step-1);
    font-weight: 600;
    overflow-wrap: anywhere;
}

.contact-list a {
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--gold);
}

@media (max-width: 1100px) {
    .contact-list {
        grid-template-columns: repeat(2, minmax(0, auto));
    }
}

@media (max-width: 560px) {
    .contact-list {
        grid-template-columns: 1fr;
    }
}
