:root {
    --blue: #2879bc;
    --blue-dark: #14578f;
    --navy: #10293d;
    --navy-soft: #1c3e58;
    --ink: #17232d;
    --muted: #5b6974;
    --line: #d9e2e8;
    --surface: #f2f6f8;
    --white: #fff;
    --radius: 0.75rem;
    --shadow: 0 1rem 3rem rgba(16, 41, 61, 0.12);
    --max-width: 75rem;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    color: var(--ink);
    background: var(--white);
    font-family: Inter, Aptos, "Segoe UI", Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--blue-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--blue); }
button, input, textarea, select { font: inherit; }

h1, h2, h3 {
    margin: 0 0 0.75rem;
    color: var(--navy);
    line-height: 1.12;
    letter-spacing: -0.025em;
}

h1 { max-width: 26ch; font-size: clamp(1.8rem, 2.8vw, 2.75rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.75rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: min(calc(100% - 2rem), var(--max-width)); margin-inline: auto; }
.section { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.section-tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.surface { background: var(--surface); }
.navy-section { color: #dce8ef; background: var(--navy); }
.navy-section h2, .navy-section h3 { color: var(--white); }

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    color: var(--blue-dark);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.navy-section .eyebrow { color: #7fc0ef; }
.lede { max-width: 44rem; color: var(--muted); font-size: clamp(1.1rem, 2vw, 1.35rem); }
.navy-section .lede { color: #c3d4de; }
.section-heading { max-width: 48rem; margin-bottom: 2.5rem; }

.skip-link { position: fixed; z-index: 1000; top: 0; left: 1rem; padding: 0.75rem 1rem; color: var(--white); background: var(--navy); transform: translateY(-110%); }
.skip-link:focus { transform: translateY(0); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.site-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(16, 41, 61, 0.09); background: rgba(255, 255, 255, 0.96); backdrop-filter: blur(0.75rem); }
.header-inner { min-height: 5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: inline-flex; align-items: center; color: var(--navy); font-weight: 750; text-decoration: none; }
.brand:hover { color: var(--navy); }
.brand img { width: auto; height: 3.25rem; }

.primary-nav { display: flex; align-items: center; gap: 1.1rem; }
.primary-nav > a, .nav-group > button { padding: 0.55rem 0; border: 0; color: var(--navy); background: none; font-size: 0.9rem; font-weight: 650; text-decoration: none; cursor: pointer; }
.primary-nav [aria-current="page"] { color: var(--blue-dark); }
.nav-group { position: relative; }
.nav-group > button::after { content: ""; display: inline-block; width: 0.42rem; height: 0.42rem; margin: 0 0 0.2rem 0.45rem; border-right: 2px solid; border-bottom: 2px solid; transform: rotate(45deg); }
.nav-menu { min-width: 16rem; position: absolute; top: calc(100% + 0.55rem); left: -1rem; display: none; padding: 0.6rem; border: 1px solid var(--line); border-radius: 0.65rem; background: var(--white); box-shadow: var(--shadow); }
.nav-menu a { display: block; padding: 0.65rem 0.75rem; border-radius: 0.4rem; color: var(--navy); text-decoration: none; }
.nav-menu a:hover { color: var(--blue-dark); background: var(--surface); }
.nav-group > button[aria-expanded="true"] + .nav-menu { display: block; }

.nav-toggle { width: 2.75rem; height: 2.75rem; display: none; padding: 0.6rem; border: 1px solid var(--line); border-radius: 0.5rem; background: var(--white); }
.nav-toggle span:not(.sr-only) { display: block; height: 2px; margin: 0.25rem 0; background: var(--navy); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: 0.75rem 1.15rem; border: 1px solid var(--blue); border-radius: 0.45rem; color: var(--white); background: var(--blue); font-weight: 750; text-decoration: none; }
.button:hover { color: var(--white); background: var(--blue-dark); border-color: var(--blue-dark); }
.button-secondary { color: var(--navy); background: transparent; border-color: var(--navy); }
.button-secondary:hover { color: var(--white); background: var(--navy); }
.button-small { min-height: 2.65rem; padding: 0.55rem 0.85rem !important; color: var(--white) !important; }
.primary-nav > a.button-small { color: var(--white); background: var(--blue); border-color: var(--blue); }
.primary-nav > a.button-small:hover { color: var(--white); background: var(--blue-dark); border-color: var(--blue-dark); }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.hero { position: relative; overflow: hidden; padding: clamp(5rem, 10vw, 9rem) 0; background: linear-gradient(130deg, #f7fafb 0%, #edf5fa 58%, #fff 58%); }
.hero::before, .hero::after { content: ""; position: absolute; pointer-events: none; border: 1px solid rgba(40, 121, 188, 0.22); transform: rotate(-13deg); }
.hero::before { width: 42rem; height: 18rem; top: 5rem; right: -12rem; }
.hero::after { width: 25rem; height: 12rem; right: 8rem; bottom: -6rem; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(18rem, 0.7fr); align-items: center; gap: clamp(3rem, 8vw, 7rem); }
.hero-copy .lede { margin-top: 1.5rem; }
.hero-media { position: relative; margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--navy); box-shadow: var(--shadow); }
.hero-media img { width: 100%; min-height: 27rem; object-fit: cover; }
.hero-media-portrait img { object-position: center 65%; }
.hero-media figcaption { position: absolute; right: 0; bottom: 0; left: 0; margin: 0; padding: 1rem 1.25rem; color: var(--white); background: linear-gradient(transparent, rgba(9, 28, 42, 0.9)); font-size: 0.88rem; font-weight: 650; }
.hero-diagram { min-height: 27rem; position: relative; display: grid; place-items: center; }
.diagram-core { width: 11rem; aspect-ratio: 1; display: grid; place-items: center; padding: 1.5rem; border-radius: 50%; color: var(--white); background: var(--blue); box-shadow: 0 0 0 1.1rem rgba(40, 121, 188, 0.1), 0 0 0 2.2rem rgba(40, 121, 188, 0.05); text-align: center; font-weight: 750; }
.diagram-label { position: absolute; padding: 0.7rem 0.9rem; border: 1px solid var(--line); border-radius: 0.45rem; color: var(--navy); background: var(--white); box-shadow: 0 0.5rem 1.5rem rgba(16, 41, 61, 0.08); font-size: 0.9rem; font-weight: 700; }
.diagram-label:nth-child(2) { top: 1rem; left: 0; }
.diagram-label:nth-child(3) { top: 4rem; right: 0; }
.diagram-label:nth-child(4) { bottom: 3rem; left: 0; }
.diagram-label:nth-child(5) { right: 1rem; bottom: 0; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.card { min-height: 100%; padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.card-icon { width: 4.5rem; height: 4.5rem; margin-bottom: 1rem; object-fit: contain; object-position: left center; }
.card-icon + .card-number { margin-bottom: 1rem; }
.card-number { display: block; margin-bottom: 2rem; color: var(--blue); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.12em; }
.card p { color: var(--muted); }
.card-link { font-weight: 750; }
.project-card { overflow: hidden; padding: 0; }
.project-visual { min-height: 13rem; position: relative; display: grid; place-items: center; overflow: hidden; color: rgba(255,255,255,0.9); background: linear-gradient(145deg, var(--navy-soft), var(--blue)); font-size: clamp(1.35rem, 3vw, 2rem); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.project-visual::before, .project-visual::after { content: ""; position: absolute; width: 16rem; height: 3rem; border: 2px solid rgba(255,255,255,0.28); transform: rotate(-18deg); }
.project-visual::after { transform: rotate(34deg); }
.project-content { padding: 1.5rem; }
.tag { display: inline-block; margin-bottom: 0.75rem; color: var(--blue-dark); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }

.process-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: rgba(255,255,255,0.15); }
.process-step { padding: 1.5rem; background: var(--navy); }
.process-step span { color: #7fc0ef; font-size: 0.8rem; font-weight: 800; }

.content-media-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(18rem, 0.95fr); align-items: center; gap: clamp(2rem, 6vw, 5rem); }
.content-media-grid-reverse { grid-template-columns: minmax(18rem, 0.95fr) minmax(0, 1.05fr); }
.service-media { margin: 0; overflow: hidden; border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow); }
.service-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

.product-gallery-section { background: var(--surface); }
.product-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.project-gallery { margin-bottom: 1.5rem; }
.project-gallery .product-shot img { aspect-ratio: 16 / 9; object-fit: cover; border: 0; }
.project-gallery .product-shot-featured img { aspect-ratio: auto; object-fit: contain; }
.product-shot { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 0.75rem 2rem rgba(16, 41, 61, 0.08); }
.product-shot-featured { width: min(100%, 52rem); grid-column: 1 / -1; justify-self: center; }
.product-shot a { display: block; padding: 0.75rem; background: #e8f0f5; }
.product-shot img { width: 100%; height: auto; border: 1px solid rgba(16, 41, 61, 0.12); }
.product-shot figcaption { display: grid; gap: 0.25rem; padding: 1rem 1.2rem 1.2rem; }
.product-shot figcaption strong { color: var(--navy); font-size: 1.05rem; }
.product-shot figcaption span { color: var(--muted); font-size: 0.92rem; }

