/* =============================================
   PORTFOLIO PAGE
   ============================================= */

.pf-hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
}

.pf-hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pf-hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 58% 85% at 90% 40%, rgba(147, 197, 253, 0.42) 0%, transparent 72%),
    radial-gradient(ellipse 48% 68% at 82% 55%, rgba(196, 181, 253, 0.38) 0%, transparent 74%),
    radial-gradient(ellipse 40% 55% at 94% 65%, rgba(251, 207, 232, 0.32) 0%, transparent 76%);
  z-index: 1;
}

.pf-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #ffffff 0%,
    #ffffff 36%,
    rgba(255, 255, 255, 0.88) 52%,
    rgba(255, 255, 255, 0.45) 72%,
    rgba(255, 255, 255, 0.15) 100%
  );
  z-index: 2;
}

.pf-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  opacity: 0.52;
}

.pf-hero-inner {
  position: relative;
  z-index: 2;
  max-width: 1500px;
  margin: 0 auto;
  padding: 28px var(--pad-x) 0;
}

.pf-page .hero-menu-btn {
  background: var(--white);
  border: 1.5px solid var(--grey-200);
}

.pf-page .hero-menu-btn span {
  background: var(--black);
}

.pf-hero-content {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  min-height: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 0 72px;
}

.pf-hero-label {
  display: inline-block;
  font-size: clamp(16px, 2vw, 20px);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  margin-bottom: 18px;
}

.pf-hero-title {
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.035em;
  color: var(--black);
  margin-bottom: 20px;
}

.pf-hero-grad {
  background: linear-gradient(90deg, #e63b3b 0%, #e63b9b 38%, #7c3aed 72%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pf-hero-text {
  font-size: 14px;
  line-height: 1.7;
  color: var(--grey-600);
  max-width: 720px;
  margin: 0 auto;
}

/* Filters */
.pf-filters {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 var(--pad-x) 48px;
  max-width: var(--max-w);
  margin: 0 auto;
}

.pf-filter {
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  color: var(--grey-400);
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s;
}

.pf-filter:hover {
  color: var(--black);
}

.pf-filter.is-active {
  color: var(--black);
  font-weight: 800;
}

/* Featured showcase cards */
.pf-showcases {
  padding: 56px 0 80px;
  background: #f3f4f6;
}

.pf-showcases .container {
  max-width: var(--max-w);
}

.pf-showcase {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  align-items: stretch;
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 28px;
  min-height: 400px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.08);
}

.pf-showcase--reverse {
  grid-template-columns: 1.05fr 1fr;
}

.pf-showcase--reverse .pf-showcase-visual {
  order: 1;
}

.pf-showcase--reverse .pf-showcase-copy {
  order: 2;
}

.pf-showcase--dark {
  background: #0a0a0a;
  color: var(--white);
}

.pf-showcase--dark .pf-showcase-copy {
  position: relative;
}

.pf-showcase--dark .pf-showcase-copy::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 90% 120% at 0% 100%, rgba(230, 59, 59, 0.42) 0%, transparent 62%);
  pointer-events: none;
}

.pf-showcase--light {
  background: #f8f8f8;
  color: var(--black);
}

.pf-showcase-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 52px 56px;
  position: relative;
  z-index: 1;
}

.pf-showcase--liftout .pf-showcase-copy {
  padding: 52px 56px 52px 44px;
}

.pf-showcase--renovate .pf-showcase-copy {
  padding: 56px 44px 56px 56px;
}

.pf-showcase--renovate .pf-showcase-desc {
  margin-bottom: 36px;
}

.pf-showcase-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}

.pf-showcase-title--sm {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
  margin-bottom: 0;
}

.pf-showcase-desc {
  font-size: 13px;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 420px;
}

.pf-showcase--dark .pf-showcase-desc {
  color: rgba(255, 255, 255, 0.78);
}

.pf-showcase--light .pf-showcase-desc {
  color: var(--grey-600);
}

.pf-showcase-logo {
  width: auto;
  height: 52px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 20px;
}

.pf-liftout-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  margin-bottom: 24px;
}

.pf-liftout-brand-main {
  display: flex;
  gap: 8px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #6e1228;
}

.pf-liftout-brand-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.24em;
  color: #6e1228;
  margin-top: 6px;
}

.pf-showcase--liftout .pf-showcase-desc {
  margin-bottom: 32px;
  max-width: 390px;
}

.pf-showcase-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.pf-showcase-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1e3a5f 0%, #0d9488 100%);
  flex-shrink: 0;
  position: relative;
}

.pf-showcase-brand-mark::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.pf-showcase-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 12px 24px;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: var(--white);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  transition: background 0.2s;
}

.pf-showcase-btn:hover {
  background: var(--red-hover);
}

.pf-showcase-visual {
  position: relative;
  min-height: 400px;
  overflow: hidden;
  margin: 16px;
  margin-left: 0;
  border-radius: 18px;
}

.pf-showcase--reverse .pf-showcase-visual {
  margin-left: 16px;
  margin-right: 0;
}

.pf-showcase-visual--liftout .pf-showcase-bg {
  object-position: 68% center;
}

.pf-showcase-visual--liftout .pf-showcase-phones {
  justify-content: flex-start;
  align-items: flex-end;
  padding: 40px 42% 40px 10%;
  gap: 0;
}

.pf-showcase-visual--liftout .pf-phone {
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.38);
}

.pf-phone--liftout-left {
  width: 24%;
  max-width: 120px;
  transform: rotate(-11deg) translateY(22px);
  margin-right: -7%;
  z-index: 1;
}

.pf-phone--liftout-center {
  width: 26%;
  max-width: 132px;
  transform: translateY(-10px) scale(1.03);
  z-index: 3;
  margin-right: -7%;
}

.pf-phone--liftout-right {
  width: 24%;
  max-width: 120px;
  transform: rotate(9deg) translateY(8px);
  z-index: 2;
}

.pf-showcase-visual--renovate {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ececec;
  padding: 24px 28px;
  margin: 16px 16px 16px 0;
}

.pf-showcase-visual--streetcomplete {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ececec;
  padding: 24px 20px;
  margin: 16px 16px 16px 0;
}

.pf-showcase--streetcomplete .pf-showcase-visual::after {
  display: none;
}

.pf-showcase-phones--streetcomplete {
  position: relative;
  inset: auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 12px;
  padding: 0;
  width: 100%;
}

.pf-showcase-phones--streetcomplete .pf-phone {
  width: 30%;
  max-width: 140px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  border: none;
  background: var(--white);
}

.pf-showcase--streetcomplete .pf-showcase-copy {
  padding: 56px 44px 56px 56px;
}

.pf-showcase--streetcomplete .pf-showcase-desc {
  margin-bottom: 36px;
}

.pf-showcase--renovate .pf-showcase-visual::after {
  display: none;
}

.pf-showcase-composite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.pf-showcase-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.pf-showcase:first-child .pf-showcase-bg {
  object-position: 72% center;
}

.pf-showcase-bg--dark {
  opacity: 0.35;
  filter: blur(2px);
  transform: scale(1.05);
}

.pf-showcase--dark .pf-showcase-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.45) 100%);
  z-index: 1;
  pointer-events: none;
}

.pf-showcase-phones {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px;
}

.pf-showcase-phones--two {
  gap: 16px;
}

.pf-showcase-phones--three {
  gap: 10px;
}

.pf-phone {
  width: 32%;
  max-width: 150px;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 22px;
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
  border: 3px solid rgba(255, 255, 255, 0.14);
  background: #111;
}

.pf-phone--raised {
  transform: translateY(-12px) scale(1.04);
  z-index: 2;
}

.pf-phone--tilt-left {
  transform: rotate(-12deg) translateY(14px);
  width: 28%;
}

.pf-phone--center {
  transform: rotate(0deg) scale(1.06);
  z-index: 3;
  width: 30%;
}

.pf-phone--tilt-right {
  transform: rotate(12deg) translateY(8px);
  width: 28%;
}

.pf-phone--crop-left {
  object-position: left center;
}

.pf-phone--crop-right {
  object-position: right center;
}

.pf-showcase-visual--web {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eef2f6;
  padding: 20px;
}

.pf-showcase-web {
  width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 2;
}

.pf-load-more {
  text-align: center;
  margin-top: 20px;
}

.pf-load-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 40px;
  border-radius: var(--radius-pill);
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s;
}

.pf-load-btn:hover {
  background: var(--red-hover);
}

/* Explore more — dark section */
.pf-explore {
  position: relative;
  background: #0a0a0a;
  padding: 100px 0 110px;
  overflow: hidden;
}

.pf-explore-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
}

.pf-explore-glow-tr {
  width: 520px;
  height: 520px;
  background: var(--red);
  opacity: 0.18;
  top: -8%;
  right: -6%;
}

.pf-explore-glow-bl {
  width: 480px;
  height: 480px;
  background: var(--red);
  opacity: 0.12;
  bottom: -10%;
  left: -8%;
}

.pf-explore-inner {
  position: relative;
  z-index: 1;
}

.pf-explore-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 64px;
}

.pf-explore-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.pf-explore-accent {
  background: linear-gradient(90deg, #e63b3b 0%, #ec4899 35%, #60a5fa 70%, #93c5fd 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pf-explore-subtitle {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.55);
}

.pf-explore-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 48px 40px;
}

.pf-explore-card:nth-child(even),
.pf-explore-card--offset {
  margin-top: 48px;
}

.pf-explore-media {
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 727 / 712;
  background: #111;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.pf-explore-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}

.pf-explore-card h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.pf-explore-card p {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 14px;
}

.pf-explore-link {
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: opacity 0.2s;
}

.pf-explore-link:hover {
  opacity: 0.75;
}

.pf-explore-link span {
  font-size: 15px;
}

/* Trust — reuse about-trust with portfolio wrapper */
.pf-trust {
  background: #f7f7f7;
  padding: 96px 0;
}

.pf-trust-header {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: start;
  margin-bottom: 48px;
}

.pf-trust-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.pf-trust-grad {
  background: linear-gradient(90deg, var(--red) 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.pf-trust-intro {
  font-size: 13px;
  line-height: 1.75;
  color: #555;
  max-width: 480px;
  margin-left: auto;
}

.pf-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.pf-trust-card {
  background: var(--white);
  border-radius: 14px;
  padding: 28px 24px 32px;
}

.pf-trust-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 18px;
}

.pf-trust-card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.pf-trust-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--grey-600);
}

.pf-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 1024px) {
  .pf-showcase,
  .pf-showcase--reverse {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .pf-showcase--reverse .pf-showcase-visual,
  .pf-showcase--reverse .pf-showcase-copy {
    order: unset;
  }

  .pf-showcase-visual {
    margin: 0;
    min-height: 300px;
    border-radius: 0;
  }

  .pf-showcase-visual--renovate,
  .pf-showcase-visual--streetcomplete {
    margin: 0;
    padding: 20px;
  }

  .pf-showcase-visual--liftout .pf-showcase-phones {
    padding: 28px 30% 28px 8%;
  }

  .pf-showcase--liftout .pf-showcase-copy,
  .pf-showcase--renovate .pf-showcase-copy,
  .pf-showcase--streetcomplete .pf-showcase-copy,
  .pf-showcase-copy {
    padding: 36px 32px;
  }

  .pf-explore-grid {
    grid-template-columns: 1fr;
  }

  .pf-explore-card:nth-child(even),
  .pf-explore-card--offset {
    margin-top: 0;
  }

  .pf-trust-header {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pf-trust-intro {
    margin-left: 0;
    max-width: none;
  }

  .pf-trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .pf-hero-content {
    min-height: 360px;
    padding: 36px 0 44px;
  }

  .pf-hero-title {
    font-size: clamp(2rem, 9vw, 2.75rem);
  }

  .pf-filters {
    gap: 18px;
    padding-bottom: 36px;
  }

  .pf-showcase-copy {
    padding: 32px 24px;
  }

  .pf-phone {
    max-width: 110px;
  }

  .pf-trust-grid {
    grid-template-columns: 1fr;
  }

  .pf-explore {
    padding: 72px 0 80px;
  }
}

@media (max-width: 480px) {
  .pf-hero-content {
    min-height: 280px;
    padding: 28px 0 36px;
  }

  .pf-filters {
    gap: 10px 14px;
  }

  .pf-filter {
    font-size: 13px;
  }

  .pf-explore {
    padding: 56px 0 64px;
  }

  .pf-showcase-copy {
    padding: 28px 20px;
  }

  .pf-trust {
    padding: 64px 0;
  }

  .pf-explore-card-media {
    min-height: 200px;
  }
}
