/* ===== Projects — Netflix-style browse screen (page hero) ===== */
.projects-section {
    width: 100%;
    padding: 0;
}

/* ---- Expanding stage (clip-path is driven from JS by scroll) ----
   Taller than one viewport: the screen pins (sticky) so the section
   holds fullscreen while scrolling through it. */
.nfx-stage {
    position: relative;
    width: 100%;
    /* One viewport for the screen + a short dwell — enough for the lift/parallax
       to play out without the pin feeling like a hard scroll lock */
    height: 160vh;
    height: 160svh;
    background: #0b0b0d;
    will-change: clip-path;
}

/* Horizontal padding that tracks the 1560px content grid once fullscreen */
.nfx-screen {
    --nfx-gutter: max(5vw, calc((100vw - 1560px) / 2 + 2.5rem));
    position: sticky;
    top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100svh;
    min-height: 620px;
    overflow: hidden;
    color: #fff;
}

/* ---- Featured background ---- */
.nfx-bg,
.nfx-bg-media {
    position: absolute;
    inset: 0;
}

/* Parallax layer: bleeds past the bottom so the upward drift never shows a gap */
.nfx-bg-parallax {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: -12vh;
    will-change: transform;
}

.nfx-bg-media video,
.nfx-bg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nfx-kenburns {
    animation: nfx-kenburns 26s ease-in-out infinite alternate;
    transform-origin: 60% 40%;
}

@keyframes nfx-kenburns {
    from {
        transform: scale(1.02);
    }
    to {
        transform: scale(1.16) translate(-1.5%, 1.5%);
    }
}

.nfx-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.nfx-shade--left {
    background: linear-gradient(
        90deg,
        rgba(5, 5, 8, 0.82) 0%,
        rgba(5, 5, 8, 0.45) 32%,
        rgba(5, 5, 8, 0) 65%
    );
}

.nfx-shade--bottom {
    background: linear-gradient(
        180deg,
        rgba(5, 5, 8, 0) 55%,
        rgba(5, 5, 8, 0.55) 80%,
        rgba(5, 5, 8, 0.92) 100%
    );
}

/* Content group (meta + row): translated by scroll while pinned */
.nfx-content {
    position: relative;
    z-index: 2;
    will-change: transform;
}

/* ---- Featured meta block ---- */
.nfx-meta {
    position: relative;
    z-index: 2;
    padding-inline: var(--nfx-gutter);
    max-width: calc(var(--nfx-gutter) + 640px);
    margin-bottom: clamp(1.5rem, 4vh, 3.5rem);
}

.nfx-brand-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.nfx-mark {
    width: 22px;
    height: 26px;
    color: #ff7832;
    filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.5));
}

.nfx-category {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.42em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.nfx-title-logo {
    display: block;
    max-height: clamp(76px, 11vw, 150px);
    max-width: min(520px, 70%);
    object-fit: contain;
    margin-bottom: 1.4rem;
    filter: drop-shadow(0 6px 22px rgba(0, 0, 0, 0.45));
}

/* Per-logo tuning */
.nfx-logo--orf {
    max-height: clamp(56px, 6.5vw, 92px);
    border-radius: 6px;
}

/* The XCC artwork is a square canvas with the wordmark in the middle —
   crop to the strip instead of scaling the whole square down. */
.nfx-logo--xcc {
    width: min(420px, 64%);
    height: clamp(80px, 9.5vw, 120px);
    object-fit: cover;
    object-position: 50% 45%;
    max-width: none;
    max-height: none;
}

/* Square logo canvases (Schmuckstars, Umberto Felipe): crop to the mark strip */
.nfx-logo--sq {
    width: min(460px, 66%);
    height: clamp(110px, 12vw, 160px);
    object-fit: cover;
    object-position: 50% 50%;
    max-width: none;
    max-height: none;
}

/* Dark/grey logos → pure white for the dark screen */
.nfx-logo--invert {
    filter: brightness(0) invert(1) drop-shadow(0 6px 22px rgba(0, 0, 0, 0.45));
}

.nfx-title-text {
    margin: 0 0 1.4rem;
    font-size: clamp(2.7rem, 6vw, 4.8rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    text-shadow: 0 4px 28px rgba(0, 0, 0, 0.5);
}

.nfx-top10 {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 1.1rem;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.nfx-top10-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 4px;
    background: linear-gradient(180deg, #ff8c4d, #f05a00);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    line-height: 1;
}

.nfx-top10-badge em {
    font-style: normal;
    font-size: 0.42rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.nfx-top10-badge strong {
    font-size: 0.85rem;
    font-weight: 800;
}

.nfx-desc {
    margin: 0 0 1.6rem;
    max-width: 34rem;
    font-size: clamp(0.98rem, 1.2vw, 1.15rem);
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.96);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

/* ---- Buttons ---- */
.nfx-actions {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.nfx-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.72rem 1.7rem;
    border-radius: 6px;
    border: none;
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.25s ease;
}

.nfx-btn--play {
    background: #fff;
    color: #0b0b0d;
}

.nfx-btn--play:hover {
    background: rgba(255, 255, 255, 0.82);
}

.nfx-btn--info {
    background: rgba(109, 109, 110, 0.7);
    color: #fff;
}

.nfx-btn--info:hover {
    background: rgba(109, 109, 110, 0.5);
}

.nfx-btn--soon {
    background: rgba(109, 109, 110, 0.45);
    color: rgba(255, 255, 255, 0.75);
    cursor: default;
}

/* ---- Cover row ---- */
.nfx-row {
    position: relative;
    z-index: 2;
    padding-bottom: clamp(1.2rem, 3vh, 2.2rem);
}

.nfx-row-title {
    margin: 0 0 0.8rem;
    padding-inline: var(--nfx-gutter);
    font-size: clamp(1.05rem, 1.4vw, 1.4rem);
    font-weight: 700;
    color: #fff;
}

.nfx-row-wrap {
    position: relative;
}

.nfx-row-scroller {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem var(--nfx-gutter);
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    cursor: grab;
    user-select: none;
    /* keep fast flicks on the compositor */
    transform: translateZ(0);
}

.nfx-row-scroller:active {
    cursor: grabbing;
}

.nfx-row-scroller::-webkit-scrollbar {
    display: none;
}

.nfx-cover {
    position: relative;
    flex: 0 0 auto;
    width: clamp(300px, 24vw, 460px);
    aspect-ratio: 16 / 9;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #17171a;
    cursor: pointer;
    /* own compositor layer + isolated paint → fast flicks never repaint tiles */
    contain: layout paint;
    backface-visibility: hidden;
    transform: translateZ(0);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.nfx-cover:hover,
.nfx-cover:focus-visible {
    transform: translateZ(0) scale(1.05);
    z-index: 2;
}

.nfx-cover.is-active {
    border-color: rgba(255, 255, 255, 0.9);
}

.nfx-cover-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.nfx-cover-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.55) 100%);
    pointer-events: none;
}

.nfx-cover-mark {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 19px;
    height: 23px;
    color: #ff7832;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

.nfx-cover-logo {
    position: absolute;
    left: 14px;
    bottom: 12px;
    max-width: 38%;
    max-height: 22%;
    object-fit: contain;
    pointer-events: none;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.nfx-cover-logo.nfx-logo--orf {
    max-height: 15%;
    border-radius: 3px;
}

.nfx-cover-logo.nfx-logo--xcc {
    width: 36%;
    height: 20%;
    object-fit: cover;
    object-position: 50% 45%;
    max-width: none;
    max-height: none;
}

.nfx-cover-logo.nfx-logo--sq {
    width: 38%;
    height: 26%;
    object-fit: cover;
    object-position: 50% 50%;
    max-width: none;
    max-height: none;
}

.nfx-cover-logo.nfx-logo--invert {
    filter: brightness(0) invert(1) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.55));
}

.nfx-cover-title {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 12px;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    pointer-events: none;
}

/* ---- Row arrows ---- */
.nfx-row-arrow {
    position: absolute;
    top: 0.5rem;
    bottom: 0.5rem;
    width: max(2.8vw, 44px);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    color: #fff;
    background: rgba(10, 10, 12, 0.45);
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.25s ease, background 0.25s ease;
    z-index: 3;
}

.nfx-row-arrow--left {
    left: 0;
    border-radius: 0 4px 4px 0;
}

.nfx-row-arrow--right {
    right: 0;
    border-radius: 4px 0 0 4px;
}

.nfx-row-wrap:hover .nfx-row-arrow,
.nfx-row-arrow:focus-visible {
    opacity: 1;
}

.nfx-row-arrow:hover {
    background: rgba(10, 10, 12, 0.7);
}

@media (hover: none) {
    .nfx-row-arrow {
        display: none;
    }
}

/* ---- Mobile ---- */
@media (max-width: 768px) {
    .nfx-screen {
        --nfx-gutter: 1.25rem;
        min-height: 560px;
    }

    .nfx-title-logo {
        max-width: 80%;
    }

    .nfx-desc {
        font-size: 0.95rem;
    }

    .nfx-btn {
        padding: 0.62rem 1.3rem;
        font-size: 0.98rem;
    }

    .nfx-cover {
        width: 240px;
    }
}

/* ===== livo.wedding adaptations (component CSS above is 1:1) ===== */

/* The page body defaults to Cormorant Garamond (serif); the browse screen
   keeps the streaming-app sans look from livo-media.at. */
.projects-section {
    font-family: "Jost", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Inline player (Ansehen button → video morph) ---------- */
button.nfx-btn {
    font-family: inherit;
    cursor: pointer;
}
.nfx-player-overlay {
    position: fixed;
    inset: 0;
    z-index: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 4vw, 3rem);
    background: rgba(5, 4, 3, 0.86);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.nfx-player-box {
    position: relative;
    width: min(1100px, 94vw);
    aspect-ratio: 16 / 9;
    max-height: 86vh;
    background: #000;
    overflow: hidden;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.65);
}
.nfx-player-box video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #000;
}
.nfx-player-close {
    position: absolute;
    top: 0.85rem;
    right: 0.85rem;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.25s ease;
}
.nfx-player-close:hover {
    background: rgba(255, 255, 255, 0.22);
}
