/* ==========================================================================
   VC CINEMATIC HEADERS
   Gold sheen headlines + cinematic tick dividers.
   Shared by the homepage (homepage-bundle.css) and the services page
   (index.css) — keep this file free of dependencies on either bundle.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Header stage — wrapper around an SEO heading + divider + subtitle
   -------------------------------------------------------------------------- */
.vc-header-stage {
  position: relative;
}

/* --------------------------------------------------------------------------
   2. Gold sheen headline
   The bright champagne band sits at the middle of an oversized gradient;
   --vc-mx (set by vc-cinematic-headers.js on pointermove) slides it.
   -------------------------------------------------------------------------- */
.vc-sheen-title .vc-sheen-text {
  background-image: linear-gradient(100deg,
      #946918 0%,
      #d4a51d 32%,
      #f6d166 46%,
      #ffe9ae 50%,
      #f6d166 54%,
      #d4a51d 68%,
      #946918 100%);
  background-size: 220% 100%;
  background-position: var(--vc-mx, 50%) 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 10px 24px rgba(212, 165, 29, 0.18));
  transition: background-position 360ms ease-out;
}

@supports not ((background-clip: text) or (-webkit-background-clip: text)) {
  .vc-sheen-title .vc-sheen-text {
    background: none;
    color: #f2bd32;
    -webkit-text-fill-color: currentColor;
  }
}

/* Touch / no-hover devices: slow ambient pan once the header is in view */
@media (hover: none) {
  .vc-header-stage.vc-inview .vc-sheen-text {
    animation: vcSheenPan 7s ease-in-out infinite alternate;
  }
}

@keyframes vcSheenPan {
  from { background-position: 12% 0; }
  to   { background-position: 88% 0; }
}

/* --------------------------------------------------------------------------
   3. Cinematic tick divider — replaces .with-line
   Two gold lines draw outward from a rotated gem; film-sprocket ticks
   fade in along each line.
   -------------------------------------------------------------------------- */
.vc-cine-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin: 1.15rem auto 0;
}

.vc-cine-line {
  position: relative;
  width: clamp(56px, 12vw, 140px);
  height: 2px;
  background: linear-gradient(90deg, rgba(246, 209, 102, 0), rgba(246, 209, 102, 0.9));
  transform-origin: right center;
  transition: transform 800ms cubic-bezier(0.16, 1, 0.3, 1) 150ms;
}

.vc-cine-line:last-child {
  background: linear-gradient(90deg, rgba(246, 209, 102, 0.9), rgba(246, 209, 102, 0));
  transform-origin: left center;
}

/* film-sprocket ticks */
.vc-cine-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -7px;
  height: 5px;
  background: repeating-linear-gradient(90deg,
      rgba(246, 209, 102, 0.55) 0 1px,
      transparent 1px 14px);
  opacity: 0.7;
  transition: opacity 500ms ease 550ms;
}

.vc-cine-gem {
  position: relative;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  background: linear-gradient(135deg, #ffe9ae, #d4a51d 60%, #946918);
  box-shadow: 0 0 12px rgba(246, 209, 102, 0.55);
  transform: rotate(45deg) scale(1);
  transition: transform 600ms cubic-bezier(0.16, 1, 0.3, 1) 250ms, opacity 300ms ease 250ms;
}

.vc-cine-gem::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(246, 209, 102, 0.28);
  pointer-events: none;
}

/* Hidden start state — only when JS is alive, so no-JS renders fully drawn */
.vc-cine-js .vc-header-stage:not(.vc-inview) .vc-cine-line {
  transform: scaleX(0);
}

.vc-cine-js .vc-header-stage:not(.vc-inview) .vc-cine-line::after {
  opacity: 0;
}

.vc-cine-js .vc-header-stage:not(.vc-inview) .vc-cine-gem {
  transform: rotate(0deg) scale(0);
  opacity: 0;
}

/* --------------------------------------------------------------------------
   4. Homepage clients section — Elfsight widget frame + video fix
   The Elfsight logo showcase injects a Vimeo background iframe wrapped in
   [class*="BackgroundVideo__Container"] with an inline transform of
   scale(4) — a zoomed, off-center crop. !important beats the inline style.
   Scoped to #homepage-clients so the reviews widget elsewhere is untouched.
   -------------------------------------------------------------------------- */
#homepage-clients [class*="BackgroundVideo__Container"] {
  transform: translate3d(0, 0, 0) scale(1.15) !important;
}

#homepage-clients .vc-widget-frame {
  position: relative;
  max-width: 960px;
  margin: 2.4rem auto 0;
  border-radius: 18px;
  overflow: hidden;
  background: #060606;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

/* gradient border ring */
#homepage-clients .vc-widget-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 18px;
  padding: 1px;
  background: linear-gradient(135deg,
      rgba(246, 209, 102, 0.65),
      rgba(148, 105, 24, 0.2) 40%,
      rgba(246, 209, 102, 0.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 2;
}

/* --------------------------------------------------------------------------
   5. Homepage services funnel CTA
   -------------------------------------------------------------------------- */
.vc-services-cta {
  margin-top: 3rem;
}

.vc-services-cta-note {
  font-family: "Montserrat", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
  margin-bottom: 1.05rem;
}

.vc-services-cta-btn {
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(212, 165, 29, 0.28);
}

.vc-services-cta-btn::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -80%;
  width: 55%;
  background: linear-gradient(105deg, transparent, rgba(255, 244, 214, 0.5), transparent);
  transform: skewX(-18deg);
  transition: left 650ms ease;
  pointer-events: none;
}

.vc-services-cta-btn:hover::after,
.vc-services-cta-btn:focus-visible::after {
  left: 130%;
}

/* scroll cue variant after the clients section */
.vc-cue-services {
  margin: 1.6rem auto 0.6rem;
}

/* bottom CTA section fits three buttons */
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* --------------------------------------------------------------------------
   6. Services page hero — kicker, ghost word, word-stagger reveal
   Each h1 word carries its own .vc-sheen-text so transforms never sit on
   a background-clip:text ancestor (Safari).
   -------------------------------------------------------------------------- */
.page.services .vc-hero-stage {
  position: relative;
}

.page.services .vc-hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: "Montserrat", sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f2bd32;
  margin-bottom: 1.15rem;
}

.page.services .vc-hero-kicker::before,
.page.services .vc-hero-kicker::after {
  content: "";
  width: 30px;
  height: 1px;
  flex: 0 0 auto;
}

.page.services .vc-hero-kicker::before {
  background: linear-gradient(90deg, rgba(246, 209, 102, 0), rgba(246, 209, 102, 0.8));
}

.page.services .vc-hero-kicker::after {
  background: linear-gradient(90deg, rgba(246, 209, 102, 0.8), rgba(246, 209, 102, 0));
}

/* Centered without transforms — responsive.css forces
   `.hero-content > * { transform: none !important }` on mobile. */
.page.services .vc-hero-ghost {
  position: absolute;
  left: 0;
  right: 0;
  top: 38%;
  margin-top: -0.5em;
  text-align: center;
  font-family: "Integral CF", "Montserrat", sans-serif;
  font-size: clamp(4.6rem, 15vw, 10.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.04em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 209, 102, 0.13);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.page.services .vc-hero-stage .hero-title {
  position: relative;
  z-index: 1;
  font-family: "Integral CF", var(--font-display, "Montserrat"), sans-serif;
}

.page.services .vc-hero-stage .hero-subtitle,
.page.services .vc-hero-stage .vc-cine-divider {
  position: relative;
  z-index: 1;
}

.page.services .vc-line {
  display: inline-block;
  transition: transform 700ms cubic-bezier(0.16, 1, 0.3, 1), opacity 500ms ease;
}

.page.services .vc-line:nth-child(2) {
  transition-delay: 90ms;
}

.page.services .vc-line:nth-child(3) {
  transition-delay: 180ms;
}

.vc-cine-js .page.services .vc-hero-stage:not(.vc-inview) .vc-line {
  opacity: 0;
  transform: translateY(0.55em);
}

.page.services .vc-hero-stage .vc-cine-divider {
  margin-top: 1.3rem;
  margin-bottom: 1.3rem;
}

/* --------------------------------------------------------------------------
   7. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .vc-cine-divider {
    gap: 0.65rem;
  }

  .vc-cine-line {
    width: clamp(44px, 18vw, 90px);
  }

  #homepage-clients .vc-widget-frame {
    margin-top: 1.8rem;
    border-radius: 14px;
  }

  #homepage-clients .vc-widget-frame::before {
    border-radius: 14px;
  }

  .page.services .vc-hero-ghost {
    top: 34%;
  }
}

/* --------------------------------------------------------------------------
   8. Reduced motion — everything rendered in its final state, no movement
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .vc-sheen-title .vc-sheen-text {
    transition: none;
    animation: none !important;
  }

  .vc-cine-line,
  .vc-cine-line::after,
  .vc-cine-gem,
  .page.services .vc-line,
  .vc-services-cta-btn::after {
    transition: none !important;
    animation: none !important;
  }

  .vc-cine-js .vc-header-stage:not(.vc-inview) .vc-cine-line {
    transform: scaleX(1);
  }

  .vc-cine-js .vc-header-stage:not(.vc-inview) .vc-cine-line::after {
    opacity: 0.7;
  }

  .vc-cine-js .vc-header-stage:not(.vc-inview) .vc-cine-gem {
    transform: rotate(45deg) scale(1);
    opacity: 1;
  }

  .vc-cine-js .page.services .vc-hero-stage:not(.vc-inview) .vc-line {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   ROUND 2 — service-card entrances, brand-logo takeover, cream accents
   ========================================================================== */

/* --------------------------------------------------------------------------
   9. Service cards — three distinct cinematic entrances
   Keyed off the existing .stagger-animation / .visible mechanism (main.js).
   Hidden states gated by .vc-cine-js; box-shadow flares avoid the card's
   existing ::before/::after hover effects and the mobile icon transform traps.
   -------------------------------------------------------------------------- */
.vc-cine-js #homepage-services .stagger-animation > .service-card {
  transition:
    opacity 850ms cubic-bezier(0.16, 1, 0.3, 1),
    transform 850ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.vc-cine-js #homepage-services .stagger-animation:not(.visible) > .service-card:nth-child(1) {
  opacity: 0;
  transform: translateX(-56px) rotate(-3deg);
}

.vc-cine-js #homepage-services .stagger-animation:not(.visible) > .service-card:nth-child(2) {
  opacity: 0;
  transform: translateY(64px) scale(0.92);
}

.vc-cine-js #homepage-services .stagger-animation:not(.visible) > .service-card:nth-child(3) {
  opacity: 0;
  transform: translateX(56px) rotate(3deg);
}

#homepage-services .stagger-animation.visible > .service-card {
  opacity: 1;
  transform: none;
}

#homepage-services .stagger-animation.visible > .service-card:nth-child(1) {
  transition-delay: 0ms;
  animation: vcCardScan 1.15s ease 350ms 1;
}

#homepage-services .stagger-animation.visible > .service-card:nth-child(2) {
  transition-delay: 120ms;
  animation: vcCardFlash 1.05s ease 470ms 1;
}

#homepage-services .stagger-animation.visible > .service-card:nth-child(3) {
  transition-delay: 240ms;
  animation: vcCardWash 1.25s ease 590ms 1;
}

/* card 1 — video: a gold edge light sweeps the frame */
@keyframes vcCardScan {
  0%   { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(246, 209, 102, 0); }
  35%  { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 0 2px rgba(246, 209, 102, 0.5), 0 0 64px rgba(246, 209, 102, 0.26); }
  100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), 0 0 0 0 rgba(246, 209, 102, 0); }
}

/* card 2 — photography: a quick cream camera-flash bloom from inside */
@keyframes vcCardFlash {
  0%   { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 0 0 rgba(255, 253, 244, 0); }
  22%  { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 0 110px rgba(255, 253, 244, 0.4); }
  100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 0 0 rgba(255, 253, 244, 0); }
}

/* card 3 — web design: a warm wash pours in from the corner */
@keyframes vcCardWash {
  0%   { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 0 0 rgba(246, 209, 102, 0); }
  40%  { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset -60px -60px 120px rgba(246, 209, 102, 0.22), inset 60px 60px 120px rgba(255, 248, 230, 0.12); }
  100% { box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15), inset 0 0 0 rgba(246, 209, 102, 0); }
}

/* idle: soft halo breathing on the card icons (filter — not transform-trapped) */
#homepage-services .service-card .icon-primary i {
  animation: vcIconHalo 5.5s ease-in-out infinite alternate;
}

@keyframes vcIconHalo {
  from { filter: drop-shadow(0 0 4px rgba(246, 209, 102, 0.15)); }
  to   { filter: drop-shadow(0 0 14px rgba(246, 209, 102, 0.5)); }
}

/* desktop hover: cream edge light on top of the existing lift */
@media (hover: hover) {
  #homepage-services .service-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3), 0 0 0 1px var(--cream-faint, rgba(255, 248, 230, 0.16)), 0 0 38px rgba(246, 209, 102, 0.14);
  }
}

/* --------------------------------------------------------------------------
   10. Brand strip — dramatic logo takeover on first scroll
   Logos start huge (covering the viewport), blurred and bright, then settle
   into their strip cells with stagger behind a fading dark-glass veil.
   -------------------------------------------------------------------------- */
.vc-brand-strip .vc-brand-logo img {
  transition:
    transform 950ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 700ms ease,
    filter 950ms cubic-bezier(0.16, 1, 0.3, 1);
}

.vc-brand-strip .vc-brand-logo:nth-child(3) img { transition-delay: 90ms; }
.vc-brand-strip .vc-brand-logo:nth-child(4) img { transition-delay: 180ms; }
.vc-brand-strip .vc-brand-logo:nth-child(5) img { transition-delay: 270ms; }

.vc-cine-js .vc-brand-strip:not(.vc-inview) .vc-brand-logo img {
  transform: scale(6) translateY(6vh);
  opacity: 0;
  filter: blur(10px) invert(1) grayscale(1) brightness(1.55) contrast(1.08);
}

/* heading + review pill arrive after the logos land */
.vc-brand-strip .vc-brand-heading,
.vc-brand-strip .vc-brand-review {
  transition: opacity 600ms ease 500ms, transform 600ms cubic-bezier(0.16, 1, 0.3, 1) 500ms;
}

.vc-cine-js .vc-brand-strip:not(.vc-inview) .vc-brand-heading,
.vc-cine-js .vc-brand-strip:not(.vc-inview) .vc-brand-review {
  opacity: 0;
  transform: translateY(10px);
}

/* dark-glass veil behind the takeover */
.vc-brand-strip::after {
  content: '';
  position: absolute;
  inset: -60vh -2rem;
  background: rgba(18, 15, 8, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 650ms ease 250ms;
  z-index: -1;
}

.vc-cine-js .vc-brand-strip:not(.vc-inview)::after {
  opacity: 1;
  transition: none;
}

/* let the oversized logos paint outside their cells during the entrance */
.vc-brand-strip,
.vc-brand-strip > * {
  overflow: visible;
}

/* --------------------------------------------------------------------------
   11. Cream accent — wayfinding + divider details
   -------------------------------------------------------------------------- */
.vc-cine-gem {
  background: linear-gradient(135deg, var(--cream-bright, #FFFDF4), #f6d166 45%, #d4a51d 75%, #946918);
}

.vc-cine-gem::after {
  border-color: var(--cream-faint, rgba(255, 248, 230, 0.16));
}

.vc-services-cta-note {
  color: var(--cream-soft, rgba(255, 248, 230, 0.8));
}

#homepage-clients .vc-widget-frame::before {
  background: linear-gradient(135deg,
      var(--cream-soft, rgba(255, 248, 230, 0.8)),
      rgba(148, 105, 24, 0.2) 40%,
      rgba(246, 209, 102, 0.5));
}

/* section hairlines pick up a cream core */
.content-section + .content-section::before,
.hero-section + .content-section::before,
.process-section + .content-section::before {
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(212, 175, 55, 0.14) 25%,
      var(--cream-faint, rgba(255, 248, 230, 0.16)) 50%,
      rgba(212, 175, 55, 0.14) 75%,
      transparent 100%);
}

/* --------------------------------------------------------------------------
   12. Homepage vertical rhythm
   -------------------------------------------------------------------------- */
.home-page #homepage-clients,
.home-page #homepage-services {
  padding-top: clamp(3.25rem, 6vw, 5rem);
  padding-bottom: clamp(3.25rem, 6vw, 5rem);
}

.vc-header-stage .section-subtitle.centered {
  margin-top: 1.4rem;
}

/* --------------------------------------------------------------------------
   13. Reduced motion — round 2
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .vc-cine-js #homepage-services .stagger-animation > .service-card,
  .vc-brand-strip .vc-brand-logo img,
  .vc-brand-strip .vc-brand-heading,
  .vc-brand-strip .vc-brand-review,
  .vc-brand-strip::after {
    transition: none !important;
    animation: none !important;
  }

  #homepage-services .stagger-animation.visible > .service-card,
  #homepage-services .service-card .icon-primary i {
    animation: none !important;
  }

  .vc-cine-js .vc-brand-strip:not(.vc-inview) .vc-brand-logo img {
    transform: none;
    opacity: 0.9;
    filter: invert(1) grayscale(1) brightness(1.55) contrast(1.08);
  }

  .vc-cine-js .vc-brand-strip:not(.vc-inview) .vc-brand-heading,
  .vc-cine-js .vc-brand-strip:not(.vc-inview) .vc-brand-review {
    opacity: 1;
    transform: none;
  }

  .vc-cine-js .vc-brand-strip:not(.vc-inview)::after {
    opacity: 0;
  }
}
