:root {
  --bg: #ecebe7;
  --ink: #3a3a3a;
  --muted: #8b8984;
  --line: #d6d4ce;
  --display: "Anton", "Impact", sans-serif;
  --text: "Inter", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.6 var(--text);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

/* Header */
.site-header {
  text-align: center;
  padding: clamp(28px, 5vw, 56px) var(--gutter) clamp(24px, 4vw, 44px);
}
.tagline {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}
.name {
  display: block;
  font-family: var(--display);
  text-transform: uppercase;
  line-height: .92;
  letter-spacing: -.005em;
  font-size: clamp(30px, 5vw, 56px);
  transition: font-size .4s ease;
}
.is-home .name { font-size: clamp(44px, 11vw, 150px); }
.menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 26px;
  margin-top: clamp(16px, 2.4vw, 26px);
}
.menu a {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s, border-color .2s;
}
.menu a:hover { color: var(--muted); }
.menu a.active { color: var(--muted); border-color: currentColor; }

main { padding: 0 var(--gutter) 80px; outline: none; }
.fade { animation: fade .5s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Tiles (home + editorial) */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 44px) clamp(14px, 2.4vw, 32px);
  max-width: 1280px;
  margin: 0 auto;
}
.tiles-2 { grid-template-columns: repeat(2, 1fr); max-width: 860px; }
.tile-img {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--line);
}
.tile-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1), filter .4s;
}
.tile:hover .tile-img img { transform: scale(1.035); }
.tile-caption {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* Page header */
.page-head { text-align: center; margin: 0 auto clamp(28px, 4vw, 48px); }
.page-head h1, .contact h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(34px, 6vw, 72px);
  line-height: 1;
}
.page-head p { margin: 0; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.back {
  display: inline-block;
  margin-bottom: 18px;
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
}
.back:hover { color: var(--ink); }

/* Gallery */
/* Justified rows: app.js sizes each photo so every row has one height
   and runs edge to edge. */
.masonry {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap);
  --gap: clamp(12px, 1.6vw, 22px);
  max-width: 1680px;
  margin: 0 auto;
}
.shot {
  display: block;
  flex: none;
  width: 100%;
  aspect-ratio: var(--r);
  overflow: hidden;
  background: var(--line);
  cursor: zoom-in;
}
.shot img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2,.7,.2,1);
}
.shot:hover img { transform: scale(1.04); }

/* Contact */
.contact { max-width: 640px; margin: 0 auto; text-align: center; }
.contact > p { color: var(--muted); margin: 0 0 36px; }
.contact-list { list-style: none; padding: 0; margin: 0; text-align: left; }
.contact-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  font-size: 17px;
}
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list span {
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted);
  padding-top: 4px;
}
.contact-list a:hover { color: var(--muted); }

/* Footer */
.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 24px var(--gutter) 32px;
  border-top: 1px solid var(--line);
  font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  background: rgba(236, 235, 231, .97);
  animation: fade .3s ease both;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 0 24px; }
.lightbox img { max-height: calc(100dvh - 120px); max-width: 100%; width: auto; object-fit: contain; }
.lightbox figcaption { margin-top: 14px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lb-prev, .lb-next { height: 100%; font-size: 22px; color: var(--muted); }
.lb-prev:hover, .lb-next:hover { color: var(--ink); }
.lb-close {
  position: absolute; top: 18px; right: var(--gutter);
  font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
}

@media (max-width: 860px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .menu { gap: 4px 16px; }
  .tiles-2 { grid-template-columns: 1fr; }
  .lightbox { grid-template-columns: 1fr; }
  .lb-prev, .lb-next { display: none; }
  .lightbox figure { padding: 56px 0 24px; }
  .contact-list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
