body {
  background: var(--bg);
}

.portfolio-hero {
  padding: 140px 0 60px;
  background: var(--bg);
  position: relative;
  overflow: hidden;
  text-align: center;
}

.portfolio-hero::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(168, 255, 62, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.portfolio-hero::after {
  content: '';
  position: absolute;
  bottom: -80px;
  right: -60px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(168, 255, 62, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.portfolio-hero-headline {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}

.portfolio-hero-sub {
  font-size: 1.05rem;
  color: var(--greylight);
  line-height: 1.6;
  max-width: 560px;
  margin: 0.5rem auto 0;
  position: relative;
  z-index: 1;
}

.portfolio-main {
  background: var(--bg2);
  padding: 3rem 0 7rem;
}

/* Stage / carousel */
.stage {
  max-width: 760px;
  margin: 0 auto;
}

.stage-viewport {
  position: relative;
}

.stage-slide {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  opacity: 1;
  transform: translateX(0);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}

.stage-slide.is-active {
  display: flex;
}

.stage-slide.is-entering {
  opacity: 0;
  transform: translateX(var(--enter-x, 24px));
}

.stage-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 0.5rem;
}

.stage-heading {
  font-family: 'Bebas Neue', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--white);
  margin-bottom: 1.5rem;
}

.stage-image-wrap {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 16px;
  overflow: hidden;
  background: var(--bgcard);
  border: 1px solid var(--border);
}

.stage-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-image-wrap--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--grey);
  border-style: dashed;
}

.stage-image-wrap--empty svg {
  width: 40px;
  height: 40px;
}

.stage-image-wrap--empty span {
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.stage-desc {
  color: var(--greylight);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-top: 1.5rem;
  max-width: 560px;
}

.stage-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.stage-arrow {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--greylight);
  transition: border-color 0.3s, color 0.3s, background 0.3s;
}

.stage-arrow:hover,
.stage-arrow:focus-visible,
.stage-arrow:active {
  border-color: var(--green);
  color: var(--green);
}

.stage-arrow svg {
  width: 20px;
  height: 20px;
}

.stage-dots {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.stage-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--greydark);
  transition: background 0.3s, transform 0.3s var(--ease), width 0.3s var(--ease);
}

.stage-dot.is-active {
  background: var(--green);
  width: 22px;
  border-radius: 4px;
}

.stage-dot:hover {
  background: var(--green);
}

@media (max-width: 640px) {
  .portfolio-hero {
    padding: 120px 0 40px;
  }

  .portfolio-main {
    padding: 2rem 0 5rem;
  }

  .stage-controls {
    gap: 1rem;
  }

  .stage-arrow {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stage-slide {
    transition: opacity 0.3s linear;
    transform: none !important;
  }
}
