/* Gray Audio — vakmanschap (videosequentie)
 *
 * Basis: beeld bovenaan, stappen eronder (mobiel, reduced motion, geen JS).
 * .is-pinned: desktop met sticky beeld en scrollgestuurde video.
 */

.gx-craft {
    overflow: clip;
}

.gx-craft__media {
    position: relative;
    aspect-ratio: 16 / 10;
    background: var(--gx-navy-900);
}

.gx-craft__poster,
.gx-craft__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gx-craft__video {
    opacity: 0;
    transition: opacity 700ms var(--gx-ease);
}

.gx-craft__video.is-ready {
    opacity: 1;
}

.gx-craft__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, var(--gx-navy-900) 0%, rgba(14, 14, 15, 0) 40%);
}

.gx-craft__inner {
    position: relative;
    padding-block: 8px var(--gx-section);
}

.gx-craft__content {
    max-width: 560px;
}

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

.gx-craft__lead {
    margin-top: 24px;
}

.gx-craft__steps {
    display: grid;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.gx-craft__step {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.gx-craft__step-num {
    padding-top: 0.35em;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: var(--gx-yellow);
    font-variant-numeric: tabular-nums;
}

.gx-craft__step-title {
    font-family: var(--gx-font-display);
    font-size: 1.375rem;
    font-weight: 400;
    line-height: 1.2;
    color: var(--gx-white);
}

.gx-craft__step-text {
    margin-top: 6px;
    color: var(--gx-slate-300);
    font-size: 0.9375rem;
}

.gx-craft__progress {
    display: none;
}

/* ── Desktop: vastgezet, scrollgestuurd ─────────────────────────── */

.gx-craft.is-pinned .gx-craft__track {
    height: 280vh;
}

.gx-craft.is-pinned .gx-craft__sticky {
    position: sticky;
    top: var(--gx-admin-bar);
    height: calc(100vh - var(--gx-admin-bar));
    display: flex;
    align-items: center;
}

.gx-craft.is-pinned .gx-craft__media {
    position: absolute;
    inset: 0;
    aspect-ratio: auto;
}

.gx-craft.is-pinned .gx-craft__shade {
    background:
        linear-gradient(90deg, rgba(14, 14, 15, 0.96) 0%, rgba(14, 14, 15, 0.86) 30%, rgba(14, 14, 15, 0.2) 62%, rgba(14, 14, 15, 0) 100%),
        linear-gradient(0deg, rgba(14, 14, 15, 0.5) 0%, rgba(14, 14, 15, 0) 30%);
}

.gx-craft.is-pinned .gx-craft__poster,
.gx-craft.is-pinned .gx-craft__video {
    object-position: 70% 50%;
}

.gx-craft.is-pinned .gx-craft__inner {
    padding-block: calc(var(--gx-sticky-top) + 32px) 32px;
}

.gx-craft.is-pinned .gx-craft__content {
    max-width: 480px;
}

.gx-craft.is-pinned .gx-craft__steps {
    margin-top: 32px;
}

.gx-craft.is-pinned .gx-craft__step {
    padding: 16px 0;
    opacity: 0.42;
    transition: opacity var(--gx-mid) var(--gx-ease);
}

.gx-craft.is-pinned .gx-craft__step-text {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height var(--gx-mid) var(--gx-ease), opacity var(--gx-mid) var(--gx-ease);
}

.gx-craft.is-pinned .gx-craft__step.is-active {
    opacity: 1;
}

.gx-craft.is-pinned .gx-craft__step.is-active .gx-craft__step-text {
    max-height: 7em;
    opacity: 1;
}

.gx-craft.is-pinned .gx-craft__progress {
    display: block;
    position: relative;
    height: 2px;
    margin-top: 24px;
    background: rgba(255, 255, 255, 0.14);
}

.gx-craft.is-pinned .gx-craft__progress span {
    position: absolute;
    inset: 0;
    background: var(--gx-yellow);
    transform: scaleX(var(--p, 0));
    transform-origin: left;
}

@media (min-width: 768px) and (max-width: 1023px) {
    .gx-craft__media {
        aspect-ratio: 16 / 8;
    }
}

@media (max-height: 760px) {
    .gx-craft.is-pinned .gx-craft__lead {
        display: none;
    }
}
