/* Optional case gallery: original creative proportions, natural-height captions. */
.case-gallery{scroll-margin-top:105px;grid-column:1/-1;min-width:0;padding-top:40px}
.cg-heading,.cg-conversation-head{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--case-gap);align-items:start}
.cg-heading>div:first-child,.cg-conversation-head>div{grid-column:1/3}
.cg-heading h3,.cg-conversation-head h3{font-size:clamp(32px,4vw,48px);line-height:1.12;letter-spacing:-.04em;font-weight:500;max-width:680px;margin-top:18px;text-wrap:pretty}
.case-gallery .cg-heading p,.case-gallery .cg-conversation-head p{font-size:16px;line-height:1.6;margin:0}
.cg-handwritten{display:block;font-family:'Caveat',cursive;font-size:27px;line-height:1.1;transform:rotate(-4deg);margin-top:24px;color:#565b49}
.cg-toolbar{display:flex;justify-content:space-between;align-items:center;gap:16px;margin:32px 0 16px;font-size:12px;color:var(--muted)}
.cg-controls{display:flex;gap:8px}.cg-controls[hidden]{display:none}
.case-gallery button{font:inherit;cursor:pointer}
.cg-controls button,.cg-lightbox-stage button{width:46px;height:46px;flex:none;border:1px solid var(--line);background:transparent;color:inherit;border-radius:50%;font-size:24px;transition:background 160ms ease}
.cg-controls button:disabled{opacity:.3;cursor:default}
.cg-rail{display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 40px)/3);gap:20px;overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:thin;scrollbar-color:#c5c7b9 transparent;padding:2px 2px 20px}
.cg-card{margin:0;min-width:0;scroll-snap-align:start}
.cg-open{display:block;position:relative;background:#efeee6;border:1px solid #dcdcd0;border-radius:10px;overflow:hidden}
.cg-open img{width:100%;height:auto;aspect-ratio:9/16;object-fit:contain;display:block}
.cg-expand{position:absolute;right:12px;bottom:12px;display:grid;place-items:center;width:40px;height:40px;background:#f7f6ee;color:#20221c;border-radius:50%;font-size:23px;box-shadow:0 2px 10px #0002;transition:background 160ms ease,transform 160ms ease}
.cg-card figcaption{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;margin-top:18px}
.cg-number{font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums;padding-top:3px}
.cg-card h4{font-size:18px;font-weight:500;line-height:1.3}
.case-gallery .cg-card p{font-size:14px;line-height:1.5;margin-top:8px}
.cg-conversation-head{scroll-margin-top:105px;margin:64px 0 28px;padding-top:40px;border-top:1px solid var(--line)}
.cg-chats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.cg-chat{background:#eeefe5;border:1px solid #dfe1d5;border-radius:10px;padding:22px;min-width:0}
.cg-chat header{display:flex;gap:12px;align-items:start;min-height:48px;margin-bottom:22px}
.cg-chat h4{font-weight:500;font-size:19px;line-height:1.25}
.cg-chat ol{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:14px}
.cg-message{max-width:94%;align-self:flex-start;border-radius:12px 12px 12px 2px;background:#fffef8;padding:14px;border:1px solid #e1e2d8}
.cg-message>span{display:block;font-size:12px;letter-spacing:.02em;color:#757a6d;margin-bottom:7px}
.case-gallery .cg-message p{margin:0;font-size:14px;line-height:1.5;color:#262a20}
.cg-message--customer,.cg-message--redacted{align-self:flex-end;background:#4c5540;color:#fff;border:0;border-radius:12px 12px 2px 12px}
.cg-message--customer>span,.cg-message--redacted>span{color:#d0d6c6}
.case-gallery .cg-message--customer p,.case-gallery .cg-message--redacted p{color:#fff}
.case-gallery .cg-disclosure{font-size:12px;margin-top:16px;color:var(--muted)}
.cg-lightbox{width:min(1080px,calc(100vw - 32px));height:min(960px,calc(100dvh - 32px));max-height:none;max-width:none;margin:auto;border:1px solid #ffffff20;border-radius:14px;background:#20221d;color:#f7f7ee;padding:16px 24px;overflow:auto}
.cg-lightbox[open]{display:flex;flex-direction:column;gap:14px}
.cg-lightbox::backdrop{background:#141610df;backdrop-filter:blur(6px)}
.cg-lightbox-bar{display:flex;justify-content:space-between;align-items:center;gap:16px;font-size:13px;flex:none}
.cg-lightbox-bar button{background:transparent;border:1px solid #ffffff40;color:inherit;border-radius:30px;padding:10px 16px;min-height:44px}
.cg-lightbox-bar button span{margin-left:16px;font-size:20px}
.cg-lightbox-stage{flex:1;min-height:0;display:flex;align-items:center;justify-content:space-between;gap:20px}
.cg-lightbox-stage img{display:block;min-width:0;min-height:0;max-height:100%;width:auto;height:100%;max-width:calc(100% - 132px);object-fit:contain;border-radius:4px}
.cg-lightbox-stage button{border-color:#ffffff40}
.cg-lightbox-caption{text-align:center;flex:none;max-width:580px;margin-inline:auto}
.cg-lightbox-caption h3{font-size:17px;font-weight:500}
.case-gallery .cg-lightbox-caption p{font-size:13px;color:#d3d5c9;line-height:1.4;margin:6px 0}
.cg-lightbox-caption a{font-size:12px;text-decoration:underline;text-underline-offset:4px}
html:has(.cg-lightbox[open]){overflow:hidden}
.case-gallery :focus-visible{outline:3px solid #c1ab00;outline-offset:4px}
.cg-lightbox :focus-visible{outline-color:#f5e62a}
@media(hover:hover){.cg-open:hover .cg-expand,.cg-controls button:not(:disabled):hover{background:#f5e62a}.cg-open:hover .cg-expand{transform:rotate(45deg)}.cg-lightbox button:hover{background:#ffffff20}}
@media(max-width:900px){.cg-heading,.cg-conversation-head{grid-template-columns:1fr 1fr}.cg-heading>div:first-child,.cg-conversation-head>div{grid-column:1}.cg-rail{grid-auto-columns:calc((100% - 20px)/2)}.cg-chats{grid-template-columns:1fr}.cg-chat header{min-height:0}.cg-chat ol{max-width:600px}.cg-chat{padding:24px}.cg-message{max-width:85%}}
@media(max-width:600px){.case-gallery{padding-top:20px}.cg-heading,.cg-conversation-head{grid-template-columns:1fr;gap:20px}.cg-heading h3,.cg-conversation-head h3{font-size:34px}.cg-handwritten{font-size:25px;margin-top:18px}.cg-rail{grid-auto-columns:84%;gap:14px}.cg-toolbar{font-size:12px;gap:12px}.cg-controls button{width:44px;height:44px}.cg-controls{gap:5px}.cg-conversation-head{margin-top:40px;padding-top:28px}.cg-chat{padding:20px}.cg-lightbox{width:calc(100vw - 16px);height:calc(100dvh - 16px);padding:12px;gap:12px}.cg-lightbox-stage{gap:6px;position:relative;padding-bottom:52px}.cg-lightbox-stage img{max-width:100%;width:100%;height:100%}.cg-lightbox-stage button{position:absolute;bottom:0;width:44px;height:44px}.cg-lightbox-stage button:first-child{left:calc(50% - 50px)}.cg-lightbox-stage button:last-child{right:calc(50% - 50px)}.cg-lightbox-caption h3{font-size:16px}.cg-lightbox-caption p{max-width:330px}.cg-lightbox-bar button{padding:6px 12px}}
@media(prefers-reduced-motion:reduce){.case-gallery *{scroll-behavior:auto!important;transition:none!important}}
