:root {
    --bg: #eef2f6;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-strong: #ffffff;
    --surface-muted: #e3eaf1;
    --ink: #0b1626;
    --muted: #556272;
    --line: rgba(15, 23, 36, 0.08);
    --line-strong: rgba(15, 23, 36, 0.14);
    --brand: #173f69;
    --brand-deep: #091a2f;
    --brand-soft: #d9e5f1;
    --accent: #b59261;
    --hero-ink: #f6f9fc;
    --shadow: 0 20px 50px rgba(8, 24, 44, 0.09);
    --shadow-lg: 0 34px 100px rgba(8, 24, 44, 0.2);
    --shadow-card-hover: 0 28px 70px rgba(8, 24, 44, 0.16);
    --radius-sm: 14px;
    --radius-md: 22px;
    --radius-lg: 30px;
    --container: min(1180px, calc(100vw - 56px));
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Suisse Int'l", "Avenir Next", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(23, 63, 105, 0.08), transparent 24%),
        radial-gradient(circle at bottom right, rgba(181, 146, 97, 0.06), transparent 24%),
        linear-gradient(180deg, #f9fbfc 0%, #edf2f6 100%);
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    letter-spacing: 0.01em;
}

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

a {
    color: inherit;
}

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

.site-shell {
    overflow: clip;
}

.container {
    width: var(--container);
    margin: 0 auto;
}

.section {
    position: relative;
    padding: 128px 0;
}

.section + .section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(1180px, calc(100vw - 56px));
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(15, 23, 36, 0), rgba(15, 23, 36, 0.09), rgba(15, 23, 36, 0));
}

.section-heading {
    max-width: 680px;
    margin-bottom: 48px;
}

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

.eyebrow::before {
    content: "";
    width: 42px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

h1,
h2,
h3,
.brand-mark {
    font-family: "Canela", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
    letter-spacing: -0.038em;
}

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

h1 {
    font-size: clamp(3.4rem, 7.2vw, 6.3rem);
    line-height: 0.92;
    margin-bottom: 28px;
    color: var(--hero-ink);
    max-width: 9.5ch;
    text-wrap: balance;
    text-shadow: 0 10px 30px rgba(5, 12, 24, 0.34);
}

h2 {
    font-size: clamp(2.35rem, 4.2vw, 3.95rem);
    line-height: 0.98;
    margin-bottom: 18px;
    color: var(--brand-deep);
}

h3 {
    font-size: 1.42rem;
    line-height: 1.08;
    margin-bottom: 14px;
    color: var(--brand-deep);
}

p {
    margin-bottom: 0;
    color: var(--muted);
}

.lede {
    font-size: 1.12rem;
    line-height: 1.8;
    max-width: 60ch;
}

.btn-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 42px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    padding: 0 28px;
    border-radius: 999px;
    border: 1px solid transparent;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.01em;
    transition: transform 220ms ease, box-shadow 220ms ease, background-color 220ms ease, border-color 220ms ease, color 220ms ease;
}

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

.btn-primary {
    background: linear-gradient(135deg, #1d5388 0%, #0b2a48 100%);
    color: #fbfdff;
    box-shadow:
        0 16px 38px rgba(10, 35, 58, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    box-shadow:
        0 20px 46px rgba(10, 35, 58, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-secondary {
    background: rgba(248, 251, 255, 0.1);
    border-color: rgba(248, 251, 255, 0.3);
    color: #fbfdff;
    backdrop-filter: blur(18px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
    background: rgba(248, 251, 255, 0.16);
    border-color: rgba(248, 251, 255, 0.4);
}

.btn-quiet {
    background: transparent;
    border-color: rgba(20, 58, 99, 0.16);
    color: var(--brand-deep);
}

.hero {
    position: relative;
    padding: 28px 0 132px;
    min-height: 100svh;
    display: flex;
    align-items: stretch;
    color: var(--hero-ink);
    background:
        linear-gradient(180deg, rgba(5, 12, 24, 0.42) 0%, rgba(7, 18, 33, 0.3) 24%, rgba(9, 27, 46, 0.16) 62%, rgba(10, 30, 52, 0.06) 100%),
        linear-gradient(100deg, rgba(4, 12, 24, 0.74) 0%, rgba(7, 22, 39, 0.5) 30%, rgba(10, 30, 52, 0.12) 56%, rgba(10, 30, 52, 0) 76%),
        url("../img/river-hero.jpg") center 58% / cover no-repeat;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 72% 44%, rgba(255, 255, 255, 0.16), transparent 26%),
        radial-gradient(circle at 84% 20%, rgba(181, 146, 97, 0.08), transparent 24%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0) 34%, rgba(255, 255, 255, 0.06) 100%);
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 220px;
    background: linear-gradient(180deg, rgba(238, 242, 246, 0) 0%, var(--bg) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    align-items: end;
    width: 100%;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px 0 36px;
}

.brand {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
}

.brand-mark {
    font-size: 1.45rem;
    color: var(--hero-ink);
}

.brand-sub {
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(246, 249, 252, 0.72);
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 20px;
    color: rgba(246, 249, 252, 0.86);
}

.topbar-links a {
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 180ms ease, opacity 180ms ease;
}

.topbar-links a:not(.btn):hover,
.topbar-links a:not(.btn):focus-visible {
    color: #ffffff;
}

.hero-panel {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    gap: 44px;
    align-items: end;
    padding-top: 96px;
}

.hero-copy {
    position: relative;
    max-width: 760px;
    padding: 34px 36px 38px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    background:
        linear-gradient(180deg, rgba(7, 21, 38, 0.36), rgba(7, 21, 38, 0.14));
    backdrop-filter: blur(8px);
    box-shadow:
        0 24px 70px rgba(5, 12, 24, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.hero-copy p {
    color: rgba(246, 249, 252, 0.88);
    font-size: 1.14rem;
    text-shadow: 0 8px 26px rgba(5, 12, 24, 0.22);
}

.hero-card {
    justify-self: end;
    width: min(100%, 372px);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-md);
    background:
        linear-gradient(180deg, rgba(16, 37, 61, 0.72), rgba(10, 27, 46, 0.58));
    backdrop-filter: blur(22px);
    box-shadow:
        0 30px 80px rgba(7, 21, 38, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-card h2 {
    font-size: 1.52rem;
    color: #fbfdff;
    margin-bottom: 12px;
}

.hero-card p {
    color: rgba(246, 249, 252, 0.76);
}

.hero-points {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}

.hero-points span {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.98rem;
    color: rgba(246, 249, 252, 0.9);
}

.hero-points span::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 6px rgba(179, 145, 95, 0.12);
}

.about-grid,
.contact-grid {
    display: grid;
    grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
    gap: 44px;
    align-items: center;
}

.portrait-card,
.panel,
.service-card,
.reason-card,
.contact-card {
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    backdrop-filter: blur(12px);
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, background-color 240ms ease;
}

.portrait-card {
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 245, 249, 0.94));
    box-shadow:
        0 34px 90px rgba(8, 24, 44, 0.18),
        0 6px 22px rgba(8, 24, 44, 0.08);
}

.portrait-card img {
    aspect-ratio: 4 / 5;
    width: 100%;
    object-fit: cover;
    transform: scale(1.02);
}

.portrait-caption {
    padding: 22px 24px 26px;
    border-top: 1px solid rgba(15, 23, 36, 0.07);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.74), rgba(244, 247, 250, 0.96));
}

.portrait-caption strong {
    display: block;
    color: var(--brand-deep);
    font-size: 1.14rem;
    margin-bottom: 4px;
}

.about-copy {
    display: grid;
    gap: 22px;
}

.panel {
    border-radius: var(--radius-md);
    padding: 32px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 250, 0.9));
}

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

.service-card,
.reason-card {
    position: relative;
    padding: 32px 30px;
    border-radius: 24px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 249, 252, 0.9));
}

.service-card::before,
.reason-card::before {
    content: "";
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, rgba(20, 58, 99, 0.95), rgba(179, 145, 95, 0.68));
}

.service-card p,
.reason-card p {
    font-size: 0.98rem;
    line-height: 1.76;
}

.service-icon {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    margin-bottom: 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(20, 58, 99, 0.12), rgba(179, 145, 95, 0.16));
    color: var(--brand);
    font-weight: 800;
    letter-spacing: 0.04em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.split-band {
    position: relative;
}

.split-band::before {
    content: "";
    position: absolute;
    inset: 72px 0 72px;
    background:
        linear-gradient(135deg, rgba(20, 58, 99, 0.055), rgba(255, 255, 255, 0.62));
    border-top: 1px solid rgba(20, 58, 99, 0.07);
    border-bottom: 1px solid rgba(20, 58, 99, 0.07);
}

.service-card:hover,
.service-card:focus-within,
.reason-card:hover,
.reason-card:focus-within {
    transform: translateY(-6px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(20, 58, 99, 0.14);
}

.panel:hover,
.contact-card:hover,
.portrait-card:hover {
    box-shadow: 0 28px 78px rgba(8, 24, 44, 0.16);
}

.contact-grid {
    align-items: start;
}

.contact-card {
    border-radius: var(--radius-lg);
    padding: 38px;
}

#contact .contact-card:first-child {
    background:
        linear-gradient(160deg, rgba(10, 28, 49, 0.98), rgba(21, 59, 97, 0.92));
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 34px 90px rgba(8, 24, 44, 0.22);
}

#contact .contact-card:first-child .eyebrow,
#contact .contact-card:first-child .contact-item span {
    color: rgba(217, 229, 241, 0.82);
}

#contact .contact-card:first-child .eyebrow::before {
    opacity: 0.4;
}

#contact .contact-card:first-child h2,
#contact .contact-card:first-child .contact-item a,
#contact .contact-card:first-child .contact-item p {
    color: #f8fbff;
}

#contact .contact-card:first-child .lede {
    color: rgba(248, 251, 255, 0.78);
}

.contact-details {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}

.contact-item span {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--brand);
    margin-bottom: 6px;
}

.contact-item a,
.contact-item p {
    color: var(--brand-deep);
    text-decoration: none;
}

.contact-form {
    display: grid;
    gap: 18px;
}

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

.field {
    display: grid;
    gap: 9px;
}

.field label {
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--brand-deep);
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(20, 58, 99, 0.12);
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    color: var(--ink);
    outline: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: border-color 180ms ease, box-shadow 180ms ease, background-color 180ms ease;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(20, 58, 99, 0.34);
    box-shadow:
        0 0 0 4px rgba(20, 58, 99, 0.07),
        0 14px 28px rgba(20, 58, 99, 0.08);
}

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

.form-note {
    font-size: 0.9rem;
    color: var(--muted);
}

.footer {
    padding: 34px 0 56px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-top: 28px;
    border-top: 1px solid rgba(15, 23, 36, 0.09);
    color: var(--muted);
    font-size: 0.94rem;
}

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

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .hero-panel,
    .about-grid,
    .contact-grid,
    .service-grid,
    .reason-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero-card {
        justify-self: stretch;
    }
}

@media (max-width: 820px) {
    .section {
        padding: 96px 0;
    }

    .topbar,
    .footer-inner,
    .hero-panel,
    .about-grid,
    .contact-grid,
    .service-grid,
    .reason-grid,
    .field-grid {
        grid-template-columns: 1fr;
    }

    .topbar,
    .footer-inner {
        display: grid;
        justify-content: stretch;
    }

    .topbar-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .hero {
        min-height: auto;
        padding-bottom: 108px;
    }

    .hero-panel {
        padding-top: 56px;
    }

    .hero-copy {
        padding: 26px 24px 30px;
        border-radius: 24px;
    }

    h1 {
        max-width: 12ch;
    }
}

@media (max-width: 560px) {
    :root {
        --container: min(100vw - 28px, 1180px);
    }

    h1 {
        font-size: clamp(2.95rem, 16vw, 4.35rem);
    }

    .hero-card,
    .panel,
    .service-card,
    .reason-card,
    .contact-card {
        padding: 24px;
        border-radius: 22px;
    }

    .hero-copy {
        padding: 22px 20px 24px;
        border-radius: 22px;
    }

    .btn {
        width: 100%;
    }

    .btn-row {
        display: grid;
    }
}
