/* ============================================================
   Portfolio site: home page, About page and work-sample pages only.
   Loaded after /css/test.css and /portfolio.css. Uses only their tokens
   (--ink, --body, --muted, --kicker, --card, --line, --outline, --coral, --font-*).
   Teal comes only from the shared .btn-solid. Copied to site/ by build.py.
   ============================================================ */

/* ---------- Hero ---------- */
.pf-home .pf-lead { max-width: 62ch; }
.pf-proof { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 1000px; }
.pf-proof li { position: relative; padding: 14px 16px 14px 38px; border: 1px solid var(--outline); border-radius: 8px; background: var(--card); color: var(--ink); font-weight: 600; font-size: 16px; line-height: 1.4; }
.pf-proof li::before { content: ""; position: absolute; left: 17px; top: 21px; width: 8px; height: 8px; background: var(--coral); }
.pf-note { margin-top: 16px; max-width: 62ch; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
@media (max-width: 760px) { .pf-proof { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Section headings ---------- */
.pf-list .wrap > h2, .pf-about .wrap > h2 { margin-bottom: 28px; }
#case-studies, #samples { scroll-margin-top: 90px; }

/* ---------- Case-study card: shot and intro on top, Problem / Built / Result across ---------- */
.pf-card { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); row-gap: 24px; }
.pf-card .kicker { margin: 0 0 12px; }
.pf-body .pf-status { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: var(--body); }
.pf-card .sum3 { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 28px; max-width: none; margin: 0; }
.pf-card .sum3 li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
.pf-jump { grid-column: 1 / -1; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 15px; color: var(--body); }
.pf-jump a { text-decoration: underline; text-underline-offset: 4px; }
.pf-jump .sep { margin: 0 6px; color: var(--muted); }
@media (max-width: 860px) { .pf-card, .pf-card .sum3 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Buttons in a row may wrap on a phone ---------- */
.pf-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.pf-links .btn { white-space: normal; text-align: center; max-width: 100%; }

/* ---------- Work samples: small cards (shown from two samples) ---------- */
.pf-samples { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 22px; }
.pf-sample { display: flex; flex-direction: column; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 18px 20px; }
.pf-sample img { display: block; width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--line); }
.pf-type { margin: 0; font-size: 12.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pf-sample h3 { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: 24px; line-height: 1.2; }
.pf-sample h3 a { color: var(--ink); text-decoration: none; }
.pf-sample h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.pf-sample > p { margin: 0; color: var(--body); }
.pf-sample .pf-skills { margin: 4px 0 0; }
.pf-prov { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.pf-sample .pf-prov { margin-top: auto; padding-top: 8px; }

/* ---------- Work-sample page ---------- */
.pf-sample-head .pf-prov { margin-top: 12px; font-size: 15px; }
.pf-sample-head .cs-card h2 + p, .pf-sample-head .cs-card h2 + ul { margin-bottom: 18px; }
.pf-sample-head .cs-card p { font-size: 15.5px; line-height: 1.5; color: var(--body); }
.pf-sample-head .cs-card > :last-child { margin-bottom: 0; }
.pf-sample-shot img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); }
.pf-change .wrap > h2 { margin-bottom: 18px; }

/* ---------- About teaser ---------- */
.pf-about .lede { max-width: 62ch; }

/* ---------- About page ---------- */
.pf-about-head .wrap { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.pf-about-head .lede { max-width: 58ch; }
.pf-where { margin-top: 14px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.pf-about-photo { display: block; width: 100%; max-width: 340px; height: auto; border-radius: 10px; border: 1px solid var(--line); justify-self: end; }
.pf-ab .wrap > h2 { margin-bottom: 20px; }
.pf-roles { list-style: none; margin: 0; padding: 0; max-width: 72ch; border-top: 1px solid var(--line); }
.pf-roles li { padding: 20px 0; border-bottom: 1px solid var(--line); }
.cs-sec .pf-roles h3 { margin: 0 0 4px; font-size: 18px; color: var(--ink); }
.pf-roles .pf-role-when { font-size: 15px; color: var(--body); }
.cs-sec .pf-roles .pf-role-when + p { margin-top: 8px; }
.cs-sec .pf-roles-after { margin-top: 24px; }
.pf-quotes { max-width: 68ch; }
.pf-quotes blockquote p { margin: 0; }
.pf-quotes cite { color: var(--body); }
@media (max-width: 760px) {
  .pf-about-head .wrap { grid-template-columns: minmax(0, 1fr); }
  .pf-about-photo { justify-self: start; max-width: 240px; }
}

/* Home: career record strip, why-note, roles sought (persona review, 2026-10-15) */
.pf-record .wrap > h2 { margin-bottom: 24px; }
.pf-stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 1100px; }
.pf-stats li { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.pf-stats b { display: block; font-family: var(--font-display); font-weight: 500; font-size: 34px; line-height: 1.1; color: var(--strong); }
.pf-stats span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.45; color: var(--body); }
.pf-stats-note { margin-top: 18px; max-width: 70ch; font-size: 15.5px; line-height: 1.55; color: var(--body); }
.pf-why { margin: -12px 0 28px; max-width: 70ch; font-size: 16px; line-height: 1.55; color: var(--body); }
.pf-seeking-title { margin-top: 28px; font-size: 19px; color: var(--strong); }
.pf-seeking { margin-top: 8px; max-width: 62ch; font-size: 16.5px; line-height: 1.55; color: var(--body); }
@media (max-width: 960px) { .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .pf-stats { grid-template-columns: minmax(0, 1fr); } }

/* Independent builds: screenshots, video and the how-to-view note on a build's page */
.pf-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pf-gallery figure { margin: 0; min-width: 0; }
.pf-gallery .pf-video { grid-column: 1 / -1; max-width: 960px; }
.pf-gallery video { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #0C1B21; }
.pf-gallery figcaption { margin-top: 8px; font-size: 14.5px; line-height: 1.5; color: var(--body); }
.pf-sample-note { margin-top: 12px; font-size: 15.5px; line-height: 1.5; color: var(--body); }
.pf-samples-sec .pf-why { color: inherit; }
@media (max-width: 760px) { .pf-gallery { grid-template-columns: minmax(0, 1fr); } }
