:root {
    --bg: #eef5ff;
    --surface: #ffffff;
    --surface-soft: #dff1ef;
    --text: #19324d;
    --muted: #526d86;
    --line: #c8d9ec;
    --accent: #2f75b6;
    --accent-soft: #67b7b1;
    --shadow: 0 12px 30px rgba(35, 76, 118, 0.1);
    --radius: 8px;
    --width: 980px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(103, 183, 177, 0.12), transparent 26%),
        radial-gradient(circle at top right, rgba(47, 117, 182, 0.14), transparent 30%),
        linear-gradient(180deg, #f7fbff 0%, #e8f4f4 100%);
    line-height: 1.6;
}

a {
    color: var(--accent);
}

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

.wrap {
    width: min(calc(100% - 32px), var(--width));
    margin: 0 auto;
}

.site-header {
    position: sticky;
    top: 0;
    background: rgba(238, 245, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 49, 69, 0.08);
}

.header-inner,
.nav,
.footer-inner {
    display: flex;
    align-items: center;
}

.header-inner,
.footer-inner {
    justify-content: space-between;
    gap: 20px;
    padding: 16px 0;
}

.brand {
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: 0.92rem;
}

.nav {
    gap: 16px;
    flex-wrap: wrap;
}

.nav a,
.footer-inner a {
    color: var(--muted);
    text-decoration: none;
}

.hero {
    padding: 72px 0 30px;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--accent);
    text-shadow: 0 0 0 rgba(0, 0, 0, 0);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
    font-weight: 700;
}

h1 {
    margin-bottom: 16px;
    font-size: clamp(2.6rem, 7vw, 4.5rem);
    line-height: 0.98;
    letter-spacing: -0.05em;
}

h2 {
    margin-bottom: 8px;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    letter-spacing: -0.04em;
}

h3 {
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.intro,
.section-heading p,
.card p,
.footer-inner p {
    color: var(--muted);
}

.intro {
    max-width: 40rem;
    font-size: 1.05rem;
}

.section {
    padding: 20px 0 0;
}

.section-heading {
    margin-bottom: 18px;
}

.about-grid,
.cards {
    display: grid;
    gap: 20px;
}

.about-grid {
    grid-template-columns: 220px minmax(0, 1fr);
    align-items: start;
}

.cards.three-up {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards.two-up {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.photo-placeholder {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card {
    padding: 24px;
}

.photo-placeholder {
    min-height: 220px;
    display: grid;
    place-items: center;
    padding: 20px;
    text-align: center;
    color: var(--muted);
    background:
        linear-gradient(160deg, rgba(47, 117, 182, 0.2), rgba(103, 183, 177, 0.24)),
        var(--surface-soft);
}

.project-card h3 a {
    color: var(--text);
    text-decoration: none;
}

.legal-wrap {
    padding-top: 36px;
    padding-bottom: 32px;
}

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

.site-footer {
    padding: 36px 0 48px;
}

.footer-inner {
    border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
    .about-grid,
    .cards.three-up,
    .cards.two-up {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .header-inner,
    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero {
        padding-top: 44px;
    }
}
