.portfolio-hero {
  min-height: 80vh !important;
  height: 95vh;
  padding: var(--nav-h) 24px 0 !important;
  background: #000;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.portfolio-hero__inner,
.portfolio-hero .page-hero__inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}



.portfolio-hero .page-hero__title {
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}

.portfolio-hero .page-hero__sub {
  max-width: 820px;
  margin: 0 auto;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.75;
}

#portfolioParticles {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.page-hero {
  min-height: 56vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--nav-h);
  padding-bottom: 72px;
  background: #000;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.page-hero__parallax {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 60% 55% at 75% 45%, rgba(106, 92, 255, .1) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 25% 55%, rgba(0, 196, 255, .06) 0%, transparent 65%),
    linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px) 0 0/60px 60px,
    linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px) 0 0/60px 60px;
  will-change: transform;
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 32px;
}

.page-hero__label {
  margin-bottom: 20px;
}

.page-hero__title {
  font-family: var(--font-head);
  font-size: clamp(32px, 5.5vw, 64px);
  font-weight: 700;
  line-height: 1.1;
  color: #fff;
  margin-bottom: 24px;
}

.page-hero__title .accent {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.page-hero__sub {
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

.portfolio-main {
  background: #000;
  border-top: 1px solid #1a1a1a;
  padding: 80px 0 120px;
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.proj {
  position: relative;
  overflow: hidden;
  background: #0a0a0a;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 440px;
  border-bottom: 1px solid #1a1a1a;
  transition: background .3s;
}

.proj:last-child {
  border-bottom: none;
}

.proj:nth-child(even) {
  direction: rtl;
}

.proj:nth-child(even) > * {
  direction: ltr;
}

.proj__visual {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  background: #050505;
}

.proj__bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  transition: transform .6s ease;
}

.proj__bg img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .6s ease, opacity .6s ease, filter .6s ease;
}

.proj__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08) 0%, rgba(0, 0, 0, 0.48) 100%),
    radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
  z-index: 1;
}

.proj:hover .proj__bg img {
  transform: scale(1.05);
  opacity: .92;
  filter: saturate(1.08);
}

.proj__info {
  padding: 56px 64px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.proj__num {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.proj__category {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #000;
  background: var(--grad-btn);
  padding: 4px 12px;
  border-radius: 4px;
  margin-bottom: 20px;
  align-self: flex-start;
}

.proj__title {
  font-family: var(--font-head);
  font-size: clamp(22px, 3vw, 36px);
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  margin-bottom: 18px;
}

.proj__desc {
  font-family: var(--font-body);
  font-size: 15px;
  font-style: italic;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 32px;
}

.proj__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.proj__tag {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-muted);
  border: 1px solid #2a2a2a;
  border-radius: 4px;
  padding: 4px 12px;
}

.proj__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #fff;
  border-bottom: 2px solid #333;
  padding-bottom: 4px;
  align-self: flex-start;
  transition: border-color .2s;
}

.proj__link:hover {
  border-color: #fff;
}

.proj__link-arrow {
  transition: transform .2s;
}

.proj__link:hover .proj__link-arrow {
  transform: translateX(4px);
}

.proj__accent {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 2;
}

.proj--fayson .proj__accent {
  background: linear-gradient(90deg, #00C4FF, #6A5CFF);
}

.proj--maromba .proj__accent {
  background: linear-gradient(90deg, #FF8C00, #FF00B4);
}

.proj--economy .proj__accent {
  background: linear-gradient(90deg, #00C45A, #00C4FF);
}

.proj--mythoss .proj__accent {
  background: linear-gradient(90deg, #888, #fff);
}

@media(max-width:900px) {
  .proj {
    grid-template-columns: 1fr;
    direction: ltr !important;
    min-height: auto;
  }

  .proj:nth-child(even) {
    direction: ltr;
  }

  .proj__visual {
    min-height: 260px;
  }

  .proj__info {
    padding: 40px 32px;
  }
}

@media(max-width:480px) {
  .portfolio-hero {
    min-height: 90vh !important;
    height: 90vh;
  }

  .proj__visual {
    min-height: 230px;
  }

  .proj__info {
    padding: 32px 20px;
  }
}