/* Project pages (case studies and AI Lab tools) — loaded after v2.css */

.project-hero { padding: 72px 0 64px; }
.cs-back { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.cs-back:hover { color: var(--text); }
.project-badge {
  display: flex; align-items: center; gap: 10px;
  margin: 40px 0 14px; font-size: 14px; font-weight: 500; color: var(--text);
}
.project-badge i { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.project-hero h1 { font-size: 42px; line-height: 1.14; font-weight: 500; letter-spacing: -0.02em; max-width: 20ch; }
.project-hero .lede { max-width: 66ch; }
.project-hero .hero-actions { margin-top: 28px; }

/* One cover image per project, capped so the page never turns into a long scroll */
.project-cover { margin: 44px 0 0; }
.project-cover img {
  width: 100%; max-height: 460px; object-fit: cover; object-position: top center;
  border-radius: var(--radius); background: #e7e5df;
}

.project-facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px;
  margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line);
}
.project-facts dt { font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.project-facts dd { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--text); }

/* Challenge / Strategy / Results summary */
.summary-band { padding: 72px 0; }
.summary { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start; }
.summary + .summary { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.summary p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 62ch; }
.summary b, .summary strong { color: var(--text); font-weight: 600; }

.sec-label {
  margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: .1em;
  text-transform: uppercase; color: var(--dim);
}

/* Body sections */
.project-section { padding: 80px 0; }
.project-section h2 { font-size: 32px; line-height: 1.2; font-weight: 500; letter-spacing: -0.015em; }
.sec-body { margin-top: 24px; }
.sec-body p { color: var(--muted); font-size: 16px; line-height: 1.75; max-width: 68ch; }
.sec-body p + p { margin-top: 16px; }
.sec-body strong, .sec-body b { color: var(--text); font-weight: 600; }
.sec-body em { font-style: normal; color: var(--dim); }
.sec-body a { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.sec-body ul { margin: 22px 0 0; padding-left: 20px; display: grid; gap: 12px; max-width: 68ch; }
.sec-body li { color: var(--muted); font-size: 16px; line-height: 1.7; }
.sec-body li::marker { color: var(--dim); }
.sec-body h3 { font-size: 19px; font-weight: 500; line-height: 1.35; margin-top: 28px; }
.sec-body ul + p, .sec-body p + h3 { margin-top: 18px; }

.pull-quote {
  margin: 36px 0 0; padding: 26px 30px; border-radius: var(--radius);
  background: var(--card); border-left: 3px solid var(--accent, #64748b);
  font-size: 20px; line-height: 1.45; font-weight: 500; color: var(--text); max-width: 62ch;
}

/* Numbered pillars (former process steps) */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.pillar { background: var(--card); border-radius: var(--radius); padding: 26px 28px; }
.pillar .num { font-size: 13px; font-weight: 600; color: var(--dim); }
.pillar h3 { margin-top: 10px; font-size: 18px; font-weight: 500; line-height: 1.35; }
.pillar p { margin-top: 10px; font-size: 15px; line-height: 1.65; }

/* Highlight stats (former metric grid) */
.highlights { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 8px; }
.highlight { background: var(--card); border-radius: var(--radius); padding: 24px 26px; }
.highlight strong { display: block; font-size: 28px; font-weight: 500; letter-spacing: -0.01em; }
.highlight span:not(.ev-tag) { display: block; margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.highlights + p, .highlights + .attribution { margin-top: 24px; }
.attribution { font-size: 15px; }

.limits { max-width: 68ch; }
.measure { max-width: 68ch; }

/* Next projects */
.next-band { padding: 64px 0; }
.next-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.next-card {
  display: block; background: var(--card); border-radius: var(--radius); padding: 24px 26px;
  transition: background .2s, transform .2s;
}
.next-card:hover { background: var(--card-hover); transform: translateY(-2px); }
.next-meta { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.next-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }
.next-card strong { display: block; margin-top: 12px; font-size: 19px; font-weight: 500; line-height: 1.35; }

@media (max-width: 860px) {
  .pillars, .next-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .project-hero { padding: 48px 0 48px; }
  .project-hero h1 { font-size: 31px; }
  .project-cover img { max-height: 260px; }
  .summary { grid-template-columns: 1fr; gap: 10px; }
  .project-section { padding: 56px 0; }
  .project-section h2 { font-size: 26px; }
  .pull-quote { font-size: 18px; padding: 22px 24px; }
}

/* ---------- Depth: sub-sections, quotes, screens ---------- */
.sub-heading {
  margin-top: 44px; font-size: 22px; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em;
}
.sub-heading + p { margin-top: 12px; }

.quote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.quote {
  margin: 0; background: var(--card); border-radius: var(--radius); padding: 26px 28px;
  border-left: 3px solid var(--accent, #64748b);
}
.quote blockquote { margin: 0; font-size: 17px; line-height: 1.55; color: var(--text); }
.quote figcaption { margin-top: 14px; font-size: 13px; color: var(--dim); }

.decision-list { margin-top: 20px; display: grid; gap: 14px; }
.decision-list li { color: var(--muted); }

/* Device screens — one fixed size everywhere, three to a row */
.screens { margin-top: 32px; }
.screen-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.screen-row figure { margin: 0; display: grid; justify-items: center; gap: 12px; }
.phones .screen-row img {
  width: 100%; max-width: 230px; aspect-ratio: 375 / 812; object-fit: cover; object-position: top center;
  border-radius: 20px; background: #e7e5df;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.screen-row figcaption { font-size: 13px; color: var(--dim); text-align: center; }
.screen-caption { margin-top: 20px; font-size: 14px; line-height: 1.7; color: var(--muted); max-width: 68ch; }

.artefact-wide { margin: 32px 0 0; }
.artefact-wide img {
  width: 100%; max-height: 380px; object-fit: cover; object-position: top center;
  border-radius: var(--radius); background: #e7e5df;
}
.artefact-wide figcaption { margin-top: 12px; font-size: 14px; line-height: 1.6; color: var(--muted); max-width: 68ch; }

@media (max-width: 860px) {
  .quote-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .screen-row { grid-template-columns: 1fr; justify-items: center; }
  .phones .screen-row img { max-width: 260px; }
  .artefact-wide img { max-height: 240px; }
}
