@import url("https://fonts.googleapis.com/css2?family=Barlow+Condensed:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap");

:root {
  --base-100: #f5e1bf;
  --base-200: #c49241;
  --base-300: #f75828;
  --base-400: #e01b22;
  --base-500: #17100a;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

h1,
a,
p {
  color: var(--base-100);
  text-transform: uppercase;
  line-height: 0.85;
}

h1 {
  font-family: "Barlow Condensed";
  font-size: clamp(3rem, 6vw, 9rem);
  font-weight: 800;
}

a {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-size: 1.5rem;
  text-decoration: none;
}

p {
  font-family: "Instrument Sans";
  font-weight: 500;
}

.preloader {
  position: fixed;
  width: 100%;
  height: 100svh;
  color: var(--base-100);
  overflow: hidden;
  z-index: 2;
}

.preloader-bg,
.preloader-revealer {
  position: absolute;
  width: 100%;
  height: 100svh;
  transform-origin: center;
}

.preloader-bg {
  background-color: var(--base-500);
}

.preloader-revealer {
  clip-path: circle(0% at 50% 50%);
  will-change: clip-path;
}

.preloader-revealer-1 {
  background-color: var(--base-200);
}

.preloader-revealer-2 {
  background-color: var(--base-300);
}

.preloader-revealer-3 {
  background-color: var(--base-400);
}

.preloader-revealer-4 {
  background-color: var(--base-500);
}

.items {
  position: absolute;
  width: 100%;
  height: 100svh;
}

.item {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15vw;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) scale(0);
  will-change: transform;
}

.item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.preloader-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10vw;
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  will-change: transform, opacity;
}

.preloader-logo img {
  width: 100%;
  height: auto;
}

nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 1;
}

.nav-logo img {
  width: 5rem;
  transform-origin: top left;
}

.nav-items {
  display: flex;
  gap: 2rem;
}

.hero {
  position: relative;
  width: 100%;
  height: 100svh;
  background-color: var(--base-500);
  overflow: hidden;
  z-index: 0;
}

.hero-header {
  position: absolute;
  top: 30%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 55%;
  text-align: center;
}

.hero-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  z-index: 0;
}

.hero-img {
  position: absolute;
  left: 50%;
  bottom: -15%;
  transform: translateX(-49%);
  width: 35%;
  min-width: 250px;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  /* TODO Cuidado com isso aqui */
  z-index: -2;
}

.hero-img-bg {
  width: 100%;
  aspect-ratio: 1;
  background-color: var(--base-300);
  border-radius: 100%;
  transform-origin: center;
  transform: scale(0);
}

.hero-img img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 50%) rotate(15deg);
  transform-origin: center;
  width: 130%;
}

.nav-word,
.footer-line,
.hero-header h1 .char,
.hero-header h1 .word {
  display: inline-block;
  will-change: transform;
}

@media (max-width: 1000px) {
  .nav-items {
    flex-direction: column;
    gap: 0;
    text-align: right;
  }

  .hero-header {
    width: calc(100% - 4rem);
    top: 35%;
  }

  .hero-img {
    width: 80%;
    bottom: -5%;
  }
}
