*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root { --black: #0d0d0d; --gray: #999; --white: #fff; }

body { font-family: 'Jost', sans-serif; font-weight: 300; background: var(--white); color: var(--black); }

/* NAV */
nav { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; padding: 18px 32px; border-bottom: 1px solid #e8e8e6; position: sticky; top: 0; background: var(--white); z-index: 200; gap: 0; }
.nav-brand { display: flex; flex-direction: column; gap: 3px; }
.brand-name { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 20px; text-transform: uppercase; letter-spacing: -0.01em; line-height: 1; color: var(--black); }
.brand-sub { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); }
.nav-right { display: flex; align-items: center; gap: 28px; }
.nav-link { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; text-decoration: none; color: var(--gray); transition: color 0.2s; font-weight: 400; }
.nav-link:hover, .nav-link.active { color: var(--black); }
.nav-icon { color: var(--black); display: flex; align-items: center; transition: opacity 0.2s; }
.nav-icon:hover { opacity: 0.4; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 1.5px; background: var(--black); transition: all 0.3s; }

/* FILTER */
.filter-bar { display: flex; padding: 0 32px; border-bottom: 1px solid #e8e8e6; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn { font-family: 'Jost', sans-serif; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; padding: 12px 18px; border: none; background: none; cursor: pointer; color: var(--gray); border-bottom: 1.5px solid transparent; transition: all 0.2s; white-space: nowrap; font-weight: 400; }
.filter-btn:hover { color: var(--black); }
.filter-btn.active { color: var(--black); border-bottom-color: var(--black); }

/* HOME GALLERY */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 3px; padding: 3px; }
.photo-item { position: relative; overflow: hidden; cursor: pointer; aspect-ratio: 3/2; background: #e8e8e4; text-decoration: none; display: block; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94); }
.photo-item:hover img { transform: scale(1.04); }
.demo-swatch { width: 100%; height: 100%; display: block; transition: transform 0.55s cubic-bezier(0.25,0.46,0.45,0.94); }
.photo-item:hover .demo-swatch { transform: scale(1.04); }
.photo-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0); display: flex; flex-direction: column; justify-content: flex-end; padding: 20px 18px; transition: background 0.35s; }
.photo-item:hover .photo-overlay { background: rgba(0,0,0,0.5); }
.photo-title { font-family: 'Playfair Display', serif; font-size: 15px; font-weight: 700; color: #fff; opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s; line-height: 1.2; }
.photo-cat { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.65); opacity: 0; transform: translateY(10px); transition: opacity 0.3s 0.05s, transform 0.3s 0.05s; margin-top: 5px; }
.photo-item:hover .photo-title, .photo-item:hover .photo-cat { opacity: 1; transform: translateY(0); }

/* ALBUM PAGE */
.album-header { padding: 32px 32px 20px; border-bottom: 1px solid #e8e8e6; }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--gray); transition: color 0.2s; margin-bottom: 16px; }
.back-link:hover { color: var(--black); }
.album-title { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 36px; letter-spacing: -0.01em; line-height: 1.1; text-transform: capitalize; color: var(--black); }
.album-cat { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gray); margin-top: 8px; }

.album-stack { display: flex; flex-direction: column; gap: 3px; padding: 3px; max-width: 900px; margin: 0 auto; width: 100%; }
.album-photo { width: 100%; cursor: pointer; overflow: hidden; display: block; background: #e8e8e4; }
.album-photo img { width: 100%; height: auto; display: block; transition: transform 0.5s cubic-bezier(0.25,0.46,0.45,0.94); }
.album-photo:hover img { transform: scale(1.01); }

/* LIGHTBOX */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.96); z-index: 999; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lb-img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.lb-close { position: absolute; top: 20px; right: 24px; background: none; border: none; color: rgba(255,255,255,0.6); font-size: 22px; cursor: pointer; padding: 8px; }
.lb-close:hover { color: #fff; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); background: none; border: none; color: rgba(255,255,255,0.5); font-size: 52px; cursor: pointer; padding: 0 20px; line-height: 1; }
.lb-prev { left: 8px; } .lb-next { right: 8px; }
.lb-prev:hover, .lb-next:hover { color: #fff; }

/* ABOUT & CONTACT */
.page-wrap { max-width: 640px; margin: 60px auto; padding: 0 32px; }
.page-wrap h1 { font-family: 'Playfair Display', serif; font-size: 40px; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 28px; }
.page-wrap p { font-size: 15px; line-height: 1.85; color: #555; margin-bottom: 20px; }
.page-wrap a { color: var(--black); text-decoration: underline; text-underline-offset: 3px; }
.contact-links { margin-top: 40px; }
.contact-link { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--black); font-size: 14px; padding: 18px 0; border-bottom: 1px solid #e8e8e6; transition: opacity 0.2s; }
.contact-link:hover { opacity: 0.45; }
.contact-link-label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gray); min-width: 80px; }

/* TABLET — 2 cols */
@media (max-width: 1024px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
}

/* MOBILE — 1 col */
@media (max-width: 600px) {
  nav { padding: 14px 20px; }
  .brand-name { font-size: 16px; }
  .brand-sub { font-size: 8px; }
  .nav-hamburger { display: flex; }
  .nav-right { display: none; flex-direction: column; align-items: flex-start; gap: 0; width: 100%; padding: 8px 0; border-top: 1px solid #f0f0ee; margin-top: 10px; }
  .nav-right.open { display: flex; }
  .nav-link { padding: 12px 0; width: 100%; font-size: 12px; border-bottom: 1px solid #f5f5f3; }
  .nav-icon { padding: 10px 0; }
  .filter-bar { padding: 0 16px; }
  .filter-btn { padding: 10px 10px; font-size: 10px; }
  .gallery { grid-template-columns: 1fr; gap: 2px; padding: 2px; }
  .photo-title { opacity: 1; transform: translateY(0); }
  .photo-cat { opacity: 1; transform: translateY(0); }
  .photo-overlay { background: rgba(0,0,0,0.35); }
  .album-header { padding: 20px 20px 14px; }
  .album-title { font-size: 24px; }
  .album-stack { padding: 2px; gap: 2px; }
  .page-wrap { margin: 36px auto; padding: 0 20px; }
  .page-wrap h1 { font-size: 28px; }
  .lb-prev, .lb-next { font-size: 38px; padding: 0 10px; }
}
