:root {
    --brand: #3d5a80;
    --brand-hover: #324a69;
    --brand-soft: rgba(61, 90, 128, 0.12);
    --text: #2c3d52;
    --muted: #5b6b7c;
    --faint: #8b9aab;
    --line: #d9e1ea;
    --canvas: #eef2f6;
    --band: #f7f9fb;
    --surface: #fff;
    --shadow: 0 18px 40px rgba(61, 90, 128, 0.1);
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --topbar: 3.5rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    color-scheme: light;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--canvas);
    color: var(--text);
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1.05rem;
    line-height: 1.55;
}

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

a:hover,
a:focus {
    color: var(--brand-hover);
}

.atmosphere {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(ellipse 70% 50% at 50% -18%, rgba(61, 90, 128, 0.22), transparent 58%),
        radial-gradient(ellipse 42% 34% at 8% 28%, rgba(61, 90, 128, 0.1), transparent 62%),
        radial-gradient(ellipse 38% 30% at 94% 72%, rgba(61, 90, 128, 0.1), transparent 60%);
    animation: drift 32s var(--ease) infinite alternate;
}

@keyframes drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(-1.5%, 2%, 0) scale(1.05); }
}

.shell {
    width: 100%;
    max-width: 64rem;
    margin: 0 auto;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: var(--topbar);
    background: var(--brand);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--topbar);
    gap: 1rem;
}

.app-brand {
    color: var(--brand);
}

.app-brand:hover,
.app-brand:focus {
    color: var(--brand-hover);
}

.topbar .app-brand,
.site-footer .app-brand {
    text-decoration: none;
}

.topbar .app-brand {
    color: #fff;
}

.topbar .app-brand:hover,
.topbar .app-brand:focus {
    color: rgba(255, 255, 255, 0.85);
}

.topbar-nav {
    display: flex;
    gap: 1.15rem;
}

.topbar-nav a {
    font-size: 0.95rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
}

.topbar-nav a:hover,
.topbar-nav a:focus {
    color: #fff;
}

main {
    position: relative;
    z-index: 1;
}

.hero {
    text-align: center;
    padding: 4rem 1.25rem 3.25rem;
}

.kicker {
    margin: 0 0 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand);
}

.hero-line {
    margin: 0 auto;
    max-width: 14em;
    font-size: clamp(2.15rem, 6vw, 3.6rem);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--text);
}

.hero-sub {
    margin: 1rem auto 0;
    max-width: 28em;
    font-size: 1.15rem;
    color: var(--muted);
}

.apps {
    background: var(--band);
    padding: 3.25rem 0 3.5rem;
    border-top: 1px solid rgba(217, 225, 234, 0.9);
    border-bottom: 1px solid rgba(217, 225, 234, 0.9);
}

.apps-intro {
    margin-bottom: 1.85rem;
    text-align: center;
}

.section-title {
    margin: 0 auto 1rem;
    max-width: 20em;
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.28;
    color: var(--text);
}

.section-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.9rem;
    margin: 0;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--brand);
}

.section-label::before,
.section-label::after {
    content: "";
    width: 3.25rem;
    height: 1px;
    background: var(--line);
}

#apps,
#about,
#contact {
    scroll-margin-top: calc(var(--topbar) + 0.75rem);
}

.app-grid {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.app-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: 1.35rem 1.35rem 1.25rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 16px;
    color: inherit;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset;
    transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s var(--ease);
}

.app-card:hover,
.app-card:focus {
    color: inherit;
    border-color: rgba(61, 90, 128, 0.35);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.app-card:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 3px;
}

.app-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 0.85rem;
}

.app-tile {
    display: grid;
    place-items: center;
    width: 2.85rem;
    height: 2.85rem;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-family: "Orbsam Logo", sans-serif;
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
}

.app-badge {
    padding: 0.22rem 0.55rem;
    border-radius: 999px;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: none;
}

.app-name {
    font-size: 1.2rem;
    line-height: 1.25;
    color: var(--brand);
}

.app-card:hover .app-name,
.app-card:focus .app-name {
    color: var(--brand-hover);
}

.app-desc {
    margin: 0.45rem 0 1.1rem;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.app-go {
    margin-top: auto;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--brand);
    transition: transform 0.28s var(--ease);
}

.app-card:hover .app-go,
.app-card:focus .app-go {
    transform: translateX(4px);
}

.about {
    display: grid;
    gap: 0.7rem;
    padding: 1.75rem 1.25rem 2rem;
}

.about-card {
    padding: 0.85rem 1rem 0.95rem;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(217, 225, 234, 0.95);
    border-radius: 12px;
}

.about-card p {
    margin: 0;
}

.about-card .kicker {
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
}

.people {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.people li + li {
    padding-top: 0.65rem;
    border-top: 1px solid rgba(217, 225, 234, 0.95);
}

.about-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.about-role {
    margin-top: 0.1rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.site-footer {
    position: relative;
    z-index: 1;
    padding: 1.6rem 0 1.75rem;
    background: var(--brand);
    color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 3.25rem;
}

.footer-inner .app-brand {
    justify-self: start;
}

.footer-inner p {
    justify-self: center;
    grid-column: 2;
}

.site-footer .app-brand {
    color: #fff;
}

.site-footer .app-brand:hover,
.site-footer .app-brand:focus {
    color: #e8eef4;
}

.site-footer p {
    margin: 0;
    font-size: 0.82rem;
}

.site-footer p a {
    color: inherit;
}

.site-footer p a:hover,
.site-footer p a:focus {
    color: #fff;
}

@media (min-width: 40rem) {
    .app-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1.15rem;
    }

    .about {
        grid-template-columns: 1.4fr 1fr;
        gap: 0.75rem;
        align-items: stretch;
    }

    .people {
        grid-template-columns: 1fr 1fr;
        gap: 0.75rem;
    }

    .people li + li {
        padding-top: 0;
        padding-left: 0.75rem;
        border-top: 0;
        border-left: 1px solid rgba(217, 225, 234, 0.95);
    }

    .hero {
        padding-top: 5.25rem;
        padding-bottom: 4rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .atmosphere {
        animation: none;
    }

    .app-card,
    .app-go {
        transition: none;
    }

    .app-card:hover,
    .app-card:focus {
        transform: none;
    }

    .app-card:hover .app-go,
    .app-card:focus .app-go {
        transform: none;
    }
}
