/* =============================================================
   COMPONENTS.CSS
   Shared, reusable UI components.
   Include this file on any page that uses a component below.

   Components:
   - Portfolio Carousel  (.pf, .pf__*)
   ============================================================= */


/* ─────────────────────────────────────────────────────────────
   PORTFOLIO CAROUSEL
   HTML: see the <section class="pf" id="portfolio"> block.
   JS:   components.js (requires GSAP 3)
   ───────────────────────────────────────────────────────────── */

.pf {
  position: relative;
  background: #000;
  overflow: hidden;
}

.pf__track-wrap {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
}

/* Slide stack */
.pf__slides {
  position: absolute;
  inset: 0;
}

.pf__slide {
  position: absolute;
  inset: 0;
  overflow: hidden;
  visibility: hidden;
  opacity: 0;
}

.pf__slide-bg {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.pf__slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(0,0,0,0.88) 0%,
    rgba(0,0,0,0.55) 55%,
    rgba(0,0,0,0.25) 100%
  );
}

/* Content */
.pf__slide-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: clamp(40px, 8vw, 100px) clamp(24px, 8vw, 120px) clamp(60px, 8vw, 100px);
  max-width: 900px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  will-change: transform, opacity;
}

.pf__slide-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  width: fit-content;
  backdrop-filter: blur(4px);
}

.pf__slide-title {
  font-size: clamp(28px, 4.5vw, 60px);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

.pf__slide-desc {
  font-size: clamp(14px, 1.2vw, 17px);
  color: rgba(255,255,255,0.65);
  line-height: 1.65;
  max-width: 560px;
  margin: 0;
}

.pf__slide-metrics {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pf__metric {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pf__metric strong {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
}

.pf__metric span {
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.pf__slide-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  width: fit-content;
  transition: border-color 0.2s, gap 0.2s;
}

.pf__slide-cta:hover { border-color: #fff; gap: 12px; }

/* Section label (top-left) */
.pf__label {
  position: absolute;
  top: clamp(30px, 5vw, 60px);
  left: clamp(24px, 8vw, 120px);
  z-index: 10;
  pointer-events: none;
}

.pf__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 4px;
}

.pf__heading {
  font-size: clamp(14px, 1.4vw, 20px);
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Progress bar */
.pf__progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: rgba(255,255,255,0.1);
  z-index: 20;
}

.pf__progress-fill {
  height: 100%;
  width: 20%;
  background: #fff;
  transition: none;
}

/* Slide counter */
.pf__counter {
  position: absolute;
  top: clamp(30px, 5vw, 60px);
  right: clamp(24px, 8vw, 120px);
  z-index: 20;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: rgba(255,255,255,0.5);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.pf__counter-cur {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}

/* Nav arrows */
.pf__arrow {
  position: absolute;
  bottom: clamp(40px, 6vw, 80px);
  right: clamp(24px, 8vw, 120px);
  z-index: 20;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}

.pf__arrow--prev { right: calc(clamp(24px, 8vw, 120px) + 64px); }

.pf__arrow:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.6);
  transform: scale(1.05);
}

/* Dot nav */
.pf__dots {
  position: absolute;
  left: clamp(24px, 8vw, 120px);
  bottom: clamp(40px, 6vw, 80px);
  z-index: 20;
  display: flex;
  gap: 8px;
  align-items: center;
}

.pf__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 0.35s ease, background 0.35s ease, border-radius 0.35s ease;
}

.pf__dot--active {
  width: 28px;
  border-radius: 4px;
  background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
  .pf__track-wrap { height: 92svh; min-height: 520px; }
  .pf__slide-content { padding: 32px 24px 80px; }
  .pf__label { top: 20px; left: 24px; }
  .pf__counter { top: 20px; right: 24px; }
  .pf__arrow--prev { right: calc(24px + 64px); }
  .pf__arrow--next { right: 24px; }
  .pf__dots { left: 24px; bottom: 28px; }
  .pf__arrow { bottom: 24px; }
  .pf__slide-metrics { gap: 20px; }
}



/* ─────────────────────────────────────────────────────────────
   STRATEGIC ALLIANCES MARQUEE
   HTML: see the <section class="alli" id="alliances"> block.
   No JS needed — pure CSS animation.
   ───────────────────────────────────────────────────────────── */

/* ═══════════════════════════════════════════════════════════
   ALLIANCES — white, 2-row marquee
   ══════════════════════════════════════════════════════════ */
.alli {
  padding: 80px 0 88px !important;
  background: var(--E-white) !important;
  border-top: 1px solid var(--E-line) !important;
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.alli__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 36px) !important;
  font-weight: 900 !important;
  letter-spacing: -.04em !important;
  color: var(--E-ink) !important;
  margin-bottom: 48px;
  line-height: 1.1;
  text-wrap: balance;
  text-align: left !important;
}
.alli__row {
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin-bottom: 16px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.alli__track {
  display: flex;
  align-items: center;
  gap: 16px;
  width: max-content;
}
.alli__track--ltr { animation: alliLtr 40s linear infinite; }
.alli__track--rtl { animation: alliRtl 40s linear infinite; }
.alli__row:hover .alli__track { animation-play-state: paused; }
@keyframes alliLtr {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes alliRtl {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .alli__track--ltr, .alli__track--rtl { animation: none; }
}
.alli__tile {
  flex: 0 0 auto !important;
  display: grid !important;
  place-items: center !important;
  width: 180px !important;
  height: 88px !important;
  border: 1px solid var(--E-line) !important;
  border-radius: 8px !important;
  background: var(--E-white) !important;
  transition: border-color .2s, background .2s;
}
.alli__tile:hover {
  border-color: var(--E-blue) !important;
  background: var(--E-blue-t) !important;
}
.alli__name {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  color: var(--E-muted) !important;
  letter-spacing: -.01em !important;
  transition: color .2s;
}
.alli__tile:hover .alli__name { color: var(--E-blue-d) !important; }
.alli__logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  opacity: .85;
  transition: opacity .25s;
}
.alli__logo--dark {
  filter: brightness(0);
  opacity: .7;
}
.alli__tile--dark {
  background: #111 !important;
  border-color: #333 !important;
}
.alli__tile--dark:hover {
  background: #1a1a1a !important;
  border-color: var(--E-blue) !important;
}
.alli__logo--invert {
  filter: brightness(0) invert(1);
  opacity: .8;
}
.alli__tile:hover .alli__logo { opacity: 1; }
.alli__tile:hover .alli__logo--dark { opacity: .9; }
.alli__tile:hover .alli__logo--invert { opacity: 1; }
.alli__note {
  display: block;
  text-align: center;
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  color: var(--E-muted) !important;
  opacity: .55;
}

/* TRUSTED-BY marquee logo images (shared across service pages) */
.marq__logo {
  height: 40px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  opacity: 1;
}
