/* One work unit, repeated: a large image on the left, then a meta line, a
   headline, one result line, one sentence, three small labels and one link.
   Every image sits in the same 16:10 frame on the same plate, so the eye learns the shape once.
   Built on the lit-panel tokens from home-depth.css (--h-lit-1, --h-edge,
   --h-drop), so it follows the Appearance picker. */
body.portfolio-home .wu-list { display: grid; gap: clamp(40px, 6vw, 72px); margin: 0; padding: 0; list-style: none; }
body.portfolio-home .wu { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }

/* The frame: one plate, with the same soft glow, behind every image. The images
   sit on it as small cards, so five different pictures read as one set. */
body.portfolio-home .wu-media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 28px; background: radial-gradient(120% 90% at 14% 0%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 62%), var(--h-lit-1); box-shadow: var(--h-edge), var(--h-drop); transition: transform 500ms var(--land, cubic-bezier(.2, 1.35, .35, 1)); }
body.portfolio-home .wu-media:hover { transform: translateY(-3px); }
body.portfolio-home .wu-media:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
body.portfolio-home .wu-media img { position: absolute; left: 50%; top: 50%; display: block; max-width: none; height: auto; border: 0; border-radius: 12px; box-shadow: 0 0 0 1px rgb(255 255 255 / .07), 0 24px 44px -20px rgb(0 0 0 / .6); transform: translate(-50%, -50%); }
/* Width is set per picture so each one keeps the same breathing room on the plate. */
body.portfolio-home .wu-media.fit-zone img { width: 88%; }
body.portfolio-home .wu-media.fit-training img { width: 70%; }
body.portfolio-home .wu-media.fit-molina img { width: 86%; }
body.portfolio-home .wu-media.fit-halo img { width: 90%; }
body.portfolio-home .wu-media.fit-aura img { width: 78%; }
body.portfolio-home .wu-media.fit-gifaf img { width: 82%; }

/* The words */
body.portfolio-home .wu-meta { margin: 0 0 12px; color: var(--muted); font-size: 14px; line-height: 1.4; }
body.portfolio-home .wu-meta span + span::before { content: "·"; margin: 0 .55em; opacity: .7; }
body.portfolio-home .wu h3 { margin: 0 0 16px; font-size: clamp(26px, 2.6vw, 32px); line-height: 1.12; font-weight: 500; letter-spacing: -.025em; text-wrap: balance; }
body.portfolio-home .wu-result { margin: 0 0 14px; color: var(--ink); font-size: 16px; line-height: 1.45; font-weight: 600; }
body.portfolio-home .wu-desc { margin: 0 0 18px; max-width: 46ch; color: var(--muted); font-size: 16px; line-height: 1.6; }
body.portfolio-home .wu-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
body.portfolio-home .wu-tags li { padding: 5px 12px; border-radius: 999px; background: var(--h-lit-2); box-shadow: var(--h-edge); color: var(--muted); font-size: 12.5px; line-height: 1.4; }
body.portfolio-home .wu-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-size: 15px; font-weight: 600; text-decoration: none; }
body.portfolio-home .wu-link::after { content: "\203A"; transition: transform 260ms var(--soft, cubic-bezier(.2, .8, .2, 1)); }
body.portfolio-home .wu-link[href^="http"]::after { content: "\2197"; }
body.portfolio-home .wu-link:hover::after { transform: translateX(3px); }
body.portfolio-home .wu-link:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

/* One section label style, in the accent; everything else stays quiet */
body.portfolio-home .wu-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; margin: 0 0 clamp(36px, 5vw, 56px); }
body.portfolio-home .wu-head h2 { margin: 0; font-size: clamp(32px, 4vw, 44px); line-height: 1.05; font-weight: 500; letter-spacing: -.025em; }
body.portfolio-home .wu-head > p { max-width: 34ch; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
body.portfolio-home .wu-head > p a { color: var(--ink); }
body.portfolio-home .wu-group + .wu-group { margin-top: clamp(72px, 9vw, 112px); }
body.portfolio-home .wu-count { color: var(--muted); }

@media (max-width: 900px) {
  body.portfolio-home .wu { grid-template-columns: 1fr; gap: 24px; }
  body.portfolio-home .wu-head { display: block; }
  body.portfolio-home .wu-head > p { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  body.portfolio-home .wu-media, body.portfolio-home .wu-link::after { transition: none; }
  body.portfolio-home .wu-media:hover, body.portfolio-home .wu-link:hover::after { transform: none; }
}

/* The small label inside the skills card stays quiet, like the other sub-labels. */
body.portfolio-home .sop-example .section-label { color: var(--muted); }
