/* shared base for the three directions */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Satoshi", "Instrument Sans", system-ui, sans-serif; font-size: 18px; line-height: 1.5; text-transform: lowercase; }
img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

/* before / after slider */
.ba { position: relative; overflow: hidden; touch-action: pan-y; cursor: ew-resize; user-select: none; --x: 50%; }
.ba img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba .ba-log { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--x); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.35); }
.ba-knob { position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 14px rgba(0,0,0,.3); }
.ba-knob::before, .ba-knob::after { content: ""; position: absolute; top: 50%; width: 0; height: 0; margin-top: -6px; border: 6px solid transparent; }
.ba-knob::before { left: 7px; border-right-color: #222; }
.ba-knob::after { right: 7px; border-left-color: #222; }
.ba-tag { position: absolute; bottom: 14px; padding: 3px 10px; border-radius: 99px; font: 500 12px/1.4 "IBM Plex Mono", monospace; letter-spacing: .04em; color: #fff; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); }
.ba-tag-l { left: 14px; } .ba-tag-r { right: 14px; }
.ba:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.ba video { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.ba video.ba-log { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--x)) 0 0); }
