:root {
    --navy: #2c4660;
    --navy-dark: #1c2f42;
    --navy-deep: #15232f;
    --ink: #1d2329;
    --muted: #5b6670;
    --line: #dde3e8;
    --radius: 4px;
    --paper: #f6f4f1;
}

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

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.7rem); font-weight: 800; color: var(--navy-dark); }
h3 { font-size: 1.25rem; font-weight: 700; color: var(--navy-dark); letter-spacing: -.01em; }

.eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: .78rem;
    margin: 0 0 1em;
}

.btn {
    display: inline-block;
    background: var(--navy);
    color: #fff;
    border: 2px solid var(--navy);
    padding: .85em 1.5em;
    border-radius: var(--radius);
    font-weight: 700;
    text-decoration: none;
    font-size: 1rem;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn-small { padding: .55em 1.1em; font-size: .95rem; }
.btn-light { background: #fff; color: var(--navy-dark); border-color: #fff; }
.btn-light:hover { background: #e4e9ee; border-color: #e4e9ee; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: transparent; border-color: #fff; }

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 6px; padding-bottom: 6px; }
.logo img { width: 190px; }
nav { display: flex; align-items: center; gap: 26px; }
nav a:not(.btn) { text-decoration: none; color: var(--ink); font-weight: 600; font-size: .95rem; }
nav a:not(.btn):hover { color: var(--navy); }

/* Hero: navy panel with the logo's stepped tiles, photo alongside */
.hero { display: grid; grid-template-columns: 1.05fr 1fr; min-height: 560px; background: var(--navy-dark); }
.hero-text { position: relative; overflow: hidden; color: #fff; display: flex; align-items: center; padding: 72px 48px 72px max(24px, calc((100vw - 1160px) / 2 + 24px)); }
.hero-text-inner { position: relative; z-index: 1; max-width: 540px; }
.hero .eyebrow { color: #9fb0bf; }
.hero .lead { font-size: 1.12rem; color: #c9d4de; margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.steps { position: absolute; right: 0; bottom: 0; display: flex; align-items: flex-end; gap: 4px; opacity: .14; }
.steps i { display: block; width: 46px; background: repeating-linear-gradient(180deg, #fff 0 22px, transparent 22px 26px); }
.steps i:nth-child(1) { height: 26px; }
.steps i:nth-child(2) { height: 52px; }
.steps i:nth-child(3) { height: 78px; }
.steps i:nth-child(4) { height: 104px; }
.steps i:nth-child(5) { height: 130px; }

/* Sections */
.section { padding: 96px 0; }

.services { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.services-head p:not(.eyebrow) { color: var(--muted); margin: 0; }
.service-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.service-list li { padding: 26px 0; border-top: 1px solid var(--line); }
.service-list p { margin: 0; color: var(--muted); }

/* Work: dark band, even square grid with captions */
.section-dark { background: var(--navy-deep); }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: #9fb0bf; }
.work-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 36px; }
.work-head h2 { margin: 0; }
.more-link { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .5); padding-bottom: 2px; white-space: nowrap; }
.more-link:hover { border-bottom-color: #fff; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.gallery figure { margin: 0; border-radius: var(--radius); position: relative; aspect-ratio: 1; overflow: hidden; background: var(--navy-dark); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 28px 14px 12px;
    color: #fff;
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    background: linear-gradient(transparent, rgba(21, 35, 47, .85));
}

/* Contact */
#contact { background: var(--paper); }
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact > div > p { color: var(--muted); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; }
.contact-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid #d8d3cc; }
.contact-list span { width: 96px; flex-shrink: 0; color: var(--muted); font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.contact-list a { font-weight: 600; text-decoration: none; }

.form { display: grid; gap: 18px; background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: 0 10px 30px rgba(21, 35, 47, .08); }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.form input, .form textarea {
    font: inherit;
    font-weight: 400;
    padding: .75em .85em;
    border: 1px solid #c8cfd6;
    border-radius: var(--radius);
    width: 100%;
    background: #fff;
}
.form input:focus, .form textarea:focus { outline: 2px solid var(--navy); outline-offset: 1px; border-color: var(--navy); }
.form .btn { justify-self: start; }
.error { color: #b3261e; font-weight: 500; font-size: .88rem; }
.hp { position: absolute; left: -9999px; }
.form-done { background: #fff; border-radius: var(--radius); padding: 32px; box-shadow: 0 10px 30px rgba(21, 35, 47, .08); }

/* Footer */
.site-footer { background: var(--navy-deep); color: #9fb0bf; font-size: .88rem; }
.site-footer a { color: #fff; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; padding-bottom: 22px; }
.footer-inner p { margin: 0; }

@media (max-width: 960px) {
    .hero { grid-template-columns: 1fr; min-height: 0; }
    .hero-text { padding: 56px 24px; }
    .hero-photo { aspect-ratio: 4 / 3; }
    .services, .contact { grid-template-columns: 1fr; gap: 36px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .section { padding: 64px 0; }
    .service-list { grid-template-columns: 1fr; }
    .work-head { flex-direction: column; align-items: flex-start; }
    .form, .form-done { padding: 22px; }
    nav a:not(.btn) { display: none; }
    .logo img { width: 150px; }
}
