/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.6;
    color: #1F2937;
    background: #F8F4ED;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: #2C5F5D; text-decoration: none; }
a:hover { color: #1F2937; }

h1, h2, h3, h4 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 500;
    color: #1F2937;
    margin: 0 0 0.5em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; font-weight: 500; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.15; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.35rem; line-height: 1.3; margin-bottom: 0.5em; }
p { margin: 0 0 1em; }

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 28px;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2C5F5D;
    margin: 0 0 1em;
}

.lede {
    font-size: 1.15rem;
    color: #4B5563;
    max-width: 640px;
    line-height: 1.55;
}

.section-note {
    color: #6B7280;
    margin-top: 0.5em;
    margin-bottom: 3em;
    max-width: 640px;
}

/* ---------- Header ---------- */
.site-header {
    border-bottom: 1px solid #E8E2D2;
    background: #F8F4ED;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 22px;
    padding-bottom: 22px;
}
.wordmark {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    font-size: 1.15rem;
    color: #1F2937;
    letter-spacing: -0.01em;
}
.wordmark:hover { color: #2C5F5D; }
.header-link {
    font-size: 0.95rem;
    color: #4B5563;
}
.header-link:hover { color: #2C5F5D; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 0.98rem;
    transition: all 0.18s ease;
    border: 1px solid transparent;
}
.btn-primary {
    background: #1F2937;
    color: #F8F4ED;
}
.btn-primary:hover {
    background: #2C5F5D;
    color: #F8F4ED;
}
.btn-secondary {
    background: transparent;
    color: #1F2937;
    border-color: #1F2937;
}
.btn-secondary:hover {
    background: #1F2937;
    color: #F8F4ED;
}
.btn-large {
    padding: 18px 36px;
    font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.hero {
    padding: 100px 0 90px;
}
.hero h1 {
    max-width: 920px;
    margin-bottom: 0.55em;
}
.hero .lede {
    font-size: 1.2rem;
    max-width: 700px;
    margin-bottom: 2.2em;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ---------- About ---------- */
.about {
    padding: 80px 0;
    border-top: 1px solid #E8E2D2;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 80px;
    align-items: start;
}
.about-grid h2 { margin-bottom: 0; }
.about-text p {
    color: #4B5563;
    line-height: 1.7;
    font-size: 1.02rem;
}
.services {
    list-style: none;
    padding: 0;
    margin: 1.8em 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 24px;
    column-gap: 24px;
}
.services li {
    color: #1F2937;
    font-size: 0.98rem;
    padding-left: 18px;
    position: relative;
}
.services li::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2C5F5D;
    position: absolute;
    left: 0;
    top: 11px;
}

/* ---------- Work / Demos ---------- */
.work {
    padding: 90px 0;
    border-top: 1px solid #E8E2D2;
}
.work > .container > h2 {
    max-width: 820px;
    margin-bottom: 0.5em;
}

.sector {
    margin-top: 56px;
}
.sector-title {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #4B5563;
    padding-bottom: 14px;
    border-bottom: 1px solid #E8E2D2;
    margin-bottom: 28px;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.demo-card {
    background: #FFFFFF;
    border: 1px solid #E8E2D2;
    border-radius: 6px;
    overflow: hidden;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.demo-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.10);
    border-color: #2C5F5D;
    color: inherit;
}
.demo-image {
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: #E8E2D2;
}
.demo-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.demo-body h4 {
    margin-bottom: 0.4em;
}
.demo-body p {
    color: #4B5563;
    font-size: 0.96rem;
    line-height: 1.55;
    flex: 1;
    margin-bottom: 18px;
}
.demo-link {
    font-size: 0.92rem;
    font-weight: 500;
    color: #2C5F5D;
    letter-spacing: 0.02em;
}
.demo-card:hover .demo-link {
    color: #1F2937;
}

/* ---------- Contact ---------- */
.contact {
    padding: 100px 0 110px;
    border-top: 1px solid #E8E2D2;
    text-align: center;
}
.contact h2 {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}
.contact .lede {
    margin: 0.6em auto 2em;
    text-align: center;
}

/* ---------- Footer ---------- */
.site-footer {
    background: #1F2937;
    color: #C9C4B5;
    padding: 32px 0;
    font-size: 0.92rem;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.site-footer p { margin: 0; }
.site-footer a { color: #E8E2D2; }
.site-footer a:hover { color: #FFFFFF; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .demo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero { padding: 70px 0 60px; }
    .about, .work { padding: 64px 0; }
    .contact { padding: 70px 0 80px; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    .demo-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .services {
        grid-template-columns: 1fr;
    }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { text-align: center; }
    .header-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
        padding-top: 18px;
        padding-bottom: 18px;
    }
}
