:root {
  --ink: #212226;
  --muted: #4a4d55;
  --line: #d9d9d9;
  --paper: #ffffff;
  --wash: #f6f6f6;
  --max: 1180px;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  color: #000;
  background: var(--paper);
  font-family: Poppins, sans-serif;
  font-size: 16px;
  line-height: 32px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: 0.04em;
  margin: 0;
}

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

.nav {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 28px 10px;
  gap: 16px;
}

.nav-side {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
}

.nav-side.left { justify-content: flex-end; }
.nav-side.right { justify-content: flex-start; }

.nav a.nav-link {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #111;
}

.nav a.nav-link:hover { opacity: 0.65; }

.brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.brand .word {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 15px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  line-height: 1.2;
}

.brand .sub {
  font-size: 8px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #666;
}

.dropdown { position: relative; }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 190px;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 10px 0;
  z-index: 20;
}

.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu { display: block; }

.dropdown-menu a {
  display: block;
  padding: 6px 16px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.6;
}

.dropdown-menu a:hover { background: var(--wash); }

.menu-toggle {
  display: none;
  position: absolute;
  right: 20px;
  top: 28px;
  background: none;
  border: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  cursor: pointer;
}

.hero {
  width: 100%;
  height: min(86vh, 820px);
  overflow: hidden;
  background: #111;
}

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

.section { padding: 72px 24px; }
.section.tight { padding: 48px 24px; }

.narrow {
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
}

.display {
  font-size: 42px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  margin-bottom: 28px;
}

.narrow p { margin: 0 0 18px; color: #111; }

.narrow a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

#companies {
  scroll-margin-top: 140px;
}

.cta-row {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 280px;
  min-height: 72px;
  padding: 16px 28px;
  border: 1px solid #222;
  border-radius: 999px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  line-height: 1.5;
  background: transparent;
  cursor: pointer;
}

.pill:hover { background: #111; color: #fff; }

.pill.solid {
  background: #111;
  color: #fff;
  min-height: 48px;
  min-width: 180px;
  border-radius: 8px;
}

.wide { max-width: var(--max); margin: 0 auto; }

.portfolio-head {
  text-align: center;
  font-size: 36px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 28px;
}

.carousel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
}

.carousel-track {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.arrow {
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
  color: #333;
}

.card-link { display: block; position: relative; }

.card-link img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 22px;
}

.card-link span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  color: #fff;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 13px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}

.banner { margin-top: 56px; height: 280px; overflow: hidden; }
.banner img { width: 100%; height: 100%; object-fit: cover; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  max-width: var(--max);
  margin: 0 auto;
}

.split img { width: 100%; border-radius: 4px; }

.form-wrap {
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid #cfcfcf;
  border-radius: 28px;
  padding: 36px 40px 44px;
  background: #fafafa;
}

.form-wrap h3 {
  text-align: center;
  font-family: Poppins, sans-serif;
  font-size: 16px;
  letter-spacing: 0;
  margin-bottom: 22px;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  line-height: 1.4;
}

.field.full { grid-column: 1 / -1; }

.field input,
.field select,
.field textarea {
  border: 1px solid #d7d7d7;
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
  line-height: 1.4;
}

.field textarea { min-height: 90px; resize: vertical; }
.req { color: #c0392b; }
.form-wrap .pill.solid { margin-top: 22px; width: 100%; }

.essays {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: var(--max);
  margin: 0 auto;
}

.essay img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 4px;
}

.essay h3 {
  font-size: 18px;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 12px 0 8px;
  text-transform: none;
}

.essay p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.quotes { max-width: 760px; margin: 0 auto; text-align: center; }
.quotes p { font-size: 16px; line-height: 1.7; }

.quotes cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  background: #f3f3f3;
  padding: 48px 24px 28px;
  text-align: center;
  font-size: 14px;
  line-height: 1.8;
}

.site-footer .brand { margin-bottom: 16px; }

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

.gallery a img,
.project-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 18px;
}

.gallery figcaption {
  margin-top: 8px;
  text-align: center;
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
}

.about-block {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 48px;
  max-width: 980px;
  margin: 0 auto 64px;
  align-items: start;
}

.about-block img { width: 100%; object-fit: cover; }

.about-copy h2 {
  font-size: 28px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid #ddd;
}

.about-copy p { margin: 0 0 16px; line-height: 1.75; }

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 28px auto 0;
}

.mobile-panel { display: none; }

.project-grid img { cursor: zoom-in; }

.essay-link {
  color: inherit;
  display: block;
}

.essay-link:hover h3 {
  text-decoration: underline;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  border: 0;
  margin: 0;
  padding: 24px;
  background: rgba(17, 17, 17, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

html { scroll-behavior: smooth; }

@media (max-width: 980px) {
  .nav {
    display: flex;
    justify-content: center;
    padding-right: 72px;
    padding-left: 72px;
  }

  .nav-side { display: none; }
  .menu-toggle { display: block; }

  .mobile-panel.open {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px 28px 18px;
  }

  .carousel-track,
  .essays,
  .gallery,
  .project-grid,
  .grid-2,
  .split,
  .about-block {
    grid-template-columns: 1fr;
  }
  .display { font-size: 28px; }
  .hero { height: 52vh; }
  .form-wrap { padding: 24px 18px 32px; }
  .brand .word { font-size: 13px; letter-spacing: 0.16em; }
}
