/* ==========================================================================
   PAGE — PORTFOLIO (archive)
   Sections A–E. Each block is self-contained so it can be pasted into the
   matching Elementor Container's Custom CSS.
   ========================================================================== */

/* --------------------------------------------------------------------------
   A — HERO · navy, with a three-column "light table" of the work
   The columns drift at different rates (data-parallax, main.js B3).
   -------------------------------------------------------------------------- */
.pf-hero {
  position: relative;
  display: flex;
  min-height: clamp(660px, 100svh, 980px);
  padding-top: calc(var(--header-h, 88px) + clamp(1.25rem, 2.5vw, 2rem));
  padding-bottom: clamp(3rem, 5.5vw, 4.5rem);
  background: var(--tw-navy);
  color: var(--fg-on-dark);
  overflow: hidden;
  isolation: isolate;
}
.pf-hero::before {
  content: "";
  position: absolute;
  top: -20%; left: -20%;
  width: 70vw; height: 70vw;
  max-width: 1000px; max-height: 1000px;
  background: radial-gradient(circle, rgba(22, 184, 242, 0.12), transparent 62%);
  pointer-events: none;
  z-index: -1;
}
.pf-hero .rules { z-index: 0; }

.pf-hero__inner {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
}
.pf-hero__inner > .crumbs { margin-bottom: clamp(2.5rem, 6vh, 5rem); }
.pf-hero__eyebrow { display: flex; align-items: center; gap: 0.9rem; margin-top: auto; color: var(--fg-on-dark); }
.pf-hero__title { color: var(--tw-white); max-width: 9.5ch; margin-block: clamp(1.25rem, 2.2vw, 1.75rem) clamp(1.25rem, 2.5vw, 2rem); }
.pf-hero__lead { color: var(--fg-on-dark); opacity: 0.82; max-width: 34ch; }
.pf-hero__note {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  max-width: 52ch;
  margin-top: clamp(1.75rem, 3vw, 2.5rem);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-on-dark);
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--fg-muted-on-dark);
}
.pf-hero__note strong { color: var(--fg-on-dark); font-weight: 700; }
.pf-hero__note .regmark { color: var(--tw-blue); opacity: 0.85; margin-top: 0.1rem; }
.pf-hero__note .flag { margin-left: 0.35rem; }

/* The wall: three columns of the archive, bleeding off the right edge. */
.pf-hero__wall {
  position: absolute;
  z-index: 1;
  top: 0;
  bottom: -4%;
  right: -2.5vw;
  width: min(54vw, 900px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.75rem, 1.2vw, 1.25rem);
  /* Clear of the header at the top; dissolves into the navy at the foot. */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, transparent 12%, #000 36%, #000 76%, transparent 100%);
          mask-image: linear-gradient(to bottom, transparent 0, transparent 12%, #000 36%, #000 76%, transparent 100%);
}
.pf-hero__wall::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -1px;
  width: 22%;
  z-index: 2;
  background: linear-gradient(90deg, var(--tw-navy), transparent);
  pointer-events: none;
}
.pf-hero__col { display: grid; align-content: start; gap: inherit; will-change: translate; }
.pf-hero__col:nth-child(1) { margin-top: 18%; }
.pf-hero__col:nth-child(2) { margin-top: -4%; }
.pf-hero__col:nth-child(3) { margin-top: 34%; }
.pf-hero__tile { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--tw-navy-soft); }
.pf-hero__tile img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; filter: saturate(0.78) brightness(0.74) contrast(1.05); }
.pf-hero__tag {
  position: absolute;
  top: 0.65rem; left: 0.7rem;
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  color: rgba(255, 255, 255, 0.78);
  font-variant-numeric: tabular-nums;
}
.pf-hero__flag {
  position: absolute;
  z-index: 4;
  right: max(var(--gutter), calc((100vw - var(--shell)) / 2));
  bottom: 1.5rem;
}

@media (max-width: 900px) {
  .pf-hero { flex-direction: column; min-height: 0; padding-bottom: 0; }
  .pf-hero__inner { order: 1; width: min(100% - (var(--gutter) * 2), var(--shell)); }
  .pf-hero__inner > .crumbs { margin-bottom: 2.5rem; }
  .pf-hero__wall {
    order: 2;
    position: relative;
    inset: auto;
    width: calc(100% + 6vw);
    margin: 2.75rem -3vw 0;
    height: clamp(300px, 70vw, 440px);
    overflow: hidden;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 70%, transparent 100%);
            mask-image: linear-gradient(to bottom, transparent 0, #000 16%, #000 70%, transparent 100%);
  }
  .pf-hero__wall::before { display: none; }
  .pf-hero__flag { bottom: 1rem; }
}

/* --------------------------------------------------------------------------
   B — FILTER BAR · sticky; scrolls sideways on phones
   -------------------------------------------------------------------------- */
.pf-bar {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px) saturate(1.2);
  backdrop-filter: blur(12px) saturate(1.2);
  border-bottom: 1px solid var(--line);
  transition: top var(--dur) var(--ease-out);
}
/* Sit below the header while it shows; take its place when it retreats. */
body:has(.header.is-stuck:not(.is-hidden)) .pf-bar { top: 70px; }
.pf-bar__inner { display: flex; align-items: center; gap: var(--space-5); padding-block: 0.85rem; }
.pf-bar__filters { flex: 1 1 auto; min-width: 0; }
/* position: relative keeps the visually-hidden count inside the scroller. */
.pf-bar .filter { position: relative; flex: none; white-space: nowrap; }
.pf-bar__status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex: none;
  font-size: var(--fs-xs);
  color: var(--fg-muted);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.pf-bar__status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tw-blue); }

/* Grid / Index switch — two radios, so it works without any script. */
.pf-view {
  display: flex;
  flex: none;
  gap: 2px;
  margin: 0;
  padding: 3px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
}
.pf-view__opt { position: relative; display: block; }
.pf-view__opt input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.pf-view__opt span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 38px;
  padding-inline: 0.9rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: background-color var(--dur-fast), color var(--dur-fast);
}
.pf-view__opt input:hover + span { color: var(--fg); }
.pf-view__opt input:checked + span { background: var(--tw-navy); color: var(--tw-white); }
.pf-view__opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }

@media (max-width: 900px) {
  .pf-view { display: none; }
  /* Still announced by screen readers; hidden from view to keep the bar one row. */
  .pf-bar__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .pf-bar__inner { padding-block: 0.7rem; }
  .pf-bar__filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 2.5rem), transparent);
            mask-image: linear-gradient(90deg, transparent 0, #000 var(--gutter), #000 calc(100% - 2.5rem), transparent);
  }
  .pf-bar__filters::-webkit-scrollbar { display: none; }
}

/* --------------------------------------------------------------------------
   C1 — "NOW SHOWING" heading · swaps with the active filter
   #work[data-active] is written by main.js B5. The matching word rises
   from behind a mask. ⚠ A new project category needs one line in each
   list below (and in C4).
   -------------------------------------------------------------------------- */
.pf-work { padding-top: clamp(3.5rem, 7vw, 6.5rem); }
.pf-now { margin-bottom: clamp(3rem, 6vw, 5.5rem); }
.pf-now__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-5);
  padding-bottom: var(--space-4);
  margin-bottom: clamp(1.75rem, 3vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.pf-now__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
}
.pf-now__title { overflow: hidden; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.pf-now__word, .pf-now__blurb { display: none; }
.pf-now__word { animation: pf-rise var(--dur-reveal) var(--ease-out) both; }
.pf-now__blurb { animation: pf-fade var(--dur-slow) var(--ease-out) 120ms both; }

#work:not([data-active]) [data-now="all"],
#work[data-active="all"] [data-now="all"],
#work[data-active="printing"] [data-now="printing"],
#work[data-active="signage"] [data-now="signage"],
#work[data-active="branding"] [data-now="branding"],
#work[data-active="digital"] [data-now="digital"],
#work[data-active="ict"] [data-now="ict"] { display: block; }

.pf-now__desc { display: grid; gap: var(--space-5); justify-items: start; }
.pf-now__blurb { font-size: var(--fs-lead); line-height: 1.5; color: var(--fg-muted); max-width: 40ch; text-wrap: pretty; }

@keyframes pf-rise { from { translate: 0 105%; } }
@keyframes pf-fade { from { opacity: 0; translate: 0 10px; } }

@media (max-width: 860px) { .pf-now__grid { grid-template-columns: 1fr; align-items: start; } }

/* --------------------------------------------------------------------------
   C2 — EDITORIAL GRID
   Composition follows each card's position among the VISIBLE cards, so
   filtering re-composes the grid instead of leaving holes:
     1 of 5  → full-width "spread" (image + text side by side)
     2–3     → a large landscape card beside an offset portrait
     4–5     → two medium cards, the second dropped
   The second group of five mirrors the first. A card left alone at the
   end of a row (e.g. 2 results) is promoted to a spread.
   The card reads its layout from custom properties, so each slot below
   only sets variables.  V = :not([hidden])
   -------------------------------------------------------------------------- */
.pf-grid {
  --pf-drop: clamp(4rem, 11vw, 11rem);
  --pf-drop-sm: clamp(2.5rem, 6vw, 6rem);
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 2.5vw, 2.5rem);
  row-gap: clamp(3.5rem, 7vw, 7.5rem);
  align-items: start;
}
.pf-card { grid-column: 1 / -1; --ar: 4 / 3; }
.pf-card[hidden] { display: none !important; }

.pf-card__link {
  display: grid;
  grid-template-columns: var(--cols, minmax(0, 1fr));
  column-gap: clamp(1.25rem, 2.5vw, 2.5rem);
}

/* Media */
.pf-card__media {
  grid-column: var(--media-col, 1 / -1);
  grid-row: 1;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--tw-grey-100);
}
.pf-card__media img {
  width: 100%;
  aspect-ratio: var(--ar);
  object-fit: cover;
  scale: 1.1;
  filter: saturate(0.94) contrast(1.04);
  transition: scale 1100ms var(--ease-out), filter var(--dur) var(--ease-out);
}
.pf-card__link:hover .pf-card__media img,
.pf-card__link:focus-visible .pf-card__media img { scale: 1.16; filter: saturate(1) contrast(1.06) brightness(0.92); }

.pf-card__num {
  display: var(--chip, block);
  position: absolute;
  top: 1rem; left: 1rem;
  z-index: 3;
  padding: 0.4rem 0.65rem;
  background: rgba(7, 20, 33, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--ls-wide);
  color: var(--tw-white);
  font-variant-numeric: tabular-nums;
}
.pf-card__go {
  position: absolute;
  top: 1rem; right: 1rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--tw-white);
  color: var(--tw-navy);
  opacity: 0;
  scale: 0.6;
  transition: opacity var(--dur-fast) var(--ease-out), scale var(--dur) var(--ease-out);
}
.pf-card__go svg { rotate: -45deg; }

/* Hover detail — services used. It is also the screen-reader source for
   the services, so it stays in the DOM and is only faded. */
.pf-card__hover {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  display: grid;
  gap: 0.75rem;
  padding: 5.5rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(7, 20, 33, 0.9), rgba(7, 20, 33, 0));
  color: var(--tw-white);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out);
}
.pf-card__hover-label {
  font-family: var(--font-display);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--tw-blue);
}
.pf-card__chips { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pf-card__chips span {
  padding: 0.45rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-pill);
  background: rgba(7, 20, 33, 0.35);
  font-size: var(--fs-xs);
  font-weight: 600;
  line-height: 1.2;
  opacity: 0;
  translate: 0 10px;
  transition: opacity var(--dur) var(--ease-out), translate var(--dur-slow) var(--ease-out);
  transition-delay: calc(var(--i, 0) * 45ms + 60ms);
}
@media (hover: hover) and (pointer: fine) {
  .pf-card__link:hover .pf-card__hover,
  .pf-card__link:focus-visible .pf-card__hover { opacity: var(--hover-on, 1); }
  .pf-card__link:hover .pf-card__chips span,
  .pf-card__link:focus-visible .pf-card__chips span { opacity: 1; translate: 0 0; }
  .pf-card__link:hover .pf-card__go,
  .pf-card__link:focus-visible .pf-card__go { opacity: 1; scale: 1; }
}

/* Meta */
.pf-card__meta {
  grid-column: var(--meta-col, 1 / -1);
  grid-row: var(--meta-row, 2);
  align-self: var(--meta-align, start);
  display: flex;
  flex-direction: column;
  padding-top: var(--meta-pt, 1.4rem);
}
.pf-card__big {
  display: var(--big, none);
  margin-bottom: auto;
  padding-bottom: var(--space-6);
  font-family: var(--font-display);
  font-size: clamp(5rem, 2.5rem + 7vw, 10rem);
  font-weight: 600;
  line-height: 0.8;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  color: transparent;
  -webkit-text-stroke: 1px rgba(23, 32, 42, 0.26);
  transition: -webkit-text-stroke-color var(--dur) var(--ease-out);
}
.pf-card__link:hover .pf-card__big { -webkit-text-stroke-color: var(--tw-blue); }
.pf-card__line {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  line-height: 1;
  color: var(--accent-text);
}
.pf-card__cat { display: inline-flex; align-items: center; gap: 0.55rem; white-space: nowrap; }
.pf-card__cat svg { width: 16px; height: 16px; flex: none; }
.pf-card__rule { position: relative; flex: 1; height: 1px; background: var(--line); overflow: hidden; }
.pf-card__rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--tw-blue);
  scale: 0 1;
  transform-origin: left center;
  transition: scale var(--dur-slow) var(--ease-out);
}
.pf-card__link:hover .pf-card__rule::after,
.pf-card__link:focus-visible .pf-card__rule::after { scale: 1 1; }
.pf-card__name {
  margin-top: 0.85rem;
  font-size: var(--name-fs, clamp(1.375rem, 1rem + 1.1vw, 2.125rem));
  line-height: 1.1;
  letter-spacing: var(--ls-tight);
  transition: color var(--dur-fast) var(--ease-out);
}
.pf-card__link:hover .pf-card__name { color: var(--accent-text); }
.pf-card__svc {
  display: var(--svc, none);
  flex-direction: var(--svc-dir, row);
  flex-wrap: wrap;
  gap: var(--svc-gap, 0.35rem 0.9rem);
  margin-top: var(--space-4);
  font-size: var(--fs-small);
  color: var(--fg-muted);
  line-height: 1.45;
}
.pf-card__svc span { display: inline-flex; align-items: center; gap: 0.9rem; padding-block: var(--svc-py, 0); border-bottom: var(--svc-rule, 0 solid transparent); }
.pf-card__svc span + span::before { content: ""; display: var(--svc-sep, block); width: 3px; height: 3px; rotate: 45deg; background: var(--fg-muted); opacity: 0.6; }
.pf-card__more { display: var(--more, none); align-self: flex-start; margin-top: var(--space-5); }
.pf-card__link:hover .pf-card__more { background-size: 100% 1px; }
.pf-card__link:hover .pf-card__more .btn__arrow { translate: 4px 0; }

/* Touch: no hover, so services show under the title. */
@media (hover: none), (pointer: coarse) { .pf-card { --svc: flex; } }

/* ---- Slots · desktop ---------------------------------------------------- */
@media (min-width: 901px) {
  /* Group A */
  .pf-grid > :nth-child(10n+2 of :not([hidden])) { grid-column: 1 / span 7; --ar: 4 / 3; }
  .pf-grid > :nth-child(10n+3 of :not([hidden])) { grid-column: 9 / span 4; --ar: 4 / 5; margin-top: var(--pf-drop); }
  .pf-grid > :nth-child(10n+4 of :not([hidden])) { grid-column: 2 / span 5; --ar: 1; }
  .pf-grid > :nth-child(10n+5 of :not([hidden])) { grid-column: 8 / span 5; --ar: 3 / 2; margin-top: var(--pf-drop-sm); }
  /* Group B — mirrored */
  .pf-grid > :nth-child(10n+7 of :not([hidden])) { grid-column: 1 / span 4; --ar: 4 / 5; }
  .pf-grid > :nth-child(10n+8 of :not([hidden])) { grid-column: 6 / span 7; --ar: 4 / 3; margin-top: var(--pf-drop); }
  .pf-grid > :nth-child(10n+9 of :not([hidden])) { grid-column: 1 / span 5; --ar: 3 / 2; margin-top: var(--pf-drop-sm); }
  .pf-grid > :nth-child(10n+10 of :not([hidden])) { grid-column: 7 / span 6; --ar: 1; }

  /* Spreads — slot 1 of every five, plus any card left alone in a row. */
  .pf-grid > :nth-child(5n+1 of :not([hidden])),
  .pf-grid > :nth-child(5n+2 of :not([hidden])):nth-last-child(1 of :not([hidden])),
  .pf-grid > :nth-child(5n+4 of :not([hidden])):nth-last-child(1 of :not([hidden])) {
    grid-column: 1 / -1;
    margin-top: 0;
    --ar: 16 / 10;
    --cols: repeat(12, minmax(0, 1fr));
    --media-col: 1 / span 8;
    --meta-col: 10 / span 3;
    --meta-row: 1;
    --meta-align: stretch;
    --meta-pt: 0;
    --name-fs: clamp(2rem, 1rem + 2.4vw, 3.25rem);
    --big: block;
    --chip: none;
    --svc: flex;
    --svc-dir: column;
    --svc-gap: 0;
    --svc-py: 0.6rem;
    --svc-rule: 1px solid var(--line);
    --svc-sep: none;
    --more: inline-flex;
    --hover-on: 0;
  }
  /* Mirror every other spread: image right, text left. */
  .pf-grid > :nth-child(10n+6 of :not([hidden])),
  .pf-grid > :nth-child(5n+2 of :not([hidden])):nth-last-child(1 of :not([hidden])),
  .pf-grid > :nth-child(5n+4 of :not([hidden])):nth-last-child(1 of :not([hidden])) {
    --media-col: 5 / span 8;
    --meta-col: 1 / span 3;
  }
}

/* ---- Slots · tablet ------------------------------------------------------ */
@media (min-width: 601px) and (max-width: 900px) {
  .pf-grid > .pf-card { grid-column: span 6; --ar: 4 / 5; }
  .pf-grid > :nth-child(5n+3 of :not([hidden])),
  .pf-grid > :nth-child(5n+5 of :not([hidden])) { margin-top: var(--pf-drop-sm); }
  .pf-grid > :nth-child(5n+1 of :not([hidden])),
  .pf-grid > :nth-child(5n+2 of :not([hidden])):nth-last-child(1 of :not([hidden])),
  .pf-grid > :nth-child(5n+4 of :not([hidden])):nth-last-child(1 of :not([hidden])) {
    grid-column: 1 / -1; margin-top: 0; --ar: 16 / 10; --name-fs: clamp(1.75rem, 4.5vw, 2.5rem);
  }
}

/* ---- Slots · phone ------------------------------------------------------- */
@media (max-width: 600px) {
  .pf-grid { row-gap: 3.25rem; }
  .pf-grid > .pf-card { grid-column: 1 / -1; --ar: 4 / 3; }
  /* A quieter rhythm: every other card of each pair steps in and stands up. */
  .pf-grid > :nth-child(5n+3 of :not([hidden])),
  .pf-grid > :nth-child(5n+5 of :not([hidden])) { margin-left: 14%; --ar: 4 / 5; }
  .pf-card__num { top: 0.75rem; left: 0.75rem; }
}

/* --------------------------------------------------------------------------
   C3 — INDEX VIEW · typographic list with a trailing preview (B8)
   Shown when the "Index" radio is checked (desktop only).
   -------------------------------------------------------------------------- */
.pf-index { display: none; border-top: 1px solid var(--fg); }
@media (min-width: 901px) {
  body:has(#pf-view-index:checked) .pf-grid { display: none; }
  body:has(#pf-view-index:checked) .pf-index { display: block; animation: pf-fade var(--dur-slow) var(--ease-out); }
}
.pf-row { border-bottom: 1px solid var(--line); animation: pf-fade var(--dur-slow) var(--ease-out) both; }
.pf-row__link {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 4rem minmax(0, 1.45fr) minmax(0, 0.75fr) minmax(0, 1.25fr) 2.75rem;
  align-items: center;
  gap: var(--space-5);
  padding: clamp(1.4rem, 2.2vw, 2rem) var(--space-4);
  color: var(--fg);
  transition: color var(--dur) var(--ease-out);
}
.pf-row__link::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--tw-navy);
  scale: 1 0;
  transform-origin: center bottom;
  transition: scale var(--dur) var(--ease-out);
}
.pf-row__link:hover, .pf-row__link:focus-visible { color: var(--tw-white); }
.pf-row__link:hover::before, .pf-row__link:focus-visible::before { scale: 1 1; }
.pf-row__num { font-family: var(--font-display); font-size: 0.75rem; font-weight: 700; letter-spacing: var(--ls-wide); color: var(--accent-text); font-variant-numeric: tabular-nums; transition: color var(--dur-fast); }
.pf-row__name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 0.9rem + 1.5vw, 2.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: var(--ls-mega);
  transition: translate var(--dur) var(--ease-out);
}
.pf-row__cat {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--accent-text);
  transition: color var(--dur-fast);
}
.pf-row__cat svg { width: 16px; height: 16px; flex: none; }
.pf-row__svc { font-size: var(--fs-small); color: var(--fg-muted); line-height: 1.5; transition: color var(--dur-fast); }
.pf-row__go {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  transition: background-color var(--dur-fast), border-color var(--dur-fast), color var(--dur-fast);
}
.pf-row__link:hover .pf-row__name, .pf-row__link:focus-visible .pf-row__name { translate: 12px 0; }
.pf-row__link:hover .pf-row__num, .pf-row__link:hover .pf-row__cat,
.pf-row__link:focus-visible .pf-row__num, .pf-row__link:focus-visible .pf-row__cat { color: var(--tw-blue); }
.pf-row__link:hover .pf-row__svc, .pf-row__link:focus-visible .pf-row__svc { color: var(--fg-muted-on-dark); }
.pf-row__link:hover .pf-row__go, .pf-row__link:focus-visible .pf-row__go { background: var(--tw-blue); border-color: var(--tw-blue); color: var(--tw-navy); }

/* C4 — index rows follow the active filter (CSS only). */
#work[data-active="printing"] .pf-row:not([data-cat="printing"]),
#work[data-active="signage"]  .pf-row:not([data-cat="signage"]),
#work[data-active="branding"] .pf-row:not([data-cat="branding"]),
#work[data-active="digital"]  .pf-row:not([data-cat="digital"]),
#work[data-active="ict"]      .pf-row:not([data-cat="ict"]) { display: none; }

/* --------------------------------------------------------------------------
   D — CONVERSION STRIP
   -------------------------------------------------------------------------- */
.pf-convert { padding-bottom: var(--section-y); }
.pf-convert .convert { padding: clamp(2rem, 4.5vw, 4rem); }
.pf-convert .convert h2 { font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem); max-width: 22ch; line-height: 1.12; }
.pf-convert .convert p:not(.eyebrow) { font-size: var(--fs-body); margin-top: var(--space-4); }
.pf-convert .convert .eyebrow { color: var(--tw-blue); }

/* Project type (e.g. "Event Branding & Print Production") — sits under the
   title; the category chip above still drives the filters. */
.pf-card__type {
  margin-top: 0.5rem;
  font-family: var(--font-display);
  font-size: var(--fs-small);
  font-weight: 600;
  letter-spacing: var(--ls-tight);
  color: var(--fg-muted);
}
