/* Shared scaffold for project subdomain pages. Each project sets --proj-accent
   and --proj-accent-ink on :root, and may override further in its own stylesheet. */

.project-nav .container { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--ink-500);
  text-decoration: none;
}
.back-link:hover { color: var(--ink-900); }
.back-link .brand-chip { width: 22px; height: 22px; border-radius: 6px; }
.project-nav .proj-name { font-family: var(--font-display); font-weight: 700; }
.project-nav .proj-name .dot { color: var(--proj-accent); }

.proj-links { display: flex; align-items: center; gap: 22px; }
.proj-links > a { font-size: 0.86rem; font-weight: 500; color: var(--ink-500); text-decoration: none; }
.proj-links > a:hover { color: var(--ink-900); }

.p-hero {
  padding: clamp(48px, 8vw, 88px) 0 clamp(40px, 6vw, 64px);
}
.p-hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 940px) { .p-hero .container { grid-template-columns: 1fr; } }

.p-hero .eyebrow { color: var(--proj-accent); }
.p-hero .eyebrow::before { background: var(--proj-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--proj-accent) 25%, transparent); }
.p-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn-accent { background: var(--proj-accent); color: #fff; box-shadow: 0 8px 20px -8px color-mix(in srgb, var(--proj-accent) 65%, transparent); }
.btn-accent:hover { filter: brightness(1.08); color: #fff; }

.p-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 940px) { .p-features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .p-features { grid-template-columns: 1fr; } }
.p-feature { padding: 24px 22px; border-top: 3px solid var(--proj-accent); }
.p-feature h3 { font-size: 1.02rem; margin-bottom: 8px; }
.p-feature p { font-size: 0.92rem; color: var(--ink-700); margin: 0; }

.p-stack-row { display: flex; flex-wrap: wrap; gap: 10px; }
.stack-pill {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--paper-100);
  color: var(--ink-700);
  border: 1px solid var(--ink-100);
}

.p-cta {
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius-l);
  padding: clamp(36px, 6vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.p-cta h2 { color: #fff; margin-bottom: 6px; }
.p-cta p { color: var(--ink-300); margin: 0; }

.p-footer {
  padding: 32px 0;
  border-top: 1px solid var(--ink-100);
  color: var(--ink-500);
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.p-footer a { color: var(--ink-500); }
.p-footer a:hover { color: var(--proj-accent); }

/* ---------- device mock frames used in hero visuals ---------- */
.mock-phone {
  justify-self: center;
  width: min(280px, 100%);
  border-radius: 34px;
  padding: 14px;
  background: linear-gradient(160deg, #1b2440, #0c1224);
  box-shadow: 0 30px 60px -24px rgba(10,20,40,0.45);
}
.mock-phone-screen {
  background: var(--paper-0);
  border-radius: 22px;
  padding: 20px 16px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mock-window {
  border-radius: var(--radius-m);
  overflow: hidden;
  box-shadow: 0 24px 50px -20px rgba(10,20,40,0.4);
  background: #0d1117;
}
.mock-window-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: rgba(255,255,255,0.04); }
.mock-window-bar span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.mock-window pre {
  margin: 0;
  padding: 20px 18px 24px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #C9D1D9;
  overflow-x: auto;
}
