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

::selection { background: #fe9a8a; color: #000; }

/* ── FONT LOADING ── */
body { opacity: 0; transition: opacity 0.3s ease; }
body.fonts-loaded { opacity: 1; }

/* ── NAV OVERLAY ── */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 36px 51px;
}

.site-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 60px;
  line-height: 1;
  color: #000;
  white-space: nowrap;
  letter-spacing: 0.03em;
  /* text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5); */
  text-decoration: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-top: 22px;
}

.nav-links a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 25px;
  line-height: 1;
  color: #000;
  text-decoration: none;
  letter-spacing: 0.06em;
  /* text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); */
  /* letter-spacing: 0.1em; */
}

/*nav .hover:hover { 
  opacity: 0.5; 
  transition: opacity 0.2s ease;
}*/

.instagram-link {
  display: flex;
  align-items: center;
  padding-bottom: 4px;
}

.instagram-link svg {
  width: 25px;
  height: 25px;
  display: block;
  transition: stroke 0.2s ease;
  /* filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)); */
}

.instagram-link:hover svg { stroke: #ff6049; }

/* ── DROPDOWN ── */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > span {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 25px;
  line-height: 1;
  color: #000;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  /* gap: 31px; */
  padding-top: 15px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  white-space: nowrap;
  text-align: center;
  /*background: #ffffff;*/
  /* border: 13px #000000; */
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
}

.dropdown-menu a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 25px;
  letter-spacing: 0.1em;
  color: #000;
  text-decoration: none;
  /* text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); */
  transition: color 0.2s ease;
  border-top: 1px solid #c7c7c7;
  padding: 21px 25px 17px 25px;
  background: #ffffff;
  text-transform:uppercase;
}

.dropdown-menu a:last-child { border-bottom: 1px solid #c7c7c7; }

/*.dropdown-menu a:hover { color: rgba(0, 0, 0, 0.5); }*/
.dropdown-menu a:hover, .dropdown-menu a.active, .hover:hover, .hover.active { color: #ff6049; }

/* ── MOBILE NAV ── */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  z-index: 200;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: #000;
  margin: 5px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 250;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 28px 60px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.nav-mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile-menu a {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 52px;
  letter-spacing: 0.03em;
  color: #000;
  text-decoration: none;
  line-height: 1.05;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-mobile-menu a:hover,
.nav-mobile-menu a.active { color: #ff6049; }

.nav-mobile-menu .mobile-projects-label {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 0.18em;
  color: #aaa;
  margin-top: 15px;
  margin-bottom: 2px;
}

.nav-mobile-menu .mobile-project-link {
  font-size: 36px;
  letter-spacing: 0.05em;
  padding: 4px 0;
}

.nav-mobile-menu .mobile-instagram {
  margin-top: 42px;
  display: flex;
  align-items: center;
}

.nav-mobile-menu .mobile-instagram svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* ── LOADING SPINNER ── */
.spinner {
  position: fixed;
  z-index: 400;
  width: 32px;
  height: 32px;
  margin: -16px 0 0 -16px;
  border: 2px solid #e8e8e8;
  border-top-color: #bbb;
  border-radius: 50%;
  animation: spinner-spin 0.75s linear infinite;
  pointer-events: none;
}

@keyframes spinner-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 875px) and (min-width: 801px) {
  .site-title {
    font-size: 40px;
  }

  /* Switch to baseline alignment so the browser aligns text baselines directly,
     rather than the center + margin-top offset used at full desktop size. */
  nav {
    align-items: baseline;
  }

  .nav-links {
    margin-top: 0;
  }
}

@media (max-width: 710px) and (min-width: 801px) {
  .site-title {
    font-size: 25px;
  }
}

@media (max-width: 800px) {
  nav {
    padding: 24px 28px;
    background: white;
    align-items: center;
  }

  .site-title {
    font-size: 26px;
    padding-top: 6px;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }
}
