:root {
  --bg: #ffffff;
  --text: #111111;
  --muted: #666666;
  --line: #e6e6e6;
  --invert: #000000;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  scroll-behavior: smooth;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 78px;
}

.logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 2px solid #000;
  border-radius: 8px;
}

.menu {
  list-style: none;
  display: flex;
  gap: 1.2rem;
  margin: 0;
  padding: 0;
}

.menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
}

.menu a:hover,
.menu a:focus-visible {
  text-decoration: underline;
}

.section {
  padding: 5rem 0;
}

.hero {
  background: #000;
  color: #fff;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2.5rem;
}

.hero-content {
  text-align: left;
}

.hero-logo {
  width: clamp(220px, 28vw, 360px);
  height: auto;
  border: 3px solid #fff;
  border-radius: 12px;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 5vw, 3.2rem);
}

.hero p {
  margin: 0 0 1.5rem;
  max-width: 700px;
  color: #e9e9e9;
}

.btn {
  display: inline-block;
  text-decoration: none;
  background: #fff;
  color: #000;
  padding: 0.75rem 1.2rem;
  border: 2px solid #fff;
  font-weight: 700;
}

.btn:hover,
.btn:focus-visible {
  background: #000;
  color: #fff;
}

h2 {
  margin-top: 0;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.alt {
  background: #fafafa;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  border: 2px solid #000;
  padding: 1rem;
  background: #fff;
}

.card h3 {
  margin-top: 0;
}

.project-carousel {
  margin-top: 1rem;
}

.project-item + .project-item {
  margin-top: 2.5rem;
}

.carousel-track-wrap {
  border: 2px solid #000;
  background: #fff;
  padding: 0.8rem;
}

.carousel-track {
  display: flex;
  gap: 0.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.2rem;
}

.carousel-slide {
  margin: 0;
  flex: 0 0 auto;
  width: 300px;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  background: #fff;
}

.carousel-slide img {
  display: block;
  width: 300px;
  height: 300px;
  object-fit: cover;
  cursor: pointer;
}

.carousel-slide figcaption {
  width: 300px;
  min-height: 56px;
  padding: 0.7rem;
  border-top: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.95rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 1000;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-content {
  max-width: min(95vw, 1100px);
  width: 100%;
}

.lightbox-close {
  border: 2px solid #fff;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  margin-bottom: 0.7rem;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: #fff;
  color: #000;
}

#lightbox-image {
  display: block;
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  background: #111;
}

#lightbox-caption {
  margin: 0.6rem 0 0;
  color: #fff;
  font-weight: 600;
}

.contact-form {
  margin-top: 1.2rem;
  max-width: 620px;
  display: grid;
  gap: 0.7rem;
}

.contact-form label {
  font-weight: 600;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 0.7rem 0.8rem;
  border: 2px solid #000;
  border-radius: 0;
  font: inherit;
  background: #fff;
  color: #111;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid #000;
  outline-offset: 1px;
}

.btn-contact {
  margin-top: 0.4rem;
  cursor: pointer;
  background: #000;
  color: #fff;
  border-color: #000;
}

.btn-contact:hover,
.btn-contact:focus-visible {
  background: #fff;
  color: #000;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  text-align: center;
  padding: 1.2rem 0;
  color: var(--muted);
}

@media (max-width: 760px) {
  .nav-wrap {
    flex-direction: column;
    align-items: flex-start;
    padding: 0.8rem 0;
  }

  .menu {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

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

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .hero-content {
    text-align: center;
  }

  .hero p {
    margin: 0 auto 1.5rem;
  }

  .hero-logo {
    justify-self: center;
    width: min(70vw, 300px);
  }

  .section {
    padding: 3.5rem 0;
  }
}
