:root {
    --text-dim: #465766;
    --text-muted: #667786;
    --border: #c9d0d6;
    --border-soft: #e0e5e9;
}

body {
    animation: pageDissolveIn 220ms ease-out both;
}

body.page-leaving {
    opacity: 0;
    filter: blur(3px);
    transform: translateY(2px);
    transition: opacity 150ms ease, filter 150ms ease, transform 150ms ease;
}

@keyframes pageDissolveIn {
    from {
        opacity: 0;
        filter: blur(3px);
        transform: translateY(2px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

.project-card p,
.cap-item p,
.service-item p,
.content-block p,
.contact-nudge,
.hiw-item,
.auth-consent,
.form-note,
.page-hero p {
    color: #465766;
}

.project-proof,
.footer-copy,
.stat-label {
    color: #56697a;
}

a.cap-item,
a.service-item,
a.arch-node,
a.contact-card {
    cursor: pointer;
}

a.cap-item,
a.service-item,
a.contact-card {
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

a.cap-item:hover,
a.service-item:hover,
a.contact-card:hover {
    transform: translateY(-3px);
    border-color: #9daab6;
    box-shadow: var(--shadow-md);
}

a.cap-item:focus-visible,
a.service-item:focus-visible,
a.project-card:focus-visible,
a.arch-node:focus-visible,
a.contact-card:focus-visible,
.btn:focus-visible,
nav a:focus-visible,
.footer-links a:focus-visible,
.sample-card:focus-visible {
    outline: 3px solid rgba(20, 110, 180, 0.34);
    outline-offset: 3px;
}

.arch-node {
    transition: transform 150ms ease, border-color 150ms ease, background 150ms ease;
}

a.arch-node:hover {
    transform: translateY(-1px);
    border-color: rgba(255,255,255,0.26);
    background: rgba(23, 50, 77, 0.98);
}

.service-cta {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: 1rem;
    color: #0d5f91;
    font-size: .76rem;
    font-weight: 700;
}

.service-cta::after {
    content: '\2192';
    transition: transform 150ms ease;
}

.service-item:hover .service-cta::after {
    transform: translateX(3px);
}

.card-hint {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .65rem;
    color: #486174;
    font-size: .72rem;
    font-weight: 650;
}

.card-hint::after {
    content: '\2192';
}

.profile-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 2rem;
    align-items: start;
    margin-bottom: 2.5rem;
}

.profile-photo-shell {
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: linear-gradient(145deg, #0b1f33, #17324d);
    box-shadow: var(--shadow-md);
    aspect-ratio: 4 / 5;
}

.profile-photo-shell img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.contact-card .contact-val a {
    color: #0d5f91;
    font-weight: 700;
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none !important;
    }

    body.page-leaving {
        opacity: 1 !important;
        filter: none !important;
        transform: none !important;
        transition: none !important;
    }
}

@media (max-width: 760px) {
    .profile-intro {
        grid-template-columns: 1fr;
    }

    .profile-photo-shell {
        max-width: 260px;
    }
}
