/**
 * Muvesta Capital — SharpLink-inspired motion & layout polish
 * https://www.sharplink.com/
 */

:root {
  --mv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --mv-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html.mv-lenis body.wp-muvesta {
  height: auto;
}

/* ── Hero: full viewport cinematic ── */
body.wp-muvesta .wp-hero.wp-hero--muvesta {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  padding: clamp(6rem, 12vw, 8rem) 0 clamp(3rem, 6vw, 4rem);
  overflow: hidden;
  isolation: isolate;
}

body.wp-muvesta .mv-hero-layers {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body.wp-muvesta .mv-hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 58% 35%, rgba(200, 154, 61, 0.14), transparent 68%),
    radial-gradient(ellipse 40% 30% at 10% 80%, rgba(200, 154, 61, 0.06), transparent 60%);
  opacity: 0;
  transition: opacity 1.4s var(--mv-ease);
}

body.wp-muvesta .mv-hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

body.wp-muvesta .wp-hero.wp-hero--muvesta.is-ready .mv-hero-glow {
  opacity: 1;
}

body.wp-muvesta .wp-hero.wp-hero--muvesta .wp-hero-grid {
  position: relative;
  z-index: 1;
  width: 100%;
}

body.wp-muvesta .wp-hero--muvesta .wp-hero-brand {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s var(--mv-ease) 0.15s, transform 0.9s var(--mv-ease) 0.15s;
}

body.wp-muvesta .wp-hero--muvesta .wp-eyebrow {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.85s var(--mv-ease) 0.1s, transform 0.85s var(--mv-ease) 0.1s;
}

body.wp-muvesta .wp-hero--muvesta h1 {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(10px);
  transition: opacity 1.05s var(--mv-ease) 0.28s, transform 1.05s var(--mv-ease) 0.28s, filter 1.05s var(--mv-ease) 0.28s;
}

body.wp-muvesta .wp-hero--muvesta .wp-hero-lead {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.9s var(--mv-ease) 0.45s, transform 0.9s var(--mv-ease) 0.45s;
}

body.wp-muvesta .wp-hero--muvesta .wp-private-line {
  opacity: 0;
  transition: opacity 0.8s var(--mv-ease) 0.55s;
}

body.wp-muvesta .wp-hero--muvesta .wp-hero-actions {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.85s var(--mv-ease) 0.62s, transform 0.85s var(--mv-ease) 0.62s;
}

body.wp-muvesta .wp-hero--muvesta .wp-hero-media {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity 1.1s var(--mv-ease) 0.5s, transform 1.1s var(--mv-ease) 0.5s;
}

body.wp-muvesta .wp-hero.wp-hero--muvesta.is-ready .wp-hero-brand,
body.wp-muvesta .wp-hero.wp-hero--muvesta.is-ready .wp-eyebrow,
body.wp-muvesta .wp-hero.wp-hero--muvesta.is-ready h1,
body.wp-muvesta .wp-hero.wp-hero--muvesta.is-ready .wp-hero-lead,
body.wp-muvesta .wp-hero.wp-hero--muvesta.is-ready .wp-private-line,
body.wp-muvesta .wp-hero.wp-hero--muvesta.is-ready .wp-hero-actions,
body.wp-muvesta .wp-hero.wp-hero--muvesta.is-ready .wp-hero-media {
  opacity: 1;
  transform: none;
  filter: none;
}

body.wp-muvesta .wp-hero--muvesta h1 {
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  max-width: 14ch;
}

/* ── Header scroll shrink ── */
body.wp-muvesta .wp-header {
  transition: padding 0.55s var(--mv-ease), background 0.55s var(--mv-ease), border-color 0.55s var(--mv-ease), box-shadow 0.55s var(--mv-ease);
}

body.wp-muvesta .wp-header.is-scrolled {
  background: rgba(5, 5, 5, 0.92) !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

body.wp-muvesta .wp-header.is-scrolled .wp-header-inner {
  padding: 0.55rem 0;
}

body.wp-muvesta .wp-nav a {
  position: relative;
}

body.wp-muvesta .wp-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.35rem;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--wp-accent), transparent);
  transition: width 0.45s var(--mv-ease);
}

body.wp-muvesta .wp-nav a:hover::after {
  width: 100%;
}

/* ── Reveal system (SharpLink blur-up) ── */
body.wp-muvesta .mv-reveal {
  opacity: 0;
  transform: translateY(32px);
  filter: blur(8px);
  transition: opacity 0.85s var(--mv-ease), transform 0.85s var(--mv-ease), filter 0.85s var(--mv-ease);
}

body.wp-muvesta .mv-reveal.is-in {
  opacity: 1;
  transform: none;
  filter: none;
}

body.wp-muvesta .mv-stagger-item {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
  transition: opacity 0.7s var(--mv-ease), transform 0.7s var(--mv-ease), filter 0.7s var(--mv-ease);
  transition-delay: calc(var(--mv-i, 0) * 0.08s);
}

body.wp-muvesta .mv-stagger.is-in .mv-stagger-item {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ── Section heads: SharpLink scale ── */
body.wp-muvesta .wp-section-head h2,
body.wp-muvesta .wp-section > .wp-shell > h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  line-height: 1.06;
}

body.wp-muvesta .wp-eyebrow {
  border-radius: 0;
  letter-spacing: 0.12em;
}

/* ── Process: vertical numbered stack (SharpLink 01/02/03) ── */
body.wp-muvesta .wp-process-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.wp-muvesta .wp-process-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem 2rem;
  align-items: start;
  border: none !important;
  border-top: 1px solid var(--wp-line) !important;
  border-radius: 0 !important;
  padding: 2rem 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body.wp-muvesta .wp-process-item:not(:first-child) {
  border-left: none !important;
  padding-left: 0 !important;
}

body.wp-muvesta .wp-process-numeral {
  font-family: var(--wp-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  background: none !important;
  border: none !important;
  padding: 0;
  line-height: 1;
  min-width: 2.5ch;
}

body.wp-muvesta .wp-process-item h3 {
  font-family: var(--wp-display);
  font-size: clamp(1.35rem, 2.5vw, 1.85rem);
  font-weight: 500;
}

/* ── Tabbed services stack (SharpLink "The Stack") ── */
body.wp-muvesta .mv-services-stack {
  display: grid;
  grid-template-columns: minmax(180px, 220px) 1fr;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: stretch;
  min-height: 420px;
}

body.wp-muvesta .mv-services-tabs {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  border-right: 1px solid var(--wp-line);
  padding-right: 1.25rem;
}

body.wp-muvesta .mv-services-tab {
  background: none;
  border: none;
  text-align: left;
  padding: 0.85rem 0 0.85rem 0.75rem;
  color: var(--wp-muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  border-left: 2px solid transparent;
  transition: color 0.45s var(--mv-ease), border-color 0.45s var(--mv-ease), transform 0.45s var(--mv-ease);
}

body.wp-muvesta .mv-services-tab.is-active,
body.wp-muvesta .mv-services-tab:hover {
  color: var(--wp-ink);
  border-left-color: var(--wp-accent);
  transform: translateX(4px);
}

body.wp-muvesta .mv-service-panels {
  position: relative;
  min-height: 360px;
}

body.wp-muvesta .mv-service-panel {
  position: absolute;
  inset: 0;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  background: #141210 !important;
  border: 1px solid var(--wp-line);
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px);
  filter: blur(6px);
  transition: opacity 0.55s var(--mv-ease), transform 0.55s var(--mv-ease), filter 0.55s var(--mv-ease), border-color 0.45s var(--mv-ease);
  pointer-events: none;
}

body.wp-muvesta .mv-service-panel.is-active {
  position: relative;
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
  border-color: color-mix(in srgb, var(--wp-accent) 28%, var(--wp-line));
  box-shadow: 0 24px 60px -24px rgba(200, 154, 61, 0.2);
  z-index: 1;
}

body.wp-muvesta .mv-service-panel:not(.is-active) {
  position: absolute;
  inset: 0;
  z-index: 0;
}

body.wp-muvesta .mv-service-panel h3 {
  font-family: var(--wp-display);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  margin: 0 0 1rem;
  max-width: 20ch;
}

body.wp-muvesta .mv-service-panel p {
  color: var(--wp-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 36rem;
  margin: 0 0 1.75rem;
  white-space: pre-line;
}

body.wp-muvesta .mv-service-panel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

body.wp-muvesta .mv-service-chart {
  position: absolute;
  right: 1.5rem;
  bottom: 1.25rem;
  width: 160px;
  height: 64px;
  opacity: 0.35;
  pointer-events: none;
}

body.wp-muvesta .mv-service-chart path {
  fill: none;
  stroke: var(--wp-accent);
  stroke-width: 1.5;
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.4s var(--mv-ease);
}

body.wp-muvesta .mv-service-panel.is-active .mv-service-chart path {
  stroke-dashoffset: 0;
}

/* ── Pinned horizontal scroll (SharpLink productivity band) ── */
body.wp-muvesta .mv-pin-section {
  padding: 0 !important;
  background: #0a0a0a !important;
  border-top: 1px solid var(--wp-line);
}

body.wp-muvesta .mv-pin-sticky {
  position: sticky;
  top: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(5rem, 10vw, 6rem) 0 clamp(2rem, 5vw, 3rem);
}

body.wp-muvesta .mv-pin-head {
  margin-bottom: 2rem;
}

body.wp-muvesta .mv-pin-progress {
  margin-top: 1.5rem;
  height: 2px;
  background: var(--wp-line);
  max-width: 12rem;
  overflow: hidden;
}

body.wp-muvesta .mv-pin-progress-bar {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--wp-accent), #ddb65c);
  transition: width 0.15s linear;
}

body.wp-muvesta .mv-pin-viewport {
  overflow: hidden;
  width: 100%;
  padding-left: max(1.25rem, calc((100% - min(1140px, calc(100% - 2.5rem))) / 2));
  padding-right: 1.25rem;
}

body.wp-muvesta .mv-pin-track {
  display: flex;
  gap: 1.25rem;
  will-change: transform;
  transition: transform 0.1s linear;
}

body.wp-muvesta .mv-pin-card {
  flex: 0 0 min(78vw, 520px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: 1.5rem;
  background: #141210;
  border: 1px solid var(--wp-line);
  min-height: 420px;
}

body.wp-muvesta .mv-pin-num {
  font-family: var(--wp-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--wp-accent);
  line-height: 1;
}

body.wp-muvesta .mv-pin-card h3 {
  font-family: var(--wp-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 500;
  margin: 0 0 0.5rem;
}

body.wp-muvesta .mv-pin-card p {
  margin: 0;
  color: var(--wp-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

body.wp-muvesta .mv-pin-card-media {
  margin-top: auto;
  border-radius: 0;
  overflow: hidden;
  border: 1px solid var(--wp-line);
  aspect-ratio: 16/10;
}

body.wp-muvesta .mv-pin-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--mv-ease);
}

body.wp-muvesta .mv-pin-card:hover .mv-pin-card-media img {
  transform: scale(1.04);
}

body.wp-muvesta.mv-pin-active .mv-pin-section {
  z-index: 2;
}

@media (max-width: 960px) {
  body.wp-muvesta .mv-services-stack {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  body.wp-muvesta .mv-services-tabs {
    flex-direction: row;
    overflow-x: auto;
    border-right: none;
    border-bottom: 1px solid var(--wp-line);
    padding-right: 0;
    padding-bottom: 0.75rem;
    scrollbar-width: thin;
  }

  body.wp-muvesta .mv-services-tab {
    white-space: nowrap;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 0.5rem 0.75rem;
  }

  body.wp-muvesta .mv-services-tab.is-active {
    border-bottom-color: var(--wp-accent);
    transform: none;
  }

  body.wp-muvesta .mv-service-panels {
    min-height: 320px;
  }

  body.wp-muvesta .mv-pin-sticky {
    position: relative;
    min-height: 0;
    padding: clamp(3rem, 8vw, 4rem) 0;
  }

  body.wp-muvesta .mv-pin-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
  }

  body.wp-muvesta .mv-pin-track {
    transform: none !important;
    transition: none;
  }

  body.wp-muvesta .mv-pin-card {
    scroll-snap-align: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.wp-muvesta .mv-service-panel {
    transition: none;
    filter: none;
  }

  body.wp-muvesta .mv-pin-track {
    transform: none !important;
  }
}

/* ── Services: horizontal proposition scroll (non-tabbed fallback) ── */
body.wp-muvesta .wp-services-grid {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.75rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 154, 61, 0.35) transparent;
}

body.wp-muvesta .wp-service {
  flex: 0 0 min(320px, 85vw);
  scroll-snap-align: start;
  border-radius: 0 !important;
}

body.wp-muvesta .wp-service h3 {
  font-family: var(--wp-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Credibility: proposition cards ── */
body.wp-muvesta .wp-cred-row {
  display: flex;
  flex-direction: column;
  gap: 0;
}

body.wp-muvesta .wp-cred-item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  border: none !important;
  border-top: 1px solid var(--wp-line) !important;
  border-radius: 0 !important;
  padding: 2rem 0 !important;
  background: transparent !important;
}

body.wp-muvesta .wp-cred-item:not(:first-child) {
  border-left: none !important;
}

body.wp-muvesta .wp-cred-item::before {
  content: attr(data-mv-label);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--wp-accent);
}

body.wp-muvesta .wp-cred-item h3 {
  font-family: var(--wp-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ── Stats counter row ── */
body.wp-muvesta .mv-stats-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 2rem;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-block: 1px solid var(--wp-line);
  margin-block: 1rem;
}

body.wp-muvesta .mv-stat strong {
  display: block;
  font-family: var(--wp-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  color: var(--wp-accent);
  margin-bottom: 0.35rem;
  font-variant-numeric: tabular-nums;
}

body.wp-muvesta .mv-stat span {
  color: var(--wp-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── FAQ: numbered SharpLink style ── */
body.wp-muvesta .wp-faq {
  counter-reset: mv-faq;
}

body.wp-muvesta .wp-faq details {
  counter-increment: mv-faq;
  border-radius: 0 !important;
  border-inline: none !important;
  border-block: 1px solid var(--wp-line) !important;
  background: transparent !important;
}

body.wp-muvesta .wp-faq summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.35rem 0 !important;
  font-family: var(--wp-display);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

body.wp-muvesta .wp-faq summary::before {
  content: counter(mv-faq, decimal-leading-zero);
  font-family: var(--wp-display);
  font-size: 1.25rem;
  color: var(--wp-accent);
  opacity: 0.85;
}

body.wp-muvesta .wp-faq details[open] summary {
  color: var(--wp-accent);
}

body.wp-muvesta .wp-faq details p {
  padding: 0 0 1.35rem 3.25rem;
  max-width: 52rem;
}

/* ── CTA band pulse glow ── */
body.wp-muvesta .wp-cta-band {
  position: relative;
  overflow: hidden;
}

body.wp-muvesta .wp-cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(200, 154, 61, 0.1), transparent 70%);
  animation: mvCtaPulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes mvCtaPulse {
  from { opacity: 0.45; }
  to { opacity: 1; }
}

body.wp-muvesta .wp-cta-inner {
  position: relative;
  z-index: 1;
}

/* ── Buttons: arrow slide ── */
body.wp-muvesta .wp-btn .wp-icon,
body.wp-muvesta .wp-link .wp-icon {
  transition: transform 0.45s var(--mv-ease);
}

body.wp-muvesta .wp-btn:hover .wp-icon,
body.wp-muvesta .wp-link:hover .wp-icon {
  transform: translateX(4px);
}

body.wp-muvesta .wp-btn {
  transition: transform 0.45s var(--mv-ease), box-shadow 0.45s var(--mv-ease), background 0.45s var(--mv-ease), border-color 0.45s var(--mv-ease);
}

body.wp-muvesta .wp-btn-gold:hover {
  transform: translateY(-2px);
}

/* ── Blog featured parallax hint ── */
body.wp-muvesta .wp-blog-featured {
  overflow: hidden;
}

body.wp-muvesta .wp-blog-featured-bg {
  transition: transform 0.8s var(--mv-ease);
}

body.wp-muvesta .wp-blog-featured:hover .wp-blog-featured-bg {
  transform: scale(1.04);
}

/* ── Testimonials spotlight ── */
body.wp-muvesta #testimonials .wp-quote-grid {
  max-width: 42rem;
  margin-inline: auto;
}

body.wp-muvesta #testimonials .wp-quote {
  border-radius: 0 !important;
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--wp-line) !important;
  padding: 2rem 0 !important;
  text-align: center;
}

body.wp-muvesta #testimonials .wp-quote-text {
  font-family: var(--wp-display);
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.45;
}

/* ── Back to top ── */
body.wp-muvesta .mv-back-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 850;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: 1px solid var(--wp-line-strong);
  background: rgba(8, 8, 8, 0.88);
  color: var(--wp-ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.45s var(--mv-ease), transform 0.45s var(--mv-ease), visibility 0.45s, border-color 0.35s, color 0.35s;
  backdrop-filter: blur(12px);
}

body.wp-muvesta .mv-back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

body.wp-muvesta .mv-back-top:hover {
  border-color: var(--wp-accent);
  color: var(--wp-accent);
}

/* ── Page transition overlay ── */
body.wp-muvesta .mv-page-transition {
  position: fixed;
  inset: 0;
  z-index: 9998;
  background: #000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.55s var(--mv-ease);
}

body.wp-muvesta .mv-page-transition.is-active {
  opacity: 1;
  pointer-events: auto;
}

body.wp-muvesta.mv-page-leaving {
  opacity: 0.98;
}

@media (prefers-reduced-motion: reduce) {
  body.wp-muvesta .mv-reveal,
  body.wp-muvesta .mv-stagger-item,
  body.wp-muvesta .wp-hero--muvesta .wp-hero-brand,
  body.wp-muvesta .wp-hero--muvesta .wp-eyebrow,
  body.wp-muvesta .wp-hero--muvesta h1,
  body.wp-muvesta .wp-hero--muvesta .wp-hero-lead,
  body.wp-muvesta .wp-hero--muvesta .wp-private-line,
  body.wp-muvesta .wp-hero--muvesta .wp-hero-actions,
  body.wp-muvesta .wp-hero--muvesta .wp-hero-media,
  body.wp-muvesta .wp-hero.wp-hero--muvesta.is-ready .mv-hero-glow {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  body.wp-muvesta .wp-cta-band::before {
    animation: none;
  }
}
