:root {
  --bg: #f7f4ee;
  --ink: #171717;
  --muted: #6a6259;
  --line: #ded7cb;
  --panel: #fffaf2;
  --accent: #a86d43;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, Arial, sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(247, 244, 238, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 50%;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 2.4vw, 32px);
  color: var(--muted);
  font-size: 14px;
}

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

.nav-pill {
  padding: 10px 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
}

.hero {
  min-height: calc(100vh - 80px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.3fr);
  align-items: center;
  gap: clamp(28px, 6vw, 84px);
  padding: clamp(32px, 6vw, 84px) clamp(18px, 5vw, 72px);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(64px, 14vw, 190px);
  line-height: 0.86;
  letter-spacing: 0.02em;
}

.tagline {
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(20px, 3vw, 36px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero-image {
  width: 100%;
  min-height: 380px;
  max-height: 620px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(48, 37, 24, 0.18);
}

.intro,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(58px, 8vw, 110px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 72px);
  line-height: 0.98;
}

.intro > p {
  margin: 30px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.55;
}

.portfolio {
  padding: clamp(58px, 8vw, 110px) clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 14px;
}

.photo {
  min-width: 0;
  padding: 0;
  overflow: hidden;
  background: #ddd;
  border: 0;
  border-radius: 8px;
  cursor: zoom-in;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease, filter 0.35s ease;
}

.photo:hover img {
  transform: scale(1.04);
  filter: contrast(1.04);
}

.photo.tall {
  grid-row: span 2;
}

.photo.wide {
  grid-column: span 2;
}

.contact-card {
  align-self: end;
  display: grid;
  gap: 12px;
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: clamp(20px, 2.5vw, 32px);
}

.contact-card p {
  margin: 0;
  color: var(--muted);
}

.contact-card a {
  width: fit-content;
  border-bottom: 2px solid var(--accent);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 5vw, 72px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.lightbox {
  width: min(94vw, 1100px);
  padding: 0;
  background: transparent;
  border: 0;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.lightbox img {
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  border-radius: 8px;
}

.close-lightbox {
  position: absolute;
  top: -44px;
  right: 0;
  width: 36px;
  height: 36px;
  color: #fff;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  cursor: pointer;
}

@media (max-width: 860px) {
  .site-header,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero,
  .intro,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
  }

  .photo.wide {
    grid-column: span 1;
  }
}

@media (max-width: 520px) {
  .gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .photo.tall {
    grid-row: span 1;
  }
}
