/* =========================================================================
   MOOV — Testimonials shared styles (page hero, filters, reel placeholder)
   Layered on top of the site's styles.css. Direction-specific grid + player
   styles live inside each direction's own <style> block.
   ========================================================================= */

/* ---- page scaffolding ---- */
.tpage { padding-top: 68px; }

.tpage-hero {
  position: relative;
  padding: 84px 0 40px;
  text-align: center;
  overflow: hidden;
}
.tpage-hero .container { position: relative; z-index: 1; }
.tpage-hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.tpage-hero-bg .orb {
  position: absolute; border-radius: 50%; filter: blur(120px);
}
.tpage-hero-bg .orb-1 { width: 460px; height: 460px; background: var(--primary-500); top: -160px; right: 4%; opacity: .10; }
.tpage-hero-bg .orb-2 { width: 360px; height: 360px; background: var(--cyan-500); top: -80px; left: 2%; opacity: .08; }
[data-theme="light"] .tpage-hero-bg .orb-1 { opacity: .09; }
[data-theme="light"] .tpage-hero-bg .orb-2 { opacity: .07; }

.tpage-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 16px; margin-bottom: 22px;
  background: rgba(99,102,241,0.15);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: var(--radius-full);
  font-size: 13px; font-weight: 600; color: var(--primary-500);
}
.tpage-eyebrow .badge-dot { width: 6px; height: 6px; background: var(--primary-500); border-radius: 50%; animation: pulse 2s ease-in-out infinite; }

.tpage-title {
  font-size: 52px; font-weight: 800; line-height: 1.08;
  letter-spacing: -0.03em; color: var(--white); margin-bottom: 18px;
}
[data-theme="light"] .tpage-title { color: #0F172A; }
.tpage-sub {
  font-size: 19px; color: var(--dark-400); max-width: 600px;
  margin: 0 auto; line-height: 1.65;
}
[data-theme="light"] .tpage-sub { color: #64748B; }

/* ---- filter / toolbar ---- */
.tfilter {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 10px; margin-top: 32px;
}
.tchip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-full);
  font-family: var(--font-family); font-size: 14px; font-weight: 600;
  color: var(--dark-300);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.tchip:hover { color: var(--white); border-color: rgba(99,102,241,0.4); }
.tchip.active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary-500), var(--blue-500));
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(99,102,241,0.35);
}
.tchip .tchip-count {
  font-size: 12px; font-weight: 700; opacity: .7;
  padding: 1px 7px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.12);
}
[data-theme="light"] .tchip { color: #475569; background: #fff; border-color: rgba(0,0,0,0.1); }
[data-theme="light"] .tchip:hover { color: #0F172A; }
[data-theme="light"] .tchip.active { color: #fff; background: linear-gradient(135deg, var(--primary-500), var(--blue-500)); border-color: transparent; }

/* ---- avatars / author rows (shared) ---- */
.t-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 700; font-size: 15px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}
.t-avatar--logo { background: #fff; padding: 5px; box-shadow: 0 4px 12px rgba(0,0,0,0.18); border: 1px solid rgba(0,0,0,0.06); }
.t-avatar--logo img { width: 100%; height: 100%; object-fit: contain; }
.t-author { display: flex; align-items: center; gap: 12px; }
.t-author .t-meta strong { display: block; font-size: 14px; font-weight: 700; color: var(--white); line-height: 1.3; }
.t-author .t-meta span { font-size: 13px; color: var(--dark-400); }
[data-theme="light"] .t-author .t-meta strong { color: #0F172A; }
[data-theme="light"] .t-author .t-meta span { color: #64748B; }

/* =========================================================================
   REEL PLACEHOLDER — animated, silent, looping (reads as a playing clip)
   The element it lives in should be position:relative with a fixed
   aspect-ratio. .reel-ph / .reel-iframe fill it.
   ========================================================================= */
.reel-iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #070b14; }
.reel-vimeo { background: #070b14; border-radius: inherit; overflow: hidden; }
/* background (16:9) video scaled to COVER the 16:10 tile — no letterbox bars */
.reel-vimeo .reel-iframe {
  inset: auto; top: 50%; left: 50%; transform: translate(-50%, -50%);
  height: 100%; width: calc(100% * 10 / 9);
}

.reel-ph {
  position: absolute; inset: 0; overflow: hidden;
  background:
    radial-gradient(140% 120% at 50% 0%, #1b2540 0%, #0c1220 60%, #070b14 100%);
  isolation: isolate;
}
/* slow ken-burns drift so it reads as live footage */
.reel-drift {
  position: absolute; inset: -8%;
  animation: reelDrift 14s ease-in-out infinite alternate;
}
@keyframes reelDrift {
  0%   { transform: scale(1.05) translate(0,0); }
  100% { transform: scale(1.14) translate(-3%, -2%); }
}
.reel-grain {
  position: absolute; inset: 0; opacity: .5; mix-blend-mode: overlay;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 3px);
  animation: reelScan 6s linear infinite;
}
@keyframes reelScan { from { background-position: 0 0; } to { background-position: 0 120px; } }

.reel-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; align-items: center; justify-content: space-between; z-index: 2; }
.reel-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10px; font-weight: 800; letter-spacing: .08em;
  color: #fff; padding: 4px 9px; border-radius: var(--radius-full);
  background: rgba(0,0,0,0.45); backdrop-filter: blur(6px);
}
.reel-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--reel-accent); box-shadow: 0 0 0 0 var(--reel-accent); animation: reelLive 1.6s ease-out infinite; }
@keyframes reelLive { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--reel-accent) 70%, transparent); } 100% { box-shadow: 0 0 0 7px transparent; } }
.reel-mute {
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; color: #fff;
  background: rgba(0,0,0,0.45); backdrop-filter: blur(6px);
}

/* animated equalizer — the visual proof of "playing audio, muted" */
.reel-eq { position: absolute; left: 14px; bottom: 46px; display: flex; align-items: flex-end; gap: 3px; height: 18px; z-index: 2; }
.reel-eq span { width: 3px; border-radius: 2px; background: var(--reel-accent); height: 40%; animation: reelEq 1.1s ease-in-out infinite; }
.reel-eq span:nth-child(2){ animation-delay: .15s; } .reel-eq span:nth-child(3){ animation-delay: .3s; }
.reel-eq span:nth-child(4){ animation-delay: .45s; } .reel-eq span:nth-child(5){ animation-delay: .6s; }
@keyframes reelEq { 0%,100% { height: 30%; } 50% { height: 100%; } }

.reel-dur {
  position: absolute; right: 12px; bottom: 46px; z-index: 2;
  font-size: 11px; font-weight: 700; color: #fff;
  padding: 3px 8px; border-radius: 6px; background: rgba(0,0,0,0.5); backdrop-filter: blur(6px);
  font-variant-numeric: tabular-nums;
}

.reel-lowerthird {
  position: absolute; left: 0; right: 0; bottom: 14px; z-index: 2;
  display: flex; align-items: center; gap: 10px; padding: 0 14px;
}
.reel-avatar { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 12px; }
.reel-cap-text { font-size: 12px; line-height: 1.25; color: rgba(255,255,255,0.82); }
.reel-cap-text strong { display: block; font-size: 13px; font-weight: 700; color: #fff; }

/* looping scrubber — the "it's autoplaying" tell */
.reel-scrub { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,0.14); z-index: 3; }
.reel-scrub i { display: block; height: 100%; width: 30%; background: var(--reel-accent); animation: reelScrub 9s linear infinite; }
@keyframes reelScrub { from { width: 0; } to { width: 100%; } }

/* a soft veil + central play affordance on hover for clickable reels */
.reel-clickable { cursor: pointer; }
.reel-hoverplay {
  position: absolute; inset: 0; z-index: 4; display: flex; align-items: center; justify-content: center;
  background: rgba(7,11,20,0.0); transition: background .3s ease;
}
.reel-clickable:hover .reel-hoverplay { background: rgba(7,11,20,0.34); }
.reel-hoverplay .pp {
  width: 64px; height: 64px; border-radius: 50%;
  background: rgba(255,255,255,0.16); border: 1.5px solid rgba(255,255,255,0.5);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.8); transition: all .3s ease;
}
.reel-clickable:hover .reel-hoverplay .pp { opacity: 1; transform: scale(1); }
.reel-hoverplay .pp svg { margin-left: 3px; }

@media (prefers-reduced-motion: reduce) {
  .reel-drift, .reel-grain, .reel-eq span, .reel-scrub i, .reel-live i { animation: none !important; }
}

@media (max-width: 768px) {
  .tpage-title { font-size: 36px; }
  .tpage-sub { font-size: 17px; }
}
