html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
  scrollbar-width: thin;
  user-select: none;
  user-drag: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  overflow-x: hidden;
}

/* Hide the native scrollbar only where Lenis drives wheel scrolling;
   below 1024px touch devices need native scrolling to work at all. */
@media (min-width: 1024px) {
  html {
    overflow-y: hidden;
  }
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:focus-visible {
  outline: none;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow:
    0 0 0 0.1rem white,
    0 0 0 0.25rem #258cfb;
}

body {
  overflow-x: hidden;
}

/*#abNav {
    position: fixed;
    background: var(--bg);
}*/

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/*////////////////////////////////////////////////////////////////////////////////*/

/* BUTTON CODE */

.all-button-code {
  /* ---- Color tokens ---- */
  --dark: #1a0f30;
  --light: #ffffff;
  /* Role assignments — default = light text on dark bg */
  --base-bg: transparent;
  --fill-bg: var(--light);
  --base-text: var(--light);
  --fill-text: #000;
  --shimmer: rgba(255, 255, 255, 0.18);
  --border: rgba(255, 255, 255, 0.16);
  /* ---- Motion tokens ---- */
  --duration: 0.55s;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
  /* ---- Layout ---- */
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 1.15rem 4.5rem 1.15rem 1.75rem;
  border: 1px solid var(--border);
  /* ---- Typography ---- */
  font-family: "Roboto Condensed", sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 3.2px;
  line-height: normal;
  text-transform: uppercase;
  text-decoration: none !important;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  background-image:
    linear-gradient(to right, var(--fill-text) 50%, var(--base-text) 50%),
    linear-gradient(to right, var(--fill-bg) 49%, var(--base-bg) 50%);
  background-size:
    200% 100%,
    203% 101%;
  background-position:
    100% 0,
    100% 0;
  background-repeat: no-repeat, no-repeat;
  background-clip: text, padding-box;
  -webkit-background-clip: text, padding-box;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  transition:
    background-position var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
  max-width: max-content;
}

.all-button-code:hover,
.all-button-code:focus-visible {
  background-position:
    0% 0,
    0% 0;
  border-color: transparent;
  outline: none;
}

/* ---- Dark-on-light variant ---- */
.all-button-code.dark-version {
  --base-bg: #ffffff;
  --fill-bg: var(--dark);
  --base-text: var(--dark);
  --fill-text: #ffffff;
  --shimmer: rgba(26, 15, 48, 0.1);
  --border: rgba(26, 15, 48, 0.18);
}

/* ---- Occasional shimmer ---- */
.all-button-code::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    110deg,
    transparent 35%,
    var(--shimmer) 50%,
    transparent 65%
  );
  background-size: 250% 100%;
  background-position: 120% 0;
  animation: all-button-shimmer 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 3;
}

@keyframes all-button-shimmer {
  0% {
    background-position: 120% 0;
  }

  18% {
    background-position: -60% 0;
  }

  100% {
    background-position: -60% 0;
  }
  /* idles off-screen until next cycle */
}

.all-button-code:hover::before {
  opacity: 0;
}

/* ---- Arrow (auto-inverts via difference blend) ---- */
.all-button-code::after {
  content: "";
  position: absolute;
  right: 1.75rem;
  top: 50%;
  width: 22px;
  height: 14px;
  transform: translateY(-50%);
  background: #ffffff;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14' fill='none'><path d='M1 7h19M14 1l6 6-6 6' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 14' fill='none'><path d='M1 7h19M14 1l6 6-6 6' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>")
    no-repeat center / contain;
  mix-blend-mode: difference;
  pointer-events: none;
  z-index: 2;
  transition: transform var(--duration) var(--ease);
}

.all-button-code:hover::after {
  transform: translate(5px, -50%);
}

@media (prefers-reduced-motion: reduce) {
  .all-button-code::before {
    animation: none;
    opacity: 0;
  }

  .all-button-code,
  .all-button-code::after {
    transition: none;
  }
}

@media (max-width: 768px) {
  .all-button-code {
    padding: 1rem 4.5rem 1rem 1.3rem !important;
  }
}

/* END OF BUTTON CODE */

html.lenis,
html.lenis body {
  height: auto;
}

.lenis-smooth {
  scroll-behavior: auto !important;
}

.lenis-smooth [data-lenis-prevent] {
  scroll-behavior: contain;
}

/* --- PRELOADER STYLING --- */
.transition-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  /* Starts covering the screen so there's no white flash on load */
  transform: translateX(0);
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
}

/* State 1: Slide out to the right (Reveal page) */
.transition-overlay.slide-out {
  transform: translateX(100%);
}

/* State 2: Snap to the left (Prep for exit) */
.transition-overlay.slide-in-start {
  transition: none; /* Snap instantly */
  transform: translateX(-100%);
}

/* State 3: Slide in to center (Cover page before exit) */
.transition-overlay.slide-in-active {
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1);
  transform: translateX(0);
}

/* --- SVG STYLING --- */
.loader-svg {
  width: 80px;
}
.st0 {
  fill: none;
  stroke: #ffffff; /* Changed to white to contrast black background */
  stroke-width: 1;
  stroke-miterlimit: 10;
  /* pathLength="1" makes animating incredibly easy */
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.animate-svg .st0 {
  animation: drawInOut 2.2s cubic-bezier(0.45, 0, 0.15, 1) forwards;
}

@keyframes drawInOut {
  0% {
    stroke-dashoffset: 1;
  }
  40% {
    stroke-dashoffset: 0;
  } /* Draws in */
  60% {
    stroke-dashoffset: 0;
  } /* Pauses briefly */
  100% {
    stroke-dashoffset: -1;
  } /* Draws out */
}
