/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0d0d0d;
  --bg-2:       #141414;
  --border:     #2a2a2a;
  --text:       #e8e8e8;
  --text-muted: #888;
  --text-dim:   #444;
  --accent:     #c8a96e;

  --font-sans:  -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;

  --radius:     4px;
  --max-w:      1280px;
  --header-h:   60px;
  --pad-x:      clamp(1rem, 4vw, 2.5rem);
  --section-v:  clamp(3rem, 8vw, 5rem);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.section-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

/* ===== HEADER ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13,13,13,0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  color: #fff;
}

.site-nav { display: flex; gap: 1.75rem; align-items: center; }

.nav-link {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s;
}

.nav-link:hover,
.nav-link.active { color: #fff; }

/* Hamburger toggle (mobile) */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 580px) {
  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--bg-2);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.25rem 0;
  }
  .site-nav.open { display: flex; }
  .nav-link { padding: 0.75rem var(--pad-x); width: 100%; }
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0;
}

.footer-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.8rem;
}

/* ===== HOME HERO ===== */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-pipes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: var(--section-v) var(--pad-x);
}

.hero-name {
  font-family: var(--font-serif);
  font-size: clamp(2.5rem, 8vw, 6rem);
  font-weight: 400;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.hero-sub {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 2rem;
}

.hero-link {
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.15s;
}
.hero-link:hover { color: #fff; }

/* ===== SIMPLE PAGES (about, contact) ===== */
.simple-page {
  padding: var(--section-v) 0;
}

.simple-inner {
  max-width: 560px;
}

.page-title {
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 1.5rem;
}

.simple-inner p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.contact-email {
  font-size: 1.125rem;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.contact-email:hover { color: var(--accent); border-color: var(--accent); }

/* ===== GALLERY ===== */
.gallery-section { padding: clamp(1.5rem, 4vw, 2.5rem) 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: clamp(0.375rem, 1vw, 0.75rem);
}

.gallery-item { overflow: hidden; }

.gallery-item-btn {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #1a1a1a;
  cursor: zoom-in;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 4/3;
}

.gallery-item-btn img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease, filter 0.3s;
}

.gallery-item-btn:hover img { transform: scale(1.04); filter: brightness(0.85); }

.gallery-empty {
  grid-column: 1/-1;
  text-align: center;
  color: var(--text-dim);
  padding: 4rem 0;
  font-size: 0.9rem;
}

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.94);
  cursor: zoom-out;
}

.lightbox-inner {
  position: relative;
  z-index: 1;
  max-width: min(90vw, 1100px);
  max-height: 90svh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-figure { text-align: center; }

.lightbox-img {
  max-width: 100%;
  max-height: 82svh;
  border-radius: var(--radius);
  object-fit: contain;
}


.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  z-index: 2;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: #fff;
  cursor: pointer;
  border-radius: var(--radius);
  line-height: 1;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.14); }

.lightbox-close { top: 1rem; right: 1rem; width: 36px; height: 36px; font-size: 1.4rem; }
.lightbox-prev  { left: 1rem; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; font-size: 1.1rem; }
.lightbox-next  { right: 1rem; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; font-size: 1.1rem; }
