/* ============================================================
   VM FITNESS — MINIMAL ANIMATIONS & TRANSITIONS ENGINE
   Theme: Minimal Monochromatic (White, Black & Subtle Grays)
   Square Geometry & Seamless Atmospheric Motion
   ============================================================ */

/* 1. MOUSE FOLLOWING GLOW */
.mouse-cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.04) 0%, rgba(0, 0, 0, 0.01) 40%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 9998;
  mix-blend-mode: multiply;
  transition: opacity 0.3s ease;
  opacity: 0;
}

/* 2. CINEMATIC INTRO LOADER (APPLE WHITE) */
.vmf-loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #FFFFFF;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s ease;
}

.vmf-loader-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

#loaderCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.loader-content {
  position: relative;
  z-index: 2;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loader-logo-wrap {
  position: relative;
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.loader-logo {
  width: 90px;
  height: 90px;
  object-fit: contain;
  opacity: 0;
  transform: scale(0.8) translateY(15px);
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.12));
  transition: all 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-logo.revealed {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.loader-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: #000000;
  border-right-color: rgba(0, 0, 0, 0.2);
  opacity: 0;
  animation: loaderSpin 1.8s linear infinite;
  transition: opacity 0.5s ease;
}

.loader-ring.active {
  opacity: 1;
}

@keyframes loaderSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: #1D1D1F;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.loader-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(15px);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.loader-title span.revealed {
  opacity: 1;
  transform: translateY(0);
}

.loader-subtitle {
  font-family: var(--font-heading);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 4px;
  color: var(--apple-grey-700);
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.loader-subtitle.revealed {
  opacity: 1;
  transform: translateY(0);
}

.loader-bar-wrap {
  width: 180px;
  height: 2px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 0;
  margin-top: 24px;
  overflow: hidden;
}

.loader-progress {
  width: 0%;
  height: 100%;
  background: #000000;
  transition: width 1.8s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
}

/* 3. TEXT & SCROLL REVEALS */
.reveal-text {
  overflow: hidden;
  display: inline-block;
}

.reveal-text-line {
  display: block;
  transform: translateY(30px);
  opacity: 0;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.7s ease;
}

.reveal-text-line.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Scroll Reveal Elements */
[data-vmf-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-vmf-reveal="fade-in"] {
  transform: translateY(12px);
}

[data-vmf-reveal="scale-up"] {
  transform: scale(0.97);
}

[data-vmf-reveal].is-visible {
  opacity: 1;
  transform: translate(0) scale(1);
}

/* Image Reveal */
.img-reveal-wrap {
  position: relative;
  overflow: hidden;
  border-radius: 0 !important;
}

.img-reveal-wrap img {
  transform: scale(1.06);
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1);
}

.img-reveal-wrap.is-revealed img {
  transform: scale(1);
}

/* 4. HORIZONTAL SCROLL SHOWCASE */
.horizontal-scroll-container {
  position: relative;
  padding: 10px 0 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.2) rgba(0, 0, 0, 0.05);
}

.horizontal-scroll-container::-webkit-scrollbar {
  height: 4px;
}

.horizontal-scroll-container::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.04);
  border-radius: 0;
}

.horizontal-scroll-container::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 0;
}

.horizontal-scroll-track {
  display: flex;
  gap: 24px;
  width: max-content;
  padding: 10px 24px;
}

.horizontal-card {
  width: 340px;
  flex-shrink: 0;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 !important;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

.horizontal-card:hover {
  transform: translateY(-4px);
  border-color: #000000;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

/* 5. STICKY STORYTELLING SECTION */
.sticky-story-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
  position: relative;
}

.sticky-story-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 20px);
  padding: 34px;
  background: #F5F5F7;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.sticky-story-content {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.story-block {
  padding: 30px;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0 !important;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.story-block.active {
  border-color: #000000;
  background: #FFFFFF;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

@media (max-width: 992px) {
  .sticky-story-wrapper {
    grid-template-columns: 1fr;
  }
  .sticky-story-sidebar {
    position: relative;
    top: 0;
  }
}
