@font-face {
  font-family: 'Sailec';
  src: url('../fonts/Sailec-Light.woff2') format('woff2');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sailec';
  src: url('../fonts/Sailec-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Sailec';
  src: url('../fonts/Sailec-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ogg';
  src: url('../fonts/Ogg-Regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  --font-family-1: 'Sailec', sans-serif;
  --font-family-2: 'Ogg', serif;
  --font-weight: 300;
  --font-size: 1.145833rem;
  --font-size-min: 18px;
  --font-size-max: 22px;
  --line-height: 1.5;
  --color-1: 147 0 34;
  --ease-in-out-circ: cubic-bezier(.785, .135, .15, .86);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
  -webkit-tap-highlight-color: transparent;

  &::before,
  &::after {
    box-sizing: border-box;
  }
}

html {
  font-size: 1vw;
}

body {
  height: 100dvh;
  min-height: 450px;
  background-color: black;
  color: white;
  font-family: var(--font-family-1);
  font-weight: var(--font-weight);
  font-size: clamp(var(--font-size-min),
      var(--font-size),
      var(--font-size-max));
  line-height: var(--line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 50px;
  z-index: 2;
  width: 50rem;
  max-width: 210px;

  path {
    fill: rgb(var(--color-1));
  }
}

.container {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.video-wrapper {
  position: relative;

  video {
    display: block;
    width: auto;
    height: auto;
    max-width: 100dvw;
    max-height: 100dvh;
    object-fit: cover;
  }
}

.ui-roundlink {
  appearance: none;
  display: inline-flex;
  text-transform: uppercase;
  text-decoration: none;
  font-size: clamp(12px, .78125rem, 18px);
  font-weight: 400;
  color: white;
  padding: 0 2.760417rem 0 clamp(25px, 1.889323rem, 1.889323rem);
  align-items: center;
  transition: all 400ms var(--ease-in-out-circ);
  background-color: transparent;
  border-width: 0;
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.1em;

  position: absolute;
  bottom: 75px;
  left: 50%;
  transform: translateX(-50%);
  opacity: 0;
  pointer-events: none;

  &:hover {
    color: rgb(var(--color-1));

    &::after {
      width: calc(100% - 1rem);
    }
  }

  &[data-display] {
    opacity: 1;
    pointer-events: auto;
  }

  &::before {
    content: "";
    display: block;
    position: absolute;
    width: clamp(50px, 3.778646rem, 3.778646rem);
    height: clamp(50px, 3.778646rem, 3.778646rem);
    border-radius: 50%;
    border: 1px solid rgb(var(--color-1));
    top: 50%;
    left: 0;
    transform: translateY(-50%);
  }

  &::after {
    content: "";
    display: block;
    height: 2.604167rem;
    background-color: black;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    left: 1.889323rem;
    width: calc(100% - 1.889323rem);
    background-image: url('../img/arrow-red.png');
    background-size: 2.1875rem 1.979167rem;
    background-position: right center;
    background-repeat: no-repeat;
    transition: width 400ms var(--ease-in-out-circ);
  }

  span {
    display: inline-block;
    z-index: 1;
    white-space: nowrap;
    background-color: black;
  }

  svg {
    display: block;
    width: 2.1875rem;
    height: 1.979167rem;
  }
}

@media(max-width: 820px) {
  .ui-roundlink::after {
    height: 6rem;
    background-size: 7rem 5rem;
    left: 8rem;
  }
}
