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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: #f5f0e8;
  color: #111;
  -webkit-font-smoothing: antialiased;
  position: relative;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ── Navigation ─────────────────────────────── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 48px;
  background: #f2f2f2;
  z-index: 100;
}

.nav-logo {
  font-size: 14pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
  margin-left: auto;
}

.nav-links > li > a,
.nav-links > li > span {
  font-size: 11pt;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 400;
  color: #888;
  cursor: pointer;
  transition: color 0.2s;
}

.nav-links > li > a:hover,
.nav-links > li > span:hover {
  color: #111;
}

/* ── Work dropdown ──────────────────────────── */

.has-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 20px);
  right: 0;
  background: #f2f2f2;
  border: 1px solid #ddd;
  padding: 10px 0;
  min-width: 210px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s, visibility 0.18s;
}

.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.dropdown-menu li a {
  display: block;
  padding: 9px 22px;
  font-size: 11pt;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #888;
  transition: color 0.15s;
  white-space: nowrap;
}

.dropdown-menu li a:hover {
  color: #111;
}

/* ── Hero (index) ───────────────────────────── */

.hero {
  height: 100vh;
  overflow: hidden;
}

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

/* ── Gallery ────────────────────────────────── */

.gallery {
  padding: 118px 48px 80px;
  max-width: 880px;
  margin: 0 auto;
}

.gallery-title {
  font-size: 20pt;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
  font-weight: 400;
  margin-bottom: 26px;
}

.gallery-images img {
  width: 100%;
  margin-bottom: 32px;
  border: 1px solid #111;
}

/* ── Text pages ─────────────────────────────── */

.text-page {
  padding: 148px 48px 80px;
  max-width: 540px;
  margin: 0 auto;
}

.text-page h1 {
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
  font-weight: 400;
  margin-bottom: 40px;
}

.text-page p {
  font-size: 15px;
  line-height: 1.9;
  color: #333;
  margin-bottom: 20px;
}

.text-page a {
  border-bottom: 1px solid #ccc;
  padding-bottom: 1px;
  transition: border-color 0.2s;
}

.text-page a:hover {
  border-bottom-color: #111;
}

/* ── Contact page ───────────────────────────── */

.contact-page {
  padding: 130px 48px 80px;
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  gap: 72px;
  align-items: flex-start;
}

.contact-image {
  flex-shrink: 0;
  width: 500px;
  height: 500px;
  background: #f0f0f0;
}

.contact-image img {
  width: 500px;
  height: 500px;
  object-fit: cover;
  border: 1px solid #111;
}

.contact-form-wrap {
  flex: 1;
  padding-top: 4px;
}

.contact-form-wrap h1 {
  font-size: 18px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #aaa;
  font-weight: 400;
  margin-bottom: 36px;
}

.contact-social {
  margin-top: 32px;
  overflow-wrap: anywhere;
}

.field {
  margin-bottom: 24px;
}

.field label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  border: none;
  border-bottom: 1px solid #ddd;
  padding: 6px 0;
  font-size: 14px;
  font-family: inherit;
  color: #111;
  background: transparent;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}

.field input:focus,
.field textarea:focus {
  border-bottom-color: #111;
}

button[type="submit"] {
  margin-top: 12px;
  background: none;
  border: 1px solid #111;
  padding: 10px 28px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-family: inherit;
  color: #111;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

button[type="submit"]:hover {
  background: #111;
  color: #fff;
}

/* ── Hamburger (hidden on desktop) ──────────── */

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #111;
  transition: transform 0.2s, opacity 0.2s;
}

nav.nav-open .hamburger span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

nav.nav-open .hamburger span:nth-child(2) {
  opacity: 0;
}

nav.nav-open .hamburger span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── Responsive ─────────────────────────────── */

@media (max-width: 700px) {
  nav {
    padding: 22px 24px;
    flex-wrap: wrap;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    order: 3;
    flex-direction: column;
    width: 100%;
    gap: 0;
    border-top: 1px solid #ddd;
    margin-top: 16px;
    padding-top: 8px;
    padding-bottom: 12px;
    align-items: flex-start;
    max-height: calc(100vh - 90px);
    max-height: calc(100dvh - 90px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

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

  .nav-links > li {
    width: 100%;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    border: none;
    background: transparent;
    padding: 6px 0 0 0;
    min-width: unset;
  }

  .dropdown-menu li a {
    padding: 7px 0 7px 12px;
  }

  .gallery {
    padding: 100px 24px 60px;
  }

  .text-page {
    padding: 120px 24px 60px;
  }

  .contact-page {
    flex-direction: column;
    padding: 100px 24px 60px;
    gap: 40px;
  }

  .contact-image,
  .contact-image img {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
  }
}

/* ── Footer ─────────────────────────────────── */

.site-footer {
  position: absolute;
  right: 48px;
  bottom: 24px;
  font-size: 8pt;
  letter-spacing: 0.08em;
  color: #888;
}

/* Home page: overlaid on the full-height hero */
.hero + .site-footer {
  color: #eee;
  text-shadow: 0 0 4px rgba(0, 0, 0, 0.6);
}

@media (max-width: 700px) {
  .site-footer {
    right: 24px;
    bottom: 20px;
  }
}
