/* Continuous before/after reveals start with CSS, without clicks or scroll triggers. */
.package-comparison {
  position: relative;
  width: 100%;
  aspect-ratio: var(--comparison-ratio);
  align-self: center;
  overflow: hidden;
  isolation: isolate;
  background: #101010;
}
.comparison-scene, .comparison-scene svg, .comparison-after { position: absolute; inset: 0; width: 100%; height: 100%; }
.comparison-scene { overflow: hidden; }
.comparison-scene svg { display: block; }
.comparison-after { animation: package-reveal 4.5s linear infinite alternate; }
.comparison-wipe { position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: #e3c68f; box-shadow: 0 0 14px #0008; transform: translateX(-50%); animation: package-wipe 4.5s linear infinite alternate; }
.comparison-captions { position: absolute; inset: 18px auto auto 16px; display: grid; pointer-events: none; }
.comparison-captions span { grid-area: 1 / 1; width: fit-content; padding: 7px 12px; border: 1px solid #ffffff40; background: #0c0c0cd9; color: #fff; font-size: 10px; font-weight: 700; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; }
.comparison-before-label { animation: package-before-label 4.5s linear infinite alternate; }
.comparison-captions .comparison-after-label { background: #d2b27b; color: #111; border-color: #d2b27b; animation: package-after-label 4.5s linear infinite alternate; }
@keyframes package-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes package-wipe { from { left: 0; } to { left: 100%; } }
@keyframes package-before-label { 0%,35% { opacity: 1; } 65%,100% { opacity: 0; } }
@keyframes package-after-label { 0%,35% { opacity: 0; } 65%,100% { opacity: 1; } }
@media (max-width:1100px) and (min-width:701px) {
  .package-comparison { width: min(100%,340px); justify-self: center; }
}
@media (max-width:700px) {
  .package-comparison { width: 100%; }
  .comparison-captions { top: 18px; left: 18px; }
}
