/* ═══════════════════════════════════════════════════════════
   PAGES.CSS — NeuralNerdworks v2
   TOC:
     1. Hero (video + title + hover menu)
     2. Projects Zone (mirror + quill)
     3. Carousel Zone
   ═══════════════════════════════════════════════════════════ */

/* ─── 1. HERO ─── */
.hero {
    position: relative;
    height: 100vh;
    height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: default;
}

.hero-video-wrap {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
/* Placeholder gradient — only needed when no video is present.
   Remove this block once hero video is active. */
/*
.hero-video-wrap::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 40% 35%, rgba(212, 165, 116, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 65% 55%, rgba(155, 125, 212, 0.05) 0%, transparent 70%),
        linear-gradient(170deg, #0a0a0f 0%, #080812 50%, #050508 100%);
    z-index: 1;
}
*/

/* Fade to black at bottom */
.hero-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.85) 65%, #000 100%);
    z-index: 2;
    pointer-events: none;
}

/* Fullscreen toggle — beside title */
.title-with-fs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.8rem, 2vw, 1.5rem);
}

.hero-fullscreen {
    width: clamp(18px, 2.5vw, 28px);
    height: clamp(18px, 2.5vw, 28px);
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.2);
    transition: color 0.3s ease, transform 0.3s ease;
    flex-shrink: 0;
}
.hero-fullscreen:hover {
    color: rgba(255, 255, 255, 0.6);
    transform: scale(1.15);
}
.hero-fullscreen svg {
    width: 100%;
    height: 100%;
}

/* Title + menu cluster */
.hero-center {
    position: relative;
    z-index: 10;
    text-align: center;
    user-select: none;
}

.site-title {
    font-family: var(--font-industrial);
    font-weight: 700;
    font-size: clamp(3.5rem, 8vw, 8rem);
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    cursor: default;
    margin: 0;
}

.title-row {
    display: inline-flex;
    position: relative;
    isolation: isolate;
}

/* Glitch — vertical static lines, darken-blended to text only */
.glitch-line {
    position: absolute;
    pointer-events: none;
    z-index: 20;
    mix-blend-mode: darken;
}

/* Letters must NOT transition transform/opacity — glitch must be instant */
.letter {
    transition: none;
}

.letter {
    font-family: var(--font-industrial);
    font-weight: 700;
    font-size: clamp(3.5rem, 8vw, 8rem);
    letter-spacing: 0.14em;
    line-height: 1;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    position: relative;
    display: inline-block;
}

/* Each letter's mirrored reflection */
.letter::after {
    content: attr(data-char);
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    transform: scaleY(-1);
    transform-origin: top center;
    color: rgba(255, 255, 255, 0.12);
    filter: blur(1.5px);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 40%, transparent 80%);
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 40%, transparent 80%);
    pointer-events: none;
}

/* Soft glow beneath each letter */
.letter::before {
    content: '';
    position: absolute;
    top: 95%;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3em;
    background: radial-gradient(ellipse 100% 60% at 50% 0%, rgba(255,255,255,0.05) 0%, transparent 100%);
    pointer-events: none;
}

/* Menu — hidden until title hover */
.hero-menu {
    display: flex;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    margin-top: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.5s var(--ease-out), opacity 0.4s ease, margin-top 0.4s var(--ease-out);
}

.hero-center:hover .hero-menu {
    max-height: 80px;
    opacity: 1;
    margin-top: 1.8rem;
}

.hero-menu span {
    font-family: var(--font-industrial);
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(232, 230, 225, 0.4);
    transition: color 0.3s ease, transform 0.3s var(--ease-out), letter-spacing 0.3s ease;
    display: inline-block;
    cursor: pointer;
}
.hero-menu span:hover {
    color: #fff;
    transform: scale(1.15);
    letter-spacing: 0.24em;
}
.hero-menu span:nth-child(1):hover { color: var(--col-a); }
.hero-menu span:nth-child(2):hover { color: var(--text); }
.hero-menu span:nth-child(3):hover { color: var(--col-b); }
.hero-menu span:nth-child(4):hover { color: rgba(232, 230, 225, 0.6); }

/* ─── 2. PROJECTS ZONE ─── */
.projects-zone {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem;
    background: #000;
}

.projects-layout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(4rem, 16vw, 20rem);
    max-width: 1100px;
    width: 100%;
}

@media (max-width: 700px) {
    .projects-layout {
        flex-direction: column;
        gap: 3rem;
    }
}

/* ─── OUTRO ─── */
.outro {
    position: relative;
    height: 100vh;
    height: 100dvh;
    overflow: hidden;
}

.outro-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ─── 7. VIDEO THEATER — CSS lives in templates/index.html ─── */

/* ─── 8. MUSIC SECTION ─── */

.music-section {
    max-width: 680px;
    margin: 0 auto;
    padding: 6vh 24px;
}

/* Fade FROM black at top */
.outro-fade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 45%;
    background: linear-gradient(to top, transparent 0%, rgba(0, 0, 0, 0.4) 30%, rgba(0, 0, 0, 0.85) 65%, #000 100%);
    z-index: 2;
    pointer-events: none;
}