/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }

:root {
  --bg: #fafaf8;
  --fg: #111;
  --muted: #6b6b6b;
  --line: #e6e4df;
  --gap: clamp(12px, 1.6vw, 22px);
  --pad: clamp(20px, 4vw, 56px);
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: var(--fg);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 15px;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 22px var(--pad);
  background: rgba(250,250,248,0.92);
  backdrop-filter: saturate(140%) blur(6px);
  -webkit-backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.brand {
  font-weight: 700;
  letter-spacing: 0.02em;
  font-size: 15px;
  text-transform: uppercase;
}
.brand small {
  display: block;
  font-weight: 300;
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-top: 2px;
  text-transform: uppercase;
}

.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  position: relative;
  padding-bottom: 2px;
}
.nav a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .25s ease;
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

/* Hero (home) */
.hero {
  padding: clamp(60px, 12vh, 140px) var(--pad) clamp(40px, 8vh, 90px);
  max-width: 1400px;
  margin: 0 auto;
}
.hero h1 {
  font-weight: 700;
  font-size: clamp(34px, 6vw, 72px);
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin-bottom: 18px;
}
.hero p {
  max-width: 640px;
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--fg);
  font-weight: 300;
}

/* Category tiles grid */
.tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap);
  padding: 0 var(--pad) var(--pad);
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 720px) {
  .tiles { grid-template-columns: 1fr; }
}

.tile {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #ddd;
}
.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s cubic-bezier(.2,.7,.2,1), filter .6s ease;
  filter: brightness(0.92);
}
.tile:hover img {
  transform: scale(1.04);
  filter: brightness(0.78);
}
.tile-caption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 22px 24px;
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), rgba(0,0,0,0) 70%);
}
.tile-caption h2 {
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0.005em;
  line-height: 1.1;
}
.tile-caption .arrow {
  font-weight: 300;
  font-size: 22px;
  transition: transform .35s ease;
}
.tile:hover .arrow { transform: translateX(6px); }

/* Category page */
.cat-head {
  max-width: 1400px;
  margin: 0 auto;
  padding: clamp(50px, 8vh, 100px) var(--pad) clamp(30px, 4vh, 50px);
}
.cat-head .eyebrow {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.cat-head h1 {
  font-weight: 700;
  font-size: clamp(30px, 5vw, 56px);
  letter-spacing: -0.005em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.cat-head .intro {
  max-width: 680px;
  font-weight: 300;
  font-size: clamp(14px, 1.1vw, 16.5px);
  color: var(--fg);
}
.cat-head .intro .sk {
  display: block;
  color: var(--muted);
  margin-top: 10px;
  font-style: normal;
}

/* Gallery grid — masonry-ish via CSS columns */
.gallery {
  column-count: 3;
  column-gap: var(--gap);
  padding: 0 var(--pad) var(--pad);
  max-width: 1400px;
  margin: 0 auto;
}
@media (max-width: 1000px) { .gallery { column-count: 2; } }
@media (max-width: 600px)  { .gallery { column-count: 1; } }

.gallery figure {
  break-inside: avoid;
  margin-bottom: var(--gap);
  overflow: hidden;
  background: #eee;
  cursor: zoom-in;
}
.gallery img {
  width: 100%;
  height: auto;
  transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .6s ease;
  opacity: 0;
}
.gallery img.loaded { opacity: 1; }
.gallery figure:hover img { transform: scale(1.025); }

/* About / Contact */
.page {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(60px, 10vh, 120px) var(--pad);
}
.page h1 {
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 50px);
  letter-spacing: -0.005em;
  margin-bottom: 30px;
}
.page h2 {
  font-weight: 700;
  font-size: clamp(18px, 2vw, 22px);
  margin: 38px 0 12px;
  letter-spacing: 0.005em;
}
.page p { margin-bottom: 14px; max-width: 640px; }
.page p.sk { color: var(--muted); }
.page .contact-block {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 28px;
  font-size: 14px;
  max-width: 520px;
}
.page .contact-block dt { color: var(--muted); letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; align-self: center; }
.page .contact-block dd a { border-bottom: 1px solid var(--line); }
.page .contact-block dd a:hover { border-bottom-color: var(--fg); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px var(--pad);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.site-footer a:hover { color: var(--fg); }

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10,10,10,0.96);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  transition: opacity .25s ease;
}
.lightbox.open { display: flex; opacity: 1; }
.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  width: auto;
  height: auto;
  object-fit: contain;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.lightbox .lb-btn {
  position: absolute;
  background: transparent;
  border: 0;
  color: #fff;
  font-family: inherit;
  font-weight: 300;
  font-size: 32px;
  cursor: pointer;
  padding: 14px 20px;
  opacity: 0.7;
  transition: opacity .2s ease;
}
.lightbox .lb-btn:hover { opacity: 1; }
.lightbox .lb-close { top: 8px; right: 12px; font-size: 28px; }
.lightbox .lb-prev  { left: 0; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next  { right: 0; top: 50%; transform: translateY(-50%); }
.lightbox .lb-counter {
  position: absolute;
  bottom: 18px; left: 50%; transform: translateX(-50%);
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.18em;
  opacity: 0.65;
}

/* Fade-in on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .8s ease, transform .8s ease; }
.reveal.visible { opacity: 1; transform: none; }
