:root {
  --black: #111111;
  --dark: #1c1c1c;
  --gray-900: #2a2a2a;
  --gray-700: #555555;
  --gray-400: #9a9a9a;
  --gray-200: #e2e2e2;
  --gray-100: #f2f2f2;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--white);
  color: var(--black);
  font-family: -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.5rem;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.wordmark {
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 500;
  text-decoration: none;
  color: var(--black);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gray-700);
}

.main-nav a:hover {
  color: var(--black);
}

.lang-switch {
  display: flex;
  gap: 0.4rem;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
}

.lang-switch button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  color: var(--gray-400);
  font: inherit;
}

.lang-switch button.active {
  color: var(--black);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

/* Hero */

.hero {
  position: relative;
  height: 92vh;
  min-height: 420px;
  overflow: hidden;
}

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

/* Gallery */

.gallery {
  padding: 5rem 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.project {
  margin-bottom: 4.5rem;
}

.project-title {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gray-700);
  margin: 0 0 1.2rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--gray-200);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.project-grid button {
  border: none;
  padding: 0;
  margin: 0;
  background: var(--gray-100);
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.project-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.project-grid button:hover img {
  transform: scale(1.04);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--gray-200);
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  color: var(--gray-700);
  font-size: 0.9rem;
  line-height: 1.8;
}

.site-footer .footer-name {
  color: var(--black);
  font-weight: 500;
}

.footer-legal {
  margin-top: 1.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
}

.footer-legal a {
  text-decoration: none;
  color: var(--gray-400);
  margin: 0 0.5rem;
}

.footer-legal a:hover {
  color: var(--black);
}

/* Lightbox */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.96);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: var(--white);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* Legal pages */

.legal {
  max-width: 640px;
  margin: 0 auto;
  padding: 6rem 1.5rem 5rem;
  line-height: 1.8;
  font-size: 0.95rem;
  color: var(--gray-900);
}

.legal h1 {
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-700);
  margin-top: 2.5rem;
}

.legal a {
  color: var(--black);
}

.back-link {
  display: inline-block;
  margin-top: 3rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--gray-700);
}

/* Responsive */

@media (max-width: 720px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .site-header {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  .wordmark {
    font-size: 0.9rem;
  }

  .header-right {
    gap: 1rem;
    width: 100%;
    justify-content: space-between;
  }

  .main-nav {
    gap: 1rem;
  }

  .hero {
    height: 70vh;
  }
}

@media (max-width: 420px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.25rem;
  }
}
