/* ============================================================
   PORTFOLIO — components layered on top of ../styles.css
   Tokens (--bg, --green, --font-display …) come from styles.css.
   ============================================================ */

/* Holds the ambient orb. .orb-blob is position:absolute, so it needs a
   positioned, clipping ancestor — the homepage uses .slide__bg for this. */
.pf-bg {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.pf-page {
  position: relative;
  z-index: 2;
  padding-top: calc(var(--nav-h) + 48px);
  padding-bottom: 96px;
}

.pf-wrap {
  width: min(100% - 40px, var(--maxw));
  margin-inline: auto;
}

/* ---------- header ---------- */

.pf-head { margin-bottom: 56px; }

.pf-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.pf-eyebrow .hash { color: var(--green); }

.pf-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 5.2vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
}

.pf-sub {
  max-width: 68ch;
  color: var(--text-dim);
  font-size: clamp(15px, 1.5vw, 17px);
  margin: 0;
}

/* ---------- stat strip ---------- */

.pf-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 40px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.pf-stat {
  background: var(--panel);
  padding: 22px 20px;
}

.pf-stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1;
  color: var(--text);
}

.pf-stat__label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 10px;
}

/* ---------- filter bar ---------- */

.pf-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 48px 0 28px;
}

.pf-filter {
  appearance: none;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 9px 16px;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.pf-filter:hover {
  color: var(--text);
  border-color: rgba(20, 255, 122, 0.45);
}

.pf-filter[aria-pressed="true"] {
  color: var(--bg);
  background: var(--green);
  border-color: var(--green);
  font-weight: 700;
}

.pf-filter__n { opacity: 0.6; margin-left: 6px; }

/* ---------- grid ---------- */

.pf-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(272px, 1fr));
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pf-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.pf-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-3px);
}

/* The shot lives inside an <a>; without this the inline anchor gives the image
   no width to resolve 100% against and aspect-ratio never kicks in. */
.pf-card > a { display: block; }

.pf-card__shot {
  display: block;
  height: auto;
  aspect-ratio: 16 / 10;
  width: 100%;
  object-fit: cover;
  object-position: top center;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}

.pf-card__shot--empty {
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.pf-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  padding: 18px;
}

.pf-card__brandline {
  display: flex;
  align-items: center;
  gap: 11px;
}

.pf-card__logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex: none;
}

.pf-card__brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.01em;
  margin: 0;
}

.pf-card__market {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.pf-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  margin-top: auto;
}

.pf-card__meta b {
  color: var(--text-dim);
  font-weight: 500;
}

.pf-card__links {
  display: flex;
  gap: 8px;
  padding: 0 18px 18px;
}

.pf-link {
  flex: 1;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid var(--line-strong);
  color: var(--text-dim);
  transition: color 0.18s, border-color 0.18s, background 0.18s;
}

.pf-link:hover {
  color: var(--text);
  border-color: rgba(20, 255, 122, 0.5);
  background: rgba(20, 255, 122, 0.06);
}

/* Deliberately not a solid fill: with 40 cards on screen a wall of solid green
   drowns out the screenshots, which are the actual content here. */
.pf-link--primary {
  color: var(--green);
  border-color: rgba(20, 255, 122, 0.4);
  font-weight: 700;
}

.pf-link--primary:hover {
  color: var(--bg);
  background: var(--green);
  border-color: var(--green);
}

.pf-empty {
  grid-column: 1 / -1;
  padding: 48px 0;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- back link ---------- */

.pf-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-decoration: none;
  color: var(--muted);
  margin-bottom: 26px;
  transition: color 0.18s;
}

.pf-back:hover { color: var(--green); }

/* ============================================================
   CASE DETAIL
   ============================================================ */

.pf-case {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.75fr);
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .pf-case { grid-template-columns: 1fr; gap: 28px; }
}

.pf-case__shot {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  display: block;
}

.pf-case__shots {
  display: grid;
  gap: 18px;
}

.pf-case__shot-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.pf-case__mobile { max-width: 300px; }

.pf-spec {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px 20px;
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.pf-spec__row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.pf-spec__row:last-child { border-bottom: 0; }

.pf-spec__k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.pf-spec__v { color: var(--text); text-align: right; }

.pf-spec__cta { margin: 18px 0 22px; }

.pf-body {
  margin-top: 56px;
  max-width: 76ch;
}

.pf-h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(18px, 2.2vw, 23px);
  margin: 40px 0 14px;
}

.pf-body > .pf-h2:first-child { margin-top: 0; }

.pf-body p {
  color: var(--text-dim);
  font-size: 15px;
  margin: 0;
}

.pf-svc {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.pf-svc li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dim);
  font-size: 15px;
}

.pf-svc li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--green);
}

.pf-svc b { color: var(--text); font-weight: 600; }

.pf-body .pf-stats { margin-top: 18px; }
