/* ==========================================================================
   Animations — timings match the reference build exactly:
   fade-up: 0.7s ease-out, translateY(20px) -> 0, opacity 0 -> 1
   ========================================================================== */

@keyframes fade-up {
  0%   { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

.animate-fade-up {
  animation: fade-up 0.7s ease-out both;
}

@media (prefers-reduced-motion: reduce) {
  .animate-fade-up {
    animation: none !important;
  }
}

/* Loading screen */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loading-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loading-screen__mark {
  height: 3.25rem;
  width: 3.25rem;
  border-radius: 50%;
  border: 1.5px solid var(--turmeric);
  display: grid;
  place-items: center;
  color: var(--turmeric);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.0625rem;
  animation: pulse-scale 1.1s ease-in-out infinite;
}
@keyframes pulse-scale {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.92); opacity: 0.7; }
}

/* Custom cursor (desktop, hover-capable pointers only) */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9998;
  pointer-events: none;
  border-radius: 9999px;
  transform: translate(-50%, -50%);
  will-change: transform;
}
.cursor-dot { width: 5px; height: 5px; background: var(--turmeric); }
.cursor-ring {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(217, 130, 43, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.25s cubic-bezier(.2,1,.3,1), height 0.25s cubic-bezier(.2,1,.3,1), opacity 0.2s ease, background-color 0.25s ease;
}
.cursor-ring.is-active { width: 44px; height: 44px; opacity: 0.9; background: rgba(20, 33, 61, 0.04); }
.cursor-label {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.5625rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink, #14213D);
  opacity: 0;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.cursor-ring.is-active .cursor-label { opacity: 1; }
@media (hover: none), (pointer: coarse) {
  .cursor-dot, .cursor-ring { display: none; }
}
