/* ===================================================================
   project.css — styles exclusive to case-study pages
   Inherits all tokens from style.css
=================================================================== */

/* ── Project Hero ───────────────────────────────────────────────── */
.proj-hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: flex-end;
  padding-top: 76px;
  overflow: hidden;
}

.proj-hero__bg { position: absolute; inset: 0; z-index: 0; }
.proj-hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center center;
  filter: brightness(0.7);
}
.proj-hero__scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(0deg,
      rgba(7,25,30,1.0) 0%,
      rgba(7,25,30,0.75) 35%,
      rgba(7,25,30,0.25) 70%,
      rgba(7,25,30,0.10) 100%),
    linear-gradient(90deg,
      rgba(7,25,30,0.55) 0%,
      rgba(7,25,30,0) 60%);
}

.proj-hero__inner {
  position: relative;
  z-index: 2;
  padding-bottom: 72px;
  max-width: 860px;
}

.proj-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
  transition: color 0.2s ease;
}
.proj-back:hover { color: var(--project-accent); }

.proj-hero h1 {
  font-size: clamp(36px, 5vw, 60px);
  margin: 14px 0 20px;
  line-height: 1.05;
}

.proj-hero__tagline {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--text-muted);
  max-width: 700px;
  margin-bottom: 38px;
  line-height: 1.5;
}

.proj-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 28px;
}
.proj-meta__item {
  flex: 1 1 140px;
  padding: 0 28px 0 0;
}
.proj-meta__item span {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.proj-meta__item {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

/* ── Section layout ──────────────────────────────────────────────── */
.proj-section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-soft);
}
.proj-section--alt { background: var(--bg-1); }
.proj-section--dark { background: var(--bg-1); }

.proj-two-col {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 48px;
  align-items: start;
}

.proj-label {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--project-accent);
  padding-top: 6px;
  font-weight: 600;
}

.proj-lead {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text);
}
.proj-body p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ── Features + Stack ────────────────────────────────────────────── */
.proj-feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.proj-feat-col h3 {
  font-size: 14px;
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text-faint);
  margin-bottom: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.proj-feat-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}
.proj-feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.5;
}
.proj-feat-list li::before {
  content: "";
  width: 6px; height: 6px;
  min-width: 6px;
  border-radius: 50%;
  background: var(--project-accent);
  margin-top: 8px;
}

.proj-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pill {
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: var(--bg-2);
  color: var(--text-muted);
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}
.pill:hover { border-color: var(--project-accent); color: var(--text); }

/* ── Outcome ─────────────────────────────────────────────────────── */
.proj-section--outcome {
  background:
    linear-gradient(135deg,
      rgba(10,99,255,0.08) 0%,
      rgba(7,25,30,0) 60%);
  border-bottom: none;
}
.proj-outcome {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.proj-outcome h2 {
  font-size: clamp(26px, 3.5vw, 38px);
  margin: 16px 0 22px;
}
.proj-outcome p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-muted);
}

/* ── CTA strip ───────────────────────────────────────────────────── */
.proj-cta-section {
  background: var(--bg-1);
  padding: 72px 0;
}
.proj-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.proj-cta h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin-bottom: 8px;
}
.proj-cta p { color: var(--text-muted); font-size: 15px; }

/* ── Prev / Next nav ─────────────────────────────────────────────── */
.proj-nav-strip {
  background: var(--bg);
  border-top: 1px solid var(--border-soft);
  padding: 26px 0;
}
.proj-nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--project-accent); }
.proj-all-link {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-faint);
  transition: color 0.2s;
}
.proj-all-link:hover { color: var(--text); }

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 860px) {
  .proj-two-col { grid-template-columns: 1fr; gap: 20px; }
  .proj-label { padding-top: 0; }
  .proj-feat-grid { grid-template-columns: 1fr; gap: 40px; }
  .proj-cta { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) {
  .proj-hero { min-height: 100vh; align-items: flex-end; }
  .proj-meta__item { flex: 1 1 50%; }
  .proj-nav-inner { flex-direction: column; gap: 16px; text-align: center; }
}
