/* ============================================================
   KosovaJob redesign — rreth-nesh.php (KJAbout v2, 2026-10-01)
   Rebuilt from the operator's "Rreth nesh" design handoff (the version
   with the video header). Every value below is the handoff's own inline
   style / responsive rule, re-expressed as classes. Breakpoints are the
   handoff's: desktop >= 1024, tablet 768-1023, mobile <= 767.

   SCOPE. Only rreth-nesh.php loads this file. Everything is under
   body.kj-abt-page or main.kj-abt — the handoff's global selectors (body,
   h1-h5, p, a, ::selection, the blanket reduced-motion rule) are rescoped
   so nothing reaches the global header/footer.

   TOKENS. Page-local aliases map the handoff's tokens onto the site's own
   (tokens.css) where the values are identical; the two the site does not
   carry (navy gradient, on-navy muted text) and the one it carries with a
   DIFFERENT value (--shadow-xs) are written out literally.

   Docs: docs/pages/about.md
   ============================================================ */

.kj-abt {
  --abt-strong:      var(--kj-b3-title, #041E42);
  --abt-body:        var(--kj-b3-body, #313C53);
  --abt-muted:       var(--kj-b3-muted, #6B7890);
  --abt-border:      var(--kj-b3-stroke, #E2E7EF);
  --abt-border-2:    var(--kj-b3-stroke-2, #CBD3E0);
  --abt-surface-mut: var(--kj-b3-page, #F6F8FB);
  --abt-sunken:      var(--kj-b3-sunken, #EEF1F6);
  --abt-navy:        var(--kj-b3-navy, #041E42);
  --abt-coral-50:    var(--kj-coral-50, #FFF1EF);
  --abt-coral-200:   var(--kj-coral-200, #FFC2BC);
  --abt-coral-500:   var(--kj-coral-500, #FE616C);
  --abt-coral-600:   var(--kj-coral-600, #EE4753);
  --abt-grad:        var(--kj-b3-gradient, linear-gradient(120deg, #FFC473 0%, #FE616C 100%));
  --abt-grad-navy:   linear-gradient(150deg, #0A2C57 0%, #041E42 60%, #03152E 100%);
  --abt-on-navy-mut: #A9B6CC;
  --abt-shadow-xs:   0 1px 2px rgba(4, 30, 66, .06);
  --abt-shadow-md:   var(--kj-shadow-md, 0 8px 20px -6px rgba(4, 30, 66, .12));
  --abt-shadow-lg:   var(--kj-shadow-lg, 0 18px 40px -12px rgba(4, 30, 66, .18));
  --abt-shadow-acc:  var(--kj-shadow-accent, 0 10px 24px -8px rgba(254, 97, 108, .45));
  --abt-ease:        var(--kj-ease-out, cubic-bezier(.22, .61, .36, 1));
  --abt-display:     var(--kj-font, 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif);
  --abt-text:        var(--kj-font-mulish, 'Mulish', system-ui, -apple-system, 'Segoe UI', sans-serif);

  position: relative;
  overflow: hidden;                 /* handoff page wrapper: clips the video bleed */
  font-family: var(--abt-text);
  line-height: 1.5;
  color: var(--abt-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.kj-abt ::selection { background: var(--abt-coral-200); color: var(--abt-navy); }
.kj-abt img, .kj-abt video { max-width: 100%; }
.kj-abt a { color: inherit; text-decoration: none; }
.kj-abt a:focus-visible { outline: 2px solid var(--abt-coral-500); outline-offset: 3px; }

/* ---------- Page ground + hero glow ----------
   --bg-page (#FFFEFD) and the handoff's masked two-circle glow (top -72,
   900 tall, masked out at 78%). Same layer and placement as the homepage
   (home.css): it starts above the translucent sticky header and shows
   through it, so there is no seam under the header. */
body.kj-abt-page { background: var(--kj-b1-page, #FFFEFD); }
.kj-abt-page .kj-bg {
  position: absolute;
  top: -72px;
  left: 0;
  right: 0;
  height: 900px;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 35%, rgba(0, 0, 0, 0) 78%);
          mask-image: linear-gradient(to bottom, #000 0%, #000 35%, rgba(0, 0, 0, 0) 78%);
}
.kj-abt-page .kj-bg::before,
.kj-abt-page .kj-bg::after {
  content: '';
  position: absolute;
  width: 820px;
  height: 820px;
  border-radius: 50%;
}
.kj-abt-page .kj-bg::before {
  top: -300px;
  left: -320px;
  background: radial-gradient(circle, rgba(255, 196, 115, .30) 0%, rgba(254, 97, 108, .15) 52%, rgba(254, 97, 108, 0) 72%);
}
.kj-abt-page .kj-bg::after {
  top: -160px;
  right: -300px;
  background: radial-gradient(circle, rgba(254, 97, 108, .20) 0%, rgba(255, 196, 115, .13) 52%, rgba(255, 196, 115, 0) 72%);
}

/* ---------- Shared bits ---------- */
.kj-abt-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 32px;
  padding-right: 32px;
}
.kj-abt-sec { padding-top: 64px; }
.kj-abt-sec--end { padding-bottom: 80px; }
.kj-abt-eyebrow {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--abt-coral-600);
}
.kj-abt-grad {
  background: var(--abt-grad);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.kj-abt-h2 {
  margin: 10px 0 0;
  font-family: var(--abt-display);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--abt-strong);
  text-wrap: balance;
}
.kj-abt-h2--nobalance { text-wrap: wrap; }

/* ---------- Hero (text left, video bleeding in from the right) ---------- */
.kj-abt-hero {
  position: relative;
  z-index: 5;
  min-height: 560px;
  display: flex;
  align-items: center;
}
/* Right 60% of the full-bleed hero, faded in from the left (0 -> 30%) and out
   at the bottom (78% -> 100%); the two masks are intersected. */
.kj-abt-hero__vid {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 60%;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 30%), linear-gradient(180deg, #000 78%, rgba(0, 0, 0, 0) 100%);
  -webkit-mask-composite: source-in;
          mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, #000 30%), linear-gradient(180deg, #000 78%, rgba(0, 0, 0, 0) 100%);
          mask-composite: intersect;
}
.kj-abt-hero__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  display: block;
}
/* Reduced motion without JS (the inline script cannot switch autoplay off):
   hide the <video> and paint the same first-frame poster as a background. */
@media (prefers-reduced-motion: reduce) {
  html:not(.js) .kj-abt-hero__video { display: none; }
  html:not(.js) .kj-abt-hero__vid { background: var(--kj-abt-poster) 50% 50% / cover no-repeat; }
}
.kj-abt-hero__wrap { padding-top: 40px; padding-bottom: 56px; }
.kj-abt-hero__text { max-width: 600px; }
.kj-abt-hero__h1 {
  margin: 10px 0 16px;
  font-family: var(--abt-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -.03em;
  color: var(--abt-strong);
  text-wrap: balance;
}
.kj-abt-hero__p {
  margin: 0 0 26px;
  max-width: 540px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--abt-body);
  text-wrap: pretty;
}
.kj-abt-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.kj-abt-stat {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--abt-border);
}
.kj-abt-stat__n {
  font-family: var(--abt-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.kj-abt-stat__l { margin-top: 2px; font-size: 13px; color: var(--abt-muted); }
.kj-abt-iso {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}
.kj-abt-iso img { height: 34px; width: auto; flex: 0 0 auto; }
.kj-abt-iso span { font-size: 13px; line-height: 1.35; color: var(--abt-muted); }
.kj-abt-iso strong { color: var(--abt-strong); font-weight: 700; }

/* Hero entrance (on load, the handoff's kjFadeUp stagger). Gated on html.js
   like the rest of the page's motion. */
@keyframes kjAbtFadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.js .kj-abt-hero__eyebrow { animation: kjAbtFadeUp .5s  var(--abt-ease) both; }
.js .kj-abt-hero__h1      { animation: kjAbtFadeUp .55s var(--abt-ease) .06s both; }
.js .kj-abt-hero__p       { animation: kjAbtFadeUp .55s var(--abt-ease) .12s both; }
.js .kj-abt-stats         { animation: kjAbtFadeUp .6s  var(--abt-ease) .18s both; }
.js .kj-abt-iso           { animation: kjAbtFadeUp .6s  var(--abt-ease) .24s both; }

/* ---------- Çfarë bëjmë — three cards ---------- */
.kj-abt-head { max-width: 620px; margin-bottom: 26px; }
.kj-abt-what__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.kj-abt-what__card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--abt-border);
  border-radius: 24px;
  box-shadow: var(--abt-shadow-xs);
  transition: all .25s var(--abt-ease);
}
.kj-abt-what__card:hover,
.kj-abt-what__card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--abt-shadow-md);
  border-color: var(--abt-coral-200);
}
.kj-abt-what__ico {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--abt-coral-50);
  color: var(--abt-coral-600);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.kj-abt-what__t {
  margin: 0;
  font-family: var(--abt-display);
  font-weight: 800;
  font-size: 18px;
  line-height: inherit;
  letter-spacing: -.01em;
  color: var(--abt-strong);
}
.kj-abt-what__d {
  flex: 1 1 0%;
  margin: 8px 0 16px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--abt-muted);
}
.kj-abt-what__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--abt-coral-600);
}

/* ---------- Rrugëtimi ynë — timeline ---------- */
.kj-abt-tl__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 30px;
}
.kj-abt-tl__row {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.kj-abt-tl__item { position: relative; padding-top: 28px; --i: 0; }
.kj-abt-tl__conn,
.kj-abt-tl__fillh {
  position: absolute;
  left: 14px;
  top: 6px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
}
.kj-abt-tl__conn { background: var(--abt-border-2); }
.kj-abt-tl__fillh {
  background: var(--abt-grad);
  transform-origin: left center;
  transition: transform .4s var(--abt-ease) calc(.22s + var(--i) * .38s);
}
.kj-abt-tl__fillv {
  display: none;
  position: absolute;
  left: 6px;
  top: 14px;
  width: 2px;
  height: calc(100% + 4px);
  border-radius: 2px;
  background: var(--abt-grad);
  transform-origin: center top;
  transition: transform .4s var(--abt-ease) calc(.22s + var(--i) * .38s);
}
.kj-abt-tl__dot {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--abt-grad);
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px var(--abt-coral-200);
  transition: transform .4s var(--abt-ease) calc(.1s + var(--i) * .38s);
}
.kj-abt-tl__body {
  transition: opacity .45s var(--abt-ease) calc(.18s + var(--i) * .38s),
              transform .45s var(--abt-ease) calc(.18s + var(--i) * .38s);
}
/* Start state only when JS is there to finish it (adds .tl-in) */
.js .kj-abt-tl__row:not(.tl-in) .kj-abt-tl__dot   { transform: scale(0); }
.js .kj-abt-tl__row:not(.tl-in) .kj-abt-tl__body  { opacity: 0; transform: translateY(8px); }
.js .kj-abt-tl__row:not(.tl-in) .kj-abt-tl__fillh { transform: scaleX(0); }
.js .kj-abt-tl__row:not(.tl-in) .kj-abt-tl__fillv { transform: scaleY(0); }
.kj-abt-tl__yr {
  font-family: var(--abt-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -.02em;
  line-height: 1;
}
.kj-abt-tl__t {
  margin: 8px 0 0;
  font-family: var(--abt-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--abt-strong);
  text-wrap: balance;
}
.kj-abt-tl__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 3px 9px 3px 3px;
  border-radius: 999px;
  background: var(--abt-surface-mut);
  border: 1px solid var(--abt-border);
}
.kj-abt-tl__chipico {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--abt-navy);
  color: #fff;
  font-family: var(--abt-display);
  font-weight: 800;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.kj-abt-tl__chipname {
  font-family: var(--abt-display);
  font-weight: 700;
  font-size: 12px;
  color: var(--abt-strong);
}
.kj-abt-tl__d {
  margin: 6px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--abt-muted);
  text-wrap: pretty;
}

/* ---------- Ekipi — photo + four desks ---------- */
.kj-abt-team__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}
.kj-abt-team__grid > * { min-width: 0; }
.kj-abt-team__photo {
  aspect-ratio: 4 / 3;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--abt-shadow-lg);
  background: var(--abt-sunken);
}
.kj-abt-team__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.kj-abt-team__h2 { margin-bottom: 14px; }
.kj-abt-team__p {
  margin: 0 0 22px;
  font-size: 16px;
  line-height: 1.65;
  color: var(--abt-body);
  text-wrap: pretty;
}
.kj-abt-team__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.kj-abt-team__card {
  padding: 14px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--abt-border);
}
.kj-abt-team__t {
  margin: 0;
  font-family: var(--abt-display);
  font-weight: 700;
  font-size: 15px;
  line-height: inherit;
  color: var(--abt-strong);
}
.kj-abt-team__d { margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--abt-muted); }

/* ---------- Closing CTA (navy card) ---------- */
.kj-abt-cta__card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 36px 40px;
  border-radius: 28px;
  background: var(--abt-grad-navy);
  color: #fff;
}
.kj-abt-cta__glow {
  position: absolute;
  right: -80px;
  top: -80px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(254, 97, 108, .45), transparent 70%);
}
.kj-abt-cta__text { position: relative; }
.kj-abt-cta__h {
  margin: 0;
  font-family: var(--abt-display);
  font-weight: 800;
  font-size: 26px;
  line-height: inherit;
  letter-spacing: -.02em;
  color: #fff;
}
.kj-abt-cta__p { margin: 6px 0 0; max-width: 520px; font-size: 15px; color: var(--abt-on-navy-mut); }
.kj-abt-cta__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.kj-abt-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.kj-abt .kj-abt-cta__btn--primary {
  gap: 9px;
  padding: 0 22px;
  font-family: var(--abt-text);
  line-height: 1;
  letter-spacing: .01em;
  border: 1px solid transparent;
  background: var(--abt-grad);
  color: #fff;
  box-shadow: var(--abt-shadow-acc);
  transition: transform 130ms var(--abt-ease), box-shadow 200ms var(--abt-ease), background 200ms var(--abt-ease), opacity 200ms;
}
.kj-abt .kj-abt-cta__btn--ghost {
  padding: 0 20px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  color: #fff;
  transition: .2s;
}
.kj-abt .kj-abt-cta__btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.kj-abt .kj-abt-cta__btn:focus-visible { outline-color: #fff; }

/* ---------- Tablet + phone (<= 1023) ---------- */
@media (max-width: 1023px) {
  /* video drops into the flow above the text, 260px tall, fading out at the bottom */
  .kj-abt-hero { display: block; min-height: 0; }
  .kj-abt-hero__vid {
    position: relative;
    width: auto;
    height: 260px;
    margin: 0 -1px;
    -webkit-mask-image: linear-gradient(180deg, #000 70%, rgba(0, 0, 0, 0) 100%);
            mask-image: linear-gradient(180deg, #000 70%, rgba(0, 0, 0, 0) 100%);
  }
  .kj-abt-hero__wrap { padding-top: 8px; padding-bottom: 32px; }
  .kj-abt-what__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kj-abt-team__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Phone (<= 767) ---------- */
@media (max-width: 767px) {
  .kj-abt-wrap { padding-left: 20px; padding-right: 20px; }
  .kj-abt-sec { padding-top: 40px; }
  .kj-abt-sec--end { padding-bottom: 56px; }
  .kj-abt-hero__h1 { font-size: 32px; line-height: 1.1; letter-spacing: -.02em; }
  .kj-abt-h2 { font-size: 26px; }
  .kj-abt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kj-abt-what__grid { grid-template-columns: minmax(0, 1fr); }
  .kj-abt-tl__head { flex-direction: column; align-items: flex-start; }
  /* timeline turns vertical: rail at left 6, items indented 30 */
  .kj-abt-tl__row { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .kj-abt-tl__item { padding-top: 0; padding-left: 30px; }
  .kj-abt-tl__conn { left: 6px; top: 14px; width: 2px; height: calc(100% + 4px); }
  .kj-abt-tl__fillh { display: none; }
  .kj-abt-tl__fillv { display: block; }
  .kj-abt-team__cards { grid-template-columns: minmax(0, 1fr); }
  .kj-abt-cta__card { flex-direction: column; align-items: stretch; padding: 20px; }
  .kj-abt-cta__actions { width: 100%; max-width: none; }
}

/* ---------- Motion + print ---------- */
@media (prefers-reduced-motion: reduce) {
  .kj-abt *, .kj-abt *::before, .kj-abt *::after { animation: none !important; transition: none !important; }
}
@media print {
  .kj-abt-tl__dot, .kj-abt-tl__body, .kj-abt-tl__fillh, .kj-abt-tl__fillv { opacity: 1 !important; transform: none !important; }
}
