/* Insights portfolio page — Digitamatix */

.pf-hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.75rem, 6vw, 4.5rem);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 70% 55% at 85% 10%, rgba(153, 232, 20, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(153, 232, 20, 0.05), transparent 50%),
    linear-gradient(165deg, #101218 0%, #0b0c10 55%, #0e1118 100%);
}

.pf-hero__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: end;
}

.pf-hero__brand {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  color: #ffffff;
}

.pf-hero__copy .eyebrow {
  margin-bottom: 0.85rem;
}

.pf-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.35rem);
  letter-spacing: -0.035em;
  max-width: 14ch;
  margin-bottom: 1rem;
  color: #f4f5f7;
}

.pf-hero__intro {
  color: #c2c7d1;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.pf-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.pf-hero__visual {
  margin: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
  animation: pfRise 0.7s ease both;
}

.pf-hero__visual img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transform: scale(1.02);
  transition: transform 0.8s ease;
}

.pf-hero__visual:hover img {
  transform: scale(1.06);
}

.pf-hero__visual figcaption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(11, 12, 16, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.pf-hero__visual figcaption span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.pf-hero__visual figcaption strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
}

.pf-hero__copy {
  animation: pfRise 0.55s ease both;
}

@keyframes pfRise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.pf-board {
  padding-top: clamp(3rem, 6vw, 4.5rem);
  padding-bottom: clamp(3rem, 6vw, 4.5rem);
}

.pf-board__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem 1.5rem;
  margin-bottom: 1.75rem;
}

.pf-board__head h2 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 2.8vw, 1.9rem);
}

.pf-board__head p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.pf-filters {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  padding: 0.3rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  max-width: 100%;
}

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

.pf-filter {
  flex: 0 0 auto;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 650;
  color: var(--text-dim);
  min-height: 2.35rem;
  transition: background 0.18s ease, color 0.18s ease;
}

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

.pf-filter.is-active {
  background: var(--accent);
  color: var(--accent-ink);
}

.pf-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.pf-card {
  grid-column: span 4;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  min-width: 0;
  transition: border-color 0.2s ease, transform 0.25s ease, box-shadow 0.25s ease;
  animation: pfRise 0.55s ease both;
}

.pf-card:nth-child(1) { animation-delay: 0.02s; }
.pf-card:nth-child(2) { animation-delay: 0.06s; }
.pf-card:nth-child(3) { animation-delay: 0.1s; }
.pf-card:nth-child(4) { animation-delay: 0.14s; }
.pf-card:nth-child(5) { animation-delay: 0.18s; }
.pf-card:nth-child(6) { animation-delay: 0.22s; }
.pf-card:nth-child(7) { animation-delay: 0.26s; }
.pf-card:nth-child(8) { animation-delay: 0.3s; }
.pf-card:nth-child(9) { animation-delay: 0.34s; }

.pf-card--featured {
  grid-column: span 8;
}

.pf-card[hidden] {
  display: none !important;
}

.pf-card:hover {
  border-color: rgba(153, 232, 20, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}

.pf-card__link {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.pf-card--featured .pf-card__link {
  grid-template-columns: 1.15fr 0.85fr;
  grid-template-rows: 1fr;
  min-height: 320px;
}

.pf-card__media {
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 16 / 10;
}

.pf-card--featured .pf-card__media {
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}

.pf-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.pf-card:hover .pf-card__media img {
  transform: scale(1.05);
}

.pf-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1.15rem 1.2rem 1.25rem;
}

.pf-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.15rem;
}

.pf-card__tag {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.pf-card__year {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-variant-numeric: tabular-nums;
}

.pf-card h3 {
  font-size: 1.08rem;
  letter-spacing: -0.02em;
  margin: 0;
}

.pf-card--featured h3 {
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
}

.pf-card p {
  margin: 0;
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pf-card__cta {
  margin-top: auto;
  padding-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 650;
  color: #fff;
}

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

.pf-empty {
  margin: 1.5rem 0 0;
  color: var(--text-dim);
  text-align: center;
}

.pf-channels {
  padding: 0 0 clamp(2.5rem, 5vw, 3.5rem);
}

.pf-channels__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}

.pf-channel {
  display: grid;
  gap: 0.25rem;
  padding: 1.25rem 1.3rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, var(--surface) 0%, var(--bg-soft) 100%);
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.pf-channel:hover {
  border-color: rgba(153, 232, 20, 0.35);
  transform: translateY(-2px);
}

.pf-channel__label {
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.pf-channel strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 650;
}

.pf-channel span:last-child {
  color: var(--text-dim);
  font-size: 0.88rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .pf-hero__layout {
    grid-template-columns: 1fr;
  }

  .pf-hero h1 {
    max-width: none;
  }

  .pf-hero__visual {
    max-width: 560px;
  }

  .pf-card,
  .pf-card--featured {
    grid-column: span 6;
  }

  .pf-card--featured .pf-card__link {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .pf-card--featured .pf-card__media {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 720px) {
  .pf-board__head {
    align-items: stretch;
  }

  .pf-filters {
    width: 100%;
    border-radius: 14px;
  }

  .pf-card,
  .pf-card--featured {
    grid-column: span 12;
  }

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

  .pf-hero__actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pf-hero__copy,
  .pf-hero__visual,
  .pf-card {
    animation: none;
  }

  .pf-card,
  .pf-channel,
  .pf-card__media img,
  .pf-hero__visual img {
    transition: none;
  }
}
