/* Animations */

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fade-in-up 0.75s ease-out both;
}

@keyframes pop-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }
}

.pulse-hover:hover,
.pulse-hover:focus-visible {
  animation: pulse 1.2s ease-in-out both;
}

@keyframes focus-glow {
  from {
    box-shadow: 0 0 0 0 rgba(54, 207, 201, 0.45);
  }

  to {
    box-shadow: 0 0 0 18px rgba(54, 207, 201, 0);
  }
}

/* ============ Hero on-load reveal ============ */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow,
.hero h1,
.hero .hero-text,
.hero .hero-actions,
.hero .hero-card {
  opacity: 0;
  animation: hero-rise 0.9s cubic-bezier(.22,.9,.28,1) forwards;
}

.hero .eyebrow      { animation-delay: 0.10s; }
.hero h1            { animation-delay: 0.25s; }
.hero .hero-text    { animation-delay: 0.45s; }
.hero .hero-actions { animation-delay: 0.60s; }
.hero .hero-card:nth-child(1) { animation-delay: 0.75s; }
.hero .hero-card:nth-child(2) { animation-delay: 0.90s; }
.hero .hero-card:nth-child(3) { animation-delay: 1.05s; }
.hero .hero-card:nth-child(4) { animation-delay: 1.20s; }

/* Floating hero shapes */
@keyframes float-y {
  0%,100% { transform: translate3d(0,0,0); }
  50%     { transform: translate3d(0,-18px,0); }
}
@keyframes float-xy {
  0%,100% { transform: translate3d(0,0,0); }
  50%     { transform: translate3d(12px,-14px,0); }
}
.hero .shape-circle { animation: float-y 7s ease-in-out infinite; }
.hero .shape-ring   { animation: float-xy 9s ease-in-out infinite; }
.hero .shape-soft   { animation: float-y 11s ease-in-out infinite reverse; }

/* Hero CTA gentle pulse */
@keyframes cta-glow {
  0%,100% { box-shadow: 0 8px 24px rgba(13,92,99,0.18); }
  50%     { box-shadow: 0 12px 34px rgba(54,207,201,0.45); }
}
.hero .cta-button {
  animation: cta-glow 2.6s ease-in-out infinite;
  animation-delay: 1.5s;
}
.hero .cta-button:hover {
  transform: translateY(-2px);
  transition: transform 0.25s ease;
}

/* ============ Stats: card + circular ring + pulse on completion ============ */
.v2-stats-strip {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 1rem !important;
  background: transparent !important;
  border: none !important;
  overflow: visible !important;
}
@media (max-width: 900px) {
  .v2-stats-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 480px) {
  .v2-stats-strip { grid-template-columns: 1fr !important; }
}

.v2-stats-strip li {
  position: relative;
  padding: 1.5rem 1rem 1.5rem !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid rgba(13, 92, 99, 0.08) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18) !important;
  text-align: center !important;
  overflow: hidden !important;
  display: block !important;
  transition:
    transform 0.4s cubic-bezier(.22,.9,.28,1),
    box-shadow 0.4s ease,
    border-color 0.4s ease;
}
.v2-stats-strip li::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from -90deg, #36cfc9, #0d5c63, rgba(13,92,99,0) 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transform: rotate(-90deg);
  transition: opacity 0.3s ease;
}
.v2-stats-strip li.scroll-animate.visible::before {
  opacity: 1;
  animation: ring-draw 1.6s cubic-bezier(.22,.9,.28,1) forwards;
}
@keyframes ring-draw {
  from { transform: rotate(-90deg); }
  to   { transform: rotate(270deg); }
}

.v2-stats-strip li:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 44px rgba(13, 92, 99, 0.18);
  border-color: rgba(54, 207, 201, 0.35);
}

.v2-stats-strip .scroll-animate { transition-delay: 0s; }
.v2-stats-strip li:nth-child(1).scroll-animate { transition-delay: 0.05s; }
.v2-stats-strip li:nth-child(2).scroll-animate { transition-delay: 0.15s; }
.v2-stats-strip li:nth-child(3).scroll-animate { transition-delay: 0.25s; }
.v2-stats-strip li:nth-child(4).scroll-animate { transition-delay: 0.35s; }
.v2-stats-strip li:nth-child(5).scroll-animate { transition-delay: 0.45s; }

.v2-stat-num {
  position: relative;
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  color: #0d5c63;
  background: linear-gradient(135deg, #0d5c63, #36cfc9);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.v2-stat-lbl {
  display: block !important;
  color: rgba(23, 34, 43, 0.7) !important;
  margin-top: 0.5rem !important;
  transition: color 0.3s ease;
}
.v2-stats-strip li:hover .v2-stat-lbl { color: #0d5c63 !important; }

/* Pulse when count completes (~1.4s duration) */
@keyframes stat-pulse {
  0%   { transform: scale(1); filter: drop-shadow(0 0 0 rgba(54,207,201,0)); }
  40%  { transform: scale(1.18); filter: drop-shadow(0 0 12px rgba(54,207,201,0.7)); }
  100% { transform: scale(1); filter: drop-shadow(0 0 0 rgba(54,207,201,0)); }
}
.v2-stats-strip li.scroll-animate.visible .v2-stat-num {
  animation: stat-pulse 0.9s ease-out 1.4s both;
}

/* Ring pulse on li completion */
@keyframes ring-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(54,207,201,0.5), 0 8px 24px rgba(0,0,0,0.18); }
  70%  { box-shadow: 0 0 0 16px rgba(54,207,201,0), 0 8px 24px rgba(0,0,0,0.18); }
  100% { box-shadow: 0 0 0 0 rgba(54,207,201,0), 0 8px 24px rgba(0,0,0,0.18); }
}
.v2-stats-strip li.scroll-animate.visible {
  animation: ring-pulse 1.4s ease-out 1.5s both;
}

/* Underline retained but under stat card */
.v2-stat-num::after {
  content: '';
  position: absolute;
  left: 50%; bottom: -8px;
  transform: translateX(-50%);
  height: 3px; width: 0;
  background: linear-gradient(90deg, #0d5c63, #36cfc9);
  border-radius: 2px;
  transition: width 0.9s ease 1.5s;
}
.scroll-animate.visible .v2-stat-num::after { width: 60%; }

/* ============ Therapy bento: fly in from sides ============ */
@keyframes fly-in-left {
  0%   { opacity: 0; transform: translateX(-140px) scale(0.9); }
  60%  { opacity: 1; transform: translateX(10px) scale(1.02); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes fly-in-right {
  0%   { opacity: 0; transform: translateX(140px) scale(0.9); }
  60%  { opacity: 1; transform: translateX(-10px) scale(1.02); }
  100% { opacity: 1; transform: translateX(0) scale(1); }
}

/* Initial hidden state (before .visible) */
.v2-therapy-bento .v2-t.scroll-animate {
  opacity: 0;
  transform: translateX(-140px) scale(0.9);
  transition: none;
}
.v2-therapy-bento .v2-t.scroll-animate:nth-of-type(even) {
  transform: translateX(140px) scale(0.9);
}

/* When section becomes visible: run fly-in keyframes */
.v2-therapy-bento .v2-t.scroll-animate.visible {
  animation: fly-in-left 0.85s cubic-bezier(.22,.9,.28,1) both;
}
.v2-therapy-bento .v2-t.scroll-animate.visible:nth-of-type(even) {
  animation-name: fly-in-right;
}

/* Pairs arrive together */
.v2-therapy-bento .v2-t.scroll-animate.visible:nth-of-type(1),
.v2-therapy-bento .v2-t.scroll-animate.visible:nth-of-type(2) { animation-delay: 0.05s; }
.v2-therapy-bento .v2-t.scroll-animate.visible:nth-of-type(3),
.v2-therapy-bento .v2-t.scroll-animate.visible:nth-of-type(4) { animation-delay: 0.20s; }
.v2-therapy-bento .v2-t.scroll-animate.visible:nth-of-type(5),
.v2-therapy-bento .v2-t.scroll-animate.visible:nth-of-type(6) { animation-delay: 0.35s; }
.v2-therapy-bento .v2-t.scroll-animate.visible:nth-of-type(7),
.v2-therapy-bento .v2-t.scroll-animate.visible:nth-of-type(8) { animation-delay: 0.50s; }

/* ============ Quality Blueprint step stagger ============ */
.v2-qa-steps li {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.v2-qa-board.visible .v2-qa-steps li { opacity: 1; transform: translateY(0); }
.v2-qa-board.visible .v2-qa-steps li:nth-child(1) { transition-delay: 0.10s; }
.v2-qa-board.visible .v2-qa-steps li:nth-child(2) { transition-delay: 0.25s; }
.v2-qa-board.visible .v2-qa-steps li:nth-child(3) { transition-delay: 0.40s; }
.v2-qa-board.visible .v2-qa-steps li:nth-child(4) { transition-delay: 0.55s; }
.v2-qa-board.visible .v2-qa-steps li:nth-child(5) { transition-delay: 0.70s; }
.v2-qa-board.visible .v2-qa-steps li:nth-child(6) { transition-delay: 0.85s; }

.v2-qa-steps li {
  transition-property: opacity, transform, box-shadow;
}
.v2-qa-steps li:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(16,42,67,0.10);
}

/* Approved stamp bounce-in */
@keyframes stamp-in {
  0%   { opacity: 0; transform: rotate(-25deg) scale(2); }
  60%  { opacity: 1; transform: rotate(-12deg) scale(0.9); }
  100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}
.v2-qa-board.visible .v2-qa-stamp {
  animation: stamp-in 0.9s cubic-bezier(.34,1.56,.64,1) 1.1s both;
}

/* ============ Featured products stagger ============ */
.v2-fp-grid > * {
  animation: fade-in-up 0.7s ease-out both;
}
.v2-fp-grid > *:nth-child(1) { animation-delay: 0.05s; }
.v2-fp-grid > *:nth-child(2) { animation-delay: 0.15s; }
.v2-fp-grid > *:nth-child(3) { animation-delay: 0.25s; }
.v2-fp-grid > *:nth-child(4) { animation-delay: 0.35s; }
.v2-fp-grid > *:nth-child(5) { animation-delay: 0.45s; }
.v2-fp-grid > *:nth-child(6) { animation-delay: 0.55s; }
.v2-fp-grid > *:hover {
  transform: translateY(-6px);
  transition: transform 0.3s ease;
}

/* ============ About section: rich reveal ============ */
/* Copy slides in from left, visual from right */
.v2-about-copy.scroll-animate {
  opacity: 0;
  transform: translateX(-60px);
  transition: opacity 0.9s cubic-bezier(.22,.9,.28,1), transform 0.9s cubic-bezier(.22,.9,.28,1);
}
.v2-about-copy.scroll-animate.visible {
  opacity: 1;
  transform: translateX(0);
}

.v2-about-visual.scroll-animate {
  opacity: 0;
  transform: translateX(60px);
  transition: opacity 0.9s cubic-bezier(.22,.9,.28,1) 0.2s, transform 0.9s cubic-bezier(.22,.9,.28,1) 0.2s;
}
.v2-about-visual.scroll-animate.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Photo mask reveal (clip from left) */
.v2-about-photo {
  overflow: hidden;
  position: relative;
}
.v2-about-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0d5c63, #36cfc9);
  transform-origin: right;
  transition: transform 1.1s cubic-bezier(.7,0,.3,1) 0.35s;
  z-index: 2;
}
.v2-about-visual.visible .v2-about-photo::after {
  transform: scaleX(0);
}
.v2-about-photo img {
  transform: scale(1.15);
  transition: transform 1.6s cubic-bezier(.22,.9,.28,1) 0.35s;
}
.v2-about-visual.visible .v2-about-photo img {
  transform: scale(1);
}

/* Chips slide in */
.v2-about-chip {
  opacity: 0;
  transform: translate(-30px, 10px) rotate(-6deg);
  transition:
    opacity 0.7s ease,
    transform 0.7s cubic-bezier(.34,1.56,.64,1);
}
.v2-about-chip--gmp { transition-delay: 1.1s; }
.v2-about-chip--iso {
  transform: translate(30px, 10px) rotate(6deg);
  transition-delay: 1.3s;
}
.v2-about-visual.visible .v2-about-chip {
  opacity: 1;
  transform: translate(0, 0) rotate(0deg);
}

/* Drop cap animation */
@keyframes drop-cap-in {
  0%   { opacity: 0; transform: translateY(-20px) rotate(-15deg) scale(0.6); }
  60%  { opacity: 1; transform: translateY(4px) rotate(4deg) scale(1.05); }
  100% { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}
.v2-about-copy.scroll-animate.visible .v2-drop {
  display: inline-block;
  animation: drop-cap-in 0.9s cubic-bezier(.34,1.56,.64,1) 0.6s both;
}

/* Signature block fade-up */
.v2-about-signature {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease 0.9s, transform 0.7s ease 0.9s;
}
.v2-about-copy.scroll-animate.visible .v2-about-signature {
  opacity: 1;
  transform: translateY(0);
}

/* Quick stats items pop in one by one */
.v2-about-quick span {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(.34,1.56,.64,1);
}
.v2-about-copy.scroll-animate.visible .v2-about-quick span:nth-child(1) {
  opacity: 1; transform: translateY(0); transition-delay: 1.1s;
}
.v2-about-copy.scroll-animate.visible .v2-about-quick span:nth-child(2) {
  opacity: 1; transform: translateY(0); transition-delay: 1.25s;
}
.v2-about-copy.scroll-animate.visible .v2-about-quick span:nth-child(3) {
  opacity: 1; transform: translateY(0); transition-delay: 1.4s;
}

/* Pillars container itself stays visible; children handle the animation */
.v2-about-pillars.scroll-animate {
  opacity: 1;
  transform: none;
  perspective: 1200px;
  overflow: visible;
  border: none;
  background: transparent;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

/* ============ Pillar flip cards ============ */
.v2-pillar {
  position: relative;
  min-height: 220px;
  border-right: none !important; /* replace divider look with card-shadow */
  padding: 0 !important;
  background: transparent;
  opacity: 0;
  transform: rotateX(-70deg) translateY(30px);
  transform-origin: bottom center;
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(.34,1.35,.64,1);
}
.v2-about-pillars.visible .v2-pillar {
  opacity: 1;
  transform: rotateX(0) translateY(0);
}
.v2-about-pillars.visible .v2-pillar:nth-child(1) { transition-delay: 0.10s; }
.v2-about-pillars.visible .v2-pillar:nth-child(2) { transition-delay: 0.25s; }
.v2-about-pillars.visible .v2-pillar:nth-child(3) { transition-delay: 0.40s; }
.v2-about-pillars.visible .v2-pillar:nth-child(4) { transition-delay: 0.55s; }

.v2-pillar-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  transform-style: preserve-3d;
  transition: transform 0.8s cubic-bezier(.22,.9,.28,1);
}
.v2-pillar:hover .v2-pillar-inner { transform: rotateY(180deg); }

.v2-pillar-face {
  position: absolute;
  inset: 0;
  padding: 1.5rem 1.25rem;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(16, 42, 67, 0.08);
  border: 1px solid rgba(13, 92, 99, 0.08);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  transition: box-shadow 0.4s ease;
}
.v2-pillar:hover .v2-pillar-face { box-shadow: 0 20px 44px rgba(13, 92, 99, 0.18); }

.v2-pillar-front b {
  color: #0d5c63;
  font-family: 'Poppins', sans-serif;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.v2-pillar-front p,
.v2-pillar-back p {
  margin: 0;
  color: #4a5a63;
  font-size: 0.9rem;
  line-height: 1.55;
}

.v2-pillar-back {
  transform: rotateY(180deg);
  background: linear-gradient(140deg, #0d5c63 0%, #36cfc9 100%);
  color: #ffffff;
  border-color: transparent;
}
.v2-pillar-back p { color: rgba(255,255,255,0.92); }
.v2-pillar-highlight {
  display: inline-block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  color: #ffffff;
}
.v2-pillar-back .v2-pillar-icon {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.3);
}

/* Icon badge */
.v2-pillar-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #0d5c63;
  background: rgba(54, 207, 201, 0.12);
  border: 1px solid rgba(13, 92, 99, 0.15);
  transition: transform 0.5s cubic-bezier(.34,1.56,.64,1), background 0.3s ease;
}
.v2-pillar-icon svg { width: 22px; height: 22px; }
.v2-pillar:hover .v2-pillar-front .v2-pillar-icon {
  transform: rotate(360deg) scale(1.08);
  background: rgba(54, 207, 201, 0.22);
}

/* Continuous subtle float when idle */
@keyframes pillar-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-6px); }
}
.v2-about-pillars.visible .v2-pillar:not(:hover) .v2-pillar-icon {
  animation: pillar-float 3.5s ease-in-out infinite;
}
.v2-about-pillars.visible .v2-pillar:nth-child(2) .v2-pillar-icon { animation-delay: 0.4s; }
.v2-about-pillars.visible .v2-pillar:nth-child(3) .v2-pillar-icon { animation-delay: 0.8s; }
.v2-about-pillars.visible .v2-pillar:nth-child(4) .v2-pillar-icon { animation-delay: 1.2s; }

@media (prefers-reduced-motion: reduce) {
  .v2-pillar { opacity: 1 !important; transform: none !important; }
  .v2-pillar-inner, .v2-pillar-icon { animation: none !important; transition: none !important; }
  .v2-pillar:hover .v2-pillar-inner { transform: none; }
}

/* ============================================================
   About page (about.html)
   ============================================================ */

/* Hero copy: slide in from left */
.a-hero-copy.scroll-animate {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.22,.9,.28,1);
}
.a-hero-copy.scroll-animate.visible { opacity: 1; transform: translateX(0); }

.a-hero-copy.scroll-animate.visible h1 { animation: hero-rise 0.9s cubic-bezier(.22,.9,.28,1) 0.25s both; }
.a-hero-copy.scroll-animate.visible > p { animation: hero-rise 0.9s cubic-bezier(.22,.9,.28,1) 0.45s both; }
.a-hero-copy.scroll-animate.visible .a-hero-badges { animation: hero-rise 0.9s cubic-bezier(.22,.9,.28,1) 0.65s both; }

/* Hero visual: slide from right + photo curtain reveal */
.a-hero-visual.scroll-animate {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.9s ease 0.2s, transform 0.9s cubic-bezier(.22,.9,.28,1) 0.2s;
}
.a-hero-visual.scroll-animate.visible { opacity: 1; transform: translateX(0); }

.a-hero-photo { overflow: hidden; position: relative; }
.a-hero-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0d5c63, #36cfc9);
  transform-origin: right;
  transition: transform 1.1s cubic-bezier(.7,0,.3,1) 0.45s;
  z-index: 2;
}
.a-hero-visual.visible .a-hero-photo::after { transform: scaleX(0); }
.a-hero-photo img {
  transform: scale(1.15);
  transition: transform 1.6s cubic-bezier(.22,.9,.28,1) 0.45s;
}
.a-hero-visual.visible .a-hero-photo img { transform: scale(1); }

/* Hero chips fly in */
.a-hero-chip {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.34,1.56,.64,1);
}
.a-hero-chip--gmp {
  transform: translate(-30px, 10px) rotate(-15deg);
  transition-delay: 1.2s;
}
.a-hero-chip--iso {
  transform: translate(30px, 10px) rotate(15deg);
  transition-delay: 1.4s;
}
.a-hero-visual.visible .a-hero-chip--gmp { opacity: 1; transform: translate(0,0) rotate(-5deg); }
.a-hero-visual.visible .a-hero-chip--iso { opacity: 1; transform: translate(0,0) rotate(4deg); }

/* Story copy: fade-up + drop-cap animation */
.a-story-copy.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(.22,.9,.28,1);
}
.a-story-copy.scroll-animate.visible { opacity: 1; transform: translateY(0); }
.a-story-copy.scroll-animate.visible .v2-drop {
  display: inline-block;
  animation: drop-cap-in 0.9s cubic-bezier(.34,1.56,.64,1) 0.5s both;
}
.a-story-copy.scroll-animate.visible .a-story-signature {
  animation: hero-rise 0.8s ease 0.7s both;
}

/* MVV header stays visible; grid triggers card animation */
.a-mvv-head.scroll-animate,
.a-cap-head.scroll-animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(.22,.9,.28,1);
}
.a-mvv-head.scroll-animate.visible,
.a-cap-head.scroll-animate.visible { opacity: 1; transform: translateY(0); }

/* MVV grid: card flip entrance */
.a-mvv-grid.scroll-animate {
  opacity: 1;
  transform: none;
  perspective: 1600px;
}
@keyframes mvv-flip-in {
  0%   { opacity: 0; transform: rotateY(-90deg) translateZ(0); }
  60%  { opacity: 1; transform: rotateY(15deg) translateZ(0); }
  100% { opacity: 1; transform: rotateY(0) translateZ(0); }
}
.a-mvv-card {
  opacity: 0;
  transform-origin: center center;
  transform: rotateY(-90deg);
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
  will-change: transform, opacity;
  transition: box-shadow 0.4s ease, border-color 0.3s ease;
}
.a-mvv-grid.scroll-animate.visible .a-mvv-card {
  animation: mvv-flip-in 0.9s cubic-bezier(.22,.9,.28,1) forwards;
}
.a-mvv-grid.scroll-animate.visible .a-mvv-card:nth-child(1) { animation-delay: 0.10s; }
.a-mvv-grid.scroll-animate.visible .a-mvv-card:nth-child(2) { animation-delay: 0.35s; }
.a-mvv-grid.scroll-animate.visible .a-mvv-card:nth-child(3) { animation-delay: 0.60s; }

.a-mvv-icon {
  transition: transform 0.6s cubic-bezier(.34,1.56,.64,1), color 0.3s ease;
}
.a-mvv-card:hover .a-mvv-icon { transform: rotate(360deg) scale(1.12); }

@keyframes mvv-icon-float {
  0%,100% { transform: translateY(0); }
  50%     { transform: translateY(-4px); }
}
.a-mvv-grid.scroll-animate.visible .a-mvv-card:not(:hover) .a-mvv-icon {
  animation: mvv-icon-float 3s ease-in-out infinite;
}
.a-mvv-grid.scroll-animate.visible .a-mvv-card:nth-child(2) .a-mvv-icon { animation-delay: 0.4s; }
.a-mvv-grid.scroll-animate.visible .a-mvv-card:nth-child(3) .a-mvv-icon { animation-delay: 0.8s; }

/* Capability tiles: fly in from bottom with stagger */
.a-cap-grid.scroll-animate { opacity: 1; transform: none; }
.a-cap-tile {
  opacity: 0;
  transform: translateY(40px) scale(0.95);
  transition:
    opacity 0.8s ease,
    transform 0.9s cubic-bezier(.22,.9,.28,1),
    box-shadow 0.4s ease;
  position: relative;
  overflow: hidden;
}
.a-cap-grid.scroll-animate.visible .a-cap-tile {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.a-cap-grid.scroll-animate.visible .a-cap-tile:nth-child(1) { transition-delay: 0.05s; }
.a-cap-grid.scroll-animate.visible .a-cap-tile:nth-child(2) { transition-delay: 0.20s; }
.a-cap-grid.scroll-animate.visible .a-cap-tile:nth-child(3) { transition-delay: 0.35s; }

.a-cap-num {
  transition: transform 0.5s cubic-bezier(.34,1.56,.64,1), color 0.3s ease;
}
.a-cap-tile:hover .a-cap-num {
  transform: scale(1.25) translateY(-4px);
  color: #36cfc9;
}

/* Capability list items reveal one by one */
.a-cap-list li {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.a-cap-grid.scroll-animate.visible .a-cap-tile:nth-child(1) .a-cap-list li:nth-child(1) { transition-delay: 0.60s; opacity: 1; transform: translateX(0); }
.a-cap-grid.scroll-animate.visible .a-cap-tile:nth-child(1) .a-cap-list li:nth-child(2) { transition-delay: 0.70s; opacity: 1; transform: translateX(0); }
.a-cap-grid.scroll-animate.visible .a-cap-tile:nth-child(1) .a-cap-list li:nth-child(3) { transition-delay: 0.80s; opacity: 1; transform: translateX(0); }
.a-cap-grid.scroll-animate.visible .a-cap-tile:nth-child(2) .a-cap-list li:nth-child(1) { transition-delay: 0.75s; opacity: 1; transform: translateX(0); }
.a-cap-grid.scroll-animate.visible .a-cap-tile:nth-child(2) .a-cap-list li:nth-child(2) { transition-delay: 0.85s; opacity: 1; transform: translateX(0); }
.a-cap-grid.scroll-animate.visible .a-cap-tile:nth-child(2) .a-cap-list li:nth-child(3) { transition-delay: 0.95s; opacity: 1; transform: translateX(0); }
.a-cap-grid.scroll-animate.visible .a-cap-tile:nth-child(3) .a-cap-list li:nth-child(1) { transition-delay: 0.90s; opacity: 1; transform: translateX(0); }
.a-cap-grid.scroll-animate.visible .a-cap-tile:nth-child(3) .a-cap-list li:nth-child(2) { transition-delay: 1.00s; opacity: 1; transform: translateX(0); }
.a-cap-grid.scroll-animate.visible .a-cap-tile:nth-child(3) .a-cap-list li:nth-child(3) { transition-delay: 1.10s; opacity: 1; transform: translateX(0); }

/* CTA reveal */
.a-cta-inner.scroll-animate {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.22,.9,.28,1);
}
.a-cta-inner.scroll-animate.visible { opacity: 1; transform: translateY(0); }
.a-cta-inner.scroll-animate.visible .a-cta-actions .btn {
  animation: hero-rise 0.7s ease both;
}
.a-cta-inner.scroll-animate.visible .a-cta-actions .btn:nth-child(1) { animation-delay: 0.3s; }
.a-cta-inner.scroll-animate.visible .a-cta-actions .btn:nth-child(2) { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .a-hero-copy.scroll-animate,
  .a-hero-visual.scroll-animate,
  .a-story-copy.scroll-animate,
  .a-mvv-head.scroll-animate,
  .a-cap-head.scroll-animate,
  .a-mvv-card, .a-cap-tile,
  .a-hero-chip, .a-hero-photo img,
  .a-cta-inner.scroll-animate {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .a-hero-photo::after { display: none; }
  .a-cap-list li { opacity: 1 !important; transform: none !important; }
  .a-mvv-icon { animation: none !important; }
}

/* ============ Scroll progress bar ============ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, #0d5c63, #36cfc9);
  z-index: 9999;
  transition: width 0.1s ease-out;
  pointer-events: none;
}

/* ============ Section heading shimmer on reveal ============ */
@keyframes underline-grow {
  from { width: 0; }
  to   { width: 60px; }
}
.v2-tick {
  position: relative;
  display: inline-block;
}
.scroll-animate.visible .v2-tick::after,
.hero .eyebrow::after {
  content: '';
  display: block;
  height: 2px;
  background: linear-gradient(90deg, #36cfc9, transparent);
  margin-top: 6px;
  animation: underline-grow 0.8s ease-out 0.3s both;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-up,
  .pulse-hover,
  .hero .eyebrow,
  .hero h1,
  .hero .hero-text,
  .hero .hero-actions,
  .hero .hero-card,
  .hero .shape-circle,
  .hero .shape-ring,
  .hero .shape-soft,
  .hero .cta-button,
  .v2-qa-board.visible .v2-qa-stamp,
  .v2-fp-grid > * {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
  .scroll-progress { display: none; }
}
