:root {
  --paper: #ffffff;
  --ink: #151515;
  --muted: #6b655f;
  --line: #e8e1d8;
  --wash: #f8f5f0;
  --ochre: #b97324;
  --red: #9f2f25;
  --blue: #2f6678;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Avenir Next", "Neue Haas Grotesk Text", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 4vw, 54px);
  color: var(--ink);
  transition: color 180ms ease;
}

.site-header.over-hero {
  color: #fff;
}

.brand {
  font-size: 1.28rem;
  font-weight: 600;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  gap: clamp(14px, 3vw, 34px);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #111;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.95);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.58));
}

.hero-panel {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100% - 36px));
  margin: 0 auto clamp(44px, 10vh, 96px);
  color: #fff;
  text-align: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--ochre);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel .eyebrow {
  color: #f4d29d;
}

h1,
h2 {
  font-family: "Avenir Next", "Neue Haas Grotesk Display", "Helvetica Neue", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(4.4rem, 15vw, 11rem);
  line-height: 0.86;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 4.1rem);
  line-height: 0.98;
}

.hero-panel p:not(.eyebrow) {
  width: min(620px, 100%);
  margin: 22px auto 0;
  font-size: clamp(1.04rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.hero .button.primary {
  background: #fff;
  color: #111;
  border-color: #fff;
}

.button.ghost {
  color: #fff;
}

.section {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(70px, 12vw, 128px) 0;
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1fr 1fr;
  gap: clamp(26px, 5vw, 60px);
  border-bottom: 1px solid var(--line);
}

.intro p:not(.eyebrow),
.section-heading p,
.about p,
.contact p {
  color: var(--muted);
  font-size: 1.02rem;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) 1fr;
  gap: 30px;
  align-items: end;
  margin-bottom: 34px;
}

.gallery {
  column-count: 3;
  column-gap: 18px;
}

.work-card {
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: zoom-in;
  break-inside: avoid;
}

.work-card img {
  width: 100%;
  background: var(--wash);
}

.about {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 6vw, 76px);
  align-items: center;
}

.about img {
  width: 100%;
  max-height: 780px;
  object-fit: cover;
}

.contact {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(30px, 7vw, 86px);
  border-top: 1px solid var(--line);
}

.email-link {
  display: inline-block;
  margin-top: 12px;
  color: var(--blue);
  border-bottom: 1px solid currentColor;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
  background: #fff;
  color: var(--ink);
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(185, 115, 36, 0.2);
  border-color: var(--ochre);
}

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

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 54px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.lightbox {
  width: min(1120px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  border: 0;
  padding: 18px;
  background: #fff;
}

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

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 110px);
  object-fit: contain;
}

.lightbox p {
  margin: 12px 46px 0 0;
  color: var(--muted);
}

.lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 880px) {
  .site-header {
    padding: 16px 18px;
  }

  .nav-links {
    gap: 14px;
    font-size: 0.72rem;
  }

  .intro,
  .section-heading,
  .about,
  .contact {
    grid-template-columns: 1fr;
  }

  .gallery {
    column-count: 2;
  }

}

@media (max-width: 560px) {
  .nav-links a:first-child {
    display: none;
  }

  h1 {
    font-size: clamp(4.4rem, 24vw, 6.5rem);
  }

  .hero {
    min-height: 88vh;
  }

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

  .hero-actions {
    justify-content: flex-start;
  }

  .button {
    width: 100%;
  }

  .gallery {
    column-count: 1;
  }

  .site-footer {
    flex-direction: column;
  }
}
