:root {
  --ink: #111;
  --muted: #757575;
  --line: #e8e8e8;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

body.no-scroll { overflow: hidden; }

a { color: var(--ink); }

header, section, footer {
  max-width: 1120px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

header { padding-top: 72px; padding-bottom: 28px; }

h1 {
  margin: 0;
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.01em;
}

.tagline {
  margin: 10px 0 0;
  font-size: 17px;
  color: var(--muted);
}

/* nav */

#nav {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding-left: 24px;
  padding-right: 24px;
}

.nav-inner { max-width: 1120px; margin: 0 auto; }

#nav a {
  display: inline-block;
  padding: 10px 0;
  margin-right: 20px;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}

#nav a:hover { text-decoration: underline; }

/* sections */

section { padding-top: 40px; padding-bottom: 8px; }

h2 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-note {
  margin: 0 0 12px;
  font-size: 15px;
  color: var(--muted);
}

/* tiles */

.tiles {
  columns: 240px 4;
  column-gap: 14px;
}

.tiles img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 0 14px;
  cursor: zoom-in;
}

.tiles img:hover { opacity: 0.94; }

/* contact */

#contact ul {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  font-size: 17px;
}

#contact li { margin: 6px 0; }

#contact .label {
  margin-right: 10px;
  color: var(--muted);
}

/* footer */

footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  padding-bottom: 40px;
  font-size: 14px;
  color: var(--muted);
}

/* lightbox */

#lightbox {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 48px 56px;
}

#lightbox[hidden] { display: none; }

#lb-img {
  max-width: 100%;
  max-height: 100%;
}

#lightbox button {
  position: absolute;
  border: 0;
  background: none;
  color: #a0a0a0;
  padding: 16px;
  font-size: 40px;
  line-height: 1;
  cursor: pointer;
  user-select: none;
}

#lightbox button:hover { color: var(--ink); }

#lb-close { top: 8px; right: 8px; font-size: 32px; }
#lb-prev { left: 0; top: 50%; transform: translateY(-50%); }
#lb-next { right: 0; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  #lightbox { padding: 40px 8px; }
}
