/* ============================================================
   WITHFEELING PLAYER — v7.3
   Production stylesheet for the WithFeeling custom Vimeo player.
   Brand customisation via the CSS variables at the top of .wf-cs.
   
   Changelog v7.2:
   - Sound button significantly more transparent (0.2 → 0.08 bg)
   - Sound button slightly smaller overall
   - Toggle switch slightly smaller
   - Less aggressive blur (8px → 4px)
   - Softer label colour (0.85 → 0.7)
   ============================================================ */

.wf-cs {
  --wf-blue: #24A1DE;
  --wf-blue-dark: #1d8bc1;
  --wf-radius: 15px;

  position: relative;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  aspect-ratio: var(--wf-aspect, 16 / 9);
  background: transparent;
  border-radius: var(--wf-radius) !important;
  overflow: hidden !important;
  clip-path: inset(0 round var(--wf-radius));
  -webkit-clip-path: inset(0 round var(--wf-radius));
  isolation: isolate;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: none !important;
  filter: none !important;
  -webkit-filter: none !important;
}

.wf-cs__poster {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
  max-width: 100% !important;
  max-height: 100% !important;
  border-radius: 0 !important;
  transition: opacity 0.4s ease;
  z-index: 2;
  cursor: pointer;
}
.wf-cs.is-loading .wf-cs__poster {
  opacity: 1;
  pointer-events: none;
}
.wf-cs.is-playing .wf-cs__poster,
.wf-cs.is-paused .wf-cs__poster {
  opacity: 0;
  pointer-events: none;
}

.wf-cs__frame-wrap {
  position: absolute !important;
  inset: 0 !important;
  z-index: 1;
  background: transparent !important;
  border-radius: inherit !important;
  overflow: hidden !important;
  clip-path: inset(0 round var(--wf-radius));
  -webkit-clip-path: inset(0 round var(--wf-radius));
}

/* Iframe stays at 100% layout dimensions, but visually scaled by 1.5%.
   Parent's clip-path crops the overscan cleanly. */
.wf-cs__frame {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none;
  border-radius: 0 !important;
  transition: none !important;
  transform: scale(1.015) !important;
  transform-origin: center center !important;
}

.wf-cs__poster-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(0,0,0,0.0) 0%,
      rgba(0,0,0,0.0) 60%,
      rgba(0,0,0,0.4) 100%),
    rgba(0, 0, 0, 0.30);
  z-index: 3;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.wf-cs.is-loading .wf-cs__poster-overlay {
  opacity: 1;
}
.wf-cs.is-playing .wf-cs__poster-overlay,
.wf-cs.is-paused .wf-cs__poster-overlay {
  opacity: 0;
}

.wf-cs__pause-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.30);
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.wf-cs.is-paused .wf-cs__pause-overlay {
  opacity: 1;
}

.wf-cs__big-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 88px; height: 88px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  z-index: 8;
  cursor: pointer;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.wf-cs__big-play::after {
  content: "";
  width: 0; height: 0;
  border-style: solid;
  border-width: 14px 0 14px 22px;
  border-color: transparent transparent transparent #fff;
  margin-left: 6px;
  transition: opacity 0.2s ease;
}
@media (hover: hover) {
  .wf-cs__big-play:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: rgba(255, 255, 255, 0.1);
  }
}
.wf-cs.is-loading .wf-cs__big-play::after {
  opacity: 0;
}
.wf-cs.is-playing .wf-cs__big-play {
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(1.4);
}
.wf-cs.is-paused .wf-cs__big-play {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(0.85);
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@media (hover: hover) {
  .wf-cs.is-paused .wf-cs__big-play:hover {
    transform: translate(-50%, -50%) scale(0.95);
    background: rgba(0, 0, 0, 0.6);
  }
}

.wf-cs__spinner {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.25);
  border-top-color: var(--wf-blue);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}
.wf-cs.is-loading .wf-cs__spinner {
  opacity: 1;
  animation: wf-cs-spin 0.7s linear infinite;
}
@keyframes wf-cs-spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.wf-cs__click {
  position: absolute;
  inset: 0;
  z-index: 5;
  cursor: pointer;
}

/* SOUND BUTTON — subtle, refined, doesn't compete with the video.
   Smaller, more transparent than v7.0/7.1 */
.wf-cs__sound {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 7px 13px 7px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, opacity 0.4s ease, transform 0.3s ease;
  z-index: 7;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
}
.wf-cs.is-playing .wf-cs__sound,
.wf-cs.is-paused .wf-cs__sound {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
@media (hover: hover) {
  .wf-cs__sound:hover { background: rgba(0, 0, 0, 0.35); }
}

.wf-cs.is-playing:not(.sound-on) .wf-cs__sound {
  animation: wf-cs-pulse 2.4s ease-in-out infinite;
}
@keyframes wf-cs-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(36, 161, 222, 0.5); }
  50% { box-shadow: 0 0 0 10px rgba(36, 161, 222, 0); }
}

.wf-cs__sound-label {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.wf-cs__sound-toggle {
  position: relative;
  width: 26px;
  height: 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  transition: background 0.25s ease;
}
.wf-cs__sound-toggle::after {
  content: "";
  position: absolute;
  top: 2px; left: 2px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wf-cs.sound-on .wf-cs__sound-toggle { background: var(--wf-blue); }
.wf-cs.sound-on .wf-cs__sound-toggle::after { transform: translateX(11px); }

.wf-cs__bottom {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 14px 24px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 6;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  pointer-events: none;
}
.wf-cs.is-playing .wf-cs__bottom,
.wf-cs.is-paused .wf-cs__bottom { pointer-events: auto; }
@media (hover: hover) {
  .wf-cs.is-playing:hover .wf-cs__bottom {
    opacity: 1;
    transform: translateY(0);
  }
}
.wf-cs.is-paused .wf-cs__bottom,
.wf-cs.show-controls .wf-cs__bottom,
.wf-cs.is-scrubbing .wf-cs__bottom {
  opacity: 1;
  transform: translateY(0);
}

.wf-cs__scrubber {
  flex: 1;
  height: 20px;
  background: transparent;
  cursor: pointer;
  position: relative;
  display: flex;
  align-items: center;
  touch-action: none;
}
.wf-cs__scrubber-track {
  position: relative;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  transition: height 0.2s ease;
}
@media (hover: hover) {
  .wf-cs__scrubber:hover .wf-cs__scrubber-track {
    height: 6px;
  }
}
.wf-cs.is-scrubbing .wf-cs__scrubber-track {
  height: 6px;
}
.wf-cs__scrubber-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--wf-blue);
  border-radius: 999px;
  width: 0%;
  transition: width 0.05s linear;
}
.wf-cs.is-scrubbing .wf-cs__scrubber-fill {
  transition: none;
}
.wf-cs__scrubber-thumb {
  position: absolute;
  top: 50%;
  left: 0%;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.2s ease;
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
@media (hover: hover) {
  .wf-cs__scrubber:hover .wf-cs__scrubber-thumb {
    transform: translate(-50%, -50%) scale(1);
  }
}
.wf-cs.is-scrubbing .wf-cs__scrubber-thumb {
  transition: none;
  transform: translate(-50%, -50%) scale(1.3);
}

.wf-cs__time {
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  min-width: 84px;
  text-align: center;
  opacity: 0.85;
  text-shadow: 0 1px 3px rgba(0,0,0,0.6);
}

.wf-cs__btn {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 8px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}
@media (hover: hover) {
  .wf-cs__btn:hover {
    background: rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
  }
}
.wf-cs__btn svg {
  width: 22px;
  height: 22px;
  fill: #fff;
  display: block;
}

.wf-cs__btn .icon-pause { display: none; }
.wf-cs.is-playing .wf-cs__playpause .icon-play { display: none; }
.wf-cs.is-playing .wf-cs__playpause .icon-pause { display: block; }

@media (max-width: 600px) {
  .wf-cs__big-play { width: 64px; height: 64px; }
  .wf-cs__big-play::after { border-width: 10px 0 10px 16px; margin-left: 4px; }
  .wf-cs__spinner { width: 32px; height: 32px; }
  .wf-cs__sound {
    top: 14px; left: 14px;
    padding: 6px 11px 6px 10px;
    gap: 8px;
  }
  .wf-cs__sound-label { font-size: 10px; }
  .wf-cs__sound-toggle { width: 22px; height: 13px; }
  .wf-cs__sound-toggle::after { width: 9px; height: 9px; }
  .wf-cs.sound-on .wf-cs__sound-toggle::after { transform: translateX(9px); }
  .wf-cs__bottom { padding: 10px 16px 14px; gap: 10px; }
  .wf-cs__time { min-width: 70px; font-size: 11px; }
  .wf-cs__btn svg { width: 20px; height: 20px; }
  .wf-cs__scrubber { height: 28px; }
}/* ==========================================================================
   WF Logo with hover spin — smooth, with subtle axis tilt
   Drop-in replacement for Salient's PNG logo
   ========================================================================== */

/* Hide the existing PNG logo images that Salient outputs */
#header-outer #logo img,
#header-outer .starting-logo,
#header-outer .dark-version,
#header-outer .mobile-logo {
  opacity: 0 !important;
  visibility: hidden !important;
}

/* Make the logo container a positioning context with 3D perspective */
#header-outer #logo,
#header-outer .brand_container {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  perspective: 1000px;
}

/* The injected SVG sits on top of the (now invisible) PNG */
.wf-logo-svg {
  position: absolute;
  top: 50%;
  left: 0;
  width: auto;
  height: 40px;
  color: #3BBFFF;
  transform: translate3d(0, -50%, 0);
  transform-style: preserve-3d;
  cursor: pointer;
  pointer-events: auto;
}

/* Spin once on hover — Y-axis flip with a subtle tilt at the midpoint */
#header-outer #logo:hover .wf-logo-svg,
#header-outer .brand_container:hover .wf-logo-svg {
  animation: wf-spin 1s ease-out;
  will-change: transform;
}

@keyframes wf-spin {
  0%   { transform: translate3d(0, -50%, 0) rotateY(0deg)   rotateZ(0deg); }
  50%  { transform: translate3d(0, -50%, 0) rotateY(180deg) rotateZ(5deg); }
  100% { transform: translate3d(0, -50%, 0) rotateY(360deg) rotateZ(0deg); }
}

/* Slightly smaller on mobile */
@media (max-width: 768px) {
  .wf-logo-svg { height: 32px; }
}
/* wf-awards.css v1.1 — twinkling awards constellation
   Namespaced so it can't collide with Salient or WPBakery classes.
   v1.1: stage background removed, sits transparently on the page. */

.wf-awards-stage {
  position: relative;
  width: 100%;
  max-width: 1300px;
  margin: 0 auto;
  aspect-ratio: 1200 / 900;
  overflow: hidden;
}

.wf-awards-logo {
  position: absolute;
  opacity: var(--min, 0.25);
  animation: wf-awards-twinkle var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  will-change: opacity, filter;
}

.wf-awards-logo img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
}

@keyframes wf-awards-twinkle {
  0%, 100% {
    opacity: var(--min, 0.25);
    filter: drop-shadow(0 0 0 rgba(255,255,255,0));
  }
  50% {
    opacity: 1;
    filter: drop-shadow(0 0 16px rgba(200, 220, 255, 0.55));
  }
}
