/* ========================================
   PORTFOLIO.CSS — Industry marquee
======================================== */

#portfolio {
  position: relative;
  width: 100%;
  min-height: 100svh;
  background: #000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8rem var(--pad-x);
}

/* ── Video fondo ── */
.portfolio-video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.portfolio-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #000;
}
.portfolio-video-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

/* ── Header ── */
.portfolio-header {
  position: relative;
  z-index: 2;
  text-align: center;
  margin-bottom: 5rem;
}
.portfolio-label {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}
.portfolio-label::before,
.portfolio-label::after {
  content: '';
  width: 20px; height: 1px;
  background: rgba(255,255,255,0.2);
  display: inline-block;
}
.portfolio-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  color: #fff;
}
.portfolio-title em {
  color: rgba(255,255,255,0.15);
  font-style: normal;
}

/* ── Marquee container ── */
.industry-marquee {
  position: relative;
  z-index: 2;
  width: 100vw;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

/* ── Track (row) ── */
.marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  white-space: nowrap;
  will-change: transform;
}

.marquee-top {
  animation: marquee-left 35s linear infinite;
}

.marquee-bottom {
  animation: marquee-right 40s linear infinite;
}

@keyframes marquee-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-33.333%); }
}

@keyframes marquee-right {
  0%   { transform: translateX(-33.333%); }
  100% { transform: translateX(0); }
}

/* ── Each item ── */
.marquee-item {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 800;
  color: rgba(255,255,255,0.12);
  letter-spacing: -0.03em;
  padding: 0 0.3rem;
  transition: color 0.4s;
  cursor: default;
  -webkit-text-stroke: 1px rgba(255,255,255,0.08);
}

.marquee-item:hover {
  color: rgba(255,255,255,0.9);
  -webkit-text-stroke: 0px transparent;
}

/* ── Dot separator ── */
.marquee-dot {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  color: rgba(255,255,255,0.08);
  padding: 0 1rem;
  user-select: none;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  #portfolio {
    padding: 6rem var(--pad-x-sm) 5rem;
    min-height: auto;
  }
  .portfolio-header {
    margin-bottom: 3rem;
  }
  .industry-marquee {
    gap: 1rem;
  }
  .marquee-dot {
    padding: 0 0.6rem;
  }
}