@font-face {
  font-family: 'Fake Receipt';
  src: url('./assets:/Fake%20Receipt%20Font/Files/Fake%20Receipt.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Haas Grotesk';
  src: url('./assets:/Haas%20grotesk%20font/neuehaasgrotdispround-55roman-trial.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Haas Grotesk';
  src: url('./assets:/Haas%20grotesk%20font/neuehaasgrotdispround-56italic-trial.otf') format('opentype');
  font-weight: normal;
  font-style: italic;
}

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

body {
  background-color: #ffffff;
  min-height: 100vh;
}

/* Navbar */

.navbar {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 22px 24px;
}

.nav-item.active,
.nav-item:not(.nav-unavailable):hover {
  position: relative;
}

.nav-item.active::after,
.nav-item:not(.nav-unavailable):hover::after {
  content: '';
  position: absolute;
  inset: -5px -10px;
  border: 1px solid #1a1a1a;
  border-radius: 50%;
  transform: rotate(-2deg);
  pointer-events: none;
}

.nav-unavailable {
  position: relative;
  cursor: default;
}

.nav-unavailable::before,
.nav-unavailable::after {
  content: '';
  position: absolute;
  width: calc(100% + 20px);
  height: 1.5px;
  background: linear-gradient(to right, transparent, rgba(26,26,26,0.7) 12%, rgba(26,26,26,0.88) 35%, rgba(26,26,26,0.72) 55%, rgba(26,26,26,0.85) 78%, rgba(26,26,26,0.55) 92%, transparent);
  filter: blur(0.4px);
  top: 50%;
  left: -10px;
  opacity: 0;
  pointer-events: none;
}

.nav-unavailable::before { transform: translateY(-50%) rotate(12deg); }
.nav-unavailable::after  { transform: translateY(-50%) rotate(-12deg); }

.nav-unavailable:hover::before,
.nav-unavailable:hover::after {
  opacity: 1;
}

.nav-tip {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Haas Grotesk', sans-serif;
  font-size: 11px;
  font-weight: 300;
  color: #1a1a1a;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  text-transform: none;
  letter-spacing: normal;
  word-spacing: normal;
}

.nav-unavailable:hover .nav-tip {
  opacity: 1;
}

.nav-item {
  font-family: 'Fake Receipt', monospace;
  font-size: 22px;
  text-transform: uppercase;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: -1px;
  word-spacing: -2px;
}

/* Subtitle */

.subtitle-wrap {
  display: flex;
  justify-content: center;
  padding: 110px 0;
}

.subtitle {
  font-family: 'Haas Grotesk', sans-serif;
  font-size: 20px;
  text-transform: uppercase;
  color: #1a1a1a;
  background-color: #e0e0e0;
  padding: 8px 14px;
}

/* Projects grid */

.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  padding: 0 12px 40px;
}

.project-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
}

.project-image {
  background-color: #C8C8C8;
  aspect-ratio: 3 / 4;
  position: relative;
  overflow: hidden;
}

.project-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.2);
}

.project-name {
  font-family: 'Haas Grotesk', sans-serif;
  font-size: 18px;
  color: #1a1a1a;
  background-color: #e8e8e8;
  padding: 4px 10px;
  position: absolute;
  top: 0;
  left: 0;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.unavailable .project-image {
  filter: blur(3px);
}

.unavailable .project-name,
.unavailable .tag {
  filter: blur(4px);
  user-select: none;
}

.coming-soon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Haas Grotesk', sans-serif;
  font-size: 42px;
  font-weight: 400;
  color: #1a1a1a;
  filter: blur(0.8px);
  white-space: nowrap;
}

.tag {
  font-family: 'Haas Grotesk', sans-serif;
  font-size: 15px;
  color: #444;
  background-color: #e0e0e0;
  padding: 8px 16px;
}

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 80px 24px 50px;
  border-top: 1px solid #e8e8e8;
}

.footer-name {
  font-family: 'Fake Receipt', monospace;
  font-size: 27px;
  font-weight: normal;
  text-transform: uppercase;
  letter-spacing: -3px;
  word-spacing: -4px;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.footer-city {
  font-family: 'Haas Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 400;
  font-style: italic;
  color: #1a1a1a;
  margin-bottom: 2px;
}

.footer-email {
  font-family: 'Haas Grotesk', sans-serif;
  font-size: 18px;
  font-weight: 300;
  color: #1a1a1a;
}

@media (max-width: 700px) {
  .navbar {
    flex-wrap: wrap;
    gap: 14px 18px;
    padding: 18px 16px 22px;
    justify-content: center;
  }

  .nav-item {
    font-size: 16px;
  }

  .subtitle-wrap {
    padding: 48px 0 36px;
  }

  .subtitle {
    font-size: 15px;
  }

  .projects-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 48px;
  }

  .coming-soon {
    font-size: 30px;
  }

  .nav-unavailable::before,
  .nav-unavailable::after {
    opacity: 1;
  }

  .nav-unavailable .nav-tip {
    opacity: 1;
  }
}
