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

body {
  font-family: "PP Neue Montreal", sans-serif;
  background-color: #e3e3db;  
}

img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Hide icons, show text on desktop */
.nav-link .nav-icon {
  display: none;
}
.nav-link .nav-text {
  display: inline;
}

/* On small screens, show icons, hide text */
@media (max-width: 600px) {
  .nav-link .nav-text {
    display: none;
  }
  .nav-link .nav-icon {
    display: inline-block;
    vertical-align: middle;
  }
  .links {
    justify-content: center;
    gap: 1.5em;
  }
  .nav-logo {
    flex: 1 1 100%;
    text-align: center;
  }
  nav {
    gap: 0;
  }
}

p {
  text-transform: uppercase;
  font-family: "Akkurat Mono", monospace;
  font-size: 0.7rem;
}

a {
  text-decoration: none;
  text-transform: uppercase;
  font-family: "Akkurat Mono", monospace;
  font-size: 0.7rem;
  color: #000;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100svh;
  padding: 2em;
  background-color: #000;
  color: #fff;
  display: flex;
  gap: 2em;
  overflow: hidden;
}

.projects,
.loader,
.locations {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2em;
}

.loader {
  align-items: center;
  gap: 0;
}

.loader h1 {
  text-align: center;
  text-transform: uppercase;
  font-family: "Druk", sans-serif;
  font-size: 2.5rem;
  font-style: italic;
  line-height: 0.9;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-image: linear-gradient(-45deg, #3a3a3a, #3a3a3a 50%, #fff 0);
  background-size: 100% 700%;
  background-position: 0 100%;
  color: #3a3a3a;
}

.projects-header,
.project-item,
.locations-header,
.location-item {
  display: flex;
  gap: 2em;
  opacity: 0;
}

.projects-header > *,
.locations-header > * {
  flex: 1;
}

.locations{
  align-items: center;
}

.locations-header,
.location-item {
  width: 50%;
}

.project-item,
.location-item {
  color: #4f4f4f;
}

.image-grid {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 30%;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  gap: 1em;
  z-index: 2;
}
.grid-row {
  width: 100%;
  display: flex;
  gap: 1em;
}
.img {
  position: relative;
  flex: 1;
  aspect-ratio: 1;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

nav {
  position: fixed;
  width: 100vw;
  padding: 1em;
  display: flex;
  gap: 2em;
  z-index: 100;
}

nav > * {
  flex: 1;
}

.links {
  display: flex;
  justify-content: space-around;
  align-items: center;
}

.nav-logo {
  text-align: center;
  display: flex;
  justify-content: center;
}

.nav-logo a {
  font-family: "Druk", sans-serif;
  font-size: 1.75rem;
  font-weight: bolder;
  font-style: italic;
  line-height: 0.9;
}

.banner-img {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 20%;
  aspect-ratio: 4/5;
}

.intro-copy {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 100%;
  padding: 0.8em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title {
  position: absolute;
  bottom: 5%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  pointer-events: none;
}

.intro-copy h3,
.title h1 {
    position: relative;
    text-transform: uppercase;
    color:#000;
    font-family: "Druk", sans-serif;
    font-weight:500;
    font-style: italic;
    line-height: 0.9;
}

.title h1{
    font-size:3.5rem;
}

.intro-copy h3 {
    font-size:1.5rem;
}

.intro-copy h3, .title h1 {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.intro-copy h3 .word, .title h1 .word {
    display: inline-block;
    position: relative;
    will-change: transform;
    margin-right:0.1rem;
}

/* Page transition */
.page-transition {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 0;
  background-color: #000;
  z-index: 9999;
}

body.transitioning {
  overflow: hidden;
}

/* About page styles */
.about-container,
.section-content {
  padding: 120px 40px 40px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  margin-bottom: 40px;
  text-align: center;
}

.section-title h2 {
  font-family: "Druk", sans-serif;
  font-size: 3rem;
  text-transform: uppercase;
  font-style: italic;
}

.section-content p {
  font-family: "PP Neue Montreal", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
  margin-bottom: 20px;
  text-transform: none;
  max-width: 800px;
}

.about-image {
  margin: 40px 0;
  width: 100%;
  height: 400px;
  overflow: hidden;
}

.about-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 900px){
    .loader{
        position: absolute;
        top:50%;
        left:50%;
        transform:translate(-50%,-50%);
    }
    .projects,
    .locations,
    .intro-copy {
        display: none;
    }

    /* Hide outer banners on mobile, show only banner-img-1 and banner-img-2 */
    .banner-img-3,
    .banner-img-4,
    .banner-img-5,
    .banner-img-6 {
        display: none !important;
    }

    .banner-img-1,
    .banner-img-2 {
        display: block !important;
        position: absolute !important;
        width: 36vw !important;
        max-width: 150px !important;
        aspect-ratio: 4/5 !important;
        top: 45% !important;
        z-index: 1 !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25) !important;
        border-radius: 4px;
        overflow: hidden;
    }

    .title {
        width: 100%;
        bottom: 12%;
        display: flex;
        justify-content: center;
        text-align: center;
    }

    .title h1 {
        font-size: clamp(2rem, 7vw, 2.8rem);
    }

    .image-grid{
        width: 75%;
        gap:0.5em;
    }
    .grid-row{
        width:95%;
        justify-content:space-around;
        gap:0.5em;
    }
    
    .section-content {
        padding: 100px 20px 40px 20px;
    }
    
    .about-image {
        height: 250px;
    }
}

.image-grid {
  opacity: 0;
}
