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

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

html,
body {
  background-color: var(--base-500);
}

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

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

a {
  font-family: "Barlow Condensed", "Arial Narrow", sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  text-decoration: none;
}

p {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-weight: 500;
}

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

.preloader-bg {
  position: absolute;
  width: 100%;
  height: 100svh;
  background-color: var(--base-500);
}

/* CHANGED: revealers are now real circles animated with transform: scale()
   (GPU compositor) instead of clip-path (main-thread repaint every frame).
   --reveal-d is set from JS so the circle reaches the same radius that
   circle(100%) did; 160vmax is only a fallback. */
.preloader-revealer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--reveal-d, 160vmax);
  height: var(--reveal-d, 160vmax);
  margin: calc(var(--reveal-d, 160vmax) / -2) 0 0 calc(var(--reveal-d, 160vmax) / -2);
  border-radius: 50%;
  transform: scale(0);
  transform-origin: center;
  will-change: transform;
}

.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: 25vw;
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%) scale(0);
}

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

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

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

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: 17%;
  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;
}

@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%;
  }
}