:root {
    --black: #080808;
    --charcoal: #111111;
    --surface: #171717;
    --text: #e8e4dc;
    --muted: #8f8b83;
    --accent: #b59a63;
    --border: #292929;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--black);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

header,
main,
footer {
    width: min(1100px, 90%);
    margin: 0 auto;
}

header {
    padding: 48px 0 32px;
    border-bottom: 1px solid var(--border);
}

header h1 {
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: 0.35em;
}

header p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

main {
    padding: 80px 0;
}

section {
    margin-bottom: 96px;
}

h2 {
    margin-bottom: 24px;
    font-size: 2rem;
    font-weight: 400;
    letter-spacing: 0.04em;
}

h3 {
    margin-bottom: 8px;
    font-weight: 500;
}

p {
    max-width: 680px;
    color: var(--muted);
}

a {
    color: var(--accent);
    text-decoration: none;
}

footer {
    padding: 32px 0 48px;
    border-top: 1px solid var(--border);
    font-size: 0.8rem;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    color: var(--text);
    font-size: 1.35rem;
    font-weight: 500;
    letter-spacing: 0.35em;
}

.site-header nav {
    display: flex;
    gap: 32px;
}

.site-header nav a {
    color: var(--muted);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    transition: color 0.2s ease;
}

.site-header nav a:hover {
    color: var(--accent);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.project {
    min-height: 240px;
    padding: 28px;
    border: 1px solid var(--border);
    background: var(--surface);
    transition:
        transform 0.25s ease,
        border-color 0.25s ease;
}

.project:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.project-number {
    margin-bottom: 48px;
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

.project h3 {
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.project p:last-child {
    font-size: 0.9rem;
}

/* The lower sections use a quieter, editorial rhythm than the software cards. */
.eyebrow {
    margin-bottom: 20px;
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.works {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 0;
    padding: 88px 0 92px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.works .section-heading h2 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.16;
    letter-spacing: -0.025em;
}

.works-content {
    align-self: end;
    padding-bottom: 5px;
}

.works-intro {
    margin-bottom: 28px;
    color: var(--text);
    font-size: 1.25rem;
    line-height: 1.35;
}

.works-detail {
    padding-left: 22px;
    border-left: 1px solid var(--accent);
}

.works-detail p {
    max-width: 390px;
}

.works-note {
    margin-top: 26px;
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.about {
    margin-bottom: 0;
    padding: 72px 0 32px;
}

.about h2 {
    margin: 0 0 48px;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: end;
}

.about-statement {
    color: var(--accent);
    font-size: 1.25rem;
    line-height: 1.4;
}

.about-copy {
    max-width: 440px;
    line-height: 1.8;
}

.site-footer {
    padding-top: 40px;
    padding-bottom: 44px;
}

.footer-main {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: baseline;
}

.footer-name {
    color: var(--text);
    font-size: 1rem;
    letter-spacing: 0.04em;
}

.site-footer a {
    font-size: 0.9rem;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.footer-bottom {
    margin-top: 64px;
    font-size: 0.75rem;
}

@media (max-width: 700px) {
    .works,
    .about-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .works {
        padding: 72px 0 80px;
    }

    .about {
        padding-top: 72px;
    }

    .about h2 {
        margin-bottom: 48px;
    }

    .footer-main {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .footer-bottom {
        margin-top: 48px;
    }
}


/* Product pages */
.product-page {
    padding-top: 0;
}

.product-hero {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: 0;
    border-bottom: 1px solid var(--border);
}

.product-hero h1 {
    max-width: 780px;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.product-lede {
    max-width: 620px;
    margin-top: 32px;
    font-size: 1.1rem;
    line-height: 1.7;
}

.product-status {
    margin-top: 28px;
    color: var(--accent);
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.product-overview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    margin-bottom: 0;
    padding: 96px 0;
    border-bottom: 1px solid var(--border);
}

.product-overview h2 {
    max-width: 420px;
    margin: 0;
    line-height: 1.15;
    letter-spacing: -0.03em;
}

.product-copy {
    align-self: end;
}

.product-copy p {
    max-width: 460px;
    line-height: 1.8;
}

.product-capabilities {
    margin-bottom: 0;
    padding: 96px 0;
    border-bottom: 1px solid var(--border);
}

.capability-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
}

.capability-grid article {
    min-height: 220px;
    padding: 28px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.capability-grid span {
    display: block;
    margin-bottom: 52px;
    color: var(--accent);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

.capability-grid h3 {
    font-size: 1.1rem;
}

.capability-grid p {
    max-width: 390px;
    font-size: 0.9rem;
}

.product-close {
    margin-bottom: 0;
    padding: 96px 0 40px;
}

.product-close h2 {
    margin-bottom: 40px;
    line-height: 1.12;
    letter-spacing: -0.03em;
}

.project-link {
    display: block;
    color: inherit;
}

.project-link .project {
    color: var(--text);
}

@media (max-width: 700px) {
    .product-hero {
        min-height: 440px;
    }

    .product-overview,
    .capability-grid {
        grid-template-columns: 1fr;
    }

    .product-overview,
    .product-capabilities,
    .product-close {
        padding-top: 72px;
        padding-bottom: 72px;
    }
}


.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 24px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--muted);
    font-size: inherit;
}

.legal-page {
    padding-top: 104px;
    padding-bottom: 104px;
}

.legal-page > h1 {
    margin-bottom: 8px;
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.05em;
}

.legal-updated {
    margin-bottom: 72px;
    font-size: 0.8rem;
}

.legal-page section {
    max-width: 720px;
    margin-bottom: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.legal-page section h2 {
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.legal-page section p + p {
    margin-top: 16px;
}

@media (max-width: 700px) {
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .legal-page {
        padding-top: 72px;
        padding-bottom: 72px;
    }
}
