/* ============================================ */
/* Projects Page Specific Styles                */
/* ============================================ */

/* Projects Hero */
.page-hero--projects {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-4xl) var(--space-xl);
  position: relative;
  overflow: hidden;
}

.page-hero--projects .page-hero__title {
  letter-spacing: 0.08em;
}

/* Case Section */
.case {
  position: relative;
  overflow: hidden;
}

.case__visual {
  position: relative;
  height: 50vh;
  min-height: 320px;
  overflow: hidden;
}

.case__visual-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
}

.case__visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
}

.case__visual-content {
  position: relative;
  z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-2xl) var(--space-xl);
}

.case__number {
  font-family: var(--font-primary);
  font-size: var(--font-size-xs);
  letter-spacing: 0.15em;
  opacity: 0.5;
  margin-bottom: var(--space-sm);
}

.case__title {
  font-family: var(--font-secondary);
  font-size: clamp(1.25rem, 3vw, var(--font-size-2xl));
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

/* PSI (Problem / Structure / Impact) grid */
.case__psi {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.psi-block {
  padding: var(--space-2xl) var(--space-xl);
  border-bottom: 1px solid var(--color-border-light);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.psi-block.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.psi-block:last-child {
  border-bottom: none;
}

.psi-block--problem {
  background: rgba(255, 255, 255, 0.02);
}

.psi-block--structure {
  background: rgba(255, 255, 255, 0.04);
}

.psi-block--impact {
  background: rgba(255, 255, 255, 0.06);
}

.psi-block__icon {
  font-size: var(--font-size-lg);
  opacity: 0.35;
  margin-bottom: var(--space-md);
}

.psi-block__label {
  font-family: var(--font-primary);
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
}

.psi-block__text {
  font-family: var(--font-secondary);
  font-size: var(--font-size-sm);
  line-height: 2.2;
  color: var(--color-text-secondary);
  max-width: 700px;
}

/* Case divider */
.case-divider {
  height: 1px;
  background: var(--color-border-light);
}

/* CTA Section */
.page-cta--projects {
  padding: var(--space-6xl) var(--space-xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-cta--projects .page-cta__bg {
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(15, 25, 60, 0.4) 0%, transparent 70%),
    var(--color-bg-secondary);
}

/* Tablet+ */
@media (min-width: 768px) {
  .page-hero--projects {
    padding: var(--space-4xl) var(--space-3xl);
  }

  .case__psi {
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
  }

  .psi-block {
    border-bottom: none;
    border-right: 1px solid var(--color-border-light);
    padding: var(--space-3xl) var(--space-2xl);
  }

  .psi-block:last-child {
    border-right: none;
  }

  .case__visual {
    height: 60vh;
  }

  .case__visual-content {
    padding: var(--space-3xl);
  }
}

@media (min-width: 1024px) {
  .case__visual-content {
    padding: var(--space-3xl) var(--space-4xl);
  }

  .psi-block {
    padding: var(--space-3xl);
  }
}
