/* ==============================
   BASE
   ============================== */
html {
  scroll-behavior: smooth;
}

body {
  min-height: max(884px, 100dvh);
}

/* ==============================
   SCROLLBAR UTILITY
   ============================== */
.hide-scrollbar::-webkit-scrollbar {
  display: none;
}

.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* ==============================
   MATERIAL SYMBOLS — FILLED VARIANT
   ============================== */
.fill-1 {
  font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* ==============================
   BEFORE / AFTER COMPARISON SLIDER
   ============================== */
.before-after-container {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 1rem;
}

.before-after-container .after-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.before-after-container .before-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 var(--pos) 0 0);
}

.slider-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 20;
}

.slider-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(100% - var(--pos));
  width: 2px;
  background: white;
  z-index: 10;
  pointer-events: none;
  transform: translateX(-50%);
}

.slider-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232b8cee' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M7 16l-4-4m0 0l4-4m-4 4h18m-4 4l4-4m0 0l-4-4' /%3E%3C/svg%3E");
  background-size: 20px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ==============================
   SCROLL REVEAL
   ============================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  transition-delay: var(--delay, 0s);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}
