/* Hanko — Ink & Authority */

/* ── Grain overlay ── */
.grain::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px;
}

/* ── Staggered fade-in ── */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: rise 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.fade-in-1 { animation-delay: 0.08s; }
.fade-in-2 { animation-delay: 0.16s; }
.fade-in-3 { animation-delay: 0.24s; }
.fade-in-4 { animation-delay: 0.32s; }
.fade-in-5 { animation-delay: 0.4s; }
.fade-in-6 { animation-delay: 0.48s; }

/* ── Seal stamp pulse ── */
@keyframes stamp {
  0% {
    transform: scale(0.6) rotate(-8deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.05) rotate(1deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

.seal-stamp {
  animation: stamp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s both;
}

/* ── Torii watermark ── */
.torii-watermark {
  position: fixed;
  bottom: -60px;
  right: -40px;
  width: 380px;
  height: 380px;
  opacity: 0.018;
  pointer-events: none;
  z-index: 0;
}

/* ── Cookie consent banner ── */
@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(100%);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.cookie-banner {
  animation: slide-up 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.5s both;
}

.cookie-banner-hide {
  animation: none;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.25s, transform 0.25s;
}
