/* JPEG Design — brands banner + /brands.html (add-on, no inline styles; CSP style-src 'self') */
.jpeg-brands{background:var(--canvas,#f5f8f8);border-top:1px solid var(--line,#dde7e9);border-bottom:1px solid var(--line,#dde7e9);padding:36px 0 28px;overflow:hidden}
.jpeg-brands-head{text-align:center;max-width:720px;margin:0 auto 22px}
.jpeg-brands-head .eyebrow{margin:0 0 6px;font-size:.78rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--muted,#5a6f75)}
.jpeg-brands-head h2{margin:0 0 8px;font-size:clamp(1.35rem,2.2vw,1.85rem);color:var(--ink,#10232a);letter-spacing:-.02em}
.jpeg-brands-lede{margin:0;color:var(--body,#2f444b);font-size:1rem;line-height:1.5}
.jpeg-brands-lede a{color:var(--teal,#0b4a55);font-weight:700;text-decoration:underline;text-underline-offset:2px}
.jpeg-brands-marquee{overflow:hidden;mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent);-webkit-mask-image:linear-gradient(90deg,transparent,#000 16px,#000 calc(100% - 16px),transparent)}
.jpeg-brands-track{display:flex;width:max-content;animation:jpeg-brands-scroll 80s linear infinite}
.jpeg-brands-marquee:hover .jpeg-brands-track,.jpeg-brands-marquee:focus-within .jpeg-brands-track{animation-play-state:paused}
.jpeg-brands-list{display:flex;align-items:center;list-style:none;margin:0;padding:0;gap:0}
.jpeg-brands-item{flex:0 0 auto;width:168px;height:80px;display:flex;align-items:center;justify-content:center;padding:8px 16px;box-sizing:border-box}
.jpeg-brands-item a{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:10px}
.jpeg-brands-item img{display:block;height:48px;width:auto;max-width:140px;max-height:48px;object-fit:contain;filter:grayscale(1) contrast(1.05);opacity:.82;transition:filter .2s ease,opacity .2s ease}
.jpeg-brands-item a:hover img,.jpeg-brands-item a:focus-visible img{filter:grayscale(0);opacity:1}
.jpeg-brands-legal{margin:16px 0 0;text-align:center;font-size:.75rem;color:var(--muted,#5a6f75)}
@keyframes jpeg-brands-scroll{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
  .jpeg-brands-track{animation:none;flex-wrap:wrap;width:auto;max-width:var(--wrap,1200px);margin:0 auto;justify-content:center}
  .jpeg-brands-marquee{mask-image:none;-webkit-mask-image:none;overflow:visible}
  .jpeg-brands-list[aria-hidden="true"]{display:none}
  .jpeg-brands-item{width:150px;height:72px}
}
/* Directory page */
.jpeg-brands-page .page-hero{padding:48px 0 36px;background:var(--teal-50,#eef6f7)}
.jpeg-brands-page .page-hero h1{margin:0 0 10px;font-size:clamp(1.8rem,3vw,2.6rem);letter-spacing:-.03em;color:var(--ink,#10232a)}
.jpeg-brands-page .page-hero .lede{margin:0 0 8px;max-width:42rem;color:var(--body,#2f444b);font-size:1.08rem;line-height:1.55}
.jpeg-brands-cat{padding:28px 0;border-bottom:1px solid var(--line,#dde7e9)}
.jpeg-brands-cat:last-of-type{border-bottom:0}
.jpeg-brands-cat h2{margin:0 0 16px;font-size:1.25rem;color:var(--ink,#10232a)}
.jpeg-brands-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;list-style:none;margin:0;padding:0}
.jpeg-brands-card{display:flex;gap:14px;align-items:flex-start;padding:16px;background:#fff;border:1px solid var(--line,#dde7e9);border-radius:var(--radius-sm,12px);text-decoration:none;color:inherit;min-height:96px;box-sizing:border-box}
.jpeg-brands-card:hover,.jpeg-brands-card:focus-visible{border-color:var(--teal,#0b4a55);box-shadow:var(--shadow-sm,0 2px 8px rgba(6,50,58,.08))}
.jpeg-brands-card img{flex:0 0 auto;width:88px;height:48px;object-fit:contain;filter:grayscale(1) contrast(1.05);opacity:.88}
.jpeg-brands-card:hover img,.jpeg-brands-card:focus-visible img{filter:none;opacity:1}
.jpeg-brands-card b{display:block;margin:0 0 4px;color:var(--ink,#10232a);font-size:1rem}
.jpeg-brands-card span{display:block;color:var(--body,#2f444b);font-size:.9rem;line-height:1.4}
.jpeg-brands-page .jpeg-brands-legal{margin:8px 0 28px}
.jpeg-brands-page .visually-hidden,.jpeg-brands .visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media (max-width:500px){
  .jpeg-brands-item{width:140px;height:72px;padding:6px 10px}
  .jpeg-brands-item img{height:40px;max-width:120px}
}
/* JPEG-BRANDS-RM-V1-START (site-brands-rm-v1: reduced-motion static logo row; overrides the block above.
   position:relative keeps the visually-hidden brand names inside each tile; without the animation transform they
   escaped to the page edge and made the whole page scroll sideways.) */
@media (prefers-reduced-motion:reduce){
  .jpeg-brands-marquee{mask-image:none;-webkit-mask-image:none;overflow:visible}
  .jpeg-brands-track{animation:none;transform:none;display:block;width:auto;max-width:var(--wrap,1200px);margin:0 auto;padding:0 12px;box-sizing:border-box}
  .jpeg-brands-list{flex-wrap:wrap;justify-content:center;row-gap:6px}
  .jpeg-brands-list[aria-hidden="true"]{display:none}
  .jpeg-brands-item{position:relative;width:128px;height:60px;padding:6px 10px}
  .jpeg-brands-item img{height:38px;max-height:38px;max-width:108px;transition:none}
}
@media (prefers-reduced-motion:reduce) and (min-width:641px) and (max-width:1024px){
  .jpeg-brands-item{width:104px;height:52px;padding:5px 8px}
  .jpeg-brands-item img{height:32px;max-height:32px;max-width:88px}
}
@media (prefers-reduced-motion:reduce) and (max-width:640px){
  /* Phones: one still row the visitor swipes through (no auto-motion), instead of ~16 wrapped rows */
  .jpeg-brands-marquee{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;scroll-snap-type:x proximity;scrollbar-width:thin;padding-bottom:6px}
  .jpeg-brands-track{display:flex;width:max-content;max-width:none;padding:0 8px}
  .jpeg-brands-list{flex-wrap:nowrap;justify-content:flex-start}
  .jpeg-brands-item{scroll-snap-align:start;width:104px;height:56px;padding:6px 8px}
  .jpeg-brands-item img{height:34px;max-height:34px;max-width:88px}
}
/* JPEG-BRANDS-RM-V1-END */
