/* ═══════════════════════════════════════════════════════════
   KORSHOM v2 — Home
   Hero slider · ribbons · bento · services · journey ·
   sectors · impact · work · voices · CTA
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   HERO SLIDER
   ═══════════════════════════════════════════════════ */
.kx-hero {
  --kx-autoplay: 7000ms;
  position: relative;
  height: 100svh;
  min-height: 720px;
  max-height: 1100px;
  background: var(--kx-ink);
  color: var(--kx-white);
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
  user-select: none;
}

.kx-hero-bgs,
.kx-hero-bg,
.kx-hero-canvas,
.kx-hero-grid,
.kx-hero-noise,
.kx-hero-vignette { position: absolute; inset: 0; pointer-events: none; }

.kx-hero-bgs { z-index: -4; }
.kx-hero-bg {
  inset: -6%;
  opacity: 0;
  transform: scale(1.18);
  transition: opacity 1.6s var(--kx-ease-io), transform 9s linear;
}
.kx-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  filter: blur(3px) saturate(1.3) brightness(0.32);
}
.kx-hero-bg.is-active { opacity: 1; transform: scale(1.02); }

.kx-hero-canvas { z-index: -3; width: 100%; height: 100%; mix-blend-mode: screen; opacity: 0.95; }

.kx-hero-grid {
  z-index: -2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 88px 88px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 45%, #000 20%, transparent 80%);
  transform: translate3d(var(--px, 0), var(--py, 0), 0);
}

.kx-hero-noise {
  z-index: -1;
  inset: -50%;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: kx-grain 1.2s steps(6) infinite;
}
@keyframes kx-grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -5%); }
  60% { transform: translate(-6%, -2%); }
  80% { transform: translate(5%, 4%); }
}

.kx-hero-vignette {
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 70% at 50% 40%, transparent 40%, rgba(7, 7, 11, 0.85) 100%),
    linear-gradient(180deg, rgba(7, 7, 11, 0.6) 0%, transparent 22%, transparent 70%, var(--kx-ink) 100%);
}

.kx-hero-bignum {
  position: absolute;
  z-index: -1;
  inset-inline-end: -2vw;
  top: 50%;
  translate: 0 -54%;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(18rem, 42vw, 46rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.06);
  pointer-events: none;
  overflow: hidden;
  transform: translate3d(calc(var(--px, 0px) * -2), calc(var(--py, 0px) * -2), 0);
}
.kx-hero-bignum span { display: block; transition: transform 1s var(--kx-ease), opacity 0.8s; }
.kx-hero-bignum.is-swapping span { transform: translateY(-30%); opacity: 0; transition-duration: 0.45s; }

/* ── Slides ── */
.kx-hero-slides { position: absolute; inset: 0; }
.kx-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-top: calc(var(--nav-h, 90px) + 10px);
  padding-bottom: 150px;
  visibility: hidden;
  pointer-events: none;
}
.kx-slide.is-active,
.kx-slide.is-leaving { visibility: visible; }
.kx-slide.is-active { pointer-events: auto; z-index: 2; }
.kx-slide.is-leaving { z-index: 1; }

.kx-slide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
}
.kx-slide-copy { position: relative; z-index: 2; }

/* split text: words (and chars for LTR) rise through a mask */
.kx-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-block: 0.06em 0.1em;
  margin-block: -0.06em -0.1em;
}
.kx-w > span {
  display: inline-block;
  transform: translateY(115%) rotate(7deg);
  transform-origin: 0 100%;
  transition: transform 1.05s var(--kx-ease) calc(var(--d, 0) * 1ms + 250ms);
}
.kx-c { display: inline-block; transform: translateY(115%) rotate(10deg); transition: transform 1s var(--kx-ease) calc(var(--d, 0) * 1ms + 250ms); }
.kx-w > span:has(.kx-c) { transform: none; }
.kx-slide.is-active .kx-w > span,
.kx-slide.is-active .kx-c { transform: none; }
.kx-slide.is-leaving .kx-w > span,
.kx-slide.is-leaving .kx-c {
  transform: translateY(-115%) rotate(-4deg);
  transition-duration: 0.6s;
  transition-delay: calc(var(--d, 0) * 0.35ms);
  transition-timing-function: var(--kx-ease-io);
}
.kx-slide.is-leaving .kx-w > span:has(.kx-c) { transform: none; }

[data-kx-anim] {
  opacity: 0;
  transform: translateY(34px);
  filter: blur(10px);
  transition:
    opacity 0.9s var(--kx-ease) calc(var(--d, 0) * 1ms),
    transform 0.9s var(--kx-ease) calc(var(--d, 0) * 1ms),
    filter 0.9s var(--kx-ease) calc(var(--d, 0) * 1ms);
}
.kx-slide.is-active [data-kx-anim] { opacity: 1; transform: none; filter: none; }
.kx-slide.is-leaving [data-kx-anim] {
  opacity: 0;
  transform: translateY(-24px);
  filter: blur(8px);
  transition-duration: 0.5s;
  transition-delay: 0ms;
}

[data-kx-visual] {
  clip-path: inset(100% 0 0 0 round 32px);
  transition: clip-path 1.3s var(--kx-ease-io) 0.15s;
}
.kx-slide.is-active [data-kx-visual] { clip-path: inset(-30% -30% -30% -30% round 32px); }
.kx-slide.is-leaving [data-kx-visual] { clip-path: inset(0 0 100% 0 round 32px); transition-duration: 0.8s; transition-delay: 0s; }
.kx-slide.is-entering-back [data-kx-visual] { clip-path: inset(0 0 100% 0 round 32px); }
.kx-slide.is-leaving-back [data-kx-visual] { clip-path: inset(100% 0 0 0 round 32px); }

/* pill */
.kx-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 14px;
  padding-inline: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 28px;
}
.kx-pill-sep { opacity: 0.35; }
.kx-pill-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--kx-volt);
  box-shadow: 0 0 12px var(--kx-volt);
  flex: none;
}
.kx-pill-dot::after {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid var(--kx-volt);
  animation: kx-ping 2s var(--kx-ease) infinite;
}
.kx-pill--violet .kx-pill-dot { background: var(--kx-violet-2); box-shadow: 0 0 12px var(--kx-violet); }
.kx-pill--violet .kx-pill-dot::after { border-color: var(--kx-violet-2); }
@keyframes kx-ping { 0% { transform: scale(0.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }

/* titles */
.kx-slide-title {
  margin: 0 0 26px;
  font-family: var(--kx-display);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
}
.kx-slide-title > span { display: block; }
.kx-slide-title--project { font-size: clamp(2.6rem, 5.6vw, 5.8rem); text-wrap: balance; }
html[lang^="ar"] .kx-slide-title { letter-spacing: 0; line-height: 1.2; font-weight: 700; }

.kx-slide-sub {
  margin-top: 0.3em;
  font-size: clamp(1.3rem, 2.3vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.55);
}

.kx-rotator {
  display: inline-flex !important;
  align-items: baseline;
  gap: 0.08em;
  font-size: 0.82em;
  margin-top: 0.08em;
  direction: ltr;
}
.kx-rotator-bracket { color: var(--kx-violet-2); font-weight: 600; opacity: 0.8; }
.kx-rotator-word {
  display: inline-block;
  color: var(--kx-volt);
  text-shadow: 0 0 40px rgba(215, 255, 58, 0.35);
  transition: transform 0.6s var(--kx-ease), opacity 0.4s, filter 0.5s;
}
.kx-rotator-word.is-out { transform: translateY(-40%) rotateX(80deg); opacity: 0; filter: blur(6px); transition-duration: 0.35s; }
.kx-rotator-word.is-in { transform: translateY(40%) rotateX(-80deg); opacity: 0; filter: blur(6px); transition: none; }

.kx-slide-desc {
  max-width: 54ch;
  margin: 0 0 36px;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.75;
  color: rgba(238, 237, 246, 0.68);
}

.kx-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.kx-hero .kx-btn--ghost { --fg: #fff; --hover-bg: #fff; border-color: rgba(255, 255, 255, 0.2); }
.kx-hero .kx-btn--ghost:hover { color: var(--kx-ink); }

.kx-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 34px!important; }
.kx-chips li {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(169, 150, 255, 0.35);
  background: rgba(139, 108, 255, 0.12);
  color: var(--kx-violet-2);
  font-family: var(--kx-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.kx-hero-stats {
  display: flex;
  gap: 0;
  margin: 46px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 560px;
}
.kx-hero-stats > div { flex: 1; padding-inline-end: 22px; }
.kx-hero-stats > div + div { padding-inline-start: 22px; border-inline-start: 1px solid rgba(255, 255, 255, 0.1); }
.kx-hero-stats dt {
  font-family: 'Sora', var(--kx-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 2.6vw, 2.6rem);
  line-height: 1;
  color: #fff;
}
.kx-hero-stats dt em { font-style: normal; color: var(--kx-volt); }
.kx-hero-stats dd { margin: 8px 0 0; font-size: 0.8rem; color: rgba(255, 255, 255, 0.5); }

/* ── Orb visual (intro slide) ── */
.kx-orb-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(560px, 100%);
  justify-self: center;
  transform: translate3d(calc(var(--px, 0px) * 1.6), calc(var(--py, 0px) * 1.6), 0);
}
.kx-orb { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.kx-orb-core {
  position: relative;
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(from 0deg, var(--kx-violet), var(--kx-pink), var(--kx-volt), var(--kx-cyan), var(--kx-violet));
  animation: kx-spin 9s linear infinite;
  box-shadow: 0 0 120px rgba(139, 108, 255, 0.55), 0 0 60px rgba(215, 255, 58, 0.25);
}
.kx-orb-core::before {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1d1a2e, var(--kx-ink) 70%);
}
.kx-orb-core::after {
  content: '';
  position: absolute;
  inset: -30%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--kx-violet), var(--kx-pink), var(--kx-volt), var(--kx-violet));
  filter: blur(60px);
  opacity: 0.45;
  z-index: -1;
}
.kx-orb-glyph {
  position: relative;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(2rem, 4.4vw, 4rem);
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #fff, var(--kx-volt));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: kx-spin 9s linear infinite reverse;
}
.kx-orb-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.kx-orb-ring--1 { inset: 20%; border-style: dashed; border-color: rgba(169, 150, 255, 0.35); animation: kx-spin 30s linear infinite; }
.kx-orb-ring--2 { inset: 6%; animation: kx-spin 50s linear infinite reverse; }
.kx-orb-ring--2::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--kx-volt);
  box-shadow: 0 0 20px var(--kx-volt);
}
.kx-orb-ring--3 { inset: -6%; border-color: rgba(255, 255, 255, 0.05); }
.kx-orb-orbit {
  position: absolute;
  inset: 0;
  animation: kx-spin 40s linear infinite;
}
.kx-orb-tag {
  --a: calc(360deg / var(--n) * var(--i));
  position: absolute;
  top: 50%;
  left: 50%;
  transform: rotate(var(--a)) translateX(min(232px, 41vw)) rotate(calc(var(--a) * -1));
}
.kx-orb-tag b {
  display: block;
  translate: -50% -50%;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(20, 19, 29, 0.75);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-family: var(--kx-mono);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
  animation: kx-spin 40s linear infinite reverse;
}
.kx-orb-tag:nth-child(odd) b { color: var(--kx-volt); border-color: rgba(215, 255, 58, 0.25); }
@keyframes kx-spin { to { rotate: 360deg; } }

.kx-float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px 12px 12px;
  padding-inline: 12px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(20, 19, 29, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  animation: kx-float 6s ease-in-out infinite;
}
.kx-float-card strong { display: block; font-family: 'Sora', sans-serif; font-size: 1.3rem; line-height: 1; color: #fff; }
.kx-float-card small { font-size: 0.72rem; color: rgba(255, 255, 255, 0.55); }
.kx-float-card--a { top: 12%; inset-inline-start: -2%; }
.kx-float-card--b { bottom: 10%; inset-inline-end: -2%; animation-delay: -3s; }
.kx-float-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--kx-volt);
  color: var(--kx-ink);
  font-size: 1.1rem;
}
.kx-float-ico--violet { background: var(--kx-violet); color: #fff; }
@keyframes kx-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -16px; } }

/* ── Device visual (project slides) ── */
.kx-slide--project .kx-slide-visual {
  position: relative;
  perspective: 1800px;
  transform: translate3d(calc(var(--px, 0px) * 1.4), calc(var(--py, 0px) * 1.4), 0);
}
.kx-device {
  position: relative;
  display: block;
  border-radius: 20px;
  background: #0d0c14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 50px 120px -30px rgba(139, 108, 255, 0.6),
    0 30px 60px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotateY(-16deg) rotateX(8deg) rotateZ(1deg);
  transform-style: preserve-3d;
  transition: transform 1.2s var(--kx-ease);
  overflow: hidden;
}
html[dir="rtl"] .kx-device { transform: rotateY(16deg) rotateX(8deg) rotateZ(-1deg); }
.kx-device:hover { transform: rotateY(-6deg) rotateX(3deg); }
html[dir="rtl"] .kx-device:hover { transform: rotateY(6deg) rotateX(3deg); }
.kx-device-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 40px;
  padding-inline: 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.03);
}
.kx-device-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; }
.kx-device-bar i:nth-child(2) { background: #febc2e; }
.kx-device-bar i:nth-child(3) { background: #28c840; }
.kx-device-url {
  margin-inline: auto;
  padding: 4px 18px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--kx-mono);
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.55);
  direction: ltr;
}
.kx-device-screen {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10.5;
  overflow: hidden;
  container-type: size;
}
.kx-device-screen img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top;
}
.kx-slide.is-active .kx-device-screen img { animation: kx-scrollshot 16s ease-in-out 1.4s infinite alternate; }
@keyframes kx-scrollshot {
  0%, 8% { transform: translateY(0); }
  92%, 100% { transform: translateY(calc(-100% + 100cqh)); }
}
.kx-device::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.12) 0%, transparent 32%);
  pointer-events: none;
}
.kx-device-shadow {
  position: absolute;
  inset: auto 10% -50px;
  height: 60px;
  background: radial-gradient(ellipse, rgba(139, 108, 255, 0.5), transparent 70%);
  filter: blur(20px);
}

/* ── Hero UI bar ── */
.kx-hero-ui {
  position: absolute;
  z-index: 5;
  inset: auto 0 0;
  padding-bottom: clamp(24px, 3.5vh, 40px);
}
.kx-hero-ui-inner {
  display: flex;
  align-items: flex-end;
  gap: clamp(20px, 3vw, 48px);
}
.kx-counter {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  line-height: 1;
  flex: none;
  direction: ltr;
}
.kx-counter-current {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  color: #fff;
}
.kx-counter-current span { display: block; transition: transform 0.7s var(--kx-ease); }
.kx-counter-current.is-swapping span { transform: translateY(-100%); transition-duration: 0.3s; }
.kx-counter-total { font-size: 0.95rem; color: rgba(255, 255, 255, 0.4); }

.kx-tabs {
  flex: 1;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 14px;
  min-width: 0;
}
.kx-tab {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: start;
  padding: 10px 0 2px;
  min-width: 0;
}
.kx-tab-bar {
  position: relative;
  display: block;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.kx-tab-bar i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--kx-violet), var(--kx-volt));
  transform: scaleX(0);
  transform-origin: left;
}
html[dir="rtl"] .kx-tab-bar i { transform-origin: right; }
.kx-tab.is-done .kx-tab-bar i { transform: scaleX(1); opacity: 0.35; }
.kx-tab.is-active .kx-tab-bar i { animation: kx-fill var(--kx-autoplay) linear forwards; }
.kx-hero.is-paused .kx-tab.is-active .kx-tab-bar i { animation-play-state: paused; }
@keyframes kx-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.kx-tab-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.4s;
}
.kx-tab:hover .kx-tab-label,
.kx-tab.is-active .kx-tab-label { color: #fff; }

.kx-arrows { display: flex; gap: 10px; flex: none; }
.kx-arrow {
  position: relative;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #fff !important;
  font-size: 1.15rem;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.3s, color 0.3s;
}
html[dir="rtl"] .kx-arrow span { display: inline-block; transform: scaleX(-1); }
.kx-arrow::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--kx-volt);
  transform: scale(0);
  transition: transform 0.45s var(--kx-ease);
}
.kx-arrow:hover { color: var(--kx-ink) !important; border-color: var(--kx-volt) !important; }
.kx-arrow:hover::before { transform: scale(1); }

.kx-scroll-cue {
  position: absolute;
  z-index: 5;
  inset-inline-end: clamp(16px, 4vw, 56px);
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
}
.kx-scroll-mouse {
  width: 26px;
  height: 42px;
  border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: center;
  padding-top: 8px;
}
.kx-scroll-mouse i {
  width: 3px;
  height: 8px;
  border-radius: 3px;
  background: var(--kx-volt);
  animation: kx-wheel 1.8s var(--kx-ease) infinite;
}
@keyframes kx-wheel { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(14px); opacity: 0; } }

/* ═══════════════════════════════════════════════════
   RIBBONS
   ═══════════════════════════════════════════════════ */
.kx-ribbons {
  position: relative;
  z-index: 3;
  height: clamp(150px, 16vw, 220px);
  margin-top: -40px;
  overflow: hidden;
  display: grid;
  place-items: center;
}
.kx-ribbon {
  position: absolute;
  width: 110%;
  left: -5%;
  padding: 18px 0;
  overflow: hidden;
  direction: ltr;
}
.kx-ribbon--violet {
  background: var(--kx-violet);
  color: #fff;
  transform: rotate(-3deg);
  box-shadow: 0 20px 60px rgba(139, 108, 255, 0.35);
}
.kx-ribbon--volt {
  background: var(--kx-volt);
  color: var(--kx-ink);
  transform: rotate(2.5deg);
  box-shadow: 0 20px 60px rgba(215, 255, 58, 0.2);
}
.kx-ribbon-track { display: flex; width: max-content; animation: kx-marquee 46s linear infinite; }
.kx-ribbon-track--rev { animation-direction: reverse; animation-duration: 52s; }
.kx-ribbon-track > div { display: flex; align-items: center; flex: none; }
.kx-ribbon span {
  font-family: var(--kx-display);
  font-weight: 600;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-inline: 28px;
}
.kx-ribbon i { font-style: normal; font-size: 1.1rem; opacity: 0.8; }
.kx-ribbons:hover .kx-ribbon-track { animation-play-state: paused; }
@keyframes kx-marquee { to { transform: translateX(-50%); } }

/* ═══════════════════════════════════════════════════
   ABOUT — BENTO
   ═══════════════════════════════════════════════════ */
.kx-bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(150px, auto);
  gap: 16px;
  grid-template-areas:
    "photo photo story story story s1"
    "photo photo story story story s2"
    "photo photo sub stack stack stack"
    "cta cta sub stack stack stack";
}
.kx-cell {
  position: relative;
  margin: 0;
  border-radius: var(--kx-radius);
  background: var(--kx-card);
  border: 1px solid var(--kx-line);
  padding: clamp(24px, 2.6vw, 36px);
  overflow: hidden;
}
.kx-cell--photo { grid-area: photo; padding: 0; min-height: 520px; }
.kx-cell--story { grid-area: story; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.kx-cell--volt { grid-area: s1; }
.kx-cell--violet { grid-area: s2; }
.kx-cell--sub { grid-area: sub; padding: 0; }
.kx-cell--stack { grid-area: stack; }
.kx-cell--cta { grid-area: cta; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: linear-gradient(140deg, rgba(139, 108, 255, 0.14), transparent 60%), var(--kx-card); }

.kx-cell--photo img,
.kx-cell--sub img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--kx-ease), filter 0.8s;
  filter: saturate(0.85);
}
.kx-cell--photo:hover img,
.kx-cell--sub:hover img { transform: scale(1.06); filter: saturate(1.1); }
.kx-cell--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 7, 11, 0.75));
}
.kx-cell--photo figcaption {
  position: absolute;
  z-index: 3;
  inset: auto 20px 20px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(7, 7, 11, 0.55);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
}

.kx-cell-kicker {
  font-family: var(--kx-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kx-muted);
}
.kx-lead {
  margin: 0;
  font-family: var(--kx-display);
  font-weight: 600;
  font-size: clamp(1.25rem, 1.9vw, 1.75rem);
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--kx-fg);
}
html[lang^="ar"] .kx-lead { letter-spacing: 0; line-height: 1.6; }
.kx-cell--story p:not(.kx-lead) { margin: 0; color: var(--kx-muted); line-height: 1.8; }

.kx-cell--stat {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  border: 0;
}
.kx-cell--stat strong {
  font-family: 'Sora', var(--kx-display);
  font-weight: 600;
  font-size: clamp(3rem, 5vw, 4.6rem);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.kx-cell--stat span { font-weight: 700; font-size: 0.92rem; }
.kx-cell--volt { background: var(--kx-volt); color: var(--kx-ink); }
.kx-cell--violet { background: var(--kx-violet); color: #fff; }
.kx-cell--stat::before {
  content: '↗';
  position: absolute;
  top: 22px;
  inset-inline-end: 24px;
  font-size: 1.3rem;
  opacity: 0.6;
}

.kx-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.kx-tags li,
.kx-tags span {
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--kx-line-strong);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--kx-fg-soft);
  transition: background 0.3s, color 0.3s, border-color 0.3s, transform 0.3s var(--kx-ease);
}
.kx-tags li:hover { background: var(--kx-volt); color: var(--kx-ink); border-color: var(--kx-volt); transform: translateY(-3px) rotate(-2deg); }
.kx-tags--sm span { padding: 6px 12px; font-size: 0.74rem; font-family: var(--kx-mono); }

/* ═══════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════ */
.kx-services { background: var(--kx-bg-2); }
.kx-svc-list { border-bottom: 1px solid var(--kx-line-strong); }
.kx-home .kx-svc {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 1.15fr) minmax(0, 1fr) 70px 64px;
  align-items: center;
  gap: 28px;
  padding: clamp(26px, 3vw, 40px) 0;
  border-top: 1px solid var(--kx-line-strong);
  isolation: isolate;
  transition: padding 0.6s var(--kx-ease), color 0.5s;
}
.kx-svc::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0 -24px;
  border-radius: 24px;
  background: var(--kx-volt);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.6s var(--kx-ease), border-radius 0.6s;
}
.kx-svc:hover::before { transform: scaleY(1); }
.kx-svc:hover { color: var(--kx-ink); padding-inline: 20px; }
.kx-svc-num { font-family: var(--kx-mono); font-size: 0.85rem; color: var(--kx-muted); transition: color 0.4s; }
.kx-svc-name {
  font-family: var(--kx-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 3.2rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
html[lang^="ar"] .kx-svc-name { letter-spacing: 0; line-height: 1.3; }
.kx-svc-desc { color: var(--kx-muted); line-height: 1.7; transition: color 0.4s; }
.kx-svc:hover .kx-svc-num,
.kx-svc:hover .kx-svc-desc { color: rgba(7, 7, 11, 0.72); }
.kx-svc-icon {
  font-size: 2rem;
  text-align: center;
  transform: scale(0.6) rotate(-20deg);
  opacity: 0.35;
  transition: transform 0.6s var(--kx-ease), opacity 0.4s;
}
.kx-svc:hover .kx-svc-icon { transform: scale(1.15) rotate(0); opacity: 1; }
.kx-svc-go {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 1px solid var(--kx-line-strong);
  font-size: 1.3rem;
  transition: transform 0.6s var(--kx-ease), background 0.4s, color 0.4s, border-color 0.4s;
}
html[dir="rtl"] .kx-svc-go { transform: scaleX(-1); }
.kx-svc:hover .kx-svc-go { background: var(--kx-ink); color: var(--kx-volt); border-color: var(--kx-ink); transform: rotate(45deg); }
html[dir="rtl"] .kx-svc:hover .kx-svc-go { transform: scaleX(-1) rotate(45deg); }

/* ═══════════════════════════════════════════════════
   JOURNEY — pinned horizontal scroll
   ═══════════════════════════════════════════════════ */
.kx-journey {
  position: relative;
  background: var(--kx-ink);
  color: var(--kx-white);
  --kx-fg: #eeedf6;
  --kx-muted: #8c8aa3;
  --kx-line: rgba(255, 255, 255, 0.08);
  --kx-line-strong: rgba(255, 255, 255, 0.16);
  --kx-fg-soft: rgba(238, 237, 246, 0.74);
  --kx-accent: #a996ff;
  --kx-card: #12111a;
}
.kx-journey.is-pinned { height: calc(100vh + var(--travel, 0px)); }
.kx-journey-pin {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(28px, 4vh, 48px);
  padding-block: clamp(88px, 10vw, 140px);
  overflow: hidden;
}
.kx-journey.is-pinned .kx-journey-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  padding-block: calc(var(--nav-h, 90px) + 10px) 40px;
}
.kx-journey::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 50% at 15% 20%, rgba(139, 108, 255, 0.22), transparent 70%),
    radial-gradient(35% 40% at 90% 85%, rgba(215, 255, 58, 0.08), transparent 70%);
  pointer-events: none;
}
.kx-journey-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
}
.kx-journey-head .kx-title { font-size: clamp(2.2rem, 4.4vw, 4.4rem); }
.kx-journey-viewport { position: relative; overflow: visible; }
.kx-journey-track {
  display: flex;
  gap: 20px;
  padding-inline: max(clamp(16px, 4vw, 56px), (100vw - 1320px) / 2);
  width: max-content;
  transform: translate3d(var(--x, 0px), 0, 0);
  will-change: transform;
}
.kx-journey:not(.is-pinned) .kx-journey-viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.kx-journey:not(.is-pinned) .kx-journey-viewport::-webkit-scrollbar { display: none; }
.kx-journey:not(.is-pinned) .kx-jcard { scroll-snap-align: center; }

.kx-jcard {
  position: relative;
  flex: none;
  width: min(460px, 82vw);
  padding: clamp(26px, 2.6vw, 38px);
  border-radius: var(--kx-radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.4s, transform 0.6s var(--kx-ease);
}
.kx-jcard:hover { border-color: rgba(215, 255, 58, 0.4); transform: translateY(-6px); }
.kx-jcard-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.kx-jcard-num {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 3.2rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(215, 255, 58, 0.7);
}
.kx-jcard-period {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(139, 108, 255, 0.16);
  color: var(--kx-violet-2);
  font-family: var(--kx-mono);
  font-size: 0.72rem;
  direction: ltr;
}
.kx-jcard h3 {
  margin: 0;
  font-family: var(--kx-display);
  font-size: clamp(1.4rem, 1.8vw, 1.7rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}
.kx-jcard-company { margin: 0; color: var(--kx-volt); font-weight: 700; font-size: 0.92rem; }
.kx-jcard-summary { margin: 0; color: rgba(238, 237, 246, 0.65); line-height: 1.7; font-size: 0.94rem; }
.kx-jcard-bullets { display: grid; gap: 8px; margin: 4px 0 6px !important; }
.kx-jcard-bullets li {
  position: relative;
  padding-inline-start: 20px;
  font-size: 0.86rem;
  line-height: 1.6;
  color: rgba(238, 237, 246, 0.55);
}
.kx-jcard-bullets li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 8px;
  height: 2px;
  background: var(--kx-volt);
}
.kx-jcard .kx-tags { margin-top: auto; padding-top: 10px; }
.kx-jcard .kx-tags span { color: rgba(238, 237, 246, 0.7); border-color: rgba(255, 255, 255, 0.12); }

.kx-journey-progress {
  position: relative;
  height: 2px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  overflow: hidden;
}
.kx-journey-progress i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--kx-violet), var(--kx-volt));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
html[dir="rtl"] .kx-journey-progress i { transform-origin: right; }

/* ═══════════════════════════════════════════════════
   SECTORS — expanding panels
   ═══════════════════════════════════════════════════ */
.kx-panels {
  display: flex;
  gap: 12px;
  height: clamp(460px, 62vh, 620px);
}
.kx-home .kx-panel {
  position: relative;
  flex: 1;
  min-width: 0;
  border-radius: var(--kx-radius);
  overflow: hidden;
  isolation: isolate;
  text-align: start;
  color: #fff;
  background: var(--kx-ink-3);
  transition: flex 0.9s var(--kx-ease);
}
.kx-panel.is-open { flex: 4.2; }
.kx-panel img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.55);
  transform: scale(1.15);
  transition: filter 1s, transform 1.4s var(--kx-ease);
}
.kx-panel.is-open img { filter: grayscale(0) brightness(0.8); transform: scale(1); }
.kx-panel-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(7, 7, 11, 0.2) 0%, transparent 35%, rgba(7, 7, 11, 0.92) 100%),
    linear-gradient(140deg, rgba(139, 108, 255, 0.25), transparent 50%);
}
.kx-panel-num {
  position: absolute;
  top: 24px;
  inset-inline-start: 24px;
  font-family: var(--kx-mono);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}
.kx-panel-icon {
  position: absolute;
  top: 18px;
  inset-inline-end: 18px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 1.3rem;
  transition: background 0.5s, transform 0.8s var(--kx-ease);
}
.kx-panel.is-open .kx-panel-icon { background: var(--kx-volt); transform: rotate(360deg); }
.kx-panel-vtitle {
  position: absolute;
  bottom: 28px;
  left: 50%;
  writing-mode: vertical-rl;
  transform: translateX(-50%) rotate(180deg);
  font-family: var(--kx-display);
  font-weight: 700;
  font-size: 1.25rem;
  white-space: nowrap;
  transition: opacity 0.4s;
}
html[lang^="ar"] .kx-panel-vtitle { transform: translateX(-50%); }
.kx-panel.is-open .kx-panel-vtitle { opacity: 0; }
.kx-panel-body {
  position: absolute;
  inset: auto 0 0;
  padding: clamp(24px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.4s, transform 0.6s var(--kx-ease);
}
.kx-panel.is-open .kx-panel-body { opacity: 1; transform: none; transition-delay: 0.35s; }
.kx-panel-body strong {
  font-family: var(--kx-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
html[lang^="ar"] .kx-panel-body strong { letter-spacing: 0; line-height: 1.3; }
.kx-panel-body span { color: rgba(255, 255, 255, 0.75); line-height: 1.7; font-size: 1rem; }

/* ═══════════════════════════════════════════════════
   IMPACT — stats + why
   ═══════════════════════════════════════════════════ */
.kx-impact { overflow: hidden; }
.kx-impact-glow {
  position: absolute;
  top: 10%;
  left: 50%;
  width: min(900px, 120vw);
  aspect-ratio: 1;
  translate: -50% 0;
  border-radius: 50%;
  background: conic-gradient(from 90deg, rgba(139, 108, 255, 0.25), rgba(255, 92, 138, 0.12), rgba(215, 255, 58, 0.15), rgba(139, 108, 255, 0.25));
  filter: blur(100px);
  opacity: 0.6;
  animation: kx-spin 30s linear infinite;
  pointer-events: none;
}
html:not([data-theme="dark"]) .kx-impact-glow { opacity: 0.35; }
.kx-stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  border-top: 1px solid var(--kx-line-strong);
  border-bottom: 1px solid var(--kx-line-strong);
}
.kx-stat { padding: clamp(28px, 3.4vw, 48px) clamp(16px, 2vw, 28px); text-align: center; }
.kx-stat + .kx-stat { border-inline-start: 1px solid var(--kx-line-strong); }
.kx-stat-num {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(3.4rem, 7.5vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, var(--kx-fg) 30%, var(--kx-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  direction: ltr;
}
.kx-stat-num em { font-style: normal; background: linear-gradient(135deg, var(--kx-volt), #9be000); -webkit-background-clip: text; background-clip: text; }
html:not([data-theme="dark"]) .kx-stat-num em { background: linear-gradient(135deg, var(--kx-violet), var(--kx-pink)); -webkit-background-clip: text; background-clip: text; }
.kx-stat-label { margin-top: 14px; color: var(--kx-muted); font-weight: 600; }

.kx-why {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  margin-top: clamp(80px, 10vw, 140px);
  align-items: start;
}
.kx-why-head { position: sticky; top: calc(var(--nav-h, 90px) + 40px); }
.kx-why-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kx-why-card {
  position: relative;
  padding: 30px;
  border-radius: 24px;
  background: var(--kx-card);
  border: 1px solid var(--kx-line);
  min-height: 210px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  transition: transform 0.6s var(--kx-ease), border-color 0.4s;
}
.kx-why-card:nth-child(even) { translate: 0 40px; }
.kx-why-card:hover { transform: translateY(-8px); border-color: var(--kx-accent); }
.kx-why-num {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--kx-ink);
  color: var(--kx-volt);
  font-family: var(--kx-mono);
  font-weight: 700;
  font-size: 0.85rem;
}
.kx-why-card p { margin: 0; font-size: 1.08rem; line-height: 1.6; font-weight: 600; color: var(--kx-fg); }

/* ═══════════════════════════════════════════════════
   VOICES — testimonials
   ═══════════════════════════════════════════════════ */
.kx-voices-score { flex-direction: row; align-items: center; gap: 18px; }
.kx-voices-score strong {
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(3.4rem, 5vw, 4.6rem);
  line-height: 1;
  letter-spacing: -0.035em;
}
.kx-voices-score span { display: flex; flex-direction: column; gap: 4px; color: var(--kx-muted); font-size: 0.9rem; }
.kx-voices-score b { color: #f5b301; letter-spacing: 0.12em; font-size: 1.1rem; }

.kx-voices-stage {
  position: relative;
  padding: clamp(32px, 5vw, 72px);
  border-radius: 36px;
  background:
    radial-gradient(70% 90% at 100% 0%, rgba(139, 108, 255, 0.28), transparent 60%),
    radial-gradient(50% 70% at 0% 100%, rgba(215, 255, 58, 0.1), transparent 60%),
    var(--kx-ink-2);
  color: #fff;
  overflow: hidden;
}
.kx-voices-mark {
  position: absolute;
  top: -0.15em;
  inset-inline-end: 0.08em;
  font-family: 'Sora', serif;
  font-weight: 600;
  font-size: clamp(14rem, 26vw, 24rem);
  line-height: 1;
  color: var(--kx-volt);
  opacity: 0.12;
  pointer-events: none;
}
.kx-voices-quotes { display: grid; min-height: 220px; }
.kx-quote {
  grid-area: 1 / 1;
  margin: 0;
  opacity: 0;
  transform: translateY(30px);
  filter: blur(8px);
  transition: opacity 0.7s var(--kx-ease), transform 0.9s var(--kx-ease), filter 0.7s;
  pointer-events: none;
}
.kx-quote.is-active { opacity: 1; transform: none; filter: none; pointer-events: auto; transition-delay: 0.25s; }
.kx-quote p {
  margin: 0;
  max-width: 30ch;
  font-family: var(--kx-display);
  font-weight: 600;
  font-size: clamp(1.5rem, 2.9vw, 2.6rem);
  line-height: 1.3;
  letter-spacing: -0.02em;
  text-wrap: pretty;
}
html[lang^="ar"] .kx-quote p { letter-spacing: 0; line-height: 1.7; max-width: 40ch; }

.kx-voices-people {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: clamp(32px, 4vw, 56px);
}
.kx-home .kx-person {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: start;
  overflow: hidden;
  color: #fff;
  transition: background 0.4s, border-color 0.4s;
}
.kx-person:hover { background: rgba(255, 255, 255, 0.07); }
.kx-person.is-active { border-color: rgba(215, 255, 58, 0.45); background: rgba(215, 255, 58, 0.06); }
.kx-person-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kx-violet), var(--kx-pink));
  font-family: var(--kx-display);
  font-weight: 600;
  font-size: 1.05rem;
}
.kx-person.is-active .kx-person-avatar { background: var(--kx-volt); color: var(--kx-ink); }
.kx-person-copy { display: flex; flex-direction: column; min-width: 0; }
.kx-person-copy strong { font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-person-copy small { color: rgba(255, 255, 255, 0.5); font-size: 0.78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kx-person-bar { position: absolute; inset: auto 0 0; height: 2px; }
.kx-person-bar i { position: absolute; inset: 0; background: var(--kx-volt); transform: scaleX(0); transform-origin: left; }
html[dir="rtl"] .kx-person-bar i { transform-origin: right; }
.kx-person.is-active .kx-person-bar i { animation: kx-fill var(--kx-autoplay, 6500ms) linear forwards; }
.kx-voices-stage.is-paused .kx-person.is-active .kx-person-bar i { animation-play-state: paused; }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .kx-bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-areas:
      "photo photo story story"
      "photo photo story story"
      "s1 s2 sub sub"
      "stack stack sub sub"
      "cta cta cta cta";
  }
  .kx-cell--photo { min-height: 460px; }
  .kx-home .kx-svc { grid-template-columns: 50px minmax(0, 1fr) 56px; }
  .kx-svc-desc,
  .kx-svc-icon { display: none; }
  .kx-why { grid-template-columns: 1fr; }
  .kx-why-head { position: static; }
}

@media (max-width: 900px) {
  .kx-hero { height: auto; min-height: 100svh; max-height: none; }
  .kx-hero-slides { position: relative; display: grid; min-height: 100svh; }
  .kx-slide { position: relative; grid-area: 1 / 1; padding-top: calc(var(--nav-h, 90px) + 24px); padding-bottom: 170px; align-items: flex-start; }
  .kx-slide-layout { grid-template-columns: 1fr; gap: 36px; }
  .kx-orb-stage { position: absolute; inset: 8% -30% auto auto; width: 120vw; opacity: 0.28; z-index: -1; pointer-events: none; }
  html[dir="rtl"] .kx-orb-stage { inset: 8% auto auto -30%; }
  .kx-float-card,
  .kx-orb-orbit { display: none; }
  .kx-slide--project .kx-slide-visual { max-width: 520px; width: 100%; }
  .kx-device { transform: none !important; }
  .kx-hero-bignum { font-size: 60vw; top: 30%; }
  .kx-scroll-cue { display: none; }
  .kx-tab-label { display: none; }
  .kx-hero-ui-inner { align-items: center; }
  .kx-arrow { width: 48px; height: 48px; }
  .kx-head--split,
  .kx-journey-head,
  .kx-cta-inner { flex-direction: column; align-items: flex-start; }
  .kx-panels { flex-direction: column; height: auto; }
  .kx-home .kx-panel { flex: none; height: 92px; transition: height 0.8s var(--kx-ease); }
  .kx-panel.is-open { height: 400px; }
  .kx-panel-vtitle {
    writing-mode: horizontal-tb;
    transform: none !important;
    left: auto;
    inset-inline-start: 64px;
    top: 50%;
    bottom: auto;
    translate: 0 -50%;
    font-size: 1.1rem;
  }
  .kx-panel-num { top: 50%; translate: 0 -50%; }
  .kx-panel.is-open .kx-panel-num { top: 24px; translate: none; }
  .kx-panel-icon { top: 50%; translate: 0 -50%; width: 44px; height: 44px; }
  .kx-panel.is-open .kx-panel-icon { top: 18px; translate: none; }
}

@media (max-width: 640px) {
  .kx-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "photo photo"
      "story story"
      "s1 s2"
      "sub sub"
      "stack stack"
      "cta cta";
  }
  .kx-cell--photo { min-height: 380px; }
  .kx-cell--sub { min-height: 240px; }
  .kx-slide-title { font-size: clamp(2.5rem, 12vw, 3.4rem); }
  .kx-slide-title--project { font-size: clamp(2.1rem, 10vw, 2.8rem); }
  .kx-hero-stats > div { padding-inline-end: 12px; }
  .kx-hero-stats > div + div { padding-inline-start: 12px; }
  .kx-hero-stats dd { font-size: 0.72rem; }
  .kx-home .kx-btn { height: 52px; font-size: 0.9rem; }
  .kx-counter-total { display: none; }
  .kx-tabs { gap: 6px; }
  .kx-why-grid { grid-template-columns: 1fr; }
  .kx-why-card:nth-child(even) { translate: none; }
  .kx-stat + .kx-stat { border-inline-start: 0; border-top: 1px solid var(--kx-line-strong); }
  .kx-voices-score { flex-direction: row; }
}

@media (prefers-reduced-motion: reduce) {
  .kx-home *,
  .kx-home *::before,
  .kx-home *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .kx-tab.is-active .kx-tab-bar i { transform: scaleX(1); }
}

/* ── Hero fit tuning ───────────────────────────────── */
.kx-w { white-space: nowrap; }
@media (min-width: 901px) { .kx-slide-layout { grid-template-columns: minmax(0, 1.22fr) minmax(0, 0.78fr); } }
.kx-slide-title { font-size: clamp(2.8rem, 5.3vw, 5.6rem); margin-bottom: 22px; }
.kx-slide-title--project { font-size: clamp(2.5rem, 4.8vw, 5rem); }
.kx-rotator { font-size: 0.72em; white-space: nowrap; }
.kx-slide-sub { font-size: clamp(1.15rem, 1.8vw, 1.7rem); }
.kx-slide-desc { margin-bottom: 30px; }
.kx-float-card { z-index: 2; }
@media (min-width: 901px) and (max-height: 960px) {
  .kx-hero-stats { display: none; }
  .kx-pill { margin-bottom: 20px; }
}
@media (min-width: 901px) and (max-height: 760px) {
  .kx-slide-desc { display: none; }
}

/* WhatsApp bubble waits until the hero is scrolled past (it sits on the slide counter). */
body.home .whatsapp-float { transition: transform 0.5s var(--kx-ease), opacity 0.4s; }
body.home:not(.kx-past-hero) .whatsapp-float { transform: scale(0); opacity: 0; pointer-events: none; }

/* Project slides: deeper, softer backdrop + wider device column */
.kx-hero-bg:not([data-slide="0"]) img { filter: blur(22px) saturate(1.5) brightness(0.24); }
.kx-hero-bg:not([data-slide="0"])::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 7, 11, 0.85) 0%, rgba(7, 7, 11, 0.35) 60%, rgba(7, 7, 11, 0.6) 100%);
}
html[dir="rtl"] .kx-hero-bg:not([data-slide="0"])::after { background: linear-gradient(270deg, rgba(7, 7, 11, 0.85) 0%, rgba(7, 7, 11, 0.35) 60%, rgba(7, 7, 11, 0.6) 100%); }
@media (min-width: 901px) { .kx-slide--project .kx-slide-layout { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); } }
.kx-chips { margin: 0 0 30px!important; }
.kx-scroll-cue { display: none; }
.kx-cell--stat strong { font-size: clamp(2.4rem, 3.4vw, 3.8rem); }
.kx-journey-track { box-sizing: content-box; }
.kx-home .kx-svc { grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1fr) 56px 60px; }
.kx-svc-name { font-size: clamp(1.6rem, 2.7vw, 2.7rem); }

/* The hero runs its own entrance; skip the legacy whole-page blur-in on <main>. */
body.home main.kx-home { animation: none !important; filter: none !important; transform: none !important; opacity: 1 !important; }
.kx-stat-num { font-size: clamp(2.8rem, 5.4vw, 5.6rem); white-space: nowrap; }
.kx-home .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.kx-voices-people {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.kx-voices-people::-webkit-scrollbar { display: none; }
@media (max-width: 900px) { .kx-orb-stage { opacity: 0.16; } }
.kx-svc-name { font-size: clamp(1.5rem, 2.4vw, 2.4rem); }

/* ═══════════════════════════════════════════════════
   v2.1 — feedback round
   ═══════════════════════════════════════════════════ */

/* Softer type: Sora at medium weights instead of heavy display */
.kx-title { font-weight: 500; letter-spacing: -0.03em; line-height: 1.05; }
.kx-slide-title { font-weight: 600; letter-spacing: -0.035em; line-height: 1.02; }
.kx-slide-sub { font-weight: 400; }
.kx-svc-name,
.kx-panel-body strong,
.kx-jcard h3,
.kx-lead { font-weight: 500; }
.kx-stat-num,
.kx-cell--stat strong,
.kx-hero-stats dt,
.kx-counter { font-weight: 500; }
.kx-ribbon span,
.kx-cta-track span { font-weight: 600; }
html[lang^="ar"] .kx-title,
html[lang^="ar"] .kx-slide-title { font-weight: 600; letter-spacing: 0; line-height: 1.3; }

/* Slider breathing room */
.kx-chips { gap: 10px; margin: 6px 0 36px!important; }
.kx-chips li { padding: 8px 16px; }
.kx-actions { gap: 16px 14px; }
.kx-slide .kx-pill { margin-bottom: 28px; }
.kx-slide-desc { margin-bottom: 32px; }
.kx-cell--cta { gap: 14px; }

/* Services — cursor-following tilted preview */
.kx-svc-float {
  position: fixed;
  z-index: 60;
  top: 0;
  left: 0;
  width: clamp(240px, 22vw, 340px);
  aspect-ratio: 4 / 3;
  pointer-events: none;
  transform: translate3d(var(--fx, -999px), var(--fy, -999px), 0) translate(-50%, -50%) rotate(var(--fr, -6deg));
  will-change: transform;
}
.kx-svc-float-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(7, 7, 11, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.12);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s var(--kx-ease), opacity 0.3s;
}
.kx-services.is-hovering .kx-svc-float-inner { transform: scale(1); opacity: 1; }
.kx-svc-float img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(100% 0 0 0);
  transform: scale(1.25);
  transition: clip-path 0.6s var(--kx-ease-io), transform 0.9s var(--kx-ease);
}
.kx-svc-float img.is-active { clip-path: inset(0); transform: scale(1); z-index: 1; }
.kx-svc-float-inner::after {
  content: '';
  position: absolute;
  z-index: 2;
  inset: 0;
  background: linear-gradient(140deg, rgba(139, 108, 255, 0.25), transparent 50%);
}
.kx-svc { cursor: none; }
.kx-svc:hover .kx-svc-icon { opacity: 0; }
@media (hover: none), (max-width: 900px) {
  .kx-svc-float { display: none; }
  .kx-svc { cursor: pointer; }
}

/* Industries — pinned, panels open one by one with scroll */
.kx-sectors { position: relative; background: var(--kx-bg); }
.kx-sectors-pin { padding-block: clamp(88px, 11vw, 168px); }
.kx-sectors.is-pinned { height: calc(100vh + var(--count, 4) * 75vh); }
.kx-sectors.is-pinned .kx-sectors-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  padding-block: calc(var(--nav-h, 90px) + 8px) 28px;
  overflow: hidden;
}
.kx-sectors.is-pinned .kx-head { margin-bottom: clamp(20px, 3.5vh, 40px); }
.kx-sectors.is-pinned .kx-title { font-size: clamp(2rem, 4vw, 3.8rem); }
.kx-sectors.is-pinned .kx-panels { height: clamp(320px, 54vh, 580px); }
.kx-sectors-progress {
  position: relative;
  height: 2px;
  margin-top: 22px;
  border-radius: 2px;
  background: var(--kx-line-strong);
  overflow: hidden;
}
.kx-sectors-progress i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--kx-violet), var(--kx-volt));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
html[dir="rtl"] .kx-sectors-progress i { transform-origin: right; }
.kx-sectors:not(.is-pinned) .kx-sectors-progress { display: none; }

/* Why Essam — heading rides alongside the cards (sticky needs a non-clipping ancestor) */
.kx-impact { overflow: clip; }
.kx-why-head { position: sticky; top: calc(var(--nav-h, 90px) + 48px); align-self: start; }

/* Testimonials — wall of every review */
.kx-voices-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.kx-voices-head .kx-title { margin-bottom: 36px; }
.kx-voices-head .kx-voices-score { display: flex; align-items: center; gap: 18px; }
.kx-voices-score strong { font-weight: 500; }
.kx-voices-faces { display: flex; align-items: center; margin-top: 28px; }
.kx-voices-faces span,
.kx-voices-faces em {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-inline-end: -12px;
  border-radius: 50%;
  border: 3px solid var(--kx-bg);
  background: linear-gradient(135deg, var(--kx-violet), var(--kx-pink));
  color: #fff;
  font-weight: 700;
  font-style: normal;
  font-size: 0.95rem;
}
.kx-voices-faces span:nth-child(2) { background: linear-gradient(135deg, var(--kx-cyan), var(--kx-violet)); }
.kx-voices-faces span:nth-child(3) { background: linear-gradient(135deg, var(--kx-pink), #ffb35c); }
.kx-voices-faces em { background: var(--kx-volt); color: var(--kx-ink); font-size: 0.8rem; }

.kx-wall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  height: min(760px, 86vh);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 14%, #000 86%, transparent);
}
.kx-wall-track { display: flex; flex-direction: column; gap: 16px; animation: kx-wall 46s linear infinite; }
.kx-wall-col--2 .kx-wall-track { animation-direction: reverse; animation-duration: 54s; }
.kx-wall-col--3 .kx-wall-track { animation-duration: 40s; }
.kx-wall:hover .kx-wall-track { animation-play-state: paused; }
@keyframes kx-wall { to { transform: translateY(calc(-50% - 8px)); } }

.kx-review {
  margin: 0;
  padding: 24px;
  border-radius: 22px;
  background: var(--kx-card);
  border: 1px solid var(--kx-line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.4s, transform 0.5s var(--kx-ease);
}
.kx-review:hover { border-color: var(--kx-accent); transform: translateY(-4px) rotate(-0.6deg); }
.kx-review-stars { color: #f5b301; letter-spacing: 0.14em; font-size: 0.85rem; }
.kx-review blockquote { margin: 0; }
.kx-review blockquote p { margin: 0; font-size: 0.98rem; line-height: 1.7; color: var(--kx-fg-soft); }
.kx-review figcaption { display: flex; align-items: center; gap: 12px; }
.kx-review-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--kx-violet), var(--kx-pink));
  color: #fff;
  font-weight: 700;
}
.kx-review-who { display: flex; flex-direction: column; min-width: 0; }
.kx-review-who strong { font-size: 0.9rem; color: var(--kx-fg); }
.kx-review-who small { font-size: 0.76rem; color: var(--kx-muted); }
.kx-review-quote { margin-inline-start: auto; font-family: 'Sora', serif; font-size: 2.6rem; line-height: 0.6; color: var(--kx-accent); opacity: 0.5; }

/* accent cards break the rhythm */
.kx-wall-col--1 .kx-review:nth-child(3n+2),
.kx-wall-col--3 .kx-review:nth-child(4n+1) { background: var(--kx-violet); border-color: transparent; }
.kx-wall-col--2 .kx-review:nth-child(3n+1) { background: var(--kx-volt); border-color: transparent; }
.kx-wall-col--1 .kx-review:nth-child(3n+2) :is(p, strong, small, .kx-review-quote),
.kx-wall-col--3 .kx-review:nth-child(4n+1) :is(p, strong, small, .kx-review-quote) { color: #fff; }
.kx-wall-col--2 .kx-review:nth-child(3n+1) :is(p, strong, small, .kx-review-quote, .kx-review-stars) { color: var(--kx-ink); }
.kx-wall-col--2 .kx-review:nth-child(3n+1) .kx-review-avatar { background: var(--kx-ink); color: var(--kx-volt); }

@media (max-width: 1100px) {
  .kx-voices-layout { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .kx-wall { grid-template-columns: 1fr; height: 600px; }
  .kx-wall-col--2,
  .kx-wall-col--3 { display: none; }
}

/* ═══════════════════════════════════════════════════
   WORK — scroll-driven orbit wheel
   JS sets on .kx-orbit: --R (wheel radius px), --rot (deg)
   and on each card: --s (scale) / --b (brightness).
   ═══════════════════════════════════════════════════ */
.kx-orbit {
  --R: 1000px;
  --step: 28deg;
  --card-w: min(540px, 74vw);
  --card-h: calc(var(--card-w) * 0.66);
  position: relative;
  background: var(--kx-ink);
  color: #fff;
  --kx-fg: #eeedf6;
  --kx-muted: #8c8aa3;
  --kx-line-strong: rgba(255, 255, 255, 0.16);
  --kx-accent: #a996ff;
}
.kx-orbit.is-pinned { height: calc(100vh + var(--n, 8) * 60vh); }
.kx-orbit-pin {
  position: relative;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  isolation: isolate;
}
.kx-orbit.is-pinned .kx-orbit-pin { position: sticky; top: 0; }

.kx-orbit-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 55% at 50% 100%, rgba(139, 108, 255, 0.42), transparent 70%),
    radial-gradient(30% 30% at 15% 15%, rgba(215, 255, 58, 0.08), transparent 70%),
    radial-gradient(30% 30% at 85% 20%, rgba(255, 92, 138, 0.1), transparent 70%);
}

.kx-orbit-top {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-top: calc(var(--nav-h, 90px) + 18px);
}
.kx-orbit-top .kx-eyebrow { margin-bottom: 10px; }
.kx-orbit-heading {
  margin: 0;
  font-family: var(--kx-display);
  font-weight: 500;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.85);
}
.kx-orbit .kx-btn--ghost { --fg: #fff; --hover-bg: #fff; border-color: rgba(255, 255, 255, 0.2); }
.kx-orbit .kx-btn--ghost:hover { color: var(--kx-ink); }

/* giant outlined index behind everything */
.kx-orbit-bignum {
  position: absolute;
  z-index: -1;
  top: 9%;
  left: 50%;
  translate: -50% 0;
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(12rem, 30vw, 30rem);
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  overflow: hidden;
  direction: ltr;
}
.kx-orbit-bignum span { display: block; transition: transform 0.7s var(--kx-ease), opacity 0.5s; }
.kx-orbit-bignum.is-swapping span { transform: translateY(-25%); opacity: 0; transition-duration: 0.25s; }

/* active project info */
.kx-orbit-info {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: calc(var(--nav-h, 90px) + 13vh);
  width: min(920px, 100% - 32px);
  translate: -50% 0;
  display: grid;
  text-align: center;
}
.kx-orbit-item {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
.kx-orbit-item > * {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(8px);
  transition: opacity 0.45s var(--kx-ease), transform 0.6s var(--kx-ease), filter 0.45s;
}
.kx-orbit-item.is-active { pointer-events: auto; }
.kx-orbit-item.is-active > * { opacity: 1; transform: none; filter: none; }
.kx-orbit-item.is-active > :nth-child(2) { transition-delay: 0.06s; }
.kx-orbit-item.is-active > :nth-child(3) { transition-delay: 0.12s; }
.kx-orbit-cat {
  font-family: var(--kx-mono);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--kx-volt);
}
html[lang^="ar"] .kx-orbit-cat { font-family: var(--kx-body); letter-spacing: 0; font-size: 0.9rem; }
.kx-orbit-item h3 {
  margin: 0;
  font-family: var(--kx-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
html[lang^="ar"] .kx-orbit-item h3 { letter-spacing: 0; line-height: 1.3; }
.kx-orbit-item h3 a { color: #fff; }
.kx-orbit-item .kx-chips { justify-content: center; margin: 0; }

/* the wheel: zero-size pivot sitting below the active card */
.kx-orbit-wheel {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: calc(100% - 8vh - var(--card-h) / 2 + var(--R));
  width: 0;
  height: 0;
  transform: rotate(var(--rot, 0deg));
  will-change: transform;
}
.kx-orbit-dial {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc((var(--R) + var(--card-h) / 2 + 46px) * 2);
  aspect-ratio: 1;
  translate: -50% -50%;
  border-radius: 50%;
  background: repeating-conic-gradient(from -0.2deg, rgba(255, 255, 255, 0.28) 0 0.4deg, transparent 0.4deg 4deg);
  -webkit-mask-image: radial-gradient(circle, transparent calc(50% - 14px), #000 calc(50% - 13px), #000 calc(50% - 1px), transparent 50%);
  mask-image: radial-gradient(circle, transparent calc(50% - 14px), #000 calc(50% - 13px), #000 calc(50% - 1px), transparent 50%);
  pointer-events: none;
}
.kx-orbit-dial::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: repeating-conic-gradient(from -0.4deg, var(--kx-volt) 0 0.8deg, transparent 0.8deg 28deg);
}

.kx-orbit-card {
  --s: 0.8;
  --b: 0.45;
  position: absolute;
  left: calc(var(--card-w) / -2);
  top: calc(var(--card-h) / -2);
  width: var(--card-w);
  height: var(--card-h);
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: #0d0c14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.8);
  transform: rotate(calc(var(--i) * var(--step) * var(--dir, 1))) translateY(calc(var(--R) * -1)) scale(var(--s));
  filter: brightness(var(--b));
  transition: box-shadow 0.4s, border-color 0.4s;
}
.kx-orbit-card.is-active {
  border-color: rgba(215, 255, 58, 0.5);
  box-shadow: 0 50px 120px -30px rgba(139, 108, 255, 0.75), 0 0 0 1px rgba(215, 255, 58, 0.25);
}
.kx-orbit-card-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  flex: none;
  padding-inline: 14px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.kx-orbit-card-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff5f57; }
.kx-orbit-card-bar i:nth-child(2) { background: #febc2e; }
.kx-orbit-card-bar i:nth-child(3) { background: #28c840; }
.kx-orbit-card-bar span {
  margin-inline: auto;
  padding: 3px 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--kx-mono);
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.5);
  direction: ltr;
}
.kx-orbit-screen { position: relative; flex: 1; overflow: hidden; container-type: size; }
.kx-orbit-screen img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top;
}
.kx-orbit-card.is-active .kx-orbit-screen img { animation: kx-scrollshot 14s ease-in-out 0.6s infinite alternate; }
.kx-orbit-open {
  position: absolute;
  inset-inline-end: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--kx-volt);
  color: var(--kx-ink);
  font-weight: 700;
  font-size: 0.85rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s, transform 0.5s var(--kx-ease);
}
.kx-orbit-card.is-active .kx-orbit-open { opacity: 1; transform: none; }
.kx-orbit-card.is-active:hover .kx-orbit-open b { display: inline-block; transform: rotate(45deg); }

.kx-orbit-foot {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
}
.kx-orbit-count { font-family: 'Sora', sans-serif; direction: ltr; }
.kx-orbit-count b { color: #fff; font-size: 1.4rem; font-weight: 500; }
.kx-orbit-bar { position: relative; flex: 1; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.kx-orbit-bar i {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--kx-violet), var(--kx-volt));
  transform: scaleX(var(--p, 0));
  transform-origin: left;
}
html[dir="rtl"] .kx-orbit-bar i { transform-origin: right; }
.kx-orbit-hint::after { content: ' ↓'; color: var(--kx-volt); }
.kx-orbit:not(.is-pinned) .kx-orbit-hint { display: none; }

@media (max-width: 760px) {
  .kx-orbit { --step: 34deg; }
  .kx-orbit-top .kx-btn { display: none; }
  .kx-orbit-info { top: calc(var(--nav-h, 90px) + 10vh); }
  .kx-orbit-wheel { top: calc(100% - 10vh - var(--card-h) / 2 + var(--R)); }
  .kx-orbit-open { font-size: 0.75rem; padding: 8px 14px; }
}
@media (max-height: 720px) and (min-width: 761px) {
  .kx-orbit { --card-w: min(440px, 60vw); }
  .kx-orbit-info { top: calc(var(--nav-h, 90px) + 9vh); }
  .kx-orbit-item .kx-chips { display: none; }
}
body.kx-in-orbit .whatsapp-float,
body.kx-in-orbit .back-top { opacity: 0 !important; pointer-events: none !important; transform: scale(0.6) !important; }
