:root {
  --bg:      #1c1d21;
  --bg-2:    #232429;
  --ink:     #f3e9dc;
  --ink-dim: #8a8478;
  --line:    #2d2e33;
  --accent:  #87D68D;
  --max:     1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 32px;
}

/* ---------- NAV ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 22px 0;
  background: rgba(28,29,33,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
nav .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img { height: 28px; display: block; }
.nav-links {
  display: flex;
  gap: 36px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 22px;
  border: 1px solid var(--line);
  border-radius: 100px;
  transition: border-color .2s, color .2s;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- HERO ---------- */
.gallery-hero {
  padding: 180px 0 80px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 24px;
}
.gallery-title {
  font-family: 'Anton', sans-serif;
  font-size: clamp(72px, 10vw, 160px);
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.gallery-title em {
  font-style: italic;
  color: var(--accent);
}

/* ---------- FILTER BAR ---------- */
.gallery-filter-bar {
  padding: 0 0 48px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.filter {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink-dim);
  border-radius: 100px;
  padding: 9px 20px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color .2s, color .2s, background .2s;
}
.filter:hover {
  border-color: var(--ink-dim);
  color: var(--ink);
}
.filter.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #1c1d21;
}

/* ---------- GRID ---------- */
.gallery-wrap {
  padding-bottom: 140px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  grid-auto-rows: 300px;
  gap: 16px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  cursor: pointer;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease, box-shadow .25s;
}
.gallery-item.in {
  opacity: 1;
  transform: translateY(0);
}
.gallery-item.tall { grid-row: span 2; }
.gallery-item.wide { grid-column: span 2; }

.gallery-item:hover { box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.gallery-item:hover .gallery-thumb { transform: scale(1.04); }
.gallery-item:hover .gallery-info { opacity: 1; transform: translateY(0); }

.gallery-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .4s ease;
}
.gallery-thumb span {
  font-family: 'Anton', sans-serif;
  font-size: clamp(48px, 6vw, 96px);
  text-transform: uppercase;
  color: rgba(243,233,220,0.18);
  letter-spacing: -0.01em;
  user-select: none;
}

/* Thumb color themes */
.gt-1  { background: linear-gradient(135deg, #87D68D 0%, #4aab52 100%); }
.gt-2  { background: linear-gradient(135deg, #0c0c10 0%, #2a2520 100%); }
.gt-3  { background: linear-gradient(135deg, #1c1d21 0%, #2d2e33 100%); }
.gt-4  { background: linear-gradient(135deg, #3a4a2c 0%, #1c1d21 100%); }
.gt-5  { background: linear-gradient(135deg, #87D68D 0%, #232429 100%); }
.gt-6  { background: linear-gradient(135deg, #232429 0%, #1c1d21 100%); }
.gt-7  { background: linear-gradient(135deg, #1c1d21 0%, #0c0c10 100%); }
.gt-8  { background: linear-gradient(135deg, #2d2e33 0%, #1c1d21 100%); }
.gt-9  { background: linear-gradient(135deg, #4aab52 0%, #1c1d21 100%); }
.gt-10 { background: linear-gradient(135deg, #a47349 0%, #1c1d21 100%); }
.gt-11 { background: linear-gradient(135deg, #f3e9dc 0%, #d8cfc1 100%); }
.gt-12 { background: linear-gradient(135deg, #1c1d21 0%, #3a4a2c 100%); }

.gt-11 span { color: rgba(28,29,33,0.15); }

.gallery-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 20px 24px;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, transparent 100%);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity .3s ease, transform .3s ease;
}
.gallery-name {
  font-weight: 500;
  font-size: 15px;
  margin-bottom: 3px;
}
.gallery-cat {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* ---------- FOOTER ---------- */
footer {
  padding: 80px 0 40px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}
.footer-brand img { height: 24px; opacity: 0.7; }
.footer-col h4 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--ink-dim);
  margin-bottom: 10px;
  transition: color .2s;
}
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
  padding-top: 24px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    grid-auto-rows: 260px;
  }
  .gallery-item.wide { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }
  .gallery-item.tall { grid-row: span 1; }
  .gallery-info { opacity: 1; transform: none; }
}
