:root {
    --ink: #2B2F33;
    --muted: #45484a;
    --teal: #07767b;
    --teal-dark: #055b62;
    --teal-brand: #3FA8A1;
    --paper: #fff;
    --wash: #f4f4f4;
    --line: #d5d7d7;
}

.hero-services span {
    display: block;
}

    .hero-services span::before {
        content: "";
        display: inline-block;
        width: 1rem;
        height: 2px;
        margin-right: .6rem;
        vertical-align: .3em;
        background: var(--teal-brand);
    }

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    color: var(--ink);
    background: var(--paper);
    font-family: "Manrope", system-ui, sans-serif;
    line-height: 1.65;
}

main { flex: 1; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 4px; }

.site-container {
    --bs-gutter-x: clamp(2rem, 10.4vw, 8rem);
    max-width: 1440px;
}

.site-header { border-bottom: 1px solid var(--line); }
.site-header .navbar { min-height: clamp(4.7rem, 8.7vw, 6.45rem); padding-inline: calc(var(--bs-gutter-x) * .5); }
.navbar-brand, .site-footer a { text-decoration: none; }
.wordmark {
    display: inline-block;
    color: var(--ink);
    font-weight: 700;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1;
    letter-spacing: -.01em;
    white-space: nowrap;
}
.wordmark-divider {
    display: inline-block;
    width: .075em;
    height: .86em;
    margin: 0 .2em -.07em;
    background: var(--teal-brand);
}
.navbar-nav { gap: clamp(.6rem, 2.2vw, 2rem); }
.navbar .nav-link {
    position: relative;
    width: fit-content;
    color: var(--muted);
    font-size: .93rem;
    font-weight: 560;
}
.navbar .nav-link.active, .navbar .nav-link:hover { color: var(--teal); }
.navbar .nav-link.active::after {
    position: absolute;
    inset: auto .5rem .15rem;
    height: 2px;
    background: var(--teal);
    content: "";
}
.skip-link { position: absolute; z-index: 5; padding: .5rem 1rem; background: var(--paper); }

.section-label {
    margin-bottom: 1.15rem;
    color: var(--teal);
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
}
.section-label::before {
    display: inline-block;
    width: 1.65rem;
    height: 1px;
    margin-right: .65rem;
    vertical-align: .28em;
    background: currentColor;
    content: "";
}
h1, h2, h3 { font-weight: 640; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.1vw, 5.85rem); line-height: .99; letter-spacing: -.065em; }
h2 {
    font-size: clamp(1.75rem, 3vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: -.03em;
}
.intro {
    max-width: 35rem;
    margin-top: 1.2rem;
    color: var(--muted);
    font-size: clamp(1.03rem, 1.45vw, 1.22rem);
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.55rem; margin-top: 1.85rem; }
.btn-teal {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--teal);
    --bs-btn-border-color: var(--teal);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--teal-dark);
    --bs-btn-hover-border-color: var(--teal-dark);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--teal-dark);
    --bs-btn-active-border-color: var(--teal-dark);
    --bs-btn-focus-shadow-rgb: 7, 118, 123;
    --bs-btn-border-radius: 0;
    padding: .75rem 1.08rem;
    font-size: .9rem;
    font-weight: 650;
}
.btn-teal span, .text-link span { margin-left: .45em; }
.text-link { font-size: .94rem; font-weight: 660; text-underline-offset: .22em; }
.section-space { padding-block: clamp(3rem, 6vw, 5.75rem); }
.inner-page { min-height: 52vh; }
.inner-page h1 { font-size: clamp(2.8rem, 6vw, 5rem); }
.page-intro { max-width: 42rem; margin-bottom: 2.25rem; }
.detail-grid { margin-bottom: 2rem; }
.detail-grid h2, .service-details h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.detail-grid p, .service-details p { max-width: 58ch; color: var(--muted); }
.service-details { max-width: 54rem; margin-bottom: 2rem; }
.service-details section { padding-block: 1.3rem; border-top: 1px solid var(--line); scroll-margin-top: 1.5rem; }
.service-details section:last-child { border-bottom: 1px solid var(--line); }
.service-details p { margin-bottom: 0; }
.contact-links li + li { margin-top: .5rem; }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 1.7rem; }
.footer-inner p { margin: 0; color: var(--muted); font-size: .88rem; }
.footer-inner > :last-child { margin-left: auto; }
.footer-inner .wordmark { font-size: 1.4rem; }

@media (max-width: 991.98px) {
    .navbar-nav { gap: 0; padding-block: .4rem .7rem; }
    .navbar .nav-link.active::after { inset-inline: 0; }
}

@media (max-width: 575.98px) {
    .footer-inner > :last-child { margin-left: 0; }
}

.home-hero {
    position: relative;
    isolation: isolate;
    background: #edf0f3;
}

.home-hero-image {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.home-hero::after {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(90deg, #f3f4f5fa 0%, #f3f4f5f0 23%, #f3f4f500 57%);
    content: "";
}

.home-hero-inner {
    display: flex;
    align-items: center;
    min-height: clamp(26rem, 41vw, 38rem);
    padding-block: 3.5rem;
}

.home-hero-copy { max-width: 29rem; }
.home-hero h1 { font-size: clamp(2.65rem, 4.85vw, 4.7rem); line-height: 1.06; letter-spacing: -.055em; }
.home-hero p { max-width: 23rem; margin: 1.35rem 0 0; font-size: clamp(1.1rem, 1.8vw, 1.38rem); line-height: 1.35; }
.home-contact-link { color: var(--ink); font-weight: 550; text-decoration: none; }
.home-contact-link:hover { text-decoration: underline; text-underline-offset: .22em; }

.home-services { padding-block: clamp(2.5rem, 4.6vw, 4.75rem); }
    .home-services .section-label {
        margin-bottom: .9rem;
        color: var(--ink);
        font-size: .9rem;
    }

        .home-services .section-label::before {
            width: 1.6rem;
            height: 2px;
            background: var(--teal-brand);
        }
.home-services h2 { text-wrap: initial; }
.home-services-intro { max-width: 50rem; margin-block: .75rem 2.15rem; color: var(--muted); font-size: clamp(1rem, 1.65vw, 1.23rem); line-height: 1.4; }
.service-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.service-tiles li + li { border-left: 1px solid var(--line); }
.service-tiles a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    gap: .55rem;
    padding: 0 1rem .5rem clamp(1.2rem, 4vw, 3.65rem);
    color: var(--ink);
    font-size: clamp(1rem, 1.7vw, 1.25rem);
    font-weight: 620;
    text-decoration: none;
    line-height: 1.25;
}
.service-tiles li:first-child a { padding-left: .35rem; }
.service-tiles a:hover { color: var(--teal-dark); text-decoration: underline; text-underline-offset: .2em; }
.home-icon { display: block; width: 2.35rem; height: 2.35rem; }
.service-tiles .home-icon { color: var(--teal); }

.principles-band { padding-block: clamp(1.8rem, 3vw, 3rem); color: white; background: linear-gradient(135deg, var(--teal), var(--teal-dark)); }
.principle { padding: 0 clamp(1rem, 3.2vw, 3rem); }
.principle:first-child { padding-left: .35rem; }
.principle:last-child { padding-right: 0; }
.principle + .principle { border-left: 1px solid #ffffff80; }
.principle .home-icon { margin-bottom: .5rem; }
.principle h3 { margin-bottom: .35rem; font-size: clamp(1.04rem, 1.65vw, 1.27rem); text-wrap: initial; }
.principle p { max-width: 31ch; margin: 0; line-height: 1.35; }

.home-experience { background: var(--wash); }
.home-experience-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 2rem; padding-block: clamp(1.8rem, 3vw, 3rem); }
.home-experience h2 { margin: 0 0 .45rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.home-experience p { margin: 0; color: var(--muted); }

@media (max-width: 767.98px) {
    .home-hero { display: flex; flex-direction: column-reverse; }
    .home-hero::after { display: none; }
    .home-hero-image { position: static; width: 100%; height: auto; aspect-ratio: 2.15; object-position: right; }
    .home-hero-inner { min-height: 0; padding-block: 2.35rem 1.85rem; }
    .home-hero p { margin-top: 1rem; }
    .service-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .service-tiles a, .service-tiles li:first-child a { padding: .95rem .7rem; }
    .service-tiles li:nth-child(odd) { border-left: 0; }
    .service-tiles li:nth-child(n+3) { border-top: 1px solid var(--line); }
    .principle, .principle:first-child { padding: 1rem 0; }
    .principle + .principle { border-left: 0; border-top: 1px solid #ffffff80; }
    .principle p { max-width: none; }
}

/* Experience page */
.experience-note { margin: -1.25rem 0 2rem; color: var(--muted); font-size: .9rem; }
.case-studies { margin-bottom: 1rem; }
.case-study { height: 100%; padding: 1.4rem 1.5rem 1.3rem; border-top: 3px solid var(--teal-brand); background: var(--wash); }
.case-value { margin: 0 0 .3rem; color: var(--teal); font-size: .9rem; font-weight: 700; letter-spacing: .04em; }
.case-study h2 { margin-bottom: .3rem; font-size: clamp(1.25rem, 2vw, 1.55rem); letter-spacing: -.02em; }
.case-role { margin-bottom: .75rem; color: var(--muted); font-size: .9rem; }
.case-study p:last-child { margin-bottom: 0; }
.further-heading { margin: 3.5rem 0 1.5rem; font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -.02em; }
.sector-lists { margin-bottom: 2.5rem; }
.sector-lists h3 { margin-bottom: .6rem; font-size: 1.05rem; font-weight: 700; }
.sector-lists ul { margin: 0; padding: 0; list-style: none; }
.sector-lists li { padding: .4rem 0; border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; line-height: 1.4; }

/* Homepage project strip */
.home-experience-block { padding-block: clamp(2rem, 3.5vw, 3.25rem); }
.home-experience-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; }
.home-experience .home-experience-note { margin: 0 0 1.5rem; }
.home-projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin: 0; }
.home-projects li { display: flex; flex-direction: column; gap: .15rem; padding-top: .9rem; border-top: 3px solid var(--teal-brand); }
.home-projects .case-value { margin: 0; }
.home-projects strong { font-size: 1.12rem; line-height: 1.3; }
.home-projects span:last-child { color: var(--muted); font-size: .93rem; line-height: 1.4; }

/* About background */
.about-background { max-width: 54rem; margin: 1rem 0 2.5rem; padding-top: 2rem; border-top: 1px solid var(--line); }
.about-background h2 { font-size: clamp(1.35rem, 2.2vw, 1.9rem); }
.about-name { margin-bottom: .6rem; }
.about-background p { color: var(--muted); }
.about-background .about-name { color: var(--ink); }
.credentials { margin: 1rem 0 0; padding: 0; list-style: none; }
.credentials li { padding: .2rem 0; }
.credentials li::before { display: inline-block; width: 1.6rem; height: 2px; margin-right: .7rem; vertical-align: .3em; background: var(--teal-brand); content: ""; }

@media (max-width: 767.98px) {
    .home-projects { grid-template-columns: 1fr; }
}

.footer-inner .footer-legal { font-size: .8rem; }

/* Contact card */
.contact-card { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 2.25rem; max-width: 46rem; margin-bottom: 1.75rem; padding: 2rem; border-top: 3px solid var(--teal-brand); background: var(--wash); }
.contact-photo { width: 170px; aspect-ratio: 4 / 5; object-fit: cover; }
.contact-name { margin: 0; font-size: 1.45rem; font-weight: 700; }
.contact-title { margin: 0 0 1rem; color: var(--muted); }
.contact-card .contact-links { margin-bottom: 1rem; }
.contact-card .contact-links a { font-size: 1.12rem; }
.contact-meta { margin: .2rem 0 0; color: var(--muted); font-size: .93rem; }
.contact-hint { max-width: 46rem; color: var(--muted); font-size: .95rem; }

/* About photo */
.about-person { display: flex; align-items: flex-start; gap: 2rem; }
.about-photo { flex: none; width: 150px; aspect-ratio: 4 / 5; object-fit: cover; }
@media (max-width: 575.98px) {
    .about-person { flex-direction: column; }
}

/* Case study images */
.case-study { display: flex; flex-direction: column; }
.case-image { width: calc(100% + 3rem); max-width: none; margin: -1.4rem -1.5rem 1.2rem; aspect-ratio: 3 / 2; object-fit: cover; }

/* Services: photo band and heading dashes */
.page-band img { display: block; width: 100%; height: clamp(11rem, 22vw, 19rem); object-fit: cover; object-position: center 40%; }
.service-details h2::before { display: inline-block; width: 1.6rem; height: 2px; margin-right: .7rem; vertical-align: .3em; background: var(--teal-brand); content: ""; }

/* About: pull quote */
.pull-quote { max-width: 40rem; margin: 1.75rem 0 1rem; padding-left: 1.1rem; border-left: 4px solid var(--teal-brand); color: var(--ink); font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; }
.pull-quote + .page-intro { margin-top: 0; }

/* About: key figures */
.key-figures { margin: 0; padding-top: .5rem; }
.key-figures li { display: flex; flex-direction: column; padding: 1rem 0 1rem 1.1rem; border-left: 4px solid var(--teal-brand); }
.key-figures li + li { margin-top: .9rem; }
.key-figures strong { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.key-figures span { color: var(--muted); font-size: .93rem; }
@media (min-width: 992px) { .key-figures { margin-top: 7rem; } }

/* Testimonials */
.testimonials { padding-block: clamp(2.5rem, 4.5vw, 4rem); }
.testimonial { margin: 0; padding-left: 1.1rem; border-left: 4px solid var(--teal-brand); }
.testimonial blockquote { margin: 0 0 1rem; }
.testimonial blockquote p { margin: 0; font-size: clamp(1.15rem, 1.8vw, 1.4rem); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.testimonial figcaption { display: flex; flex-direction: column; font-size: .93rem; }
.testimonial figcaption span { color: var(--muted); }
