.projects-page { background: var(--white); overflow: hidden; }

.projects-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.projects-intro { max-width: 420px; }

.projects-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 40px;
}

.projects-progress__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: var(--radius-pill);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  flex: none;
}

.projects-progress__bar {
  flex: 1;
  height: 2px;
  background: #e4e1d9;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}

.projects-progress__fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 14%;
  background: var(--ink);
  border-radius: 2px;
  transition: width 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.projects-progress__total {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  letter-spacing: 0.1em;
}

.projects-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 8px;
  scrollbar-width: none;
}

.projects-track::-webkit-scrollbar { display: none; }

.project-card {
  flex: 0 0 calc(50% - 12px);
  min-width: 260px;
  scroll-snap-align: start;
  position: relative;
  min-height: 470px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--dark);
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.project-card__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16, 14, 12, 0.72) 0%, rgba(16, 14, 12, 0.12) 34%, rgba(16, 14, 12, 0.55) 66%, rgba(12, 11, 9, 0.95) 100%);
}

.project-card__ghost-num {
  position: absolute;
  right: 8px;
  bottom: -14px;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(120px, 13vw, 180px);
  line-height: 1;
  color: rgba(255, 255, 255, 0.11);
  pointer-events: none;
}

.project-card__top {
  position: relative;
  z-index: 3;
  padding: 26px 26px 0;
}

.project-card__cat {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(17px, 1.5vw, 22px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.project-card__bottom {
  position: relative;
  z-index: 3;
  padding: 0 26px 26px;
}

.project-card h3 {
  font-family: var(--font-display);
  font-size: 23px;
  font-weight: 700;
  line-height: 1.1;
}

.project-card__scope {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.75);
  margin: 10px 0 18px;
  line-height: 1.5;
  max-width: 36ch;
}

.project-card__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  padding: 5px 5px 5px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
}

.project-card__btn:hover {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08));
  color: var(--white);
}

.projects-controls {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(20px, 2.4vw, 30px);
}

.modal__head h3 {
  font-family: var(--font-display);
  color: var(--white);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 700;
  line-height: 1.1;
  margin-top: 14px;
}

.modal__gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.modal__gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal__gallery-cell {
  overflow: hidden;
  background: #22201c;
  aspect-ratio: 1;
}

.modal__gallery-cell--wide {
  grid-column: span 2;
  grid-row: span 2;
}

.modal__note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 18px;
}
