/* ==========================================================================
   XPLOROO · About Us module
   about.css — Fully original, self-contained component. Scoped entirely
   under `.about` / `.about__*`, `.marquee`, `.stat-card` — never touches
   any other section's classes or tokens.

   Visual identity: one premium dark navy/purple card, matching the
   established "VIP Access" card language already used on
   vip-membership.html (see `.vipm-card` / `.vipm-vision` in
   styles/vip-membership.css) — same royal-purple / cherry-magenta /
   electric-blue / midnight-navy family, titanium-silver gradient border,
   soft inset highlight. Reimplemented locally under `--about-*` custom
   properties rather than reusing `.vipm-*` classes directly, so this file
   stays fully self-contained and vip-membership.css is never touched.
   The card's own ~90%-opaque dark fill is intentional in both themes (see
   the brief: "can retain its premium dark/navy appearance in both
   themes") — every color inside it below is hardcoded for that reason,
   not read from the shared light/dark tokens.
   ========================================================================== */

.about {
  --about-purple:  #5B21B6;
  --about-magenta: #C026D3;
  --about-blue:    #2563EB;
  --about-navy:    #0F172A;
  --about-silver:        #C7CCD9;
  --about-silver-bright: #F5F7FB;
  position: relative;
  padding-block: var(--home-section-gap); /* homepage inter-section gap, see hero.css */
}

.about__container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--container-pad);
}

/* -------------------------------------------------------------------------
   Premium card — large rounded corners, subtle purple/blue gradient over
   a midnight-navy base, thin titanium-silver gradient border, soft inset
   highlight, deep ambient shadow. Everything in this section lives inside
   it as one cohesive surface (no nested boxes).
   ------------------------------------------------------------------------- */
.about__panel {
  position: relative;
  z-index: 1;
  overflow: hidden;
  max-width: 46rem;
  margin-inline: auto;
  border-radius: 2rem;
  padding: clamp(2rem, 1.5rem + 2.5vw, 3.5rem) clamp(1.5rem, 1rem + 2.5vw, 3rem);
  background:
    linear-gradient(165deg, rgba(91, 33, 182, 0.22), rgba(15, 23, 42, 0.92) 55%, rgba(37, 99, 235, 0.14)) padding-box,
    linear-gradient(150deg, rgba(199, 204, 217, 0.5), rgba(120, 128, 150, 0.22) 45%, rgba(199, 204, 217, 0.38) 100%) border-box;
  border: 1.5px solid transparent;
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  box-shadow: var(--shadow-xl), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}
/* Soft ambient glow behind the card — depth without motion */
.about__panel::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -20%;
  background:
    radial-gradient(45% 40% at 20% 0%, rgba(192, 38, 212, 0.16), transparent 60%),
    radial-gradient(40% 35% at 85% 100%, rgba(37, 99, 235, 0.14), transparent 60%);
  pointer-events: none;
}

/* -------------------------------------------------------------------------
   Section title
   ------------------------------------------------------------------------- */
.about__head {
  text-align: center;
  margin-bottom: clamp(1.75rem, 1.4rem + 1.75vw, 2.75rem);
}
.about__title {
  margin: 0;
  font-size: var(--fs-3xl);
  font-weight: var(--fw-extrabold);
  color: #ffffff;
  text-shadow: 0 0 30px rgba(91, 33, 182, 0.35);
}

/* -------------------------------------------------------------------------
   Video — 16:9, rounded corners, premium titanium border, sits elegantly
   inside the card below the heading.
   ------------------------------------------------------------------------- */
.about__video {
  margin-bottom: clamp(2rem, 1.6rem + 2vw, 3.25rem);
}
.about__video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.08), transparent 40%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(199, 204, 217, 0.32);
  box-shadow: var(--shadow-lg);
}
/* Placeholder texture so the frame doesn't read as an empty box before a
   real <video>/<iframe> embed is dropped in via data-about-video */
.about__video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.045) 0px,
    rgba(255, 255, 255, 0.045) 1px,
    transparent 1px,
    transparent 12px
  );
  pointer-events: none;
}

.about__video-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: clamp(3.25rem, 2.8rem + 2vw, 4.5rem);
  height: clamp(3.25rem, 2.8rem + 2vw, 4.5rem);
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(245, 247, 251, 0.4);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    transform var(--dur-base) var(--ease-out),
    background-color var(--dur-fast) var(--ease-standard),
    box-shadow var(--dur-base) var(--ease-out);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}
.about__video-play svg { width: 42%; height: 42%; margin-left: 4%; }
.about__video-play:hover {
  transform: scale(1.08);
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 36px rgba(192, 38, 212, 0.4);
}
.about__video-play:active { transform: scale(0.96); }

/* Once JS injects a real <video>/<iframe>, hide the placeholder chrome */
.about__video-frame.is-playing .about__video-play,
.about__video-frame.is-playing::before {
  display: none;
}
.about__video-frame video,
.about__video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

/* -------------------------------------------------------------------------
   Trusted Partners — two infinite marquee rows of compact glass pills
   ------------------------------------------------------------------------- */
.about__partners {
  margin-bottom: clamp(2rem, 1.6rem + 2vw, 3.25rem);
}
.about__partners-title {
  text-align: center;
  margin: 0 0 clamp(1.25rem, 1rem + 1.25vw, 2rem);
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--about-silver);
}

.marquee {
  --marquee-duration: 32s;
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee + .marquee { margin-top: var(--space-4); }

.marquee__track {
  display: flex;
  width: max-content;
}
.marquee__set {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
  padding-inline-end: clamp(0.75rem, 0.6rem + 0.75vw, 1.25rem);
  list-style: none;
  margin: 0;
  will-change: transform;
}

.marquee--ltr .marquee__track { animation: marquee-ltr var(--marquee-duration) linear infinite; }
.marquee--rtl .marquee__track { animation: marquee-rtl var(--marquee-duration) linear infinite; }

@keyframes marquee-ltr {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@keyframes marquee-rtl {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* Pause on hover (desktop) */
@media (hover: hover) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}
/* Pause when out of view (perf) — JS toggles this class via IntersectionObserver */
.marquee.is-paused .marquee__track { animation-play-state: paused; }

@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* Individual premium colour identities per pill — pure CSS via nth-child,
   no HTML changes (each marquee's real set + its aria-hidden duplicate set
   share the same item order, so the same nth-child index always lands on
   the same partner name in both, keeping the infinite loop seamless). */
.marquee__logo:nth-child(1) { --partner-a: rgba(168, 85, 247, 0.24); --partner-b: rgba(139, 92, 246, 0.08); --partner-border: rgba(216, 180, 254, 0.5); --partner-glow: rgba(168, 85, 247, 0.4); }
.marquee__logo:nth-child(2) { --partner-a: rgba(225, 29, 72, 0.22); --partner-b: rgba(190, 18, 60, 0.08); --partner-border: rgba(251, 182, 206, 0.45); --partner-glow: rgba(225, 29, 72, 0.35); }
.marquee__logo:nth-child(3) { --partner-a: rgba(37, 99, 235, 0.24); --partner-b: rgba(29, 78, 216, 0.08); --partner-border: rgba(191, 219, 254, 0.5); --partner-glow: rgba(37, 99, 235, 0.35); }
.marquee__logo:nth-child(4) { --partner-a: rgba(20, 184, 166, 0.22); --partner-b: rgba(13, 148, 136, 0.08); --partner-border: rgba(153, 246, 228, 0.45); --partner-glow: rgba(20, 184, 166, 0.35); }
.marquee__logo:nth-child(5) { --partner-a: rgba(99, 102, 241, 0.24); --partner-b: rgba(79, 70, 229, 0.08); --partner-border: rgba(199, 210, 254, 0.5); --partner-glow: rgba(99, 102, 241, 0.35); }
.marquee__logo:nth-child(6) { --partner-a: rgba(219, 39, 119, 0.22); --partner-b: rgba(190, 24, 93, 0.08); --partner-border: rgba(251, 207, 232, 0.45); --partner-glow: rgba(219, 39, 119, 0.35); }

.marquee__logo {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  height: clamp(2.25rem, 2rem + 0.9vw, 2.65rem);
  padding-inline: clamp(1rem, 0.85rem + 0.75vw, 1.4rem);
  border: 1px solid var(--partner-border, rgba(199, 204, 217, 0.3));
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--partner-a, rgba(255, 255, 255, 0.05)), var(--partner-b, rgba(255, 255, 255, 0.05)));
  color: rgba(255, 255, 255, 0.92);
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  letter-spacing: -0.01em;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: color var(--dur-fast) var(--ease-standard), border-color var(--dur-fast) var(--ease-standard), background-color var(--dur-fast) var(--ease-standard), box-shadow var(--dur-fast) var(--ease-standard), transform var(--dur-fast) var(--ease-standard);
}
.marquee:hover .marquee__logo { color: var(--about-silver-bright); }
@media (hover: hover) {
  .marquee__logo:hover {
    color: rgba(255, 255, 255, 0.98);
    border-color: var(--partner-border, rgba(199, 204, 217, 0.55));
    box-shadow: 0 0 0 1px var(--partner-border, rgba(199, 204, 217, 0.4)) inset, 0 6px 20px -6px var(--partner-glow, rgba(255, 255, 255, 0.3));
    transform: translateY(-2px);
  }
}

@media (max-width: 768px) {
  .marquee__logo {
    height: 2.1rem;
    padding-inline: 0.9rem;
    font-size: var(--fs-xs);
  }
  .marquee__set { gap: 0.65rem; padding-inline-end: 0.65rem; }
  .marquee { --marquee-duration: 22s; }
}

/* -------------------------------------------------------------------------
   Creators Supported statistic — integrated directly onto the card
   surface, no separate box/border/shadow around it.
   ------------------------------------------------------------------------- */
.about__stats {
  display: flex;
  justify-content: center;
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  text-decoration: none;
}

.stat-card__number {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 2.1rem + 2.75vw, 4rem);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--about-magenta), var(--about-purple));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card__label {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--about-silver);
}
.stat-card__link {
  margin-top: 0.35rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: #ffffff;
  transition: color 300ms ease;
}
.stat-card:hover .stat-card__link { color: #f0abfc; }
