@font-face {
    font-family: Montserrat;
    src: url('montserrat-latin.woff2') format('woff2');
    font-style: normal;
    font-weight: 600 800;
    font-display: swap;
}

:root {
    --ink: #12334f;
    --navy: #003870;
    --blue: #00558f;
    --muted: #3a566e;
    --blue-tint: #e8f5fb;
    --canvas: #f7fbfd;
    --line: #cbdfe9;
    --accent: #327919;
    --green: #39791b;
    --green-hover: #286014;
    --lime: #6baa24;
    --display: Montserrat, 'Segoe UI', sans-serif;
    --wave: linear-gradient(100deg, #004f87 12%, #188ab4 56%, #6baa24 100%);
}

h1, h2 {
    font-family: var(--display);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.eyebrow { color: var(--green); }
.site-header { box-shadow: 0 4px 22px #0038700a; }
.site-name strong { font-family: var(--display); }
.button,
.portal-link { border-radius: .6rem; }
.button:not(.button-secondary), .hero .button, .project-band .button {
    background: var(--green);
    color: #fff;
}
.button:not(.button-secondary):hover, .hero .button:hover, .project-band .button:hover {
    background: var(--green-hover);
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: clamp(.8rem, 2vw, 1.45rem);
    background: var(--paper);
    box-shadow: 0 14px 40px #00387012;
}
.hero-copy {
    z-index: 1;
    padding-block: clamp(2.35rem, 5vw, 4.6rem);
    color: var(--navy);
    background: linear-gradient(105deg, #fff 42%, #f4fbfd 100%);
}
.hero h1 { max-width: 17ch; font-size: clamp(2.35rem, 4.15vw, 4.45rem); }
.hero h1::after {
    display: block;
    width: 4rem;
    height: .28rem;
    margin-top: 1.15rem;
    border-radius: 1rem;
    background: linear-gradient(90deg, var(--green), #abd477);
    content: '';
}
.hero-intro { color: var(--muted); }
.hero-area { color: var(--green); }
.hero :focus-visible { outline-color: var(--accent); }
.hero-media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #f4fbfd, #f4fbfd00 25%);
    content: '';
    pointer-events: none;
}
.hero::after {
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    height: clamp(.95rem, 2.1vw, 1.85rem);
    background: var(--wave);
    clip-path: ellipse(83% 100% at 72% 105%);
    content: '';
    pointer-events: none;
}

.service-card {
    border: 1px solid var(--line);
    border-radius: 1rem;
    box-shadow: 0 6px 19px #0038700a;
}
.service-card:nth-child(4n) { border-top-color: var(--line); }
.service-card h3 { color: var(--navy); font-family: var(--display); font-weight: 700; }
.service-card h3::before {
    display: block;
    width: 2.35rem;
    height: .22rem;
    margin-bottom: .8rem;
    border-radius: 1rem;
    background: var(--blue);
    content: '';
}
.service-card:nth-child(even) h3::before { background: var(--lime); }
.service-card:focus-within, .service-card:hover { background: var(--blue-tint); }
.card-link { border-color: transparent; background: var(--blue); color: #fff; }
.service-card:nth-child(even) .card-link { background: var(--green); }

.page-heading, .about-band {
    background: radial-gradient(ellipse at top right, #c9eafa, transparent 68%), var(--blue-tint);
    color: var(--navy);
}
.page-heading h1 { max-width: 19ch; font-size: clamp(2.3rem, 5vw, 4.4rem); }
.about-photo, .project-photos figure, .contact-form { border-radius: .85rem; }
.project-photos figure { overflow: hidden; }
.contact-form { box-shadow: 0 8px 25px #0038700c; }
.project-band, .site-footer { background: linear-gradient(115deg, #00558f, #003870 55%, #032b56); }
.project-copy h3 { color: #d5edba; }
.site-footer { position: relative; }
.site-footer::before {
    position: absolute;
    inset: 0 0 auto;
    height: .3rem;
    background: var(--wave);
    content: '';
}

@media (max-width: 800px) {
    .hero-copy { padding-block: clamp(1.95rem, 6vw, 3rem); }
    .hero h1 { max-width: 19ch; }
    .hero-media::after { background: linear-gradient(180deg, #f4fbfd, transparent 30%); }
}

@media (max-width: 520px) {
    .hero h1 { font-size: clamp(1.95rem, 7.15vw, 2.55rem); }
}
