/* Design (/design/) and Portfolio (/portfolio/) pages, loaded after /style.css */
.pf { font-size: 16px; line-height: 1.5; max-width: 980px; }
.pf h1 { margin-bottom: 10px; }
.pf h2 { margin: 30px 0 10px 0; }
.pf h3 { font-weight: normal; font-size: 20px; margin: 0 0 6px 0; }
.pf a { color: #000; }
.pf img { max-width: 100%; height: auto; }
.pf-lead { font-size: 18px; font-weight: lighter; }
.pf-crumbs { font-size: 14px; color: #666; margin-bottom: 10px; }
.pf-crumbs a { color: #666; }

/* Confidentiality statement at the top of the page */
.pf-note { background: #7f7b7a; color: #fff; padding: 12px 15px; margin: 15px 0; }
.pf-note p { margin: 0 0 6px 0; }
.pf-note p:last-child { margin-bottom: 0; }
.pf-note a { color: #fff; }

.pf-type { display: inline-block; font-size: 13px; color: #555; border: 1px solid #ccc; padding: 0 6px; }
.pf-year { font-size: 14px; color: #666; margin-left: 8px; }
.pf-meta { margin: 0 0 10px 0; }

/* Project cards */
.pf-cards { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.pf-card a { display: block; text-decoration: none; }
.pf-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: #eee; margin-bottom: 8px; }
.pf-card-title { display: block; font-size: 18px; margin-top: 4px; text-decoration: underline; }
.pf-card p { margin: 4px 0 0 0; color: #333; }

/* Project page */
.pf-text { max-width: 760px; }
.pf-result { margin: 0; }
.pf-result dt { color: #555; margin-top: 8px; }
.pf-result dd { margin: 0; }

.pf-gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.pf-gallery a { display: block; }
.pf-gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: #eee; }

.pf-media { margin: 0 0 10px 0; max-width: 760px; }
.pf-media figcaption { font-size: 14px; color: #666; margin-top: 4px; }
.pf-embed { display: block; position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.pf-embed img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.9; }
.pf-embed:hover img, .pf-embed:focus img { opacity: 1; }
.pf-play { position: absolute; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; background: rgba(0, 0, 0, 0.75); border-radius: 12px; }
.pf-play::after { content: ""; position: absolute; left: 29px; top: 14px; border-style: solid; border-width: 11px 0 11px 19px; border-color: transparent transparent transparent #fff; }
.pf-embed:hover .pf-play, .pf-embed:focus .pf-play { background: #c00; }
.pf-frame { display: block; width: 100%; aspect-ratio: 16 / 9; border: 0; }

.pf-links { padding-left: 20px; }
.pf-links li { margin-bottom: 4px; }

.pf-button { display: inline-block; background: #000; color: #fff !important; text-decoration: none; padding: 8px 18px; margin: 0 20px 10px 0; }
.pf-cta { margin-top: 30px; }

/* Lightbox */
.pf-lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.pf-lightbox::backdrop { background: rgba(0, 0, 0, 0.85); }
.pf-lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.pf-lightbox img { max-width: 94vw; max-height: 82vh; object-fit: contain; pointer-events: auto; }
.pf-lightbox figcaption { color: #fff; font-size: 14px; padding: 8px 50px; text-align: center; }
.pf-lightbox button { position: fixed; background: rgba(0, 0, 0, 0.5); color: #fff; border: 0; font-size: 36px; line-height: 1; width: 48px; height: 48px; cursor: pointer; }
.pf-lb-close { top: 10px; right: 10px; }
.pf-lb-prev { left: 6px; top: 50%; margin-top: -24px; }
.pf-lb-next { right: 6px; top: 50%; margin-top: -24px; }

/* Design page */
.pf-services { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px 30px; margin: 10px 0; }
.pf-service { border-top: 1px solid #ddd; padding-top: 12px; scroll-margin-top: 10px; }
.pf-service p { margin: 0 0 6px 0; }
.pf-service .pf-label { color: #555; }
.pf-small { font-size: 14px; color: #555; }
.pf-steps { padding-left: 22px; max-width: 760px; }
.pf-steps li { margin-bottom: 8px; }
.pf-stages { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0; padding: 0; list-style: none; }
.pf-stages figure { margin: 0; flex: 1 1 200px; max-width: 314px; }
.pf-stages figcaption { font-size: 14px; color: #666; text-align: center; }

@media screen and (max-width: 800px) {
    .pf-cards { grid-template-columns: 1fr; }
    .pf-gallery { grid-template-columns: repeat(2, 1fr); }
    .pf-services { grid-template-columns: 1fr; }
}
