/* Projects: a card grid of personal projects, then a contact form. */

/* Page shell, shared with the work/ case-study template (work.css is not in the public build). */
body { padding-bottom: 0; }
.art--banner { height: clamp(160px, 24vh, 240px); }
.art--banner::after { background: linear-gradient(180deg, transparent 0%, transparent 56%, var(--bg) 100%); }
.sheet { margin-top: 6px; }
h1 { font-size: clamp(2.1rem, 6.6vw, 3rem); margin-bottom: 10px; }
.tagline { font-size: clamp(1.05rem, 3.1vw, 1.3rem); line-height: 1.35; max-width: 34ch; }
h2 { margin: 40px 0 12px; font-family: "Rozha One", Georgia, "Times New Roman", serif; font-weight: 400; font-size: 1.42rem; line-height: 1.2; color: var(--ink); }

.projects { max-width: 900px; }
.projects > p { max-width: 56ch; }
.projects .tagline { margin-top: 4px; }

/* ---------- the plots ---------- */
.plots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.plot {
  display: flex;
  flex-direction: column;
  padding: 0 0 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.plot:hover { border-color: rgba(240, 167, 66, 0.55); transform: translateY(-2px); }
.plot > p, .plot > h3 { margin-left: 18px; margin-right: 18px; max-width: none; }
.plot > p { font-size: 15px; line-height: 1.55; margin-bottom: 14px; }

.plot-cover {
  display: block;
  border: 0;
  padding: 0;
  aspect-ratio: 1200 / 630;
  overflow: hidden;
  background: #0f1927;
}
.plot-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.plot:hover .plot-cover img { transform: scale(1.035); }

.plot .kind {
  margin-top: 16px;
  margin-bottom: 4px;
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
}
.badge {
  display: inline-block;
  margin-left: 6px;
  padding: 0 6px;
  border: 1px solid rgba(240, 167, 66, 0.5);
  border-radius: 3px;
  font-size: 10px;
  letter-spacing: 0.1em;
  vertical-align: 1px;
}
.plot h3 {
  margin-top: 0;
  margin-bottom: 6px;
  font-family: "Rozha One", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.45rem;
  line-height: 1.15;
  color: var(--ink);
}
.plot h3 a { border: 0; }
.plot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 16px;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  font-size: 13.5px !important;
}
.plot-links a { color: var(--ink-2); }
.plot-links .domain { color: var(--ink-3); border: 0; }
.plot-links .domain:hover { color: var(--amber); }

/* ---------- coming soon: no link yet ---------- */
.plot--soon .plot-cover img { filter: saturate(0.85); }
.plot--soon:hover { border-color: var(--line); transform: none; }
.plot--soon:hover .plot-cover img { transform: none; }

/* ---------- work together ---------- */
.together {
  margin-top: 56px;
  padding: 26px 24px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.together h2 {
  margin: 0 0 8px;
  font-family: "Rozha One", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 1.6rem;
  line-height: 1.2;
  color: var(--ink);
}
.together > p { max-width: 60ch; margin: 0 0 18px; font-size: 15.5px; line-height: 1.6; color: var(--ink-2); }

@media (max-width: 700px) {
  .plots { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .together { padding: 22px 18px 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .plot, .plot-cover img { transition: none; }
  .plot:hover { transform: none; }
  .plot:hover .plot-cover img { transform: none; }
}
