/* =======================
   RESET & BASE
======================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

html {
    scroll-behavior: smooth;
}

/* =======================
   HEADER — ATO / NARRATIVA
======================= */

.header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 10;
    background: transparent;
    transition:
        transform 0.8s ease,
        opacity 0.8s ease;
}

.header.is-hidden {
    transform: translateY(40px);
    opacity: 0;
    pointer-events: none;
}

.header-container {
    max-width: 1200px;
    margin: auto;
    padding: 28px 40px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

/* Logo / Marca */
.logo {
    position: relative;
}

.logo img {
    width: 72px;
    opacity: 0.6;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.12));
}

.logo::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -10px;
    width: 24px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

/* Navegação por Atos */
.nav-acts a {
    margin-left: 28px;
    font-size: 0.7rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    opacity: 0.4;
    transition: opacity 0.3s ease;
}

.nav-acts a:hover {
    opacity: 1;
}

/* =======================
   HERO — ATO I (EDITORIAL)
======================= */

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    padding: 0 100px;

    background-image: url("img/hero.jpg");
    background-size: 120%;
    background-position: 80% center;
    background-repeat: no-repeat;

    overflow: hidden;
}

/* Camadas de luz / cinema */
.hero-overlay {
    position: absolute;
    inset: 0;
    background:
        /* Glow focal (rosto / olhos) */
        radial-gradient(circle at 78% 45%,
            rgba(181, 90, 255, 0.267),
            rgba(120, 40, 200, 0.26),
            transparent 55%),

        /* Aura roxa espalhada */
        radial-gradient(circle at 85% 30%,
            rgba(162, 0, 255, 0.05),
            transparent 65%),

        /* Gradiente base cinematográfico */
        linear-gradient(90deg,
            rgba(0, 0, 0, 0.96) 0%,
            rgba(0, 0, 0, 0.75) 42%,
            rgba(0, 0, 0, 0.35) 70%);
}

/* Conteúdo editorial */
.hero-content {
    position: relative;
    z-index: 1;
    max-width: 560px;
}

/* Eyebrow / Ato */
.hero-eyebrow {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 28px;
}

/* Título principal */
.hero h1 {
    font-size: clamp(3.8rem, 6vw, 5.2rem);
    line-height: 0.95;
    letter-spacing: -1px;
    text-transform: uppercase;
}

/* Divisor gráfico */
.hero-divider {
    width: 48px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
    margin: 28px 0;
}

/* Subtexto */
.hero p {
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.65;
    max-width: 420px;
}

/* =========================
   ATO 2 — FAIXA RITUAL
========================= */

.act-2 {
    position: relative;
    width: 100%;
    height: 120px;
    /* altura cinematográfica */
    background: #000;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* Wrapper que mascara o loop */
.ritual-wrapper {
    width: 100%;
    overflow: hidden;
}

/* Track animado */
.ritual-track {
    display: flex;
    align-items: center;
    gap: 80px;
    width: max-content;
    animation: ritual-marquee 32s linear infinite;
    will-change: transform;
}

/* Texto */
.ritual-item {
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.35;
    white-space: nowrap;
}

/* Logo 30 */
.ritual-item.logo {
    font-size: 2.2rem;
    font-weight: 300;
    letter-spacing: 2px;
    opacity: 0.25;
}

/* Loop infinito real */
@keyframes ritual-marquee {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-35%);
    }
}

/* =========================
   ATO 3 — IMAGEM + TEXTO
========================= */

.cinema-item {
    position: relative;
    width: 100%;
    height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* =========================
   IMAGEM (CENA)
========================= */

.cinema-item img {
    width: 70%;
    height: 100%;
    object-fit: cover;

    transform: scale(0.96);
    opacity: 0.35;

    transition:
        transform 1.2s ease,
        opacity 1.2s ease,
        filter 1.2s ease;
}

/* Ativação pelo scroll */
.cinema-item.is-active img {
    transform: scale(1);
    opacity: 1;
}

/* Hover — imagem recua (descoberta) */
.cinema-item:hover img {
    transform: scale(0.92);
    filter: brightness(0.6);
}

/* =========================
   INFO LATERAL (REVELAÇÃO)
========================= */

.cinema-info {
    position: absolute;
    right: 8%;
    top: 50%;
    transform: translateY(-50%) translateX(40px);

    max-width: 320px;
    z-index: 2;

    opacity: 0;
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;

    pointer-events: none;
    /* bloqueia interação geral */
}

/* Aparece somente no hover */
.cinema-item:hover .cinema-info {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}

/* =========================
   TEXTO
========================= */

.music-year {
    font-size: 0.7rem;
    letter-spacing: 3px;
    opacity: 0.5;
}

.music-title {
    font-size: 2rem;
    margin: 12px 0;
}

.music-desc {
    font-size: 0.95rem;
    line-height: 1.6;
    opacity: 0.75;
}

/* =========================
   LINKS (INTERAÇÃO REAL)
========================= */

.music-links {
    margin-top: 20px;
    display: flex;
    gap: 24px;

    pointer-events: auto;
    /* libera clique */
}

.music-links a {
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;

    opacity: 0.6;
    cursor: pointer;

    transition: opacity 0.3s ease;
}

.music-links a:hover {
    opacity: 1;
}

/* =======================
   INTERLÚDIO — TRANSIÇÃO FINAL
======================= */

.act-3-5 {
    position: relative;
    height: 160px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Linha */
.closing-line {
    position: relative;
    font-size: 0.7rem;
    letter-spacing: 6px;
    text-transform: uppercase;
    opacity: 0.35;
}

/* Linha esquerda */
.closing-line::before,
.closing-line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 140px;
    height: 1px;
    background: linear-gradient(to right,
            transparent,
            rgba(255, 255, 255, 0.35),
            transparent);
}

.closing-line::before {
    right: 100%;
    margin-right: 24px;
}

.closing-line::after {
    left: 100%;
    margin-left: 24px;
}

/* Animação sutil */
@keyframes fadePulse {

    0%,
    100% {
        opacity: 0.25;
    }

    50% {
        opacity: 0.5;
    }
}

.closing-line {
    animation: fadePulse 6s ease-in-out infinite;
}


/* =======================
   ATO 4 — ARQUIVO VIVO
======================= */

.act-4-archive {
    height: 500vh;
    /* controla duração da história */
    background: #000;
    position: relative;
}

/* Área fixa */
.archive-sticky {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
}

/* Cada memória */
.archive-item {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;

    opacity: 0;
    transform: scale(0.96);
    transition:
        opacity 1s ease,
        transform 1s ease;
}

/* Imagem */
.archive-item img {
    max-width: 70%;
    max-height: 75vh;
    object-fit: contain;
}

/* Texto mínimo */
.archive-label {
    position: absolute;
    bottom: 10%;
    left: 10%;
    font-size: 0.7rem;
    letter-spacing: 4px;
    opacity: 0.5;
}

/* Ativa */
.archive-item.is-active {
    opacity: 1;
    transform: scale(1);
}



/*PLAYER DE MÚSICA - parte mais legal do site, imersão pura*/

.music-wrapper {
    position: fixed;
    left: 18px;
    bottom: 22px;
    z-index: 12000;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    pointer-events: none;
}

/* =========================
   MUSIC PLAYER — CINEMA
========================= */

.music-wrapper {
    position: fixed;
    left: 20px;
    bottom: 26px;
    z-index: 12000;
    display: flex;
    align-items: flex-end;
    gap: 14px;
    pointer-events: none;
}

/* =========================
   TOGGLE — BOTÃO RITUAL
========================= */
.music-toggle {
    pointer-events: auto;
    appearance: none;
    border: none;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%,
            rgba(180, 90, 255, 0.25),
            rgba(20, 20, 20, 0.9) 60%);
    backdrop-filter: blur(10px);
    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.85),
        inset 0 0 12px rgba(180, 90, 255, 0.15);
    border: 1px solid rgba(180, 90, 255, 0.18);
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease;
}

.music-toggle:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        0 14px 40px rgba(0, 0, 0, 0.9),
        inset 0 0 18px rgba(180, 90, 255, 0.25);
}

.music-toggle img {
    width: 22px;
    height: 22px;
    filter: invert(1) brightness(1.6);
    opacity: 0.85;
}

/* =========================
   MENU — OBJETO CÊNICO
========================= */
.music-menu {
    pointer-events: auto;
    width: 280px;
    max-width: calc(100vw - 80px);

    background:
        linear-gradient(180deg,
            rgba(10, 10, 10, 0.88),
            rgba(5, 5, 5, 0.96));

    border-radius: 16px;
    padding: 16px 14px;
    margin-right: 6px;

    color: #ffffff;

    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.95),
        inset 0 0 40px rgba(162, 0, 255, 0.147);

    border: 1px solid rgba(160, 0, 255, 0.12);

    transform-origin: bottom left;
    transform: translateY(14px) scale(0.96);
    opacity: 0;
    visibility: hidden;
    transition:
        opacity .28s ease,
        transform .28s ease,
        visibility .28s;
}

.music-menu.open {
    transform: translateY(0) scale(1);
    opacity: 1;
    visibility: visible;
}

/* =========================
   HEADER — SILENCIOSO
========================= */
.music-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.music-header strong {
    font-size: 0.75rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.7;
}

.music-close {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    font-size: 1rem;
}

/* =========================
   LISTA — FAIXAS COMO CENAS
========================= */
.music-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 14px;
}

.music-track {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;

    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;

    border: 1px solid rgba(255, 255, 255, 0.04);

    cursor: pointer;
    transition: background .25s ease, border .25s ease;
}

.music-track:hover {
    background: rgba(160, 0, 255, 0.06);
}

.music-track[aria-pressed="true"] {
    background:
        linear-gradient(90deg,
            rgba(160, 0, 255, 0.22),
            rgba(160, 0, 255, 0.06));
    border-color: rgba(160, 0, 255, 0.35);
    box-shadow: inset 0 0 20px rgba(160, 0, 255, 0.25);
}

.track-title {
    font-size: 0.9rem;
    opacity: 0.9;
    color: #fff;
}

.track-action {
    font-size: 0.85rem;
    opacity: 0.7;
    color: #fff;
}

/* =========================
   CONTROLES — MINIMAL
========================= */
.music-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.music-controls label {
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.6;
}

.music-controls input[type="range"] {
    width: 120px;
    accent-color: rgb(180, 90, 255);
}

/* =========================
   BOTÃO STOP — FANTASMA
========================= */
.btn-ghost {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity .25s ease, border .25s ease;
}

.btn-ghost:hover {
    opacity: 1;
    border-color: rgba(160, 0, 255, 0.4);
}

/* =========================
   NOTA — SUSSURRO
========================= */
.music-note {
    font-size: 0.65rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.55);
    opacity: 0.6;
}



/* =======================
   FOOTER — CINEMA
======================= */

.footer-cinema {
    position: relative;
    min-height: 100vh;
    background: #000;
    overflow: hidden;
}

/* Imagem */
.footer-image {
    position: absolute;
    inset: 0;
}

.footer-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.05);
}

/* Mobile escondida no desktop */
.footer-img-mobile {
    display: none;
}

/* Luz interativa */
.footer-light {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center,
            rgba(255, 255, 255, 0.12),
            rgba(0, 0, 0, 0.9) 55%);
    transition: background 0.2s ease;
}

/* Conteúdo */
.footer-content {
    position: relative;
    z-index: 2;
    height: 100%;
    padding: 80px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    text-align: center;
    gap: 14px;
}

/* Tipografia */
.footer-eyebrow {
    font-size: 0.65rem;
    letter-spacing: 6px;
    opacity: 0.5;
}

.footer-legal {
    font-size: 0.75rem;
    line-height: 1.5;
    opacity: 0.45;
}

.footer-license {
    font-size: 0.7rem;
    letter-spacing: 2px;
    opacity: 0.35;
}

.footer-meta {
    font-size: 0.65rem;
    letter-spacing: 2px;
    opacity: 0.25;
}



/* =======================
   MOBILE
======================= */
@media (max-width: 1024px) {

    .header-container {
        padding: 24px 24px;
    }

    .hero {
        padding: 0 24px;
        background-size: cover;
        background-position: center right;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero h1 {
        font-size: 3.2rem;
    }

    .hero p {
        font-size: 0.95rem;
    }

    .nav-acts {
        display: none;
    }
}

@media (max-width: 1024px) {

    .cinema-item {
        height: auto;
        min-height: 100vh;
        padding: 0;
        flex-direction: column;
        align-items: stretch;
    }

    /* IMAGEM COMO CENA */
    .cinema-item img {
        width: 100%;
        height: 65vh;
        object-fit: cover;
        transform: none;
        opacity: 1;
    }

    .cinema-item:hover img {
        transform: none;
        filter: none;
    }

    /* BLOCO DE INFO — PLACA */
    .cinema-info {
        position: relative;
        transform: none;
        opacity: 1;
        pointer-events: auto;

        max-width: 100%;
        padding: 28px 20px 36px;

        background: linear-gradient(180deg,
                rgba(0, 0, 0, 0.85),
                rgba(0, 0, 0, 1));

        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* TEXTO MAIS EDITORIAL */
    .music-year {
        font-size: 0.65rem;
        letter-spacing: 3px;
        opacity: 0.6;
    }

    .music-title {
        font-size: 1.7rem;
        margin: 10px 0 14px;
    }

    .music-desc {
        font-size: 0.9rem;
        line-height: 1.55;
        opacity: 0.75;
    }

    /* LINKS MAIS CONTIDOS */
    .music-links {
        margin-top: 18px;
        gap: 20px;
    }

    .music-links a {
        font-size: 0.7rem;
        opacity: 0.8;
    }
}


@media (max-width: 1024px) {

    .cinema-item {
        height: auto;
        min-height: 100vh;
        padding: 0;
        flex-direction: column;
        align-items: stretch;
    }

    /* IMAGEM COMO CENA */
    .cinema-item img {
        width: 100%;
        height: 65vh;
        object-fit: cover;
        transform: none;
        opacity: 1;
    }

    .cinema-item:hover img {
        transform: none;
        filter: none;
    }

    /* BLOCO DE INFO — PLACA */
    .cinema-info {
        position: relative;
        transform: none;
        opacity: 1;
        pointer-events: auto;
        background: linear-gradient(180deg,
                rgba(0, 0, 0, 0.85),
                rgba(0, 0, 0, 1));
        border-top: 1px solid rgba(255, 255, 255, 0.06);
    }

    /* CONTEÚDO EDITORIAL */
    .cinema-info-inner {
        padding: 28px 20px 36px;
        max-width: 640px;
        margin: 0 auto;
    }

    /* TEXTO */
    .music-year {
        font-size: 0.65rem;
        letter-spacing: 3px;
        opacity: 0.6;
    }

    .music-title {
        font-size: 1.7rem;
        margin: 10px 0 14px;
    }

    .music-desc {
        font-size: 0.9rem;
        line-height: 1.55;
        opacity: 0.75;
    }

    /* LINKS */
    .music-links {
        margin-top: 18px;
        gap: 20px;
    }

    .music-links a {
        font-size: 0.7rem;
        opacity: 0.8;
    }
}

@media (max-width: 768px) {

    /* Troca imagem */
    .footer-img-desktop {
        display: none;
    }

    .footer-img-mobile {
        display: block;
    }

    /* Ajustes de texto */
    .footer-content {
        padding: 64px 20px;
        gap: 12px;
    }

    .footer-eyebrow {
        letter-spacing: 4px;
    }

    .footer-legal {
        font-size: 0.7rem;
    }

    .footer-license,
    .footer-meta {
        font-size: 0.6rem;
    }
}