@font-face {
  font-family: Inter;
  src: url("/layout/font/InterVariable.woff2");
  font-weight: 100 900;
  font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  outline: none;
  border: none;
  background: none;
  cursor: none;
}

:root {
  --primary: #f5f5f5;
  --secondary: #101010;
  --tertiary: #7f7f7f;
  --primary-rgb: 245, 245, 245;
  --secondary-rgb: 16, 16, 16;

  --default-delay: 0s;
}

html {
  font-size: 10px;
  scroll-behavior: smooth;
}

body {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: "Inter";
  font-weight: 400;
  background: var(--primary);
  color: var(--secondary);
  text-transform: uppercase;
}

#ar {
  background: transparent;
}

.preloader-anim {
  filter: blur(1rem);
  opacity: 0;
  transform: translateY(2rem);
  animation: preloaderContentAnim 1s ease forwards;
  animation-delay: calc(var(--default-delay) + var(--preloader-delay));
}

@keyframes preloaderContentAnim {
  from {
    filter: blur(1rem);
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

#preloader h2 {
  mix-blend-mode: difference;
  margin: 0;
  color: var(--primary);
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

/* IMG */

img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

/* HEADER */

header {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  position: fixed;
  background: none;
  top: 0;
  left: 0;
  width: 100%;
  padding: 34px 60px;
  mix-blend-mode: difference;
  z-index: 10;
  transform: translateY(0%);
  transition: transform 0.3s ease-out;
}

header.scrolled {
  transform: translateY(-110%);
}

header img {
  width: 170px;
}

ul {
  margin: 0 auto;
  justify-self: center;
  display: flex;
  gap: 100px;
  position: relative;
}

ul::after {
  position: absolute;
  content: "";
  vertical-align: middle;
  top: 45%;
  left: calc(50% - 10px);
  opacity: 0;
  width: 20px;
  height: 1px;
  background: var(--primary);
  animation: appearLine 1s ease forwards;
  animation-delay: calc(var(--default-delay) + 0.45s);
}

@keyframes appearLine {
  from {
    filter: blur(1rem);
    opacity: 0;
    transform: translateY(2rem);
  }

  to {
    filter: blur(0);
    opacity: 1;
    transform: translateY(0);
  }
}

li {
  list-style-type: none;
}

header a,
header p {
  color: var(--primary);
}

header .btn,
.contact header .btn:hover {
  justify-self: end;
  color: var(--primary);
  border-color: var(--primary);
  background: none;
}

header .btn:hover,
.contact header .btn {
  color: var(--secondary);
  background: var(--primary);
}

.active,
.underline {
  position: relative;
}

.underline::after {
  position: absolute;
  content: "";
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 1px;
  background: var(--secondary);
  transition: all 0.3s ease-out;
}

.active::after,
.underline:hover::after {
  position: absolute;
  content: "";
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: var(--secondary);
}

header .active::after,
header .underline::after,
header .underline:hover::after {
  background: var(--primary);
}

/* TYPO */

h1,
h2 {
  font-size: clamp(4.4rem, 0.1392rem + 4.3478vw, 6rem);
}

h1 {
  font-weight: 400;
  display: flex;
  gap: 10px;
}

h2 {
  margin: 75px 0 65px;
  font-weight: 400;
}

h3 {
  font-size: clamp(2.8rem, 1.09568rem + 1.7391vw, 3.6rem);
  font-weight: 500;
}

a,
p {
  font-size: clamp(1.2rem, 0.34784rem + 0.8696vw, 1.6rem);
}

a {
  text-decoration: none;
  display: inline-block;
  color: var(--secondary);
  font-weight: 300;
}

.background a {
  color: var(--primary);
}

span {
  color: var(--tertiary);
  font-weight: 200;
}

.mail {
  font-size: clamp(2.2rem, 1.77392rem + 0.4348vw, 2.4rem);
  text-decoration: underline;
  display: block;
  white-space: nowrap;
}

.tertiary {
  color: var(--tertiary);
}

/* BUTTON */

.btn {
  width: fit-content;
  padding: 12px 24px;
  color: var(--secondary);
  border-radius: 100px;
  border: 1px solid var(--secondary);
  transition: all 0.3s ease-out;
}

.btn:hover {
  color: var(--primary);
  background: var(--secondary);
}

/* WRAP */

.wrap {
  max-width: 1440px;
  padding: 0 10vw;
}

/* SELECT LANG */
.lang {
  position: fixed;
  bottom: 3.4rem;
  left: 6rem;
  width: fit-content;
  overflow: hidden;
  z-index: 8;
  transition: opacity 0.2s ease-out;
}

.lang__wrap {
  background: var(--primary);
  display: flex;
  width: calc(100% / 4);
  border: solid 1px rgb(var(--secondary-rgb), 0.125);
  border-radius: 10rem;
  overflow: hidden;
  transition: width 0.3s ease-in-out;
}

.lang__wrap:hover {
  width: 100%;
}

.flag {
  padding: 1.5rem;
  background: var(--primary);
  transition: background 0.2s ease-in-out;
}

.flag:hover,
.flag.selected {
  background: rgb(var(--secondary-rgb), 0.025);
}

.flag.selected {
  order: -1;
}

.lang img {
  width: 3rem;
  transition: transform 0.2s ease-out;
}

.flag:not(.selected):hover img {
  transform: scale(1.1);
}

/* PAGE WORKS */

.spacing {
  margin-top: 180px;
}

.light {
  font-weight: 200;
}

.regular {
  font-weight: 300;
}

.center {
  text-align: center !important;
}

/* SELECT LANG */

.select-logo {
  width: 15%;
  position: absolute;
  top: 3dvh;
  left: 50%;
  transform: translateX(-50%);
}

.select-lang {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  gap: 20px;
  flex-direction: column;
}

.select-lang a {
  color: var(--secondary);
  display: flex;
  gap: 10px;
  text-decoration: underline;
  white-space: nowrap;
}

.select-lang a:hover {
  text-decoration: none;
}

.select-lang img {
  width: 20px;
}

.select-lang {
  filter: drop-shadow(0 0 0.5rem rgb(var(--primary-rgb), 0.4));
}

/* CURSOR */
.cursor-dot,
.cursor-outline {
  position: fixed;
  top: 0;
  left: 0;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  z-index: 11;
  pointer-events: none;
  mix-blend-mode: difference;
}

.cursor-dot {
  background: var(--primary);
  width: 5px;
  height: 5px;
  transition: opacity 0.3s ease-out;
}

.cursor-outline {
  width: 30px;
  height: 30px;
  opacity: 0.5;
  border: 1px solid var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: width 0.3s ease-out, height 0.3s ease-out, opacity 0.3s ease-out,
    background 0.3s ease-out;
}

.cursor-dot.view-more {
  opacity: 0;
}

.cursor-outline.view-more {
  width: 90px;
  height: 90px;
  opacity: 1;
  background: var(--primary);
}

.invisible {
  opacity: 0 !important;
}

/* LANG */

.lang {
  display: flex;
  gap: 10px;
}

.selected {
  color: var(--secondary);
  text-decoration: underline;
}

.selected:hover {
  text-decoration: underline;
}

.mobile-only {
  display: none;
}

/* VERIFY */

#verify {
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

form {
  width: 32rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

label {
  font-size: 1.6rem;
  font-weight: bold;
  text-align: center;
}

input {
  padding: 1rem 2rem;
  border: solid 1px rgb(var(--secondary-rgb), 0.5);
  border-radius: 0.5rem;
  transition: border 0.2s ease-out;
}

input:hover,
input:active {
  border: solid 1px rgb(var(--secondary-rgb), 1);
}

input[type="submit"] {
  background: var(--secondary);
  color: var(--primary);
  transition: opacity 0.2s ease-out;
}

input[type="submit"]:hover {
  opacity: 0.5;
}

/* AR */

#loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--secondary);
}

#arBanner {
  position: fixed;
  bottom: 3vh;
  width: 100%;
  background: var(--secondary);
  color: var(--primary);
  padding: 1em;
  z-index: 10000;
}

/* RESPONSIVE DESKTOP */
@media screen and (min-width: 1441px) {
  .wrap {
    max-width: 1440px;
    margin-inline: auto;
  }
}

/* RESPONSIVE MOBILE/TABLET */
@media screen AND (max-width: 979px) {
  /* BURGER/HEADER */
  .burger {
    width: 25px;
  }

  .mobile-only {
    display: block;
  }

  .mobile-only p,
  .mobile-only a {
    color: var(--tertiary);
  }

  .mobile-only p.selected,
  .mobile-only a.selected {
    color: var(--primary);
  }

  header {
    display: flex;
    justify-content: space-between;
    padding: 34px 5vw;
  }

  header .btn,
  .contact header .btn,
  .contact header .btn:hover {
    color: var(--primary);
    border: none;
    background: none;
    padding: 0;
  }

  .contact header .btn {
    text-decoration: underline;
  }

  header img {
    width: 110px;
  }

  nav a,
  header .btn {
    font-size: 2rem;
  }

  nav,
  header a.btn,
  .other {
    position: absolute;
    transition: all 0.9s ease-out;
  }

  nav,
  header .btn {
    left: -100%;
  }

  nav {
    top: 100px;
  }

  header .btn {
    top: 175px;
  }

  header .btn:hover {
    color: var(--primary);
    background: none;
  }

  .other {
    width: calc(100vw - 10vw);
    display: flex;
    align-items: end;
    justify-content: space-between;
    bottom: -150vh;
  }

  .open nav,
  header.open .btn {
    left: 5vw;
  }

  .open .other {
    bottom: -84dvh;
  }

  ul {
    flex-direction: column;
    gap: 15px;
  }

  ul::after {
    display: none;
  }

  header::before {
    position: absolute;
    width: 100vw;
    height: 0;
    content: "";
    top: 0;
    left: 0;
    background: var(--secondary);
    transition: height 0.7s ease-out;
    z-index: -5;
  }

  header.open::before {
    height: 100vh;
  }

  .rights,
  .language {
    display: flex;
    flex-direction: column;
    gap: 5px;
  }

  /* TEXT */

  h1 {
    font-size: clamp(2.4rem, 4.1vw, 4rem);
  }

  h2 {
    font-size: clamp(1.6rem, 2.9vw, 2.8rem);
    margin: 50px 0 25px;
  }

  h3 {
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  }

  .lang {
    display: none;
  }

  /* WRAP */
  .wrap {
    padding: 0 5vw;
  }

  .spacing {
    margin-top: 100px;
  }

  .lang {
    left: 5vw;
  }

  .lang img {
    width: 3rem;
  }

  .link:not(.flag) {
    margin-bottom: 15px;
  }

  /* SELECT-LANG */

  .select-logo {
    width: 25%;
  }

  .select-lang {
    width: fit-content;
  }
}
