/* ==========================================================================
   V.BuildCC — Portfolio (portfolio.php) and project pages (project-details.php).
   Loaded after home.css; uses its tokens, header, buttons, eyebrow and footer.
   ========================================================================== */

:root {
  --header-h: 76px;
  --container-max: 1360px;
  --vb-text: #172033;
  --vb-text-muted: #526071;
  --vb-bg-alt: #F7F9FA;
  --vb-border: #E5E9ED;
  --vb-green-hover: #70AD2E;
  --pf-radius: 16px;
  --pf-space: clamp(2.5rem, 6vw, 5.5rem);         /* 40px mobile → 88px desktop */
  --pf-accent: #5F9B24;                             /* brand green dark enough for large text on white */
}
:root[data-theme="dark"] {
  --pf-accent: #A6D96B;
}

.pf-accent { color: var(--pf-accent); }

/* ==========================================================================
   Hero
   ========================================================================== */
.pf-hero {
  position: relative;
  padding-block: clamp(2rem, 4vw, 3rem);
  background: linear-gradient(180deg, var(--vb-bg) 0%, var(--vb-bg-alt) 100%);
  border-bottom: 1px solid var(--vb-border);
}
.pf-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  min-height: clamp(340px, 42vh, 420px);
}
.pf-hero__text { max-width: 600px; }
.pf-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(40px, 4vw, 60px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--vb-text);
  margin-bottom: 1rem;
  text-wrap: balance;
}
html.lang-km .pf-hero__title { line-height: 1.4; letter-spacing: normal; }
.pf-hero .vb-lead { max-width: 540px; }

.pf-hero__media {
  position: relative;
  margin: 0;
  height: clamp(300px, 40vh, 400px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--vb-border);
  box-shadow: var(--vb-shadow-md);
}
.pf-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.pf-hero__caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.75rem 1.25rem 1rem;
  background: linear-gradient(to top, rgba(16, 24, 32, 0.72), transparent);
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.pf-hero__caption small { font-size: 0.75rem; opacity: 0.85; }
.pf-hero__caption a {
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
}
.pf-hero__caption a:hover { text-decoration: underline; }

/* ==========================================================================
   Statistics panel
   ========================================================================== */
.pf-stats-wrap { padding-top: clamp(1.5rem, 3vw, 2rem); }
.pf-stats {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  background: var(--vb-card);
  border: 1px solid var(--vb-border);
  border-radius: var(--pf-radius);
  box-shadow: 0 1px 2px rgba(23, 32, 51, 0.04);
  overflow: hidden;
}
.pf-stats li + li { border-left: 1px solid var(--vb-border); }
.pf-stats--note {
  display: block;
  padding: 1.25rem 1.5rem;
  color: var(--vb-text-muted);
  text-align: center;
}
.pf-stat {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.9rem;
  align-items: center;
  padding: 1.1rem 1.4rem;
  background: transparent;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.pf-stat:hover { background: var(--vb-bg-alt); }
.pf-stat[aria-pressed="true"] { background: var(--vb-green-tint); }
.pf-stat__icon {
  grid-row: 1 / 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  border: 1px solid var(--vb-green-line);
  color: var(--vb-green-ink);
}
.pf-stat__num {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--vb-text);
}
.pf-stat__label {
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--vb-text-muted);
}
html.lang-km .pf-stat__label { font-size: 0.875rem; text-transform: none; letter-spacing: normal; }

/* ==========================================================================
   Section heads
   ========================================================================== */
.pf-section-head { margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem); }
.pf-section-head .vb-h2 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); margin-bottom: 0; }

/* ==========================================================================
   Featured
   ========================================================================== */
.pf-featured { padding-top: var(--pf-space); }
.pf-featured__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.pf-featured__list--1 { grid-template-columns: 1fr; }
.pf-featured__list--3 { grid-template-columns: 1.4fr 1fr; grid-template-rows: auto auto; }
.pf-featured__list--3 .pf-feature--lead { grid-row: 1 / 3; }
.pf-feature {
  display: flex;
  flex-direction: column;
  background: var(--vb-card);
  border: 1px solid var(--vb-border);
  border-radius: var(--pf-radius);
  overflow: hidden;
}
.pf-feature__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--vb-bg-alt);
}
.pf-featured__list--3 .pf-feature--lead .pf-feature__media { aspect-ratio: 16 / 10; flex: 1; min-height: 260px; }
.pf-featured__list--1 .pf-feature { flex-direction: row; }
.pf-featured__list--1 .pf-feature__media { flex: 1.3; aspect-ratio: auto; min-height: 340px; }
.pf-featured__list--1 .pf-feature__body { flex: 1; justify-content: center; }
.pf-feature__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.pf-feature:hover .pf-feature__media img { transform: scale(1.03); }
.pf-feature__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  padding: 1.25rem 1.4rem 1.4rem;
}
.pf-feature__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--vb-text);
}
.pf-featured__list--3 .pf-feature--lead .pf-feature__title,
.pf-featured__list--1 .pf-feature__title { font-size: clamp(1.3rem, 2vw, 1.6rem); }
.pf-feature__loc { font-size: 0.9rem; color: var(--vb-text-muted); }
.pf-feature__desc { font-size: 0.9375rem; line-height: 1.6; color: var(--vb-text-muted); margin-bottom: 0.4rem; }

/* ==========================================================================
   Toolbar: search + sort + category chips
   ========================================================================== */
.pf-browse { padding-top: var(--pf-space); }
.pf-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "search sort" "chips chips";
  gap: 0.9rem 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.pf-search { grid-area: search; position: relative; }
.pf-search__icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vb-text-subtle);
  pointer-events: none;
}
.pf-search input {
  width: 100%;
  height: 48px;
  padding: 0 1.1rem 0 2.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--vb-border);
  background: var(--vb-card);
  color: var(--vb-text);
  font: inherit;
  font-size: 0.9688rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.pf-search input::placeholder { color: var(--vb-text-subtle); }
.pf-search input:focus {
  outline: none;
  border-color: var(--vb-green);
  box-shadow: 0 0 0 3px rgba(134, 196, 64, 0.22);
}
.pf-sort {
  grid-area: sort;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.pf-sort label {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vb-text-muted);
}
.pf-sort select {
  height: 48px;
  padding: 0 2.4rem 0 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--vb-border);
  background: var(--vb-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23526071' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.95rem center;
  color: var(--vb-text);
  font: inherit;
  font-size: 0.9375rem;
  appearance: none;
  cursor: pointer;
}
.pf-sort select:focus-visible { outline: 3px solid var(--vb-green); outline-offset: 2px; }

.pf-chips {
  grid-area: chips;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pf-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--vb-border);
  background: var(--vb-card);
  color: var(--vb-text);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}
.pf-chip:hover { border-color: var(--vb-green); }
.pf-chip__n {
  min-width: 1.5rem;
  padding: 0 0.4rem;
  border-radius: var(--radius-full);
  background: var(--vb-bg-alt);
  color: var(--vb-text-muted);
  font-size: 0.75rem;
  line-height: 1.5rem;
  text-align: center;
}
/* active: solid green (dark-green text keeps contrast on #86C440) */
.pf-chip[aria-pressed="true"] {
  background: var(--vb-green);
  border-color: var(--vb-green);
  color: var(--vb-green-dark);
}
.pf-chip[aria-pressed="true"] .pf-chip__n { background: rgba(255, 255, 255, 0.55); color: var(--vb-green-dark); }

.pf-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2rem;
  margin-bottom: 1rem;
}
.pf-count { font-size: 0.9rem; color: var(--vb-text-muted); }
.pf-reset {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--vb-green-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pf-reset[hidden] { display: none; }

/* ==========================================================================
   Project grid & cards
   ========================================================================== */
.pf-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}
.pf-card {
  background: var(--vb-card);
  border: 1px solid var(--vb-border);
  border-radius: var(--pf-radius);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(23, 32, 51, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.pf-card--in { animation: pfIn 0.3s ease both; }
@keyframes pfIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pf-card:hover,
.pf-card:focus-within {
  transform: translateY(-3px);
  box-shadow: var(--vb-shadow-md);
  border-color: #D4DBE1;
}
.pf-card__link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.pf-card__link:focus-visible { outline-offset: -3px; }
.pf-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--vb-bg-alt);
}
.pf-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.pf-card:hover .pf-card__media img { transform: scale(1.03); }
.pf-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--vb-text-subtle);
}
.pf-card__placeholder svg { width: 40px; height: 40px; }
.pf-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  max-width: calc(100% - 1.7rem);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.94);
  color: var(--vb-text);
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 2px 8px rgba(23, 32, 51, 0.12);
}
.pf-badge--static {
  position: static;
  max-width: none;
  background: var(--vb-green-tint);
  color: var(--vb-green-ink);
  box-shadow: none;
}
.pf-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 1.1rem 1.25rem 1.2rem;
}
.pf-card__title {
  font-family: var(--font-heading);
  font-size: 1.0938rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--vb-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pf-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.9rem;
  font-size: 0.875rem;
  color: var(--vb-text-muted);
}
.pf-card__loc { display: inline-flex; align-items: center; gap: 0.3rem; min-width: 0; }
.pf-card__loc svg { flex-shrink: 0; color: var(--vb-green-ink); }
.pf-card__year::before { content: '·'; margin-right: 0.9rem; color: var(--vb-border); }
.pf-card__loc + .pf-card__year::before { display: inline; }
.pf-card__year:first-child::before { display: none; }
.pf-card__cta {
  margin-top: auto;
  padding-top: 0.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--vb-green-ink);
}
.pf-card__cta .vb-arrow { transition: transform 0.25s ease; }
.pf-card:hover .pf-card__cta .vb-arrow { transform: translateX(4px); }

/* skeleton */
.pf-card--skeleton { pointer-events: none; box-shadow: none; }
.pf-card--skeleton .pf-card__media,
.pf-sk {
  background: linear-gradient(90deg, var(--vb-bg-alt) 25%, var(--vb-border) 50%, var(--vb-bg-alt) 75%);
  background-size: 200% 100%;
  animation: pfShimmer 1.2s linear infinite;
}
.pf-sk { display: block; border-radius: 6px; height: 0.9rem; }
.pf-sk--title { width: 75%; height: 1.15rem; }
.pf-sk--meta { width: 45%; }
.pf-sk--cta { width: 30%; margin-top: 0.6rem; }
@keyframes pfShimmer { to { background-position: -200% 0; } }

/* empty / error */
.pf-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: clamp(2.5rem, 6vw, 4rem) 1rem;
  text-align: center;
  color: var(--vb-text-muted);
  background: var(--vb-bg-alt);
  border: 1px dashed var(--vb-border);
  border-radius: var(--pf-radius);
}
.pf-state[hidden] { display: none; }
.pf-state__icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--vb-card);
  color: var(--vb-green-ink);
  border: 1px solid var(--vb-border);
}
.pf-state__title { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--vb-text); }
.pf-state .vb-btn { margin-top: 0.5rem; }

.pf-more { display: flex; justify-content: center; margin-top: clamp(1.75rem, 3vw, 2.5rem); }
.pf-more [hidden] { display: none; }

/* ==========================================================================
   Final CTA (portfolio + project pages)
   ========================================================================== */
.pf-cta-wrap { padding-block: var(--pf-space); }
.pf-cta {
  position: relative;
  text-align: center;
  padding: clamp(2.25rem, 5vw, 3.75rem) clamp(1.25rem, 4vw, 3rem);
  border-radius: var(--radius-lg);
  background: var(--vb-bg-alt);
  border: 1px solid var(--vb-border);
  overflow: hidden;
}
.pf-cta::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: var(--vb-green);
}
.pf-cta .vb-h2 { max-width: 760px; margin-inline: auto; font-size: clamp(1.6rem, 2.8vw, 2.4rem); }
.pf-cta .vb-body { max-width: 620px; margin-inline: auto; }
.pf-cta .vb-actions { justify-content: center; }

/* ==========================================================================
   Project detail page (project-details.php)
   ========================================================================== */
.pd-hero {
  position: relative;
  min-height: clamp(360px, 62vh, 620px);
  display: flex;
  align-items: flex-end;
  background: #1c2530;
  color: #fff;
  overflow: hidden;
}
.pd-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.pd-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(14, 20, 28, 0.88) 0%, rgba(14, 20, 28, 0.55) 38%, rgba(14, 20, 28, 0.08) 75%, transparent 100%);
}
.pd-hero__inner { text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35); }
.pd-hero__inner { position: relative; z-index: 1; padding-block: clamp(1.75rem, 4vw, 3rem); width: 100%; }
.pd-crumbs { font-size: 0.875rem; margin-bottom: 0.9rem; }
.pd-crumbs a { color: rgba(255, 255, 255, 0.85); text-decoration: none; }
.pd-crumbs a:hover { color: #fff; text-decoration: underline; }
.pd-crumbs span { margin-inline: 0.4rem; opacity: 0.6; }
.pd-hero .pf-badge--static { background: var(--vb-green); color: var(--vb-green-dark); }
.pd-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 54px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0.75rem 0 0.75rem;
  color: #fff;
}
html.lang-km .pd-hero__title { line-height: 1.4; letter-spacing: normal; }
.pd-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
}
.pd-hero__meta span { display: inline-flex; align-items: center; gap: 0.35rem; }

.pd-section { padding-top: var(--pf-space); }
.pd-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}
.pd-overview__text .vb-h2 { font-size: clamp(1.5rem, 2.3vw, 2rem); }
.pd-prose { color: var(--vb-text-muted); line-height: 1.8; }
.pd-prose p + p { margin-top: 1rem; }
.pd-facts {
  background: var(--vb-bg-alt);
  border: 1px solid var(--vb-border);
  border-radius: var(--pf-radius);
  padding: 1.4rem 1.5rem;
}
.pd-facts h2 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.pd-facts dl { display: grid; gap: 0; }
.pd-facts dl div {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 0.75rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--vb-border);
}
.pd-facts dl div:first-child { border-top: 0; }
.pd-facts dt { font-size: 0.875rem; color: var(--vb-text-muted); }
.pd-facts dd { font-size: 0.9375rem; font-weight: 600; color: var(--vb-text); }

.pd-scope {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.pd-scope li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--vb-green-tint);
  color: var(--vb-green-ink);
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 600;
}

/* gallery */
.pd-gallery {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}
.pd-gallery li:first-child { grid-column: span 2; grid-row: span 2; }
.pd-gallery button {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 180px;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: var(--vb-bg-alt);
  cursor: zoom-in;
}
.pd-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.25s ease;
}
.pd-gallery button:hover img { transform: scale(1.03); }
.pd-gallery__more {
  position: relative;
}
.pd-gallery__more::after {
  content: attr(data-more);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 24, 32, 0.55);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  border-radius: 14px;
  pointer-events: none;
}

/* lightbox */
.pd-lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 14, 20, 0.94);
  padding: 3.5rem 1rem 4.5rem;
}
.pd-lightbox[hidden] { display: none; }
.pd-lightbox__img {
  max-width: min(1400px, 100%);
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  user-select: none;
  touch-action: pan-y;
}
.pd-lightbox__btn {
  position: absolute;
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.pd-lightbox__btn:hover { background: rgba(255, 255, 255, 0.2); }
.pd-lightbox__close { top: 1rem; right: 1rem; }
.pd-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.pd-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }
.pd-lightbox__count {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  text-align: center;
  max-width: 90%;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-featured__list--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pf-featured__list--3 .pf-feature--lead { grid-column: 1 / -1; grid-row: auto; }
}

@media (max-width: 900px) {
  .pf-hero__grid { grid-template-columns: 1fr; min-height: 0; gap: 1.5rem; }
  .pf-hero__media { height: auto; aspect-ratio: 16 / 9; }
  .pf-stats { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; }
  .pf-stats li + li { border-left: 0; }
  .pf-stats li:nth-child(even) { border-left: 1px solid var(--vb-border); }
  .pf-stats li:nth-child(n + 3) { border-top: 1px solid var(--vb-border); }
  .pf-stats li:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .pd-overview { grid-template-columns: 1fr; }
  .pf-featured__list--1 .pf-feature { flex-direction: column; }
  .pf-featured__list--1 .pf-feature__media { min-height: 0; aspect-ratio: 16 / 10; }
}

@media (max-width: 640px) {
  .pf-hero__title { font-size: clamp(32px, 9vw, 40px); }
  .pf-toolbar { grid-template-columns: 1fr; grid-template-areas: "search" "chips" "sort"; }
  .pf-sort select { flex: 1; }
  /* chips scroll sideways instead of wrapping into many rows */
  .pf-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: calc(-1 * clamp(1.25rem, 3vw, 2rem));
    padding-inline: clamp(1.25rem, 3vw, 2rem);
    padding-bottom: 0.25rem;
  }
  .pf-chips::-webkit-scrollbar { display: none; }
  .pf-grid { grid-template-columns: 1fr; }
  .pf-featured__list,
  .pf-featured__list--3 { grid-template-columns: 1fr; }
  .pf-stat { padding: 0.9rem 1rem; column-gap: 0.7rem; }
  .pf-stat__icon { width: 38px; height: 38px; }
  .pf-cta .vb-actions .vb-btn { flex: 1 1 100%; }
  .pd-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-gallery li:first-child { grid-column: 1 / -1; grid-row: auto; }
  .pd-facts dl div { grid-template-columns: 1fr; gap: 0.15rem; }
  .pd-lightbox__prev, .pd-lightbox__next { top: auto; bottom: 0.75rem; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .pf-card, .pf-card__media img, .pf-feature__media img, .pd-gallery img { transition: none; }
  .pf-card:hover { transform: none; }
  .pf-card--in { animation: none; }
  .pf-card--skeleton .pf-card__media, .pf-sk { animation: none; }
}
