.brand img,
.footer-brand img,
.admin-brand img,
.login-logo {
    filter: brightness(1.5) saturate(1.2);
}

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Keep inner-page hero content aligned with the rest of the website. */
.page-hero .container.section-head {
    width: min(var(--max), calc(100% - 36px));
    margin-inline: auto;
    margin-bottom: 0;
}

.page-hero .section-head > div {
    max-width: 980px;
}

/* The generic side-card link style must not override primary buttons. */
.side-card a.button {
    display: inline-flex;
    width: 100%;
    margin: 6px 0 10px;
    padding: 12px 20px;
    color: #fff;
    border: 1px solid var(--navy);
}

.side-card a.button:hover {
    color: #fff;
}

/* Full-width three-image homepage showcase. */
.home-gallery-section {
    padding: 76px 0 0;
    overflow: hidden;
    background: #06172d;
    color: #fff;
}

.home-gallery-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 34px;
}

.home-gallery-heading h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.12;
    letter-spacing: -.035em;
}

.home-gallery-heading p {
    max-width: 470px;
    margin: 0;
    color: #c5d5e5;
}

.home-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
}

.home-gallery-card {
    position: relative;
    min-height: clamp(390px, 34vw, 540px);
    overflow: hidden;
    isolation: isolate;
    border-right: 1px solid rgba(255,255,255,.16);
    background: #0b2b4a;
}

.home-gallery-card:last-child {
    border-right: 0;
}

.home-gallery-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(2,12,27,.04) 22%, rgba(2,12,27,.88) 100%);
}

.home-gallery-card img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .65s cubic-bezier(.2,.7,.2,1);
}

.home-gallery-card:hover img {
    transform: scale(1.045);
}

.home-gallery-content {
    position: absolute;
    right: clamp(22px, 3vw, 42px);
    bottom: clamp(24px, 4vw, 44px);
    left: clamp(22px, 3vw, 42px);
}

.home-gallery-content h3 {
    margin: 0 0 8px;
    color: #fff;
    font-size: clamp(23px, 2.4vw, 34px);
    line-height: 1.13;
}

.home-gallery-content p {
    max-width: 460px;
    margin: 0 0 17px;
    color: #d8e5ef;
    font-size: 14px;
}

.home-gallery-content a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 9px 15px;
    border: 1px solid rgba(255,255,255,.62);
    border-radius: 10px;
    color: #fff;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    transition: .2s ease;
}

.home-gallery-content a:hover {
    border-color: #fff;
    background: #fff;
    color: var(--navy);
}

.footer-bottom-meta {
    display: grid;
    justify-items: end;
    gap: 14px;
    text-align: right;
}

.developer-credit {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px 11px;
    margin: 0;
    padding: 9px 10px 9px 14px;
    border: 1px solid rgba(138, 227, 223, .25);
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(8, 151, 160, .12), rgba(255, 255, 255, .035));
    color: #b8c9d9;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
    font-size: 12px;
    line-height: 1.35;
}

.developer-credit-label {
    letter-spacing: .025em;
}

.developer-credit a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 6px 10px;
    border-radius: 8px;
    background: rgba(8, 151, 160, .18);
    color: #9af0eb;
    font-size: inherit;
    font-weight: 850;
    letter-spacing: .01em;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

.developer-credit a:hover {
    transform: translateY(-1px);
    background: rgba(8, 151, 160, .32);
    color: #fff;
}

.developer-credit-arrow {
    font-size: 14px;
    line-height: 1;
}

@media (max-width: 900px) {
    .home-gallery-heading {
        display: block;
    }

    .home-gallery-heading p {
        margin-top: 12px;
    }

    .home-gallery-grid {
        grid-template-columns: 1fr;
    }

    .home-gallery-card {
        min-height: 390px;
        border-right: 0;
        border-bottom: 1px solid rgba(255,255,255,.16);
    }

    .home-gallery-card:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 640px) {
    .page-hero .container.section-head {
        width: min(100% - 28px, var(--max));
    }

    .home-gallery-section {
        padding-top: 58px;
    }

    .home-gallery-heading {
        padding-bottom: 26px;
    }

    .home-gallery-card {
        min-height: 350px;
    }

    .footer-bottom-meta {
        justify-items: start;
        margin-top: 14px;
        text-align: left;
    }

    .developer-credit {
        align-items: flex-start;
    }
}
