/* Reintroduces the original InnerJoinData motion language on the paid-media concept. */
:root {
  --display: "Outfit", sans-serif;
  --body: "Outfit", sans-serif;
}

.particles-container {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: .42;
  pointer-events: none;
}

.particles-container canvas { display: block; width: 100%; height: 100%; }
.hero-grid { z-index: 1; }
.hero h1 { letter-spacing: -.055em; }
.hero-gallery {
  width: 100%;
  height: 540px;
  transform: none;
  perspective: 1000px;
}

.gallery-item {
  position: absolute;
  overflow: hidden;
  border: 3px solid #33485a;
  border-radius: 9px;
  background: #132a3a;
  box-shadow: 0 18px 32px #0008;
  transform: translate(var(--move-x, 0px), var(--move-y, 0px)) rotate(var(--tilt, 0deg));
  transition: transform .3s ease, box-shadow .3s ease;
  will-change: transform;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: gallery-float 7s ease-in-out infinite;
}

.gallery-item:nth-child(even) img { animation-duration: 9s; animation-delay: -3s; }
.gallery-item:nth-child(3n) img { animation-duration: 8s; animation-delay: -5s; }
.gallery-item:hover { z-index: 8; box-shadow: 0 25px 48px #000a; }
.gallery-one { top: 3%; left: 4%; width: 38%; height: 50%; z-index: 2; --tilt: -7deg; }
.gallery-two { top: 2%; left: 43%; width: 48%; height: 36%; z-index: 4; --tilt: 5deg; }
.gallery-three { top: 46%; left: 12%; width: 41%; height: 36%; z-index: 3; --tilt: 5deg; }
.gallery-four { top: 41%; left: 56%; width: 40%; height: 30%; z-index: 5; --tilt: -6deg; }
.gallery-five { top: 75%; left: 42%; width: 27%; height: 25%; z-index: 4; --tilt: -4deg; }
.gallery-six { top: 75%; left: 71%; width: 28%; height: 19%; z-index: 3; --tilt: 6deg; }

@keyframes gallery-float {
  0%, 100% { transform: translateY(0) scale(1.07); }
  50% { transform: translateY(-7px) scale(1.07); }
}

.platform-grid { overflow: hidden; }
.platform-marquee { position: relative; flex: 1; min-width: 0; overflow: hidden; }
.platform-marquee::before, .platform-marquee::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 42px;
  pointer-events: none;
}
.platform-marquee::before { left: 0; background: linear-gradient(90deg, #f0eee8, transparent); }
.platform-marquee::after { right: 0; background: linear-gradient(270deg, #f0eee8, transparent); }
.platform-track { display: flex; width: max-content; animation: platform-drift 22s linear infinite; }
.platform-track ul { display: flex; align-items: center; flex-wrap: nowrap; gap: 0; }
.platform-track li { display: flex; align-items: center; justify-content: center; width: 170px; height: 72px; padding: 13px 26px; }
.platform-track img { width: 100%; height: 43px; object-fit: contain; filter: grayscale(1) brightness(0); opacity: .65; }
.platform-track .platform-word { width: 220px; color: var(--ink); font: 700 17px/1.1 var(--display); text-align: center; }
.platform-marquee:hover .platform-track { animation-play-state: paused; }
@keyframes platform-drift { to { transform: translateX(-50%); } }

.services-section { background: #101e29; color: var(--white); }
.services-section .eyebrow { color: var(--yellow); }
.services-section .section-intro > p { color: #b7c4cb; }
.service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 465px;
  border-color: #324450;
  border-radius: 9px;
  background: #203647;
  color: var(--white);
  box-shadow: 0 15px 28px #0003;
  transition: transform .35s ease, box-shadow .35s ease;
}
.service-card:hover { transform: translateY(-8px); box-shadow: 0 26px 38px #0006; }
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, #0b182430 0%, #0b1824b8 45%, #0b1824f2 100%);
  pointer-events: none;
}
.service-card .service-video {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.service-card:hover .service-video { transform: scale(1.07); }
.service-card > :not(video) { position: relative; z-index: 2; }
.service-card .card-number { color: #e8f0f4; }
.service-card .card-number span { color: var(--yellow); }
.service-card .card-icon { margin-top: auto; margin-bottom: 21px; background: #ffffffd9; }
.service-card h3 { color: var(--white); font-size: 29px; text-shadow: 0 2px 8px #0007; }
.service-card p { color: #e5edf1; font-size: 15px; text-shadow: 0 1px 4px #0008; }
.service-card ul { margin-top: 0; }
.service-card li { border-color: #ffffff68; background: #0b182473; color: var(--white); }
.featured-card { border-color: #a882ca; }
.featured-card li { border-color: #ffffff68; }

.approach-section { overflow: hidden; background: #101e29; color: var(--white); }
.approach-section .eyebrow { color: var(--yellow); }
.approach-section .section-intro > p { color: #b7c4cb; }
.workflow-marquee { position: relative; overflow: hidden; margin-inline: calc((min(100vw - 64px, 1220px) - 100vw) / 2); }
.workflow-marquee::before, .workflow-marquee::after { content: ""; position: absolute; top: 0; bottom: 0; z-index: 2; width: 90px; pointer-events: none; }
.workflow-marquee::before { left: 0; background: linear-gradient(90deg, #101e29, transparent); }
.workflow-marquee::after { right: 0; background: linear-gradient(270deg, #101e29, transparent); }
.workflow-track { display: flex; width: max-content; animation: workflow-drift 42s linear infinite; }
.workflow-set { display: flex; flex: 0 0 auto; gap: 18px; padding-right: 18px; }
.workflow-set article { flex: 0 0 285px; min-height: 360px; padding: 18px; border: 1px solid #40505b; border-radius: 7px; background: #1b2d3a; transition: transform .25s ease, border-color .25s ease; }
.workflow-set article:hover { transform: translateY(-6px); border-color: var(--purple); }
.workflow-set img { width: 100%; height: 140px; margin-bottom: 24px; border-radius: 3px; object-fit: cover; }
.workflow-set .step-number { margin-bottom: 14px; color: var(--yellow); font-size: 11px; letter-spacing: .1em; }
.workflow-set h3 { margin-bottom: 11px; font-size: 23px; }
.workflow-set p { margin-bottom: 0; color: #bccbd4; font-size: 14px; }
.workflow-marquee:hover .workflow-track { animation-play-state: paused; }
@keyframes workflow-drift { to { transform: translateX(-50%); } }

.edge-visual { position: relative; display: block; min-height: 395px; padding: 0; overflow: hidden; border: 8px solid #21394b; border-radius: 8px; }
.edge-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edge-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, #0b1824cc); }
.edge-video-label { position: absolute; right: 20px; bottom: 20px; left: 20px; z-index: 1; color: var(--white); font: 700 18px/1.2 var(--display); }

.motion-reveal { opacity: 0; transform: translateY(25px); transition: opacity .65s ease, transform .65s ease; }
.motion-reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .hero-gallery { height: 500px; }
  .workflow-marquee { margin-inline: -32px; }
}

@media (max-width: 820px) {
  .hero-gallery { width: min(100%, 520px); height: 480px; }
  .platform-marquee { flex: none; width: 100%; }
  .workflow-marquee { margin-inline: -20px; }
  .service-card:last-child { min-height: 400px; }
}

@media (max-width: 620px) {
  .hero-gallery { width: calc(100% - 14px); height: 345px; margin-bottom: 5px; }
  .gallery-item { border-width: 2px; border-radius: 5px; }
  .gallery-one { width: 39%; height: 51%; left: 2%; }
  .gallery-two { width: 49%; height: 39%; left: 44%; }
  .gallery-three { width: 43%; height: 34%; left: 6%; top: 51%; }
  .gallery-four { width: 44%; height: 31%; left: 52%; top: 45%; }
  .gallery-five { width: 27%; height: 25%; left: 39%; top: 75%; }
  .gallery-six { width: 29%; height: 20%; left: 69%; top: 78%; }
  .platform-track li { width: 140px; height: 60px; padding: 10px 20px; }
  .platform-track img { height: 36px; }
  .platform-track .platform-word { width: 190px; font-size: 15px; }
  .service-card, .service-card:last-child { min-height: 420px; }
  .workflow-marquee { margin-inline: -16px; }
  .workflow-set article { flex-basis: 250px; min-height: 350px; }
  .workflow-set img { height: 125px; }
  .edge-visual { min-height: 325px; }
}

@media (prefers-reduced-motion: reduce) {
  .particles-container { display: none; }
  .gallery-item img, .platform-track, .workflow-track { animation: none !important; }
  .platform-track ul[aria-hidden="true"], .workflow-set[aria-hidden="true"] { display: none; }
  .platform-track, .workflow-track { width: auto; }
  .platform-track ul { flex-wrap: wrap; justify-content: center; }
  .workflow-set { flex-wrap: wrap; justify-content: center; }
  .workflow-marquee { margin-inline: 0; }
  .workflow-marquee::before, .workflow-marquee::after { display: none; }
  .motion-reveal { opacity: 1; transform: none; }
}
