/*
 * portfolio.css — Portfolio page
 * Dashmier Technologies
 * Self-contained. Uses global.css tokens + shared classes. Card visuals
 * mirror home.css .port-card so the full page reads as an expansion of
 * the homepage teaser. Re-declares .pg-hero family (no about.css needed).
 */

/* ── Page hero (mirrors about/contact .pg-hero) ─────────────────────── */
.pg-hero { position: relative; padding: calc(var(--nav-h) + 68px) 0 64px; overflow: hidden; }
.pg-hero__eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 20px;
}
.pg-hero__eyebrow-line { width: 32px; height: 1px; background: var(--border); }
.pg-hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem); font-weight: 800; line-height: 1.08;
  letter-spacing: -0.04em; max-width: 780px; margin-bottom: 22px;
}
.pg-hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--blue) 0%, var(--cyan) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.pg-hero__lead { font-size: 1.0625rem; color: var(--text-muted); line-height: 1.82; max-width: 600px; }

/* ── Hero extras ────────────────────────────────────────────────────── */
.pf-hero { background: var(--white); }
.pf-hero__watermark {
  position: absolute; top: calc(var(--nav-h) + 2px); right: -10px;
  font-family: var(--font-head); font-size: clamp(6rem, 14vw, 13rem); font-weight: 800;
  color: var(--text-head); opacity: 0.025; letter-spacing: -0.06em; line-height: 1;
  pointer-events: none; user-select: none; white-space: nowrap;
}
.pf-bc { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 26px; }
.pf-bc a { color: var(--text-muted); transition: color var(--t-fast); }
.pf-bc a:hover { color: var(--blue); }
.pf-bc i { font-size: 0.6rem; color: var(--text-faint); }

.pf-hero__stats { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 34px; }
.pf-hstat { display: flex; flex-direction: column; }
.pf-hstat__n { font-family: var(--font-head); font-size: 1.9rem; font-weight: 800; color: var(--text-head); letter-spacing: -0.04em; line-height: 1; }
.pf-hstat__l { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }

/* ── Featured case study ────────────────────────────────────────────── */
.pf-featured {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-2xl);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.pf-featured__media { position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; padding: 40px; }
.pf-featured__ribbon {
  position: absolute; top: 18px; left: 18px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.72rem; font-weight: 700; color: var(--blue-dark);
  background: rgba(255,255,255,0.85); border: 1px solid var(--blue-mid);
  border-radius: var(--r-full); padding: 5px 12px;
}
.pf-featured__ribbon i { color: var(--amber); }

/* mock browser */
.pf-browser { width: 100%; max-width: 360px; background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.pf-browser__bar { display: flex; gap: 6px; padding: 11px 13px; background: var(--off-white); border-bottom: 1px solid var(--border); }
.pf-browser__bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-dark); }
.pf-browser__screen { height: 190px; display: flex; align-items: center; justify-content: center; font-size: 3.4rem; color: var(--blue); opacity: 0.5; }

.pf-featured__content { padding: 42px 40px; }
.pf-featured__title { font-size: clamp(1.5rem, 2.4vw, 2rem); margin: 8px 0 14px; line-height: 1.15; }
.pf-featured__lead { font-size: 0.98rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 26px; }
.pf-featured__metrics { display: flex; gap: 30px; flex-wrap: wrap; margin-bottom: 24px; }
.pf-metric { display: flex; flex-direction: column; }
.pf-metric__n { font-family: var(--font-head); font-size: 1.85rem; font-weight: 800; color: var(--blue); letter-spacing: -0.03em; line-height: 1; }
.pf-metric__l { font-size: 0.78rem; color: var(--text-muted); margin-top: 6px; }
.pf-featured__stack { display: flex; flex-wrap: wrap; gap: 7px; }

.pf-chip {
  font-size: 0.72rem; font-weight: 600; color: var(--text-muted);
  background: var(--off-white); border: 1px solid var(--border); border-radius: var(--r-full); padding: 4px 11px;
}

/* ── Work head + filter ─────────────────────────────────────────────── */
.pf-work-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 34px; }
.pf-work-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.pf-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.pf-pill {
  font-family: var(--font-body); font-size: 0.84rem; font-weight: 600; color: var(--text-body);
  background: var(--white); border: 1.5px solid var(--border); border-radius: var(--r-full);
  padding: 9px 17px; transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.pf-pill:hover { border-color: var(--blue-mid); color: var(--blue); }
.pf-pill.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.pf-pill__count { font-size: 0.72rem; opacity: 0.65; margin-left: 5px; font-weight: 500; }

/* ── Grid + cards ───────────────────────────────────────────────────── */
.pf-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pf-item { transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.pf-item.is-hidden { display: none; }
.pf-item.is-enter { opacity: 0; transform: translateY(10px); }

.pf-card {
  width: 100%; text-align: left; font: inherit; cursor: pointer; padding: 0; display: block;
  background: var(--white); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  transition: box-shadow var(--t-base), border-color var(--t-base), transform var(--t-base);
}
.pf-card:hover { box-shadow: var(--shadow-card-h); border-color: var(--blue-mid); transform: translateY(-4px); }

.pf-thumb { position: relative; height: 188px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pf-thumb__icon { font-size: 3.4rem; color: var(--text-head); opacity: 0.16; }
.pf-badge {
  position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.72rem; font-weight: 700; color: var(--blue); background: var(--white);
  border-radius: var(--r-full); padding: 5px 11px; box-shadow: var(--shadow-sm);
}
.pf-badge i { font-size: 0.8rem; }

.pf-play {
  position: absolute; z-index: 2; width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.92); color: var(--blue); display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: var(--shadow-md); transition: transform var(--t-base);
}
.pf-card:hover .pf-play { transform: scale(1.08); }
.pf-play--lg { width: 66px; height: 66px; font-size: 1.9rem; }

.pf-card__body { padding: 20px 22px; }
.pf-card__tag {
  display: inline-block; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: var(--blue); margin-bottom: 7px;
}
.pf-card__title {
  font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--text-head);
  margin-bottom: 7px; line-height: 1.3; letter-spacing: -0.02em;
}
.pf-card__desc {
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pf-card__more { display: inline-flex; align-items: center; gap: 5px; font-size: 0.82rem; font-weight: 600; color: var(--blue); margin-top: 13px; transition: gap var(--t-fast); }
.pf-card:hover .pf-card__more { gap: 9px; }

.pf-empty { text-align: center; color: var(--text-muted); padding: 40px 0; }
.pf-empty a { color: var(--blue); font-weight: 600; }

/* ── Proof / logos marquee ──────────────────────────────────────────── */
.pf-proof { overflow: hidden; }
.pf-proof__kicker { text-align: center; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 34px; }
.pf-logos { position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.pf-logos__track { display: inline-flex; align-items: center; gap: 44px; white-space: nowrap; animation: marquee 34s linear infinite; }
.pf-logos:hover .pf-logos__track { animation-play-state: paused; }
.pf-logo { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-size: 1.05rem; font-weight: 700; color: var(--text-faint); letter-spacing: -0.02em; }
.pf-logo i { font-size: 1.15rem; color: var(--border-dark); }

/* ── Testimonials ───────────────────────────────────────────────────── */
.pf-tst-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pf-tst { background: var(--white); border: 1px solid var(--border); border-radius: var(--r-xl); padding: 26px 24px; transition: box-shadow var(--t-base), transform var(--t-base); }
.pf-tst:hover { box-shadow: var(--shadow-card-h); transform: translateY(-3px); }
.pf-tst__stars { display: flex; gap: 3px; color: var(--amber); font-size: 0.85rem; margin-bottom: 14px; }
.pf-tst__text { font-size: 0.95rem; color: var(--text-body); line-height: 1.7; margin-bottom: 20px; }
.pf-tst__author { display: flex; align-items: center; gap: 12px; }
.pf-tst__avatar {
  width: 42px; height: 42px; border-radius: 50%; background: var(--blue); color: #fff;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-head);
  font-weight: 800; font-size: 0.9rem; flex-shrink: 0;
}
.pf-tst__name { font-weight: 700; color: var(--text-head); font-size: 0.9rem; }
.pf-tst__role { font-size: 0.78rem; color: var(--text-muted); }

/* ── CTA band (mirrors about-cta) ───────────────────────────────────── */
.pf-cta { background: var(--text-head); padding: 80px 0; position: relative; overflow: hidden; text-align: center; }
.pf-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(37,99,235,0.14) 0%, transparent 65%); pointer-events: none; }
.pf-cta__inner { position: relative; z-index: 2; max-width: 620px; margin: 0 auto; }
.pf-cta .section-label { display: inline-flex; }
.pf-cta h2 { color: #fff; font-size: clamp(1.75rem, 3vw, 2.5rem); margin-bottom: 14px; }
.pf-cta p { color: #94A3B8; font-size: 1rem; line-height: 1.78; margin-bottom: 28px; }
.pf-cta__actions { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; }

/* ── Lightbox modal ─────────────────────────────────────────────────── */
.pf-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.pf-modal.is-open { display: block; }
.pf-modal__overlay { position: absolute; inset: 0; background: rgba(15,23,42,0.62); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fadeIn 0.2s ease; }
.pf-modal__panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(860px, calc(100vw - 40px)); max-height: 90vh; overflow-y: auto;
  background: var(--white); border-radius: var(--r-2xl); box-shadow: var(--shadow-xl); animation: fadeUp 0.28s ease;
}
.pf-modal__close {
  position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255,255,255,0.92); border: 1px solid var(--border); color: var(--text-head);
  display: flex; align-items: center; justify-content: center; font-size: 1rem;
  transition: background var(--t-fast), transform var(--t-fast);
}
.pf-modal__close:hover { background: var(--off-white); transform: rotate(90deg); }

.pf-detail__media { position: relative; height: 240px; display: flex; align-items: center; justify-content: center; border-radius: var(--r-2xl) var(--r-2xl) 0 0; }
.pf-detail__media i { font-size: 4rem; color: var(--text-head); opacity: 0.18; }
.pf-detail__content { padding: 30px 34px 34px; }
.pf-detail__title { font-family: var(--font-head); font-size: clamp(1.4rem, 2.4vw, 1.75rem); font-weight: 800; color: var(--text-head); letter-spacing: -0.03em; margin: 6px 0 10px; line-height: 1.18; }
.pf-detail__client { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: var(--text-muted); margin-bottom: 16px; }
.pf-detail__result { display: inline-flex; align-items: center; gap: 8px; font-size: 0.95rem; color: var(--blue-dark); background: var(--blue-light); border: 1px solid var(--blue-mid); border-radius: var(--r-md); padding: 9px 14px; margin-bottom: 22px; }
.pf-detail__h { font-family: var(--font-head); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-faint); margin: 18px 0 7px; }
.pf-detail__content p { font-size: 0.95rem; color: var(--text-body); line-height: 1.75; }
.pf-detail__tools { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 4px; }
.pf-detail__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .pf-grid { grid-template-columns: repeat(2, 1fr); }
  .pf-featured { grid-template-columns: 1fr; }
  .pf-featured__media { min-height: 260px; }
  .pf-tst-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .pg-hero { padding-top: calc(var(--nav-h) + 46px); padding-bottom: 52px; }
  .pg-hero h1 { font-size: clamp(1.875rem, 7vw, 2.6rem); }
  .pf-work-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .pf-filter { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .pf-pill { white-space: nowrap; }
  .pf-featured__content { padding: 30px 24px; }
  .pf-cta { padding: 56px 0; }
}
@media (max-width: 640px) {
  .pf-grid { grid-template-columns: 1fr; }
  .pf-tst-grid { grid-template-columns: 1fr; }
  .pf-hero__stats { gap: 14px 28px; }
  .pf-hero__watermark { display: none; }
  .pf-detail__content { padding: 24px 20px 28px; }
}
