* { box-sizing: border-box; }
html, body { margin: 0; }
body { overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* Film grain laid over a section */
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: multiply; background-size: 220px 220px; z-index: 1; }

/* The chrome TV that changes channel */
.tvbox { position: relative; cursor: pointer; }
.tvbox .tvimg { width: 100%; position: relative; z-index: 2; pointer-events: none; user-select: none; }
.tvscreen { position: absolute; left: 12.4%; top: 33.5%; width: 65.8%; height: 37.3%; border-radius: 9% / 13%; overflow: hidden; z-index: 3; background: #050505; }
.tvscreen .pic { position: absolute; inset: 0; background-size: cover; background-position: top center; }
.tvscreen .pic.b { background-image: url(a/before.jpg); }
.tvscreen .pic.a { background-image: url(a/after.jpg); opacity: 0; }
.tvbox.on-after .pic.b { opacity: 0; } .tvbox.on-after .pic.a { opacity: 1; }
.tvscreen .snow { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; image-rendering: pixelated; }
.tvbox.flip .snow { opacity: 1; }
.tvscreen .scan { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(to bottom, rgba(0,0,0,.08) 0 1px, transparent 1px 3px), radial-gradient(120% 90% at 30% 15%, rgba(255,255,255,.18), transparent 45%); }

/* Gentle floating objects */
.float { animation: bob 6s ease-in-out infinite; }
.float.slow { animation-duration: 8s; }
.float.delay { animation-delay: -3s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); } 50% { transform: translateY(-12px) rotate(var(--r, 0deg)); } }
@media (prefers-reduced-motion: reduce) { .float { animation: none; transform: rotate(var(--r, 0deg)); } }

/* Four-point sparkle */
.spark { position: absolute; width: 34px; aspect-ratio: 1; background: #fff; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); opacity: .9; z-index: 1; }
@media (max-width: 600px) { .spark { display: none; } }

/* A product row that slides like the one on suesbalsamicglazes.com: one lap of all 10 flavors every 70 seconds.
   Each use sets where the row sits on its screenshot, its strip image, and the track width (2 laps, or 3 on the TV). */
.slide-row { position: absolute; left: 0; width: 100%; overflow: hidden; }
.slide-row > div { height: 100%; background: 0 0 / 50% 100% repeat-x; animation: rowslide 70s linear infinite; will-change: transform; }
@keyframes rowslide { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .slide-row > div { animation: none !important; } }
