/* /prace/ + /prace/<slug>/ page-only CSS (zf tokens, no edits to zf.css) */

/* ---- work index (zf /work) ---- */
.work-section { padding-bottom: 80px; }
.work-filter { justify-content: center; padding-bottom: 32px; }
.work-grid--page { transition: opacity 250ms ease; }
.work-grid--page.is-out { opacity: 0; transition-duration: 150ms; }
.work-grid [hidden] { display: none !important; }
.work-tile { align-items: center; justify-content: center; text-align: center; padding: 24px; border: 0; }
.work-grid--page .work-tile { grid-column: 1 / -1; }   /* statement sentence as a full-width row, not a half-empty card cell */
@media (max-width: 575px) {
  .work-section { padding: 32px 0 80px; } /* zf /work 390 live: 32 0 80 */
  .work-filter { justify-content: flex-start; }
  .work-tile { font-size: 18px; padding: 8px; }
}

/* ---- case study ---- */
.case-hero { padding: 40px 0 0; }
.case-hero__in { max-width: 800px; margin: 40px auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.case-hero__tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.tag--own { border-color: var(--accent); color: var(--accent); }
.case-hero__h { font-size: var(--fs-hero); line-height: 1.08; font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }   /* 36 -> 60: clearly above the 28/36 H2 */
.case-hero__p { max-width: 640px; font-size: 18px; line-height: 28px; color: var(--muted); }
.case-hero__btns { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.case-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.case-meta dt { font-size: 13px; line-height: 20px; color: var(--muted); margin-bottom: 4px; }
.case-meta dd { font-size: 16px; line-height: 24px; font-weight: 500; }
/* inline-block + a joined ::after arrow (word joiner): when the label wraps, the arrow stays after the last word */
.case-meta__link { display: inline-block; padding: 10px 0; color: var(--accent); }
.case-meta__link svg { display: none; }
.case-meta__link::after { content: "\2060"; margin-left: 6px; padding-right: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") right center / 16px no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8'%3E%3Cpath d='M7 17 17 7M9 7h8v8'/%3E%3C/svg%3E") right center / 16px no-repeat; }
.case-cover { padding: 48px 0 0; }
.case-shot { margin: 0 auto; border-radius: var(--r-xl); overflow: hidden; }
.case-shot img { display: block; width: 100%; height: auto; }

.case-nar { display: flex; flex-direction: column; }
.case-nar__row { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; padding: 40px 0; border-top: 1px solid var(--line); }
.case-nar__row:last-child { border-bottom: 1px solid var(--line); }
.case-nar__h { font-size: 28px; line-height: 36px; font-weight: 500; letter-spacing: -0.02em; }
.case-nar__p { max-width: 640px; font-size: 18px; line-height: 30px; color: var(--text-2); }

.case-gal { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.gal-cell { margin: 0; }
.gal-cell img { display: block; width: 100%; height: auto; border-radius: var(--r-media); background: var(--card); }
.gal-cell figcaption { margin-top: 12px; font-size: 16px; line-height: 24px; color: var(--text-2); }
.gal-cell:last-child:nth-child(odd) { grid-column: 1 / -1; max-width: calc(50% - 12px); margin-inline: auto; }
.part { margin-top: 64px; }
.part:first-child { margin-top: 0; }
.part__head { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-bottom: 32px; max-width: 760px; }
.part__h { font-size: 28px; line-height: 36px; font-weight: 500; letter-spacing: -0.02em; }
.part__d { color: var(--text-2); }
.part__priv { color: var(--muted); }
.part-stage { margin-bottom: 24px; }

.case-res { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; }
.case-res li { padding-top: 24px; border-top: 1px solid var(--line); }
.case-res__v { font-size: 48px; line-height: 56px; font-weight: 500; color: var(--accent-2); letter-spacing: -0.02em; }
.case-res__l { margin-top: 8px; font-size: 16px; line-height: 24px; color: var(--muted); }

.case-next .work-card__t { font-size: 36px; line-height: 44px; font-weight: 500; }
.case-next .work-card__p { font-size: 16px; line-height: 24px; }
.case-next__btn { display: flex; justify-content: center; margin-top: 48px; }

@media (max-width: 991px) { .case-meta { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
  .case-nar__row { grid-template-columns: 1fr; gap: 12px; padding: 32px 0; }
  .case-gal { grid-template-columns: 1fr; }
  .gal-cell:last-child:nth-child(odd) { max-width: none; }
  .case-res { grid-template-columns: 1fr; }
}
@media (max-width: 575px) {
  .case-hero { padding-top: 24px; }
  .case-hero__in { margin-top: 24px; }
  .case-hero__p { font-size: 16px; line-height: 24px; }
  .case-cover { padding-top: 32px; }
  .case-meta { margin-top: 32px; gap: 16px; }
  .case-nar__h, .part__h { font-size: 24px; line-height: 32px; }
  .case-nar__p { font-size: 16px; line-height: 26px; }
  .part { margin-top: 48px; }
  .case-next .work-card__t { font-size: 28px; line-height: 36px; }
  .case-next__btn { margin-top: 32px; }
}
