/* ============================================================
   VARIÁVEIS E ESTILOS GLOBAIS - AFROLOGIA DIGITAL EXPERIENCE
   ============================================================ */
:root {
    --bg-dark: #0a0a0a;
    --bg-light: #f4ede4;
    --text-primary: #e6e6e6;
    --text-dark: #1a1a1a;
    --accent: #c9956b;
    --accent-dark: #8B4513;

    /* Variáveis da Estante de Livros */
    --shelf-bg: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
    --shelf-edge-top: rgba(255, 255, 255, 0.05);
    --shelf-edge-bottom: rgba(0, 0, 0, 0.8);
    --book-back-cover: #ffffff;
    --book-page: #e6e6e6;
    --book-page-border: rgba(0, 0, 0, 0.4);
    --book-shadow: rgba(0, 0, 0, 0.6);
    --book-shadow-strong: rgba(0, 0, 0, 0.9);
    --side-book-bg: linear-gradient(to right, #1a1a1a 0%, #333 50%, #1a1a1a 100%);
    --side-book-text: #ffffff;
    --side-book-decoration: rgba(255, 255, 255, 0.2);
}

.font-urban { font-family: 'Anton', sans-serif; text-transform: uppercase; }
.font-body { font-family: 'Inter', sans-serif; }

html, body { margin: 0; padding: 0; background-color: var(--bg-dark); color: var(--text-primary); overflow-x: hidden; }

/* Arquitetura para o footer Parallax */
body { display: flex; flex-direction: column; min-height: 100vh; }
body.menu-open { overflow: hidden; } 
.main-content-stack { position: relative; z-index: 2; background: var(--bg-dark); }

/* TEXTURA EDITORIAL DE RUÍDO */
.noise-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9999;
    background: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.04; mix-blend-mode: overlay;
}

/* PRELOADER */
#afro-preloader { position: fixed; inset: 0; background: var(--bg-dark); z-index: 10000; display: flex; align-items: center; justify-content: center; }
.preloader-content { text-align: center; }
.preloader-title { display: block; max-width: 320px; width: clamp(160px, 30vw, 360px); height: auto; margin: 0 auto; }
.preloader-text { font-family: var(--font-body); font-size: 0.9rem; letter-spacing: 0.1em; color: var(--accent); margin-top: 15px;}
body.loaded #afro-preloader { pointer-events: none; }

/* Esconder conteúdo principal até o pré-loader terminar */
body.loading #smooth-wrapper { opacity: 0; pointer-events: none; }
body.loaded #smooth-wrapper { pointer-events: auto; }

/* Header logo: Mantido invisível por padrão. GSAP controlará a aparição */
#header-logo { opacity: 0; }

/* ============================================================
   HEADER E MENU MOBILE RESPONSIVO
   ============================================================ */
.afro-header-wrapper { position: fixed; top: 0; left: 0; width: 100%; z-index: 9000; display: flex; justify-content: space-between; align-items: center; padding: 1.5rem 5%; pointer-events: none; }
.afro-header-wrapper > *:not(.afro-nav-menu) { pointer-events: auto; }
.afro-header-wrapper.menu-active { pointer-events: auto; height: auto; }

.afro-fixed-logo img { height: 40px; object-fit: contain; z-index: 9001; position: relative; will-change: transform; }

.afro-nav-btn { background: transparent; border: none; cursor: pointer; z-index: 9600; position: relative; padding: 10px; }

.burger { display: block; position: relative; width: 30px; height: 20px; }
.bar { position: absolute; left: 0; width: 100%; height: 2px; background-color: var(--text-primary); transform-origin: center; }
.bar.top { top: 0; }
.bar.mid { top: 9px; }
.bar.bot { top: 18px; }

.afro-nav-menu { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(10, 10, 10, 0.98); display: flex; align-items: center; justify-content: center; transform: translateY(-100%); transition: transform 0.6s cubic-bezier(0.77, 0, 0.175, 1); z-index: 9500; opacity: 0; pointer-events: none; }
.afro-nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.afro-nav-list { list-style: none; padding: 0; text-align: center; font-size: 2rem; font-family: 'Anton', sans-serif; }
.afro-nav-link, .afro-accordion-btn { color: var(--text-primary); text-decoration: none; transition: color 0.3s; background: none; border: none; font-size: inherit; text-transform: uppercase; cursor: pointer; }
.afro-nav-link:hover, .afro-accordion-btn:hover { color: var(--accent); }
.afro-nav-item-accordion { position: relative; }

.icon-chevron { width: 14px; height: 14px; margin-left: 6px; vertical-align: middle; transition: transform 0.3s ease; }
.afro-accordion-btn[aria-expanded="true"] .icon-chevron { transform: rotate(180deg); }
.afro-submenu { list-style: none; padding: 0; max-height: 0; overflow: hidden; transition: max-height 0.3s ease; font-family: 'Inter', sans-serif; font-size: 1rem; margin-top: 1rem; }
.afro-submenu.open { max-height: 250px; }
.afro-sub-link { color: #888; text-decoration: none; display: block; margin: 10px 0; transition: 0.3s; }
.afro-sub-link:hover { color: var(--text-primary); }

/* SEÇÕES MANTIDAS INTACTAS - HERO ATÉ GALERIA */
.hero-cinematic { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hero-bg-parallax { position: absolute; inset: -10%; background-size: cover; background-position: center; filter: grayscale(100%) contrast(1.2); opacity: 0.3; }
.hero-overlay-dark { position: absolute; inset: 0; background: radial-gradient(circle at center, transparent 0%, var(--bg-dark) 100%); }
.hero-content { position: relative; z-index: 2; width: 100%; padding: 0 5%; display: flex; flex-direction: column; height: 80%; justify-content: space-between; pointer-events: none; }
body.loading .hero-content > * { opacity: 0 !important; transform: translateY(12px) !important; pointer-events: none !important; visibility: hidden !important; }
body.loaded .hero-content > * { opacity: 1 !important; transform: none !important; pointer-events: auto !important; visibility: visible !important; transition: opacity 0.5s ease 0.05s, transform 0.5s ease 0.05s; }
.hero-text-block { margin-top: 10vh; }
.hero-title { font-size: clamp(4rem, 10vw, 9rem); line-height: 0.9; margin: 0; color: #fff; }
.hero-apologia { align-self: flex-end; max-width: 60vw; text-align: right; margin-top: auto; }
.apologia-text { font-size: clamp(2rem, 5vw, 4.5rem); line-height: 1; color: var(--accent); }
.hero-axe { margin-top: 2rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.2em; opacity: 0.6; }

.poetas-editorial { padding: 15vh 5%; background: var(--bg-dark); }
.btn-poeta { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border: 1px solid var(--accent); color: var(--accent); text-decoration: none; font-size: 1rem; letter-spacing: 0.1em; text-transform: uppercase; transition: all 0.3s ease; font-family: 'Anton', sans-serif; cursor: pointer; background: transparent; }
.btn-poeta:hover { background: var(--accent); color: var(--bg-dark); }

/* ============================================================
   EXPERIÊNCIA POETA INDIVIDUAL (NOVOS ESTILOS)
   ============================================================ */
.section-padding { padding: 15vh 5%; }

/* 1. Hero Poeta */
.poet-hero { position: relative; height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; background: var(--bg-dark); }
.poet-hero-bg { position: absolute; inset: -5%; background-size: cover; background-position: center; filter: grayscale(100%) opacity(0.15); }
.poet-hero-overlay { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(10,10,10,0.2) 0%, rgba(10,10,10,1) 90%); }
.poet-hero-content { position: relative; z-index: 2; width: 100%; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 2rem; }
.poet-title-wrapper { padding-top: 10vh; }
.poet-name { font-size: clamp(5rem, 12vw, 12rem); line-height: 0.85; margin: 0; color: #fff; }
.poet-photo-wrapper { position: relative; width: 100%; aspect-ratio: 3/4; max-width: 500px; margin-left: auto; overflow: hidden; }
.poet-photo-reveal { width: 100%; height: 100%; clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%); }
.poet-photo-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transform: scale(1.1); }
.poet-hero-scroll { position: absolute; bottom: 40px; left: 5%; display: flex; align-items: center; gap: 15px; color: var(--accent); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.85rem; }
.poet-hero-scroll svg { width: 24px; height: 24px; animation: bounce-x 2s infinite; }
@keyframes bounce-x { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

@media (max-width: 768px) {
    .poet-hero-content { grid-template-columns: 1fr; text-align: center; gap: 0; }
    .poet-photo-wrapper { grid-row: 1; max-width: 80%; margin: 0 auto; aspect-ratio: 1/1; }
    .poet-title-wrapper { grid-row: 2; padding-top: 2rem; z-index: 5; margin-top: -50px; }
    .poet-hero-scroll { left: 50%; transform: translateX(-50%); }
}

/* 2. Biografia / Editorial */
.poet-editorial { background: var(--bg-dark); position: relative; }
.poet-quote-block { text-align: center; max-width: 800px; margin: 0 auto 15vh; }
.quote-icon { width: 40px; height: 40px; color: var(--accent); margin-bottom: 20px; opacity: 0.5; }
.poet-quote-text { font-size: clamp(2rem, 5vw, 4rem); line-height: 1.1; color: var(--text-primary); }
.poet-bio-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 4rem; max-width: 1000px; margin: 0 auto; }
.poet-graphic-line { width: 2px; height: 100%; background: linear-gradient(to bottom, var(--accent), transparent); margin-left: auto; opacity: 0.3; }
.poet-bio-block { font-size: clamp(1.2rem, 3vw, 1.8rem); line-height: 1.6; margin-bottom: 3rem; color: #bbb; }
@media (max-width: 768px) {
    .poet-bio-grid { grid-template-columns: 1fr; }
    .poet-graphic-line { display: none; }
}

/* 3. Território Marquee */
.poet-territory { padding: 10vh 0; background: var(--accent-dark); overflow: hidden; white-space: nowrap; display: flex; align-items: center; }
.poet-territory-marquee { font-size: clamp(4rem, 8vw, 8rem); color: var(--bg-light); display: flex; gap: 2rem; opacity: 0.9; }

/* 4. Fragmentos & Memória */
.poet-memory-gallery { background: var(--bg-dark); }
.poet-section-subtitle { font-size: clamp(2.5rem, 5vw, 4rem); color: var(--accent); }
.poet-masonry { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 2rem; align-items: flex-start; }
.poet-masonry-item { position: relative; }
.poet-masonry-item .img-wrapper { overflow: hidden; background: #111; }
.poet-masonry-item img { width: 100%; height: auto; display: block; filter: grayscale(100%); transition: filter 0.4s; }
.poet-masonry-item:hover img { filter: grayscale(0%); }
.img-caption { display: block; margin-top: 1rem; font-size: 0.9rem; color: #888; text-transform: uppercase; letter-spacing: 0.1em; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 0.5rem; }

/* 5. Navegação do Poeta (Novo Footer da Subpágina) */
.poet-nav-section { padding: 15vh 5% 5vh; background: var(--bg-light); color: var(--text-dark); text-align: center; }
.poet-nav-eyebrow { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.2em; margin-bottom: 1rem; opacity: 0.6; }
.poet-nav-back { font-size: clamp(3rem, 6vw, 6rem); color: var(--text-dark); text-decoration: none; display: block; line-height: 1; margin-bottom: 4rem; transition: color 0.3s; }
.poet-nav-back:hover { color: var(--accent-dark); }
.poet-nav-pagination { display: flex; justify-content: space-between; align-items: center; }
.poet-nav-link { text-decoration: none; color: var(--text-dark); display: flex; flex-direction: column; transition: transform 0.3s; }
.poet-nav-link.prev { align-items: flex-start; text-align: left; }
.poet-nav-link.next { align-items: flex-end; text-align: right; }
.poet-nav-link:hover { transform: translateY(-5px); color: var(--accent-dark); }
.nav-label { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.5; margin-bottom: 0.5rem; }
.nav-name { font-size: clamp(1.5rem, 3vw, 2.5rem); }

/* ============================================================
   ESTANTE DE LIVROS (BOOKSHELF) - INTEGRAÇÃO
   ============================================================ */
.poet-bookshelf { background: var(--bg-dark); position: relative; }
.shelf-container { position: relative; width: 100%; display: flex; flex-direction: column; justify-content: center; z-index: 1; }
.books-scale-wrapper { position: relative; width: 100%; height: 350px; transform-origin: center bottom; display: flex; justify-content: center; align-items: flex-end; margin-bottom: 50px; }

/* Ajuste Responsivo da Escala dos Livros (Sem quebrar a Matemática 3D) */
@media (max-width: 1024px) { .books-scale-wrapper { transform: scale(0.85); } }
@media (max-width: 768px) { .books-scale-wrapper { transform: scale(0.65); height: 250px; margin-bottom: 30px; } }
@media (max-width: 480px) { .books-scale-wrapper { transform: scale(0.5); height: 200px; margin-bottom: 20px; } }

.shelf { display: block; position: absolute; bottom: 0; width: 100%; max-width: 800px; height: 15px; background: var(--shelf-bg); border-radius: 1px; z-index: 20;
    box-shadow: 0px -1px 1px rgba(255, 255, 255, 0.05), 0px 5px 10px rgba(0, 0, 0, 0.5), 0px 25px 30px rgba(0, 0, 0, 0.7); }
.shelf:after { content: ""; position: absolute; bottom: -1px; left: 0; width: 100%; height: 1px; background-color: var(--shelf-edge-bottom); }
.shelf:before { content: ""; position: absolute; top: -2px; left: 0; width: 100%; height: 2px; background-color: var(--shelf-edge-top); }

.books-wrapper { position: absolute; bottom: 17px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; align-items: flex-end; gap: 2rem; z-index: 10; }

.books__item { text-align: center; cursor: default; height: 220px; }
.books__container { position: relative; width: 160px; margin: 0 auto; height: 100%; }
.books__cover { position: relative; will-change: transform; height: 100%; }
.books__hitbox { position: absolute; width: 100%; height: 100%; top: 0; left: 0; z-index: 10; cursor: pointer; }
.books__back-cover { position: absolute; width: 96%; height: 96%; top: 2%; left: 2%; background: var(--book-back-cover); border-radius: 0 6px 6px 0; box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5); z-index: -10; }
.books__inside { position: absolute; width: 90%; height: 94%; top: 3%; left: 5%; z-index: 0; }
.books__page { position: absolute; top: 0; right: 0; width: 98%; height: 100%; background: var(--book-page); border: 1px solid var(--book-page-border); border-radius: 0 6px 6px 0; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3); transform-origin: right center; z-index: -5; }
.books__image { line-height: 0; position: relative; border-radius: 2px 6px 6px 2px; height: 100%; box-shadow: var(--book-shadow) 10px -5px 20px, var(--book-shadow) 20px 0px 30px; transform-origin: left center; cursor: pointer; will-change: transform, box-shadow; z-index: 10; }
.books__image img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px 6px 6px 2px; filter: grayscale(80%) contrast(1.1); transition: filter 0.5s; }
.books__hitbox:hover + .books__image img, .books__hitbox:active + .books__image img { filter: grayscale(0%); }
.books__effect { position: absolute; width: 24px; height: 100%; margin-left: 12px; top: 0; border-left: 2px solid rgba(255, 255, 255, 0.1); background-image: linear-gradient(90deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%); transform-origin: left center; z-index: 5; pointer-events: none; }
.books__light { width: 100%; height: 100%; position: absolute; border-radius: 2px 6px 6px 2px; background-image: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 100%); top: 0; left: 0; opacity: 0.15; transform-origin: left center; z-index: 4; pointer-events: none; mix-blend-mode: overlay; }

.side-book { height: 220px; width: 30px; position: relative; cursor: pointer; background: var(--side-book-bg); border-radius: 2px; box-shadow: var(--book-shadow) 5px -3px 10px, var(--book-shadow) 10px 0px 15px; transform-origin: bottom center; will-change: transform, box-shadow; }
.side-book__title { position: absolute; top: 0; left: 0; width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; writing-mode: vertical-rl; text-orientation: mixed; transform: rotate(180deg); color: var(--side-book-text); font-size: 14px; text-transform: uppercase; letter-spacing: 1px; font-family: 'Anton', sans-serif; }
.side-book__decoration { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 80%; height: 1px; background-color: var(--side-book-decoration); }
.side-book__decoration:nth-child(2) { top: auto; bottom: 20px; }

.book-shadow { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); display: flex; justify-content: center; align-items: flex-end; gap: 2rem; z-index: 15; }
.book-shadow__item { width: 120px; height: 2px; background: radial-gradient(ellipse at center, var(--book-shadow) 0%, rgba(0, 0, 0, 0) 70%); border-radius: 50%; will-change: width, opacity; }
.book-shadow__item.side { width: 25px; }

/* Textos descritivos das obras (Não sofrem com o CSS Scale do mobile) */
.book-descriptions { position: relative; width: 100%; max-width: 640px; margin: 0 auto; min-height: 220px; z-index: 5; text-align: center; }
.book-description { position: absolute; top: 0; left: 0; width: 100%; opacity: 0; visibility: hidden; color: var(--text-primary); transition: opacity 0.3s ease, visibility 0.3s ease; }
.book-description.active { opacity: 1; visibility: visible; position: relative; }
.book-description h3 { font-family: 'Anton', sans-serif; font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.5rem; color: #fff; text-transform: uppercase; letter-spacing: 0.05em; }
.book-description .author { font-style: italic; font-family: 'Inter', sans-serif; color: var(--accent); margin-bottom: 1rem; font-size: 0.9rem; }
.book-description p { margin-bottom: 1.5rem; font-family: 'Inter', sans-serif; color: #aaa; line-height: 1.6; }

.lines-animation { overflow: hidden; }
.line { overflow: hidden !important; display: block; }
.line .line-inner { display: block; transform: translateY(0); opacity: 1; }


.afro-zine-section { position: relative; width: 100%; padding: clamp(5rem, 10vw, 9rem) 1.5rem; overflow: hidden; background: var(--bg-dark); border-top: 1px solid rgba(255,255,255,0.05); }
.afro-zine-container { position: relative; z-index: 1; width: min(100%, 820px); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: clamp(2.5rem, 6vw, 4rem); text-align: center; }
.afro-zine-text { width: min(100%, 620px); }
.afro-zine-eyebrow { display: inline-flex; align-items: center; gap: .6rem; margin-bottom: 1rem; font-family: 'Inter', sans-serif; font-size: .68rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--accent); }
.afro-zine-eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--accent); }
.afro-zine-text .section-title { margin-bottom: 1.4rem; color: #fff; }
.afro-zine-desc { max-width: 580px; margin: 0 auto; font-size: clamp(.95rem, 2vw, 1.08rem); line-height: 1.75; color: rgba(255, 255, 255, .72); }
.afro-zine-stage { position: relative; display: flex; justify-content: center; width: 100%; }
.afro-zine-scene { position: relative; width: clamp(245px, 72vw, 340px); aspect-ratio: 1 / 1.45; perspective: 1200px; cursor: grab; user-select: none; touch-action: pan-y; }
.afro-zine-scene:active { cursor: grabbing; }
.afro-zine-card { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transform-origin: 50% 50%; border-radius: 5px; box-shadow: 0 35px 70px rgba(0,0,0,.60), 0 12px 25px rgba(0,0,0,.40); }
.afro-zine-face { position: absolute; inset: 0; overflow: hidden; display: block; border-radius: inherit; backface-visibility: hidden; background: #111; }
.afro-zine-img { width: 100%; height: 100%; display: block; object-fit: cover; pointer-events: none; }
.afro-zine-face-overlay { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(135deg, rgba(255,255,255,.05), transparent 30%, transparent 70%, rgba(0,0,0,.30)); opacity: .65; }
.afro-zine-back { transform: rotateY(180deg); }
.afro-zine-hint.premium-hint { position: absolute; left: 50%; top: 50%; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 90px; height: 90px; color: #fff; background: rgba(10, 10, 10, 0.75); border: 1px solid rgba(201, 149, 107, 0.5); border-radius: 50%; box-shadow: 0 8px 30px rgba(0,0,0,.6); transform: translate(-50%, -50%); font-family: 'Inter', sans-serif; font-size: .6rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; animation: premium-pulse 3s ease-in-out infinite; backdrop-filter: blur(8px); pointer-events: none; }
.afro-zine-hint.premium-hint svg { width: 24px; height: 24px; color: var(--accent); }
@keyframes premium-pulse { 0%, 100% { opacity: .85; transform: translate(-50%, -50%) scale(.95); box-shadow: 0 0 0 0 rgba(201, 149, 107, 0.4); } 50% { opacity: 1; transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 0 0 15px rgba(201, 149, 107, 0); } }
.afro-zine-action { display: flex; flex-direction: column; align-items: center; gap: 1.2rem; }
.afro-zine-action-label { margin: 0; font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .52); }
.btn-afro-zine-buy { display: inline-flex; align-items: center; justify-content: center; gap: 0.8rem; padding: 12px 24px; border: 1px solid var(--accent); color: var(--accent); background: transparent; font-family: 'Anton', sans-serif; font-size: 1rem; letter-spacing: .14em; text-transform: uppercase; transition: all .3s ease; text-decoration: none; }
.btn-afro-zine-buy:hover { background: var(--accent); color: var(--bg-dark); }
.btn-afro-zine-buy svg { width: 18px; height: 18px; }