/* — Projects — */
.projects {
  background: var(--bone-soft);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}

.projects-note {
  font-family: var(--display);
  font-style: italic;
  font-size: 15px;
  color: var(--ink-mute);
  margin-bottom: 56px;
  max-width: 540px;
  line-height: 1.6;
}

.moodboard-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr;
  grid-template-rows: 280px 360px 280px;
  gap: 24px;
}

.mood {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.7s var(--easing);
  background: var(--bone-deep);
}
.mood:hover { transform: translateY(-6px); }

.mood img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 1.4s var(--easing), filter 0.7s var(--easing);
  z-index: 0;
}
.mood:hover img { transform: scale(1.06); filter: saturate(1) contrast(1.03); }

/* When a tile contains a real photo, hide the decorative arch / doorway overlays */
.mood:has(img)::before { display: none; }

.mood .mood-label {
  position: absolute;
  bottom: 18px;
  left: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: end;
  color: var(--bone);
}
.mood .mood-label .mood-name {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.mood .mood-label .mood-type {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.85;
}
.mood::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.45) 100%);
  z-index: 1;
}

.mood-1 {
  grid-column: 1;
  grid-row: 1 / span 2;
  background:
    radial-gradient(ellipse at 70% 30%, rgba(255,230,200,0.4) 0%, transparent 50%),
    linear-gradient(170deg, #A98870 0%, #6B4F38 100%);
}
.mood-1::before {
  content: '';
  position: absolute;
  inset: 18% 25% 0 25%;
  background: linear-gradient(180deg, rgba(237,231,221,0.16), rgba(237,231,221,0));
  border-top-left-radius: 50% 32%;
  border-top-right-radius: 50% 32%;
}

.mood-2 {
  grid-column: 2;
  grid-row: 1;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 40%),
    linear-gradient(155deg, #4E5C4A 0%, #2E3A2C 100%);
}
.mood-2::before {
  content: '';
  position: absolute;
  left: 12%; right: 12%; top: 22%; bottom: 18%;
  border: 1px solid rgba(237,231,221,0.25);
}

.mood-3 {
  grid-column: 3;
  grid-row: 1 / span 2;
  background:
    radial-gradient(ellipse at 50% 90%, rgba(255, 220, 180, 0.3) 0%, transparent 60%),
    linear-gradient(180deg, #D6C5A8 0%, #A28768 100%);
}
.mood-3::before {
  /* arch */
  content: '';
  position: absolute;
  left: 22%; right: 22%; top: 20%; bottom: 0;
  background: linear-gradient(180deg, rgba(31, 27, 22, 0.4), rgba(31, 27, 22, 0.15));
  border-top-left-radius: 50% 40%;
  border-top-right-radius: 50% 40%;
}

.mood-4 {
  grid-column: 2;
  grid-row: 2 / span 2;
  background:
    linear-gradient(165deg, rgba(255,255,255,0.12), transparent 40%),
    linear-gradient(180deg, #C2A98E 0%, #8B6A4F 100%);
}
.mood-4::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 38%;
  height: 1px;
  background: rgba(237,231,221,0.4);
}
.mood-4 .num-overlay {
  position: absolute;
  top: 22px;
  left: 22px;
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  color: rgba(237,231,221,0.7);
  z-index: 2;
}

.mood-5 {
  grid-column: 1;
  grid-row: 3;
  background:
    radial-gradient(ellipse at 80% 40%, rgba(255,240,220,0.3) 0%, transparent 55%),
    linear-gradient(160deg, #7A6F5C 0%, #3F382E 100%);
}

.mood-6 {
  grid-column: 3;
  grid-row: 3;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 35%),
    linear-gradient(150deg, #B89776 0%, #74573D 100%);
}
.mood-6::before {
  content: '';
  position: absolute;
  left: 38%; right: 38%; top: 30%; bottom: 30%;
  background: rgba(237,231,221,0.2);
}
