:root {
    --ink: #102033;
    --ink-soft: #34465c;
    --navy: #061a33;
    --navy-2: #0b2748;
    --blue: #1267a4;
    --sky: #32a9d9;
    --teal: #2aa79b;
    --gold: #c99435;
    --gold-2: #f2cf78;
    --rose: #9d455d;
    --paper: #f7f9fc;
    --white: #ffffff;
    --line: rgba(16, 32, 51, 0.14);
    --line-strong: rgba(255, 255, 255, 0.22);
    --shadow: 0 20px 60px rgba(6, 26, 51, 0.18);
    --shadow-soft: 0 12px 36px rgba(6, 26, 51, 0.12);
    --radius: 8px;
    --header-height: 76px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    letter-spacing: 0;
}

body.nav-open {
    overflow: hidden;
}

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

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

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

.container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.wide-container {
    width: min(1380px, calc(100% - 40px));
    margin: 0 auto;
}

.sr-only,
.skip-link {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link:focus {
    z-index: 2000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    background: var(--white);
    color: var(--navy);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.site-header {
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    right: 0;
    color: var(--white);
    transition: background 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header:focus-within {
    background: rgba(6, 26, 51, 0.92);
    box-shadow: 0 12px 28px rgba(6, 26, 51, 0.22);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1380px, calc(100% - 32px));
    min-height: var(--header-height);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 210px;
}

.brand-link img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: var(--radius);
}

.brand-link strong {
    display: block;
    font-size: 1rem;
    line-height: 1.1;
}

.brand-link small {
    display: block;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.74rem;
    line-height: 1.2;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    flex-wrap: wrap;
}

.site-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.89rem;
    font-weight: 700;
    transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.active {
    color: var(--white);
    border-color: rgba(242, 207, 120, 0.38);
    background: rgba(255, 255, 255, 0.08);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.09);
    color: var(--white);
    cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
    width: 20px;
    height: 2px;
    display: block;
    background: currentColor;
    border-radius: 2px;
    content: "";
    transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-lines {
    position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
    position: absolute;
    left: 0;
}

.nav-toggle-lines::before {
    top: -7px;
}

.nav-toggle-lines::after {
    top: 7px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines {
    transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::before {
    transform: translateY(7px) rotate(90deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-lines::after {
    opacity: 0;
}

main {
    overflow: clip;
}

.hero {
    position: relative;
    min-height: 82svh;
    padding: 136px 0 60px;
    display: grid;
    align-items: end;
    color: var(--white);
    background-color: var(--navy);
    background-position: center;
    background-size: cover;
}

.hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(105deg, rgba(6, 26, 51, 0.96) 0%, rgba(6, 26, 51, 0.76) 44%, rgba(6, 26, 51, 0.18) 100%),
        linear-gradient(0deg, rgba(6, 26, 51, 0.86) 0%, rgba(6, 26, 51, 0.1) 42%, rgba(6, 26, 51, 0.36) 100%);
}

.hero::after {
    position: absolute;
    inset: auto 0 0;
    height: 92px;
    content: "";
    background: linear-gradient(180deg, rgba(247, 249, 252, 0) 0%, var(--paper) 100%);
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 44px;
    align-items: end;
}

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

.hero-eyebrow,
.section-kicker {
    margin: 0 0 12px;
    color: var(--gold-2);
    font-size: 0.77rem;
    line-height: 1.25;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: 4.35rem;
    line-height: 0.98;
    letter-spacing: 0;
}

.hero-lead,
.page-hero .lead {
    max-width: 690px;
    margin: 22px 0 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.16rem;
}

.hero-actions,
.cta-actions,
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 28px;
}

.button {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 17px;
    border-radius: var(--radius);
    border: 1px solid transparent;
    font-weight: 900;
    line-height: 1.15;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    color: #07192f;
    background: linear-gradient(135deg, var(--gold-2), var(--gold));
    box-shadow: 0 12px 28px rgba(201, 148, 53, 0.28);
}

.button-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.button-ghost {
    color: var(--navy);
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.75);
}

.glass-stack {
    display: grid;
    gap: 14px;
}

.glass-panel {
    padding: 18px;
    border-radius: var(--radius);
    border: 1px solid var(--line-strong);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.glass-panel strong {
    display: block;
    margin-bottom: 4px;
    color: var(--white);
}

.glass-panel span,
.glass-panel p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
}

.glass-panel:nth-child(2) {
    transform: translateX(-38px);
}

.glass-panel:nth-child(3) {
    transform: translateX(22px);
}

.metrics-strip {
    position: relative;
    z-index: 2;
    margin-top: -28px;
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--line);
    box-shadow: var(--shadow-soft);
}

.metric {
    padding: 22px;
    background: var(--white);
}

.metric strong {
    display: block;
    color: var(--navy);
    font-size: 1.25rem;
    line-height: 1.1;
}

.metric span {
    display: block;
    margin-top: 6px;
    color: var(--ink-soft);
    font-size: 0.92rem;
}

.section {
    padding: 86px 0;
}

.section.alt {
    background: var(--white);
}

.section.dark {
    color: var(--white);
    background:
        linear-gradient(135deg, var(--navy), var(--navy-2) 54%, #10334f);
}

.section.dark .section-kicker {
    color: var(--gold-2);
}

.section.dark p,
.section.dark .muted {
    color: rgba(255, 255, 255, 0.78);
}

.section.dark .feature-card p,
.section.dark .industry-card p,
.section.dark .process-card p,
.section.dark .feature-list li {
    color: var(--ink-soft);
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.5fr);
    gap: 36px;
    align-items: end;
    margin-bottom: 34px;
}

.section-head h2,
.section h2,
.cta-band h2 {
    margin: 0;
    font-size: 2.35rem;
    line-height: 1.08;
    letter-spacing: 0;
}

.section-head p,
.section > .container > p,
.muted {
    color: var(--ink-soft);
}

.lead {
    font-size: 1.08rem;
    color: var(--ink-soft);
}

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

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

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

.feature-card,
.project-card,
.industry-card,
.process-card,
.faq-item,
.contact-card,
.legal-panel {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
}

.feature-card,
.industry-card,
.process-card,
.contact-card,
.legal-panel {
    padding: 24px;
}

.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    content: "";
    background: linear-gradient(90deg, var(--gold), var(--sky), var(--teal));
}

.feature-card h3,
.project-card h3,
.industry-card h3,
.process-card h3,
.contact-card h3,
.legal-panel h2,
.legal-panel h3 {
    margin: 0 0 10px;
    color: var(--navy);
    line-height: 1.18;
    letter-spacing: 0;
}

.feature-card p,
.industry-card p,
.process-card p,
.contact-card p,
.legal-panel p,
.legal-panel li {
    margin: 0;
    color: var(--ink-soft);
}

.icon-tile {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    border-radius: var(--radius);
    color: var(--navy);
    background: linear-gradient(135deg, rgba(242, 207, 120, 0.95), rgba(50, 169, 217, 0.24));
    font-weight: 1000;
}

.media-split {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.85fr);
    gap: 42px;
    align-items: center;
}

.media-frame {
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.2);
    background: var(--navy);
    box-shadow: var(--shadow);
}

.media-frame img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.media-frame.is-tall img {
    aspect-ratio: 4 / 3;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 10px;
    border-radius: var(--radius);
    color: var(--navy);
    background: rgba(242, 207, 120, 0.22);
    border: 1px solid rgba(201, 148, 53, 0.32);
    font-size: 0.84rem;
    font-weight: 800;
}

.page-hero {
    position: relative;
    min-height: 56svh;
    padding: 136px 0 72px;
    display: grid;
    align-items: end;
    color: var(--white);
    background-color: var(--navy);
    background-position: center;
    background-size: cover;
}

.page-hero::before {
    position: absolute;
    inset: 0;
    content: "";
    background:
        linear-gradient(112deg, rgba(6, 26, 51, 0.96) 0%, rgba(6, 26, 51, 0.82) 52%, rgba(6, 26, 51, 0.32) 100%),
        linear-gradient(0deg, rgba(6, 26, 51, 0.74), rgba(6, 26, 51, 0.12));
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 0.9rem;
}

.breadcrumbs a {
    color: var(--gold-2);
}

.portfolio-toolbar {
    position: sticky;
    z-index: 4;
    top: calc(var(--header-height) + 10px);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
    margin-bottom: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(14px);
}

.filter-button,
.walkthrough-tab,
.accordion-button {
    min-height: 40px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink);
    cursor: pointer;
    font-weight: 900;
}

.filter-button,
.walkthrough-tab {
    padding: 8px 12px;
}

.filter-button.is-active,
.walkthrough-tab.is-active {
    border-color: rgba(201, 148, 53, 0.6);
    background: var(--navy);
    color: var(--white);
}

.portfolio-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 24px;
    align-items: start;
}

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

.project-card {
    overflow: hidden;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover,
.project-card:focus-within,
.project-card.is-selected {
    transform: translateY(-3px);
    border-color: rgba(201, 148, 53, 0.56);
    box-shadow: var(--shadow);
}

.project-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.project-body {
    padding: 18px;
}

.project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.project-meta span {
    padding: 4px 8px;
    border-radius: var(--radius);
    background: rgba(18, 103, 164, 0.1);
    color: var(--blue);
    font-size: 0.76rem;
    font-weight: 900;
}

.project-card p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.95rem;
}

.project-detail {
    position: sticky;
    top: calc(var(--header-height) + 86px);
    padding: 22px;
    border-radius: var(--radius);
    border: 1px solid rgba(201, 148, 53, 0.34);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.84)),
        linear-gradient(135deg, rgba(242, 207, 120, 0.24), rgba(50, 169, 217, 0.12));
    box-shadow: var(--shadow);
}

.project-detail h2 {
    margin: 0 0 8px;
    color: var(--navy);
    font-size: 1.55rem;
}

.project-detail p {
    color: var(--ink-soft);
}

.project-detail dl {
    display: grid;
    gap: 12px;
    margin: 18px 0 0;
}

.project-detail dt {
    color: var(--navy);
    font-weight: 1000;
}

.project-detail dd {
    margin: 3px 0 0;
    color: var(--ink-soft);
}

.feature-list,
.check-list,
.legal-panel ul {
    display: grid;
    gap: 10px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.feature-list li,
.check-list li,
.legal-panel li {
    position: relative;
    padding-left: 24px;
}

.feature-list li::before,
.check-list li::before,
.legal-panel li::before {
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    content: "";
    background: var(--gold);
}

.walkthrough-shell {
    display: grid;
    grid-template-columns: 320px minmax(0, 1fr);
    gap: 28px;
}

.walkthrough-tabs {
    display: grid;
    gap: 10px;
    align-self: start;
}

.walkthrough-stage {
    min-height: 520px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.82)),
        linear-gradient(135deg, rgba(42, 167, 155, 0.1), rgba(201, 148, 53, 0.12));
    box-shadow: var(--shadow-soft);
}

.walkthrough-stage img {
    width: 100%;
    aspect-ratio: 16 / 8;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 22px;
}

.timeline {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.process-card .step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    color: var(--navy);
    background: var(--gold-2);
    font-weight: 1000;
}

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

.water-feature {
    min-height: 116px;
    padding: 16px;
    display: flex;
    align-items: flex-end;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.74)),
        linear-gradient(135deg, rgba(50, 169, 217, 0.18), rgba(242, 207, 120, 0.16));
    color: var(--navy);
    font-weight: 900;
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
}

.accordion-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 20px;
    text-align: left;
    font-size: 1rem;
}

.accordion-button::after {
    flex: 0 0 auto;
    content: "+";
    color: var(--gold);
    font-size: 1.4rem;
    line-height: 1;
}

.faq-item.is-open .accordion-button::after {
    content: "-";
}

.accordion-panel {
    display: none;
    padding: 0 20px 20px;
    color: var(--ink-soft);
}

.faq-item.is-open .accordion-panel {
    display: block;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.75fr);
    gap: 28px;
    align-items: start;
}

.contact-form {
    padding: 26px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    color: var(--white);
    background:
        linear-gradient(150deg, rgba(6, 26, 51, 0.94), rgba(11, 39, 72, 0.88)),
        linear-gradient(90deg, rgba(201, 148, 53, 0.18), rgba(50, 169, 217, 0.14));
    box-shadow: var(--shadow);
}

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

.form-field {
    display: grid;
    gap: 7px;
    margin-bottom: 14px;
}

.form-field.full {
    grid-column: 1 / -1;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.form-field label {
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.86rem;
    font-weight: 900;
}

.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius);
    padding: 12px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    outline: none;
}

.form-field textarea {
    min-height: 140px;
    resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    border-color: var(--gold-2);
    box-shadow: 0 0 0 3px rgba(242, 207, 120, 0.14);
}

.form-note,
.form-status {
    margin-top: 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.9rem;
}

.form-status {
    display: none;
    padding: 12px;
    border-radius: var(--radius);
    border: 1px solid rgba(242, 207, 120, 0.32);
    background: rgba(242, 207, 120, 0.12);
}

.form-status.is-visible {
    display: block;
}

.contact-list {
    display: grid;
    gap: 16px;
}

.contact-card a {
    color: var(--blue);
    font-weight: 900;
}

.legal-stack {
    display: grid;
    gap: 18px;
}

.legal-panel {
    max-width: 900px;
}

.cta-band {
    padding: 54px 0;
    color: var(--white);
    background:
        linear-gradient(135deg, rgba(6, 26, 51, 0.98), rgba(11, 39, 72, 0.96)),
        linear-gradient(90deg, rgba(201, 148, 53, 0.3), rgba(42, 167, 155, 0.2));
}

.cta-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 30px;
    align-items: center;
}

.cta-inner p {
    margin: 12px 0 0;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer {
    color: rgba(255, 255, 255, 0.82);
    background: #061323;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.25fr 0.7fr 0.8fr 1fr;
    gap: 28px;
    padding: 48px 0 28px;
}

.footer-brand img {
    width: 52px;
    height: 52px;
    object-fit: contain;
    margin-bottom: 12px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.95);
}

.footer-brand strong,
.site-footer h2 {
    display: block;
    margin: 0 0 10px;
    color: var(--white);
    font-size: 1rem;
}

.site-footer a {
    display: block;
    margin: 8px 0;
    color: rgba(255, 255, 255, 0.78);
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--gold-2);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.86rem;
}

.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 520ms ease, transform 520ms ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.hero .glass-panel {
    animation: float-panel 5.5s ease-in-out infinite;
}

.hero .glass-panel:nth-child(2) {
    animation-delay: 450ms;
}

.hero .glass-panel:nth-child(3) {
    animation-delay: 900ms;
}

@keyframes float-panel {
    0%,
    100% {
        margin-top: 0;
    }
    50% {
        margin-top: -8px;
    }
}

@media (max-width: 1180px) {
    .site-nav a {
        padding: 8px 8px;
        font-size: 0.84rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr) 360px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 3.55rem;
    }

    .portfolio-layout {
        grid-template-columns: 1fr;
    }

    .project-detail {
        position: static;
    }
}

@media (max-width: 980px) {
    :root {
        --header-height: 70px;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .site-nav {
        position: fixed;
        top: calc(var(--header-height) + 8px);
        left: 16px;
        right: 16px;
        display: grid;
        max-height: calc(100svh - 96px);
        overflow: auto;
        padding: 12px;
        border: 1px solid rgba(255, 255, 255, 0.22);
        border-radius: var(--radius);
        background: rgba(6, 26, 51, 0.96);
        box-shadow: var(--shadow);
        transform: translateY(-10px);
        opacity: 0;
        pointer-events: none;
        visibility: hidden;
        backdrop-filter: blur(18px);
    }

    .site-nav.is-open {
        transform: none;
        opacity: 1;
        pointer-events: auto;
        visibility: visible;
    }

    .site-nav a {
        justify-content: space-between;
        min-height: 46px;
        padding: 10px 12px;
        font-size: 0.96rem;
    }

    .hero {
        min-height: 76svh;
        padding-top: 118px;
    }

    .hero-grid,
    .media-split,
    .section-head,
    .contact-layout,
    .cta-inner,
    .walkthrough-shell {
        grid-template-columns: 1fr;
    }

    .glass-stack {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .glass-panel,
    .glass-panel:nth-child(2),
    .glass-panel:nth-child(3) {
        transform: none;
    }

    .metrics-grid,
    .grid-4,
    .timeline,
    .water-feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .grid-3,
    .portfolio-grid,
    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .container,
    .wide-container {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        width: min(100% - 24px, 1380px);
    }

    .brand-link {
        min-width: 0;
    }

    .brand-link img {
        width: 42px;
        height: 42px;
    }

    .brand-link small {
        display: none;
    }

    .hero,
    .page-hero {
        min-height: 72svh;
        padding: 112px 0 50px;
    }

    .hero h1,
    .page-hero h1 {
        font-size: 2.62rem;
        line-height: 1.02;
    }

    .hero-lead,
    .page-hero .lead {
        font-size: 1rem;
    }

    .section {
        padding: 64px 0;
    }

    .section-head h2,
    .section h2,
    .cta-band h2 {
        font-size: 1.95rem;
    }

    .glass-stack,
    .metrics-grid,
    .grid-2,
    .grid-3,
    .grid-4,
    .portfolio-grid,
    .timeline,
    .water-feature-grid,
    .field-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .metrics-strip {
        margin-top: 0;
    }

    .portfolio-toolbar {
        position: static;
    }

    .button,
    .hero-actions .button,
    .cta-actions .button {
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

@media (max-width: 420px) {
    .hero h1,
    .page-hero h1 {
        font-size: 2.18rem;
    }

    .hero-actions,
    .cta-actions,
    .button-row {
        gap: 10px;
    }

    .feature-card,
    .industry-card,
    .process-card,
    .contact-card,
    .legal-panel,
    .project-detail,
    .walkthrough-stage,
    .contact-form {
        padding: 18px;
    }
}

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

    .reveal {
        opacity: 1;
        transform: none;
    }
}
