/* ═══════════════════════════════════════════════════════════
   KORSHOM v2 — Inner pages
   Page hero · About · Services · Portfolio · Case study · Contact
   ═══════════════════════════════════════════════════════════ */

/* ═══════════════════════════════════════════════════
   PAGE HERO
   ═══════════════════════════════════════════════════ */
.kx-phero {
  position: relative;
  min-height: min(88vh, 820px);
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h, 90px) + 70px) 0 clamp(64px, 8vw, 110px);
  background: var(--kx-ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.kx-phero-bg,
.kx-phero-bg > * { position: absolute; inset: 0; pointer-events: none; }
.kx-phero-bg { z-index: -2; }
.kx-phero-blob {
  inset: auto;
  width: 60vw;
  max-width: 820px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.55;
  animation: kx-blob 18s ease-in-out infinite alternate;
}
.kx-phero-blob--a { top: -30%; inset-inline-end: -12%; background: radial-gradient(circle, var(--kx-violet), transparent 65%); }
.kx-phero-blob--b { bottom: -45%; inset-inline-start: -15%; background: radial-gradient(circle, rgba(215, 255, 58, 0.55), transparent 65%); opacity: 0.25; animation-delay: -6s; }
.kx-phero-blob--c { top: 10%; inset-inline-start: 35%; width: 32vw; background: radial-gradient(circle, var(--kx-pink), transparent 65%); opacity: 0.22; animation-delay: -11s; }
@keyframes kx-blob {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-6%, 8%) scale(1.12); }
  100% { transform: translate(5%, -4%) scale(0.95); }
}
.kx-phero-grid {
  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% 70% at 50% 40%, #000 15%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 50% 40%, #000 15%, transparent 75%);
}
.kx-phero-noise {
  inset: -50% !important;
  opacity: 0.06;
  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");
}
.kx-phero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 30%;
  background: linear-gradient(transparent, var(--kx-ink));
}

.kx-phero-word {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  translate: -50% -58%;
  font-family: 'Sora', var(--kx-display);
  font-weight: 600;
  font-size: clamp(6rem, 21vw, 22rem);
  line-height: 0.8;
  letter-spacing: -0.05em;
  white-space: nowrap;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  pointer-events: none;
  transform: translateY(calc(var(--kx-scroll, 0) * 0.25px));
}

.kx-phero-inner { position: relative; }
.kx-crumbs { margin-bottom: 28px; }
.kx-crumbs a { color: rgba(255, 255, 255, 0.65); transition: color 0.3s; }
.kx-crumbs a:hover { color: var(--kx-volt); }
.kx-crumbs i { font-style: normal; opacity: 0.35; }
.kx-crumbs span:last-child { color: #fff; }

.kx-phero-title {
  margin: 0;
  max-width: 14ch;
  font-family: var(--kx-display);
  font-weight: 500;
  font-size: clamp(3rem, 8.4vw, 8.6rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: #fff;
}
html[lang^="ar"] .kx-phero-title { letter-spacing: 0; line-height: 1.2; font-weight: 600; }
.kx-phero-sub {
  max-width: 56ch;
  margin: 28px 0 0;
  font-size: clamp(1.02rem, 1.3vw, 1.2rem);
  line-height: 1.75;
  color: rgba(238, 237, 246, 0.68);
}
.kx-phero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 44px 0 0;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 640px;
}
.kx-phero-stats > div { flex: 1; min-width: 120px; padding-inline-end: 22px; }
.kx-phero-stats > div + div { padding-inline-start: 22px; border-inline-start: 1px solid rgba(255, 255, 255, 0.1); }
.kx-phero-stats dt { font-family: 'Sora', sans-serif; font-weight: 500; font-size: clamp(1.8rem, 2.8vw, 2.7rem); line-height: 1; direction: ltr; text-align: start; }
.kx-phero-stats dt em { font-style: normal; color: var(--kx-volt); }
.kx-phero-stats dd { margin: 8px 0 0; font-size: 0.82rem; color: rgba(255, 255, 255, 0.5); }

.kx-phero-scroll {
  position: absolute;
  inset-inline-end: clamp(16px, 4vw, 56px);
  bottom: 40px;
  width: 1px;
  height: 90px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
}
.kx-phero-scroll i {
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent, var(--kx-volt));
  animation: kx-drip 2.2s var(--kx-ease) infinite;
}
@keyframes kx-drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }

/* split title entrance (JS wraps words/chars) */
.kx-phero .kx-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  white-space: nowrap;
  padding-block: 0.06em 0.1em;
  margin-block: -0.06em -0.1em;
}
.kx-phero .kx-w > span,
.kx-phero .kx-c {
  display: inline-block;
  transform: translateY(115%) rotate(8deg);
  transform-origin: 0 100%;
  transition: transform 1.1s var(--kx-ease) calc(var(--d, 0) * 1ms + 200ms);
}
.kx-phero .kx-w > span:has(.kx-c) { transform: none; }
.kx-phero.is-in .kx-w > span,
.kx-phero.is-in .kx-c { transform: none; }
.kx-js .kx-phero :is(.kx-crumbs, .kx-phero-sub, .kx-phero-stats, .kx-actions, .kx-case-meta, .kx-case-top) {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s var(--kx-ease) 0.55s, transform 0.9s var(--kx-ease) 0.55s;
}
.kx-js .kx-phero.is-in :is(.kx-crumbs, .kx-phero-sub, .kx-phero-stats, .kx-actions, .kx-case-meta, .kx-case-top) { opacity: 1; transform: none; }
.kx-js .kx-phero :is(.kx-crumbs, .kx-case-top) { transition-delay: 0.1s; }

/* prose (WordPress content) */
.kx-prose { color: var(--kx-fg-soft); line-height: 1.85; font-size: 1.04rem; }
.kx-prose > * + * { margin-top: 1.1em; }
.kx-prose h2,
.kx-prose h3 { font-family: var(--kx-display); font-weight: 500; color: var(--kx-fg); line-height: 1.2; margin-top: 1.6em; }
.kx-prose a { color: var(--kx-accent); text-decoration: underline; text-underline-offset: 3px; }
.kx-prose ul,
.kx-prose ol { padding-inline-start: 1.3em; }
.kx-prose ul { list-style: disc; }
.kx-prose ol { list-style: decimal; }
.kx-prose--page { max-width: 820px; }

/* ═══════════════════════════════════════════════════
   ABOUT
   ═══════════════════════════════════════════════════ */
.kx-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 100px);
  align-items: center;
}
.kx-intro-media { position: relative; padding-bottom: 12%; padding-inline-end: 12%; }
.kx-intro-main {
  margin: 0;
  border-radius: 32px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--kx-card);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--kx-ease);
  box-shadow: 0 40px 80px -30px rgba(7, 7, 11, 0.5);
}
.kx-intro-main img,
.kx-intro-sub img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kx-intro-sub {
  position: absolute;
  margin: 0;
  inset-inline-end: 0;
  bottom: 0;
  width: 46%;
  aspect-ratio: 1;
  border-radius: 26px;
  overflow: hidden;
  border: 6px solid var(--kx-bg);
  box-shadow: 0 30px 60px -20px rgba(7, 7, 11, 0.5);
}
.kx-ring-badge {
  position: absolute;
  top: 6%;
  inset-inline-end: 2%;
  display: grid;
  place-items: center;
  width: clamp(120px, 12vw, 160px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--kx-volt);
  color: var(--kx-ink);
  box-shadow: 0 20px 50px rgba(215, 255, 58, 0.25);
}
.kx-ring-badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: kx-spin 18s linear infinite; }
.kx-ring-badge text { fill: currentColor; font-family: var(--kx-body); font-weight: 700; font-size: 12.5px; letter-spacing: 0.12em; }
.kx-ring-badge > span { font-family: 'Sora', sans-serif; font-weight: 600; font-size: 1.6rem; }
.kx-intro-copy { display: flex; flex-direction: column; gap: 26px; align-items: flex-start; }
.kx-intro-copy .kx-title { margin-top: 0; }

/* radial skill meters */
.kx-skills { background: var(--kx-bg-2); }
.kx-meters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.kx-meter {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 30px 20px 26px;
  border-radius: 26px;
  background: var(--kx-card);
  border: 1px solid var(--kx-line);
  text-align: center;
}
.kx-meter svg { width: 130px; height: 130px; transform: rotate(-90deg); }
.kx-meter circle { fill: none; stroke-width: 7; }
.kx-meter-track { stroke: var(--kx-line-strong); }
.kx-meter-fill {
  stroke: var(--kx-violet);
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  transition: stroke-dashoffset 1.8s var(--kx-ease) 0.2s;
}
.kx-meter:nth-child(even) .kx-meter-fill { stroke: var(--kx-volt); }
html:not([data-theme="dark"]) .kx-meter:nth-child(even) .kx-meter-fill { stroke: #9fd400; }
.kx-meter.is-in .kx-meter-fill { stroke-dashoffset: calc(100 - var(--pct)); }
.kx-meter-value {
  position: absolute;
  top: 30px;
  height: 130px;
  display: grid;
  place-items: center;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 1.9rem;
  color: var(--kx-fg);
  direction: ltr;
}
.kx-meter-value em { font-style: normal; font-size: 0.55em; color: var(--kx-muted); }
.kx-meter-name { font-weight: 700; color: var(--kx-fg); }

/* timeline with drawn spine */
.kx-tl-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 6vw, 100px);
  align-items: start;
}
.kx-tl-head { position: sticky; top: calc(var(--nav-h, 90px) + 48px); }
.kx-tl { position: relative; display: grid; gap: 18px; padding-inline-start: 46px; }
.kx-tl-spine { position: absolute; inset-block: 10px; inset-inline-start: 14px; width: 2px; background: var(--kx-line-strong); border-radius: 2px; overflow: hidden; }
.kx-tl-spine i { position: absolute; inset: 0; background: linear-gradient(var(--kx-violet), var(--kx-volt)); transform: scaleY(var(--p, 0)); transform-origin: top; }
.kx-tl-item {
  position: relative;
  padding: 26px 28px;
  border-radius: 24px;
  background: var(--kx-card);
  border: 1px solid var(--kx-line);
  transition: border-color 0.4s, transform 0.5s var(--kx-ease);
}
.kx-tl-item:hover { border-color: var(--kx-accent); transform: translateX(6px); }
html[dir="rtl"] .kx-tl-item:hover { transform: translateX(-6px); }
.kx-tl-dot {
  position: absolute;
  top: 32px;
  inset-inline-start: -40px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--kx-bg);
  border: 2px solid var(--kx-violet);
  transition: background 0.4s, box-shadow 0.4s;
}
.kx-tl-item.is-lit .kx-tl-dot { background: var(--kx-volt); border-color: var(--kx-volt); box-shadow: 0 0 0 6px rgba(215, 255, 58, 0.15); }
.kx-tl-year {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(139, 108, 255, 0.14);
  color: var(--kx-accent);
  font-family: var(--kx-mono);
  font-size: 0.75rem;
  direction: ltr;
}
.kx-tl-item h3 { margin: 14px 0 8px; font-family: var(--kx-display); font-weight: 500; font-size: clamp(1.25rem, 1.8vw, 1.6rem); color: var(--kx-fg); }
.kx-tl-item p { margin: 0; color: var(--kx-muted); line-height: 1.75; }

/* ═══════════════════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════════════════ */
.kx-plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  align-items: stretch;
}
.kx-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(28px, 3vw, 40px);
  border-radius: 30px;
  background: var(--kx-card);
  border: 1px solid var(--kx-line);
  transition: transform 0.6s var(--kx-ease), border-color 0.4s;
}
.kx-plan:hover { transform: translateY(-8px); border-color: var(--kx-accent); }
.kx-plan.is-featured {
  background:
    radial-gradient(90% 70% at 100% 0%, rgba(139, 108, 255, 0.55), transparent 60%),
    var(--kx-ink-2);
  color: #fff;
  border-color: rgba(215, 255, 58, 0.45);
  box-shadow: 0 40px 90px -30px rgba(139, 108, 255, 0.6);
  --kx-fg: #fff;
  --kx-muted: rgba(255, 255, 255, 0.6);
  --kx-line: rgba(255, 255, 255, 0.12);
  --kx-line-strong: rgba(255, 255, 255, 0.2);
}
@media (min-width: 1000px) { .kx-plan.is-featured { transform: translateY(-18px); } .kx-plan.is-featured:hover { transform: translateY(-26px); } }
.kx-plan-flag {
  position: absolute;
  top: 22px;
  inset-inline-end: 22px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--kx-volt);
  color: var(--kx-ink);
  font-size: 0.72rem;
  font-weight: 800;
}
.kx-plan-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  background: rgba(139, 108, 255, 0.14);
  font-size: 1.6rem;
}
.kx-plan h3 { margin: 6px 0 0; font-family: var(--kx-display); font-weight: 500; font-size: 1.5rem; color: var(--kx-fg); }
.kx-plan-sub { margin: 0; color: var(--kx-muted); font-size: 0.92rem; line-height: 1.6; }
.kx-plan-price {
  margin: 10px 0 6px;
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--kx-fg);
}
.kx-plan-price small { font-size: 0.45em; color: var(--kx-volt); margin-inline-start: 4px; }
html:not([data-theme="dark"]) .kx-plan:not(.is-featured) .kx-plan-price small { color: var(--kx-violet); }
.kx-plan-list { display: grid; gap: 12px; padding: 20px 0 !important; margin: 0 0 auto !important; border-top: 1px solid var(--kx-line); }
.kx-plan-list li { position: relative; padding-inline-start: 30px; color: var(--kx-fg-soft); line-height: 1.55; font-size: 0.95rem; }
.kx-plan.is-featured .kx-plan-list li { color: rgba(255, 255, 255, 0.8); }
.kx-plan-list li::before {
  content: '✓';
  position: absolute;
  inset-inline-start: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(215, 255, 58, 0.16);
  color: #8fbf00;
  font-size: 0.7rem;
  font-weight: 800;
}
[data-theme="dark"] .kx-plan-list li::before,
.kx-plan.is-featured .kx-plan-list li::before { color: var(--kx-volt); }
.kx-plan .kx-btn { justify-content: space-between; margin-top: 10px; }
.kx-plan.is-featured .kx-btn--ghost { --fg: #fff; }

.kx-extras { background: var(--kx-bg-2); }
.kx-extras-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kx-extra {
  position: relative;
  padding: 30px;
  border-radius: 26px;
  background: var(--kx-card);
  border: 1px solid var(--kx-line);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform 0.6s var(--kx-ease), border-color 0.4s;
}
.kx-extra:hover { transform: translateY(-6px); border-color: var(--kx-accent); }
.kx-extra-num { position: absolute; top: 24px; inset-inline-end: 26px; font-family: var(--kx-mono); font-size: 0.78rem; color: var(--kx-muted); }
.kx-extra-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: var(--kx-ink);
  font-size: 1.4rem;
  margin-bottom: 6px;
  transition: transform 0.6s var(--kx-ease), background 0.4s;
}
.kx-extra:hover .kx-extra-icon { transform: rotate(-10deg) scale(1.08); background: var(--kx-volt); }
.kx-extra h3 { margin: 0; font-family: var(--kx-display); font-weight: 500; font-size: 1.2rem; color: var(--kx-fg); }
.kx-extra p { margin: 0; color: var(--kx-muted); line-height: 1.7; font-size: 0.94rem; }

/* process steps with scroll-drawn line */
.kx-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr));
  gap: 20px;
}
.kx-steps-line { position: absolute; top: 34px; inset-inline: 34px; height: 2px; background: var(--kx-line-strong); border-radius: 2px; overflow: hidden; }
.kx-steps-line 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-steps-line i { transform-origin: right; }
.kx-step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.kx-step-num {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--kx-bg);
  border: 2px solid var(--kx-line-strong);
  font-family: 'Sora', sans-serif;
  font-weight: 500;
  font-size: 1.2rem;
  color: var(--kx-fg);
  margin-bottom: 10px;
  transition: background 0.5s, border-color 0.5s, color 0.5s, transform 0.6s var(--kx-ease);
}
.kx-step.is-lit .kx-step-num { background: var(--kx-volt); border-color: var(--kx-volt); color: var(--kx-ink); transform: scale(1.06); }
.kx-step h3 { margin: 0; font-family: var(--kx-display); font-weight: 500; font-size: 1.3rem; color: var(--kx-fg); }
.kx-step p { margin: 0; color: var(--kx-muted); line-height: 1.7; }

/* FAQ accordion */
.kx-faq { background: var(--kx-bg-2); }
.kx-faq-layout { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 100px); align-items: start; }
.kx-faq-head { position: sticky; top: calc(var(--nav-h, 90px) + 48px); display: flex; flex-direction: column; align-items: flex-start; gap: 28px; }
.kx-faq-list { display: grid; gap: 12px; }
.kx-qa {
  border-radius: 22px;
  background: var(--kx-card);
  border: 1px solid var(--kx-line);
  transition: border-color 0.4s, background 0.4s;
}
.kx-qa[open] { border-color: var(--kx-accent); }
.kx-qa summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
}
.kx-qa summary::-webkit-details-marker { display: none; }
.kx-qa-num { font-family: var(--kx-mono); font-size: 0.78rem; color: var(--kx-muted); }
.kx-qa-q { font-weight: 700; font-size: 1.05rem; color: var(--kx-fg); line-height: 1.5; }
.kx-qa-icon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--kx-line-strong);
  transition: background 0.4s, border-color 0.4s, transform 0.5s var(--kx-ease);
}
.kx-qa-icon::before,
.kx-qa-icon::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  border-radius: 2px;
  background: var(--kx-fg);
  transition: transform 0.4s var(--kx-ease), background 0.4s;
}
.kx-qa-icon::after { transform: rotate(90deg); }
.kx-qa[open] .kx-qa-icon { background: var(--kx-volt); border-color: var(--kx-volt); transform: rotate(180deg); }
.kx-qa[open] .kx-qa-icon::before,
.kx-qa[open] .kx-qa-icon::after { background: var(--kx-ink); }
.kx-qa[open] .kx-qa-icon::after { transform: rotate(0deg); }
.kx-qa-a { padding: 0 24px 22px; padding-inline-start: 62px; }
.kx-qa-a p { margin: 0; color: var(--kx-muted); line-height: 1.8; }
.kx-qa[open] .kx-qa-a { animation: kx-qa-in 0.5s var(--kx-ease); }
@keyframes kx-qa-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ═══════════════════════════════════════════════════
   PORTFOLIO
   ═══════════════════════════════════════════════════ */
.kx-filters {
  position: relative;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 6px;
  margin-bottom: clamp(36px, 5vw, 64px);
  border-radius: 999px;
  width: 100%;
  background: var(--kx-card);
  border: 1px solid var(--kx-line);
  isolation: isolate;
}
.kx-filters-glider {
  position: absolute;
  z-index: -1;
  top: var(--gy, 6px);
  left: var(--gx, 6px);
  width: var(--gw, 0);
  height: var(--gh, 0);
  border-radius: 999px;
  background: var(--kx-volt);
  transition: left 0.5s var(--kx-ease), top 0.5s var(--kx-ease), width 0.5s var(--kx-ease);
}
.kx-home .kx-filter {
  padding: 11px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--kx-muted);
  transition: color 0.35s;
}
.kx-home .kx-filter:hover { color: var(--kx-fg); }
.kx-home .kx-filter.is-active { color: var(--kx-ink); }

.kx-pgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.4vw, 32px);
}
.kx-pcard { transition: opacity 0.5s var(--kx-ease), transform 0.6s var(--kx-ease); }
.kx-pcard.is-hidden { display: none; }
.kx-pcard.is-entering { opacity: 0; transform: translateY(24px) scale(0.97); }
.kx-pcard-media {
  position: relative;
  display: block;
  padding: 12px;
  border-radius: 26px;
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(139, 108, 255, 0.35), transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(215, 255, 58, 0.16), transparent 60%),
    var(--kx-ink-3);
  overflow: hidden;
  cursor: none;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s var(--kx-ease);
}
.kx-pcard-bar { display: flex; gap: 6px; padding: 4px 6px 12px; }
.kx-pcard-bar i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.25); }
.kx-pcard-screen {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  container-type: size;
  background: #0d0c14;
}
.kx-pcard-screen img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 5s cubic-bezier(0.45, 0, 0.55, 1);
}
.kx-pcard-media:hover .kx-pcard-screen img { transform: translateY(calc(-100% + 100cqh)); }
.kx-pcard-cat {
  position: absolute;
  top: 46px;
  inset-inline-start: 24px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(7, 7, 11, 0.65);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}
.kx-pcard-cursor {
  position: absolute;
  z-index: 3;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--kx-volt);
  color: var(--kx-ink);
  font-weight: 800;
  font-size: 0.85rem;
  pointer-events: none;
  transform: translate(calc(var(--cx, 0px) - 44px), calc(var(--cy, 0px) - 44px)) scale(0);
  transition: transform 0.3s var(--kx-ease);
}
.kx-pcard-media:hover .kx-pcard-cursor { transform: translate(calc(var(--cx, 0px) - 44px), calc(var(--cy, 0px) - 44px)) scale(1); transition: transform 0.1s linear; }
.kx-pcard-meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 6px 0; }
.kx-pcard-meta h3 { margin: 0 0 6px; font-family: var(--kx-display); font-weight: 500; font-size: 1.3rem; line-height: 1.25; color: var(--kx-fg); }
.kx-pcard-meta p { margin: 0; color: var(--kx-muted); font-size: 0.84rem; line-height: 1.5; }
.kx-pcard-go {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--kx-line-strong);
  color: var(--kx-fg);
  transition: transform 0.5s var(--kx-ease), background 0.3s, color 0.3s, border-color 0.3s;
}
html[dir="rtl"] .kx-pcard-go { transform: scaleX(-1); }
.kx-pcard:hover .kx-pcard-go { background: var(--kx-volt); color: var(--kx-ink); border-color: var(--kx-volt); transform: rotate(45deg); }
html[dir="rtl"] .kx-pcard:hover .kx-pcard-go { transform: scaleX(-1) rotate(45deg); }

/* ═══════════════════════════════════════════════════
   CASE STUDY (single project)
   ═══════════════════════════════════════════════════ */
.kx-case-hero { min-height: 0; padding-bottom: 210px; }
.kx-case-backdrop { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.kx-case-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: blur(30px) saturate(1.4) brightness(0.25); transform: scale(1.2); }
.kx-case-top { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; }
.kx-case-back { color: #fff; transition: background 0.3s, color 0.3s; }
.kx-case-back:hover { background: var(--kx-volt); color: var(--kx-ink); }
html[dir="rtl"] .kx-case-back-arrow { display: inline-block; transform: scaleX(-1); }
.kx-case-hero .kx-phero-title { max-width: 18ch; font-size: clamp(2.8rem, 7vw, 7rem); }
.kx-case-hero .kx-actions { margin-top: 34px; }
.kx-case-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 46px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.kx-case-meta > div { padding: 20px 20px 0 0; padding-inline: 0 20px; }
.kx-case-meta > div + div { padding-inline-start: 20px; border-inline-start: 1px solid rgba(255, 255, 255, 0.12); }
.kx-case-meta dt { font-family: var(--kx-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); }
.kx-case-meta dd { margin: 8px 0 0; font-weight: 700; color: #fff; }

.kx-case-stage { position: relative; z-index: 2; margin-top: -170px; }
.kx-case-device {
  max-width: 1100px;
  margin-inline: auto;
  border-radius: 26px;
  overflow: hidden;
  background: #0d0c14;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 60px 140px -40px rgba(139, 108, 255, 0.6), 0 30px 80px rgba(0, 0, 0, 0.4);
}
.kx-case-device-bar { display: flex; align-items: center; gap: 8px; height: 46px; padding-inline: 20px; background: rgba(255, 255, 255, 0.04); border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.kx-case-device-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.kx-case-device-bar i:nth-child(2) { background: #febc2e; }
.kx-case-device-bar i:nth-child(3) { background: #28c840; }
.kx-case-device-bar span { margin-inline: auto; padding: 5px 22px; border-radius: 8px; background: rgba(255, 255, 255, 0.06); font-family: var(--kx-mono); font-size: 0.75rem; color: rgba(255, 255, 255, 0.55); direction: ltr; }
.kx-case-screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; container-type: size; }
.kx-case-screen img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  object-position: top;
  transform: translateY(calc((-100% + 100cqh) * var(--p, 0)));
  will-change: transform;
}
.kx-case-hint { margin: 18px 0 0; text-align: center; font-size: 0.82rem; color: var(--kx-muted); }

.kx-case-bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.kx-case-card {
  position: relative;
  padding: clamp(26px, 3vw, 40px);
  border-radius: 28px;
  background: var(--kx-card);
  border: 1px solid var(--kx-line);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.kx-case-card--about { grid-column: span 3; }
.kx-case-card--offers { grid-column: span 3; background: var(--kx-violet); border-color: transparent; color: #fff; }
.kx-case-card--build { grid-column: span 4; }
.kx-case-card--features { grid-column: span 2; background: var(--kx-volt); border-color: transparent; color: var(--kx-ink); }
.kx-case-card-num { font-family: 'Sora', sans-serif; font-size: 2.6rem; font-weight: 500; line-height: 1; color: transparent; -webkit-text-stroke: 1px currentColor; opacity: 0.7; }
.kx-case-card--about .kx-case-card-num,
.kx-case-card--build .kx-case-card-num { -webkit-text-stroke-color: var(--kx-accent); color: transparent; }
.kx-case-card h3 { margin: 0; font-family: var(--kx-display); font-weight: 500; font-size: clamp(1.3rem, 2vw, 1.7rem); color: inherit; }
.kx-case-card--about h3,
.kx-case-card--build h3 { color: var(--kx-fg); }
.kx-case-card p { margin: 0; line-height: 1.8; opacity: 0.85; }
.kx-case-card--about p,
.kx-case-card--build p { color: var(--kx-muted); opacity: 1; }
.kx-case-note {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 22px 0 0;
  padding: 16px 20px;
  border-radius: 18px;
  border: 1px dashed var(--kx-line-strong);
  color: var(--kx-muted);
  font-size: 0.88rem;
}
.kx-case-note span { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--kx-ink); color: var(--kx-volt); font-weight: 800; font-family: var(--kx-mono); }

.kx-case-next { background: var(--kx-bg-2); }
.kx-case-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.kx-case-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 170px;
  padding: 26px;
  border-radius: 28px;
  background: var(--kx-card);
  border: 1px solid var(--kx-line);
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.4s;
}
.kx-case-link--next { flex-direction: row-reverse; text-align: end; }
.kx-case-link-img { position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity 0.6s; }
.kx-case-link-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; filter: brightness(0.3) saturate(1.2); transform: scale(1.1); transition: transform 1.2s var(--kx-ease); }
.kx-case-link:hover { border-color: transparent; }
.kx-case-link:hover .kx-case-link-img { opacity: 1; }
.kx-case-link:hover .kx-case-link-img img { transform: scale(1); }
.kx-case-link-copy { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.kx-case-link-copy small { color: var(--kx-muted); font-weight: 700; font-size: 0.82rem; transition: color 0.4s; }
.kx-case-link-copy strong { font-family: var(--kx-display); font-weight: 500; font-size: clamp(1.3rem, 2.2vw, 2rem); line-height: 1.15; color: var(--kx-fg); transition: color 0.4s; }
.kx-case-link:hover :is(small, strong) { color: #fff; }
.kx-case-link-go {
  display: grid;
  place-items: center;
  flex: none;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--kx-ink);
  color: var(--kx-volt);
  font-size: 1.2rem;
  transition: transform 0.5s var(--kx-ease), background 0.3s, color 0.3s;
}
.kx-case-link--previous .kx-case-link-go { transform: scaleX(-1); }
html[dir="rtl"] .kx-case-link--previous .kx-case-link-go { transform: none; }
html[dir="rtl"] .kx-case-link--next .kx-case-link-go { transform: scaleX(-1); }
.kx-case-link:hover .kx-case-link-go { background: var(--kx-volt); color: var(--kx-ink); }

/* ═══════════════════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════════════════ */
.kx-contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
.kx-contact-side { display: flex; flex-direction: column; gap: 32px; }
.kx-channels { display: grid; gap: 12px; }
.kx-channel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
  border-radius: 22px;
  background: var(--kx-card);
  border: 1px solid var(--kx-line);
  color: var(--kx-fg);
  transition: border-color 0.4s, transform 0.5s var(--kx-ease);
}
a.kx-channel:hover { border-color: var(--kx-accent); transform: translateY(-4px); }
.kx-channel-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--kx-ink);
  color: var(--kx-volt);
  font-size: 1.3rem;
}
.kx-channel-ico--wa { background: #25d366; color: #fff; }
.kx-channel-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
.kx-channel-copy small { font-size: 0.78rem; font-weight: 700; color: var(--kx-muted); }
.kx-channel-copy strong { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.kx-channel-copy em { font-style: normal; font-size: 0.85rem; color: var(--kx-muted); }
.kx-channel-go {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--kx-line-strong);
  transition: transform 0.5s var(--kx-ease), background 0.3s, color 0.3s;
}
html[dir="rtl"] .kx-channel-go { transform: scaleX(-1); }
a.kx-channel:hover .kx-channel-go { background: var(--kx-volt); color: var(--kx-ink); border-color: var(--kx-volt); transform: rotate(45deg); }
html[dir="rtl"] a.kx-channel:hover .kx-channel-go { transform: scaleX(-1) rotate(45deg); }
.kx-socials { display: flex; gap: 10px; }
.kx-socials a {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--kx-card);
  border: 1px solid var(--kx-line);
  color: var(--kx-fg);
  transition: background 0.3s, color 0.3s, transform 0.4s var(--kx-ease);
}
.kx-socials a:hover { background: var(--kx-volt); color: var(--kx-ink); transform: translateY(-4px); }
.kx-socials .social-icon { width: 18px; height: 18px; }

.kx-form-card {
  position: relative;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 34px;
  background: var(--kx-ink-2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 50px 120px -40px rgba(139, 108, 255, 0.55);
}
.kx-form-glow {
  position: absolute;
  z-index: -1;
  top: -40%;
  inset-inline-end: -30%;
  width: 80%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 108, 255, 0.5), transparent 65%);
  filter: blur(30px);
}
.kx-form-card h3 { margin: 24px 0 10px; font-family: var(--kx-display); font-weight: 500; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.1; }
.kx-form-card .kx-desc { color: rgba(255, 255, 255, 0.6); margin-bottom: 30px; }

/* Contact Form 7 */
.kx-form .wpcf7-form { display: grid; gap: 4px; }
.kx-form .wpcf7-form p { margin: 0 0 14px; }
.kx-form label { display: block; font-size: 0.82rem; font-weight: 700; color: rgba(255, 255, 255, 0.7);margin-top:10px }
html[dir="rtl"] .kx-form input:not([type="submit"]),
html[dir="rtl"] .kx-form select,
html[dir="rtl"] .kx-form strong,
html[dir="rtl"] .kx-form label,
html[dir="rtl"] .kx-form textarea{
    text-align: right;
    direction: rtl;
    display: block;
}
.kx-form .wpcf7-form-control-wrap { display: block; margin-top: 8px; }
.kx-form input:not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
.kx-form textarea,
.kx-form select {
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 0.98rem;
  transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.kx-form textarea { min-height: 150px; resize: vertical; }
.kx-form input::placeholder,
.kx-form textarea::placeholder { color: rgba(255, 255, 255, 0.35); }
.kx-form input:focus,
.kx-form textarea:focus,
.kx-form select:focus {
  outline: none;
  border-color: var(--kx-volt);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(215, 255, 58, 0.12);
}
.kx-form select option { background: var(--kx-ink-2); }
.kx-form input[type="submit"],
.kx-form .wpcf7-submit {
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 999px;
  background: var(--kx-volt);
  color: var(--kx-ink);
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 16px 40px -12px rgba(215, 255, 58, 0.55);
  transition: background 0.3s, transform 0.3s var(--kx-ease);
}
.kx-form .wpcf7-submit:hover { background: #fff; transform: translateY(-2px); }
.kx-form .wpcf7-spinner { display: block; margin: 12px auto 0; }
.kx-form .wpcf7-not-valid-tip { margin-top: 6px; font-size: 0.8rem; color: var(--kx-pink); }
.kx-form .wpcf7-response-output {
  margin: 10px 0 0 !important;
  padding: 14px 18px !important;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  font-size: 0.9rem;
}
.kx-form .wpcf7-form.sent .wpcf7-response-output { border-color: var(--kx-volt) !important; color: var(--kx-volt); }
.kx-form .wpcf7-form.invalid .wpcf7-response-output,
.kx-form .wpcf7-form.failed .wpcf7-response-output { border-color: var(--kx-pink) !important; color: var(--kx-pink); }

/* ═══════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .kx-pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kx-extras-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kx-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .kx-steps-line { display: none; }
}
@media (max-width: 900px) {
  .kx-phero { min-height: 0; padding-top: calc(var(--nav-h, 90px) + 50px); }
  .kx-phero-scroll { display: none; }
  .kx-intro-grid,
  .kx-tl-layout,
  .kx-faq-layout,
  .kx-contact-grid { grid-template-columns: 1fr; }
  .kx-tl-head,
  .kx-faq-head { position: static; }
  .kx-case-bento > * { grid-column: span 6 !important; }
  .kx-case-nav { grid-template-columns: 1fr; }
  .kx-case-meta { grid-template-columns: 1fr; }
  .kx-case-meta > div + div { border-inline-start: 0; padding-inline-start: 0; }
  .kx-case-hero { padding-bottom: 140px; }
  .kx-case-stage { margin-top: -110px; }
  .kx-pcard-media { cursor: pointer; }
  .kx-pcard-cursor { display: none; }
}
@media (max-width: 640px) {
  .kx-pgrid,
  .kx-extras-grid,
  .kx-steps { grid-template-columns: 1fr; }
  .kx-filters { border-radius: 22px; }
  .kx-phero-stats > div { min-width: 0; padding-inline-end: 12px; }
  .kx-phero-stats > div + div { padding-inline-start: 12px; }
  .kx-qa summary { padding: 18px; gap: 12px; }
  .kx-qa-a { padding-inline: 18px; }
  .kx-case-link,
  .kx-case-link--next { flex-direction: column; align-items: flex-start; text-align: start; }
}

/* fixes: beat the .kx-home list reset; keep % beside the meter number */
.kx-home .kx-tl { padding-inline-start: 46px; }
.kx-meter-value { inset-inline: 0; display: flex; align-items: baseline; justify-content: center; gap: 1px; }
.kx-meter-value > span { line-height: 130px; }
.kx-case-card--offers .kx-case-card-num { -webkit-text-stroke-color: #fff; }
.kx-case-card--features .kx-case-card-num { -webkit-text-stroke-color: var(--kx-ink); }

/* ═══════════════════════════════════════════════════
   404
   ═══════════════════════════════════════════════════ */
.kx-404-stage {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h, 90px) + 40px) 0 80px;
  background: var(--kx-ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
}
.kx-404-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.kx-404-code {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 2vw, 28px);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: clamp(7rem, 22vw, 18rem);
  line-height: 0.85;
  letter-spacing: -0.05em;
  direction: ltr;
  margin-bottom: 10px;
}
.kx-404-digit {
  color: transparent;
  -webkit-text-stroke: 2px rgba(255, 255, 255, 0.85);
  animation: kx-404-float 5s ease-in-out infinite;
}
.kx-404-digit:last-child { animation-delay: -2.5s; -webkit-text-stroke-color: var(--kx-volt); }
@keyframes kx-404-float { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-14px) rotate(3deg); } }
.kx-404-orb {
  position: relative;
  display: grid;
  place-items: center;
  width: 0.72em;
  aspect-ratio: 1;
}
.kx-404-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, var(--kx-violet), var(--kx-pink), var(--kx-volt), var(--kx-cyan), var(--kx-violet));
  animation: kx-spin 6s linear infinite;
  box-shadow: 0 0 90px rgba(139, 108, 255, 0.55), 0 0 40px rgba(215, 255, 58, 0.2);
}
.kx-404-ring::after {
  content: '';
  position: absolute;
  inset: 0.05em;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #1d1a2e, var(--kx-ink) 70%);
}
.kx-404-core {
  position: relative;
  font-size: 0.22em;
  letter-spacing: -0.04em;
  background: linear-gradient(120deg, #fff, var(--kx-volt));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kx-404-title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--kx-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
html[lang^="ar"] .kx-404-title { letter-spacing: 0; line-height: 1.35; }
.kx-404-sub { margin: 0; max-width: 52ch; color: rgba(238, 237, 246, 0.65); line-height: 1.75; }
.kx-404-actions { justify-content: center; margin-top: 8px; }
.kx-404 .kx-btn--ghost { --fg: #fff; --hover-bg: #fff; border-color: rgba(255, 255, 255, 0.2); }
.kx-404 .kx-btn--ghost:hover { color: var(--kx-ink); }
.kx-404-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.kx-404-links a {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.kx-404-links a:hover { background: var(--kx-volt); color: var(--kx-ink); border-color: var(--kx-volt); }
.kx-404-term {
  margin: 18px 0 0;
  padding: 16px 22px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-family: var(--kx-mono);
  font-size: 0.8rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.55);
  text-align: left;
  direction: ltr;
  white-space: pre-wrap;
  max-width: 100%;
}
.kx-404-term span { color: var(--kx-violet-2); }
.kx-404-term b { color: var(--kx-pink); font-weight: 600; }
.kx-404-caret { display: inline-block; width: 8px; height: 1em; margin-inline-start: 4px; vertical-align: -2px; background: var(--kx-volt); animation: kx-blink 1s steps(2) infinite; }
@keyframes kx-blink { 50% { opacity: 0; } }
.kx-404-title { text-wrap: balance; }
