/* MrSatDev chrome and about page.
   z-index: 100 header, 200 ad-block notice. */

#header-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    min-height: 64px;
    background: #f7f7f6;
    border-bottom: 1px solid rgba(24, 24, 27, 0.08);
    font-family: Dosis, "Segoe UI", sans-serif;
}

#header-navbar .navbar {
    display: flex;
    align-items: center;
    min-height: 64px;
    padding: 0 12px;
}

#header-navbar .nav-link {
    display: flex;
    align-items: center;
    white-space: nowrap;
    padding: 8px;
}

#header-navbar .navbar-nav,
#header-navbar .msd-search,
#header-navbar .dropdown,
#header-navbar .msd-signin,
#header-navbar .msd-account {
    align-items: center;
}

@media (min-width: 992px) {
    #header-navbar .navbar-collapse {
        display: flex !important;
        align-items: center;
    }

    #header-navbar .navbar-nav,
    #header-navbar .msd-search,
    #header-navbar .dropdown,
    #header-navbar .msd-signin,
    #header-navbar .msd-account {
        display: flex;
    }

    #header-navbar .nav-link {
        height: 64px;
        padding-top: 0;
        padding-bottom: 0;
    }

    #header-navbar .header-special-button {
        display: flex;
        align-items: center;
        align-self: center;
        height: 36px;
    }

    #header-navbar .header-special-button .nav-link {
        height: 36px;
    }

    #header-navbar #header-search-box {
        align-self: center;
    }
}

#header-navbar .navbar-toggler {
    align-self: center;
    margin-top: 0;
    margin-bottom: 0;
}

.msd-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    height: 64px;
    margin: 0 12px 0 0;
    padding: 0;
    font-size: 0;
    line-height: 0;
    flex: 0 0 auto;
}

.msd-brand-plate {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0c0c0c;
    border-radius: 12px;
    padding: 0 10px;
    height: 40px;
    line-height: 0;
}

.msd-brand-plate img {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

#header-navbar .header-primary-text {
    font-family: Dosis, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #3f3f46;
    transition: color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

#header-navbar .header-primary-text:hover {
    color: #c2410c;
}

#header-navbar .header-disable,
#header-navbar .header-active {
    margin-left: 2px;
    margin-right: 2px;
}

#header-navbar .header-active .header-primary-text {
    color: #c2410c;
    box-shadow: inset 0 -2px 0 #ea580c;
}

#header-navbar .header-special-button {
    border-radius: 999px;
    background: #c2410c;
    margin-left: 8px;
}

#header-navbar .header-special-button .header-primary-text {
    color: #fff;
    padding-left: 14px;
    padding-right: 14px;
}

#header-navbar .header-special-button:hover {
    background: #9a3412;
}

#header-navbar .header-special-button .header-primary-text:hover {
    color: #fff;
}

#header-navbar .msd-signin {
    border-radius: 999px;
    border: 1px solid rgba(24, 24, 27, 0.16);
    color: #18181b;
    font-family: Dosis, "Segoe UI", sans-serif;
    font-weight: 600;
    font-size: 14px;
    margin-right: 8px;
    padding: 6px 14px;
    background: transparent;
}

#header-navbar .msd-signin:hover {
    color: #c2410c;
    border-color: #ea580c;
    background: #fff7ed;
}

#header-navbar .msd-account {
    border-radius: 999px;
    border: 1px solid rgba(24, 24, 27, 0.16);
    color: #18181b;
    font-family: Dosis, "Segoe UI", sans-serif;
    font-weight: 600;
    background: #fff;
}

#header-navbar .header-dropdown-item-text:hover {
    background: #fff7ed;
    color: #c2410c;
}

#header-navbar .dropdown-menu {
    border: 1px solid rgba(24, 24, 27, 0.08);
    border-radius: 16px;
    padding: 8px;
    box-shadow: 0 16px 40px rgba(24, 24, 27, 0.08);
}

#header-navbar .navbar-nav {
    flex-wrap: nowrap;
    align-items: center;
}

#header-navbar .msd-search {
    width: 160px;
    flex: 0 1 160px;
    max-width: 100%;
    padding: 0;
    margin-left: 8px;
}

#header-navbar .msd-signin,
#header-navbar .msd-account {
    flex: 0 0 auto;
    white-space: nowrap;
}

#header-navbar .header-input-search {
    max-height: 500px;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    width: 280px;
    margin: 0;
    background: #fff;
}

#header-navbar #header-search-box {
    border-radius: 999px;
    border: 1px solid rgba(24, 24, 27, 0.12);
    margin: 0;
    padding: 8px 14px;
    font-weight: 500;
    font-family: Dosis, "Segoe UI", sans-serif;
    background: #fff;
}

#header-navbar #header-search-box:focus {
    border-color: #ea580c;
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.18);
}

@media (max-width: 767px) {
    #header-navbar .header-hidden {
        display: none;
    }

    #header-navbar .header-input-search,
    #header-navbar .msd-search {
        width: 100%;
    }
}

.msd-adnote {
    display: none;
    position: fixed;
    z-index: 200;
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    max-width: 640px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid rgba(24, 24, 27, 0.08);
    border-radius: 16px;
    box-shadow: 0 16px 40px rgba(24, 24, 27, 0.08);
    padding: 16px 40px 16px 16px;
}

.msd-adnote p {
    margin: 0;
    color: #3f3f46;
    font-family: Dosis, "Segoe UI", sans-serif;
}

.msd-adnote strong {
    color: #18181b;
}

.msd-adnote-close {
    position: absolute;
    top: 8px;
    right: 12px;
    color: #71717a;
    font-size: 22px;
    cursor: pointer;
    background: none;
    border: 0;
    line-height: 1;
}

.msd-footer {
    position: relative;
    z-index: 10;
    background: #f4f4f5;
    border-top: 1px solid rgba(24, 24, 27, 0.08);
    color: #3f3f46;
    font-family: Dosis, "Segoe UI", sans-serif;
    padding: 48px 0 28px;
}

.msd-footer h2 {
    color: #18181b;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
    margin-bottom: 14px;
}

.msd-footer p,
.msd-footer li,
.msd-footer a {
    color: #3f3f46;
    font-size: 14px;
    line-height: 1.6;
}

.msd-footer a:hover {
    color: #c2410c;
    text-decoration: none;
}

.msd-footer .row {
    align-items: center;
}

.msd-footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    margin-bottom: 12px;
    padding: 0 10px;
    background: #0c0c0c;
    border-radius: 12px;
    line-height: 0;
}

.msd-footer-logo img {
    height: 28px;
    width: auto;
    display: block;
    object-fit: contain;
    object-position: center;
}

.msd-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.msd-footer ul li {
    margin-bottom: 6px;
}

.msd-footer-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.msd-footer-socials a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-radius: 999px;
    border: 1px solid rgba(24, 24, 27, 0.12);
    background: #fff;
    color: #18181b;
    padding: 6px 12px;
    font-weight: 600;
}

.msd-footer-socials a:hover {
    border-color: #ea580c;
    color: #c2410c;
}

.msd-footer-base {
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(24, 24, 27, 0.08);
    text-align: center;
}

.msd-about {
    background: #f4f4f5;
    color: #18181b;
    font-family: Dosis, "Segoe UI", sans-serif;
    padding: 96px 16px 72px;
}

.msd-wrap {
    max-width: 1120px;
    margin: 0 auto;
}

.msd-about h1,
.msd-about h2,
.msd-about h3,
.msd-about p {
    font-family: Dosis, "Segoe UI", sans-serif;
}

.msd-section {
    margin-top: 72px;
}

.msd-eyebrow {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 600;
    background: #fff7ed;
    color: #c2410c;
    margin-bottom: 16px;
}

.msd-hero {
    display: grid;
    gap: 28px;
    align-items: center;
}

.msd-hero h1 {
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 700;
    margin: 0 0 16px;
}

.msd-lead {
    font-size: 17px;
    line-height: 1.6;
    color: #3f3f46;
    max-width: 52ch;
    margin: 0 0 24px;
}

.msd-about strong {
    font-weight: 700;
    color: #18181b;
}

.msd-h-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-right: 10px;
    border-radius: 12px;
    font-size: 16px;
    vertical-align: -6px;
}

.msd-h-ico-orange {
    background: #fff7ed;
    color: #c2410c;
}

.msd-h-ico-blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.msd-ico {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    font-size: 18px;
}

.msd-ico-orange { background: #ffedd5; color: #c2410c; }
.msd-ico-teal { background: #ccfbf1; color: #0f766e; }
.msd-ico-blue { background: #dbeafe; color: #1d4ed8; }
.msd-ico-amber { background: #fef3c7; color: #b45309; }
.msd-ico-green { background: #dcfce7; color: #15803d; }
.msd-ico-rose { background: #ffe4e6; color: #be123c; }
.msd-ico-sky { background: #e0f2fe; color: #0369a1; }
.msd-ico-ink { background: rgba(255, 255, 255, 0.14); color: #fdba74; }

.msd-tone-orange { background: #fff7ed; }
.msd-tone-teal { background: #f0fdfa; }
.msd-tone-amber { background: #fffbeb; }
.msd-tone-green { background: #f0fdf4; }
.msd-tone-rose { background: #fff1f2; }
.msd-tone-sky { background: #f0f9ff; }
.msd-tone-blue { background: #eff6ff; }

.msd-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 8px 0 14px;
}

.msd-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 5px 12px;
    font-weight: 700;
    font-size: 14px;
}

.msd-pill-orange { background: #ffedd5; color: #c2410c; }
.msd-pill-teal { background: #ccfbf1; color: #0f766e; }
.msd-pill-blue { background: #dbeafe; color: #1d4ed8; }

.msd-facts {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.msd-inline-ico {
    color: #c2410c;
    margin-right: 6px;
}

.msd-cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #c2410c;
    color: #fff;
    border-radius: 999px;
    padding: 6px 6px 6px 20px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.msd-cta:hover,
.msd-cta:focus {
    color: #fff;
    text-decoration: none;
}

.msd-cta:active {
    transform: scale(0.98);
}

.msd-cta-icon {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.msd-cta:hover .msd-cta-icon {
    transform: translate(2px, -1px) scale(1.05);
}

.msd-shell {
    background: rgba(24, 24, 27, 0.04);
    border: 1px solid rgba(24, 24, 27, 0.06);
    border-radius: 24px;
    padding: 6px;
    height: 100%;
}

.msd-core {
    background: #fff;
    border-radius: 18px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 24px;
    height: 100%;
}

.msd-core img.msd-hero-shot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}

.msd-founder,
.msd-split,
.msd-site,
.msd-services,
.msd-team,
.msd-contact {
    display: grid;
    gap: 16px;
}

.msd-portrait {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 14px;
    background: #fff7ed;
    display: block;
}

.msd-role {
    color: #c2410c;
    font-weight: 600;
    margin: 6px 0 12px;
}

.msd-muted {
    color: #3f3f46;
    line-height: 1.65;
}

.msd-about h2 {
    font-size: 32px;
    letter-spacing: -0.03em;
    font-weight: 700;
    margin: 0 0 12px;
}

.msd-about h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 8px;
}

.msd-link {
    display: inline-flex;
    margin-top: 12px;
    color: #c2410c;
    font-weight: 600;
    text-decoration: none;
}

.msd-link:hover {
    color: #9a3412;
    text-decoration: none;
}

.msd-svc-web .msd-core {
    background: #fff7ed;
}

.msd-svc-custom .msd-core {
    background: #18181b;
    color: #fafafa;
}

.msd-svc-custom .msd-muted {
    color: #d4d4d8;
}

.msd-person {
    display: block;
    color: inherit;
    text-decoration: none;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.msd-person:hover {
    color: inherit;
    text-decoration: none;
    transform: translateY(-3px);
}

.msd-person-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 14px;
    align-items: center;
}

.msd-person-row img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 14px;
}

.msd-quote {
    font-size: 13px;
    color: #52525b;
    margin: 8px 0 0;
}

.msd-socials {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.msd-socials a {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(24, 24, 27, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #18181b;
    text-decoration: none;
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), color 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.msd-socials a:hover {
    color: #c2410c;
    border-color: #ea580c;
    transform: translateY(-2px);
    text-decoration: none;
}

.msd-note {
    margin-top: 16px;
}

.msd-note .msd-core {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

@keyframes msd-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.msd-rise {
    animation: msd-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (min-width: 768px) {
    .msd-about {
        padding: 112px 24px 96px;
    }

    .msd-hero h1 {
        font-size: 56px;
    }

    .msd-hero {
        grid-template-columns: 1.15fr 0.85fr;
        gap: 40px;
    }

    .msd-founder,
    .msd-split,
    .msd-contact {
        grid-template-columns: 1fr 1.3fr;
        gap: 28px;
        align-items: center;
    }

    .msd-site {
        grid-template-columns: 1.3fr 1fr;
        grid-template-rows: auto auto;
    }

    .msd-site-docs {
        grid-row: span 2;
    }

    .msd-site-qa {
        grid-column: 1 / -1;
    }

    .msd-services {
        grid-template-columns: repeat(6, 1fr);
    }

    .msd-svc-web {
        grid-column: span 4;
        grid-row: span 2;
    }

    .msd-svc-mobile,
    .msd-svc-auto,
    .msd-svc-db,
    .msd-svc-cloud,
    .msd-svc-devops,
    .msd-svc-custom {
        grid-column: span 2;
    }

    .msd-svc-arch {
        grid-column: span 4;
    }

    .msd-team {
        grid-template-columns: 1fr 1fr;
    }

    .msd-facts {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .msd-rise,
    .msd-cta,
    .msd-cta-icon,
    .msd-person,
    .msd-socials a {
        animation: none;
        transition: none;
    }
}
