/* ══════════════════════════════════════
   SHERRY SCRAWLS — PROJECTS (LISTING + DETAIL)
══════════════════════════════════════ */

/* ── HERO (shared with services/about pattern) ── */
#proj-hero {
  min-height: 60vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 70px;
  background: var(--black);
}
.proj-hero-inner {
  width: 92%;
  max-width: 1600px;
  margin: 0 auto;
  padding: 5rem 1rem 4rem;
  position: relative;
  z-index: 2;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: rgba(255,255,255,0.45); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--lime); }
.breadcrumb .bc-current { color: var(--lime); }

.proj-hero-headline {
  font-family: var(--font-head);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 1.25rem;
  max-width: 20ch;
}
.proj-hero-sub {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 60ch;
  margin-bottom: 0;
}

/* ── PROJECTS GRID (listing page) ── */
#proj-grid-section {
  background: var(--black2);
  position: relative;
}
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 3rem;
  background: rgba(255,255,255,0.06);
}
.proj-card {
  background: var(--black);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: background 0.3s;
}
.proj-card:hover { background: rgba(0,40,220,0.06); }

/* ── CSS SCREENSHOT PLACEHOLDER ──
   Swap this block for a real <img src="images/projects/xxx.jpg">
   whenever a screenshot is ready — no other markup needs to change. */
.thumb-placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(198,220,0,0.07) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #16202b 0%, #0d1419 60%, #101820 100%);
  border-bottom: 2px solid rgba(198,220,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}
.thumb-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,40,220,0.12), transparent 55%);
}
.thumb-placeholder-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  padding: 1rem;
  text-align: center;
}
.thumb-mono {
  width: 52px;
  height: 52px;
  border: 2px solid rgba(198,220,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--lime);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.thumb-label {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.thumb-label em {
  color: rgba(198,220,0,0.7);
  font-style: normal;
}
.thumb-placeholder--lg { aspect-ratio: 21 / 10; }
.thumb-placeholder--lg .thumb-mono { width: 72px; height: 72px; font-size: 1.4rem; }

.proj-card-body {
  padding: 1.75rem 1.75rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.proj-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}
.proj-tag {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--lime);
  border: 1px solid rgba(198,220,0,0.35);
  padding: 0.3rem 0.6rem;
}
.proj-tag--blue { color: #6f83ff; border-color: rgba(0,40,220,0.4); }

.proj-card h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 0.6rem;
  line-height: 1.25;
}
.proj-card p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.proj-card-link {
  margin-top: auto;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.proj-card-link span { transition: transform 0.2s; }
.proj-card:hover .proj-card-link span { transform: translateX(4px); }

/* ── HOMEPAGE FEATURED PROJECTS (compact variant) ── */
#featured-projects { background: var(--black2); position: relative; }
#featured-projects::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--lime), var(--blue));
}
.fp-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.fp-head .btn { flex-shrink: 0; }

/* ── PROJECT DETAIL PAGE ── */
#proj-shot-section { background: var(--black); padding-top: 0; padding-bottom: 4rem; }
.proj-shot-wrap { margin-top: -3rem; position: relative; z-index: 3; }

#proj-meta { background: var(--black); border-top: 1px solid rgba(255,255,255,0.07); border-bottom: 1px solid rgba(255,255,255,0.07); }
.proj-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}
.proj-meta-item span {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.5rem;
}
.proj-meta-item strong {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--white);
  text-transform: uppercase;
}
.proj-meta-item a.strong-link {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--lime);
  text-decoration: none;
}
.proj-meta-item a.strong-link:hover { text-decoration: underline; }

#proj-overview { background: var(--black2); }
.proj-overview-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
}
.proj-overview-col h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1rem;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}
.proj-overview-col p {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

#proj-scope { background: var(--black); }
.proj-scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  margin-top: 3rem;
  background: rgba(255,255,255,0.06);
}
.proj-scope-card {
  background: var(--black2);
  padding: 2.5rem;
}
.proj-scope-card h3 {
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 1.1rem;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--lime);
  display: inline-block;
}
.proj-scope-card ul { list-style: none; }
.proj-scope-card li {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}
.proj-scope-card li:last-child { border-bottom: none; }
.proj-scope-card li::before { content: '▸'; color: var(--lime); flex-shrink: 0; margin-top: 0.15rem; }

#proj-cta { background: var(--black2); text-align: center; }
.proj-cta-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.proj-cta-inner .section-heading { text-align: center; }
.proj-cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; }

#proj-more { background: var(--black); }

/* ── DELIVERABLES GALLERY (real image grid for projects with photography/mockups on hand) ── */
#proj-gallery { background: var(--black2); }
.proj-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin-top: 3rem;
  background: rgba(255,255,255,0.06);
}
.proj-gallery-item {
  background: var(--black);
  overflow: hidden;
  position: relative;
}
.proj-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 4 / 3;
  transition: transform 0.4s;
}
.proj-gallery-item:hover img { transform: scale(1.04); }
.proj-gallery-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.8rem 1rem;
  background: linear-gradient(0deg, rgba(0,0,0,0.75), transparent);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .proj-grid { grid-template-columns: repeat(2, 1fr); }
  .proj-overview-grid { grid-template-columns: 1fr; gap: 2rem; }
  .proj-scope-grid { grid-template-columns: 1fr; }
  .proj-meta-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .proj-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .proj-grid { grid-template-columns: 1fr; }
  .proj-meta-grid { grid-template-columns: 1fr; }
  .proj-gallery-grid { grid-template-columns: 1fr; }
}
