body {
  font-family: Helvetica, Arial, sans-serif;
  background: #fdfdfc;
  color: #111;
  margin: 0;
  padding: 40px 20px;
}

/* HEADER */

header {
  text-align: center;
  margin-bottom: 60px;
}

h1 {
  font-weight: 500;
}

.subtitle {
  font-size: 0.9em;
  color: #888;
}

/* WRAPPER */

#wrapper {
  max-width: 900px;
  margin: 0 auto;
}

/* CANVAS */

#canvas {
  position: relative;
  width: 100%;
  height: 130vh;
}

/* OBJECTES */

.objecte {
  position: absolute;
  width: 150px;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.objecte img {
  width: 100%;
  display: block;
}

/* TEXT */

.objecte p {
  font-size: 10px;
  color: #666;
  margin-top: 4px;
}

/* HOVER SUAU */

.objecte:hover {
  transform: scale(1.05);
  z-index: 2;
}

/* GLITCH FIN */

.glitch img {
  animation: glitch 0.12s;
}

@keyframes glitch {
  0% { transform: translate(0); }
  30% { transform: translate(-3px, 2px); filter: hue-rotate(90deg); }
  60% { transform: translate(3px, -2px); filter: hue-rotate(180deg); }
  100% { transform: translate(0); }
}

/* OVERLAY MILLORAT */

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fdfdfc;
  opacity: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

#overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

#overlay-content {
  max-width: 500px;
  text-align: center;
  animation: fadeIn 0.6s ease;
}

#overlay-content img {
  width: 100%;
}

#overlay-content p {
  margin-top: 10px;
  font-size: 0.9em;
  color: #444;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* FOOTER */

footer {
  text-align: center;
  margin-top: 100px;
  font-size: 0.8em;
  color: #aaa;
}

/* MÒBIL → CANVI CURATORIAL */

@media (max-width: 600px) {

  #canvas {
    height: auto;
  }

  .objecte {
    position: relative;
    width: 85%;
    margin: 40px auto;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
  }

}