/* Portfolio only. Static, visible content is the default; JS enhances motion. */
.pf-page { position: relative; z-index: 2; overflow-x: clip; }

.pf-stack { position: relative; }
.pf-stack .pf-hero,
.pf-stack .pf-card {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg);
  min-height: 100dvh;
}
.pf-stack .pf-card--1 { z-index: 3; }
.pf-stack .pf-card--2 { z-index: 4; }
.pf-stack .pf-card--3 { z-index: 5; }
.pf-hero { padding-top: clamp(130px, 14vw, 210px); padding-bottom: 60px; }
.pf-kicker, .pf-hero-foot, .pf-project-caption, .pf-work-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.pf-kicker > span,
.pf-project-caption > span, .pf-jump {
  font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .12em;
}
.pf-kicker > span, .pf-project-caption > span { color: var(--muted); }
.pf-title { font-size: clamp(5rem, 15.5vw, 16rem); line-height: .88; font-weight: 400; letter-spacing: -.065em; margin: 44px 0 36px; }
.pf-title-mask { display: block; overflow: hidden; padding-bottom: .08em; }
.pf-title-mask > span { display: block; }
.pf-title-mask:nth-child(2) { margin-left: 24%; }
.pf-title-dot { color: var(--muted); }
.pf-hero-foot { border-top: 1px solid var(--line); padding-top: 24px; }
.pf-hero-foot > p { font-size: clamp(1.05rem, 1.7vw, 1.5rem); line-height: 1.35; }
.pf-jump { display: flex; align-items: center; gap: 24px; }
.pf-jump > span { font-size: 2rem; }
.pf-section { padding-top: clamp(80px, 10vw, 160px); scroll-margin-top: 90px; }
.pf-work-heading h2 { font-weight: 400; font-size: clamp(2.6rem, 5.5vw, 6rem); line-height: .98; letter-spacing: -.045em; }
.pf-project-caption { margin-top: 18px; align-items: baseline; }
/* featured cards: the 1672x941 image as large as the screen allows (never
   cropped, capped by .wrap at --maxw), caption below it, left aligned */
.pf-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: clamp(96px, 12vh, 140px) clamp(32px, 5vh, 60px);
}
.pf-card .pf-project { width: min(100%, calc((100dvh - 260px) * 1672 / 941)); margin-inline: auto; }
.pf-card .pf-project-caption { justify-content: flex-start; }
.pf-project-titles { display: flex; flex-direction: column; gap: 4px; }
.pf-project-client { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pf-project-caption h3, .pf-project-caption h2 { font-size: clamp(1.1rem, 1.8vw, 1.65rem); font-weight: 400; letter-spacing: -.025em; display: flex; align-items: center; gap: 0.45em; }
.pf-project-caption h3 .arw { display: inline-block; transform: translateX(-8px); opacity: 0; transition: transform 0.5s var(--e-out), opacity 0.5s var(--e-out); }
.pf-grid .pf-project:hover .pf-project-caption h3 .arw,
.pf-grid .pf-project:focus-visible .pf-project-caption h3 .arw { transform: none; opacity: 1; }
.pf-media-shell { position: relative; isolation: isolate; }
.pf-media-shell.has-image .pf-glow { display: block; }
.pf-work-heading { margin-bottom: 30px; align-items: flex-end; }
.pf-work-heading .eyebrow { margin-bottom: 20px; }
.pf-filters { display: flex; flex-wrap: wrap; gap: 10px; padding: 24px 0 36px; border-top: 1px solid var(--line); }
.pf-filters[hidden], .pf-project[hidden] { display: none; }
.pf-filters button { padding: 11px 20px; border: 1px solid var(--line); border-radius: 99px; font-size: .75rem; }
.pf-filters button[aria-pressed="true"] { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 32px; align-items: start; }
.pf-grid .pf-project:nth-child(4n + 2) .pf-media { aspect-ratio: 4 / 3; }
.pf-cta { padding-block: clamp(100px, 13vw, 200px); text-align: center; }
.pf-cta h2 { font-size: clamp(3rem, 8vw, 9rem); font-weight: 400; line-height: .98; letter-spacing: -.055em; margin: 24px 0 36px; }
.pf-cta h2 > span { color: var(--muted); }
.pf-cta > p:last-child { color: var(--muted); margin-top: 24px; }
.pf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 640px) {
  .pf-hero { padding-top: 130px; padding-bottom: 40px; }
  /* the hero fills a full screen for the stacking effect; on a phone its
     content is short, so centre it instead of leaving empty space below */
  .pf-stack .pf-hero { display: flex; flex-direction: column; justify-content: center; }
  .pf-kicker { align-items: flex-start; flex-direction: column; gap: 12px; }
  .pf-title { font-size: clamp(4rem, 20vw, 8rem); margin-top: 32px; }
  .pf-title-mask:nth-child(2) { margin-left: 18%; }
  .pf-hero-foot { flex-direction: column; align-items: flex-start; gap: 14px; }
  .pf-work-heading { align-items: flex-start; }
  .pf-work-heading h2 { font-size: clamp(2.2rem, 11vw, 3rem); }
  .pf-cta h2 { font-size: clamp(2.6rem, 13vw, 4rem); }
  .pf-jump { gap: 8px; font-size: .58rem; }
  .pf-grid { grid-template-columns: 1fr; gap: 36px; }
  .pf-filters { gap: 8px; }
  .pf-filters button { padding: 10px 13px; font-size: .65rem; }
  .pf-project-caption { gap: 12px; }
  .pf-project-caption > span { font-size: .58rem; }
}

/* stacked sections are .wrap (capped at --maxw), so their opaque
   background stopped short of the screen edges on wide displays and the
   section underneath showed through as a second box. Extend each one's
   background to the full viewport width; the aura still paints on top. */
.pf-stack .pf-hero,
.pf-stack .pf-card {
  box-shadow: 0 0 0 100vmax var(--bg);
  clip-path: inset(0 -100vmax);
}

/* ---------- phones: tighter rhythm (mobile pass 2026-09-26) ---------- */
@media (max-width: 640px) {
  .pf-hero { padding-top: 100px; padding-bottom: 28px; }
  .pf-section { padding-top: 44px; }
  .pf-grid { gap: 28px; }
  .pf-filters { padding: 18px 0 24px; }
}

/* phones: a card keeps its natural height when a full screen would only
   add empty space around the image; the stack itself still works */
@media (max-width: 720px) {
  .pf-stack .pf-card { min-height: 0; }
}
