/* ================================================================
   BARCA PRODUCTION — PREMIUM ANIMATION ENGINE v1.0
   Fish-swim reveals · Spotlight cards · Magnetic buttons
   Kinetic marquee · Floating rings · Counters · Progress bar
   ================================================================ */

/* ── Scroll Progress Bar ────────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, #C4993A, #D4A843, #B8892A);
  z-index: 9999;
  transition: width 0.06s linear;
  pointer-events: none;
}

/* ── Fish-Swim Reveal (.rv) ─────────────────────────────────────── */
/* Enhanced 3D perspective tilt — the "swimming into view" effect.   */
/* Use .rv on any element. Parent can have .rv-group for stagger.   */
.rv {
  opacity: 0;
  transform: translateY(60px) perspective(700px) rotateX(6deg) scale(0.97);
  transition:
    opacity  0.72s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.rv.rv--in {
  opacity: 1;
  transform: translateY(0) perspective(700px) rotateX(0deg) scale(1);
}

/* Stagger for child .rv elements inside .rv-group */
.rv-group .rv:nth-child(1) { transition-delay: 0ms; }
.rv-group .rv:nth-child(2) { transition-delay: 85ms; }
.rv-group .rv:nth-child(3) { transition-delay: 170ms; }
.rv-group .rv:nth-child(4) { transition-delay: 255ms; }
.rv-group .rv:nth-child(5) { transition-delay: 340ms; }
.rv-group .rv:nth-child(6) { transition-delay: 425ms; }

/* Slide-from-left variant */
.rv--left {
  transform: translateX(-50px) perspective(700px) rotateY(5deg) scale(0.97);
}
.rv--left.rv--in {
  transform: translateX(0) perspective(700px) rotateY(0deg) scale(1);
}

/* Slide-from-right variant */
.rv--right {
  transform: translateX(50px) perspective(700px) rotateY(-5deg) scale(0.97);
}
.rv--right.rv--in {
  transform: translateX(0) perspective(700px) rotateY(0deg) scale(1);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 0; transform: none; transition: opacity 0.3s ease; }
  .rv.rv--in { opacity: 1; }
}

/* ── Spotlight Border Card ─────────────────────────────────────── */
/* Mouse-tracking border glow. JS sets --x and --y on each card.  */
.spotlight-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  transition: border-color 0.3s ease, transform 0.3s cubic-bezier(0.22,1,0.36,1);
}

.spotlight-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.4s ease;
  background: radial-gradient(
    600px circle at var(--x, 50%) var(--y, 50%),
    rgba(196, 153, 58, 0.22),
    transparent 40%
  );
  pointer-events: none;
  z-index: 0;
}

.spotlight-card:hover::before { opacity: 1; }
.spotlight-card:hover { border-color: rgba(196,153,58,0.35); }

.spotlight-card > * { position: relative; z-index: 1; }

/* ── Magnetic Button ─────────────────────────────────────────────── */
.mag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  cursor: pointer;
}
.mag-btn--active {
  transition: transform 0.1s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── Kinetic Marquee ─────────────────────────────────────────────── */
.marquee-section {
  padding: 22px 0;
  background: linear-gradient(90deg, #0A0C1E, #0D1028 60%, #0A0C1E);
  border-top: 1px solid rgba(196,153,58,.12);
  border-bottom: 1px solid rgba(196,153,58,.12);
  overflow: hidden;
  position: relative;
}

.marquee-wrapper {
  display: flex;
  overflow: hidden;
  user-select: none;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 0;
  animation: marquee-scroll 28s linear infinite;
  white-space: nowrap;
}

.marquee-track--reverse {
  animation-direction: reverse;
}

.marquee-wrapper:hover .marquee-track { animation-play-state: paused; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 32px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(196,153,58,0.65);
  white-space: nowrap;
}

.marquee-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(196,153,58,0.4);
  flex-shrink: 0;
}

/* ── Animated Counter ────────────────────────────────────────────── */
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* ── Stats Row ───────────────────────────────────────────────────── */
.stats-row {
  padding: 72px 0;
  background: linear-gradient(180deg, #07091A 0%, #0C1030 100%);
  border-top: 1px solid rgba(196,153,58,.10);
  border-bottom: 1px solid rgba(196,153,58,.10);
}

.stats-row__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stats-row__item {
  padding: 32px 24px;
}

.stats-row__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: #C4993A;
  line-height: 1;
  margin-bottom: 8px;
}

.stats-row__suffix {
  color: #D4A843;
}

.stats-row__label {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(184,196,224,0.6);
  line-height: 1.4;
}

@media (max-width: 768px) {
  .stats-row__grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Floating Geometric Rings ──────────────────────────────────── */
.float-rings {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.float-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(196,153,58,0.15);
  animation: ring-drift 18s ease-in-out infinite;
}

.float-ring:nth-child(1) {
  width: 320px; height: 320px;
  top: -60px; right: -80px;
  animation-duration: 20s;
  animation-delay: 0s;
}

.float-ring:nth-child(2) {
  width: 200px; height: 200px;
  bottom: 10%; left: 5%;
  animation-duration: 25s;
  animation-delay: -8s;
  border-color: rgba(196,153,58,0.08);
}

.float-ring:nth-child(3) {
  width: 120px; height: 120px;
  top: 30%; right: 15%;
  animation-duration: 16s;
  animation-delay: -4s;
  border-color: rgba(196,153,58,0.20);
}

.float-ring:nth-child(4) {
  width: 500px; height: 500px;
  top: -200px; left: 30%;
  animation-duration: 30s;
  animation-delay: -12s;
  border-color: rgba(196,153,58,0.04);
}

@keyframes ring-drift {
  0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
  25%       { transform: translate(12px, -16px) rotate(22deg); }
  50%       { transform: translate(-8px, -28px) rotate(-10deg); }
  75%       { transform: translate(-18px, 10px) rotate(35deg); }
}

/* ── "900 Rejections" Story Section ─────────────────────────────── */
.story-section {
  padding: 100px 0;
  background: #07091A;
  position: relative;
  overflow: hidden;
}

.story-section .float-rings .float-ring {
  opacity: 0.6;
}

.story-section__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.story-section__eyebrow {
  display: inline-block;
  background: rgba(196,153,58,.10);
  border: 1px solid rgba(196,153,58,.30);
  color: #C4993A;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 24px;
}

.story-section__headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 700;
  color: #F0F2F8;
  line-height: 1.18;
  margin: 0 0 24px;
}

.story-section__headline em {
  color: #C4993A;
  font-style: normal;
}

.story-section__body {
  color: #B8C4E0;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0 0 20px;
}

.story-section__body strong {
  color: #F0F2F8;
  font-weight: 600;
}

.story-section__pull {
  border-left: 3px solid #C4993A;
  padding-left: 20px;
  margin: 28px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.35rem;
  font-style: italic;
  color: rgba(196,153,58,0.85);
  line-height: 1.5;
}

.story-section__visual {
  position: relative;
}

.rejection-counter-box {
  background: linear-gradient(135deg, rgba(196,153,58,0.10), rgba(196,153,58,0.03));
  border: 1px solid rgba(196,153,58,.25);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  backdrop-filter: blur(12px);
}

.rejection-counter-box__number {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(5rem, 10vw, 7.5rem);
  font-weight: 700;
  color: #C4993A;
  line-height: 1;
  margin-bottom: 4px;
  display: block;
}

.rejection-counter-box__label {
  font-size: 0.8rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(184,196,224,0.5);
}

.rejection-counter-box__sub {
  margin-top: 28px;
  font-size: 1rem;
  color: #B8C4E0;
  line-height: 1.6;
}

.rejection-counter-box__sub strong {
  color: #F0F2F8;
  display: block;
  font-size: 1.2rem;
  margin-bottom: 4px;
}

@media (max-width: 900px) {
  .story-section__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .story-section__visual { order: -1; }
}

/* ── Email Capture Section ───────────────────────────────────────── */
.email-capture-section {
  padding: 88px 0;
  background: linear-gradient(180deg, #0C1030 0%, #0A0C20 100%);
  border-top: 1px solid rgba(196,153,58,.12);
  position: relative;
  overflow: hidden;
}

.email-capture-section__inner {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
}

.email-capture-section__eyebrow {
  display: inline-block;
  background: rgba(196,153,58,.10);
  border: 1px solid rgba(196,153,58,.25);
  color: #C4993A;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.email-capture-section__headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  color: #F0F2F8;
  line-height: 1.25;
  margin: 0 0 12px;
}

.email-capture-section__sub {
  color: rgba(184,196,224,0.7);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 32px;
}

.email-capture-form {
  display: flex;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.email-capture-form__input {
  flex: 1;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(196,153,58,.25);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 0.95rem;
  color: #F0F2F8;
  outline: none;
  transition: border-color 0.25s ease, background 0.25s ease;
}

.email-capture-form__input::placeholder { color: rgba(184,196,224,0.35); }

.email-capture-form__input:focus {
  border-color: rgba(196,153,58,.6);
  background: rgba(255,255,255,0.09);
}

.email-capture-form__btn {
  background: #C4993A;
  color: #07091A;
  border: none;
  border-radius: 8px;
  padding: 14px 22px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.15s ease;
  letter-spacing: 0.02em;
}

.email-capture-form__btn:hover { background: #D4A843; }
.email-capture-form__btn:active { transform: scale(0.97); }

.email-capture-form__note {
  margin-top: 14px;
  font-size: 0.78rem;
  color: rgba(184,196,224,0.4);
  letter-spacing: 0.02em;
}

.email-capture-perks {
  display: flex;
  justify-content: center;
  gap: 28px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.email-capture-perk {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.82rem;
  color: rgba(184,196,224,0.55);
}

.email-capture-perk svg {
  color: #C4993A;
  flex-shrink: 0;
}

@media (max-width: 540px) {
  .email-capture-form { flex-direction: column; }
  .email-capture-form__btn { width: 100%; }
  .email-capture-perks { gap: 16px; flex-direction: column; align-items: center; }
}

/* ── Parallax Tilt Cards ─────────────────────────────────────────── */
.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.08s ease;
}

/* ── Gold Pulse Badge ────────────────────────────────────────────── */
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(196,153,58,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(196,153,58,0); }
}

.badge--pulse {
  animation: pulse-gold 2.5s ease-in-out infinite;
}

/* ── Section divider lines ───────────────────────────────────────── */
.divider-gold {
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, #C4993A, #D4A843);
  margin: 24px 0;
  border-radius: 2px;
}

.divider-gold--center { margin-left: auto; margin-right: auto; }

/* ── Ripple keyframe ─────────────────────────────────────────────── */
@keyframes ripple-expand {
  to { transform: scale(1); opacity: 0; }
}
