﻿
.page {
    color: #1b1a19;
    /* Single source of truth for contained content width.
       Full-bleed backgrounds may extend past this; content should not. */
    --content-max: 1440px;
}

    /* Reusable container: centers content and caps it at --content-max.
       Apply to any content wrapper inside a full-bleed section. */
    .page .container {
        max-width: var(--content-max);
        margin-inline: auto;
    }

    /* ---------- TYPE ---------- */
    .page .eyebrow {
        text-transform: uppercase;
        letter-spacing: .08em;
        font-size: .8rem;
        font-weight: 600;
        color: #0067c0;
        margin: 0 0 .5rem;
    }

    .page h1 {
        font-size: clamp(2.2rem, 5vw, 3.4rem);
        line-height: 1.05;
        font-weight: 600;
        letter-spacing: -.02em;
        margin: 0 0 1rem;
    }

    .page h2 {
        font-size: clamp(1.6rem, 3vw, 2.2rem);
        font-weight: 600;
        letter-spacing: -.01em;
        margin: 0 0 .5rem;
    }

    .page h3 {
        font-size: 1.15rem;
        font-weight: 600;
        margin: .75rem 0 .35rem;
    }

    .page p.lede {
        font-size: 1.15rem;
        line-height: 1.55;
        color: #3b3a39;
        max-width: none;
        margin: 0;
    }

    /* ---------- SECTION SHELL ---------- */
    .page > section:not(.hero) {
        max-width: var(--content-max);
        margin: 0 auto;
        padding: clamp(3rem, 7vw, 5rem) clamp(1.25rem, 4vw, 3rem);
    }

    .page .section-head {
        margin-bottom: 2rem;
    }



    /* ---------- HERO ---------- */
    .page .hero {
        background: radial-gradient(120% 120% at 85% 8%, rgba(120,170,255,.20) 0%, rgba(120,170,255,0) 46%), linear-gradient(115deg, #f3f7fc 0%, #e6eef9 55%, #eef2fb 100%);
        border-radius: 0 0 12px 12px;
        overflow: hidden;
    }

    .page .hero-inner {
        max-width: var(--content-max);
        margin: 0 auto;
        padding: clamp(2.5rem, 6vw, 5.5rem) clamp(1.25rem, 4vw, 3rem);
        display: grid;
        grid-template-columns: 1fr 1.15fr;
        gap: clamp(2rem, 5vw, 4rem);
        align-items: center;
        color: #fff;
    }

    .page .hero-text {
        min-width: 0;
    }

    .page .hero-inner .eyebrow {
        color: #0067c0;
    }

    .page .hero-inner h1 {
        color: #13294b;
        max-width: 30ch;
        font-size: clamp(2.4rem, 4.5vw, 3.6rem);
        text-wrap: balance;
    }

    .page .hero-inner .lede {
        color: #3b3a39;
    }

    .page .hero-actions {
        display: flex;
        gap: .75rem;
        margin-top: 1.75rem;
        flex-wrap: wrap;
    }

    .page .hero-figure img {
        width: 100%;
        aspect-ratio: 4 / 3;
        object-fit: cover;
        border-radius: 14px;
        box-shadow: 0 24px 60px rgba(0, 20, 50, .45);
        display: block;
    }

@media (max-width: 860px) {
    .page .hero-inner {
        grid-template-columns: 1fr;
    }

    .page .hero-figure {
        display: none;
    }

}
 

    .page .hero-inner .lede {
        max-width: 48ch;
    }

    .page .pagehead {
        max-width: var(--content-max);
        margin: 0 auto;
        padding: clamp(2.5rem, 7vw, 4.5rem) clamp(1.25rem, 4vw, 3rem) 0;
    }

    /* ---------- CARD GRID (services / features) ----------
       Fixed column counts so cards divide evenly (8 -> 4x2, then 2, then 1)
       instead of leaving an orphaned trailing row. */
    .page .card-grid {
        display: grid;
        gap: 1.25rem;
        grid-template-columns: repeat(4, 1fr);
    }

    @media (max-width: 1024px) {
        .page .card-grid {
            grid-template-columns: repeat(2, 1fr);
        }
    }

    @media (max-width: 560px) {
        .page .card-grid {
            grid-template-columns: 1fr;
        }
    }

    .page .tile {
        height: 100%;
    }

        .page .tile p {
            color: #3b3a39;
            line-height: 1.5;
            margin: 0;
            font-size: .95rem;
        }

    /* ---------- GALLERY ---------- */
    .page .gallery-grid {
        display: grid;
        gap: 1.25rem;
        grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    }

    .page .gallery figure {
        margin: 0;
    }

    .page .gallery img {
        width: 100%;
        height: 220px;
        object-fit: cover;
        border-radius: 10px;
        display: block;
    }

    .page .gallery figcaption {
        margin-top: .6rem;
        color: #605e5c;
        font-size: .9rem;
    }

    /* ---------- PROSE (About / Showcase copy) ---------- */
    .page .prose {
        max-width: 64ch;
    }

        .page .prose p {
            font-size: 1.05rem;
            line-height: 1.65;
            color: #3b3a39;
            margin: 0 0 1.1rem;
        }

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

    /* ---------- STACK LIST ---------- */
    .page .stack-list {
        list-style: none;
        padding: 0;
        margin: 1.5rem 0 0;
        display: flex;
        flex-wrap: wrap;
        gap: .6rem;
    }

        .page .stack-list li {
            border: 1px solid #e1dfdd;
            border-radius: 999px;
            padding: .35rem .9rem;
            font-size: .85rem;
            color: #323130;
            background: #faf9f8;
        }

    /* ---------- CONTACT FORM ---------- */
    /* Tighter vertical rhythm on the contact page so the short form fits within a
       typical viewport height instead of forcing a scrollbar. Scoped to .contact-page
       so other pages keep their generous spacing. */
    .page.contact-page .pagehead {
        padding-top: clamp(1.25rem, 4vh, 2.5rem);
    }

    .page.contact-page section.contact {
        padding-top: clamp(0.5rem, 2vh, 1.5rem);
        padding-bottom: clamp(1rem, 3vh, 2rem);
    }

    .page .contact-form {
        max-width: 620px;
    }

    .page .field {
        margin-bottom: 1.1rem;
    }

        .page .field label {
            display: block;
            font-weight: 600;
            font-size: .9rem;
            margin-bottom: .35rem;
        }

    .page .form-msg {
        margin-top: 1rem;
        font-size: .95rem;
    }

        .page .form-msg.ok {
            color: #107c10;
        }

        .page .form-msg.err {
            color: #d13438;
        }

    .page .honeypot {
        position: absolute;
        left: -5000px;
    }

    /* In-flight progress banner shown while the contact form is sending */
    .page .form-progress {
        margin-top: 1rem;
    }

        .page .form-progress .fluent-messagebar {
            border-radius: 8px;
        }

    /* ---------- COMING SOON ---------- */
    .page section.coming-soon {
        text-align: center;
        min-height: 60vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

        .page section.coming-soon .lede {
            max-width: 56ch;
            margin: 0 auto 1.75rem;
        }

        .page section.coming-soon .hero-actions {
            justify-content: center;
        }

    /* ---------- CTA ---------- */
    .page section.cta {
        text-align: center;
    }

        .page section.cta .lede {
            max-width: 60ch;
            margin: 0 auto 1.5rem;
        }

    /* ---------- a11y / quality floor ---------- */
    .page a:focus-visible,
    .page button:focus-visible {
        outline: 2px solid #0067c0;
        outline-offset: 2px;
    }

@media (prefers-reduced-motion: no-preference) {
    .page .hero-inner > * {
        animation: page-rise .6s ease both;
    }

        .page .hero-inner > *:nth-child(2) {
            animation-delay: .06s;
        }

        .page .hero-inner > *:nth-child(3) {
            animation-delay: .12s;
        }

        .page .hero-inner > *:nth-child(4) {
            animation-delay: .18s;
        }
}

@keyframes page-rise {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}


/* Two-column split: text left, media right. Stacks on mobile. */
.split {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1fr);
    gap: clamp(2rem,5vw,4rem);
    align-items: start;
}

.split-text {
    min-width: 0;
}
/* keeps long words/code from overflowing */
.split-media {
    margin: 0;
    position: sticky;
    top: 2rem;
}
    /* optional: image trails as you scroll */
    .split-media img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 14px;
        border: 1px solid rgba(0,0,0,.08);
        box-shadow: 0 10px 30px rgba(2,32,64,.12);
    }

@media (max-width:900px) {
    .split {
        grid-template-columns: 1fr;
    }

    .split-media {
        position: static;
        order: -1;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 46px;
    padding: 0 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: .95rem;
    line-height: 1;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}

    .btn:focus-visible {
        outline: 2px solid #fff;
        outline-offset: 2px;
    }

/* Primary — filled accent */
.btn--primary {
    background: #0067c0;
    color: #fff;
    box-shadow: 0 6px 18px rgba(0,40,90,.35);
}

    .btn--primary:hover {
        background: #0f73d0;
    }

    .btn--primary:active {
        transform: translateY(1px);
    }

/* Ghost / outline — readable on a DARK hero (white text, not black) */
.page .hero .btn--ghost {
    color: #0067c0;
    border-color: rgba(0,103,192,.45);
}

    .page .hero .btn--ghost:hover {
        border-color: #0067c0;
        background: rgba(0,103,192,.06);
    }