/* Steponi portfolio (steponi.com/portfolio) */
.pf-back { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.pf-back svg { width: 18px; height: 18px; color: var(--muted-foreground); transition: transform .2s; }
.pf-back:hover svg { transform: translateX(-3px); color: var(--foreground); }

.pf-hero { position: relative; padding: 120px 0 28px; overflow: hidden; }
@media (min-width: 768px) { .pf-hero { padding: 150px 0 36px; } }
.pf-title { font-size: clamp(34px, 5.4vw, 60px); max-width: 52rem; }

/* Filter po industriji */
.pf-filter { position: sticky; top: 64px; z-index: 40; padding: 12px 0; background: color-mix(in oklab, var(--background) 82%, transparent); backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.pf-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 0 20px; }
.pf-chips::-webkit-scrollbar { display: none; }
.pf-chip { flex: none; font-size: 14px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: color-mix(in oklab, var(--foreground) 80%, transparent); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.pf-chip:hover { border-color: color-mix(in oklab, var(--primary) 50%, transparent); }
.pf-chip.on { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Kartice klijenata */
.pf-list { padding: 28px 0 40px; }
.pf-list .st-wrap { display: flex; flex-direction: column; gap: 20px; }
.pf-card { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; border: 1px solid var(--border); background: var(--surface); border-radius: 26px; padding: 22px; box-shadow: var(--shadow-card); }
.pf-card[hidden] { display: none; }
@media (min-width: 1024px) { .pf-card { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); gap: 36px; padding: 30px; align-items: center; } }
.pf-head { display: flex; align-items: center; gap: 12px; }
.pf-head img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; background: #fff; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in oklab, var(--primary) 55%, transparent); }
.pf-head > div { min-width: 0; }
.pf-head b { display: block; font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.2; }
.pf-head span { display: block; font-size: 13px; color: var(--muted-foreground); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-head .st-link { margin-left: auto; flex: none; }
.pf-ind { display: inline-block; margin-top: 14px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); }
.pf-card dl { margin-top: 10px; display: grid; gap: 4px 0; }
.pf-card dt { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); margin-top: 10px; }
.pf-card dd { font-size: 15px; line-height: 1.55; color: color-mix(in oklab, var(--foreground) 88%, transparent); }
.pf-note { margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--primary); }
.pf-stats { margin-top: 18px; display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.pf-stats > div { border: 1px solid var(--border); background: color-mix(in oklab, var(--background) 45%, transparent); border-radius: 14px; padding: 13px 14px; }
.pf-stats b { display: block; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 700; line-height: 1.1; color: var(--primary); }
.pf-stats small { display: block; margin-top: 4px; font-size: 11px; line-height: 1.35; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); }

/* Klipovi: na telefonu se prevlače levo-desno */
.pf-clips { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 24px) / 3); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pf-clips::-webkit-scrollbar { display: none; }
@media (max-width: 640px) { .pf-clips { grid-auto-columns: 58%; margin: 0 -22px; padding: 0 22px; scroll-padding: 0 22px; } }
.pf-clip { position: relative; aspect-ratio: 9 / 16; border-radius: 16px; overflow: hidden; background: #000; border: 1px solid var(--border); padding: 0; cursor: pointer; scroll-snap-align: start; }
.pf-clip video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pf-play { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in oklab, var(--primary) 92%, transparent); color: #fff; box-shadow: 0 0 0 8px color-mix(in oklab, var(--primary) 22%, transparent); transition: opacity .2s, transform .2s; }
.pf-play svg { width: 22px; height: 22px; margin-left: 3px; }
.pf-clip:hover .pf-play { transform: scale(1.08); }
.pf-clip.is-playing .pf-play { opacity: 0; transform: scale(.7); }
.pf-clip::after { content: ""; position: absolute; inset: auto 0 0 0; height: 3px; background: var(--primary); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

.pf-end { margin-top: 20px; }
@media (min-width: 641px) { .pf-clips { grid-auto-columns: minmax(0, 1fr); overflow: visible; } }
.pf-stats b { white-space: nowrap; }
/* Raspored kartice: telefon = glava, klipovi, tekst, brojevi; računar = levo tekst, desno klipovi */
.pf-card { grid-template-areas: "head" "clips" "text" "stats"; row-gap: 18px; }
.pf-head { grid-area: head; }
.pf-text { grid-area: text; }
.pf-text .pf-ind { margin-top: 0; }
.pf-stats { grid-area: stats; margin-top: 0; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); }
.pf-clips { grid-area: clips; }
@media (min-width: 1024px) {
  .pf-card { grid-template-columns: minmax(0, .95fr) minmax(0, 1.25fr); grid-template-areas: "head clips" "text clips" "stats clips"; grid-template-rows: auto auto 1fr; row-gap: 14px; align-items: start; }
  .pf-clips { align-self: center; }
}
.pf-head b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .pf-head .st-link { padding: 8px 11px; } .pf-stats > div { padding: 11px 10px; } }
/* Svi klipovi iste veličine: na računaru uvek četvrtina reda */
@media (min-width: 641px) { .pf-clips { grid-auto-columns: calc((100% - 36px) / 4); justify-content: start; } }
.pf-end .st-btn { text-align: center; justify-content: center; }
.pf-hero { padding-bottom: 8px; }
