/* Case-study page for "Zaypher".
   Reuses the main site's design tokens, fonts and section/card
   conventions (style.css) — this file only adds page-specific
   layout: hero, goal/tool cards, workflow timeline, split sections,
   visual identity showcase and CTA blocks. */

/* ---------- HERO ---------- */
.zp-hero {
  background: var(--bg-dark);
  padding: 140px 0 100px;
  text-align: center;
}
.zp-eyebrow {
  color: var(--text-dark-2);
  font-size: 17px;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.zp-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-stretch: 85%;
  font-size: clamp(48px, 9vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--text-dark-1);
  margin: 0 0 20px;
}
.zp-subtitle {
  max-width: 680px;
  margin: 0 auto 20px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.4;
  color: var(--text-dark-1);
  font-weight: 500;
}
.zp-desc {
  max-width: 700px;
  margin: 0 auto 16px;
  font-size: clamp(15px, 1.6vw, 17px);
  line-height: 1.6;
  color: var(--text-dark-2);
}
.zp-desc:last-of-type { margin-bottom: 40px; }
.zp-hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.zp-btn-primary,
.zp-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.zp-btn-primary {
  background: var(--mint);
  color: #06281d;
}
.zp-btn-primary:hover { transform: translateY(-2px); background: var(--mint-2); }
.zp-btn-secondary {
  background: transparent;
  color: var(--text-dark-1);
  border: 1px solid rgba(255,255,255,.25);
}
.zp-btn-secondary:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.5); }
.zp-hero-shot {
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 40px 80px rgba(0,0,0,.5);
}

/* ---------- OVERVIEW / RESULT COPY ---------- */
.zp-copy {
  max-width: 760px;
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-light-2);
}
.zp-copy p { margin: 0 0 20px; }
.zp-copy p:last-child { margin-bottom: 0; }
.zp-copy--dark { color: var(--text-dark-2); }

/* ---------- CARD GRIDS (goals / learnings) ---------- */
.zp-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.zp-card {
  background: #fafafa;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  padding: 24px;
}
.zp-card h3 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 10px;
}
.zp-card p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-light-2);
  margin: 0;
}

/* ---------- WORKFLOW TIMELINE ---------- */
.zp-workflow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  align-items: stretch;
}
.zp-workflow-step {
  position: relative;
  padding: 0 14px;
  text-align: center;
}
.zp-workflow-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -2px;
  top: 22px;
  color: var(--border-soft);
  font-size: 18px;
}
.zp-workflow-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  border-radius: 50%;
  border: 1px solid var(--border-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-light-1);
  background: #fafafa;
}
.zp-workflow-step h3 {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

/* ---------- SPLIT SECTIONS ---------- */
.zp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.zp-split--reverse .zp-split-text { order: 2; }
.zp-split--reverse .zp-split-media { order: 1; }
.zp-split-text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-light-2);
  margin: 0;
}
.section--dark .zp-split-text p { color: var(--text-dark-2); }
.zp-split-media { display: flex; justify-content: center; }
.zp-split-shot {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-lg);
}

/* ---------- TOOLS GRID ---------- */
.zp-tools-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  align-items: stretch;
}
.zp-tools-grid .zp-card h3 { color: var(--text-light-1); }

/* ---------- VISUAL IDENTITY ---------- */
.zp-identity {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: center;
}
.zp-identity-shot {
  width: 280px;
  max-width: 100%;
  display: block;
}
.zp-highlight-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.zp-highlight-list li {
  padding: 8px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light-1);
}

/* ---------- EXPLORE / CTA ---------- */
.zp-explore {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.zp-explore-text p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-dark-2);
  margin: 0 0 32px;
}
.zp-explore-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.zp-explore-shot {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* ---------- ROLE TAGS ---------- */
.zp-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.zp-tag {
  padding: 8px 16px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-light-1);
}

/* ---------- NEXT PROJECT ---------- */
.zp-next-grid {
  display: grid;
  grid-template-columns: minmax(280px, 420px);
  gap: 20px;
}
.zp-next-card {
  display: block;
  background: #fafafa;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: box-shadow .3s ease, transform .3s ease;
}
.zp-next-card:hover { box-shadow: 0 16px 32px rgba(0,0,0,.1); transform: translateY(-4px); }
.zp-next-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}
.zp-next-name {
  display: block;
  padding: 16px 20px 4px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.zp-next-link {
  display: block;
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--text-light-2);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .zp-card-grid { grid-template-columns: 1fr 1fr; }
  .zp-tools-grid { grid-template-columns: 1fr 1fr; }
  .zp-workflow { grid-template-columns: 1fr 1fr 1fr; gap: 28px 0; }
  .zp-workflow-step:nth-child(3)::after,
  .zp-workflow-step:nth-child(6)::after { display: none; }
  .zp-split,
  .zp-identity,
  .zp-explore { grid-template-columns: 1fr; gap: 32px; }
  .zp-split--reverse .zp-split-text { order: 1; }
  .zp-split--reverse .zp-split-media { order: 2; }
}
@media (max-width: 680px) {
  .zp-hero { padding: 110px 0 70px; }
  .zp-card-grid,
  .zp-tools-grid { grid-template-columns: 1fr; }
  .zp-workflow { grid-template-columns: 1fr 1fr; }
  .zp-workflow-step::after { display: none !important; }
}
