/* Showcase (13.11): three concepts, one per row, full content width, media first, text under it. 16:9 clips on every screen size, no sliding.
   Square corners, flat fills, Ink and Cream only. Frames reserve their aspect ratio, so CLS is 0. */
.work { border-top: 1px solid var(--line); }
.sl-root { position: relative; }
.sl-list { display: grid; gap: clamp(48px, 6vw, 96px); }
.sl { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.sl-copy { display: grid; gap: 12px; align-content: start; justify-items: start; min-width: 0; }
.sl-name { font-size: clamp(32px, 4vw, 64px); font-weight: 600; line-height: 1; letter-spacing: -0.04em; overflow-wrap: anywhere; }
.sl-tag { display: inline-block; padding: 3px 10px; border: 1px solid currentColor; border-radius: 0; color: var(--ac); font-family: var(--font-mono); font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: 0.1em; text-transform: uppercase; }
html[lang="th"] .sl-tag { letter-spacing: 0.02em; text-transform: none; }
.sl-hl { color: var(--fg); font-size: clamp(18px, 0.5vw + 15px, 22px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; text-wrap: balance; }
html[lang="th"] .sl-hl { line-height: 1.45; letter-spacing: 0; }
.sl-line { color: var(--fg2); font-size: 16px; }
/* Media first, text under it. The 16:9 desktop clip at every size. */
.sl-media { order: -1; position: relative; margin: 0; width: 100%; aspect-ratio: 16 / 9; overflow: hidden; border: 1px solid var(--line2); border-radius: 0; background: var(--surface); }
.sl-media picture { display: contents; }
.sl-poster, .sl-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top center; -webkit-user-drag: none; user-select: none; }
.sl-vid { opacity: 0; background: var(--surface); transition: opacity 300ms ease; pointer-events: none; }
.sl-vid.is-playing { opacity: 1; }
/* Controls */
.sl-controls { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: clamp(24px, 3vw, 40px); }
.sl-controls[hidden] { display: none; }
.sl-btn { flex: none; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--hair-soft); border-radius: 0; background: transparent; color: var(--fg); cursor: pointer; transition: background var(--m-150, 150ms) ease, color var(--m-150, 150ms) ease; }
.sl-btn:hover { background: var(--fg); color: var(--bg); }
.sl-btn:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.sl-pause-icon { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.sl-pause[aria-pressed="true"] .sl-pause-icon { width: 0; height: 0; border: 0; border-left: 11px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; }
.sl-more { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; margin-top: 16px; }
@media (prefers-reduced-motion: reduce) {
  .sl-vid, .sl-btn { transition: none; }
}
