/* Why Karnisha section (index.html #why). Direction A: immersive dark 3D. Script: assets/why.js */
@property --why-t { syntax: "<angle>"; inherits: true; initial-value: 0deg; }

.why {
  position: relative; isolation: isolate; overflow: hidden; overflow: clip;
  padding-block: 5rem 6rem; border-top: 1px solid rgb(var(--L-ink-rgb, 255 255 255) / .06);
  --ink: var(--L-ink, #f4f6ff); --mist: var(--L-mist, #a7b0cc); --dim: var(--L-dim, #7f89a6); --gold: #ffbe0b; --ease: cubic-bezier(.2, .75, .2, 1);
}
.why::before {
  content: ""; position: absolute; z-index: -1; inset: 30% auto auto -15%; width: 42rem; height: 42rem;
  background: radial-gradient(closest-side, rgb(255 190 11 / .07), transparent 70%); pointer-events: none;
}
html[dir="rtl"] .why::before { inset: 30% -15% auto auto; }
.why-wrap { max-width: 80rem; margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 40rem) { .why-wrap { padding-inline: 1.5rem; } .why { padding-block: 7rem; } }
@media (min-width: 64rem) { .why-wrap { padding-inline: 2rem; } }

.why-eyebrow {
  display: inline-flex; align-items: center; gap: .55rem; color: var(--mist);
  font: 600 .8rem/1.4 'Plus Jakarta Sans', 'Dana Pro', sans-serif; letter-spacing: .14em; text-transform: uppercase;
}
.why-eyebrow::before { content: ""; width: 1.8rem; height: 1px; background: var(--gold); }
.why h2 {
  margin-top: 1rem; max-width: 46rem; color: var(--ink); font-weight: 900; line-height: 1.2;
  font-size: clamp(2rem, 4.6vw, 3.6rem); letter-spacing: -.02em; text-wrap: balance;
}
html[dir="ltr"] .why h2 { letter-spacing: -.025em; line-height: 1.05; }
.why-sub { margin-top: 1.1rem; max-width: 42rem; color: var(--mist); font-size: 1rem; line-height: 1.9; }

/* ---------- Bento grid ---------- */
.why-grid { margin-top: 3rem; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) {
  .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
  .why-card--team, .why-card--work { grid-column: 1 / -1; }
  .why-grid .why-card--work { flex-direction: row; align-items: center; }
  .why-card--work .why-vis { flex: 0 0 46%; height: 15rem; }
  .why-card--work .why-text { flex: 1 1 0; min-width: 0; padding: 1.9rem; padding-inline-start: .5rem; }
}
@media (min-width: 64rem) {
  .why-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); margin-top: 3.5rem; }
  .why-card--team { grid-column: span 7; }
  .why-card--seo, .why-card--care { grid-column: span 5; }
  .why-card--work { grid-column: span 7; }
}

.why-card {
  --accent: #3b4dff; --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 0%;
  position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  border-radius: 1.75rem; border: 1px solid rgb(var(--L-ink-rgb, 255 255 255) / .08); color: inherit; text-decoration: none;
  background: linear-gradient(160deg, rgb(var(--L-raised-rgb, 28 38 62) / .7), rgb(var(--L-surface-rgb, 13 19 32) / .94));
  box-shadow: 0 30px 70px -30px rgb(var(--L-shade-rgb, 0 0 0) / calc(.7 * var(--L-shade-k, 1))), 0 -1px 0 0 color-mix(in srgb, var(--accent) 45%, transparent) inset;
  transform: perspective(1200px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s var(--ease), border-color .35s var(--ease), opacity .7s var(--ease) var(--d, 0ms), translate .8s var(--ease) var(--d, 0ms);
}
/* Reveal on scroll only once why.js runs, so the cards never stay hidden without JS. */
.why.has-js .why-card:not(.is-in) { opacity: 0; translate: 0 1.5rem; }
.why-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(22rem circle at var(--mx) var(--my), color-mix(in srgb, var(--accent) 14%, transparent), transparent 60%);
}
.why-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.why-card:hover::after { opacity: 1; }
a.why-card:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.why-text { position: relative; z-index: 1; padding: 0 1.5rem 1.6rem; }
@media (min-width: 40rem) { .why-text { padding: 0 1.9rem 1.9rem; } }
.why-text h3 { color: var(--ink); font-size: clamp(1.2rem, 1.8vw, 1.45rem); font-weight: 900; line-height: 1.45; }
.why-text p { margin-top: .55rem; color: var(--mist); font-size: .94rem; line-height: 1.9; }
.why-vis { position: relative; height: 12.5rem; flex: none; pointer-events: none; }

/* ---------- A: orbit of the five services ---------- */
.why-card--team .why-vis { height: 15rem; }
@media (min-width: 80rem) {
  .why-card--team { flex-direction: row; align-items: center; }
  .why-card--team .why-vis { flex: 0 0 50%; height: 100%; min-height: 19rem; }
  .why-card--team .why-text { flex: 1 1 0; min-width: 0; padding: 1.9rem; padding-inline-start: .5rem; }
  .why-card--team .why-orbit-plane { --r: 6.6rem; }
}
.why-orbit { display: grid; place-items: center; perspective: 900px; }
.why-orbit-plane {
  --r: 7.2rem; position: absolute; width: calc(var(--r) * 2); aspect-ratio: 1; transform-style: preserve-3d;
  transform: rotateX(64deg) rotateZ(var(--why-t)); animation: why-spin 36s linear infinite paused;
}
.why-card.is-in .why-orbit-plane { animation-play-state: running; }
@keyframes why-spin { to { --why-t: 360deg; } }
.why-orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgb(var(--L-ink-rgb, 255 255 255) / .1); }
.why-orbit-ring--in { inset: 22%; border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent); }
.why-node {
  position: absolute; top: 50%; left: 50%; width: 0; height: 0; transform-style: preserve-3d;
  transform: rotateZ(var(--a)) translateX(var(--r)) rotateZ(calc(-1 * (var(--a) + var(--why-t)))) rotateX(-64deg);
}
.why-node b {
  position: absolute; translate: -50% -50%; white-space: nowrap; padding: .4rem .8rem; border-radius: 99px;
  background: rgb(var(--L-surface-rgb, 13 19 32) / .92); border: 1px solid rgb(var(--L-ink-rgb, 255 255 255) / .12); color: var(--ink);
  font-size: .8rem; font-weight: 700; line-height: 1.4; box-shadow: 0 8px 20px rgb(var(--L-shade-rgb, 0 0 0) / calc(.45 * var(--L-shade-k, 1)));
}
.why-node b::before {
  content: ""; display: inline-block; width: .42rem; height: .42rem; margin-inline-end: .45rem; vertical-align: .08em;
  border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold);
}
.why-node:nth-of-type(odd) b::before { background: #6d8bff; box-shadow: 0 0 10px #6d8bff; }
.why-core {
  position: absolute; top: 50%; left: 50%; translate: -50% -50%;
  transform: rotateZ(calc(-1 * var(--why-t))) rotateX(-64deg); width: 4.6rem; height: 4.6rem; padding: .8rem; border-radius: 1.3rem;
  background: rgb(var(--L-surface-rgb, 13 19 32) / .9); border: 1px solid rgb(var(--L-ink-rgb, 255 255 255) / .12);
  box-shadow: 0 0 0 .6rem rgb(59 77 255 / .08), 0 0 60px rgb(59 77 255 / .45);
}
.why-core svg { width: 100%; height: 100%; }
@media (max-width: 23rem) { .why-orbit-plane { --r: 6.2rem; } .why-node b { font-size: .72rem; padding: .32rem .6rem; } }

/* ---------- B: page wireframe with SEO tags ---------- */
.why-page { display: grid; place-items: center; }
.why-page-frame {
  width: min(15rem, 72%); height: 9.5rem; padding: .7rem; border-radius: .9rem; display: grid; gap: .45rem; align-content: start;
  background: rgb(var(--L-ink-rgb, 255 255 255) / .03); border: 1px solid rgb(var(--L-ink-rgb, 255 255 255) / .1);
  transform: perspective(700px) rotateX(18deg) rotateZ(-4deg); box-shadow: 0 30px 50px -20px rgb(var(--L-shade-rgb, 0 0 0) / calc(.8 * var(--L-shade-k, 1)));
}
.why-page-bar { display: flex; gap: .25rem; }
.why-page-bar i { width: .35rem; height: .35rem; border-radius: 50%; background: rgb(var(--L-ink-rgb, 255 255 255) / .2); }
.why-page-hero { height: 2.6rem; border-radius: .45rem; background: linear-gradient(110deg, color-mix(in srgb, var(--accent) 45%, transparent), rgb(var(--L-ink-rgb, 255 255 255) / .05)); }
.why-page-line { height: .4rem; border-radius: 99px; background: rgb(var(--L-ink-rgb, 255 255 255) / .1); }
.why-page-line--short { width: 60%; }
.why-page-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; }
.why-page-cols i { height: 1.6rem; border-radius: .35rem; background: rgb(var(--L-ink-rgb, 255 255 255) / .06); }
.why-tag {
  position: absolute; padding: .3rem .6rem; border-radius: .5rem; font: 600 .72rem/1.3 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: var(--ink); background: rgb(var(--L-surface-rgb, 13 19 32) / .95); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 6px 18px rgb(var(--L-shade-rgb, 0 0 0) / calc(.5 * var(--L-shade-k, 1))), 0 0 16px color-mix(in srgb, var(--accent) 25%, transparent);
  opacity: 0; scale: .85;
}
.why-tag:nth-of-type(1) { top: 14%; inset-inline-start: 12%; }
.why-tag:nth-of-type(2) { top: 26%; inset-inline-end: 10%; }
.why-tag:nth-of-type(3) { top: 52%; inset-inline-start: 7%; }
.why-tag:nth-of-type(4) { top: 66%; inset-inline-end: 14%; }
.why-tag:nth-of-type(5) { top: 84%; inset-inline-start: 36%; }
.why-card.is-in .why-tag { animation: why-tag 7s var(--ease) calc(var(--i) * 450ms) infinite; }
@keyframes why-tag {
  0% { opacity: 0; scale: .85; translate: 0 .4rem; }
  8%, 78% { opacity: 1; scale: 1; translate: 0 0; }
  90%, 100% { opacity: 0; scale: .95; translate: 0 -.3rem; }
}

/* ---------- C: monitor → report → campaign loop ---------- */
.why-loop { display: grid; place-items: center; }
.why-loop-svg { width: 11rem; height: 11rem; overflow: visible; transform: rotate(-90deg); }
.why-loop-track { fill: none; stroke: rgb(var(--L-ink-rgb, 255 255 255) / .09); stroke-width: 1.5; stroke-dasharray: 3 5; }
.why-loop-arc {
  fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 22 78;
  filter: drop-shadow(0 0 6px var(--accent));
}
.why-card.is-in .why-loop-arc { animation: why-loop 6s linear infinite; }
@keyframes why-loop { to { stroke-dashoffset: -100; } }
.why-loop-step {
  /* 3 stops on the circle (radius 70 of 200 = 3.85rem of 11rem): top, bottom right, bottom left. */
  position: absolute; top: 50%; left: 50%; transform: translate(0, -3.85rem);
}
.why-loop-step:nth-of-type(2) { transform: translate(3.33rem, 1.93rem); }
.why-loop-step:nth-of-type(3) { transform: translate(-3.33rem, 1.93rem); }
.why-loop-step b {
  position: absolute; translate: -50% -50%; white-space: nowrap; padding: .38rem .75rem; border-radius: 99px;
  background: rgb(var(--L-surface-rgb, 13 19 32) / .95); border: 1px solid rgb(var(--L-ink-rgb, 255 255 255) / .12); color: var(--mist); font-size: .78rem; font-weight: 700; line-height: 1.4;
}
.why-card.is-in .why-loop-step b { animation: why-lit 6s linear calc(var(--p) * 2s - 1s) infinite; }
@keyframes why-lit {
  0%, 30%, 100% { color: var(--mist); border-color: rgb(var(--L-ink-rgb, 255 255 255) / .12); box-shadow: none; }
  8%, 22% { color: var(--ink); border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 35%, transparent); }
}

/* ---------- D: real work ---------- */
.why-card--work { cursor: pointer; }
.why-stack { perspective: 900px; }
.why-stack img {
  --o: 0; --ao: 0; position: absolute; top: 1.4rem; left: 50%; width: min(13rem, 62%); aspect-ratio: 16 / 10; object-fit: cover; object-position: top;
  border-radius: .8rem; border: 1px solid rgb(var(--L-ink-rgb, 255 255 255) / .14); box-shadow: 0 20px 40px rgb(var(--L-shade-rgb, 0 0 0) / calc(.6 * var(--L-shade-k, 1)));
  transform: translateX(calc(-50% + var(--o) * 32%)) translateY(calc(var(--ao) * .7rem)) rotate(calc(var(--o) * 7deg)) translateZ(calc(var(--ao) * -40px));
  transition: transform .6s var(--ease), filter .6s var(--ease); filter: brightness(.7) saturate(.85);
}
.why-stack img:nth-child(2) { filter: none; z-index: 1; }
/* Hover stays inside the preview column: the middle shot lifts, the side shots tilt out a little. */
.why-card--work:is(:hover, :focus-visible) .why-stack img {
  transform: translateX(calc(-50% + var(--o) * 30%)) translateY(calc(var(--ao) * 1.1rem)) rotate(calc(var(--o) * 9deg)) translateZ(calc(var(--ao) * -60px));
  filter: brightness(.55) saturate(.8);
}
.why-card--work:is(:hover, :focus-visible) .why-stack img:nth-child(2) {
  transform: translateX(-50%) translateY(-.6rem) scale(1.06); filter: none; box-shadow: 0 28px 50px rgb(var(--L-shade-rgb, 0 0 0) / calc(.7 * var(--L-shade-k, 1))), 0 0 0 1px rgb(255 190 11 / .35);
}
.why-big { display: flex; align-items: baseline; gap: .5rem; margin-bottom: .35rem; }
.why-text .why-big { margin-top: 0; }
.why-big span { color: var(--L-gold-ink, var(--gold)); font: 800 2.4rem/1 'Plus Jakarta Sans', 'Dana Pro', sans-serif; letter-spacing: -.03em; }
html[dir="rtl"] .why-big span { font-family: 'Dana Pro', sans-serif; }
.why-big small { color: var(--mist); font-size: .9rem; font-weight: 700; }
.why-link {
  margin-top: 1rem; display: inline-flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: .6rem 1.15rem; border-radius: 99px;
  border: 1px solid rgb(var(--L-ink-rgb, 255 255 255) / .12); background: rgb(var(--L-ink-rgb, 255 255 255) / .04); color: var(--ink); font-size: .9rem; font-weight: 800;
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.why-card--work:hover .why-link { background: var(--gold); border-color: var(--gold); color: #120f02; }
.why-arrow { display: inline-block; transition: transform .3s var(--ease); }
html[dir="rtl"] .why-arrow { transform: scaleX(-1); }
.why-card--work:hover .why-arrow { transform: translateX(3px); }
html[dir="rtl"] .why-card--work:hover .why-arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- Process ---------- */
.why-process { margin-top: 4.5rem; }
.why-process-title { color: var(--ink); font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 900; line-height: 1.35; }
.why-steps { --fill: 0; position: relative; margin-top: 2rem; display: grid; gap: 1.75rem; list-style: none; padding: 0; }
.why-steps::before, .why-steps::after {
  content: ""; position: absolute; border-radius: 2px; inset-inline-start: 1.35rem; top: 1.4rem; bottom: 1.4rem; width: 2px;
  background: rgb(var(--L-ink-rgb, 255 255 255) / .08);
}
.why-steps::after {
  background: linear-gradient(var(--gold), #3b4dff); transform-origin: top; transform: scaleY(var(--fill));
  box-shadow: 0 0 12px rgb(255 190 11 / .5);
}
.why-step { position: relative; padding-inline-start: 4.1rem; }
.why-step-num {
  position: absolute; inset-inline-start: 0; top: 0; z-index: 1; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%;
  background: var(--L-surface, #0d1320); border: 1px solid rgb(var(--L-ink-rgb, 255 255 255) / .14); color: var(--dim);
  font: 800 .85rem/1 'Plus Jakarta Sans', sans-serif; transition: color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease), background .4s var(--ease);
}
.why-step.is-on .why-step-num { color: #120f02; background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 .4rem rgb(255 190 11 / .12), 0 0 24px rgb(255 190 11 / .45); }
.why-step h4 { padding-top: .4rem; color: var(--ink); font-size: 1.1rem; font-weight: 800; line-height: 1.5; }
.why-step p { margin-top: .35rem; color: var(--mist); font-size: .92rem; line-height: 1.85; }
@media (min-width: 64rem) {
  .why-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
  .why-steps::before, .why-steps::after { top: 1.35rem; bottom: auto; height: 2px; width: auto; inset-inline: 1.4rem calc(25% - 1rem); }
  .why-steps::after { background: linear-gradient(90deg, var(--gold), #3b4dff); transform-origin: left; transform: scaleX(var(--fill)); }
  html[dir="rtl"] .why-steps::after { background: linear-gradient(270deg, var(--gold), #3b4dff); transform-origin: right; }
  .why-step { padding-inline-start: 0; padding-top: 4.1rem; }
  .why-step h4 { padding-top: 0; }
}

/* ---------- Footer CTA ---------- */
.why-foot {
  margin-top: 3.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem;
  padding: 1.5rem 1.75rem; border-radius: 1.5rem; border: 1px solid rgb(var(--L-ink-rgb, 255 255 255) / .08);
  background: linear-gradient(100deg, rgb(59 77 255 / .14), rgb(var(--L-ink-rgb, 255 255 255) / .02) 55%);
}
html[dir="rtl"] .why-foot { background: linear-gradient(260deg, rgb(59 77 255 / .14), rgb(var(--L-ink-rgb, 255 255 255) / .02) 55%); }
.why-foot-title { color: var(--ink); font-size: 1.2rem; font-weight: 800; line-height: 1.5; }
.why-foot-text { margin-top: .25rem; color: var(--mist); font-size: .95rem; line-height: 1.8; }
.why-foot-cta {
  flex: none; min-height: 3rem; padding: .8rem 1.5rem; border-radius: 99px; background: var(--gold); color: #120f02;
  font-weight: 800; font-size: .95rem; cursor: pointer; box-shadow: 0 12px 32px -10px rgb(255 190 11 / .7); transition: transform .3s var(--ease);
}
.why-foot-cta:hover { transform: translateY(-2px); }
.why-foot-cta:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media (max-width: 39.999rem) { .why-foot { padding: 1.25rem; } .why-foot-cta { width: 100%; } }

@media (prefers-reduced-motion: reduce) {
  .why.has-js .why-card:not(.is-in) { opacity: 1; translate: none; }
  .why-card { transition: none; }
  .why-orbit-plane, .why-card.is-in .why-tag, .why-card.is-in .why-loop-arc, .why-card.is-in .why-loop-step b { animation: none; }
  .why-tag { opacity: 1; scale: 1; }
  .why-stack img, .why-steps::after { transition: none; }
}
/* Pause the looping visuals while a card is off screen. */
.why-card.is-off, .why-card.is-off * { animation-play-state: paused !important; }
