:root {
    color-scheme: light;
    --color-primary: #2d4a43;
    --color-secondary: #465d58;
    --color-ivory: #f0ede6;
    --color-dark: #252b34;
    --color-hero: #06443d;
    --color-hero-deep: #003a35;
    --color-accent: #a8d8b3;
    --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body {
    margin: 0;
    background: var(--color-ivory);
    color: var(--color-dark);
    font: 1rem/1.6 var(--font-body);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--color-hero-deep); outline-offset: 4px; }
.site-header :focus-visible,
.hero :focus-visible,
.contact-section :focus-visible,
.site-footer :focus-visible { outline-color: var(--color-accent); }

.skip-link {
    position: fixed;
    top: -5rem;
    left: 1rem;
    z-index: 10;
    padding: .7rem 1rem;
    background: var(--color-ivory);
    color: var(--color-hero-deep);
    border-radius: .3rem;
}
.skip-link:focus { top: 1rem; }

.site-header { color: var(--color-ivory); z-index: 2; }
.site-header--home { position: absolute; inset: 0 0 auto; }
.site-header--inner { background: var(--color-hero-deep); }
.site-header__inner {
    width: min(calc(100% - 2.5rem), 1240px);
    min-height: 5.5rem;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}
.site-header--home .site-header__inner { justify-content: flex-end; }
.site-header__brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; font-weight: 700; white-space: nowrap; }
.site-header__brand img { width: 2.5rem; height: 2.5rem; flex: none; }
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.8rem, 2.5vw, 2rem); }
.site-nav a {
    padding: .55rem 0;
    text-decoration: none;
    font-size: .9rem;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease, color .2s ease;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { border-color: currentColor; }

.home-page main { width: 100%; }
.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 100svh;
    padding: clamp(6rem, 8vw, 7rem) clamp(1.25rem, 4vw, 3rem) clamp(4rem, 5vw, 5rem);
    overflow: hidden;
    color: var(--color-ivory);
    background:
        radial-gradient(ellipse at 12% 0%, rgba(81, 140, 119, .20), transparent 43%),
        radial-gradient(ellipse at 92% 80%, rgba(36, 103, 87, .16), transparent 45%),
        linear-gradient(145deg, var(--color-hero) 0%, var(--color-hero-deep) 58%, #03483f 100%);
}
.hero-wave {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: #a0c7b8;
    stroke-width: 1.25;
    pointer-events: none;
    z-index: 0;
}
.hero-wave--one { opacity: .23; animation: wave-drift-one 25s ease-in-out infinite; }
.hero-wave--two { opacity: .20; animation: wave-drift-two 28s ease-in-out infinite; }
@keyframes wave-drift-one {
    0%, 100% { transform: translate3d(-10px, -3px, 0); }
    50% { transform: translate3d(10px, 3px, 0); }
}
@keyframes wave-drift-two {
    0%, 100% { transform: translate3d(9px, 3px, 0); }
    50% { transform: translate3d(-9px, -3px, 0); }
}
.hero-content {
    position: relative;
    z-index: 1;
    width: min(100%, 1000px);
    margin-inline: auto;
    text-align: center;
}
.hero-identity { margin-bottom: clamp(2.6rem, 4vw, 3.3rem); }
.hero-identity__logo {
    width: clamp(210px, 22vw, 270px);
    height: auto;
    margin: 0 auto .6rem;
}
.hero-identity__signature {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    margin: 0;
    font-size: clamp(.65rem, 1vw, .78rem);
    font-weight: 600;
    letter-spacing: .24em;
    text-transform: uppercase;
}
.hero-identity__signature::before, .hero-identity__signature::after {
    content: "";
    width: clamp(1.5rem, 4vw, 2.8rem);
    border-top: 1px solid rgba(240, 237, 230, .72);
}
.hero-eyebrow {
    margin: 0 0 1.55rem;
    font-size: clamp(.72rem, 1.2vw, .88rem);
    font-weight: 600;
    letter-spacing: .28em;
    text-transform: uppercase;
}
.hero-eyebrow span { margin-inline: .45em; }
.hero h1 {
    max-width: 1000px;
    margin: 0;
    font-size: clamp(2.15rem, 5.4vw, 4.1rem);
    font-weight: 750;
    letter-spacing: -.045em;
    line-height: 1.12;
    text-wrap: balance;
    overflow-wrap: break-word;
}
.hero h1 em {
    color: var(--color-accent);
    font-style: italic;
    font-weight: inherit;
    text-decoration: none;
}
.hero-intro {
    max-width: 720px;
    margin: clamp(1.8rem, 3vw, 2.4rem) auto 0;
    font-size: clamp(1.05rem, 1.7vw, 1.23rem);
    line-height: 1.55;
}
.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: clamp(2rem, 4vw, 2.8rem);
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .9rem;
    min-height: 3.5rem;
    padding: .85rem 1.8rem;
    border: 1.5px solid transparent;
    border-radius: 999px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    line-height: 1.25;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.button span { font-size: 1.15em; line-height: 1; }
.button--primary { background: var(--color-ivory); color: var(--color-hero-deep); }
.button--primary:hover { background: #fff; }
.button--primary:active { background: #dfdcd3; }
.button--outline { border-color: rgba(240, 237, 230, .9); color: var(--color-ivory); }
.button--outline:hover { background: rgba(240, 237, 230, .12); }
.button--outline:active { background: rgba(240, 237, 230, .2); }

.section-container { width: min(calc(100% - 2.5rem), 1220px); margin-inline: auto; }
.expertise {
    padding: clamp(4.5rem, 7vw, 6.5rem) 0 clamp(5rem, 8vw, 7rem);
    background: linear-gradient(155deg, #f0ede6 0%, #f8f6f1 50%, #eeeae2 100%);
    border-top: 1px solid rgba(240, 237, 230, .5);
}
.section-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(.8rem, 3vw, 2rem);
    margin: 0;
    color: var(--color-hero-deep);
    text-align: center;
    font-size: clamp(1rem, 2vw, 1.28rem);
    font-weight: 750;
    letter-spacing: .29em;
    text-transform: uppercase;
}
.section-title::before, .section-title::after {
    content: "";
    width: clamp(1.25rem, 7vw, 5rem);
    border-top: 1px solid var(--color-secondary);
}
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: clamp(3rem, 5vw, 4rem);
}
.expertise-item { min-width: 0; padding: 0 clamp(1rem, 2vw, 2rem); text-align: center; }
.expertise-item + .expertise-item { border-left: 1px solid rgba(70, 93, 88, .22); }
.expertise-item img { width: 5.25rem; height: auto; margin: 0 auto 1.4rem; }
.expertise-item h3 {
    max-width: 15rem;
    margin: 0 auto;
    font-size: clamp(1.15rem, 1.7vw, 1.4rem);
    line-height: 1.3;
    letter-spacing: -.025em;
}
.expertise-item p {
    max-width: 17rem;
    margin: .9rem auto 0;
    color: #3f514d;
    font-size: .94rem;
    line-height: 1.55;
}

.contact-section {
    padding: clamp(4rem, 7vw, 6rem) 0;
    background: var(--color-primary);
    color: var(--color-ivory);
}
.contact-section__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}
.contact-section__inner > div { max-width: 45rem; }
.contact-section__eyebrow {
    margin: 0 0 .8rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}
.contact-section h2 {
    margin: 0;
    font-size: clamp(2rem, 3.5vw, 3rem);
    letter-spacing: -.04em;
    line-height: 1.15;
}
.contact-section p:not(.contact-section__eyebrow) { margin: 1.1rem 0 0; }
.contact-section .button { flex: 0 0 auto; }

.site-footer { padding: 3rem 0 1.6rem; background: #1e3430; color: var(--color-ivory); }
.site-footer__inner { width: min(calc(100% - 2.5rem), 1220px); margin-inline: auto; }
.site-footer__identity { display: flex; flex-direction: column; gap: .15rem; }
.site-footer__identity strong { font-size: 1.1rem; }
.site-footer__identity span { font-size: .88rem; color: #d0dcd3; }
.site-footer__links { display: flex; flex-wrap: wrap; gap: 1rem 2rem; margin-top: 1.7rem; }
.site-footer a { text-underline-offset: .25em; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .7rem 1.5rem;
    margin-top: 2.8rem;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(240, 237, 230, .18);
    color: #d0dcd3;
    font-size: .85rem;
}

body:not(.home-page) main {
    width: min(calc(100% - 2.5rem), 800px);
    min-height: 55vh;
    margin-inline: auto;
    padding: clamp(3rem, 8vw, 6rem) 0;
}
body:not(.home-page) main h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.15; }
.legal-page { max-width: 48rem; }
.legal-page h1 { margin: 0 0 2.5rem; color: var(--color-hero-deep); letter-spacing: -.035em; }
.legal-page section + section { margin-top: 2.5rem; }
.legal-page h2 { margin: 0 0 .8rem; color: var(--color-hero-deep); font-size: clamp(1.2rem, 2.3vw, 1.5rem); line-height: 1.3; }
.legal-page p { margin: 0 0 .9rem; }
.legal-page a { text-underline-offset: .2em; }

@media (max-width: 900px) {
    .expertise-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; }
    .expertise-item:nth-child(odd) { border-left: 0; }
    .expertise-item:nth-child(n + 3) { padding-top: 2.5rem; border-top: 1px solid rgba(70, 93, 88, .22); }
}
@media (max-width: 600px) {
    .site-header__inner { min-height: 4.6rem; }
    .site-header--home .site-header__inner { justify-content: center; }
    .site-header--inner .site-header__inner {
        flex-direction: column;
        justify-content: center;
        gap: 0;
        padding-block: .8rem;
    }
    .site-nav { justify-content: center; gap: 1.15rem; }
    .site-nav a { font-size: .82rem; }
    .hero { padding-top: 7.2rem; padding-bottom: 5rem; }
    .hero-wave--one { opacity: .16; }
    .hero-wave--two { opacity: .14; }
    .hero-identity { margin-bottom: 3.2rem; }
    .hero-identity__signature { letter-spacing: .12em; gap: .5rem; }
    .hero-eyebrow { letter-spacing: .13em; line-height: 1.7; }
    .hero-intro { line-height: 1.5; }
    .hero-actions {
        flex-direction: column;
        align-items: stretch;
        max-width: 22rem;
        margin-inline: auto;
    }
    .expertise-grid { grid-template-columns: 1fr; row-gap: 0; }
    .expertise-item { padding: 0 0 2rem; }
    .expertise-item + .expertise-item,
    .expertise-item:nth-child(n + 3) {
        padding-top: 2rem;
        border-top: 1px solid rgba(70, 93, 88, .22);
        border-left: 0;
    }
    .expertise-item:last-child { padding-bottom: 0; }
    .contact-section__inner { flex-direction: column; align-items: flex-start; }
    .site-footer__bottom { margin-top: 2.2rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-wave--one, .hero-wave--two { animation: none; }
    .button, .site-nav a { transition: none; }
}
