:root {
    --ink: #24282c;
    --muted: #5b6167;
    --paper: #f5f4f0;
    --surface: #ffffff;
    --line: rgba(36, 40, 44, .12);
    --accent: #1f5fae;
    --accent-deep: #163f78;
    --gold: #d89b2e;
    --radius: 10px;
    --maxw: 1120px;
    --font-heading: "Poppins", system-ui, -apple-system, Segoe UI, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
p,
dl,
dd {
    margin: 0;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

a {
    color: inherit;
}

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

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

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.wrap {
    max-width: var(--maxw);
    margin-inline: auto;
    padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .75rem 1.4rem;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    min-height: 44px;
    line-height: 1.2;
}

.btn svg {
    width: 19px;
    height: 19px;
    flex-shrink: 0;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-deep);
}

.btn-lg {
    padding: .9rem 1.65rem;
    font-size: 1.05rem;
}

.btn-ghost {
    border-color: var(--line);
    color: var(--ink);
    background: transparent;
}

.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.btn-ghost-light {
    border-color: rgba(255, 255, 255, .35);
    color: #fff;
    background: transparent;
}

.btn-ghost-light:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .08);
}

.btn-text {
    color: var(--accent);
    background: transparent;
    padding-inline: 0;
    text-underline-offset: 4px;
    text-decoration: underline;
    text-decoration-color: rgba(31, 95, 174, .35);
    font-weight: 600;
}

.btn-text:hover {
    text-decoration-color: var(--accent);
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: .85rem;
    gap: 1rem;
}

.wordmark {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -.01em;
    color: var(--ink);
    text-decoration: none;
}

.topbar-nav {
    display: flex;
    align-items: center;
    gap: 1.75rem;
    margin-left: auto;
    margin-right: 1.75rem;
}

.topbar-nav a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: .95rem;
    color: var(--muted);
    text-decoration: none;
    padding: .3rem 0;
    border-bottom: 2px solid transparent;
    transition: border-color .15s ease, color .15s ease;
}

.topbar-nav a:hover,
.topbar-nav a[aria-current="page"] {
    color: var(--ink);
    border-color: var(--accent);
}

@media (max-width: 480px) {
    .topbar-nav {
        display: none;
    }
}

.hero {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding-block: clamp(2.75rem, 7vw, 4.5rem);
}

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

.eyebrow {
    display: block;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .95rem;
    color: var(--accent);
    margin-bottom: .85rem;
}

.hero h1 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(1.7rem, 2.2vw + 1.1rem, 2.5rem);
    line-height: 1.25;
    letter-spacing: -.005em;
    margin-bottom: 1.1rem;
    color: var(--ink);
}

.hero .lede {
    font-size: clamp(1rem, .3vw + .95rem, 1.1rem);
    color: var(--muted);
    max-width: 52ch;
    margin-bottom: 1.9rem;
}

.cta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
}

.services h2,
.about h2,
.contact h2,
.gallery h2 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.55rem, 2vw + 1rem, 2.1rem);
    margin-bottom: .5rem;
    color: var(--ink);
}

.section-lede {
    color: var(--muted);
    font-size: 1.02rem;
    margin-bottom: 0;
}

.services {
    padding-block: clamp(3rem, 7vw, 5rem);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.1rem;
    margin-top: 1.9rem;
}

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.4rem;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.card:hover {
    border-color: rgba(31, 95, 174, .35);
    box-shadow: 0 4px 16px rgba(36, 40, 44, .07);
}

.card .icon {
    width: 38px;
    height: 38px;
    color: var(--accent);
    margin-bottom: 1rem;
}

.card .icon svg {
    width: 100%;
    height: 100%;
}

.card h3 {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.12rem;
    margin-bottom: .45rem;
    color: var(--ink);
}

.card p {
    color: var(--muted);
    font-size: .95rem;
    line-height: 1.55;
}

.gallery {
    padding-block: clamp(3rem, 7vw, 5rem);
    background: var(--paper);
    border-top: 1px solid var(--line);
}

.gallery-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: .9rem;
    margin-top: 1.9rem;
}

.gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-item .badge {
    position: absolute;
    top: .5rem;
    left: .5rem;
    background: var(--accent);
    color: #fff;
    font-size: .72rem;
    font-weight: 600;
    padding: .2rem .5rem;
    border-radius: 100px;
}

.gallery-status {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: .95rem;
}

.about {
    background: var(--surface);
    padding-block: clamp(2.75rem, 6vw, 4.5rem);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.about-inner {
    max-width: 620px;
}

.about p {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--ink);
    margin-bottom: 1rem;
}

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

.contact {
    padding-block: clamp(3rem, 7vw, 5rem);
}

.contact-panel {
    max-width: 640px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) + 4px);
    padding: clamp(1.75rem, 4vw, 2.75rem);
}

.section-lede-light {
    color: var(--muted);
    font-size: 1.02rem;
    margin-bottom: 1.6rem;
}

.contact-list {
    display: grid;
    gap: .85rem;
    margin-top: 1.9rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}

.contact-list>div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    flex-wrap: wrap;
}

.contact-list dt {
    font-size: .82rem;
    color: var(--muted);
}

.contact-list dd {
    font-size: .98rem;
    color: var(--ink);
    font-weight: 500;
}

.contact-list dd a {
    text-decoration-color: rgba(36, 40, 44, .25);
    text-underline-offset: 3px;
}

.contact-list dd a:hover {
    text-decoration-color: var(--ink);
}

.contact-list dd.placeholder {
    color: var(--muted);
}

.footer {
    background: var(--surface);
    color: var(--muted);
    padding-block: 1.5rem;
    font-size: .85rem;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.footer a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--line);
    text-underline-offset: 3px;
}

.footer a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}

@media (min-width:640px) {
    .footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.page-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding-block: clamp(2rem, 5vw, 3rem);
}

.page-header h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: clamp(1.7rem, 2.5vw + 1rem, 2.5rem);
    margin-bottom: .5rem;
    color: var(--ink);
}

.page-header p {
    color: var(--muted);
    font-size: 1.02rem;
    max-width: 56ch;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    margin-bottom: 1.2rem;
}

.back-link:hover {
    text-decoration: underline;
}

.back-link svg {
    width: 16px;
    height: 16px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}