html {
  scroll-behavior: smooth;
}
body {
  text-align: center;
  box-sizing: border-box;
  overflow-x: hidden;
  cursor: none!important;
}
.container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  gap: 20px;
  /*margin-top: 20vh;*/
}
.land {
  margin: 9rem;
}
.id {
  margin: 0;
  padding: 0;
  width: auto;
  height: auto;
  box-sizing: border-box;
}
.id h1 {
  overflow: hidden;
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 16.7vw;
  letter-spacing: 0.05em;
  line-height: 1em;
}
.id h1 span {
  display: inline-block;
  transform: translateY(100%);
}
.id h1 span.in-view {
  animation: revealUp 2s cubic-bezier(0,0.2,0,1) 0.5s forwards;
}
@keyframes revealUp {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.flexrow {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  opacity: 0;
  transform: translateY(-100%);
}
.flexrow.in-view {
  animation: revealDown 1s cubic-bezier(0,0.2,0,1) 0.3s forwards;
}
@keyframes revealDown {
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.nav-links {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  /*text-align: right;*/
}
.nav-links p {
  margin: 0;
}
.nav-links a {
  /*display: block;*/
  margin: 0;
  color: white;
  text-decoration: none;
  font-size: 18px;
  transition: transform 0.2s ease-in-out;
}
.nav-links a:hover {
  transform: scale(1.1);
  text-decoration: underline;
}
.wireframeScroll {
  -webkit-filter: filter(1);
  filter: invert(1);
  opacity: 0;
  transform: translateY(100%);
  animation: revealUp 1s cubic-bezier(0,0.2,0,1) 0.3s forwards;
}
.wireframeScroll img {
  width: 20%;
  height: auto;
  animation: autoRotateAnimation both;
  animation-timeline: view(auto 50%);
}
@keyframes autoRotateAnimation {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(180deg);
  }
}
.linktree {
  margin-top: 40px;
}
.linktree img {
  width: 40px;
  height: 40px;
  transition: filter 0.3s ease, transform 0.3s ease;
}
.linktree img:hover {
  filter: drop-shadow(0 0 6px #ffffff);
  transform: scale(1.1);
}
.strikethrough {
  text-decoration: line-through;
  opacity: 0.6;
}
.player {
  width: 75%;
  overflow: hidden;
  aspect-ratio: 16/9;
  margin: 0;
  position: relative;
}
.player iframe{
  width: 300%;
  height: 100%;
  margin-left: -100%;
  pointer-events: none;
}
#togglePlay {
  position: absolute;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  font-family: inherit;
  font-size: 16px;
  z-index: 10;
  width: 80px;
  height: 40px;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: 0.2s;
  cursor: none;
}
#togglePlay:hover {
  background: white;
  color: black;
}
.library {
  width: 100%;
  height: 100vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0;
  background-color: #0a0a0a;
}
.library figure { 
  padding: 0; 
  margin: 0; 
} 
.libflex1 {
  display: flex;
}
.libgrid1 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin-left: 6rem;
  border: 1px solid rgba(255, 255, 255, 0.5); /* Borda branca */
  max-width: 640px; /* Define uma largura máxima para o grid */
  
  background:
  linear-gradient(to right, white 2px, transparent 2px) 0 0,
  linear-gradient(to right, white 2px, transparent 2px) 0 100%,
  linear-gradient(to left, white 2px, transparent 2px) 100% 0,
  linear-gradient(to left, white 2px, transparent 2px) 100% 100%,
  linear-gradient(to bottom, white 2px, transparent 2px) 0 0,
  linear-gradient(to bottom, white 2px, transparent 2px) 100% 0,
  linear-gradient(to top, white 2px, transparent 2px) 0 100%,
  linear-gradient(to top, white 2px, transparent 2px) 100% 100%;

  background-repeat: no-repeat;
  background-size: 40px 40px;
}
.libgridcontent {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin: 2rem;
}
.libgridcontent img {
  z-index: 1;
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  opacity: 1;
  transition: 0.5s;
  will-change: opacity;
}
.libgridcontent:hover {
  .libtext .listen {
    bottom: -2rem;
    opacity: 1;
  }
  img {
    opacity: 0.5;
  }
}
.libtext {
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  /*align-items: center;*/
  width: 100%;
  z-index: auto;
}
.libtext p {
  margin: 0;
}
.libtext .title {
  z-index: 2;
  position: absolute;
  text-align: right; /* Alinha o título à direita */
  background: #0a0a0a;
  padding: 0.5rem;
  bottom: 0;
  right: 0;
  border-radius: 20px 0 0 0;
}

/* --- NOVO: O "Corte" Côncavo --- */
.libtext .title::before {
  content: '';
  position: absolute;
  bottom: 0px; /* (Deve ser o negativo do border-radius da imagem) */
  left: -19px;
  width: 20px;
  height: 20px;
  /* Esta mágica cria o canto: um gradiente radial transparente que vira preto */
  background: radial-gradient(circle at 0 0, 
    transparent 0, 
    transparent 20px, 
    #0a0a0a 20px /* Cor de fundo */
  );
}

.libtext .title::after {
  content: '';
  position: absolute;
  top: -20px; /* (Deve ser o negativo do border-radius da imagem) */
  right: 0;
  width: 20px;
  height: 20px;
  /* Esta mágica cria o canto: um gradiente radial transparente que vira preto */
  background: radial-gradient(circle at 0 0, 
    transparent 0, 
    transparent 20px, 
    #0a0a0a 20px /* Cor de fundo */
  );
}

.libtext .listen {
  z-index: 0;
  position: absolute;
  text-align: left;
  padding: 0.5rem 0;
  opacity: 0;
  bottom: 0;
  transition: 0.5s;
  will-change: bottom, opacity;
}
.gallery {
  width: 100vw;
  height: 100vh;
  display: flex;
  padding: 2rem 0;
  overflow-x: auto;
  background: linear-gradient(to right, #0a0a0a, transparent 15%, transparent 85%, #0a0a0a);
}
.gallery::-webkit-scrollbar {
  display: none;
}
.showcase {
  z-index: -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1em;
  animation: spin 30s infinite linear;
  padding-right: 1em;
}
@keyframes spin {
  from {
    transform: translate(0%);
  } to {
    transform: translate(-100%);  
  }
}
.card {
  flex: 0 0 40em;
  height: 40em;
  border-radius: 20px;
  align-content: center;
  overflow: hidden;
}
.card img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
}
.footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: linear-gradient(to top, #0a0a0a, transparent);
  overflow: hidden;
  margin-bottom: 1rem;
  gap: 1rem;
}
.footup {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}
.footup h1 {
  overflow: hidden;
  margin: 0;
  font-family: "Archivo Black", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 20vw;
  letter-spacing: 0.05em;
  line-height: 0.8em;
  opacity: 0;
  transform: translateY(100%);
}
.footup h1.in-view {
  animation: revealUp 1s cubic-bezier(0,0.2,0,1) forwards;
}
.foottext {
  font-size: 0.9rem;
  position: relative;
  width: 100%;
  text-align: center;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.foottext p {
  padding: 0;
  margin: 0;
  opacity: 0.6;
}
/* NOVO BOTÃO VOLTAR AO TOPO */
#backToTop {
  z-index: 20;
  width: 2rem; /* Menor que o togglePlay */
  height: 2rem;
  background: rgba(0, 0, 0, 0.6);
  color: white; 
  transition: 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: none;
}
#backToTop svg {
  width: 2rem;
  height: 2rem;
  fill: white;
}
#backToTop:hover {
  background: white;
  color: black;
}
#backToTop:hover svg {
  fill: black;
}
.wireframeBg {
  position: absolute;
  z-index: -1;
}
.wireframeBg img {
  width: 80vw;
  height: auto;
  opacity: 0.6;
}
/* Framer-like inverted cursor */
/* Minimal framer-style cursor */
#fw-cursor {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 99999;
  transform: translate3d(-50%, -50%, 0) scale(1);
  transition: transform 240ms cubic-bezier(.2,.9,.3,1);
  will-change: transform, opacity;
  opacity: 1;
  mix-blend-mode: difference;
}

#fw-cursor .fw-cursor-inner {
  width: var(--fw-size, 22px);
  height: var(--fw-size, 22px);
  border-radius: 50%;
  background: #fff;
  mix-blend-mode: difference; /* efeito negativo apenas aqui */
  transform-origin: center;
  transition: transform 180ms cubic-bezier(.2,.9,.3,1);
}

#fw-cursor.fw-clicked .fw-cursor-inner {
  transform: scale(0.7);
}

#fw-cursor.fw-hover .fw-cursor-inner {
  transform: scale(2);
}

#fw-cursor.fw-hidden {
  opacity: 0;
  transform: translate3d(-50%, -50%, 0) scale(0.8);
}

/* Esconde em dispositivos touch */
@media (pointer: coarse), (max-width: 900px) {
  #fw-cursor {
    display: none !important;
  }
}

/* ===== NOVO: ESTILOS DO MENU DE LINKS ===== */
.links-menu-modal {
  cursor: none;
  position: fixed;
  inset: 0; /* (top, bottom, left, right = 0) */
  z-index: 1000;
  background: #0a0a0a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(100%);
  transition: transform 1s cubic-bezier(0.2, 1, 0.3, 1);
}
/* Estado visível (ativado por JS) */
.links-menu-modal.visible {
  transform: translateY(0); /* Animação de entrada */
}
.links-menu-content {
  position: relative;
  padding: 3rem;
  padding-top: 2rem;
  width: 90%;
  max-width: 400px;
}
/* Animação de entrada (de baixo para cima) */
.links-menu-modal.visible .links-menu-content {
  transform: translateY(0);
}
/* Botão Fechar */
#closeLinksMenu {
/* Copia o estilo do #backToTop */
  z-index: 20;
  width: 2rem; 
  height: 2rem;
  background: rgba(0, 0, 0, 0.6);
  color: white;
  transition: all 0.2s;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%; 
  cursor: pointer;
  /* Posicionamento */
  position: absolute;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
}
#closeLinksMenu svg {
  width: 1.2rem; 
  height: 1.2rem; 
  fill: white;
  /* Gira a seta para baixo */
  transform: rotate(180deg); 
  transition: fill 0.2s;
}
#closeLinksMenu:hover {
  background: white;
  color: black;
  transform: translateX(-50%) scale(1.1);
}
#closeLinksMenu:hover svg {
  fill: black;
}
/* Lista de Links */
.links-menu-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1rem;
}
.links-menu-list a {
  background: #1a1a1a;
  color: white;
  text-decoration: none;
  padding: 1rem;
  border-radius: 5px;
  transition: background 0.2s ease;
  font-family: "Lucida Console", Monaco, monospace;
}
.links-menu-list a:hover {
  background: #2a2a2a;
}
/* NOVO: Rodapé do Menu */
.links-menu-footer {
  position: absolute;
  bottom: 2rem; /* Fixo no rodapé da tela */
  left: 10%;
  transform: translateX(-50%);
  font-size: 0.9rem;
  opacity: 0.6;
  color: white;
}