.website-hero-copy,
.website-service > *,
.website-project {
    min-inline-size: 0;
}

.website-hero h1 {
    text-wrap: balance;
}

.website-service-links {
    background: var(--deep);
    border-radius: 16px;
    padding: clamp(20px, 4vw, 46px);
}

.website-service-links a {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr) auto;
    align-items: center;
    gap: clamp(10px, 1.5vw, 19px);
    padding-block: 18px;
    color: var(--white);
    border-block-start: 1px solid #456883;
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 700;
}

.website-service-links a:last-child {
    border-block-end: 1px solid #456883;
}

.website-service-links a:hover span,
.website-service-links a:focus-visible span {
    text-decoration: underline;
    text-underline-offset: .25em;
}

.website-service-links a:focus-visible {
    outline-color: #9bd0ff;
}

.website-service-links i:first-child {
    display: grid;
    place-items: center;
    inline-size: 46px;
    block-size: 46px;
    border-radius: 10px;
    background: #163a59;
    color: #b9dcf8;
    font-size: 1.05rem;
}

.website-service-links i:last-child {
    color: #b9dcf8;
    font-size: .8rem;
}

.website-services {
    padding-block-end: clamp(42px, 7vw, 100px);
}

.website-service {
    display: grid;
    grid-template-columns: minmax(0, .72fr) minmax(0, 1fr);
    gap: clamp(23px, 7vw, 105px);
    padding-block: clamp(29px, 4.6vw, 64px);
    border-block-start: 1px solid var(--line);
    scroll-margin-block-start: 25px;
}

.website-service:last-child {
    padding-block-end: 0;
}

.website-service h2,
.website-support h2 {
    text-wrap: balance;
}

.website-service-lead {
    color: var(--muted);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    max-inline-size: 64ch;
}

.website-store-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 25px;
    padding-block: 23px;
    margin-block: 23px;
    border-block: 1px solid var(--line);
}

.website-store-options p {
    color: var(--muted);
    margin-block-start: 9px;
}

.website-store-note {
    color: var(--deep);
    font-weight: 700;
}

.website-support {
    background: #eaf5fd;
}

.website-support-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(16px, 4vw, 45px);
    align-self: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.website-support-list li {
    border-block-start: 1px solid #b8cde1;
    padding-block: 16px;
    font-weight: 700;
}

.website-support-list li:nth-last-child(-n + 2) {
    border-block-end: 1px solid #b8cde1;
}

.website-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 38px);
    margin-block-start: clamp(24px, 4vw, 44px);
}

.website-project {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 15px;
    overflow: hidden;
}

.website-project-cover {
    background: #e5edf5;
    border-block-end: 1px solid var(--line);
}

.website-project-cover img {
    inline-size: 100%;
    aspect-ratio: 8 / 5;
    object-fit: contain;
}

.website-project-copy {
    padding: clamp(18px, 3vw, 31px);
    overflow-wrap: anywhere;
}

.website-project-category {
    margin-block-end: 7px;
    color: var(--muted);
    font-size: .875rem;
    font-weight: 700;
}

.website-project-copy h3 {
    font-size: clamp(1.28rem, 2.5vw, 1.65rem);
}

.website-project-description {
    margin-block-start: 10px;
    color: var(--muted);
    white-space: pre-line;
}

.website-project-actions {
    display: flex;
    gap: 5px 24px;
    flex-wrap: wrap;
    margin-block-start: 11px;
}

.website-project-actions .text-link {
    gap: 7px;
    min-block-size: 44px;
    color: #005cac;
}

.website-project-actions i {
    font-size: .8rem;
}

html:has(.website-gallery[open]) {
    overflow: hidden;
}

.website-gallery {
    position: fixed;
    inline-size: min(1040px, 100% - 28px);
    max-inline-size: 100%;
    max-block-size: calc(100vh - 28px);
    max-block-size: calc(100dvh - 28px);
    padding: clamp(14px, 2.5vw, 26px);
    border: 0;
    border-radius: 16px;
    background: var(--white);
    color: var(--ink);
    overscroll-behavior: contain;
}

.website-gallery::backdrop {
    background: #091c32dc;
}

.website-gallery-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-block-end: 12px;
}

.website-gallery-header h2 {
    font-size: clamp(1.2rem, 2.7vw, 1.65rem);
    overflow-wrap: anywhere;
}

.website-gallery-stage {
    position: relative;
    border-radius: 9px;
    background: #ecf2f7;
    overflow: hidden;
}

.website-gallery-media {
    display: grid;
    place-items: center;
    block-size: min(64vh, 680px);
    block-size: min(64dvh, 680px);
    min-block-size: 120px;
}

.website-gallery-media img {
    inline-size: 100%;
    block-size: 100%;
    min-block-size: 0;
    object-fit: contain;
}

.website-gallery-media img[hidden],
.website-gallery-controls[hidden] {
    display: none;
}

.website-gallery-error {
    position: absolute;
    inset-inline: 15px;
    inset-block-start: 50%;
    transform: translateY(-50%);
    text-align: center;
    color: var(--ink);
}

.website-gallery-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-block-start: 12px;
}

.website-gallery-button,
.website-gallery-controls select {
    min-block-size: 44px;
    border: 1px solid #b6cadc;
    border-radius: 7px;
    background: var(--white);
    color: var(--deep);
    font: inherit;
}

.website-gallery-button {
    min-inline-size: 44px;
    cursor: pointer;
}

.website-gallery-controls select {
    max-inline-size: 100%;
    padding-inline: 10px;
}

.website-gallery-button:hover,
.website-gallery-controls select:hover {
    background: #eaf5fd;
}

html[dir=rtl] .website-gallery-controls .website-gallery-button i {
    transform: scaleX(-1);
}

.website-gallery-announcement {
    position: absolute;
    overflow: hidden;
    inline-size: 1px;
    block-size: 1px;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 850px) {
    .website-service {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }
}

@media (max-width: 620px) {
    .website-project-grid,
    .website-store-options {
        grid-template-columns: minmax(0, 1fr);
        row-gap: 23px;
    }

    .website-service-links a {
        padding-block: 12px;
    }

    .website-gallery-media {
        block-size: auto;
    }

    .website-gallery-media img {
        block-size: auto;
        max-block-size: 64vh;
        max-block-size: 64dvh;
    }
}

@media (max-width: 360px) {
    .website-hero .qs-contact-cta,
    .website-hero .qs-contact-cta__overlay {
        gap: 10px;
    }
}
