/* Scoped references styles; existing site styles stay unchanged. */
.tf-references{background:#f8fafb;border-bottom:1px solid var(--line);padding:88px 0}
.tf-references .center-heading{max-width:780px;margin:0 auto 38px;text-align:center}
.tf-references .eyebrow{justify-content:center;margin-bottom:16px}
.tf-references .center-heading>p:last-child{max-width:650px;margin:20px auto 0;color:var(--muted)}
.tf-references h1{font:700 clamp(2rem,3.55vw,3.65rem)/1.1 Montserrat,Arial,sans-serif;margin:0;letter-spacing:-.04em;color:var(--ink)}
.tf-reference-grid{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
.tf-reference-card{height:150px;background:#fff;border:1px solid #e0e8ec;border-radius:12px;display:flex;align-items:center;justify-content:center;padding:24px;transition:border-color .2s,transform .2s}
.tf-reference-card img{width:min(100%,var(--logo-width,180px));height:82px;object-fit:contain;object-position:center}
.tf-reference-card:hover{border-color:#bacdd7;transform:translateY(-2px)}
.tf-reference-name{font-weight:600;color:var(--blue)}
.tf-reference-action{display:flex;justify-content:center;margin-top:32px}
.tf-reference-action .button{color:var(--blue);border:1px solid #cad9e2;background:#fff}
.tf-reference-action .button:hover{background:var(--blue);color:#fff}
.tf-gallery-back{padding:28px 0 0;background:#f8fafb}.tf-gallery-back a{color:var(--blue);font-weight:600}
@media(max-width:820px){.tf-reference-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.tf-references{padding:70px 0}}
@media(max-width:560px){.tf-reference-card{height:118px;padding:18px 14px}.tf-reference-card img{height:68px}.tf-references .center-heading{margin-bottom:28px}.tf-reference-action .button{width:auto;max-width:100%}}
@media(max-width:320px){.tf-reference-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.tf-reference-card{transition:none}.tf-reference-card:hover{transform:none}}

/* Full gallery only: homepage layout remains unchanged. */
.tf-reference-grid[data-references="all"]{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
.tf-reference-grid[data-references="all"] .tf-reference-card{height:166px;flex-direction:column;gap:16px;padding:20px 14px}
.tf-reference-caption{font-size:.78rem;font-weight:500;line-height:1.4;text-align:center;color:var(--muted)}
.tf-reference-dark img{background:var(--blue-night);border-radius:6px;padding:9px}
@media(max-width:1000px){.tf-reference-grid[data-references="all"]{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:700px){.tf-reference-grid[data-references="all"]{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.tf-reference-grid[data-references="all"] .tf-reference-card{height:152px;padding:16px 12px}.tf-reference-caption{font-size:.72rem}}
@media(max-width:320px){.tf-reference-grid[data-references="all"]{grid-template-columns:1fr}}
