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

html {
  scroll-behavior: smooth;
}

body {
  background-color: #242424;
  color: #f1f1f1;
  font-family: sans-serif;
  font-size: 14px;
  overflow-x: hidden;
}

/* ── Header ── */
header {
  padding: 40px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: inline-flex;
  text-decoration: none;
}

.logo img {
  display: block;
  height: 50px;
  width: auto;
}

/* ── Nav ── */
.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: #f1f1f1;
  text-decoration: none;
  font-size: 10px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.4;
  transition: opacity 0.2s;
}

.nav-link:hover,
.nav-link.active {
  opacity: 1;
}

.btn-contact {
  color: #f1f1f1;
  text-decoration: none;
  border: 1.5px solid #f1f1f1;
  border-radius: 0;
  padding: 10px 22px;
  font-size: 10px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: background-color 0.2s, color 0.2s;
}

.btn-contact:hover {
  background-color: #f1f1f1;
  color: #242424;
}

/* ── Main ── */
main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px 40px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* ── Project ── */
.project-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 10px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* ── Image grid ── */
.image-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 10px;
}

.img-full {
  grid-column: 1 / -1;
  position: relative;
}

.img-half {
  grid-column: span 1;
  position: relative;
}

.img-full img,
.img-half img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 16 / 9;
}

/* ── Skeleton ── */
@keyframes skeleton-shimmer {
  0%   { background-position: -600px 0; }
  100% { background-position:  600px 0; }
}

.skeleton {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-color: #2e2e2e;
  z-index: 1;
}

.skeleton::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0.06) 50%,
    transparent 100%
  );
  background-size: 600px 100%;
  animation: skeleton-shimmer 1.4s infinite linear;
}

.img-full,
.img-half,
.img-wrapper {
  position: relative;
}

.img-wrapper {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

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

.img-full img,
.img-half img,
.monologos-grid img {
  opacity: 0;
  transition: opacity 0.4s ease;
}

.img-full img.loaded,
.img-half img.loaded,
.monologos-grid img.loaded {
  opacity: 1;
}

/* ── Monologos grid ── */
.monologos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.monologos-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* ── Footer ── */
footer {
  padding: 40px 0 70px;

}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.footer-cols {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-left,
.footer-right {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.6;
  flex: 1;
}

.footer-right {
  align-items: flex-end;
}

.footer-right a {
  color: #f1f1f1;
  text-decoration: none;
  transition: opacity 0.2s;
}

.footer-right a:hover {
  opacity: 1;
}

.footer-center {
  display: flex;
  justify-content: center;
  flex: 1;
}

.footer-logo {
  height: 44px;
  width: auto;
}

/* ── Hamburger ── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  visibility: hidden;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 1.5px;
  background-color: #f1f1f1;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── Mobile ── */
@media (max-width: 768px) {
  .header-inner {
    padding: 0 20px;
  }

  .hamburger {
    display: flex;
    visibility: visible;
  }

  .main-nav {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #242424;
    z-index: 100;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav .nav-link {
    font-size: 10px;
    opacity: 1;
  }

  .main-nav .btn-contact {
    font-size: 10px;
    margin-top: 0;
  }

  .hamburger {
    position: relative;
    z-index: 102;
  }

  .logo {
    position: relative;
    z-index: 102;
  }

  main {
    padding: 0 20px 48px;
    gap: 48px;
  }

  .image-grid {
    grid-template-columns: 1fr;
  }

  .img-full,
  .img-half {
    grid-column: 1 / -1;
  }

  .monologos-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    padding: 0 20px;
  }

}
