/* ── project hero ── */

#project-hero {
  border-top: none;
  padding: 64px 0 80px;
}

.back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.05em;
  color: #888;
  margin-bottom: 48px;
}

.back-link:hover {
  color: #4D4D4D;
  text-decoration: none;
}

.back-arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.back-link:hover .back-arrow {
  transform: translateX(-4px);
}

.project-title {
  font-size: clamp(32px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.project-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

.project-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.meta-label {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #888;
}

.meta-value {
  font-size: 14px;
  font-weight: 300;
}

.project-header-content {
  display: inline-flex;
  flex-direction: column;
  align-items: stretch;
}

.project-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.project-link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border: 1px solid #4D4D4D;
  font-family: inherit;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.05em;
  color: #4D4D4D;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.project-link-btn:hover {
  background: #4D4D4D;
  color: #F5EBE1;
  text-decoration: none;
}

/* ── section heading ── */

.section-heading {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 40px;
}

/* ── about brand ── */

#project-about .about-text {
  max-width: 640px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#project-about p {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: #444;
}

/* ── tasks ── */

.tasks-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.task-item {
  border-top: 1px solid #7A7A7A;
  padding: 24px 0;
  display: flex;
  gap: 24px;
}

.task-item:first-child {
  border-top: none;
  padding-top: 0;
}

.task-index {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #888;
  min-width: 24px;
  flex-shrink: 0;
  padding-top: 2px;
}

.task-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task-name {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.5;
}

.task-note {
  font-size: 13px;
  font-weight: 300;
  color: #888;
  line-height: 1.6;
}

/* ── stages ── */

.stage {
  padding: 80px 0;
  border-top: 1px solid #7A7A7A;
}

.stage-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 16px;
}

.stage-index {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: #888;
  flex-shrink: 0;
}

.stage-title {
  font-size: 20px;
  font-weight: 300;
}

.stage-desc {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
  color: #555;
  max-width: 640px;
  margin-bottom: 24px;
}

.stage-screens {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── screen placeholders (fade-in) ── */

.screen-placeholder {
  width: 100%;
  aspect-ratio: 16 / 10;
  background-color: #DDD5CC;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.screen-placeholder.visible {
  opacity: 1;
  transform: translateY(0);
}

.screen-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

/* ── slider ── */

.slider-wrap {
  position: relative;
}

.slider-viewport {
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 16px;
  transition: transform 0.35s ease;
}

.slider-track .screen-placeholder {
  flex: 0 0 auto;
}

.slider-controls {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.slider-arrow {
  background: none;
  border: 1px solid #7A7A7A;
  color: #4D4D4D;
  font-family: inherit;
  font-size: 14px;
  font-weight: 300;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.slider-arrow:hover:not(:disabled) {
  background: #4D4D4D;
  color: #F5EBE1;
}

.slider-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}

/* ── lightbox ── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 200;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
  cursor: crosshair;
}

.lightbox-magnifier {
  position: fixed;
  width: 300px;
  height: 190px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  pointer-events: none;
  display: none;
  background-repeat: no-repeat;
  z-index: 210;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3);
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  font-family: inherit;
}

.lightbox-close:hover { opacity: 1; }

.lightbox-prev,
.lightbox-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  font-weight: 300;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  font-family: inherit;
  padding: 16px;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover { opacity: 1; }

/* ── responsive ── */

@media (max-width: 1024px) {
  .stage {
    padding: 48px 0;
  }

  .section-heading {
    margin-bottom: 32px;
  }

  #project-hero {
    padding: 40px 0 48px;
  }
}

@media (max-width: 768px) {
  .stage-screens {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project-meta {
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .stage {
    padding: 40px 0;
  }

  .stage-screens {
    grid-template-columns: 1fr;
  }
}
