body {
  background: #000;
  color: #fff;
  font-family: "Hanken Grotesk", sans-serif;
}

/* Push page below fixed navbar */
main {
  padding-top: 90px;
  min-height: 100vh;
}

/* Match portfolio page spacing a bit closer to the top */
.portfolio {
  padding: 40px 0 120px;
}

/* Let hover scale not get clipped vertically */
.portfolio-scroll {
  overflow-x: auto; /* ✅ trackpad works */
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: none;
  -ms-overflow-style: none;
}
.portfolio-scroll::-webkit-scrollbar {
  height: 0;
}

/* Optional: highlight selected tile */
.portfolio-item.selected .thumb {
  transform: scale(1.08);
  filter: brightness(1.15) saturate(1.2);
}
.portfolio-item.selected h3 {
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.55);
}

/* =====================================================
   DROPDOWN PANEL (dynamic)
===================================================== */
.services-dropdown {
  width: min(92%, 1400px);
  margin: 55px auto 0;
  padding: 0 10px;

  /* animated reveal */
  max-height: 0;
  opacity: 0;
  transform: translateY(-10px);
  overflow: hidden;
  pointer-events: none;

  transition:
    max-height 0.45s ease,
    opacity 0.35s ease,
    transform 0.35s ease;
}

.services-dropdown.open {
  max-height: 2200px; /* safe for bullets + grid on all categories */
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.services-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px 80px;
  text-align: left;
  padding-top: 8px;
}

/* list bullets */
.services-col ul {
  list-style: disc;
  padding-left: 1.2em;
  margin: 0;
}

.services-col li {
  margin: 12px 0;
  font-size: 22px;
  font-weight: 300;
  opacity: 0.98;
  list-style-position: outside;
}

/* =====================================================
   WORK GRID (8 media items below bullets)
===================================================== */
.services-work {
  margin-top: 55px;
}

.services-work-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Taller ratio (matches your examples better than 16:9) */
.services-work-thumb {
  position: relative;
  overflow: hidden;
  background: #000;
  aspect-ratio: 4 / 3;
  cursor: pointer;
}

/* media layer */
.services-work-thumb img,
.services-work-thumb video {
  position: relative;
  z-index: 1;

  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;

  opacity: 0.95;
  transition:
    transform 0.35s ease,
    opacity 0.35s ease,
    filter 0.35s ease;
}

/* Ensure videos look like images (no strange inline gaps) */
.services-work-thumb video {
  background: #000;
}

/* hover */
.services-work-thumb:hover img,
.services-work-thumb:hover video {
  transform: scale(1.08);
  opacity: 1;
  filter: brightness(1.05);
}

/* black fades like the rest of your site */
.work-fade {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.work-fade.top {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.7) 10%,
    rgba(0, 0, 0, 0.35) 22%,
    rgba(0, 0, 0, 0) 45%
  );
}

.work-fade.bottom {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.98) 0%,
    rgba(0, 0, 0, 0.75) 12%,
    rgba(0, 0, 0, 0.35) 26%,
    rgba(0, 0, 0, 0) 55%
  );
}

/* Responsive */
@media (max-width: 1100px) {
  .services-dropdown-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 50px;
  }
  .services-col li {
    font-size: 20px;
  }

  .services-work-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .services-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .services-dropdown-grid {
    grid-template-columns: 1fr;
    gap: 10px 0;
  }
  .services-col li {
    font-size: 18px;
  }

  .services-work {
    margin-top: 40px;
  }
  .services-work-grid {
    grid-template-columns: 1fr;
  }
}
