
/* ===================================================
   MARE NEVE — DIRECTOR'S EXPERIENCE V1
   Additional cinematic interactions
=================================================== */

:root {
    --mn-gold: #d8b879;
    --mn-white: #f5f2eb;
    --mn-black: #080808;
}

/* ================================================
   01 — OPENING CREDITS
================================================ */

.film-page.mn-experience .film-intro {
    position: relative;
}

.mn-opening-credit {
    display: block;
    color: var(--mn-gold);
    font-family: Helvetica, Arial, sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: .22em;
    text-transform: uppercase;
    margin-bottom: 15px;
    opacity: 0;
    transform: translateY(9px);
}

.mn-opening-ready .mn-opening-credit {
    animation: mnCreditIn 900ms ease forwards;
}

.mn-opening-ready .film-intro h1 {
    animation: mnTitleIn 1200ms cubic-bezier(.16,1,.3,1) both;
    animation-delay: 150ms;
}

.mn-opening-ready .film-intro .film-poster,
.mn-opening-ready .film-poster {
    animation: mnPosterIn 1300ms cubic-bezier(.16,1,.3,1) both;
    animation-delay: 370ms;
}

@keyframes mnCreditIn {
    to { opacity: 1; transform: translateY(0); }
}

@keyframes mnTitleIn {
    from {
        opacity: 0;
        filter: blur(7px);
        transform: translateY(27px);
    }
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

@keyframes mnPosterIn {
    from {
        opacity: 0;
        clip-path: inset(0 0 100% 0);
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translateY(0);
    }
}


/* ================================================
   02 — IMMERSIVE FRAMES
================================================ */

.film-frames .frame-entry {
    --mn-frame-progress: 0;
}

.film-frames .frame-image {
    transform:
        translate3d(0, calc((1 - var(--mn-frame-progress)) * 13px), 0)
        scale(calc(0.975 + var(--mn-frame-progress) * .025));

    transform-origin: center center;
    transition: transform 100ms linear;
    will-change: transform;
}

.film-frames .frame-description {
    transform:
        translateY(calc((1 - var(--mn-frame-progress)) * 8px));

    transition: transform 100ms linear;
}


/* ================================================
   03 — LIVING SYNOPSIS
================================================ */

.mn-synopsis-line {
    display: block;
    color: rgba(245,242,235,.48);
    transition: color 480ms ease, opacity 480ms ease;
}

.mn-synopsis-line.mn-line-active {
    color: var(--mn-white);
}


/* ================================================
   04 — NARRATIVE TIMELINE
================================================ */

.film-frames.mn-timeline-host {
    position: relative;
    --mn-timeline-progress: 0;
}

.mn-timeline {
    position: absolute;
    top: 0;
    bottom: 0;
    left: clamp(10px, 2.5vw, 35px);

    width: 1px;
    pointer-events: none;
    z-index: 8;
}

.mn-timeline::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(216,184,121,.16);
}

.mn-timeline-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: calc(var(--mn-timeline-progress) * 100%);
    background: var(--mn-gold);
    box-shadow: 0 0 8px rgba(216,184,121,.45);
    transition: height 100ms linear;
}

.mn-timeline-nodes {
    position: absolute;
    inset: 0;
}

.mn-timeline-node {
    position: absolute;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    transform: translate(-2px,-50%);
    background: #35302a;
    border: 1px solid rgba(216,184,121,.5);
    transition:
        background 250ms ease,
        box-shadow 250ms ease,
        transform 250ms ease;
}

.mn-timeline-node.mn-node-active {
    background: var(--mn-gold);
    box-shadow: 0 0 11px rgba(216,184,121,.8);
    transform: translate(-2px,-50%) scale(1.35);
}


/* ================================================
   05 — CINEMA MODE
================================================ */

.mn-cinema-trigger {
    cursor: zoom-in;
}

.mn-cinema {
    position: fixed;
    inset: 0;
    z-index: 2147483645;
    background: rgba(3,3,3,.97);
    color: var(--mn-white);

    display: grid;
    grid-template-rows: auto minmax(0,1fr) auto;
    gap: 12px;
    padding: clamp(16px,3vw,38px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 280ms ease, visibility 280ms ease;
}

.mn-cinema.mn-cinema-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mn-cinema-header,
.mn-cinema-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    font-family: Helvetica,Arial,sans-serif;
    font-size: 10px;
    letter-spacing: .14em;
}

.mn-cinema-header > span,
.mn-cinema-footer > span {
    color: var(--mn-gold);
}

.mn-cinema button {
    appearance: none;
    border: 0;
    background: none;
    color: var(--mn-white);
    font: inherit;
    letter-spacing: inherit;
    cursor: pointer;
    padding: 10px;
}

.mn-cinema button:hover,
.mn-cinema button:focus-visible {
    color: var(--mn-gold);
}

.mn-cinema-stage {
    position: relative;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(8px,2vw,30px);
}

.mn-cinema-photo {
    max-width: min(78vw,1300px);
    max-height: 75vh;
    min-width: 0;
    width: auto;
    height: auto;
    object-fit: contain;
    box-shadow: 0 15px 65px rgba(0,0,0,.4);
}

.mn-cinema-photo.mn-photo-changing {
    animation: mnPhotoChange 300ms ease;
}

@keyframes mnPhotoChange {
    from { opacity: .4; transform: scale(.987); }
    to { opacity: 1; transform: scale(1); }
}

.mn-cinema-arrow {
    flex-shrink: 0;
    font-size: clamp(19px,3vw,31px) !important;
}

.mn-cinema-footer {
    justify-content: center;
    color: rgba(245,242,235,.55);
}

body.mn-cinema-lock {
    overflow: hidden !important;
}

@media (max-width: 650px) {
    .mn-cinema-stage {
        gap: 3px;
    }
    .mn-cinema-photo {
        max-width: calc(100vw - 110px);
    }
}


/* ================================================
   06 — FIN. ENDING
================================================ */

.mn-ending {
    position: relative;
    padding: clamp(110px,18vw,240px) 5% 120px;
    min-height: 65vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: var(--mn-black);
}

.mn-ending-kicker {
    color: var(--mn-gold);
    font-size: 9px;
    letter-spacing: .25em;
    margin-bottom: 20px;
}

.mn-ending-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .018em;

    color: var(--mn-white);
    font-family: Georgia,serif;
    font-weight: 400;
    font-size: clamp(110px,24vw,340px);
    letter-spacing: -.065em;
    line-height: 1;
    margin: 0;

    opacity: 0;
    transform: translateY(45px);
    transition:
        opacity 1000ms ease,
        transform 1100ms cubic-bezier(.16,1,.3,1);
}

.mn-ending.mn-ending-visible .mn-ending-title {
    opacity: 1;
    transform: translateY(0);
}

.mn-ending-title span {
    display: inline-block;
    transition:
        transform 450ms cubic-bezier(.16,1,.3,1),
        color 300ms ease;
}

.mn-ending-title:hover span:nth-child(1) {
    transform: translateX(-10px);
}
.mn-ending-title:hover span:nth-child(2) {
    transform: translateY(-8px);
    color: var(--mn-gold);
}
.mn-ending-title:hover span:nth-child(3) {
    transform: translateX(10px);
}
.mn-ending-title:hover span:nth-child(4) {
    transform: translateX(14px);
}

.mn-ending-rule {
    width: min(350px,55vw);
    height: 1px;
    background: rgba(216,184,121,.25);
    margin: 35px auto 22px;
    position: relative;
    overflow: hidden;
}

.mn-ending-rule::after {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--mn-gold);
    transform: translateX(-101%);
    transition: transform 850ms cubic-bezier(.76,0,.24,1);
}

.mn-ending:hover .mn-ending-rule::after,
.mn-ending:focus-within .mn-ending-rule::after {
    transform: translateX(0);
}

.mn-back-link {
    color: var(--mn-white);
    text-decoration: none;
    font-size: 10px;
    letter-spacing: .17em;
    padding: 12px;
    transition: color 220ms ease;
}

.mn-back-link:hover,
.mn-back-link:focus-visible {
    color: var(--mn-gold);
}


/* ================================================
   ACCESSIBILITY
================================================ */

@media (prefers-reduced-motion: reduce) {
    .mn-opening-credit,
    .mn-opening-ready .film-intro h1,
    .mn-opening-ready .film-poster,
    .mn-ending-title,
    .mn-cinema-photo,
    .film-frames .frame-image,
    .film-frames .frame-description {
        animation: none !important;
        transition: none !important;
        clip-path: none !important;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }

    .mn-synopsis-line {
        color: var(--mn-white) !important;
    }
}
