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

:root {
    --name-size: clamp(3.2rem, 15vw, 16rem);
    --grey-100: #f5f5f5;
    --grey-200: #e8e8e8;
    --grey-400: #999;
    --grey-600: #555;
    --grey-900: #1a1a1a;
}

html {
    font-size: 16px;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #fff;
    color: var(--grey-900);
    overflow-x: hidden;
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
    position: relative;
}

.hero-bg, .hero-bg-short {
    position: relative;
    width: 100%;
    background-repeat: no-repeat;
    overflow: hidden;
    background-color: var(--grey-400);
}
.hero-overlay, .hero-overlay-short {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg, .hero-overlay
{
    height: 100svh;
}
.hero-bg-short, .hero-overlay-short
{
    height: 20svh;
    min-height: 250px;
}

.hero-bg-img, .hero-bg-img-short {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1);
}

.hero-bg-img-short {
    filter: grayscale(1) brightness(0.68) blur(12px);
}

/* Navigation */
.nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.6rem 3rem;
    z-index: 10;
}

.nav-logo {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.55);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: rgba(255,255,255,0.65);
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color 0.2s;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.55);
}

.nav-links a:hover,
.nav-links a.nav-active {
    color: #fff;
}

.nav-cta {
    display: inline-block;
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.65);
    padding: 0.5rem 1.3rem;
    transition: background 0.25s, color 0.25s;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.55);
}

.nav-cta:hover {
    background: #fff;
    color: #000;
}

/* Role labels */
/*
.hero-roles {
    position: absolute;
    left: 0;
    right: 0;
    top: 44%;
    display: flex;
    justify-content: space-between;
    padding: 0 3rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    z-index: 2;
}
*/
/* Portrait frame */
/*
.hero-portrait-wrap {
    position: absolute;
    inset: 0;
    max-height: 768px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-bottom: 4%;
    z-index: 2;
}

.hero-portrait {
    position: relative;
    width: min(260px, 36vw);
    height: min(340px, 47vw);
}

.hero-portrait-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    filter: grayscale(1);
    display: block;
}
*/
/* Name H1 — straddles hero/white boundary */
.hero-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    transform: translateY(10%);
    z-index: 9;
    font-size: var(--name-size);
    font-weight: 400;
    line-height: 0.88;
    letter-spacing: -0.07em;
    color: #fff;
    padding: 0 max(1.5rem, 2vw);
    pointer-events: none;
    user-select: none;
    text-shadow: 0 0 10px rgba(0,0,0,0.25);
}

/* ── About ────────────────────────────────────────── */

.about
{
    position: relative;
    z-index: 10;
    background: #fff;
    padding-top: calc(var(--name-size) * 0.88 * 0.05 + 3.5rem);
    padding-bottom: 5rem;
    padding-left: max(1.5rem, 4vw);
    padding-right: max(1.5rem, 4vw);
}

.about-inner
{
    max-width: 1024px;
    margin: 0 auto;
}

.about-grid
{
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 4rem;
    align-items: start;
}

.section-label {
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--grey-400);
    font-weight: 500;
}

.about-bio {
    font-size: clamp(0.95rem, 1.4vw, 1.12rem);
    font-weight: 300;
    line-height: 1.75;
    color: var(--grey-900);
    max-width: 580px;
}
.about-bio p { margin-bottom: 1.5rem; }
.about-bio h2 { margin: 2.5rem 0 1.5rem 0; font-weight: 400; font-size: 1.4rem;}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4.5rem;
    border-top: 1px solid var(--grey-200);
    padding-top: 3rem;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stat-value {
    font-size: clamp(2.2rem, 5vw, 4rem);
    font-weight: 300;
    line-height: 1;
    color: var(--grey-900);
}

.stat-value sup {
    font-size: 0.4em;
    vertical-align: super;
    color: var(--grey-400);
}

.stat-label {
    font-size: 0.58rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--grey-400);
    font-weight: 500;
}

/* ── Cards ─────────────────────────────────────────── */
.cards {
    background: var(--grey-100);
    padding: 5rem max(1.5rem, 4vw);
}

.cards-inner {
    max-width: 960px;
    margin: 0 auto;
}

.cards-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}

.cards-view-all {
    font-size: 0.62rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--grey-600);
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid var(--grey-400);
    padding-bottom: 2px;
    transition: color 0.2s;
}

.cards-view-all:hover {
    color: var(--grey-900);
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.cards-item {
    position: relative;
    overflow: hidden;
    background: var(--grey-200);
    aspect-ratio: 3 / 4;
}

.cards-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1);
    transition: filter 0.5s, transform 0.5s;
}

.cards-item:hover img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.cards-item-info {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1rem;
    opacity: 0;
    transition: opacity 0.3s, background 0.3s;
}

.cards-item:hover .cards-item-info {
    opacity: 1;
    background: rgba(0,0,0,0.3);
}

.cards-item-label {
    color: #fff;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
}

.cards-item-year {
    color: rgba(255,255,255,0.55);
    font-size: 0.58rem;
    letter-spacing: 0.1em;
}
/* ── Sites ───────────────────────────────────────── */
.sites {
    background: var(--grey-900);
    color: #fff;
    padding: 2rem max(1.5rem, 4vw);
}
.sites-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 2.5rem;
}
.sites-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
    align-items: center;
}
.sites-item{
    position: relative;
    overflow: hidden;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 500;
    text-align: center;
    padding: 1rem 0.5rem;
    color: #fff;
    text-decoration: none;
}

/* ── Form ─────────────────────────────────────────── */

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.form-row {
    padding: 1.6rem 0;
}

.form-row--two {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

label {
    font-size: 0.58rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--grey-400);
    font-weight: 500;
}

input,
textarea,
select {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.88rem;
    font-weight: 300;
    color: var(--grey-900);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--grey-200);
    outline: none;
    padding: 0.5rem 0;
    width: 100%;
    transition: border-color 0.2s;
    -webkit-appearance: none;
    appearance: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--grey-300);
}

input:focus,
textarea:focus,
select:focus {
    border-bottom-color: var(--grey-900);
}

textarea {
    resize: none;
    line-height: 1.75;
}

/* Select wrapper */
.select-wrap {
    position: relative;
}

.select-wrap select {
    cursor: pointer;
    padding-right: 1.5rem;
}

.select-wrap select option[value=""][disabled] {
    color: var(--grey-300);
}

.select-arrow {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    color: var(--grey-400);
    pointer-events: none;
}

/* Form footer row */
.form-footer {
    padding-top: 1.6rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.form-note {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--grey-400);
    font-weight: 400;
}

.btn-submit {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.62rem;
    font-weight: 500;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #fff;
    background: var(--grey-900);
    border: 1px solid var(--grey-900);
    padding: 0.8rem 2rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    transition: background 0.25s, color 0.25s;
}

.btn-submit:hover {
    background: transparent;
    color: var(--grey-900);
}

.btn-arrow {
    font-size: 0.9rem;
    line-height: 1;
    transition: transform 0.2s;
}

.btn-submit:hover .btn-arrow {
    transform: translateX(4px);
}


/* ── Footer ───────────────────────────────────────── */

.footer {
    background: #fff;
    border-top: 1px solid var(--grey-200);
    padding: 2.5rem max(1.5rem, 4vw);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1.5rem;
    max-width: 100%;
}

.footer-copy {
    font-size: 0.6rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--grey-400);
    font-weight: 500;
}

.footer-links {
    display: flex;
    gap: 1.75rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.6rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--grey-400);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--grey-900);
}

/* ── Responsive ───────────────────────────────────── */

@media (max-width: 768px) {

    .nav { padding: 1.4rem 1.5rem; }
    .hero-roles { display: none; }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

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

    .stats {
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .work-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    .sites-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ── Horizontal cards ─────────────────────────────── */
.hcards {
    display: flex;
    flex-direction: column;   /* one column */
    gap: 0.75rem;
    margin: 0 auto;
}

.hcard {
    display: flex;
    gap: 1.5rem;
    background: var(--grey-100);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    align-items: stretch;
}

.hcard-media {
    position: relative;
    flex: 0 0 auto;           /* never shrink the image column */
    aspect-ratio: 3 / 4;
    height: 300px;            /* → derives width 225px */
    overflow: hidden;
    background: var(--grey-200);
}

.hcard-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(1);
    transition: filter 0.5s, transform 0.5s;
}

.hcard:hover .hcard-media img {
    filter: grayscale(0);
    transform: scale(1.05);
}

.hcard-body {
    flex: 1 1 auto;
    min-width: 0;            /* lets long text wrap instead of overflowing */
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.5rem 1.5rem 1.5rem 0;
}

.hcard-label {
    font-size: 0.58rem !important;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--grey-400);
    font-weight: 500;
    margin: 0 !important;
}

.hcard-title {
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    font-weight: 400;
    line-height: 1.2;
    color: var(--grey-900);
}

.hcard-text {
    font-size: 0.8rem;
    font-weight: 300;
    line-height: 1.7;
    color: var(--grey-600);
}

@media (max-width: 480px) {
    .hcard {
        flex-direction: column;   /* stack: image top, text bottom */
        gap: 0; }
    .hcard-media {
        flex: 0 0 auto;
        width: 100%;              /* full-width image on top */
        height: auto;
        aspect-ratio: 16 / 9;   /* or 4 / 3 — shorter banner-style crop */
    }
    .hcard-body { padding: 1.25rem; }
}

/* ============================================================
   Pagination
   ============================================================ */
.pages {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.25rem;
    padding: 2rem 0;
    border-top: 1px solid var(--grey-200);
}

.pages-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    font-size: 0.85rem;
    color: var(--grey-600);
    text-decoration: none;
    border: 1px solid var(--grey-400);
    transition: background 0.2s ease, color 0.2s ease;
}
.pages-button:hover { background: var(--grey-400); color: var(--grey-100); text-decoration: none; }
.pages-button.active { background: var(--grey-600); color: var(--grey-100); }
.pages-button.disabled { opacity: 0.3; pointer-events: none; }
