* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

@font-face {
  font-family: "Victor Serif";
  src: url(../fonts/VictorSerifTrial-40Regular.otf) format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Victor Serif";
  src: url(../fonts/VictorSerifTrial-55MediumItalic.otf) format("opentype");
  font-weight: 400;
  font-style: italic;
}

@font-face {
  font-family: "GeistMono";
  src: url(../fonts/GeistMono-Medium.otf) format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Neue Haas Grotesk";
  src: url(../fonts/NeueHaasGrotDispRound-55Roman-Trial.otf) format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Neue Haas Grotesk";
  src: url(../fonts/NeueHaasGrotDispRound-45Light-Trial.otf) format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Neue Montereal";
  src: url(../fonts/OTNeueMontreal-MediumSemiSqueezed.otf) format("opentype");
  font-weight: 300;
  font-style: normal;
}

.pop-up-title {
  font-family: "Victor Serif", serif;
  font-style: normal;
}

.pop-up-subtitle {
  font-family: "GeistMono", monospace;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.pop-up-text p {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-weight: 400;
}

.pop-up-text em {
  font-family: "Victor Serif", serif;
  font-style: italic;
}

.pop-up-credits {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-size: 1.2rem;
  margin-top: 2rem;
}

.pop-up-credits .credits-label {
  font-family: "GeistMono", monospace;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0rem;
}

body {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-weight: 400;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: linear-gradient(to bottom, rgba(255,255,255,0.55) 0%, transparent 100%);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 60%, transparent 100%);
}

header::-webkit-scrollbar {
  display: none;
}

.title {
  text-transform: uppercase;
  color: #000000;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.68rem;
  white-space: nowrap;
}

.title span {
  font-family: "Neue Haas Grotesk", sans-serif;
  color: #3e3e3e;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.327);
  border-radius: 2rem;
  padding: 0.3rem 0.5rem;
  text-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.529);
  box-shadow:
    inset 0 2px 12px rgba(0, 0, 0, 0.22),
    inset 0 -1px 5px rgba(0, 0, 0, 0.1),
    0 0 18px rgba(255, 255, 255, 0.7),
    0 0 36px rgba(255, 255, 255, 0.25);
  transition: filter 0.6s ease;
}

.title span:hover {
  filter: blur(3px);
}

[data-target],
[data-popup] {
  cursor: pointer;
}

.viewport {
  position: relative;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.viewport.dragging {
  cursor: grabbing;
}

.container {
  position: relative;
  width: 5000px;
  height: 5000px;
}

.background {
  position: absolute;
  width: 5000px;
  height: 5000px;
  top: 0;
  left: 0;
  background: url("../img/background.webp");
  background-size: cover;
  transform: translate(0px, 0px);
  will-change: transform;
}

.plano02,
.plano03 {
  position: absolute;
  width: 5000px;
  height: 5000px;
  top: 0;
  left: 0;
  background-size: cover;
  transform: translate(0px, 0px);
  will-change: transform;
}

.plano02 {
  background-image: url("../img/novoplano03.webp");
}
.plano03 {
  background-image: url("../img/novoplano02.webp");
}

/* ======= OBJECTS ======= */
.objects {
  position: absolute;
  width: 5000px;
  height: 5000px;
  top: 0;
  left: 0;
  background: url("../img/objetos.webp");
  background-size: cover;
  transform: translate(0px, 0px);
  will-change: transform;
}

.objects > div {
  z-index: 3000;
  font-family: "Neue Montereal", sans-serif;
  text-transform: uppercase;
  color: #00ff15;
}

.objects > div:not(.icons) {
  filter: blur(0);
  transition: filter 1s ease;
  text-shadow:
    0 0 8px rgba(0, 255, 21, 0.8),
    0 0 20px rgba(0, 255, 21, 0.4),
    0 0 40px rgba(0, 255, 21, 0.15);
}

.objects > div:not(.icons):hover {
  border-bottom: 1px solid #00ff15;
  filter: blur(4px);
}

.objects .urgh {
  position: absolute;
  top: 372px;
  left: 610px;
}

.objects .template {
  position: absolute;
  top: 3810px;
  left: 2000px;
}

.objects .glamour {
  position: absolute;
  top: 688px;
  left: 2172px;
}

.objects .authorship {
  position: absolute;
  top: 1573px;
  left: 1570px;
}

.objects .words {
  position: absolute;
  top: 1756px;
  left: 2992px;
}

.objects .matryoshka {
  position: absolute;
  top: 1260px;
  left: 4150px;
}

.objects .medium {
  position: absolute;
  top: 490px;
  left: 4460px;
}

.objects .the-line {
  position: absolute;
  top: 1785px;
  left: 215px;
}

.objects .the-day {
  position: absolute;
  top: 2967px;
  left: 1253px;
}

.objects .agency {
  position: absolute;
  top: 3398px;
  left: 1514px;
}

.objects .control {
  position: absolute;
  top: 2710px;
  left: 2274px;
}

.objects .porn {
  position: absolute;
  top: 1986px;
  left: 3674px;
}

.objects .the-illusion {
  position: absolute;
  top: 2156px;
  left: 4733px;
}

.objects .noise {
  position: absolute;
  top: 3212px;
  left: 3674px;
}

.objects .doomscrolling {
  position: absolute;
  top: 3505px;
  left: 2862px;
}

.objects .fairy-tale {
  position: absolute;
  top: 4696px;
  left: 439px;
}

.objects .paycheck {
  position: absolute;
  top: 4681px;
  left: 1353px;
}

.objects .the-designer {
  position: absolute;
  top: 4639px;
  left: 3269px;
}

.objects .nowhere-elsewhere {
  position: absolute;
  top: 4360px;
  left: 4150px;
}

/* ======= ICONS ======= */

@keyframes anchor-gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes anchor-glow {
  0%, 100% { filter: drop-shadow(0 0 4px rgba(0, 255, 21, 0.1)); }
  50% { filter: drop-shadow(0 0 16px rgba(0, 255, 21, 0.5)) drop-shadow(0 0 32px rgba(0, 255, 21, 0.2)); }
}

.icons {
  position: absolute;
  z-index: 800;
  animation: anchor-glow 3.5s ease-in-out infinite;
}

.icons img {
  width: 100%;
  height: auto;
  display: block;
  filter: blur(0);
  transition: filter 1s ease;
}

.icons img:hover {
  filter: blur(8px);
}

.icons.icons-1 {
  top: 1300px;
  left: 200px;
  width: 650px;
  height: 455px;
}

.icons.icons-2 {
  top: 662px;
  left: 1103px;
  width: 495px;
  height: 430px;
}

.icons.icons-3 {
  top: 3844px;
  left: 261px;
  width: 430px;
  height: 415px;
}

.icons.icons-4 {
  top: 2559px;
  left: 2933px;
  width: 545px;
  height: 455px;
}

.icons.icons-5 {
  top: 4300px;
  left: 4400px;
  width: 505px;
  height: 520px;
}

/* ======= POP UP ======= */

.pop-up {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: linear-gradient(135deg, rgba(215, 175, 185, 0.28) 0%, rgba(0, 255, 68, 0.22) 100%);
  backdrop-filter: blur(10px);
  z-index: 50000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.45s;
}

.pop-up.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0s;
}

.pop-up::after {
  content: "";
  position: fixed;
  bottom: 0;
  left: 0;
  width: 50%;
  height: 6rem;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
  z-index: 60001;
}

.pop-up .pop-up-container {
  width: 50%;
  height: 100dvh;
  background-color: white;
  padding: 2rem;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  transform: translateX(-24px);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.pop-up.active .pop-up-container {
  transform: translateX(0);
}

@media (max-width: 920px) {
  .pop-up::after { width: 100%; }
  .pop-up .pop-up-container { width: 100%; }
}

.pop-up .pop-up-container::-webkit-scrollbar {
  display: none;
}

.pop-up .pop-up-close {
  margin-bottom: 1.5rem;
  margin-top: 1rem;
  cursor: pointer;
}

.pop-up-close img,
.anchor-info-close img,
.about-close img {
  height: 0.9rem;
  width: auto;
  display: block;
  image-rendering: auto;
}

.pop-up .pop-up-close,
.about-close {
  padding: 0.8rem;
  margin-left: -0.8rem;
  margin-right: -0.8rem;
  display: inline-block;
}

.pop-up .pop-up-title {
  font-size: 2.5rem;
  margin-left: 2rem;
  margin-bottom: 1rem;
}

.pop-up .pop-up-title span {
  font-size: 0.8rem;
  font-family: "GeistMono", monospace;
}

.pop-up .pop-up-gallery {
  margin-bottom: 2rem;
}

.pop-up .pop-up-gallery-track {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.pop-up .pop-up-gallery-track img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
}

.pop-up .pop-up-gallery-track img.active {
  opacity: 1;
}

.pop-up .pop-up-gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  margin-top: 1.2rem;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.pop-up .pop-up-gallery-prev,
.pop-up .pop-up-gallery-next {
  cursor: pointer;
  color: #888;
  font-family: "GeistMono", monospace;
}

.pop-up-gallery-counter {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: "GeistMono", monospace;
  color: #888;
  pointer-events: none;
}

.pop-up .pop-up-text {
  font-size: 1.5rem;
}

.pop-up .pop-up-text p em {
  font-family: "Victor Serif", serif;
  font-style: italic;
}

.pop-up .pop-up-text p + p {
  margin-top: 1em;
}

/* ======= ANCHOR INFO ======= */

.anchor-info {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100dvh;
  background: linear-gradient(135deg, rgba(140, 195, 235, 0.75) 0%, rgba(130, 240, 180, 0.7) 40%, rgba(215, 155, 175, 0.65) 100%);
  background-size: 400% 400%;
  animation: anchor-gradient-shift 5s ease-in-out infinite;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 50000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.45s;
}

.anchor-info::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(178, 255, 199, 0.4) 0%, rgba(175, 210, 235, 0.2) 50%, transparent 70%);
  pointer-events: none;
}

.anchor-info-close {
  position: absolute;
  top: 0.8rem;
  left: 0.8rem;
  cursor: pointer;
  z-index: 2;
  padding: 1.2rem;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
}

.anchor-info-container {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  text-align: center;
  padding: 4rem;
  transform: translateY(16px);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.anchor-info-title {
  font-family: "Victor Serif", serif;
  font-size: 3rem;
  color: #393939;
  max-width: 45rem;
  margin: 0 auto;
}

.anchor-info-text {
  font-size: 2rem;
  color: #393939;
  max-width: 52rem;
  margin: 0 auto;
}

.anchor-info-text em {
  font-family: "Victor Serif", serif;
  font-style: italic;
}

.anchor-info-image {
  max-width: 60%;
  max-height: 75vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

[data-name="object3"] .anchor-info-image {
  max-width: 80%;
  max-height: 88vh;
}

[data-name="object4"] .anchor-info-image {
  max-width: 72%;
  max-height: 82vh;
}

[data-name="object5"] .anchor-info-image {
  max-width: 48%;
  max-height: 65vh;
}

[data-name="object5"] .anchor-info-title {
  max-width: 52rem;
}

.anchor-info.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0s;
}

.anchor-info.active .anchor-info-container {
  transform: translateY(0);
}

/* ======= ABOUT ======= */
.about {
  position: fixed;
  top: 0;
  right: 0;
  width: 50%;
  background-color: white;
  z-index: 5000;
  height: 100dvh;
  padding: 2rem 2rem 0;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(24px);
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0.45s,
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

@media (max-width: 920px) {
  .about {
    width: 100%;
  }
}

.about-fade {
  position: sticky;
  bottom: 0;
  height: 6rem;
  margin-top: -3rem;
  background: linear-gradient(to bottom, transparent, white);
  pointer-events: none;
}

.about::-webkit-scrollbar {
  display: none;
}

.about.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(0);
  transition:
    opacity 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    visibility 0s linear 0s,
    transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-close {
  margin-bottom: 3rem;
  margin-top: 1rem;
  cursor: pointer;
}

.about-title {
  font-family: "GeistMono", monospace;
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: 2rem;
}

.about-text {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-size: 1.5rem;
}

.about-text p + p {
  margin-top: 1em;
}

.about-text p em {
  font-family: "Victor Serif", serif;
  font-style: italic;
}

.about-credits {
  font-family: "Neue Haas Grotesk", sans-serif;
  font-size: 1.1rem;
  margin-top: 2rem;
}

.about-credits .about-credits-institution {
  font-family: "GeistMono", monospace;
  font-size: 0.75rem;
  margin-bottom: 3.5rem;
}

.about-credits .about-credits-type {
  font-family: "Victor Serif", serif;
  font-size: 1.7rem;
  display: block;
  margin-bottom: 0.5rem;
}

.about-credits .about-credits-label {
  font-family: "GeistMono", monospace;
  font-size: 0.75rem;
  display: block;
  margin-bottom: 0.1rem;
}

.about-credits p + p {
  margin-top: 1.5em;
}

/* ======= FOOTER ======= */

footer button {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  padding: 0.3rem 0.5rem;
  border-radius: 2rem;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.327);
  font-size: 0.78rem;
  font-family: "Neue Haas Grotesk";
  text-transform: uppercase;
  text-shadow: 0 0 0.3rem rgba(0, 0, 0, 0.529);
  color: #4d4d4d;
  border: none;
  cursor: pointer;
  transition: filter 0.6s ease;
  box-shadow:
    inset 0 2px 12px rgba(0, 0, 0, 0.22),
    inset 0 -1px 5px rgba(0, 0, 0, 0.1),
    0 0 18px rgba(255, 255, 255, 0.7),
    0 0 36px rgba(255, 255, 255, 0.25);
}

footer button:hover {
  filter: blur(3px);
}

/* ======= MOBILE ======= */

@media (max-width: 768px) {
  .pop-up .pop-up-title {
    font-size: 1.6rem;
    margin-left: 1rem;
    margin-bottom: 1.5rem;
  }

  .pop-up .pop-up-title span {
    white-space: nowrap;
    font-size: 0.65rem;
  }

  .pop-up .pop-up-text {
    font-size: 1.1rem;
  }

  .pop-up .pop-up-subtitle {
    font-size: 0.65rem;
  }

  .anchor-info-title {
    font-size: 2rem;
  }

  .anchor-info-text {
    font-size: 1.4rem;
  }

  .anchor-info-container {
    padding: 2.5rem;
  }
}
