/* Shared mechanics for all three mock-ups: resets, accessibility helpers, the before/after
   slider, the lightbox and the honeypot. Each design themes these through its own tokens. */

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
[hidden] { display: none !important; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 1000; padding: 10px 16px; background: #000; color: #fff; transform: translateY(-160%); transition: transform .2s; }
.skip:focus { transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Before / after */
.compare { position: relative; overflow: hidden; --pos: 50; touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.compare-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos) * 1%) 0 0); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.compare-handle { position: absolute; top: 0; bottom: 0; left: calc(var(--pos) * 1%); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgb(0 0 0 / .08); }
.compare-handle::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px; border-radius: 50%;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 7l-5 5 5 5M15 7l5 5-5 5' fill='none' stroke='%23222' stroke-width='1.8'/%3E%3C/svg%3E") center / 24px no-repeat;
  box-shadow: 0 6px 24px rgb(0 0 0 / .25);
}
.compare-range:focus-visible ~ .compare-handle::after { outline: 3px solid #fff; outline-offset: 4px; }
.compare-tag { position: absolute; top: 16px; z-index: 2; padding: 6px 12px; font-size: .8rem; line-height: 1; background: rgb(0 0 0 / .55); color: #fff; border-radius: 99px; pointer-events: none; backdrop-filter: blur(6px); }
.compare-tag-before { left: 16px; }
.compare-tag-after { right: 16px; }

/* Lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 10 9 / .94); color: #fff; overflow: hidden; }
.lightbox::backdrop { background: transparent; }
.lightbox[open] { display: grid; place-items: center; animation: lb-in .25s ease-out; }
@keyframes lb-in { from { opacity: 0; } }
.lightbox-figure { display: grid; gap: 14px; justify-items: center; max-width: min(92vw, 1600px); }
.lightbox-img { max-width: 92vw; max-height: 80dvh; width: auto; height: auto; object-fit: contain; opacity: 0; transition: opacity .3s; }
.lightbox-img.is-loaded { opacity: 1; }
.lightbox-caption { display: flex; gap: 24px; justify-content: space-between; width: 100%; font-size: .95rem; opacity: .85; padding: 0 4px; }
.lightbox-count { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1px solid rgb(255 255 255 / .25); border-radius: 50%; background: rgb(0 0 0 / .35); color: #fff; }
.lightbox-btn svg { width: 22px; height: 22px; }
.lightbox-btn:hover { background: rgb(255 255 255 / .12); }
.lightbox-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.lightbox-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 20px; top: 50%; transform: translateY(-50%); }
.lightbox-close { right: 20px; top: 20px; }
html.lightbox-open { overflow: hidden; }
@media (max-width: 700px) {
  .lightbox-prev, .lightbox-next { top: auto; bottom: 20px; transform: none; }
  .lightbox-caption { flex-direction: column; gap: 4px; padding: 0 16px; }
}

/* Form basics */
.field-error { margin-top: 6px; font-size: .88rem; }
.form-status:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  /* the live page's Dig it men and garden layers (.man, .deco) keep their small loops: polish.css decides */
  :not(.man *, .deco *), :not(.man *, .deco *)::before, :not(.man *, .deco *)::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
