/* ==========================================================================
   WESTERN — MAIN STYLESHEET
   --------------------------------------------------------------------------
   Contents
     1.  Fonts
     2.  Colour & layout tokens
     3.  Base
     4.  Shared components (eyebrow, links, buttons, arrows)
     5.  Focus styles (keyboard navigation)
     6.  Header & navigation
     7.  Hero
     8.  Homepage sections
     9.  Project cards & grids
     10. Contact band & footer
     11. Inner pages (intro, portfolio, about)
     12. Project detail pages
     13. Contact page
     14. Contact form
     15. Notes & 404 pages
     16. Scroll reveal animation
     17. Responsive
     18. Reduced motion

   ACCESSIBILITY RULES FOR THIS FILE (AODA / WCAG 2.0 AA)
     - No text smaller than 12px. The smallest size used is 14px.
     - Text colour on its background must reach 4.5:1 contrast
       (3:1 for text 24px+ or 18.66px+ bold). Measured ratios are noted
       beside each colour below — check https://webaim.org/resources/contrastchecker/
       before introducing a new colour pairing.
   ========================================================================== */


/* 1. Fonts
   ========================================================================== */

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/dm-sans-400.woff') format('woff');
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/dm-sans-500.woff') format('woff');
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/dm-sans-600.woff') format('woff');
}

@font-face {
    font-family: 'DM Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/dm-sans-700.woff') format('woff');
}

@font-face {
    font-family: 'DM Serif Display';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/dm-serif-display-400-italic.woff') format('woff');
}

@font-face {
    font-family: 'DM Serif Display';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/dm-serif-display-400.woff') format('woff');
}


/* 2. Colour & layout tokens
   ========================================================================== */

:root {
    /* Colours                       Contrast (text on background)          */
    --ink: #163d35;                 /* on paper 11.5:1 · on pale 10.5:1       */
    --deep: #102d27;                /* white on deep 14.7:1                   */
    --paper: #fafbf8;               /* main page background                   */
    --white: #fff;
    --muted: #53635a;               /* on paper 6.1:1 · on pale 5.6:1         */
    --line: #d8ded7;                /* decorative rules only — never text     */
    --accent: #d4e49a;              /* on deep 10.8:1 · on ink 8.8:1          */
    --pale: #edf1e9;                /* alternate section background           */
    --on-dark: #d0dbd3;             /* body text on ink 8.4:1                 */
    --on-dark-footer: #c7d2cb;      /* on deep 9.5:1                          */
    --on-dark-subtle: #aebfb5;      /* on deep 7.7:1                          */
    --error: #a8231b;               /* on pale 6.3:1 · on white 7.3:1         */
    --focus-light: #e0f1a8;         /* focus ring on dark backgrounds         */

    /* Layout & type */
    --gutter: clamp(24px, 5vw, 88px);
    --sans: 'DM Sans', Arial, sans-serif;
    --serif: 'DM Serif Display', Georgia, serif;
}


/* 3. Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

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

picture {
    display: contents;
}

a,
button {
    -webkit-tap-highlight-color: transparent;
}

::selection {
    background: var(--accent);
    color: var(--deep);
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

h1,
h2,
h3,
h4 {
    font-weight: 500;
    line-height: 1.1;
}

h1,
h2 {
    letter-spacing: -0.045em;
}

h2 {
    font-size: clamp(40px, 4.8vw, 76px);
}

h3 {
    font-size: 28px;
    letter-spacing: -0.025em;
}

p {
    max-width: 55ch;
}

em {
    font-family: var(--serif);
    font-weight: 400;
    letter-spacing: -0.035em;
}

.wrap {
    width: min(100% - var(--gutter) * 2, 1440px);
    margin: auto;
}

.section {
    padding-block: 120px;
}

.muted {
    color: var(--muted);
}

/* Hidden on screen but read by screen readers and search engines */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

/* "Skip to content" link — hidden until focused with the keyboard */
.skip {
    position: fixed;
    left: 20px;
    top: -100px;
    z-index: 1000;
    padding: 12px 20px;
    background: var(--white);
    color: var(--ink);
}

.skip:focus {
    top: 15px;
}


/* 4. Shared components
   ========================================================================== */

/* Small uppercase label with a short line before it */
.eyebrow {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1px;
    margin-right: 12px;
    background: currentColor;
    vertical-align: middle;
}

.eyebrow-plain::before {
    display: none;
}

/* Diagonal arrow icon */
.arrow {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
}

.arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.4;
    transition: transform 0.3s;
}

.circle {
    width: 48px;
    height: 48px;
    border: 1px solid currentColor;
    border-radius: 50%;
}

/* Underlined text link with arrow */
.text-link {
    display: inline-flex;
    align-items: center;
    gap: 25px;
    padding-bottom: 8px;
    border-bottom: 1px solid currentColor;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.text-link:hover svg,
.button:hover svg {
    transform: translate(3px, -3px);
}

/* Buttons */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 56px;
    padding: 17px 24px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--white);
    font-size: 14px;
    line-height: 1.35;
    transition: background 0.25s, color 0.25s;
}

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

.button.light {
    border-color: var(--paper);
    background: var(--paper);
    color: var(--ink);
}

.button.light:hover {
    border-color: var(--accent);
    background: var(--accent);
}

.button.outline {
    border-color: var(--muted);
    background: none;
    color: var(--ink);
}

.button.outline:hover {
    background: var(--pale);
}

/* Caption label placed over photos */
.photo-caption {
    position: absolute;
    bottom: 26px;
    left: 30px;
    z-index: 1;
    max-width: calc(100% - 60px);
    padding: 8px 12px;
    background: var(--deep);
    color: var(--white);
    font-size: 14px;
}


/* 5. Focus styles
   Dark backgrounds get a pale ring; light backgrounds get a dark ring.
   ========================================================================== */

a:focus-visible,
button:focus-visible {
    outline: 3px solid var(--focus-light);
    outline-offset: 3px;
    box-shadow: 0 0 0 6px var(--deep);
}

.header:not(.over-hero) a:focus-visible,
.header:not(.over-hero) button:focus-visible,
.menu-open .header a:focus-visible,
.menu-open .header button:focus-visible,
.section a:focus-visible,
.section button:focus-visible,
.page-intro a:focus-visible,
.contact-band a:focus-visible,
.legal a:focus-visible,
.contact-layout a:focus-visible,
.detail-next:focus-visible {
    outline-color: var(--ink);
    box-shadow: 0 0 0 6px var(--paper);
}

.footer a:focus-visible {
    outline-color: var(--accent);
    box-shadow: 0 0 0 6px var(--deep);
}


/* 6. Header & navigation
   ========================================================================== */

/* Fixed to the top of the screen so the menu is always available.
   main.js adds .is-scrolled once the page moves, making it more compact. */
.header {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    width: 100%;
    height: 104px;
    background: var(--paper);
    color: var(--ink);
    transition: background 0.3s, color 0.3s, height 0.3s, box-shadow 0.3s;
}

.header.is-scrolled {
    height: 84px;
    box-shadow: 0 1px 0 rgba(16, 45, 39, 0.08), 0 8px 24px rgba(16, 45, 39, 0.08);
}

.header.is-scrolled .header-inner,
.header.is-scrolled:not(.over-hero) .header-inner {
    border-bottom-color: transparent;
}

/* Dark header used on pages that open with a full-screen photo */
.header.over-hero {
    background: var(--deep);
    color: var(--white);
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    width: calc(100% - var(--gutter) * 2);
    height: 100%;
    margin: auto;
}

.header:not(.over-hero) .header-inner {
    border-color: var(--line);
}

.logo {
    display: block;
    flex-shrink: 0;
}

.logo img {
    width: 100%;
    object-fit: contain;
    object-position: left center;
}

.header .logo {
    width: 96px;
}

.header .logo img {
    height: 75px;
    transition: height 0.3s;
}

.header.is-scrolled .logo img {
    height: 60px;
}

/* The logo file is white; this filter turns it Western green on light headers */
.header:not(.over-hero) .logo img,
.menu-open .header .logo img {
    filter: brightness(0) saturate(100%) invert(18%) sepia(27%) saturate(860%) hue-rotate(111deg) brightness(88%) contrast(91%);
}

.nav {
    display: flex;
    align-items: center;
    gap: 38px;
}

.nav a {
    position: relative;
    font-size: 16px;
    white-space: nowrap;
}

.nav a:not(.nav-contact)::after {
    content: '';
    position: absolute;
    bottom: -7px;
    left: 0;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s;
}

.nav a:hover::after,
.nav a[aria-current]::after {
    transform: scaleX(1);
}

.nav-contact {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 12px 18px;
    border: 1px solid currentColor;
    transition: color 0.2s, background 0.2s;
}

.nav-contact:hover {
    background: var(--ink);
    color: var(--white);
}

.over-hero .nav-contact:hover {
    background: var(--paper);
    color: var(--ink);
}

/* Mobile menu button (shown below 900px) */
.menu-toggle {
    display: none;
    width: 48px;
    height: 48px;
    padding: 10px;
    border: 0;
    background: transparent;
    color: inherit;
}

.menu-toggle span {
    display: block;
    width: 26px;
    height: 1px;
    margin: 7px 0;
    background: currentColor;
    transition: transform 0.25s;
}

.menu-toggle[aria-expanded='true'] span:first-child {
    transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
    transform: translateY(-4px) rotate(-45deg);
}


/* 7. Hero
   ========================================================================== */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 760px;
    height: 93svh;
    max-height: 1100px;
    background: var(--ink);
    color: var(--white);
}

.hero-photo {
    position: absolute;
    inset: 0;
    z-index: -3;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    animation: hero-image 1.4s ease-out both;
}

/* Dark gradient over the photo keeps the white text readable */
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(6, 25, 20, 0.89) 0%, rgba(6, 25, 20, 0.76) 55%, rgba(6, 25, 20, 0.48) 100%),
        linear-gradient(0deg, rgba(5, 22, 19, 0.9), transparent 48%);
}

.hero .wrap {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
    padding-top: 160px;
    padding-bottom: 34px;
}

.hero-copy {
    max-width: 900px;
    margin-top: auto;
    margin-bottom: auto;
    padding-top: 45px;
    padding-bottom: 60px;
}

.hero h1 {
    margin: 24px 0 26px;
    font-size: clamp(66px, 7.8vw, 124px);
    line-height: 1.02;
    letter-spacing: -0.055em;
}

.hero h1 em {
    font-size: 1.06em;
    letter-spacing: -0.035em;
}

.hero-description {
    max-width: 370px;
    margin-bottom: 32px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    line-height: 1.65;
}

.hero-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 23px;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.hero-project {
    display: flex;
    align-items: center;
    gap: 28px;
}

.hero-project small {
    display: block;
    margin-bottom: 3px;
    font-size: 14px;
    opacity: 0.75;
}

.hero-project strong {
    font-weight: 500;
}

.hero-scroll {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hero-scroll svg {
    width: 18px;
    transform: rotate(135deg);
}

.hero-index {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.hero-index i {
    display: block;
    width: 64px;
    height: 1px;
    background: rgba(255, 255, 255, 0.4);
}

.hero-index i::before {
    content: '';
    display: block;
    width: 100%;
    height: 1px;
    background: var(--accent);
}


/* 8. Homepage sections
   ========================================================================== */

/* Introduction */
.intro-grid {
    display: grid;
    grid-template-columns: 0.85fr 1.5fr;
    gap: 80px;
}

.intro-grid .eyebrow {
    padding-top: 11px;
}

.intro-main h2 {
    max-width: 880px;
}

.intro-main p {
    max-width: 630px;
    margin-top: 35px;
    font-size: 18px;
    line-height: 1.8;
}

.intro-main .text-link {
    margin-top: 30px;
}

/* Stats row */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 90px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.stat {
    padding: 0 40px;
    border-right: 1px solid var(--line);
}

.stat:first-child {
    padding-left: 0;
}

.stat:last-child {
    border: 0;
}

.stat strong {
    display: block;
    font-size: clamp(48px, 5vw, 76px);
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: -0.055em;
}

.stat p {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

/* Section heading with an optional link on the right */
.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 52px;
}

.section-heading .eyebrow {
    margin-bottom: 20px;
}

/* Residential / commercial cards */
.sectors {
    background: var(--paper);
}

.sector-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.sector-card {
    display: block;
    overflow: hidden;
    background: var(--deep);
    color: var(--white);
}

.sector-card img {
    width: 100%;
    aspect-ratio: 1.45;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.sector-card:hover img {
    transform: scale(1.025);
}

.sector-copy {
    padding: 30px 34px 34px;
}

.sector-copy > span:first-child {
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sector-copy h3 {
    margin: 16px 0;
    font-size: clamp(26px, 2.8vw, 42px);
}

.sector-copy p {
    margin-bottom: 25px;
    color: var(--on-dark);
}

.sector-action {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 7px;
    border-bottom: 1px solid currentColor;
    font-size: 14px;
}

/* Photo + text split block */
.story-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--ink);
    color: var(--paper);
}

.story-photo {
    position: relative;
    overflow: hidden;
    min-height: 700px;
}

.story-photo img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-copy {
    align-self: center;
    padding: 110px clamp(35px, 6vw, 110px);
}

.story-copy .eyebrow {
    margin-bottom: 30px;
    color: var(--accent);
}

.story-copy h2 {
    font-size: clamp(42px, 4.2vw, 66px);
}

.story-copy p {
    margin: 30px 0;
    color: var(--on-dark);
    line-height: 1.8;
}

.story-copy .text-link {
    margin-top: 10px;
}

/* Principles */
.principles-intro {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    align-items: end;
    gap: 80px;
    margin: 25px 0 60px;
}

.principles-intro p {
    max-width: 450px;
    color: var(--muted);
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.principle {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.principle > span {
    color: var(--muted);
    font-family: var(--serif);
    font-size: 25px;
}

.principle h3 {
    margin: 35px 0 20px;
    font-size: 28px;
}

.principle p {
    color: var(--muted);
    font-size: 16px;
    line-height: 1.8;
}


/* 9. Project cards & grids
   ========================================================================== */

.portfolio-home {
    padding-top: 105px;
    background: var(--pale);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 64px 38px;
}

.project-card {
    display: block;
    min-width: 0;
}

.project-card[hidden] {
    display: none;
}

.project-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1.35;
    background: #d7ded6;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.75s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.project-card:hover img {
    transform: scale(1.045);
}

.project-image::after {
    content: '';
    position: absolute;
    inset: 45% 0 0;
    background: linear-gradient(0deg, rgba(12, 34, 27, 0.2), transparent);
}

.project-image .tag {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 1;
    padding: 7px 12px;
    background: var(--paper);
    color: var(--ink);
    font-size: 14px;
    line-height: 1.5;
}

.project-image .card-arrow {
    position: absolute;
    right: 20px;
    bottom: 20px;
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--paper);
    color: var(--ink);
    transition: background 0.3s, transform 0.3s;
}

.project-card:hover .card-arrow {
    background: var(--accent);
    transform: rotate(45deg);
}

.project-info {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding-top: 22px;
}

.project-info h3 {
    font-size: 27px;
}

.project-info p {
    margin-top: 8px;
    color: var(--muted);
    font-size: 14px;
}

.project-info > span {
    max-width: 140px;
    padding-top: 5px;
    font-size: 14px;
    text-align: right;
}

/* Homepage: staggered two-card layout */
.home-projects .project-card:nth-child(2) {
    margin-top: 115px;
}

.home-projects .project-card:first-child .project-image {
    aspect-ratio: 1.06;
}

.home-projects .project-card:nth-child(2) .project-image {
    aspect-ratio: 1.3;
}

.portfolio-bottom {
    margin-top: 55px;
    text-align: center;
}

.portfolio-bottom p {
    margin: 0 auto 22px;
    color: var(--muted);
    font-size: 14px;
}


/* Legacy mosaic (homepage) */
.legacy-mosaic {
    padding: 120px 0 0;
    background: var(--deep);
    color: var(--paper);
}

.legacy-mosaic-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 80px;
    margin-bottom: 64px;
}

.legacy-mosaic-heading .eyebrow {
    margin-bottom: 24px;
    color: var(--accent);
}

.legacy-mosaic-heading p:not(.eyebrow) {
    color: var(--on-dark);
    font-size: 18px;
    line-height: 1.8;
}

.legacy-mosaic-links {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 36px;
    margin-top: 30px;
}

.mosaic {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    margin: 0;
    padding: 0;
    list-style: none;
}

.mosaic-tile {
    position: relative;
    overflow: hidden;
    aspect-ratio: 32 / 27;
    margin: 0;
}

.mosaic-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Statement tiles: real text on Western green */
.mosaic-text {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background:
        radial-gradient(120% 120% at 20% 0%, rgba(212, 228, 154, 0.12), transparent 60%),
        var(--ink);
    color: var(--white);
    text-align: center;
}

.mosaic-text p {
    max-width: none;
}

.mosaic-text strong {
    display: block;
    font-family: var(--serif);
    font-size: clamp(40px, 4vw, 64px);
    font-weight: 400;
    line-height: 1;
    letter-spacing: -0.03em;
}

.mosaic-text span {
    display: block;
    margin-top: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.mosaic-text em {
    font-size: clamp(24px, 2.2vw, 34px);
    line-height: 1.2;
}

.mosaic-logo img {
    width: 52%;
    height: auto;
    object-fit: contain;
}

/* Annotated aerial map (Residential / Commercial) */
.legacy-map {
    padding: 110px 0;
    background: var(--deep);
    color: var(--paper);
}

.legacy-map-heading {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: end;
    gap: 80px;
    margin-bottom: 50px;
}

.legacy-map-heading .eyebrow {
    margin-bottom: 24px;
    color: var(--accent);
}

.legacy-map-heading > p {
    color: var(--on-dark);
    font-size: 18px;
    line-height: 1.8;
}

.legacy-map-figure {
    margin: 0;
}

.legacy-map-zoom {
    display: block;
    overflow: hidden;
    cursor: zoom-in;
}

.legacy-map-zoom img {
    width: 100%;
    transition: transform 0.8s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.legacy-map-zoom:hover img {
    transform: scale(1.015);
}

.legacy-map-figure figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 30px;
    margin-top: 20px;
    color: var(--on-dark);
    font-size: 14px;
}

/* Project photo placeholder (shown until an image file is added) */
.project-image.is-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(120% 120% at 20% 0%, rgba(212, 228, 154, 0.12), transparent 60%),
        var(--ink);
}

.project-image .placeholder-mark {
    width: 24%;
    height: auto;
    opacity: 0.85;
}

.project-card:hover .placeholder-mark {
    transform: none;
}

/* Filter counts and empty message */
.filter-count {
    font-variant-numeric: tabular-nums;
}

.filter-empty {
    max-width: none;
    padding: 40px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    color: var(--muted);
    font-size: 18px;
}

.filter-empty a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.filter-empty[hidden],
.history-list[hidden],
.history-table tr[hidden] {
    display: none;
}

/* "More completed projects" table */
.history-list {
    margin-top: 90px;
}

.history-list-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px 40px;
    margin-bottom: 26px;
}

.history-list-heading h3 {
    font-size: clamp(28px, 2.6vw, 38px);
}

.history-list-heading p {
    color: var(--muted);
    font-size: 16px;
}

.history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 16px;
}

.history-table thead th {
    padding: 0 16px 14px 0;
    border-bottom: 1px solid var(--ink);
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
}

.history-table tbody th,
.history-table td {
    padding: 18px 16px 18px 0;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.history-table tbody th {
    font-size: 18px;
    font-weight: 500;
}

.history-table td {
    color: var(--muted);
}

.history-table td:nth-child(2) {
    font-variant-numeric: tabular-nums;
}


/* 10. Contact band & footer
   ========================================================================== */

.contact-band {
    padding: 70px 0;
    background: var(--pale);
}

.contact-band .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 35px;
}

.contact-band h2 {
    font-size: clamp(36px, 4.4vw, 64px);
}

.contact-band .eyebrow {
    margin-bottom: 18px;
}

.footer {
    padding: 70px 0 0;
    background: var(--deep);
    color: var(--paper);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.25fr 1fr 0.65fr;
    gap: 65px;
}

.footer .eyebrow {
    margin-bottom: 22px;
    color: var(--accent);
    font-size: 16px;
}

.footer-top p,
.footer-top address {
    color: var(--on-dark-footer);
    font-size: 16px;
    font-style: normal;
    line-height: 1.9;
}

.footer-top a:hover {
    color: var(--accent);
}

.footer-links {
    display: grid;
    gap: 10px;
    font-size: 16px;
}

.footer-brand {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin: 64px 0 38px;
    padding-bottom: 35px;
    border-bottom: 1px solid #365148;
}

.footer-brand .logo {
    width: 145px;
}

.footer-brand .logo img {
    height: auto;
}

.footer-brand p {
    font-family: var(--serif);
    font-size: clamp(42px, 5vw, 76px);
    font-style: italic;
    line-height: 1.25;
    letter-spacing: -0.025em;
    text-align: right;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding-bottom: 25px;
    color: var(--on-dark-subtle);
    font-size: 16px;
}

.footer-bottom a {
    border-bottom: 1px solid currentColor;
}


/* 11. Inner pages
   ========================================================================== */

.page-intro {
    padding: 190px 0 65px;
}

.page-intro h1 {
    max-width: 1000px;
    margin: 22px 0 25px;
    font-size: clamp(62px, 7vw, 108px);
}

.page-intro .intro-bottom {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.page-intro p:not(.eyebrow) {
    max-width: 520px;
    color: var(--muted);
    font-size: 18px;
}

.about-lead {
    max-width: 790px;
}

/* Full-width photo under the page intro */
.full-image {
    position: relative;
    overflow: hidden;
    height: clamp(350px, 50vw, 730px);
}

.full-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

/* Project filters (Our projects page) */
/* Two classes so this wins over .section padding at every screen size */
.section.portfolio-page {
    padding-top: 0;
}

.portfolio-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 45px;
    padding: 20px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.filter {
    padding: 11px 18px;
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 14px;
    transition: background 0.2s, color 0.2s;
}

.filter[aria-pressed='true'] {
    background: var(--ink);
    color: var(--white);
}

.filter:hover:not([aria-pressed='true']) {
    background: var(--pale);
    color: var(--ink);
}

.result-count {
    color: var(--muted);
    font-size: 14px;
    white-space: nowrap;
}

.portfolio-page .project-grid {
    row-gap: 62px;
}

.portfolio-note {
    max-width: 90ch;
    margin-top: 48px;
    color: var(--muted);
    font-size: 14px;
}

/* About page: team */
.team-section {
    background: var(--pale);
}

.team-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.team-grid h2 {
    margin-top: 24px;
}

.team-copy p {
    margin-bottom: 26px;
    font-size: 18px;
    line-height: 1.8;
}

.team-disciplines {
    margin-top: 35px;
    border-top: 1px solid var(--line);
}

.discipline {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
}

.discipline span:last-child {
    padding-top: 3px;
    color: var(--muted);
    font-size: 14px;
}

/* About page: timeline */
.history-title {
    margin: 20px 0 65px;
}

.history-row {
    display: grid;
    grid-template-columns: 0.45fr 1fr 1.2fr;
    gap: 55px;
    padding: 32px 0;
    border-top: 1px solid var(--line);
}

.history-row strong {
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 400;
    line-height: 1.1;
}

.history-row h3 {
    padding-top: 8px;
    font-size: 24px;
}

.history-row p {
    padding-top: 5px;
    color: var(--muted);
    font-size: 16px;
}


/* 12. Project detail pages
   ========================================================================== */

.detail-hero {
    height: 76svh;
    min-height: 660px;
    max-height: 1050px;
}

.detail-hero h1 {
    max-width: 1000px;
    font-size: clamp(60px, 7.5vw, 118px);
}

.detail-hero .hero-copy {
    margin-top: auto;
    margin-bottom: 0;
    padding-bottom: 24px;
}

.detail-hero .hero-copy .eyebrow {
    color: var(--accent);
}

.detail-hero .hero-bottom {
    padding-bottom: 0;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
}

.back-link .arrow {
    transform: rotate(-135deg);
}

.project-overview {
    display: grid;
    grid-template-columns: 1.1fr 0.8fr;
    gap: 100px;
}

.project-overview h2 {
    margin: 22px 0 28px;
    font-size: clamp(42px, 4vw, 65px);
}

.project-overview p {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.project-overview .button {
    margin-top: 30px;
}

.project-facts {
    margin: 0;
}

.project-facts div {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 20px;
    padding: 23px 0;
    border-top: 1px solid var(--line);
    font-size: 14px;
}

.project-facts div:last-child {
    border-bottom: 1px solid var(--line);
}

.project-facts dt {
    color: var(--muted);
}

.project-facts dd {
    margin: 0;
    text-align: right;
}

.detail-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 75px;
}

.detail-gallery figure {
    margin: 0;
}

.detail-gallery img {
    width: 100%;
    height: 440px;
    object-fit: cover;
}

.detail-gallery figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 14px;
}

/* "Explore another project" link */
.detail-next {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 45px 0;
    border-top: 1px solid var(--line);
}

.detail-next p {
    margin-bottom: 15px;
    font-size: 14px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.detail-next h2 {
    font-size: clamp(34px, 4vw, 60px);
}

.detail-next .circle {
    width: 66px;
    height: 66px;
}


/* 13. Contact page
   ========================================================================== */

.section.contact-section {
    padding-top: 0;
}

.contact-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 90px;
    padding-top: 35px;
}

.contact-main .contact-email {
    display: inline-block;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--ink);
    font-size: clamp(22px, 2.5vw, 38px);
    letter-spacing: -0.035em;
    word-break: break-word;
}

.contact-main h2 {
    margin: 0 0 22px;
    font-size: 34px;
}

.contact-main p {
    margin: 28px 0 34px;
    color: var(--muted);
}

.contact-main .eyebrow-plain {
    margin: 0 0 18px;
}

.contact-main .contact-note {
    margin-top: 15px;
    font-size: 14px;
}

.contact-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-top: 65px;
    padding-top: 35px;
    border-top: 1px solid var(--line);
}

.contact-details .eyebrow {
    margin-bottom: 18px;
}

.contact-details address {
    font-size: 16px;
    font-style: normal;
    line-height: 1.8;
}

.contact-details .text-link {
    margin-top: 22px;
}

.contact-visual {
    position: relative;
    min-height: 600px;
}

.contact-visual img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-visual::after {
    content: '';
    position: absolute;
    inset: 50% 0 0;
    background: linear-gradient(transparent, rgba(10, 30, 22, 0.7));
}

.contact-visual .photo-caption {
    bottom: 30px;
    font-size: 15px;
}

.contact-types {
    padding: 60px 0 0;
}

.contact-types a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 25px 0;
    border-top: 1px solid var(--line);
}

.contact-types a:last-child {
    border-bottom: 1px solid var(--line);
}

.contact-types h3 {
    font-size: 22px;
}

.contact-types span.muted {
    display: block;
    margin-top: 6px;
    font-size: 14px;
}


/* 14. Contact form
   ========================================================================== */

.form-section {
    background: var(--pale);
}

.form-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.form-intro h2 {
    margin: 24px 0 28px;
    font-size: clamp(40px, 4.4vw, 64px);
}

.form-intro .form-lead {
    color: var(--muted);
    font-size: 18px;
    line-height: 1.8;
}

.form-intro .form-privacy {
    color: var(--muted);
    max-width: 44ch;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    line-height: 1.7;
}

.form-required-note {
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 14px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 24px;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
}

.field .optional {
    color: var(--muted);
    font-weight: 400;
}

/* Text inputs: 16px stops phones zooming in; border is 6.4:1 on white */
.field input,
.field select,
.field textarea {
    width: 100%;
    min-height: 54px;
    padding: 14px 16px;
    border: 1px solid var(--muted);
    border-radius: 0;
    background: var(--white);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.field textarea {
    min-height: 170px;
    resize: vertical;
}

.field select {
    padding-right: 48px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23163d35' stroke-width='1.6'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-position: right 16px center;
    background-repeat: no-repeat;
    background-size: 20px;
    cursor: pointer;
}

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

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
    border-color: var(--ink);
    outline: 3px solid var(--ink);
    outline-offset: 2px;
}

.field [aria-invalid='true'] {
    border-color: var(--error);
    box-shadow: inset 0 0 0 1px var(--error);
}

.field-error {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: var(--error);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
}

.field-error::before {
    content: '!';
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--error);
    color: var(--white);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
}

.field-error[hidden] {
    display: none;
}

/* Status message above the form (sent / problem) */
.form-alert {
    margin-bottom: 28px;
    padding: 18px 20px;
    border-left: 4px solid var(--ink);
    background: var(--white);
    color: var(--ink);
    font-size: 16px;
    line-height: 1.6;
}

.form-alert.is-success {
    border-color: var(--ink);
}

.form-alert.is-error {
    border-color: var(--error);
    color: var(--error);
}

.form-alert[hidden] {
    display: none;
}

.form-alert:focus {
    outline: none;
}

.form-submit {
    min-width: 220px;
    margin-top: 32px;
}

.form-submit[aria-busy='true'] {
    cursor: progress;
    opacity: 0.85;
}

.cf-turnstile {
    margin-top: 26px;
}

/* Spam trap field: moved off-screen (not display:none, which some bots detect) */
.form-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* 15. Notes & 404 pages
   ========================================================================== */

.legal {
    max-width: 800px;
    margin: auto;
    padding: 170px 25px 100px;
}

.legal h1 {
    margin-bottom: 40px;
    font-size: 60px;
}

.legal h2 {
    margin: 32px 0 16px;
    font-size: 28px;
}

.legal p {
    max-width: none;
    margin-bottom: 20px;
    color: var(--muted);
}

.legal .eyebrow {
    margin-bottom: 22px;
}

.legal .legal-updated {
    margin-bottom: 36px;
    font-size: 14px;
}

.legal em.legal-term {
    font-family: inherit;
    letter-spacing: normal;
}

.legal-address {
    color: var(--muted);
    font-style: normal;
    line-height: 1.8;
}

/* Links inside text are underlined so they don't rely on colour alone */
.legal p a,
.legal-address a,
.form-privacy a {
    color: var(--ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.not-found-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px 36px;
    margin-top: 36px;
}


/* 16. Scroll reveal animation (switched on by main.js)
   ========================================================================== */

.reveal {
    opacity: 1;
}

.js-motion .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.js-motion .reveal.is-visible {
    opacity: 1;
    transform: none;
}

@keyframes hero-image {
    from {
        transform: scale(1.04);
    }
    to {
        transform: scale(1);
    }
}


/* 17. Responsive
   ========================================================================== */

/* Large screens */
@media (min-width: 1700px) {
    .hero {
        max-height: 1100px;
    }

    .hero-copy {
        padding-top: 80px;
    }

    .hero .wrap {
        padding-bottom: 40px;
    }

    .header-inner {
        max-width: 1440px;
    }

    .home-projects {
        gap: 70px;
    }
}

/* Small laptops and tablets landscape */
@media (max-width: 1100px) {
    .nav {
        gap: 23px;
    }

    .hero {
        min-height: 720px;
    }

    .intro-grid {
        grid-template-columns: 0.65fr 1.4fr;
        gap: 40px;
    }

    .story-copy {
        padding: 80px 45px;
    }

    .story-photo {
        min-height: 600px;
    }

    .project-overview,
    .team-grid {
        gap: 55px;
    }

    .contact-layout,
    .form-layout {
        gap: 50px;
    }

    .legacy-mosaic-heading,
    .legacy-map-heading {
        gap: 40px;
    }

    .mosaic {
        grid-template-columns: repeat(4, 1fr);
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-top {
        gap: 40px;
    }
}

@media (max-width: 1050px) {
    .nav {
        gap: 14px;
    }

    .nav-contact {
        gap: 8px;
        padding: 10px 12px;
    }
}

/* Tablets: navigation becomes a full-screen menu */
@media (max-width: 900px) {
    .menu-toggle {
        display: block;
        position: relative;
        z-index: 55;
    }

    .nav {
        position: fixed;
        inset: 0;
        display: none;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 22px;
        overflow-y: auto;
        padding: 110px 30px 35px;
        background: var(--paper);
        color: var(--ink);
    }

    .nav.is-open {
        display: flex;
    }

    .nav a {
        font-size: 26px;
        white-space: normal;
    }

    .nav-contact {
        margin-top: 4px;
        padding: 12px 18px;
    }

    .menu-open .header {
        background: var(--paper);
        color: var(--ink);
    }

    .menu-open .header .logo {
        position: relative;
        z-index: 55;
    }

    .form-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Phones */
@media (max-width: 760px) {
    :root {
        --gutter: 24px;
    }

    .section {
        padding-block: 76px;
    }

    /* Header & menu */
    .header {
        height: 86px;
    }

    .header .logo {
        width: 78px;
    }

    .header .logo img {
        height: 61px;
    }

    .header.is-scrolled {
        height: 72px;
    }

    .header.is-scrolled .logo img {
        height: 50px;
    }

    .nav {
        gap: 18px;
    }

    .nav a {
        font-size: 24px;
    }

    .nav .nav-contact {
        font-size: 19px;
    }

    /* Hero */
    .hero {
        height: calc(100svh - 20px);
        min-height: 710px;
        max-height: 1000px;
    }

    .hero::before {
        background:
            linear-gradient(90deg, rgba(6, 25, 20, 0.87), rgba(6, 25, 20, 0.65)),
            linear-gradient(0deg, rgba(5, 22, 19, 0.9), transparent 55%);
    }

    .hero .wrap {
        padding-top: 125px;
        padding-bottom: 25px;
    }

    .hero-photo {
        object-position: 61% bottom;
    }

    .hero h1 {
        margin-top: 25px;
        font-size: clamp(58px, 11.4vw, 85px);
        line-height: 1.08;
    }

    .hero-copy {
        padding: 35px 0 45px;
    }

    .hero-description {
        max-width: 315px;
        font-size: 16px;
    }

    .hero-bottom {
        padding-top: 20px;
    }

    .hero-scroll,
    .hero-index {
        display: none;
    }

    .hero-project {
        justify-content: space-between;
        width: 100%;
    }

    .hero-project .circle {
        width: 40px;
        height: 40px;
    }

    /* Homepage */
    .intro-grid,
    .team-grid,
    .project-overview {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .intro-main p {
        margin-top: 24px;
        font-size: 16px;
        line-height: 1.8;
    }

    .stats {
        gap: 20px;
        margin-top: 54px;
        padding-top: 26px;
    }

    .stat {
        padding: 0;
        border: none;
    }

    .stat strong {
        font-size: clamp(36px, 8vw, 52px);
    }

    .stat:last-child strong {
        font-size: clamp(26px, 6.3vw, 48px);
    }

    .stat p {
        max-width: 13ch;
        font-size: 14px;
        line-height: 1.6;
    }

    .section-heading {
        display: block;
        margin-bottom: 32px;
    }

    .section-heading .text-link {
        margin-top: 26px;
    }

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

    .legacy-mosaic {
        padding-top: 76px;
    }

    .legacy-map {
        padding: 76px 0;
    }

    .legacy-mosaic-heading,
    .legacy-map-heading {
        grid-template-columns: 1fr;
        gap: 24px;
        margin-bottom: 40px;
    }

    .legacy-mosaic-heading p:not(.eyebrow),
    .legacy-map-heading > p {
        font-size: 16px;
    }

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

    .mosaic-tile.wide-only {
        display: none;
    }

    .mosaic-text {
        padding: 16px;
    }

    .mosaic-text strong {
        font-size: 40px;
    }

    .mosaic-text span {
        font-size: 14px;
    }

    .mosaic-text em {
        font-size: 24px;
    }

    .history-list {
        margin-top: 60px;
    }

    /* History table becomes stacked cards on phones */
    .history-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .history-table tr {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 4px 16px;
        padding: 16px 0;
        border-bottom: 1px solid var(--line);
    }

    .history-table tbody th,
    .history-table td {
        padding: 0;
        border: 0;
    }

    .history-table tbody th {
        grid-column: 1;
    }

    .history-table td:nth-child(2) {
        grid-column: 2;
        grid-row: 1;
    }

    .history-table td:nth-child(3),
    .history-table td:nth-child(4) {
        grid-column: 1 / -1;
        font-size: 14px;
    }

    .sector-copy {
        padding: 25px;
    }

    .project-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .home-projects .project-card:nth-child(2) {
        margin-top: 0;
    }

    .home-projects .project-card:first-child .project-image,
    .home-projects .project-card:nth-child(2) .project-image {
        aspect-ratio: 1.18;
    }

    .project-info {
        padding-top: 18px;
    }

    .project-info h3 {
        font-size: 25px;
    }

    .project-info > span {
        display: none;
    }

    .project-image .tag {
        top: 16px;
        left: 16px;
    }

    .portfolio-bottom {
        margin-top: 40px;
    }

    .story-block {
        grid-template-columns: 1fr;
    }

    .story-photo {
        min-height: 430px;
    }

    .story-copy {
        padding: 65px 24px 75px;
    }

    .story-copy h2 {
        font-size: 48px;
    }

    .story-copy p {
        font-size: 16px;
    }

    .principles-intro {
        grid-template-columns: 1fr;
        gap: 26px;
        margin-bottom: 40px;
    }

    .principles-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .principle {
        display: grid;
        grid-template-columns: 34px 1fr;
        row-gap: 14px;
        column-gap: 17px;
        padding-top: 25px;
    }

    .principle > span {
        grid-row: 1 / 3;
    }

    .principle h3 {
        margin: 0;
        font-size: 26px;
    }

    .principle p {
        grid-column: 2;
    }

    /* Contact band & footer */
    .contact-band {
        padding: 55px 0;
    }

    .contact-band .wrap {
        flex-direction: column;
        align-items: flex-start;
        gap: 28px;
    }

    .contact-band h2 {
        font-size: 43px;
    }

    .footer {
        padding-top: 50px;
    }

    .footer-top {
        grid-template-columns: 1fr 1fr;
        gap: 36px 24px;
    }

    .footer-top > div:first-child {
        grid-column: 1 / -1;
    }

    .footer-brand {
        align-items: center;
        gap: 30px;
        margin: 50px 0 26px;
    }

    .footer-brand .logo {
        width: 105px;
    }

    .footer-brand p {
        font-size: 30px;
    }

    .footer-bottom {
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Inner pages */
    .page-intro {
        padding: 140px 0 40px;
    }

    .page-intro h1 {
        margin: 24px 0;
        font-size: clamp(50px, 10.5vw, 77px);
    }

    .page-intro p:not(.eyebrow) {
        font-size: 16px;
    }

    .page-intro .intro-bottom {
        display: block;
    }

    .portfolio-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        margin-bottom: 30px;
        padding: 18px 0;
    }

    .filter-list {
        gap: 3px;
    }

    .filter {
        padding: 10px 13px;
        font-size: 14px;
    }

    .portfolio-page .project-grid {
        row-gap: 35px;
    }

    .full-image {
        height: 380px;
    }

    .team-grid {
        gap: 40px;
    }

    .team-copy p,
    .discipline {
        font-size: 16px;
    }

    .history-title {
        margin-bottom: 36px;
    }

    .history-row {
        grid-template-columns: 90px 1fr;
        gap: 16px 20px;
        padding: 26px 0;
    }

    .history-row strong {
        font-size: 35px;
    }

    .history-row h3 {
        font-size: 23px;
    }

    .history-row p {
        grid-column: 2;
        padding: 0;
        font-size: 14px;
    }

    /* Project detail */
    .detail-hero {
        height: 80svh;
        min-height: 600px;
    }

    .detail-hero h1 {
        font-size: clamp(50px, 10.2vw, 79px);
    }

    .detail-hero .hero-copy {
        padding-bottom: 35px;
    }

    .detail-hero .hero-bottom {
        font-size: 14px;
    }

    .detail-hero .hero-bottom > span {
        max-width: 130px;
        text-align: right;
    }

    .project-overview {
        gap: 45px;
    }

    .project-overview h2 {
        font-size: 44px;
    }

    .project-overview p {
        font-size: 16px;
    }

    .project-facts div {
        padding: 19px 0;
    }

    .detail-gallery {
        grid-template-columns: 1fr;
        gap: 25px;
        margin-top: 45px;
    }

    .detail-gallery img {
        height: 340px;
    }

    .detail-next {
        padding: 35px 0;
    }

    .detail-next .circle {
        width: 48px;
        height: 48px;
    }

    /* Contact */
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 55px;
        padding-top: 10px;
    }

    .contact-main .contact-email {
        font-size: clamp(22px, 5.8vw, 35px);
    }

    .contact-details {
        grid-template-columns: 1fr 1fr;
        gap: 25px;
        margin-top: 45px;
    }

    .contact-details address {
        font-size: 14px;
    }

    .contact-visual {
        min-height: 440px;
    }

    .contact-types {
        padding-top: 40px;
    }

    .contact-types h3 {
        font-size: 20px;
    }

    .form-intro .form-lead {
        font-size: 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .form-submit {
        width: 100%;
    }

    /* Notes & 404 */
    .legal {
        padding-top: 140px;
    }

    .legal h1 {
        font-size: 45px;
    }
}

/* Small phones */
@media (max-width: 380px) {
    .hero {
        min-height: 720px;
    }

    .hero h1 {
        font-size: 54px;
    }

    .stat strong {
        font-size: 35px;
    }

    .contact-details {
        grid-template-columns: 1fr;
    }

    .filter {
        padding: 9px 10px;
    }

    .nav {
        gap: 15px;
        padding-top: 100px;
    }

    .nav a {
        font-size: 22px;
    }
}


/* 18. Reduced motion
   ========================================================================== */

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

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }

    .js-motion .reveal {
        opacity: 1;
        transform: none;
    }
}
