/* MISS AGRO — Splash loader (first visit per session) */

body.ma-splash-active {
  overflow: hidden;
}

.ma-splash {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a3328;
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.ma-splash--hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ma-splash__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 120%, rgba(61, 143, 106, 0.35), transparent 60%),
    radial-gradient(circle at 20% 20%, rgba(201, 162, 39, 0.12), transparent 40%),
    radial-gradient(circle at 85% 15%, rgba(42, 122, 158, 0.15), transparent 35%),
    linear-gradient(165deg, #0a3328 0%, #163a52 45%, #245a42 100%);
}

.ma-splash__grain {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  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.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.ma-splash__rings {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(420px, 90vw);
  height: min(420px, 90vw);
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.ma-splash__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 162, 39, 0.15);
  animation: ma-splash-pulse 3s ease-in-out infinite;
}

.ma-splash__ring:nth-child(2) {
  inset: 12%;
  animation-delay: 0.4s;
  border-color: rgba(61, 143, 106, 0.2);
}

.ma-splash__ring:nth-child(3) {
  inset: 24%;
  animation-delay: 0.8s;
  border-color: rgba(232, 201, 106, 0.12);
}

@keyframes ma-splash-pulse {
  0%, 100% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.04); opacity: 1; }
}

.ma-splash__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem;
  animation: ma-splash-rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes ma-splash-rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ma-splash__logo {
  width: 112px;
  height: 112px;
  margin: 0 auto 1.75rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(201, 162, 39, 0.25);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 20px 50px rgba(0, 0, 0, 0.35),
    0 0 40px rgba(201, 162, 39, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  animation: ma-splash-glow 2.4s ease-in-out infinite;
}

.ma-splash__logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ma-splash__mark {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: linear-gradient(135deg, #e8c96a, #c9a227);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes ma-splash-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(255,255,255,0.04), 0 20px 50px rgba(0,0,0,0.35), 0 0 30px rgba(201,162,39,0.06); }
  50% { box-shadow: 0 0 0 1px rgba(255,255,255,0.06), 0 24px 56px rgba(0,0,0,0.4), 0 0 48px rgba(201,162,39,0.14); }
}

.ma-splash__title {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.35rem;
}

.ma-splash__subtitle {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: rgba(232, 201, 106, 0.85);
  margin-bottom: 2.25rem;
}

.ma-splash__progress {
  width: min(220px, 70vw);
  height: 3px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.ma-splash__progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3d8f6a, #e8c96a, #c9a227);
  box-shadow: 0 0 12px rgba(201, 162, 39, 0.5);
  animation: ma-splash-progress var(--splash-duration, 3.5s) cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes ma-splash-progress {
  to { width: 100%; }
}

.ma-splash__tagline {
  margin-top: 1.25rem;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.08em;
}

@media (prefers-reduced-motion: reduce) {
  .ma-splash__ring,
  .ma-splash__logo,
  .ma-splash__content,
  .ma-splash__progress-bar {
    animation: none !important;
  }
  .ma-splash__progress-bar { width: 100%; }
}
