/* Shared gallery: scoped to the two sample sections and their native dialog. */
.work-samples {
    --sample-ink: #392c40;
    --sample-accent: #704c86;
    --sample-tint: #f0e8f3;
    background: #f5f1ed;
}
.work-samples--business {
    --sample-ink: #233b41;
    --sample-accent: #32696a;
    --sample-tint: #e5f0ec;
    background: #edf2ef;
}
.work-samples .sample-heading { max-width: 800px; margin: 0 auto 2.75rem; text-align: center; }
.work-samples .section-label { color: var(--sample-accent); }
.work-samples .section-title { color: var(--sample-ink); font-size: clamp(1.65rem, 3.2vw, 2.4rem); line-height: 1.5; }
.work-samples .section-title [data-line] { display: inline-block; }
.work-samples .section-lead { max-width: 36em; font-size: 1rem; line-height: 1.9; }
.sample-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.sample-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #dcded8; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px #26352c06; }
.sample-preview { display: block; position: relative; background: #e9e7e1; overflow: hidden; }
.sample-preview img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; transition: transform .3s ease; }
.sample-preview:hover img { transform: scale(1.025); }
.sample-zoom { position: absolute; bottom: 12px; right: 12px; display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .7rem; border-radius: 999px; color: #fff; background: #26352ce8; font-size: .72rem; font-weight: 700; pointer-events: none; }
.sample-zoom svg { width: 14px; height: 14px; }
.sample-card-body { display: flex; flex-direction: column; flex: 1; padding: 1.45rem; }
.sample-meta { display: flex; align-items: baseline; gap: .65rem; margin-bottom: .85rem; color: var(--sample-accent); }
.sample-number { font: 600 .82rem 'Inter', sans-serif; letter-spacing: .06em; }
.sample-category { font-size: .78rem; font-weight: 700; }
.sample-card h3 { margin: 0 0 .8rem; font-size: 1.2rem; line-height: 1.65; color: var(--sample-ink); }
.sample-card h3 [data-line] { display: block; }
.sample-card-description { font-size: .9rem; line-height: 1.85; color: #53555b; margin-bottom: 1rem; }
.sample-outcome { margin-top: auto; padding: .85rem 1rem; border-radius: 8px; background: var(--sample-tint); font-size: .82rem; line-height: 1.8; color: var(--sample-ink); }
.sample-outcome strong { display: block; font-size: .72rem; margin-bottom: .15rem; letter-spacing: .03em; }
.sample-card-footer { margin-top: 1.15rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .35rem .7rem; }
.sample-label { color: #676767; font-size: .68rem; line-height: 1.7; }
.sample-open { display: inline-flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 44px; font-size: .85rem; color: var(--sample-accent); font-weight: 700; text-decoration: underline; text-underline-offset: .3em; }
.sample-open span[aria-hidden] { text-decoration: none; font-size: 1.2rem; }
.sample-section-footer { margin: 2rem auto 0; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.sample-section-note { max-width: 43em; font-size: .78rem; line-height: 1.9; color: #5e6462; }
.sample-section-footer .btn { flex-shrink: 0; font-size: .88rem; }
body.sample-dialog-open { overflow: hidden; }
.sample-dialog { width: min(1040px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: 0; border: 0; border-radius: 18px; color: #26333a; background: #fff; box-shadow: 0 28px 100px #101a334d; overscroll-behavior: contain; }
.sample-dialog::backdrop { background: #17202dcc; }
.sample-dialog-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.4rem; background: #fff; border-bottom: 1px solid #e4e7e5; }
.sample-dialog-header h2 { min-width: 0; font-size: 1.05rem; line-height: 1.6; }
.sample-dialog-close { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 44px; padding: .6rem .8rem; border: 1px solid #d6dcd9; border-radius: 8px; background: #fff; color: #34433e; font: 600 .8rem var(--font-main); cursor: pointer; }
.sample-dialog-close:hover { background: #eef2ef; }
.sample-dialog-close { white-space: nowrap; }
.sample-dialog-close span { font-size: 1.3rem; line-height: 1; }
.sample-dialog-figure { display: block; background: #eeeee8; }
.sample-dialog-figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.sample-dialog-content { padding: 1.8rem 2rem 2rem; }
.sample-dialog-content .sample-label { display: inline-block; padding: .3rem .65rem; background: #eef2ed; border-radius: 5px; margin-bottom: .8rem; }
.sample-dialog-content p { font-size: .93rem; line-height: 1.9; }
.sample-detail-points { margin: 1rem 0 1.4rem; padding-left: 1.3rem; font-size: .9rem; line-height: 1.9; }
.sample-dialog-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; margin-top: 1.5rem; }
.sample-full-image { display: inline-flex; align-items: center; min-height: 44px; color: #5b4271; font-size: .85rem; text-decoration: underline; text-underline-offset: .3em; }
.sample-demo { border: 1px solid #d6e1da; border-radius: 12px; margin: 1.3rem 0; padding: 1rem 1.3rem; background: #f6faf7; }
.sample-demo legend { padding: 0 .5rem; font-weight: 700; font-size: .9rem; }
.sample-demo label { display: flex; align-items: center; gap: .7rem; min-height: 46px; border-bottom: 1px solid #e0e9e2; cursor: pointer; font-size: .95rem; }
.sample-demo input { width: 20px; height: 20px; accent-color: #32696a; }
.sample-demo output { display: block; margin-top: 1rem; font-size: .85rem; color: #32696a; font-weight: 700; }
.sample-demo-reset { margin-top: .5rem; min-height: 44px; padding: .4rem .7rem; color: #32696a; border: 1px solid #b9cdc2; background: #fff; border-radius: 6px; font: inherit; font-size: .8rem; cursor: pointer; }
@media (max-width: 1050px) {
    .sample-grid { gap: 1rem; }
    .sample-card-body { padding: 1.15rem; }
    .sample-card h3 { font-size: 1.08rem; }
    .sample-card-footer { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 900px) {
    .sample-grid { grid-template-columns: minmax(0, 1fr); max-width: 600px; margin: 0 auto; gap: 1.5rem; }
    .sample-card-body { padding: 1.5rem; }
    .sample-card h3 { font-size: 1.3rem; }
    .sample-card h3 [data-line] { display: inline-block; }
    .sample-card-footer { flex-direction: row; align-items: center; }
    .sample-section-footer { flex-direction: column; text-align: center; }
    .sample-section-note { max-width: 40em; }
}
@media (max-width: 480px) {
    .work-samples .sample-heading { margin-bottom: 2rem; }
    .work-samples .section-lead { font-size: .92rem; }
    .sample-card-body { padding: 1.3rem; }
    .sample-card h3 { font-size: 1.15rem; }
    .sample-card h3 [data-line] { display: block; }
    .sample-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); border-radius: 12px; }
    .sample-dialog-header { padding: .7rem .9rem; gap: .65rem; }
    .sample-dialog-header h2 { font-size: .88rem; }
    .sample-dialog-content { padding: 1.25rem; }
    .sample-dialog-actions { align-items: stretch; flex-direction: column; gap: .5rem; }
    .sample-dialog-actions .btn { font-size: .87rem; }
}
@media (prefers-reduced-motion: reduce) {
    .sample-preview img { transition: none; }
    .sample-preview:hover img { transform: none; }
}
