/* ==========================================================================
   088 · JACK 3D CREATOR (جاد · عوالم ثلاثية) — 1:1 Dark #0C0C0C + White Sheet + Sticky 60px Cards
   Slate-to-Mist .hero-heading · Magnetic 3D bust · Magenta-Violet-Amber CTA · 3 Sticky Case Cards
   ========================================================================== */

:root {
  --jk-canvas: #0C0C0C;
  --jk-mist: #D7E2EA;
  --jk-mist-70: rgba(215, 226, 234, 0.70);
  --jk-mist-20: rgba(215, 226, 234, 0.20);
  --jk-disp: 'Cairo', 'Readex Pro', sans-serif;
  --jk-sans: 'IBM Plex Sans Arabic', 'Readex Pro', system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background: var(--jk-canvas);
  color: var(--jk-mist);
  font-family: var(--jk-sans);
  letter-spacing: 0;
}

body {
  background: var(--jk-canvas);
  color: var(--jk-mist);
  font-family: var(--jk-sans);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  letter-spacing: 0;
}

.hero-heading {
  font-family: var(--jk-disp);
  font-weight: 900;
  background: linear-gradient(180deg, #646973 0%, #BBCCD7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Signature Magenta-Violet-Amber Pill CTA with Inner White Outline */
.jk-cta-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 42px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(123deg, rgb(24, 1, 31) 7%, rgb(182, 0, 168) 37%, rgb(118, 33, 176) 72%, rgb(190, 76, 0) 100%);
  box-shadow: rgba(181, 1, 167, 0.28) 0px 4px 14px, rgb(119, 33, 177) 4px 4px 12px inset;
  outline: 2px solid #FFFFFF;
  outline-offset: -3px;
  color: #FFFFFF;
  font-family: var(--jk-disp);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.22s ease;
}

.jk-cta-pill:hover {
  transform: scale(1.04);
}

/* ======================== 1. HERO (#hero — 100DVH) ======================== */
.jk-hero {
  position: relative;
  height: 100dvh;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  background: var(--jk-canvas);
}

.jk-nav {
  position: relative;
  z-index: 20;
  padding: 24px 40px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--jk-disp);
  font-size: clamp(0.95rem, 1.35vw, 1.25rem);
  font-weight: 600;
  color: var(--jk-mist);
}

.jk-nav a:hover {
  opacity: 0.7;
}

.jk-h1 {
  position: relative;
  z-index: 10;
  text-align: center;
  font-size: clamp(3.6rem, 11.5vw, 10.5rem);
  line-height: 1.06;
  padding: 0 20px;
  pointer-events: none;
}

.jk-bust-wrap {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(560px, 78vw);
  height: 66%;
  z-index: 12;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.jk-bust-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  mask-image: radial-gradient(ellipse 52% 84% at 50% 58%, #000 54%, transparent 92%);
  -webkit-mask-image: radial-gradient(ellipse 52% 84% at 50% 58%, #000 54%, transparent 92%);
}

.jk-hero-bottom {
  position: relative;
  z-index: 20;
  padding: 0 40px 38px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.jk-hero-desc {
  max-width: 280px;
  font-size: clamp(0.95rem, 1.25vw, 1.2rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--jk-mist);
}

/* ======================== 2. DUAL MARQUEE (#marquee) ======================== */
.jk-marquee-sec {
  padding: 96px 0 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow: hidden;
}

.jk-marquee-row {
  display: flex;
  gap: 14px;
  width: max-content;
}

.jk-row-a { animation: jkSlideA 30s linear infinite; }
.jk-row-b { animation: jkSlideB 32s linear infinite; }

@keyframes jkSlideA {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
@keyframes jkSlideB {
  from { transform: translateX(25%); }
  to { transform: translateX(-25%); }
}

.jk-tile {
  width: 390px;
  height: 240px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--jk-mist-20);
  position: relative;
  flex-shrink: 0;
}

.jk-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jk-tile span {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 14px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(12, 12, 12, 0.78);
  font-size: 12.5px;
}

/* ======================== 3. ABOUT + 4 FLOATING 3D BADGES (#about) ======================== */
.jk-about {
  position: relative;
  min-height: 92dvh;
  padding: 110px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 34px;
  overflow: hidden;
}

.jk-float-icon {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  background: radial-gradient(circle at 30% 25%, rgba(196, 181, 253, 0.28), rgba(12, 12, 12, 0.9));
  border: 1px solid rgba(215, 226, 234, 0.18);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
  pointer-events: none;
  transition: transform 0.2s linear;
}

.jk-fi-1 { top: 8%; right: 6%; }
.jk-fi-2 { top: 8%; left: 6%; }
.jk-fi-3 { bottom: 10%; right: 10%; }
.jk-fi-4 { bottom: 10%; left: 10%; }

.jk-h2-giant {
  font-size: clamp(2.8rem, 8.2vw, 6.8rem);
  line-height: 1.08;
}

.jk-manifesto {
  max-width: 620px;
  font-size: clamp(1.08rem, 1.7vw, 1.38rem);
  line-height: 1.8;
}

.jk-word {
  opacity: 0.22;
  transition: opacity 0.24s ease;
}

.jk-word.is-lit {
  opacity: 1;
}

/* ======================== 4. WHITE SERVICES SHEET (#services) ======================== */
.jk-services {
  background: #FFFFFF;
  color: var(--jk-canvas);
  border-radius: 56px 56px 0 0;
  padding: 108px 40px 140px;
}

.jk-services-inner {
  max-width: 1040px;
  margin: 0 auto;
}

.jk-srv-row {
  padding: 38px 0;
  border-top: 1px solid rgba(12, 12, 12, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 32px;
}

.jk-srv-num {
  font-family: var(--jk-disp);
  font-size: clamp(2.8rem, 6.5vw, 5.4rem);
  font-weight: 900;
  line-height: 1;
  color: var(--jk-canvas);
  min-width: 120px;
}

/* ======================== 5. DARK OVERLAPPING PROJECTS + STICKY 60PX CARDS ======================== */
.jk-projects {
  background: var(--jk-canvas);
  margin-top: -56px;
  border-radius: 56px 56px 0 0;
  padding: 96px 40px 64px;
}

.jk-projects-inner {
  max-width: 1140px;
  margin: 0 auto;
}

.jk-sticky-stack {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.jk-project-card {
  position: sticky;
  top: 28px;
  border-radius: 52px;
  border: 2px solid var(--jk-mist);
  background: var(--jk-canvas);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.jk-proj-head {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--jk-mist-20);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.jk-live-pill {
  padding: 12px 32px;
  border-radius: 999px;
  border: 2px solid var(--jk-mist);
  background: transparent;
  color: var(--jk-mist);
  font-weight: 600;
  cursor: pointer;
}

.jk-live-pill:hover {
  background: rgba(215, 226, 234, 0.1);
}

.jk-proj-bento {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: 16px;
  min-height: 360px;
}

.jk-bento-img {
  border-radius: 40px;
  overflow: hidden;
  border: 1px solid var(--jk-mist-20);
}

.jk-bento-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jk-showcase-bar {
  max-width: 1140px;
  margin: 56px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--jk-mist-20);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--jk-mist-70);
}

@media (max-width: 720px) {
  .jk-float-icon {
    display: none;
  }
  .jk-hero-bottom,
  .jk-srv-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .jk-proj-bento {
    grid-template-columns: 1fr;
  }
}
