/* ===========================================================
   Bizniaga Technologies — Homepage effects (add-on, 22 Oct)
   1. ENTRANCE: logo + slogan, a droplet hits the centre, a ripple
      spreads and the screen's tiles flip away to reveal the banner.
   2. COVER SCROLL: each section slides up OVER the one before it
      (the old one stays pinned, shrinks slightly and dims).
   3. TRUSTED BY "orbit": client logos circling the Bizniaga B.
   Script: script/fx.js.
   TO ROLL BACK: see the "FX" comments in index.html (remove the
   fx.css / fx.js lines and the #fx-intro block), or restore the
   files from Backup/Version 11.
   =========================================================== */

/* ================================================================
   1. ENTRANCE (v2 — kinetic type, after the reference video)
   Soft white backdrop with drifting colour blooms; the slogan plays word
   by word ("Our" → "Our Technologies" → "Empower" on a big colour bloom →
   "Businesses"), then the logo: the B comes into focus and the name wipes
   in, with the slogan in small caps under it. A droplet falls, and the
   page opens from the centre like a ripple on water to show the banner.
   Timings: FX_INTRO in script/fx.js. Previous tile version: Backup/Version 12.
   ================================================================ */
@property --fx-hole { syntax: "<length>"; inherits: true; initial-value: -120px; }

.fx-intro { display: none; }
.fx-entrance .fx-intro {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow: hidden;
  cursor: pointer;                       /* click anywhere to skip */
  background: #f6f6fb;
  /* the ripple opening: a soft-edged hole that grows from the centre */
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent var(--fx-hole), #000 calc(var(--fx-hole) + 90px));
          mask: radial-gradient(circle at 50% 50%, transparent var(--fx-hole), #000 calc(var(--fx-hole) + 90px));
}
.fx-intro.is-opening {
  transition: --fx-hole 1.25s cubic-bezier(.55,.05,.25,1);
  --fx-hole: 150vmax;
}

/* drifting colour blooms */
.fx-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  will-change: transform;
}
.fx-blob--a { width: 46vmax; height: 46vmax; right: -14vmax; top: -18vmax; background: radial-gradient(circle, #ff7aa8 0%, #c06bff 60%, transparent 70%); animation: fxDriftA 9s ease-in-out infinite alternate; }
.fx-blob--b { width: 40vmax; height: 40vmax; left: -14vmax; bottom: -18vmax; background: radial-gradient(circle, #8fa2ff 0%, #b9c2ff 60%, transparent 70%); animation: fxDriftB 10s ease-in-out infinite alternate; }
@keyframes fxDriftA { to { transform: translate(-8vmax, 6vmax) scale(1.1); } }
@keyframes fxDriftB { to { transform: translate(7vmax, -5vmax) scale(1.12); } }
/* the big bloom behind "Empower" */
.fx-bloom {
  position: absolute;
  left: 50%; top: 50%;
  width: 82vmin; height: 62vmin;
  margin: -31vmin 0 0 -41vmin;
  border-radius: 50%;
  background:
    radial-gradient(closest-side at 30% 55%, #4d5cff 0%, rgba(77,92,255,0.85) 35%, rgba(77,92,255,0) 100%),
    radial-gradient(closest-side at 68% 45%, #e0237a 0%, rgba(224,35,122,0.85) 35%, rgba(224,35,122,0) 100%);
  filter: blur(36px);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.45s ease, transform 0.9s cubic-bezier(.2,.9,.3,1);
  pointer-events: none;
}
.fx-intro.is-empower .fx-bloom { opacity: 0.95; transform: scale(1); }

/* the words */
.fx-word {
  position: absolute;
  left: 50%; top: 50%;
  margin: 0;
  white-space: nowrap;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1;
  opacity: 0;
  filter: blur(14px);
  transform: translate(-50%, -50%) scale(1.15);
  transition: opacity 0.45s ease, filter 0.45s ease, transform 0.6s cubic-bezier(.2,.9,.3,1), font-size 0.6s cubic-bezier(.2,.9,.3,1);
  pointer-events: none;
}
.fx-word.is-in  { opacity: 1; filter: blur(0); transform: translate(-50%, -50%) scale(1); }
.fx-word.is-out { opacity: 0; filter: blur(14px); transform: translate(-50%, -50%) scale(0.96); }

/* "Our" → "Our Technologies" */
.fx-word--our { font-size: clamp(56px, 9vw, 150px); color: #e42030; display: flex; align-items: baseline; }
.fx-word--our.is-pair { font-size: clamp(34px, 4.6vw, 76px); }
.fx-word--our .fx-tech {
  display: inline-block;
  max-width: 0;
  overflow: hidden;
  opacity: 0;
  filter: blur(10px);
  transform: translateX(30px);
  margin-left: 0;
  background: linear-gradient(90deg, #b0165a 0%, #7b3fd6 55%, #2b2f8f 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  transition: max-width 0.7s cubic-bezier(.2,.9,.3,1), opacity 0.5s ease 0.1s, filter 0.5s ease 0.1s, transform 0.7s cubic-bezier(.2,.9,.3,1), margin 0.7s ease;
}
.fx-word--our.is-pair .fx-tech { max-width: 12em; opacity: 1; filter: blur(0); transform: none; margin-left: 0.28em; }

.fx-word--empower {
  font-size: clamp(60px, 10vw, 170px);
  color: #fff;
  text-shadow: 0 6px 40px rgba(40, 20, 120, 0.35);
  letter-spacing: 6px;
}
.fx-word--empower.is-in { letter-spacing: -1px; transition: opacity 0.45s ease, filter 0.45s ease, transform 0.6s cubic-bezier(.2,.9,.3,1), letter-spacing 0.9s cubic-bezier(.2,.9,.3,1); }

.fx-word--biz { font-size: clamp(40px, 5.4vw, 92px); color: #1f2a8f; }

/* the logo: B comes into focus, then the name wipes in; no frame around it */
.fx-brand {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -58%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(4px, 1vh, 10px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(.4,0,.2,1), filter 0.4s ease;
}
.fx-intro.is-dropping .fx-brand { opacity: 0; filter: blur(6px); transform: translate(-50%, -64%) scale(0.96); }
.fx-logo {
  display: block;
  height: clamp(110px, min(30vh, 40vw), 290px);   /* the PNG is ~2.3x as wide as tall */
  width: auto;
  /* just the "B" (it spans 11%-28% of the PNG's width), centred */
  clip-path: inset(0 70% 0 9%);
  transform: translateX(30.7%);
  opacity: 0;
  filter: blur(16px);
  scale: 1.25;
  transition: opacity 0.5s ease, filter 0.6s ease, scale 0.8s cubic-bezier(.2,.9,.3,1);
}
.fx-intro.is-logo .fx-logo { opacity: 1; filter: blur(0); scale: 1; }
.fx-intro.is-name .fx-logo {
  clip-path: inset(0 0 0 0);
  transform: translateX(0);
  transition: opacity 0.5s ease, filter 0.6s ease, scale 0.8s cubic-bezier(.2,.9,.3,1),
              clip-path 0.85s cubic-bezier(.65,0,.35,1), transform 0.85s cubic-bezier(.65,0,.35,1);
}
.fx-slogan {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(11px, 0.45vw + 8px, 16px);
  letter-spacing: 0.32em;
  text-transform: uppercase;
  background: linear-gradient(90deg, #e42030 0%, #b0165a 30%, #7b3fd6 65%, #2b2f8f 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2,.9,.3,1), filter 0.6s ease, letter-spacing 1s cubic-bezier(.2,.9,.3,1);
}
.fx-intro.is-tagline .fx-slogan { opacity: 1; transform: none; filter: blur(0); letter-spacing: 0.22em; }

/* the droplet */
.fx-drop {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 22px;
  margin: -11px 0 0 -8px;
  border-radius: 50% 50% 50% 50% / 62% 62% 40% 40%;
  background: radial-gradient(circle at 35% 30%, #ff8fb8, #b0165a 45%, #4d5cff);
  box-shadow: 0 0 18px rgba(176, 22, 90, 0.45);
  opacity: 0;
  transform: translateY(-55vh);
}
.fx-intro.is-dropping .fx-drop { animation: fxFall 0.45s cubic-bezier(.55,0,1,.45) forwards; }
@keyframes fxFall {
  0%   { opacity: 0; transform: translateY(-55vh) scaleY(1.3); }
  15%  { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scaleY(1.15); }
}
.fx-intro.is-opening .fx-drop { animation: fxSplash 0.25s ease-out forwards; }
@keyframes fxSplash {
  0%   { opacity: 1; transform: scale(1.1, 0.6); }
  100% { opacity: 0; transform: scale(2.6, 0.12); }
}

.fx-skip {
  position: absolute;
  z-index: 4;
  right: 24px;
  bottom: 22px;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(18, 22, 58, 0.45);
  transition: opacity 0.3s ease;
}
.fx-intro.is-opening .fx-skip { opacity: 0; }

/* ripple rings riding just outside the opening */
.fx-wave {
  position: fixed;
  z-index: 1001;
  left: 50%; top: 50%;
  width: 0; height: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 0 30px rgba(143, 134, 255, 0.45);
  pointer-events: none;
  opacity: 0;
}
.fx-wave.is-go { animation: fxWave 1.35s cubic-bezier(.55,.05,.25,1) forwards; animation-delay: var(--wd, 0s); }
@keyframes fxWave {
  0%   { opacity: 0.9; width: 0; height: 0; }
  80%  { opacity: 0.5; }
  100% { opacity: 0; width: var(--ws, 300vmax); height: var(--ws, 300vmax); }
}

/* ================================================================
   2. COVER SCROLL (desktop / snapping screens only — html.fx-stack-on)
   Each top-level block of the page sticks to the top; the next one
   scrolls up over it. script/fx.js sets each block's sticky offset
   (tall blocks pin at their bottom edge) and the --cover amount
   (0 → 1) while the next block slides over it.
   ================================================================ */
html.fx-stack-on,
html.fx-stack-on body { overflow-x: clip; }        /* "hidden" here would stop sticky from working */
html.fx-stack-on .fx-unit {
  position: sticky;
  top: var(--fx-top, 0px);
  z-index: var(--fx-z, 1);
  transform-origin: 50% 0%;
}
html.fx-stack-on .fx-unit.is-covering {
  transform: scale(calc(1 - var(--cover, 0) * 0.07));
  filter: brightness(calc(1 - var(--cover, 0) * 0.5));
  border-radius: calc(var(--cover, 0) * 28px);
  overflow: hidden;
}
/* soft shadow along the top edge of the block that's sliding in */
html.fx-stack-on .fx-unit + .fx-unit { box-shadow: 0 -24px 50px rgba(6, 8, 30, 0.22); }

/* ================================================================
   3. TRUSTED BY — ORBIT
   ================================================================ */
.trusted.trusted--orbit {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--nav-space, 92px) + 2vh) 0 3vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 50% 58%, rgba(124, 108, 255, 0.35), rgba(124, 108, 255, 0) 70%),
    linear-gradient(160deg, #2a1f86 0%, #1a1466 45%, #0f0c45 100%);
}
.orbit-head { position: relative; z-index: 5; text-align: center; padding: 0 24px; }
.orbit-head .trusted-label { margin: 0 0 8px; font-size: clamp(24px, 1.4vw + 12px, 38px); }
.orbit-sub {
  margin: 0;
  font-size: clamp(14px, 0.3vw + 11px, 16px);
  color: rgba(255, 255, 255, 0.72);
}
.orbit {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 300px;
}
/* faint ring paths (ellipses drawn by fx.js sizes) */
.orbit-path {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.orbit-core {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 50;
  width: clamp(90px, 13vh, 132px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 10px rgba(255, 255, 255, 0.08),
    0 0 0 22px rgba(255, 255, 255, 0.04),
    0 0 60px 10px rgba(143, 134, 255, 0.55);
  animation: orbitPulse 4s ease-in-out infinite;
}
.orbit-core img { width: 58%; height: auto; }
@keyframes orbitPulse {
  0%, 100% { box-shadow: 0 0 0 10px rgba(255,255,255,0.08), 0 0 0 22px rgba(255,255,255,0.04), 0 0 60px 10px rgba(143,134,255,0.5); }
  50%      { box-shadow: 0 0 0 14px rgba(255,255,255,0.1), 0 0 0 30px rgba(255,255,255,0.05), 0 0 80px 18px rgba(143,134,255,0.65); }
}
.orbit-item {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--tile-w, 128px);
  height: var(--tile-h, 62px);
  margin: calc(var(--tile-h, 62px) / -2) 0 0 calc(var(--tile-w, 128px) / -2);
  display: grid;
  place-items: center;
  padding: 8px 14px;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(6, 8, 30, 0.28);
  will-change: transform, opacity;
  transition: box-shadow 0.25s ease;
}
.orbit-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
}
.orbit-item:hover { box-shadow: 0 0 0 3px rgba(255,255,255,0.9), 0 16px 34px rgba(6, 8, 30, 0.4); }
.orbit-hint {
  position: relative;
  z-index: 5;
  margin: 0;
  font-size: 12.5px;
  letter-spacing: 0.4px;
  color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 640px) {
  .trusted.trusted--orbit { min-height: 0; padding: 64px 0 40px; }
  .orbit { min-height: 420px; flex: none; }
  .orbit-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit-core { animation: none; }
}

/* Orbit carousel controls (22 Oct) */
.orbit { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.orbit.is-dragging { cursor: grabbing; }
.orbit-item { transition: box-shadow 0.25s ease; }
.orbit-controls {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 18px;
}
.orbit-controls .orbit-hint { display: block; }
.orbit-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.35);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.orbit-btn:hover { background: #fff; color: var(--navy); border-color: #fff; }
.orbit-btn:active { transform: scale(0.94); }
@media (max-width: 640px) {
  .orbit-controls .orbit-hint { display: block; font-size: 12px; }
}


/* ================================================================
   ENTRANCE v3 (22 Oct) — overrides v2 above: one large logo in the
   centre, the slogan under it, colour-bloom background, blue droplet.
   ================================================================ */
.fx-blob { opacity: 0.6; }
.fx-blob--c {
  width: 34vmax; height: 34vmax; left: 30%; top: 55%;
  background: radial-gradient(circle, #9db4ff 0%, #c8b6ff 55%, transparent 70%);
  opacity: 0.4;
  animation: fxDriftA 11s ease-in-out infinite alternate-reverse;
}
.fx-brand { transform: translate(-50%, -54%); gap: clamp(14px, 3vh, 30px); }
.fx-logo {
  height: clamp(140px, min(40vh, 50vw), 360px);
  clip-path: none;
  transform: none;
  opacity: 0;
  filter: blur(14px);
  scale: 0.9;
  transition: opacity 0.7s ease, filter 0.7s ease, scale 1.1s cubic-bezier(.2,.9,.3,1);
}
.fx-intro.is-logo .fx-logo { opacity: 1; filter: blur(0); scale: 1; }
.fx-intro.is-name .fx-logo { clip-path: none; transform: none; }
.fx-slogan { font-size: clamp(13px, 0.6vw + 9px, 20px); }
/* blue droplet + ripple */
.fx-drop {
  background: radial-gradient(circle at 35% 30%, #cfe0ff, #4d7cff 45%, #1f2a8f);
  box-shadow: 0 0 20px rgba(77, 124, 255, 0.6);
}
.fx-wave { border-color: rgba(160, 190, 255, 0.85); box-shadow: 0 0 34px rgba(77, 124, 255, 0.5), inset 0 0 22px rgba(77, 124, 255, 0.3); }

/* ================================================================
   TRUSTED BY ORBIT v3 (22 Oct) — bigger logos, stronger depth
   ================================================================ */
.orbit-item { border-radius: 16px; transition: box-shadow 0.3s ease; }
.orbit-item.is-front { box-shadow: 0 24px 50px rgba(6, 8, 30, 0.45), 0 0 0 1px rgba(255,255,255,0.6); }
.orbit-btn { width: 46px; height: 46px; }

/* ================================================================
   TRUSTED BY ORBIT v4 (22 Oct) — B sits higher; no buttons or swipe
   instructions: the ring looks and feels movable instead
   (grab cursor, logos lift under the pointer, a tug when it appears,
   soft fades at the left / right edges like a carousel continuing).
   ================================================================ */
.orbit-core { top: 40%; }
/* logos fade out towards the left / right edges, like a carousel carrying on */
.orbit {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}
.orbit:focus-visible { outline: 2px solid rgba(255,255,255,0.5); outline-offset: -8px; border-radius: 24px; }
.orbit-item.is-front:hover { box-shadow: 0 30px 60px rgba(6, 8, 30, 0.5), 0 0 0 2px #fff; }
.orbit.is-dragging .orbit-item { transition: none; }
.orbit-count {
  position: relative;
  z-index: 5;
  margin: 0;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.6px;
  color: rgba(255, 255, 255, 0.55);
}

/* heading a little lower (22 Oct) */
.orbit-head { margin-top: clamp(16px, 5vh, 48px); }

/* Entrance slogan: words pop out one by one (22 Oct) */
.fx-slogan { opacity: 1; transform: none; filter: none; background: none; color: inherit; letter-spacing: 0.22em; }
.fx-pop {
  display: inline-block;
  opacity: 0;
  transform: translateY(16px) scale(0.4);
  filter: blur(4px);
}
.fx-intro.is-tagline .fx-pop {
  animation: fxPop 0.55s cubic-bezier(.34,1.7,.5,1) forwards;
  animation-delay: var(--pd, 0s);
}
@keyframes fxPop {
  0%   { opacity: 0; transform: translateY(16px) scale(0.4); filter: blur(4px); }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: none; filter: blur(0); }
}

/* more room under the ring (22 Oct) */
.trusted.trusted--orbit { padding-bottom: clamp(28px, 7vh, 72px); }


/* ================================================================
   4. WHY CHOOSE US — SHOWCASE (22 Oct)
   One reason at a time: tilted 3D photo card (left) slides in
   diagonally, text fades on the right, dots underneath, techno lines
   streaking across the background. Script: initWhyShow in fx.js.
   Roll back: remove "why--showcase" from #why-choose (index.html).
   ================================================================ */
.why-show { display: none; }
.why--showcase .why-show { display: block; }
.why--showcase .why-old { display: none; }

.why--showcase {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background:
    radial-gradient(70% 60% at 25% 60%, rgba(124, 108, 255, 0.14), rgba(124, 108, 255, 0) 70%),
    radial-gradient(50% 50% at 85% 20%, rgba(228, 32, 48, 0.06), rgba(228, 32, 48, 0) 70%),
    var(--mist, #f4f5fa);
}
.why--showcase .why-show { position: static; width: 100%; }
.ws-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}
.ws-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 90px);
  align-items: center;
}

/* ---- the card stage ---- */
.ws-stage {
  position: relative;
  height: clamp(300px, 58vh, 540px);
  perspective: 1800px;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}
.ws-stage.is-dragging { cursor: grabbing; }
.ws-glow {
  position: absolute;
  left: 12%; right: 8%; top: 22%; bottom: 6%;
  border-radius: 40px;
  background: linear-gradient(120deg, var(--ws-c, #4b3fb0), #8f86ff);
  filter: blur(60px);
  opacity: 0.45;
  transform: rotate(-8deg);
  transition: background 0.8s ease;
}
.ws-card {
  position: absolute;
  inset: 6% 6% 10% 4%;
  transform-style: preserve-3d;
  will-change: transform, opacity;
  /* resting pose: tilted back and turned, like the reference */
  --pose: rotateX(14deg) rotateY(18deg) rotateZ(-5deg);
  transform: var(--pose);
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.95s cubic-bezier(.2,.8,.2,1),
    opacity 0.6s ease;
}
.ws-card.is-active { opacity: 1; pointer-events: auto; }
/* off-screen spots: forward = enters from bottom-left, leaves to top-right */
.ws-card.at-in-fwd   { transform: translate3d(-55%, 45%, -200px) var(--pose) rotateZ(-6deg); opacity: 0; }
.ws-card.at-out-fwd  { transform: translate3d(55%, -45%, -200px) var(--pose) rotateZ(6deg);  opacity: 0; }
.ws-card.at-in-back  { transform: translate3d(55%, -45%, -200px) var(--pose) rotateZ(6deg);  opacity: 0; }
.ws-card.at-out-back { transform: translate3d(-55%, 45%, -200px) var(--pose) rotateZ(-6deg); opacity: 0; }
.ws-card.no-anim { transition: none !important; }

/* the slab: thick edge (stacked shadows) + coloured block underneath */
.ws-slab {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  background: var(--ws-c, #4b3fb0);
  transform: translate3d(14px, 18px, -40px);
  box-shadow: 0 40px 70px rgba(18, 22, 58, 0.35);
}
.ws-face {
  position: absolute;
  inset: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #0d1033;
  box-shadow:
    1px 1px 0 rgba(255,255,255,0.6),
    2px 2px 0 color-mix(in srgb, var(--ws-c, #4b3fb0) 80%, #000),
    4px 4px 0 color-mix(in srgb, var(--ws-c, #4b3fb0) 75%, #000),
    6px 6px 0 color-mix(in srgb, var(--ws-c, #4b3fb0) 70%, #000),
    8px 8px 0 color-mix(in srgb, var(--ws-c, #4b3fb0) 65%, #000),
    10px 10px 0 color-mix(in srgb, var(--ws-c, #4b3fb0) 60%, #000),
    24px 30px 50px rgba(18, 22, 58, 0.3);
}
.ws-face img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  -webkit-user-drag: none;
}
/* light sheen across the photo */
.ws-face::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255,255,255,0.28) 0%, rgba(255,255,255,0) 35%, rgba(255,255,255,0) 70%, rgba(255,255,255,0.08) 100%);
  pointer-events: none;
}
.ws-num {
  position: absolute;
  left: 22px; top: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5vw, 76px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.85);
  text-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transform: translateZ(30px);
}

/* ---- the text ---- */
.ws-copy .eyebrow { margin-bottom: 6px; }
.ws-copy .section-title { margin: 0 0 clamp(18px, 3.4vh, 34px); }
.ws-text { display: grid; min-height: clamp(150px, 26vh, 220px); }
.ws-slide {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(16px);
  filter: blur(4px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(.2,.8,.2,1), filter 0.45s ease;
  pointer-events: none;
}
.ws-slide.is-active {
  opacity: 1;
  transform: none;
  filter: none;
  transition-delay: 0.35s;            /* the card arrives first, then the words */
  pointer-events: auto;
}
.ws-slide-num {
  display: inline-block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 2px;
  color: var(--ws-c, var(--purple-start));
}
.ws-slide h3 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 1.6vw + 14px, 44px);
  line-height: 1.12;
  color: var(--navy);
}
.ws-slide p {
  margin: 0;
  max-width: 460px;
  font-size: clamp(15px, 0.35vw + 12px, 18px);
  line-height: 1.65;
  color: var(--muted);
}

/* ---- dots (fill while each reason is shown) ---- */
.ws-dots { display: flex; gap: 10px; margin-top: clamp(18px, 3vh, 30px); }
.ws-dot {
  position: relative;
  width: 10px; height: 10px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: rgba(18, 22, 58, 0.18);
  overflow: hidden;
  cursor: pointer;
  transition: width 0.4s cubic-bezier(.4,0,.2,1), background 0.3s ease;
}
.ws-dot::after { content: ""; position: absolute; inset: -10px -4px; }
.ws-dot:hover { background: rgba(18, 22, 58, 0.32); }
.ws-dot.is-active { width: 46px; background: rgba(75, 63, 176, 0.18); }
.ws-dot-fill { position: absolute; inset: 0; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--purple-start)); }
.ws-dot.is-active .ws-dot-fill { animation: wsFill var(--ws-time, 6s) linear forwards; }
@keyframes wsFill { to { width: 100%; } }

/* phones: card on top, words underneath */
@media (max-width: 860px) {
  .ws-grid { grid-template-columns: 1fr; gap: 18px; }
  .ws-stage { height: clamp(240px, 62vw, 380px); }
  .ws-copy { text-align: left; }
  .ws-text { min-height: 170px; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-card, .ws-slide { transition: opacity 0.2s ease; }
}
#why-choose.why--showcase .ws-copy .section-title { margin: 0 0 clamp(22px, 4.5vh, 44px); }
.why--showcase .ws-copy .eyebrow { margin: 0 0 8px; }


/* Showcase v2 (22 Oct): flatter "tablet" angle like the reference, key points */
.ws-card { --pose: rotateX(48deg) rotateY(-14deg) rotateZ(28deg); inset: 4% 8% 14% 6%; }
.ws-stage { perspective: 1400px; }
.ws-glow { transform: rotate(28deg) scaleY(0.7); top: 30%; }
.ws-slide p { font-size: clamp(14.5px, 0.3vw + 11.5px, 16.5px); margin-bottom: clamp(12px, 2.4vh, 22px); }
.ws-slide h3 { margin-bottom: 10px; }
.ws-text { min-height: clamp(300px, 52vh, 440px); align-content: start; }
.ws-points { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(10px, 2vh, 18px); max-width: 500px; }
.ws-points li {
  display: grid;
  grid-template-columns: 26px 1fr;
  gap: 12px;
  align-items: start;
  opacity: 0;
  transform: translateX(-14px);
  transition: opacity 0.45s ease, transform 0.55s cubic-bezier(.2,.8,.2,1);
}
.ws-slide.is-active .ws-points li { opacity: 1; transform: none; transition-delay: calc(0.55s + var(--k) * 0.12s); }
.ws-pt-icon {
  width: 16px; height: 16px;
  margin: 3px 0 0 4px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--ws-c, #4b3fb0), #8f86ff);
  transform: rotate(45deg);
  box-shadow: 0 4px 12px color-mix(in srgb, var(--ws-c, #4b3fb0) 40%, transparent);
}
.ws-points strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--font-display);
  font-size: clamp(14px, 0.25vw + 11.5px, 16px);
  color: var(--navy);
}
.ws-points li span:not(.ws-pt-icon) { font-size: clamp(13px, 0.2vw + 10.5px, 14.5px); line-height: 1.5; color: var(--muted); }
@media (max-height: 640px) and (min-width: 861px) {
  .ws-points li span:not(.ws-pt-icon) { display: none; }
}


/* ================================================================
   Showcase v3 (22 Oct) — wireframe motion: a flat-tilted card rests in
   the bottom-left (hanging over the section edge); on change it travels
   straight up-right across the text and out past the top-right corner,
   while the next card glides in from below-left along the same line.
   --ex / --ey (the travel line) are set by initWhyShow in fx.js.
   ================================================================ */
.why--showcase .ws-grid { position: static; }
.why--showcase .ws-copy { position: relative; z-index: 2; }
.ws-stage { position: static; perspective: none; height: clamp(300px, 58vh, 540px); }
.ws-card {
  --pose: rotate(-28deg);
  inset: auto;
  left: -3%;
  bottom: -8%;
  width: min(46vw, 640px);
  aspect-ratio: 16 / 10;
  z-index: 3;
  transform: translate3d(0, 0, 0) var(--pose);
  opacity: 1;
  transition: transform 1.15s cubic-bezier(.65,.02,.25,1), opacity 0.4s ease;
}
.ws-card:not(.is-active) { pointer-events: none; }
.ws-card.at-in-fwd,
.ws-card.at-out-back { transform: translate3d(calc(var(--ex) * -0.8), calc(var(--ey) * -0.8), 0) var(--pose); opacity: 1; }
.ws-card.at-out-fwd,
.ws-card.at-in-back  { transform: translate3d(var(--ex), var(--ey), 0) var(--pose); opacity: 1; }
/* the travelling card rides above the text */
.ws-card.at-out-fwd, .ws-card.at-out-back { z-index: 6; }
.ws-slab { transform: translate3d(12px, 16px, 0); }
.ws-num { transform: none; }
.ws-glow { left: 0; bottom: 4%; top: auto; right: auto; width: 46%; height: 46%; transform: rotate(-28deg); }
.why--showcase { position: relative; }
.why-show { position: static; }
.ws-stage { position: static; }
.why--showcase > .why-show { position: static; }
/* positioning context for the card = the section */
#why-choose.why--showcase .ws-card { position: absolute; }
/* text: old words leave quickly as the card passes, new words arrive after it */
.ws-slide { transition: opacity 0.3s ease, transform 0.4s ease, filter 0.3s ease; }
.ws-slide.is-active { transition: opacity 0.5s ease, transform 0.6s cubic-bezier(.2,.8,.2,1), filter 0.5s ease; transition-delay: 0.85s; }
.ws-slide.is-active .ws-points li { transition-delay: calc(1.05s + var(--k) * 0.12s); }
@media (max-width: 860px) {
  .ws-card { width: 78vw; left: -6%; bottom: auto; top: 40px; }
  .ws-stage { height: clamp(240px, 62vw, 380px); }
}
/* resting spot: mostly inside, just overhanging the bottom-left edge */
.ws-card { left: 3%; bottom: 7%; width: min(38vw, 540px); }
.ws-glow { left: 4%; bottom: 10%; width: 38%; }
@media (max-width: 860px) { .ws-card { width: 74vw; left: 2%; top: 60px; bottom: auto; } }
/* waiting cards stay invisible; the incoming one fades up as it glides in */
.ws-card.at-in-fwd, .ws-card.at-in-back { opacity: 0; }
@media (max-width: 860px) {
  .ws-card { top: 104px; }
  .why--showcase .ws-stage { height: calc(74vw * 0.62 + 70px); }
}

/* cut out of the box (22 Oct): larger card, overhanging the section's left edge */
.ws-card { left: -9%; bottom: 9%; width: min(52vw, 760px); }
.ws-glow { left: -4%; bottom: 14%; width: 44%; height: 50%; }
@media (max-width: 860px) { .ws-card { width: 92vw; left: -14%; } }
.ws-card { width: min(44vw, 640px); left: -8%; bottom: 3%; }

/* 22 Oct: no number on the card (it's in the text as "01 / 04");
   travelling cards pass UNDER the title and words */
.ws-num { display: none; }
#why-choose.why--showcase .ws-copy { z-index: 8; }
.ws-card.at-out-fwd, .ws-card.at-out-back { z-index: 2; }

/* Why Choose Us card floats gently up and down while it rests (27 Oct).
   Uses the separate "translate" property so it never fights the slide-in. */
.ws-card.is-active { animation: wsFloat 5.5s ease-in-out 1.2s infinite; }
@keyframes wsFloat {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -16px; }
}
@media (prefers-reduced-motion: reduce) { .ws-card.is-active { animation: none; } }


/* ================================================================
   WHY CHOOSE US on phones / tablets (27 Oct): instead of the diagonal
   path, the cards sit side by side and slide sideways. Drag a card with
   your finger (or the mouse): it follows, and letting go swaps it
   (right-to-left = next). script/fx.js sets --mx while dragging.
   ================================================================ */
@media (max-width: 860px) {
  .why--showcase .ws-stage {
    position: relative;
    height: auto;
    aspect-ratio: 16 / 11;
    margin: 0 -24px;
    overflow: visible;
    overflow-x: clip;
    perspective: none;
    touch-action: pan-y;
    cursor: grab;
  }
  .why--showcase .ws-stage.is-dragging { cursor: grabbing; }
  .why--showcase .ws-card {
    --pose: none;
    top: 8%;
    bottom: auto;
    left: 50%;
    width: 82%;
    aspect-ratio: 16 / 10;
    opacity: 1;
    animation: none;
    transform: translateX(calc(-50% + var(--mx, 0px)));
    transition: transform 0.6s cubic-bezier(.22,.9,.32,1), opacity 0.4s ease;
  }
  .why--showcase .ws-stage.is-dragging .ws-card { transition: none; }
  /* forward: the next card comes in from the right, the old one leaves to the left */
  .why--showcase .ws-card.at-in-fwd,
  .why--showcase .ws-card.at-out-back { transform: translateX(65%); opacity: 1; }
  .why--showcase .ws-card.at-out-fwd,
  .why--showcase .ws-card.at-in-back  { transform: translateX(-165%); opacity: 1; }
  .why--showcase .ws-slab { transform: translate3d(6px, 8px, 0); }
  .why--showcase .ws-glow { left: 15%; right: 15%; top: 20%; bottom: 10%; width: auto; height: auto; transform: none; }
}
/* phones / tablets: heading first, then the card, then its words and dots */
@media (max-width: 860px) {
  .why--showcase .ws-grid { gap: 0; }
  .why--showcase .ws-copy { display: contents; }
  .why--showcase .ws-copy > .eyebrow { order: 1; }
  .why--showcase .ws-copy > .section-title { order: 2; margin-bottom: 8px !important; }
  .why--showcase .ws-stage { order: 3; margin-bottom: 10px; }
  .why--showcase .ws-copy > :not(.eyebrow):not(.section-title) { order: 4; }
}
/* 5 Nov: no "01 / 04" counter above each reason */
.ws-slide-num { display: none !important; }

/* 5 Nov — phones / tablets: slower, smoother card slide; words swipeable too */
@media (max-width: 860px) {
  .why--showcase .why-show { touch-action: pan-y; }
  .why--showcase .ws-card {
    transition: transform 0.95s cubic-bezier(.45,.05,.15,1), opacity 0.5s ease;
  }
  .why--showcase .ws-slide.is-active { transition-delay: 0.45s; }
  .why--showcase .ws-slide.is-active .ws-points li { transition-delay: calc(0.6s + var(--k) * 0.1s); }
}
