/* Trusted by — die-cut partner logos floating in a scroll-reactive marquee */
.tr { --tr-bg: #f7f4ee; --tr-ink: #1d2f2f; --tr-ink-2: #5b6764; --tr-accent: #2f8fd8; --tr-display: inherit;
  background: var(--tr-bg); color: var(--tr-ink); padding: clamp(70px, 9vw, 120px) 0 clamp(60px, 8vw, 100px); overflow: hidden; }
.tr-hd { text-align: center; margin-bottom: clamp(30px, 4vw, 50px); }
.tr-k { margin: 0 0 10px; font-size: 13px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--tr-accent); }
html[lang=th] .tr-k { letter-spacing: .02em; font-size: 14px; }
.tr-h { margin: 0; font-family: var(--tr-display); font-weight: 500; font-size: clamp(28px, 3.4vw, 48px); line-height: 1.15; }
html[lang=th] .tr-h { line-height: 1.4; }
.tr-rail { overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.tr-track { list-style: none; margin: 0; padding: 20px 0; display: flex; gap: clamp(36px, 5vw, 80px); width: max-content; will-change: transform; }
.tr-track li { flex: none; width: clamp(130px, 13vw, 180px); display: grid; justify-items: center; gap: 6px; text-align: center; }
.tr-track figure { margin: 0 0 8px; height: clamp(90px, 9vw, 120px); width: 100%; display: grid; place-items: center; }
.tr-track img { max-width: 100%; max-height: 100%; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(20, 30, 30, .18)); transition: transform .6s cubic-bezier(.34, 1.56, .64, 1); animation: trFloat 3.4s ease-in-out infinite alternate; }
.tr-track li:nth-child(odd) img { animation-delay: -1.7s; }
.tr-track li:hover img { transform: translateY(-8px) scale(1.08) rotate(-3deg); }
.tr-track b { font-size: 14px; font-weight: 600; }
.tr-track small { font-size: 12.5px; color: var(--tr-ink-2); line-height: 1.5; }
@keyframes trFloat { to { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .tr-track img { animation: none; } }

/* themes */
body.d1 .tr { --tr-bg: #eaf4fb; --tr-ink: #12385a; --tr-ink-2: #3d5a78; --tr-accent: #2f86c6; --tr-display: 'Bricolage Grotesque', 'IBM Plex Sans Thai', sans-serif; }
body.d2 .tr { --tr-bg: #fdf0d5; --tr-ink: #5a1d0c; --tr-ink-2: #7c2d12; --tr-accent: #c2410c; --tr-display: 'Newsreader', 'Noto Sans Thai', serif; }
html[lang=th] body.d2 .tr-h { font-family: 'Noto Sans Thai', sans-serif; }
body.d4 .tr { --tr-bg: #fdf8f0; --tr-ink: #7a1630; --tr-ink-2: #5b2a33; --tr-accent: #e8561e; --tr-display: 'Caprasimo', 'Kanit', serif; }
html[lang=th] body.d4 .tr-h { font-family: 'Kanit', serif; font-weight: 400; }
body.d5 .tr { --tr-bg: #e6f5ff; --tr-ink: #0d4f8f; --tr-ink-2: #2f6aa3; --tr-accent: #1e90e0; --tr-display: 'Baloo 2', 'Prompt', sans-serif; }
html[lang=th] body.d5 .tr-h { font-family: 'Prompt', sans-serif; font-weight: 400; }
body.d6 .tr { --tr-bg: #0b1f3a; --tr-ink: #f7f5f0; --tr-ink-2: #9db4cc; --tr-accent: #e8a4b0; --tr-display: var(--display), 'Noto Serif Thai', serif; }
body.d6 .tr-track img { filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .35)); }

/* keep every logo inside its box so it never covers the name */
.tr-track figure { position: relative; display: block; height: clamp(90px, 9vw, 116px); margin-bottom: 14px; }
.tr-track img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; }
.tr-track b, .tr-track small { position: relative; z-index: 1; }
body.d7 .tr { --tr-bg: #fff8ec; --tr-ink: #0f4a5c; --tr-ink-2: #2e6a78; --tr-accent: #e5574c; --tr-display: 'Young Serif', 'Noto Sans Thai', serif; padding-bottom: clamp(80px, 9vw, 120px); }
html[lang=th] body.d7 .tr-h { font-family: 'Noto Sans Thai', sans-serif; font-weight: 500; line-height: 1.7; }
