/* ========================= */
/* Ethnographic Sticky Notes */
/* ========================= */


.sticky-note {
  position: absolute;
  width: 180px;  /* Reduced from 220px */
  height: 180px; /* Reduced from 220px */
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.2rem; /* Reduced so text has enough room to breathe */
  box-sizing: border-box;
  
  text-decoration: none;
  color: #1a1a1a; 
  cursor: pointer;
  z-index: 50; 
  
  animation: stampOntoWall 0.2s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;

  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), z-index 0s;

  /* Tells the GPU to prepare for these exact movements */
  will-change: transform, opacity;  

}

.note-text {
  font-family: 'iA Writer Duospace', monospace;
  font-size: 0.75rem; /* Scaled down slightly to fit the new size */
  line-height: 1.4;
  text-align: center;
  pointer-events: none; 
}



.sticky-note:hover {
  transform: scale(1.05) rotate(0deg) !important; 
  z-index: 100; 
}



.note-link-prompt {
  font-family: 'SF Pro Display', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  margin-top: 1rem;
  opacity: 0.4;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  pointer-events: none;
}

/* ========================= */
/* Mobile Exclusion          */
/* ========================= */
/* Hides notes on touch devices to keep the screen clean */
@media (max-width: 899px) {
  .sticky-note {
    display: none !important;
  }
}


/* ========================= */
/* Dynamic Cursor Tool Icon  */
/* ========================= */

#sticky-cursor-prompt {
  position: fixed;
  pointer-events: none; 
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.5rem; /* Space between icon and text */
  color: var(--accent-color); /* Uses your Terracotta orange */
  
  /* Removed the background, border, and padding so it floats cleanly */
  opacity: 0; 
  transition: opacity 0.2s ease;
  
  /* Positions it perfectly at the bottom-right of the mouse pointer */
  transform: translate(12px, 12px);
}


/* ========================= */
/* Shake-to-Clear Animation  */
/* ========================= */

@keyframes dropOffWall {
  0%   { transform: rotate(var(--rot)) translateY(0); opacity: 1; }
  100% { transform: rotate(calc(var(--rot) + 15deg)) translateY(120vh); opacity: 0; }
}

.falling-note {
  /* Gives it a realistic falling gravity curve */
  animation: dropOffWall 0.6s cubic-bezier(0.55, 0.085, 0.68, 0.53) forwards !important;
  pointer-events: none; /* Stops it from being clickable while falling */
}

/* Add this to the bottom of your CSS */
@keyframes stampOntoWall {
  0%   { opacity: 0; transform: scale(1.1) rotate(var(--rot)); filter: blur(2px); }
  100% { opacity: 1; transform: scale(1) rotate(var(--rot)); filter: blur(0); }
}

