/* =========================================================
   Ri MARKETING — portfolio page
   Built on top of ../styles.css (tokens, header, footer, buttons)
   ========================================================= */

/* ---------- hero ---------- */
.portfolio-hero {
  padding: 170px 0 50px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 70vw;
  height: 70vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.28), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.portfolio-hero .container { position: relative; z-index: 1; }

.portfolio-hero h1 {
  font-family: 'Nexa Heavy', sans-serif;
  font-size: clamp(32px, 5vw, 52px);
  color: var(--text);
  max-width: 720px;
  margin: 0 auto 16px;
}

.portfolio-hero p {
  color: var(--text-muted);
  font-size: 16.5px;
  max-width: 560px;
  margin: 0 auto;
}

/* ---------- section shell ---------- */
.portfolio-section {
  padding: 90px 0;
}

.portfolio-section.alt { background: var(--bg-soft); }

.portfolio-section .section-head { margin-bottom: 44px; }

.portfolio-copy {
  max-width: 760px;
  margin: 0 auto 50px;
}

.portfolio-copy p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-muted);
  white-space: pre-line;
  margin: 0;
}

.portfolio-copy p strong,
.portfolio-copy p b { color: var(--text); }

/* ---------- galleries ---------- */
.portfolio-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.portfolio-gallery img {
  width: 100%;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: transform var(--ease) .35s, border-color var(--ease) .35s, box-shadow var(--ease) .35s;
}

.portfolio-gallery img:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(168, 85, 247, .45);
  box-shadow: var(--shadow-soft);
}

.portfolio-gallery.tall img { aspect-ratio: 9 / 16; }
.portfolio-gallery.portrait img { aspect-ratio: 3 / 4; }
.portfolio-gallery.square img { aspect-ratio: 1 / 1; }

.portfolio-gallery.many { grid-template-columns: repeat(6, 1fr); }

@media (max-width: 1100px) {
  .portfolio-gallery.many { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 700px) {
  .portfolio-gallery { grid-template-columns: repeat(2, 1fr); }
  .portfolio-gallery.many { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- videos ---------- */
.portfolio-videos {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.portfolio-videos video {
  width: 100%;
  max-width: 380px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: #000;
}

@media (max-width: 700px) {
  .portfolio-videos { flex-direction: column; align-items: center; }
}

.portfolio-video-full {
  width: 100%;
  max-width: 860px;
  display: block;
  margin: 0 auto 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  background: #000;
}

@media (max-width: 768px) {
  .portfolio-hero { padding: 150px 0 40px; }
  .portfolio-section { padding: 64px 0; }
}
