/* Per-project detail pages. Builds on css/site.css tokens & components. */

.project-page { padding: 40px 0 24px; }

.project-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; color: var(--muted);
  margin-bottom: 28px;
  transition: color .18s ease, transform .15s ease;
}
.project-back:hover { color: var(--ink); transform: translateX(-2px); }

.project-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 860px) {
  .project-hero { grid-template-columns: 1fr; gap: 32px; }
}

.project-eyebrow {
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.project-title {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.02; letter-spacing: -0.02em;
  margin: 0 0 16px;
}
.project-title em { color: var(--accent); font-style: italic; }

.project-badges {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 18px;
}

.project-url {
  font-family: var(--mono); font-size: 13px;
  color: var(--muted); margin-bottom: 20px;
}

.project-tagline {
  font-family: var(--serif);
  font-size: 24px; line-height: 1.3; color: var(--ink);
  max-width: 40ch; margin: 0 0 20px;
}

.project-desc {
  font-size: 17px; line-height: 1.65; color: var(--ink-2);
  max-width: 62ch; margin: 0 0 18px;
}
.project-desc:last-of-type { margin-bottom: 28px; }

.project-features {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
}
.project-features li {
  position: relative; padding-left: 26px;
  font-size: 15px; color: var(--ink-2);
}
.project-features li::before {
  content: "→"; position: absolute; left: 0;
  color: var(--accent); font-weight: 600;
}

.project-links {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-bottom: 8px;
}

/* media column */
.project-frame {
  background: white;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -24px rgba(22,33,58,0.28), 0 4px 12px -2px rgba(22,33,58,0.08);
  overflow: hidden;
}
.project-frame + .project-frame { margin-top: 20px; }
.project-frame .bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid #EFEAE0; background: #FAF7F1;
}
.project-frame .bar .light {
  width: 10px; height: 10px; border-radius: 999px; background: #E5DDD0;
}
.project-frame .bar .u {
  font-family: var(--mono); font-size: 10px; color: var(--muted); margin-left: 8px;
}
.project-frame img {
  width: 100%; display: block;
  aspect-ratio: 16 / 10;
  object-fit: cover; object-position: top center;
  background: var(--bg-card);
}

/* tall/phone screenshots: show small at natural ratio, never stretched */
.project-phone { margin-top: 20px; }
.project-phone img {
  display: block;
  width: 210px; max-width: 62%;
  height: auto;
  border-radius: 26px;
  box-shadow: 0 22px 44px -16px rgba(22,33,58,0.4);
}
.project-phone figcaption {
  margin-top: 10px; font-size: 12px; color: var(--muted);
}
.project-frame figcaption {
  padding: 10px 14px; font-size: 12px; color: var(--muted);
  border-top: 1px solid #EFEAE0;
}

.project-icontile {
  display: grid; place-items: center;
  padding: 48px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 20px;
}
.project-icontile img {
  width: 168px; height: 168px; border-radius: 36px;
  box-shadow: 0 20px 44px -16px rgba(22,33,58,0.35);
}

/* blocks below hero */
.project-section { margin-top: 44px; }
.project-section h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 26px; margin: 0 0 18px;
}

.product-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px; padding: 16px 0; border-top: 1px solid var(--line);
}
.product-row .pm-kind {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 2px;
}
.product-row .pm-name { font-weight: 600; }
.product-row .pm-links { display: flex; gap: 8px; flex-wrap: wrap; }

.meta-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
.meta-grid > div { background: var(--bg-card); padding: 16px 18px; }
.meta-grid .k {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 6px;
}
.meta-grid .v { font-size: 15px; }

.team-list { display: flex; flex-wrap: wrap; gap: 12px; }
.team-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border: 1px solid var(--line);
  border-radius: 14px; background: var(--bg-card);
  min-width: 240px; transition: transform .15s ease, border-color .18s ease;
}
.team-row:hover { transform: translateY(-2px); border-color: var(--line-2); }
.team-row .avatar {
  width: 40px; height: 40px; border-radius: 999px; flex: none;
  display: grid; place-items: center;
  background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 600;
}
.team-row .avatar.b { background: var(--accent); }
.team-row .who { font-weight: 600; font-size: 14px; }
.team-row .what { font-size: 12px; color: var(--muted); }

/* homepage: make app cards clickable, arrow cue */
a.app-card { cursor: pointer; }
.app-more {
  margin-top: auto; padding-top: 14px;
  font-size: 13px; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.app-card .app-more .arrow { transition: transform .2s ease; }
.app-card:hover .app-more .arrow { transform: translateX(3px); }
