/* ==========================================================================
   Nirag Infotech — Our Portfolio page
   File: wp-content/themes/narang-new/assets/css/portfolio.css
   Loaded only by the "Portfolio Page" template (it enqueues this file itself).
   Same colours, type and buttons as the service pages. Scroll reveals come
   from motion.js (nm-up / nm-scale / nm-count); everything that moves on its
   own sits behind prefers-reduced-motion.
   ========================================================================== */

.pf {
  --pf-navy: #0b1c46;
  --pf-night: #0a1233;
  --pf-indigo: #303399;
  --pf-blue: #016ecc;
  --pf-cyan: #2aabe1;
  --pf-sky: #4cc6f4;
  --pf-ink: #14213d;
  --pf-muted: #55617c;
  --pf-mist: #f3f8fd;
  --pf-line: rgba(11, 28, 70, .1);
  --pf-rule: rgba(160, 190, 255, .16);          /* hairlines on dark panels */
  --pf-soft: rgba(219, 228, 255, .72);           /* body text on dark panels */
  --pf-ease: cubic-bezier(.16, 1, .3, 1);
  --pf-serif: "Frank Ruhl Libre", Georgia, serif;
  --pf-sans: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pf-grad: linear-gradient(120deg, var(--pf-indigo) 0%, var(--pf-blue) 55%, var(--pf-cyan) 100%);
  --pf-dark:
    radial-gradient(90% 120% at 0% 0%, rgba(33, 72, 160, .55) 0%, transparent 60%),
    linear-gradient(160deg, #0f1d4d 0%, var(--pf-night) 100%);
  --pf-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%234cc6f4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  --pf-check-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4l2.6 2.6L12 5.6' fill='none' stroke='%23303399' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* The theme sets a serif on every element; body copy here is Poppins */
.pf .pf-sec :is(p, li, dd, dt, summary, a, span, b, strong, em, button, figcaption, blockquote, h3) {
  font-family: var(--pf-sans) !important;
}
.pf [hidden] { display: none !important; }
.pf .screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* --------------------------------------------------------------------------
   Shared
   -------------------------------------------------------------------------- */
.pf-sec {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  overflow: clip;            /* clips the decorative shapes, keeps sticky headers working */
  padding: clamp(56px, 7vw, 100px) 0;
}
.pf-sec--mist { background: var(--pf-mist); }

.pf .pf-sec h2 {
  margin: 0;
  color: var(--pf-navy);
  font-family: var(--pf-serif) !important;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.01em;
  text-align: left;
  text-wrap: balance;
}
.pf .pf-sec h3 { margin: 0; }

.pf-head { max-width: 640px; margin-bottom: clamp(28px, 4vw, 48px); }
.pf-head > p:not([class]) { margin: 14px 0 0; color: var(--pf-muted); font-size: 16px; line-height: 1.7; }
.pf-head--row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 48px;
  align-items: flex-end;
  justify-content: space-between;
  max-width: none;
}
.pf-head__note { max-width: 420px; margin: 0; color: var(--pf-muted); font-size: 15px; line-height: 1.7; }

.pf-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding-left: 32px;
  background: linear-gradient(currentColor, currentColor) 0 54% / 22px 1.5px no-repeat;
  color: var(--pf-blue);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.pf-actions { display: flex; flex-wrap: wrap; gap: 12px 14px; margin-top: 30px; }
.pf .pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border: 0;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background-color .3s var(--pf-ease), border-color .3s var(--pf-ease), color .3s var(--pf-ease),
              box-shadow .35s var(--pf-ease), translate .4s var(--pf-ease);
}
.pf-sec svg { width: 14px; height: 14px; flex-shrink: 0; transition: translate .4s var(--pf-ease); }
.pf .pf-btn--solid { background: var(--pf-grad); box-shadow: 0 16px 30px -16px rgba(48, 51, 153, .7); color: #fff !important; }
.pf .pf-btn--solid:hover { translate: 0 -2px; box-shadow: 0 22px 38px -16px rgba(48, 51, 153, .75); }
.pf .pf-btn--line { border: 1.5px solid rgba(48, 51, 153, .22); background: #fff; color: var(--pf-navy) !important; }
.pf .pf-btn--line:hover { border-color: var(--pf-cyan); background: var(--pf-mist); }
.pf .pf-btn--light { background: #fff; color: var(--pf-navy) !important; box-shadow: 0 18px 36px -18px rgba(0, 0, 0, .55); }
.pf .pf-btn--light:hover { translate: 0 -2px; }
.pf .pf-btn--ghost { border: 1px solid rgba(255, 255, 255, .5); color: #fff !important; }
.pf .pf-btn--ghost:hover { background: rgba(255, 255, 255, .1); }
.pf-btn:hover svg, .pf-link:hover svg, .pf-client:hover .pf-client__go svg { translate: 3px 0; }
.pf :is(.pf-btn, .pf-link, .pf-client, .pf-filter button, .pf-site a, summary):focus-visible {
  outline: 2px solid var(--pf-cyan);
  outline-offset: 3px;
}

.pf .pf-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  color: var(--pf-blue) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.pf .pf-link--light { color: var(--pf-sky) !important; }

/* Concentric rings with a pulsing centre, as on the company profile */
.pf-rings {
  position: absolute;
  z-index: -1;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 37px, rgba(76, 198, 244, .2) 37px 38px);
  -webkit-mask-image: radial-gradient(circle, #000 28%, transparent 70%);
          mask-image: radial-gradient(circle, #000 28%, transparent 70%);
}
.pf-rings i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: var(--pf-sky);
  box-shadow: 0 0 0 7px rgba(76, 198, 244, .14);
}
.pf-rings i::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid var(--pf-sky);
  border-radius: 50%;
  opacity: 0;
}

.pf-shape { position: absolute; z-index: -1; pointer-events: none; }
.pf-shape--dots {
  top: 70px;
  right: -30px;
  width: 280px;
  height: 220px;
  background: radial-gradient(rgba(48, 51, 153, .2) 1.5px, transparent 1.7px) 0 0 / 18px 18px;
  -webkit-mask-image: linear-gradient(225deg, #000 20%, transparent 75%);
          mask-image: linear-gradient(225deg, #000 20%, transparent 75%);
}


/* --------------------------------------------------------------------------
   1. Intro + numbers
   -------------------------------------------------------------------------- */
.pf-intro__grid { display: grid; gap: clamp(36px, 5vw, 72px); align-items: center; }
@media (min-width: 992px) {
  .pf-intro__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr); }
}
.pf .pf-intro h2 { font-size: clamp(30px, 3.3vw, 46px); }
.pf-intro__lead { margin: 20px 0 0; color: var(--pf-ink); font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; }
.pf-intro__copy > p:not([class]) { margin: 14px 0 0; color: var(--pf-muted); font-size: 15px; line-height: 1.75; }

.pf-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(26px, 3.4vw, 44px);
  border-radius: 28px;
  background: var(--pf-dark);
  box-shadow: 0 40px 80px -44px rgba(11, 28, 70, .75);
  color: #fff;
}
.pf-panel .pf-rings { top: -232px; right: -232px; width: 540px; }
.pf-panel__label {
  margin: 0 0 26px;
  color: var(--pf-sky);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.pf-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
.pf-stat { display: flex; flex-direction: column; padding: 24px 0; }
.pf-stat:nth-child(odd) { padding-right: 22px; border-right: 1px solid var(--pf-rule); }
.pf-stat:nth-child(even) { padding-left: 24px; }
.pf-stat:nth-child(-n + 2) { padding-top: 0; border-bottom: 1px solid var(--pf-rule); }
.pf-stat:nth-child(n + 3) { padding-bottom: 0; }
.pf-stat dt { color: #fff; font-size: 15px; font-weight: 600; line-height: 1.35; }
.pf-stat__num {
  order: -1;
  margin: 0 0 12px;
  color: var(--pf-sky);
  font-size: clamp(40px, 4.2vw, 58px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.03em;
  font-variant-numeric: tabular-nums;
}
.pf-stat__text { margin: 6px 0 0; color: var(--pf-soft); font-size: 13px; line-height: 1.6; }
.pf-panel__note {
  margin: 26px 0 0;
  padding: 16px 18px;
  border: 1px solid var(--pf-rule);
  border-radius: 14px;
  background: rgba(255, 255, 255, .04);
  color: var(--pf-soft);
  font-size: 14px;
  line-height: 1.6;
}
.pf-panel__note strong { color: #fff; font-weight: 600; }

@media (max-width: 575px) {
  .pf-stats { grid-template-columns: 1fr; }
  .pf-stat,
  .pf-stat:nth-child(n) {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    grid-template-areas: "num label" "num text";
    align-items: start;
    column-gap: 14px;
    padding: 18px 0;
    border-right: 0;
    border-bottom: 1px solid var(--pf-rule);
  }
  .pf-stat:first-child { padding-top: 0; }
  .pf-stat:last-child { padding-bottom: 0; border-bottom: 0; }
  .pf-stat dt { grid-area: label; }
  .pf-stat__num { grid-area: num; margin: 0; font-size: 38px; }
  .pf-stat__text { grid-area: text; }
}


/* --------------------------------------------------------------------------
   2. Clients
   -------------------------------------------------------------------------- */
.pf-clients__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.pf-clients__grid > li { margin: 0; }
.pf .pf-client {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 22px 22px 18px;
  overflow: hidden;
  border: 1px solid var(--pf-line);
  border-radius: 18px;
  background: #fff;
  text-decoration: none !important;
  transition: translate .45s var(--pf-ease), border-color .3s var(--pf-ease), box-shadow .45s var(--pf-ease);
}
.pf-client::before {                       /* accent line that draws in on hover */
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--pf-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--pf-ease);
}
.pf .pf-client:hover { translate: 0 -4px; border-color: rgba(42, 171, 225, .45); box-shadow: 0 26px 44px -30px rgba(11, 28, 70, .5); }
.pf-client:hover::before { transform: scaleX(1); }
.pf-client__sector { color: var(--pf-blue); font-size: 11px; font-weight: 600; line-height: 1.4; letter-spacing: .14em; text-transform: uppercase; }
.pf-client__name { margin-top: 10px; color: var(--pf-navy); font-size: 19px; font-weight: 600; line-height: 1.25; }
.pf-client__note { flex: 1; margin-top: 8px; color: var(--pf-muted); font-size: 13.5px; line-height: 1.6; }
.pf-client__go {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--pf-line);
  color: var(--pf-indigo);
  font-size: 12.5px;
  font-weight: 600;
}
.pf-clients__more { margin: 22px 0 0; color: var(--pf-muted); font-size: 14px; }

@media (max-width: 1199px) {
  .pf-clients__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {                /* swipe row on phones */
  .pf-clients__grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 300px);
    margin: 0 -15px;
    padding: 4px 15px 14px;
    overflow-x: auto;
    scroll-padding-inline: 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .pf-clients__grid::-webkit-scrollbar { display: none; }
  .pf-clients__grid > li { scroll-snap-align: start; }
}


/* --------------------------------------------------------------------------
   3. Case studies
   -------------------------------------------------------------------------- */
.pf-filter { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 clamp(24px, 3vw, 36px); }
.pf .pf-filter button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 10px 18px;
  border: 1.5px solid rgba(48, 51, 153, .16);
  border-radius: 999px;
  background: #fff;
  color: var(--pf-navy);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color .3s var(--pf-ease), border-color .3s var(--pf-ease), color .3s var(--pf-ease), box-shadow .35s var(--pf-ease);
}
.pf .pf-filter button:hover { border-color: var(--pf-cyan); }
.pf .pf-filter button[aria-pressed="true"] {
  border-color: transparent;
  background: var(--pf-grad);
  box-shadow: 0 14px 26px -16px rgba(48, 51, 153, .8);
  color: #fff;
}
.pf-filter__n {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--pf-mist);
  color: var(--pf-indigo);
  font-size: 11.5px;
  font-weight: 600;
}
.pf-filter button[aria-pressed="true"] .pf-filter__n { background: rgba(255, 255, 255, .2); color: #fff; }

.pf-cases__grid { display: grid; gap: 20px; align-items: start; }
@media (min-width: 992px) {
  .pf-cases__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.pf-case {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.6vw, 34px);
  border: 1px solid var(--pf-line);
  border-radius: 22px;
  background: #fff;
  scroll-margin-top: 120px;
  transition: border-color .3s var(--pf-ease), box-shadow .45s var(--pf-ease);
}
.pf-case::before {                          /* gradient spine on the left edge */
  content: "";
  position: absolute;
  top: 30px;
  bottom: 30px;
  left: -1px;
  width: 3px;
  border-radius: 3px;
  background: var(--pf-grad);
  transform: scaleY(.25);
  transform-origin: top;
  transition: transform .6s var(--pf-ease);
}
.pf-case:hover { border-color: rgba(42, 171, 225, .35); box-shadow: 0 30px 60px -42px rgba(11, 28, 70, .5); }
.pf-case:hover::before, .pf-case:target::before { transform: scaleY(1); }
.pf-case:target { border-color: var(--pf-cyan); }

.pf-case__num {
  position: absolute;
  top: 16px;
  right: 24px;
  color: transparent;
  font-family: var(--pf-serif) !important;
  font-size: 58px;
  font-weight: 700;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(48, 51, 153, .2);
  pointer-events: none;
}
.pf-case__tags {
  margin: 0 70px 0 0;
  color: var(--pf-blue);
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.7;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.pf-case__region {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--pf-mist);
  color: var(--pf-indigo);
  letter-spacing: .08em;
}
.pf-case__client { margin: 16px 0 0; color: var(--pf-muted); font-size: 14px; font-weight: 600; }
.pf .pf-sec h3.pf-case__title {
  margin: 4px 0 0;
  color: var(--pf-navy);
  font-family: var(--pf-serif) !important;
  font-size: clamp(22px, 2vw, 27px);
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
}
.pf-case__sum { margin: 12px 0 0; color: var(--pf-muted); font-size: 15px; line-height: 1.7; }

.pf-case__figure {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 0;
  padding: 12px 16px;
  border-radius: 14px;
  background: linear-gradient(90deg, rgba(42, 171, 225, .1), rgba(42, 171, 225, 0) 80%);
}
.pf .pf-sec .pf-case__figure b {
  background: var(--pf-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-family: var(--pf-serif) !important;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
}
.pf-case__figure span { max-width: 24ch; color: var(--pf-ink); font-size: 13.5px; font-weight: 500; line-height: 1.45; }

.pf-case__impact {
  margin-top: 22px;
  padding: 20px 22px 18px;
  border-radius: 16px;
  background: var(--pf-dark);
  color: #fff;
}
.pf-case__label { margin: 0 0 12px; color: var(--pf-sky); font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.pf-case__impact ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; }
.pf-case__impact li {
  position: relative;
  margin: 0;
  padding-left: 28px;
  color: rgba(235, 241, 255, .92);
  font-size: 14px;
  line-height: 1.55;
}
.pf-case__impact li::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(76, 198, 244, .16) var(--pf-check) center / 11px no-repeat;
}

/* AI projects: outcomes are targets, so they are drawn as a plan, not a result */
.pf-case--concept .pf-case__impact {
  border: 1.5px dashed rgba(48, 51, 153, .28);
  background: var(--pf-mist);
  color: var(--pf-ink);
}
.pf-case--concept .pf-case__label { color: var(--pf-indigo); }
.pf-case--concept .pf-case__impact li { color: var(--pf-ink); }
.pf-case--concept .pf-case__impact li::before { background-color: rgba(48, 51, 153, .1); background-image: var(--pf-check-ink); }

.pf-case__more { margin-top: 18px; border-top: 1px solid var(--pf-line); }
.pf .pf-case__more summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0 0;
  color: var(--pf-indigo);
  font-size: 14px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.pf-case__more summary::-webkit-details-marker { display: none; }
.pf-case__more summary::after {
  content: "";
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 11px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 11px no-repeat,
    var(--pf-mist);
  transition: rotate .4s var(--pf-ease), background-color .3s;
}
.pf-case__more[open] summary::after { rotate: 45deg; }
.pf-case__more summary:hover::after { background-color: rgba(42, 171, 225, .14); }
.pf-case__more dl { display: grid; gap: 14px; margin: 14px 0 0; }
.pf-case__more dt { color: var(--pf-navy); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pf-case__more dd { margin: 4px 0 0; color: var(--pf-muted); font-size: 14.5px; line-height: 1.7; }

@media (max-width: 767px) {               /* one swipeable row of filters */
  .pf-filter {
    flex-wrap: nowrap;
    margin-inline: -15px;
    padding: 2px 15px 8px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .pf-filter::-webkit-scrollbar { display: none; }
  .pf .pf-filter button { flex-shrink: 0; }
  .pf-case__num { font-size: 46px; right: 18px; }
}


/* --------------------------------------------------------------------------
   4. More projects (Portfolio posts)
   -------------------------------------------------------------------------- */
.pf-work__grid { display: grid; gap: 22px; align-items: start; }
@media (min-width: 768px)  { .pf-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .pf-work__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.pf-site {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--pf-line);
  border-radius: 20px;
  background: #fff;
  transition: translate .45s var(--pf-ease), box-shadow .45s var(--pf-ease);
}
.pf-site:hover { translate: 0 -4px; box-shadow: 0 30px 50px -36px rgba(11, 28, 70, .5); }

.pf .pf-site__shot {
  display: block;
  padding: 14px 14px 0;
  background: linear-gradient(180deg, #e9f2fb, #fff);
  text-decoration: none !important;
}
.pf-site__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border: 1px solid var(--pf-line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: #fff;
}
.pf-site__bar i { width: 8px; height: 8px; flex-shrink: 0; border-radius: 50%; background: #ff6b6b; }
.pf-site__bar i:nth-child(2) { background: #ffc145; }
.pf-site__bar i:nth-child(3) { background: #3ccf8e; }
.pf-site__url {
  flex: 1;
  min-width: 0;
  margin-left: 8px;
  padding: 4px 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--pf-mist);
  color: var(--pf-muted);
  font-size: 11px;
  line-height: 1.3;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.pf-site__frame {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--pf-line);
  border-top: 0;
  background: var(--pf-mist);
}
.pf .pf-site__img {
  display: block;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  object-position: 50% 0;
}
.pf-site__frame::after {                   /* "view full size" chip on hover */
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23303399' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/%3E%3C/svg%3E") center / 15px no-repeat;
  box-shadow: 0 10px 24px -10px rgba(11, 28, 70, .5);
  opacity: 0;
  scale: .8;
  transition: opacity .3s var(--pf-ease), scale .4s var(--pf-ease);
}
.pf-site__shot:hover .pf-site__frame::after, .pf-site__shot:focus-visible .pf-site__frame::after { opacity: 1; scale: 1; }

.pf-site__body { display: flex; flex: 1; flex-direction: column; padding: 20px 22px 22px; }
.pf-site__head { display: flex; align-items: center; gap: 12px; }
.pf .pf-site__icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 6px;
  border: 1px solid var(--pf-line);
  border-radius: 12px;
  background: #fff;
  object-fit: contain;
}
.pf .pf-sec .pf-site__head h3 { color: var(--pf-navy); font-size: 18px; font-weight: 600; line-height: 1.3; }
.pf-site__tech { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.pf-site__tech li { margin: 0; padding: 5px 11px; border-radius: 999px; background: rgba(48, 51, 153, .07); color: var(--pf-indigo); font-size: 12px; font-weight: 500; line-height: 1.3; }
.pf-site__info { margin-top: 14px; color: var(--pf-muted); font-size: 14px; line-height: 1.7; }
.pf-site__info > * { margin: 0 0 8px; color: inherit; font-size: inherit; line-height: inherit; }
.pf-site__info > :last-child { margin-bottom: 0; }
.pf-site__info.is-clamped {
  max-height: calc(1.7em * 4);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 50%, transparent);
          mask-image: linear-gradient(#000 50%, transparent);
}
.pf-site__info.is-open { max-height: none; -webkit-mask-image: none; mask-image: none; }
.pf .pf-site__more {
  align-self: flex-start;
  margin-top: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--pf-blue);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pf .pf-site__visit {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 6px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--pf-indigo) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
}
.pf-site__visit:hover svg { translate: 2px -2px; }


/* --------------------------------------------------------------------------
   5. In-house AI (dark band)
   -------------------------------------------------------------------------- */
.pf-ai { background: var(--pf-dark); color: #fff; }
.pf-ai .pf-rings { right: -260px; bottom: -300px; width: 760px; }
.pf-ai .pf-eyebrow { color: var(--pf-sky); }
.pf .pf-ai h2 { color: #fff; }
.pf-ai .pf-head__note { max-width: 470px; color: var(--pf-soft); }
.pf-ai .pf-head__note strong { color: #fff; font-weight: 600; }

.pf-ai__patents { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pf-patent {
  position: relative;
  padding: 28px 28px 30px;
  border: 1px solid var(--pf-rule);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  transition: border-color .3s var(--pf-ease), translate .45s var(--pf-ease);
}
.pf-patent:hover { translate: 0 -4px; border-color: rgba(76, 198, 244, .45); }
.pf-patent__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px 5px 9px;
  border-radius: 999px;
  background: rgba(76, 198, 244, .14);
  color: var(--pf-sky);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.pf-patent__badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px rgba(76, 198, 244, .25); }
.pf .pf-sec h3.pf-patent__name {
  margin-top: 22px;
  color: var(--pf-sky);
  font-size: clamp(26px, 2.3vw, 33px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.pf-patent__sub { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--pf-rule); color: #fff; font-size: 15px; font-weight: 600; }
.pf-patent > p:last-child { margin: 8px 0 0; color: var(--pf-soft); font-size: 14px; line-height: 1.65; }

.pf-ai__products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 18px 0 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--pf-rule);
  border-radius: 22px;
  background: var(--pf-rule);               /* shows through the 1px gaps as dividers */
  list-style: none;
  counter-reset: pf-prod;
}
.pf-ai__products li { margin: 0; padding: 24px; background: #0d1840; counter-increment: pf-prod; }
.pf-ai__products li::before {
  content: counter(pf-prod, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--pf-sky);
  border-radius: 50%;
  color: var(--pf-sky);
  font: 600 12px/1 var(--pf-sans);
}
.pf .pf-sec .pf-ai__products h3 { margin-top: 16px; color: #fff; font-size: 16px; font-weight: 600; }
.pf-ai__products p { margin: 6px 0 0; color: var(--pf-soft); font-size: 13.5px; line-height: 1.6; }

@media (max-width: 991px) {
  .pf-ai__patents { grid-template-columns: 1fr; }
  .pf-ai__products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .pf-ai__products { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   6. Industries
   -------------------------------------------------------------------------- */
.pf-ind__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pf-industry {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--pf-line);
  border-radius: 22px;
  background: #fff;
  transition: translate .45s var(--pf-ease), border-color .3s var(--pf-ease), box-shadow .45s var(--pf-ease);
}
.pf-industry:hover { translate: 0 -4px; border-color: rgba(42, 171, 225, .4); box-shadow: 0 26px 44px -32px rgba(11, 28, 70, .45); }
.pf-industry__icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--pf-mist);
  color: var(--pf-indigo);
}
.pf-sec .pf-industry__icon svg { width: 26px; height: 26px; }
.pf .pf-sec .pf-industry h3 { margin-top: 20px; color: var(--pf-navy); font-size: 18px; font-weight: 600; line-height: 1.3; }
.pf-industry p { margin: 8px 0 0; color: var(--pf-muted); font-size: 14.5px; line-height: 1.7; }

.pf-industry--lead {
  grid-column: span 2;
  border-color: transparent;
  background: var(--pf-grad);
  color: #fff;
}
.pf-industry--lead::after {                /* rings in the corner */
  content: "";
  position: absolute;
  z-index: -1;
  right: -140px;
  bottom: -190px;
  width: 420px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 30px, rgba(255, 255, 255, .14) 30px 31px);
  -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%);
          mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
.pf-industry--lead .pf-industry__icon { background: rgba(255, 255, 255, .16); color: #fff; }
.pf .pf-sec .pf-industry--lead h3 { color: #fff; font-size: clamp(20px, 2vw, 25px); }
.pf-industry--lead p { max-width: 54ch; color: rgba(255, 255, 255, .86); font-size: 15px; }
.pf-industry__flag {
  position: absolute;
  top: 28px;
  right: 28px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pf-ind__also {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--pf-line);
}
.pf-ind__also-label { color: var(--pf-muted); font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.pf-ind__also ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.pf-ind__also li { margin: 0; padding: 8px 15px; border: 1px solid var(--pf-line); border-radius: 999px; background: #fff; color: var(--pf-ink); font-size: 13.5px; }

@media (max-width: 991px) {
  .pf-ind__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
  .pf-ind__grid { grid-template-columns: 1fr; }
  .pf-industry--lead { grid-column: auto; }
  .pf-industry__flag { position: static; display: inline-block; margin-top: 16px; }
}


/* --------------------------------------------------------------------------
   7. Client feedback
   -------------------------------------------------------------------------- */
.pf-quotes__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.pf-quote {
  display: flex;
  flex-direction: column;
  margin: 0;
  padding: 30px 28px 26px;
  border: 1px solid var(--pf-line);
  border-radius: 22px;
  background: #fff;
}
.pf-quote::before {
  content: "\201C";
  height: 34px;
  background: var(--pf-grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-family: var(--pf-serif);
  font-size: 76px;
  font-weight: 700;
  line-height: .9;
}
.pf .pf-quote blockquote { flex: 1; margin: 18px 0 0; padding: 0; border: 0; background: none; font-style: normal; }
.pf .pf-quote blockquote p { margin: 0; color: var(--pf-ink); font-size: 15.5px; font-style: normal; line-height: 1.75; }
.pf-quote figcaption { display: flex; flex-direction: column; gap: 2px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--pf-line); }
.pf-quote figcaption b { color: var(--pf-navy); font-size: 15px; font-weight: 600; }
.pf-quote figcaption span { color: var(--pf-muted); font-size: 13px; }

@media (max-width: 991px) {
  .pf-quotes__grid { grid-template-columns: 1fr; }
}


/* --------------------------------------------------------------------------
   8. Closing CTA
   -------------------------------------------------------------------------- */
.pf-cta__panel {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 32px;
  overflow: hidden;
  padding: clamp(34px, 5vw, 64px);
  border-radius: 28px;
  background: var(--pf-dark);
  box-shadow: 0 40px 80px -44px rgba(11, 28, 70, .75);
  color: #fff;
}
@media (min-width: 992px) {
  .pf-cta__panel { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: end; }
}
.pf-cta .pf-rings { top: -310px; right: -310px; width: 700px; }   /* centre sits in the top-right corner, clear of the contact card */
.pf-cta__copy { position: relative; }
.pf-cta .pf-eyebrow { color: var(--pf-sky); }
.pf .pf-cta h2 { color: #fff; font-size: clamp(30px, 3.6vw, 48px); }
.pf-cta__copy > p:not(.pf-eyebrow) { max-width: 46ch; margin: 14px 0 0; color: var(--pf-soft); font-size: 16px; line-height: 1.7; }
.pf-cta__contact {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 24px 26px;
  border: 1px solid var(--pf-rule);
  border-radius: 20px;
  background: rgba(255, 255, 255, .05);
}
.pf-cta__contact dt { color: var(--pf-sky); font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.pf-cta__contact dd { margin: 4px 0 0; color: #fff; font-size: 15.5px; }
.pf .pf-cta__contact a { color: #fff !important; text-decoration: none !important; }
.pf .pf-cta__contact a:hover { color: var(--pf-sky) !important; }
@media (max-width: 767px) {                /* phones: rings from the bottom corner, away from the heading */
  .pf-cta .pf-rings { top: auto; bottom: -380px; right: -380px; }
}


/* --------------------------------------------------------------------------
   Motion — only when the visitor hasn't asked to reduce it
   -------------------------------------------------------------------------- */
@keyframes pf-ping { from { scale: 1; opacity: .75; } to { scale: 15; opacity: 0; } }
@keyframes pf-in   { from { opacity: 0; translate: 0 14px; } }
@keyframes pf-glow { from { box-shadow: 0 0 0 0 rgba(42, 171, 225, .45); } to { box-shadow: 0 0 0 16px rgba(42, 171, 225, 0); } }

@media (prefers-reduced-motion: no-preference) {
  .pf-rings i::after { animation: pf-ping 3.6s cubic-bezier(.2, .6, .3, 1) infinite; }
  .pf-ai .pf-rings i::after { animation-delay: 1.2s; }
  .pf-cta .pf-rings i::after { animation-delay: 2.4s; }
  .pf-case.is-in { animation: pf-in .55s var(--pf-ease) both; }
  .pf-case:target { animation: pf-glow 1.4s ease-out 2; }
  .pf-case__more[open] dl { animation: pf-in .45s var(--pf-ease) both; }
  .pf .pf-site__img { transition: object-position 4s ease-in-out; }
  .pf-site__shot:hover .pf-site__img { object-position: 50% 100%; }   /* scrolls a full-page screenshot */
}


/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */
@media print {
  .pf-filter, .pf-actions, .pf-rings, .pf-shape, .pf-site__more, .pf-case__num { display: none !important; }
  .pf .pf-case[hidden] { display: flex !important; }
  .pf .pf-sec, .pf .pf-sec * { background: none !important; box-shadow: none !important; color: #000 !important; }
  .pf-sec { padding: 24px 0; }
}
