.pf-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: transparent;
  color: #f7f4ee;
  padding: 0;
}

.pf-showcase {
  position: relative;
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  perspective: 1200px;
}

.pf-card {
  position: relative;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
  background: #111720;
  color: inherit;
  text-decoration: none;
  cursor: none;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
  opacity: 0;
  transform: translate3d(0, 42px, 0) scale(0.98);
  transition:
    opacity 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.75s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.45s ease,
    box-shadow 0.45s ease;
  will-change: transform;
}

.pf-card.visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.pf-card:nth-child(2) {
  transition-delay: 0.1s;
}

.pf-card:nth-child(3) {
  transition-delay: 0.2s;
}

.pf-card.is-featured {
  min-height: 510px;
  width: min(100%, 1040px);
}

.pf-card.is-offset-left {
  width: min(86%, 830px);
  align-self: flex-start;
  margin-left: 7%;
}

.pf-card.is-offset-right {
  width: min(86%, 830px);
  align-self: flex-end;
  margin-right: 4%;
}

.pf-card:hover,
.pf-card:focus-visible {
  border-color: rgba(249, 110, 33, 0.45);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.44),
    0 0 0 1px rgba(249, 110, 33, 0.08);
  outline: none;
}

.pf-img-wrap,
.pf-img-wrap img,
.pf-overlay,
.pf-tilt-highlight {
  position: absolute;
  inset: 0;
}

.pf-img-wrap {
  overflow: hidden;
}

.pf-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 0.55s ease;
  will-change: transform;
}

.pf-card:hover .pf-img-wrap img,
.pf-card:focus-visible .pf-img-wrap img {
  transform: scale(1.08);
  filter: saturate(1.08) contrast(1.04);
}

.pf-overlay {
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(8, 11, 16, 0.7) 0%, rgba(8, 11, 16, 0.4) 42%, rgba(8, 11, 16, 0.05) 100%),
    linear-gradient(0deg, rgba(8, 11, 16, 0.7), transparent 58%);
  transition: background 0.45s ease;
}

.pf-card.is-offset-right .pf-overlay {
  background:
    linear-gradient(270deg, rgba(8, 11, 16, 0.7) 0%, rgba(8, 11, 16, 0.4) 44%, rgba(8, 11, 16, 0.05) 100%),
    linear-gradient(0deg, rgba(8, 11, 16, 0.7), transparent 58%);
}

.pf-card:hover .pf-overlay,
.pf-card:focus-visible .pf-overlay {
  background:
    linear-gradient(90deg, rgba(8, 11, 16, 0.92) 0%, rgba(8, 11, 16, 0.62) 44%, rgba(8, 11, 16, 0.16) 100%),
    linear-gradient(0deg, rgba(8, 11, 16, 0.92), transparent 64%);
}

.pf-card.is-offset-right:hover .pf-overlay,
.pf-card.is-offset-right:focus-visible .pf-overlay {
  background:
    linear-gradient(270deg, rgba(8, 11, 16, 0.92) 0%, rgba(8, 11, 16, 0.62) 44%, rgba(8, 11, 16, 0.16) 100%),
    linear-gradient(0deg, rgba(8, 11, 16, 0.92), transparent 64%);
}

.pf-tilt-highlight {
  z-index: 4;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.06), transparent 48%);
  transition: opacity 0.3s ease;
}

.pf-card:hover .pf-tilt-highlight,
.pf-card:focus-visible .pf-tilt-highlight {
  opacity: 1;
}

.pf-info {
  position: relative;
  z-index: 5;
  min-height: 390px;
  width: min(560px, 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 38px;
}

.pf-card.is-featured .pf-info {
  min-height: 510px;
}

.pf-card.is-offset-right .pf-info {
  margin-left: auto;
  align-items: flex-end;
  text-align: right;
}

.pf-number {
  position: absolute;
  top: 28px;
  right: 30px;
  z-index: 5;
  font-family: 'Syne', sans-serif;
  color: rgba(255, 255, 255, 0.2);
  font-size: 74px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  transition: color 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-card.is-offset-right .pf-number {
  right: auto;
  left: 30px;
}

.pf-card:hover .pf-number,
.pf-card:focus-visible .pf-number {
  color: rgba(249, 110, 33, 0.42);
  transform: translateY(-6px);
}

.pf-tag {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: #f96e21;
  background: rgba(249, 110, 33, 0.12);
  border: 1px solid rgba(249, 110, 33, 0.34);
  border-radius: 8px;
  padding: 7px 10px;
  font-family: 'Syne', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pf-tag::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #56d6a3;
  box-shadow: 0 0 10px rgba(86, 214, 163, 0.35);
}

.pf-heading {
  max-width: 520px;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 34px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
  margin-bottom: 0;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-card:hover .pf-heading,
.pf-card:focus-visible .pf-heading {
  transform: translateY(-5px);
}

.pf-desc {
  max-width: 500px;
  color: rgba(247, 244, 238, 0.68);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition:
    max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
    opacity 0.35s ease,
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    margin-top 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-card:hover .pf-desc,
.pf-card:focus-visible .pf-desc {
  max-height: 110px;
  opacity: 1;
  margin-top: 16px;
  transform: translateY(0);
}

.pf-card.is-featured .pf-heading {
  font-size: 48px;
  max-width: 650px;
}

.pf-card.is-featured .pf-desc {
  max-width: 590px;
  font-size: 18px;
}

.pf-cursor {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 122px;
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(249, 110, 33, 0.92);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.82);
  transition: opacity 0.18s ease, transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.pf-cursor.active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pf-cursor span {
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
  padding: 5px 8px;
}

@media (max-width: 980px) {
  .pf-card,
  .pf-card.is-featured,
  .pf-card.is-offset-left,
  .pf-card.is-offset-right {
    min-height: 430px;
    width: 100%;
    align-self: stretch;
    margin-left: 0;
    margin-right: 0;
  }

  .pf-info,
  .pf-card.is-offset-right .pf-info {
    align-items: flex-start;
    text-align: left;
    margin-left: 0;
    padding: 32px;
  }

  .pf-card.is-offset-right .pf-number {
    left: auto;
    right: 30px;
  }

  .pf-card.is-featured .pf-heading,
  .pf-heading {
    font-size: 34px;
  }

  .pf-card.is-featured .pf-desc,
  .pf-desc {
    font-size: 16px;
  }

  .pf-info {
    min-height: 430px;
  }

  .pf-card.is-featured .pf-info {
    min-height: 430px;
  }

  .pf-card.is-offset-right .pf-overlay,
  .pf-card.is-offset-right:hover .pf-overlay,
  .pf-card.is-offset-right:focus-visible .pf-overlay {
    background:
      linear-gradient(90deg, rgba(8, 11, 16, 0.7) 0%, rgba(8, 11, 16, 0.4) 52%, rgba(8, 11, 16, 0.05) 100%),
      linear-gradient(0deg, rgba(8, 11, 16, 0.7), transparent 64%);
  }
}

@media (max-width: 620px) {
  .pf-card,
  .pf-card.is-featured,
  .pf-card.is-offset-left,
  .pf-card.is-offset-right {
    min-height: 390px;
  }

  .pf-info,
  .pf-card.is-offset-right .pf-info {
    padding: 24px;
  }

  .pf-number {
    top: 20px;
    right: 22px;
    font-size: 54px;
  }

  .pf-card.is-featured .pf-heading,
  .pf-heading {
    font-size: 27px;
  }

  .pf-desc {
    font-size: 14px;
    line-height: 1.55;
  }

  .pf-info {
    min-height: 390px;
  }

  .pf-card.is-featured .pf-info {
    min-height: 390px;
  }

  .pf-cursor {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-card,
  .pf-img-wrap img,
  .pf-number,
  .pf-heading,
  .pf-desc,
  .pf-cursor {
    transition: none;
  }
}

.pf-ripple {
  position: absolute;
  z-index: 8;
  width: 80px;
  height: 80px;
  border-radius: 999px;
  background: rgba(249, 110, 33, 0.12);
  pointer-events: none;
  transform: scale(0);
  animation: pfRipple 0.62s ease-out forwards;
}

@keyframes pfRipple {
  to {
    transform: scale(6);
    opacity: 0;
  }
}
