/*
 * WEBGLOBE MAINTAINER NOTES
 *
 * Style the public hero interface and its responsive presentation.
 *
 * The selectors form a contract with the rendered markup and browser interactions. Preserve
 * keyboard focus, disabled/hidden states and the smaller-screen rules when adjusting the
 * cascade; an attractive desktop layout is not sufficient evidence of usable mobile forms.
 */
header, section, footer {
    text-align: center;
    padding: 10px;
    margin: 0;
}
header {
    text-align: center;
    padding: 20px 0 20px 0;
}

header img {
    width: 150px;
    margin-bottom: 20px;
}

.logo-container {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
    position: relative;
    padding: 5px 50px;
    transform: translateZ(0);
    will-change: transform;
}

.logo-container.logo-container--text {
    width: min(68vw, 426px);
    max-width: 426px;
    min-height: 0;
    aspect-ratio: 1344 / 784;
    padding: 0;
    overflow: visible;
    -ms-overflow-style: none;
    scrollbar-width: none;
    isolation: isolate;
}

.logo-container::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--hero-logo-bg) no-repeat center center;
    background-size: cover;
    background-color: rgba(0, 188, 212, 0.2);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 30px;
    border: 6px solid rgba(0, 188, 212, 0.4);
    box-shadow: 0 8px 32px 0 rgba(0, 188, 212, 0.5);
    z-index: -1;
}

.logo-container.logo-container--text::before {
    background-size: contain;
    background-repeat: no-repeat;
    background-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow: none;
    border-radius: 0;
}

/* Keep the existing reserved box and contain geometry without a second CSS image download. */
.logo-container.logo-container--responsive::before {
    content: none;
    background-image: none;
}

.logo-container--responsive > picture > .public-brand-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    object-fit: contain;
}

.wgfx-codefall {
    --codefall-speed: 1;
    position: relative;
    width: min(62vw, 344px);
    max-width: 344px;
    height: 53px;
    margin: -72px auto 10px auto;
    overflow: visible;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    z-index: 0;
}

.wgfx-codefall__col {
    position: absolute;
    top: -120%;
    font-family: "Consolas", "Courier New", monospace;
    font-size: 9px;
    line-height: 8px;
    letter-spacing: 0.5px;
    font-weight: 700;
    color: var(--public-binary-color, rgba(207, 255, 50, 0.58));
    text-shadow: none;
    writing-mode: vertical-rl;
    text-orientation: upright;
    opacity: 0;
    z-index: 2;
    will-change: transform, opacity;
    animation-name: codeRainDrop;
    animation-duration: calc(var(--codefall-cycle, 16s) * var(--codefall-speed));
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.wgfx-codefall__col:nth-child(1) { left: 20%; --codefall-cycle: 15s; animation-delay: -3s; }
.wgfx-codefall__col:nth-child(2) { left: 25%; --codefall-cycle: 17s; animation-delay: -10s; }
.wgfx-codefall__col:nth-child(3) { left: 30%; --codefall-cycle: 14s; animation-delay: -7s; }
.wgfx-codefall__col:nth-child(4) { left: 35%; --codefall-cycle: 18s; animation-delay: -14s; }
.wgfx-codefall__col:nth-child(5) { left: 40%; --codefall-cycle: 16s; animation-delay: -11s; }
.wgfx-codefall__col:nth-child(6) { left: 45%; --codefall-cycle: 18s; animation-delay: -5s; }
.wgfx-codefall__col:nth-child(7) { left: 55%; --codefall-cycle: 15s; animation-delay: -12s; }
.wgfx-codefall__col:nth-child(8) { left: 60%; --codefall-cycle: 17s; animation-delay: -4s; }
.wgfx-codefall__col:nth-child(9) { left: 65%; --codefall-cycle: 16s; animation-delay: -8s; }
.wgfx-codefall__col:nth-child(10) { left: 70%; --codefall-cycle: 18s; animation-delay: -15s; }
.wgfx-codefall__col:nth-child(11) { left: 75%; --codefall-cycle: 14s; animation-delay: -5s; }
.wgfx-codefall__col:nth-child(12) { left: 80%; --codefall-cycle: 17s; animation-delay: -13s; }

@keyframes codeRainDrop {
    0% {
        transform: translateY(-145%);
        opacity: 0;
    }
    22% {
        opacity: 0;
    }
    30% {
        opacity: 0.28;
    }
    78% {
        opacity: 0.16;
    }
    100% {
        transform: translateY(210%);
        opacity: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo-container {
        transform: none;
        will-change: auto;
    }

    .wgfx-codefall__col {
        will-change: auto;
        animation: none !important;
        opacity: 0 !important;
    }
}

h1 {
    font-size: 2.5em;
    margin: 0;
}

.home-title-copy {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

.home-title-copy h1 {
    font-size: clamp(48px, 4.2vw, 56px);
    font-style: normal;
    font-weight: 800;
    color: #ffffff;
    text-shadow:
      0 0 2px rgba(0, 0, 0, 0.95),
      0 2px 8px rgba(0, 0, 0, 0.78),
      0 6px 20px rgba(0, 0, 0, 0.6);
    margin: 0 auto 14px;
    padding: 0;
    line-height: 1.1;
    letter-spacing: -0.025em;
    max-width: 820px;
    position: static !important;
    transform: none !important;
    text-align: center;
}

.home-title-copy > p {
    max-width: 680px;
    margin: 0 auto;
    color: var(--text-secondary);
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 500;
    line-height: 1.5;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

body.page-home header > .hero-actions {
    margin-top: 22px;
}

body.page-home header > .hero-actions .btn {
    width: auto;
    min-width: 220px;
    min-height: 62px;
    margin: 0;
    padding: 14px 28px;
    font-size: 1rem;
    gap: 10px;
}

.hero-action-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    fill: none;
    stroke: #ffffff;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.48));
}

/* Houd de vier homepage-CTA's optisch op één lijn, ongeacht tekstlengte. */
body.public-site.page-home header > .hero-actions .btn {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    justify-content: stretch;
    column-gap: clamp(8px, 1vw, 12px);
    text-align: left;
}

body.public-site.page-home header > .hero-actions .hero-action-icon {
    width: clamp(24px, 2.2vw, 30px);
    height: clamp(24px, 2.2vw, 30px);
    justify-self: center;
}

body.public-site.page-home header > .hero-actions .btn > span {
    min-width: 0;
    text-align: left;
}

body.page-home header > .hero-actions .btn-secondary {
    background-image: url('/images/button.webp');
    background-size: contain;
    border: 0 !important;
    border-radius: 6px;
    background-color: transparent;
}

@media (max-width: 1024px) {
    body.page-home header {
        padding-top: 0;
    }

    .wgfx-codefall {
        width: min(68vw, 312px);
        max-width: 312px;
        height: 48px;
        margin: -54px auto 10px auto;
    }

    .logo-container.logo-container--text {
        width: min(68vw, 392px);
        max-width: 392px;
    }
}

@media (max-width: 768px) {
    .logo-container {
        transform: none;
        will-change: auto;
    }

    .wgfx-codefall__col:nth-child(even) {
        display: none;
    }

    .wgfx-codefall {
        --codefall-speed: 1.5;
        width: min(74vw, 272px);
        max-width: 272px;
        height: 43px;
        margin: -74px auto 10px auto;
    }

    .logo-container.logo-container--text {
        width: min(70vw, 348px);
        max-width: 348px;
    }

    .home-title-copy h1 {
        font-size: clamp(34px, 7vw, 40px);
        line-height: 1.12;
    }

    .home-title-copy > p {
        font-size: 18px;
    }

    body.page-home header > .hero-actions .btn {
        min-width: 190px;
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    body.page-home header {
        padding-top: 0;
    }

    .wgfx-codefall {
        width: min(72vw, 240px);
        max-width: 240px;
        height: 38px;
        margin: -58px auto 10px auto;
    }

    .logo-container.logo-container--text {
        width: 70vw;
        max-width: 300px;
    }

    .home-title-copy h1 {
        font-size: clamp(34px, 10vw, 40px);
        line-height: 1.12;
    }

    .home-title-copy > p {
        font-size: 17px;
    }

    body.page-home header > .hero-actions {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }

    body.page-home header > .hero-actions .btn {
        width: min(100%, 280px);
    }

    .hero-action-icon {
        width: 26px;
        height: 26px;
        flex-basis: 26px;
    }
}

/* Original artwork stays at viewport scale on every device, including iOS.
   The next decoded composition fades over the current one without a blank frame. */
body.public-site {
    isolation: isolate;
    background-image: none !important;
}

body.public-site::before,
body.public-site::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
}

body.public-site::before {
    background-image: var(--public-background-overlay, linear-gradient(transparent, transparent)),
        var(--public-background-current, var(--bg-image));
}

body.public-site::after {
    background-image: var(--public-background-overlay, linear-gradient(transparent, transparent)),
        var(--public-background-next, none);
    opacity: var(--public-background-opacity, 0);
    transition: opacity var(--public-background-transition, 250ms) ease;
}
