/* Shared visual rhythm for all portfolio case studies. */
.work-page #main > section { padding-block:36px; margin-block:0; }
.work-page #main > .page-hero { padding-block:32px 20px; }
.work-page .page-hero h1 { font-size:clamp(28px,3vw,40px); }
.work-page .section-heading { margin-bottom:20px; }
.work-page .website-case { grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); border-radius:22px; background:#fff; }
.work-page .website-case + .website-case { margin-top:24px!important; }
.work-page .website-case-preview { align-self:stretch; display:flex; flex-direction:column; justify-content:center; background:#f5f6f8; }
.work-page .website-case-preview > img { aspect-ratio:3/2; object-fit:contain; height:auto; max-height:360px; }
.work-page .website-case-copy { padding:28px; }
.work-page .website-case-copy h3 { font-size:26px; margin-bottom:12px; }
.work-page .website-case-copy p { font-size:14px; line-height:1.7; }
.work-page .website-case-copy .actions { margin-top:20px; gap:12px; }
.work-page .website-case-copy .button { min-height:44px; font-size:13px; padding:10px 16px; }
.work-page .qr-case-preview { background:#f5f6f8; }
.work-page .image-case-grid { padding:24px; gap:12px; }
.work-page .case-study.subtle { background:#fff; }
@media(max-width:1050px) { .work-page .qr-case:has(.qr-case-phones) { grid-template-columns:1fr; } }
@media(max-width:900px) { .work-page .website-case { grid-template-columns:1fr; } .work-page .website-case-copy { padding:22px; } }
@media(max-width:600px) { .work-page #main > section { padding-block:24px; } .work-page .website-case-copy h3 { font-size:23px; } .work-page .image-case-grid { padding:18px; } }

/* JUAN Bowl & Tea case study: two stores, then website → synced menu → languages. */
.juan-case .juan-case-lead { max-width:720px; margin-top:12px; font-size:15px; line-height:1.8; color:var(--muted); }
.juan-record { margin:0 0 20px; padding:20px 24px; border:1px solid var(--line); border-radius:22px; background:var(--soft); }
.juan-record h3 { font-size:18px; }
.juan-record ul { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:14px 0 0; padding:0; list-style:none; }
.juan-record li { display:flex; flex-direction:column; gap:4px; padding:12px 14px; border:1px solid var(--line); border-radius:14px; background:#fff; }
.juan-record li a { font-size:14px; font-weight:650; color:var(--blue); }
.juan-record li span { font-size:13px; line-height:1.6; color:var(--muted); }
#juan-menu-sync, #juan-languages { scroll-margin-top:96px; }
@media(max-width:900px) { .juan-record ul { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) { .juan-record { padding:18px; } .juan-record ul { grid-template-columns:1fr; } }
.juan-stores { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:20px; }
.juan-store { display:flex; flex-direction:column; border:1px solid var(--line); border-radius:22px; overflow:hidden; background:#fff; scroll-margin-top:96px; }
.juan-store-shot { display:block; background:#f5f6f8; }
.juan-store-shot img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; object-position:top left; }
.juan-store-copy { display:flex; flex-direction:column; gap:10px; padding:22px 24px 24px; flex:1; }
.juan-store-copy .case-category { margin:0; letter-spacing:.1em; }
.juan-store-copy h3 { font-size:22px; }
.juan-store-copy p { font-size:14px; line-height:1.7; color:var(--muted); }
.juan-store-scope { display:flex; flex-wrap:wrap; gap:6px; margin:2px 0 6px; padding:0; list-style:none; }
.juan-store-scope li { padding:4px 10px; border-radius:999px; background:var(--soft); border:1px solid var(--line); font-size:12px; }
.juan-store-copy .text-link { margin-top:auto; align-self:flex-start; }
.juan-steps { display:grid; gap:20px; margin:28px 0 0; padding:0; list-style:none; }
.juan-step { display:grid; grid-template-columns:minmax(0,.8fr) minmax(0,1.6fr); gap:28px; align-items:center; padding:24px; border:1px solid var(--line); border-radius:22px; background:#fff; }
.juan-step-copy { display:flex; flex-direction:column; gap:10px; }
.juan-step-number { font-size:12px; font-weight:650; letter-spacing:.12em; color:var(--blue); }
.juan-step-copy h3 { font-size:22px; }
.juan-step-copy p { font-size:14px; line-height:1.8; color:var(--muted); }
.juan-step-copy .actions { display:flex; flex-wrap:wrap; gap:8px 18px; margin-top:4px; }
.juan-step-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.juan-step-gallery--single { grid-template-columns:1fr; }
.juan-step-gallery--languages { grid-template-columns:minmax(0,220px); justify-content:center; }
.juan-step-gallery figure { margin:0; }
.juan-step-gallery .work-shot { display:block; border:1px solid var(--line); border-radius:12px; overflow:hidden; background:#f5f6f8; }
.juan-step-gallery img { display:block; width:100%; height:auto; }
.juan-step-gallery figcaption { margin-top:6px; font-size:12px; color:var(--muted); }
@media(max-width:900px) { .juan-stores, .juan-step { grid-template-columns:1fr; } .juan-step { gap:18px; } }
@media(max-width:600px) { .juan-step, .juan-store-copy { padding:18px; } .juan-step-gallery { gap:8px; } .juan-store-copy h3, .juan-step-copy h3 { font-size:20px; } }

.poster-case { scroll-margin-top:96px; }
.poster-case-preview { display:grid; place-items:center; padding:24px; background:#f5f6f8; }
.poster-case-preview .work-shot { display:block; max-width:360px; }
.poster-case-preview img { display:block; width:100%; height:auto; box-shadow:0 8px 24px rgb(0 0 0 / 12%); }

.poster-translation-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px; }
.poster-translation-grid figure { margin:0; min-width:0; }
.poster-translation-grid .work-shot { display:block; border:1px solid var(--line); border-radius:12px; overflow:hidden; }
.poster-translation-grid img { display:block; width:100%; height:auto; }
.poster-translation-grid figcaption { margin-top:10px; color:var(--muted); font-size:13px; }
@media(max-width:900px) { .poster-translation-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; } }

/* One JUAN case in the work index. */
.work-page .juan-page-heading { padding-block:clamp(22px,3.3vw,44px) 0; }
.work-page .juan-page-heading h1 { font-size:clamp(32px,4vw,54px); }
.juan-page-heading .overline { margin-bottom:8px; }
.juan-listing-card {
  display:grid; grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr); align-items:center;
  gap:clamp(18px,3vw,48px); padding:clamp(20px,3.2vw,48px);
  border:1px solid var(--line); border-radius:22px; background:var(--soft);
}
.juan-listing-copy h2 { margin-bottom:10px; font-size:clamp(26px,3vw,42px); }
.juan-listing-copy > p:not(.overline) { color:var(--muted); }
.juan-listing-copy .actions { margin-top:20px; gap:12px 18px; }
.juan-listing-copy .text-link { display:inline-flex; align-items:center; gap:4px; min-height:44px; }
.juan-listing-previews { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.juan-listing-previews figure { overflow:hidden; margin:0; border:1px solid var(--line); border-radius:14px; background:white; }
.juan-listing-previews img { display:block; width:100%; height:auto; aspect-ratio:16/9; object-fit:cover; object-position:top; }
.juan-listing-previews figcaption { padding:6px 10px; font-size:12px; color:var(--muted); }
.juan-detail-page .breadcrumb ol { flex-wrap:wrap; row-gap:5px; }
.juan-detail-page #juan-poster, .juan-detail-page #guest-ordering, .juan-detail-page #staff-operations { scroll-margin-top:96px; }
.juan-related h2 { margin-bottom:10px; font-size:clamp(22px,2.5vw,30px); }
.juan-related p { margin-top:4px; color:var(--muted); }
@media(max-width:900px) { .juan-listing-card { grid-template-columns:minmax(0,1fr); } }
