:root {
    --vsi-vh: 1vh;
}

html,
body.vsi-fullscreen-page {
    width: 100%;
    height: 100%;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #001f1e;
}

body.vsi-fullscreen-page #wpadminbar {
    display: none !important;
}

html:has(body.vsi-fullscreen-page) {
    margin-top: 0 !important;
}

body.vsi-fullscreen-page * {
    box-sizing: border-box;
}

#vsi-page-root {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
}

.vsi-app {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    min-height: calc(var(--vsi-vh) * 100);
    overflow: hidden;
    color: var(--vsi-text);
    background: var(--vsi-overlay);
    font-family: var(--vsi-body-font);
    isolation: isolate;
}

.vsi-app a,
.vsi-app a:hover,
.vsi-app a:focus {
    color: inherit;
    text-decoration: none;
}

.vsi-background {
    position: absolute;
    inset: 0;
    z-index: -2;
    background-image: var(--vsi-bg);
    background-repeat: no-repeat;
    background-position: var(--vsi-bg-position);
    background-size: cover;
    transform: scale(1.015);
}

.vsi-background::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--vsi-overlay) 98%, transparent) 0%, color-mix(in srgb, var(--vsi-overlay) 80%, transparent) 29%, color-mix(in srgb, var(--vsi-overlay) 28%, transparent) 68%, transparent 100%),
        linear-gradient(0deg, color-mix(in srgb, var(--vsi-overlay) 92%, transparent) 0%, transparent 56%),
        color-mix(in srgb, var(--vsi-overlay) calc(var(--vsi-overlay-opacity) * 100%), transparent);
}

.vsi-stage {
    position: relative;
    width: 100%;
    max-width: var(--vsi-max);
    height: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    overflow: hidden;
}

.vsi-main {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(340px, 0.82fr) minmax(650px, 2fr);
    grid-template-rows: minmax(0, 1fr) auto;
    column-gap: clamp(24px, 3vw, 58px);
    row-gap: clamp(14px, 2.2vh, 28px);
    padding: clamp(34px, 4.6vh, 72px) clamp(34px, 5.5vw, 88px) clamp(10px, 1.8vh, 22px);
}

.vsi-copy {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    max-width: 620px;
    padding-top: clamp(2px, 1vh, 16px);
}

.vsi-eyebrow {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: clamp(22px, 3vh, 38px);
    color: var(--vsi-accent);
    font-size: clamp(12px, 1.05vw, 20px);
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.vsi-eyebrow::after {
    content: "";
    display: block;
    width: clamp(90px, 13vw, 220px);
    height: 1px;
    margin-left: calc(-100% + 54px);
    margin-top: 31px;
    background: color-mix(in srgb, var(--vsi-accent) 50%, transparent);
}

.vsi-eyebrow > span {
    width: clamp(38px, 4vw, 58px);
    height: 2px;
    flex: 0 0 auto;
    background: var(--vsi-accent);
}

.vsi-copy h1 {
    margin: 0;
    font-family: var(--vsi-heading-font);
    font-size: var(--vsi-title-size, clamp(42px, min(4.65vw, 6.2vh), 88px));
    font-weight: 400;
    line-height: 0.96;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.vsi-title-prefix,
.vsi-title-highlight {
    display: block;
}

/* Keep the manually entered desktop title lines intact. JavaScript then
   reduces only the title size when a short/wide screen needs extra room. */
@media (min-width: 901px) {
    .vsi-title-prefix,
    .vsi-title-highlight {
        white-space: nowrap;
    }
}

.vsi-title-prefix {
    color: var(--vsi-text);
}

.vsi-title-highlight {
    margin-top: 0.2em;
    color: var(--vsi-accent);
}

.vsi-copy > p {
    margin: clamp(22px, 3.2vh, 38px) 0 0;
    color: color-mix(in srgb, var(--vsi-text) 92%, transparent);
    font-size: clamp(15px, 1.18vw, 22px);
    font-weight: 500;
    line-height: 1.45;
}

.vsi-sector-list {
    grid-column: 1;
    grid-row: 2;
    display: grid;
    gap: clamp(9px, 1.2vh, 14px);
    align-self: end;
    padding-bottom: 2px;
}

.vsi-sector-button {
    min-height: clamp(58px, 7.2vh, 76px);
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 12px;
    padding: 8px 14px 8px 10px;
    border: 1px solid color-mix(in srgb, var(--vsi-accent) 82%, transparent);
    border-radius: 4px;
    background: linear-gradient(90deg, color-mix(in srgb, var(--vsi-panel) 88%, transparent), color-mix(in srgb, var(--vsi-panel) 55%, transparent));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, #ffffff 4%, transparent);
    backdrop-filter: blur(8px);
    transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.vsi-sector-button:hover,
.vsi-sector-button:focus-visible {
    transform: translateX(5px);
    border-color: var(--vsi-accent);
    background: color-mix(in srgb, var(--vsi-panel) 92%, transparent);
    outline: none;
}

.vsi-sector-icon {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    color: var(--vsi-accent);
}

.vsi-sector-icon svg,
.vsi-sector-icon img {
    width: 43px;
    height: 43px;
    display: block;
    object-fit: contain;
    fill: currentColor;
}

.vsi-sector-title {
    overflow: hidden;
    font-size: clamp(14px, 1.1vw, 19px);
    font-weight: 700;
    letter-spacing: 0.015em;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.vsi-arrow {
    color: var(--vsi-accent);
    font-family: Arial, sans-serif;
    font-size: 38px;
    font-weight: 200;
    line-height: 1;
    text-align: right;
}

.vsi-projects {
    grid-column: 2;
    grid-row: 2;
    align-self: end;
    min-width: 0;
    height: clamp(300px, 38vh, 430px);
    display: flex;
    overflow: hidden;
    padding-left: 13px;
}

.vsi-project-card {
    position: relative;
    min-width: 0;
    flex: 1 1 25%;
    overflow: hidden;
    isolation: isolate;
    clip-path: polygon(12% 0, 100% 0, 88% 100%, 0 100%);
    border: 1px solid color-mix(in srgb, var(--vsi-accent) 58%, transparent);
    margin-left: -1.7%;
    transition: flex 260ms ease, filter 260ms ease;
}

.vsi-project-card:first-child {
    margin-left: 0;
}

.vsi-project-card:hover,
.vsi-project-card:focus-visible {
    flex-grow: 1.18;
    filter: brightness(1.09);
    outline: none;
}

.vsi-project-card > img {
    position: absolute;
    inset: 0;
    z-index: -2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 600ms ease;
}

.vsi-project-card:hover > img,
.vsi-project-card:focus-visible > img {
    transform: scale(1.055);
}

.vsi-project-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 19, 18, 0.45) 55%, rgba(0, 22, 21, 0.98) 100%);
}

.vsi-project-content {
    position: absolute;
    inset: auto 11% 0 8%;
    min-height: 42%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 9px;
    padding: 20px 12px 24px 12px;
}

.vsi-project-content strong {
    font-size: clamp(15px, 1.25vw, 22px);
    line-height: 1.1;
    text-transform: uppercase;
}

.vsi-project-content > span {
    color: color-mix(in srgb, var(--vsi-text) 92%, transparent);
    font-size: clamp(12px, 0.86vw, 16px);
    line-height: 1.48;
}

.vsi-benefits {
    min-height: clamp(112px, 13.8vh, 145px);
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 4vw, 70px);
    align-items: center;
    padding: 13px clamp(34px, 5.5vw, 88px) max(13px, env(safe-area-inset-bottom));
    border-top: 1px solid color-mix(in srgb, var(--vsi-accent) 35%, transparent);
    background: linear-gradient(90deg, color-mix(in srgb, var(--vsi-panel) 93%, transparent), color-mix(in srgb, var(--vsi-panel) 82%, transparent));
    backdrop-filter: blur(10px);
}

.vsi-benefit {
    min-width: 0;
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.vsi-benefit-icon {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    color: var(--vsi-accent);
}

.vsi-benefit-icon svg,
.vsi-benefit-icon img {
    width: 50px;
    height: 50px;
    display: block;
    object-fit: contain;
    fill: currentColor;
}

.vsi-benefit-copy {
    min-width: 0;
    display: grid;
    gap: 5px;
}

.vsi-benefit-copy strong {
    overflow: hidden;
    color: var(--vsi-accent);
    font-size: clamp(13px, 1.06vw, 18px);
    font-weight: 500;
    letter-spacing: 0.04em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.vsi-benefit-copy > span {
    color: color-mix(in srgb, var(--vsi-text) 72%, transparent);
    font-size: clamp(11px, 0.9vw, 15px);
    line-height: 1.45;
}

@media (min-width: 1101px) {
    .vsi-stage {
        zoom: var(--vsi-desktop-scale);
    }
}

@media (max-height: 820px) and (min-width: 1101px) {
    .vsi-main {
        padding-top: 26px;
        row-gap: 12px;
    }

    .vsi-eyebrow {
        margin-bottom: 18px;
    }

    .vsi-copy h1 {
        font-size: var(--vsi-title-size, clamp(40px, min(4.25vw, 5.9vh), 70px));
    }

    .vsi-copy > p {
        margin-top: 18px;
    }

    .vsi-projects {
        height: clamp(270px, 36vh, 335px);
    }

    .vsi-sector-button {
        min-height: 54px;
    }

    .vsi-benefits {
        min-height: 96px;
    }
}

/* Applied automatically only when the vertical space above the sector
   buttons is unusually small (for example 16:8 or laptop browser windows). */
.vsi-app.vsi-compact-copy .vsi-eyebrow {
    margin-bottom: 14px;
}

.vsi-app.vsi-compact-copy .vsi-copy > p {
    margin-top: 14px;
    font-size: clamp(14px, 1vw, 18px);
    line-height: 1.35;
}

@media (max-width: 1280px) and (min-width: 901px) {
    .vsi-main {
        grid-template-columns: minmax(300px, 0.78fr) minmax(560px, 1.65fr);
        column-gap: 24px;
        padding-left: 34px;
        padding-right: 34px;
    }

    .vsi-project-content > span {
        font-size: 12px;
    }

    .vsi-benefits {
        padding-left: 34px;
        padding-right: 34px;
        gap: 20px;
    }

    .vsi-benefit {
        grid-template-columns: 45px minmax(0, 1fr);
        gap: 10px;
    }

    .vsi-benefit-icon,
    .vsi-benefit-icon svg,
    .vsi-benefit-icon img {
        width: 43px;
        height: 43px;
    }
}

@media (max-width: 900px) {
    html,
    body.vsi-fullscreen-page {
        overflow: hidden !important;
    }

    .vsi-app {
        position: fixed;
        overflow-x: hidden;
        overflow-y: auto;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .vsi-app::-webkit-scrollbar {
        width: 0;
        height: 0;
        display: none;
    }

    .vsi-stage {
        width: 100%;
        max-width: none;
        height: auto;
        min-height: 100dvh;
        display: block;
        overflow: visible;
    }

    .vsi-main {
        display: block;
        padding: max(32px, env(safe-area-inset-top)) 20px 28px;
    }

    .vsi-copy {
        max-width: 680px;
        margin: 0 auto;
        padding: 0;
    }

    .vsi-eyebrow {
        margin-bottom: 22px;
        font-size: 12px;
    }

    .vsi-eyebrow::after {
        display: none;
    }

    .vsi-copy h1 {
        font-size: clamp(45px, 11vw, 78px);
    }

    .vsi-copy > p {
        margin-top: 22px;
        font-size: 16px;
    }

    .vsi-sector-list {
        max-width: 680px;
        margin: 34px auto 0;
    }

    .vsi-sector-button {
        min-height: 62px;
        grid-template-columns: 52px minmax(0, 1fr) 24px;
    }

    .vsi-sector-title {
        font-size: 15px;
    }

    .vsi-projects {
        height: auto;
        max-width: 760px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        margin: 30px auto 0;
        padding: 0;
        overflow: visible;
    }

    .vsi-project-card,
    .vsi-project-card:first-child {
        min-height: 340px;
        margin: 0;
        clip-path: none;
        border-radius: 8px;
    }

    .vsi-project-content {
        inset: auto 0 0;
        min-height: 44%;
        padding: 22px;
    }

    .vsi-project-content strong {
        font-size: 19px;
    }

    .vsi-project-content > span {
        font-size: 14px;
    }

    .vsi-benefits {
        min-height: 0;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 25px 18px;
        padding: 28px 20px max(28px, env(safe-area-inset-bottom));
    }

    .vsi-benefit-copy strong {
        font-size: 15px;
    }

    .vsi-benefit-copy > span {
        font-size: 13px;
    }
}

@media (max-width: 560px) {
    .vsi-background::after {
        background:
            linear-gradient(180deg, color-mix(in srgb, var(--vsi-overlay) 84%, transparent) 0%, color-mix(in srgb, var(--vsi-overlay) 63%, transparent) 38%, color-mix(in srgb, var(--vsi-overlay) 92%, transparent) 100%),
            color-mix(in srgb, var(--vsi-overlay) calc(var(--vsi-overlay-opacity) * 100%), transparent);
    }

    .vsi-main {
        padding-left: 15px;
        padding-right: 15px;
    }

    .vsi-copy h1 {
        font-size: clamp(41px, 13.5vw, 65px);
    }

    .vsi-title-highlight {
        margin-top: 0.13em;
    }

    .vsi-copy > p {
        font-size: 15px;
    }

    .vsi-sector-button {
        grid-template-columns: 48px minmax(0, 1fr) 22px;
        padding-left: 7px;
    }

    .vsi-sector-icon,
    .vsi-sector-icon svg,
    .vsi-sector-icon img {
        width: 40px;
        height: 40px;
    }

    .vsi-projects {
        grid-template-columns: 1fr;
    }

    .vsi-project-card,
    .vsi-project-card:first-child {
        min-height: 390px;
    }

    .vsi-benefits {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vsi-app *,
    .vsi-app *::before,
    .vsi-app *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
