/* ═══════════════════════════════════════════════════════════
   PROJECT DETAIL PAGE
   ═══════════════════════════════════════════════════════════ */

/* ─── PROJECT HERO ──────────────────────────────────────── */
.proj-hero {
  position: relative;
  padding: 160px 0 100px;
  background: var(--off-white);
  overflow: hidden;
}
.proj-hero__inner {
  max-width: 800px;
}
.proj-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}
.proj-hero__title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(3rem, 6vw, 5rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.05;
  margin-bottom: 20px;
}
.proj-hero__subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 32px;
}
.proj-hero__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* ─── OPENER IMAGE / VIDEO ───────────────────────────────── */
.proj-opener {
  width: 100%;
  background: var(--light);
  padding: 0;
}
.proj-opener__img {
  width: 100%;
  height: auto;
  display: block;
}
.proj-opener--sm {
  padding: 24px 0;
  background: var(--off-white);
}
.proj-opener__img--sm {
  width: 30%;
  margin: 0 auto;
  border-radius: var(--radius-md);
}
.proj-opener__video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* ─── PROJECT OVERVIEW ───────────────────────────────────── */
.proj-overview {
  padding: 100px 0;
}
.proj-overview__grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 80px;
  align-items: start;
}
.proj-overview__centered {
  text-align: center;
}
.proj-overview__centered .proj-overview__text {
  text-align: left;
}
.proj-section__title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-heading);
  line-height: 1.2;
  margin: 12px 0 24px;
}
.proj-overview__text {
  font-size: .98rem;
  color: var(--text-body);
  line-height: 1.8;
  margin-bottom: 16px;
}
.proj-meta-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.proj-meta__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.proj-meta__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.proj-meta__label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-muted);
}
.proj-meta__value {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-heading);
  line-height: 1.5;
}

/* ─── DESKTOP MOCKUPS ────────────────────────────────────── */
.proj-mockups {
  padding: 100px 0;
  background: var(--off-white);
}
.proj-mockups__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}
.proj-mockup__frame {
  position: relative;
}
.proj-mockup__mac {
  width: 100%;
  display: block;
  position: relative;
  z-index: 2;
}
.proj-mockup__screen {
  position: absolute;
  top: 7%;
  left: 12.5%;
  width: 75%;
  z-index: 1;
  border-radius: 2px;
}

/* ─── VIDEO ──────────────────────────────────────────────── */
.proj-video {
  padding: 100px 0;
}
.proj-video__embed {
  margin-top: 48px;
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.proj-video__embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  border: none;
}

/* ─── DEVELOPMENT PROCESS ────────────────────────────────── */
.proj-process {
  padding: 100px 0;
  background: var(--off-white);
}
.proj-process__step {
  margin-top: 80px;
  padding-top: 80px;
  border-top: 1px solid var(--border);
}
.proj-process__step:first-of-type {
  margin-top: 56px;
  padding-top: 0;
  border-top: none;
}
.proj-process__step-header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 40px;
}
.proj-process__step-num {
  font-family: 'Syne', sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  opacity: .2;
  line-height: 1;
  flex-shrink: 0;
}
.proj-process__step-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 700;
  color: var(--text-heading);
}
.proj-process__step-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.proj-process__step-body--center {
  align-items: center;
}
.proj-process__text p {
  font-size: .98rem;
  color: var(--text-body);
  line-height: 1.8;
}
.proj-process__img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}
.proj-process__img--wide {
  width: 100%;
}
.proj-process__img--portrait {
  max-width: 420px;
}
.proj-process__two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* ─── PDF / DOCUMENTATION ────────────────────────────────── */
.proj-pdf {
  width: 100%;
}
.proj-pdf__embed {
  width: 100%;
  height: 80vh;
  border: none;
  display: block;
}
.proj-pdf__inner {
  font-size: 0;
  padding: 0;
}
.proj-pdf__page {
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}

/* ─── SCROLL TO TOP ──────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  z-index: 200;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #0D0D1A;
  color: var(--white);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .3s ease, transform .3s ease, background .2s ease;
  pointer-events: none;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.scroll-top:hover {
  background: #1a1a2e;
  transform: translateY(-2px);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .proj-overview__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .proj-mockups__grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
  .proj-process__two-col {
    grid-template-columns: 1fr;
  }
  .proj-process__img--portrait {
    max-width: 100%;
  }
}
@media (max-width: 600px) {
  .proj-hero {
    padding: 120px 0 72px;
  }
  .proj-overview,
  .proj-mockups,
  .proj-video,
  .proj-process {
    padding: 64px 0;
  }
}
