/* Additions on top of Tailwind */

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* ---------------------------------------------------------------- */
/* Fade-up on scroll                                                 */
/* ---------------------------------------------------------------- */
[data-anim="fade-up"] {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.9s cubic-bezier(0.25, 0.1, 0.25, 1),
              transform 0.9s cubic-bezier(0.25, 0.1, 0.25, 1);
}
[data-anim="fade-up"].is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ---------------------------------------------------------------- */
/* Hero wireframe — subtle parallax-style breathing                  */
/* ---------------------------------------------------------------- */
@keyframes wireframeFloat {
  0%, 100% { transform: scale(1.05) translate3d(0, 0, 0); }
  50%      { transform: scale(1.05) translate3d(-0.4%, -0.8%, 0); }
}
.wireframe-float {
  animation: wireframeFloat 18s ease-in-out infinite;
  will-change: transform;
}

/* ---------------------------------------------------------------- */
/* Hero brand mark — big, fluid type                                 */
/* ---------------------------------------------------------------- */
.brand-mark {
  font-size: clamp(3.5rem, 11vw, 9rem);
}

/* ---------------------------------------------------------------- */
/* Services marquee                                                  */
/* ---------------------------------------------------------------- */
.marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 8%,
    #000 92%,
    transparent 100%
  );
}

.marquee {
  display: flex;
  width: 100%;
  overflow: hidden;
}

.marquee-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  width: max-content;
  padding: 4px 0;
  will-change: transform;
}

.marquee-track--ltr {
  animation: marqueeScrollLTR 40s linear infinite;
}
.marquee-track--rtl {
  animation: marqueeScrollRTL 50s linear infinite;
}
.marquee-track--slow {
  animation-duration: 60s;
}

.marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScrollLTR {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
@keyframes marqueeScrollRTL {
  from { transform: translate3d(-50%, 0, 0); }
  to   { transform: translate3d(0, 0, 0); }
}

/* Chip styling — understated, professional */
.chip {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 12px 22px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03),
              0 6px 18px rgba(15, 23, 42, 0.04);
  color: #1e293b;
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
              border-color 0.3s ease,
              box-shadow 0.3s ease,
              color 0.3s ease;
}
.chip:hover {
  transform: translateY(-2px);
  border-color: rgba(15, 23, 42, 0.18);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.04),
              0 12px 28px rgba(15, 23, 42, 0.08);
  color: #0a1b33;
}
.chip--accent {
  background: #0a1b33;
  color: #ffffff;
  border-color: #0a1b33;
}
.chip--accent:hover {
  color: #ffffff;
  background: #142a4d;
}

@media (max-width: 640px) {
  .chip { padding: 10px 18px; font-size: 14px; }
  .marquee-track { gap: 10px; }
}

/* ---------------------------------------------------------------- */
/* Giant wordmark band                                               */
/* ---------------------------------------------------------------- */
.wordmark-strip {
  position: relative;
  width: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    transparent 0,
    #000 6%,
    #000 94%,
    transparent 100%
  );
}
.wordmark-track {
  display: flex;
  width: max-content;
  gap: 56px;
  animation: wordmarkScroll 60s linear infinite;
  will-change: transform;
}
.wordmark-track span {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(3rem, 9vw, 7.5rem);
  letter-spacing: -0.03em;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(10, 27, 51, 0.18);
  white-space: nowrap;
}
@keyframes wordmarkScroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}
.wordmark-strip:hover .wordmark-track {
  animation-play-state: paused;
}

/* ---------------------------------------------------------------- */
/* Status orbit blob                                                 */
/* ---------------------------------------------------------------- */
@keyframes statusOrbit {
  0%, 100% { transform: translateX(-50%) translateY(0)   scale(1); }
  50%      { transform: translateX(-50%) translateY(20px) scale(1.05); }
}
.status-orbit {
  animation: statusOrbit 12s ease-in-out infinite;
  will-change: transform;
}

/* ---------------------------------------------------------------- */
/* Reduced motion                                                    */
/* ---------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .wireframe-float,
  .status-orbit,
  .marquee-track--ltr,
  .marquee-track--rtl,
  .wordmark-track {
    animation: none !important;
  }
  [data-anim="fade-up"] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
