:root {
  --fpp-ink: #171717;
  --fpp-muted: #686868;
  --fpp-line: #dedede;
  --fpp-surface: #f5f4f1;
  --fpp-accent: #b39158;
}

.fpp-portfolio { color: var(--fpp-ink); margin: 0 auto; max-width: 1440px; padding: clamp(48px, 7vw, 96px) 24px; }
.fpp-intro { max-width: 760px; margin-bottom: 36px; }
.fpp-eyebrow, .fpp-card__category { color: var(--fpp-accent); font-size: 12px; font-weight: 700; letter-spacing: .14em; margin: 0 0 10px; text-transform: uppercase; }
.fpp-intro h2 { font-size: clamp(34px, 4vw, 58px); letter-spacing: -.035em; line-height: 1.05; margin: 0 0 18px; }
.fpp-intro > p:last-child { color: var(--fpp-muted); font-size: 18px; line-height: 1.65; margin: 0; }
.fpp-filters { border-bottom: 1px solid var(--fpp-line); display: flex; gap: 10px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 14px; scrollbar-width: thin; }
.fpp-filter { background: transparent; border: 1px solid var(--fpp-line); border-radius: 100px; color: var(--fpp-ink); cursor: pointer; flex: none; font-size: 14px; font-weight: 600; padding: 10px 17px; transition: .2s ease; }
.fpp-filter:hover, .fpp-filter:focus-visible, .fpp-filter.is-active { background: var(--fpp-ink); border-color: var(--fpp-ink); color: #fff; }
.fpp-carousel__controls { display: flex; gap: 10px; justify-content: flex-end; margin: 0 0 14px; }
.fpp-carousel__controls[hidden] { display: none; }
.fpp-carousel__button { align-items: center; background: #fff; border: 1px solid var(--fpp-line); border-radius: 50%; color: var(--fpp-ink); cursor: pointer; display: inline-flex; font-size: 20px; height: 44px; justify-content: center; line-height: 1; padding: 0; transition: background .2s ease, border-color .2s ease, color .2s ease, opacity .2s ease; width: 44px; }
.fpp-carousel__button:hover, .fpp-carousel__button:focus-visible { background: var(--fpp-ink); border-color: var(--fpp-ink); color: #fff; }
.fpp-carousel__button:disabled { cursor: default; opacity: .32; }
.fpp-carousel__button:disabled:hover { background: #fff; border-color: var(--fpp-line); color: var(--fpp-ink); }
.fpp-carousel { overflow-x: auto; overscroll-behavior-inline: contain; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; }
.fpp-carousel::-webkit-scrollbar { display: none; }
.fpp-carousel:focus-visible { outline: 2px solid var(--fpp-accent); outline-offset: 4px; }
.fpp-grid { display: grid; gap: 24px; grid-auto-columns: calc((100% - 48px) / 3); grid-auto-flow: column; grid-template-rows: 1fr; }
.fpp-card { background: #fff; border: 1px solid var(--fpp-line); min-width: 0; scroll-snap-align: start; transition: opacity .2s ease, transform .2s ease; }
.fpp-card[hidden] { display: none; }
.fpp-card__image { aspect-ratio: 4 / 3; background: var(--fpp-surface); display: block; overflow: hidden; position: relative; }
.fpp-card__image img { height: 100%; object-fit: cover; transition: transform .5s ease; width: 100%; }
.fpp-card:hover .fpp-card__image img { transform: scale(1.035); }
.fpp-card__placeholder { align-items: center; color: var(--fpp-muted); display: flex; height: 100%; justify-content: center; }
.fpp-card__type { background: rgba(23,23,23,.88); bottom: 14px; color: #fff; font-size: 11px; font-weight: 700; left: 14px; letter-spacing: .1em; padding: 7px 10px; position: absolute; text-transform: uppercase; }
.fpp-card__type--custom { background: var(--fpp-accent); }
.fpp-card__body { padding: 24px; }
.fpp-card h3 { font-size: 23px; line-height: 1.2; margin: 0 0 9px; }
.fpp-card h3 a { color: inherit; text-decoration: none; }
.fpp-card__meta, .fpp-card__summary { color: var(--fpp-muted); font-size: 14px; line-height: 1.6; margin: 0 0 13px; }
.fpp-card__summary { font-size: 15px; }
.fpp-card__actions { align-items: center; border-top: 1px solid var(--fpp-line); display: flex; justify-content: space-between; margin-top: 20px; padding-top: 17px; }
.fpp-link { color: var(--fpp-ink); font-size: 14px; font-weight: 700; text-decoration: none; }
.fpp-link--muted { color: var(--fpp-muted); font-weight: 600; }
.fpp-empty { color: var(--fpp-muted); padding: 30px 0; text-align: center; }
.fpp-project-details { background: var(--fpp-surface); display: grid; gap: 1px; grid-template-columns: repeat(3, 1fr); margin: 38px 0; }
.fpp-project-details > div { background: var(--fpp-surface); padding: 22px; }
.fpp-project-details dt { color: var(--fpp-muted); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.fpp-project-details dd { color: var(--fpp-ink); font-size: 16px; margin: 7px 0 0; }
.fpp-project-cta { align-items: center; background: var(--fpp-ink); color: #fff; display: flex; gap: 32px; justify-content: space-between; margin: 56px 0; padding: clamp(30px, 5vw, 58px); }
.fpp-project-cta h2 { color: #fff; font-size: clamp(28px, 3vw, 42px); margin: 0 0 12px; }
.fpp-project-cta p:not(.fpp-eyebrow) { color: rgba(255,255,255,.72); margin: 0; max-width: 720px; }
.fpp-button { background: #fff; color: var(--fpp-ink); flex: none; font-weight: 700; padding: 15px 22px; text-decoration: none; }

@media (max-width: 980px) { .fpp-grid { grid-auto-columns: calc((100% - 24px) / 2); } }
@media (max-width: 680px) {
  .fpp-portfolio { padding-inline: 18px; }
  .fpp-grid { grid-auto-columns: 100%; }
  .fpp-carousel__controls { justify-content: space-between; }
  .fpp-project-details { grid-template-columns: 1fr; }
  .fpp-project-cta { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { .fpp-carousel { scroll-behavior: auto; } .fpp-card, .fpp-card__image img { transition: none; } }
