/* ==========================================================================
   Portfolio (/portfolio)
   Page-only layouts. The grid, tabs and tiles are the shared work grid
   (components.css + modules/work-grid.js); values are tokens.
   ========================================================================== */

/* ── Hero: copy + the index of the reel ────────────────────────────────── */
.pf-hero { position: relative; padding-bottom: var(--section-pad-tight); overflow-x: clip; isolation: isolate; }
.pf-hero__light { position: absolute; z-index: -1; inset: -15% -10% auto 40%; height: 120%; background: var(--light-spot); pointer-events: none; }
.pf-hero__grid { display: grid; gap: var(--sp-6) var(--grid-gutter); align-items: end; }
@media (min-width: 1200px) { .pf-hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
/* the copy starts at the top, so the breadcrumb lines up with the other pages' heroes */
.pf-hero__copy { display: grid; gap: var(--sp-3); justify-items: start; align-self: start; }
.pf-hero__title { max-width: 14ch; }
.pf-hero__answer { color: var(--c-text); max-width: 54ch; }
.js-motion .pf-hero__copy > *,
.js-motion .pf-index { animation: pf-rise var(--dur-slow) var(--ease-signature) backwards; }
.js-motion .pf-hero__copy > :nth-child(2) { animation-delay: var(--stagger-items); }
.js-motion .pf-hero__copy > :nth-child(3) { animation-delay: calc(var(--stagger-items) * 2); }
.js-motion .pf-hero__copy > :nth-child(n + 4),
.js-motion .pf-index { animation-delay: calc(var(--stagger-items) * 3); }
@keyframes pf-rise { from { opacity: 0.01; transform: translateY(var(--reveal-rise)); } }

/* the index: like the contents card in a film can — number, name, leader, count */
.pf-index { display: grid; gap: var(--sp-1); }
/* phones: the tab bar below does the same job, so the work starts sooner */
@media (max-width: 767.98px) { .pf-index { display: none; } }
.pf-index__head { display: flex; justify-content: space-between; padding-bottom: var(--sp-1); border-bottom: var(--border-strong); font-family: var(--font-mono); font-size: var(--fs-caption); letter-spacing: var(--eyebrow-tracking); text-transform: uppercase; color: var(--c-text-muted); }
.pf-index__list { display: grid; list-style: none; }
@media (min-width: 576px) and (max-width: 1199.98px) { .pf-index__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--grid-gutter); } }
.pf-index__link { display: grid; grid-template-columns: 2rem auto minmax(1rem, 1fr) auto; align-items: baseline; gap: var(--sp-1); min-height: var(--tap-min); padding: var(--sp-1) 0; border-bottom: var(--border); color: var(--c-text); text-decoration: none; }
.pf-index__link::after { content: ""; grid-column: 3; grid-row: 1; border-bottom: 1px dotted var(--c-line-strong); translate: 0 -0.3em; }
.pf-index__no { font-family: var(--font-mono); font-size: var(--fs-caption); color: var(--c-accent-text); }
.pf-index__name { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--display-weight); letter-spacing: -0.015em; line-height: 1.2; transition: color var(--dur-fast) var(--ease-hover); }
.pf-index__count { grid-column: 4; font-family: var(--font-mono); font-size: var(--fs-small); color: var(--c-text-muted); font-variant-numeric: tabular-nums; }
.pf-index__link:hover .pf-index__name,
.pf-index__link:focus-visible .pf-index__name { color: var(--c-accent-text); }

/* ── The work ──────────────────────────────────────────────────────────── */
.pf-work__head { margin-bottom: var(--sp-5); }
.pf-work__more { display: flex; justify-content: center; margin-top: var(--sp-6); }
.pf-work__more .btn[hidden] { display: none; }
