@font-face {
  font-family: "BeckerEgyptian";
  src: url("assets/BeckerGothics-Egyptian.ttf") format("truetype");
}

:root {
  --c1: #DF4118;
  --c2: #F9F3E3;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}

* {
  box-sizing: border-box;
}

body {
  background: #000;
  overflow: hidden;
  font-family: "BeckerEgyptian", "Times New Roman", serif;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100svh;
  pointer-events: auto;
}

.carousel__overlay {
  position: absolute; 
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 2.4vh, 24px);
  z-index: 2;
  pointer-events: none;
}

.carousel__layer {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 120ms ease-out;
}

.carousel__layer.is-active {
  opacity: 0.8;
  opacity: 0.9;
}

.brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(8px, 1.6vh, 18px);
  width: min(46vw, 66vh);
  margin-top: clamp(102px, 3vh, 28px);
}

.brand__logo {
  position: relative;
  width: 100%;
}

.brand__logo-base {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
}

.brand__logo::after {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--c1);
  -webkit-mask: url("assets/Logo+Tagline.svg") center / contain no-repeat;
  mask: url("assets/Logo+Tagline.svg") center / contain no-repeat;
}

.contact {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 80%;
  max-width: 80vw;
  margin-top: clamp(20px, 4vh, 80px);
  font-size: 20px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  pointer-events: auto;
  text-align: center;
}

.contact__link {
  text-decoration: none;
  display: inline-block;
  padding: 10px 14px;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  position: relative;
  --hover-image: none;
}

.contact__link::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: 48px;
  height: 58px;
  background: var(--hover-image) center / contain no-repeat;
  opacity: 0;
  transform: translate(-50%, 0);
  transition: none;
  pointer-events: none;
}

.contact__link:hover::before,
.contact__link:focus-visible::before {
  opacity: 1;
}

.contact__link--email {
  --hover-image: url("assets/hover-email.svg");
}

.contact__link--instagram {
  --hover-image: url("assets/hover-instagram.svg");
}

.contact__link--boomaap {
  --hover-image: url("assets/hover-boomaap.svg");
}

@media (max-width: 700px) {
  .brand {
    width: min(75vw, 60vh);
    max-height: 42vh;
  }

  .contact {
    flex-direction: column;
    gap: 8px;
    position: relative;
  }

  .contact__link::before {
    width: 34px;
    height: 40px;
    top: 50%;
    bottom: auto;
  }

  .contact__link--email::before {
    left: -6px;
    transform: translate(-100%, -50%);
  }

  .contact__link--instagram::before {
    top: 2px;
    right: -2px;
    left: auto;
    transform: translate(0%, -100%);
  }

  .contact__link--boomaap::before {
    right: -6px;
    left: auto;
    transform: translate(100%, -50%);
  }
}

@media (max-height: 700px) {
  .carousel__overlay {
    transform: translateY(2vh);
    gap: clamp(10px, 2vh, 18px);
  }
}

#p5-border {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  pointer-events: none;
}

#p5-border canvas {
  display: block;
}
