/* Self-hosted fonts — no external requests. Both are SIL Open Font
   License 1.1. Only the three Barlow weights the stylesheet asks for
   are shipped; the template imported all nine plus every italic. */

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-500-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/barlow-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-600-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/barlow-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-800-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Barlow Condensed";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/barlow-800-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

: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(-50%);
  width: 35%;
  min-width: 250px;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.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);
  }

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