/* ─── PROJECT PAGE ─── */

/* Hero */
.project-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  padding: 0 60px 80px;
  overflow: hidden;
}

.project-hero-bg {
  position: absolute;
  inset: 0;
}

/* Shared with portfolio cards — same image, different context */
.project-hero-bg.bg-1 { background-color: #1E2D27; background-image: url('../images/portfolio/divina-pizzeria.jpg'); background-size: cover; background-position: center; }
.project-hero-bg.bg-2 { background-color: #2A2010; background-image: url('../images/portfolio/givaro.jpg'); background-size: cover; background-position: center; }
.project-hero-bg.bg-3 { background-color: #1A2535; background-image: url('../images/portfolio/divina-beach.jpg'); background-size: cover; background-position: center; }
.project-hero-bg.bg-4 { background-color: #2D1A10; background-image: url('../images/portfolio/trullo.jpg'); background-size: cover; background-position: center; }
.project-hero-bg.bg-5 { background-color: #1A2820; background-image: url('../images/portfolio/kuma.jpg'); background-size: cover; background-position: center; }
.project-hero-bg.bg-6 { background-color: #28201A; background-image: url('../images/portfolio/opunzia.jpg'); background-size: cover; background-position: center; }

.project-hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top,
    rgba(8,8,8,.88) 0%,
    rgba(8,8,8,.35) 60%,
    rgba(8,8,8,.2) 100%);
}

.project-hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(247,244,239,.55);
  text-decoration: none;
  margin-bottom: 48px;
  transition: color .3s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  padding: 8px 0;
}

.back-link:hover { color: var(--ink-inv); }

.project-cat {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green-pale);
  margin-bottom: 20px;
  display: block;
}

.project-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink-inv);
  margin-bottom: 20px;
}

.project-tagline {
  font-family: var(--serif);
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  color: rgba(247,244,239,.7);
  line-height: 1.5;
}

.project-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--green-pale);
  padding: 6px 14px;
  margin-top: 24px;
}

/* Body layout */
.project-body {
  background: var(--bg);
  padding: 100px 60px;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}

/* Story */
.project-story {}

.project-story-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 32px;
}

.project-story-tag::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--green);
}

.project-story h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.5vw, 2.4rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 36px;
}

.project-story p {
  font-size: .92rem;
  color: var(--gray-2);
  line-height: 1.85;
  margin-bottom: 24px;
}

.project-story p:last-child { margin-bottom: 0; }

/* Timeline */
.project-timeline {
  margin-top: 52px;
  border-top: 1px solid var(--border);
  padding-top: 48px;
}

.timeline-title {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.timeline-title::before {
  content: '';
  width: 24px; height: 1px;
  background: var(--green);
}

.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

.timeline-list::before {
  content: '';
  position: absolute;
  top: 8px; left: 0;
  width: 1px;
  height: calc(100% - 8px);
  background: var(--border);
}

.timeline-item {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 24px;
  padding: 0 0 32px 28px;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -4px; top: 6px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid var(--bg);
}

.timeline-year {
  font-family: var(--serif);
  font-size: .95rem;
  font-weight: 300;
  color: var(--green);
  line-height: 1.4;
}

.timeline-text {
  font-size: .85rem;
  color: var(--gray-2);
  line-height: 1.65;
}

/* Sidebar */
.project-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 36px 32px;
}

.sidebar-card-title {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-card-title::before {
  content: '';
  width: 20px; height: 1px;
  background: var(--green);
}

.sidebar-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sidebar-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: .85rem;
  color: var(--ink-2);
  line-height: 1.55;
}

.sidebar-list li::before {
  content: '';
  flex-shrink: 0;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-top: 7px;
}

/* Project CTA */
.project-cta {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 80px 60px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 80px;
  align-items: center;
}

.project-cta-text {}

.project-cta-text .section-tag { margin-bottom: 20px; }

.project-cta-text h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 2.5vw, 2.6rem);
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 20px;
}

.project-cta-text h2 em {
  font-style: italic;
  color: var(--green);
}

.project-cta-text p {
  font-size: .9rem;
  color: var(--gray-2);
  line-height: 1.75;
}

.project-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  min-width: 200px;
}

/* Next project nav */
.project-next {
  background: var(--bg-inv);
  padding: 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  transition: opacity .3s;
}

.project-next:hover { opacity: .88; }

.project-next-label {
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(247,244,239,.4);
  display: block;
  margin-bottom: 10px;
}

.project-next-name {
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--ink-inv);
}

.project-next-arrow {
  width: 48px; height: 48px;
  border: 1px solid rgba(247,244,239,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-inv);
  flex-shrink: 0;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 1024px) {
  .project-hero { padding: 0 32px 60px; }
  .project-body {
    grid-template-columns: 1fr;
    gap: 52px;
    padding: 80px 32px;
  }
  .project-sidebar { position: static; }
  .project-cta { grid-template-columns: 1fr; gap: 36px; padding: 60px 32px; }
  .project-cta-actions { min-width: unset; }
  .project-next { padding: 40px 32px; }
}

@media (max-width: 640px) {
  .project-hero { padding: 0 20px 52px; min-height: 60svh; }
  .project-hero h1 { font-size: clamp(2.2rem, 8vw, 2.8rem); }
  .project-tagline { font-size: 1rem; }
  .back-link { margin-bottom: 32px; }
  .project-body { padding: 60px 20px; }
  .project-cta { padding: 52px 20px; }
  .project-cta-actions { width: 100%; }
  .project-cta-actions .btn-primary,
  .project-cta-actions .btn-ghost { width: 100%; justify-content: center; }
  .project-next { padding: 32px 20px; flex-direction: column; gap: 24px; align-items: flex-start; }
  .project-next-name { font-size: 1.4rem; }
  .project-timeline { margin-top: 40px; padding-top: 36px; }
  .timeline-item { grid-template-columns: 72px 1fr; gap: 16px; }
}
