/* ─── LOADER ─── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity .5s ease;
}
#loader.loaded {
  opacity: 0;
  pointer-events: none;
}
.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.loader-logo img {
  width: 52px;
  height: 52px;
  display: block;
  opacity: 0;
  animation: loaderLogo .8s ease forwards;
}
.loader-text {
  font-family: 'DM Serif Display', serif;
  font-size: 28px;
  font-weight: 400;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0;
  filter: blur(6px);
  animation: loaderText 1s ease .15s forwards;
  letter-spacing: -.3px;
}
.loader-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--grad);
  width: 0;
  animation: loaderBar 1.4s ease .1s forwards;
}
@keyframes loaderLogo {
  to { opacity: 1; }
}
@keyframes loaderText {
  to { opacity: 1; filter: blur(0); }
}
@keyframes loaderBar {
  to { width: 100%; }
}

/* ─── CUSTOM CURSOR ─── */
.cursor {
  position: fixed;
  width: 10px; height: 10px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%,-50%);
  transition: transform 0.1s, width 0.3s, height 0.3s, background 0.3s;
}
.cursor-ring {
  position: fixed;
  width: 38px; height: 38px;
  border: 1.5px solid rgba(108,78,224,0.35);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%,-50%);
  transition: transform 0.15s ease, width 0.3s, height 0.3s;
}

/* ─── GLOBAL GRAIN OVERLAY ─── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9997;
  pointer-events: none;
  opacity: 0.015;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
  animation: grain 8s steps(4) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); }
  25% { transform: translate(-3px,3px); }
  50% { transform: translate(3px,-3px); }
  75% { transform: translate(-2px,-2px); }
}

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(3px);
  transition: opacity 1s cubic-bezier(.25,.1,.25,1), transform 1s cubic-bezier(.25,.1,.25,1), filter 1s cubic-bezier(.25,.1,.25,1);
  will-change: transform, opacity, filter;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}


/* ─── WHATSAPP FAB ─── */
.wa-fab {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,.35);
  z-index: 9999;
  text-decoration: none;
  transition: transform .2s;
}
.wa-fab:hover { transform: scale(1.08); }

/* ─── KEYFRAMES ─── */
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes morph {
  0%,100% { border-radius: 58% 42% 68% 32%/48% 62% 38% 62%; }
  33%      { border-radius: 44% 56% 38% 62%/60% 44% 56% 40%; }
  66%      { border-radius: 62% 38% 54% 46%/36% 58% 42% 64%; }
}
@keyframes floatUp {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ─── BLOB FLOATING ─── */
@keyframes floatBlob {
  0%,100% { transform: translateY(0) translateX(0); }
  33%     { transform: translateY(-12px) translateX(6px); }
  66%     { transform: translateY(8px) translateX(-4px); }
}
@keyframes blobPulse {
  0%,100% { opacity: .05; }
  50%     { opacity: .08; }
}
