*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --black:      #1a1a1a;
    --dark:       #242424;
    --white:      #ffffff;
    --off-white:  #f4f4f2;
    --light-grey: #e4e4e2;
    --mid-grey:   #8a8a88;
    /* industrial amber */
    --accent:     #d4a017;
    --font:       'IBM Plex Sans', sans-serif;
    --font-serif: 'IBM Plex Serif', serif;
    --radius:     16px;
    --hairline:   rgba(0,0,0,0.08);
    --shadow-sm:  0 10px 28px rgba(0,0,0,0.10);
    --shadow-md:  0 18px 48px rgba(0,0,0,0.14);
    --maxw:       1120px;
    --hero-textw: 460px;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font);
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision;
    overflow-x: hidden;
}

/* ─── NAV ────────────────────────────────── */
nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    background: var(--black);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(1.25rem, 3vw, 3rem);
    height: 68px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
}

.nav-logo img {
    height: 40px;
    width: auto;
}

.nav-brand {
    color: var(--white);
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    line-height: 1.35;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    list-style: none;
}

.nav-links a {
    color: var(--white);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.2s, color 0.2s;
    display: inline-block;
    position: relative;
    padding: 0.35rem 0;
}

.nav-links a:hover {
    opacity: 1;
    color: rgba(255,255,255,0.98);
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -6px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.18s ease;
    opacity: 0.9;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
    transform: scaleX(1);
}
.nav-links a:focus-visible {
    outline: 2px solid rgba(212,160,23,0.65);
    outline-offset: 4px;
    border-radius: 6px;
}

/* ─── HERO ───────────────────────────────── */
.hero {
    margin-top: 68px;
    background: var(--black);
    color: var(--white);
    min-height: calc(100vh - 68px);
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3.5rem, 5vw, 5.5rem) clamp(1.25rem, 4vw, 3.5rem);
    max-width: 640px;
}

.eyebrow {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.25rem;
}

.hero h1 {
    font-size: clamp(1.7rem, 3.5vw, 3rem);
    white-space: nowrap;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.hero-h1-sub {
    display: block;
    margin-top: 0.5rem;
    font-size: clamp(1.35rem, 2.2vw, 1.85rem);
    font-weight: 500;
    letter-spacing: 0.01em;
    opacity: 0.9;
}

.hero-sub {
    font-size: 1rem;
    font-weight: 300;
    opacity: 0.75;
    max-width: var(--hero-textw);
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.brand-highlight {
    font-weight: 600;
    opacity: 1;
    color: var(--white);
    text-decoration: underline;
    text-decoration-color: rgba(212,160,23,0.55);
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
}

.btn {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    font-family: var(--font);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
    border-radius: 999px;
}

/* Hero CTA matches text column width */
.hero .btn {
    width: min(100%, var(--hero-textw));
    max-width: 100%;
    text-align: center;
}

.btn-light {
    background: var(--white);
    color: var(--black);
}

.btn-light:hover {
    background: var(--accent);
    color: var(--white);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(212,160,23,0.22);
}

.btn-dark {
    background: var(--black);
    color: var(--white);
}

.btn-dark:hover {
    background: var(--accent);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

.hero-meta {
    margin-top: 3rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0.6;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-meta::before {
    content: '';
    display: block;
    width: 2rem;
    height: 1px;
    background: currentColor;
    flex-shrink: 0;
}

.no-wrap {
    white-space: nowrap;
}

/* Hero image panel */
.hero-visual {
    position: relative;
    overflow: hidden;
    /* Black surround shows when using object-fit: contain */
    background: var(--black);
    min-height: 400px;
    /* Optional "frame" to make the edges feel intentional */
    border-left: 2px solid rgba(255,255,255,0.06);
}

.hero-visual img {
    width: 100%;
    height: 100%;
    /* Show the whole image (no cropping) */
    object-fit: contain;
    /* Remove dark veil so it matches the original image */
    opacity: 1;
    display: block;
}

.img-placeholder {
    width: 100%;
    height: 100%;
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: rgba(255,255,255,0.18);
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.img-placeholder svg { opacity: 0.4; }

/* ─── SECTION SHARED ─────────────────────── */
.section-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--mid-grey);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(1.6rem, 2.8vw, 2.4rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

section {
    scroll-margin-top: 90px;
}

@media (max-width: 960px) {
    section {
        scroll-margin-top: 110px;
    }
}

.section-intro {
    margin-top: 0.9rem;
    max-width: 70ch;
    color: var(--mid-grey);
    font-size: 0.9rem;
    line-height: 1.7;
    font-family: var(--font-serif);
    font-style: italic;
    color: rgba(26,26,26,0.68);
    padding-left: 1rem;
    border-left: 2px solid rgba(212,160,23,0.55);
}

/* ─── SERVICES ───────────────────────────── */
.services {
    background: var(--off-white);
    padding: clamp(4.5rem, 7vw, 6.5rem) clamp(1.25rem, 4vw, 5rem);
}

.section-header {
    margin: 0 auto 3.5rem auto;
    max-width: var(--maxw);
}

.services-grid {
    max-width: var(--maxw);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.service-card {
    background: var(--white);
    padding: 2.5rem;
    border: 1px solid var(--hairline);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: background 0.25s, color 0.25s, transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.service-card:hover {
    background: #121212;
    color: var(--white);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(255,255,255,0.08);
}

.service-card:hover .service-num { color: var(--accent); }
.service-card:hover .service-card-list { opacity: 0.65; }

.service-num {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--mid-grey);
    margin-bottom: 1.25rem;
}

.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-intro {
    font-size: 0.82rem;
    line-height: 1.45;
    font-family: var(--font-serif);
    font-style: light;
    color: rgba(26,26,26,0.68);
    margin-bottom: 1rem;
}

.service-card:hover .service-intro {
    color: rgba(255,255,255,0.78);
}

.service-card-list {
    list-style: none;
    font-size: 0.85rem;
    line-height: 1.9;
    opacity: 0.7;
}

.service-card-list li {
    position: relative;
    padding-left: 1.25rem; /* creates hanging indent for wrapped lines */
}

.service-card-list li::before {
    content: '—';
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.35;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.nav-links a.active,
.nav-links a:hover {
    color: var(--accent);
}

.reference-hero {
    background: var(--black);
    color: var(--white);
    padding: 6rem 5rem 5rem;
}

.reference-intro,
.reference-contact {
    padding: 5rem 5rem;
}

.reference-intro .section-text,
.reference-contact .section-text {
    max-width: 680px;
    opacity: 0.75;
    margin-top: 1rem;
    line-height: 1.85;
}

.reference-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    padding: 0 5rem 5rem;
}

.reference-card {
    background: var(--white);
    border: 1px solid var(--light-grey);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
}

.reference-card img {
    width: 100%;
    height: 260px;
    object-fit: cover;
}

.reference-copy {
    padding: 2rem;
}

.reference-copy h3 {
    margin: 1rem 0 1rem;
    font-size: 1.2rem;
}

.reference-copy p {
    margin-bottom: 1rem;
    line-height: 1.8;
    opacity: 0.8;
}

.reference-meta {
    color: var(--mid-grey);
    font-size: 0.95rem;
}

.reference-contact {
    text-align: center;
    background: var(--off-white);
}

.reference-contact a {
    margin: 0.5rem;
}

/* ─── CAROUSEL ───────────────────────────── */
.carousel {
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: var(--dark);
    border-top: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.carousel-track {
    display: flex;
    gap: 0;
    height: 100%;
    will-change: transform;
}

.carousel-item {
    flex: 0 0 calc(100% / 3);
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.carousel-placeholder {
    padding: 3rem;
    width: 100%;
    text-align: center;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mid-grey);
}

/* ─── ABOUT ──────────────────────────────── */
.about {
    background: var(--black);
    color: var(--white);
    display: grid;
    grid-template-columns: minmax(0, 520px) minmax(0, 560px);
    gap: 5rem;
    padding: clamp(5rem, 8vw, 7.5rem) clamp(1.25rem, 4vw, 5rem);
    align-items: center;
    justify-content: center;
}

.about h2 {
    font-size: clamp(1.5rem, 2.5vw, 2.2rem);
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 2rem;
}

.stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem 2rem;
}

.stat-value {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.45;
    margin-top: 0.4rem;
}

.about-body p {
    font-size: 0.95rem;
    line-height: 1.85;
    opacity: 0.72;
    margin-bottom: 1.1rem;
}

/* ─── CONTACT ────────────────────────────── */
.contact {
    background: var(--off-white);
    padding: clamp(5rem, 8vw, 7.5rem) clamp(1.25rem, 4vw, 5rem);
    text-align: center;
}

.contact .section-title { margin-bottom: 1rem; }

.contact-sub {
    font-size: 1rem;
    color: var(--mid-grey);
    margin-bottom: 2.5rem;
    max-width: 58ch;
    margin-left: auto;
    margin-right: auto;
}

/* ─── FOOTER ─────────────────────────────── */
footer {
    background: var(--black);
    color: var(--white);
    padding: 1.75rem clamp(1.25rem, 4vw, 5rem);
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.06);
}

footer img { height: 28px; opacity: 0.45; }

footer p {
    font-size: 0.72rem;
    letter-spacing: 0.05em;
    opacity: 0.35;
}

/* ─── RESPONSIVE ─────────────────────────── */
@media (max-width: 960px) {
    /* Two-row mobile nav: brand on top, links below */
    nav {
        padding: 0.6rem 1.5rem 0.55rem;
        height: 110px;
        flex-direction: column;
        align-items: stretch;
        justify-content: center;
        gap: 0.5rem;
    }

    .nav-logo { gap: 0.75rem; }

    .nav-brand {
        display: block;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        line-height: 1.15;
        max-width: none;
        white-space: normal;
        overflow: visible;
    }

    .nav-links {
        width: 100%;
        justify-content: space-between;
        gap: 0;
        padding-top: 0.45rem;
        border-top: 1px solid rgba(255,255,255,0.07);
    }

    .nav-links a {
        font-size: 0.75rem;
        opacity: 0.85;
        padding: 0.35rem 0;
    }

    .nav-links a:hover {
        opacity: 1;
    }

    .hero {
        grid-template-columns: 1fr;
        min-height: auto;
        margin-top: 110px;
    }

    .hero-content {
        padding: 4rem 1.5rem;
        max-width: none;
    }

    .hero-h1-sub {
        margin-top: 0.4rem;
        font-size: clamp(1.15rem, 3.8vw, 1.5rem);
        opacity: 0.88;
    }

    .hero-visual { min-height: 280px; }

    .services {
        padding: 4rem 1.5rem;
    }

    .services-grid { grid-template-columns: 1fr; }

    .reference-hero {
        padding: 4rem 1.5rem 3rem;
    }

    .reference-intro,
    .reference-contact {
        padding: 4rem 1.5rem;
    }

    .reference-grid {
        grid-template-columns: 1fr;
        padding: 0 1.5rem 3rem;
    }

    .reference-card img {
        height: 220px;
    }

    .carousel { height: 280px; }
    .carousel-track { height: 280px; }
    .carousel-item { flex: 0 0 100%; height: 280px; }
    .carousel-item img { width: 100%; height: 100%; }


    .about {
        grid-template-columns: 1fr;
        gap: 3rem;
        padding: 4rem 1.5rem;
    }

    .contact { padding: 5rem 1.5rem; }

    footer {
        flex-direction: column;
        gap: 1rem;
        padding: 1.75rem 1.5rem;
        text-align: center;
    }
}
