/* ============================================================
   KKRF TECH — Mobile App Development Company in New York
   NYC Page — GSAP-powered, extended from enterprise design system
   ============================================================ */

/* ── GSAP takes full control of .reveal-up elements ────────── */
/* CSS transitions are disabled; GSAP ScrollTrigger drives them */
.reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: none !important;
}
.reveal-up.in { opacity: 1; transform: none; }

/* ── NYC Hero badge ─────────────────────────────────────────── */
.nyc-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--E-black);
  color: var(--E-white);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  padding: 9px 18px 9px 14px;
  border-radius: 40px;
  border: 1px solid rgba(21,116,255,.35);
  margin-bottom: 28px;
  width: fit-content;
}
.nyc-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--E-blue);
  flex-shrink: 0;
  animation: nycPulse 2.2s ease-in-out infinite;
}
@keyframes nycPulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(1.6); opacity: .55; }
}

/* ── NYC Skyline (hero background) ──────────────────────────── */
.nyc-skyline {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 55%;
  height: 80%;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}
.nyc-skyline svg {
  width: 100%;
  height: 100%;
}

/* ── NYC hero h1: word-split support ────────────────────────── */
.nyc-hero__h1 .nyc-w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
}
.nyc-hero__h1 .nyc-wi {
  display: inline-block;
}

/* ── NYC Ticker ─────────────────────────────────────────────── */
.nyc-ticker {
  background: var(--E-black);
  border-bottom: 1px solid rgba(21,116,255,.12);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}
.nyc-ticker::before,
.nyc-ticker::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
}
.nyc-ticker::before { left: 0; background: linear-gradient(90deg, var(--E-black), transparent); }
.nyc-ticker::after  { right: 0; background: linear-gradient(-90deg, var(--E-black), transparent); }

.nyc-ticker__track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  animation: nycTick 35s linear infinite;
}
.nyc-ticker:hover .nyc-ticker__track { animation-play-state: paused; }
@keyframes nycTick {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.nyc-ticker__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 36px;
  border-right: 1px solid rgba(255,255,255,.06);
  white-space: nowrap;
}
.nyc-ticker__num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 18px;
  color: var(--E-white);
  letter-spacing: -.03em;
}
.nyc-ticker__lbl {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: rgba(255,255,255,.38);
}
.nyc-ticker__accent { color: var(--E-blue); font-size: 9px; opacity: .6; }

/* ── Global Success section ─────────────────────────────────── */
.nglobal {
  padding: 88px 0;
  background: var(--E-white);
  border-top: 1px solid var(--E-line);
}
.nglobal__in {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.nglobal__copy p {
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 1.75;
  color: var(--E-muted);
  margin-bottom: 18px;
  text-wrap: pretty;
}
.nglobal__copy p:last-child { margin-bottom: 0; }
.nglobal__visual {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.nglobal__stat {
  padding: 28px 20px;
  border: 1px solid var(--E-line);
  border-radius: 8px;
  background: var(--E-gray);
  text-align: center;
  transition: background .25s, border-color .25s, transform .3s var(--snap);
}
.nglobal__stat:hover {
  background: var(--E-white);
  border-color: var(--E-blue);
  transform: translateY(-3px);
}
.nglobal__stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(22px, 2.6vw, 38px);
  letter-spacing: -.05em;
  color: var(--E-ink);
  line-height: 1;
  margin-bottom: 8px;
}
.nglobal__stat span {
  font-size: 12px;
  color: var(--E-muted);
  font-weight: 500;
  font-family: var(--mono);
  letter-spacing: .05em;
}

/* ── Success stories 6-grid (3 col) ─────────────────────────── */
.lwork__grid--six {
  grid-template-columns: repeat(3, 1fr);
}

/* ── Compliance category cards ─────────────────────────────── */
.lcomp-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 52px;
}
.lcomp-cat {
  padding: 28px 28px 32px;
  border: 1px solid var(--E-line);
  border-radius: 8px;
  background: var(--E-white);
  transition: border-color .25s, box-shadow .25s, transform .3s var(--snap);
}
.lcomp-cat:hover {
  border-color: var(--E-blue);
  box-shadow: 0 6px 24px rgba(21,116,255,.09);
  transform: translateY(-2px);
}
.lcomp-cat__eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--E-blue);
  margin-bottom: 10px;
}
.lcomp-cat__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -.025em;
  color: var(--E-ink);
  margin-bottom: 10px;
  text-wrap: balance;
}
.lcomp-cat__desc {
  font-size: 13.5px;
  color: var(--E-muted);
  line-height: 1.65;
  text-wrap: pretty;
}

/* ── Awards & Accreditations ─────────────────────────────────── */
.naward {
  padding: 80px 0;
  background: var(--E-offwhite);
  border-top: 1px solid var(--E-line);
}
.naward__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 44px;
}
.naward__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 32px 20px;
  border: 1px solid var(--E-line);
  border-radius: 8px;
  background: var(--E-white);
  transition: border-color .25s, box-shadow .25s, transform .3s var(--snap);
}
.naward__card:hover {
  border-color: var(--E-blue);
  box-shadow: 0 8px 28px -8px rgba(21,116,255,.15);
  transform: translateY(-4px);
}
.naward__icon {
  width: 50px; height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--E-blue-t);
  border: 1px solid var(--E-blue-t2);
  margin-bottom: 14px;
  font-size: 22px;
}
.naward__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14.5px;
  color: var(--E-ink);
  letter-spacing: -.02em;
  margin-bottom: 5px;
}
.naward__sub {
  font-size: 12px;
  color: var(--E-muted);
  line-height: 1.55;
}

/* ── Enterprise Challenges ─────────────────────────────────── */
.nchal {
  padding: 112px 0;
  background: var(--E-black);
  border-top: 1px solid rgba(255,255,255,.05);
}
.nchal__head { max-width: 840px; margin-bottom: 56px; }
.nchal__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  overflow: hidden;
}
.nchal__card {
  background: var(--E-black);
  padding: clamp(32px, 3.5vw, 52px);
  transition: background .3s;
  position: relative;
  overflow: hidden;
}
.nchal__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 3px;
  height: 0;
  background: var(--E-blue);
  transition: height .4s var(--snap);
}
.nchal__card:hover { background: #0f1014; }
.nchal__card:hover::before { height: 100%; }
.nchal__no {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  color: rgba(110,167,255,.5);
  display: block;
  margin-bottom: 18px;
}
.nchal__card h3 {
  font-family: var(--font-display);
  font-size: clamp(17px, 1.7vw, 22px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--E-white);
  margin-bottom: 12px;
  text-wrap: balance;
}
.nchal__card p {
  color: rgba(255,255,255,.38);
  font-size: 14px;
  line-height: 1.73;
  text-wrap: pretty;
}

/* ── Next-Gen Technologies ─────────────────────────────────── */
.nnext {
  padding: 112px 0;
  background: var(--E-offwhite);
  border-top: 1px solid var(--E-line);
}
.nnext__head { max-width: 840px; margin-bottom: 56px; }
.nnext__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.nnext__card {
  padding: clamp(24px, 3vw, 38px);
  border: 1px solid var(--E-line);
  border-radius: 8px;
  background: var(--E-white);
  transition: border-color .25s, box-shadow .25s, transform .3s var(--snap);
}
.nnext__card:hover {
  border-color: var(--E-blue);
  box-shadow: 0 8px 32px -10px rgba(21,116,255,.18);
  transform: translateY(-3px);
}
.nnext__icon {
  width: 38px; height: 38px;
  border-radius: 8px;
  background: var(--E-blue-t);
  border: 1px solid var(--E-blue-t2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 18px;
  transition: background .25s;
}
.nnext__card:hover .nnext__icon {
  background: var(--E-blue);
  border-color: var(--E-blue);
}
.nnext__card h3 {
  font-family: var(--font-display);
  font-size: clamp(14.5px, 1.4vw, 17px);
  font-weight: 800;
  letter-spacing: -.025em;
  color: var(--E-ink);
  margin-bottom: 9px;
  text-wrap: balance;
}
.nnext__card p {
  font-size: 13px;
  color: var(--E-muted);
  line-height: 1.68;
  text-wrap: pretty;
}

/* ── Related Insights ──────────────────────────────────────── */
.ninsight {
  padding: 80px 0;
  background: var(--E-white);
  border-top: 1px solid var(--E-line);
}
.ninsight__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.ninsight__card {
  padding: 28px 28px 32px;
  border: 1px solid var(--E-line);
  border-radius: 8px;
  background: var(--E-gray);
  text-decoration: none;
  display: block;
  transition: border-color .25s, background .25s, transform .3s var(--snap);
}
.ninsight__card:hover {
  border-color: var(--E-blue);
  background: var(--E-white);
  transform: translateY(-3px);
}
.ninsight__card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15.5px;
  letter-spacing: -.025em;
  color: var(--E-ink);
  margin-bottom: 8px;
  transition: color .2s;
  text-wrap: balance;
}
.ninsight__card:hover h3 { color: var(--E-blue); }
.ninsight__card p {
  font-size: 13.5px;
  color: var(--E-muted);
  line-height: 1.65;
}
.ninsight__arr {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  color: var(--E-blue);
  transition: gap .25s var(--snap);
}
.ninsight__card:hover .ninsight__arr { gap: 10px; }

/* ── Narrow success card for 6-up grid ─────────────────────── */
.lwork__card--narrow .lwork__sector { font-size: clamp(14px, 1.3vw, 17px); }

/* ── Compliance grid NYC variant (more logos) ───────────────── */
.lcomp__grid--nyc {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* ── Hero grid tighter / more urban on NYC page ─────────────── */
.nyc-page .lhero__grid {
  background-size: 36px 36px;
  opacity: .7;
}

/* ─────────────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nglobal__in  { grid-template-columns: 1fr; gap: 44px; }
  .nchal__grid  { grid-template-columns: 1fr; }
  .nnext__grid  { grid-template-columns: repeat(2, 1fr); }
  .ninsight__grid { grid-template-columns: 1fr; }
  .lwork__grid--six { grid-template-columns: repeat(2, 1fr); }
  .naward  { padding: 64px 0; }
  .nglobal { padding: 64px 0; }
  .nchal   { padding: 88px 0; }
  .nnext   { padding: 88px 0; }
  .ninsight { padding: 64px 0; }
  .nyc-skyline { width: 70%; opacity: .75; }
}

@media (max-width: 768px) {
  .nyc-ticker__num { font-size: 15px; }
  .nyc-ticker__item { padding: 0 24px; }
  .nnext__grid { grid-template-columns: 1fr; gap: 10px; }
  .lcomp-cats { grid-template-columns: 1fr; }
  .nglobal__visual { grid-template-columns: 1fr 1fr; }
  .lwork__grid--six { grid-template-columns: 1fr; }
  .naward__grid { grid-template-columns: repeat(2, 1fr); }
  .nchal   { padding: 64px 0; }
  .nnext   { padding: 64px 0; }
  .nyc-skyline { display: none; }
  .ninsight__grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .naward__grid { grid-template-columns: 1fr; }
  .nglobal__visual { grid-template-columns: 1fr 1fr; }
  .nyc-ticker { padding: 12px 0; }
  .lcomp__grid--nyc { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
  .nchal__card { padding: 28px 20px; }
  .nnext__card { padding: 22px 18px; }
}
