/* Project detail pages — additions on top of service-page.css */

.svc-detail-hero--project {
  padding: 96px 0 64px;
}
.svc-detail-hero--project .svc-detail-hero__grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: stretch;
}
@media (max-width: 900px) {
  .svc-detail-hero--project .svc-detail-hero__grid { grid-template-columns: 1fr; }
}

.proj-hero-figure {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  min-height: 280px;
}
.proj-hero-figure img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proj-hero-figure__placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.proj-hero-figure__placeholder svg {
  width: 96px;
  height: 96px;
  stroke: rgba(255,255,255,0.22);
  fill: none;
  stroke-width: 1;
}

/* Inline figures inside sections */
.proj-figure {
  margin: 32px 0 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--pac-line-200);
  background: white;
}
.proj-figure img {
  display: block;
  width: 100%;
  height: auto;
}
.proj-figure figcaption {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pac-ink-500);
  padding: 12px 16px;
  border-top: 1px solid var(--pac-line-200);
}

/* Stack-spec list inside Approach */
.proj-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--pac-line-200);
  border: 1px solid var(--pac-line-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 24px 0 0;
}
@media (max-width: 600px) { .proj-stack { grid-template-columns: 1fr; } }
.proj-stack > div {
  background: white;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.proj-stack dt {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pac-ink-500);
}
.proj-stack dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--pac-ink-900);
  font-weight: 500;
}

/* Pull quote */
.proj-quote {
  margin: 24px 0 0;
  padding: 28px 32px;
  border-left: 3px solid var(--accent);
  background: var(--pac-mist-50);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.proj-quote p {
  font-size: 19px;
  line-height: 1.5;
  color: var(--pac-blue-900);
  letter-spacing: -0.01em;
  margin: 0;
  font-style: italic;
  font-weight: 500;
  max-width: none;
}

/* Visible [TODO] block for unfinished detail pages */
.proj-todo {
  margin: 24px 0 0;
  padding: 20px 24px;
  background: #fff8e1;
  border: 1px dashed #d4a017;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.55;
  color: #6b4f00;
}
.proj-todo strong {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b8860b;
  margin-bottom: 6px;
}

/* Related projects rail uses the .project-card visuals from projects.html
   — re-declared here so detail pages don't depend on projects.html styles */
.proj-rail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}
@media (max-width: 900px) { .proj-rail-grid { grid-template-columns: 1fr; } }

.proj-rail-card {
  background: white;
  border: 1px solid var(--pac-line-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: all var(--dur-base) var(--ease);
}
.proj-rail-card:hover {
  border-color: var(--pac-blue-900);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(7, 47, 77, 0.08);
}
.proj-rail-card__visual {
  aspect-ratio: 16 / 9;
  background: var(--pac-blue-900);
  position: relative;
  overflow: hidden;
}
.proj-rail-card__visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proj-rail-card__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px) 0 0/40px 40px,
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px) 0 0/40px 40px;
}
.proj-rail-card__visual--photo::before { display: none; }
.proj-rail-card__cat {
  position: absolute;
  top: 14px; left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: white;
  z-index: 2;
}
.proj-rail-card__cat .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.proj-rail-card__body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.proj-rail-card h4 {
  font-size: 17px;
  font-weight: 600;
  color: var(--pac-blue-900);
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.proj-rail-card__sum {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--pac-ink-700);
  margin: 0;
}
