/* Portfolio list (/portfolio), "blueprint editorial" to match the home page (home-modern.css).
   Plain CSS (no Tailwind build on host), prefix pf-. Redesign 2026-10-30. */

.pf {
    --pf-orange: #ff632a;
    --pf-orange-d: #e85520;
    --pf-ink: #15191e;
    --pf-text: #4b5563;
    --pf-muted: #8a939c;
    --pf-paper: #f6f3ee;
    --pf-line: rgba(21, 25, 30, .1);
    --pf-cond: 'Barlow Condensed', 'Noto Sans Lao', 'Noto Sans SC', sans-serif;
    --pf-ease: cubic-bezier(.2, .7, .2, 1);
}

.pf-wrap { width: 100%; max-width: 80rem; margin: 0 auto; padding: 0 1.25rem; }
@media (min-width: 640px) { .pf-wrap { padding: 0 2rem; } }

/* ---------- hero ---------- */
.pf-hero {
    position: relative;
    padding: 9.5rem 0 0;
    background: var(--pf-ink);
    color: #fff;
    overflow: hidden;
}

.pf-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .28;
    filter: grayscale(.4);
}

.pf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(21, 25, 30, .96) 0, rgba(21, 25, 30, .75) 55%, rgba(21, 25, 30, .45) 100%),
        radial-gradient(40rem 26rem at 100% 0, rgba(255, 99, 42, .22), transparent 70%);
}

.pf-hero-grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: linear-gradient(180deg, #000 0, transparent 95%);
    mask-image: linear-gradient(180deg, #000 0, transparent 95%);
}

.pf-hero::after {
    content: 'PORTFOLIO';
    position: absolute;
    right: -1rem;
    bottom: 5.5rem;
    font-family: var(--pf-cond);
    font-size: clamp(6rem, 17vw, 15rem);
    font-weight: 800;
    line-height: .8;
    color: transparent;
    -webkit-text-stroke: 1.5px rgba(255, 255, 255, .07);
    pointer-events: none;
}

.pf-hero-in { position: relative; z-index: 1; }

.pf-crumbs { display: flex; gap: .55rem; margin-bottom: 2.2rem; font-size: .85rem; color: rgba(255, 255, 255, .5); }
.pf-crumbs a { color: rgba(255, 255, 255, .65); text-decoration: none; }
.pf-crumbs a:hover { color: var(--pf-orange); }
.pf-crumbs span:last-child { color: #fff; }

body.antialiased p.pf-label {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0 0 1rem;
    font-size: .82rem;
    line-height: 1.4;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .7);
}

.pf-label span {
    padding-right: .75rem;
    border-right: 2px solid var(--pf-orange);
    font-family: var(--pf-cond);
    font-size: 1.05rem;
    letter-spacing: .06em;
    color: var(--pf-orange);
    line-height: 1;
}

body.antialiased h1.pf-h1 {
    margin: 0;
    font-size: clamp(2.6rem, 7vw, 5.6rem);
    line-height: 1.12;
    font-weight: 800;
    letter-spacing: -.03em;
    color: #fff;
}

.pf-h1 i { font-style: normal; color: var(--pf-orange); }

body.antialiased p.pf-lead {
    max-width: 36rem;
    margin: 1.25rem 0 0;
    font-size: 1.1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .7);
}

/* stats sit on the hero's bottom edge */
.pf-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 3.5rem 0 0;
    border-top: 1px solid rgba(255, 255, 255, .14);
}

.pf-stats > div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    padding: 1.5rem 1.5rem 1.75rem;
    border-left: 1px solid rgba(255, 255, 255, .14);
}

.pf-stats > div:first-child { border-left: 0; padding-left: 0; }

.pf-stats dd {
    margin: 0;
    font-family: var(--pf-cond);
    font-size: clamp(2.6rem, 5vw, 4.2rem);
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    color: #fff;
}

.pf-stats dd small { font-size: .55em; color: var(--pf-orange); font-weight: 600; }
.pf-stats > div:first-child dd { color: var(--pf-orange); }

.pf-stats dt {
    margin-top: .5rem;
    font-size: .85rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: rgba(255, 255, 255, .55);
}

@media (prefers-reduced-motion: no-preference) {
    .pf-crumbs, .pf-label, .pf-h1, .pf-lead, .pf-stats > div { animation: pf-up .85s var(--pf-ease) both; }
    .pf-label { animation-delay: .05s; }
    .pf-h1 { animation-delay: .12s; }
    .pf-lead { animation-delay: .22s; }
    .pf-stats > div:nth-child(1) { animation-delay: .3s; }
    .pf-stats > div:nth-child(2) { animation-delay: .38s; }
    .pf-stats > div:nth-child(3) { animation-delay: .46s; }
    .pf-stats > div:nth-child(4) { animation-delay: .54s; }
}

@keyframes pf-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 768px) {
    .pf-hero { padding-top: 7rem; }
    .pf-hero::after { bottom: auto; top: 5rem; }
    .pf-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 2.5rem; }
    .pf-stats > div { padding: 1.2rem 1rem 1.3rem; border-top: 1px solid rgba(255, 255, 255, .14); }
    .pf-stats > div:nth-child(-n+2) { border-top: 0; }
    .pf-stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ---------- body ---------- */
.pf-body-sec { padding: 3rem 0 5rem; background: var(--pf-paper); }

/* toolbar */
.pf-bar {
    position: sticky;
    top: 5.25rem;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .5rem;
    border-radius: .5rem;
    background: rgba(21, 25, 30, .94);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    backdrop-filter: saturate(160%) blur(14px);
    box-shadow: 0 14px 34px rgba(21, 25, 30, .2);
}

@media (max-width: 1024px) { .pf-bar { top: 4.5rem; flex-direction: column; align-items: stretch; gap: .5rem; } }

.pf-tabs {
    display: flex;
    gap: .25rem;
    min-width: 0;
    flex: 1;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.pf-tabs::-webkit-scrollbar { display: none; }

.pf-tab {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem .95rem;
    border: 0;
    border-radius: .35rem;
    background: transparent;
    color: rgba(255, 255, 255, .7);
    font-size: .9rem;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s;
}

.pf-tab i { font-style: normal; font-family: var(--pf-cond); font-size: 1rem; font-weight: 700; color: rgba(255, 255, 255, .4); }
.pf-tab:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.pf-tab.is-on { background: var(--pf-orange); color: #fff; }
.pf-tab.is-on i { color: rgba(255, 255, 255, .8); }

.pf-search {
    flex: none;
    display: flex;
    align-items: center;
    gap: .5rem;
    width: 250px;
    padding: 0 .85rem;
    border-radius: .35rem;
    background: rgba(255, 255, 255, .08);
    color: rgba(255, 255, 255, .5);
    transition: background .15s, box-shadow .15s;
}

.pf-search:focus-within { background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1.5px var(--pf-orange); }
.pf-search svg { width: 1.05rem; height: 1.05rem; flex: none; }

.pf-search input {
    width: 100%;
    padding: .62rem 0;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: .9rem;
    color: #fff;
}

.pf-search input::placeholder { color: rgba(255, 255, 255, .45); }
@media (max-width: 1024px) { .pf-search { width: auto; } }

body.antialiased p.pf-count {
    margin: 2rem 0 1.25rem;
    padding-bottom: .9rem;
    border-bottom: 1px solid var(--pf-line);
    font-family: var(--pf-cond);
    font-size: 1.05rem;
    line-height: 1.3;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--pf-muted);
}

.pf-count b { font-size: 1.6rem; color: var(--pf-ink); }

/* grid */
.pf-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem 1.75rem;
}

@media (max-width: 1024px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 1.25rem; } }
@media (max-width: 640px) { .pf-grid { grid-template-columns: minmax(0, 1fr); } }

.pf-card { min-width: 0; }

@media (prefers-reduced-motion: no-preference) {
    .pf-card { animation: pf-up .7s var(--pf-ease) both; animation-delay: calc(.35s + var(--d, 0s)); }
}

.pf-link {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    border-radius: .5rem;
    overflow: hidden;
    background: #fff;
    color: var(--pf-ink);
    text-decoration: none;
    box-shadow: 0 1px 0 var(--pf-line), 0 4px 14px rgba(21, 25, 30, .05);
    transition: transform .35s var(--pf-ease), box-shadow .35s var(--pf-ease);
}

.pf-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--pf-orange);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .45s var(--pf-ease);
}

.pf-link:hover { transform: translateY(-5px); box-shadow: 0 26px 50px rgba(21, 25, 30, .16); }
.pf-link:hover::after { transform: scaleX(1); }

.pf-media {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: #e2ddd5;
}

.pf-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--pf-ease); }
.pf-link:hover .pf-media img { transform: scale(1.07); }

.pf-media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(21, 25, 30, .55), transparent 45%);
    pointer-events: none;
}

.pf-ph {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px) 0 0 / 28px 28px,
        var(--pf-ink);
    color: var(--pf-orange);
}

.pf-ph svg { width: 3.25rem; height: 3.25rem; }

.pf-no {
    position: absolute;
    left: 1rem;
    bottom: .55rem;
    z-index: 1;
    font-family: var(--pf-cond);
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1;
    color: transparent;
    -webkit-text-stroke: 1.2px rgba(255, 255, 255, .85);
    transition: color .3s, -webkit-text-stroke-color .3s;
}

.pf-link:hover .pf-no { color: var(--pf-orange); -webkit-text-stroke-color: var(--pf-orange); }

.pf-year {
    position: absolute;
    right: 0;
    top: 1rem;
    z-index: 1;
    padding: .25rem .75rem .25rem .7rem;
    background: var(--pf-orange);
    color: #fff;
    font-family: var(--pf-cond);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .04em;
}

.pf-body {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    flex: 1;
    padding: 1.2rem 1.3rem 1.3rem;
}

.pf-tag {
    align-self: flex-start;
    max-width: 100%;
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--pf-orange-d);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.antialiased section h3.pf-title {
    margin: 0;
    font-size: 1.06rem;
    line-height: 1.6;
    font-weight: 800;
    letter-spacing: -.005em;
    color: var(--pf-ink);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color .2s;
}

.pf-link:hover h3.pf-title { color: var(--pf-orange-d); }

body.antialiased section p.pf-meta {
    display: flex;
    align-items: flex-start;
    gap: .35rem;
    margin: 0;
    font-size: .86rem;
    line-height: 1.55;
    color: var(--pf-muted);
}

.pf-meta svg { width: .95rem; height: .95rem; flex: none; margin-top: .2rem; color: var(--pf-orange); }

body.antialiased section p.pf-client {
    display: block;
    padding-left: 1.3rem;
    font-size: .8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pf-more {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: auto;
    padding-top: .8rem;
    font-size: .86rem;
    font-weight: 700;
    color: var(--pf-ink);
}

.pf-more svg { width: 1rem; height: 1rem; color: var(--pf-orange); transition: transform .2s; }
.pf-link:hover .pf-more svg { transform: translateX(4px); }

/* featured first card: wide, image left / copy right; only when the list is unfiltered */
@media (min-width: 1025px) {
    .pf-card.is-feat:not(.is-flat) { grid-column: span 2; }
    .pf-card.is-feat:not(.is-flat) .pf-link { flex-direction: row; }
    .pf-card.is-feat:not(.is-flat) .pf-media { flex: 0 0 60%; aspect-ratio: auto; min-height: 100%; }
    .pf-card.is-feat:not(.is-flat) .pf-body { padding: 2rem 1.8rem; justify-content: center; }
    .pf-card.is-feat:not(.is-flat) .pf-no { font-size: 4.5rem; }
    body.antialiased section .pf-card.is-feat:not(.is-flat) h3.pf-title { font-size: 1.45rem; line-height: 1.5; -webkit-line-clamp: 4; }
}

.pf-empty { padding: 3rem 1rem; text-align: center; color: var(--pf-muted); }

/* ---------- CTA ---------- */
.pf-cta-sec { padding: 0 0 5.5rem; background: var(--pf-paper); }

.pf-cta {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 3rem 3.25rem;
    border-radius: .6rem;
    background: var(--pf-ink);
    color: #fff;
    overflow: hidden;
}

.pf-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 36px 36px;
    -webkit-mask-image: linear-gradient(90deg, transparent 20%, #000);
    mask-image: linear-gradient(90deg, transparent 20%, #000);
}

.pf-cta::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--pf-orange); }
.pf-cta > * { position: relative; z-index: 1; }

body.antialiased section h2.pf-cta-t { margin: 0 0 .5rem; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; font-weight: 800; color: #fff; }
body.antialiased section p.pf-cta-s { margin: 0; font-size: 1rem; line-height: 1.7; color: rgba(255, 255, 255, .7); }

.pf-btn {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: 1rem 1.7rem;
    border-radius: .35rem;
    background: var(--pf-orange);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(255, 99, 42, .32);
    transition: background .2s, transform .2s;
}

.pf-btn svg { width: 1.1rem; height: 1.1rem; transition: transform .2s; }
.pf-btn:hover { background: var(--pf-orange-d); transform: translateY(-2px); }
.pf-btn:hover svg { transform: translateX(4px); }

@media (max-width: 768px) {
    .pf-cta { flex-direction: column; align-items: flex-start; padding: 2.25rem 1.6rem; }
}

@media (prefers-reduced-motion: reduce) {
    .pf-link, .pf-link::after, .pf-media img, .pf-more svg { transition: none; }
}

/* ================= 2026-11-03: filter column layout (replaces the overflowing top tab bar) ================= */
.pf-layout { display: grid; grid-template-columns: 16.5rem minmax(0, 1fr); gap: 2.5rem; align-items: start; }

.pf-side { position: sticky; top: 6.5rem; display: flex; flex-direction: column; gap: 1.6rem; max-height: calc(100vh - 8rem); overflow-y: auto; padding-right: .25rem; scrollbar-width: thin; }
.pf-side .pf-search { width: 100%; padding: 0 .8rem; border: 1px solid var(--pf-line); border-radius: .45rem; background: #fff; color: var(--pf-muted); }
.pf-side .pf-search:focus-within { border-color: var(--pf-orange); box-shadow: 0 0 0 3px rgba(255, 99, 42, .15); }
.pf-side .pf-search input { color: var(--pf-ink); }
.pf-side .pf-search input::placeholder { color: #9aa1a9; }

body.antialiased p.pf-fg-h { margin: 0 0 .6rem; padding-bottom: .45rem; border-bottom: 1px solid var(--pf-line); font-family: var(--pf-cond); font-size: .95rem; line-height: 1.3; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pf-muted); }

.pf-st, .pf-sec { display: flex; flex-direction: column; gap: 2px; }
.pf-st-b, .pf-sec-b { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; padding: .55rem .7rem; border: 0; border-radius: .4rem; background: none; color: var(--pf-text); font: inherit; font-size: .9rem; font-weight: 500; line-height: 1.45; text-align: left; cursor: pointer; transition: background .15s, color .15s; }
.pf-st-b span, .pf-sec-b span { display: inline-flex; align-items: center; gap: .55rem; min-width: 0; }
.pf-st-b i, .pf-sec-b i { flex: none; font-family: var(--pf-cond); font-size: .95rem; font-style: normal; font-weight: 700; color: #a0a7b0; }
.pf-st-b:hover, .pf-sec-b:hover { background: rgba(21, 25, 30, .05); color: var(--pf-ink); }
.pf-st-b.is-on, .pf-sec-b.is-on { background: var(--pf-ink); color: #fff; font-weight: 600; }
.pf-st-b.is-on i, .pf-sec-b.is-on i { color: rgba(255, 255, 255, .6); }
.pf-sec-b.is-on { box-shadow: inset 3px 0 0 var(--pf-orange); }
.pf-st-b--operating .ps-dot { color: var(--ps-operating); }
.pf-st-b--under_construction .ps-dot { color: var(--ps-under_construction); }
.pf-st-b--planned .ps-dot { color: var(--ps-planned); }
.pf-st-b--completed .ps-dot { color: var(--ps-completed); }
.pf-st-b.is-on .ps-dot { color: #fff; }
.pf-st-b:focus-visible, .pf-sec-b:focus-visible, .pf-reset:focus-visible { outline: 2px solid var(--pf-orange); outline-offset: 2px; }
.pf-sec-sel { display: none; }

.pf-main { min-width: 0; }
.pf-main-h { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; padding-bottom: .9rem; border-bottom: 1px solid var(--pf-line); }
.pf-main-h p.pf-count { margin: 0; padding: 0; border: 0; }
.pf-reset { display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .8rem; border: 1px solid var(--pf-line); border-radius: 999px; background: #fff; color: var(--pf-ink); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer; }
.pf-reset svg { width: 1rem; height: 1rem; color: var(--pf-orange); }
.pf-reset:hover { border-color: var(--pf-ink); }

/* cards: every card shows its status; the old index numbers are gone */
.pf-card .ps-badge { left: .85rem; top: .85rem; }
.pf-card .pf-year { top: auto; bottom: .85rem; }
.pf-empty { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 4rem 1rem; border: 1px dashed var(--pf-line); border-radius: .6rem; }
.pf-empty p { margin: 0; }

@media (min-width: 1025px) {
    .pf-main .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1280px) {
    .pf-main .pf-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem 1.5rem; }
}
@media (min-width: 1025px) and (max-width: 1279px) {
    .pf-card.is-feat:not(.is-flat) .pf-media { flex-basis: 52%; }
}

@media (max-width: 1024px) {
    .pf-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
    .pf-side { position: static; max-height: none; overflow: visible; gap: 1rem; padding: 1rem; border-radius: .6rem; background: #fff; box-shadow: 0 1px 0 var(--pf-line), 0 6px 18px rgba(21, 25, 30, .06); }
    body.antialiased p.pf-fg-h { display: none; }
    .pf-st { flex-direction: row; flex-wrap: wrap; gap: .4rem; }
    .pf-st-b { width: auto; padding: .4rem .75rem; border: 1px solid var(--pf-line); border-radius: 999px; font-size: .84rem; }
    .pf-st-b.is-on { border-color: var(--pf-ink); }
    .pf-sec { display: none; }
    .pf-sec-sel { display: block; width: 100%; height: 2.75rem; padding: 0 .8rem; border: 1px solid var(--pf-line); border-radius: .45rem; background: #fff; color: var(--pf-ink); font: inherit; font-size: .92rem; }
}

/* hero stats: 5 cells fit one row on desktop */
@media (min-width: 769px) { .pf-stats { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }

.pf-stats dd { white-space: nowrap; }
@media (min-width: 769px) and (max-width: 1280px) { .pf-stats dd { font-size: clamp(2.2rem, 4vw, 3.4rem); } }
body.antialiased .pf-main-h p.pf-count { margin: 0; padding: 0; border: 0; }
