/* Gray Audio — filmische hero */

.gx-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: max(640px, calc(100svh - var(--gx-admin-bar)));
    overflow: clip;
    isolation: isolate;
}

.gx-hero__media {
    position: absolute;
    inset: 0;
    z-index: -2;
    background: var(--gx-navy-900);
    transform-origin: 50% 40%;
    will-change: transform;
}

/* Dubbele klasse: Elementor zet .elementor img { height: auto }, dat mag hier niet winnen. */
.gx-hero .gx-hero__poster,
.gx-hero .gx-hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--gx-hero-focus, 50% 50%);
}

.gx-hero__video {
    opacity: 0;
    transition: opacity 900ms var(--gx-ease);
}

.gx-hero__video.is-playing {
    opacity: 1;
}

/* Diepblauw van onder en links: leesbaarheid zonder het beeld dicht te zetten. */
.gx-hero__shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(0deg, rgba(14, 14, 15, 0.94) 0%, rgba(14, 14, 15, 0.72) 32%, rgba(14, 14, 15, 0.12) 64%, rgba(14, 14, 15, 0.34) 100%),
        linear-gradient(90deg, rgba(14, 14, 15, 0.62) 0%, rgba(14, 14, 15, 0) 62%);
    pointer-events: none;
}

.gx-hero__inner {
    padding-top: calc(var(--gx-header-h) + 72px);
    padding-bottom: clamp(36px, 5vw, 64px);
}

.gx-hero__content {
    max-width: 860px;
    will-change: transform, opacity;
}

.gx-hero__eyebrow {
    color: rgba(255, 255, 255, 0.78);
}

.gx-hero__title {
    font-size: clamp(2.75rem, 1.15rem + 5.9vw, 6.5rem);
    line-height: 0.98;
    letter-spacing: -0.035em;
}

.gx-hero__title em {
    color: var(--gx-yellow);
}

.gx-hero__text {
    margin-top: 28px;
    max-width: 34em;
    color: rgba(255, 255, 255, 0.82);
}

.gx-hero__actions {
    margin-top: 36px;
}

/* ── Onderbalk ──────────────────────────────────────────────────── */

.gx-hero__bar {
    position: relative;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.gx-hero__signal {
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 24px;
    overflow: visible;
    pointer-events: none;
}

.gx-hero__signal path {
    fill: none;
    stroke: var(--gx-yellow);
    stroke-width: 1.5;
    vector-effect: non-scaling-stroke;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    opacity: 0.85;
}

.gx-motion .gx-hero__signal path {
    stroke-dashoffset: 1;
    animation: gx-hero-draw 2200ms var(--gx-ease) 900ms forwards;
}

@keyframes gx-hero-draw {
    to { stroke-dashoffset: 0; }
}

.gx-hero__bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 84px;
}

.gx-hero__links ul {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
}

.gx-hero__links a {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 0 16px 0 0;
    margin-right: 18px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color var(--gx-fast) var(--gx-ease);
}

.gx-hero__links .gx-icon {
    width: 20px;
    height: 20px;
    color: var(--gx-yellow);
    transition: transform var(--gx-fast) var(--gx-ease);
}

.gx-hero__links a:hover,
.gx-hero__links a:focus-visible {
    color: var(--gx-white);
}

.gx-hero__links a:hover .gx-icon {
    transform: translateY(-2px);
}

.gx-hero__controls {
    display: flex;
    align-items: center;
    gap: 18px;
    flex: none;
}

.gx-hero__toggle {
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 50%;
    background: transparent;
    color: var(--gx-white);
    cursor: pointer;
    transition: border-color var(--gx-fast) var(--gx-ease), background-color var(--gx-fast) var(--gx-ease);
}

.gx-hero__toggle[hidden] {
    display: none;
}

.gx-hero__toggle:hover {
    border-color: var(--gx-white);
    background: rgba(255, 255, 255, 0.06);
}

.gx-hero__toggle .gx-icon {
    width: 16px;
    height: 16px;
}

.gx-hero__toggle-play,
.gx-hero__toggle[aria-pressed="true"] .gx-hero__toggle-pause {
    display: none;
}

.gx-hero__toggle[aria-pressed="true"] .gx-hero__toggle-play {
    display: inline-flex;
}

.gx-hero__toggle .gx-icon--play {
    fill: currentColor;
}

.gx-hero__scroll {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    min-height: 44px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    text-decoration: none;
}

.gx-hero__scroll:hover {
    color: var(--gx-white);
}

.gx-hero__scroll-track {
    position: relative;
    display: block;
    width: 2px;
    height: 40px;
    background: rgba(255, 255, 255, 0.18);
    overflow: hidden;
}

.gx-hero__scroll-track span {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 40%;
    background: var(--gx-yellow);
}

.gx-motion .gx-hero__scroll-track span {
    animation: gx-hero-scroll 2400ms var(--gx-ease-in-out) 1600ms 4 both;
}

@keyframes gx-hero-scroll {
    0% { transform: translateY(-100%); }
    60% { transform: translateY(250%); }
    100% { transform: translateY(250%); }
}

/* ── Responsive ─────────────────────────────────────────────────── */

@media (max-width: 1023px) {
    .gx-hero__links a {
        margin-right: 8px;
        padding-right: 10px;
    }
}

@media (max-width: 767px) {
    .gx-hero {
        min-height: max(600px, calc(100svh - var(--gx-admin-bar)));
    }

    .gx-hero__inner {
        padding-top: calc(var(--gx-header-h) + 48px);
    }

    .gx-hero__shade {
        background: linear-gradient(0deg, rgba(14, 14, 15, 0.96) 0%, rgba(14, 14, 15, 0.8) 42%, rgba(14, 14, 15, 0.2) 72%, rgba(14, 14, 15, 0.45) 100%);
    }

    .gx-hero__text {
        margin-top: 20px;
        font-size: 1rem;
    }

    .gx-hero__actions {
        margin-top: 28px;
    }

    .gx-hero__actions .gx-btn {
        flex: 1 1 100%;
        justify-content: space-between;
    }

    .gx-hero__bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding-block: 10px 14px;
        padding-bottom: max(14px, env(safe-area-inset-bottom));
    }

    .gx-hero__links ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0 12px;
    }

    .gx-hero__links a {
        margin: 0;
        padding: 0;
        width: 100%;
        letter-spacing: 0.1em;
        font-size: 0.75rem;
    }

    .gx-hero__controls {
        justify-content: space-between;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 6px;
        padding-top: 6px;
    }

    .gx-hero__scroll {
        margin-left: auto;
    }
}
