/* ─── Projects ───────────────────────────────────────────────────────────── */

.projects-page,
.project-single {
  background: #F7F6F2;
  margin-top: 0 !important;
}

.projects-container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}

.projects-eyebrow,
.projects-label,
.project-card__label {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.projects-eyebrow {
  color: #9898B0;
}

.projects-label,
.project-card__label {
  color: #5B4BC4;
}

.projects-hero {
  position: relative;
  background: var(--norrma-hero-bg, #11111A);
  padding: 96px 0;
  overflow: hidden;
}

.projects-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 0% 100%, rgba(91, 75, 196, 0.28) 0%, transparent 70%);
  pointer-events: none;
}

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

.projects-hero__headline {
  max-width: 860px;
  margin: 32px 0 40px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(48px, 6.5vw, 80px);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.04em;
  color: #F7F6F2;
}

.projects-hero__divider {
  width: 48px;
  height: 2px;
  margin-bottom: 40px;
  background: #5B4BC4;
}

.projects-hero__body {
  max-width: 720px;
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 28px;
  color: #9898B0;
}

.projects-list {
  padding: 96px 0;
}

.projects-list__intro {
  display: grid;
  grid-template-columns: 320px minmax(0, 760px);
  gap: 40px;
  margin-bottom: 64px;
  border-bottom: 1px solid #E8E6E0;
  padding-bottom: 32px;
}

.projects-list__intro p:last-child {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 400;
  line-height: 32px;
  letter-spacing: -0.01em;
  color: #11111A;
}

.project-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}

.project-card {
  background: #FFFFFF;
  border: 1px solid #E8E6E0;
}

.project-card__image-link {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #EAE8E4;
}

.project-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 360ms ease;
}

.project-card:hover .project-card__image {
  transform: scale(1.025);
}

.project-card__content {
  padding: 32px;
}

.project-card__title {
  margin: 12px 0 12px;
  font-family: 'Manrope', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.02em;
  color: #11111A;
}

.project-card__title a,
.project-card__link {
  color: inherit;
  text-decoration: none;
}

.project-card__desc,
.project-card__meta {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 26px;
  color: #606078;
}

.project-card__meta {
  margin-top: 12px;
  color: #11111A;
}

.project-card__link {
  display: inline-flex;
  gap: 8px;
  margin-top: 28px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: color 240ms ease;
}

.project-card__link:hover {
  color: #43C7F4;
}

.project-hero {
  background: #11111A;
}

.project-hero__image {
  min-height: min(72vh, 760px);
  background-image: var(--project-hero-image);
  background-size: cover;
  background-position: center;
}

.project-hero__content {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px 96px;
}

.project-hero__title {
  max-width: 1040px;
  margin: 24px 0 24px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(52px, 7vw, 96px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.04em;
  color: #F7F6F2;
}

.project-hero__dek {
  max-width: 840px;
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 400;
  line-height: 32px;
  color: #9898B0;
}

.project-detail {
  padding: 96px 0;
}

.project-detail__grid {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 72px;
  align-items: start;
}

.project-meta {
  position: sticky;
  top: 96px;
}

.project-meta dl {
  margin: 24px 0 0;
}

.project-meta div {
  padding: 20px 0;
  border-top: 1px solid #E8E6E0;
}

.project-meta dt {
  margin: 0 0 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #606078;
}

.project-meta dd {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #11111A;
}

.project-content {
  max-width: 860px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
  margin: 48px 0 0;
  max-width: 860px;
}

.project-gallery figure {
  margin: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-gallery figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.project-content h2 {
  margin: 64px 0 20px;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(32px, 3.5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: #11111A;
}

.project-content h2:first-child {
  margin-top: 0;
}

.project-content p,
.project-content li {
  font-family: 'Manrope', sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 30px;
  color: #606078;
}

.project-content p {
  margin: 0 0 24px;
}

.project-content a {
  color: #11111A;
}

@media (max-width: 1023px) {
  .projects-container {
    padding: 0 24px;
  }

  .projects-hero,
  .projects-list,
  .project-detail {
    padding: 64px 0;
  }

  .projects-list__intro,
  .project-detail__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .project-meta {
    position: static;
  }

  .project-card-grid {
    grid-template-columns: 1fr;
  }

  .project-hero__content {
    padding: 48px 24px 64px;
  }
}

@media (max-width: 767px) {
  .projects-container {
    padding: 0 20px;
  }

  .projects-hero,
  .projects-list,
  .project-detail {
    padding: 48px 0;
  }

  .projects-hero__headline,
  .project-hero__title {
    font-size: clamp(40px, 11vw, 56px);
  }

  .project-hero__image {
    min-height: 360px;
  }

  .project-hero__content {
    padding: 40px 20px 48px;
  }

  .project-card__content {
    padding: 24px;
  }

  .project-gallery {
    grid-template-columns: 1fr;
  }
}

/* Lightbox */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 10, 14, 0.95);
  align-items: center;
  justify-content: center;
}

.lb-overlay--open {
  display: flex;
}

.lb-img {
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 80px);
  object-fit: contain;
  display: block;
  user-select: none;
}

.lb-btn {
  position: absolute;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  padding: 12px;
  opacity: 0.7;
  transition: opacity 0.15s;
  line-height: 0;
}

.lb-btn:hover {
  opacity: 1;
}

.lb-btn--prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lb-btn--next { right: 20px; top: 50%; transform: translateY(-50%); }
.lb-btn--close { top: 20px; right: 20px; }

@media (max-width: 767px) {
  .lb-img {
    max-width: 100vw;
    max-height: calc(100vh - 120px);
  }

  .lb-btn--prev { left: 8px; }
  .lb-btn--next { right: 8px; }
}
