/* =========================================================
   LMP motion — light, professional (performance-first)
   ========================================================= */

/* Soft ambient — disabled (was covering content as dark blocks) */
.fx-layer { display: none !important; }

/* Do NOT override .site-header position — keeps navbar fixed */
main,
.site-footer {
  position: relative;
  z-index: 1;
}

/* ——— Hero numbers (no product photo) ——— */
.hero-showcase {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(42vh, 380px);
  opacity: 0;
  animation: hero-in 0.9s var(--ease-out) 0.35s forwards;
}

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  width: min(100%, 420px);
}

.hero-stat {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 1.35rem 1.15rem;
  text-align: left;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s var(--ease), border-color 0.3s, background 0.3s;
}

.hero-stat:hover {
  transform: translateY(-3px);
  border-color: rgba(232, 146, 26, 0.45);
  background: rgba(255, 255, 255, 0.12);
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.45rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 0.45rem;
  color: #fff;
  background: linear-gradient(120deg, #fff 20%, var(--orange-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stat strong sup {
  font-size: 0.45em;
  vertical-align: super;
}

.hero-stat span {
  font-size: 0.82rem;
  color: rgba(255, 252, 247, 0.65);
  line-height: 1.35;
}

/* ——— Conveyor marquee — clean product cards ——— */
.marquee {
  position: relative;
  padding: 2rem 0 2.4rem !important;
}

.marquee::before {
  content: "PRODUCT LINE · FVC · SIC · JVC · SMC · FVB · FJK";
  position: absolute;
  top: 0.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  color: rgba(255,252,247,0.4);
  white-space: nowrap;
  z-index: 2;
}

.marquee::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.75rem;
  height: 4px;
  background: linear-gradient(90deg, transparent, var(--orange), var(--crimson), transparent);
  opacity: 0.45;
}

.marquee-item {
  flex: 0 0 auto;
  width: 160px;
  height: 140px;
  background: #fff;
  display: grid;
  place-items: center;
  padding: 0.85rem;
  transform: none !important;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  animation: none !important;
}

.marquee-item img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center;
}

.marquee-item:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 14px 28px rgba(232,146,26,0.22);
}

/* ——— Process flow ——— */
.process-section {
  background: var(--paper);
  overflow: hidden;
}

.process-rail {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
  margin-top: 2.5rem;
  position: relative;
}

.process-rail::before {
  content: "";
  position: absolute;
  top: 48px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: rgba(29,49,98,0.15);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0.5rem 0.35rem 1rem;
  opacity: 0.4;
  transition: opacity 0.4s, transform 0.4s var(--ease);
}

.process-step.is-on {
  opacity: 1;
}

.process-icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.9rem;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(29,49,98,0.1);
  display: grid;
  place-items: center;
  position: relative;
  box-shadow: 0 10px 24px rgba(7,11,22,0.06);
  overflow: hidden;
  padding: 0.85rem;
}

.process-step.is-on .process-icon {
  border-color: var(--orange);
  box-shadow: 0 0 0 4px rgba(232,146,26,0.12);
}

.process-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.process-icon img[src*="plant-"],
.process-icon img[src*="testing-"],
.process-icon img[src*="hero-crate"] {
  object-fit: cover;
  border-radius: 50%;
  width: 100%;
  height: 100%;
  transform: scale(1.05);
}

.process-icon .pulse-ring { display: none; }

.process-step strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
}

.process-step span {
  font-size: 0.82rem;
  color: var(--steel);
  line-height: 1.35;
}

.process-flow-line {
  position: absolute;
  top: 48px;
  left: 6%;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--blue-bright), var(--orange));
  z-index: 0;
  transition: width 0.5s var(--ease);
}

/* ——— Stack (crate tower) ——— */
.stack-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 220px;
  display: grid;
  place-items: end center;
  padding-bottom: 1.25rem;
}

.stack-tower {
  position: relative;
  width: min(58%, 200px);
  height: 78%;
}

.stack-layer {
  position: absolute;
  left: 0;
  right: 0;
  height: 42%;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(-28px);
  padding: 0.15rem;
}

.stack-stage.is-visible .stack-layer {
  animation: stack-in 0.55s var(--ease-out) forwards;
}

.stack-stage.is-visible .stack-layer:nth-child(1) {
  bottom: 0;
  animation-delay: 0.05s;
}
.stack-stage.is-visible .stack-layer:nth-child(2) {
  bottom: 28%;
  animation-delay: 0.18s;
}
.stack-stage.is-visible .stack-layer:nth-child(3) {
  bottom: 56%;
  animation-delay: 0.32s;
}

@keyframes stack-in {
  to {
    opacity: 1;
    transform: none;
  }
}

.stack-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 14px rgba(7, 11, 22, 0.22));
}

.stack-glow {
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 0.35rem;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(232, 146, 26, 0.35), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
}

.stat.reveal.is-visible .stat-value {
  animation: value-pop 0.55s var(--ease-out) both;
}

@keyframes value-pop {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.timeline-item {
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity 0.45s, transform 0.45s var(--ease);
}

.timeline.reveal.is-visible .timeline-item {
  opacity: 1;
  transform: none;
}

.timeline.reveal.is-visible .timeline-item:nth-child(1) { transition-delay: 0.05s; }
.timeline.reveal.is-visible .timeline-item:nth-child(2) { transition-delay: 0.12s; }
.timeline.reveal.is-visible .timeline-item:nth-child(3) { transition-delay: 0.2s; }
.timeline.reveal.is-visible .timeline-item:nth-child(4) { transition-delay: 0.28s; }

@media (max-width: 900px) {
  .process-rail {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 0.75rem;
  }
  .process-rail::before,
  .process-flow-line { display: none; }
  .hero-showcase { min-height: auto; }
  .process-icon {
    width: 76px;
    height: 76px;
  }
  .stack-stage {
    min-height: 200px;
  }
}

@media (max-width: 560px) {
  .process-rail {
    grid-template-columns: 1fr;
    gap: 1.1rem;
  }
  .process-step {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 0 0.85rem;
    text-align: left;
    align-items: center;
    padding: 0.35rem 0;
  }
  .process-icon {
    grid-row: span 2;
    margin: 0;
    width: 72px;
    height: 72px;
  }
  .process-step strong {
    margin-bottom: 0.1rem;
  }
  .hero-stats {
    grid-template-columns: 1fr 1fr;
    gap: 0.55rem;
    width: 100%;
  }
  .hero-stat {
    padding: 1rem 0.85rem;
  }
  .hero-stat strong {
    font-size: clamp(1.45rem, 8vw, 1.85rem);
  }
  .hero-stat span {
    font-size: 0.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .process-step { opacity: 1; }
  .stack-stage.is-visible .stack-layer,
  .stack-layer {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
  .band-media-product img,
  .hero-stat,
  .feature-card-media,
  .stack-layer img {
    animation: none !important;
  }
}

/* ——— Home polish: depth + 3D motion ——— */
.feature-pair {
  perspective: 1200px;
}

.feature-card {
  transform-style: preserve-3d;
}

.feature-card-media {
  transform:
    rotateX(var(--card-rx, 0deg))
    rotateY(var(--card-ry, 0deg))
    translateZ(0);
  transition: transform 0.2s ease-out, box-shadow 0.4s var(--ease);
}

.feature-card-media--stack {
  perspective: 900px;
}

.stack-tower {
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-6deg);
  transition: transform 0.5s var(--ease);
}

.feature-card:hover .stack-tower {
  transform: rotateX(4deg) rotateY(0deg) translateZ(8px);
}

.stack-stage.is-visible .stack-layer img {
  animation: crate-float 4.5s ease-in-out infinite;
}

.stack-stage.is-visible .stack-layer:nth-child(2) img {
  animation-delay: 0.35s;
}

.stack-stage.is-visible .stack-layer:nth-child(3) img {
  animation-delay: 0.7s;
}

@keyframes crate-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.band-media-product {
  perspective: 1000px;
}

.band-media-product img {
  animation: product-bob 5.5s ease-in-out infinite;
  transform-origin: center bottom;
  filter: drop-shadow(0 22px 28px rgba(7, 11, 22, 0.18));
}

@keyframes product-bob {
  0%, 100% { transform: translateY(0) rotateY(-4deg) rotateX(2deg); }
  50% { transform: translateY(-10px) rotateY(4deg) rotateX(0deg); }
}

.band-media-product:hover img {
  animation-play-state: paused;
  transform: scale(1.04) rotateY(0deg);
}

.trust-item,
.app-item,
.state-card {
  transform-style: preserve-3d;
}

.trust-item:hover,
.app-item:hover {
  transform: translateY(-5px) scale(1.01);
}

.hero-stat {
  transform-style: preserve-3d;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.hero-stat:hover {
  transform: translateY(-5px) rotateX(4deg);
}

.process-icon {
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.process-step.is-on .process-icon,
.process-step:hover .process-icon {
  transform: translateY(-4px) rotateY(-6deg);
  box-shadow: 0 16px 30px rgba(7, 11, 22, 0.16);
}

.process-icon img {
  transition: transform 0.45s var(--ease);
}

.process-step:hover .process-icon img {
  transform: scale(1.08);
}

.section-teal .cta-band {
  position: relative;
  overflow: hidden;
}

.section-teal .cta-band::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.14), transparent 70%);
  pointer-events: none;
  animation: cta-orb 8s ease-in-out infinite;
}

@keyframes cta-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-24px, 16px) scale(1.12); }
}

@media (prefers-reduced-motion: reduce) {
  .band-media-product img,
  .stack-stage.is-visible .stack-layer img,
  .section-teal .cta-band::before {
    animation: none !important;
  }
  .hero-stat:hover,
  .trust-item:hover,
  .app-item:hover,
  .process-step.is-on .process-icon,
  .process-step:hover .process-icon {
    transform: none;
  }
}

/* ——— About page: journey + gallery polish ——— */
.about-hero-media {
  perspective: 1000px;
}

.about-hero-media img {
  transition: transform 0.6s var(--ease);
}

.about-hero-media:hover img {
  transform: scale(1.05) rotateY(-2deg);
}

.journey-card.is-visible {
  animation: journey-rise 0.7s var(--ease-out) both;
}

@keyframes journey-rise {
  from {
    opacity: 0;
    transform: perspective(1000px) translateY(28px) rotateX(8deg);
  }
  to {
    opacity: 1;
    transform: perspective(1000px) translateY(0) rotateX(0);
  }
}

.journey-stat {
  animation: none;
}

.journey-stats.reveal.is-visible .journey-stat {
  animation: journey-stat-in 0.55s var(--ease-out) both;
}

.journey-stats.reveal.is-visible .journey-stat:nth-child(1) { animation-delay: 0.05s; }
.journey-stats.reveal.is-visible .journey-stat:nth-child(2) { animation-delay: 0.12s; }
.journey-stats.reveal.is-visible .journey-stat:nth-child(3) { animation-delay: 0.2s; }
.journey-stats.reveal.is-visible .journey-stat:nth-child(4) { animation-delay: 0.28s; }

@keyframes journey-stat-in {
  from { opacity: 0; transform: translateY(16px) scale(0.96); }
  to { opacity: 1; transform: none; }
}

.plus-item {
  transform-style: preserve-3d;
  transition: transform 0.35s var(--ease), padding-left 0.35s var(--ease), border-color 0.35s;
}

.plus-item:hover {
  transform: translateY(-4px) translateZ(6px);
}

.gallery figure {
  transform-style: preserve-3d;
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}

.gallery figure:hover {
  transform: translateY(-6px) rotateX(2deg);
  box-shadow: 0 22px 40px rgba(7, 11, 22, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .journey-card.is-visible,
  .journey-stats.reveal.is-visible .journey-stat {
    animation: none !important;
  }
  .plus-item:hover,
  .gallery figure:hover,
  .about-hero-media:hover img {
    transform: none;
  }
}
