/* Homepage case study. The section, heading, panel and link use the existing editorial roles. */
#touchy-coffee-case-study{scroll-margin-top:5.5rem}
.touchy-case-panel{
 display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);
 border:1px solid color-mix(in srgb,var(--hags-indigo) 34%,transparent);
}
.touchy-case-quote,.touchy-case-story{min-width:0;padding:var(--hags-content-gap)}
.touchy-case-quote{
 margin:0;display:flex;flex-direction:column;justify-content:space-between;
 gap:var(--hags-copy-gap);color:var(--hags-indigo);
 background:color-mix(in srgb,var(--hags-indigo) 7%,var(--hags-paper));
}
.touchy-case-quote blockquote{margin:0;padding:0;border:0}
.touchy-case-quote blockquote p{
 margin:0;font-size:var(--hags-heading-minor);line-height:1.32;letter-spacing:-.031em;
}
.touchy-case-quote figcaption{margin:0;font-weight:600;font-size:.82rem;line-height:1.45}
.touchy-case-quote figcaption span{font-weight:400}
.touchy-case-story{display:grid;align-content:center;gap:var(--hags-copy-gap)}
.touchy-case-story p{margin:0;line-height:1.55}
.touchy-case-story>a{justify-self:start}
@media(max-width:700px){.touchy-case-panel{grid-template-columns:minmax(0,1fr)}}
.touchy-case :is(h2,blockquote p){text-wrap:pretty}
@media(max-width:380px){.touchy-case-story{font-size:.94rem}}
/* Local review uses a system brush script; no font file is bundled. */
@font-face{
 font-family:"Touchy Ticket Brush";src:local("SignPainter-HouseScript"),local("SignPainter");font-display:swap;
}
#touchy-coffee-case-study .touchy-case-panel{align-items:center}
#touchy-coffee-case-study .touchy-quote-ticket{
 position:relative;isolation:isolate;justify-content:start;
 padding:clamp(16px,2.5vw,37px);gap:clamp(12px,1.7vw,23px);
 margin:clamp(18px,3vw,38px);color:#141313;background:none;rotate:-3.2deg;
 filter:drop-shadow(0 4px 6px #30273345);
 font-family:Arial,Helvetica,sans-serif;
}
.touchy-quote-ticket::before{
 content:"";position:absolute;inset:0;z-index:-1;
 background:var(--hags-receipt-stock,#fffefa);clip-path:var(--hags-receipt-cut,none);
}
.touchy-ticket-order{font-weight:900;font-size:clamp(26px,3.3vw,46px);letter-spacing:-.052em;line-height:1.02}
.touchy-ticket-service{font-weight:900;font-size:clamp(14px,1.8vw,23px);letter-spacing:-.025em;line-height:1.2}
.touchy-ticket-label,.touchy-ticket-credit{
 display:flex;justify-content:space-between;align-items:start;flex-wrap:wrap;gap:2px 12px;font-weight:600;
}
.touchy-ticket-label{margin-top:10px;font-size:clamp(12px,1.2vw,16px)}
.touchy-ticket-item{
 border-block:1px solid #181611;padding:10px 0;margin-top:9px;
 font-size:clamp(14px,1.65vw,21px);line-height:1.1;
}
.touchy-ticket-item small{display:block;margin:4px 0 0 1.5em;font-size:.73em;font-weight:600}
#touchy-coffee-case-study .touchy-quote-ticket blockquote p{
 color:var(--hags-indigo);font-family:"Touchy Ticket Brush","Brush Script MT",cursive;
 font-size:clamp(24px,3vw,44px);letter-spacing:0;line-height:1.02;font-weight:400;
}
#touchy-coffee-case-study .touchy-ticket-credit{
 padding-top:10px;border-top:1px solid #181611;font-size:clamp(11px,1.05vw,14px);
}
#touchy-coffee-case-study .touchy-case-story{padding-inline-start:clamp(20px,3vw,45px)}
@media(max-width:700px){
 #touchy-coffee-case-study .touchy-quote-ticket{margin:16px 12px;rotate:-2deg}
 #touchy-coffee-case-study .touchy-case-story{padding:16px 16px 20px}
}
/* The case-study quote uses the owner-supplied, transparent lettering artwork. */
#touchy-coffee-case-study .touchy-quote-ticket .touchy-quote-art{
 display:block;width:100%;max-width:none;height:auto;margin:0;
}
/* One shared frame for the portrait, ticket, and story; preserve the original photo crop. */
#touchy-coffee-case-study .touchy-case-with-photo{align-items:stretch;}
#touchy-coffee-case-study .touchy-case-photo{min-inline-size:0;margin:0;}
#touchy-coffee-case-study .touchy-case-photo img{display:block;width:100%;height:auto;margin:0;}
#touchy-coffee-case-study .touchy-case-with-photo .touchy-quote-ticket{align-self:center;}
#touchy-coffee-case-study .touchy-case-with-photo .touchy-case-story{padding:var(--hags-content-gap);}
@media(min-width:701px){
 #touchy-coffee-case-study .touchy-case-with-photo{grid-template-rows:auto 1fr;}
 #touchy-coffee-case-study .touchy-case-photo{grid-area:1/2;}
 #touchy-coffee-case-study .touchy-case-with-photo .touchy-quote-ticket{grid-area:1/1/3/2;}
 #touchy-coffee-case-study .touchy-case-with-photo .touchy-case-story{grid-area:2/2;align-content:start;}
}

/* Preserve the approved transparent handwriting exactly; only its ink color follows the brand. */
@supports (mask-image: url("/assets/touchy-quote-lettering.png")){
 #touchy-coffee-case-study .touchy-quote-ticket .touchy-quote-ink {
  display:block;
  background-color:var(--hags-purple);
  mask:url("/assets/touchy-quote-lettering.png") center / 100% 100% no-repeat;
  mask-mode:alpha;
 }
 #touchy-coffee-case-study .touchy-quote-ticket .touchy-quote-art {opacity:0;}
}
