/* ACREVIA — Animations Layer */

/* ── SCROLL PROGRESS BAR ── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #B8900C, #9333EA, #3B6AFF);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 10001;
  pointer-events: none;
}

/* ── CUSTOM CURSOR ── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--text);
  transition: width .25s, height .25s, background .25s, opacity .25s;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1.5px solid rgba(12, 12, 18, 0.3);
  transition: width .45s cubic-bezier(.25,.46,.45,.94),
              height .45s cubic-bezier(.25,.46,.45,.94),
              border-color .3s, opacity .3s;
}

.cursor-hover .cursor-dot  { width: 10px; height: 10px; background: var(--gold-vivid); }
.cursor-hover .cursor-ring { width: 52px; height: 52px; border-color: rgba(184,144,12,.5); }
.cursor-link  .cursor-dot  { width: 4px; height: 4px; }
.cursor-link  .cursor-ring { width: 52px; height: 52px; border-color: rgba(12,12,18,.25); }

@media (hover: none) { .cursor-dot, .cursor-ring { display: none; } }

/* ── PAGE LOADER ── */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
}

.page-loader.loaded {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s cubic-bezier(.25,.46,.45,.94);
}

.loader-wordmark {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #F0EEE8;
  opacity: 0;
  animation: loader-fade-in 0.5s 0.1s ease both;
}

.loader-wordmark em { color: var(--gold-vivid); font-style: normal; }

@keyframes loader-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.loader-track {
  width: 160px;
  height: 1.5px;
  background: rgba(255,255,255,.1);
  border-radius: 2px;
  overflow: hidden;
}

.loader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #B8900C, #E8B520);
  border-radius: 2px;
  transition: width 0.04s linear;
}

/* ── GSAP REVEAL TARGETS ── */
.gsap-reveal {
  opacity: 0;
  transform: translateY(40px);
}

/* ── SPLIT TEXT ── */
.split-word {
  display: inline-block;
  overflow: hidden;
  vertical-align: bottom;
}

.split-word-inner {
  display: inline-block;
}

/* ── COUNTER ── */
[data-count] { font-variant-numeric: tabular-nums; }

/* ── MAGNETIC BUTTON WRAPPER ── */
.mag-wrap { display: inline-block; }

/* ── NAV UNDERLINE (in main.css, but kept for reference) ── */

/* ── STAGGER LINES ── */
.stagger-line { overflow: hidden; }
.stagger-line-inner { display: block; }

/* ── TICKER PAUSE ── */
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ── ANIMATED GRADIENT TEXT ── */
.grad-text-live {
  background: linear-gradient(135deg, #B8900C 0%, #E8B520 25%, #9333EA 50%, #3B6AFF 75%, #B8900C 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: grad-shift 5s ease infinite;
}

@keyframes grad-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}
