/* ============================================================
   _portfolio_page.css — Portfolio landing page (/portfolio)
   r54 (TG_ASSET_VER 119)

   Design notes:
   - Inter only. No serifs.
   - White / soft grey backgrounds. Dark hero on top.
   - Small radii on buttons; medium radii on cards/images.
   - Mobile-first; columns expand at 640 / 960 / 1240 px.
   - Lightbox itself is styled by global custom.css, we just style triggers.
   ============================================================ */

:root {
  --pf-ink: #0f1218;
  --pf-ink-soft: #2a2f3a;
  --pf-grey-50: #f8fafc;
  --pf-grey-100: #f1f4f9;
  --pf-grey-200: #e4e9f1;
  --pf-grey-300: #cdd5e0;
  --pf-grey-500: #6b7280;
  --pf-grey-600: #4b5563;
  --pf-accent: #c9a961;          /* warm gold accent */
  --pf-accent-strong: #b8964e;
  --pf-radius: 14px;
  --pf-radius-sm: 8px;
  --pf-shadow: 0 1px 2px rgba(15,18,24,.06), 0 8px 24px -10px rgba(15,18,24,.18);
  --pf-shadow-hov: 0 6px 14px rgba(15,18,24,.10), 0 20px 50px -16px rgba(15,18,24,.30);
}

.pf, .pf * { box-sizing: border-box; }
.pf {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, sans-serif;
  color: var(--pf-ink);
  background: #fff;
}
.pf-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 960px) { .pf-inner { padding: 0 40px; } }

/* ===== HERO ===== */
.pf-hero {
  background: linear-gradient(135deg, #0f1218 0%, #1a1f2a 60%, #232a37 100%);
  color: #fff;
  padding: 64px 0 56px;
  position: relative;
  overflow: hidden;
}
.pf-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 30%, rgba(201,169,97,0.08) 0, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(255,255,255,0.04) 0, transparent 50%);
  pointer-events: none;
}
.pf-hero .pf-inner { position: relative; z-index: 1; }
.pf-eyebrow {
  display: inline-block;
  font: 600 0.78rem/1 'Inter', sans-serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--pf-accent);
  margin-bottom: 18px;
  padding: 6px 12px;
  border: 1px solid rgba(201,169,97,0.35);
  border-radius: 999px;
  background: rgba(201,169,97,0.06);
}
.pf-h1 {
  font: 800 clamp(1.85rem, 4.2vw, 3rem)/1.1 'Inter', sans-serif;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: #fff !important;
  max-width: 820px;
}
.pf-lede {
  font: 400 clamp(1rem, 1.45vw, 1.18rem)/1.55 'Inter', sans-serif;
  color: rgba(255,255,255,0.78);
  max-width: 720px;
  margin: 0 0 36px;
}
.pf-hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 760px;
}
@media (min-width: 720px) { .pf-hero-stats { grid-template-columns: repeat(4, 1fr); } }
.pf-hero-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--pf-radius-sm);
}
.pf-hero-num {
  font: 700 1.6rem/1 'Inter', sans-serif;
  color: #fff;
  letter-spacing: -0.01em;
}
.pf-hero-lbl {
  font: 500 0.78rem/1.3 'Inter', sans-serif;
  color: rgba(255,255,255,0.65);
  letter-spacing: 0.02em;
}

/* ===== FILTER BAR (sticky) ===== */
.pf-filterbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pf-grey-200);
  padding: 14px 0;
}
.pf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.pf-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  font: 600 0.88rem/1 'Inter', sans-serif;
  color: var(--pf-ink-soft);
  background: var(--pf-grey-100);
  border: 1px solid var(--pf-grey-200);
  border-radius: var(--pf-radius-sm);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.pf-filter:hover {
  background: var(--pf-grey-200);
  border-color: var(--pf-grey-300);
}
.pf-filter.is-active {
  background: var(--pf-ink);
  color: #fff;
  border-color: var(--pf-ink);
}
.pf-filter:focus-visible {
  outline: 2px solid var(--pf-accent);
  outline-offset: 2px;
}
.pf-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  padding: 2px 6px;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(255,255,255,0.15);
  border-radius: 999px;
}
.pf-filter:not(.is-active) .pf-filter-count {
  background: #fff;
  color: var(--pf-grey-600);
  border: 1px solid var(--pf-grey-200);
}

/* ===== SECTIONS =====
   r60: Two visible group headings ("Websites" and "Logos") above
   their respective grids. Single section, single background. */
.pf-section {
  padding: 32px 0 8px;
  background: #fff;
}
.pf-section:first-of-type { padding-top: 40px; }
/* Visually-hidden but accessible h2 (kept for legacy/AT) */
.pf-h2-sr {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
/* r60: visible group heading above each grid */
.pf-group-head {
  margin: 0 0 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--pf-grey-200);
}
.pf-group-head--logos {
  margin-top: 56px;
}
.pf-group-h2 {
  font: 800 clamp(1.5rem, 2.6vw, 2rem)/1.15 'Inter', sans-serif;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--pf-ink);
}

/* ===== GRID =====
   r59: untethered. No categories. Two technical grids only because
   screenshots are 4:3 and logos/branding are 1:1, but visually they
   flow as one continuous wall with no separator. */
.pf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
.pf-grid + .pf-grid { margin-top: 24px; }

/* Screenshots grid (websites + ai + joomla mixed): 4:3 cards. */
.pf-grid--shots { padding-bottom: 0; }
@media (min-width: 640px)  { .pf-grid--shots { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .pf-grid--shots { grid-template-columns: repeat(3, 1fr); } }

/* Chips grid (logos + branding mixed): dense square chips. */
.pf-grid--chips { gap: 18px; padding-bottom: 56px; }
@media (min-width: 480px)  { .pf-grid--chips { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px)  { .pf-grid--chips { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) { .pf-grid--chips { grid-template-columns: repeat(5, 1fr); } }

/* ===== CARD ===== */
.pf-card {
  position: relative;
  margin: 0;
  background: #fff;
  border: 1px solid var(--pf-grey-200);
  border-radius: var(--pf-radius);
  overflow: hidden;
  box-shadow: var(--pf-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.pf-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--pf-shadow-hov);
  border-color: var(--pf-grey-300);
}
.pf-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #ffffff;
  text-decoration: none;
  cursor: zoom-in;
  padding: 14px;
}
.pf-card-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 0.45s ease;
}
.pf-card:hover .pf-card-img {
  transform: scale(1.03);
}

/* Website + AI + Joomla screenshots: fill the frame, top-anchored. */
.pf-card--websites .pf-card-link,
.pf-card--ai .pf-card-link,
.pf-card--joomla .pf-card-link {
  padding: 0;
  background: var(--pf-grey-100);
  aspect-ratio: 4 / 3;
}
.pf-card--websites .pf-card-img,
.pf-card--ai .pf-card-img,
.pf-card--joomla .pf-card-img {
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: top center;
  image-rendering: -webkit-optimize-contrast;
}

/* Logos + branding: square chip, logo perfectly centered on white. */
.pf-card--logo .pf-card-link,
.pf-card--branding .pf-card-link {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  padding: 18px;
  background: #ffffff;
}
/* Override HTML width/height attrs so logos size naturally and
   sit perfectly centered inside the square card. */
.pf-card--logo .pf-card-img,
.pf-card--branding .pf-card-img {
  width: auto !important;
  height: auto !important;
  max-width: 80%;
  max-height: 80%;
  margin: auto;
  object-fit: contain;
  object-position: center center;
  display: block;
}

/* r57: NO caption at all on logo + branding (logos speak for themselves).
   r58: NO caption at all on website + AI + joomla screenshots either —
   user wants pure image grid, no titles / subtitles / tag pills anywhere. */
.pf-card-body {
  display: none !important;
}
.pf-card-zoom {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(15,18,24,0.78);
  border-radius: 999px;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.pf-card:hover .pf-card-zoom,
.pf-card-link:focus-visible .pf-card-zoom {
  opacity: 1;
  transform: translateY(0);
}
.pf-card-link:focus-visible {
  outline: 3px solid var(--pf-accent);
  outline-offset: -3px;
}
.pf-card-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pf-card-name {
  font: 700 0.98rem/1.25 'Inter', sans-serif;
  color: var(--pf-ink);
  letter-spacing: -0.005em;
}
.pf-card-sub {
  font: 500 0.82rem/1.4 'Inter', sans-serif;
  color: var(--pf-grey-600);
}
.pf-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.pf-card-tag {
  font: 600 0.7rem/1 'Inter', sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--pf-grey-600);
  background: var(--pf-grey-100);
  border: 1px solid var(--pf-grey-200);
  padding: 4px 8px;
  border-radius: 4px;
}

/* (CMS section removed in r55 per user request.) */

/* ===== CTA ===== */
.pf-cta {
  background: linear-gradient(135deg, #0f1218 0%, #1a1f2a 100%);
  color: #fff;
  padding: 64px 0;
  margin-top: 24px;
}
.pf-cta-inner {
  text-align: center;
  max-width: 760px;
}
.pf-cta-h2 {
  font: 700 clamp(1.5rem, 3vw, 2.2rem)/1.15 'Inter', sans-serif;
  letter-spacing: -0.015em;
  color: #fff !important;
  margin: 0 0 16px;
}
.pf-cta-lede {
  font: 400 clamp(1rem, 1.3vw, 1.1rem)/1.55 'Inter', sans-serif;
  color: rgba(255,255,255,0.75);
  margin: 0 0 28px;
}
.pf-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.pf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font: 700 0.92rem/1 'Inter', sans-serif;
  letter-spacing: 0.01em;
  text-decoration: none;
  border-radius: var(--pf-radius-sm);
  border: 1px solid transparent;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease, color 0.18s ease;
}
.pf-btn--primary {
  background: var(--pf-accent);
  color: var(--pf-ink) !important;
  border-color: var(--pf-accent);
}
.pf-btn--primary:hover {
  background: var(--pf-accent-strong);
  border-color: var(--pf-accent-strong);
  transform: translateY(-1px);
}
.pf-btn--ghost {
  color: #fff !important;
  background: transparent;
  border-color: rgba(255,255,255,0.3);
}
.pf-btn--ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.5);
  transform: translateY(-1px);
}
.pf-btn:focus-visible {
  outline: 3px solid var(--pf-accent);
  outline-offset: 3px;
}

/* ===== ACCESSIBILITY / MOTION ===== */
@media (prefers-reduced-motion: reduce) {
  .pf-card, .pf-card-img, .pf-card-zoom, .pf-btn { transition: none !important; }
  .pf-card:hover { transform: none; }
  .pf-card:hover .pf-card-img { transform: none; }
}
