:root {
  --ink: #212020;
  --bg: #fff;
  --gutter: 4vw;
  --heading: "Archivo Black", "Arial Black", sans-serif;
  --body: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }

h1, h2, h3 {
  font-family: var(--heading);
  font-weight: 400;
  text-transform: uppercase;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 1.2rem + 3.3vw, 4.2rem); line-height: 1.06; letter-spacing: -0.02em; }
h2, h3 { font-size: clamp(1.7rem, 1.5rem + 0.6vw, 2.2rem); letter-spacing: -0.02em; }
h2 { line-height: 1; }
h3 { line-height: 1.14; }

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 30px var(--gutter);
  position: relative;
  z-index: 10;
}
.overlay-header .site-header { position: absolute; top: 0; left: 0; right: 0; color: #fff; }
.logo img { height: 44px; width: auto; }
.nav { display: flex; gap: 12px; }
.nav a {
  font-weight: 600;
  text-decoration: none;
  padding: 1.6px 0;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size .2s ease;
}
.nav a:hover, .nav a.active { background-size: 100% 1px; }

.burger { display: none; background: none; border: 0; padding: 8px 0; cursor: pointer; color: inherit; width: 36px; }
.burger span { display: block; height: 1px; background: currentColor; margin: 8px 0; }

.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--bg); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu nav { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.mobile-menu nav a { font: 400 2rem/1.2 var(--heading); text-transform: uppercase; text-decoration: none; }
.mobile-menu nav a.active { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.mobile-menu .close { position: absolute; top: 22px; right: var(--gutter); background: none; border: 0; font-size: 2.6rem; line-height: 1; cursor: pointer; color: inherit; }

/* Hero */
.hero {
  position: relative;
  min-height: 600px;
  height: 58.5vw;
  max-height: 88vh;
  color: #fff;
  display: flex;
  overflow: hidden;
}
.hero-bg, .hero-overlay { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg { object-fit: cover; }
.hero-overlay { background: var(--ink); opacity: .2; }
.hero-content {
  position: relative;
  width: 100%;
  padding: 190px var(--gutter) 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 60px;
}
.hero-content > * { max-width: 45%; }
.hero.short { min-height: 470px; height: 46vw; }
.hero.short .hero-content { padding-top: 140px; gap: 40px; }

/* Tile grid (index pages) */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  padding: 82px var(--gutter) 90px;
}
.tile { position: relative; display: block; aspect-ratio: 1; overflow: hidden; text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile::after {
  content: ""; position: absolute; inset: 0;
  background: #fff; opacity: 0; transition: opacity .3s ease;
}
.tile-title {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 20px;
  font: 400 clamp(1.3rem, 1rem + 0.8vw, 1.9rem)/1.14 var(--heading);
  text-transform: uppercase; letter-spacing: -0.02em;
  opacity: 0; transition: opacity .3s ease;
}
.tile:hover::after, .tile:focus-visible::after { opacity: .8; }
.tile:hover .tile-title, .tile:focus-visible .tile-title { opacity: 1; }

/* Project / gallery pages */
.intro { padding: 60px var(--gutter) 34px; max-width: calc(58rem + 8vw); }
.intro p { margin: 0 0 28px; max-width: 42rem; }
.masonry { display: flex; gap: 8px; padding: 30px var(--gutter) 40px; align-items: flex-start; }
.masonry .col { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.masonry img { width: 100%; height: auto; }

.cta { text-align: center; padding: 140px var(--gutter) 90px; }
.cta h3 { margin-bottom: 26px; }
.btn {
  display: inline-block;
  font-weight: 600; text-transform: uppercase; text-decoration: none; font-size: 14px;
  border: 2px solid var(--ink); border-radius: 999px;
  padding: 10px 30px;
  transition: background .2s, color .2s;
}
.btn:hover { background: var(--ink); color: #fff; }

.pager {
  display: flex; justify-content: space-between; gap: 20px;
  padding: 60px var(--gutter) 70px;
}
.pager a {
  min-width: 0;
  display: inline-flex; align-items: center; gap: 22px;
  font: 400 clamp(1.3rem, 1.1rem + 0.6vw, 2rem)/1.1 var(--heading);
  text-transform: uppercase; letter-spacing: -0.02em; text-decoration: none;
}
.pager .arrow { font: 300 3rem/1 var(--body); margin-top: -6px; }
.pager a:hover { opacity: .6; }

/* Contact */
.contact { padding: 50px var(--gutter) 120px; max-width: calc(28rem + 8vw); }
.contact p { margin: 0 0 1.3em; }
.contact .email { margin-top: 2.4em; }
.contact .email a { text-underline-offset: 3px; }
.social { display: flex; gap: 18px; margin-top: 50px; }
.social a { display: inline-flex; }
.social a:hover { opacity: .6; }

@media (max-width: 767px) {
  :root { --gutter: 6vw; }
  .nav { display: none; }
  .burger { display: block; }
  .site-header { padding: 22px var(--gutter); }
  h1 { font-size: 12vw; }
  .hero, .hero.short { height: auto; min-height: 690px; max-height: none; }
  .hero.short { min-height: 520px; }
  .hero-content, .hero.short .hero-content { padding-top: 140px; }
  .hero-content > * { max-width: 100%; }
  .tiles { grid-template-columns: 1fr; gap: 30px; padding-top: 38px; }
  .intro { padding-top: 30px; }
  .masonry { padding-top: 20px; }
  .cta { padding-top: 90px; }
  .pager { gap: 16px; }
  .pager a { gap: 10px; font-size: 1.05rem; }
  .pager .next { text-align: right; }
  .pager .arrow { font-size: 2.2rem; }
}
