/* -------------------------------- 

File#: _1_custom-cursor
Title: Custom Cursor
Descr: A JavaScript plugin to create animated custom cursors
Usage: codyhouse.co/license

-------------------------------- */
/* reset */
*, *::after, *::before {
  box-sizing: border-box;
}

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  background-color: hsl(0, 0%, 100%);
  font-family: system-ui, sans-serif;
  color: hsl(230, 7%, 23%);
  font-size: 1rem;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: hsl(230, 13%, 9%);
  font-weight: 700;
}

h1 {
  font-size: 2.0736rem;
}

h2 {
  font-size: 1.728rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.2rem;
}

ol, ul, menu {
  list-style: none;
}

button, input, textarea, select {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  line-height: inherit;
  appearance: none;
}

textarea {
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}



table {
  border-collapse: collapse;
  border-spacing: 0;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

@media (min-width: 64rem) {
  body {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 3.051rem;
  }

    h2 {
    font-size: 2.44rem;
  }

    h3 {
    font-size: 1.75rem;
  }

    h4 {
    font-size: 1.5625rem;
  }
}

/* variables */
:root {
  /* colors */
  --cs9-color-primary-hsl: 250, 84%, 54%;
  --cs9-color-bg-hsl: 0, 0%, 100%;
  --cs9-color-contrast-high-hsl: 230, 7%, 23%;
  --cs9-color-contrast-higher-hsl: 230, 13%, 9%;
  --cs9-color-bg-darker-hsl: 240, 4%, 90%;
}

/* icons */
.cs9-icon {
  height: var(--cs9-size, 1em);
  width: var(--cs9-size, 1em);
  display: inline-block;
  color: inherit;
  fill: currentColor;
  line-height: 1;
  flex-shrink: 0;
  max-width: initial;
}

.cs9-icon--xl {
  --cs9-size: 64px;
}

/* component */
.c-cursor {
  position: fixed;
  z-index: 9999;
  /* use highest z-index value */
  top: 0;
  left: 0;
  pointer-events: none;
}

.c-cursor__img {
  display: block;
  position: relative;
  margin: -50% 0 0 -50%;
  -webkit-filter: drop-shadow(0 1px 1px hsla(0deg, 0%, 0%, 0.1));
          filter: drop-shadow(0 1px 1px hsla(0deg, 0%, 0%, 0.1));
  opacity: 0;
  --translate: 0;
  --rotate: 0;
  --skew: 0;
  --scale: 0;
  -webkit-transform: translate3d(var(--translate-x, var(--translate)), var(--translate-y, var(--translate)), var(--translate-z, 0)) rotateX(var(--rotate-x, 0)) rotateY(var(--rotate-y, 0)) rotateZ(var(--rotate-z, var(--rotate))) skewX(var(--skew-x, var(--skew))) skewY(var(--skew-y, 0)) scaleX(var(--scale-x, var(--scale))) scaleY(var(--scale-y, var(--scale)));
          transform: translate3d(var(--translate-x, var(--translate)), var(--translate-y, var(--translate)), var(--translate-z, 0)) rotateX(var(--rotate-x, 0)) rotateY(var(--rotate-y, 0)) rotateZ(var(--rotate-z, var(--rotate))) skewX(var(--skew-x, var(--skew))) skewY(var(--skew-y, 0)) scaleX(var(--scale-x, var(--scale))) scaleY(var(--scale-y, var(--scale)));
  transition: opacity 0.2s, -webkit-transform 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  transition: opacity 0.2s, transform 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  transition: opacity 0.2s, transform 0.2s cubic-bezier(0.215, 0.61, 0.355, 1), -webkit-transform 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
}
.c-cursor--in .c-cursor__img {
  /* enter animation */
  --scale: 1;
  opacity: 1;
}

@media (prefers-reduced-motion: no-preference) {
  [data-custom-cursor],
[data-custom-cursor] * {
    cursor: none;
  }
}

/* utility classes */
.cs9-flex-center {
  justify-content: center;
  align-items: center;
}

.cs9-flex {
  display: flex;
}

.cs9-radius-lg {
  border-radius: 0.5em;
}

:where(.cs9-media-wrapper-1\:1) {
  position: relative;
  height: 0;
}

.cs9-media-wrapper-1\:1 {
  padding-bottom: 100%;
}

.cs9-media-wrapper-1\:1 > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.cs9-media-wrapper-1\:1 > *:not(iframe) {
  object-fit: cover;
}

.cs9-width-100\% {
  width: 100%;
}

.cs9-bg-darker {
  --cs9-bg-o: 1;
  background-color: hsla(var(--cs9-color-bg-darker-hsl), var(--cs9-bg-o, 1));
}