* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: #0F0C0E;
  color: #E6E1D6;
  font-family: 'Cormorant Garamond', serif;
  letter-spacing: 0.03em;
}


/* MENU */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(15,12,14,0.85);
  backdrop-filter: blur(6px);
  z-index: 100;
}

nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
  padding: 1rem;
}

nav a {
  color: #E6E1D6;
  text-decoration: none;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.75;
}

nav a:hover {
  opacity: 1;
}

.scrolled {
  background: rgba(15,12,14,0.65);
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
}

/* ANIMAÇÃO */
.fade {
  opacity: 0;
  transform: translateY(30px);
  transition: 1.2s ease;
}

.fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 5rem;
}

.hero h1 {
  font-size: 3.2rem;
  letter-spacing: 0.2em;
}

.hero p {
  margin-top: 1rem;
  opacity: 0.7;
}

.star {
  margin-top: 2rem;
  font-size: 1.75rem;
  color: #24544d;
}

/* DIVIDER */
.divider {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 5rem 0;
  color: #24544d;
}

.divider::before,
.divider::after {
  content: "";
  width: 90px;
  height: 1px;
  background: rgba(255,255,255,0.25);
}

.divider span {
  margin: 0 1rem;
  font-size: 1.75rem;
}

/* ABOUT */
.about {
  max-width: 1000px;
  margin: auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  align-items: center;
}

.about-image {
  height: 420px;
  border-radius: 220px 220px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.25);
  background: #24544d;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-text {
  line-height: 1.8;
  opacity: 0.85;
}

/* PORTAIS */
.portals {
  max-width: 1100px;
  margin: auto;
  padding: 0 2rem 6rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2.5rem;
}

.portal {
  text-align: center;
  position: relative;
}

.portal a {
  color: inherit;
  text-decoration: none;
}

.portal img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.25);
  transition: 0.6s ease;
}

.portal h3 {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.portal::after {
  content: "✦";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  font-size: 2.2rem;
  color: #24544d;
  opacity: 0;
  pointer-events: none;
  transition: 0.6s ease;
}

.portal:hover::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.portal:hover img {
  filter: brightness(0.7);
}

/* SEÇÕES */
.section {
  max-width: 1100px;
  margin: auto;
  padding: 0 2rem 6rem;
}

.section h2 {
  text-align: center;
  letter-spacing: 0.2em;
  margin-bottom: 3rem;
}

.art p {
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.75;
  margin-top: 0.5rem;
}

/* SPOTIFY */
.spotify {
  display: flex;
  justify-content: center;
  padding-bottom: 6rem;
}

/* FOOTER */
footer {
  text-align: center;
  padding: 3rem 1rem;
  font-size: 0.75rem;
  opacity: 0.6;
}

footer a {
  color: inherit;
  text-decoration: none;
}

/* MOBILE */
@media (max-width: 800px) {
  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  nav ul {
    flex-wrap: wrap;
    gap: 1rem;
  }
}

/* =========================
   PÁGINA DE OBRA
========================= */

.art-page {
  max-width: 700px;
  margin: 8rem auto;
  padding: 0 2rem;
  text-align: center;
}

.art-page img {
  width: 100%;
  margin: 2rem 0;
  border: 1px solid rgba(255,255,255,0.25);
}

.meta {
  opacity: 0.6;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
}

.art-text {
  line-height: 1.8;
  opacity: 0.85;
}

.secret {
  opacity: 0;
  margin-top: 2rem;
  transition: opacity 1.2s ease;
  font-style: italic;
}

.secret.visible {
  opacity: 0.8;
}


.art-link {
  display: block;
  cursor: pointer;
}

.art-link img {
  display: block;
}

.music-player {
  margin: 30px 0;
  opacity: 0.85;
}

.music-player iframe {
  filter: saturate(0.9);
}

.hidden-link {
  display: inline-block;
  width: 20px;
  height: 20px;
  text-decoration: none;
  color: transparent;
}

.secret-content {
  display: none;
  text-align: center;
  opacity: 0.8;
  font-style: italic;
  margin: 4rem auto;
}


.star-trigger .hint {
  display: block;
  margin-top: 0.6rem;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  opacity: 0.5;
  text-transform: uppercase;
}

.home-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.gallery,
.home-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}

.art {
  display: flex;
  flex-direction: column;
}

.art img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  border: 1px solid rgba(255,255,255,0.25);
}

.art p {
  margin-top: 8px;
  font-size: 0.85rem;
  opacity: 0.8;
}



@keyframes breathe {
  0%   { opacity: 0.08; }
  50%  { opacity: 0.14; }
  100% { opacity: 0.08; }
}


body {
  cursor: url("imagens/cursor-star.png"), auto;
}

.corporate-link {
  color: #139377;
  font-weight: 900;
}

.portal-home nav {
  display: none;
}

.panel {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  opacity: 0;
  transform: translateY(40px);
  transition: all 1.2s ease;
}

.panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.panel-content {
  max-width: 800px;
}

.dark { background: #0F0C0E; }
.green { background: #24544d; }
.grey { background: #1a1a1d; }
.wine { background: #2a0f1f; }

.keywords a {
  display: inline-block;
  margin: 0.5rem;
  opacity: 0.6;
  text-decoration: none;
  color: inherit;
  transition: 0.4s;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.keywords a:hover {
  opacity: 1;
  color: #6aff8d;
}

.about-links a {
  display: inline-block;
  margin: 1rem;
  text-decoration: none;
  color: #6aff8d;
  transition: 0.3s;
}

.about-links a:hover {
  opacity: 0.7;
}

#territorio #particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}


.panel.dark {
  position: relative;
  overflow: hidden;
}

.panel-content {
  position: relative;
  z-index: 1;
}

.green {
  background: #24544d;
  animation: pulseGreen 12s infinite alternate ease-in-out;
}

@keyframes pulseGreen {
  from { background-color: #24544d; }
  to { background-color: #153a34; }
}

.intro-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.intro-block h1 {
  font-size: 3.5rem;
  letter-spacing: 0.1em;
  line-height: 1.1;
}

.subtle {
  font-style: italic;
  opacity: 0.7;
}

.offset {
  max-width: 600px;
  text-align: justify;
  font-size: 1.1rem;
  line-height: 1.8;
}

#enterButton {
  margin-top: 2rem;
  background: transparent;
  border: 1px solid #6aff8d;
  color: #6aff8d;
  padding: 0.7rem 1.5rem;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: 0.4s;
}

#enterButton:hover {
  background: #6aff8d;
  color: #0F0C0E;
}

.panel h1, .panel h2 {
  text-transform: uppercase;
}

.panel .panel-content {
  text-align: center;
}

.grey .panel-content {
  text-align: justify;
}

.wine .panel-content {
  text-align: center;
}

.panel-content::before {
  content: "";
  display: block;
  width: 60px;
  height: 1px;
  background: rgba(106,255,141,0.4);
  margin-bottom: 2rem;
}

.floating-signature {
  position: fixed;
  top: 25px;
  left: 40px;
  z-index: 1000;
  font-family: 'Georgia', serif;
  font-size: 0.9rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  opacity: 0.6;
  transition: 0.4s;
}

.floating-signature a {
  text-decoration: none;
  color: #6aff8d;
}

.floating-signature:hover {
  opacity: 1;
}

.scroll-arrow {
  position: absolute;
  bottom: 25px;
  font-size: 1.4rem;
  opacity: 0.4;
  animation: floatArrow 2s infinite ease-in-out;
}

@keyframes floatArrow {
  0% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(8px); opacity: 0.7; }
  100% { transform: translateY(0); opacity: 0.3; }
}

.reveal-name {
  text-align: center;
}

.highlight-name {
  display: block;
  margin-top: 1rem;
  font-size: 2rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #6aff8d;
}

.reveal-name {
  text-align: center;
}

.real-name {
  font-size: 1.1rem;
  letter-spacing: 0.15em;
  opacity: 0.7;
}

.highlight-name {
  display: block;
  margin-top: 1.5rem;
  font-size: 2.2rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: #6aff8d;
}

/* Estado inicial dramático */
.dramatic-name {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(10px);
  transition: 
    opacity 1.8s ease,
    filter 1.8s ease,
    transform 1.8s ease;
}

/* Quando o painel fica visível */
.panel.visible .dramatic-name {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.livros-page {
  background: #0F0C0E; /* mesmo fundo das obras */
  color: #E6E1D6;
}

.page-header {
  text-align: center;
  padding: 4rem 2rem 2rem;
}

.page-header h1 {
  font-size: 2.5rem;
  letter-spacing: 0.3em;
  color: #24544d;
}

.page-header {
  text-align: center;
  margin-top: 8rem;
  margin-bottom: 6rem;
}

.page-header h1 {
  font-size: 3rem;
  letter-spacing: 0.4em;
  margin-bottom: 1rem;
}

.page-subtitle {
  max-width: 600px;
  margin: 0 auto;
  opacity: 0.7;
  line-height: 1.6;
}

.page-subtitle {
  max-width: 600px;
  margin: 1rem auto;
  opacity: 0.7;
  line-height: 1.6;
}

.book-section {
  width: 80%;
  margin: 3rem auto;
}

.book-card {
  display: flex;
  gap: 2rem;
  margin-bottom: 4rem;
  background: rgba(0,0,0,0.4);
  padding: 2rem;
  border: 1px solid rgba(106,255,141,0.2);
}

.book-card img {
  width: 220px;
  transition: transform 0.4s ease;
}

.book-card img:hover {
  transform: scale(1.05);
}

.book-info h2 {
  margin-top: 0;
  color: #24544d;
}

.book-synopsis {
  margin: 1rem 0;
  line-height: 1.6;
}

.book-meta {
  list-style: none;
  padding: 0;
  font-size: 0.9rem;
  opacity: 0.7;
}

.buy-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.6rem 1.2rem;
  border: 1px solid #6aff8d;
  text-decoration: none;
  color: #24544d;
  transition: all 0.3s ease;
}

.buy-button:hover {
  background: #24544d;
  color: black;
}

#territorio {
  background: #0F0C0E; /* mesmo tom do portal */
  position: relative;
  overflow-x: hidden;
}

/* ===== FIX ATO I DESALINHAMENTO ===== */

.panel.dark .panel-content {
  text-align: center !important;
  margin: 0 auto;
  width: 100%;
  max-width: 800px;
}

.panel.dark .panel-content::before {
  margin-left: auto;
  margin-right: auto;
}

.intro-layout {
  width: 100%;
  align-items: center;
}

.intro-block {
  width: 100%;
}

/* ===== CORREÇÃO DEFINITIVA ATO I ===== */

.panel {
  width: 100%;
  max-width: 100vw;
}

.intro-block h1,
.highlight-name {
  max-width: 100%;
  word-break: break-word;
}

.highlight-name {
  letter-spacing: 0.25em; /* reduz um pouco */
}

.intro-layout {
  max-width: 100%;
}

.panel * {
  max-width: 100%;
}

/* ===== CANVAS PARTICLES FIX ===== */

.panel.dark canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.panel.dark {
  position: relative;
}

.panel.dark .panel-content {
  position: relative;
  z-index: 1;
}

.book-section {
  max-width: 700px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.book-ritual {
  text-align: center;
  margin-bottom: 6rem;
}

.book-cover img {
  width: 260px;
  border: 1px solid rgba(106,255,141,0.2);
  transition: 0.4s ease;
}

.book-cover img:hover {
  transform: scale(1.03);
}

.book-body h2 {
  margin-top: 2rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #24544d;
}

.book-synopsis {
  margin: 1.5rem 0;
  line-height: 1.8;
  opacity: 0.85;
}

.book-meta {
  list-style: none;
  padding: 0;
  opacity: 0.6;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.buy-button {
  display: inline-block;
  margin-top: 2rem;
  padding: 0.6rem 1.4rem;
  border: 1px solid #6aff8d;
  text-decoration: none;
  color: #24544d;
  transition: 0.3s ease;
}

.buy-button:hover {
  background: #24544d;
  color: #0F0C0E;
}

.books-gallery {
  max-width: 1000px;
  margin: 6rem auto;
  padding: 0 2rem;
}

.book-piece {
  display: flex;
  align-items: center;
  gap: 4rem;
  margin-bottom: 8rem;
}

.book-piece.reverse {
  flex-direction: row-reverse;
}

.book-image img {
  width: 320px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: 0.6s ease;
}

.book-image img:hover {
  filter: brightness(0.8);
}

.book-text {
  max-width: 500px;
}

.book-text h2 {
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}

.book-synopsis {
  line-height: 1.8;
  opacity: 0.85;
  margin-bottom: 1.5rem;
}

.book-meta {
  list-style: none;
  padding: 0;
  opacity: 0.6;
  font-size: 0.85rem;
  margin-bottom: 1.5rem;
}

.buy-button {
  display: inline-block;
  padding: 0.6rem 1.4rem;
  border: 1px solid #24544d;
  color: #24544d;
  text-decoration: none;
  transition: 0.3s ease;
}

.buy-button:hover {
  background: #24544d;
  color: #0F0C0E;
}

/* Mobile */
@media (max-width: 900px) {
  .book-piece,
  .book-piece.reverse {
    flex-direction: column;
    text-align: center;
  }
}