/* ============================================================
   REPERTOIRE PAGE - ELITE EDITORIAL DESIGN
   ============================================================ */

:root {
    --rep-accent: var(--color-accent);
    --rep-muted: rgba(255, 255, 255, 0.4);
    --rep-border: rgba(255, 255, 255, 0.05);
    --glass: rgba(255, 255, 255, 0.02);
}

/* --- Grain Texture --- */
.page-repertoire::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url("https://grainy-gradients.vercel.app/noise.svg");
    opacity: 0.04;
    pointer-events: none;
    z-index: 999;
}

.page-repertoire {
    background: #000;
    color: #fff;
    overflow-x: hidden;
}

/* --- Hero Section: Cinematic Fullwidth --- */
.rep-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000;
}

.rep-hero-media {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    filter: brightness(0.6) contrast(1.1);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.9) 100%);
    z-index: 2;
}

.rep-hero-container {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1400px;
    padding: 0 5vw;
}

.rep-hero-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-kicker-wrapper {
    margin-bottom: 2.5rem;
}

.rep-hero-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.6em;
    color: var(--rep-accent);
    font-weight: 700;
    opacity: 0.9;
}

.rep-hero-title {
    margin: 0;
    font-size: clamp(3.5rem, 11vw, 10rem);
    line-height: 0.85;
    letter-spacing: -0.05em;
    text-transform: none;
    font-family: var(--font-heading);
}

.title-row {
    display: block;
    overflow: hidden;
}

.title-word {
    display: inline-block;
    will-change: transform;
}

.serif-italic {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
}

.hero-description-box {
    margin-top: 5rem;
    max-width: 480px;
}

.hero-description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
    margin: 0;
}

/* Floating Meta Information */
.hero-side-meta {
    position: absolute;
    bottom: 4rem;
    left: 5vw;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.meta-item {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.6rem;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.2em;
    margin-bottom: 0.5rem;
}

.meta-value {
    font-size: 0.85rem;
    color: #fff;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.rep-hero-scroll {
    position: absolute;
    bottom: 1rem;
    right: clamp(1.5rem, 4vw, 4rem);
    left: auto;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    pointer-events: none;
}

.scroll-mouse {
    width: 22px;
    height: 38px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.mouse-wheel {
    width: 2px;
    height: 7px;
    background: var(--color-accent);
    border-radius: 1px;
    position: absolute;
    top: 7px;
    left: 50%;
    transform: translateX(-50%);
    animation: mouseScroll 2s infinite ease-in-out;
}

@keyframes mouseScroll {
    0% { transform: translate(-50%, 0); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(-50%, 16px); opacity: 0; }
}

.scroll-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.4);
}

/* --- Navigation: Glassmorphism --- */
.catalog-filter-wrapper {
    position: sticky;
    top: 0;
    padding: 2rem 0;
    z-index: 100;
    transition: all 0.5s ease;
}

.catalog-filter-wrapper.is-sticky {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(30px);
    border-bottom: 1px solid var(--rep-border);
}

.catalog-filter {
    display: flex;
    justify-content: center;
    gap: 5rem;
    list-style: none;
}

.filter-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    cursor: pointer;
    transition: all 0.4s ease;
}

.filter-btn.active, .filter-btn:hover {
    color: #fff;
    transform: translateY(-2px);
}

/* --- Intro Répertoire --- */
.rep-intro {
    padding: 1.25rem 0;
    text-align: center;
}

.rep-intro-kicker {
    display: inline-block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.42em;
    color: var(--rep-accent);
    margin-bottom: 1.5rem;
}

.rep-intro-title {
    margin: 0 auto 1.25rem;
    max-width: 22ch;
    font-size: clamp(2.2rem, 5.5vw, 4.75rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-transform: none;
    font-weight: 500;
}

.rep-intro-sub {
    margin: 0 auto;
    max-width: 52ch;
    font-size: clamp(1.05rem, 1.6vw, 1.35rem);
    line-height: 1.6;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    color: rgba(255, 255, 255, 0.65);
}

.rep-intro-sub a {
    color: var(--rep-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(var(--color-accent-rgb), 0.45);
    transition: color 0.3s ease, text-decoration-color 0.3s ease;
}

.rep-intro-sub a:hover {
    color: #fff;
    text-decoration-color: #fff;
}

/* --- Catalog Section: Tracklist Style --- */
.catalog-section {
    padding: 1.25rem 0;
}

.catalog-list {
    max-width: 1200px;
    margin: 0 auto;
}

.catalog-item {
    display: grid;
    grid-template-columns: 80px 1.5fr 1fr 150px;
    align-items: center;
    padding: 3.5rem 0;
    border-bottom: 1px solid var(--rep-border);
    transition: all 0.6s cubic-bezier(0.19, 1, 0.22, 1);
    position: relative;
    cursor: none; /* Magnetic interaction will handle this */
}

.catalog-item:hover {
    padding-left: 3rem;
    background: rgba(255, 255, 255, 0.01);
}

.item-index {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    opacity: 0.2;
}

.piece-title {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 1;
    letter-spacing: -0.04em;
    font-weight: 500;
}

.catalog-item:hover .piece-title {
    color: var(--rep-accent);
}

.piece-composer {
    font-size: 1.1rem;
    color: var(--rep-muted);
    font-style: italic;
    font-family: 'Playfair Display', serif;
}

.piece-tag {
    text-align: right;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    opacity: 0.3;
}

/* --- Featured Highlight Section --- */
.rep-highlight {
    position: relative;
}

.final-cta {
    padding: 1.25rem 0;
}

.highlight-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 25vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    white-space: nowrap;
    z-index: 1;
    pointer-events: none;
}

.highlight-content {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10rem;
    align-items: center;
}

.highlight-visual {
    position: relative;
    aspect-ratio: 1;
    background: var(--glass);
    border: 1px solid var(--rep-border);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.highlight-visual img {
    width: 80%;
    height: 80%;
    object-fit: cover;
    filter: brightness(0.8);
    transition: transform 1s ease;
}

.highlight-visual:hover img {
    transform: scale(1.1);
}

.highlight-text h2 {
    font-size: clamp(3rem, 6vw, 6rem);
    margin-bottom: 2rem;
    line-height: 0.9;
}

.highlight-text p {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--rep-muted);
    max-width: 500px;
}

/* --- Responsiveness --- */
@media (max-width: 1024px) {
    .catalog-item {
        grid-template-columns: 50px 1fr 100px;
        padding: 2.5rem 0;
    }
    .piece-composer {
        display: none;
    }
    .highlight-content {
        grid-template-columns: 1fr;
        gap: 5rem;
    }
    .catalog-filter {
        gap: 2rem;
        padding: 0 5vw;
        overflow-x: auto;
        justify-content: flex-start;
    }
}
