/* Homepage typography: one family across the template and custom sections. */
.pk-home {
  --sora: "Sora", "Segoe UI", Arial, sans-serif;
  --kumbh: var(--sora);
  --urban: var(--sora);
  --template-font: var(--sora);
  --heading-font: var(--sora);
  --f-display: var(--sora);
  font-family: var(--template-font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

.pk-home :is(h1, h2, h3, h4, h5, h6, p, a, button, input, select, textarea,
  label, small, strong, b, em, blockquote, li, dt, dd, th, td, .nice-select) {
  font-family: var(--template-font);
}

/* Match the experience paragraph's typeface in nested text and dynamic cards.
   Icon fonts remain controlled by their own classes. */
.pk-home :is(h1, h2, h3, h4, h5, h6, p, a, button, label, small, strong, li) > span:not([class*="icon"]):not([class*="fa-"]):not([class*="ph-"]) {
  font-family: inherit;
}

.pk-home :is(.pk-intro-description, .pk-description, .pk-work-body > p,
  .pk-capability-grid p, .pk-repo-desc, .experience__single-content p) {
  font-weight: 400;
}

/* Hidden until initialized, so the page stays usable without JavaScript. */
#pkLoader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  place-items: center;
  padding: 24px;
  background: radial-gradient(ellipse at 50% 42%, #181113 0%, #09090b 55%, #060606 100%);
  color: #f4f4f5;
  font-family: var(--sora);
  transition: opacity .4s ease, visibility .4s ease;
}

#pkLoader.is-loading { display: grid; }
#pkLoader.pkl-out { opacity: 0; visibility: hidden; pointer-events: none; }

#pkLoader .pkl-box {
  width: min(340px, 100%);
  text-align: center;
}

#pkLoader .pkl-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

#pkLoader .pkl-logo {
  display: grid;
  place-items: center;
  flex: 0 0 76px;
  height: 76px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.015));
  box-shadow: 0 12px 32px rgba(0,0,0,.2), inset 0 1px 0 rgba(255,255,255,.04);
}

#pkLoader .pkl-logo img { display: block; width: 52px; height: 52px; object-fit: contain; }
#pkLoader .pkl-identity { text-align: left; }
#pkLoader .pkl-name { font-size: clamp(18px, 5vw, 22px); font-weight: 600; line-height: 1.4; letter-spacing: -.035em; }
#pkLoader .pkl-name span { display: block; margin-top: 7px; color: #b3a8aa; font-size: 10px; font-weight: 500; letter-spacing: .28em; line-height: 1.5; }
#pkLoader .pkl-divider { width: 36px; height: 2px; margin: 30px auto 20px; background: #f20101; }
#pkLoader .pkl-tagline { margin: 0; color: #b9b6bb; font-size: 12px; font-weight: 400; line-height: 1.7; letter-spacing: .015em; }
#pkLoader .pkl-bar { height: 2px; margin: 32px 12px 16px; overflow: hidden; border-radius: 2px; background: rgba(255,255,255,.09); }
#pkLoader .pkl-bar i { display: block; width: 40%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #a90000, #ff4949); animation: pkl-progress 1.35s ease-in-out infinite; }
#pkLoader .pkl-text { display: flex; align-items: center; justify-content: center; gap: 8px; color: #99949c; font-size: 10px; font-weight: 400; line-height: 1.6; letter-spacing: .04em; }
#pkLoader .pkl-status-dot { width: 4px; height: 4px; border-radius: 50%; background: #f24b4b; }
#pkLoader.pkl-out .pkl-bar i { width: 100%; transform: none; animation: none; }

@keyframes pkl-progress {
  from { transform: translateX(-105%); }
  to { transform: translateX(355%); }
}

@media (max-width: 375px) {
  #pkLoader .pkl-brand { gap: 14px; }
  #pkLoader .pkl-logo { flex-basis: 64px; height: 64px; border-radius: 16px; }
  #pkLoader .pkl-logo img { width: 44px; height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  #pkLoader { transition: none; }
  #pkLoader .pkl-bar i { animation: none; width: 100%; opacity: .7; }
}
