/* =============================================
   CLIENTS PAGE
   ============================================= */

@font-face {
  font-family: 'GraphikCondensed';
  src: url('../assets/Graphik Condensed Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

.clients-page {
  background: #111110;
}

/* Override nav for clients page — always solid dark */
.clients-page .nav {
  background: #111110;
  border-bottom-color: rgba(255,255,255,0.08);
  color: #fff;
}

.clients-page .nav__links a {
  color: rgba(255,255,255,0.55);
}

.clients-page .nav__links a:hover,
.clients-page .nav__active {
  color: #fff;
  opacity: 1 !important;
}

.clients-page .nav__hamburger span {
  background: #fff;
}

.clients-page .mobile-menu {
  background: #111110;
}

.clients-page .mobile-menu a {
  color: #fff;
}

/* ─── MAIN ─── */
.clients-main {
  padding-top: var(--nav-h);
}

/* ─── GRID ─── */
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
}

/* ─── TILE ─── */
.client-tile {
  position: relative;
  aspect-ratio: 6/7;
  overflow: hidden;
  cursor: pointer;
}

.client-tile__thumb {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.client-tile__hover-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.client-tile:hover .client-tile__hover-img {
  opacity: 1;
}


/* ─── CLIENT DETAIL OVERLAY ─── */
.client-detail {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: #0f0f0e;
  overflow-y: auto;
  transform: translateY(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

.client-detail.open {
  transform: none;
}

.client-detail__header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: #0f0f0e;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.5rem, 5vw, 4rem);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.client-detail__back {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(255,255,255,0.55);
  font-size: clamp(0.8rem, 1.5vw, 1rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.client-detail__back:hover { color: #fff; }

.client-detail__grid {
  position: relative;
  columns: 3;
  column-gap: 0.75rem;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem) 4rem;
  min-height: 300px;
}

.detail-item {
  break-inside: avoid;
  margin-bottom: 0.75rem;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.4s ease, transform 0.4s ease;
  cursor: zoom-in;
}

.detail-item.visible {
  opacity: 1;
  transform: none;
}

.detail-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}

.detail-item:hover img {
  transform: scale(1.02);
}

/* ─── FULL-WIDTH VIDEO / GIF ITEM ─── */
.detail-item--video {
  column-span: all;
  break-inside: avoid;
  margin-bottom: 0.75rem;
  cursor: default;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-item--video img {
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-item--placeholder {
  column-span: all;
  width: 100%;
}

/* ─── GIF FULLSCREEN OVERLAY ─── */
.gif-overlay {
  position: fixed;
  inset: 0;
  z-index: 450;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.7s ease;
}

.gif-overlay.visible {
  opacity: 1;
}

.gif-overlay img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gif-overlay__close {
  position: absolute;
  top: 1.25rem;
  right: 1.5rem;
  z-index: 10;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  pointer-events: all;
  transition: color 0.2s;
}

.gif-overlay__close:hover {
  color: #fff;
}

.gif-overlay__scroll-hint {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  pointer-events: none;
  z-index: 10;
}

.gif-overlay__scroll-hint span {
  color: rgba(255,255,255,0.5);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.gif-overlay__scroll-line {
  width: 1px;
  height: 40px;
  background: rgba(255,255,255,0.35);
  transform-origin: bottom;
  animation: pulse-line-up 1.8s ease-in-out infinite;
}

@keyframes pulse-line-up {
  0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
  50%       { opacity: 1;   transform: scaleY(1); }
}

/* ─── SCROLL HINT (clients-specific overrides) ─── */
/* Base styles live in style.css; only page/detail z-index here */
.clients-page .scroll-hint {
  opacity: 1; /* start visible on clients page */
}

/* Inside the detail overlay — needs higher z-index */
.scroll-hint--detail {
  z-index: 320;
  bottom: 2.5rem;
}

/* ─── CAROUSEL LAYOUT ─── */
.detail-grid--carousel {
  columns: unset;
  column-gap: unset;
  padding: 0;
  display: block;
  min-height: unset;
}

.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: calc(100svh - 70px);
}

.carousel-stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-img {
  position: absolute;
  max-height: 88%;
  max-width: 48%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
  cursor: zoom-in;
  pointer-events: none;
  display: block;
}

.carousel-img.active {
  opacity: 1;
  pointer-events: auto;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,0.35);
  font-size: 1.4rem;
  padding: 1rem 1.5rem;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 10;
}

.carousel-btn--prev { left: 0.5rem; }
.carousel-btn--next { right: 0.5rem; }
.carousel-btn:hover { color: #fff; }

.carousel-counter {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  white-space: nowrap;
}

@media (max-width: 600px) {
  .carousel-img { max-width: 80%; }
}

/* ─── SECTIONED LAYOUT ─── */
.detail-grid--sectioned {
  columns: unset;
  column-gap: unset;
  padding: 1.5rem clamp(1.5rem, 5vw, 4rem) 4rem;
  display: flex;
  flex-direction: column;
}

.section-block {
  margin-bottom: 3rem;
}

.section-block__header {
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.section-block__header span {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
}

.section-block__grid {
  columns: 2;
  column-gap: 0.75rem;
}

@media (max-width: 560px) {
  .section-block__grid { columns: 1; }
}

/* ─── PRESENTATION LAYOUT ─── */
.detail-grid--presentation {
  columns: unset;
  column-gap: unset;
  padding: 2rem clamp(1.5rem, 5vw, 4rem) 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.pres-intro {
  width: 100%;
  max-width: 920px;
  padding-bottom: 1.25rem;
  margin-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.pres-intro span {
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
}

.pres-slide {
  width: 100%;
  max-width: 920px;
  margin-bottom: 3.5rem;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  cursor: zoom-in;
}

.pres-slide.visible {
  opacity: 1;
  transform: none;
}

.pres-slide__label {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.28);
  margin-bottom: 0.75rem;
}

.pres-slide img {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.25s ease;
}

.pres-slide:hover img { opacity: 0.88; }

/* ─── INSTAGRAM LAYOUT ─── */
.detail-grid--instagram {
  columns: unset;
  column-gap: unset;
  padding: 0 0 4rem;
  display: block;
}

.ig-profile {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem clamp(1rem, 5vw, 2rem) 1.25rem;
}

.ig-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  letter-spacing: 0;
}

.ig-profile__info {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ig-handle {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0;
}

.ig-stats {
  display: flex;
  gap: 1.25rem;
  color: rgba(255,255,255,0.55);
  font-size: 0.82rem;
}

.ig-stats strong {
  color: #fff;
}

/* Stories row */
.ig-stories-row {
  display: flex;
  gap: 1.25rem;
  padding: 1rem clamp(1rem, 5vw, 2rem);
  overflow-x: auto;
  scrollbar-width: none;
  border-top: 1px solid rgba(255,255,255,0.09);
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.ig-stories-row::-webkit-scrollbar { display: none; }

.ig-story {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  flex-shrink: 0;
}

.ig-story__ring {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  padding: 2.5px;
  background: linear-gradient(135deg, #833ab4, #fd1d1d, #fcb045);
  transition: opacity 0.2s;
}

.ig-story:hover .ig-story__ring { opacity: 0.8; }

.ig-story__ring img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2.5px solid #0f0f0e;
  display: block;
}

.ig-story__label {
  font-size: 0.6rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

/* Posts section divider */
.ig-grid-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem clamp(1rem, 5vw, 2rem);
  border-bottom: 1px solid rgba(255,255,255,0.09);
}

.ig-grid-divider span {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

/* Post grid */
.ig-post-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.ig-post {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: zoom-in;
  background: #1a1a1a;
}

.ig-post img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.ig-post::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0);
  transition: background 0.2s;
  pointer-events: none;
}

.ig-post:hover img { opacity: 0.85; }
.ig-post:hover::after { background: rgba(0,0,0,0.15); }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-detail__grid {
    columns: 2;
  }
}

@media (max-width: 560px) {
  .client-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .client-tile {
    aspect-ratio: 1/1;
  }

.client-detail__grid {
    columns: 1;
  }
}
