/* ══════════════════════════════════════
   FEATURED WORK
   ══════════════════════════════════════ */

/* Contact lives inside this wrapper so it naturally
   scrolls up over the sticky portfolio */
.portfolio-sticky-wrap {
  position: relative;
}

#portfolio {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--bg);
  height: 100vh;
  box-sizing: border-box;
  padding: 60px var(--section-padding) 60px;
  display: flex;
  flex-direction: column;
}

.featured-grid {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) var(--line-faint);
}

.featured-grid::-webkit-scrollbar { height: 4px; }
.featured-grid::-webkit-scrollbar-track { background: var(--line-faint); }
.featured-grid::-webkit-scrollbar-thumb { background: var(--accent); border-radius: var(--radius-sm); }

/* Two independent rows for true masonry brick pattern */
.featured-row {
  display: flex;
  gap: 6px;
  flex: 1;
  min-height: 0;
}

.featured-item {
  display: block;
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateX(20px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.featured-item.revealed {
  opacity: 1;
  transform: translateX(0);
}

.featured-item img {
  height: 100%;
  width: auto;
  display: block;
  object-fit: cover;
  transition: transform 0.6s ease;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.featured-item:hover img,
.featured-item.touch-hover img { transform: scale(1.04); }

/* Liquid glass hover overlay */
.featured-item-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 24px;
  background: rgba(255,255,255,0.06);
  backdrop-filter: var(--glass-blur-light);
  -webkit-backdrop-filter: var(--glass-blur-light);
  border: var(--glass-border);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.featured-item:hover .featured-item-overlay,
.featured-item.touch-hover .featured-item-overlay { opacity: 1; }

.featured-item-label {
  color: var(--text-strong);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.featured-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 16px;
}

.featured-header .section-title { margin-bottom: 0; }
.featured-header .section-label { margin-bottom: 0; white-space: nowrap; }

.view-all-link {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-mid);
  border-bottom: 1px solid var(--line-faint);
  padding-bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 0.2s, gap 0.3s;
  white-space: nowrap;
  margin-top: 16px;
  align-self: flex-end;
}

.view-all-link:hover { color: var(--accent); gap: 16px; }
