/* ============================================
   Rabcode — Our Work / Portfolio Page
   Extends style.css + service.css
   Client colours are set per card via --c1 / --c2
   ============================================ */

.service-page--work {
  --svc-accent: #8B5CF6;
  --svc-accent-soft: rgba(139, 92, 246, 0.1);
  --svc-accent-mid: rgba(139, 92, 246, 0.2);
}

.service-page--work .svc-hero-orb-2 {
  background: radial-gradient(circle, rgba(236, 72, 153, 0.14), transparent 70%);
}

/* --- Accessibility --- */
.pf-skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 18px;
  background: #111827;
  color: white;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: top 0.2s ease;
}

.pf-skip-link:focus {
  top: 16px;
}

.service-page--work a:focus-visible,
.service-page--work button:focus-visible,
.service-page--work [tabindex]:focus-visible {
  outline: 2px solid #8B5CF6;
  outline-offset: 3px;
}

/* --- Active nav item --- */
.nav-link.is-active {
  position: relative;
}

.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #3B9FE8, #8B5CF6, #F97316);
}

/* --- Shared helpers --- */
.pf-lines {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.pf-lines span {
  height: 7px;
  width: 80%;
  border-radius: 4px;
  background: #E5E7EB;
}

.pf-lines span.short {
  width: 50%;
}

.pf-avatar {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F97316, #EC4899, #8B5CF6);
}

.pf-avatar > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid white;
  background: linear-gradient(135deg, var(--c1, #3B9FE8), var(--c2, #8B5CF6));
  color: white;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pf-avatar--sm { width: 38px; height: 38px; }
.pf-avatar--sm > span { font-size: 0.65rem; }
.pf-avatar--xs { width: 26px; height: 26px; padding: 1.5px; }
.pf-avatar--xs > span { font-size: 0.5rem; border-width: 1.5px; }

/* ============================================
   PLACEHOLDER IMAGE SYSTEM
   .pf-shot = frame, .pf-ph = branded placeholder,
   .pf-img = real image (revealed once loaded)
   ============================================ */
.pf-shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  background: #F3F4F6;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pf-shot--square { aspect-ratio: 1 / 1; }
.pf-shot--reel,
.pf-shot--story { aspect-ratio: 9 / 16; }
.pf-shot--flat { border-radius: 0; box-shadow: none; aspect-ratio: 16 / 10; }
.pf-shot--fill { position: absolute; inset: 0; border-radius: 0; box-shadow: none; }

.pf-img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.pf-img.is-loaded {
  opacity: 1;
}

.pf-ph {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  padding: 16px;
  color: white;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 255, 255, 0.35), transparent 42%),
    linear-gradient(135deg, var(--c1, #3B9FE8), var(--c2, #8B5CF6));
}

.pf-ph::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 75%);
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.pf-ph--alt {
  background:
    radial-gradient(circle at 15% 85%, rgba(255, 255, 255, 0.25), transparent 45%),
    linear-gradient(200deg, var(--c2, #8B5CF6), var(--c1, #3B9FE8));
}

.pf-ph--dark {
  background:
    radial-gradient(circle at 80% 20%, var(--c1, #3B9FE8), transparent 60%),
    linear-gradient(160deg, #111827, #1F2937);
}

.pf-ph > * {
  position: relative;
}

.pf-ph-mark {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.pf-ph-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.pf-ph-meta {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.9;
}

.pf-ph-play,
.pf-ph-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.95rem;
}

.pf-ph-play i { margin-left: 2px; }
.pf-ph-icon { border-radius: 16px; font-size: 1.1rem; }
.pf-ph-play--sm,
.pf-ph-icon--sm { width: 32px; height: 32px; font-size: 0.7rem; border-radius: 10px; }
.pf-ph-play--sm { border-radius: 50%; }

.pf-ph-bars {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
}

.pf-ph-bars span {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
}

.pf-ph-bars span:first-child { background: white; }
.pf-ph-bars ~ .pf-ph-mark { top: 24px; }

/* --- Phone mockup --- */
.pf-phone {
  position: relative;
  padding: 8px;
  border-radius: 30px;
  background: #111827;
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.22);
}

.pf-phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 14px;
  border-radius: 10px;
  background: #111827;
  z-index: 5;
}

.pf-phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 30px 10px 12px;
  border-radius: 23px;
  background: white;
  overflow: hidden;
  height: 100%;
}

.pf-phone-screen--story {
  padding: 0;
  aspect-ratio: 9 / 18;
}

.pf-phone-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.pf-phone .pf-shot {
  border-radius: 10px;
  box-shadow: none;
}

.pf-ig-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.68rem;
  font-weight: 700;
  color: #111827;
}

.pf-ig-top span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pf-ig-top i { color: #9CA3AF; }

.pf-ig-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pf-ig-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-top: 4px;
}

.pf-ig-grid span {
  aspect-ratio: 1;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  opacity: 0.85;
}

.pf-ig-grid span:nth-child(2n) { background: linear-gradient(135deg, #F97316, #EC4899); }
.pf-ig-grid span:nth-child(3n) { background: linear-gradient(135deg, #10B981, #06B6D4); }
.pf-ig-grid span:nth-child(4) { background: #111827; }

/* --- Instagram post card --- */
.pf-igpost {
  padding: 10px;
  background: white;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.14);
}

.pf-igpost-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 2px 2px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #111827;
}

.pf-igpost .pf-shot {
  border-radius: 10px;
  box-shadow: none;
}

.pf-igpost-actions {
  display: flex;
  gap: 12px;
  padding: 10px 4px 2px;
  font-size: 0.85rem;
  color: #374151;
}

.pf-igpost-actions i:last-child { margin-left: auto; }

/* ============================================
   HERO COLLAGE
   ============================================ */
.pf-collage {
  position: relative;
  height: 540px;
}

.pf-collage > * {
  animation: svcFloat 7s ease-in-out infinite;
}

.pf-col-browser {
  position: absolute;
  top: 6%;
  left: 0;
  width: 66%;
  z-index: 1;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.1);
  animation-delay: -1s;
}

.pf-col-browser-body {
  padding: 18px;
}

.pf-col-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.pf-col-tile {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--c1), var(--c2));
  color: rgba(255, 255, 255, 0.95);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.pf-col-phone {
  position: absolute;
  top: 0;
  right: 2%;
  width: 200px;
  z-index: 3;
  animation-delay: -3s;
}

.pf-col-phone .pf-phone-screen {
  min-height: 360px;
}

.pf-col-post {
  position: absolute;
  bottom: 0;
  left: 8%;
  width: 230px;
  z-index: 4;
  rotate: -3deg;
  animation-delay: -2s;
}

.pf-col-reel {
  position: absolute;
  bottom: 6%;
  right: 30%;
  width: 124px;
  z-index: 5;
  rotate: 4deg;
  animation-delay: -4.5s;
}

.pf-col-reel .pf-shot {
  border: 4px solid white;
  box-shadow: 0 20px 50px rgba(17, 24, 39, 0.2);
}

.pf-col-reel .pf-ph { padding: 10px; }
.pf-col-reel .pf-ph-name { font-size: 0.8rem; }

.pf-chip-1 { top: 2%; left: 38%; animation-delay: -0.5s; }
.pf-chip-2 { top: 52%; right: -2%; animation-delay: -2.5s; }
.pf-chip-3 { bottom: 20%; left: -2%; animation-delay: -3.5s; }

/* ============================================
   INTRO PRINCIPLES
   ============================================ */
.pf-principles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pf-principle {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 28px;
  background: white;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.pf-principle:nth-child(2) { margin-left: 48px; }
.pf-principle:nth-child(3) { margin-left: 96px; }

.pf-principle:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
}

.pf-principle-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: color-mix(in srgb, var(--pc) 12%, white);
  color: var(--pc);
  font-size: 1.3rem;
}

.pf-principle-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: #9CA3AF;
  letter-spacing: 0.08em;
}

.pf-principle h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  margin: 2px 0 6px;
}

.pf-principle p {
  color: #6B7280;
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================
   WORK SECTION — HEAD + FILTERS
   ============================================ */
.pf-work {
  padding: 100px 0 120px;
  background: #FAFAFA;
}

.pf-work-head,
.pf-showcase-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 32px;
}

.pf-work-head h2,
.pf-showcase-head h2,
.pf-services .svc-section-head h2,
.pf-industries h2,
.pf-global h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.pf-work-status {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6B7280;
}

.pf-filter-wrap {
  position: sticky;
  top: 80px;
  z-index: 40;
  display: flex;
  justify-content: center;
  padding: 10px 0;
  margin-bottom: 32px;
}

.pf-filter-bar {
  display: flex;
  gap: 4px;
  max-width: 100%;
  padding: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 100px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.pf-filter-bar::-webkit-scrollbar { display: none; }

.pf-filter {
  flex-shrink: 0;
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 100px;
  background: transparent;
  color: #4B5563;
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.pf-filter:hover {
  background: #F3F4F6;
  color: #111827;
}

.pf-filter[aria-pressed="true"] {
  background: #111827;
  color: white;
  box-shadow: 0 6px 16px rgba(17, 24, 39, 0.2);
}

/* ============================================
   PORTFOLIO GRID
   ============================================ */
.pf-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 24px;
}

.pf-card {
  grid-column: span 4;
  position: relative;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 24px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  overflow: hidden;
  transition: transform 0.35s ease, box-shadow 0.35s ease, opacity 0.3s ease;
}

.pf-card[hidden] { display: none; }

.pf-card--lg { grid-column: span 7; }
.pf-card--md { grid-column: span 5; }
.pf-card--wide { grid-column: span 8; }
.pf-card--feature { grid-column: 1 / -1; }

.pf-grid.is-filtered .pf-card:not(.pf-card--feature) {
  grid-column: span 6;
}

.pf-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 60px rgba(17, 24, 39, 0.09);
}

.pf-card.is-leaving,
.pf-card.is-entering {
  opacity: 0;
  transform: scale(0.97);
}

.pf-card:has(.pf-cta:focus-visible) {
  outline: 2px solid #8B5CF6;
  outline-offset: 4px;
}

/* Visual area */
.pf-visual {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 300px;
  padding: 28px;
  overflow: hidden;
  background: #F9FAFB;
  background: linear-gradient(160deg,
    color-mix(in srgb, var(--c1, #3B9FE8) 9%, white),
    color-mix(in srgb, var(--c2, #8B5CF6) 14%, white));
}

.pf-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(to top, rgba(17, 24, 39, 0.32), transparent 55%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.pf-card:hover .pf-visual::after { opacity: 1; }

.pf-card:hover .pf-visual .pf-shot { transform: scale(1.03); }
.pf-card:hover .pf-visual .pf-phone .pf-shot,
.pf-card:hover .pf-visual .pf-feature-grid .pf-shot,
.pf-card:hover .pf-visual .pf-product-browser .pf-shot { transform: none; }
.pf-card:hover .pf-visual > .pf-phone,
.pf-card:hover .pf-product-phone,
.pf-card:hover .pf-product-browser,
.pf-card:hover .pf-feature-browser,
.pf-card:hover .pf-feature-phone { transform: scale(1.03); }

.pf-visual-ig {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 100px;
  background: white;
  color: #111827;
  font-size: 0.75rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.15);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.pf-visual-ig i { color: #E1306C; font-size: 0.95rem; }

.pf-card:hover .pf-visual-ig {
  opacity: 1;
  transform: translateY(0);
}

/* Compositions */
.pf-comp-trio {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 14px;
  height: 100%;
  min-height: 340px;
}

.pf-comp-trio .pf-shot:first-child { grid-row: span 2; }

.pf-comp-phone {
  display: flex;
  align-items: center;
  justify-content: center;
}

.pf-comp-phone > .pf-phone {
  width: min(240px, 78%);
  transition: transform 0.35s ease;
}

.pf-comp-stack {
  position: relative;
  height: 280px;
}

.pf-comp-stack .pf-shot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52%;
  aspect-ratio: 4 / 5;
  border: 4px solid white;
}

.pf-comp-stack .pf-shot:nth-child(1) { transform: translate(-95%, -50%) rotate(-8deg); }
.pf-comp-stack .pf-shot:nth-child(2) { transform: translate(-5%, -50%) rotate(8deg); }
.pf-comp-stack .pf-shot:nth-child(3) { transform: translate(-50%, -52%); z-index: 2; }

.pf-card:hover .pf-comp-stack .pf-shot:nth-child(1) { transform: translate(-102%, -50%) rotate(-10deg) scale(1.03); }
.pf-card:hover .pf-comp-stack .pf-shot:nth-child(2) { transform: translate(2%, -50%) rotate(10deg) scale(1.03); }
.pf-card:hover .pf-comp-stack .pf-shot:nth-child(3) { transform: translate(-50%, -54%) scale(1.03); }

.pf-comp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  max-width: 320px;
  margin: 0 auto;
  align-items: center;
}

.pf-comp-split-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pf-comp-product {
  position: relative;
  height: 100%;
  min-height: 260px;
}

.pf-product-browser {
  position: relative;
  width: 86%;
  transition: transform 0.35s ease;
}

.pf-product-browser .browser-bar { padding: 8px 12px; }
.pf-product-browser .browser-bar span { width: 8px; height: 8px; }

.pf-product-phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 36%;
  max-width: 120px;
  padding: 5px;
  border-radius: 20px;
  transition: transform 0.35s ease;
}

.pf-product-phone .pf-phone-screen { border-radius: 16px; }
.pf-product-phone .pf-phone-notch { top: 8px; height: 8px; }

.pf-comp-reels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: center;
  max-width: 460px;
  margin: 0 auto;
}

.pf-comp-reels .pf-shot:nth-child(2) {
  margin-top: -28px;
  border: 4px solid white;
}

/* Featured card */
.pf-card--feature {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
}

.pf-comp-feature {
  min-height: 500px;
  padding: 40px;
}

.pf-feature-browser {
  position: relative;
  width: 82%;
  z-index: 1;
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.12);
  transition: transform 0.35s ease;
}

.pf-feature-browser-body {
  padding: 20px;
}

.pf-feature-handle {
  display: block;
  margin-bottom: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.pf-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.pf-feature-grid .pf-shot {
  aspect-ratio: 1;
  border-radius: 10px;
  box-shadow: none;
}

.pf-feature-grid .pf-ph { padding: 10px; }
.pf-feature-grid .pf-ph-mark { width: 36px; height: 36px; border-radius: 10px; font-size: 0.75rem; top: 8px; left: 8px; }
.pf-feature-grid .pf-ph-name { font-size: 0.75rem; }
.pf-feature-grid .pf-ph-meta { font-size: 0.5rem; }
.pf-feature-grid .pf-ph-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 0.8rem; }

.pf-feature-phone {
  position: absolute;
  right: 40px;
  bottom: 40px;
  width: 170px;
  z-index: 2;
  transition: transform 0.35s ease;
}

.pf-feature-chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: white;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  animation: svcFloat 6s ease-in-out infinite;
}

.pf-feature-chip i { color: var(--c1); }
.pf-feature-chip-1 { left: 28px; bottom: 44px; }
.pf-feature-chip-2 { right: 24px; top: 28px; animation-delay: -3s; }

.pf-card--feature .pf-body {
  padding: 48px 44px;
  justify-content: center;
}

.pf-feature-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 100px;
  background: #111827;
  color: white;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pf-feature-label i { color: #FBBF24; font-size: 0.65rem; }

.pf-feature-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

/* Card body */
.pf-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 28px 28px;
}

.pf-client {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pf-client .pf-industry { margin-left: auto; }

.pf-client-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.pf-handle {
  font-size: 0.82rem;
  font-weight: 500;
  color: #6B7280;
}

.pf-industry {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: 100px;
  background: color-mix(in srgb, var(--c1, #3B9FE8) 12%, white);
  color: color-mix(in srgb, var(--c1, #3B9FE8) 55%, #111827);
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.pf-desc {
  color: #4B5563;
  font-size: 0.925rem;
  line-height: 1.65;
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pf-tags li {
  padding: 5px 12px;
  border-radius: 100px;
  background: #F3F4F6;
  color: #4B5563;
  font-size: 0.72rem;
  font-weight: 600;
}

.pf-cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin-top: auto;
  padding: 10px 20px;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  color: #111827;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Stretches the CTA's hit area over the whole card */
.pf-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.pf-cta .fa-instagram {
  color: #E1306C;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.pf-cta .fa-arrow-right {
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.pf-card:hover .pf-cta,
.pf-cta:focus-visible {
  background: #111827;
  border-color: transparent;
  color: white;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.2);
}

.pf-card:hover .pf-cta .fa-instagram,
.pf-cta:focus-visible .fa-instagram { color: white; }

.pf-card:hover .pf-cta .fa-arrow-right { transform: translateX(4px); }

/* Dark capability card */
.pf-card--dark {
  background: #111827;
  border-color: #111827;
  color: white;
}

.pf-card--dark .pf-client-name { color: white; }
.pf-card--dark .pf-desc { color: #D1D5DB; }
.pf-card--dark .pf-tags li { background: rgba(255, 255, 255, 0.08); color: #E5E7EB; }

.pf-card--dark .pf-cta {
  border-color: rgba(255, 255, 255, 0.2);
  color: white;
}

.pf-card--dark:hover .pf-cta,
.pf-card--dark .pf-cta:focus-visible {
  background: white;
  color: #111827;
}

.pf-industry--light {
  background: rgba(255, 255, 255, 0.1);
  color: #E5E7EB;
}

.pf-comp-code {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  min-height: 260px;
  background:
    radial-gradient(circle at 80% 10%, rgba(59, 159, 232, 0.35), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(139, 92, 246, 0.3), transparent 50%),
    #0B1220;
}

.pf-code-window {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.35s ease;
}

.pf-card:hover .pf-code-window { transform: scale(1.03); }

.pf-code-window .browser-bar {
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 14px;
}

.pf-code-body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 16px;
}

.pf-code-body span {
  display: block;
  height: 7px;
  width: var(--w);
  margin-left: calc(var(--i, 0) * 16px);
  border-radius: 4px;
  background: var(--cc);
  opacity: 0.75;
}

.pf-code-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pf-code-chips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  color: #E5E7EB;
  font-size: 0.72rem;
  font-weight: 600;
}

.pf-code-chips i { color: #60A5FA; }

.pf-empty {
  padding: 60px 24px;
  text-align: center;
  color: #6B7280;
}

.pf-empty-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-weight: 600;
  color: var(--svc-accent);
}

/* ============================================
   SOCIAL MEDIA SHOWCASE
   ============================================ */
.pf-showcase {
  padding: 120px 0 100px;
  overflow: hidden;
}

.pf-rail-nav {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.pf-rail-btn {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: white;
  color: #111827;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.pf-rail-btn:hover {
  background: #111827;
  color: white;
  transform: translateY(-2px);
}

.pf-rail {
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-padding-inline: max(24px, calc((100vw - 80rem) / 2 + 32px));
  scrollbar-width: none;
  padding: 24px 0 32px;
}

.pf-rail::-webkit-scrollbar { display: none; }

.pf-rail-track {
  display: flex;
  align-items: center;
  gap: 24px;
  width: max-content;
  padding-inline: max(24px, calc((100vw - 80rem) / 2 + 32px));
  transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) {
  .pf-rail:hover .pf-rail-track { transform: translateX(-20px); }
}

.pf-rail-item {
  flex-shrink: 0;
  scroll-snap-align: start;
}

.pf-rail-item--post { width: 290px; padding: 10px; background: white; border-radius: 20px; border: 1px solid rgba(0, 0, 0, 0.05); box-shadow: 0 12px 40px rgba(17, 24, 39, 0.08); }
.pf-rail-item--post .pf-shot { aspect-ratio: 1; border-radius: 12px; box-shadow: none; }
.pf-rail-item--reel { width: 200px; }
.pf-rail-item--reel .pf-shot { aspect-ratio: 9 / 16; }
.pf-rail-item--campaign { width: 260px; }
.pf-rail-item--campaign .pf-shot { aspect-ratio: 4 / 5; }

.pf-rail-item .pf-shot {
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.pf-rail-item:hover .pf-shot {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(17, 24, 39, 0.18);
}

.pf-rail-item--post:hover .pf-shot { transform: scale(1.03); box-shadow: none; }

.pf-rail-cap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 14px;
  padding-inline: 4px;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #111827;
}

.pf-rail-cap span {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--svc-accent);
}

/* ============================================
   SERVICES WE DELIVER
   ============================================ */
.pf-services {
  padding: 100px 0;
  background: #FAFAFA;
}

.pf-services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pf-service {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 26px;
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  color: inherit;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.pf-service:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--sc) 30%, white);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.07);
}

.pf-service-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 6px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--sc) 12%, white);
  color: var(--sc);
  font-size: 1.05rem;
}

.pf-service h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.pf-service p {
  font-size: 0.85rem;
  line-height: 1.55;
  color: #6B7280;
}

.pf-service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--sc) 75%, #111827);
}

.pf-service-link i {
  font-size: 0.7rem;
  transition: transform 0.3s ease;
}

.pf-service:hover .pf-service-link i { transform: translateX(4px); }

/* ============================================
   INDUSTRIES
   ============================================ */
.pf-industries {
  padding: 120px 0;
}

.pf-industry-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.pf-sector-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pf-sector {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px 10px 10px;
  background: white;
  border-radius: 100px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.pf-sector:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--ic) 35%, white);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.06);
}

.pf-sector-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ic) 12%, white);
  color: var(--ic);
  font-size: 0.95rem;
}

.pf-sector strong {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
}

.pf-sector small {
  display: block;
  font-size: 0.72rem;
  color: #6B7280;
}

.pf-sector--lg {
  padding: 14px 28px 14px 14px;
}

.pf-sector--lg .pf-sector-icon { width: 48px; height: 48px; font-size: 1.1rem; }
.pf-sector--lg strong { font-size: 1.35rem; }

/* ============================================
   GLOBAL
   ============================================ */
.pf-global {
  padding: 100px 0;
  background: #FAFAFA;
}

.pf-global-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.pf-country-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pf-country {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
}

.pf-country .flag-illustration {
  flex-shrink: 0;
  width: 52px;
  height: 36px;
}

.pf-country h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

/* ============================================
   CTA
   ============================================ */
.pf-cta-banner {
  position: relative;
  padding: 120px 0 40px;
}

.pf-cta-banner h2 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .pf-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 20px;
  }

  .pf-card,
  .pf-card--lg,
  .pf-card--md,
  .pf-grid.is-filtered .pf-card:not(.pf-card--feature) { grid-column: span 3; }
  .pf-card--wide { grid-column: 1 / -1; }

  .pf-card--feature {
    grid-column: 1 / -1;
    grid-template-columns: 1fr;
  }
  .pf-card--feature .pf-body { padding: 32px; }

  .pf-principle:nth-child(2),
  .pf-principle:nth-child(3) { margin-left: 0; }

  .pf-services-grid { grid-template-columns: repeat(2, 1fr); }

  .pf-industry-layout,
  .pf-global-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .pf-collage { max-width: 560px; margin: 0 auto; width: 100%; }
}

@media (max-width: 768px) {
  .pf-collage { height: 440px; }
  .pf-col-browser { width: 78%; }
  .pf-col-phone { width: 150px; }
  .pf-col-phone .pf-phone-screen { min-height: 270px; }
  .pf-col-post { width: 180px; left: 2%; }
  .pf-col-reel { width: 96px; right: 8%; }

  .pf-work { padding: 72px 0 96px; }

  .pf-work-head,
  .pf-showcase-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .pf-filter-wrap {
    top: 72px;
    margin-inline: -24px;
    padding-inline: 16px;
  }

  .pf-filter-bar { border-radius: 18px; }

  .pf-comp-feature { min-height: 400px; padding: 24px; }
  .pf-feature-browser { width: 100%; }
  .pf-feature-browser-body { padding: 14px; }
  .pf-feature-grid .pf-ph-name,
  .pf-feature-grid .pf-ph-meta { display: none; }
  .pf-feature-phone { width: 110px; right: 16px; bottom: 16px; }
  .pf-feature-chip { display: none; }

  /* keep the floating contact widget clear of the footer's last row */
  .service-page--work footer { padding-bottom: 96px; }

  .pf-showcase { padding: 90px 0 70px; }
  .pf-rail-item--post { width: 240px; }
  .pf-rail-item--reel { width: 170px; }
  .pf-rail-item--campaign { width: 220px; }

  .pf-industries { padding: 90px 0; }
  .pf-sector--lg { padding: 10px 22px 10px 10px; }
  .pf-sector--lg .pf-sector-icon { width: 40px; height: 40px; font-size: 0.95rem; }
  .pf-sector--lg strong { font-size: 1.05rem; }

  .pf-cta-banner { padding: 90px 0 20px; }
}

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

  .pf-card,
  .pf-card--lg,
  .pf-card--md,
  .pf-card--wide,
  .pf-grid.is-filtered .pf-card:not(.pf-card--feature) { grid-column: 1 / -1; }

  .pf-visual { min-height: 260px; padding: 20px; }
  .pf-comp-trio { min-height: 280px; }
  .pf-comp-stack { height: 240px; }
  .pf-body { padding: 22px; }
  .pf-card--feature .pf-body { padding: 24px 22px 26px; }

  .pf-client { flex-wrap: wrap; }
  .pf-client .pf-industry { margin-left: 0; }

  .pf-principle { grid-template-columns: 1fr; gap: 14px; padding: 24px; }

  .pf-services-grid { gap: 12px; }
  .pf-service { padding: 18px; }
  .pf-service h3 { font-size: 0.95rem; }
  .pf-service p { font-size: 0.78rem; }

  .pf-country-grid { gap: 12px; }
  .pf-country { flex-direction: column; align-items: flex-start; gap: 12px; padding: 20px; }
}

@media (max-width: 420px) {
  .pf-collage { height: 400px; }
  .pf-col-browser { width: 88%; }
  .pf-col-phone { width: 130px; }
  .pf-col-phone .pf-phone-screen { min-height: 230px; }
  .pf-col-post { width: 160px; }
  .pf-col-reel { display: none; }
  .pf-comp-feature { min-height: 340px; }
  .pf-feature-phone { width: 92px; }
}

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