/* ============================================================
   PORTFOLIO PAGE — HERO
   ============================================================ */

.PortfolioHero {
  background: #000;
  padding: 18vw 7.34% 8vw;
  position: relative;
  overflow: hidden;
}

.PortfolioHero::before {
  content: '';
  position: absolute;
  bottom: 0; left: 7.34%; right: 7.34%;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.PortfolioPageHeadline {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(3.5rem, 8vw, 9rem);
  line-height: 0.95;
  color: #fff;
  letter-spacing: -0.02em;
  grid-column: 1;
}

.PortfolioPageHeadline em {
  font-style: italic;
  color: rgba(255, 255, 255, 0.35);
}

.PortfolioHeroRight {
  grid-column: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 0.5rem;
}

.PortfolioHeroDesc {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.88rem, 1.05vw, 1rem);
  font-weight: 300;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.5);
  max-width: 36ch;
}

.PortfolioHeroCount {
  margin-top: 2.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.2);
}

.PortfolioHero::after {
  content: 'WORK';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(12rem, 22vw, 28rem);
  line-height: 1;
  color: rgba(255, 255, 255, 0.04);
  letter-spacing: -0.04em;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
  z-index: 0;
}

.PortfolioHeroInner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6vw;
  align-items: end;
  position: relative;
  z-index: 1;
}

/* ============================================================
   PORTFOLIO PAGE — WORK SECTION
   ============================================================ */

.WorkSection {
  background: #000;
  padding: 8vw 7.34% 12vw;
  position: relative;
}

.WorkSectionHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4vw;
}

.WorkStatusLine {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.22);
}

.WorkStatusDot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.WorkStatusDot.active {
  background: #c8f542;
  box-shadow: 0 0 8px rgba(200, 245, 66, 0.6);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(200, 245, 66, 0.6); }
  50%       { opacity: 0.5; box-shadow: 0 0 3px rgba(200, 245, 66, 0.2); }
}

/* ── Featured project card ── */

.ProjectCard {
  display: grid;
  grid-template-columns: 58% 1fr;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: border-color 0.4s ease;
}

.ProjectCard:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

/* ── Image side ── */

.ProjectImageWrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #0d0d0d;
}

.ProjectImage {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.9s ease;
  filter: brightness(0.5);
}

.ProjectCard:hover .ProjectImage {
  transform: scale(1.04);
  filter: brightness(1);
}

/* Placeholder shown when no image is provided */
.ProjectImagePlaceholder {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(135deg,
      rgba(255,255,255,0.03) 25%, transparent 25%,
      transparent 50%, rgba(255,255,255,0.03) 50%,
      rgba(255,255,255,0.03) 75%, transparent 75%);
  background-size: 40px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.08);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.ProjectStatusBadge {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #000;
  background: #c8f542;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* ── Info side ── */

.ProjectInfo {
  padding: 3.5vw 3vw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}

.ProjectInfoTop {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ProjectNum {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  color: rgba(255, 255, 255, 0.2);
  margin-bottom: 2.5rem;
}

.ProjectName {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2rem, 3.2vw, 3.8rem);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 1.2rem;
}

.ProjectClient {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.78rem, 0.9vw, 0.88rem);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.38);
  letter-spacing: 0.04em;
  margin-bottom: 2rem;
}

.ProjectDesc {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(0.78rem, 0.88vw, 0.86rem);
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.42);
  margin-bottom: 2.5rem;
}

.ProjectTags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.ProjectTag {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.3rem 0.75rem;
  border-radius: 2px;
}

.ProjectInfoBottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ProjectYear {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.22em;
  color: rgba(255, 255, 255, 0.2);
  text-transform: uppercase;
}

.ProjectCTA {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.62rem;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.25s ease;
}

.ProjectCTA:hover { color: #fff; }

.ProjectCTA svg {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.ProjectCTA:hover svg {
  transform: translateX(4px);
}

/* ── Coming Soon placeholder cards ── */

.ComingSoonRow {
  margin-top: 2px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.ComingSoonCard {
  border: 1px solid rgba(255, 255, 255, 0.05);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.015);
}

.ComingSoonLabel {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.6rem;
  font-weight: 400;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.1);
}

/* ── Completed section ── */

.WorkSection--completed {
  padding-top: 0;
  position: relative;
}

.WorkSection--completed::before {
  content: '';
  position: absolute;
  top: 0; left: 7.34%; right: 7.34%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.ProjectStatusBadge--completed {
  background: transparent;
  color: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.CompletedGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.ProjectCardCompact {
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  transition: border-color 0.4s ease;
}

.ProjectCardCompact:hover {
  border-color: rgba(255, 255, 255, 0.22);
}

.ProjectCardCompact:hover .ProjectImage {
  transform: scale(1.04);
  filter: brightness(1);
}

.ProjectImageWrap--compact {
  aspect-ratio: 4 / 3;
}

.ProjectInfoCompact {
  padding: 1.8rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ProjectInfoCompactTop {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.ProjectInfoCompact .ProjectNum {
  margin-bottom: 1rem;
}

.ProjectInfoCompact .ProjectName {
  font-size: clamp(1.1rem, 1.6vw, 1.9rem);
  margin-bottom: 0.7rem;
}

.ProjectInfoCompact .ProjectClient {
  margin-bottom: 1.2rem;
}

.ProjectInfoCompact .ProjectTags {
  margin-bottom: 1.5rem;
}

.CompletedGrid .ComingSoonCard {
  aspect-ratio: unset;
  min-height: 280px;
}

/* ============================================================
   RESPONSIVE — TABLET (≤ 900px)
   ============================================================ */

@media (max-width: 900px) {
  .PortfolioHeroInner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .PortfolioHeroRight {
    grid-column: 1;
  }

  .ProjectCard {
    grid-template-columns: 1fr;
  }

  .ProjectImageWrap {
    aspect-ratio: 16 / 9;
  }

  .ProjectInfo {
    border-left: none;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6vw 5vw;
  }

  .ComingSoonRow {
    grid-template-columns: 1fr 1fr;
  }

  .CompletedGrid {
    grid-template-columns: 1fr 1fr;
  }

  .ProjectImageWrap--compact {
    aspect-ratio: 16 / 9;
  }

  .ProjectInfoCompact {
    padding: 5vw 4vw;
  }

  .CompletedGrid .ComingSoonCard {
    min-height: 200px;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤ 560px)
   ============================================================ */

@media (max-width: 560px) {
  .PortfolioHero {
    padding: 22vw 6% 10vw;
  }

  .PortfolioHero::after {
    font-size: clamp(6rem, 38vw, 12rem);
    right: 50%;
    transform: translate(50%, -50%);
    opacity: 0.5;
  }

  .WorkSection {
    padding: 12vw 6% 14vw;
  }

  .ProjectInfo {
    padding: 8vw 6vw;
  }

  .WorkSection--completed::before {
    left: 6%;
    right: 6%;
  }

  .ComingSoonRow {
    grid-template-columns: 1fr;
  }

  .ComingSoonCard {
    aspect-ratio: 3 / 1;
  }

  .CompletedGrid {
    grid-template-columns: 1fr;
  }

  .ProjectInfoCompact {
    padding: 7vw 6vw;
  }

  .CompletedGrid .ComingSoonCard {
    aspect-ratio: 3 / 1;
    min-height: unset;
  }
}
