/* v16 home page: the long-standing customers strip under the hero (logos drawn black, scrolling slowly, pauses on hover) */
/* the edge fade sits on the still frame, not on the moving track (on the track it travelled with it and faded logos mid-screen) */
.clients { padding: 44px 0 4px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.clients p { text-align: center; font-size: 13px; color: var(--ink-3); }
.clients-track { display: flex; width: max-content; margin-top: 26px; animation: clients-run 60s linear infinite; }
.clients:hover .clients-track, .clients:focus-within .clients-track { animation-play-state: paused; }
.clients ul { display: flex; align-items: center; margin: 0; padding: 0; list-style: none; }
/* spacing as padding, not gap, so the two copies are exactly half the track and the loop has no jump */
.clients li { flex: none; display: flex; align-items: center; height: 44px; padding-right: clamp(40px, 5vw, 72px); }
.clients img { height: 30px; width: auto; max-width: 150px; object-fit: contain; filter: brightness(0); opacity: .82; }
.clients .wm { font-size: 14px; font-weight: 600; color: var(--ink); opacity: .82; white-space: nowrap; letter-spacing: .01em; }
html[lang="en"] .clients .wm { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; }
@keyframes clients-run { to { transform: translateX(-50%); } }
/* the office PC reports prefers-reduced-motion, where site.css stops every animation: the strip stood still on Kim's screen
   ("logo ลูกค้าทำให้วิ่งเหมือนในเว็บตัวอย่าง", 3 Nov 2026). Like the hero crossfade it keeps moving there (it pauses on hover). */
@media (prefers-reduced-motion: reduce) { .clients-track { animation: clients-run 60s linear infinite !important; } }
/* marks that are nearly square read smaller than wordmarks at the same height: give them more height so the strip looks even */
.clients img[src*="/mandarin-oriental."], .clients img[src*="/royal-paradise."], .clients img[src*="/anantara."] { height: 44px; }
.clients img[src*="/cpf."], .clients img[src*="/hop-inn."], .clients img[src*="/yanhee."] { height: 36px; }
/* the Thai Airways orchid is drawn in several colours: solid black made it a blob (Kim, 3 Nov 2026: "ตรงดอกจำปีควรไล่สีเป็นเทาซ้อนดำ
   แบบนี้มันตลก"), so its colours become layered greys over black instead */
.clients img[src*="/thai-airways."] { filter: grayscale(1) contrast(1.6) brightness(.55); }

/* workflow step cards (Kim, 3 Nov 2026: "ในการ์ดนี้มันดูโล่งเกินไป"): number + English name, title, one line on what happens
   there; the photo caption links to the machines of the step */
.step { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 22px; background: color-mix(in srgb, var(--card) 70%, transparent); }
.step small { display: flex; justify-content: space-between; gap: 8px; color: var(--ink-3); }
.step small i { font-style: normal; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step b { font-size: 17px; font-weight: 600; margin-top: 4px; }
.step span { font-size: 13px; line-height: 1.6; color: var(--ink-3); }
.step.on { background: var(--card); }
.step.on span { color: var(--ink-2); }
.step::after { bottom: 10px; left: 18px; right: 18px; }
a.flow-caption { text-decoration: none; color: var(--ink); transition: background .2s ease; }
a.flow-caption:hover { background: var(--ink); color: #fff; }
html[lang="en"] .step small i { display: none; } /* the English title already says it */
@media (max-width: 560px) { .step small i { display: none; } .step b { font-size: 16px; } }

/* KHT Smart Laundromat (OOO-Project) section: words left, the dashboard and phone picture right, three features under it */
.smart { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.smart-kicker { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-3); }
.smart-kicker::before { content: ""; width: 24px; height: 1px; background: #3cc28a; }
.smart h2 { margin-top: 16px; font-size: clamp(32px, 4.2vw, 50px); line-height: 1.2; }
.smart-lead { margin-top: 18px; max-width: 470px; font-size: 16px; }
.smart-demo img { display: block; width: 100%; height: auto; } /* the picture carries its own soft shadows */
.smart-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: clamp(40px, 6vw, 72px); padding-top: 28px; border-top: 1px solid var(--line); }
.smart-feats small { font-size: 12px; color: var(--ink-3); font-family: "IBM Plex Sans", sans-serif; }
.smart-feats h3 { margin-top: 8px; font-size: 17px; }
.smart-feats p { margin-top: 8px; font-size: 14px; }
@media (max-width: 900px) { .smart { grid-template-columns: 1fr; } .smart-feats { grid-template-columns: 1fr; gap: 22px; } }

/* Yellow wave hero (front-page.php $kht_v16_hero = 'wave', shader in assets/v15/hero-wave.js). The gradient is what shows
   without WebGL. Dark brown words on yellow, so the see-through menu over it is dark too. */
/* .hero.full.hero-wave: two classes, to win over site.css's .hero.full (white words, dark shade for the photos) */
.hero.full.hero-wave { display: grid; place-items: center; text-align: center; color: #2b1e05; touch-action: pan-y;
  background: linear-gradient(115deg, #ffa100, #ffc800 45%, #ffda00); }
.hero.full.hero-wave::after { content: none; }
.wave-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.wave-copy { position: relative; z-index: 2; max-width: 1040px; padding: 64px 20px 0; pointer-events: none; }
.wave-copy a, .wave-copy .btn { pointer-events: auto; }
.wave-pill { display: inline-flex; align-items: center; gap: 9px; padding: 5px 13px 5px 5px; border-radius: 999px; font-size: 13px; color: inherit;
  background: rgb(255 255 255 / .45); box-shadow: inset 0 0 0 1px rgb(43 30 5 / .12); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.wave-pill b { padding: 2px 10px; border-radius: 999px; background: #2b1e05; color: #fff; font-weight: 600; }
.wave-copy h1 { margin-top: 26px; font-size: clamp(42px, 7.4vw, 108px); line-height: 1.08; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.wave-lead { margin: 22px auto 0; max-width: 580px; font-size: clamp(15px, 1.35vw, 18px); color: rgb(43 30 5 / .8); }
.wave-copy .hero-actions { justify-content: center; margin-top: 30px; }
.wave-copy .btn-dark { background: #2b1e05; }
.wave-copy .btn-ghost { background: rgb(255 255 255 / .4); box-shadow: inset 0 0 0 1px rgb(43 30 5 / .18); color: #2b1e05; }
.wave-copy small { display: block; margin-top: 22px; font-size: 12.5px; color: rgb(43 30 5 / .62); }
body:has(.hero-wave) header:not(.solid) { color: #2b1e05; }
body:has(.hero-wave) header:not(.solid) .logo img { filter: brightness(0); }

/* workflow card pictures change like the old hero slideshow: a 1.8 s cross-fade, the new one on top (so it never dips to grey),
   and a slow settle from 1.06 to 1 while it shows (Kim: "ตอนหมุนภาพปรับให้นุ่มนวลเหมือนเดิมด้วย"). The fade stays under reduced
   motion, as the hero's did (it has no movement); the settle does not. */
.flow-frame img { transition: opacity 1.8s ease-in-out; transform: none; }
.flow-frame img.top { z-index: 1; }
.flow-frame img.on { opacity: 1; animation: settle 7.8s cubic-bezier(.22, .61, .36, 1) both; }
@media (prefers-reduced-motion: reduce) { .flow-frame img { transition: opacity 1.8s ease-in-out !important; } }
