:root {
    --navy-950: #04152b;
    --navy-900: #071f3d;
    --navy-800: #0a315b;
    --blue-600: #0879bb;
    --aqua-500: #16b9cd;
    --aqua-100: #dff8fa;
    --green-500: #73b82f;
    --ink: #102238;
    --muted: #65778a;
    --line: rgba(10, 49, 91, 0.13);
    --paper: #ffffff;
    --mist: #f1f8fa;
    --sand: #f5f2ea;
    --radius-sm: 14px;
    --radius: 24px;
    --radius-lg: 36px;
    --shadow: 0 24px 70px rgba(4, 31, 61, 0.12);
    --shell: min(1220px, calc(100vw - 48px));
    --header-h: 84px;
    --ease: cubic-bezier(.2, .75, .2, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 24px);
    background: var(--mist);
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

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

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

button {
    color: inherit;
}

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

h1,
h2,
h3,
h4 {
    font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
    letter-spacing: -0.035em;
    line-height: 1.06;
}

h1 {
    font-size: clamp(3.25rem, 7.2vw, 7rem);
}

h2 {
    margin-bottom: 24px;
    font-size: clamp(2.3rem, 4.5vw, 4.6rem);
}

h3 {
    font-size: clamp(1.35rem, 2.2vw, 2rem);
}

p:last-child {
    margin-bottom: 0;
}

::selection {
    color: white;
    background: var(--blue-600);
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    z-index: 1000;
    top: 12px;
    left: 12px;
    padding: 10px 16px;
    color: white;
    background: var(--navy-900);
    border-radius: 999px;
    transform: translateY(-150%);
}

.skip-link:focus {
    transform: translateY(0);
}

.scroll-progress {
    position: fixed;
    z-index: 1001;
    inset: 0 0 auto;
    height: 3px;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--aqua-500), var(--green-500));
    transform: scaleX(0);
    transform-origin: left;
}

.site-header {
    position: fixed;
    z-index: 100;
    top: 0;
    right: 0;
    left: 0;
    height: var(--header-h);
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    transition: background .35s ease, box-shadow .35s ease, height .35s ease;
}

.site-header.scrolled,
body:not(.page-home) .site-header {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.93);
    box-shadow: 0 12px 35px rgba(4, 31, 61, 0.08);
    border-bottom-color: var(--line);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    gap: 28px;
}

.brand {
    position: relative;
    z-index: 102;
    flex: 0 0 auto;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 14px;
}

.brand img {
    width: 145px;
    height: auto;
}

.desktop-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.desktop-nav a {
    position: relative;
    padding: 28px 0 26px;
    font-size: .86rem;
    font-weight: 750;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.desktop-nav a::after {
    position: absolute;
    right: 0;
    bottom: 19px;
    left: 0;
    height: 2px;
    content: "";
    background: var(--aqua-500);
    transform: scaleX(0);
    transition: transform .25s var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
    transform: scaleX(1);
}

.button {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 18px;
    padding: 13px 22px;
    color: white;
    background: var(--navy-900);
    border: 1px solid var(--navy-900);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(7, 31, 61, 0.12);
    font-size: .89rem;
    font-weight: 800;
    letter-spacing: .02em;
    cursor: pointer;
    transition: transform .25s var(--ease), background .25s ease, color .25s ease, box-shadow .25s ease;
}

.button:hover {
    background: var(--blue-600);
    border-color: var(--blue-600);
    box-shadow: 0 16px 38px rgba(8, 121, 187, 0.24);
    transform: translateY(-3px);
}

.button:focus-visible,
.text-link:focus-visible,
.desktop-nav a:focus-visible,
.mobile-tabbar a:focus-visible {
    outline: 3px solid var(--aqua-500);
    outline-offset: 4px;
}

.button-sm {
    min-height: 45px;
    padding: 10px 18px;
}

.button-light {
    color: var(--navy-900);
    background: white;
    border-color: white;
}

.button-light:hover {
    color: white;
}

.button-outline {
    color: var(--navy-900);
    background: transparent;
}

.button-block {
    width: 100%;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    padding-block: 8px;
    border-bottom: 1px solid currentColor;
    font-size: .88rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
    transition: gap .2s ease, color .2s ease;
}

.text-link:hover {
    gap: 24px;
    color: var(--blue-600);
}

.text-link.light {
    color: white;
}

.menu-toggle,
.mobile-menu,
.mobile-tabbar {
    display: none;
}

.home-hero {
    position: relative;
    min-height: max(760px, 100svh);
    color: white;
    background: var(--navy-950);
    isolation: isolate;
}

.hero-image {
    position: absolute;
    z-index: -2;
    inset: 0;
    background: url("../images/hero.webp") 50% 50% / cover no-repeat;
}

.home-hero::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background:
        linear-gradient(90deg, rgba(3, 17, 36, .58) 0%, rgba(3, 17, 36, .12) 58%, rgba(3, 17, 36, .1) 100%),
        linear-gradient(0deg, rgba(3, 17, 36, .68), transparent 38%);
}

.hero-layout {
    display: grid;
    min-height: max(760px, 100svh);
    align-items: end;
    grid-template-columns: minmax(0, 1fr) 270px;
    gap: 48px;
    padding-top: calc(var(--header-h) + 80px);
    padding-bottom: 95px;
}

.hero-copy {
    max-width: 880px;
}

.hero-copy h1 {
    max-width: 850px;
    margin-bottom: 38px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 34px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--blue-600);
    font-size: .77rem;
    font-weight: 850;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 28px;
    height: 2px;
    content: "";
    background: currentColor;
}

.eyebrow.light {
    color: var(--aqua-100);
}

.glass-card {
    padding: 24px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: var(--radius);
    backdrop-filter: blur(18px);
}

.hero-metric strong {
    display: block;
    margin-bottom: 3px;
    font-size: 2.4rem;
    line-height: 1;
}

.hero-metric span {
    display: block;
    color: rgba(255, 255, 255, .78);
    font-size: .85rem;
    line-height: 1.45;
}

.scroll-cue {
    position: absolute;
    bottom: 30px;
    left: 50%;
    display: grid;
    width: 32px;
    height: 52px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .44);
    border-radius: 999px;
    transform: translateX(-50%);
}

.scroll-cue span {
    width: 4px;
    height: 10px;
    background: white;
    border-radius: 99px;
    animation: scrollCue 1.8s infinite;
}

@keyframes scrollCue {
    0%, 100% { opacity: .35; transform: translateY(-5px); }
    50% { opacity: 1; transform: translateY(5px); }
}

.section {
    padding: 118px 0;
}

.section-tint {
    background: var(--mist);
}

.split-layout {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.07fr) minmax(340px, .93fr);
    gap: clamp(55px, 8vw, 120px);
}

.split-layout.reverse {
    grid-template-columns: minmax(340px, .93fr) minmax(0, 1.07fr);
}

.media-stack {
    position: relative;
    min-height: 560px;
}

.media-main,
.rounded-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.media-main {
    position: absolute;
    inset: 0;
}

.media-badge {
    position: absolute;
    right: -25px;
    bottom: 32px;
    display: flex;
    width: 190px;
    min-height: 150px;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
    color: white;
    background: var(--navy-900);
    border: 8px solid white;
    border-radius: var(--radius);
}

.media-badge strong {
    font-size: 3.2rem;
    line-height: 1;
}

.media-badge span {
    font-size: .82rem;
}

.section-copy {
    max-width: 620px;
}

.section-copy .lead,
.lead {
    color: var(--muted);
    font-size: 1.16rem;
}

.check-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 30px 0 36px;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 36px;
}

.check-list li::before {
    position: absolute;
    top: .3em;
    left: 0;
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    color: var(--blue-600);
    background: var(--aqua-100);
    border-radius: 50%;
    content: "✓";
    font-size: .75rem;
    font-weight: 900;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 55px;
}

.section-heading h2 {
    max-width: 820px;
    margin: 0;
}

.section-heading.centered {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-auto-rows: 470px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    position: relative;
    overflow: hidden;
    color: white;
    background: var(--navy-900);
    border-radius: var(--radius);
    isolation: isolate;
}

.service-card img {
    position: absolute;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s var(--ease);
}

.service-card::after {
    position: absolute;
    z-index: -1;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(3, 17, 36, .9), rgba(3, 17, 36, .05) 68%);
}

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

.service-card > div {
    position: absolute;
    right: 28px;
    bottom: 28px;
    left: 28px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}

.service-card h3 {
    max-width: 470px;
    margin: 0;
}

.card-number {
    position: absolute;
    top: 22px;
    left: 22px;
    padding: 6px 12px;
    background: rgba(4, 31, 61, .44);
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 800;
    backdrop-filter: blur(12px);
}

.card-arrow {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    color: var(--navy-900);
    background: white;
    border-radius: 50%;
    transition: transform .25s var(--ease);
}

.service-card:hover .card-arrow {
    transform: rotate(45deg);
}

.commitment {
    overflow: hidden;
}

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

.feature-card {
    position: relative;
    min-height: 330px;
    padding: 38px;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.feature-card h3 {
    max-width: 420px;
    margin-top: 80px;
}

.feature-card p {
    max-width: 580px;
    color: var(--muted);
}

.feature-card-dark {
    grid-column: 1 / -1;
    min-height: 390px;
    color: white;
    background:
        linear-gradient(100deg, rgba(4, 21, 43, .98), rgba(7, 49, 91, .88)),
        url("../images/wastewater.webp") center / cover;
}

.feature-card-dark h3 {
    max-width: 700px;
}

.feature-card-dark p {
    max-width: 900px;
    color: rgba(255, 255, 255, .72);
}

.feature-index {
    position: absolute;
    top: 30px;
    right: 34px;
    color: var(--blue-600);
    font-size: .78rem;
    font-weight: 850;
    letter-spacing: .12em;
}

.projects-preview {
    background: var(--sand);
}

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

.project-tile {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    color: white;
    background: var(--navy-900);
    border-radius: var(--radius);
}

.project-tile img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s var(--ease);
}

.project-tile::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(3, 17, 36, .85), transparent 60%);
}

.project-tile > div {
    position: absolute;
    z-index: 2;
    right: 30px;
    bottom: 26px;
    left: 30px;
}

.project-tile h3 {
    max-width: 560px;
    margin: 6px 0 0;
}

.project-tile span {
    color: var(--aqua-100);
    font-size: .75rem;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

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

.cta-band {
    color: white;
    background:
        radial-gradient(circle at 10% 30%, rgba(22, 185, 205, .28), transparent 32%),
        linear-gradient(100deg, var(--navy-950), var(--navy-800));
}

.cta-band .shell {
    display: flex;
    min-height: 300px;
    align-items: center;
    justify-content: space-between;
    gap: 45px;
    padding-block: 60px;
}

.cta-band h2 {
    max-width: 800px;
    margin: 0;
}

.cta-band p {
    max-width: 760px;
    color: rgba(255, 255, 255, .72);
}

.cta-band-light {
    color: var(--ink);
    background: var(--mist);
}

.cta-band-light p {
    color: var(--muted);
}

.page-hero {
    position: relative;
    min-height: 720px;
    display: flex;
    align-items: end;
    color: white;
    background: var(--navy-950);
    isolation: isolate;
}

.page-hero-short {
    min-height: 620px;
}

.page-hero > img,
.page-hero-overlay {
    position: absolute;
    z-index: -2;
    inset: 0;
    width: 100%;
    height: 100%;
}

.page-hero > img {
    object-fit: cover;
}

.page-hero-overlay {
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(4, 21, 43, .92) 0%, rgba(4, 21, 43, .56) 48%, rgba(4, 21, 43, .15) 100%),
        linear-gradient(0deg, rgba(4, 21, 43, .7), transparent 45%);
}

.page-hero-copy {
    padding-top: calc(var(--header-h) + 80px);
    padding-bottom: 85px;
}

.page-hero-copy h1 {
    max-width: 980px;
    margin-bottom: 24px;
    font-size: clamp(3.2rem, 6.4vw, 6.4rem);
}

.page-hero-copy p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .76);
    font-size: 1.08rem;
}

.story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
    gap: 55px 80px;
}

.story-statement {
    grid-row: span 2;
}

.story-statement h2 {
    max-width: 760px;
}

.story-copy p {
    color: var(--muted);
    font-size: 1.18rem;
}

.story-highlights {
    display: grid;
    gap: 18px;
}

.story-highlights > div {
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    background: var(--mist);
    border-left: 3px solid var(--aqua-500);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.story-highlights strong {
    font-size: 1.35rem;
}

.story-highlights span {
    color: var(--muted);
    font-size: .87rem;
}

.stats-section {
    color: white;
    background: var(--navy-900);
}

.stats-grid {
    display: grid;
    min-height: 260px;
    align-items: center;
    grid-template-columns: repeat(3, 1fr);
}

.stats-grid > div {
    display: flex;
    min-height: 130px;
    flex-direction: column;
    justify-content: center;
    padding: 25px 50px;
    border-right: 1px solid rgba(255, 255, 255, .16);
}

.stats-grid > div:last-child {
    border-right: 0;
}

.stats-grid strong {
    margin-bottom: 10px;
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1;
}

.stats-grid span {
    color: rgba(255, 255, 255, .65);
    font-size: .9rem;
}

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

.process-grid article {
    min-height: 310px;
    padding: 34px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.process-grid article > span {
    display: grid;
    width: 44px;
    height: 44px;
    margin-bottom: 68px;
    place-items: center;
    color: var(--blue-600);
    background: var(--aqua-100);
    border-radius: 50%;
    font-size: .75rem;
    font-weight: 850;
}

.process-grid h3 {
    margin-bottom: 14px;
}

.process-grid p {
    color: var(--muted);
}

.mission-grid {
    display: grid;
    grid-auto-rows: 430px;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.mission-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
    overflow: hidden;
    background: var(--mist);
    border-radius: var(--radius);
}

.mission-card h2 {
    font-size: clamp(2.2rem, 4vw, 3.7rem);
}

.mission-card p {
    font-weight: 750;
    letter-spacing: .03em;
}

.mission-card-image {
    position: relative;
    padding: 0;
}

.mission-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mission-card-dark {
    color: white;
    background: var(--navy-900);
}

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

.team-card {
    padding: 32px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.team-avatar {
    display: grid;
    aspect-ratio: 1 / 1;
    place-items: center;
    margin-bottom: 26px;
    color: white;
    background:
        radial-gradient(circle at 70% 15%, rgba(22, 185, 205, .8), transparent 28%),
        linear-gradient(135deg, var(--navy-900), var(--blue-600));
    border-radius: calc(var(--radius) - 6px);
    font-size: clamp(3rem, 7vw, 6rem);
    font-weight: 900;
    letter-spacing: -.05em;
}

.team-card h3 {
    margin-bottom: 4px;
    font-size: 1.45rem;
}

.team-card p {
    color: var(--muted);
}

.community .rounded-image {
    min-height: 520px;
}

.services-intro {
    display: grid;
    align-items: end;
    grid-template-columns: minmax(0, 1.15fr) minmax(260px, .7fr) auto;
    gap: 42px;
    margin-bottom: 65px;
}

.services-intro h2 {
    margin: 0;
}

.services-intro p {
    color: var(--muted);
}

.services-intro > strong {
    padding: 12px 18px;
    color: var(--blue-600);
    background: var(--aqua-100);
    border-radius: 999px;
    font-size: .74rem;
    letter-spacing: .1em;
    white-space: nowrap;
}

.full-service-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.full-service-card {
    overflow: hidden;
    background: var(--mist);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition: transform .3s var(--ease), box-shadow .3s ease;
}

.full-service-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-7px);
}

.full-service-card img {
    width: 100%;
    height: 310px;
    object-fit: cover;
}

.full-service-card > div {
    position: relative;
    min-height: 260px;
    padding: 32px;
}

.full-service-card > div > span {
    position: absolute;
    top: 32px;
    right: 32px;
    color: var(--blue-600);
    font-size: .76rem;
    font-weight: 850;
}

.full-service-card h3 {
    max-width: calc(100% - 55px);
    margin-bottom: 16px;
}

.full-service-card p {
    color: var(--muted);
}

.legacy-section {
    color: white;
    background:
        linear-gradient(90deg, rgba(4, 21, 43, .96), rgba(7, 49, 91, .84)),
        url("../images/hero.webp") center / cover fixed;
}

.legacy-grid {
    display: grid;
    align-items: center;
    grid-template-columns: .7fr 1.3fr;
    gap: 100px;
}

.legacy-number {
    display: flex;
    flex-direction: column;
    padding: 45px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
}

.legacy-number strong {
    font-size: clamp(5rem, 11vw, 10rem);
    line-height: .9;
}

.legacy-number span {
    margin-top: 20px;
    color: rgba(255, 255, 255, .68);
}

.legacy-copy p {
    max-width: 720px;
    color: rgba(255, 255, 255, .7);
}

.light-list li::before {
    color: var(--navy-900);
    background: white;
}

.project-gallery {
    display: grid;
    grid-auto-rows: 370px;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    color: white;
    background: var(--navy-900);
    border-radius: var(--radius);
}

.gallery-card-large {
    grid-row: span 2;
}

.gallery-card-wide {
    grid-column: 1 / -1;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s var(--ease);
}

.gallery-card::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(0deg, rgba(3, 17, 36, .88), transparent 62%);
}

.gallery-card > div {
    position: absolute;
    z-index: 2;
    right: 30px;
    bottom: 25px;
    left: 30px;
}

.gallery-card h2,
.gallery-card h3,
.gallery-card p {
    margin-bottom: 5px;
}

.gallery-card p {
    color: rgba(255, 255, 255, .7);
}

.gallery-card:hover img {
    transform: scale(1.05);
}

.contact-section {
    background: var(--mist);
}

.contact-heading {
    max-width: 820px;
    margin-bottom: 55px;
}

.contact-heading p {
    color: var(--muted);
    font-size: 1.08rem;
}

.contact-grid {
    display: grid;
    align-items: start;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
    gap: 24px;
}

.form-card,
.contact-card {
    padding: 38px;
    background: white;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 15px 45px rgba(4, 31, 61, .06);
}

.form-card h3,
.contact-card h3 {
    margin-bottom: 30px;
}

.field-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: .85rem;
    font-weight: 750;
}

.field label span {
    color: var(--blue-600);
}

.field input,
.field textarea {
    width: 100%;
    padding: 15px 17px;
    color: var(--ink);
    background: var(--mist);
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    outline: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.field input:focus,
.field textarea:focus {
    background: white;
    border-color: var(--aqua-500);
    box-shadow: 0 0 0 4px rgba(22, 185, 205, .12);
}

.field textarea {
    resize: vertical;
}

.form-status {
    margin-bottom: 22px;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    font-size: .9rem;
    font-weight: 700;
}

.form-status.success {
    color: #155d33;
    background: #e3f8ea;
}

.form-status.error {
    color: #842029;
    background: #fbe8ea;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.contact-aside {
    display: grid;
    gap: 24px;
}

.contact-card {
    min-height: 260px;
}

.contact-card.dark {
    color: white;
    background: var(--navy-900);
}

.contact-card.dark p {
    color: rgba(255, 255, 255, .68);
}

.contact-card p {
    color: var(--muted);
}

.contact-card h4 {
    margin: 24px 0 8px;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.contact-icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 35px;
    place-items: center;
    color: var(--blue-600);
    background: var(--aqua-100);
    border-radius: 50%;
    font-size: 1.15rem;
    font-weight: 900;
}

.site-footer {
    color: white;
    background: var(--navy-950);
}

.footer-main {
    display: grid;
    grid-template-columns: 1.2fr .7fr 1.1fr;
    gap: 70px;
    padding: 80px 0 60px;
}

.footer-brand img {
    width: 170px;
    margin-bottom: 20px;
    padding: 10px;
    background: white;
    border-radius: var(--radius-sm);
}

.footer-brand p,
.footer-contact p {
    color: rgba(255, 255, 255, .58);
}

.footer-nav {
    display: grid;
    align-content: start;
    gap: 12px;
}

.footer-nav a,
.footer-contact a {
    width: fit-content;
    transition: color .2s ease;
}

.footer-nav a:hover,
.footer-contact a:hover {
    color: var(--aqua-500);
}

.footer-contact > p:first-child {
    color: white;
    font-weight: 800;
}

.footer-contact a {
    display: inline-block;
    margin-bottom: 18px;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 25px 0 35px;
    color: rgba(255, 255, 255, .45);
    border-top: 1px solid rgba(255, 255, 255, .1);
    font-size: .82rem;
}

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease), transform .7s var(--ease);
}

[data-reveal].revealed {
    opacity: 1;
    transform: none;
}

@media (max-width: 1080px) {
    :root {
        --shell: min(100% - 40px, 980px);
    }

    .desktop-nav {
        gap: 20px;
    }

    .header-cta {
        display: none;
    }

    .service-grid {
        grid-auto-rows: 410px;
    }

    .services-intro {
        grid-template-columns: 1fr 1fr;
    }

    .services-intro > strong {
        width: fit-content;
    }

    .legacy-grid {
        gap: 55px;
    }
}

@media (max-width: 900px) {
    :root {
        --header-h: 74px;
        --shell: min(100% - 32px, 740px);
    }

    html.menu-open {
        overflow: hidden;
    }

    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    .desktop-nav,
    .header-cta {
        display: none;
    }

    .site-header {
        color: var(--ink);
        background: rgba(255, 255, 255, .94);
        border-bottom-color: var(--line);
        backdrop-filter: blur(16px);
    }

    .brand {
        padding: 4px 9px;
    }

    .brand img {
        width: 125px;
    }

    .menu-toggle {
        position: relative;
        z-index: 102;
        display: grid;
        width: 46px;
        height: 46px;
        place-content: center;
        gap: 6px;
        padding: 0;
        background: var(--navy-900);
        border: 0;
        border-radius: 50%;
    }

    .menu-toggle span {
        width: 18px;
        height: 2px;
        background: white;
        border-radius: 9px;
        transition: transform .25s ease;
    }

    .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);
    }

    .mobile-menu {
        position: fixed;
        z-index: 101;
        top: 0;
        right: 0;
        left: 0;
        display: flex;
        min-height: 100svh;
        flex-direction: column;
        justify-content: center;
        padding: 110px 24px 100px;
        color: var(--ink);
        background: rgba(244, 249, 251, .98);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-20px);
        transition: opacity .3s ease, transform .3s var(--ease);
        backdrop-filter: blur(20px);
    }

    .mobile-menu.open {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .mobile-menu nav {
        margin-bottom: 28px;
    }

    .mobile-menu nav a {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 14px 4px;
        border-bottom: 1px solid var(--line);
        font-family: "Arial Narrow", "Segoe UI", Arial, sans-serif;
        font-size: clamp(2rem, 8vw, 3.1rem);
        font-weight: 800;
        letter-spacing: -.04em;
        line-height: 1.2;
    }

    .mobile-menu nav a.active {
        color: var(--blue-600);
    }

    .mobile-tabbar {
        position: fixed;
        z-index: 99;
        right: 8px;
        bottom: max(8px, env(safe-area-inset-bottom));
        left: 8px;
        display: grid;
        height: 64px;
        grid-template-columns: repeat(5, 1fr);
        padding: 6px;
        background: rgba(4, 21, 43, .94);
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 20px;
        box-shadow: 0 18px 48px rgba(4, 21, 43, .28);
        backdrop-filter: blur(18px);
    }

    .mobile-tabbar a {
        display: flex;
        min-width: 0;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 4px;
        color: rgba(255, 255, 255, .58);
        border-radius: 14px;
        font-size: .65rem;
        font-weight: 700;
    }

    .mobile-tabbar a.active {
        color: white;
        background: rgba(255, 255, 255, .09);
    }

    .tab-dot {
        width: 6px;
        height: 6px;
        background: currentColor;
        border-radius: 50%;
    }

    .hero-layout {
        min-height: max(720px, 100svh);
        grid-template-columns: 1fr;
        gap: 34px;
        padding-bottom: 80px;
    }

    .hero-metric {
        width: min(100%, 280px);
    }

    .split-layout,
    .split-layout.reverse,
    .story-grid,
    .legacy-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .media-stack {
        min-height: 500px;
    }

    .media-badge {
        right: 20px;
    }

    .service-grid {
        grid-auto-rows: 390px;
    }

    .feature-grid,
    .project-strip,
    .full-service-grid {
        grid-template-columns: 1fr;
    }

    .feature-card-dark {
        grid-column: auto;
    }

    .mission-grid {
        grid-auto-rows: 380px;
        grid-template-columns: 1fr;
    }

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

    .stats-grid {
        min-height: 220px;
    }

    .stats-grid > div {
        padding: 25px;
    }

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

    .process-grid article {
        min-height: 230px;
    }

    .process-grid article > span {
        margin-bottom: 40px;
    }

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

    .project-gallery {
        grid-auto-rows: 390px;
    }

    .gallery-card-large {
        grid-row: auto;
    }

    .footer-main {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 640px) {
    :root {
        --shell: calc(100% - 28px);
        --radius: 20px;
        --radius-lg: 26px;
    }

    body {
        font-size: 15px;
    }

    h1 {
        font-size: clamp(2.9rem, 14vw, 4.9rem);
    }

    h2 {
        font-size: clamp(2.1rem, 10vw, 3.4rem);
    }

    .section {
        padding: 82px 0;
    }

    .home-hero::after {
        background: linear-gradient(90deg, rgba(3, 17, 36, .84), rgba(3, 17, 36, .28)), linear-gradient(0deg, rgba(3, 17, 36, .72), transparent 42%);
    }

    .hero-image {
        background-position: 62% 50%;
    }

    .hero-layout {
        min-height: 760px;
        padding-top: calc(var(--header-h) + 70px);
        padding-bottom: 80px;
    }

    .hero-copy h1 {
        margin-bottom: 28px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .hero-actions .button,
    .hero-actions .text-link {
        width: 100%;
        justify-content: center;
    }

    .scroll-cue {
        display: none;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
        margin-bottom: 38px;
    }

    .section-heading.centered {
        align-items: flex-start;
        text-align: left;
    }

    .media-stack {
        min-height: 420px;
    }

    .media-badge {
        right: 14px;
        bottom: 14px;
        width: 155px;
        min-height: 125px;
        padding: 18px;
        border-width: 5px;
    }

    .media-badge strong {
        font-size: 2.5rem;
    }

    .service-grid {
        display: flex;
        width: calc(100vw - 14px);
        gap: 14px;
        padding: 2px 16px 18px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .service-grid::-webkit-scrollbar {
        display: none;
    }

    .service-card {
        min-width: min(84vw, 350px);
        height: 430px;
        scroll-snap-align: start;
    }

    .feature-grid {
        gap: 14px;
    }

    .feature-card {
        min-height: 290px;
        padding: 28px;
    }

    .feature-card h3 {
        margin-top: 55px;
    }

    .project-strip {
        display: flex;
        width: calc(100vw - 14px);
        gap: 14px;
        padding: 2px 16px 18px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .project-tile {
        min-width: min(84vw, 360px);
        min-height: 440px;
        scroll-snap-align: start;
    }

    .cta-band .shell {
        min-height: 330px;
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        gap: 30px;
    }

    .cta-band .button {
        width: 100%;
    }

    .page-hero,
    .page-hero-short {
        min-height: 650px;
    }

    .page-hero-copy {
        padding-bottom: 60px;
    }

    .page-hero-copy h1 {
        font-size: clamp(2.8rem, 13vw, 4.6rem);
    }

    .story-statement {
        grid-row: auto;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        padding: 25px 0;
    }

    .stats-grid > div {
        min-height: 150px;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, .16);
    }

    .stats-grid > div:last-child {
        border-bottom: 0;
    }

    .mission-grid {
        grid-auto-rows: 350px;
    }

    .team-grid {
        display: flex;
        width: calc(100vw - 14px);
        gap: 14px;
        padding: 2px 16px 18px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .team-card {
        min-width: min(78vw, 330px);
        scroll-snap-align: start;
    }

    .community .rounded-image {
        min-height: 380px;
    }

    .full-service-grid {
        gap: 14px;
    }

    .full-service-card img {
        height: 250px;
    }

    .full-service-card > div {
        min-height: 220px;
        padding: 26px;
    }

    .legacy-number {
        padding: 30px;
    }

    .legacy-copy h2 {
        margin-top: 6px;
    }

    .project-gallery {
        display: flex;
        width: calc(100vw - 14px);
        gap: 14px;
        padding: 2px 16px 18px 0;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
    }

    .gallery-card,
    .gallery-card-wide,
    .gallery-card-large {
        min-width: min(85vw, 370px);
        height: 440px;
        scroll-snap-align: start;
    }

    .field-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .form-card,
    .contact-card {
        padding: 26px;
    }

    .footer-main {
        grid-template-columns: 1fr;
        gap: 38px;
        padding-top: 65px;
    }

    .footer-brand {
        grid-column: auto;
    }

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

    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
        padding-bottom: 95px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

